🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16012

Re: [PATCH v2 7/9] wifi: ath12k: migrate firmware loading to qcom_mdt_pas_load() and qcom_pas_prepare_and_auth_reset()

#16012
From: Jeff Johnson
Date: Fri, 13 Nov 2026 21:54
24 lines
9397 bytes
On 11/13/2026 10:50 AM, Mukesh Ojha wrote:
> ath12k_ahb_power_up() calls qcom_mdt_load(), which bundles metadata
> initialization, memory setup, and segment loading into a single API that
> does not expose a PAS context. Later it calls qcom_pas_auth_and_reset() for
> TrustZone authentication, which is the intended behaviour. However, a new
> qcom_mdt_pas_load() has recently been introduced that works with a PAS
> context and can handle everything qcom_mdt_load() provides, along with
> additional functionality such as shmbridge creation and retrieving memory
> from the shmbridge buffer when the same remote processor needs to run while
> Linux runs at EL2.
> 
> Replace qcom_mdt_load() with qcom_pas_context_init() +
> qcom_mdt_pas_load() and replace qcom_pas_auth_and_reset() with
> qcom_pas_prepare_and_auth_reset(), using a stack-allocated struct
> qcom_pas_context in ath12k_ahb_power_up(). The non-scm_auth path
> retains qcom_mdt_load_no_init() with the caller-provided mem_region.
> 
> Apply the same pattern to ath12k_ahb_load_auth_shared_fw() for
> consistency.
> 
> Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>

Acked-by: Jeff Johnson <jjohnson@kernel.org>
Technical Details
Message-ID: <79141341-b259-433a-9656-286f5b2fb62f@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362946-linux-kernel-netdev=dewy.ru
References: <20261113185009.157893-1-mukesh.ojha@oss.qualcomm.com> <20261113185009.157893-8-mukesh.ojha@oss.qualcomm.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362946-linux-kernel-netdev=dewy.ru
From: jjohnson@kernel.org (Jeff Johnson)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v2 7/9] wifi: ath12k: migrate firmware loading to
 qcom_mdt_pas_load() and qcom_pas_prepare_and_auth_reset()
Date: Fri, 13 Nov 2026 13:54:48 -0800
Organization: Usenet Network
Message-ID: <79141341-b259-433a-9656-286f5b2fb62f@kernel.org>
References: <20261113185009.157893-1-mukesh.ojha@oss.qualcomm.com>
 <20261113185009.157893-8-mukesh.ojha@oss.qualcomm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1448998"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:MRtV3mXDijxRTAGhx41VStRGKOY= sha256:02QNEAaz18GrTBKtbz9TTA5bILWWsxZCtWfIZ1VSFOY=
	sha1:0F8x8iF+c7EvKc49bEuClHaT1ms= sha256:oKUu4gAT1zUBuGQXygqDwZh5T2U+XaJGfMAa51q7KE4=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id E3E611146AF; Sat, 14 Nov 2026 00:55:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id K34a-wNuDrG6;
	Sat, 14 Nov 2026 00:55:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-362946-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id B3BAE11460C; Sat, 14 Nov 2026 00:55:10 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 3794536BEE; Fri, 13 Nov 2026 21:55:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794606894;
	b=a4EwXVCOio9+ulie1/tZsK8Zg0Br8oJFDt7SvocRYpWuKfuZhdC73cxHnlb2HqBMRn68
	 Ty3cUzdNGiqlfnqo0FWLHhlbUQYmdtl0LjWuAKgoPIBiXLsEYJhjGN2IoDAQFBg0ORZUt
	 1eZxNePkpQkXVAv4kBdv3JpkAP9DoUK5ajzpUFGEqv5Ct53cmQ8MCpvLoeoo2htEutwtb
	 RRSoA4fOlzE4FIy8vuFmTVy3AEDDskywBOI+MG/1HXJgp363+MtYlLS0hFM6VQKU13mkI
	 ah2+sxeATRwqwvgM947Uu352zIAOoQK0DW1hrbiXuM4KDzGjJDQujnlm01QOppGvpKQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794606894;
	h=X-Original-To:Received:Received:DKIM-Signature:Message-ID:Date:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
	 Subject:To:Cc:References:From:Content-Language:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=YxYvxkiTr3I4fwI/607mbu2WA82tAeXABlzoiYL5+2M=;
	b=qX+kC8cJlPcXzHD2eeGgLuZbKsgzBjMR7TGqTwq5LdzRER0YIozfhR+mTf/FRkKPP96E
	 Nle+bYN1CxtuxziK5fEm84Wd5jceJLNjL6nyCRevQllMzEsgLeMeud0gqYOF2iGaCkfwu
	 21u7CPi2TzVljpJAbuwnbDuC9Du/RQEiJimqpfTOrI2AGl1K2sK1706CoYqItWQKEweLi
	 +HzRRyxtx///LnyNohAxHc1MbciQ/UwBAXR5dt+ddWizuMu0AZOQJ9e3fjgtIdnW8zxvP
	 blhQdB/NjRlGS9j3JwI/H1xNva8a/LZJx2Kf8cWePpxvLffSZUCr5p1G6TuVz8YGiAA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KIw4RN+w;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 78FCC606A897;
	Fri, 13 Nov 2026 21:54:54 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KIw4RN+w
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794606893;
	b=OrEWXOp6zoUteYnPoF4gm8Iqn94TzLjq1SKqlK+XJzrq3Uh4WecBT1M1FXtF7YMk7+sg
	 Mw4X76oV5EHaz1ORswN1Eii4VuqPjLFiQwkIbUW3E/C8NhI6ISCOt4NGRn2jmSY8qsIlo
	 M8ka/S1E+t2xogFfH8cTrgnaXIoHBF655dTi/qVuN2Z82+pb6N+LYSFIL7OKdETHB47MZ
	 adAF+lpZLqbnx6NsR5SYuU6yOTL4oh2iq7XkFTXQKUoM6QECp4LhtrIy28blqrNu3fo+I
	 cT+dbrZkU3M8jRig2SqVD1RRwsKFX4axXuMzedKm3z321GkM4AnYJ+NNoI5o33PVyVw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794606893;
	h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent:
	 Subject:To:Cc:References:From:Content-Language:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=YxYvxkiTr3I4fwI/607mbu2WA82tAeXABlzoiYL5+2M=;
	b=lc5XWAesgG5au7ZE2NWt54cmm8v7uIibwh71SOCzNGJdAtm/0nTaF600RjcC723ZckBK
	 fEvvym7loZN/cftf/8gPjeCH8iRyDEHs5Fd53Sx3aPmJdbs1p9MQxz4nQHsXy/d2V5cy3
	 4bDyLLJw40dgfAHCvwOrAsvirvCzqbUVoAojkVJvoCygCs2YACPN6ZakYhOZvG3CP6SIe
	 S7xoawj9zI8sGLjGbdBp7cgfL2OCTPEw0DKtQyhaKLM9TIn2YNkiDY3M+1GpS6bt3Y/ZP
	 UhfyodFdI5WmfpSwqrU8IhQm8aCfelRAO3MPPUWcl672v9/rwMZ9R10wVYtWM+TNYpg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KIw4RN+w;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94051606A333;
	Fri, 13 Nov 2026 21:54:53 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C996B1F000C4;
	Fri, 13 Nov 2026 21:54:49 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794606893;
	bh=YxYvxkiTr3I4fwI/607mbu2WA82tAeXABlzoiYL5+2M=;
	h=Date:Subject:To:Cc:References:From:In-Reply-To;
	b=KIw4RN+w49C6lIdh2OA9wim+vaxIboICMvGfKhMz3Fbixhzp9ZQgQ33Li1sLiJt/j
	 L6G84IrPlusWhqk4Z1pkyfm+Msji6bcw7r3zUW/Qbv5Fjnsf5+k2qtqDA008O0sBYG
	 yFqVz3UeDBHdT7yl7h8rbNbERlf81oKYklGGgOAyXPs+8JnuQ4zh86uNOoAS5wL5fs
	 d3O/RBaKn29it/6x/AAu1Ca7miaSMEXNRLku/CBUp0VU4BG5+GXlQ+yWOhaOPbEofy
	 tWzDV9jd/EqpIxGCh59rYUkd0dvTCRej4QyaQ8EvXwNQOaeU6irlhseg0Sb4QxKgTn
	 FSVGK5Fl0XLbA==
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: Abel Vesa <abelvesa@kernel.org>, Sean Paul <sean@poorly.run>,
 Akhil P Oommen <akhilpo@oss.qualcomm.com>,
 Abhinav Kumar <abhinav.kumar@linux.dev>,
 Jessica Zhang <jesszhan0024@gmail.com>,
 Marijn Suijten <marijn.suijten@somainline.org>,
 linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
 dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org,
 linux-media@vger.kernel.org, netdev@vger.kernel.org,
 linux-wireless@vger.kernel.org, ath12k@lists.infradead.org,
 linux-remoteproc@vger.kernel.org
X-In-Reply-To: <20261113185009.157893-8-mukesh.ojha@oss.qualcomm.com>