It's not yes/no for a "model" or "machine". It's yes/no for a given *device*This comes back to the point that was mentioned by Johannes - you need toYes, this is the policy is keep referring to. I would expect that
have deep design understanding of the hardware to know whether or not you
will have producers that a consumer need to react to.
there is something somewhere in ACPI which says for this machine, the
policy is Yes/No.
Which is exactly what wbrf_supported_producer() and wbrf_supported_consumer() do.
It could well be that AMD based machine has a different ACPI extension
to indicate this policy to what Intel machine has. As far as i
understand it, you have not submitted this yet for formal approval,
this is all vendor specific, so Intel could do it completely
differently. Hence i would expect a generic API to tell the core what
the policy is, and your glue code can call into ACPI to find out that
information, and then tell the core.
It's not a function of "device" though, it's "device within machine".If all producers indicate their frequency and all consumers react to it youAnd the policy will indicate No, nothing needs to be done. The core
may have activated mitigations that are unnecessary. The hardware designer
may have added extra shielding or done the layout such that they're not
needed.
can then tell produces and consumes not to bother telling the core
anything.
So I don't think we're ever going to be in a situation that the genericWrong. You should have a generic core, which your AMD CPU DDR device
implementation should be turned on by default. It's a "developer knob".
plugs into. The Intel CPU DDR device can plug into, the nvidea GPU can
plug into, your Radeon GPU can plug into, the intel ARC can plug into,
the generic WiFi core plugs into, etc.
I don't see why other implementations can't just come up with other
If needed these can then be enabled using the AMD ACPI interface, a DT oneNotice i've not mentioned DT for a while. I just want a generic core,
if one is developed or maybe even an allow-list of SMBIOS strings.
which AMD, Intel, nvidea, Ampare, Graviton, Qualcomm, Marvell, ...,
etc can use. We should be solving this problem once, for everybody,
not adding a solution for just one vendor.
Andrew