]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/etnaviv: Improve VA, PA, SIZE alignment checking
authorSui Jingfeng <sui.jingfeng@linux.dev>
Fri, 15 Nov 2024 12:32:46 +0000 (20:32 +0800)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 3 Dec 2024 17:30:32 +0000 (18:30 +0100)
commita807cb22adc490ef33304e52c70ab65b3f19fe20
treeb72ed2cd647f6bea54f8172a6def07bf4783fd7f
parent0078a6f4843647d4792433eb8f0f505cd4c2b18b
drm/etnaviv: Improve VA, PA, SIZE alignment checking

Alignment checking is only needed to be done in the upper caller function.
If those address and sizes are able to pass the check, it will certainly
pass the same test in the etnaviv_context_unmap() function. We don't need
examine it more than once.

Remove redundant alignment tests, move the those useless to upper caller
function.

Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_mmu.c