Re: [PATCH v1 1/2] x86/cpufeature: Add facility to match microcode revisions

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

 



On Sat, 6 Oct 2018, Thomas Gleixner wrote:

> On Fri, 5 Oct 2018, Andi Kleen wrote:
> > +/*
> > + * Match specific microcodes or steppings.
> 
> What means microcodes or steppings? If you mean microcode revisions then
> please spell it out and use it all over the place. steppings is confusing
> at best as its associated to the CPU stepping.
> 
> > + *
> > + * vendor/family/model/stepping must be all set.
> > + * min_ucode/max_ucode/driver_data are optional and can be 0.
> > + */
> > +
> > +struct x86_ucode_id {
> > +	__u16 vendor;
> 
> __uXX are usually UAPI types. Please use the regular kernel uXX
> types instead.
> 
> > +	__u16 family;
> > +	__u16 model;
> > +	__u16 stepping;
> 
> Why u16? The corresponding members in cpuinfo_x86 are 8bit wide so why
> wasting memory for these tables?
> 
> > +	__u32 min_ucode;
> > +	__u32 max_ucode;
> > +	kernel_ulong_t driver_data;

Why do we need max_ucode and driver_data? I can't find an existing example
where this would be useful. If we need it later then it can be added
incrementaly.

Thanks,

	tglx





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux