Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp974493lqp; Thu, 23 May 2024 05:55:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWplK+rBD8bebDVVw32U7wIL3ZXFvqzQk0l8Ej0QqVRkQ0sSPlni59o4uujOjG32mCjsCx6FCnvhwimqLnNgdUlWPYr/BlGd3LXVmYN9w== X-Google-Smtp-Source: AGHT+IEcURnqXCNMvWrY+yXcFtw38jEUEe6fARIJ6G9nQQQwf2lsPrQZOZt8kevgxFWQr7Y7leGN X-Received: by 2002:a05:6870:e40a:b0:229:f988:4305 with SMTP id 586e51a60fabf-24c68aea604mr5390796fac.10.1716468931364; Thu, 23 May 2024 05:55:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716468931; cv=pass; d=google.com; s=arc-20160816; b=pP7Hx8bT/DdblMpzaV1C0ZSWwM99eOzVLzOfDWgQcEV+FXH1eKdzz9/2Pa6fFAatc9 tFPu68NBM0nwiOtc1RlBa2pj1edw9baz/XcZphub1quJd8YcXCJCasAvEFeZGgpc6VzB +EbLSqZNNxwnt44Y0GyuzN4GaIY9lU3G8PvQkcs5kb3lyyxd/vKKGNwxSNB9NilJsdqT pbkiDIRg3ydsYbNKQPpJWH/B42Z0/+oPeamy2c1n6x8GB1+1cxWvFT479X/gKhtWJxoA 874SjDqBTtWNV553D1YmDWgdSM95X/lU5d1Wl/B1J3SoM/zGvuR/H618jgybxEn7me4W ftxg== ARC-Message-Signature: i=2; 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=NH5MqAH8ivRyv9bLoOfIcBVM00gTkUcxV9FFHpWaAt4=; fh=o7gS40PKczJXhBWvftMR7AQnBlgJSVynwAVmX1npPpg=; b=LoeLvYG6Cd/GeFAvKcEIOIr1RdkZ2kCZSEUOKhvgK+pilvNIzNZaNuMe7ebf6qkPgm 3bAXbwu+PbdvwoDtKA3PGGcOJCsnmJKfUJpnQ9EA5ZhK8y2H4QC7F9zyxmsYyygVPmGK PnPHdXECR2BH1IajPFtrssWPHtjz8oUVLWTHeIlt2hC7/7hJ3KF6CdmrHyHOwSAWJdR0 U2lAOXMo2ZVq8SiMD8C6hoMgLUAwiWsyvv5RrlhBQ8R0Z/TkUlvaguLMnhGqTYBsEdhB ABW6OBcGtFMCqHqeiQE7n3aTsJGEy241+iz51i1XKJkcrpGJJxcSgbVAnoWnS7RPQLAt VzsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tn9j6Nu5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8009-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8009-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 d75a77b69052e-43e1a3f407csi78115451cf.393.2024.05.23.05.55.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 05:55:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8009-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=Tn9j6Nu5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8009-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8009-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 079CB1C2032A for ; Thu, 23 May 2024 12:55:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2417A13BAC7; Thu, 23 May 2024 12:55:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tn9j6Nu5" 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 005B18174C for ; Thu, 23 May 2024 12:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716468928; cv=none; b=j3WY+j/Svgyg+07d1r/ZjvndOSB/sBnUMDpDPb1Psy/jr5lZlT2wTfVaSRALDiFBAEpA5h5fq4ycftivHxsR8TUW76wdmKTbxu7sIvBVzldkMnqVq7YKrhAOZkstRPdG+AbgznjL3qkbUwCzUjiIc7DwDVA0Fud9c3lnWctOx3U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716468928; c=relaxed/simple; bh=H7x7rZBnnIHpTamBE2p08RqJBe/ZOmnl1rL5sp92f+o=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=lwF4OUIVJufsroxzK1N5i66trOcfp6H3A7Ui5t/tHn1BK6I2IA312IvDOdWPlDi6Q1C6TaOQv5x042jtfYZRMoYI/JTsjdiOz/M26YU4kDgYFyMQ15hLCHYKft189Lgq5hUfz+ep67SjJJyWR8hYhw+mQtw9uvXMZTwJBUFx+KA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tn9j6Nu5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94A00C2BD10; Thu, 23 May 2024 12:55:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716468927; bh=H7x7rZBnnIHpTamBE2p08RqJBe/ZOmnl1rL5sp92f+o=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Tn9j6Nu5RWnGvfsSGyOmDKzefvjhvyHI4uqR8rZPPlogww0Ou3J9BoJqwCkAubZtW qoeummKv2LkMNhUby0fAhy9O9qziJtmB6TLxoyb6EZlgifTJI8b4XsJZ9KGVLAfHnb AoqeQmqlhs4Z2kzSa7ZsX+fdqKSeRsVw2393jszKf4GYikJYYcKB9ihK1xEtpVav6C ITEmvJF253nv5613BVt4db7s1wwYFJtjijODLZl+0ZlzM2dzlqkCsMvDckF7MchgSJ lRkAyDrcuQOVKv87fVYrNuqlgDjksNNh792c3GTt0GNVuv+bK0q5N11Zed3zs98oe7 Ofi0UsDiwZDbw== From: Kalle Valo To: Lingbo Kong Cc: Ramya Gnanasekar , , Subject: Re: [PATCH v2 3/5] wifi: ath12k: Fix Pdev id in HTT stats request for WCN7850 References: <20240510050806.514126-1-quic_rgnanase@quicinc.com> <20240510050806.514126-4-quic_rgnanase@quicinc.com> <87pltfd2bt.fsf@kernel.org> <667cea80-9b62-4ca4-9d28-c5940582832a@quicinc.com> Date: Thu, 23 May 2024 15:55:24 +0300 In-Reply-To: <667cea80-9b62-4ca4-9d28-c5940582832a@quicinc.com> (Lingbo Kong's message of "Thu, 23 May 2024 20:34:51 +0800") Message-ID: <87ed9sbscj.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 Lingbo Kong writes: >>> +struct ath12k_vif *ath12k_mac_get_vif_up(struct ath12k_base *ab) >>> +{ >>> + struct ath12k *ar; >>> + struct ath12k_pdev *pdev; >>> + struct ath12k_vif *arvif; >>> + int i; >>> + >>> + for (i = 0; i < ab->num_radios; i++) { >>> + pdev = &ab->pdevs[i]; >>> + ar = pdev->ar; >>> + list_for_each_entry(arvif, &ar->arvifs, list) { >>> + if (arvif->is_up) >>> + return arvif; >>> + } >>> + } >>> + >>> + return NULL; >>> +} >> I'm not seeing any protection here, is that on purpose? > > you means there need to add lockdep_assert_held(&ar->conf_mutex)? I mean what's the locking design here? Is it safe to concurrectly access ab->pdevs and arvif->is_up? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches