Re: [PATCH V2] drm/ttm: increase ttm pre-fault value to PMD size

2024-06-20 Thread Christian König
Am 19.06.24 um 18:09 schrieb Alex Deucher: On Tue, Jun 4, 2024 at 10:02 AM Christian König wrote: Am 04.06.24 um 12:18 schrieb Huang Rui: On Tue, Jun 04, 2024 at 04:49:34PM +0800, Zhu, Lingshan wrote: ttm page fault handler ttm_bo_vm_fault_reserved() maps TTM_BO_VM_NUM_PREFAULT more pages bef

Re: [PATCH V2] drm/ttm: increase ttm pre-fault value to PMD size

2024-06-19 Thread Alex Deucher
On Tue, Jun 4, 2024 at 10:02 AM Christian König wrote: > > Am 04.06.24 um 12:18 schrieb Huang Rui: > > On Tue, Jun 04, 2024 at 04:49:34PM +0800, Zhu, Lingshan wrote: > >> ttm page fault handler ttm_bo_vm_fault_reserved() maps > >> TTM_BO_VM_NUM_PREFAULT more pages beforehand > >> due to the princi

Re: [PATCH V2] drm/ttm: increase ttm pre-fault value to PMD size

2024-06-04 Thread Christian König
Am 04.06.24 um 12:18 schrieb Huang Rui: On Tue, Jun 04, 2024 at 04:49:34PM +0800, Zhu, Lingshan wrote: ttm page fault handler ttm_bo_vm_fault_reserved() maps TTM_BO_VM_NUM_PREFAULT more pages beforehand due to the principle of locality. However, on some platform the page faults are more costly,

Re: [PATCH V2] drm/ttm: increase ttm pre-fault value to PMD size

2024-06-04 Thread Huang Rui
On Tue, Jun 04, 2024 at 04:49:34PM +0800, Zhu, Lingshan wrote: > ttm page fault handler ttm_bo_vm_fault_reserved() maps > TTM_BO_VM_NUM_PREFAULT more pages beforehand > due to the principle of locality. > > However, on some platform the page faults are more costly, this > patch intends to increase

[PATCH V2] drm/ttm: increase ttm pre-fault value to PMD size

2024-06-04 Thread Zhu Lingshan
ttm page fault handler ttm_bo_vm_fault_reserved() maps TTM_BO_VM_NUM_PREFAULT more pages beforehand due to the principle of locality. However, on some platform the page faults are more costly, this patch intends to increase the number of ttm pre-fault to relieve the number of page faults. When mu