Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-25 Thread Rodrigo Vivi
On Fri, Oct 18, 2024 at 05:07:22PM -0400, Alex Deucher wrote: > On Fri, Oct 18, 2024 at 1:56 PM André Almeida wrote: > > > > Em 18/10/2024 12:31, Alex Deucher escreveu: > > > On Fri, Oct 18, 2024 at 11:23 AM Rodrigo Vivi > > > wrote: > > >> > > >> On Thu, Oct 17, 2024 at 04:16:09PM -0300, André

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-19 Thread Raag Jadav
On Thu, Oct 17, 2024 at 04:16:09PM -0300, André Almeida wrote: > Hi Raag, > > Em 30/09/2024 04:38, Raag Jadav escreveu: > > Introduce device wedged event, which will notify userspace of wedged > > (hanged/unusable) state of the DRM device through a uevent. This is > > useful especially in cases wh

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-18 Thread Alex Deucher
On Fri, Oct 18, 2024 at 1:56 PM André Almeida wrote: > > Em 18/10/2024 12:31, Alex Deucher escreveu: > > On Fri, Oct 18, 2024 at 11:23 AM Rodrigo Vivi > > wrote: > >> > >> On Thu, Oct 17, 2024 at 04:16:09PM -0300, André Almeida wrote: > >>> Hi Raag, > >>> > >>> Em 30/09/2024 04:38, Raag Jadav es

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-18 Thread André Almeida
Em 18/10/2024 12:31, Alex Deucher escreveu: On Fri, Oct 18, 2024 at 11:23 AM Rodrigo Vivi wrote: On Thu, Oct 17, 2024 at 04:16:09PM -0300, André Almeida wrote: Hi Raag, Em 30/09/2024 04:38, Raag Jadav escreveu: Introduce device wedged event, which will notify userspace of wedged (hanged/unu

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-18 Thread Alex Deucher
On Fri, Oct 18, 2024 at 11:23 AM Rodrigo Vivi wrote: > > On Thu, Oct 17, 2024 at 04:16:09PM -0300, André Almeida wrote: > > Hi Raag, > > > > Em 30/09/2024 04:38, Raag Jadav escreveu: > > > Introduce device wedged event, which will notify userspace of wedged > > > (hanged/unusable) state of the DRM

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-18 Thread Rodrigo Vivi
On Thu, Oct 17, 2024 at 04:16:09PM -0300, André Almeida wrote: > Hi Raag, > > Em 30/09/2024 04:38, Raag Jadav escreveu: > > Introduce device wedged event, which will notify userspace of wedged > > (hanged/unusable) state of the DRM device through a uevent. This is > > useful especially in cases wh

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-18 Thread Raag Jadav
On Fri, Oct 18, 2024 at 02:54:38PM +0200, Christian König wrote: > Am 18.10.24 um 14:46 schrieb Raag Jadav: > > > As far as I can see this makes the enum how to recover the device > > > superfluous because you will most likely always need a bus reset to get > > > out > > > of this again. > > That

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-18 Thread Raag Jadav
On Fri, Oct 18, 2024 at 12:58:09PM +0200, Christian König wrote: > Am 17.10.24 um 18:43 schrieb Rodrigo Vivi: > > On Thu, Oct 17, 2024 at 09:59:10AM +0200, Christian König wrote: > > > > > Purpose of this implementation is to provide drivers a generic way to > > > > > recover with the help of users

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-18 Thread Christian König
Am 18.10.24 um 14:46 schrieb Raag Jadav: As far as I can see this makes the enum how to recover the device superfluous because you will most likely always need a bus reset to get out of this again. That depends on the kind of fault the device has encountered and the bus it is sitting on. There c

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-18 Thread Christian König
Am 17.10.24 um 18:43 schrieb Rodrigo Vivi: On Thu, Oct 17, 2024 at 09:59:10AM +0200, Christian König wrote: Purpose of this implementation is to provide drivers a generic way to recover with the help of userspace intervention. Different drivers may have different ideas of a "wedged device" depen

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-17 Thread André Almeida
Hi Raag, Em 30/09/2024 04:38, Raag Jadav escreveu: Introduce device wedged event, which will notify userspace of wedged (hanged/unusable) state of the DRM device through a uevent. This is useful especially in cases where the device is no longer operating as expected even after a hardware reset a

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-17 Thread Rodrigo Vivi
On Thu, Oct 17, 2024 at 09:59:10AM +0200, Christian König wrote: > Am 17.10.24 um 04:47 schrieb Raag Jadav: > > On Mon, Sep 30, 2024 at 01:08:41PM +0530, Raag Jadav wrote: > > > Introduce device wedged event, which will notify userspace of wedged > > > (hanged/unusable) state of the DRM device thro

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-17 Thread Christian König
Am 17.10.24 um 04:47 schrieb Raag Jadav: On Mon, Sep 30, 2024 at 01:08:41PM +0530, Raag Jadav wrote: Introduce device wedged event, which will notify userspace of wedged (hanged/unusable) state of the DRM device through a uevent. This is useful especially in cases where the device is no longer o

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-16 Thread Raag Jadav
On Mon, Sep 30, 2024 at 01:08:41PM +0530, Raag Jadav wrote: > Introduce device wedged event, which will notify userspace of wedged > (hanged/unusable) state of the DRM device through a uevent. This is > useful especially in cases where the device is no longer operating as > expected even after a ha

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-11 Thread Raag Jadav
On Thu, Oct 10, 2024 at 08:02:10AM -0500, Lucas De Marchi wrote: > On Tue, Oct 08, 2024 at 06:02:43PM +0300, Raag Jadav wrote: > > On Thu, Oct 03, 2024 at 03:23:22PM +0300, Raag Jadav wrote: > > > On Tue, Oct 01, 2024 at 02:20:29PM +0200, Michal Wajdeczko wrote: > > > > On 30.09.2024 09:38, Raag Ja

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-10 Thread Lucas De Marchi
On Tue, Oct 08, 2024 at 06:02:43PM +0300, Raag Jadav wrote: On Thu, Oct 03, 2024 at 03:23:22PM +0300, Raag Jadav wrote: On Tue, Oct 01, 2024 at 02:20:29PM +0200, Michal Wajdeczko wrote: > On 30.09.2024 09:38, Raag Jadav wrote: > > > > +/** > > + * enum drm_wedge_recovery - Recovery method for we

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-08 Thread Raag Jadav
On Thu, Oct 03, 2024 at 03:23:22PM +0300, Raag Jadav wrote: > On Tue, Oct 01, 2024 at 02:20:29PM +0200, Michal Wajdeczko wrote: > > On 30.09.2024 09:38, Raag Jadav wrote: > > > > > > +/** > > > + * enum drm_wedge_recovery - Recovery method for wedged device in order > > > of > > > + * severity.

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-03 Thread Raag Jadav
On Tue, Oct 01, 2024 at 02:20:29PM +0200, Michal Wajdeczko wrote: > Hi, > > sorry for late comments, Sure, no problem. > On 30.09.2024 09:38, Raag Jadav wrote: > > Introduce device wedged event, which will notify userspace of wedged > > (hanged/unusable) state of the DRM device through a uevent.

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-01 Thread Raag Jadav
On Tue, Oct 01, 2024 at 05:54:46PM +0300, Andy Shevchenko wrote: > On Tue, Oct 01, 2024 at 05:18:33PM +0300, Raag Jadav wrote: > > On Tue, Oct 01, 2024 at 03:07:59PM +0300, Andy Shevchenko wrote: > > > On Tue, Oct 01, 2024 at 08:08:18AM +0300, Raag Jadav wrote: > > > > On Mon, Sep 30, 2024 at 03:59

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-01 Thread Andy Shevchenko
On Tue, Oct 01, 2024 at 08:08:18AM +0300, Raag Jadav wrote: > On Mon, Sep 30, 2024 at 03:59:59PM +0300, Andy Shevchenko wrote: > > On Mon, Sep 30, 2024 at 01:08:41PM +0530, Raag Jadav wrote: ... > > > +static const char *const drm_wedge_recovery_opts[] = { > > > + [DRM_WEDGE_RECOVERY_REBIND] = "r

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-01 Thread Andy Shevchenko
On Tue, Oct 01, 2024 at 05:18:33PM +0300, Raag Jadav wrote: > On Tue, Oct 01, 2024 at 03:07:59PM +0300, Andy Shevchenko wrote: > > On Tue, Oct 01, 2024 at 08:08:18AM +0300, Raag Jadav wrote: > > > On Mon, Sep 30, 2024 at 03:59:59PM +0300, Andy Shevchenko wrote: > > > > On Mon, Sep 30, 2024 at 01:08

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-01 Thread Michal Wajdeczko
Hi, sorry for late comments, On 30.09.2024 09:38, Raag Jadav wrote: > Introduce device wedged event, which will notify userspace of wedged > (hanged/unusable) state of the DRM device through a uevent. This is > useful especially in cases where the device is no longer operating as > expected even

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-10-01 Thread Raag Jadav
On Tue, Oct 01, 2024 at 03:07:59PM +0300, Andy Shevchenko wrote: > On Tue, Oct 01, 2024 at 08:08:18AM +0300, Raag Jadav wrote: > > On Mon, Sep 30, 2024 at 03:59:59PM +0300, Andy Shevchenko wrote: > > > On Mon, Sep 30, 2024 at 01:08:41PM +0530, Raag Jadav wrote: > > ... > > > > > +static const cha

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-09-30 Thread Raag Jadav
On Mon, Sep 30, 2024 at 03:59:59PM +0300, Andy Shevchenko wrote: > On Mon, Sep 30, 2024 at 01:08:41PM +0530, Raag Jadav wrote: > > Introduce device wedged event, which will notify userspace of wedged > > (hanged/unusable) state of the DRM device through a uevent. This is > > useful especially in ca

Re: [PATCH v7 1/5] drm: Introduce device wedged event

2024-09-30 Thread Andy Shevchenko
On Mon, Sep 30, 2024 at 01:08:41PM +0530, Raag Jadav wrote: > Introduce device wedged event, which will notify userspace of wedged > (hanged/unusable) state of the DRM device through a uevent. This is > useful especially in cases where the device is no longer operating as > expected even after a ha

[PATCH v7 1/5] drm: Introduce device wedged event

2024-09-30 Thread Raag Jadav
Introduce device wedged event, which will notify userspace of wedged (hanged/unusable) state of the DRM device through a uevent. This is useful especially in cases where the device is no longer operating as expected even after a hardware reset and has become unrecoverable from driver context. Purp