search for: pci_setup_bridge_mmio_pref

Displaying 3 results from an estimated 3 matches for "pci_setup_bridge_mmio_pref".

2018 Sep 07
9
[PATCH] PCI: Reprogram bridge prefetch registers on resume
...* Even though PCI bridge register contents appear to be intact + * at resume time, rewriting the value of PREF_BASE_UPPER32 is + * required to make the GPU work. + * Windows 10 also reprograms these registers during S3 resume. + */ + if (pci_dev->class == PCI_CLASS_BRIDGE_PCI << 8) + pci_setup_bridge_mmio_pref(pci_dev); + pci_fixup_device(pci_fixup_resume_early, pci_dev); } diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 79b1824e83b4..cb88288d2a69 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -630,7 +630,7 @@ static void pci_setup_bridge_mmio(struct pci_d...
2018 Sep 07
0
[PATCH] PCI: Reprogram bridge prefetch registers on resume
On Fri, Sep 7, 2018 at 2:40 PM, Sinan Kaya <okaya at kernel.org> wrote: > On 9/6/2018 10:36 PM, Daniel Drake wrote: >> >> + if (pci_dev->class == PCI_CLASS_BRIDGE_PCI << 8) >> + pci_setup_bridge_mmio_pref(pci_dev); > > > This should probably some kind of a quirk rather than default > for the listed card as it sounds like you are dealing with > broken hardware. With that approach there's a sizeable list that your quirk list is incomplete or out of date. And when the bug bites, it...
2018 Sep 07
0
[PATCH] PCI: Reprogram bridge prefetch registers on resume
On 9/6/2018 10:36 PM, Daniel Drake wrote: > + if (pci_dev->class == PCI_CLASS_BRIDGE_PCI << 8) > + pci_setup_bridge_mmio_pref(pci_dev); This should probably some kind of a quirk rather than default for the listed card as it sounds like you are dealing with broken hardware.