Message ID | 20230209124513.1341645-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp315548wrn; Thu, 9 Feb 2023 04:54:09 -0800 (PST) X-Google-Smtp-Source: AK7set+ADVA9tzBzpAYEnlOBQhiDpaMpw0IKtqpp5Y6sI2qbJB7FJeg2jUpuRrohkgE0ZA+f2Jod X-Received: by 2002:a05:6a21:328e:b0:bd:2d4:ae12 with SMTP id yt14-20020a056a21328e00b000bd02d4ae12mr13847633pzb.12.1675947249559; Thu, 09 Feb 2023 04:54:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675947249; cv=none; d=google.com; s=arc-20160816; b=YB9/ZGzR520A01Qhn973mWbjz6CZD6+9sIhV1oM/kgOa+69tFWZSkyZCOFxUXQUcEM C7zjmSvyyUaudDHkE4lqUtaF8zasOccpysGRc/L0SCrsa/qVBa//ZfXaPwbjH/LfB9/O CgDP1HuqvpjdFIip7badnZfd8oF0ryWrof8/HmGDA46z+/AcZwlaPfQ5TgW9jrUfPg2p IQL1D0a79cSUjYgxA4kCIyWVTni48pYOuC8Lqo1CSJjpUbIBxW5VZf9tN2pCmSZbZhlV 1vOViACJMA2GweGtcz1Z4AYLctbUsbbc4aUUr6VygXeiQ94DS+SL357mIpAqHTPUMMLr uUxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UEtBbi5I59tmiQfekCO8FM/ptU44ZezDzg2VkVdk8Rw=; b=krfIUg6rY1fD08z/C6qPb0OlfosWhO5Q60U9eF+8gSupw9hwvYJYNJWKL/1eS765e7 sfsXmGMvR2kwjOSvvobq995MwgC/kLkcZb5iIqYPRZ04tpemMIFcnImBD9luQb+euuvU 4vTTGQ2NBmQh3dBAwot+RdaIyigP8ESXKucj3dzA8FI742KrsvKE172zEENJ5NWCQlMQ NJPWcWXAHkheb4FqzyM4/cQ8wFjcW8KFNoKRuE65HJRp+nQgGoMeB3hs/ReUDKtZ2pMf a43PibFEph9RhTNKpSZVwVkhEZojhH60RiwCRVPWotUmTLBOM4ti1OioKJ46fZ/O1pdk k/Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RRJ0na7p; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a63690a000000b004fb33a76e2csi1898000pgc.834.2023.02.09.04.53.56; Thu, 09 Feb 2023 04:54:09 -0800 (PST) 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=RRJ0na7p; 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 S229789AbjBIMpW (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Thu, 9 Feb 2023 07:45:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjBIMpV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 9 Feb 2023 07:45:21 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8619A5AB08 for <linux-kernel@vger.kernel.org>; Thu, 9 Feb 2023 04:45:20 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 40835B82126 for <linux-kernel@vger.kernel.org>; Thu, 9 Feb 2023 12:45:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA601C433EF; Thu, 9 Feb 2023 12:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675946717; bh=Q8Fs1hhzx5yW8jDp0z06JUZNBw9/Yhiv31VTrLxhk+I=; h=From:To:Cc:Subject:Date:From; b=RRJ0na7po8V+zfKZ36Chtjh+XkJ1NIq1DbPWpjVh5qhDa64EDy+8bX2EK9EyYAjlx P4Z1MvQ2l9Hx/aUYzQQmkImGSN8T874/QERNRl2/ynLTJwiC12wOrI0RuucLFjaqYU 6/2/LSIDUVF72fNgSDk2iCHQFxRJCMsiMi3BAmvQ2GbfeUCddEY9dzPbY3yh68lZBq cBZxbQbhIY6KV2AyIE7bwys0K+ksAenAbBHmBPIiVdaHpf70SJ/T3yo9Gco378WWGp e9JDovC3HZovVmQfQEOqtxiHSg/Mpg4rGcS3yhAJJxBpIdZVkOa97tjIA4eMKG3pyb ofv0qV8Uy4Fhw== From: Arnd Bergmann <arnd@kernel.org> To: Harry Wentland <harry.wentland@amd.com>, Leo Li <sunpeng.li@amd.com>, Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Cc: Arnd Bergmann <arnd@arndb.de>, Alex Deucher <alexander.deucher@amd.com>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, "Pan, Xinhui" <Xinhui.Pan@amd.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Qingqing Zhuo <qingqing.zhuo@amd.com>, George Shen <George.Shen@amd.com>, Wenjing Liu <wenjing.liu@amd.com>, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/display: fix link_validation build failure Date: Thu, 9 Feb 2023 13:45:03 +0100 Message-Id: <20230209124513.1341645-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757358062754856610?= X-GMAIL-MSGID: =?utf-8?q?1757358062754856610?= |
Series |
drm/amd/display: fix link_validation build failure
|
|
Commit Message
Arnd Bergmann
Feb. 9, 2023, 12:45 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> When CONFIG_DRM_AMD_DC_DCN is disabled, the is_frl member is not defined: drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c: In function 'dp_active_dongle_validate_timing': drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c:126:66: error: 'const struct dc_dsc_config' has no member named 'is_frl' 126 | if (timing->flags.DSC && !timing->dsc_cfg.is_frl) | ^ Use the same #ifdef as the other references to this. Fixes: 54618888d1ea ("drm/amd/display: break down dc_link.c") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/gpu/drm/amd/display/dc/link/link_validation.c | 2 ++ 1 file changed, 2 insertions(+)
Comments
Applied. Thanks! Alex On Thu, Feb 9, 2023 at 7:45 AM Arnd Bergmann <arnd@kernel.org> wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > When CONFIG_DRM_AMD_DC_DCN is disabled, the is_frl member > is not defined: > > drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c: In function 'dp_active_dongle_validate_timing': > drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c:126:66: error: 'const struct dc_dsc_config' has no member named 'is_frl' > 126 | if (timing->flags.DSC && !timing->dsc_cfg.is_frl) > | ^ > > Use the same #ifdef as the other references to this. > > Fixes: 54618888d1ea ("drm/amd/display: break down dc_link.c") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/gpu/drm/amd/display/dc/link/link_validation.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/amd/display/dc/link/link_validation.c b/drivers/gpu/drm/amd/display/dc/link/link_validation.c > index cd821d077d73..8ddebf3bdd46 100644 > --- a/drivers/gpu/drm/amd/display/dc/link/link_validation.c > +++ b/drivers/gpu/drm/amd/display/dc/link/link_validation.c > @@ -123,9 +123,11 @@ static bool dp_active_dongle_validate_timing( > if (dongle_caps->dp_hdmi_frl_max_link_bw_in_kbps > 0) { // DP to HDMI FRL converter > struct dc_crtc_timing outputTiming = *timing; > > +#if defined(CONFIG_DRM_AMD_DC_DCN) > if (timing->flags.DSC && !timing->dsc_cfg.is_frl) > /* DP input has DSC, HDMI FRL output doesn't have DSC, remove DSC from output timing */ > outputTiming.flags.DSC = 0; > +#endif > if (dc_bandwidth_in_kbps_from_timing(&outputTiming) > dongle_caps->dp_hdmi_frl_max_link_bw_in_kbps) > return false; > } else { // DP to HDMI TMDS converter > -- > 2.39.1 >
diff --git a/drivers/gpu/drm/amd/display/dc/link/link_validation.c b/drivers/gpu/drm/amd/display/dc/link/link_validation.c index cd821d077d73..8ddebf3bdd46 100644 --- a/drivers/gpu/drm/amd/display/dc/link/link_validation.c +++ b/drivers/gpu/drm/amd/display/dc/link/link_validation.c @@ -123,9 +123,11 @@ static bool dp_active_dongle_validate_timing( if (dongle_caps->dp_hdmi_frl_max_link_bw_in_kbps > 0) { // DP to HDMI FRL converter struct dc_crtc_timing outputTiming = *timing; +#if defined(CONFIG_DRM_AMD_DC_DCN) if (timing->flags.DSC && !timing->dsc_cfg.is_frl) /* DP input has DSC, HDMI FRL output doesn't have DSC, remove DSC from output timing */ outputTiming.flags.DSC = 0; +#endif if (dc_bandwidth_in_kbps_from_timing(&outputTiming) > dongle_caps->dp_hdmi_frl_max_link_bw_in_kbps) return false; } else { // DP to HDMI TMDS converter