[PATCH v5 04/18] iommu: Convert gdev->blocked from bool to enum gdev_blocked

Jason Gunthorpe jgg at nvidia.com
Thu Aug 27 13:31:31 PDT 2026


On Thu, 02 Jul 2026 21:06:29 -0700, Nicolin Chen <nicolinc at nvidia.com> wrote:
> The gdev->blocked flag tracks whether a device is individually being held
> in the group->blocking_domain while group->domain is retained. Up to now,
> a PCI reset in flight is the only producer, so a bool suffices.
> 
> Subsequent changes will add more reasons to keep a device blocked, e.g. a
> failed-reset case that must not auto-unblock, or a driver-side quarantine
> for a hardware fault. These reasons are cleared by different events, which
> a single bool cannot encode.
> 
> [...]

Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>

-- 
Jason



More information about the linux-arm-kernel mailing list