msm: kgsl: Do not capture DTCM on gmu boot failure
Accessing DTCM can cause NoC error sometimes if GMU is accessing any of its TCMs at the same time as host. Change-Id: I3d7a3169620854dbd659f378c216a7b15435c914 Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org> Signed-off-by: Kamal Agrawal <quic_kamaagra@quicinc.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/* soc/qcom/cmd-db.h needs types.h */
|
||||
@@ -388,19 +389,11 @@ static int a6xx_gmu_start(struct kgsl_device *device)
|
||||
gmu_core_regwrite(device, A6XX_GMU_CM3_SYSRESET, 0);
|
||||
/* Make sure the request completes before continuing */
|
||||
wmb();
|
||||
|
||||
if (timed_poll_check(device,
|
||||
A6XX_GMU_CM3_FW_INIT_RESULT,
|
||||
val, GMU_START_TIMEOUT, mask)) {
|
||||
u32 val;
|
||||
|
||||
/*
|
||||
* The breadcrumb is written to a gmu virtual mapping
|
||||
* which points to dtcm byte offset 0x3fdc.
|
||||
*/
|
||||
gmu_core_regread(device,
|
||||
A6XX_GMU_CM3_DTCM_START + (0x3fdc >> 2), &val);
|
||||
dev_err(&gmu->pdev->dev, "GMU doesn't boot: 0x%x\n", val);
|
||||
|
||||
dev_err(&gmu->pdev->dev, "GMU doesn't boot\n");
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user