Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp275129pxb; Wed, 22 Sep 2021 01:44:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4ZoSrEzO4TNIS3iwPqQQwox4aZc8JwxUY5+sy5p4MPmTJ8Kn4PmASbjExOURek+kJHDG1 X-Received: by 2002:a05:6638:24d4:: with SMTP id y20mr3838384jat.27.1632300274058; Wed, 22 Sep 2021 01:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632300274; cv=none; d=google.com; s=arc-20160816; b=cWyKbcAc4TPr06KUW44awGKYq4FDu2cqFvdN/11TQhwsCSlIixVNt4J+1U6tqgsnjz 6A2K8N7UCxd2xZSWV21AEWkFAexgIp3pyPlDwDYYH+V8cqVOWKGH2OZwT6sxK0p1GsKv 91/MsfACEUewh6nmCJaRlkpWNrcM+QtCoFTCk0fE7Jy3s1PbgVvxkDKB4+IDYclBHean X8RhAzZxI6h7u/ZZFaLtg5eQ2ll22pOeiGkAK6WR+P8u+f6fcU2Nqm+okrPM9UqbKy6s jtmV5W5XELxNnHy1NB3cdpo0QD86BYGk8E66QoCmFgDXadOT4YMLtzO217sfIa/ngBc9 tGLA== 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 :dkim-signature; bh=yoA2Ii3axXPN7X/c5B/JJ2aU3f5xmDOavqnZKLWOwGI=; b=IvJWkc7asRbireDCufx2U5RRjD0IxQLFYNTI+7nPkCk0V9jXe1OBNGFXxaUoZl5nT1 FZppa/kIW1iK7vOV8p6xSCMsokP3H7cmjlp+VECkYFkF4PRxyxYLvRDQyPsedLnTupG4 YVFY6+c1p2u8EgyV0WmVpANlhLem566D1rzt8oyofdCuaPJMwTns/FwoLnKundFr3rx7 IehO8Yloc+tnfQyzCFTVrOzeFFVHTk7GXstQ2X5JvdXTBA4GHEcy/qyyT4kL1S2M8R/y Zk3J+Fp5aMokwy1epINFS7o3I+3vkBlG6SGXIQtjB2XtEt8fV3uhqzgXYmQY4QOUeZgz A+Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=bD20vs5E; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=HxvbmiS7; 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=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si2329944ilh.169.2021.09.22.01.44.22; Wed, 22 Sep 2021 01:44:34 -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=@cerno.tech header.s=fm3 header.b=bD20vs5E; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=HxvbmiS7; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233741AbhIVInc (ORCPT + 99 others); Wed, 22 Sep 2021 04:43:32 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:45413 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233349AbhIVInb (ORCPT ); Wed, 22 Sep 2021 04:43:31 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 7EE655802A0; Wed, 22 Sep 2021 04:42:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 22 Sep 2021 04:42:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=yoA2Ii3axXPN7X/c5B/JJ2aU3f5 xmDOavqnZKLWOwGI=; b=bD20vs5Eiv2VzwwdLP5aJY0qaNmLmsNoCiA4YNs3st8 5QN/ENVa1SUEPMTMXtETZC9a1TRmp4gQIiDscATsGeR/a0Mky7AnZXc0joYVNlO9 Q+8nFFZkzf/HUPw/LQv4SbmuFmNRoBzGHkhd6EGE7cq553pni5Zxsfe1qjDsx//m M6fZD0SCaW600TggsuxlLbKxlVVuNUb7n7ASm32aWhY6CQlJyh883clvlU7gf32O Ztj9Dz/pJXWcVzMWUeOid1vfyVa/lbCDKHvG8RHkvydFhkcknpl1G7z8o5z5+AdN xquqL2BIYUlSk9jq18l+XsyaRZMuGiUbt00d4RFcPVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=yoA2Ii 3axXPN7X/c5B/JJ2aU3f5xmDOavqnZKLWOwGI=; b=HxvbmiS7peC+aSJzBbjFTo DwXG/2eAbUkdtT5pxS+gkiPHyUa95N9+uusXaK0JpIsftsHGuBoFGMCbmnKtmcfu q5opv+zBUs9d3CD9Yw9AQ5hWznVogHWzptHTVH4GvVGWnc4pDLwCZL395BCIF3+6 cbk8iL66EML7W+oswJeZd39V0WRzLmCZJdhKozYUTdxnCP7NB7tTtAw1JkZcHiCB OOOgYVAddUZaPgxANeb9fQyraSXFG1k+veKgVcZsi3X3WbtEIc/fwukHydBbwBD/ idWXmctPT90yjPX3S7T53AiCBmbjnTYsBYvu+WAJE90C73L20pIGysEzi5QcfoaA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeijedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Sep 2021 04:41:57 -0400 (EDT) Date: Wed, 22 Sep 2021 10:41:56 +0200 From: Maxime Ripard To: Randy Dunlap Cc: 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: <20210922084156.xqru5fdjkarbkyew@gilmour> References: <20210819135931.895976-1-maxime@cerno.tech> <20210819135931.895976-2-maxime@cerno.tech> <8a5cdcf5-33ed-398f-243a-b8889fd754e3@infradead.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5x75oq3heiuvzqmo" Content-Disposition: inline In-Reply-To: <8a5cdcf5-33ed-398f-243a-b8889fd754e3@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5x75oq3heiuvzqmo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > >=20 > > 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(-) > >=20 > > 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_h= dmi.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_hdm= i *vc4_hdmi) > > return 0; > > } > > -#ifdef CONFIG_PM > > static int vc4_hdmi_runtime_suspend(struct device *dev) > > { > > struct vc4_hdmi *vc4_hdmi =3D 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, v= oid *data) > > { > >=20 >=20 > Hi, >=20 > FYI. >=20 > This still causes a build error on arch/openrisc/ since it does not suppo= rt > CONFIG_PM (it does not source "kernel/power/Kconfig" like some other arch= es do): >=20 > ./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" >=20 > so with > CONFIG_DRM_VC4=3Dy > # CONFIG_DRM_VC4_HDMI_CEC is not set >=20 > I still see > ../drivers/gpu/drm/vc4/vc4_hdmi.c:2139:12: warning: 'vc4_hdmi_runtime_sus= pend' 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. Maxime --5x75oq3heiuvzqmo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYUrsVAAKCRDj7w1vZxhR xcJDAP9CgeyoZOknS4cqvZ9EHhMJxZmRdv9kzQ1KIRH2UxvZqwD/e7AQfR48+Phw iC0PWsKBXpNQ9/dhgtzAPUq3pEeNOQE= =dGOO -----END PGP SIGNATURE----- --5x75oq3heiuvzqmo--