On Thu, Sep 13, 2012 at 2:37 PM, Alex Deucher <alexdeucher@xxxxxxxxx> wrote:Yeah, minor nitpick: BLOCK_SIZE seems to be number of 4k pages in a page directory entry minus 1.On Thu, Sep 13, 2012 at 2:17 PM, Jerome Glisse <j.glisse@xxxxxxxxx> wrote:If so then it's okOn Thu, Sep 13, 2012 at 10:13 AM, Dmitry CherkasovI think PAGE_TABLE_BLOCK_SIZE refers number of 4k pages used for PTE
<dcherkassov@xxxxxxxxx> wrote:
PDE/PTE update code uses CP ring for memory writes.I wonder how this could have work as you don't set
All page table entries are preallocated for now in alloc_pt().
It is made as whole because it's hard to divide it to several patches
that compile and doesn't break anything being applied separately.
Tested on cayman card.
Signed-off-by: Dmitry Cherkasov <Dmitrii.Cherkasov@xxxxxxx>
---
I couldn't test in on SI card, so would be happy if someone could check it there.
PAGE_TABLE_BLOCK_SIZE field so each page directory entry cover only 1
page.
entries per PDE. E.g., 1 4k page contains 512 64 bit PTEs. so if
BLOCK_SIZE is set to 1 page, each PDE points to 1 page (4k) or PTE
entries. If BLOCK_SIZE is 2, each PDE points to 2 pages (8k) or PTEs,
etc.
Alex