From patchwork Tue Aug 15 08:23:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 9901261 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 8BB7D60244 for ; Tue, 15 Aug 2017 08:24:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B64324B48 for ; Tue, 15 Aug 2017 08:24:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 703E52623C; Tue, 15 Aug 2017 08:24:18 +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.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 2FBAF24B48 for ; Tue, 15 Aug 2017 08:24:18 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qxbzgTJEClS7hHrPdqVe2+wMkJzUQ7aPM1TvUFCbYOo=; b=hqI2U/AOhAbEz8 LZzLzU9WHg4lHDGPsDVfxTcUsUcAON5nTAy6b5fLFdsPuoNgF0MZ1Zi+/NTM/CNr3ZtLWoA5zQ/nh v+irDnz3vy7lSkfISNpg8tCjGoDQQl1qtTEiN+acZC5mp0yxYEkNhm1NgVaqbN5mbmvc8iZ+Dzn2Y /2YbqPmC4U+X9jvBgeofhgs0NK42/96dFWDgp7wIa1yvLPxV+2bAnme/QSshYMnTB542A6aE3xJi+ YmUmSgatXrVw/jyvrojtLr8NeAkPmuOIo6hygnVZ45kGNlgovqN8FTg1Paii0jf8ugS1DMjregEh3 38uG51SFGTKzZvAmHIVA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dhX93-0001r6-S9; Tue, 15 Aug 2017 08:24:13 +0000 Received: from sabertooth01.qualcomm.com ([65.197.215.72]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dhX8z-0001LZ-BL for ath10k@lists.infradead.org; Tue, 15 Aug 2017 08:24:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1502785449; x=1534321449; h=subject:from:to:cc:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=93m6C7H3pW4YXCWZg/RxOXA7EOpZ+3K0cY1CHDIMqPI=; b=fKbLga2Pwf2klNDxUQhGyr1pxZ9nBCp81xht1ISroJxzO0u6H+s8Jnsx zzsqAxgPi4Cc3gyKcYzGnBVFfZSPwRhe6V4dM8a3fN4+5Cv/GkGNOqn7S dyuzXxmqF9fUHIe6t338gTE8sSn4caS6BOCux2+EuB+3ZT54GvVDQFmwj Q=; X-IronPort-AV: E=Sophos;i="5.41,377,1498546800"; d="scan'208";a="112735982" Received: from unknown (HELO Ironmsg04-L.qualcomm.com) ([10.53.140.111]) by sabertooth01.qualcomm.com with ESMTP; 15 Aug 2017 01:24:09 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8622"; a="1404662814" X-MGA-submission: =?us-ascii?q?MDHvJTGfgIMQJ30AdYG3jpmdXiE+tYZ4yjfqAO?= =?us-ascii?q?f3bvEBOYXudL2fiBtUnfNNAeKwArv7sphwv5AyYIkVFbVGWC0rRIXuYU?= =?us-ascii?q?RkaMtLUsHs1nCs/LGdrqz93rFnaJszG0jZD9f//BCABT3hZYpfXwZuIe?= =?us-ascii?q?rV?= Received: from nasanexm01b.na.qualcomm.com ([10.85.0.82]) by Ironmsg04-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 15 Aug 2017 01:24:09 -0700 Received: from euamsexm01a.eu.qualcomm.com (10.251.127.40) by NASANEXM01B.na.qualcomm.com (10.85.0.82) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 15 Aug 2017 01:24:08 -0700 Received: from potku.adurom.net (10.80.80.8) by euamsexm01a.eu.qualcomm.com (10.251.127.40) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 15 Aug 2017 10:24:03 +0200 Subject: [PATCH 6/6] ath10k: add memory dump support QCA988X From: Kalle Valo To: Date: Tue, 15 Aug 2017 11:23:59 +0300 Message-ID: <150278543889.22482.337673352002345856.stgit@potku.adurom.net> In-Reply-To: <150278532045.22482.14490702801292107536.stgit@potku.adurom.net> References: <150278532045.22482.14490702801292107536.stgit@potku.adurom.net> User-Agent: StGit/0.17.1-17-ge4e0 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01B.na.qualcomm.com (10.85.0.82) To euamsexm01a.eu.qualcomm.com (10.251.127.40) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170815_012409_556150_BD582D48 X-CRM114-Status: UNSURE ( 5.71 ) 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 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Copy two regions of registers and bigger DRAM region to the dump file. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath10k/coredump.c | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/coredump.c b/drivers/net/wireless/ath/ath10k/coredump.c index d61a36911558..644e01361df8 100644 --- a/drivers/net/wireless/ath/ath10k/coredump.c +++ b/drivers/net/wireless/ath/ath10k/coredump.c @@ -667,6 +667,39 @@ static const struct ath10k_mem_region qca6174_hw30_mem_regions[] = { }, }; +static const struct ath10k_mem_region qca988x_hw20_mem_regions[] = { + { + .type = ATH10K_MEM_REGION_TYPE_DRAM, + .start = 0x400000, + .len = 0x50000, + .name = "DRAM", + .section_table = { + .sections = NULL, + .size = 0, + }, + }, + { + .type = ATH10K_MEM_REGION_TYPE_REG, + .start = 0x4000, + .len = 0x2000, + .name = "REG_PART1", + .section_table = { + .sections = NULL, + .size = 0, + }, + }, + { + .type = ATH10K_MEM_REGION_TYPE_REG, + .start = 0x8000, + .len = 0x58000, + .name = "REG_PART2", + .section_table = { + .sections = NULL, + .size = 0, + }, + }, +}; + static const struct ath10k_hw_mem_layout hw_mem_layouts[] = { { .hw_id = QCA6174_HW_1_0_VERSION, @@ -717,6 +750,13 @@ static const struct ath10k_hw_mem_layout hw_mem_layouts[] = { .size = ARRAY_SIZE(qca6174_hw30_mem_regions), }, }, + { + .hw_id = QCA988X_HW_2_0_VERSION, + .region_table = { + .regions = qca988x_hw20_mem_regions, + .size = ARRAY_SIZE(qca988x_hw20_mem_regions), + }, + }, }; static u32 ath10k_coredump_get_ramdump_size(struct ath10k *ar)