From patchwork Fri Jan 26 05:40:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Wang X-Patchwork-Id: 10185103 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 E60C560383 for ; Fri, 26 Jan 2018 05:40:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6F4228775 for ; Fri, 26 Jan 2018 05:40:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB7C328871; Fri, 26 Jan 2018 05:40:57 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 B133828842 for ; Fri, 26 Jan 2018 05:40:56 +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:References: In-Reply-To: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:List-Owner; bh=bRzh98vSjgaa3i5LngMPZaR+oQVtiV1m3g5Y27lGXAU=; b=PmcAb85HmLvE32K75MWrbA3qXI pu5naKVXju+fuNcdggbhG7TG1eFPRmUDLO18IvtR179122EaUOlSdN0KVm0+LUvBBpejn3e1v/soe /2ce/v3RaOAWqUEoDfs1TVPLkp3iVVnO++diVloUIsMRxnyzoVu2rdv5BjlArNF/eY3u0nMEo2v3r EGC4QALSAfzkqFhwkr0g0gEZ5A04APHoQ5VJgklzEX8CCsVBCFj0Ci0CmhIUIQqHQLW/x7AnKXq09 14sBsMuOIY0Q2WmHJO5nZVBOPjVe55VFollRkXW4wZKsH+lyGFEmyTaE+ik5u7Xz2OdVHVC6hMfjM WtqINW7w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eewkl-0005NJ-Qz; Fri, 26 Jan 2018 05:40:43 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eewkh-0005Lw-CL for ath10k@lists.infradead.org; Fri, 26 Jan 2018 05:40:41 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B247B601D9; Fri, 26 Jan 2018 05:40:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516945228; bh=XxObfpsE4zxyeAk/jW+13h229MV8j+vjr45ZwVwyQm8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QLW8qUxONxqdesq3/ZTEWPI9kcyLKf6v1pF0rIO9H8yXV8BRFsB403dnREfR0jrZu huFNaUvqG+LysxS5+Jpx+nuBJ5+DouOd9JahiAdXt9B0EhuZfBCxmhgKtzsH3WO4QP hsRhFacqNl9XpmwCle8Tly3TU4YQdKMgHcrNT1TI= Received: from localhost.localdomain (unknown [180.166.53.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: yyuwang@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A8346607EB; Fri, 26 Jan 2018 05:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516945228; bh=XxObfpsE4zxyeAk/jW+13h229MV8j+vjr45ZwVwyQm8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QLW8qUxONxqdesq3/ZTEWPI9kcyLKf6v1pF0rIO9H8yXV8BRFsB403dnREfR0jrZu huFNaUvqG+LysxS5+Jpx+nuBJ5+DouOd9JahiAdXt9B0EhuZfBCxmhgKtzsH3WO4QP hsRhFacqNl9XpmwCle8Tly3TU4YQdKMgHcrNT1TI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A8346607EB 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=yyuwang@codeaurora.org From: Yu Wang To: ath10k@lists.infradead.org Subject: [PATCH] ath10k: correct the length of DRAM dump for QCA6174 hw3.x/QCA9377 hw1.1 Date: Fri, 26 Jan 2018 13:40:21 +0800 Message-Id: <1516945221-4710-2-git-send-email-yyuwang@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516945221-4710-1-git-send-email-yyuwang@codeaurora.org> References: <1516945221-4710-1-git-send-email-yyuwang@codeaurora.org> 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 The length of DRAM dump for QCA6174 hw3.0/hw3.2 and QCA9377 hw1.1 are less than the actual value, some coredump contents are missed. To fix it, change the length from 0x90000 to 0xa8000. Fixes: 703f261dd77f ("ath10k: add memory dump support for QCA6174/QCA9377") Signed-off-by: Yu Wang --- drivers/net/wireless/ath/ath10k/coredump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/coredump.c b/drivers/net/wireless/ath/ath10k/coredump.c index 4dde126..7173b37 100644 --- a/drivers/net/wireless/ath/ath10k/coredump.c +++ b/drivers/net/wireless/ath/ath10k/coredump.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. + * Copyright (c) 2018, 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 above @@ -616,7 +617,7 @@ { .type = ATH10K_MEM_REGION_TYPE_DRAM, .start = 0x400000, - .len = 0x90000, + .len = 0xa8000, .name = "DRAM", .section_table = { .sections = NULL,