Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1496094pxk; Fri, 4 Sep 2020 10:45:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybQ2ZWUvOjuiVPbYxA3FTS8P9WZPOjMJ6zZxVOfJBocG3ah9yBNqbK1uRlbNwSGna19bWU X-Received: by 2002:a17:906:7fcb:: with SMTP id r11mr8337327ejs.519.1599241554974; Fri, 04 Sep 2020 10:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599241554; cv=none; d=google.com; s=arc-20160816; b=n0Rr8DyhdR3Zpy179DRfet5dwhWHFtu/HwzTpmd8Ur8Bc/0LXqFCKCs11rKrV7Qy91 g45Zb/CmPTyV4SxvXw7ssu1z4Pt3DHtFcV59a8rw9qNyU3PbL19gpMiDf9Wxv541l7lC jQlnSpsuJmGT4YqNdHfd0X9szZwJFr+584n+SclH4Dq23qyKTkh8sfLjICrAbSkyeu6G 2S1hob/3Nfyvy2kZS3lEZjysiHpRRTpbkOSRX7H7pobQUN8QqLS6ZfkRVDBLYEl2QLt+ XYGAJaAicTfA6YGRAK5Fky7Eagw2AEQJe6dBGTyfRalnMjF+xaRLJCLeCriY1/BUV2r/ ci1Q== 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=Eh/FMb/mjuhbHCCYQq3Fca5mXs0vPeOHg6i73BKLz2I=; b=XB/fmMsd+oUW84BUpdiuJM4JHCj4xw5se5m60sXQfCy7Qi/f5HTKG8QPYveuBTDZvk 5D3D++fCppsWCDnhZo3dAQdTDV8PrKJsm2G2KD/bKLmaz4hzS2oIIEE6tvLV0f6OJTYK CJOnbTsfzrBwghdsdLs6qWKlsdVKi2jrZ7MJAZ62zjp4uDFab8l9THGtHi0FkWgvjhi0 4TC69YhDEqrh652KkKb31Rp2+o3oHvuewUeccZjhYV9GKrufClh+nz85CCrrb8yiWXQa XHu7/Q7PYO2fJFQ2J07HCkBd96jHxFnTNPbUWIuNJjUrXNXMB9L8YV3bYvwEjMd1f5kM neZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=M7zJxOm9; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=jzylNLxR; 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 f26si5939364ejj.250.2020.09.04.10.45.18; Fri, 04 Sep 2020 10:45:54 -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=M7zJxOm9; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=jzylNLxR; 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 S1728034AbgIDRpJ (ORCPT + 99 others); Fri, 4 Sep 2020 13:45:09 -0400 Received: from a27-21.smtp-out.us-west-2.amazonses.com ([54.240.27.21]:32864 "EHLO a27-21.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727889AbgIDRpI (ORCPT ); Fri, 4 Sep 2020 13:45:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1599241507; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID; bh=JNvCtTm12UpXi9qdc7a7XW5ziZdW3QpXVEadnjgAQLA=; b=M7zJxOm9HYae3S8pTa5HM4fDMd7eswm7F1D1M9PMT0U7giFCwMx/Ts4zd3WhTcmo pc0+HagdubdgwmmAofK7Y75sJnH1zVhhNObV0Cdi2ZYbf7c3Ey3It+LHSPeA5QpO3jl bPFu6zA7oGq+A9WEKn+6DkXgrEwD1vLclymk8b8Q= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=hsbnp7p3ensaochzwyq5wwmceodymuwv; d=amazonses.com; t=1599241507; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID:Feedback-ID; bh=JNvCtTm12UpXi9qdc7a7XW5ziZdW3QpXVEadnjgAQLA=; b=jzylNLxR+seYcxXxJU5zlsuczvXDuuD1ZUA54fhgHYrlVyxqRj6K8JnXDHF5xzE8 ftePH4e8EoV9wmD50mp8DlVPJjusaDb4/KT5+j2PV4Sy1ORclmFCGL1ZP3utHjX/Xyx 2/ue7EqXq9AEik5mUAdj7WeF4SWa4n2iP+mZbn5Q= 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=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 4 Sep 2020 17:45:07 +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> <010101745a05a2fb-24c8bde9-c898-4d53-9416-b48a764f907b-000000@us-west-2.amazonses.com> Message-ID: <010101745a38d225-f5e691d5-e7b2-4a41-8769-e5cbf1fd3bd3-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.21 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 22:27, Ben Greear wrote: > On 9/4/20 9:49 AM, akolli@codeaurora.org wrote: >> 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" > > Ok, so one 8074 firmware instance is handling multiple radios, and if > firmware crashes, then > it would take down every radio at once? > >> - 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 > > Based on my testing with debugs, whatever driver I pulled down from > the ath tree had zero > chance of working due to immediate crash. So, have you been able to > test multiple > 6390 radios yet? > I am not working on 6390. > How do I do this qrtr-lookup command? > https://github.com/andersson/qrtr, this has the tools. Also please share the dmesg | grep ath11k log with both radios. I understand its crashing, please share the ath11k boot logs. Thanks Anil