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>


[ROCm/ROCR-Runtime commit: 0c06bec272]
This commit is contained in:
Xinmudotmoe authored and Kent Russell committed 2024-03-13 09:18:42 -04:00
1 vanhempi 4fbec4e774
commit 3b6146e7db
1 file changed
+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;
}