Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9956518rwp; Thu, 20 Jul 2023 12:15:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlHD5o0+OpSnghjMm9xDDeseHC9bnxS3BUHhHYhMr1tSdnKf/RrsFot4nkmv3LYtZEibHDjW X-Received: by 2002:aa7:da8b:0:b0:51e:1656:bb24 with SMTP id q11-20020aa7da8b000000b0051e1656bb24mr5247728eds.26.1689880508132; Thu, 20 Jul 2023 12:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689880508; cv=none; d=google.com; s=arc-20160816; b=jGiSGzQX9GM7cbd8+J7SIQdWJvgfz8W+OoyACdpNUCecbOhrq6bpJbnlgznDABAcUU qxy3a+2SgllV5s7AWASpo8FV48U5lHSBjx4/3SfdVyb9QWCkJiZTfCScxEI3Smjgod5j TVLsgdo4G2R71kRytMjir88u9vfLffbYSpri5k2TfW0jkx3bvKgFrlOKlbwA9GeHWy2B UwJNsARnyhqPGTlIELBXkxv4X7ki6/NNc9YmqkfwjtfTwD8kOslMJVZ4DS1/SFDPFrnr aEt8ulxXB0WWRaPt5fx05cpXMojvfNgGbMYy5WCxAJKz20DvqBxd0z1wO7xeIApV6X6P qH/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9hwi9amcRzhIQkdwXEvb49n910XXW4BispPgXA3B7GA=; fh=E3Iarn/XsCrb/4Ra+KWAunDuTgPSal5bueh3VkdxGkI=; b=BPibw3CnOJhYQ+V0d//fewi6M/TaygFzA4v5PJ6bYet3xEoZJxW7C5MQHAIYSLAntP w0jSmlm/y5Jw9D9rxPgqCds69+3VC4ZoEZOCmYSymk9ai0kkr8ixiEKwJks4urjybQIf kfe0KSWCr9FGcEkiaaTM2YWeIdntseE2ptXi3ZzCngahrbSxc8z9m1sRGChIQfkw4Z8o SZdpIjfy4BJ7TxU9U4ivJDC0JtZi8mc6E1wWoOlyWuu94gPHyNuDW3BFSeUi2mpOeoIp WEjxX6JGEOOR6HQP2qWzUXTrTJ53USyRuPjK0o17WhuxRcSaBFOPy1TWPEgbyadEFfdA O4LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Mt1Q+iF5; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a056402088a00b00521d0dbfa04si1149448edy.686.2023.07.20.12.14.49; Thu, 20 Jul 2023 12:15:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Mt1Q+iF5; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbjGTTG5 (ORCPT + 58 others); Thu, 20 Jul 2023 15:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbjGTTG4 (ORCPT ); Thu, 20 Jul 2023 15:06:56 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD5D2270C for ; Thu, 20 Jul 2023 12:06:54 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36KERRFv016048; Thu, 20 Jul 2023 19:06:49 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=9hwi9amcRzhIQkdwXEvb49n910XXW4BispPgXA3B7GA=; b=Mt1Q+iF5Z4EyfBPT0lFkH1EwUFECkC3ISgjWizFNpdtwV+HydS48RqVm2waXhkUJDikU luYqzmaZ7mz5XL4jA7y3QK6qgha2/GFPx6NjIRWXzo1s/gV/n58CHlZ3vGVoOROZ/eol 628InASV/P8QUpxJsR24H1WKK2LEs3ia73mqY4DN1C15uLsdt0j/zt5+/sMhBftmrL0o 0sQdO6hmuD4VHHiDSg/TOBBzc8uchnzpyDoqrhbmjnzAJWCHb6Y0RWBNRQbMoB90CAkG leFxxs+0rZzGz8cYLcgWNZAtdZgD9Xeg5g5SvJarBb67xrlpVx0x0LvP2syktoQNe++n SQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ry6pv0t23-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Jul 2023 19:06:48 +0000 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 36KJ6lF7018229 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Jul 2023 19:06:47 GMT Received: from [10.227.110.203] (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.30; Thu, 20 Jul 2023 12:06:47 -0700 Message-ID: Date: Thu, 20 Jul 2023 12:06:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/3] wifi: ath12k: configure RDDM size to mhi for device recovery Content-Language: en-US To: Wen Gong , CC: References: <20230720025232.7701-1-quic_wgong@quicinc.com> <20230720025232.7701-2-quic_wgong@quicinc.com> From: Jeff Johnson In-Reply-To: <20230720025232.7701-2-quic_wgong@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] 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-GUID: rWVqxOwh7XA8FDb-rYXkUnrCjXCyAEif X-Proofpoint-ORIG-GUID: rWVqxOwh7XA8FDb-rYXkUnrCjXCyAEif X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-20_10,2023-07-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 spamscore=0 malwarescore=0 adultscore=0 mlxlogscore=999 impostorscore=0 clxscore=1011 priorityscore=1501 mlxscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307200161 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Subject nit: s/mhi/MHI On 7/19/2023 7:52 PM, Wen Gong wrote: > RDDM is RAM DUMP DUBUG module, it is used to debugging issue when firmware s/DUBUG/DEBUG/ s/debugging issue/ debug issues/ > hit error. encounters an error. > > The rddm_size is needed by firmware while MHI enter RDDM state, add it s/, add/. Add/ > to support device recovery when ath12k receive MHI_CB_EE_RDDM message. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Wen Gong > --- > drivers/net/wireless/ath/ath12k/hw.c | 3 +++ > drivers/net/wireless/ath/ath12k/hw.h | 1 + > drivers/net/wireless/ath/ath12k/mhi.c | 1 + > 3 files changed, 5 insertions(+) > > diff --git a/drivers/net/wireless/ath/ath12k/hw.c b/drivers/net/wireless/ath/ath12k/hw.c > index 5991cc91cd00..c69cfca67f7d 100644 > --- a/drivers/net/wireless/ath/ath12k/hw.c > +++ b/drivers/net/wireless/ath/ath12k/hw.c > @@ -907,6 +907,7 @@ static const struct ath12k_hw_params ath12k_hw_params[] = { > .hal_ops = &hal_qcn9274_ops, > > .qmi_cnss_feature_bitmap = BIT(CNSS_QDSS_CFG_MISS_V01), > + .rddm_size = 0, > }, > { > .name = "wcn7850 hw2.0", > @@ -964,6 +965,7 @@ static const struct ath12k_hw_params ath12k_hw_params[] = { > > .qmi_cnss_feature_bitmap = BIT(CNSS_QDSS_CFG_MISS_V01) | > BIT(CNSS_PCIE_PERST_NO_PULL_V01), > + .rddm_size = 0x780000, > }, > { > .name = "qcn9274 hw2.0", > @@ -1019,6 +1021,7 @@ static const struct ath12k_hw_params ath12k_hw_params[] = { > .hal_ops = &hal_qcn9274_ops, > > .qmi_cnss_feature_bitmap = BIT(CNSS_QDSS_CFG_MISS_V01), > + .rddm_size = 0, > }, > }; > > diff --git a/drivers/net/wireless/ath/ath12k/hw.h b/drivers/net/wireless/ath/ath12k/hw.h > index e6c4223c283c..7d82b76ad021 100644 > --- a/drivers/net/wireless/ath/ath12k/hw.h > +++ b/drivers/net/wireless/ath/ath12k/hw.h > @@ -186,6 +186,7 @@ struct ath12k_hw_params { > const struct hal_ops *hal_ops; > > u64 qmi_cnss_feature_bitmap; > + u32 rddm_size; > }; > > struct ath12k_hw_ops { > diff --git a/drivers/net/wireless/ath/ath12k/mhi.c b/drivers/net/wireless/ath/ath12k/mhi.c > index 42f1140baa4f..91b2abf6da44 100644 > --- a/drivers/net/wireless/ath/ath12k/mhi.c > +++ b/drivers/net/wireless/ath/ath12k/mhi.c > @@ -366,6 +366,7 @@ int ath12k_mhi_register(struct ath12k_pci *ab_pci) > mhi_ctrl->fw_image = ab_pci->amss_path; > mhi_ctrl->regs = ab->mem; > mhi_ctrl->reg_len = ab->mem_len; > + mhi_ctrl->rddm_size = ab->hw_params->rddm_size; > > ret = ath12k_mhi_get_msi(ab_pci); > if (ret) { actual code LGTM, subject/commit text nits can be addressed when you upstream