[PATCH v1 2/3] iommu/vt-d: Allocate domain info for real DMA sub-devices

Lu Baolu baolu.lu at linux.intel.com
Thu May 28 07:14:55 UTC 2020


On 2020/5/28 15:01, Lu Baolu wrote:
> On 2020/5/28 0:56, Jon Derrick wrote:
>> Sub-devices of a real DMA device might exist on a separate segment than
>> the real DMA device and its IOMMU. These devices should still have a
>> valid device_domain_info, but the current dma alias model won't
>> allocate info for the subdevice.
>>
>> This patch adds a segment member to struct device_domain_info and uses
>> the sub-device's BDF so that these sub-devices won't alias to other
>> devices.
>>
>> Signed-off-by: Jon Derrick <jonathan.derrick at intel.com>
> 
> Acked-by: Lu Baolu <baolu.lu at linux.intel.com>

And a fix tag, so that it could be picked up for v5.6+ stable kernel.

Fixes: 2b0140c69637e ("iommu/vt-d: Use pci_real_dma_dev() for mapping")

Best regards,
baolu


More information about the iommu mailing list