Re: [PATCH] iommu/amd: Enhance "Command buffer timeout" error message
From: Vasant Hegde
Date: Mon Nov 23 2026 - 03:32:12 EST
On 10/18/2026 6:11 PM, Dheeraj Kumar Srivastava wrote:
> Current IOMMU driver prints "Command buffer timeout" error message with
> insufficient information to further debug the issue.
>
> Enhance the error message as follows:
> 1. Log the IOMMU PCI device ID in the error message.
> 2. With the "amd_iommu_dump=1" kernel command line option, dump the
> entire command buffer entries, including the Head and Tail offsets.
>
> Consolidate the timeout logging and the command buffer dump into a
> single helper and use DO_ONCE_LITE() to dump the command buffer only
> once to avoid dmesg spam. While at it, apply the same reporting to the
> completion-wait timeout path as well.
>
> Signed-off-by: Dheeraj Kumar Srivastava <dheerajkumar.srivastava@xxxxxxx>
Applied, thanks!
-Vasant