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: 10185101 X-Patchwork-Delegate: kvalo@adurom.com 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 DBBFC60383 for ; Fri, 26 Jan 2018 05:40:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDA9E28775 for ; Fri, 26 Jan 2018 05:40:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C246D28842; Fri, 26 Jan 2018 05:40:43 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A810B28871 for ; Fri, 26 Jan 2018 05:40:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751742AbeAZFka (ORCPT ); Fri, 26 Jan 2018 00:40:30 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:35784 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751725AbeAZFk3 (ORCPT ); Fri, 26 Jan 2018 00:40:29 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A1EB860A24; 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 Cc: linux-wireless@vger.kernel.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> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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,