Repository navigation
drm/msm: Enable CLX (Current Limit Extension) on A840 and Adreno X2-85 (Glymur) - #1525
hdhoke_QCOM (hdhoke) wants to merge 5 commits into
Conversation
Add support for Current Limit Extension (CLX) feature found on a few A8x GPUs. This feature is required to limit the peak current consumption to avoid HW spec violation on GX/MX rails. Add the necessary HFI interface support to pass the recommended CLX and IFF/PCLX limits tables to the GMU. Per-GPU configuration is consumed from the catalog entries. Link: https://lore.kernel.org/lkml/20260516-a8xx-clx-support-v1-1-62508bf651ac@oss.qualcomm.com/ Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com> Signed-off-by: Harsh Dhoke <hdhoke@qti.qualcomm.com>
Add the A840 CLX domain table and the IFF/PCLX limits table to the catalog. With the HFI plumbing in place, this enables the Current Limit Extension (CLX) feature on Adreno 840. Link: https://lore.kernel.org/lkml/20260516-a8xx-clx-support-v1-2-62508bf651ac@oss.qualcomm.com/ Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Harsh Dhoke <hdhoke@qti.qualcomm.com>
Add the CLX domain table and the IFF/PCLX limits tables to the catalog to enable CLX feature support on Adreno X2-85 GPU present in the Glymur chipset. Link: https://lore.kernel.org/lkml/20260516-a8xx-clx-support-v1-3-62508bf651ac@oss.qualcomm.com/ Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Harsh Dhoke <hdhoke@qti.qualcomm.com>
The CLX (Current Limit Extension) feature also requires the secure world to enable it via the GPU init regs SCM call. Without the QCOM_SCM_GPU_CLX_EN_REQ flag, the CLX tables sent to the GMU over HFI are not effective. Set QCOM_SCM_GPU_CLX_EN_REQ in the SCM request on GPUs that have a CLX table in their catalog entry. Link: https://lore.kernel.org/lkml/20261024-assorted-fixes-oct-v1-7-2977f974ddb7@oss.qualcomm.com/ Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com> Signed-off-by: Harsh Dhoke <hdhoke@qti.qualcomm.com>
…c_state Until rpmhpd's sync_state every vote is clamped to the highest corner, so that hardware the bootloader left running keeps the rail level it needs until its driver takes over. Nothing the bootloader leaves behind runs on the GPU rails, but the clamp hits them anyway: the GPU clock controller's probe runtime-resumes and suspends its GFX and GMXC domains, and from then on both rails are pinned at their highest corner until sync_state. On Glymur gfx.lvl has 14 levels and the clamp holds the rail at the top one, 0x1d0, while the GMU's own performance table ends at level 11, 0x1c4. With the GPU driver and firmware built in, the GMU boots long before sync_state, and its CLX DCVS calibration does not survive a gfx rail held that high: the firmware gives up with HFI_F2H_MSG_ERROR 0x007306c7 (ResMgrCalibrateDcvsLvl), the first HFI_H2F_MSG_GX_BW_PERF_VOTE times out and the first GPU init fails. On the Lenovo Yoga Slim 7x Gen 11 this means the compositor cannot start at first login. Pinning gfx at level 11 or 12 instead fails the same way, level 10 and below boot fine, and pinning gmxc alone has no effect. Leave gfx and gmxc out of the clamp: they have no bootloader-configured consumer to protect, and the GMU votes them through its own RSC. Link: https://lore.kernel.org/lkml/20261021080517.2161-1-okerixx@gmail.com/ Acked-by: Akhil P Oommen <akhilpo@oss.qualcomm.com> Signed-off-by: Oleg Keri <okerixx@gmail.com> Signed-off-by: Harsh Dhoke <hdhoke@qti.qualcomm.com>
Test resultsWorkflow run: 45399016746 attempt 1 Known failures configured: 0
Test Matrix
Failure summaryUnexpected failures
Result: blocked because unexpected failures were found. |
LAVA Failed Case Triage SummaryPR: #1525 Job 290717 | SoC glymur-qli-crdLAVA job: https://lava-oss.qualcomm.com/scheduler/job/290717 Failed test cases in LAVA job 290717 (SoC: glymur-qli-crd).
|
|
Merge Check Failed: No Component Found Configuration Error: No component found for branch 'qcom-7.3'. There is no component associated with the provided branch in Polaris. Please verify the branch configuration. Branch: |
2 similar comments
|
Merge Check Failed: No Component Found Configuration Error: No component found for branch 'qcom-7.3'. There is no component associated with the provided branch in Polaris. Please verify the branch configuration. Branch: |
|
Merge Check Failed: No Component Found Configuration Error: No component found for branch 'qcom-7.3'. There is no component associated with the provided branch in Polaris. Please verify the branch configuration. Branch: |
This enables the Current Limit Extension (CLX) feature on Adreno A840 and
Adreno X2-85 (Glymur), and fixes two issues that CLX depends on.
Changes
and IFF/PCLX limit tables to the GMU over HFI. Per-GPU configuration is
read from the catalog.
and IFF/PCLX limits table to the catalog.
table and IFF/PCLX limits tables for X2-85 in the Glymur chipset.
QCOM_SCM_GPU_CLX_EN_REQ in the GPU init SCM request on GPUs with a CLX
table. The CLX tables sent over HFI are not effective without it.
Until sync_state, rpmhpd clamps every vote to the highest corner. The GPU
clock controller's probe pins the GFX and GMXC rails at the top corner
this way. On Glymur the GMU then fails its CLX DCVS calibration and the
first GPU init fails. This change leaves gfx and gmxc out of the clamp.
Validation: Changes were validated on Glymur CRD and no regression was observed.
Backport:
qualcomm-linux/kernel-topics#2311
qualcomm-linux/kernel-topics#2315
CRs-fixed: 4728628