From patchwork Wed Oct 19 08:24:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 4647 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp212331wrs; Wed, 19 Oct 2022 02:07:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6PANFwUdR2clt7ekaTJ1LvOVvxNGGrx1OnunkguCIYSCzleE9fzhjIDs85C1IvzLz3z7sX X-Received: by 2002:a17:906:974f:b0:791:98b8:c7d1 with SMTP id o15-20020a170906974f00b0079198b8c7d1mr5826728ejy.559.1666170435820; Wed, 19 Oct 2022 02:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666170435; cv=none; d=google.com; s=arc-20160816; b=q+yj/lPjsG3oIJsV9UlaeZaWJR9a8BhVVLiRuNjr15U8Aetx8slHQHZTviKVUSVUzB hcPO9/8QYq0/U/HJgNxT7ORMNUICXm48qHnfEjhhMOs7d7LLUUTmNUSpfaPBU4ki71lF 0QkxrczOg3ptk2xYtSsxdYYCdepzrJUjN6qb5zVPnZeHb6Mq0Rob9zJDhGxVyW7dRZ44 08xwa5AQSA++tIkaUvWxB4Rl1IaTWAlbO+hXYFiXi7W8e4zIga6UEEgTPK2J/ZkLB++4 3sgqegZQjWfYvDlvFFrnHAfsN8+foWRGzVUi776PEeC7yvcpmw2X6mN981ntD0de7ASE yv4g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wXWVibkk8jQwwmR/J99CkkAEJ8ipZM3E8I9fbx3A9es=; b=l9FfZXYtdN21nZTn20IbEaKZOwaH+nmglE6CgOQcFzBDdX1Eepbnyo9I/SgEgapI2O sknOWdXcmoOTO8yTcipMOzmkCyG7WFmLpaf4UX3X4pJz1U35Diz/GSLeC+cdNUWnOCFx JRxGmPp9KC1AFiqd2AXqK6ZLcpTZrT81NLxCOpqk1zfsMoKzsIUDEYIvlM2dC6Ga2V0W onQIvHWlk6LoRT7aEmOdYyllPjoEDW7xHKoLySQQZ7jkTslggWpE/UgDX6Qowgig7ul0 jidBIEknzc9n2SDtKAY7Q8PlXk3wnJExfImbCVQPcSHZ/oInT5uHdrjel7vI3vRtbHmu Y90g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kEON4Qz2; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e19-20020a056402191300b0045cbe40c314si15554358edz.384.2022.10.19.02.06.41; Wed, 19 Oct 2022 02:07: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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kEON4Qz2; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbiJSJAE (ORCPT + 99 others); Wed, 19 Oct 2022 05:00:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231992AbiJSI6Q (ORCPT ); Wed, 19 Oct 2022 04:58:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E30725FAED; Wed, 19 Oct 2022 01:53:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0D5C261834; Wed, 19 Oct 2022 08:48:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F88AC433B5; Wed, 19 Oct 2022 08:48:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169310; bh=cDOXYXPCFgwK64MHs+P8Q2nfkLntiNLPYeF7r5+rXB0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kEON4Qz2tTPJmE12babjZSEv6QaWYGJdG8WzzzgVPps7rTuvoAvrPLcrvEh6u1EZd yqq7jVeI/BH92mEe/8tJXx3sdOWytFSeJsCwR1bPnrDlQngKoa+Pa+y5S/shQrSbTo LTnqieiV6aOQyUu+6+gKPztQ95+PaQRpukn+OUmU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Roman Li , Nicholas Kazlauskas , Mario Limonciello , Alex Deucher Subject: [PATCH 6.0 194/862] drm/amd/display: Enable dpia support for dcn314 Date: Wed, 19 Oct 2022 10:24:41 +0200 Message-Id: <20221019083258.555290105@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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?1747106330860041725?= X-GMAIL-MSGID: =?utf-8?q?1747106330860041725?= From: Roman Li commit f6aa84b83aee629fbbbc4ea16c2c142caf920d5a upstream. [Why] DCN 3.1.4 supports DPIA. [How] - Set dpia_supported flag for dcn314 in dmub_hw_init() - Remove comment that becomes irrelevant after this change. Signed-off-by: Roman Li Reviewed-by: Nicholas Kazlauskas Reviewed-by: Mario Limonciello Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org # 6.0.x Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -1109,7 +1109,8 @@ static int dm_dmub_hw_init(struct amdgpu hw_params.fb[i] = &fb_info->fb[i]; switch (adev->ip_versions[DCE_HWIP][0]) { - case IP_VERSION(3, 1, 3): /* Only for this asic hw internal rev B0 */ + case IP_VERSION(3, 1, 3): + case IP_VERSION(3, 1, 4): hw_params.dpia_supported = true; hw_params.disable_dpia = adev->dm.dc->debug.dpia_debug.bits.disable_dpia; break;