Received: by 2002:a05:7412:9886:b0:f7:18da:975a with SMTP id ji6csp1996262rdb; Mon, 18 Dec 2023 07:18:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IETzYshE+mVb1DRWqgpir5nWPoJeAUoWJ5CeU9Wb2+nUTdIK0pz3mT/xo3KXRk7GB2igw7B X-Received: by 2002:a05:6870:d892:b0:203:8285:9b2d with SMTP id oe18-20020a056870d89200b0020382859b2dmr4025987oac.9.1702912736533; Mon, 18 Dec 2023 07:18:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702912736; cv=none; d=google.com; s=arc-20160816; b=vd+6jQai2PwSApsUbzNVIu+36KSfQZixA8RsJpQFf++jXx9pKI4KIAg/agQteB7g4y R+V/bSrHa60fV9VPyBF8hNVKBBv2wWeX8g0zcs5/LxTJKdfox/uQVqQRFOSaA78P6OW5 Ree+DVBM0c8xaZI6Q6Db6ocE5LHp7v06Tifp1Q/uwMbw7vzy345t11pROX+rsdNfvSJL 6XykCV0D/OrEDw21e3uydHIUucF8RhXb2vFuf639BcbG4MrDTBfsTgE605wB2XVI5/Pj +Hxo2q/9+5MGz5ARvN6OyZJ9cd5ztNL2rZcitnolR5azQOVf7jKWFV0JZ7PK/9PxgOut Jn7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=p9VrbZRzhLguyLhSR8fxRFuJzaXXnMe7DBCCTTR+vos=; fh=0q9+tyeH8eD/BUntBV8+DgtVKLW+5WXAW/KohY89Dcs=; b=P1cwFrgAwqQOu80oJgLk2H4KS1PvqldKieZxaANDunaqjPWnREKf93VvPYXxi2Ycwd iwVLP720cPBbTozayK02hnl2nBHwQSy/b/rRWotUyI5/OgIe56VGhyXHSxf+kcbC68Iy ww3WZgCYixOl6+GMLS4CQtZJxJgXZVDQsK2U2yF7HWfL136/ExLzZ03oYHgaUunjFVNY 3pcGV/t6zM7GHUJbClnUl/+aB3+TZNARQG8rNwLNolDt3tXQBnkO5fHq+GO9QNydpqZL 8W6f6ftW/U+U7aeTH7cJRqX6442KhLqkcafnKGgoWHw0EuzK1UPw5QrE3sBNvfQoe8Bb ChCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qsGzLhld; spf=pass (google.com: domain of linux-wireless+bounces-935-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h14-20020ac8584e000000b0042547c95362si25009723qth.531.2023.12.18.07.18.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 07:18:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-935-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qsGzLhld; spf=pass (google.com: domain of linux-wireless+bounces-935-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 18C8B1C24368 for ; Mon, 18 Dec 2023 15:18:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76672498B2; Mon, 18 Dec 2023 15:17:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qsGzLhld" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51A2815485; Mon, 18 Dec 2023 15:17:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE153C433C8; Mon, 18 Dec 2023 15:17:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702912673; bh=gdw2rG1kHMxFAFPOz78qJY9ASvmd2ILrgUQz0xLeORE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=qsGzLhldjXDOoUeKXNf619KvH5SkEYA4I+fGoUcCNWOxv3vJIetK15Ui3BnVr9wMZ qk3TzhQEXcftcZv4sXkPWxKO0PAqCo0srqyRoZ3iXVY56jfeL+Eo80+m6SXtQ+jBK5 Fy8IJ66lZwBfnXeoaNJ+14DUjs5uI5K1ZNGfuCao1I9tN6kH+08lZfSZy8aVQnTsiS XoL5mfU/MpW+kFx+Becsv72a06N92eq/iESC8IA6nsVq9Axk62nC4QgTKxzj9CqNes N3uq+ZVW8cEXxp1D3KBVHT9oNNfzYyp0bYQFMYU5EmZhNEjzGPsCbkMJonYgSDOnip 5ljboZDb0DhNw== From: Kalle Valo To: Mario Limonciello Cc: Johannes Berg , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "open list:MAC80211" , "open list:NETWORKING [GENERAL]" , open list , Jun Ma Subject: Re: [PATCH] wifi: mac80211: Use subsystem appropriate debug call References: <20231215145439.57286-1-mario.limonciello@amd.com> Date: Mon, 18 Dec 2023 17:17:49 +0200 In-Reply-To: <20231215145439.57286-1-mario.limonciello@amd.com> (Mario Limonciello's message of "Fri, 15 Dec 2023 08:54:39 -0600") Message-ID: <87frzzsfoi.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Mario Limonciello writes: > mac80211 doesn't use dev_dbg() but instead various macros from > net/mac80211/debug.h. Adjust wbrf code to use wiphy_dbg() instead. > > Cc: Jun Ma > Reported-by: kvalo@kernel.org > Closes: > https://lore.kernel.org/amd-gfx/8bd60010-7534-4c22-9337-c4219946d8d6@amd.com/T/#mfe2f29372c45130d27745912faf33d9f7ce50118 > Fixes: d34be4310cbe ("wifi: mac80211: Add support for WBRF features") > Signed-off-by: Mario Limonciello > --- > net/mac80211/wbrf.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/mac80211/wbrf.c b/net/mac80211/wbrf.c > index a05c5b971789..12c23e14f884 100644 > --- a/net/mac80211/wbrf.c > +++ b/net/mac80211/wbrf.c > @@ -23,8 +23,8 @@ void ieee80211_check_wbrf_support(struct ieee80211_local *local) > return; > > local->wbrf_supported = acpi_amd_wbrf_supported_producer(dev); > - dev_dbg(dev, "WBRF is %s supported\n", > - local->wbrf_supported ? "" : "not"); > + wiphy_dbg(wiphy, "WBRF is %s supported\n", > + local->wbrf_supported ? "" : "not"); > } This won't work, I still see the debug message: [ 333.765867] ieee80211 phy0: WBRF is not supported The issue seems to be that mac80211 defines DEBUG in net/mac80211/Makefile: ccflags-y += -DDEBUG That -DDEBUG should be cleaned up, but I think separately. It's just that I cannot come up with any good proposal, all the macros in net/mac80211/debug.h require sdata and we don't have that in this stage. Any ideas? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches