mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
drm/panfrost: Avoid cache flush after perfcnt sample in fully coherent systems
If the GPU and CPU are fully coherent, then there's no need to flush the GPU caches after a perfcnt sample is made available. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Steven Price <steven.price@arm.com> Link: https://patch.msgid.link/20261012-claude-fixes-v15-13-bc0a6c498553@collabora.com Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
This commit is contained in:
parent
711a34a56d
commit
9373cdddb5
|
|
@ -52,7 +52,10 @@ void panfrost_perfcnt_clean_cache_done(struct panfrost_device *pfdev)
|
|||
|
||||
void panfrost_perfcnt_sample_done(struct panfrost_device *pfdev)
|
||||
{
|
||||
gpu_write(pfdev, GPU_CMD, GPU_CMD_CLEAN_CACHES);
|
||||
if (pfdev->features.selected_coherency != COHERENCY_ACE)
|
||||
gpu_write(pfdev, GPU_CMD, GPU_CMD_CLEAN_CACHES);
|
||||
else
|
||||
complete(&pfdev->perfcnt->dump_comp);
|
||||
}
|
||||
|
||||
static int panfrost_perfcnt_dump_locked(struct panfrost_device *pfdev)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user