diff options
| author | Brajesh Gupta <brajesh.gupta@imgtec.com> | 2026-09-22 09:56:56 +0530 |
|---|---|---|
| committer | Brajesh Gupta <brajesh.gupta@imgtec.com> | 2026-09-24 14:56:48 +0530 |
| commit | 0a8224058a5835297dcf4a46bbcd16f77a9fe424 (patch) | |
| tree | 83df8c4b839a62f635cabc8a75bf57740b825503 /tools/perf/scripts/python/flamegraph.py | |
| parent | 7b824c293a6b56de8285a97984c507cba56bc4c4 (diff) | |
| download | linux-next-0a8224058a5835297dcf4a46bbcd16f77a9fe424.tar.gz linux-next-0a8224058a5835297dcf4a46bbcd16f77a9fe424.zip | |
drm/imagination: Fix page count for page table for map() interface
The GPU virtual start address wasn't included in the calculation for the
amount of page tables required for mapping a BO object in map() interface.
It resulted in map failure later due to not enough pages at L0/L1 level.
Update pvr_mmu_op_context_create() interface to pass device address as well
to allow correct calculation for page table memory.
If L0 tables cover 2MB (0x200000), the range defined by device address
0x80001ff000 (general heap at 2MB - 4KB) and size 0x2000 (two 4KB pages)
requires two L0 pages to be mapped, but without the base
address a range of 0x2000 computes to a single L0 page which is not enough.
Fixes: ff5f643de0bf ("drm/imagination: Add GEM and VM related code")
Reviewed-by: Alexandru Dadu <alexandru.dadu@imgtec.com>
Reviewed-by: Alessio Belle <alessio.belle@imgtec.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260922-mmu_fix-v4-2-12f1a871456a@imgtec.com
Signed-off-by: Brajesh Gupta <brajesh.gupta@imgtec.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
