Skip to contentSkip to conversation

drm/msm: fix new Konfig dependency warning

PATCH In review Randy Dunlap 2 participants 4 messages Feb 19, 2023

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

PATCH 1/1 drm/msm: fix new Konfig dependency warning

DEVFREQ_GOV_SIMPLE_ONDEMAND depends on PM_DEVFREQ, so in order to select the former safely, this symbol should also depend on PM_DEVFREQ to avoid a Kconfig dependency warning.

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

Fixes 6563f60f14cb ("drm/msm/gpu: Add devfreq tuning debugfs")
Cc Rob Clark <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[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
@@ -9,6 +9,7 @@ config DRM_MSM
 	depends on QCOM_OCMEM || QCOM_OCMEM=n
 	depends on QCOM_LLCC || QCOM_LLCC=n
 	depends on QCOM_COMMAND_DB || QCOM_COMMAND_DB=n
+	depends on PM_DEVFREQ
 	select IOMMU_IO_PGTABLE
 	select QCOM_MDT_LOADER if ARCH_QCOM
 	select REGULATOR
#1 lore raw
Quoted 10 lines · Randy Dunlap

DEVFREQ_GOV_SIMPLE_ONDEMAND depends on PM_DEVFREQ, so in order to select the former safely, this symbol should also depend on PM_DEVFREQ to avoid a Kconfig dependency warning.

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

Actually, I fixed devfreq[1] so that we no longer depend on DEVFREQ_GOV_SIMPLE_ONDEMAND .. probably we should just drop DEVFREQ_GOV_SIMPLE_ONDEMAND from the kconfig instead, sorry I forgot to do that already

BR,
-R

[1] https://patchwork.freedesktop.org/series/113232/

Quoted 26 lines
Fixes 6563f60f14cb ("drm/msm/gpu: Add devfreq tuning debugfs")
Cc Rob Clark <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
---
 drivers/gpu/drm/msm/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff -- a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig

drivers/gpu/drm/msm/Kconfig +1 -0
@@ -9,6 +9,7 @@ config DRM_MSM
        depends on QCOM_OCMEM || QCOM_OCMEM=n
        depends on QCOM_LLCC || QCOM_LLCC=n
        depends on QCOM_COMMAND_DB || QCOM_COMMAND_DB=n
+       depends on PM_DEVFREQ
        select IOMMU_IO_PGTABLE
        select QCOM_MDT_LOADER if ARCH_QCOM
        select REGULATOR
#2 lore raw
Quoted 12 lines · Rob Clark
Quoted 10 lines · Randy Dunlap

DEVFREQ_GOV_SIMPLE_ONDEMAND depends on PM_DEVFREQ, so in order to select the former safely, this symbol should also depend on PM_DEVFREQ to avoid a Kconfig dependency warning.

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

Quoted 4 lines

Actually, I fixed devfreq[1] so that we no longer depend on DEVFREQ_GOV_SIMPLE_ONDEMAND .. probably we should just drop DEVFREQ_GOV_SIMPLE_ONDEMAND from the kconfig instead, sorry I forgot to do that already

OK, I'll resend the patch with that change, unless you want to handle it...

Thanks.

Quoted 31 lines

BR,
-R

[1] https://patchwork.freedesktop.org/series/113232/

Quoted 26 lines
Fixes 6563f60f14cb ("drm/msm/gpu: Add devfreq tuning debugfs")
Cc Rob Clark <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
---
 drivers/gpu/drm/msm/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff -- a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig

drivers/gpu/drm/msm/Kconfig +1 -0
@@ -9,6 +9,7 @@ config DRM_MSM
        depends on QCOM_OCMEM || QCOM_OCMEM=n
        depends on QCOM_LLCC || QCOM_LLCC=n
        depends on QCOM_COMMAND_DB || QCOM_COMMAND_DB=n
+       depends on PM_DEVFREQ
        select IOMMU_IO_PGTABLE
        select QCOM_MDT_LOADER if ARCH_QCOM
        select REGULATOR
Signature · 1 line
~Randy
#3 lore raw
Quoted 16 lines · Randy Dunlap
Quoted 12 lines · Rob Clark
Quoted 10 lines · Randy Dunlap

DEVFREQ_GOV_SIMPLE_ONDEMAND depends on PM_DEVFREQ, so in order to select the former safely, this symbol should also depend on PM_DEVFREQ to avoid a Kconfig dependency warning.

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

Quoted 6 lines
Quoted 4 lines

Actually, I fixed devfreq[1] so that we no longer depend on DEVFREQ_GOV_SIMPLE_ONDEMAND .. probably we should just drop DEVFREQ_GOV_SIMPLE_ONDEMAND from the kconfig instead, sorry I forgot to do that already

OK, I'll resend the patch with that change, unless you want to handle it...

Go for it, thx

BR,
-R

Quoted 36 lines

Thanks.

Quoted 20 lines

BR,
-R

[1] https://patchwork.freedesktop.org/series/113232/

Quoted 15 lines
Fixes 6563f60f14cb ("drm/msm/gpu: Add devfreq tuning debugfs")
Cc Rob Clark <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
---
 drivers/gpu/drm/msm/Kconfig |    1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

drivers/gpu/drm/msm/Kconfig config DRM_MSM · line 15

Quoted 11 lines

diff -- a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig

drivers/gpu/drm/msm/Kconfig +1 -0
@@ -9,6 +9,7 @@ config DRM_MSM
        depends on QCOM_OCMEM || QCOM_OCMEM=n
        depends on QCOM_LLCC || QCOM_LLCC=n
        depends on QCOM_COMMAND_DB || QCOM_COMMAND_DB=n
+       depends on PM_DEVFREQ
        select IOMMU_IO_PGTABLE
        select QCOM_MDT_LOADER if ARCH_QCOM
        select REGULATOR

--
~Randy