Re: [PATCH v2 0/3] drm/panfrost: Fix poweroff and sync IRQs for suspend

From: Marek Szyprowski
Date: Wed Nov 29 2023 - 12:31:31 EST



On 28.11.2023 13:45, AngeloGioacchino Del Regno wrote:
> This series contains a fast fix for the basic GPU poweroff functionality
> and goes further by implementing interrupt masking and synchronization
> before suspend.
>
> For more information, please look at the conversation at [1], which
> explains the regression seen with the poweroff commit and the initial
> approaches taken to solve that.

Just to let You know, as there is still some discussion about
beautifying the final code, I've tested this version on my test hardware
and everything works fine again! Thanks!

Tested-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>


> Cheers!
>
> [1]: https://lore.kernel.org/all/20231123095320.41433-1-angelogioacchino.delregno@xxxxxxxxxxxxx/
>
> AngeloGioacchino Del Regno (3):
> drm/panfrost: Ignore core_mask for poweroff and disable PWRTRANS irq
> drm/panfrost: Add gpu_irq, mmu_irq to struct panfrost_device
> drm/panfrost: Synchronize and disable interrupts before powering off
>
> drivers/gpu/drm/panfrost/panfrost_device.c | 4 +++
> drivers/gpu/drm/panfrost/panfrost_device.h | 9 +++++++
> drivers/gpu/drm/panfrost/panfrost_gpu.c | 29 +++++++++++++++-------
> drivers/gpu/drm/panfrost/panfrost_gpu.h | 1 +
> drivers/gpu/drm/panfrost/panfrost_job.c | 18 +++++++++++---
> drivers/gpu/drm/panfrost/panfrost_job.h | 1 +
> drivers/gpu/drm/panfrost/panfrost_mmu.c | 27 ++++++++++++++------
> drivers/gpu/drm/panfrost/panfrost_mmu.h | 1 +
> 8 files changed, 70 insertions(+), 20 deletions(-)
>
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland