Re: [PATCH v8 2/3] PCI/AER: Disable AER service on suspend

2024-04-25 Thread Kai-Heng Feng
On Fri, Apr 19, 2024 at 4:35 AM Bjorn Helgaas wrote: > > On Tue, Apr 16, 2024 at 12:32:24PM +0800, Kai-Heng Feng wrote: > > When the power rail gets cut off, the hardware can create some electric > > noise on the link that triggers AER. If IRQ is shared between AER with >

Re: [PATCH v8 1/3] PCI: Add helper to check if any of ancestor device support D3cold

2024-04-25 Thread Kai-Heng Feng
On Thu, Apr 18, 2024 at 9:15 AM Kuppuswamy Sathyanarayanan wrote: > > > On 4/15/24 9:32 PM, Kai-Heng Feng wrote: > > In addition to nearest upstream bridge, driver may want to know if the > > entire hierarchy can be powered off to perform different action. > > > >

[PATCH v8 3/3] PCI/DPC: Disable DPC service on suspend

2024-04-15 Thread Kai-Heng Feng
?id=209149 Link: https://bugzilla.kernel.org/show_bug.cgi?id=216295 Link: https://bugzilla.kernel.org/show_bug.cgi?id=218090 Signed-off-by: Kai-Heng Feng --- v8: - Wording. - Add more bug reports. v7: - Wording. - Disable DPC completely (again) if power will be turned off v6: v5: - Wordin

[PATCH v8 2/3] PCI/AER: Disable AER service on suspend

2024-04-15 Thread Kai-Heng Feng
ink: https://bugzilla.kernel.org/show_bug.cgi?id=216295 Link: https://bugzilla.kernel.org/show_bug.cgi?id=218090 Signed-off-by: Kai-Heng Feng --- v8: - Add more bug reports. v7: - Wording - Disable AER completely (again) if power will be turned off v6: v5: - Wording. v4: v3: - No change. v2: - Only d

[PATCH v8 1/3] PCI: Add helper to check if any of ancestor device support D3cold

2024-04-15 Thread Kai-Heng Feng
In addition to nearest upstream bridge, driver may want to know if the entire hierarchy can be powered off to perform different action. So walk higher up the hierarchy to find out if any device has valid _PR3. The user will be introduced in next patch. Signed-off-by: Kai-Heng Feng --- v8

[PATCH 3/3] PCI/DPC: Disable DPC service on suspend

2023-08-23 Thread Kai-Heng Feng
ink: https://bugzilla.kernel.org/show_bug.cgi?id=209149 Link: https://bugzilla.kernel.org/show_bug.cgi?id=216295 v7: - Wording. - Disable DPC completely (again) if power will be turned off v6: v5: - Wording. v4: v3: - No change. v2: - Only disable DPC IRQ. - No more check on PME IRQ#. Signed-off-by: Kai

[PATCH 2/3] PCI/AER: Disable AER service on suspend

2023-08-23 Thread Kai-Heng Feng
ink: https://bugzilla.kernel.org/show_bug.cgi?id=216295 v7: - Wording - Disable AER completely (again) if power will be turned off v6: v5: - Wording. v4: v3: - No change. v2: - Only disable AER IRQ. - No more check on PME IRQ#. - Use helper. Signed-off-by: Kai-Heng Feng --- drivers/pci/pcie/

Re: [PATCH v6 2/3] PCI/AER: Disable AER interrupt on suspend

2023-08-22 Thread Kai-Heng Feng
On Fri, Aug 11, 2023 at 4:00 PM Kai-Heng Feng wrote: > > On Thu, Aug 10, 2023 at 6:51 PM Bjorn Helgaas wrote: > > > > On Thu, Aug 10, 2023 at 04:17:21PM +0800, Kai-Heng Feng wrote: > > > On Thu, Aug 10, 2023 at 2:52 AM Bjorn Helgaas wrote: > > > > On Fri

Re: [PATCH v6 2/3] PCI/AER: Disable AER interrupt on suspend

2023-08-11 Thread Kai-Heng Feng
On Thu, Aug 10, 2023 at 6:51 PM Bjorn Helgaas wrote: > > On Thu, Aug 10, 2023 at 04:17:21PM +0800, Kai-Heng Feng wrote: > > On Thu, Aug 10, 2023 at 2:52 AM Bjorn Helgaas wrote: > > > On Fri, Jul 21, 2023 at 11:58:24AM +0800, Kai-Heng Feng wrote: > > > > On T

Re: [PATCH v6 2/3] PCI/AER: Disable AER interrupt on suspend

2023-08-10 Thread Kai-Heng Feng
On Thu, Aug 10, 2023 at 2:52 AM Bjorn Helgaas wrote: > > On Fri, Jul 21, 2023 at 11:58:24AM +0800, Kai-Heng Feng wrote: > > On Tue, Jul 18, 2023 at 7:17 PM Bjorn Helgaas wrote: > > > On Fri, May 12, 2023 at 08:00:13AM +0800, Kai-Heng Feng wrote: > > > > PCIe se

Re: [PATCH v6 2/3] PCI/AER: Disable AER interrupt on suspend

2023-08-08 Thread Kai-Heng Feng
On Fri, Jul 21, 2023 at 11:58 AM Kai-Heng Feng wrote: > > On Tue, Jul 18, 2023 at 7:17 PM Bjorn Helgaas wrote: > > > > [+cc Rafael] > > > > On Fri, May 12, 2023 at 08:00:13AM +0800, Kai-Heng Feng wrote: > > > PCIe services that share an IRQ

Re: [PATCH v6 2/3] PCI/AER: Disable AER interrupt on suspend

2023-07-20 Thread Kai-Heng Feng
On Tue, Jul 18, 2023 at 7:17 PM Bjorn Helgaas wrote: > > [+cc Rafael] > > On Fri, May 12, 2023 at 08:00:13AM +0800, Kai-Heng Feng wrote: > > PCIe services that share an IRQ with PME, such as AER or DPC, may cause a > > spurious wakeup on system suspend. To preve

Re: [PATCH v6 2/3] PCI/AER: Disable AER interrupt on suspend

2023-07-14 Thread Kai-Heng Feng
On Fri, May 12, 2023 at 8:01 AM Kai-Heng Feng wrote: > > PCIe services that share an IRQ with PME, such as AER or DPC, may cause a > spurious wakeup on system suspend. To prevent this, disable the AER interrupt > notification during the system suspend process. > > As Per

Re: [PATCH v6 1/3] PCI/AER: Factor out interrupt toggling into helpers

2023-05-23 Thread Kai-Heng Feng
Hi Bjorn, On Fri, May 12, 2023 at 8:01 AM Kai-Heng Feng wrote: > > There are many places that enable and disable AER interrupt, so move > them into helpers. Do you think the series is good to be be merged now? Kai-Heng > > Reviewed-by: Mika Westerberg > Revie

[PATCH v6 3/3] PCI/DPC: Disable DPC interrupt during suspend

2023-05-11 Thread Kai-Heng Feng
not affect the basic functionality. Link: https://bugzilla.kernel.org/show_bug.cgi?id=216295 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- v6: v5: - Wording. v4: v3: - No change. v2: - Only disable DPC IRQ. - No more check on PME IRQ#. drivers/pci/pcie/

[PATCH v6 2/3] PCI/AER: Disable AER interrupt on suspend

2023-05-11 Thread Kai-Heng Feng
bug.cgi?id=216295 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- v6: v5: - Wording. v4: v3: - No change. v2: - Only disable AER IRQ. - No more check on PME IRQ#. - Use helper. drivers/pci/pcie/aer.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/d

[PATCH v6 1/3] PCI/AER: Factor out interrupt toggling into helpers

2023-05-11 Thread Kai-Heng Feng
There are many places that enable and disable AER interrupt, so move them into helpers. Reviewed-by: Mika Westerberg Reviewed-by: Kuppuswamy Sathyanarayanan Reviewed-by: Jonathan Cameron Signed-off-by: Kai-Heng Feng --- v6: - No change. v5: - Fix misspelling. v4: - No change. v3

Re: [PATCH v5 2/3] PCI/AER: Disable AER interrupt on suspend

2023-05-11 Thread Kai-Heng Feng
On Fri, May 12, 2023 at 6:08 AM Sathyanarayanan Kuppuswamy wrote: > > > > On 5/11/23 6:36 AM, Kai-Heng Feng wrote: > > PCIe service that shares IRQ with PME may cause spurious wakeup on > > system suspend. > > > > This is very similar to previou

[PATCH v5 3/3] PCI/DPC: Disable DPC interrupt during suspend

2023-05-11 Thread Kai-Heng Feng
onical.com/ Link: https://bugzilla.kernel.org/show_bug.cgi?id=216295 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- v5: - Wording. v4: v3: - No change. v2: - Only disable DPC IRQ. - No more check on PME IRQ#. drivers/pci/pcie/dpc.c | 26 ++ 1 file c

[PATCH v5 2/3] PCI/AER: Disable AER interrupt on suspend

2023-05-11 Thread Kai-Heng Feng
.org/linux-pci/20220408153159.106741-1-kai.heng.f...@canonical.com/ Link: https://bugzilla.kernel.org/show_bug.cgi?id=216295 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- v5: - Wording. v4: v3: - No change. v2: - Only disable AER IRQ. - No more check on PME IRQ#. -

[PATCH v5 1/3] PCI/AER: Factor out interrupt toggling into helpers

2023-05-11 Thread Kai-Heng Feng
There are many places that enable and disable AER interrupt, so move them into helpers. Reviewed-by: Mika Westerberg Reviewed-by: Kuppuswamy Sathyanarayanan Reviewed-by: Jonathan Cameron Signed-off-by: Kai-Heng Feng --- v5 - Fix misspelling. v4: - No change. v3: - Correct subject. v2

Re: [PATCH v4 2/3] PCI/AER: Disable AER interrupt on suspend

2023-05-11 Thread Kai-Heng Feng
On Tue, Apr 25, 2023 at 7:47 AM Sathyanarayanan Kuppuswamy wrote: > > > > On 4/23/23 10:52 PM, Kai-Heng Feng wrote: > > PCIe service that shares IRQ with PME may cause spurious wakeup on > > system suspend. > > > > PCIe Base Spec 5.0, section 5.2 "Link St

Re: [PATCH v4 2/3] PCI/AER: Disable AER interrupt on suspend

2023-05-11 Thread Kai-Heng Feng
On Sat, May 6, 2023 at 3:22 AM Bjorn Helgaas wrote: > > On Mon, Apr 24, 2023 at 01:52:48PM +0800, Kai-Heng Feng wrote: > > PCIe service that shares IRQ with PME may cause spurious wakeup on > > system suspend. > > > > PCIe Base Spec 5.0, section 5.2 "

Re: [PATCH v4 1/3] PCI/AER: Factor out interrupt toggling into helpers

2023-05-11 Thread Kai-Heng Feng
On Fri, May 5, 2023 at 11:37 PM Jonathan Cameron wrote: > > On Mon, 24 Apr 2023 13:52:47 +0800 > Kai-Heng Feng wrote: > > > There are many places that enable and disable AER interrput, so move > > interrupt Thanks, will correct that in next revision. Kai-Heng

Re: [PATCH v4 2/3] PCI/AER: Disable AER interrupt on suspend

2023-04-24 Thread Kai-Heng Feng
On Tue, Apr 25, 2023 at 7:47 AM Sathyanarayanan Kuppuswamy wrote: > > > > On 4/23/23 10:52 PM, Kai-Heng Feng wrote: > > PCIe service that shares IRQ with PME may cause spurious wakeup on > > system suspend. > > > > PCIe Base Spec 5.0, section 5.2 "Link St

[PATCH v4 3/3] PCI/DPC: Disable DPC interrupt during suspend

2023-04-23 Thread Kai-Heng Feng
kernel.org/linux-pci/20220408153159.106741-1-kai.heng.f...@canonical.com/ Link: https://bugzilla.kernel.org/show_bug.cgi?id=216295 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- drivers/pci/pcie/dpc.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/d

[PATCH v4 1/3] PCI/AER: Factor out interrupt toggling into helpers

2023-04-23 Thread Kai-Heng Feng
There are many places that enable and disable AER interrput, so move them into helpers. Reviewed-by: Mika Westerberg Reviewed-by: Kuppuswamy Sathyanarayanan Signed-off-by: Kai-Heng Feng --- drivers/pci/pcie/aer.c | 45 +- 1 file changed, 27 insertions

[PATCH v4 2/3] PCI/AER: Disable AER interrupt on suspend

2023-04-23 Thread Kai-Heng Feng
?id=216295 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- drivers/pci/pcie/aer.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c index 1420e1f27105..9c07fdbeb52d 100644 --- a/drivers/pci/pcie/aer.c +++ b/driver

Re: [PATCH v3 3/4] PCI/AER: Disable AER interrupt on suspend

2023-04-20 Thread Kai-Heng Feng
On Thu, Apr 20, 2023 at 10:53 PM Sathyanarayanan Kuppuswamy wrote: > > > > On 4/20/23 5:59 AM, Kai-Heng Feng wrote: > > PCIe service that shares IRQ with PME may cause spurious wakeup on > > system suspend. > > > > PCIe Base Spec 5.0, section 5.2 "Link St

[PATCH v3 4/4] PCI/DPC: Disable DPC interrupt during suspend

2023-04-20 Thread Kai-Heng Feng
kernel.org/linux-pci/20220408153159.106741-1-kai.heng.f...@canonical.com/ Link: https://bugzilla.kernel.org/show_bug.cgi?id=216295 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- v3: - No change. v2: - Only disable DPC IRQ. - No more check on PME IRQ#. drivers/pci/pcie/

[PATCH v3 3/4] PCI/AER: Disable AER interrupt on suspend

2023-04-20 Thread Kai-Heng Feng
?id=216295 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- v3: - No change. v2: - Only disable AER IRQ. - No more check on PME IRQ#. - Use helper. drivers/pci/pcie/aer.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/

[PATCH v3 2/4] PCI/AER: Factor out interrupt toggling into helpers

2023-04-20 Thread Kai-Heng Feng
There are many places that enable and disable AER interrput, so move them into helpers. Signed-off-by: Kai-Heng Feng --- v3: - Correct subject. v2: - New patch. drivers/pci/pcie/aer.c | 45 +- 1 file changed, 27 insertions(+), 18 deletions(-) diff

[PATCH v2 4/4] PCI/DPC: Disable DPC interrupt during suspend

2023-04-19 Thread Kai-Heng Feng
kernel.org/linux-pci/20220408153159.106741-1-kai.heng.f...@canonical.com/ Link: https://bugzilla.kernel.org/show_bug.cgi?id=216295 Signed-off-by: Kai-Heng Feng --- v2: - Only disable DPC IRQ. - No more check on PME IRQ#. drivers/pci/pcie/dpc.c | 26 ++ 1 file changed, 26

[PATCH v2 3/4] PCI/AER: Disable AER interrupt on suspend

2023-04-19 Thread Kai-Heng Feng
95 Signed-off-by: Kai-Heng Feng --- v2: - Only disable AER IRQ. - No more check on PME IRQ#. - Use helper. drivers/pci/pcie/aer.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c index 1420e1f27105..9c07fdbeb

[PATCH v2 2/4] PCI/AER: Factor out interrput toggling into helpers

2023-04-19 Thread Kai-Heng Feng
There are many places that enable and disable AER interrput, so move them into helpers. Signed-off-by: Kai-Heng Feng --- v2: - New patch. drivers/pci/pcie/aer.c | 45 +- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/drivers/pci/pcie

Re: [PATCH 3/3] PCI/DPC: Disable DPC service on suspend when IRQ is shared with PME

2023-04-17 Thread Kai-Heng Feng
On Thu, Sep 29, 2022 at 5:24 AM Bjorn Helgaas wrote: > > On Wed, Jul 27, 2022 at 09:32:52AM +0800, Kai-Heng Feng wrote: > > PCIe service that shares IRQ with PME may cause spurious wakeup on > > system suspend. > > > > Since AER is conditionally disabled in previous

Re: [PATCH 2/3] PCI/AER: Disable AER service on suspend when IRQ is shared with PME

2023-04-17 Thread Kai-Heng Feng
On Thu, Sep 29, 2022 at 5:46 AM Bjorn Helgaas wrote: > > On Wed, Jul 27, 2022 at 09:32:51AM +0800, Kai-Heng Feng wrote: > > PCIe service that shares IRQ with PME may cause spurious wakeup on > > system suspend. > > > > PCIe Base Spec 5.0, section 5.2 "

[PATCH 3/3] PCI/DPC: Disable DPC service on suspend when IRQ is shared with PME

2022-07-26 Thread Kai-Heng Feng
[1] https://lore.kernel.org/linux-pci/20220408153159.106741-1-kai.heng.f...@canonical.com/ Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=216295 Signed-off-by: Kai-Heng Feng --- drivers/pci/pcie/dpc.c | 52 +- 1 file changed, 41 insertions(+), 11 deletions(-)

[PATCH 2/3] PCI/AER: Disable AER service on suspend when IRQ is shared with PME

2022-07-26 Thread Kai-Heng Feng
?id=216295 Signed-off-by: Kai-Heng Feng --- drivers/pci/pcie/aer.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c index 7952e5efd6cf3..60cc373754af2 100644 --- a/drivers/pci/pcie/aer.c +++ b/drivers/pci/

Re: [PATCH v4 1/2] PCI/AER: Disable AER service when link is in L2/L3 ready, L2 and L3 state

2022-06-30 Thread Kai-Heng Feng
On Sat, Apr 23, 2022 at 6:26 AM Bjorn Helgaas wrote: > > [+cc Rafael, linux-pm; sorry forgot this last time] > > On Fri, Apr 22, 2022 at 05:24:36PM -0500, Bjorn Helgaas wrote: > > On Fri, Apr 08, 2022 at 11:31:58PM +0800, Kai-Heng Feng wrote: > > > On Intel Alder

Re: [PATCH v4 2/2] PCI/DPC: Disable DPC service when link is in L2/L3 ready, L2 and L3 state

2022-06-20 Thread Kai-Heng Feng
On Mon, Apr 18, 2022 at 10:41 AM Sathyanarayanan Kuppuswamy wrote: > > > > On 4/8/22 8:31 AM, Kai-Heng Feng wrote: > > On Intel Alder Lake platforms, Thunderbolt entering D3cold can cause > > some errors reported by AER: > > [ 30.100211] pcieport :00:1d.0: AER:

[PATCH v4 2/2] PCI/DPC: Disable DPC service when link is in L2/L3 ready, L2 and L3 state

2022-04-08 Thread Kai-Heng Feng
Ready, L2 and L3, also disable DPC here as DPC depends on AER to work. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=215453 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- v4: - Wording change. v3: - Wording change to make the patch more clear. v2: - Wording change

[PATCH v4 1/2] PCI/AER: Disable AER service when link is in L2/L3 ready, L2 and L3 state

2022-04-08 Thread Kai-Heng Feng
lla: https://bugzilla.kernel.org/show_bug.cgi?id=215453 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- v4: - Explicitly states the spec version. - Wording change. v3: - Remove reference to ACS. - Wording change. v2: - Wording change. drivers/pci/pcie/aer.c | 31 +

Re: [PATCH v3 1/2] PCI/AER: Disable AER service when link is in L2/L3 ready, L2 and L3 state

2022-04-08 Thread Kai-Heng Feng
On Thu, Mar 31, 2022 at 3:40 AM Sathyanarayanan Kuppuswamy wrote: > > > > On 3/29/22 1:31 AM, Kai-Heng Feng wrote: > > On some Intel AlderLake platforms, Thunderbolt entering D3cold can cause > > some errors reported by AER: > > [ 30.100211] pcieport :00:1d.

[PATCH v3 2/2] PCI/DPC: Disable DPC service when link is in L2/L3 ready, L2 and L3 state

2022-03-29 Thread Kai-Heng Feng
Ready, L2 and L3, also disable DPC here as DPC depends on AER to work. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=215453 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- v3: - Wording change to make the patch more clear. v2: - Wording change. - Empty line dropped

[PATCH v3 1/2] PCI/AER: Disable AER service when link is in L2/L3 ready, L2 and L3 state

2022-03-29 Thread Kai-Heng Feng
kernel.org/show_bug.cgi?id=215453 Reviewed-by: Mika Westerberg Signed-off-by: Kai-Heng Feng --- v3: - Remove reference to ACS. - Wording change. v2: - Wording change. drivers/pci/pcie/aer.c | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/drivers/pci/

Re: [PATCH v2 1/2] PCI/AER: Disable AER service when link is in L2/L3 ready, L2 and L3 state

2022-03-20 Thread Kai-Heng Feng
On Sun, Mar 20, 2022 at 4:38 AM Sathyanarayanan Kuppuswamy wrote: > > > > On 1/26/22 6:54 PM, Kai-Heng Feng wrote: > > Commit 50310600ebda ("iommu/vt-d: Enable PCI ACS for platform opt in > > hint") enables ACS, and some platforms lose its NVMe after resu

Re: [PATCH v2 1/2] PCI/AER: Disable AER service when link is in L2/L3 ready, L2 and L3 state

2022-01-27 Thread Kai-Heng Feng
On Fri, Jan 28, 2022 at 10:57 AM Lu Baolu wrote: > > On 1/27/22 7:14 PM, Kai-Heng Feng wrote: > > On Thu, Jan 27, 2022 at 3:01 PM Lu Baolu wrote: > >> > >> On 2022/1/27 10:54, Kai-Heng Feng wrote: > >>> Commit 50310600ebda ("iommu/vt-d: Enable PCI A

Re: [PATCH v2 1/2] PCI/AER: Disable AER service when link is in L2/L3 ready, L2 and L3 state

2022-01-27 Thread Kai-Heng Feng
On Thu, Jan 27, 2022 at 3:01 PM Lu Baolu wrote: > > On 2022/1/27 10:54, Kai-Heng Feng wrote: > > Commit 50310600ebda ("iommu/vt-d: Enable PCI ACS for platform opt in > > hint") enables ACS, and some platforms lose its NVMe after resume from > > S3: > > [

[PATCH v2 1/2] PCI/AER: Disable AER service when link is in L2/L3 ready, L2 and L3 state

2022-01-26 Thread Kai-Heng Feng
ommu/vt-d: Enable PCI ACS for platform opt in hint") Signed-off-by: Kai-Heng Feng --- v2: - Wording change. drivers/pci/pcie/aer.c | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c index 9fa1f

[PATCH v2 2/2] PCI/DPC: Disable DPC service when link is in L2/L3 ready, L2 and L3 state

2022-01-26 Thread Kai-Heng Feng
Since TLP and DLLP transmission is disabled for a Link in L2/L3 Ready, L2 and L3 (i.e. device in D3hot and D3cold), and DPC depends on AER, so also disable DPC here. Signed-off-by: Kai-Heng Feng --- v2: - Wording change. - Empty line dropped. drivers/pci/pcie/dpc.c | 60

Re: [PATCH 2/2] PCI/DPC: Disable DPC when link is in L2/L3 ready, L2 and L3 state

2022-01-26 Thread Kai-Heng Feng
On Wed, Jan 26, 2022 at 7:10 PM Mika Westerberg wrote: > > Hi, > > On Wed, Jan 26, 2022 at 03:18:52PM +0800, Kai-Heng Feng wrote: > > Since TLP and DLLP transmission is disabled for a Link in L2/L3 Ready, > > L2 and L3, and DPC depends on AER, so also disable DPC he

Re: [PATCH 1/2] PCI/AER: Disable AER when link is in L2/L3 ready, L2 and L3 state

2022-01-26 Thread Kai-Heng Feng
On Wed, Jan 26, 2022 at 7:03 PM Mika Westerberg wrote: > > Hi, > > On Wed, Jan 26, 2022 at 03:18:51PM +0800, Kai-Heng Feng wrote: > > Commit 50310600ebda ("iommu/vt-d: Enable PCI ACS for platform opt in > > hint") enables ACS, and some platforms lose

[PATCH 2/2] PCI/DPC: Disable DPC when link is in L2/L3 ready, L2 and L3 state

2022-01-25 Thread Kai-Heng Feng
Since TLP and DLLP transmission is disabled for a Link in L2/L3 Ready, L2 and L3, and DPC depends on AER, so also disable DPC here. Signed-off-by: Kai-Heng Feng --- drivers/pci/pcie/dpc.c | 61 +++--- 1 file changed, 45 insertions(+), 16 deletions(-) diff

[PATCH 1/2] PCI/AER: Disable AER when link is in L2/L3 ready, L2 and L3 state

2022-01-25 Thread Kai-Heng Feng
and L3 (D3cold), so disable AER to avoid the noises from turning power rails on/off. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=209149 Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=215453 Fixes: 50310600ebda ("iommu/vt-d: Enable PCI ACS for platform opt in hint"

Re: [PATCH 1/2] PCI/AER: Disable AER interrupt during suspend

2021-07-23 Thread Kai-Heng Feng
On Fri, Jul 23, 2021 at 1:24 PM Christoph Hellwig wrote: > > On Thu, Jul 22, 2021 at 05:23:51PM -0500, Bjorn Helgaas wrote: > > Marking both of these as "not applicable" for now because I don't > > think we really understand what's going on. > > > > Apparently a DMA occurs during suspend or

Re: [PATCH] PCI: Try to find two continuous regions for child resource

2021-03-31 Thread Kai-Heng Feng
On Tue, Mar 30, 2021 at 12:23 AM Bjorn Helgaas wrote: > > On Mon, Mar 29, 2021 at 04:47:59PM +0800, Kai-Heng Feng wrote: > > Built-in grahpics on HP EliteDesk 805 G6 doesn't work because graphics > > can't get the BAR it needs: > > [0.611504] pci_bus :00

[PATCH] PCI: Try to find two continuous regions for child resource

2021-03-29 Thread Kai-Heng Feng
region if two regions are continuous and can contain child resource. This change makes the grahpics works on the system in question. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=212013 Signed-off-by: Kai-Heng Feng --- arch/microblaze/pci/pci-common.c | 4 +-- arch/powerpc/kernel/pci

Re: [PATCH 1/2] PCI/AER: Disable AER interrupt during suspend

2021-02-05 Thread Kai-Heng Feng
On Fri, Feb 5, 2021 at 7:28 AM Bjorn Helgaas wrote: > > [+cc Alex] > > On Thu, Jan 28, 2021 at 12:09:37PM +0800, Kai-Heng Feng wrote: > > On Thu, Jan 28, 2021 at 4:51 AM Bjorn Helgaas wrote: > > > On Thu, Jan 28, 2021 at 01:31:00AM +0800, Kai-Heng Feng wrote: > >

Re: [PATCH 1/2] PCI/AER: Disable AER interrupt during suspend

2021-01-27 Thread Kai-Heng Feng
On Thu, Jan 28, 2021 at 4:51 AM Bjorn Helgaas wrote: > > On Thu, Jan 28, 2021 at 01:31:00AM +0800, Kai-Heng Feng wrote: > > Commit 50310600ebda ("iommu/vt-d: Enable PCI ACS for platform opt in > > hint") enables ACS, and some platforms lose its NVMe af

[PATCH 2/2] PCI/DPC: Disable DPC interrupt during suspend

2021-01-27 Thread Kai-Heng Feng
em suspend and resume, respectively. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=209149 Fixes: 50310600ebda ("iommu/vt-d: Enable PCI ACS for platform opt in hint") Signed-off-by: Kai-Heng Feng --- drivers/pci/pcie/dpc.c | 49 -- 1 file changed,

[PATCH 1/2] PCI/AER: Disable AER interrupt during suspend

2021-01-27 Thread Kai-Heng Feng
and enable it on system suspend and resume, respectively. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=209149 Fixes: 50310600ebda ("iommu/vt-d: Enable PCI ACS for platform opt in hint") Signed-off-by: Kai-Heng Feng --- drivers/pci/pcie/aer.c | 18 ++ 1 file ch