drm/vc4: Correct arithmetic for shifting between columns of SAND images#6730
drm/vc4: Correct arithmetic for shifting between columns of SAND images#6730pelwell merged 1 commit intoraspberrypi:rpi-6.12.yfrom
Conversation
|
What about this line: linux/drivers/gpu/drm/vc4/vc4_plane.c Line 1519 in c5098b3 |
|
A quick test on RPi5 shows that zooming the Interstellar trailer up to 1.10 works fine, but the display craps out with dlist errors when increasing to 1.11 zoom |
I was going to test Pi4 (which this line would affect), but checking the thread it had been reported as working fine there. |
|
OK, so it does affect Pi4 too, but it just doesn't crash. |
Commit 69dbba7 ("drm/vc4: Add algorithmic handling for SAND") lost a multiplication by the tile width when doing the pointer arithmetic for cropping off columns for vc6. Correct that computation. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
Thanks, zooming on RPi4 looks fine now after the update. But RPi5 still has the dlist issue. Working: Zoom set to 1.10 Not working, zoom set to 1.11, dmesg shows dlist errors |
Yes. But this PR fixes a clear bug and so is worth merging. |
|
Sure, I just noticed during testing that the dlist issue is still present and that the maximum working zoom seems to have changed from 1.20 before to 1.10 with this change and thought it's worth mentioning. |
|
As I wrote on Slack, I'm suspecting that the dlist issue is HVS underruns resulting in no EOF interrupts, and therefore no cleanup. That's nothing to do with this PR. On Raspberry Pi OS I was zooming across the full range whilst playing Interstellar on a Pi5 8GB (C1), and had no issues. |
kernel: fixup! dmaengine: dw-axi-dmac: Fixes for RP1 See: raspberrypi/linux#6729 kernel: drm/vc4: Correct arithmetic for shifting between columns of SAND images See: raspberrypi/linux#6730 kernel: Adding Pisound Micro kernel module based on rpi-6.12.y See: raspberrypi/linux#6731 kernel: Fix two more RP1 DMA bugs See: raspberrypi/linux#6734 kernel: dts: bcm2712-rpi: Add uart0_nodma See: raspberrypi/linux#6365
kernel: fixup! dmaengine: dw-axi-dmac: Fixes for RP1 See: raspberrypi/linux#6729 kernel: drm/vc4: Correct arithmetic for shifting between columns of SAND images See: raspberrypi/linux#6730 kernel: Adding Pisound Micro kernel module based on rpi-6.12.y See: raspberrypi/linux#6731 kernel: Fix two more RP1 DMA bugs See: raspberrypi/linux#6734 kernel: dts: bcm2712-rpi: Add uart0_nodma See: raspberrypi/linux#6365
Commit 69dbba7 ("drm/vc4: Add algorithmic handling for SAND") lost a multiplication by the tile width when doing the pointer arithmetic for cropping off columns for vc6.
Correct that computation.
@popcornmix - fixes your Kodi zooming on Pi5.