Message ID | 20230324095502.3289094-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp504182vqo; Fri, 24 Mar 2023 03:04:55 -0700 (PDT) X-Google-Smtp-Source: AKy350bxeN/3d/hAEOlzOnXbX6X1OGS/+hd2s3Fu6aawgOjK5dpZY8vhCIGUi0cDTCaaxBkZ6Oy0 X-Received: by 2002:a17:90b:4c86:b0:237:c565:7bc6 with SMTP id my6-20020a17090b4c8600b00237c5657bc6mr2255576pjb.10.1679652295320; Fri, 24 Mar 2023 03:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679652295; cv=none; d=google.com; s=arc-20160816; b=JBtpWxhQ8J8MUZuQgZwD11/kPtxEIIBPEKF0sEaAec0CtQzCoN/APkk/r61joSTtby orqa0RPFXmippk7ZowUyOUNP0DJHIzbp03mhzrNljPl1/4fT+1LMujsmWMBRGmesHWgM 3ukj43KLOuhtQ9Ub7WQK9agb5frMMyaG2Mua8pBRkU/3W/FRriCP3M8Otrl42/YR40o5 MZRkXbns7Ghy4noT7kxjMDxT4ADaR7YEAL8k5quIKTEl1ToB0VDmLoU4FlZo2aZZglc/ ODZS6n1NOXX88LCk44zG4yWVp02u1FTFoATXtLfnq/YeXsNMv7S8atJjk9pdx5naLRvi hYdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=CjumLoNQjUrlMINDxvMGBrJL4X/+N6R6nfJdQ2xzJIs=; b=KSkRBKYBU2gRX2MRtMWgF7Yc2UT1XKoXgW1BSceR55xBfOVFYrl2ibdjS1oOzQfO0w AALDfYhIQbfQz29Dvn343lf5dseB4Ryp/NP6i+HjSwI2GK4IZT33EnJ0xo/kD2EW9GMO BlXz36znzmsaTKgTtJY545gh/nJK8x48acsa9UxhKoaLG+t0/8ME49sF0m4GEQ6fcktH bSnRK3TK1vgz/kRxvv59ryyirgqjBFQnmK89gaKsPcG4kEBR49U2jm4XOqGBfkyWv0u8 wtNyMf74StqBTqdOtPsQ/4ew74/XADDvV5mMbFe75/WctQC95ifDKLdHnRddl3hOlY6h lhPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z3o1wAe1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ka13-20020a170903334d00b0019a7a67d312si19051169plb.454.2023.03.24.03.04.42; Fri, 24 Mar 2023 03:04:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z3o1wAe1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231387AbjCXJzM (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Fri, 24 Mar 2023 05:55:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231231AbjCXJzL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Mar 2023 05:55:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EC1512853; Fri, 24 Mar 2023 02:55:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B4FFA629E2; Fri, 24 Mar 2023 09:55:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 563CDC4339B; Fri, 24 Mar 2023 09:55:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679651709; bh=telboDqiszRZh0CV9SUq1HH8wUjYC0sO5QRS2X/7S7A=; h=From:To:Cc:Subject:Date:From; b=Z3o1wAe1nhJEbNptRXR/e656omWLHuax/+a08CAs/i17BT6BhOoIW/H/HYiaew41Z fkx0RFFQph2vatjjEWfQ5z9DTKRYATrfT/yP05qIDlAmyIF17E0Q3wYKm6EVhs/5zC jelAmDSgdnoDllnvH1i8l4WUGxHqRRHBmC/dsHCwp6OBPPSaBjN6peMOBU5GrL9WXc EtO2J9e2dOA5FGovSDG6QZgJMAh1ArFxeEDTOnK09Kz9k26FrS0H7azxZ1ZzNLNdhS 9e/IUqlzxHlr/A81r0z0bxKg/tsbHEwEq9LegPSBKRq56r45QhqlxkQ49Lce+fm4sZ 471WdPsrT/eqA== From: Arnd Bergmann <arnd@kernel.org> To: Rob Clark <robdclark@gmail.com>, Abhinav Kumar <quic_abhinavk@quicinc.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Ulf Hansson <ulf.hansson@linaro.org>, Akhil P Oommen <quic_akhilpo@quicinc.com> Cc: Arnd Bergmann <arnd@arndb.de>, Sean Paul <sean@poorly.run>, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/msm/a6xx: add CONFIG_PM dependency Date: Fri, 24 Mar 2023 10:54:45 +0100 Message-Id: <20230324095502.3289094-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761243085259184647?= X-GMAIL-MSGID: =?utf-8?q?1761243085259184647?= |
Series |
drm/msm/a6xx: add CONFIG_PM dependency
|
|
Commit Message
Arnd Bergmann
March 24, 2023, 9:54 a.m. UTC
From: Arnd Bergmann <arnd@arndb.de> Selecting CONFIG_PM_GENERIC_DOMAINS causes a build failure when CONFIG_PM is not enabled: WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS Depends on [n]: PM [=n] Selected by [m]: - DRM_MSM [=m] && HAS_IOMEM [=y] && DRM [=m] && (ARCH_QCOM [=y] || SOC_IMX5 || COMPILE_TEST [=y]) && COMMON_CLK [=y] && IOMMU_SUPPORT [=y] && (QCOM_OCMEM [=y] || QCOM_OCMEM [=y]=n) && (QCOM_LLCC [=n] || QCOM_LLCC [=n]=n) && (QCOM_COMMAND_DB [=y] || QCOM_COMMAND_DB [=y]=n) && DEVFREQ_GOV_SIMPLE_ONDEMAND [=y] drivers/base/power/domain.c:654:13: error: use of undeclared identifier 'pm_wq' queue_work(pm_wq, &genpd->power_off_work); ^ drivers/base/power/domain.c:853:26: error: no member named 'ignore_children' in 'struct dev_pm_info' if (!dev || dev->power.ignore_children) ~~~~~~~~~~ ^ Fixes: c11fa1204fe9 ("drm/msm/a6xx: Use genpd notifier to ensure cx-gdsc collapse") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/gpu/drm/msm/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
On Fri, 24 Mar 2023 at 10:55, Arnd Bergmann <arnd@kernel.org> wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > Selecting CONFIG_PM_GENERIC_DOMAINS causes a build failure when CONFIG_PM > is not enabled: > > WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS > Depends on [n]: PM [=n] > Selected by [m]: > - DRM_MSM [=m] && HAS_IOMEM [=y] && DRM [=m] && (ARCH_QCOM [=y] || SOC_IMX5 || COMPILE_TEST [=y]) && COMMON_CLK [=y] && IOMMU_SUPPORT [=y] && (QCOM_OCMEM [=y] || QCOM_OCMEM [=y]=n) && (QCOM_LLCC [=n] || QCOM_LLCC [=n]=n) && (QCOM_COMMAND_DB [=y] || QCOM_COMMAND_DB [=y]=n) && DEVFREQ_GOV_SIMPLE_ONDEMAND [=y] > > drivers/base/power/domain.c:654:13: error: use of undeclared identifier 'pm_wq' > queue_work(pm_wq, &genpd->power_off_work); > ^ > drivers/base/power/domain.c:853:26: error: no member named 'ignore_children' in 'struct dev_pm_info' > if (!dev || dev->power.ignore_children) > ~~~~~~~~~~ ^ > > Fixes: c11fa1204fe9 ("drm/msm/a6xx: Use genpd notifier to ensure cx-gdsc collapse") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Kind regards Uffe > --- > drivers/gpu/drm/msm/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig > index 1c417ba53b5b..85f5ab1d552c 100644 > --- 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 > select IOMMU_IO_PGTABLE > select QCOM_MDT_LOADER if ARCH_QCOM > select REGULATOR > -- > 2.39.2 >
On 3/24/23 02:54, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > Selecting CONFIG_PM_GENERIC_DOMAINS causes a build failure when CONFIG_PM > is not enabled: > > WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS > Depends on [n]: PM [=n] > Selected by [m]: > - DRM_MSM [=m] && HAS_IOMEM [=y] && DRM [=m] && (ARCH_QCOM [=y] || SOC_IMX5 || COMPILE_TEST [=y]) && COMMON_CLK [=y] && IOMMU_SUPPORT [=y] && (QCOM_OCMEM [=y] || QCOM_OCMEM [=y]=n) && (QCOM_LLCC [=n] || QCOM_LLCC [=n]=n) && (QCOM_COMMAND_DB [=y] || QCOM_COMMAND_DB [=y]=n) && DEVFREQ_GOV_SIMPLE_ONDEMAND [=y] > > drivers/base/power/domain.c:654:13: error: use of undeclared identifier 'pm_wq' > queue_work(pm_wq, &genpd->power_off_work); > ^ > drivers/base/power/domain.c:853:26: error: no member named 'ignore_children' in 'struct dev_pm_info' > if (!dev || dev->power.ignore_children) > ~~~~~~~~~~ ^ > > Fixes: c11fa1204fe9 ("drm/msm/a6xx: Use genpd notifier to ensure cx-gdsc collapse") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Thanks. > --- > drivers/gpu/drm/msm/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig > index 1c417ba53b5b..85f5ab1d552c 100644 > --- 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 > select IOMMU_IO_PGTABLE > select QCOM_MDT_LOADER if ARCH_QCOM > select REGULATOR
diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig index 1c417ba53b5b..85f5ab1d552c 100644 --- 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 select IOMMU_IO_PGTABLE select QCOM_MDT_LOADER if ARCH_QCOM select REGULATOR