From da8f2bf948809fc08eb97337b065cd54d336250b Mon Sep 17 00:00:00 2001 From: Jianmin Zhu Date: Sat, 23 May 2020 08:29:38 +0800 Subject: [PATCH] qcacld-3.0: Fix watchdog when dump Roame FW after panic When kernel panic, irq will be disabled, when dump Rome firmware, dma buffer is malloced and freed every time hif_diag_read_mem is called to dump 20K mem, dma_free_attrs is called 100 times for 2M mem dump, WARN_ON(irqs_disabled()) will printk stack about 100 times in short time, watchdog bite. Fix: Change dma mem malloc size from 20KB to 256KB, then only malloc/free less than 10 times totally when dump Rome firmware. Change-Id: I803b2cd30a1c6cdc1ce8f8f1073cdb6c17b650af CRs-Fixed: 2693690 --- core/bmi/src/i_bmi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/bmi/src/i_bmi.h b/core/bmi/src/i_bmi.h index bde7417987a7..107028626f9a 100644 --- a/core/bmi/src/i_bmi.h +++ b/core/bmi/src/i_bmi.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -72,7 +72,7 @@ #define AXI_SIZE 0x00020000 #endif -#define PCIE_READ_LIMIT 0x00005000 +#define PCIE_READ_LIMIT 0x00040000 #define SHA256_DIGEST_SIZE 32