Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10226575rwd; Wed, 21 Jun 2023 19:01:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5qIrQWCz/3MhTYAclUfIgEHXwI/9/dVD+vU05sqWT4YtaxIPGRxCMkLhWdEJV7MdVEr+KO X-Received: by 2002:a05:6a20:3942:b0:104:b7b4:e044 with SMTP id r2-20020a056a20394200b00104b7b4e044mr20864716pzg.48.1687399313559; Wed, 21 Jun 2023 19:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687399313; cv=none; d=google.com; s=arc-20160816; b=k1W4eEhZQYW5BBk97V6+M/OwIXn3NOrd5AnBLKahkc6zsgqRV/oCazcDU2hwzxEDkg /yQxHv1gjwJIISgkLq8Kl9B6f4grWg3RkUD1LhmOqiFj+cbt4h0AYcCFYc3gxYzpgHzV FLjy7ZF3NxcZfwb+YZKPvwwZzzoh+K6akv96trxznlQL9NMg2TMhDIAtkWgCAWPY8ko5 1J+qhaG9YDPYFcW0W8dAglMka+ohhvyb8c40psG8EgjE5NUgkgW9mHRjUq8x1FOUouPm Fm62CHKtmo4WT+p+sMjZqlOli7xMz4uuqJfVA6Xxlhsn3k+ierERfRcKX/RCjZ1vRLU0 bxCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jud17jsE6/Ga7sy3GJjdnGlQV0t2HqzZZz3k4YHmE2g=; b=y39TGtcvO2Icg6vqtK1szV1fr8kPCB5pJaySjF7dDQr33afrLOgE9zGx/1coubVeGI iqXqHNWxEYKzE3IIAOW7sWhHwx40FjFQ5ueJLluASRtgQTLDzkXfzrVURF2HCCIMwW9V vGWk1CX3iA3brsVuhA6DKBzN+dhRgO9lYqohtt/ZCJPj3ZLHHQxq59xQJqQA2eBnkq1D zBPMV54FKLEFwSvbEiazqxndlIzAs6uWS5GcLseuHcwNOHlqx7zGGE211Cv09xkd5h6C v0gJ+RivWUCswZe4+VeR60AnGVdcAPrzFdIxAC9V/gWmWB9vTV1rzfhJ3RCJ1ktMD40X UzBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ayqSlR67; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a621d13000000b00667593df948si4861104pfd.375.2023.06.21.19.01.46; Wed, 21 Jun 2023 19:01:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ayqSlR67; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229876AbjFVB4T (ORCPT + 60 others); Wed, 21 Jun 2023 21:56:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbjFVB4R (ORCPT ); Wed, 21 Jun 2023 21:56:17 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CAF6198B; Wed, 21 Jun 2023 18:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=jud17jsE6/Ga7sy3GJjdnGlQV0t2HqzZZz3k4YHmE2g=; b=ayqSlR67thHwZ0kw7SsHI3F6g7 EcxdtI+VOuNJ0gTuuJdzuu+TpJgXdYK7F5emB9hEEHX6C/vRoAAYwx+HCRSpRyCSg0XNczaXUsqvw 599/kdU8oZtE9n1qgXxmG8P60EugjCXR48EDDHODdOzcl3S5HhJkjJnwq13+lR9n2S08=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qC9Xh-00HDK4-HB; Thu, 22 Jun 2023 03:55:25 +0200 Date: Thu, 22 Jun 2023 03:55:25 +0200 From: Andrew Lunn To: Johannes Berg Cc: "Limonciello, Mario" , Evan Quan , rafael@kernel.org, lenb@kernel.org, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, mdaenzer@redhat.com, maarten.lankhorst@linux.intel.com, tzimmermann@suse.de, hdegoede@redhat.com, jingyuwang_vip@163.com, lijo.lazar@amd.com, jim.cromie@gmail.com, bellosilicio@gmail.com, andrealmeid@igalia.com, trix@redhat.com, jsg@jsg.id.au, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH V4 1/8] drivers/acpi: Add support for Wifi band RF mitigations Message-ID: References: <216f3c5aa1299100a0009ddf4e95b019855a32be.camel@sipsolutions.net> <36902dda-9e51-41b3-b5fc-c641edf6f1fb@lunn.ch> <33d80292-e639-91d0-4d0f-3ed973f89e14@amd.com> <9159c3a5-390f-4403-854d-9b5e87b58d8c@lunn.ch> <8d3340de-34f6-47ad-8024-f6f5ecd9c4bb@lunn.ch> <07ad6860-8ffb-cc6c-a8e5-e8dc4db4e87a@amd.com> <08dd8d17-6825-4e53-8441-85c709326f48@lunn.ch> <3e337dc0482e16e2aaa4090b613dc8dea7803fa8.camel@sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e337dc0482e16e2aaa4090b613dc8dea7803fa8.camel@sipsolutions.net> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > Honestly I'm not sure though we need this complexity right now? I mean, > it'd be really easy to replace the calls in mac80211 with some other > more generalised calls in the future? > > You need some really deep platform/hardware level knowledge and > involvement to do this, so I don't think it's something that someone > will come up with very easily for a DT-based platform... What is this API about? It is a struct device says, i'm badly designed and make a mess of the following frequency bands. Optionally, if you ask me nicely, i might be able to tweak what i'm doing to avoid interfering with you. And it is about a struct device say, i'm using this particular frequency. If you can reduce the noise you make, i would be thankful. The one generating the noise could be anything. The PWM driving my laptop display back light?, What is being interfered with? The 3.5mm audio jack? How much deep system knowledge is needed to call pwm_set_state() to move the base frequency up above 20Khz so only my dog will hear it? But at the cost of a loss of efficiency and my battery going flatter faster? Is the DDR memory really the only badly designed component, when you think of the range of systems Linux is used on from PHC to tiny embedded systems? Ideally we want any sort of receiver with a low noise amplifier to just unconditionally use this API to let rest of the system know about it. And ideally we want anything which is a source of noise to declare itself. What happens after that should be up to the struct device causing the interference. Mario did say: The way that WBRF has been architected, it's intended to be able to scale to any type of device pair that has harmonic issues. Andrew