netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, netdev@vger.kernel.org,
	devicetree@vger.kernel.org, Simon Horman <horms@kernel.org>,
	Felix Fietkau <nbd@nbd.name>
Subject: Re: [PATCH net-next v2 2/7] net: airoha: npu: Add NPU wlan memory initialization commands
Date: Mon, 7 Jul 2025 17:06:31 +0200	[thread overview]
Message-ID: <9b5d6bcf-f071-48e9-bcb7-8f0449a3d1d4@kernel.org> (raw)
In-Reply-To: <679e6fd2-967f-4057-9ccd-92a37ecc4819@kernel.org>

On 07/07/2025 17:04, Krzysztof Kozlowski wrote:
> On 07/07/2025 09:24, Lorenzo Bianconi wrote:
>>> On Sat, Jul 05, 2025 at 11:09:46PM +0200, Lorenzo Bianconi wrote:
>>>> +
>>>>  struct airoha_npu *airoha_npu_get(struct device *dev, dma_addr_t *stats_addr)
>>>>  {
>>>>  	struct platform_device *pdev;
>>>> @@ -493,6 +573,7 @@ static int airoha_npu_probe(struct platform_device *pdev)
>>>>  	npu->ops.ppe_deinit = airoha_npu_ppe_deinit;
>>>>  	npu->ops.ppe_flush_sram_entries = airoha_npu_ppe_flush_sram_entries;
>>>>  	npu->ops.ppe_foe_commit_entry = airoha_npu_foe_commit_entry;
>>>> +	npu->ops.wlan_init_reserved_memory = airoha_npu_wlan_init_memory;
>>>
>>> I cannot find in your code single place calling this (later you add a
>>> wrapper... which is not called either).
>>>
>>> All this looks like dead code...
>>
>> As pointed out in the commit log, these callbacks will be used by MT76 driver
>> to initialize the NPU reserved memory and registers during driver probe in
>> order to initialize the WiFi offloading. Since MT76 patches are going via
>> the wireless tree, I needed to add these callbacks first.
> 
> Cover letter does not link to your NPU patchset. You cannot add dead
> code to the kernel and now it is pure dead code. Post your user - in
> this or separate patchset.
> 
> Your explanation of dependency is also confusing. If these are added to
> wireless tree (considering last experience how they rebase and cannot

... I think I mixed, that was Bluetooth tree which had rebases and
messed cross tree, not wifi. Apologies for confusion.

> easily handle cross tree merges), how does it solve your problem? You
> will have it in one tree but not in the other, so still nothing...
> That's anyway separate problem, because main issue is you add code which
> we cannot even verify how it is being used.
> 
> So far I see ABI break, but without user cannot judge. And that's the
> hard reason this cannot be accepted.

Best regards,
Krzysztof

  reply	other threads:[~2025-07-07 15:06 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-05 21:09 [PATCH net-next v2 0/7] net: airoha: Introduce NPU callbacks for wlan offloading Lorenzo Bianconi
2025-07-05 21:09 ` [PATCH net-next v2 1/7] dt-bindings: net: airoha: npu: Add memory regions used for wlan offload Lorenzo Bianconi
2025-07-07  7:05   ` Krzysztof Kozlowski
2025-07-07  7:25     ` Lorenzo Bianconi
2025-07-05 21:09 ` [PATCH net-next v2 2/7] net: airoha: npu: Add NPU wlan memory initialization commands Lorenzo Bianconi
2025-07-07  7:09   ` Krzysztof Kozlowski
2025-07-07  7:24     ` Lorenzo Bianconi
2025-07-07 15:04       ` Krzysztof Kozlowski
2025-07-07 15:06         ` Krzysztof Kozlowski [this message]
2025-07-07 15:24         ` Lorenzo Bianconi
2025-07-08  6:26           ` Krzysztof Kozlowski
2025-07-08  7:33             ` Lorenzo Bianconi
2025-07-14  7:39               ` Krzysztof Kozlowski
2025-07-14 10:09                 ` Lorenzo Bianconi
2025-07-05 21:09 ` [PATCH net-next v2 3/7] net: airoha: npu: Add wlan_{send,get}_msg NPU callbacks Lorenzo Bianconi
2025-07-05 21:09 ` [PATCH net-next v2 4/7] net: airoha: npu: Add wlan irq management callbacks Lorenzo Bianconi
2025-07-05 21:09 ` [PATCH net-next v2 5/7] net: airoha: npu: Read NPU wlan interrupt lines from the DTS Lorenzo Bianconi
2025-07-05 21:09 ` [PATCH net-next v2 6/7] net: airoha: npu: Enable core 3 for WiFi offloading Lorenzo Bianconi
2025-07-05 21:09 ` [PATCH net-next v2 7/7] net: airoha: Add airoha_offload.h header Lorenzo Bianconi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9b5d6bcf-f071-48e9-bcb7-8f0449a3d1d4@kernel.org \
    --to=krzk@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=lorenzo@kernel.org \
    --cc=nbd@nbd.name \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).