Re: [PATCH v2] drm/amdgpu: Map all visible VRAM at startup

2018-02-27 Thread Christian König
Am 27.02.2018 um 19:36 schrieb Amber Lin: When using CPU to update page table, we need to kmap all the PDs/PTs after they are allocated and that requires a TLB shot down on each CPU, which is quite heavy. Instead, we map the whole visible VRAM to a kernel address at once. Pages can be obtained f

[PATCH v2] drm/amdgpu: Map all visible VRAM at startup

2018-02-27 Thread Amber Lin
When using CPU to update page table, we need to kmap all the PDs/PTs after they are allocated and that requires a TLB shot down on each CPU, which is quite heavy. Instead, we map the whole visible VRAM to a kernel address at once. Pages can be obtained from the offset. v2: move the mapping base f