Re: [PATCH 1/1] iommu/vt-d: Don't set then immediately clear in prq_event_thread()

From: Lu Baolu
Date: Thu Mar 18 2021 - 21:17:56 EST


Hi Joerg,

On 3/18/21 6:10 PM, Joerg Roedel wrote:
Hi Baolu,

On Tue, Mar 09, 2021 at 08:46:41AM +0800, Lu Baolu wrote:
The private data field of a page group response descriptor is set then
immediately cleared in prq_event_thread(). Fix this by moving clearing
code up.

Fixes: 5b438f4ba315d ("iommu/vt-d: Support page request in scalable mode")
Cc: Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx>
Reviewed-by: Liu Yi L <yi.l.liu@xxxxxxxxx>
Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>

Does this fix an actual bug? If so, please state it in the commit

It will cause real problem according to the VT-d spec. I haven't got a
chance run this on a real hardware yet. I'll add a commit message to
explain why this will cause problem.

message and also fix the subject line to state what is set/cleared.


Sure!

Thanks,

Joerg


Best regards,
baolu