From patchwork Tue May 8 12:11:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anilkumar Kolli X-Patchwork-Id: 10386043 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3C710602D8 for ; Tue, 8 May 2018 12:09:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22EA228D81 for ; Tue, 8 May 2018 12:09:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1716F28D89; Tue, 8 May 2018 12:09:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 92A5928D81 for ; Tue, 8 May 2018 12:09:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=pydm+Cveu2xEFxQkpJ8Vmc10+GiDVcC7tIw6x0vyt/A=; b=S4O Ahi+l9rcRoQG83KD0x1SD6PSaacCyH25flF50V1KUcnArTPKPgc9MjJe+vfuholLcob6FjXofpr+q 0sKLyzMXzAh//94Y2uUMiyZW6GTAxiSH5z5n4VWD2uxUg7gOCitF2RCUw8B0DHOUltfeWXN66WIab I6QZfB99YkdbZXiACRD8TsLr8qSoQuNXIIEX0crb6v12xbzVY0JiZ62KS4QZ2Gd6uOjLUY49I+ULS 09KkR4h8ectxhjsYajWLKgH8rxp3d4gQ3qrqT4t/VI+gvzWgdfIv7PGQPnoACrHxwbK8RP8eDDvTW 1+tQeRSQCTGa6gWhyWE93R5UCJHKruA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fG1R4-0003Wt-Kr; Tue, 08 May 2018 12:09:38 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fG1R1-0003Vj-3l for ath10k@lists.infradead.org; Tue, 08 May 2018 12:09:36 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7F6656081B; Tue, 8 May 2018 12:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525781362; bh=OY5RDFq/3EG6p0TC7SO6LHSd7FU8FTnJ0RsdPLg+YjE=; h=From:To:Cc:Subject:Date:From; b=hz+VZUQ/EY0TpZoAnvZTXbaImg4KcsxSKFmTJZizrNOYIUjRaDkK4963TyQUYsk8Y EYz4aco4/KwWomNddxFM/QoTsfM0pGmuXYk7LhwCQ9fFnn76Vo7Vc9WJibk2UcEuu0 pPCawxlBswQxkvXrrRhMUAcrlG3IJ5ms4/aLPC0I= Received: from localhost (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: akolli@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1408060712; Tue, 8 May 2018 12:09:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525781362; bh=OY5RDFq/3EG6p0TC7SO6LHSd7FU8FTnJ0RsdPLg+YjE=; h=From:To:Cc:Subject:Date:From; b=hz+VZUQ/EY0TpZoAnvZTXbaImg4KcsxSKFmTJZizrNOYIUjRaDkK4963TyQUYsk8Y EYz4aco4/KwWomNddxFM/QoTsfM0pGmuXYk7LhwCQ9fFnn76Vo7Vc9WJibk2UcEuu0 pPCawxlBswQxkvXrrRhMUAcrlG3IJ5ms4/aLPC0I= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1408060712 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=akolli@codeaurora.org From: Anilkumar Kolli To: ath10k@lists.infradead.org Subject: [PATCH] ath10k: add fw crash dump support for QCA9888 and QCA99X0 Date: Tue, 8 May 2018 17:41:36 +0530 Message-Id: <1525781496-14776-1-git-send-email-akolli@codeaurora.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180508_050935_192152_68C3F8EA X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds crash dump support for QCA9888 and QCA99X0 Tested On: QCA9888, Firmware Version: 10.4-3.5.3-00053 Tested on QCA99X0, Firmware Version: 10.4.1.00030-1 Signed-off-by: Anilkumar Kolli --- drivers/net/wireless/ath/ath10k/coredump.c | 98 ++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/coredump.c b/drivers/net/wireless/ath/ath10k/coredump.c index f90cec0ebb1c..e0eb2eb1a66d 100644 --- a/drivers/net/wireless/ath/ath10k/coredump.c +++ b/drivers/net/wireless/ath/ath10k/coredump.c @@ -701,6 +701,89 @@ }, }; +static const struct ath10k_mem_region qca99X0_hw20_mem_regions[] = { + { + .type = ATH10K_MEM_REGION_TYPE_DRAM, + .start = 0x400000, + .len = 0x60000, + .name = "DRAM", + .section_table = { + .sections = NULL, + .size = 0, + }, + }, + { + .type = ATH10K_MEM_REGION_TYPE_REG, + .start = 0x98000, + .len = 0x50000, + .name = "IRAM", + .section_table = { + .sections = NULL, + .size = 0, + }, + }, + { + .type = ATH10K_MEM_REGION_TYPE_IOSRAM, + .start = 0xC0000, + .len = 0x40000, + .name = "SRAM", + .section_table = { + .sections = NULL, + .size = 0, + }, + }, + { + .type = ATH10K_MEM_REGION_TYPE_IOREG, + .start = 0x30000, + .len = 0x7000, + .name = "APB REG 1", + .section_table = { + .sections = NULL, + .size = 0, + }, + }, + { + .type = ATH10K_MEM_REGION_TYPE_IOREG, + .start = 0x3f000, + .len = 0x3000, + .name = "APB REG 2", + .section_table = { + .sections = NULL, + .size = 0, + }, + }, + { + .type = ATH10K_MEM_REGION_TYPE_IOREG, + .start = 0x43000, + .len = 0x3000, + .name = "WIFI REG", + .section_table = { + .sections = NULL, + .size = 0, + }, + }, + { + .type = ATH10K_MEM_REGION_TYPE_IOREG, + .start = 0x4A000, + .len = 0x5000, + .name = "CE REG", + .section_table = { + .sections = NULL, + .size = 0, + }, + }, + { + .type = ATH10K_MEM_REGION_TYPE_IOREG, + .start = 0x80000, + .len = 0x6000, + .name = "SOC REG", + .section_table = { + .sections = NULL, + .size = 0, + }, + }, +}; + static const struct ath10k_mem_region qca9984_hw10_mem_regions[] = { { .type = ATH10K_MEM_REGION_TYPE_DRAM, @@ -848,6 +931,21 @@ .size = ARRAY_SIZE(qca9984_hw10_mem_regions), }, }, + { + .hw_id = QCA9888_HW_2_0_DEV_VERSION, + .region_table = { + .regions = qca9984_hw10_mem_regions, + .size = ARRAY_SIZE(qca9984_hw10_mem_regions), + }, + }, + { + .hw_id = QCA99X0_HW_2_0_DEV_VERSION, + .region_table = { + .regions = qca99X0_hw20_mem_regions, + .size = ARRAY_SIZE(qca99X0_hw20_mem_regions), + }, + }, + }; static u32 ath10k_coredump_get_ramdump_size(struct ath10k *ar)