6/02/2012

Adreno200 GPU MMU behavior

1. MMU will reserve a range of virtual memory space from OS first, for example, 0x2000000~0x6000000 (64MB)
2. MMU will need to be configured how much physical can is allocate, for example, 32MB
3. MMU will initialize PTE by reserving 32KB PTE in physical memory
4. For each graphics driver allocation via MMU, MMU will go through PTE and map page size (page size is configurable, 4K by default) each time in physical memory.
5. A mapped virtual address is saved for the allocated physical, for example, 0x2000000~0x210000 virtual address will be used for 1MB physical allocation from driver and the 1MB physical allocation can be in 256 4KB pages (if page size is 4K).
6. Take previous example: Mapping from 0x2000000~0x21000000 to 256 4K
pages is done by MMU

No comments:

Post a Comment