Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1740791
| From | Joerg Roedel <joro@8bytes.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC] iommu: arm-smmu: stall support |
| Date | 2017-09-27 16:40 +0200 |
| Message-ID | <uulFf-4nX-7@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <uss8b-4hz-59@gated-at.bofh.it> <ussUz-4xr-37@gated-at.bofh.it> <usBbs-16M-35@gated-at.bofh.it> <uujtM-2gN-7@gated-at.bofh.it> <uukSS-3A0-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Jean,
On Wed, Sep 27, 2017 at 02:49:00PM +0100, Jean-Philippe Brucker wrote:
> I like this approach. When the device driver registers a fault handler,
> it also tells when it would like to be called (either in atomic context,
> blocking context, or both).
Is there a use-case for calling the same handler from both contexts?
> enum iommu_fault_status {
> IOMMU_FAULT_STATUS_NONE = 0,
> IOMMU_FAULT_STATUS_FAILURE,
> IOMMU_FAULT_STATUS_INVALID,
> IOMMU_FAULT_STATUS_HANDLED,
> IOMMU_FAULT_STATUS_IGNORE,
> };
This all certainly makes sense for the PRI/PASID case, but I don't think
that it makes sense yet to extend the existing report_iommu_fault()
interface to also handle PASID/PPR faults.
The later needs a lot more parameters to successfully handle a fault. In
the AMD driver these are all in 'struct fault', the relevant members
are:
u64 address;
u16 devid;
u16 pasid;
u16 tag;
u16 finish;
u16 flags;
And passing all this through the existing interface which also handles
non-pasid faults is cumbersome. So I'd like to keep the PASID/PPR
interface separate from the old one for now.
Regards,
Joerg
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [RFC] iommu: arm-smmu: stall support Joerg Roedel <joro@8bytes.org> - 2017-09-27 14:20 +0200
Re: [RFC] iommu: arm-smmu: stall support Jean-Philippe Brucker <jean-philippe.brucker@arm.com> - 2017-09-27 15:50 +0200
Re: [RFC] iommu: arm-smmu: stall support Joerg Roedel <joro@8bytes.org> - 2017-09-27 16:40 +0200
Re: [RFC] iommu: arm-smmu: stall support Rob Clark <robdclark@gmail.com> - 2017-09-27 18:20 +0200
csiph-web