Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4170831pxf; Tue, 30 Mar 2021 00:38:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSJp/3bjSyf42fHU0K/Em7BROLnMj2OQhV71txN9cVR5rNjsTCIRWRMVAZ0Og6gc2eM0bu X-Received: by 2002:aa7:cf02:: with SMTP id a2mr32075396edy.59.1617089932440; Tue, 30 Mar 2021 00:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617089932; cv=none; d=google.com; s=arc-20160816; b=BnXG+Y1lhu1Hg8hXWryKhhxSXf3Etroz/MyVcCg1fKSkOGoj2bpzzaF6gCTxjylNaY dbCiUKIolvYne2bRQ5k6XzqFsGWaCsC7vgctRlenxLWM9JE2hzUnMsAAFTSsIoACtip8 pOeuowkqYF6SW9zMEe3fhwvsRbyRFAOvOrwy6Z1P8EqMQHvInZWselCC14WodCfyRc5B ihiEAjnf5KtZgixewjobhkX9ZcZwyFZM9zy7+1dM7yoJ4Oq5x/fP7YJ6G4Rt/I44sWjE 4c3vwISCk6jAVKGG2eqTfc0V82LnNDMVdADsH6Y96c86OZL+NtpppTXf91/+Q73D68af byYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=qvQNG7MoGzFYXtjqbLKR5ZoQOrdPV7hI4S5BKtxl8bw=; b=i7+PKtS3Rp7SJ5m5k0L9rukhf8f6zzMrqFMbrk4CQYXjiW07qCmPWYmFW3Q6q5mA7c 7u90DX9hx8aP+6KsDOnKUiGLlOvYMonQedzoIbagZqK+868rkAGMsKtQpTL+Lx/KzVNI CSMwz8SXUs87pDvl3v9XQrdFK1DjfpduZoEGImzpRzLekL+U6w0U6MYRv0oHPYDEy8DC yQrwvd43Am+nPP2jBkryu9vpk7re6b7thNf4Z1cmp7RZ7hhdkeXyR8XzUxKFoK8frAKF LSA4sNxj2xhi9Fn8yEYbfhcj2WhI2eqEXdzM3D2++vciRzfXq6kZn9gJBV6dsvZ5F7z3 8qGQ== ARC-Authentication-Results: i=1; mx.google.com; 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 l12si14393579ejn.151.2021.03.30.00.38.27; Tue, 30 Mar 2021 00:38:52 -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; 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 S230209AbhC3Hh3 (ORCPT + 99 others); Tue, 30 Mar 2021 03:37:29 -0400 Received: from mail-vk1-f175.google.com ([209.85.221.175]:36372 "EHLO mail-vk1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbhC3HhJ (ORCPT ); Tue, 30 Mar 2021 03:37:09 -0400 Received: by mail-vk1-f175.google.com with SMTP id d82so3356958vkd.3; Tue, 30 Mar 2021 00:37:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qvQNG7MoGzFYXtjqbLKR5ZoQOrdPV7hI4S5BKtxl8bw=; b=rGYGgYTih5Uo2/LE2JLJ/wAZYzopMtFL3ebMQRerah9g+915+i8/iu/WZwjFW2p2jM nQhYpkVr16nmWOCR0OooSaZ0qppkdkh5wTeL7acTbuXBZkilP/IRgwbCDFzpzt5to+e9 1nlXJ2WnfdB33vWzFl8X1v5sMLVM2OwO431wyHU6i81p6cN2us01rwVJmgSCzEASr325 y0X9cC4mgpKrwV+PWrZizNBHBEwpYog1u6NX27EzR9pZ2SZ4h/jaMiPdnyxKZ8vyTWJg oqm6Q8ry9OtE/2j21QtwatXy2CeWGwZGziHvhq1t420UhN+Jce87OwJAvscOtYN1rG4P BifA== X-Gm-Message-State: AOAM533akIS5osjrMxlsFAwRO7I2rDOcFC5YY0dDXoHwUHGmUud0+vRM YhsjajBHBkIQbtNFZzJerrVSZj14A5K0bzQYYBiTtYRA9do= X-Received: by 2002:a1f:e543:: with SMTP id c64mr16591580vkh.2.1617089828934; Tue, 30 Mar 2021 00:37:08 -0700 (PDT) MIME-Version: 1.0 References: <20210329131401.15724766@canb.auug.org.au> In-Reply-To: <20210329131401.15724766@canb.auug.org.au> From: Geert Uytterhoeven Date: Tue, 30 Mar 2021 09:36:57 +0200 Message-ID: Subject: Re: linux-next: manual merge of the drm tree with Linus' tree To: Stephen Rothwell Cc: Dave Airlie , DRI , Alex Deucher , Linux Kernel Mailing List , Linux Next Mailing List , shaoyunl Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, On Mon, Mar 29, 2021 at 4:16 AM Stephen Rothwell wrote: > 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 probe") > > 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. > > -- > 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; > } > > + /* 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 == AMD_IP_BLOCK_TYPE_PSP || > + adev->ip_blocks[i].version->type == 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 == AMD_IP_BLOCK_TYPE_GMC || > + adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_SMC || > + adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_COMMON || > + adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_IH)) { > + adev->ip_blocks[i].status.hw = false; > + continue; > + } > /* XXX handle errors */ > r = adev->ip_blocks[i].version->funcs->suspend(adev); > /* XXX handle errors */ The above is not what you have in next-20210329? Your tree has a second copy of the first conflict block after the second: /* skip suspend of gfx and psp for S0ix [...] /* skip unnecessary suspend if we do not initialize them yet */ [...] /* skip suspend of gfx and psp for S0ix Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds