Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp595501pxb; Wed, 22 Sep 2021 08:51:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8gPouI/GeUsqP1GMfKouLEIs+Az8bXyjKc2+zDHuK6D+8ueS4whRaXL9D3bqEm7HVBiKW X-Received: by 2002:a92:90a:: with SMTP id y10mr293592ilg.108.1632325907189; Wed, 22 Sep 2021 08:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632325907; cv=none; d=google.com; s=arc-20160816; b=Nm3e/3UmBxOt5VVoZOpzkB6uF2S2OOnodtZF2hIfOByVcQbTLKOXjfXq7KF5fLUUzf +BLJJbodnEJmss1/amzqaHybh9P8vFTdr08Xy+YwudUjhUMeKwpO3z+FV9aEk5VLDa5w ijmiw7bZBgDT46m3d2OapWr5enyXmr+TG7iuyfpOBCYMjw/xVEWEt2XqMIh2+fpy6/ye QWVYxM1YKmXESTrk65KFSpu0WhU5B79uMBL8aCOVoPxmq5TTZuXVREj4EPqltXM2I03d RsqMejXL0q/+cxy5QUI0LGCqLmsrrYg24007SS5URSr0hdblLAAv9jbPLoUBIS6CG6t6 SQzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EiCXqTPs0TyHTH0PcXc9MxAs1ei4BP0VGJObkm2cCW0=; b=WIVpSy8PO3TCAL1OkMkZcw4s5bo44Gfv7SrLXLfGVIyiNtWgmizg/8OL0Cto6E6vzj gKM3YPJzhwM8t76BBrPDGNXhbSutTcv2sbrBuAod7pVuNjRugN7MVZzVERYAOI9PVcqk rCWTeLsTrcGzZR20bG3EF1ZPd3QKjwQqzGOAE6MjU8FsPbvDyTJJpI5JNr2WZWOfuq3Z SzE5vi7DagmS9Y6O/sKItroKCsyojW+NgysnoT3+vV+5PW/3gFDCVPG2u0+PaUNPK9NC NCHiMgfG6K9LHN/hw5CxXcoqzDid49xLMXDmp71EMkOHkZ+BTMjCfIEF0i/SqQpZCWoC wbUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="TV1auz9/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q15si3466077ilo.78.2021.09.22.08.51.15; Wed, 22 Sep 2021 08:51:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="TV1auz9/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236328AbhIVPv2 (ORCPT + 99 others); Wed, 22 Sep 2021 11:51:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:57632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231712AbhIVPv2 (ORCPT ); Wed, 22 Sep 2021 11:51:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C150A610A1; Wed, 22 Sep 2021 15:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632325798; bh=bG1NBP4It5lN9mNWkYcfkuu4qZacuaz/60AX2jQWjTE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TV1auz9/KtJeMADAOSvuTYcU86ONLBAOf4bCIG+FrDqf+V0OwtMCNCI9EuC5H2YXj F6nT5TT8m6996iV82s1CbteoS28EBcfjvlSybGHeMCqG98FPss7hlxTPRCzsEZhCQR oK2iY4Nh3BMi1YCg3Zgjp2buFbfep00ijEqiR/6M1oAMT6RYpWW09P9/MJORjpx329 HELvPOF8qBCPKtBs42oMP8TAIg6e+2vw3oHh/X547tbB2/eCavNCPoIkwq/hluA+f+ n3DdjY0HiXhmZKyzDxAuSpuLpCuJr0iJtXSv/3X8mE15MVOT9F86f1FpMRJ6v++l35 eawiKOZUCmahA== Date: Wed, 22 Sep 2021 08:49:50 -0700 From: Nathan Chancellor To: Maxime Ripard Cc: Randy Dunlap , dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , linux-kernel@vger.kernel.org, Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , Boris Brezillon , linux-rpi-kernel@lists.infradead.org, Hans Verkuil , bcm-kernel-feedback-list@broadcom.com, Emma Anholt , Nicolas Saenz Julienne , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Openrisc Subject: Re: [PATCH v3 1/6] drm/vc4: select PM (openrisc) Message-ID: References: <20210819135931.895976-1-maxime@cerno.tech> <20210819135931.895976-2-maxime@cerno.tech> <8a5cdcf5-33ed-398f-243a-b8889fd754e3@infradead.org> <20210922084156.xqru5fdjkarbkyew@gilmour> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210922084156.xqru5fdjkarbkyew@gilmour> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 22, 2021 at 10:41:56AM +0200, Maxime Ripard wrote: > Hi Randy, > > On Sun, Sep 19, 2021 at 09:40:44AM -0700, Randy Dunlap wrote: > > On 8/19/21 6:59 AM, Maxime Ripard wrote: > > > We already depend on runtime PM to get the power domains and clocks for > > > most of the devices supported by the vc4 driver, so let's just select it > > > to make sure it's there, and remove the ifdef. > > > > > > Signed-off-by: Maxime Ripard > > > --- > > > drivers/gpu/drm/vc4/Kconfig | 1 + > > > drivers/gpu/drm/vc4/vc4_hdmi.c | 2 -- > > > 2 files changed, 1 insertion(+), 2 deletions(-) > > > > > > diff --git a/drivers/gpu/drm/vc4/Kconfig b/drivers/gpu/drm/vc4/Kconfig > > > index 118e8a426b1a..f774ab340863 100644 > > > --- a/drivers/gpu/drm/vc4/Kconfig > > > +++ b/drivers/gpu/drm/vc4/Kconfig > > > @@ -9,6 +9,7 @@ config DRM_VC4 > > > select DRM_KMS_CMA_HELPER > > > select DRM_GEM_CMA_HELPER > > > select DRM_PANEL_BRIDGE > > > + select PM > > > select SND_PCM > > > select SND_PCM_ELD > > > select SND_SOC_GENERIC_DMAENGINE_PCM > > > diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c > > > index c2876731ee2d..602203b2d8e1 100644 > > > --- a/drivers/gpu/drm/vc4/vc4_hdmi.c > > > +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c > > > @@ -2107,7 +2107,6 @@ static int vc5_hdmi_init_resources(struct vc4_hdmi *vc4_hdmi) > > > return 0; > > > } > > > -#ifdef CONFIG_PM > > > static int vc4_hdmi_runtime_suspend(struct device *dev) > > > { > > > struct vc4_hdmi *vc4_hdmi = dev_get_drvdata(dev); > > > @@ -2128,7 +2127,6 @@ static int vc4_hdmi_runtime_resume(struct device *dev) > > > return 0; > > > } > > > -#endif > > > static int vc4_hdmi_bind(struct device *dev, struct device *master, void *data) > > > { > > > > > > > Hi, > > > > FYI. > > > > This still causes a build error on arch/openrisc/ since it does not support > > CONFIG_PM (it does not source "kernel/power/Kconfig" like some other arches do): > > > > ./arch/riscv/Kconfig:source "kernel/power/Kconfig" > > ./arch/x86/Kconfig:source "kernel/power/Kconfig" > > ./arch/nds32/Kconfig:source "kernel/power/Kconfig" > > ./arch/sh/Kconfig:source "kernel/power/Kconfig" > > ./arch/arc/Kconfig:source "kernel/power/Kconfig" > > ./arch/arm64/Kconfig:source "kernel/power/Kconfig" > > ./arch/xtensa/Kconfig:source "kernel/power/Kconfig" > > ./arch/sparc/Kconfig:source "kernel/power/Kconfig" > > ./arch/arm/Kconfig:source "kernel/power/Kconfig" > > ./arch/mips/Kconfig:source "kernel/power/Kconfig" > > ./arch/powerpc/Kconfig:source "kernel/power/Kconfig" > > ./arch/um/Kconfig:source "kernel/power/Kconfig" > > ./arch/ia64/Kconfig:source "kernel/power/Kconfig" > > > > so with > > CONFIG_DRM_VC4=y > > # CONFIG_DRM_VC4_HDMI_CEC is not set > > > > I still see > > ../drivers/gpu/drm/vc4/vc4_hdmi.c:2139:12: warning: 'vc4_hdmi_runtime_suspend' defined but not used [-Wunused-function] > > 2139 | static int vc4_hdmi_runtime_suspend(struct device *dev) > > | ^~~~~~~~~~~~~~~~~~~~~~~~ > > With what version did you get that build error? -rc2 shouldn't have it > anymore since the runtime_pm hooks introduction got reverted. -next still contains these patches as Stephen effectively reverted the changes in Linus' tree when merging in the drm-misc-fixes tree: https://lore.kernel.org/r/20210920090729.19458953@canb.auug.org.au/ Cheers, Nathan