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
This commit is contained in:
Jianmin Zhu
2020-05-23 08:29:38 +08:00
gecommit door nshrivas
bovenliggende 30b9e2409e
commit da8f2bf948

Bestand weergeven

@@ -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