Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3271387pxj; Mon, 7 Jun 2021 06:44:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBixC/IbQ3W2Bzl0TbCLTlLVwfT8UqpURAG7mPSKfiao6DuFpm0Pk8E4C5VEtcu+LeBlph X-Received: by 2002:a17:906:4111:: with SMTP id j17mr17750553ejk.488.1623073495445; Mon, 07 Jun 2021 06:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623073495; cv=none; d=google.com; s=arc-20160816; b=E2oYprvZ9z2QYsf+3akbbBWaqggznnyTzhsMVVxh+AXrtLO2ao1bvex6VyYYuIEX5F ZoLu+0UFJc646Wdrnk8ST41GuyM1H681iVeRKoUKvm89LM67i420AhaQNZKv+ghyMHgC dqHuaRYyxaGXIeI7SObKU/4wmjjkycZ0G1c/Z7ZD9vn3AEVh+/rnaGKpp2H2+jUZ+L9Y h734aYA5rHZNp7yvPT3pcPwb/6o/rp0cFhAdv3wfZdpd7row5pt1l2zy3fOZUirjxK4Q vJECgWydJd5OmaQMqq1B22samb242CIeFc/hKj3gpmQ0NjtTFaRlkmK+acD3y0BrXLl9 8EIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=PBl1oQb0REvQQKwpKMpTQoTdXm5nunxZT4Ar8PjX/i4=; b=zzjWsVwzCNT0b39iK85JyAKG7o2+65+pJEN1it/n1hiyVSUO9sAbrT3TjLsuO2Wz2E 0a1mG4iN83I/bXUxum7ZUY/JqaoakKA0CpKYgBnxkRqALnSm+hgO/Nso9ERyVUynr6as 60MBTbVlIUfs9JpdsyvlKmqqNQOgYOfCD+fFjvj85ihhlJ5tgqzIGbQX0KUvwL8gWxMT iA8yfzS/e2DlwAKH+wX1yMUiylj+jV1hExl14vmEi5Dpcsc+srBNgXVfZUnUDHGqUlcn b3rsawqgW0wsfY5IPxe+ZcOtUsMumnDO1zESzEpZR0vrdmD2hu6DG3xAKH6zWLkJP1yL SFCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=APbMb91g; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 23si4235310ejh.27.2021.06.07.06.44.32; Mon, 07 Jun 2021 06:44:55 -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=@gmail.com header.s=20161025 header.b=APbMb91g; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230177AbhFGNoy (ORCPT + 99 others); Mon, 7 Jun 2021 09:44:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbhFGNoy (ORCPT ); Mon, 7 Jun 2021 09:44:54 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3EC0C061766 for ; Mon, 7 Jun 2021 06:42:52 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id t40so5058093oiw.8 for ; Mon, 07 Jun 2021 06:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=PBl1oQb0REvQQKwpKMpTQoTdXm5nunxZT4Ar8PjX/i4=; b=APbMb91gD1zIPIZTawQsDQLPOx+rb2op11WQRTpSn+xBFsVowr7scb7WdSPA9hWZUJ AC3VYMUhRCmedN6If9GhtwC5ZFepZqexOxHytKONlL57LU+YqPMVe9JDo76vt/rCiSlp CISlolqHTQk5Cp5lXyaOOYYWvKUziDDRZjPuNqB1kBGJAS2RsIgBk2peV+42ra2UrUtQ ald8PqhSl2dM3avyYWumR/QZAxFySDdVsO4oymrNMw2G3RPfo+17GEO2vynXMaY1Dbs9 eBdxr8vFkVqYhcjNXLIaf1HuVgHtOz6qmoNKVQ0fmcBIbKGQeEXA9py239srn67H+ntB 7yRQ== 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:content-transfer-encoding; bh=PBl1oQb0REvQQKwpKMpTQoTdXm5nunxZT4Ar8PjX/i4=; b=dj/kBpPpa7qKInuXKF+O8L+FXgrR0KV8WClBQgc7PHh7gl0jTf1hQ0nRNwZg2noYhX FcUGk58/VRe+WboQdFpTjQhtLgM1GO3kFrbl+4RFlsXvoqYkD9fWYsIgGQX3QltASMrX KkMdF9NZPtPJQCTRGYbBu/rtQH+ajcJuAXag28kU+cdy17NZ1P7sD9md2ybHKKzMhkGb V7oy9zbuFM2n/h6QIMwAobTh3atrMTq6Q+cxp3lPg+UfIHnldmY8WwRTsM8RumMbR7eE qEQckoXeWTJsnxNU+En1mxJ6Cy+4bJK6wJ68SIK9F53nyDk4oP50ZGl6ZrjPxkYetrEG dJqg== X-Gm-Message-State: AOAM532zrbE933BNoEWbSIEnCVZUz41aGZS3Gb6tAz8Et3Cx6c8yubb7 zTz+yY+4NEjxk0J0yArIR3kS5tNGrsFvcW207O07P6hC X-Received: by 2002:a05:6808:c3:: with SMTP id t3mr2097628oic.5.1623073370050; Mon, 07 Jun 2021 06:42:50 -0700 (PDT) MIME-Version: 1.0 References: <1623068820-2479-1-git-send-email-yangtiezhu@loongson.cn> <0d1b517f-797f-e87d-4edd-8474b16993ed@amd.com> In-Reply-To: <0d1b517f-797f-e87d-4edd-8474b16993ed@amd.com> From: Alex Deucher Date: Mon, 7 Jun 2021 09:42:39 -0400 Message-ID: Subject: Re: [PATCH] drm/radeon: Always call radeon_suspend_kms() in radeon_pci_shutdown() To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Tiezhu Yang , Alex Deucher , David Airlie , Daniel Vetter , Jianmin Lv , Xuefeng Li , Maling list - DRI developers , amd-gfx list , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 7, 2021 at 8:30 AM Christian K=C3=B6nig wrote: > > Am 07.06.21 um 14:27 schrieb Tiezhu Yang: > > radeon_suspend_kms() puts the hw in the suspend state (all asics), > > it should always call radeon_suspend_kms() in radeon_pci_shutdown(), > > this is a normal cleanup process to avoid more operations on radeon, > > just remove #ifdef CONFIG_PPC64 and the related comments. > > Well NAK. > > Alex knows more about the details but suspending should not be part of > the pci shotdown process at all. > > We just add that here to enforce a GPU reset on PPC64 boards for some > reason. Everything in the comment still applies. Alex > > Regards, > Christian. > > > > > Co-developed-by: Jianmin Lv > > Signed-off-by: Jianmin Lv > > Signed-off-by: Tiezhu Yang > > --- > > drivers/gpu/drm/radeon/radeon_drv.c | 9 --------- > > 1 file changed, 9 deletions(-) > > > > diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/rade= on/radeon_drv.c > > index efeb115..0b1f43d 100644 > > --- a/drivers/gpu/drm/radeon/radeon_drv.c > > +++ b/drivers/gpu/drm/radeon/radeon_drv.c > > @@ -386,16 +386,7 @@ radeon_pci_shutdown(struct pci_dev *pdev) > > if (radeon_device_is_virtual()) > > radeon_pci_remove(pdev); > > > > -#ifdef CONFIG_PPC64 > > - /* > > - * Some adapters need to be suspended before a > > - * shutdown occurs in order to prevent an error > > - * during kexec. > > - * Make this power specific becauase it breaks > > - * some non-power boards. > > - */ > > radeon_suspend_kms(pci_get_drvdata(pdev), true, true, false); > > -#endif > > } > > > > static int radeon_pmops_suspend(struct device *dev) >