]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/msm: adreno: dynamically generate GMU bw table
authorNeil Armstrong <neil.armstrong@linaro.org>
Tue, 17 Dec 2024 14:51:16 +0000 (15:51 +0100)
committerRob Clark <robdclark@chromium.org>
Fri, 3 Jan 2025 15:20:27 +0000 (07:20 -0800)
commit8c1b9451d96b972d0c3b5a5df777dc21bf191b36
tree1df5c060bdc1d9a39bb897631e57e054f3fa17e7
parentff4a7f6bff527491b8a937ae4633b7066ce301f2
drm/msm: adreno: dynamically generate GMU bw table

The Adreno GPU Management Unit (GMU) can also scale the ddr
bandwidth along the frequency and power domain level, but for
now we statically fill the bw_table with values from the
downstream driver.

Only the first entry is used, which is a disable vote, so we
currently rely on scaling via the linux interconnect paths.

Let's dynamically generate the bw_table with the vote values
previously calculated from the OPPs.

Those entries will then be used by the GMU when passing the
appropriate bandwidth level while voting for a gpu frequency.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Akhil P Oommen <quic_akhilpo@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/629396/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_hfi.c