Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3600395rwb; Mon, 7 Aug 2023 16:58:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGEToZAtCxX09rz27XJo6zEooA4+0lMhSCkuDqDydBaLbr50EBXyrS0rqJmyJJHi9PDnHbP X-Received: by 2002:a05:6a20:42a8:b0:13f:c159:63ec with SMTP id o40-20020a056a2042a800b0013fc15963ecmr11487783pzj.24.1691452703627; Mon, 07 Aug 2023 16:58:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691452703; cv=pass; d=google.com; s=arc-20160816; b=GcEvJUifnT+zKNMQyXiCPlUz8jDxVW8HVe8oJCWbrOxjQb3ZgNl++wCoWuJpMrikRi 3KAzhpKDfLu/IspKi1aN5X+X4aX9GnJeTs0TmY+KFGRGEkZcsO+euj2Xk3C1Nd4PAIdX xc8R+RG9j1Mf6dR3lWksHQ80b18qRv0w/WvsbxE8HWNnYP8YFnBRITFL6ZnDxUUbhJ9O LEgtIYusk7m+K/fyjyGkwtkP46cB/tSMWvtEK5Aw9oPRt0hLW/0gFcYprdw8pE5NTXzB 0Os9mjA+sR+jOtZdTxOgejaYm6FjHFPqcHr23OkW8ykXDWrBdLJKiMvzDLFp2XyBB40g 3CBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=xLy79+XZzmn72G/Xf34Csuf9oxbRxlXMpXnm0uCCGD4=; fh=sM00WiGKCCdXB8H7HUmVLrDEZ4IW3fyrpdFaE8xRg9w=; b=XUCs/dgnSk2YnPOSrFsRXXfXDwnC4qzIATTXjjoWkKfJjw5ib4+DJ0VRyp+WvvG22C V+pZEtgNULsVgUE/jvgZvo9gC03ikOgKdFUf5IWqjrO8558GYr1ut1TIvzYdnLtHRa0k Ot6lVb9W0EMwapJ2KWjiSlBWq61sVHFnJAPg2Kc7qo2Nt8PiF6tJOAfSDef2P+OuslF8 Sv89ePohsIjBvYJoA34gpjpUG8fvF3f1msZendEcVsfCreYxxJFwBC/Eg9gRP2qrD450 CLz8TxU7Zn/miez3Ckgdm1FUlZ9sBOI8zPJjl1wW0Z/g8D+55sATSMIPEQiFN9ACjrqG f7cA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=TWnfktaE; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s10-20020a65690a000000b0056457fb5761si6542737pgq.586.2023.08.07.16.58.12; Mon, 07 Aug 2023 16:58:23 -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=@amd.com header.s=selector1 header.b=TWnfktaE; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230295AbjHGXBi (ORCPT + 99 others); Mon, 7 Aug 2023 19:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbjHGXBa (ORCPT ); Mon, 7 Aug 2023 19:01:30 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2045.outbound.protection.outlook.com [40.107.101.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B33F810F0; Mon, 7 Aug 2023 16:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U73Tcyfbb2gyurNSag4bgajgzTsYBUGmWlB/lKM1NjBSO9pPds9sE3LBPrI7Y/0K/B7n72PoULiGyleqiWoEo2W1lEE3FiLn9VAwJYpZM3nLhsQumrhDCGv3n9fqUOqshxt6vhyA2oGus7QBXTS6Lw+lkKYNAOhP+Fn2yJ0u0IRI1VyYzfqXIr+FmvueWWEtDrL8zlEBFBYgj+D0P9GMLz6Dph4DYhL0i58cB/tDkKpCzmdR9uEyCNn53XeTaDRQIP/CUY36hF6M38RJJEJvUywjDgkR8DKHSWIVJei3gMz/ac+ah4dCFE/E8ZKSPKm6EMNgldWmLY7MalPeoLlFuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xLy79+XZzmn72G/Xf34Csuf9oxbRxlXMpXnm0uCCGD4=; b=Y9VGWz8SIn6g7cXaKJcHeduq//edCmZB9poieF0LJ90WJsTnRyFu0AAHshzTkk4Wu0TFWyssPlK4pMFdknoS68L2mH8k0HxQRIGh4+oDE/V54ul9FFDKLI69Sfn43Wf49+ON+VOMsn96iuPZe0mfbXRtZXKQ67U/Paq8zvKDMAcB2WYKU6UJDN6WCahjZq6s2BsjINm1N8+qnptnw5lOArsOPKy0L4MLMyLPzLmQ/1DyhsGfVNyTF+xV/nSeFnhZOBad+q+aqgL4fHt0b9mM7ylkem+AT7ECjKs1fYj55CXIpI1isdv2X0xChxpN2r5le9wS3HohwdvIRa0LnNxZ+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xLy79+XZzmn72G/Xf34Csuf9oxbRxlXMpXnm0uCCGD4=; b=TWnfktaEFzIzq+tH5hVIzd+EsFkJSTXIpTGTJb736Q92Aut492bQ54c/8GTIhsMU48SJwzu0dk6Wd+K9ARkgFI6SV5E6z5qm/3POPTcENiSEDZwHNmdYOsNR8grUW90r1/l/YehIrmgx2kZni+Uvf/E1hYLcm5t/QtCKK2eMC4g= Received: from BL1PR12MB5144.namprd12.prod.outlook.com (2603:10b6:208:316::6) by MN0PR12MB5954.namprd12.prod.outlook.com (2603:10b6:208:37d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.47; Mon, 7 Aug 2023 23:01:22 +0000 Received: from BL1PR12MB5144.namprd12.prod.outlook.com ([fe80::bcfa:7757:68bd:f905]) by BL1PR12MB5144.namprd12.prod.outlook.com ([fe80::bcfa:7757:68bd:f905%5]) with mapi id 15.20.6652.026; Mon, 7 Aug 2023 23:01:26 +0000 From: "Deucher, Alexander" To: Matthew Wilcox , Christoph Hellwig CC: "Wysocki, Rafael J" , Christian Brauner , Andrey Grodzovsky , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "Zhang, Hawking" , Harry Pan , "linux-pm@vger.kernel.org" Subject: RE: ksys_sync_helper Thread-Topic: ksys_sync_helper Thread-Index: AQHZw3+H8Y9jcJgF9UOuhI7iy4bjF6/UMkWAgAEXZwCAABhSgIAKF+3g Date: Mon, 7 Aug 2023 23:01:25 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_ActionId=1a418b82-b739-4131-9694-0c9f74dbb058;MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_ContentBits=0;MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_Enabled=true;MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_Method=Privileged;MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_Name=Public-AIP 2.0;MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_SetDate=2023-08-07T22:42:44Z;MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL1PR12MB5144:EE_|MN0PR12MB5954:EE_ x-ms-office365-filtering-correlation-id: eb00c3d5-fae0-4f45-438c-08db979a3a35 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Jq9fMA3iYivrlUL4ZrUDY5cEL2SPX9PvkgL/BnisRbrNGbkdL7V2lq6QBpvAU/E5nmTohRriCTM/JCyOgd9uTeTpN6kLDSw0/etWlCEVfyNulNY2zIpZDP+f1KVNsz2SUImg4Utz559f9hxKwRpy7HUoVN0F35Cd7WcpJxs2FM9VQ3m3H7+ab5LMl//9BVyPqFqsnjMzDl8ylucV70tp3wnAGY0Bxbj+7dVMk6+jIn628k0ArkaxXuclq+m8buIga4JwNdXsPfxXHrFnet6zBV84bjb50wHTgZMknOrR3HnT4N2hg1Qvzx5xx8X7YaL9X/DsfQlS3xHJwI8lwTnmxvtAlqCzVcHbEwdIjnNo0yrft62m6FuV7ocEnvNS39impHJ7i0c0DAZlHGpFCtTDm0bMOhPyz/0Y1ICZQs0Gphe3v8G7UNgOB6XgxExokALcVdJpMfcPBJFF2NP4glHx9GdT1HF2yqNQPs9Z7MTbtAwTbXvR+FSF24zqrRmNIljWr0VvTJM02h6HwEUH/eaP1ScWOmitYHRj0gJ/zulwX3pLN17mLoj/PvTJ2btFIeVdxC1+ubClqoNm8koZ1FvaIM6nQpoX6gJ3teQgAg9nXGCuztR6CVKTvEe5aXNgA2f/vZeGsvbWeejYOcVJY4H5iw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5144.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(366004)(39860400002)(376002)(396003)(346002)(1800799003)(186006)(90011799006)(451199021)(83380400001)(55016003)(110136005)(54906003)(2906002)(4326008)(316002)(5660300002)(8936002)(7116003)(38070700005)(52536014)(8676002)(66946007)(76116006)(66446008)(64756008)(66556008)(66476007)(38100700002)(86362001)(478600001)(33656002)(7696005)(122000001)(9686003)(71200400001)(41300700001)(6506007)(26005)(53546011);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?tbZkbm1gF3v57qHHuh62drecohJ94npfT8eag6GU+piuWNjhh38axBRb5AU8?= =?us-ascii?Q?IizrF6d91W7C82dSuG3WDHIkjaKGII1Q/49zodNjA+4Vh/WNZ0K4ztNibeCW?= =?us-ascii?Q?ljGiMV0hYhzzvGDvlghvVmg4vOcz3UnUjuuKx2b5LdiElPJHDMV2qjwBsCcv?= =?us-ascii?Q?r/+nr9Cx70vx4+7L3oaG6NQc5EK81U7Z+yrL3L1oa01jSOJBIwD7FLIx9wr6?= =?us-ascii?Q?b/FH/CPZ8bYOAJTsvijhbECP5Qjj5oMB62h8F5UFrZ8NE5j0IaDz/HakCAIX?= =?us-ascii?Q?UJ0eaVmckx/x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MFythYPXf?= =?us-ascii?Q?aqq80Vyz0nqOQpdmCZcxg5+c8SR6Fih0/b2IwzTUEE+EXxhSP0rLXZDJB+PG?= =?us-ascii?Q?VriPD0Ha6HhWs4m6R+i2cJJ5qG3ROMbPgpbD/OjJnN2j8olTjXF5HuZey1uN?= =?us-ascii?Q?xY/TrBompdAi/U00MQwHCWWzGFBiJO7QcNMaUL4+pP6wVX1WBohu/YZAL8qX?= =?us-ascii?Q?IwJwNoNNc5iadrCsVLu5MqJaQQ/c8vZeaZP8xgnZ39h94lBAql0Wi3uJnmfR?= =?us-ascii?Q?K9PEt4hxkbSk8vh+xkR34iR+pzr4Z8NH7dfX1dlpxW0vK7MGIMuPue3tJ92N?= =?us-ascii?Q?DkAuW3y+sYo3pUsIpotx+LwwWReMBQ9Cf95S6pAiS73mrKtR8fkv/aBiKEPC?= =?us-ascii?Q?1BW8kxMlUU3APj/gjiQ=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5144.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: eb00c3d5-fae0-4f45-438c-08db979a3a35 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2023 23:01:25.9817 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YlaP+jWmz8q8lXbeUIU4hoCZ1WYQuZKslmGG2+JvPAbmOrdaVv/u8hWvvwU/Oo473aKzpJ+KySWL911/DrmCfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5954 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no 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 [Public] > -----Original Message----- > From: Matthew Wilcox > Sent: Tuesday, August 1, 2023 8:34 AM > To: Christoph Hellwig > Cc: Wysocki, Rafael J ; Christian Brauner > ; Andrey Grodzovsky ; > linux-kernel@vger.kernel.org; linux-fsdevel@vger.kernel.org; Deucher, > Alexander ; Zhang, Hawking > ; Harry Pan ; linux- > pm@vger.kernel.org > Subject: Re: ksys_sync_helper > > 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 =3D > 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(); > - } > - Was on PTO last week. I think we can drop this. Will try and send out a p= atch this week to clean this up. Alex > dev_info(adev->dev, "GPU %s begin!\n", > need_emergency_restart ? "jobs stop":"reset"); >