Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp657610pxb; Tue, 5 Apr 2022 17:35:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5CRC/deeviMh8wqe2fiS7WBYRYUW/uCe9dV1DFJYgwPWmSPziuk+4fdMVAPW/m4SZINai X-Received: by 2002:a17:907:7e85:b0:6e7:ee6d:748b with SMTP id qb5-20020a1709077e8500b006e7ee6d748bmr5919482ejc.281.1649205351729; Tue, 05 Apr 2022 17:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649205351; cv=none; d=google.com; s=arc-20160816; b=yEa7wkcL+AQNF3iNkGO5/kAoVT+eg4JitoWQqmuoU+h34vo08uCne9tzflXBC9gn7E Vr+Xq79B+3Kz4IGmzfXg8JwHmjxguiC/Pj1PwZ6U7bk76CoyuDts7X+yZ+nrqkOAjgkW gbzaArPktjlJhK7nNvTIM+r7d92C0Iv5dnS6VIKC0nIHPTNBWopQunoWH4pahn+GtVlT 9XEkSVVU0LIV6PMt2JBimkW6R/tbs4wEKH+3q0FCoW4PjoT13MJmlFlq4/RjUCgUjE5x 48Wzv3NG5wX0Uu2qvg9tiIbsCX1qmnt6yBTQYb0IPr0k86bA/HT7y4Uw+pjp0GkuMNFu D4vQ== 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=yn6cMXNQG4Emc6R3kiydoZ4o9cX31BbeTaNMEoAGh20=; b=T3PzEa9F0MpZKnHizTuuFyvvqtqfXhNb5cDOqanP9vRl0oArkxj7Mhb2glTIe1iHrC J0bhzV2DkKpUrywvCpN0JsA1vZE+08cGT04bll91tpvyDt0Y21hqsHMhpzyF1IM1lhrf xY2Jvy4qW54NFe5f+ZZ4JaFIb0Cvmt5/nNZrPsezDM2ByFuYbsTlgcY4BtwrrmlR/m59 4JxlsS8ctM/fs4CXI0z3fqWrmqy7WEVlxkhHUf926atsu+HlgLTQU2KX0i622GF9GLR2 8wefzM8hjyrsfymJ/x3ldavnoS5ynm5VOWbtuIgYW3Z2frAK8rr8g/5wxlsNFDmjPFe8 SnKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bmRMhthz; 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 p2-20020a170906140200b006e1479ad4d8si10582860ejc.353.2022.04.05.17.35.25; Tue, 05 Apr 2022 17:35:51 -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=bmRMhthz; 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 S241132AbiDEKsd (ORCPT + 99 others); Tue, 5 Apr 2022 06:48:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241662AbiDEIfF (ORCPT ); Tue, 5 Apr 2022 04:35:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8935C11A3C; Tue, 5 Apr 2022 01:32:08 -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 BA80EB81C19; Tue, 5 Apr 2022 08:32:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17C2DC385A0; Tue, 5 Apr 2022 08:32:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649147525; bh=4OvB7EdZuNT8kdmTDQ2yED1bKkQrmupQ5BoSD9gf6Ek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bmRMhthzdQsRoFDdrk/vrOinntDJezmi3PtBtp9TW6h6XCX076GFH9VlKNUg/E3+l vhurt3i58GhSqlcbaA9SOGzIYisrqpU2rWL/iYqBtxf977Nh+eUnxpJiKcrv2lmA3z KuDRFthmsEvq2Zdsf+ogtlp/Nv1OGQmMSnSt+SKs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mario Limonciello , Alex Deucher Subject: [PATCH 5.16 0027/1017] drm/amdgpu: only check for _PR3 on dGPUs Date: Tue, 5 Apr 2022 09:15:40 +0200 Message-Id: <20220405070354.983759601@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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.1 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: Alex Deucher commit 85ac2021fe3ace59cc0afd6edf005abad35625b0 upstream. We don't support runtime pm on APUs. They support more dynamic power savings using clock and powergating. Reviewed-by: Mario Limonciello Tested-by: Mario Limonciello Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -2144,8 +2144,10 @@ static int amdgpu_device_ip_early_init(s !pci_is_thunderbolt_attached(to_pci_dev(dev->dev))) adev->flags |= AMD_IS_PX; - parent = pci_upstream_bridge(adev->pdev); - adev->has_pr3 = parent ? pci_pr3_present(parent) : false; + if (!(adev->flags & AMD_IS_APU)) { + parent = pci_upstream_bridge(adev->pdev); + adev->has_pr3 = parent ? pci_pr3_present(parent) : false; + } amdgpu_amdkfd_device_probe(adev);