Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3230966pxb; Mon, 18 Apr 2022 20:00:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEq2pLMCzsZjf+7cEVhFARdu+znIHm8EzA7c0pL0CdOXQRllIVjHHMOsXB8kNeMtKPkKmz X-Received: by 2002:a05:6402:50d0:b0:423:f4a1:597d with SMTP id h16-20020a05640250d000b00423f4a1597dmr4337336edb.228.1650337200836; Mon, 18 Apr 2022 20:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650337200; cv=none; d=google.com; s=arc-20160816; b=HsR/+IB014xX09lNXQ9vywzeOtVKlGOsJQDx/ob0C2aHk6qv7+3w4O1j0xzAOljTCs gUdxBNFrEBjBeHMC5SGs3G1RDerYVMWHGYkngigASKT7u/V24FFc3ur2eokA+H05J1eC 1oS3a8Tbdd6kltZCVoPNX2JseUGPzgZPyZ68knPu0dfxmVBlWMwtCgrOwzi68jWIgwVQ WtezO82rTUMyVmliKu3/ZihQ0q8Mi0vqQGXBKrr1kIaDbDyNagrYW3k/lwbFQE1awIDA 4kQvL+CbQPBtjcYFyt7GyRjhbyKLW78icLohM4gNWhmUOeDdvbayWISCgQxUMfwOwBJs HtqQ== 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=kSpFbCyanu7jDbjcs7VFW9vm2lRBiOXYVaj2Ile8Fg0=; b=XJ4XIVsmtd8BKtYfAhF3xGpRvPan7OmBaOJ778CnmZoRt6fiz+AEgf2y5UwaIgVwlu lrxlZg4hpaXA2DtV2eDoBzd1iy+NP4jB156mzxX018tJ7KlJJeTX8RqV7CZI3vG/J8ma 9cM6SzLHdzujsmuXQSbNYP7CEG5rRg0TkcZ2XACKuMHMaRHESA6MzqZqJgzVZjRpo5rN iDf2VT2J1sBEN6AZA1lbyxFHz5bXb3pkj8U53zTUmJE+piM+7bxDAegkZ0O3nF2w6iFQ nsN0YGEvd/81emXIXvNSpr5yef7zT9rAZV73rgD2CopRbpCdFpSu5zoHsnqcPCknt6eY a7YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VYf8j9aW; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gv47-20020a1709072bef00b006df76385cacsi7119511ejc.332.2022.04.18.19.59.37; Mon, 18 Apr 2022 20:00:00 -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=VYf8j9aW; 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 S238081AbiDRMRv (ORCPT + 99 others); Mon, 18 Apr 2022 08:17:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231304AbiDRMRr (ORCPT ); Mon, 18 Apr 2022 08:17:47 -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 2EAC7DF1F; Mon, 18 Apr 2022 05:15:09 -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 BF0B660F07; Mon, 18 Apr 2022 12:15:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF1BAC385A7; Mon, 18 Apr 2022 12:15:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284108; bh=qpVTc7+3ifbfoP/oGzLvgbLxeru/ApKNEpfvierqZMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VYf8j9aWvqlnS950Atvjn8Gl4ZdqJqXo9yulrddDo7xTtAbKLQTimtouFj0ODAXZH a8Vyw1PBw5IiYSezcJiayMkU2VlY+sQNZGsPCOCGToiILS4NSILYlITbcfS4kL6Clh CgIgAyYapLMF/oaY9sR45twYGWOqPTwDemXJz1qs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Harry Wentland , Nicholas Kazlauskas , Eric Yang , Alex Deucher Subject: [PATCH 5.17 002/219] drm/amd/display: Fix p-state allow debug index on dcn31 Date: Mon, 18 Apr 2022 14:09:31 +0200 Message-Id: <20220418121203.537077401@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121203.462784814@linuxfoundation.org> References: <20220418121203.462784814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicholas Kazlauskas commit 3107e1a7ae088ee94323fe9ab05dbefd65b3077f upstream. [Why] It changed since dcn30 but the hubbub31 constructor hasn't been modified to reflect this. [How] Update the value in the constructor to 0x6 so we're checking the right bits for p-state allow. It worked before by accident, but can falsely assert 0 depending on HW state transitions. The most frequent of which appears to be when all pipes turn off during IGT tests. Cc: Harry Wentland Fixes: e7031d8258f1b4 ("drm/amd/display: Add pstate verification and recovery for DCN31") Signed-off-by: Nicholas Kazlauskas Reviewed-by: Eric Yang Acked-by: Harry Wentland Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hubbub.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hubbub.c +++ b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hubbub.c @@ -1042,5 +1042,7 @@ void hubbub31_construct(struct dcn20_hub hubbub31->detile_buf_size = det_size_kb * 1024; hubbub31->pixel_chunk_size = pixel_chunk_size_kb * 1024; hubbub31->crb_size_segs = config_return_buffer_size_kb / DCN31_CRB_SEGMENT_SIZE_KB; + + hubbub31->debug_test_index_pstate = 0x6; }