[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1e24242e-bb37-e15f-906a-abe5cd865a98@bytedance.com>
Date: Fri, 12 Aug 2022 17:27:29 +0800
From: Zhuo Chen <chenzhuo.1@...edance.com>
To: Sathyanarayanan Kuppuswamy
<sathyanarayanan.kuppuswamy@...ux.intel.com>
Cc: ruscur@...sell.cc, oohall@...il.com, bhelgaas@...gle.com,
lukas@...ner.de, jan.kiszka@...mens.com, stuart.w.hayes@...il.com,
linuxppc-dev@...ts.ozlabs.org, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [External] Re: [PATCH v3] PCI/ERR: Use pcie_aer_is_native() to
judge whether OS owns AER
On 8/3/22 6:18 AM, Sathyanarayanan Kuppuswamy wrote:
>
>
> On 7/27/22 2:37 AM, Zhuo Chen wrote:
>>>
>> Do you mean changing "if ((host->native_aer || pcie_ports_native) && aer)" into "if (pcie_aer_is_native(dev) && aer)" ?
>> I thought changing into "if (pcie_aer_is_native(dev))" before.
>>
>> One another doubt. Not every pci device support aer. When dev->aer_cap is NULL and root->aer_cap is not NULL in aer_root_reset(), pcie_aer_is_native() will return false and OS cannot operate root register. It's different from just using "(host->native_aer || pcie_ports_native)".
>>
>> Or we can change "if ((host->native_aer || pcie_ports_native) && aer)" into "if (pcie_aer_is_native(root))". But in this way, argument NULL pointer check should be added in pcie_aer_is_native().
>
> Looking into it again, I think it is better to leave it as it is. Please ignore my comment.
>
Thanks! Is there anything else to improve and what's next for
the patch v3 ?
--
Thanks,
Zhuo Chen
Powered by blists - more mailing lists