Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5811133rwb; Tue, 1 Aug 2023 08:12:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlG4y09wveyIs2VFTVKZ8eJCmgHj1eyL1v/oANG1oxeUIfBpUW/BKdWIhX4Mnlov2Ot5ZySg X-Received: by 2002:a05:6a21:6315:b0:13c:3d64:de33 with SMTP id wu21-20020a056a21631500b0013c3d64de33mr11338938pzb.13.1690902766267; Tue, 01 Aug 2023 08:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690902766; cv=none; d=google.com; s=arc-20160816; b=MbgNVVLAt0bEYHG7A41gRzPv7nesrm0OfEASOJQxsaKFS4p3ZxDhJ0EuhrxCwqIweT wrtYZ0QpnyAiqLFqchUbC78NXhXJGU7jqqB4Lt8A7GIQ2u9ZAepiJNY4Bo4azx5k4nb5 4mlTDuf6zHow1NOdRVrDXxXbv8BcF/uxFTwj7D935t8Ne/BcITfi+/Dg9FuSw7z9IJUG tSaVfsQdWDoOYO6G77gR34PyG2VcZVvMf7NNrZ6JeBJn92kDhJO93CaJxey4dhP20/0r dcr1LurdylmovmTjLjH1EyJuy+vUZNavKyxknlyJRZr8ZlYNsDykasepVQUDRSBvbzkU F1gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=S/u4vYJhKZmYxEtl4s2/42a0qgFgAhFLv7zKyESwQwc=; fh=hhlI+KRWQH6ac9CkmHjJ1RH7nwVNw40d4mCpi9+dC3Q=; b=Gc0BFGv0nH6em1WBM0jPU4KB0+54RswGOXNtSUhfO2NfXShdqcO1GeKhYlxn9oI4v5 r3ycSyPQB3OuuOnkPOvTnIIXXd5KfmM37ZuLF9PaMcxFkP6qel5qcZRVYwTgH75keLPM 2ib5ywujRXFVZ3YYp0Fqr0gKD5uhFqaPXCOjnL5UBJyxApsfhuE7KP/Gpo3fZxF4rHOF KL97MPcTTqhA7KAJVVZbq8J8rzeHv99M+VWR95IgPaOCxqLEALn/1W9vU+qfOiTyizfB mA1dzGUZgcNXLBDJ4UoisKoLKCDQyeqh9tipUj0ewCywVYqVlIQw3zxr4qq03vk2yP+l iuRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="lQ6p7/T9"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l20-20020a635714000000b0055337ca9cefsi8899764pgb.857.2023.08.01.08.12.27; Tue, 01 Aug 2023 08:12:46 -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=@infradead.org header.s=casper.20170209 header.b="lQ6p7/T9"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233204AbjHAMed (ORCPT + 99 others); Tue, 1 Aug 2023 08:34:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229837AbjHAMec (ORCPT ); Tue, 1 Aug 2023 08:34:32 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C65721FC7; Tue, 1 Aug 2023 05:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=S/u4vYJhKZmYxEtl4s2/42a0qgFgAhFLv7zKyESwQwc=; b=lQ6p7/T9cFvMeIg2EyU85XKRvo rlNd+GuoLvcrJtSy1nKprTIR9lNmaBBEgKJ6TC60RIZh93gtupZYwrBvvqGsyXaXqM3kFbfdeo3za PZwz5czl29B4EWZEbJOwjCSROXrGISrKQs2yH+3IAA61erVASsi3Opu23+QmTYW+Ko62xB9bZ6O46 90LRFevYeSULZoPCRz1Y7ba0M2YaD24qBMN1Us13RJH6aQXrfHY/nzH76am3TX7k+zz99f7ioxyzL i3FRo70yR9oTL6XcjJ5nti2x7JApZ5OYxJ8mBXcTkmTQQXGqoL4SUpypLkXFWEX425gOQrRgRmhNc o+Etj7aw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qQoZx-008m2n-Nt; Tue, 01 Aug 2023 12:34:21 +0000 Date: Tue, 1 Aug 2023 13:34:21 +0100 From: Matthew Wilcox To: Christoph Hellwig Cc: "Wysocki, Rafael J" , Christian Brauner , Andrey Grodzovsky , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Alex Deucher , Hawking Zhang , Harry Pan , linux-pm@vger.kernel.org Subject: Re: ksys_sync_helper Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Tue, Aug 01, 2023 at 04:07:18AM -0700, Christoph Hellwig wrote: > On Mon, Jul 31, 2023 at 08:27:17PM +0200, Wysocki, Rafael J wrote: > > > > OK, I'll remember about this. > > > > > > > With this > > > and commit d5ea093eebf022e now we end up with a random driver (amdgpu) > > > syncing all file systems for absolutely no good reason. > > > > Sorry about that. > > > > The problematic commit should still revert more or less cleanly, so please > > do that if that's what you need. > > We'd still need to remove abuse in amdgpu first, though. This would effectively revert d5ea093eebf0 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index dc0e5227119b..af04fece37d5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -75,7 +75,6 @@ #include "amdgpu_fru_eeprom.h" #include "amdgpu_reset.h" -#include #include #include @@ -5225,17 +5224,6 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev, */ need_emergency_restart = amdgpu_ras_need_emergency_restart(adev); - /* - * Flush RAM to disk so that after reboot - * the user can read log and see why the system rebooted. - */ - if (need_emergency_restart && amdgpu_ras_get_context(adev)->reboot) { - DRM_WARN("Emergency reboot."); - - ksys_sync_helper(); - emergency_restart(); - } - dev_info(adev->dev, "GPU %s begin!\n", need_emergency_restart ? "jobs stop":"reset");