Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp846200iog; Wed, 15 Jun 2022 13:46:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tXItZi8AQzQKm57EuyWQDmOOwRLnvY7anEmYOJYSg9ANxmbudt/8tzdgGJWJjnLa0pv24b X-Received: by 2002:a17:902:ab42:b0:165:7d40:fa80 with SMTP id ij2-20020a170902ab4200b001657d40fa80mr1404340plb.43.1655325967214; Wed, 15 Jun 2022 13:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655325967; cv=none; d=google.com; s=arc-20160816; b=Xgy8nfVj/ottl45qRSJyamnnEqIjGhl+iPw1Ng3n50qMpSsS5+7I1rji8iBfeBg5W0 81KoEFklUzqtSSMBgl8haMREeckRGJR4RW5DR3cD2Bg/bsOLSjmfIr8O9wXqBfLv19py ELD4CXSkMDQQoa5I0ab9YGd7bH2zWg3n6OpMBy8/haagh0WqhuH7ohTBlIGpwC4E46UJ 86NidNAEsX6zqmA0xIR0S4H3QNJpEpZFoqwf9w7Q3OZAcMo6ZeUoco+Q8HXS2700Ni+H yo/OnZWLevjoVIb6UiMPE/MFQ/jpHLyRwJ22HKkZXDfTtqNJAIfiiOkhErXqZTUed+Lo qRrA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CBLiOiWhZ++tKdrAronSd7+9bonLQwbSIBPdS015h1E=; b=f9Xc9LXmhCyDGTTpnYJuYZtz6INCvOtU3KuBFvRJBopktRBucQ9ISgCfHDxHHhuVyN 6BfkpyS8KtrDl/KXynsUhDJ1MxEmFwo6BrWUtVyJeboB/M3fj80bXdAYedUD7Usa0k7w aK9qgE5yhKNS6XkW7cENpzP7FN9Ehtw2IrDqcBrtsF6k1zGT7Au+AfvZhX6t3dDjBbqs r+xRuSHss2A+y690VbvbmUJ+TeGw97z/Uqh7vWGkR4gaYRhVH0eOiZhRY8zAgZec3x8y T+plQFMsRy4KIF+WAM0R1Tt0soGXRsV/BnvFDeo0DqI7P0Qo9629JqHv6jp3ZJsfF+Mn PFMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WPNRXrH6; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a636e06000000b003fd9e43f9bfsi24843pgc.393.2022.06.15.13.45.55; Wed, 15 Jun 2022 13:46:07 -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=WPNRXrH6; 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 S242073AbiFOUYs (ORCPT + 99 others); Wed, 15 Jun 2022 16:24:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231317AbiFOUYq (ORCPT ); Wed, 15 Jun 2022 16:24:46 -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 CE46F4FC43; Wed, 15 Jun 2022 13:24:45 -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 53894614D0; Wed, 15 Jun 2022 20:24:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 109CDC3411B; Wed, 15 Jun 2022 20:24:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655324684; bh=XK636mdXdT1uGqQeknFaYJJJ7lcdHw6ppBm0gfvPEw0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WPNRXrH6ueN30M5V0s+H/8D+ImKS6tmkzsFra+OXWTW+gXJ5Rr5ZmIXpXfXKiNZsP Eoaxbzkl4OIT8mtPQuRKzHf3g9G1V+JlrTpYO+IwfUF/XO7mAtmR5dYwO3Se0itpQQ Kogp8viN7kZZr1bGac6ks+BngLbz6BYZJycF9Cup5XS3wRrPo+eQ/BmpAv2qd96+BN xkgt9P9+F1FJ3glPx1jks4UcB2CeuCsEKTJJwkqzyfJkvizbGVG7HegwFABNZRNbgC ZVfz7tRokgNKuQNaDXvKudBfa/UNHIMhKRhmFT9SQR968jun25HAYyhDusWt61MsGl QjEyAsWzLLDUg== Date: Wed, 15 Jun 2022 13:24:42 -0700 From: Nathan Chancellor To: Alex Deucher Cc: Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , "Pan, Xinhui" , Linux Kernel Mailing List , "dri-devel@lists.freedesktop.org" , amd-gfx list , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , Bhanuprakash Modem Subject: Re: linux-next: Tree for Jun 15 (drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c) Message-ID: References: <20220615160116.528c324b@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 15, 2022 at 03:28:52PM -0400, Alex Deucher wrote: > On Wed, Jun 15, 2022 at 3:01 PM Randy Dunlap wrote: > > > > > > > > On 6/14/22 23:01, Stephen Rothwell wrote: > > > Hi all, > > > > > > Changes since 20220614: > > > > > > > on i386: > > # CONFIG_DEBUG_FS is not set > > > > > > ../drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function ‘amdgpu_dm_crtc_late_register’: > > ../drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6599:2: error: implicit declaration of function ‘crtc_debugfs_init’; did you mean ‘amdgpu_debugfs_init’? [-Werror=implicit-function-declaration] > > crtc_debugfs_init(crtc); > > ^~~~~~~~~~~~~~~~~ > > amdgpu_debugfs_init > > > > > > Full randconfig file is attached. > > I tried building with your config and I can't repro this. As Harry > noted, that function and the whole secure display feature depend on > debugfs. It should never be built without CONFIG_DEBUG_FS. See > drivers/gpu/drm/amd/display/Kconfig: > > > config DRM_AMD_SECURE_DISPLAY > > bool "Enable secure display support" > > default n > > depends on DEBUG_FS > > depends on DRM_AMD_DC_DCN > > help > > Choose this option if you want to > > support secure display > > > > This option enables the calculation > > of crc of specific region via debugfs. > > Cooperate with specific DMCU FW. > > amdgpu_dm_crtc_late_register is guarded by > CONIG_DRM_AMD_SECURE_DISPLAY. It's not clear to me how we could hit > this. I think the problem is that you are not looking at the right tree. The kernel test robot reported [1] [2] this error is caused by commit 4cd79f614b50 ("drm/amd/display: Move connector debugfs to drm"), which is in the drm-misc tree on the drm-misc-next branch. That change removes the #ifdef around amdgpu_dm_crtc_late_register(), meaning that crtc_debugfs_init() can be called without CONFIG_DRM_AMD_SECURE_DISPLAY and CONFIG_DEBUG_FS. $ git show -s --format='%h ("%s")' abf0ba5a34ea ("drm/bridge: it6505: Add missing CRYPTO_HASH dependency") $ make -skj"$(nproc)" ARCH=x86_64 mrproper defconfig $ scripts/config -d BLK_DEV_IO_TRACE -d DEBUG_FS -e DRM_AMDGPU $ make -skj"$(nproc)" ARCH=x86_64 olddefconfig drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.o drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function ‘amdgpu_dm_crtc_late_register’: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6622:9: error: implicit declaration of function ‘crtc_debugfs_init’; did you mean ‘amdgpu_debugfs_init’? [-Werror=implicit-function-declaration] 6622 | crtc_debugfs_init(crtc); | ^~~~~~~~~~~~~~~~~ | amdgpu_debugfs_init cc1: all warnings being treated as errors Contrast that with the current top of your tree: $ git show -s --format='%h ("%s")' c435f61d0eb3 ("drm/amd/display: Drop unnecessary guard from DC resource") $ make -skj"$(nproc)" ARCH=x86_64 mrproper defconfig $ scripts/config -d BLK_DEV_IO_TRACE -d DEBUG_FS -e DRM_AMDGPU $ make -skj"$(nproc)" ARCH=x86_64 olddefconfig drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.o $ echo $? 0 Randy's patch [3] seems like it should resolve the issue just fine but it needs to be applied to drm-misc-next, not the amdgpu tree. [1]: https://lore.kernel.org/202205241843.8EWKesIA-lkp@intel.com/ [2]: https://lore.kernel.org/202205240207.KmDLuSrC-lkp@intel.com/ [3]: https://lore.kernel.org/20220614155726.26211-1-rdunlap@infradead.org/ Cheers, Nathan