Re: [PATCH RFC v2 1/9] attestation: Add the base family specification and generated files

From: Jason Gunthorpe

Date: Wed Dec 02 2026 - 09:28:24 EST


On Wed, Dec 02, 2026 at 03:01:58PM +0100, Jiri Pirko wrote:

> >I would just do the dumb simple thing, if we put something in a driver
> >and realise later it was really global, then have some syntax like
> >
> > xx:
> > - new_global = 0x1212342345
>
> Ugh, hate this... Will try to figure something else up.

I'm thinking this should be pretty rare in practice.

> >> >Just to be clear about exactly what is being extracted from
> >> >hash_algo.. It is the total number of entries, not the maximum value
> >> >or something else.
> >>
> >> I already have this changed in my work tree as:
> >> "supported-hash-algorithms[enum hash-algo]: enum hash-algo". I think it
> >> is enough, what do you think?
> >
> >I still look at it and wonder what value is inside the [], max value
> >or total number? Here we want total number
> >
> >The enum is certainly helpful though
>
> the docs define it as "up to once per value of the enum". So it is the
> number of values,n ever the highest one.

I guess my point is it should be clear enough without having to
consult the documentation. IMHO this YAML is not a good place to trade
succinctness for readability.

Jason