Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp230271pxb; Mon, 13 Sep 2021 17:48:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5gR4DKbvQca2VSXqTf67y17Vr4F4s2YU84AsasVp9Obb1aT1znAP0Jzur3z9ZnW3as4rU X-Received: by 2002:a17:906:7302:: with SMTP id di2mr16518087ejc.409.1631580500883; Mon, 13 Sep 2021 17:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631580500; cv=none; d=google.com; s=arc-20160816; b=VQupNSxz/TIM89afgC/uxes84xz0ckaBsYT5M93O9OwtoWcUrTJQhTaRCQYTnALv7G BTmiEbSShzyt4lIyTxWy+L0tQ1kAIjEP+pQhg1cQsQdW3BSvS91OqRvvPQvGMY2h7PO0 LuO26siZsBSu1jYJF87uT8ecPyS9eZlPlc1qNz2awUo0sjkVX4o9noiE4H830VxHd3Ek EAzgji6kddjHrhIR5qNWiVYAq9ZasibU/rjQElLw7aPPU3axmQqHq0smlT1fqFJ9BjSc EDk8bqwmIbV1dOOTajYJCk3Zc1yHj3ULdSAR2fMz84vX+vgQNKdDB97Pdpm0Zykjaf8q W2PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=kzM0pH05T/zXkE+vY1cg5uezgXBShFgu2/vn4EDvk6c=; b=EOXXHk5aNYM2heRt87TNmSi1eeVJZsu+tEpW+pGYnbqh9ZOEECzIFOX+OpKTGlgPVZ Z3UTHucXkl95XXQXoVwfS8YOD9qMiR8ifdH1mQipmd0azgqInQwBxStwVd0OpwXq3C6G BgAkBNPJCFNjyv/7dnXfntsUYZMBR4sdUxq3uH1sAWheMG727mPcYBIfoun/1U3D6EoQ JGU4tTg671yoOwdERFevLip7heh11USvnrNRQGK4Puls3AdfhSaWKtr6iHWvUq+U6rXD Bmmp52k74DzxKiH3ZGGYruVWs3iPbFiMBB9ov/6W2tFatuHTLuVEVmtGPg3VP3/AgKlq PSZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=ON6BvTnu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si165615ejo.665.2021.09.13.17.47.58; Mon, 13 Sep 2021 17:48:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=ON6BvTnu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346546AbhIMSKh (ORCPT + 99 others); Mon, 13 Sep 2021 14:10:37 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:60966 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346508AbhIMSKg (ORCPT ); Mon, 13 Sep 2021 14:10:36 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1631556560; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=kzM0pH05T/zXkE+vY1cg5uezgXBShFgu2/vn4EDvk6c=; b=ON6BvTnudh8Wy3UZwEphsnaOej+40aXWCEs35cyvfAgzbvLCkefFm53kb2noSRAm4+3DCET2 7OI6mW01jy2FE3Gte+kw0hj4BGJ3OfSTNBK44nZHIx8/3ucvPeMunnnju3josXQttok/UpWW Uy31Tw7VHD46inyrSEP8Ppzkg7U= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 613f93ccec62f57c9a322151 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 13 Sep 2021 18:09:16 GMT Sender: jouni=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 23987C4360D; Mon, 13 Sep 2021 18:09:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from jouni.codeaurora.org (85-76-72-211-nat.elisa-mobile.fi [85.76.72.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jouni) by smtp.codeaurora.org (Postfix) with ESMTPSA id 836B6C4338F; Mon, 13 Sep 2021 18:09:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 836B6C4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Jouni Malinen To: Kalle Valo Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, Baochen Qiang Subject: [PATCH 0/3] ath11k: Add support for sram dump Date: Mon, 13 Sep 2021 21:08:59 +0300 Message-Id: <20210913180902.193874-1-jouni@codeaurora.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Baochen Qiang On-board sram contains valuable infomation for debug, this patch adds a new interface named "sram" in debugfs with which we can dump sram content using following cmd: cat /sys/kernel/ath11k//sram > sram.dump Baochen Qiang (3): ath11k: Split PCI write/read functions ath11k: Move pdev debugfs creation ahead ath11k: Implement sram dump interface drivers/net/wireless/ath/ath11k/core.c | 31 +++++--- drivers/net/wireless/ath/ath11k/debugfs.c | 85 +++++++++++++++++++-- drivers/net/wireless/ath/ath11k/debugfs.h | 14 ++++ drivers/net/wireless/ath/ath11k/hif.h | 10 +++ drivers/net/wireless/ath/ath11k/hw.c | 10 +++ drivers/net/wireless/ath/ath11k/hw.h | 8 ++ drivers/net/wireless/ath/ath11k/pci.c | 91 ++++++++++++++++++----- 7 files changed, 214 insertions(+), 35 deletions(-) -- 2.25.1