* hash-table creation...
@ 2009-02-07 6:13 sumedh tirodkar
2009-02-07 21:17 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 3+ messages in thread
From: sumedh tirodkar @ 2009-02-07 6:13 UTC (permalink / raw)
To: linuxppc-dev
Hello,
I wanted algorithm for creating hash tables used in paging mechanism..
In the manual that i read i got algorithm to convert Effective Address
to Real Address using these hash tables that are created..but i could
not find how these hash tables are created in first place using the
Real addresses.
Is there any document available for the same?
Regards,
Sumedh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hash-table creation...
2009-02-07 6:13 hash-table creation sumedh tirodkar
@ 2009-02-07 21:17 ` Benjamin Herrenschmidt
2009-02-23 7:56 ` sumedh tirodkar
0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2009-02-07 21:17 UTC (permalink / raw)
To: sumedh tirodkar; +Cc: linuxppc-dev
On Sat, 2009-02-07 at 11:43 +0530, sumedh tirodkar wrote:
> Hello,
>
> I wanted algorithm for creating hash tables used in paging mechanism..
> In the manual that i read i got algorithm to convert Effective Address
> to Real Address using these hash tables that are created..but i could
> not find how these hash tables are created in first place using the
> Real addresses.
> Is there any document available for the same?
There's one MMU hash table. It's allocated & cleared by the kernel
during early boot or by the hypervisor and pointed to by the SDR1
register.
It's populated by code in arch/powerpc/mm/hash_low_64.S or
hash_low_32.S, typically as the result of a hash miss exception.
Ben.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hash-table creation...
2009-02-07 21:17 ` Benjamin Herrenschmidt
@ 2009-02-23 7:56 ` sumedh tirodkar
0 siblings, 0 replies; 3+ messages in thread
From: sumedh tirodkar @ 2009-02-23 7:56 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
Thanks a lot...paging mechanism working successfully...
Regards,
Sumedh
On Sun, Feb 8, 2009 at 2:47 AM, Benjamin Herrenschmidt
<benh@kernel.crashing.org> wrote:
> On Sat, 2009-02-07 at 11:43 +0530, sumedh tirodkar wrote:
>> Hello,
>>
>> I wanted algorithm for creating hash tables used in paging mechanism..
>> In the manual that i read i got algorithm to convert Effective Address
>> to Real Address using these hash tables that are created..but i could
>> not find how these hash tables are created in first place using the
>> Real addresses.
>> Is there any document available for the same?
>
> There's one MMU hash table. It's allocated & cleared by the kernel
> during early boot or by the hypervisor and pointed to by the SDR1
> register.
>
> It's populated by code in arch/powerpc/mm/hash_low_64.S or
> hash_low_32.S, typically as the result of a hash miss exception.
>
> Ben.
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-23 7:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-07 6:13 hash-table creation sumedh tirodkar
2009-02-07 21:17 ` Benjamin Herrenschmidt
2009-02-23 7:56 ` sumedh tirodkar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).