Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3115086pxm; Mon, 28 Feb 2022 12:19:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7fcDzCj0/y/p1NCGGoUPvv+dMSIfipv+OCLdSs3EOepdJclyMQpgVvMeY9m5q+UMGfEk5 X-Received: by 2002:a62:7617:0:b0:4e1:5f3b:2643 with SMTP id r23-20020a627617000000b004e15f3b2643mr23203606pfc.13.1646079593730; Mon, 28 Feb 2022 12:19:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646079593; cv=none; d=google.com; s=arc-20160816; b=ORC1gAMg6Zwy6rCxMvMXmTR+W6cfoxALRNkCa1vJFMH+JxXENi8DrE+B0qbttrUaZ+ KYAbEov+QU57TyyxoezoftEiCUx3JZKd5EjYjHqurg6kVufw7S7S4qNGiAjRve8dDFXr eo1G4nA64leYTXIwVIt2h00JWkrlCxmDZhlJMGoEjwxhhbxyhH9n1iGNyCjSr9T+1vo+ LEIdIgklTpHEq5J8m01hK4TWKeJtb3sG1QsQh8yJsd05QMlHECnZ/9bzJpWlRzHmN+W4 KcdMp+f8Bip+zNSF3uVSExDal7U1pQWHFMwAljUpRaW2EN/+G699QzZSY1neQx9Dp1V/ MENA== 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=Prbg7lad8INf0T824xMfj7kGsDVOJM2mXK3unPK7mqQ=; b=R+GRQd3NOdyzQkIPBYq5oYPt5thZ2pEF3etIipiwLhIEuR+jkABWYeiuPTGycU6WbD k6vRqe7yWI6/PcJGLNDiqxKBJSSz6XF8+WOHWd9br+FOvvPJ9vjbm//rif4cOf0AWIzl 5CgaWQICXt+gtjxF1zbN+YJmYQ12LVHfbZX/5Xq8WrP4KQ1/Hfu4cHIpl0kJEFmEa7Do McGWRa2Ad1za7gXBa2xVIDRP7CsrdEWpbAJU29AEatkOseiwUW1tnQkR5904zmtuHanT CXjw9z1cU8Nrv4nwolQEZkjnSu8UxqaYbQXKCCxuE8IIrlLjlATOVMXTHdMLg0A1mrv1 MGOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZJpGqgdD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y20-20020a1709027c9400b0014fb1cb9bcdsi10486820pll.451.2022.02.28.12.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:19:53 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZJpGqgdD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EF2CCB0C41; Mon, 28 Feb 2022 11:40:15 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232163AbiB1Ruv (ORCPT + 99 others); Mon, 28 Feb 2022 12:50:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239646AbiB1Ro0 (ORCPT ); Mon, 28 Feb 2022 12:44:26 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5823589CDE; Mon, 28 Feb 2022 09:36:48 -0800 (PST) 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 E2070B815C2; Mon, 28 Feb 2022 17:36:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16E01C340F6; Mon, 28 Feb 2022 17:36:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646069806; bh=VQdY0C3fKQDElC+gRi2LMy2/1Au1SFhhlrXAKAmiWyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZJpGqgdD0Bo6KxGtj/+ffoP04zvEjdkig5Wx5F6klU9rSk70E4NyBbd30WOKrHo4S AeO5j3cN9/tdxvJjAou6dwTXedQ9VeXobrKZBCdN5lIrrzcOzIZIy0G3PB3iqJICZg kUW3vUPKxiLaRAMEZL5idtqsoclCTmB6QIn32kd0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen Gong , Alex Deucher , Mario Limonciello Subject: [PATCH 5.15 019/139] drm/amdgpu: do not enable asic reset for raven2 Date: Mon, 28 Feb 2022 18:23:13 +0100 Message-Id: <20220228172349.920321831@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220228172347.614588246@linuxfoundation.org> References: <20220228172347.614588246@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=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: Chen Gong commit 1e2be869c8a7247a7253ef4f461f85e2f5931b95 upstream. The GPU reset function of raven2 is not maintained or tested, so it should be very unstable. Now the amdgpu_asic_reset function is added to amdgpu_pmops_suspend, which causes the S3 test of raven2 to fail, so the asic_reset of raven2 is ignored here. Fixes: daf8de0874ab5b ("drm/amdgpu: always reset the asic in suspend (v2)") Signed-off-by: Chen Gong Acked-by: Alex Deucher Reviewed-by: Mario Limonciello Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/soc15.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -607,8 +607,8 @@ soc15_asic_reset_method(struct amdgpu_de static int soc15_asic_reset(struct amdgpu_device *adev) { /* original raven doesn't have full asic reset */ - if ((adev->apu_flags & AMD_APU_IS_RAVEN) && - !(adev->apu_flags & AMD_APU_IS_RAVEN2)) + if ((adev->apu_flags & AMD_APU_IS_RAVEN) || + (adev->apu_flags & AMD_APU_IS_RAVEN2)) return 0; switch (soc15_asic_reset_method(adev)) {