Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1458852pxk; Fri, 4 Sep 2020 09:50:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgzvFaLNhnGUk/paXRQ5qXz+H87pCVp+dv1BTRgTHJZ/eFe8y6/GbWAINrRXwlfnjz18ac X-Received: by 2002:a17:906:8690:: with SMTP id g16mr8146658ejx.187.1599238227763; Fri, 04 Sep 2020 09:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599238227; cv=none; d=google.com; s=arc-20160816; b=AGiMPKUHO/fTGperW+InnuVgo0zNlEY6Gcg56WPv8Q9QZi2T/fMCCA2294KrrAT0zT l1oyGvNZpDNk4LuUvrHok0l15zUpUFUhbgWBJuKTse66Oxvn/QpV1lG+OfzP/U6Xy6Yw UXxjptuoLzx0TKrMUoBH0gHNsnV0rnusW3waH2nzMTFfnQjLTknS++sRhk8NfjU8oBIa /9J0hErWTrjTklf98lJgW2OTbQujUK7NtMlcyAVVQbDfYGiaDbLL/SIsdB0O6wWvAUDs zmojBKFS94vF2V+qdTiTO2jlJ26ddPhsvDC/Tqy8PazHEYnMCguh2vaxtJRK6TVv7lCz NFBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:user-agent:message-id :references:in-reply-to:subject:cc:to:from:date :content-transfer-encoding:mime-version:dkim-signature :dkim-signature; bh=2ay74K4G1hrsJTD0d03YVqfpg/vLf6YpzznKUIWdZ1E=; b=uqBNffmvhXjTjOidiGoorblLe13RellLxz+e1xySM5PbLmNMOMVEba8e1rSAkpN/oQ gLbecE3NOz1eKqM+6zNn61kxA+Qko5bmrWGHjt8Vm+/kUUbL1PUnbhN3kRPrlWC3WRy4 4jlvmcrFlxqskBvHCWn0xIH/sjx4kM4B7+SFA49HxYQmCPU3ljh3d/pByCh+xOr+C3wW s1KDnPGU1C7pgSVTjWwTxE58eFHDjTL1qfl7J8e7iS/spCRbHhNtu7h+ZW1hGrHyPLqZ lSCgJdhdQI8UKvaD88TI+KmV5jSf1LGOKj77LhCo7j19IIc+fpKejiq0QqqnEloN6I3X hSmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b="ebY/ojj2"; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=Kofc2h1p; 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 by16si4215476edb.294.2020.09.04.09.49.36; Fri, 04 Sep 2020 09:50:27 -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=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b="ebY/ojj2"; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=Kofc2h1p; 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 S1726293AbgIDQtP (ORCPT + 99 others); Fri, 4 Sep 2020 12:49:15 -0400 Received: from a27-11.smtp-out.us-west-2.amazonses.com ([54.240.27.11]:44172 "EHLO a27-11.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbgIDQtN (ORCPT ); Fri, 4 Sep 2020 12:49:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1599238153; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID; bh=oxSKItyJfJ1P/DAB3tWhLOWb6m8e47o5eHAfe1oAaBw=; b=ebY/ojj29eY1RiCT74Xb549YD4ONEtj8b8fFcXegG1OsnSltAJLnNcWXs/Nn3sgD c14DZvxFAFUOYzi2LupsM6uy96oMWNOrrHxetSVTRikgaVGW5/16WX2UjX6yS+d3pMd Tgr2pLt1iKZPd58a/Ep02aSt9u8jAvOE36xtDQ8I= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=hsbnp7p3ensaochzwyq5wwmceodymuwv; d=amazonses.com; t=1599238153; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID:Feedback-ID; bh=oxSKItyJfJ1P/DAB3tWhLOWb6m8e47o5eHAfe1oAaBw=; b=Kofc2h1p3tzOHxQDqsKi+y5uEySx/n5l76CjOLdPWDp7kF+dRpNxh9S+ZQNMFGnI IlfY0og77m1Ih8Tp8x4sfjOr01CxxQ5eruqiOL0xDO9WicxiwBcnvDFnkYUQ4wFmQ/j YdxSwsH+Pz0pQinvRhV1gSSEd3hUZzBAiZ/1wvOE= 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=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 4 Sep 2020 16:49:13 +0000 From: akolli@codeaurora.org To: Ben Greear Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-wireless-owner@vger.kernel.org Subject: Re: [PATCH] ath11k: Allow debugfs to work with 2+ radios installed. In-Reply-To: References: <20200903172359.29199-1-greearb@candelatech.com> <0101017459a1d409-4d95a8e1-d404-4fba-a25d-b2e3075947e0-000000@us-west-2.amazonses.com> Message-ID: <010101745a05a2fb-24c8bde9-c898-4d53-9416-b48a764f907b-000000@us-west-2.amazonses.com> X-Sender: akolli@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 X-SES-Outgoing: 2020.09.04-54.240.27.11 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-09-04 21:04, Ben Greear wrote: > On 9/4/20 8:00 AM, akolli@codeaurora.org wrote: >> On 2020-09-03 22:53, greearb@candelatech.com wrote: >>> From: Ben Greear >>> >>> The code is trying to create an ath11k directory on debugfs >>> root, but that fails when there is a second radio (and thus >>> second instance of the driver). >>> >> >> Hi Ben, >> >> IPQ8074 is soc and it does not need second debugfs entry, its on AHB. >> QCA6390 is a pci card and multiple debug entries are needed if >> multiple cards are available, >> I am planning to post a patch with bus specific abstraction function >> which creates single debugfs for soc based radios and multiple entries >> for PCI based radios. >> >> AHB: >> debugfs/ath11k/IPQ8074/ >> >> PCI >> debugfs/ath11k/QCA6390_0001:01:00.0/ >> debugfs/ath11k/QCA6390_0000:01:00.0/ > > I appreciate your feedback on this! > > Why not just stick with the way ath10k does, having the ath11k debugfs > entry be > under the phy debugfs directory? > > Maybe there is a high-level design document for the ath11k driver > somewhere that > explains how and why it is architected with the ath11k base object > holding multiple > phy objects? > The initial ath11k driver was supporting IPQ8074, its an SOC and has 3-radios under wifi0, - few entries in debugfs are common for SOC,all these are under debugfs/ath11k/IPQ8074/ "simulate_fw_crash" "soc_dp_stats" - few entries are per radio, these are under debugfs/ath11k/IPQ8074/mac0/ "ext_tx_stats" "ext_rx_stats" "pktlog_filter" debugfs/ath11k/IPQ8074/mac1 "ext_tx_stats" "ext_rx_stats" "pktlog_filter" debugfs/ath11k/IPQ8074/mac2 "ext_tx_stats" "ext_rx_stats" "pktlog_filter" > And, very curious to know if you are able to get multiple QCA6390 NICs > running on the > same system, I'm seeing all sort of problems including NICs not always > showing up in lspci > and such. > I am not aware of this, like to understand the output of, qrtr-lookup cmd Thanks Anil