From: Will Deacon <will.deacon at arm.com>
To: devel@acpica.org
Subject: Re: [Devel] [PATCH v6 3/3] iommu/arm-smmu-v3:Enable ACPI based HiSilicon erratum 161010801
Date: Wed, 23 Aug 2017 17:43:01 +0100 [thread overview]
Message-ID: <20170823164301.GC590@arm.com> (raw)
In-Reply-To: 77b6c97f-f2d2-fd14-e83e-345addc5ea71@huawei.com
[-- Attachment #1: Type: text/plain, Size: 2638 bytes --]
On Wed, Aug 23, 2017 at 03:29:46PM +0100, John Garry wrote:
> On 23/08/2017 14:24, Will Deacon wrote:
> >On Wed, Aug 23, 2017 at 02:17:24PM +0100, John Garry wrote:
> >>>>>Signed-off-by: Shameer Kolothum
> >>>><shameerali.kolothum.thodi(a)huawei.com>
> >>>>>---
> >>>>>drivers/iommu/arm-smmu-v3.c | 27 ++++++++++++++++++++++-----
> >>>>>1 file changed, 22 insertions(+), 5 deletions(-)
> >>>>
> >>>>Please can you also add a devicetree binding with corresponding
> >>>>documentation to enable this workaround on non-ACPI based systems too?
> >>>>It should be straightforward if you update the arm_smmu_options table.
> >>>
> >>>As I mentioned before, devicetree was a lower priority and we would definitely
> >>>submit patch to support that. Even if we update the arm_smmu_options table
> >>>with DT binding, the generic function to retrieve the MSI address regions only
> >>>works on ACPI/IORT case now.
> >>>
> >>
> >>Hi Will,
> >>
> >>Can you confirm your stance on supporting this workaround for DT as well as
> >>ACPI?
> >>
> >>For us, we now only "officially" support ACPI FW, and DT support at this
> >>point is patchy/limited. To me, adding DT support is just more errata
> >>workaround code to maintain with little useful gain.
> >
> >I basically don't like the idea of a driver that only works for one of
> >ACPI or DT yet claims to support both. I'm less fussed about functionality
> >differences (feature X is only available with firmware Y), but not working
> >around a hardware erratum that we know about is just lazy.
> >
> >So I'd prefer that we handle this in both cases, or blacklist affected
> >devices when booting with DT. Continuing as though there isn't an erratum
> >is the worst thing we can do.
>
> OK, seems reasonable.
>
> We would consider blacklisting the device, where/how to do is the question.
>
> So the errata is in the GICv3 ITS/PCI host controller, and we just use the
> in-between SMMU (driver) to provide the workaround. So my initial impression
> is that the PCI host controller would have to be blacklisted IFF behind an
> IOMMU for DT firmware in pcie-hisi.c or pci quirks framework. How does it
> sound?
If that avoids us running into the erratum, then fine by me. I'd obviously
prefer we work-around it since we know how to, but that's up to you.
> Please also note that in our SoC we have other devices behind the same SMMU,
> like storage controller, which are not affected or related to the Errata.
>
> BTW, ignoring DT support, are you happy with this patchset?
Yes, but I won't ack it without the above taken care of.
Will
WARNING: multiple messages have this Message-ID (diff)
From: Will Deacon <will.deacon@arm.com>
To: John Garry <john.garry@huawei.com>
Cc: Shameerali Kolothum Thodi <shameerali.kolothum.thodi@huawei.com>,
"lorenzo.pieralisi@arm.com" <lorenzo.pieralisi@arm.com>,
"marc.zyngier@arm.com" <marc.zyngier@arm.com>,
"sudeep.holla@arm.com" <sudeep.holla@arm.com>,
"robin.murphy@arm.com" <robin.murphy@arm.com>,
"hanjun.guo@linaro.org" <hanjun.guo@linaro.org>,
Gabriele Paoloni <gabriele.paoloni@huawei.com>,
"iommu@lists.linux-foundation.org"
<iommu@lists.linux-foundation.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"devel@acpica.org" <devel@acpica.org>,
Linuxarm <linuxarm@huawei.com>,
"Wangzhou (B)" <wangzhou1@hisilicon.com>,
"Guohanjun (Hanjun Guo)" <guohanjun@huawei.com>
Subject: Re: [PATCH v6 3/3] iommu/arm-smmu-v3:Enable ACPI based HiSilicon erratum 161010801
Date: Wed, 23 Aug 2017 17:43:01 +0100 [thread overview]
Message-ID: <20170823164301.GC590@arm.com> (raw)
In-Reply-To: <77b6c97f-f2d2-fd14-e83e-345addc5ea71@huawei.com>
On Wed, Aug 23, 2017 at 03:29:46PM +0100, John Garry wrote:
> On 23/08/2017 14:24, Will Deacon wrote:
> >On Wed, Aug 23, 2017 at 02:17:24PM +0100, John Garry wrote:
> >>>>>Signed-off-by: Shameer Kolothum
> >>>><shameerali.kolothum.thodi@huawei.com>
> >>>>>---
> >>>>>drivers/iommu/arm-smmu-v3.c | 27 ++++++++++++++++++++++-----
> >>>>>1 file changed, 22 insertions(+), 5 deletions(-)
> >>>>
> >>>>Please can you also add a devicetree binding with corresponding
> >>>>documentation to enable this workaround on non-ACPI based systems too?
> >>>>It should be straightforward if you update the arm_smmu_options table.
> >>>
> >>>As I mentioned before, devicetree was a lower priority and we would definitely
> >>>submit patch to support that. Even if we update the arm_smmu_options table
> >>>with DT binding, the generic function to retrieve the MSI address regions only
> >>>works on ACPI/IORT case now.
> >>>
> >>
> >>Hi Will,
> >>
> >>Can you confirm your stance on supporting this workaround for DT as well as
> >>ACPI?
> >>
> >>For us, we now only "officially" support ACPI FW, and DT support at this
> >>point is patchy/limited. To me, adding DT support is just more errata
> >>workaround code to maintain with little useful gain.
> >
> >I basically don't like the idea of a driver that only works for one of
> >ACPI or DT yet claims to support both. I'm less fussed about functionality
> >differences (feature X is only available with firmware Y), but not working
> >around a hardware erratum that we know about is just lazy.
> >
> >So I'd prefer that we handle this in both cases, or blacklist affected
> >devices when booting with DT. Continuing as though there isn't an erratum
> >is the worst thing we can do.
>
> OK, seems reasonable.
>
> We would consider blacklisting the device, where/how to do is the question.
>
> So the errata is in the GICv3 ITS/PCI host controller, and we just use the
> in-between SMMU (driver) to provide the workaround. So my initial impression
> is that the PCI host controller would have to be blacklisted IFF behind an
> IOMMU for DT firmware in pcie-hisi.c or pci quirks framework. How does it
> sound?
If that avoids us running into the erratum, then fine by me. I'd obviously
prefer we work-around it since we know how to, but that's up to you.
> Please also note that in our SoC we have other devices behind the same SMMU,
> like storage controller, which are not affected or related to the Errata.
>
> BTW, ignoring DT support, are you happy with this patchset?
Yes, but I won't ack it without the above taken care of.
Will
WARNING: multiple messages have this Message-ID (diff)
From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 3/3] iommu/arm-smmu-v3:Enable ACPI based HiSilicon erratum 161010801
Date: Wed, 23 Aug 2017 17:43:01 +0100 [thread overview]
Message-ID: <20170823164301.GC590@arm.com> (raw)
In-Reply-To: <77b6c97f-f2d2-fd14-e83e-345addc5ea71@huawei.com>
On Wed, Aug 23, 2017 at 03:29:46PM +0100, John Garry wrote:
> On 23/08/2017 14:24, Will Deacon wrote:
> >On Wed, Aug 23, 2017 at 02:17:24PM +0100, John Garry wrote:
> >>>>>Signed-off-by: Shameer Kolothum
> >>>><shameerali.kolothum.thodi@huawei.com>
> >>>>>---
> >>>>>drivers/iommu/arm-smmu-v3.c | 27 ++++++++++++++++++++++-----
> >>>>>1 file changed, 22 insertions(+), 5 deletions(-)
> >>>>
> >>>>Please can you also add a devicetree binding with corresponding
> >>>>documentation to enable this workaround on non-ACPI based systems too?
> >>>>It should be straightforward if you update the arm_smmu_options table.
> >>>
> >>>As I mentioned before, devicetree was a lower priority and we would definitely
> >>>submit patch to support that. Even if we update the arm_smmu_options table
> >>>with DT binding, the generic function to retrieve the MSI address regions only
> >>>works on ACPI/IORT case now.
> >>>
> >>
> >>Hi Will,
> >>
> >>Can you confirm your stance on supporting this workaround for DT as well as
> >>ACPI?
> >>
> >>For us, we now only "officially" support ACPI FW, and DT support at this
> >>point is patchy/limited. To me, adding DT support is just more errata
> >>workaround code to maintain with little useful gain.
> >
> >I basically don't like the idea of a driver that only works for one of
> >ACPI or DT yet claims to support both. I'm less fussed about functionality
> >differences (feature X is only available with firmware Y), but not working
> >around a hardware erratum that we know about is just lazy.
> >
> >So I'd prefer that we handle this in both cases, or blacklist affected
> >devices when booting with DT. Continuing as though there isn't an erratum
> >is the worst thing we can do.
>
> OK, seems reasonable.
>
> We would consider blacklisting the device, where/how to do is the question.
>
> So the errata is in the GICv3 ITS/PCI host controller, and we just use the
> in-between SMMU (driver) to provide the workaround. So my initial impression
> is that the PCI host controller would have to be blacklisted IFF behind an
> IOMMU for DT firmware in pcie-hisi.c or pci quirks framework. How does it
> sound?
If that avoids us running into the erratum, then fine by me. I'd obviously
prefer we work-around it since we know how to, but that's up to you.
> Please also note that in our SoC we have other devices behind the same SMMU,
> like storage controller, which are not affected or related to the Errata.
>
> BTW, ignoring DT support, are you happy with this patchset?
Yes, but I won't ack it without the above taken care of.
Will
next reply other threads:[~2017-08-23 16:43 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-23 16:43 Will Deacon [this message]
2017-08-23 16:43 ` [PATCH v6 3/3] iommu/arm-smmu-v3:Enable ACPI based HiSilicon erratum 161010801 Will Deacon
2017-08-23 16:43 ` Will Deacon
-- strict thread matches above, loose matches on Subject: below --
2017-09-07 9:54 [Devel] " Lorenzo Pieralisi
2017-09-07 9:54 ` Lorenzo Pieralisi
2017-09-07 9:54 ` Lorenzo Pieralisi
2017-09-05 11:07 [Devel] " John Garry
2017-09-05 11:07 ` John Garry
2017-09-05 11:07 ` John Garry
2017-09-04 17:09 [Devel] " Lorenzo Pieralisi
2017-09-04 17:09 ` Lorenzo Pieralisi
2017-09-04 17:09 ` Lorenzo Pieralisi
2017-09-01 8:46 [Devel] " John Garry
2017-09-01 8:46 ` John Garry
2017-09-01 8:46 ` John Garry
2017-08-24 15:01 [Devel] " John Garry
2017-08-24 15:01 ` John Garry
2017-08-24 15:01 ` John Garry
2017-08-24 14:35 [Devel] " Will Deacon
2017-08-24 14:35 ` Will Deacon
2017-08-24 14:35 ` Will Deacon
2017-08-23 16:55 [Devel] " John Garry
2017-08-23 16:55 ` John Garry
2017-08-23 16:55 ` John Garry
2017-08-23 14:29 [Devel] " John Garry
2017-08-23 14:29 ` John Garry
2017-08-23 14:29 ` John Garry
2017-08-23 13:24 [Devel] " Will Deacon
2017-08-23 13:24 ` Will Deacon
2017-08-23 13:24 ` Will Deacon
2017-08-23 13:17 [Devel] " John Garry
2017-08-23 13:17 ` John Garry
2017-08-23 13:17 ` John Garry
2017-08-10 17:52 [Devel] " Shameerali Kolothum Thodi
2017-08-10 17:52 ` Shameerali Kolothum Thodi
2017-08-10 17:52 ` Shameerali Kolothum Thodi
2017-08-10 17:27 [Devel] " Will Deacon
2017-08-10 17:27 ` Will Deacon
2017-08-10 17:27 ` Will Deacon
2017-08-09 10:07 [Devel] " Shameer Kolothum
2017-08-09 10:07 ` Shameer Kolothum
2017-08-09 10:07 ` Shameer Kolothum
2017-08-09 10:07 [Devel] [PATCH v6 2/3] iommu/dma: Add a helper function to reserve HW MSI address regions for IOMMU drivers Shameer Kolothum
2017-08-09 10:07 ` Shameer Kolothum
2017-08-09 10:07 ` Shameer Kolothum
2017-08-09 10:07 [Devel] [PATCH v6 1/3] ACPI/IORT: Add ITS address regions reservation helper Shameer Kolothum
2017-08-09 10:07 ` Shameer Kolothum
2017-08-09 10:07 ` Shameer Kolothum
2017-08-09 10:07 [Devel] [PATCH v6 0/3] iommu/smmu-v3: Workaround for hisilicon 161010801 erratum(reserve HW MSI) Shameer Kolothum
2017-08-09 10:07 ` Shameer Kolothum
2017-08-09 10:07 ` Shameer Kolothum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170823164301.GC590@arm.com \
--to=devel@acpica.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.