Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3630662ybh; Tue, 17 Mar 2020 03:46:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtliasldx1Bv9ksTptTQyDRgO+SVHdJxjXMuiH11jLWq1IJ0+ChJdNKBpvZHDY66K3SNZGk X-Received: by 2002:a05:6830:1285:: with SMTP id z5mr3148387otp.241.1584442013153; Tue, 17 Mar 2020 03:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584442013; cv=none; d=google.com; s=arc-20160816; b=eXYB7rCl+2+DTLohWTjzpR2zz0B0lL0Ig2CHIAh2ML3O733nOPbTmN2CTxJzIj2C/Y vMfsdv8yHDYleSrQCVRNmrgsQS+/2n7YMPWDYLOTEXsOJ3EPG3PXkhElB1Fn+8iAXq/4 C7sNFgv6JlNmk8ODJJ5xRU4fSWsUX18/5WXQPeIduRZ1nJdCRXGtNQCbwmgvWgeepeBs hzVZJ/b+NZLbI71YBhRRSNwJJINj+pFUSZaVEdr74jfM7wnxzpfCpz50Mb8JpiRdWVpi gC/fnLlQDJ225QZ6B8YbZSzQWgxCIMSVFUhINaL8kJuPT/w5bid8WcykvlQi/wWYk9A5 xlIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vdGwLrwNJVDuHZvvQQ7o6KAi1K5yrwhUhx/4ly7EpxY=; b=yVjhw4QuXSvGC15Xv0dM/DFdoxdIPeyb0rR6bGM1oWfJBo0MhM5Ak2DX1h7Xq1cc27 IyQYYXHw8gU0w7EyUW49/4XnE5YLrZpVzCX2RrYHXUBB4Rp0vW4BfHgHDMzXBcWNFURt WHk9YxZNpogsREdJYRg5vla/z98WtOCdR2PAv5+67j292tFOrrqdHTe7syob8euiWiiM 7I4WLrLTrB9cZOM1NsR5bywrlvMKdFKSY1QvCY17BmO3eFGTJ45/J0ft38qnvqATbvIb fWlwCtqMB7DUv8Uxcg2FE/bR29RdzRC34rr7YS4f9YedK0FnK8uEh6RGOe1Cy11EcoPd /byA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=0asw0SAp; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d185si1491892oif.234.2020.03.17.03.46.36; Tue, 17 Mar 2020 03:46:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=0asw0SAp; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726084AbgCQKqd (ORCPT + 99 others); Tue, 17 Mar 2020 06:46:33 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:41350 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbgCQKqd (ORCPT ); Tue, 17 Mar 2020 06:46:33 -0400 Received: by mail-oi1-f195.google.com with SMTP id b17so6232260oic.8 for ; Tue, 17 Mar 2020 03:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vdGwLrwNJVDuHZvvQQ7o6KAi1K5yrwhUhx/4ly7EpxY=; b=0asw0SApftOnYJuL8k58n30deisQlSeUxQdW5clNZe/P+162Hv00jdRXZoO6aklAoZ 5l/kL+WPrIowMswM6L5mrJiEw9YKIEGnli0jPnEjmfSRppHzbJBRA8wpS+YCrF7JfnZo KZZpcbUUP2pHpJjRCvl33a7nwNW5w+ohhxjJV0jVwOMpNjdlMc0M0nFyA3xPpaJYeqtI FG87PM4p8bn98UZrCUNHunIvTnfM5OhwkRzX0ZahOrGjJxlPMZGzf5s/mChCGUvRW6pe Bn3565NsQq2lz4je9cRvYJ+5QVi33Sa7P0ISgWOBsHoWlL+F34NAHN8IgJweJZqR5xwA QfQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vdGwLrwNJVDuHZvvQQ7o6KAi1K5yrwhUhx/4ly7EpxY=; b=lTpMbQGj+Z8KZ/ZAoqQimF36WcI3Obn0TPkFf3oPNo/cq1smDHM3pc9vqXQoC5IrAL gd/Wk0AMNrja4eteMA2UKEDUZ8awjRC+wfOH0ZDifuuc4TMZGCUOrW5H5ZEk5gTMsb6N HSJLz9/B/XWuc6DE9VmOY1kwwxyixsqrAn9ztrcheG1Q0SNZHJ6blHi3FwHevtk4kHYJ BfYPni5+fJpjAqK7PcgnpGUf3det0E71rltNsGrZiKKj8qAIEmypYHtiRM/A3h4umvY0 Lir0uuGARyRF/8QibewhSXqBaOU76kiTZ1DpLGa7X3aPuXCE8fGgCui7w3IKlDWgBr+N W/rw== X-Gm-Message-State: ANhLgQ2YL0yGsHOl4jsjDzCDYEzFFfwcvsbuj15/idGUHYPpcrsMD/Sh CUrGsVNmltL77XKOil580N2FiraH54uYgSuBbBCBnw== X-Received: by 2002:aca:c6ca:: with SMTP id w193mr2844227oif.165.1584441991996; Tue, 17 Mar 2020 03:46:31 -0700 (PDT) MIME-Version: 1.0 References: <20200313033008.20070-1-yhchuang@realtek.com> <20200313033008.20070-2-yhchuang@realtek.com> In-Reply-To: <20200313033008.20070-2-yhchuang@realtek.com> From: Chris Chiu Date: Tue, 17 Mar 2020 18:46:20 +0800 Message-ID: Subject: Re: [PATCH v3 1/2] rtw88: add a debugfs entry to dump coex's info To: Tony Chuang Cc: Kalle Valo , linux-wireless , Brian Norris , Johannes Berg , arend.vanspriel@broadcom.com, tamizhr@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Mar 13, 2020 at 11:30 AM wrote: > > From: Yan-Hsuan Chuang > > Add a new entry "coex_info" in debugfs to dump coex's states for > us to debug on coex's issues. > > The basic concept for co-existence (coex, usually for WiFi + BT) > is to decide a strategy based on the current status of WiFi and > BT. So, it means the WiFi driver requires to gather information > from BT side and choose a strategy (TDMA/table/HW settings). > > Althrough we can easily check the current status of WiFi, e.g., > from kernel log or just dump the hardware registers, it is still > very difficult for us to gather so many different types of WiFi > states (such as RFE config, antenna, channel/band, TRX, Power > save). Also we will need BT's information that is stored in > "struct rtw_coex". So it is necessary for us to have a debugfs > that can dump all of the WiFi/BT information required. > > Note that to debug on coex related issues, we usually need a > longer period of time of coex_info dump every 2 seconds (for > example, 30 secs, so we should have 15 times of coex_info's > dump). > > Signed-off-by: Yan-Hsuan Chuang > --- Reviewed-by: Chris Chiu > > v1 -> v2 > * don't ignore "ignore wlan command" > > v2 -> v3 > * use scnprintf() instead of snprintf() > * enclose debug only static functions within CONFIG_RTW88_DEBUGFS > > drivers/net/wireless/realtek/rtw88/coex.c | 492 ++++++++++++++++++ > drivers/net/wireless/realtek/rtw88/coex.h | 10 + > drivers/net/wireless/realtek/rtw88/debug.c | 17 + > drivers/net/wireless/realtek/rtw88/main.h | 18 + > drivers/net/wireless/realtek/rtw88/rtw8822b.c | 30 ++ > drivers/net/wireless/realtek/rtw88/rtw8822c.c | 28 + > 6 files changed, 595 insertions(+) > > -- > 2.17.1 >