Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1914496rdb; Wed, 31 Jan 2024 13:05:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbTO57j16srNSxoBo0vLjoHF3QegtkhMwXagoE9vwwz3r1CBlpvQk5p2TJ5lEPa17xwqyO X-Received: by 2002:ac8:570f:0:b0:42b:ec9f:9e28 with SMTP id 15-20020ac8570f000000b0042bec9f9e28mr622891qtw.44.1706735123864; Wed, 31 Jan 2024 13:05:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706735123; cv=pass; d=google.com; s=arc-20160816; b=sLXs5ewR0RcW5FCm8W8icJRrVQi8UDDJ+vqwkHH46JaAmjBxujRwhyP+3CMaEq0DwU NrzTn6Kw/Nj7e5YP8HLKnWNdzzulNUKXH09bQ7DyXrIprbjhvgytajHHvESV5nwMNNsi DTqVNBZii2XV17KA0HmfaRSb9RcuCYNilIQkypG8MRlSaE7ufLoVUs7w8tG1N17ebqn0 Fj9MvqLxaFOX5/ik7ZZIFxjiC+YId4W2qgTyWlF++/PFCx4g7maj+MbxAqLs6d2/HuHF JOghf/HUEmABdszaXON37Z5yRN8/UM1CMImotol1AVhx72QWSkSKVsuG1YK8NPMNgj0w soxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=4k/u9SVUpdbuUEXcHsuiYeazu1ERi5N3vIIoVM8EDZ4=; fh=2AS3U/WfpazT2gO4TDgq25iEckfeAkt5wW4TWCXl8aw=; b=BTduelRxLB/cBkr+BejMU7a94/O3/WWBOl+ndqJUPyPV+3riwanaRZbOyR5j+g3kRq fNHkys3G8/qOD9SG5K4s6eGeisms5Qnu1qk2Poyf+OajKT5R18XoTR36waAwPXDp2Gst adG0lLnIrwmhWzH6vqKj0iSuJbytwcB02fpm5iIUX+P7NxPhdFuQAHVGUvy7cBQz3QnG TxLECmYO82EPf3kX4PM9R7jcohAZcpc2N6d47tpFCPLBj5G65fU1oEpnYR7KUPDCsvyQ N8ELt042wl3NS8Kb7UcRlu5VQQ3+Afjdl+O1gJdsNaEt7/Gf5RZDS+ZhK2gBDzcoKui/ jncA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Bb7/6lPo"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-2903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2903-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=1; AJvYcCVOI0IkvFUnRxXeBa/zrRAAHl78R87j/uHv1YkNGht7JM+DGSaTnzafH5sVu4R8xXsHNF7+t133PohnHwJUZLc/giixtmyWNe4kqxUY4A== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f17-20020ac87f11000000b0042aad436da3si6345941qtk.447.2024.01.31.13.05.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 13:05:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Bb7/6lPo"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-2903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2903-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 A45261C21734 for ; Wed, 31 Jan 2024 21:05:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C4E638DE4; Wed, 31 Jan 2024 21:05:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Bb7/6lPo" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 53F0D38DF1 for ; Wed, 31 Jan 2024 21:05:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706735112; cv=none; b=dM1R/io6ZiDoUByrfgerZu8rTiMSuL7jW/sEkOI9HCqJ04zUXg7zXzd3zDIbU5KtWYsx3W8HrEsPbgQA6zlD5Sixbf7N3sE4pbeTuzZ5jtwOEo5bpw4l0sKbg2L2SarNBlPRVCAbbV+zsoj16CaCRMY642QRviA0ETyY+eUO2ZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706735112; c=relaxed/simple; bh=WHSGIuWBjz45gAsW+nDCK/YUZOuaS2VyUKaC5u+ixIY=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Ixoevos5lJNQTguEDjOMyhGZOAhBRVNsLgW0CzOcAlm6MtGFBdcNMb6Av7QZGqsFmqYFxaWA42SArMk3/iJYzOQPYv0Wn2bbT/I9N83cR0Mn/mlRhDrT+nUCUQqgHdJAZ/43OviNumMHCCkmdTg4ZO9HdZ/Q6xlBZIgW1pRSgNw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Bb7/6lPo; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40VJVdHE003079; Wed, 31 Jan 2024 21:05:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=4k/u9SVUpdbuUEXcHsuiYeazu1ERi5N3vIIoVM8EDZ4=; b=Bb 7/6lPoKUQE16PQajPa0Tn+OTA4k5jXdb4goN9N5HpqEDPMBulwfegqlvcFkbCGBq mxu9yQk4PTYhsj3n/UNWmBlm96SOBfrFDmksngeABoRkUkZNVBUWxtmCCqWZfKEr BYAdfisXb9ChDgsptJZaTdUw/joP9IEPRxK6X1Ur4FuJ3YuH3wAkY62UGCui0GLG 2GjBhhppJzSsUhzewioM+3Z296Uop8sL0GR6HLMKfZ5LxK9nkFrqgIl/gZILm/yL /HBZ8fvxj9kBap3iisadfMyTAlqYhps0CrxBdgYXzkCPXzYo1DmRPn2aC9MrSrqj UW54l+2wkJAl6Tq0hX8g== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vygp7j7sc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jan 2024 21:05:07 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40VL5760020217 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jan 2024 21:05:07 GMT Received: from [10.110.47.232] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 31 Jan 2024 13:05:06 -0800 Message-ID: Date: Wed, 31 Jan 2024 13:05:06 -0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 02/13] wifi: ath12k: fetch correct pdev id from WMI_SERVICE_READY_EXT_EVENTID Content-Language: en-US To: Raj Kumar Bhagat , CC: , Sowmiya Sree Elavalagan References: <20240129065724.2310207-1-quic_rajkbhag@quicinc.com> <20240129065724.2310207-3-quic_rajkbhag@quicinc.com> From: Jeff Johnson In-Reply-To: <20240129065724.2310207-3-quic_rajkbhag@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: rYlbfGy_FSwOCgvwXtVfkwGnzqaRpXol X-Proofpoint-GUID: rYlbfGy_FSwOCgvwXtVfkwGnzqaRpXol X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-31_10,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 spamscore=0 mlxlogscore=513 lowpriorityscore=0 clxscore=1015 adultscore=0 mlxscore=0 suspectscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401310163 On 1/28/2024 10:57 PM, Raj Kumar Bhagat wrote: > From: Sowmiya Sree Elavalagan > > Currently while fetching for pdev id from WMI_SERVICE_READY_EXT_EVENTID > we consider 32 bit pdev_id in ath12k_wmi_caps_ext_params structure. But > Firmware sends lower 16 bit for pdev id along with higher 16 bit for > hw_link_id. Due to this wrong pdev id is fetched. This wrong pdev id > when used for WMI commands leads to Firmware crash. > > Hence fetch the correct pdev id considering only the lower 16 bits. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00188-QCAHKSWPL_SILICONZ-1 > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 > > Signed-off-by: Sowmiya Sree Elavalagan > Co-developed-by: Raj Kumar Bhagat > Signed-off-by: Raj Kumar Bhagat Acked-by: Jeff Johnson