RE: [PATCH] drm/amdkfd: Copy HW exception data to user event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[AMD Official Use Only - General]

Thanks Eric.
The CI builds also detected the wrong use of spaces. So I fixed the tabs with spaces in the patch that I submitted.

~David

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of Eric
> Huang
> Sent: Friday, November 17, 2023 2:50 PM
> To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH] drm/amdkfd: Copy HW exception data to user event
>
> On 2023-11-17 00:20, David Yat Sin wrote:
> > Fixes issue where user events of type KFD_EVENT_TYPE_HW_EXCEPTION do
> > not have valid data
> >
> > Signed-off-by: David Yat Sin <David.YatSin@xxxxxxx>
> > ---
> >   drivers/gpu/drm/amd/amdkfd/kfd_events.c | 4 ++++
> >   1 file changed, 4 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_events.c
> > b/drivers/gpu/drm/amd/amdkfd/kfd_events.c
> > index 0f58be65132f..7d3db017f8d7 100644
> > --- a/drivers/gpu/drm/amd/amdkfd/kfd_events.c
> > +++ b/drivers/gpu/drm/amd/amdkfd/kfd_events.c
> > @@ -880,6 +880,10 @@ static int copy_signaled_event_data(uint32_t
> num_events,
> >                             dst = &data[i].memory_exception_data;
> >                             src = &event->memory_exception_data;
> >                             size = sizeof(struct
> kfd_hsa_memory_exception_data);
> > +                        } else if (event->type == KFD_EVENT_TYPE_HW_EXCEPTION) {
> > +                                dst = &data[i].hw_exception_data;
> > +                                src = &event->hw_exception_data;
> > +                                size = sizeof(struct
> > + kfd_hsa_hw_exception_data);
> Please use tabs for indent instead of white spaces.
>
> Regards,
> Eric
> >                     } else if (event->type == KFD_EVENT_TYPE_SIGNAL &&
> >                             waiter->event_age_enabled) {
> >                             dst =
> &data[i].signal_event_data.last_event_age;





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux