Update doorbell->size to support large default PAGE_SIZE kernels

Change-Id: I6fbe10ae3309f2f935d6782366cedb56dc1438c3
Signed-off-by: Xinmudotmoe <xinmu@xinmu.moe>
Signed-off-by: Kent Russell <kent.russell@amd.com>
Этот коммит содержится в:
Xinmudotmoe
2024-03-13 15:14:58 +08:00
коммит произвёл Kent Russell
родитель 7c10e1e4f5
Коммит 0c06bec272
+4
Просмотреть файл
@@ -135,6 +135,10 @@ static void get_doorbell_map_info(uint32_t node_id,
doorbell->use_gpuvm = (is_dgpu && gfxv != GFX_VERSION_TONGA);
doorbell->size = DOORBELLS_PAGE_SIZE(DOORBELL_SIZE(gfxv));
if (doorbell->size < (uint32_t) PAGE_SIZE) {
doorbell->size = PAGE_SIZE;
}
return;
}