linux/drivers/gpu/drm/panfrost
Alyssa Rosenzweig 3e2926f875 drm/panfrost: Add AFBC_FEATURES parameter
The value of the AFBC_FEATURES register is required by userspace to
determine AFBC support on Bifrost. A user on our IRC channel (#panfrost)
reported a workload that raised a fault on one system's Mali G31 but
worked flawlessly with another system's Mali G31. We determined the
cause to be missing AFBC support on one vendor's Mali implementation --
it turns out AFBC is optional on Bifrost!

Whether AFBC is supported or not is exposed in the AFBC_FEATURES
register on Bifrost, which reads back as 0 on Midgard. A zero value
indicates AFBC is fully supported, provided the architecture itself
supports AFBC, allowing backwards-compatibility with Midgard. Bits 0 and
15 indicate that AFBC support is absent for texturing and rendering
respectively.

The user experiencing the fault reports that AFBC_FEATURES reads back
0x10001 on their system, confirming the architectural lack of AFBC.
Userspace needs this parameter to know to disable AFBC on that
chip, and perhaps others.

v2: Fix typo from copy-paste fail.

v3: Bump the UABI version. This commit was cherry-picked from another
series so chalking this up to a rebase fail.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210604130011.3203-1-alyssa.rosenzweig@collabora.com
2021-06-04 16:16:04 +01:00
..
Kconfig
Makefile
panfrost_devfreq.c drm/panfrost: devfreq: Disable devfreq when num_supplies > 1 2021-05-14 16:29:14 +01:00
panfrost_devfreq.h drm for 5.13-rc1 2021-04-28 10:01:40 -07:00
panfrost_device.c drm/panfrost: Remove redundant error printing in panfrost_device_init() 2021-05-12 16:32:10 +01:00
panfrost_device.h drm/panfrost: Add AFBC_FEATURES parameter 2021-06-04 16:16:04 +01:00
panfrost_drv.c drm/panfrost: Add AFBC_FEATURES parameter 2021-06-04 16:16:04 +01:00
panfrost_features.h
panfrost_gem_shrinker.c drm/panfrost: Fix a deadlock between the shrinker and madvise path 2020-11-03 09:21:52 +01:00
panfrost_gem.c drm/shmem-helper: Use cached mappings by default 2020-11-24 09:10:21 +01:00
panfrost_gem.h drm/panfrost: Fix a deadlock between the shrinker and madvise path 2020-11-03 09:21:52 +01:00
panfrost_gpu.c drm/panfrost: Add AFBC_FEATURES parameter 2021-06-04 16:16:04 +01:00
panfrost_gpu.h drm/panfrost: add amlogic reset quirk callback 2020-09-21 10:13:50 +01:00
panfrost_issues.h drm/panfrost: Add errata descriptions from kbase 2019-08-23 12:16:27 -05:00
panfrost_job.c drm/scheduler: provide scheduler score externally 2021-02-05 10:47:11 +01:00
panfrost_job.h drm/panfrost: Add the panfrost_gem_mapping concept 2020-01-21 10:32:55 -06:00
panfrost_mmu.c drm/panfrost: Stay in the threaded MMU IRQ handler until we've handled all IRQs 2021-02-15 09:43:33 +01:00
panfrost_mmu.h drm/panfrost: Add the panfrost_gem_mapping concept 2020-01-21 10:32:55 -06:00
panfrost_perfcnt.c drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends 2020-11-09 09:19:24 +01:00
panfrost_perfcnt.h drm/panfrost: Open/close the perfcnt BO 2019-12-06 11:06:20 -06:00
panfrost_regs.h drm/panfrost: Add AFBC_FEATURES parameter 2021-06-04 16:16:04 +01:00
TODO drm/panfrost: Remove commented out call to panfrost_core_dump 2019-10-09 13:36:56 -05:00