* ksys_sync_helper
@ 2023-07-31 7:20 Christoph Hellwig
2023-07-31 18:27 ` ksys_sync_helper Wysocki, Rafael J
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2023-07-31 7:20 UTC (permalink / raw)
To: Rafael J. Wysocki, Harry Pan, Andrey Grodzovsky, Hawking Zhang,
Alex Deucher
Cc: Christian Brauner, linux-kernel, linux-fsdevel
Guys,
why did b5dee3130bb4014 add a magic export for sync functionality
that wrapps VFS code in a weird way, and then exports it (without
even adding a user in that commit)? This kind of functionality
needs to be exported from the VFS, and only with ACKs? With this
and commit d5ea093eebf022e now we end up with a random driver (amdgpu)
syncing all file systems for absolutely no good reason.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ksys_sync_helper
2023-07-31 7:20 ksys_sync_helper Christoph Hellwig
@ 2023-07-31 18:27 ` Wysocki, Rafael J
2023-08-01 11:07 ` ksys_sync_helper Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Wysocki, Rafael J @ 2023-07-31 18:27 UTC (permalink / raw)
To: Christoph Hellwig
Cc: Christian Brauner, Andrey Grodzovsky, linux-kernel, linux-fsdevel,
Alex Deucher, Hawking Zhang, Harry Pan, linux-pm
On 7/31/2023 9:20 AM, Christoph Hellwig wrote:
> Guys,
>
> why did b5dee3130bb4014 add a magic export for sync functionality
> that wrapps VFS code in a weird way, and then exports it (without
> even adding a user in that commit)? This kind of functionality
> needs to be exported from the VFS, and only with ACKs?
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ksys_sync_helper
2023-07-31 18:27 ` ksys_sync_helper Wysocki, Rafael J
@ 2023-08-01 11:07 ` Christoph Hellwig
2023-08-01 12:34 ` ksys_sync_helper Matthew Wilcox
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2023-08-01 11:07 UTC (permalink / raw)
To: Wysocki, Rafael J
Cc: Christoph Hellwig, Christian Brauner, Andrey Grodzovsky,
linux-kernel, linux-fsdevel, Alex Deucher, Hawking Zhang,
Harry Pan, linux-pm
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ksys_sync_helper
2023-08-01 11:07 ` ksys_sync_helper Christoph Hellwig
@ 2023-08-01 12:34 ` Matthew Wilcox
2023-08-07 23:01 ` ksys_sync_helper Deucher, Alexander
0 siblings, 1 reply; 5+ messages in thread
From: Matthew Wilcox @ 2023-08-01 12:34 UTC (permalink / raw)
To: Christoph Hellwig
Cc: Wysocki, Rafael J, Christian Brauner, Andrey Grodzovsky,
linux-kernel, linux-fsdevel, Alex Deucher, Hawking Zhang,
Harry Pan, linux-pm
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 <linux/suspend.h>
#include <drm/task_barrier.h>
#include <linux/pm_runtime.h>
@@ -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");
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: ksys_sync_helper
2023-08-01 12:34 ` ksys_sync_helper Matthew Wilcox
@ 2023-08-07 23:01 ` Deucher, Alexander
0 siblings, 0 replies; 5+ messages in thread
From: Deucher, Alexander @ 2023-08-07 23:01 UTC (permalink / raw)
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
[Public]
> -----Original Message-----
> From: Matthew Wilcox <willy@infradead.org>
> Sent: Tuesday, August 1, 2023 8:34 AM
> To: Christoph Hellwig <hch@infradead.org>
> Cc: Wysocki, Rafael J <rafael.j.wysocki@intel.com>; Christian Brauner
> <christian@brauner.io>; Andrey Grodzovsky <andrey.grodzovsky@amd.com>;
> linux-kernel@vger.kernel.org; linux-fsdevel@vger.kernel.org; Deucher,
> Alexander <Alexander.Deucher@amd.com>; Zhang, Hawking
> <Hawking.Zhang@amd.com>; Harry Pan <harry.pan@intel.com>; 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 <linux/suspend.h>
> #include <drm/task_barrier.h>
> #include <linux/pm_runtime.h>
>
> @@ -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();
> - }
> -
Was on PTO last week. I think we can drop this. Will try and send out a patch this week to clean this up.
Alex
> dev_info(adev->dev, "GPU %s begin!\n",
> need_emergency_restart ? "jobs stop":"reset");
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-07 23:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-31 7:20 ksys_sync_helper Christoph Hellwig
2023-07-31 18:27 ` ksys_sync_helper Wysocki, Rafael J
2023-08-01 11:07 ` ksys_sync_helper Christoph Hellwig
2023-08-01 12:34 ` ksys_sync_helper Matthew Wilcox
2023-08-07 23:01 ` ksys_sync_helper Deucher, Alexander
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).