Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3269256pxf; Sun, 28 Mar 2021 19:18:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx1t2ZGBuLifiAYeADHsISQNJ8EzPdkyMhlHB/6FMmMHpIkWTfw7eRdWM3wGhpiv0w54Zm X-Received: by 2002:a17:906:379b:: with SMTP id n27mr27273886ejc.182.1616984291715; Sun, 28 Mar 2021 19:18:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616984291; cv=none; d=google.com; s=arc-20160816; b=mu0Rd0rWpGnnQF8/wftU16fIm8pDbMwgMJfPZP7HzRfKvZvh7Jy6PUyefF/QuhCV5t 3K+gEL4zDAfbH82aZ/UJrSCzEdpwvFlcwHk93rIkDVJMEF+8Vwo4xsNmonIAUeIETrMp dc41pnOgQmR4AUOvYbGEuQtzbTP4V9JPn5Gkiaddl01+mqy/NYPI32PwBlA9adpf+xqB 3JstujlDE/Snt9Ks1u/Xz3pOqEN3DAG9WkE03gQ7EQlQzaJ4qUl4OGYW9MDrswtdK83d VKGKtxk2jQP+4VNvTlK7lnSCWW9OFMvUvn3z/XSpIFRTjqJGg0DNmtNL8femB7eVcH5w fsaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=dpCFl5JbmwuovJr298eLIVm2xUpSfwgIOG5A6cjc1N0=; b=oHPM+IpS/q1S84q9PZmi5FxeTx5oi1P1VF/ioYBUfDPBgQFEoeVCpViL7mUZObPOqt iHGU2ndAaIRy9JBUOi1exYcpwPChAqBgCyEIIn8w2jTTQsiEFEnegI26RwSmEbFnwiuk 47M+0bFPsr8n0jFim6oAi+08qtBdbJ3VZ03eQYVbCJFSsyFjFHAnyt5+iki4HDpeZjfr unEPjuUyif7aola8jTGrcUM65c8bqu+9G9wanch/nrYwavNKEiwZE54dPIpxjJTxO+Jq dpZn4dP9kLceF1hwTZT3wF4HH8kieA15veCxZf5BdIg5TGArzOYaA8wZ9IjVJ2+Qmzqv 1CMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=e276cr5q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si11049788edb.511.2021.03.28.19.17.48; Sun, 28 Mar 2021 19:18:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=e276cr5q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229861AbhC2COX (ORCPT + 99 others); Sun, 28 Mar 2021 22:14:23 -0400 Received: from ozlabs.org ([203.11.71.1]:57127 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbhC2COS (ORCPT ); Sun, 28 Mar 2021 22:14:18 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4F7x2z4SZnz9sVw; Mon, 29 Mar 2021 13:14:02 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1616984044; bh=k9kCaTFSgKm9tQfT1MUAvppABz0an6Oi0rH94pjamiI=; h=Date:From:To:Cc:Subject:From; b=e276cr5qjXA0c5ua2WQptS3A/LM1/RIIee8HExUKua5b4/5qcrHxazaWH2xSDtRbp J8xVr13wVSFG2W5nEEvFDCuef8o9beM8sCAK0ZUrqODYyNd7q8qIvG0CIcYdvoQwRy jcyVKfe4fVqg2uzs5uvu+sGdIB1moRqSUY5BSiRNB8EiuaJFThpkpgz+P4CZaAbgpE i52wiQLa4m2spLGhCg82cuNdzcz/Xezbt66WRaVU/ZK+K7BBB1oPKHblworrwrKR87 +CVCtYhFJCXvQg68ENM2wRVjR7bU8bcK7u+/cFk6sA10ENnaqjOuWlj/0lx/pC4fAI xuMrJwBjHMCGQ== Date: Mon, 29 Mar 2021 13:14:01 +1100 From: Stephen Rothwell To: Dave Airlie , DRI Cc: Alex Deucher , Linux Kernel Mailing List , Linux Next Mailing List , shaoyunl Subject: linux-next: manual merge of the drm tree with Linus' tree Message-ID: <20210329131401.15724766@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/g_NQGzQ9qT.S6dVnkopD=ch"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/g_NQGzQ9qT.S6dVnkopD=ch Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c between commits: 9adb125dde69 ("drm/amdgpu: re-enable suspend phase 2 for S0ix") 4021229e32bd ("drm/amdgpu/swsmu: skip gfx cgpg on s0ix suspend") 9bb735abcbd8 ("drm/amdgpu: update comments about s0ix suspend/resume") from Linus' tree and commit: e3c1b0712fdb ("drm/amdgpu: Reset the devices in the XGMI hive duirng prob= e") from the drm tree. I fixed it up (I think - see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 8a5a8ff5d362,0f82c5d21237..000000000000 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@@ -2743,16 -2712,15 +2720,25 @@@ static int amdgpu_device_ip_suspend_pha continue; } =20 + /* skip suspend of gfx and psp for S0ix + * gfx is in gfxoff state, so on resume it will exit gfxoff just + * like at runtime. PSP is also part of the always on hardware + * so no need to suspend it. + */ + if (adev->in_s0ix && + (adev->ip_blocks[i].version->type =3D=3D AMD_IP_BLOCK_TYPE_PSP || + adev->ip_blocks[i].version->type =3D=3D AMD_IP_BLOCK_TYPE_GFX)) + continue; + + /* skip unnecessary suspend if we do not initialize them yet */ + if (adev->gmc.xgmi.pending_reset && + !(adev->ip_blocks[i].version->type =3D=3D AMD_IP_BLOCK_TYPE_GMC || + adev->ip_blocks[i].version->type =3D=3D AMD_IP_BLOCK_TYPE_SMC || + adev->ip_blocks[i].version->type =3D=3D AMD_IP_BLOCK_TYPE_COMMON = || + adev->ip_blocks[i].version->type =3D=3D AMD_IP_BLOCK_TYPE_IH)) { + adev->ip_blocks[i].status.hw =3D false; + continue; + } /* XXX handle errors */ r =3D adev->ip_blocks[i].version->funcs->suspend(adev); /* XXX handle errors */ --Sig_/g_NQGzQ9qT.S6dVnkopD=ch Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmBhN+kACgkQAVBC80lX 0GyIHwf/WDrD2AvhZk2+xd2OuiACRlE6HXHMppYBDQyq7alR4iWQDeunMCdWjBzX 0QzyE03CWLgiZkJu/RfNkrYej0oNilYuI+zVCuNfb6yAZjfbjg/7oDbI1GaV/aEh +1RmtZehAyfFG/qWNllHTBpl8cv/RaVeotbLrOwNzToZbVj7hmwSn4JlpEQ/QxB7 AxvlCb73O3aCtFFcE5xJDjiaU0w4Bc0emgmC3dt3biOX0K+2M4FHGQqBJn9W2ro8 bzlYEFxz4Fps2fs+hMRWSPs09pbBak4PfFMD9+S7qcWsszywYj8wLX6NuiA+jTfk dfE3mOW7Li0ybRZX17B/4gQtfNIRWg== =7sDt -----END PGP SIGNATURE----- --Sig_/g_NQGzQ9qT.S6dVnkopD=ch--