[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3caf4418-8ee2-4a61-b9ff-74b24155e436@quicinc.com>
Date: Wed, 22 Jan 2025 11:09:39 +0530
From: Charan Teja Kalla <quic_charante@...cinc.com>
To: Robin Murphy <robin.murphy@....com>, Will Deacon <will@...nel.org>
CC: <joro@...tes.org>, <jgg@...pe.ca>, <iommu@...ts.linux.dev>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH RFC] iommu: fix wrong DMA ops for iommu device
On 1/20/2025 5:45 PM, Charan Teja Kalla wrote:
>> ----->8-----
>> diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
>> index d1af0547f553..8d90d196e38d 100644
>> --- a/drivers/iommu/iommu.c
>> +++ b/drivers/iommu/iommu.c
>> @@ -3120,6 +3120,11 @@ int iommu_device_use_default_domain(struct device
>> *dev)
>> return 0;
>>
>> mutex_lock(&group->mutex);
>> + /* We may race against bus_iommu_probe() finalising groups here */
>> + if (!group->default_domain) {
>> + ret = -EPROBE_DEFER;
>> + goto unlock_out;
>> + }
> Please lmk If I can submit this as V2 patch, with your name as Suggested-by?
I missed to mention that this patch is fixing the problem we are
seeing..Thanks.
Powered by blists - more mailing lists