Re: [PATCH] x86: add support DM&P devices

From: Borislav Petkov
Date: Sat Oct 16 2021 - 13:52:52 EST


On Thu, Oct 14, 2021 at 06:29:12PM +0000, Marcos Del Sol Vives wrote:
> Should I change it then?

Yes please.

> Should I also change the other two, possibly in a different patch?

So I looked at

8d02c2110b3f ("x86: configuration options to compile out x86 CPU support code")

which added some of those !64_BIT deps. And when you look at

config X86_32
def_bool !64BIT

and having those items either depend on "!64BIT" or on "X86_32" should
be equivalent. Former is just weird to have in other Kconfig items
except X86_32.

So yes, please, in a separate patch.

> I used that text because it's what every other x86 processor flag is
> also using, even those that also do not do any special initialization.
>
> For example, the CPU_SUP_UMC_32 flag also has the same warning, yet
> arch/x86/kernel/cpu/umc.c reads "UMC chips appear to be only either 386
> or 486, so no special init takes place". I thus assumed this was
> standard text, in case at some point an special init is required.

Yah, sounds like they've all been copy-pasted from some item which
really needs special init.

> Do you think it should be then reworded, or should I keep it to mantain
> consistency with other existing flag descriptions?

Yeah, please write the correct statement in there and do not take the
other entries too seriosly - looks like semi-automatic copy-paste took
place.

> Greetings and thanks for your time,

Ditto and you're welcome!

:-)

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette