From 796424b4107f1277b2e76a4f4d3a566b9a042019 Mon Sep 17 00:00:00 2001 From: Kexy Biscuit Date: Mon, 14 Oct 2024 06:58:21 +0800 Subject: [PATCH] LOONGARCH64: AOSCOS: more fixes for Xe on LoongArch More fixes based on the previous patch. Signed-off-by: Kexy Biscuit --- drivers/gpu/drm/xe/xe_guc_ads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -uNra a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c --- a/drivers/gpu/drm/xe/xe_guc_ads.c 2025-07-29 18:04:35.288445670 +0800 +++ b/drivers/gpu/drm/xe/xe_guc_ads.c 2025-07-29 18:05:08.076445670 +0800 @@ -144,7 +144,7 @@ static u32 guc_ads_waklv_size(struct xe_guc_ads *ads) { - return PAGE_ALIGN(ads->ads_waklv_size); + return ALIGN(ads->ads_waklv_size, XE_PAGE_SIZE); } static size_t guc_ads_capture_size(struct xe_guc_ads *ads) @@ -189,7 +189,7 @@ offset = guc_ads_golden_lrc_offset(ads) + guc_ads_golden_lrc_size(ads); - return PAGE_ALIGN(offset); + return ALIGN(offset, XE_PAGE_SIZE); } static size_t guc_ads_capture_offset(struct xe_guc_ads *ads)