From 1918c9e4404aa64b64c26255a8088fd5754e23a6 Mon Sep 17 00:00:00 2001 From: Dezhi Kong Date: Mon, 1 Feb 2021 18:52:00 +0800 Subject: [PATCH] mali-driver: change the WARN info [1/1] PD#SWPL-42494 Problem: two may debug info result in crash reboot Solution: change the WARN_ON TO WARN_ONCE Verify: ah212 Change-Id: Ie5941ab1465f1196efb128295b5a6a90b6f423e8 Signed-off-by: Dezhi Kong --- .../drivers/gpu/arm/midgard/mmu/mali_kbase_mmu.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dvalin/kernel/drivers/gpu/arm/midgard/mmu/mali_kbase_mmu.c b/dvalin/kernel/drivers/gpu/arm/midgard/mmu/mali_kbase_mmu.c index db27832..c2c7c4b 100644 --- a/dvalin/kernel/drivers/gpu/arm/midgard/mmu/mali_kbase_mmu.c +++ b/dvalin/kernel/drivers/gpu/arm/midgard/mmu/mali_kbase_mmu.c @@ -1415,7 +1415,15 @@ int kbase_mmu_insert_pages_no_flush(struct kbase_device *kbdev, * should be performed with * kbase_mmu_update_pages() */ - WARN_ON((*target & 1UL) != 0); + WARN_ONCE((*target & 1UL) != 0, + "vindex=0x%x, count=%d, pgd=0x%pa, " + "insert_vpfn=0x%llx, start_vpfn=0x%llx, " + "nr=%d, remain=%d, group_id=%d, " + "is_huge_head(*phys)=%d\n", + vindex, count, &pgd, + insert_vpfn, start_vpfn, + (u32)nr, (u32)remain, group_id, + is_huge_head(*phys)); *target = kbase_mmu_create_ate(kbdev, phys[i], flags, cur_level, group_id); -- 2.20.1