From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 AD2C349D581 for ; Thu, 8 Oct 2026 10:25:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791455126; cv=none; b=WWKvux2OkfTgNAWtK5tyYJGcAWih+j8PXI3itL3iRsPSAtbasa9aSyyocK8UZdddNFo2MAIXeBg86sixXfcfsHjtK0xxj5rcjqYUSVpdUEsCHm9SpY/BnRWCezBuOunTfBTLM4w2DBpBbKeUiJpdsJcqkXRWThFDFJK7VQrU+Kc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791455126; c=relaxed/simple; bh=/mQaQzEbMO9VUMkth+p0PJ6HTf8GgML61Zf2gvxD1qM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ojpkaQMZwJxqpUu5HJTIIsUlkMytcjlejMGmDcnO9DXHGECs50uFmr3E5Y60kVfwD4K2/bu4a9urdO4PhbYBwtbrV4JXnxbpGstVQ/wp68Hz/bSTdJhgrJsAFaPGbej8oGavizs7ZE33uk18FItu6LIZSpJqMtGRtDBssMX3+Kw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=NEKK2MXK; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Lf6685hC; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="NEKK2MXK"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Lf6685hC" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6987L37i2067981 for ; Thu, 8 Oct 2026 10:25:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= oQKRkceBsEcEBBuv3P9e+e6jVPpMSJdqRVHP6jxhJdI=; b=NEKK2MXKPNP8DBzo hT2ieGi76xJlW43gfDobjLYzAziL/QP4nhLoZDfrZAR/ahZBrSL7zCpOaWfTcpoB exINA/hXi8zC88U8mcCij/ZN8TTUw4kLcPcz27x26+jJMBzhi5ZUYz9x5KdWd4Ek P/oA+JZ16vR0832CZaSR1+J5GujALxpQYvt1kIGQFhAD/4jvLnXegT4zDyGL1Cn2 PQ/lTXklLCjeOVtnrDO/ksapZRBzuHky3wR+5NGkX9UAoKBBtA/Mhe5ONd6MuRot bb31IkyM4WmnXPR6uSIbbFAtTVb3bapVg2Uf42g6+SE3hZBHs3Sc5Z4V4RjBeBBQ G8CgBw== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h5xe3jejp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 08 Oct 2026 10:25:22 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2d55d8cd938so75501945ad.1 for ; Thu, 08 Oct 2026 03:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1791455121; x=1792059921; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=oQKRkceBsEcEBBuv3P9e+e6jVPpMSJdqRVHP6jxhJdI=; b=Lf6685hC8IEmWrBIpXA7alJlHQtZ7Za5+wpl9WMuHXhWi3ZEiimKap5oolpspcB1jZ N+kZ0Y2uMvfqJ3jsrcqGfQJ9ctkrcH7l+fRTNZUN8v81Ah1Xp+kTNvIFgQg3bDlmYD7w paM0WhGGqNZeT2/uZedtFWr9/GdHj2y7J0xcg4reEemT/ikMZdiwOM7+JeWIyYBDao6B 7Nk5DMbBLKOnSeQPLqRU5TsuOvJNMDLnlMpKQYTO21g82UE1g4b9DsSBM6C/P41fPFoj J3rOmztP1TaM6NM3YBStDzf4amQs0CMlV1yGh7A+4TqIzKximyhSLt4DPO3gfUGRobBX 4lmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791455121; x=1792059921; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=oQKRkceBsEcEBBuv3P9e+e6jVPpMSJdqRVHP6jxhJdI=; b=nWAQ/V0Q/X3FPZpiRI5gOmPQDWcbenGZQcVsjzdFTlh/gXROu2/frJfhjEdwxo/w8y xjIU7z+FOGqKCc3ibA3q5kYdVo+69g1b9m+bBWg9gHIytNx+2eMvdpF2ePEDcd+tIKZt 4w7/SYC1Ihk1KNWB6Wt8+hxz5B3TLSetCBBoFL8R38mTtRqA2pjAHisGoQNh8CjN8UEg 5oka+YK+G6+flxNIhKM3ijGIW+05VlDXzDpLxm+odNK9u1WnF+/+yIUGmOKP8yQeB6pG TCb4rJZ9siIYmR1jSN0QuOFVM4FTZKynCpYpSn/uL1JoK6UlZa3DQOVadv3RHWGAdhk3 6C2A== X-Forwarded-Encrypted: i=1; AKwUvBzkD014CAV13DRU3rASNGk80D8j7vFhP1Bfex0da/KP9iPhldRb1HTBP0RH8cRU8s7bWSOnM4fFkNfrR74=@vger.kernel.org X-Gm-Message-State: AFq9FYJoJp7gpCez0PrjdKCuRaq8JFfv6j071yjg08ZgXnIY0eQqeClU RUdEARTHPIwMZyeRmmDbQjX+UWQfiLKfhJs8oNTh+PccscjTEZdTeavRwrWGRAAbvyVDfKE8LsB AdFF027+zBdArnF6zijX0pnX8NjRL/6TETlQS/ft1gQ9oNC94wDWkinXYjHtBJo+a+L4= X-Gm-Gg: AYBFou3eH3OB7Y/Ioa0cTCtw6srkDMVmLQRYj466yALNnQlXPMvkYkyvhl7HIU0zOrD Nvb0YWYC9tztNWKIemDD+zfOn58fBtkLsEsDClkJmuiMcgOyByrbcRGOPYnu3Q0O1n4RRLDNTZ0 EhCKEi6184Z2PBdKn75V9dKMV8cNrP7XoAq4cxnt4YFpWwt9cfoC77Cvp65uU0rDAHUU0kXsSPq 4TmBKsmPVfHbEucC7eGuysoM7QNijLNMJv9LL1RE2hiNlSeQXkeQDLg02oloMF6CuffZYC+9wzv 96zcL42C7HMevthWOjayrUh+S3rWxyRBTI7Li8rcFzptCnWzkBsLyxYZ49K5gmZN0Z5EQkYWeTy kC7mTA6aN9XDTGjLLIcOGHqu4/jWq+INtTr2V2hECXH8eIIStqVKeknYd0OE6ECSjbxhCAxIDe6 SlQd/HXDd6gatLbOGnoHhMrA== X-Received: by 2002:a17:902:f787:b0:2e2:d83d:5004 with SMTP id d9443c01a7336-2e60057c005mr44321565ad.58.1791455121462; Thu, 08 Oct 2026 03:25:21 -0700 (PDT) X-Received: by 2002:a17:902:f787:b0:2e2:d83d:5004 with SMTP id d9443c01a7336-2e60057c005mr44321395ad.58.1791455120968; Thu, 08 Oct 2026 03:25:20 -0700 (PDT) Received: from hu-aarasahu-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e6046fe39csm22081655ad.16.2026.10.08.03.25.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2026 03:25:20 -0700 (PDT) From: Aaradhana Sahu Date: Thu, 08 Oct 2026 15:54:11 +0530 Subject: [PATCH ath-next 15/17] wifi: ath12k: Derive QMI service instance ID per protection domain Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261008-mpp_bringup-v1-15-2c5797b5e4ac@oss.qualcomm.com> References: <20261008-mpp_bringup-v1-0-2c5797b5e4ac@oss.qualcomm.com> In-Reply-To: <20261008-mpp_bringup-v1-0-2c5797b5e4ac@oss.qualcomm.com> To: Johannes Berg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeff Johnson Cc: linux-wireless@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ath12k@lists.infradead.org, Aaradhana Sahu , Sowmiya Sree Elavalagan X-Mailer: b4 0.15.2 X-Authority-Analysis: v=2.4 cv=NchzRGD4 c=1 sm=1 tr=0 ts=6ac76f92 cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=COk6AnOGAAAA:8 a=EUspDBNiAAAA:8 a=1lU9L7Y0PnsvXye6yGIA:9 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDA4MDA0MSBTYWx0ZWRfXwy13cKh+X01x aPWFGabtDpqO1I/nii0FHn1OJawGS1ojMI9c6vZagZjEoXHoa7qdNpxgMLIh3HNk4DOjL9TQMWN cNEi7e4gywSg/grwotnAFW3fHywVLaY= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDA4MDA0MSBTYWx0ZWRfX+bqO8oKcCXiu 6RdCFlQCgRTuH8hDZZKC4y/0r9RuIB9rU7cPlftywu9qSWNLkqGDRCzQHsQABa2P20t0/gbfPQA 1ver60llXTNHTvCvwg/FxYVntr+/9vkjdTyKm3H1T5DO+QJp59fc5fXoQp45fstZG1nMb6KEuPW yqVcg3iHR49K4JgXqKJU3M+b3LqCHU0B1jNbtXy+wCOgI5+3x0LkidkA0lU/fZdLlMmRwJ6XexN 8qxdraa8goqSTwJVnu8QiBXloUIlfJUFESMKKjitmRDMUlVWhuMuK573Rpi8xRdvQtoUjYoQrXB vQ+e7r7+D+VNPhIzQW1ubbLkLBG03JMOE2rRwY25wIIEyq6q31RPbBeGw0Uuc2BUCMwo2jsouLH VrYgNDPFX1qeovS5Ej9nelj7c8hxIuXOnvDbD7soN42rw6bX5Y10YLakwrguKdvHHlQYRzuNPNH rWSfGXDo4CWrIVKUBSw== X-Proofpoint-ORIG-GUID: -Wz68D9Ss8FSdoEBgI1-SRPJ4uIOtpwr X-Proofpoint-GUID: -Wz68D9Ss8FSdoEBgI1-SRPJ4uIOtpwr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-08_03,2026-10-06_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 spamscore=0 malwarescore=0 adultscore=0 lowpriorityscore=0 phishscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610020000 definitions=main-2610080041 From: Sowmiya Sree Elavalagan IPQ5332 platform variants are supporting multiple Protection Domains (PDs), each PD exposes its own instance of QMI services. The current implementation uses a fixed qmi_service_ins_id from hw_params, which results in multiple PDs sharing the same service instance ID. Update ath12k_ahb_init_qmi_ce_config() to derive the QMI service instance ID based on the user PD identifier. Offset the base qmi_service_ins_id with (userpd_id - 1) to ensure each PD gets a unique service instance. This avoids QMI service instance conflicts and enables correct operation on multi-PD targets. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1 Tested-on: IPQ5332 hw1.0 AHB WLAN.WBE.1.6-01322-QCAHKSWPL_SILICONZ-1 Tested-on: QCN6432 hw1.0 AHB WLAN.WBE.1.6-01322-QCAHKSWPL_SILICONZ-1 Signed-off-by: Sowmiya Sree Elavalagan Signed-off-by: Aaradhana Sahu --- drivers/net/wireless/ath/ath12k/ahb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath12k/ahb.c b/drivers/net/wireless/ath/ath12k/ahb.c index 892872f70b2f..3872aeeb9ba7 100644 --- a/drivers/net/wireless/ath/ath12k/ahb.c +++ b/drivers/net/wireless/ath/ath12k/ahb.c @@ -542,12 +542,14 @@ static void ath12k_ahb_power_down(struct ath12k_base *ab, bool is_suspend) static void ath12k_ahb_init_qmi_ce_config(struct ath12k_base *ab) { struct ath12k_qmi_ce_cfg *cfg = &ab->qmi.ce_cfg; + struct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab); cfg->tgt_ce_len = ab->hw_params->target_ce_count; cfg->tgt_ce = ab->hw_params->target_ce_config; cfg->svc_to_ce_map_len = ab->hw_params->svc_to_ce_map_len; cfg->svc_to_ce_map = ab->hw_params->svc_to_ce_map; - ab->qmi.service_ins_id = ab->hw_params->qmi_service_ins_id; + ab->qmi.service_ins_id = ab->hw_params->qmi_service_ins_id + + (ab_ahb->userpd_id - ATH12K_AHB_USERPD_ID_0); } static void ath12k_ahb_disable_irq(struct ath12k_base *ab) -- 2.34.1