Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp509444pxb; Fri, 22 Apr 2022 05:55:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy34Zq3kbCWAI/jECJGKWAddBJNu0Vn8ceG4pA1pswI1ChbnB/Boj5rsr2muVsf5ik+6cTs X-Received: by 2002:a50:fd81:0:b0:41d:7582:75df with SMTP id o1-20020a50fd81000000b0041d758275dfmr4715604edt.208.1650632136533; Fri, 22 Apr 2022 05:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650632136; cv=none; d=google.com; s=arc-20160816; b=m5ePXBU8t0ExgnKZjqL7rQzDixxG++6qPNfgznovskXKxnYVsWYC2IVxNVOM+ln/Ul VvGZ0NSo9IxFSUjRkISmUPjjvxzkj762tstxYYxcG90g/J5T96JI8ZHGhIuTQ0HR1vSh 49x6XDvS5xfE6D0xyLwEdRS0l7Lm4ORYJqRY34/zf6tL0osM+LuH68cE5Ozt01qRkFc/ GoOPHh9mKlhCaPLcqLxj1lh8OdUZCgMYJU7yrfJbDNP0foXJ7VsE9CynBBcL3UUp/0u/ w5Dlzt0aYg6CglFroTQI/nOzn4SRuQlwbN7KkD0TxsXqSF5O1PlgWW+QrFokdBGe5Yxz AWqA== 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=TRykucpcIXwVAN/2OGUZVcTa22sX2mrOXoXp7R/zdp8=; b=NYmINA1VXiBRZInIBdLswU7YM8GPsJU4XtLlSLENNVe8gPJ5kBDXRtg4tYQ8Ij6jVi QifiW687M2y/IC0C8GSPb5Oc1yZrO4Hz/i/OqifbjNgxObVWUHAiUiLMO/59pmL+fL6a Lveg9BuTS0ywzyVm7Eol+e230tDTZP7bCjO9vuWcn8ARwv6D+fzZmeL6SQdm5/CVJ9ld UnNBzRPiWTmFoYB0QPgLz+xQWAViJqFuYYI6OYNgZNbs36Zm+911u3wP2/uiLhbFGHFD 3qr2tvW4Mw930vvHdnfbwP9b82hBan3DGYLLL9V4G7q+VdLkGCkgG+KO+k6+JeZW4eUW bTcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Z4K0PNXl; 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 g11-20020a056402320b00b0041d71ae2cdasi5973505eda.248.2022.04.22.05.55.10; Fri, 22 Apr 2022 05:55:36 -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=Z4K0PNXl; 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 S236135AbiDRMkE (ORCPT + 99 others); Mon, 18 Apr 2022 08:40:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239676AbiDRMdU (ORCPT ); Mon, 18 Apr 2022 08:33:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B0AB63C2; Mon, 18 Apr 2022 05:25:04 -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 ams.source.kernel.org (Postfix) with ESMTPS id 792A2B80ED1; Mon, 18 Apr 2022 12:25:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE469C385A7; Mon, 18 Apr 2022 12:25:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284702; bh=2pRgpl+ehN+GQk+VgDxgZnQU0ERx1IPYjSzEqeOKiso=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z4K0PNXl88I6UrA4jp55S4/GHMQnWQMqHMwiEfs8nj6+LFCLJppBz2N/Xh8bCko5h KNCdmBoZgyj+CFnbCVRMxYiU+D/wUftLt26jddZ8otU3EounHbYyASRlD28KkReRCe cl/zI2ShwEuNjU88rIPySr6Kf9WB8k+ZtqWQ6EQM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Tomasz=20Mo=C5=84?= , Alex Deucher Subject: [PATCH 5.17 200/219] drm/amdgpu: Enable gfxoff quirk on MacBook Pro Date: Mon, 18 Apr 2022 14:12:49 +0200 Message-Id: <20220418121212.469733435@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: Tomasz Moń commit 4593c1b6d159f1e5c35c07a7f125e79e5a864302 upstream. Enabling gfxoff quirk results in perfectly usable graphical user interface on MacBook Pro (15-inch, 2019) with Radeon Pro Vega 20 4 GB. Without the quirk, X server is completely unusable as every few seconds there is gpu reset due to ring gfx timeout. Signed-off-by: Tomasz Moń Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -1334,6 +1334,8 @@ static const struct amdgpu_gfxoff_quirk { 0x1002, 0x15dd, 0x103c, 0x83e7, 0xd3 }, /* GFXOFF is unstable on C6 parts with a VBIOS 113-RAVEN-114 */ { 0x1002, 0x15dd, 0x1002, 0x15dd, 0xc6 }, + /* Apple MacBook Pro (15-inch, 2019) Radeon Pro Vega 20 4 GB */ + { 0x1002, 0x69af, 0x106b, 0x019a, 0xc0 }, { 0, 0, 0, 0, 0 }, };