lkml.org 
[lkml]   [2023]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v4 09/12] iommu/vt-d: Add iotlb flush for nested domain
Date
> From: Nicolin Chen <nicolinc@nvidia.com>
> Sent: Saturday, August 19, 2023 2:26 AM
>
> On Fri, Aug 18, 2023 at 03:20:55PM -0300, Jason Gunthorpe wrote:
> > On Fri, Aug 18, 2023 at 10:56:45AM -0700, Nicolin Chen wrote:
> >
> > > > The highest array index sounds generic, the error code maybe is too
> > >
> > > We could do in its and report the error code in its raw form:
> > > __u32 out_array_index;
> > > /* number of bits used to report error code in the returned
> array_index */
> > > __u32 out_array_index_error_code_bits;
> > > Or just:
> > > __u32 out_array_index;
> > > __u32 out_error_code;
> > >
> > > Do we have to define a list of generic error code?
> >
> > out_driver_error_code may be OK
>
> Ack. Will implement the array in that way.
>

Yes. Error code is driver specific. Just having a field to carry it is
sufficient.

\
 
 \ /
  Last update: 2023-08-21 03:25    [W:0.321 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site