[PATCH][V4] powerpc/fsl-pci: Add pci inbound/outbound PM support

Kumar Gala galak at kernel.crashing.org
Fri Sep 28 07:38:22 EST 2012


On Sep 27, 2012, at 11:27 AM, Li Yang-R58472 wrote:

> 
> 在 Sep 28, 2012,0:07,"Kumar Gala" <galak at kernel.crashing.org> 写道:
> 
>>>>> Hi Kumar,
>>>>> I have already sent the log.
>>>>> Do you have any comment on it?
>>>>> 
>>>>> Thanks.
>>>>> - Hongtao.
>>>>> 
>>>> 
>>>> Hongtao,
>>>> 
>>>> You mentioned:
>>>> 
>>>>> I tested the re-parsing way by using setup_pci_atmu() when resume.
>>>>> And I found out that re-parsing will *change* outbound IO
>>>>> translation address regitster.
>>>> 
>>>> What do the values look like in both ATMU registers and io_resource if you reparse?
>>> 
>>> I think Hongtao mentioned in previous email as follows, the ATMU
>>> registers are inline with the io_resource address.
>> 
>> I was under that the impression that was the normal boot case, not the values from after wakeup.
> 
> It is for the normal boot.  But re-parse will use the io resource after pic scan to initialize atmu.  Instead, the original atmu is initialized use the io resource before the scan.
> 
> Leo

I think I see, so isn't the mem resources also wrong?

Can we dump the following:

1. enable pr_debug() in pcibios_setup_phb_resources so we get "PHB: " prints
2. Can we dump hose->io_resource & hose->mem_resources[] right after wakeup?

I think I see what direction but would be useful to get a few more answers.

- k


More information about the Linuxppc-dev mailing list