Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp842803iog; Wed, 15 Jun 2022 13:41:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tJlBHam9V78pMhhnTJTAVVIl4vmvOKE5KRst+R94AFbTRp1lau0tUt4kRnDeFjlz99BnAX X-Received: by 2002:a05:6402:703:b0:42d:d347:a586 with SMTP id w3-20020a056402070300b0042dd347a586mr2064050edx.316.1655325670482; Wed, 15 Jun 2022 13:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655325670; cv=none; d=google.com; s=arc-20160816; b=RmWnNuBSyAfE6iy7EWesXneVfGBAsvmhWMc3dWGZ8eVVF+fYWBW8a+IB5bTB/KRVpB GJoTKEKYIBARnQrR5vJbWkZJLO8UKqbLn23gOw0o2bcZkFLEX2f1koNp7C0tB4+POeCq R+yje9hAdpc5hzpZKaIazM7WbyXOMCzWO+7eqM53D9OZ8iAICxpCUQCnAXMJpZ2LHrHa OyeVitzAvCHrzbn6RScMBTzgvkNhoNhe4aUSPKZhGc3xedPqZHYS3Q52VrDug2jq3DH+ /Tjz2mK9/8kBxqFDrTCiHThLUdFMJOXItGgt/TK+34eDjTyyMYDzBDxi9BLtz6LbHc8B CnTg== 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=uxPZFTdIhpij7oVBbW1ZEllzyYT+SkfY+TvDUl6wCB8=; b=P375dicgtsMAWp2X8ceYcnNX5ax156h/2yVtSeSlwWfbshj3uFSjEcZ0fManO70SXq NK9vhrFEznSHqmgHC0nOIEFgJYdUKMZ0GcHaR7kMjsjT8bwgB/sIdESM60YiKt0tKThC aN9W2PqE8MfAvBbBFISNuIxPeljZTCJ9YssOhSNsEvQ5sjt9YiiyT7A3UHwxV8zR9sa9 OXnrwhsjrk69lvQezw2Hpn9L0u1RpV7EXQ0YSNyBAlk9N35KimDLZW9mlibQ3J+ornqx oG2ChVa1QvVZPR7A6Lr06hHRiXqmuzfxld1wL3dV0TqYUYorSrJn+GVFBTyZScqqImS5 Kd2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=N9LfEeWS; 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 z18-20020a05640235d200b0042f9ff7beadsi241790edc.320.2022.06.15.13.40.44; Wed, 15 Jun 2022 13:41:10 -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=N9LfEeWS; 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 S1347459AbiFOUNo (ORCPT + 99 others); Wed, 15 Jun 2022 16:13:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242770AbiFOUNm (ORCPT ); Wed, 15 Jun 2022 16:13:42 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0BB63CA5D; Wed, 15 Jun 2022 13:13:40 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id w16so16895162oie.5; Wed, 15 Jun 2022 13:13:40 -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=uxPZFTdIhpij7oVBbW1ZEllzyYT+SkfY+TvDUl6wCB8=; b=N9LfEeWSzKKgAoAemGKrsZ8J8bPjIWvFNY/O5H3wlMXrl1dGp2XnyPobhPn4w665zj 09bYyg5l8BjwPptVTOLw/R2lfeCe+SAqlc75zhdENzpDxUQzzMbqXVcracTaAqwE0RWt aXP1OT/1heYgYO4eSYNSXa14s7b65XUyEctNzf4WVUmel6woeMzAXfJwDyQrqOwQTris YaxB37okEGc1XOhz5rSdkzQoeQUQqd8f1EU1YhEMGpqXUNzXIjs82ICAPnrE1g49acEG lLxcNWNaxtWJhnbIu4U0kMZVwE91jDjt8MuqSXWihAL0YBRrdhpPsdGqpme4ZIjhZeVh 5PlQ== 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=uxPZFTdIhpij7oVBbW1ZEllzyYT+SkfY+TvDUl6wCB8=; b=ekIybyqMFgk2HGY5fXUikAWeatgZHsURPy9xOkS4EXICwE9l+OnYktnb26+nDutTKd cTWtCN32lLMOEhVkP4O0Mzzz2MiBuLSUWvnSk4lncioncztx0kbEUblvm70aDFbseZAr RZkYd7KJIt68RxE2+iTLEl2H6/QDtnRj1tXbtmrZYhrf/lxKCmm0b/gwPQ01E8nUH8yO 0t6kIdv/VtLC7jBZ3CAz/FuWEw6hpbKp7cfoEwOFpkRqt4XjF2RjJXPbM8sZI2rDf05k U/Ch5c3vt2OR4yqJgVKQcnIadD6/aXC1HJirZLiPQT+Chosv4Zbte4RPl1zrgwbOMYr2 yRHw== X-Gm-Message-State: AJIora8xoI8DFTX2NctGyVG9OkJ+Nq2k2F9JqYh5JuNcrKwXHOdVaoAF S+cI9me0QBSqoQI0j9qFHCPWXZPPUtGLcR1m/Z6229vXQak= X-Received: by 2002:a05:6808:23c6:b0:331:3ab2:6fb9 with SMTP id bq6-20020a05680823c600b003313ab26fb9mr693454oib.200.1655324019928; Wed, 15 Jun 2022 13:13:39 -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:13:28 -0400 Message-ID: Subject: Re: linux-next: Tree for Jun 15 (drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c) To: Randy Dunlap Cc: 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?= Content-Type: multipart/mixed; boundary="00000000000032528605e18228d8" 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 --00000000000032528605e18228d8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 15, 2022 at 3:44 PM Randy Dunlap wrote: > > > > On 6/15/22 12:28, 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 fun= ction =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: > > Did you try building with today's linux-next tree? > (whatever is in it) > > I have seen this build error multiple times so it shouldn't > be so difficult to repro it. > > > >> 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 was able to repro it. In linux-next the CONFIG_DRM_AMD_SECURE_DISPLAY ifdefs in drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c seem to be missing. I guess they were lost when the amdgpu branch was merged into linux-next. The attached patch restores the CONFIG_DRM_AMD_SECURE_DISPLAY protections. Thanks, Alex > > > -- > ~Randy --00000000000032528605e18228d8 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-drm-amdgpu-fix-merge-of-amdgpu-next-branch.patch" Content-Disposition: attachment; filename="0001-drm-amdgpu-fix-merge-of-amdgpu-next-branch.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l4g1669d0 RnJvbSBmNjdhYjBiYThkYTg3M2EyMzhkY2QzMzZhY2Y5MmMwMWU0YWZmMDMxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tO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