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 other > informations driver need by address. OK you had pcc-chan-id pcc-type and device-flags in the DSD style bindings 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 to > "Referencing the PCC address space" in ACPI spec. > And driver also get the PCC generic register information successfully. > Can you elaborate ? I assume by that you must be able to get pcc-chan-id right ? You must not need pcc-type as the pcc mailbox driver must handle the type for you. If not, we may need to fix or add any missing support. > 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. > Where should this address come from? > It seems that ACPI spec is not very detailed about this. > Do you have any suggestions? > I am afraid, I don't have any as I am failing to understand the exact issue 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) then, RegisterAddress is usually the offset in the comms address associated with the PCC subspace ID specified in AccessSize. Yes the use of AccessSize for 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 = 0 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 with your DSD pcc-chan-id proposal. > On the other hand, we think that System Memory space + method can also > achieve above goal. What do you think of that? Again I don't understand what you mean by that. -- Regards, Sudeep