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>
This commit is contained in:
Xinmudotmoe
2024-03-13 15:14:58 +08:00
committad av Kent Russell
förälder 7c10e1e4f5
incheckning 0c06bec272
+4
Visa fil
@@ -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;
}