On Thu, May 04, 2023 at 09:16:16PM +0800, lihuisong (C) wrote:
I'm tring to use CRS with GAS to report PCC channel ID and get otherOK you had pcc-chan-id pcc-type and device-flags in the DSD style bindings
informations driver need by address.
to begin with. I haven't understood device-flags here so can't comment on
that.
I found a way to obtain the generic register information according toCan you elaborate ? I assume by that you must be able to get pcc-chan-id
"Referencing the PCC address space" in ACPI spec.
And driver also get the PCC generic register information successfully.
right ? You must not need pcc-type as the pcc mailbox driver must handleYes, PCC driver doesn't support it currently. And aother patch [1] we've been talking about does it.
the type for you. If not, we may need to fix or add any missing support.
My confusion about this address is mentioned below.
But I don't know how to set and use the address in PCC register.It must be same as what you would have specified in you new bindings
under "pcc-chan-id". I am confused as you say you were able to get the
PCC generic register information successfully but you still claim you
don't know how to set or use the address.
Yeah, this is what I'm using.Where should this address come from?I am afraid, I don't have any as I am failing to understand the exact issue
It seems that ACPI spec is not very detailed about this.
Do you have any suggestions?
you are facing.
Let me try to ask the question explicity here:
If you are just referring to just the <RegisterAddress,> in
Register (PCC, RegisterBitWidth, RegisterBitOffset, RegisterAddress, AccessSize)
Communication subspace in share memory of PCC subspace?
then,
RegisterAddress is usually the offset in the comms address associated with
the PCC subspace ID specified in AccessSize. Yes the use of AccessSize forList all the registers as following way?
the PCC subspace ID is bit confusing though.
You can either list all the registers with _CRS individually or the driver
can just use the PCC subspace ID in AccessSize and keep RegisterAddress = 0Following words come from ACPI spec.
but access individual offset based on its own knowledge. I haven't seen the
full driver yet but I assuming that's how you would have used if you went withSorry, here is what I want to say.
your DSD pcc-chan-id proposal.
On the other hand, we think that System Memory space + method can alsoAgain I don't understand what you mean by that.
achieve above goal. What do you think of that?