ALT Linux Bugzilla
– Attachment 9153 Details for
Bug 39607
Ядро 5.4 не видит NVME накопитель в ноутбуке с Intel TigerLake-LP (драйвер vmd)
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Patch 1/3
0001-PCI-vmd-Add-bus-224-255-restriction-decode.patch (text/plain), 1.95 KB, created by
Николай Костригин
on 2021-01-26 18:39:11 MSK
(
hide
)
Description:
Patch 1/3
Filename:
MIME Type:
Creator:
Николай Костригин
Created:
2021-01-26 18:39:11 MSK
Size:
1.95 KB
patch
obsolete
>From 8f5e6124b384e93b8df666ef87dac7a350d1ee6f Mon Sep 17 00:00:00 2001 >From: Jon Derrick <jonathan.derrick@intel.com> >Date: Tue, 12 Nov 2019 05:47:52 -0700 >Subject: [PATCH 1/3] PCI: vmd: Add bus 224-255 restriction decode > >VMD bus restrictions are required when IO fabric is multiplexed such >that VMD cannot use the entire bus range. This patch adds another bus >restriction decode bit that can be set by firmware to restrict the VMD >bus range to between 224-255. > >Signed-off-by: Jon Derrick <jonathan.derrick@intel.com> >Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> >--- > drivers/pci/controller/vmd.c | 30 ++++++++++++++++++++++-------- > 1 file changed, 22 insertions(+), 8 deletions(-) > >diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c >index 9966dcf1d112..41f4c1c825e6 100644 >--- a/drivers/pci/controller/vmd.c >+++ b/drivers/pci/controller/vmd.c >@@ -604,16 +604,30 @@ static int vmd_enable_domain(struct vmd_dev *vmd, unsigned long features) > > /* > * Certain VMD devices may have a root port configuration option which >- * limits the bus range to between 0-127 or 128-255 >+ * limits the bus range to between 0-127, 128-255, or 224-255 > */ > if (features & VMD_FEAT_HAS_BUS_RESTRICTIONS) { >- u32 vmcap, vmconfig; >- >- pci_read_config_dword(vmd->dev, PCI_REG_VMCAP, &vmcap); >- pci_read_config_dword(vmd->dev, PCI_REG_VMCONFIG, &vmconfig); >- if (BUS_RESTRICT_CAP(vmcap) && >- (BUS_RESTRICT_CFG(vmconfig) == 0x1)) >- vmd->busn_start = 128; >+ u16 reg16; >+ >+ pci_read_config_word(vmd->dev, PCI_REG_VMCAP, ®16); >+ if (BUS_RESTRICT_CAP(reg16)) { >+ pci_read_config_word(vmd->dev, PCI_REG_VMCONFIG, >+ ®16); >+ >+ switch (BUS_RESTRICT_CFG(reg16)) { >+ case 1: >+ vmd->busn_start = 128; >+ break; >+ case 2: >+ vmd->busn_start = 224; >+ break; >+ case 3: >+ pci_err(vmd->dev, "Unknown Bus Offset Setting\n"); >+ return -ENODEV; >+ default: >+ break; >+ } >+ } > } > > res = &vmd->dev->resource[VMD_CFGBAR]; >-- >2.29.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39607
: 9153 |
9154
|
9155