[PATCH 0/2] drm/panfrost: partial support of T628 GPUs

2021-12-24 Thread asheplyakov
From: Alexey Sheplyakov Hello, these patches address some problems which prevent panfrost from working with Mali T628 GPUs: - incomplete/incorrect mmu memory attributes - wrong jobs affinity on dual core group GPUs With these patches panfrost is able to drive mali T628 (r1p0) GPU on some armv8

[PATCH 2/2] drm/panfrost: adjusted job affinity for dual core group GPUs

2021-12-24 Thread asheplyakov
From: Alexey Sheplyakov On a dual core group GPU it's not OK to run some jobs on any core. For such jobs the following affinity rule must be satisfied: job slot 2 must target the core group 1, and slots 0, 1 - the core group 0, respectively. The kernel driver itself can't guess which jobs need a

[PATCH 1/2] drm/panfrost: mmu: improved memory attributes

2021-12-24 Thread asheplyakov
From: Alexey Sheplyakov T62x/T60x GPUs are known to not work with panfrost as of now. One of the reasons is wrong/incomplete memory attributes which the panfrost driver sets in the page tables: - MEMATTR_IMP_DEF should be 0x48ULL, not 0x88ULL. 0x88ULL is MEMATTR_OUTER_IMP_DEF - MEMATTR_FORCE_C