]> git.ipfire.org Git - thirdparty/linux.git/commit
dma-debug: track cache clean flag in entries
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Dec 2025 19:38:31 +0000 (14:38 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 2 Jan 2026 11:22:49 +0000 (06:22 -0500)
commitd5d846513128c1a3bc2f2d371f6e903177dea443
tree292279442c3f294bb336862f5ec1fd9f1e4775f5
parente21dd666e4af829c6a26d830cca8bf4839878297
dma-debug: track cache clean flag in entries

If a driver is buggy and has 2 overlapping mappings but only
sets cache clean flag on the 1st one of them, we warn.
But if it only does it for the 2nd one, we don't.

Fix by tracking cache clean flag in the entry.

Message-ID: <0ffb3513d18614539c108b4548cdfbc64274a7d1.1767601130.git.mst@redhat.com>
Reviewed-by: Petr Tesarik <ptesarik@suse.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
kernel/dma/debug.c