Skip to contentSkip to conversation

drm/msm: fix PM_DEVFREQ kconfig dependency warning

PATCH In review Randy Dunlap 3 participants 3 messages Mar 7, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm: fix PM_DEVFREQ kconfig dependency warning

Since DEVFREQ_GOV_SIMPLE_ONDEMAND depends on PM_DEVFREQ, the latter should either be selected or DRM_MSM should depend on PM_DEVFREQ. Since most drivers select PM_DEVFREQ instead of depending on it, add a select here to satisfy kconfig.

WARNING: unmet direct dependencies detected for DEVFREQ_GOV_SIMPLE_ONDEMAND
Depends on [n]: PM_DEVFREQ [=n]
Selected by [y]:
- DRM_MSM [=y] && HAS_IOMEM [=y] && DRM [=y] && (ARCH_QCOM || SOC_IMX5 || COMPILE_TEST [=y]) && COMMON_CLK [=y] && IOMMU_SUPPORT [=y] && (QCOM_OCMEM [=n] || QCOM_OCMEM [=n]=n) && (QCOM_LLCC [=n] || QCOM_LLCC [=n]=n) && (QCOM_COMMAND_DB [=y] || QCOM_COMMAND_DB [=y]=n)

Fixes 6563f60f14cb ("drm/msm/gpu: Add devfreq tuning debugfs")
Link lore.kernel.org/r/[email protected]
Cc Rob Clark <[email protected]>
Cc Paul Gazzillo <[email protected]>
Cc Necip Fazil Yildiran <[email protected]>
Cc Chia-I Wu <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
---
 drivers/gpu/drm/msm/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/Kconfig +1 -0
diff -- a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig
@@ -23,6 +23,7 @@ config DRM_MSM
 	select SHMEM
 	select TMPFS
 	select QCOM_SCM
+	select PM_DEVFREQ
 	select DEVFREQ_GOV_SIMPLE_ONDEMAND
 	select WANT_DEV_COREDUMP
 	select SND_SOC_HDMI_CODEC if SND_SOC
Tested-by on v1 1/1
#1 lore raw
Quoted 11 lines · Randy Dunlap

Since DEVFREQ_GOV_SIMPLE_ONDEMAND depends on PM_DEVFREQ, the latter should either be selected or DRM_MSM should depend on PM_DEVFREQ. Since most drivers select PM_DEVFREQ instead of depending on it, add a select here to satisfy kconfig.

WARNING: unmet direct dependencies detected for DEVFREQ_GOV_SIMPLE_ONDEMAND
Depends on [n]: PM_DEVFREQ [=n]
Selected by [y]:
- DRM_MSM [=y] && HAS_IOMEM [=y] && DRM [=y] && (ARCH_QCOM || SOC_IMX5 || COMPILE_TEST [=y]) && COMMON_CLK [=y] && IOMMU_SUPPORT [=y] && (QCOM_OCMEM [=n] || QCOM_OCMEM [=n]=n) && (QCOM_LLCC [=n] || QCOM_LLCC [=n]=n) && (QCOM_COMMAND_DB [=y] || QCOM_COMMAND_DB [=y]=n)

Quoted 13 lines
Fixes 6563f60f14cb ("drm/msm/gpu: Add devfreq tuning debugfs")
Link lore.kernel.org/r/[email protected]
Cc Rob Clark <[email protected]>
Cc Paul Gazzillo <[email protected]>
Cc Necip Fazil Yildiran <[email protected]>
Cc Chia-I Wu <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Dmitry Baryshkov <[email protected]>

This fixes the warning after running 'make imx_v6_v7_defconfig', thanks:

#2 lore raw
Quoted 27 lines · Fabio Estevam
Quoted 11 lines · Randy Dunlap

Since DEVFREQ_GOV_SIMPLE_ONDEMAND depends on PM_DEVFREQ, the latter should either be selected or DRM_MSM should depend on PM_DEVFREQ. Since most drivers select PM_DEVFREQ instead of depending on it, add a select here to satisfy kconfig.

WARNING: unmet direct dependencies detected for DEVFREQ_GOV_SIMPLE_ONDEMAND
Depends on [n]: PM_DEVFREQ [=n]
Selected by [y]:
- DRM_MSM [=y] && HAS_IOMEM [=y] && DRM [=y] && (ARCH_QCOM || SOC_IMX5 || COMPILE_TEST [=y]) && COMMON_CLK [=y] && IOMMU_SUPPORT [=y] && (QCOM_OCMEM [=n] || QCOM_OCMEM [=n]=n) && (QCOM_LLCC [=n] || QCOM_LLCC [=n]=n) && (QCOM_COMMAND_DB [=y] || QCOM_COMMAND_DB [=y]=n)

Quoted 13 lines
Fixes 6563f60f14cb ("drm/msm/gpu: Add devfreq tuning debugfs")
Link lore.kernel.org/r/[email protected]
Cc Rob Clark <[email protected]>
Cc Paul Gazzillo <[email protected]>
Cc Necip Fazil Yildiran <[email protected]>
Cc Chia-I Wu <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Quoted 3 lines

This fixes the warning after running 'make imx_v6_v7_defconfig', thanks:

https://patchwork.freedesktop.org/patch/523353 is the fix we actually want.. I thought I'd already pulled that into msm-fixes but it seems like it got lost somewhere.. I'll rectify that

BR,
-R