Re: [PATCH 0/6] rust: iommu: add a paging domain abstraction
From: Daniel Almeida
Date: Wed Nov 18 2026 - 11:01:23 EST
> On 18 Nov 2026, at 12:55, Daniel Almeida <daniel.almeida@xxxxxxxxxxxxx> wrote:
>
>>
>>
>>>
>>>> The fault handler is used in the same way it is used in GPU drivers: to kill
>>>> sessions if they fault. This way the driver can simply refuse further work from
>>>> a misbehaving client, for example. It is also the natural place to enqueue a
>>>> reset if the codec hardware is frozen as a result of the fault.
>>>
>>> IIRC no GPU driver does that, they hook the obsolete fault handler not
>>> supported in new iommu drivers not the new PRI based one... IDK we
>>> have even wired this up to work this way.
>>>
>>> It is nicer if the HW can tell you it faulted rather than expect the
>>> iommu to do it.
>>
>> We most likely don't need that, and should drop it from this series. We have
>> never used the fault handler in any linux-media codec in the past, the HW would
>> always endup producing an IRQ with a error or a timeout. Using the fault handler
>> would probably be a bit racy too. Pausing work from a faulty source though isn't
>> a bad idea, but more of a nice future addition, assuming it can work in a non-
>> racy way.
>>
>> Nicolas
Sorry, forgot to address the "racy" part: if GPU drivers can do it, we can do
it too. I wouldn't worry about race conditions if we copy their pattern.
— Daniel