From patchwork Wed May 24 03:59:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98272 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2579537vqo; Tue, 23 May 2023 21:02:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6aFyNlMldiPeSFfe+Wn9JI0K0OtXsSVoHGadC6P8BxTzCUouH6AwgOYhpS7zgV4dKtPe9I X-Received: by 2002:a05:6a21:9998:b0:10a:a0e1:96fa with SMTP id ve24-20020a056a21999800b0010aa0e196famr15457509pzb.22.1684900964923; Tue, 23 May 2023 21:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684900964; cv=none; d=google.com; s=arc-20160816; b=P8JzFoiaSc/QW7oGg9vm9rO/L5tmzVr8aHbnAiWw4LygzGsUbHcel3+9SSuqeVN9sk VQgCR47xvrFwoAZQBWUIQqRYaQWYpuI0ZdLuZxH7BQRJx6A4ZYCFMvNOubVPVwRL92i+ vJB2Qn2doGYk3rFULvURVClXAdhpA78hZ87/+xB8z04vXB9XdnBpLm9zX7aRqTyQ5U7M 8G1ufZxNxLmh26Hadh8KtoWw4lj+2ToLqYOZjveilZSh4VLKolE2aPbvezt1p4IMsN4w rksbkyIh+FMEBl7btWPMxMbOTDEMvIrmK5x6/DLrXtNUHfESccQnxuQEsLzHRAa+Ycau lMPQ== 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; bh=kDhZxwV91oO2ZX4B2p4vltdUa0h+GUXQhGiyWo5xg2M=; b=ECaR4f4AEh2f23PwFb4j7hCGqlKUyXgo/sjuQ/ObLvc3WoS33wCFCLrvZf1lwpjzj6 U3K9VvL9w1kB2/qUlekL1OAoytQ5AMFt9j1ucmJBaoLNc1sBez59dOtkU8mIJyM8PZaM Wf278OWlQzlQgIHGnh0N2fFtoDDCUtvZnpPJ5tZh+wf0SIMu2Opwz+7chdLCU81DcI1q PpWZUYu5BYAPTgucGHx5mLceh0wC7kcGDXSmPL8tk/RVDR1igaJG5WNXkQLbckpbmFqo PmlebiKby5VfczERL6HTUvpr5jcGGuveCRV10Qf0d1QcTc7Yk/T9e7oVeVxUoDJN98wc kUYg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s15-20020a63af4f000000b0052c885da611si3633324pgo.152.2023.05.23.21.02.30; Tue, 23 May 2023 21:02:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbjEXEAC (ORCPT + 99 others); Wed, 24 May 2023 00:00:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234369AbjEXEAB (ORCPT ); Wed, 24 May 2023 00:00:01 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 661ABC1 for ; Tue, 23 May 2023 20:59:59 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMWC9b_1684900794; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMWC9b_1684900794) by smtp.aliyun-inc.com; Wed, 24 May 2023 11:59:55 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 01/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:40 +0800 Message-Id: <20230524035952.123590-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766746714419232333?= Eliminate the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_resource.c:889:43: warning: unused variable 'res_create_maximus_funcs' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c index a0625209c86d..26ddf73fd5b1 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c @@ -886,13 +886,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn10_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hwseq = dcn10_hwseq_create, -}; - static void dcn10_clock_source_destroy(struct clock_source **clk_src) { kfree(TO_DCE110_CLK_SRC(*clk_src)); From patchwork Wed May 24 03:59:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98281 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2581080vqo; Tue, 23 May 2023 21:06:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7T2ZmZkGLid672DWLmZ3frZ7Gyy2qPHB1q3jDkYBsXERmpRZvzGVPn9MMmkrZxdlmPRHCE X-Received: by 2002:a17:90b:180e:b0:250:85ba:6c3d with SMTP id lw14-20020a17090b180e00b0025085ba6c3dmr14659725pjb.6.1684901214302; Tue, 23 May 2023 21:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901214; cv=none; d=google.com; s=arc-20160816; b=rcIfjXfjWkkbxUSWKYoQoNpU6NVN+AWzsUQ/Lslj70nmn3C4khMswO/6fYYXWe7HTJ Bu3LMEcH3A0/k9AG8iYFWwc4hBxo3tHsu+vmz5X8/Ac0byWhFlj4LQo62XlPuOX+V3xX 9YIFoxkS/SiBbyrameSMFLFPr0mcIxxSVIZ3NsjSo3EY/1vWzkQSM1QMbJB+ALwgXlWp JQ21m5OWZ2IJXBk3hTUYEFgme0rIo37bM+ceP4u+Vqr9HfPi0YWnLDL8kLN81KtuJdlB f2BZJ9m31SEDpV+yCaAyA22LHw39AlSdNLRmJqNW/BSivHitJ7MVVXsAd+UxqNyiky5v zO6A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jB6fxOiMu5KfRM9jOj5U2TzPvQWUGkLoKUrsD3feLqc=; b=ipS/FofPkpHPfyCazE+W8f6cWWWi5PhiL9/HZP6+ScKSM5V0ZBJS59hsYymMp4QARk JqDEgIHPodhItg3/FxeqT/7HcsWmKK3ILMFbFZFoSCmX3AC7Yj/I+xlh4d1ZIRGc9KWA UVgWeTiBUXk/8+lwHLceW3ekjXMUBZgMTpvgV0G7kIJBqTEsx7d3CiIL+ALuJ2BxOyu5 bNtAr4Yj4jZq0DKlb7j/U9ZYYaLYXCJsJKHEciEX6aRVvYApLYtxz0SKVaTRUirmheyR ZDAo13VTpyd/ofdfcv+Liws724sPAPUybORId4BsuSQhccJCcy/GqRbQrjW/MDPBAN/Q 3JWw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a17090abc4600b00252e51a9fbasi524141pjv.122.2023.05.23.21.06.35; Tue, 23 May 2023 21:06:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239415AbjEXEAF (ORCPT + 99 others); Wed, 24 May 2023 00:00:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjEXEAC (ORCPT ); Wed, 24 May 2023 00:00:02 -0400 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49D82FC for ; Tue, 23 May 2023 21:00:01 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R711e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMa8Bj_1684900797; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMa8Bj_1684900797) by smtp.aliyun-inc.com; Wed, 24 May 2023 11:59:58 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 02/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:41 +0800 Message-Id: <20230524035952.123590-2-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766746975838299664?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_resource.c:1222:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_resource.c:658:38: warning: unused variable 'debug_defaults_diags' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../drm/amd/display/dc/dcn21/dcn21_resource.c | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c index 76268a7b7934..da6d42de0554 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c @@ -655,22 +655,6 @@ static const struct dc_debug_options debug_defaults_drv = { .use_max_lb = true, }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = false, - .force_abm_enable = false, - .timing_trace = true, - .clock_trace = true, - .disable_dpp_power_gate = true, - .disable_hubp_power_gate = true, - .disable_clock_gate = true, - .disable_pplib_clock_request = true, - .disable_pplib_wm_range = true, - .disable_stutter = true, - .disable_48mhz_pwrdwn = true, - .enable_tri_buf = true, - .use_max_lb = true -}; - static const struct dc_panel_config panel_config_defaults = { .psr = { .disable_psr = false, @@ -1219,13 +1203,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn21_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hwseq = dcn21_hwseq_create, -}; - static const struct encoder_feature_support link_enc_feature = { .max_hdmi_deep_color = COLOR_DEPTH_121212, .max_hdmi_pixel_clock = 600000, From patchwork Wed May 24 03:59:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98273 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2579540vqo; Tue, 23 May 2023 21:02:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72CNtuIhOZb2Qg2yElx6X1O7W+pc3o/HoJgOB1shc9qYwkxm+BNrSxoYTCDev0cKg8DgSc X-Received: by 2002:a17:903:2584:b0:1ab:d6f:51b0 with SMTP id jb4-20020a170903258400b001ab0d6f51b0mr16761200plb.18.1684900965623; Tue, 23 May 2023 21:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684900965; cv=none; d=google.com; s=arc-20160816; b=NkKXT4F4PKwOYyDCCXf1t3/6Q7yMP4tVEAPPhbFJv4Wo5pTcN+0ulxO5ycVE4+kWnT rzdKajZaN2TiiMEbbaYg/QUtjNwbFuq324ZyiZsZfk9WF9E7Ts2PoGWKJlOo7HHy8dq2 hTcK8m83hb5OV/rrsTnd/pqXGx8EV2gVBAnVhkLUuBdRCSCY2byi8z+XhOfkExWirmNc aDTN3Wpooy5HdJRn+SNe0nhl7lWb2GD94IWCvGU1Blpzrswu/sYKhK67RcqXDG9iCeew 9tW+RywBUdBrtAeAKpl8hH50xssJxF5Fw3zEsJ2G1FWdu70MgDszw2VjkJsz9zZi7f6O r74g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sLWNoZ/4Pj9IVeeY6L1HeRrrwqzX2HyWV453b8BpvPs=; b=MpzDDNUZYdbhTYTLGBeEEIyb9FlDrLo3Z5OeitHiXMvZxwd3UV+SJrm/OYGLs+NdaE PK0CV82PscbEj3cl6EaKE8XT96CPH7qxYJzQZsUOanbYOgAgUmfnw+hjFQLa/NhfKmxs Ok2jboXyzDHBaTWic6I2RC1qdniOVLFMNEzVEEsBA9V5lUjpOenJBuBcIbwN8SqtgE6C 9WHfm1PzVzaOygzkNcV5wcVlc/3S6vXeOZPdj/UmqojqEFCmQZsCrIcWaB3CB/TKMoJT 0+w07znRxVBCtbsq5PwRhKmxD/KrZGv4ukv+sdbBYLD4xPeXYyISWQNvV++xS2FrPKw3 oZAQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020a170902d49200b001a9ba4690casi3498511plg.295.2023.05.23.21.02.30; Tue, 23 May 2023 21:02:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239432AbjEXEAK (ORCPT + 99 others); Wed, 24 May 2023 00:00:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239318AbjEXEAE (ORCPT ); Wed, 24 May 2023 00:00:04 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4762FE6 for ; Tue, 23 May 2023 21:00:03 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMZ3Eg_1684900799; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMZ3Eg_1684900799) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:00 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 03/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:42 +0800 Message-Id: <20230524035952.123590-3-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766746714940045342?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:1079:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_resource.c:731:38: warning: unused variable 'debug_defaults_diags' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../drm/amd/display/dc/dcn30/dcn30_resource.c | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c index cd94b5f5fdb4..f4ee4b3df596 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c @@ -728,24 +728,6 @@ static const struct dc_debug_options debug_defaults_drv = { .exit_idle_opt_for_cursor_updates = true }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = true, //No dmcu on DCN30 - .force_abm_enable = false, - .timing_trace = true, - .clock_trace = true, - .disable_dpp_power_gate = true, - .disable_hubp_power_gate = true, - .disable_clock_gate = true, - .disable_pplib_clock_request = true, - .disable_pplib_wm_range = true, - .disable_stutter = false, - .scl_reset_length10 = true, - .dwb_fi_phase = -1, // -1 = disable - .dmub_command_table = true, - .enable_tri_buf = true, - .use_max_lb = true -}; - static const struct dc_panel_config panel_config_defaults = { .psr = { .disable_psr = false, @@ -1076,13 +1058,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn30_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hwseq = dcn30_hwseq_create, -}; - static void dcn30_resource_destruct(struct dcn30_resource_pool *pool) { unsigned int i; From patchwork Wed May 24 03:59:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98283 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2581804vqo; Tue, 23 May 2023 21:09:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6oZZ2JbK+zSI3DN46map330XCo1ZJe4T2DJVz3ooUsv/W0m/pEK7Ql54Z1k0+51/qxlPbH X-Received: by 2002:a17:90a:6b84:b0:250:8f09:75f2 with SMTP id w4-20020a17090a6b8400b002508f0975f2mr13942366pjj.22.1684901356765; Tue, 23 May 2023 21:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901356; cv=none; d=google.com; s=arc-20160816; b=Laaf3DHcw7AtVDT4ueUgRHA9WVSl1sfJk8YRw1xz6ZSMZzSz1FjW1UheChOtu934W8 3FKF8Qgwd6wrC/v+8IAf5x8mkvKX+L3lVzO7OTrF8p37sDhyoNfMKlFuYkfhbZDUhNGv s7JF/jhOfJ3RxKA60oT5oLLHaUjRQniOwSviWgtbYJ5V/ojZ4KYOgF/ISVrrQKAdZtuk ijD3qhfXZsIsyTc9HZ11KNcazBILbSsphGiIbC941+l0cLY7qFx0Jdta/xiFkDebAxTs +5AfOos23B/8/e9Fcpn4eUvqCydIFSK0RrwDRfLd+CwdDo08wkNhcmRMsYz3ORPTeuud DGfQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=doYVN5UhUuQ/TUszSxbgJgTY2ZYWkOUf0jgDlCHuKDo=; b=f3FDS/MdQgoxDqzXu85uEYvrC5qaxgm6dJvwJRks5PwMHE2nf32dS8LGkR1TmZcdiU wgetRCOul0qwwXSOQWdWxPsxpPt6QposZwXXHHBk47uXL5cvFkUqPdB8Wa3iU0o3+oXC dj1pshaeOVG/GaD/l9nf5iQthysYP9dl5jBOSbxPWaNy3aRHONzOiYmF1Nry7QRK5XqV jo+TFCK7tkY29pHbL/D+hPigllWyj8v6w2a0jLvyQsuL2wqTdLKxxdyD1qXaOVVDMbPs nnWl/RqGPZ1UYBfThoRacAtcQkmTS8OZx7Q1cFy/HKLXvtKHHRsNLEhr0pNbL59320Pd buFg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi8-20020a17090b4b4800b0025346cf794dsi282049pjb.134.2023.05.23.21.09.03; Tue, 23 May 2023 21:09:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239430AbjEXEAS (ORCPT + 99 others); Wed, 24 May 2023 00:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239422AbjEXEAH (ORCPT ); Wed, 24 May 2023 00:00:07 -0400 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0024DE8 for ; Tue, 23 May 2023 21:00:04 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R691e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMa8E3_1684900801; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMa8E3_1684900801) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:02 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 04/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:43 +0800 Message-Id: <20230524035952.123590-4-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766747125318160622?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:1356:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.c:894:38: warning: unused variable 'debug_defaults_diags' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../drm/amd/display/dc/dcn31/dcn31_resource.c | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c index 9c637c895f91..f2d589c505a8 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c @@ -891,24 +891,6 @@ static const struct dc_debug_options debug_defaults_drv = { .dml_hostvm_override = DML_HOSTVM_OVERRIDE_FALSE, }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = true, - .force_abm_enable = false, - .timing_trace = true, - .clock_trace = true, - .disable_dpp_power_gate = true, - .disable_hubp_power_gate = true, - .disable_clock_gate = true, - .disable_pplib_clock_request = true, - .disable_pplib_wm_range = true, - .disable_stutter = false, - .scl_reset_length10 = true, - .dwb_fi_phase = -1, // -1 = disable - .dmub_command_table = true, - .enable_tri_buf = true, - .use_max_lb = true -}; - static const struct dc_panel_config panel_config_defaults = { .psr = { .disable_psr = false, @@ -1353,15 +1335,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn31_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hpo_dp_stream_encoder = dcn31_hpo_dp_stream_encoder_create, - .create_hpo_dp_link_encoder = dcn31_hpo_dp_link_encoder_create, - .create_hwseq = dcn31_hwseq_create, -}; - static void dcn31_resource_destruct(struct dcn31_resource_pool *pool) { unsigned int i; From patchwork Wed May 24 03:59:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98275 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2580100vqo; Tue, 23 May 2023 21:04:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5h4Kf7vevJnLftwr9bbP2xRcjr56eU8ib7cDyTuErIaOilTVKuQl0fzxSrfERzJPCjbM5b X-Received: by 2002:a17:90a:bc86:b0:255:4cae:9b30 with SMTP id x6-20020a17090abc8600b002554cae9b30mr10228415pjr.5.1684901051773; Tue, 23 May 2023 21:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901051; cv=none; d=google.com; s=arc-20160816; b=semuL4hUoQFrrxzCy8OXmzy8YW61EHnMObuuf3JR6assKBfHamzG1DihKIEeRLAHqP EdrQeH1MzyWuzC+Qg9sBghg3/67Z1HcbPpqfO28Q9MMcrHdc8yvZfAAXsDFoKuyI41ZG 91MhUiQxJBS0hUTxpK3wCH2LkySTzYnrgnvpEY98c9TqN/n53EbBnuu4Y+pXt7t/njff O4je6w2DlNPP40Ks7FExYHnaeqASTe+Jh5bNaTR91gSGKKvv7w8j1OFa/kfcsO0rF4Eh UawObAg4a86l8nx4dHgiCVaFUk9tFMQclu9qMe+ZsqB/SFUoFYONcCnFuACYQ9aXlAsc YGqA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=mmUbcX8jPQvQL4o6zuwcbVNASH2GPPsVTp8pFcY6re4=; b=ijhCSFY57Km3Zh+I2Zkjr/IjDIiDbe92qHh1oKc1NkkbJcjzo3VCVQ2vRmrTX5ea8g EXxzWgyHBZ/IKz/GV/uhL8v1SVbCiUi/Fe5ak6Cxu0kZMOe4aOYoJPvoHj3AcQttMdzm wvRTHQZBRi0H/pHXJenZkxPg0Bgpf/Dv9HhEG6KZ+1NAqep3RBc8gZrGhla2QR72dis3 /G2HMRoXcoaqsEO3WA2xbW0FngjphNBw8DfWp5CWGxeut8KB4KeqLeohQid2mbUGr7Ew wFHiQ3AEs5OaV3Xgyj02UoII1JGRXmjYSEqn+N4+xiaaNZv2FBEHO8K8/CQsCLwi86Vx SlLA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c22-20020a17090a109600b002475bc0a186si526789pja.69.2023.05.23.21.03.55; Tue, 23 May 2023 21:04:11 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239441AbjEXEAY (ORCPT + 99 others); Wed, 24 May 2023 00:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239425AbjEXEAI (ORCPT ); Wed, 24 May 2023 00:00:08 -0400 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 204D1119 for ; Tue, 23 May 2023 21:00:06 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMa8F5_1684900803; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMa8F5_1684900803) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:04 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 05/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:44 +0800 Message-Id: <20230524035952.123590-5-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766746805046569028?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:1360:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:737:38: warning: unused variable 'debug_defaults_diags' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../drm/amd/display/dc/dcn32/dcn32_resource.c | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c index 33abc8c9d4be..2e6b39fe2613 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c @@ -734,26 +734,6 @@ static const struct dc_debug_options debug_defaults_drv = { .fpo_vactive_max_blank_us = 1000, }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = true, - .force_abm_enable = false, - .timing_trace = true, - .clock_trace = true, - .disable_dpp_power_gate = true, - .disable_hubp_power_gate = true, - .disable_dsc_power_gate = true, - .disable_clock_gate = true, - .disable_pplib_clock_request = true, - .disable_pplib_wm_range = true, - .disable_stutter = false, - .scl_reset_length10 = true, - .dwb_fi_phase = -1, // -1 = disable - .dmub_command_table = true, - .enable_tri_buf = true, - .use_max_lb = true, - .force_disable_subvp = true -}; - static struct dce_aux *dcn32_aux_engine_create( struct dc_context *ctx, uint32_t inst) @@ -1357,15 +1337,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn32_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hpo_dp_stream_encoder = dcn32_hpo_dp_stream_encoder_create, - .create_hpo_dp_link_encoder = dcn32_hpo_dp_link_encoder_create, - .create_hwseq = dcn32_hwseq_create, -}; - static void dcn32_resource_destruct(struct dcn32_resource_pool *pool) { unsigned int i; From patchwork Wed May 24 03:59:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98274 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2580066vqo; Tue, 23 May 2023 21:04:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6X9a2AKsc7qge7J/n1vm5y5hVz9L2oaBYEckCie/OkTixCoYlGsldObIeLPk69UCRzY6Wb X-Received: by 2002:a17:90a:f6ce:b0:253:2995:f4a6 with SMTP id er14-20020a17090af6ce00b002532995f4a6mr15832432pjb.38.1684901048161; Tue, 23 May 2023 21:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901048; cv=none; d=google.com; s=arc-20160816; b=K7bgRw4NIIFb8yptvwoy6ImC1tBeNJdmnlqwGtbL0AZoZx16vvBjSJjTU7XM0L7dIj gV9XaSJnlaKExHxr6aw4KctGbiP7pmDHRyI2wLeA3b9kYZUiXdavy0N+YjGkM/qOJ2ne mTQZMheMKRRGKumb8Bk2Zos3+19eqF+LyN+Vqol/l7dDWktpee0rn2EsClwPbqXILPnX VXdz4IE8DiwulHhKvbnSA0UjYXYJcYIOxtV7EGZr51b7xNe4e1VG4E0k6VIKKkdO2QaA X3lGmJoOWY4Ui56zBii8h1bDek6CGnlD6uTGt+zrV0UTXcYf3KakRMBHXv5oq9204Mz/ aQuw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4EFemedFjcsXfHIDQv0KKLFy9LrVWRI8se2ws8NjrEo=; b=FWq/VFdwxV++nKXIxU3wlb923MRFTVIni55G77Cd/UDaDrmXjXBkVRX/sJrSnXV4fM QtVW/vidZvNdpnpVlpNMPFzqkZpdOKUh8p7h+Yq33Y2Mcr35caQksj1/J+HtkFxoiS5X 02pxIEXlRZykwrJhCfXOC9LjeecBPDAv4d1JhUWVsN2yOquLHWU+0xtO5V14m7LJSMDS 7UgDpMV695EkvtAmsRagJrlL+0NE8HMXMx9FuA0ZPdX4sbxGTlnCU9SwT3QgrewlkscJ EEQUG2vLSB2teDE5trkk6+DF2r0DJxv/+aaKqOtFDzYWe/PA6nTdh4P341eoYN5sV4iM v5PQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mg10-20020a17090b370a00b00233f3034302si552535pjb.46.2023.05.23.21.03.51; Tue, 23 May 2023 21:04:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237460AbjEXEAa (ORCPT + 99 others); Wed, 24 May 2023 00:00:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239431AbjEXEAK (ORCPT ); Wed, 24 May 2023 00:00:10 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AC00C1 for ; Tue, 23 May 2023 21:00:08 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R911e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMZ3I8_1684900805; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMZ3I8_1684900805) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:06 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 06/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:45 +0800 Message-Id: <20230524035952.123590-6-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766746801375631737?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn301/dcn301_resource.c:1050:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn301/dcn301_resource.c:705:38: warning: unused variable 'debug_defaults_diags' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn301/dcn301_resource.c | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c b/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c index 1cf84a086fec..3485fbb1093e 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c @@ -702,23 +702,6 @@ static const struct dc_debug_options debug_defaults_drv = { .exit_idle_opt_for_cursor_updates = true }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = true, - .force_abm_enable = false, - .timing_trace = true, - .clock_trace = true, - .disable_dpp_power_gate = false, - .disable_hubp_power_gate = false, - .disable_clock_gate = true, - .disable_pplib_clock_request = true, - .disable_pplib_wm_range = true, - .disable_stutter = true, - .scl_reset_length10 = true, - .dwb_fi_phase = -1, // -1 = disable - .dmub_command_table = true, - .use_max_lb = false, -}; - static void dcn301_dpp_destroy(struct dpp **dpp) { kfree(TO_DCN20_DPP(*dpp)); @@ -1047,13 +1030,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn301_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hwseq = dcn301_hwseq_create, -}; - static void dcn301_destruct(struct dcn301_resource_pool *pool) { unsigned int i; From patchwork Wed May 24 03:59:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98277 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2580179vqo; Tue, 23 May 2023 21:04:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6D7xO713hPenh8lJSQUMYvZ0eyd2bNh9VtuLgYcpoPxfG/mgwbf2F9+A8jEqcR9Nj/+6Aw X-Received: by 2002:a05:6a20:6a0b:b0:10b:189e:c1de with SMTP id p11-20020a056a206a0b00b0010b189ec1demr11722129pzk.10.1684901063118; Tue, 23 May 2023 21:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901063; cv=none; d=google.com; s=arc-20160816; b=TGLgrE02E9QWncMY7na7BNje1DcIqN2qdptHSz0MmsKtc2sZZm8HB32huTfpnrtSuw aFTGfzyWIeEKe+iP58LogvdgYyuM86UuOaX7o9PpI69BjBS9W/nR4dc2ZnV7/E0PCm2w yRQ4Al9SzqZRDlWI4VLi+9ePAj6sNgwX+jAo0U73K/y/cspVHBzFZINwFLfp/rE70wez s0LW8x7Tjcwurzw+A+r/AqLnyyGZ713vAIOq7GumoQKoKpCm2a15WmY2NnaXFLT0xjax p6QhudJS78Lwj5J5EdYZvm2iNiLXKAXAI4rF0KJ0Tktfg3Uo25MmuZ1jFL/ZVFgmPynX /QUg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ZuIQSXjRBGnV4eKVflExJSajyV0Ydb6mPBNNAehMGZY=; b=w5JvIvQn7jWBBJ1YFZ4FaCUCqBG97zFdd+jV1HmBKLgy6BUfjvjGBoDlPbCOTYn9kC u1y+pkEcutZHbR6tr8kaaHIv1bW1MCKCEYbnh7ZFnmXUFgnzRZTi2sKsCeutNf8fug+y yEzFLV9tL8nSXL/mexKjaJpXVbiXcHTewfQBib/F9I+cLA3Q1dEaHENOL08zC8mIEEEl pjH10Og8x1NHwRki0+E5uDcoJKnf79BMtujwQCQe4ir1tjJ0tOzxPdOBfRWsQ5ijRYaY YKs8GPtdXlL/Q9laLuWrp9E2Pz++yyFOUh9cIbvJDGuxYM3QX5cfm5+HHyiXAKJSCJ/N ULWA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b30-20020a63931e000000b005300dbf81d4si7679999pge.823.2023.05.23.21.04.08; Tue, 23 May 2023 21:04:23 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239442AbjEXEAg (ORCPT + 99 others); Wed, 24 May 2023 00:00:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239437AbjEXEAP (ORCPT ); Wed, 24 May 2023 00:00:15 -0400 Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3120C196 for ; Tue, 23 May 2023 21:00:11 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMWCGq_1684900807; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMWCGq_1684900807) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:08 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 07/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:46 +0800 Message-Id: <20230524035952.123590-7-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766746816976806852?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn302/dcn302_resource.c:957:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn302/dcn302_resource.c:101:38: warning: unused variable 'debug_defaults_diags' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn302/dcn302_resource.c | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c b/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c index efd98d64588d..93f42132c900 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c @@ -98,24 +98,6 @@ static const struct dc_debug_options debug_defaults_drv = { .exit_idle_opt_for_cursor_updates = true }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = true, - .force_abm_enable = false, - .timing_trace = true, - .clock_trace = true, - .disable_dpp_power_gate = true, - .disable_hubp_power_gate = true, - .disable_clock_gate = true, - .disable_pplib_clock_request = true, - .disable_pplib_wm_range = true, - .disable_stutter = false, - .scl_reset_length10 = true, - .dwb_fi_phase = -1, // -1 = disable - .dmub_command_table = true, - .enable_tri_buf = true, - .use_max_lb = true -}; - static const struct dc_panel_config panel_config_defaults = { .psr = { .disable_psr = false, @@ -954,13 +936,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn302_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hwseq = dcn302_hwseq_create, -}; - static bool is_soc_bounding_box_valid(struct dc *dc) { uint32_t hw_internal_rev = dc->ctx->asic_id.hw_internal_rev; From patchwork Wed May 24 03:59:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98276 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2580124vqo; Tue, 23 May 2023 21:04:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Egm7PMMr80RMeoeGXtNru4PNI1vmErnrF0Jy0WgZ2cs4qbtMPLgjBVsdlBjMuNVnZhE8m X-Received: by 2002:a05:6a00:851:b0:63b:859f:f094 with SMTP id q17-20020a056a00085100b0063b859ff094mr1799558pfk.20.1684901055253; Tue, 23 May 2023 21:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901055; cv=none; d=google.com; s=arc-20160816; b=LDpfm0G60s9o3iC0W/xBNkCya3meEkKSXnfdbUplmeR/RibjECkfLHC3qUHSTw0oFq sYEFnP5BS/FmhX/UWkf56wIRwefomQFEkyVPFXwCjGoDIbNr9itmCvPaFUKfZCTwKMwk LWb5LCUM+hts1dJzBnwQrJvgVV/4snUPLV0khItVifuj2QVH7yj2tGjYI6lxj0yyByET KEX3a2P+Fzagek15Xl2ekheOViRu5APtgj9XYoavUjir31TlR4X/XZKi+cpxxu7WNE/t ZrK9D0Mbk3otL6l5GenZNdxXD5IOYF+9A01N32XPpBhAG1AgWbn2N8iOmiqHu1R1AJKU X/3w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=QtiYOiTaoJF2+PTqiSuNYMWYJEUlPUTEJ3PnWKuZimM=; b=C9Raq9ZipbjnMvK0vreY/VrLtFPwq4NWNbSblZEk8eCQjzkllyY1xCAqWXq/Ds6KPm 9F76bEIsS1iSvN9eFwAlPzzoq1YuKil9whqXC+A/IoMbWDuxiFNbG8tzWCXegQEx8Wq/ iPpXZFEae2kpE25ADuOAwvtI5g/p+rcE7FjoSFCR473VAqGR/Zmrfl+EYd+h5lfJvpN5 K0RBLxGXgWokGPYV3sxLGH18pfmjMdqCZvyQXwQHeWqdUwnFJtzVvLSSzlsrQFAKcRqj ckSAzktyhzFB3K3PToy9Faa59QEwCdw/KxsE/XaJeBi0kGUGC/pA47EZu9TElz3LKYBa bK4A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a189-20020a624dc6000000b0064d5e97d4acsi5714125pfb.346.2023.05.23.21.04.00; Tue, 23 May 2023 21:04:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239464AbjEXEAn (ORCPT + 99 others); Wed, 24 May 2023 00:00:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239443AbjEXEAe (ORCPT ); Wed, 24 May 2023 00:00:34 -0400 Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DA5A1B5 for ; Tue, 23 May 2023 21:00:14 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMa8J0_1684900809; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMa8J0_1684900809) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:09 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 08/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:47 +0800 Message-Id: <20230524035952.123590-8-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766746808842813668?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn303/dcn303_resource.c:884:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn303/dcn303_resource.c:84:38: warning: unused variable 'debug_defaults_diags' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn303/dcn303_resource.c | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c b/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c index fcd126602178..f35514188a5c 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c @@ -81,23 +81,6 @@ static const struct dc_debug_options debug_defaults_drv = { .disable_idle_power_optimizations = false, }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = true, - .force_abm_enable = false, - .timing_trace = true, - .clock_trace = true, - .disable_dpp_power_gate = true, - .disable_hubp_power_gate = true, - .disable_clock_gate = true, - .disable_pplib_clock_request = true, - .disable_pplib_wm_range = true, - .disable_stutter = false, - .scl_reset_length10 = true, - .dwb_fi_phase = -1, // -1 = disable - .dmub_command_table = true, - .enable_tri_buf = true, -}; - static const struct dc_panel_config panel_config_defaults = { .psr = { .disable_psr = false, @@ -881,13 +864,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn303_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hwseq = dcn303_hwseq_create, -}; - static bool is_soc_bounding_box_valid(struct dc *dc) { uint32_t hw_internal_rev = dc->ctx->asic_id.hw_internal_rev; From patchwork Wed May 24 03:59:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98279 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2580307vqo; Tue, 23 May 2023 21:04:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Vqp1U1wEqVgtsGhpwZoadLha7eA4FYfYqF6wBBaUKErKLTriP5s6jgBglfrZHLTI05mGm X-Received: by 2002:a05:6a00:190e:b0:64e:6862:8553 with SMTP id y14-20020a056a00190e00b0064e68628553mr1763046pfi.32.1684901082014; Tue, 23 May 2023 21:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901081; cv=none; d=google.com; s=arc-20160816; b=Dk9rNgoI6l67MvtcyxkTMkZ3LyQNJUfkBEvE3/70+RvOjO6uSy7Sa56J24kKgxXRqD kb6ihMMAbMMygrEX3HJLy7fkazo+9xPZZSQ2AXKBPRXg5pE3Q1ReyntdQGid/PDg7i6z vgWOICAZr16qvhLczwFkLjjSr2qVts0SmjCmGgKfdghGwAS8fBM5vD2w+cvqq4OuKo3y LL/+4qhOp36elUbAjiLwadNrKEyMPHIdJ/Sr99u/ASB3ayCp0xq4BOODcNaS2dYr5ovp wAlAb5qUp0a0bfoQRnN0VeCxucizO8HCZUzkOG9FZ18BIkyTAhPdBi//t+Ia7/YdRX0+ oEig== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=gWeg22nkylE/ZUMhkOh84ey3+wJyTKYVnNcUe+t+oaY=; b=AbE1kSbH3FijOEq5mKSoxqbRPeQUwS1KtXB6/eHC7E0ZiuT9JWh1hK65Cj7kKVfTB8 S24sqap1q1M24edRH+tjHE0ckAdbEtK5e/xDYFAve0UY4ZehTvS7PMjCnmBKYxwaTI77 DPQWYE02GVZ0si/toIOgjdtZElQcZW1gVGGEKqKiUstLFcn+wt0Ggg6+JYQ6KPxoYi+r TyRwWAbSHKFfO1vDUm6i785WomOjr+rCPelP+8tegx4yCQcR0gtRJnOgFnzwrtWvfIJo kQ7eaQOjDrf5Iy7xIDhqsKoow/kILeGBksBn+hUdT06tfpungiK0KuIwz/dGt2cy22O3 35vw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a63e113000000b00520dfb861fbsi445261pgh.416.2023.05.23.21.04.28; Tue, 23 May 2023 21:04:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239407AbjEXEAq (ORCPT + 99 others); Wed, 24 May 2023 00:00:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239447AbjEXEAj (ORCPT ); Wed, 24 May 2023 00:00:39 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EC53E47 for ; Tue, 23 May 2023 21:00:15 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMZ3M1_1684900810; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMZ3M1_1684900810) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:11 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 09/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:48 +0800 Message-Id: <20230524035952.123590-9-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766746836646081735?= Eliminate the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_resource.c:1390:43: warning: unused variable 'res_create_maximus_funcs' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c index 2483d37e425d..3592efcc7fae 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c @@ -1387,15 +1387,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn314_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hpo_dp_stream_encoder = dcn31_hpo_dp_stream_encoder_create, - .create_hpo_dp_link_encoder = dcn31_hpo_dp_link_encoder_create, - .create_hwseq = dcn314_hwseq_create, -}; - static void dcn314_resource_destruct(struct dcn314_resource_pool *pool) { unsigned int i; From patchwork Wed May 24 03:59:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98280 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2580354vqo; Tue, 23 May 2023 21:04:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4EJpvxc/TuVIsOfj7AHlNIzNyZineZyN4w5mUuxm4KV2qe9BRhpYcWvVOMRS2l188ELrb9 X-Received: by 2002:a17:90a:1b6c:b0:250:ce6a:cf1a with SMTP id q99-20020a17090a1b6c00b00250ce6acf1amr15357062pjq.38.1684901089561; Tue, 23 May 2023 21:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901089; cv=none; d=google.com; s=arc-20160816; b=W7EOmTLn+TpdtIDRGAtzCAlsKhy6d5pJ9nmELwsoeAQ0GIFQ1mviiau6DgeXSMk4dW clfCRyB9DmwUA1w349bopo2kHU4tVRo721lRQE5/49bTWjrlFCHDluZ3DbO6dba/9HKz 9YQGzsRdXKstYQTqVUFhR2CgkPxexUt7STyKxhV8OmBWD6nGLgOxk6mGbgOs2lOc5tAL 2Al1ig3oAdMdq23cmVBRPQmp242zkpIRyvcq+XZ7gqoZ5EpLCT+mh9zDIQ5l9SBA2P9e vvQt5aigMV6iv5mgc6KZPKLqEfSPSUzKTGYqt2wljIjA1SsUfIc0+f50LLWpHAqzzFAa ivsw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=vyZ+TCBOl36d50nEca9ATBS3SvIh0FvE6tY8vC3ZTis=; b=d0oKSzl0BgmgjDa0WUg71GSaBjGTRXl3T3qYZflhZ3ypSZ9I+GV4pW+Q96B3FXg2Vf mVaAs68USBrmYmaXgWYmhoQcZ3bGj51H9baw2rHKwQZf7vWP9alwlp4xXH14ZT0hUzHK Huu2uL2XkZG39CaNi39h8KAT8rxL6WQRn+M9Bf3u5qVl1BRTmr4pLjim6SVTxbHJ7Jnn e3lyuLiW4haXG4OvHwGBu/uNtTILtz+Gg28+BSxHGfhtdN27kBgGnNIOIa3nUy9aCvVE 6xGK65LB7bI+M2FUHpzNw5p7p4I+aTvsIY2qWQQgnUzFriGtA41thMvy8C2ABYDDieu9 OznQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a17090abc4600b00252e51a9fbasi524141pjv.122.2023.05.23.21.04.33; Tue, 23 May 2023 21:04:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239477AbjEXEAs (ORCPT + 99 others); Wed, 24 May 2023 00:00:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239455AbjEXEAk (ORCPT ); Wed, 24 May 2023 00:00:40 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D444E50 for ; Tue, 23 May 2023 21:00:15 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R571e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMWCLX_1684900812; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMWCLX_1684900812) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:13 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 10/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:49 +0800 Message-Id: <20230524035952.123590-10-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766746844756990095?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn315/dcn315_resource.c:1357:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn315/dcn315_resource.c:893:38: warning: unused variable 'debug_defaults_diags' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn315/dcn315_resource.c | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c b/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c index e6d87c162d26..cb95e978417b 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c @@ -890,24 +890,6 @@ static const struct dc_debug_options debug_defaults_drv = { .psr_power_use_phy_fsm = 0, }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = true, - .force_abm_enable = false, - .timing_trace = true, - .clock_trace = true, - .disable_dpp_power_gate = true, - .disable_hubp_power_gate = true, - .disable_clock_gate = true, - .disable_pplib_clock_request = true, - .disable_pplib_wm_range = true, - .disable_stutter = false, - .scl_reset_length10 = true, - .dwb_fi_phase = -1, // -1 = disable - .dmub_command_table = true, - .enable_tri_buf = true, - .use_max_lb = true -}; - static const struct dc_panel_config panel_config_defaults = { .psr = { .disable_psr = false, @@ -1354,15 +1336,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn31_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hpo_dp_stream_encoder = dcn31_hpo_dp_stream_encoder_create, - .create_hpo_dp_link_encoder = dcn31_hpo_dp_link_encoder_create, - .create_hwseq = dcn31_hwseq_create, -}; - static void dcn315_resource_destruct(struct dcn315_resource_pool *pool) { unsigned int i; From patchwork Wed May 24 03:59:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98278 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2580303vqo; Tue, 23 May 2023 21:04:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/lBhF3FIWwqP6csNdtVuqAcgc8ZloYuLugyu9wrOdPOF9cIppbeY8mBOb9CI+JagOXg1T X-Received: by 2002:a05:6a00:851:b0:63b:859f:f094 with SMTP id q17-20020a056a00085100b0063b859ff094mr1801327pfk.20.1684901081408; Tue, 23 May 2023 21:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901081; cv=none; d=google.com; s=arc-20160816; b=mUhD347cMdEziQRqpnY5fHWRdoGcGHxMLMdyOGN+pe3e2ljP8Vy/nVusj1kR3KYPmA JzWcyHsXStruhE7am9BBaBuP25+vr1gh07xiBlb0yYCy6Jh0oIJDTbjGE0FMnZoidH2d ZSfcuUuZbcAbey/+4+Y21ugnF1xy9Zsb1Lq4UGByIoy7KZSnLE3pHeqMyqRYY1mqxV/3 rOIV1SAyBOf0WtM0q8oMTzf9d84c5iXN7jepjKuwLl2QHk/OtX76jXXBsJriUaxCqf0I Bipk/yyFqUmtMpHgY9NUkWYT5r1FoWPMqZd2YACUUEfFUxhDkoBrbliAhtDSoWX3a+xv 2kpA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=gGxAjcibJPpr2xAc3yfoPSYPCOcsZLnpe2z/5ycPnv8=; b=HWl09mKQFCX2I8xQN/1fvKyYvZc366bfOtMfhCy65XEQmKbsNzZOYEvKeJGvknOxUa HMRNGqCCjLXsuvh4vWpdENiASV6ihJdumktwX+DVGcljuxxBok7sJiA466xmoS/Hoawi OQa2tp08Z9P2x1mU9bgfedwd9xvGapthJGHvnqJ5BMkja6BKNdefX+mI+V8AvprcFTN5 kdYIXlWC0/pQJyAyIenuiHkT4jAdpMJ9x9nJUwZpr0HSIz6c1e7Vbx/LXQMqVbPkd1zT G9hfgorexkJN3Ug8iTWb4wknStya0RanMz2b/eBa2fPy3sRtAqFeXWKfKSguknWBr7Kk nESg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v12-20020aa799cc000000b006434e20d023si7727031pfi.399.2023.05.23.21.04.26; Tue, 23 May 2023 21:04:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239490AbjEXEBA (ORCPT + 99 others); Wed, 24 May 2023 00:01:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239485AbjEXEAo (ORCPT ); Wed, 24 May 2023 00:00:44 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26025E62 for ; Tue, 23 May 2023 21:00:18 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R841e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMYJa-_1684900814; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMYJa-_1684900814) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:15 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 11/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:50 +0800 Message-Id: <20230524035952.123590-11-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766746836012000627?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn316/dcn316_resource.c:1355:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn316/dcn316_resource.c:899:38: warning: unused variable 'debug_defaults_diags' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn316/dcn316_resource.c | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.c b/drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.c index a3be61cc541f..b6e0aa2ab27a 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.c @@ -886,24 +886,6 @@ static const struct dc_debug_options debug_defaults_drv = { }, }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = true, - .force_abm_enable = false, - .timing_trace = true, - .clock_trace = true, - .disable_dpp_power_gate = true, - .disable_hubp_power_gate = true, - .disable_clock_gate = true, - .disable_pplib_clock_request = true, - .disable_pplib_wm_range = true, - .disable_stutter = false, - .scl_reset_length10 = true, - .dwb_fi_phase = -1, // -1 = disable - .dmub_command_table = true, - .enable_tri_buf = true, - .use_max_lb = true -}; - static const struct dc_panel_config panel_config_defaults = { .psr = { .disable_psr = false, @@ -1352,15 +1334,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn31_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hpo_dp_stream_encoder = dcn31_hpo_dp_stream_encoder_create, - .create_hpo_dp_link_encoder = dcn31_hpo_dp_link_encoder_create, - .create_hwseq = dcn31_hwseq_create, -}; - static void dcn316_resource_destruct(struct dcn316_resource_pool *pool) { unsigned int i; From patchwork Wed May 24 03:59:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98284 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2581824vqo; Tue, 23 May 2023 21:09:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Zx+N3dyltbgU85YUlUZsMpVDMrVtpONUfzbbNjAJ+wN2sOX+Tx2btxtSUHgAuzY/nUxyH X-Received: by 2002:a05:6a21:329f:b0:10b:c48:5456 with SMTP id yt31-20020a056a21329f00b0010b0c485456mr13603564pzb.0.1684901358166; Tue, 23 May 2023 21:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901358; cv=none; d=google.com; s=arc-20160816; b=nr0p0jje0oYneZyesaeU7IBVDwz6qscfyZKMrGxMhz2uvDZ8YoIxHW3voGGjtIrGlq WVMVUL4t2di+waP1SFvXAyCKHCRSjRn7fVynMLG6hn0cMvq5chdAmXP6w1IxNgk+AN7L U0tUX+yguZlkjTl1ZvVdd3HnVCOdlv/T5dAKXiUiUG3YeE2PRQuYdrmCCQk6v++G3K5D PuOy8fTxRqHFrkdR4zvEZrBEjau7N36HhfrPcefBPcxdv/VfH8mEJ/FAr3MFaW6FVt/J TY29I8utEERITkH+k+ps9Jk3fIzVLQPevZwVmW+bIFu/N060UEk5Fo1TvR6Bsmvc2y66 pTPw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=p9hmT1Urks4xliUNkp63TLswHPifdPtD0/SaykeRsm0=; b=0kYPk+uTF0NVzDY2NHLSZZ01VmMtLRPMpgedCovBoW8KM7UVihdPCx3pog0ny8OSAs +sBUlY2Ll/h8RbR5BzWgdqVvb4moo9fFscTvE47ewvC2ntom97FfwvZgaCBVlNFqz3+7 Fcs6gyKRQqz92QmZSZx30arWx3KWgRmfPjyLoxtl+K0q8RTFwytLJNCStN9RCQ9ru/aV rQ9a9qn9xW+avzdJc3QBz9xD4oh1Je4OeJTVO0iQFtDQiWLOKiPSRdh7Ql2Mnomh0yH2 RUbKL3nJ1RKgXcliLUHn7rwIh3aznizMr/EQYQbVBNvNKBosNPnWT1B0D1zI6lCLSzXo n5Ng== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e124-20020a636982000000b0053b9ebed2adsi1491527pgc.190.2023.05.23.21.09.04; Tue, 23 May 2023 21:09:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239502AbjEXEBD (ORCPT + 99 others); Wed, 24 May 2023 00:01:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239494AbjEXEAo (ORCPT ); Wed, 24 May 2023 00:00:44 -0400 Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31EC2E6E for ; Tue, 23 May 2023 21:00:19 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMVrSC_1684900815; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMVrSC_1684900815) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:16 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 12/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:51 +0800 Message-Id: <20230524035952.123590-12-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766747126561958651?= Eliminate the following warnings: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn321/dcn321_resource.c:1346:43: warning: unused variable 'res_create_maximus_funcs' drivers/gpu/drm/amd/amdgpu/../display/dc/dcn321/dcn321_resource.c:735:38: warning: unused variable 'debug_defaults_diags' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn321/dcn321_resource.c | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c b/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c index af0bb3e94250..bbcd3579fea6 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c @@ -732,27 +732,6 @@ static const struct dc_debug_options debug_defaults_drv = { .fpo_vactive_max_blank_us = 1000, }; -static const struct dc_debug_options debug_defaults_diags = { - .disable_dmcu = true, - .force_abm_enable = false, - .timing_trace = true, - .clock_trace = true, - .disable_dpp_power_gate = true, - .disable_hubp_power_gate = true, - .disable_dsc_power_gate = true, - .disable_clock_gate = true, - .disable_pplib_clock_request = true, - .disable_pplib_wm_range = true, - .disable_stutter = false, - .scl_reset_length10 = true, - .dwb_fi_phase = -1, // -1 = disable - .dmub_command_table = true, - .enable_tri_buf = true, - .use_max_lb = true, - .force_disable_subvp = true, -}; - - static struct dce_aux *dcn321_aux_engine_create( struct dc_context *ctx, uint32_t inst) @@ -1343,15 +1322,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn321_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hpo_dp_stream_encoder = dcn321_hpo_dp_stream_encoder_create, - .create_hpo_dp_link_encoder = dcn321_hpo_dp_link_encoder_create, - .create_hwseq = dcn321_hwseq_create, -}; - static void dcn321_resource_destruct(struct dcn321_resource_pool *pool) { unsigned int i; From patchwork Wed May 24 03:59:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 98282 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2581734vqo; Tue, 23 May 2023 21:09:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ozdtZg5vX4fQrkDw1vBi8/nKWMrJ2rWdyxsnFT2/c5gyxXVo/awderZU/TX9kr0/jYqeT X-Received: by 2002:a17:90a:6484:b0:253:971b:dd1a with SMTP id h4-20020a17090a648400b00253971bdd1amr13318536pjj.9.1684901346151; Tue, 23 May 2023 21:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684901346; cv=none; d=google.com; s=arc-20160816; b=TyozU3wB7KIWOTDqIS7ArkLqq7EAnKw7zsCMmN5o0ZdK08E8NIwMRFW3yESSXilKNs CQjXx3kDedl3hBWJWuEoiuWxSfJS3pmOvA4kPCU59qZeaVbuOFUWEe2WqH/ZBYfbJ6ua GlPIhnqSIHLNZdqlzlxUW1/Dq73GuAeOYNpvFDnllbAP9HaBU2GSzlblHlcYSAi45Nci wyjcrRA6kgjCaiYtKg46J0yZ9UT+BqA538IqIh825jaoBTpy9Otd3KnelYGPHGfIKvVc SoJC4VoA0h1dRlOq4JKhiNh6VN9v8kBaPAHHTTV7nk/al3UEL+t06K/8f06elCzB5W1/ Owqw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=S0T0fserPBz8BBa1f1RxoP0qBgXqJtrcHYYruUiWjvw=; b=iyjaKjfhXwcxD1SLZJ0vKBPaowo8ilKMf5AQl2tReikq2p3xN8jGq95JavI6rRBQmJ PpEVODtM936LI+UneKy6cT1DtyfMtyw9QbUfzAXUHyUNAfh7tn2h5jqSScEJaata7wQB DYZvq1Horf2F6xov/vceo+WPtLahnvVMwcmMSUaEQ3ZCbeaV0zkItSMK0n8LAp+imT5B RChEZkbHZpAPKSEcHQ+dLOR316WK32baOIfuE0HTeEpg83UtY7BXbjdjNNutwL1BHVHe NuG+gkg4AWUJnV9gNSNeYKFF0l/ZcDww0ptitUdPmBiYjA6/eAd8le3vmVi8ibcRRkDF Rw4g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a17090abc4600b00252e51a9fbasi524141pjv.122.2023.05.23.21.08.51; Tue, 23 May 2023 21:09:06 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239510AbjEXEBI (ORCPT + 99 others); Wed, 24 May 2023 00:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239500AbjEXEAp (ORCPT ); Wed, 24 May 2023 00:00:45 -0400 Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91359E78 for ; Tue, 23 May 2023 21:00:21 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VjMZ3QC_1684900817; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VjMZ3QC_1684900817) by smtp.aliyun-inc.com; Wed, 24 May 2023 12:00:18 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 13/13] drm/amd/display: remove unused definition Date: Wed, 24 May 2023 11:59:52 +0800 Message-Id: <20230524035952.123590-13-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230524035952.123590-1-yang.lee@linux.alibaba.com> References: <20230524035952.123590-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766746714419232333?= X-GMAIL-MSGID: =?utf-8?q?1766747114092878910?= Eliminate the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_resource.c:899:43: warning: unused variable 'res_create_maximus_funcs' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c index 212c475d95cb..5ff09bf4bc30 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c @@ -896,13 +896,6 @@ static const struct resource_create_funcs res_create_funcs = { .create_hwseq = dcn201_hwseq_create, }; -static const struct resource_create_funcs res_create_maximus_funcs = { - .read_dce_straps = NULL, - .create_audio = NULL, - .create_stream_encoder = NULL, - .create_hwseq = dcn201_hwseq_create, -}; - static void dcn201_clock_source_destroy(struct clock_source **clk_src) { kfree(TO_DCE110_CLK_SRC(*clk_src));