Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1892806lqe; Tue, 9 Apr 2024 03:52:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWB2ddZqylgqmAJWTQ8W9TxP8zFeziKCN1GYT9MQbv5jg/BdFRd54NJdVhwHv5cVt3A0FnkDSLiF4Pp3+vjMJzpuxQqBONk6wlypwiUSw== X-Google-Smtp-Source: AGHT+IF9RcIHEF6tDtyKUcR1nWlzsZ4dpvSrLI4QkPm/ojpJLW2AUHu+AsiD8O1rLjCmEprOEESE X-Received: by 2002:a50:9fc1:0:b0:568:a9f3:b3fb with SMTP id c59-20020a509fc1000000b00568a9f3b3fbmr7666767edf.8.1712659921099; Tue, 09 Apr 2024 03:52:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712659921; cv=pass; d=google.com; s=arc-20160816; b=r7Mt7EYD1gB//atEySnpHtcB0igZnlJopW07qhDsX1gEtlARikWnEXsbp83F/ZYtdZ MIBaSrjMU7su/77zO5VpyFtp+VxLPOPMEo+EweqH6jQp9wcIl0kGPkAKn5tmv8ib0m55 1CuO8ZDzGPb9RFk3/Ujw2+pidpyiABSMxrtuH/+los8duNj+Ht64UQ5tB5/+85UvWWc0 NJRSahhAsDK6uPFUpigOHuDk/B7G1A1jc1ScWxKayiTieU8xest6HqVMtMjzXnC+1txj y7BX0DqAXLu85PHxA3YlcIUCDaN2A/ulUbVYfIScZLV3kAacigbr74STKK2q5s20WHTS AiOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=D18zsKfXH63dj1S3Q8K0FBC8WrKFJn4nZwjzqAFKe8U=; fh=gJq4hgAdlJ636/z+QDDRfIYlSnlmUPjllneu0ZYtxkw=; b=ArjEWtDwRK7BiG+80sRYnP8htpyMlbRQAsxqUozjUv6pKwlp6LSEZtNLcoluMF+wPB TALNJB25r2ZHNNSCrdHnQ1h77lFAMcyEAtHq4HzrorgiHuZopQD8+ygEo4mUgwBdqPoG 5hlI4Coe5TH7ke5NnECkV0cUON4U64lVrBVmM0jYWn/7cN+vb5V39QamMsebOkh0UV4W TMxR8lYHG5OlVTU+xhyvXZ0hhIiU8QKl7XSfrbyqsnFqAVeuPYN9Mps17MKHuovsRUVW GkMoMdwQEOwisSQwbibl6TYCaKd/ueUG7wbd1Ad78KZeEZrzl+f8jCtjIusm8RkmxLsE gWgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-6001-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6001-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i13-20020a05640242cd00b0056c1ac93013si4590903edc.54.2024.04.09.03.52.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 03:52:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6001-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-6001-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6001-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id CF5411F24EFF for ; Tue, 9 Apr 2024 10:52:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 493B981751; Tue, 9 Apr 2024 10:51:56 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FF541EB46; Tue, 9 Apr 2024 10:51:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712659916; cv=none; b=fAnRa79gXvOiXyWhkvXGZW+OxrS+6YCnsl5mLKD+7MVDHA+b0jRXd/cmiUToO4QIKtAgDwngSvRS11lojzUVZdtCGCpR2U4hXW2p8r4+iCjsUf7abgxGyRyk+C8bnAOr0iWfktjAFwHM0glN3F0NElYO8hiRbdlCD3FHDBgc35M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712659916; c=relaxed/simple; bh=J6BA9/3XJpuAa/jgWFFMWWa01R4APTaJ4ZKMe05arAI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gs1KuuOF3G09s6CpivmDJcs/7NPsS8Eb7H7/lnYdlUOPRJ0xRxk4EUeaXvIuTQnVumwL4y36xLzV5xcHTmyfLe2IdmbPCevPCe2twWHmVgnUjsbEEr5u5lrsBGEr2sf68ADAcLJ1nJz/pTAS6V3+jYp3+C+moTTrIU0cPGQbEz4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-56e6f4ee104so1179839a12.2; Tue, 09 Apr 2024 03:51:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712659913; x=1713264713; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=D18zsKfXH63dj1S3Q8K0FBC8WrKFJn4nZwjzqAFKe8U=; b=liy3PnNhLS9A4HDA0ODcwn3CcGxjBQa/TfJyoVTbtBiGLgN5xqLdq86IpzGVB7TNeS YqZ7Ikg5X1N7zvt8FOJjnKY4fcmCXo/sjBD22bBDNECodv5DGL01Eh2EeXqgFx/pLaIB nhuC5Sj0Wci1C8SgFmwd+N0zwIqvo7NTg6Yq7GP839eFjomLPV9eWdz3aXmN4prb+SlU w6UXmgTR4+35fF3woG+pVZHf8VrCx0i7F8YPzuZVBiVv9tBzsnwq1d+Q/ZhsML0tjPqC cO5xVndgLTi5LGyY04LikSg1KlO58sHKGCwP9hvboBg2HoW27lA2AWJTbGlwz0J6uMhZ SZpw== X-Forwarded-Encrypted: i=1; AJvYcCUFrxjT1s3X1z8uk/LRtT9H31pKDzFwWY1euLXuFbzfvsCjwjwZRLw4MK8t2ZXGZXomwg5FeVSJ1mDcjLUUI6RXE38TZ5clG3C8dqn3urN76Ght639G+fprsVwoxgY5YvYGQS0IK+E0EaXHy4zqgkre3tOaYxpo9K50zLN+2TtbFWJlS6c= X-Gm-Message-State: AOJu0YxpPvjPjfuZ/wMDxFqdYVrnDUiiAlj0S3t75dBQd0HKts8ThYGT mGmqMtRHH2jz5Qj530KJ2RPZFJ3dULzCTKPPPPc8JuvOi2m2qgom X-Received: by 2002:a50:ab5a:0:b0:56e:2d0c:6ed6 with SMTP id t26-20020a50ab5a000000b0056e2d0c6ed6mr6313316edc.41.1712659912586; Tue, 09 Apr 2024 03:51:52 -0700 (PDT) Received: from gmail.com (fwdproxy-lla-007.fbsv.net. [2a03:2880:30ff:7::face:b00c]) by smtp.gmail.com with ESMTPSA id ij6-20020a056402158600b0056ddd9427d2sm5179868edb.58.2024.04.09.03.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 03:51:52 -0700 (PDT) Date: Tue, 9 Apr 2024 03:51:50 -0700 From: Breno Leitao To: Kalle Valo Cc: kuba@kernel.org, ath11k@lists.infradead.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, imitsyanko@quantenna.com, geomatsi@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 0/3] wifi: Un-embed ath10k and ath11k dummy netdev Message-ID: References: <20240405122123.4156104-1-leitao@debian.org> <87y19r264m.fsf@kernel.org> <87pluz24ap.fsf@kernel.org> <87edbe26qe.fsf@kernel.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87edbe26qe.fsf@kernel.org> On Tue, Apr 09, 2024 at 01:03:21PM +0300, Kalle Valo wrote: > Breno Leitao writes: > > >> > Reading the issue, I am afraid that freeing netdev explicitly > >> > (free_netdev()) might not be the best approach at the exit path. > >> > > >> > I would like to try to leverage the ->needs_free_netdev netdev > >> > mechanism to do the clean-up, if that makes sense. I've updated the > >> > ath11k patch, and I am curious if that is what we want. > >> > > >> > Would you mind testing a net patch I have, please? > >> > > >> > https://github.com/leitao/linux/tree/wireless-dummy_v2 > >> > >> I tested this again with my WCN6855 hw2.0 x86 test box on this commit: > >> > >> a87674ac820e wifi: ath11k: allocate dummy net_device dynamically > >> > >> It passes my tests and doesn't crash, but I see this kmemleak warning a > >> lot: > > > > Thanks Kalle, that was helpful. The device is not being clean-up > > automatically. > > > > Chatting with Jakub, he suggested coming back to the original approach, > > but, adding a additional patch, at the free_netdev(). > > > > Would you mind running another test, please? > > > > https://github.com/leitao/linux/tree/wireless-dummy_v3 > > > > The branch above is basically the original branch (as in this patch > > series), with this additional patch: > > > > Author: Breno Leitao > > Date: Mon Apr 8 11:37:32 2024 -0700 > > > > net: free_netdev: exit earlier if dummy > > I tested with the same ath11k hardware and this one passes all my > (simple) ath11k tests, no issues found. I used this commit: > > 1c10aebaa8ce net: free_netdev: exit earlier if dummy Thank you so much for the test. I will respin a v2 of this patchset with the additional patch included.