Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp666258lqb; Fri, 24 May 2024 09:27:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUU4g0muEptn0QD3/QlRRRpqB6GXYYvKukgECVdPp4/NECuOiXz+ZBmDI1KbjUfQG3oHdQ5Sevx4F2YeOr3NFPRePZfzympmKWP+fvmaA== X-Google-Smtp-Source: AGHT+IGbPK3HBNKYgxhWmZfIhd6SAaWgcrBle6ujdvDqf87KNgKjOJOzInWimPTGIs21/XCGHFx5 X-Received: by 2002:a05:6a20:2446:b0:1af:6911:7ff4 with SMTP id adf61e73a8af0-1b212cc727amr3970839637.7.1716568079665; Fri, 24 May 2024 09:27:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716568079; cv=pass; d=google.com; s=arc-20160816; b=axZa+fKZ8+byukGzDNh9WNBisoef4vqVbERQC8UYrQUyS/sKHKuqghUQK0FDsZTnbb NJub8oDMwFx5bsfMUeICD9vJZwtfMRGCdX9zE2P2o/6iZvwQoZ1x9m+qMSsh4YDZ383Y eCEC5OC70teahhgBlcz44vYsDqal4WN2P8COiMpbMtX0BcRAQfCMtYZvttC6oO/uBXE4 Jd4a55o09ErmjuNkSdqwcWdavO1jd+mjuYS3hGoeCq4If38Yhl6apP/RWIQ/MOFm/qy3 LkiWUSBmWBd+Pe0Q+eVkLPB4OdMZ5I/mdSCzVDZnGKBFsTyjpL4Alm+FXsvUWaZxekia V8vA== 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=7H2CMLcz4w0LrB0+lpDZ994mnA5ZLqOXlT9kIlNKna0=; fh=b2YQfG9PfQSUw5xMVFyESXjrM9bXk1jv/UlzGGNeVIg=; b=NW3mDVmD+vfllIjNHC8Q9s90TIaWjd3xBW12ut3MoIhKZdHBCk7HKV45Qri2g4JEvf LSsiFBR0UnequSl+IljnVkzxGEqSyfrDYCnuZpw9/4GArTUucEh5zF4d3okh2WKEYZcd OVxAjidyD6YfnA29gubsuVkOriuJ6uGJYxZ68cWC7nMHDXF7Dwvk+R45vDETxqomriIw A0BQyQeeO01Sq9D6HLGIcOu4EvgwRkRhyNHMGXoCT+tB0urhDj2jWesFv+5l5foJ7GLX jGzOpoZF4IOlr4/xCp9Ek1nJSo2wBCPZn0vH5+uHWD9pBolTv+Jr8hiLyrXAuSydQx6W J19A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="M/cFfa7y"; 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-8046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822779bd69si1574508a12.352.2024.05.24.09.27.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 09:27:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="M/cFfa7y"; 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-8046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8046-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 96C76B209D2 for ; Fri, 24 May 2024 16:27:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAAC712E1F9; Fri, 24 May 2024 16:27:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="M/cFfa7y" 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 75A60126F06 for ; Fri, 24 May 2024 16:27:52 +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=1716568073; cv=none; b=ThSSDpaFy8FhskOajbvBq96arB6vikCe9f/kpxHaMv7hDeDXAd7bt/YO4KA3BnBtIpg4HkGhitwGEq9qDNkoFAWrsjH0ad+bEHbnxTglGXYlUr3OG1QG2D+Gcz0NHa9d55QmgznNqVRDhEoYh6DiswwuhVi7QPrs4PDcAtbHVS8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716568073; c=relaxed/simple; bh=mMfmZEFKQYORJPCP1Gva0tD4/BNYWayeteSvtkEYGGA=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=D4MyL52A1j08euHqRUZ8s8GdDx+8HRX6Zd8U11OpCaDpaVv3RxD9e2HajSI0E9bHhht6PIBtVx9jxRE/AF4KrNERVJvXGcOu+WheFHAlYc9lM2lNxq6y5kXboooHIk+UgfzJ35i0WMi8t1zmtIdR+A9DfUhbP3Kh1//LYi9NDxI= 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=M/cFfa7y; 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 (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44O9Ck12012370; Fri, 24 May 2024 16:27:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 7H2CMLcz4w0LrB0+lpDZ994mnA5ZLqOXlT9kIlNKna0=; b=M/cFfa7yUClaoJC6 y1Gh8HJn+aDFmNDyo2vXSrnie+Yisud725lwXarfjg7b4sYSplF0LbcC6AFK5DKB 6JFdsrroNmzitc1dpcBXM35Bbdo5LROM4iF4P2qS3y4syUdY1jC08Pw9QnpOd6lE SN3dTD3lPlY6iZPQOpPIprPn3xftmEMVbhjsrSGXi8KhCzED5IyBNqR/hiNBUWAt 2goagYaY/vvyQY+/powLjxB7Et3166u6CM4tZdvvmiVQN1UHJ0j4vRMvUsFic2dm g8/Gq5Rv0vQLmLhc+UG9dzbgEy8rwf4RIZsmonEa2pzg9xhclXYIOxx6HQRM+UV9 +kRE2w== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yaa8htyxy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 May 2024 16:27:48 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44OGRlER012634 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 May 2024 16:27:47 GMT Received: from [10.110.127.239] (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.1544.9; Fri, 24 May 2024 09:27:46 -0700 Message-ID: <1a29a21d-fb3f-4b0b-a720-6f005608990c@quicinc.com> Date: Fri, 24 May 2024 09:27:46 -0700 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] wifi: ath12k: fix wrong definition of CE ring's base address Content-Language: en-US To: Baochen Qiang , CC: References: <20240524024021.37711-1-quic_bqiang@quicinc.com> From: Jeff Johnson In-Reply-To: <20240524024021.37711-1-quic_bqiang@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: jg7xt9BT4fife6WFyYRDBX7xgQ5avdJ8 X-Proofpoint-GUID: jg7xt9BT4fife6WFyYRDBX7xgQ5avdJ8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-24_04,2024-05-24_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 adultscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 clxscore=1015 impostorscore=0 suspectscore=0 mlxlogscore=879 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405240115 On 5/23/2024 7:40 PM, Baochen Qiang wrote: > Base address of CE ring is defined as u32, currently this works > because DMA mask configured as 32 bit: > > #define ATH12K_PCI_DMA_MASK 32 > > However this mask could be changed once firmware bugs are fixed > to fully support 36 bit DMA addressing. So to protect against any > future changes to the DMA mask, change the type of the fields that > are dependent upon it. > > This is found during code review. Compile tested only. > > Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") > Signed-off-by: Baochen Qiang Acked-by: Jeff Johnson