[ Upstream commit 6437a549ae178a3f5a5c03e983f291ebcdc2bbc7 ]
On ARMv5 and earlier, a randconfig build can still run into
WARNING: unmet direct dependencies detected for IOMMU_IO_PGTABLE_LPAE
Depends on [n]: IOMMU_SUPPORT [=y] && (ARM [=y] || ARM64 || COMPILE_TEST [=y]) && !GENERIC_ATOMIC64 [=y]
Selected by [y]:
- DRM_PANFROST [=y] && HAS_IOMEM [=y] && DRM [=y] && (ARM [=y] || ARM64 || COMPILE_TEST [=y] && !GENERIC_ATOMIC64 [=y]) && MMU [=y]
Rework the dependencies to always require a working cmpxchg64.
Fixes: db594ba3fc
("drm/panfrost: depend on !GENERIC_ATOMIC64 when using COMPILE_TEST")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230117164456.1591901-1-arnd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
18 lines
510 B
Plaintext
18 lines
510 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
config DRM_PANFROST
|
|
tristate "Panfrost (DRM support for ARM Mali Midgard/Bifrost GPUs)"
|
|
depends on DRM
|
|
depends on ARM || ARM64 || COMPILE_TEST
|
|
depends on !GENERIC_ATOMIC64 # for IOMMU_IO_PGTABLE_LPAE
|
|
depends on MMU
|
|
select DRM_SCHED
|
|
select IOMMU_SUPPORT
|
|
select IOMMU_IO_PGTABLE_LPAE
|
|
select DRM_GEM_SHMEM_HELPER
|
|
select PM_DEVFREQ
|
|
select DEVFREQ_GOV_SIMPLE_ONDEMAND
|
|
help
|
|
DRM driver for ARM Mali Midgard (T6xx, T7xx, T8xx) and
|
|
Bifrost (G3x, G5x, G7x) GPUs.
|