Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp856938iog; Wed, 15 Jun 2022 14:02:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uJySPaZgESwoJTAVAAMalWCm6DphMb0WNMCxDBRXIIkp1V0Lq3wRyJeBqKFXz61sccfxAn X-Received: by 2002:a17:902:d707:b0:168:9a6a:936d with SMTP id w7-20020a170902d70700b001689a6a936dmr1477423ply.92.1655326966913; Wed, 15 Jun 2022 14:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655326966; cv=none; d=google.com; s=arc-20160816; b=q+5M5IGoTSW1796AtuChPNeBjPROA3Lk9+MDrayrNcnS3/atYYTYfReKAFoSv+1RPx d4ubjpdYro4wBEolH0MKLV1CKQhpsh1nXtqAiC3X8B08Hjo1pYWNbPQGO0lbDCXnEMTS 1awdAt83jmnk1Bap8yoMp0evFv78OrnSLjgzEjZns3z4ObboA1wpLkcAxoNMcOLcSwPN ItuMmaheLruhkjFB2qN/cb+MD9UpjCim4wh3cMLv1gXvdhlia7212JwSCKLEczzzuo2R CEc5IlPv34rQFPXlsC9zg1T4xNBRjbVqR4P7i7VfLPDJRQBE5PytSF+nWQXwMzl7WTGo ae3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xcXXEo50ke0CjTDo+NaIuCmfleDINQjvp5Fm6iMmoNs=; b=Yf1hFZpySayl26PpKLQgiTzvB2fclF5QtYSibDzXJhsePkX3KBelRVM1TNlBCOu+lW DHQfDdLfcWyJeICd3d87lKARXH0qwqwoqDAy7wqLBbDiQ24M+Baca4ka1HGj6sCykZo5 H/eo2+KjiWprAdo54FOA+0J8OIHwJ/B1dC1UDFLbvZbTkNaYIKpSNSqkJ4MrBbYfkTj1 z/OXBTYIV6PyL9QhNRApiSc9mHK78bcJR9xSwpnw6xfo4V7oZfdkKecRWWSId7EtVVPX AOU4dQV2mKgKTpr+8yh2w1SDAIMgv3riGhOdbPtFDgZjbuDeqWEHAHfnbWhapkLpb4jI GqOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oT02vXcW; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w14-20020a056a0014ce00b0051873a68dd2si202905pfu.252.2022.06.15.14.02.33; Wed, 15 Jun 2022 14:02:46 -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=@gmail.com header.s=20210112 header.b=oT02vXcW; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236196AbiFOUpd (ORCPT + 99 others); Wed, 15 Jun 2022 16:45:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346510AbiFOUp3 (ORCPT ); Wed, 15 Jun 2022 16:45:29 -0400 Received: from mail-oo1-xc2e.google.com (mail-oo1-xc2e.google.com [IPv6:2607:f8b0:4864:20::c2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F25DD34677; Wed, 15 Jun 2022 13:45:27 -0700 (PDT) Received: by mail-oo1-xc2e.google.com with SMTP id g9-20020a4adc89000000b0041bef879199so2308414oou.10; Wed, 15 Jun 2022 13:45:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xcXXEo50ke0CjTDo+NaIuCmfleDINQjvp5Fm6iMmoNs=; b=oT02vXcWCCiAHE7yqPQmEo2y9Mcf4PTNfbKqTRW7sJRaVbmS9jNOmSErG+5tY599Bd LgoVKu2wArDUWwWnADocI7TR5tZj8ytKk9MgwY9KyOZNC+IBDT+2jiy6z/VgUUUkN4hu z0Se03YNpoSOSVF5gsdfM3fa44LBOWvwaDLsDJS7N0VFp4u+pag1w+uIaOWq6Xb+CwYR jO36U4uaq9M279k7JqeIn92u5pSBmYfkGRFiDp9UoCL+IZP/Q4rScvZUXKLty2ciczxU MUhEerA4+9yafkhy0UcVRyaKacxuHA1rSZUUUaiKYzbD4dCgm0OonB8eGxfzN+RbAz+L 5PHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xcXXEo50ke0CjTDo+NaIuCmfleDINQjvp5Fm6iMmoNs=; b=4qZIQ29xGoagfuVRaf0x7STWSMHOSTzYaVFCgTn0nfZpJEtJxSaMpq6Ua8ofC/+kIH 6hZTCjwiZVLsVJljzZDREhgvDQUK27lcND8uAZU3ffvjlfjUCV/fxZvoV9m37+u/TPtO SK5+6pJhv3pREBLU5K78iQGPbnUcio4soQGXeGavc91OHWDgxAsCkO+hwWOuAvfgB8g9 /XPO102zUNtriXnPb+svZ7JBj601y0i9R260IMkjVZH+C4x/iceCgDK+uJpfZHA0XhxD UXieMsr2BQkWQFteb34CrsOusAe9TQOwM1HhbR5HUxvH6nXlTNx34+ds+F+4oIn3oS3K z/Mg== X-Gm-Message-State: AJIora8NH73ZQq5rtl+K0iI6F0uoYbgVEwNCPZDAdnhzdih6ZEAgt1Du adIfXiZLY/JXwXPJYPqetO8DwnpOJcrXHmVby/94m8h2 X-Received: by 2002:a4a:458e:0:b0:41c:1d71:8ef with SMTP id y136-20020a4a458e000000b0041c1d7108efmr705527ooa.23.1655325927149; Wed, 15 Jun 2022 13:45:27 -0700 (PDT) MIME-Version: 1.0 References: <20220615160116.528c324b@canb.auug.org.au> In-Reply-To: From: Alex Deucher Date: Wed, 15 Jun 2022 16:45:16 -0400 Message-ID: Subject: Re: linux-next: Tree for Jun 15 (drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c) To: Nathan Chancellor 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 , =?UTF-8?Q?Christian_K=C3=B6nig?= , Bhanuprakash Modem Content-Type: multipart/mixed; boundary="000000000000e04f2805e1829933" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 --000000000000e04f2805e1829933 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 15, 2022 at 4:24 PM Nathan Chancellor wrote= : > > On Wed, Jun 15, 2022 at 03:28:52PM -0400, Alex Deucher wrote: > > On Wed, Jun 15, 2022 at 3:01 PM Randy Dunlap wr= ote: > > > > > > > > > > > > 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 fu= nction =E2=80=98amdgpu_dm_crtc_late_register=E2=80=99: > > > ../drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6599:2= : error: implicit declaration of function =E2=80=98crtc_debugfs_init=E2=80= =99; did you mean =E2=80=98amdgpu_debugfs_init=E2=80=99? [-Werror=3Dimplici= t-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=3D'%h ("%s")' > abf0ba5a34ea ("drm/bridge: it6505: Add missing CRYPTO_HASH dependency") > > $ make -skj"$(nproc)" ARCH=3Dx86_64 mrproper defconfig > > $ scripts/config -d BLK_DEV_IO_TRACE -d DEBUG_FS -e DRM_AMDGPU > > $ make -skj"$(nproc)" ARCH=3Dx86_64 olddefconfig drivers/gpu/drm/amd/am= dgpu/../display/amdgpu_dm/amdgpu_dm.o > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In functio= n =E2=80=98amdgpu_dm_crtc_late_register=E2=80=99: > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6622:9: err= or: implicit declaration of function =E2=80=98crtc_debugfs_init=E2=80=99; d= id you mean =E2=80=98amdgpu_debugfs_init=E2=80=99? [-Werror=3Dimplicit-func= tion-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=3D'%h ("%s")' > c435f61d0eb3 ("drm/amd/display: Drop unnecessary guard from DC resource= ") > > $ make -skj"$(nproc)" ARCH=3Dx86_64 mrproper defconfig > > $ scripts/config -d BLK_DEV_IO_TRACE -d DEBUG_FS -e DRM_AMDGPU > > $ make -skj"$(nproc)" ARCH=3Dx86_64 olddefconfig drivers/gpu/drm/amd/am= dgpu/../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. Thanks for tracking this down. I think something like the attached patch is cleaner since the whole thing is only valid for debugfs. Alex > > [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 --000000000000e04f2805e1829933 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-drm-amdgpu-display-fix-build-when-CONFIG_DEBUG_FS-is.patch" Content-Disposition: attachment; filename="0001-drm-amdgpu-display-fix-build-when-CONFIG_DEBUG_FS-is.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l4g29tzt0 RnJvbSBiMGJjYWNkODYzNDQ5OThlMGNhNzU3Zjg5YzZjNGNkM2I2Mjk4OTk5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAw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