mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
To: Raj Kumar Bhagat <raj.bhagat@oss.qualcomm.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Jeff Johnson <jjohnson@kernel.org>
Cc: linux-wireless@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, ath12k@lists.infradead.org,
	Saravanakumar Duraisamy <quic_saradura@quicinc.com>,
	Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Subject: Re: [PATCH ath-next v5 5/6] wifi: ath12k: Add CE remap hardware parameters for IPQ5424
Date: Tue, 7 Apr 2026 21:53:29 +0530	[thread overview]
Message-ID: <1e2b396a-5722-4c28-a3fd-3195b5155959@oss.qualcomm.com> (raw)
In-Reply-To: <20260407-ath12k-ipq5424-v5-5-8e96aa660ec4@oss.qualcomm.com>



On 4/7/2026 10:56 AM, Raj Kumar Bhagat wrote:
> From: Saravanakumar Duraisamy <quic_saradura@quicinc.com>
> 
> Add CE remap hardware parameters for Ath12k AHB device IPQ5424.
> 
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1
> Tested-on: IPQ5332 hw1.0 AHB WLAN.WBE.1.6-01275-QCAHKSWPL_SILICONZ-1
> Tested-on: IPQ5424 hw1.0 AHB WLAN.WBE.1.6-01275-QCAHKSWPL_SILICONZ-1
> 
> Signed-off-by: Saravanakumar Duraisamy <quic_saradura@quicinc.com>
> Signed-off-by: Raj Kumar Bhagat <raj.bhagat@oss.qualcomm.com>
> Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
> ---
>   drivers/net/wireless/ath/ath12k/ce.h       | 13 +++++++++----
>   drivers/net/wireless/ath/ath12k/wifi7/hw.c | 22 +++++++++++++++++-----
>   2 files changed, 26 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath12k/ce.h b/drivers/net/wireless/ath/ath12k/ce.h
> index df4f2a4f8480..009cddf2d68d 100644
> --- a/drivers/net/wireless/ath/ath12k/ce.h
> +++ b/drivers/net/wireless/ath/ath12k/ce.h
> @@ -38,10 +38,15 @@
>   #define PIPEDIR_INOUT		3 /* bidirectional */
>   #define PIPEDIR_INOUT_H2H	4 /* bidirectional, host to host */
>   
> -/* CE address/mask */
> -#define CE_HOST_IE_ADDRESS	0x75804C
> -#define CE_HOST_IE_2_ADDRESS	0x758050
> -#define CE_HOST_IE_3_ADDRESS	CE_HOST_IE_ADDRESS
> +/* IPQ5332 CE address/mask */
> +#define CE_HOST_IPQ5332_IE_ADDRESS	0x75804C
> +#define CE_HOST_IPQ5332_IE_2_ADDRESS	0x758050
> +#define CE_HOST_IPQ5332_IE_3_ADDRESS	CE_HOST_IPQ5332_IE_ADDRESS
> +
> +/* IPQ5424 CE address/mask */
> +#define CE_HOST_IPQ5424_IE_ADDRESS	0x21804C
> +#define CE_HOST_IPQ5424_IE_2_ADDRESS	0x218050
> +#define CE_HOST_IPQ5424_IE_3_ADDRESS	CE_HOST_IPQ5424_IE_ADDRESS
>   
>   #define CE_HOST_IE_3_SHIFT	0xC
>   
> diff --git a/drivers/net/wireless/ath/ath12k/wifi7/hw.c b/drivers/net/wireless/ath/ath12k/wifi7/hw.c
> index 2b5d1f7e9e04..cb3185850439 100644
> --- a/drivers/net/wireless/ath/ath12k/wifi7/hw.c
> +++ b/drivers/net/wireless/ath/ath12k/wifi7/hw.c
> @@ -329,9 +329,15 @@ static const struct ath12k_hw_ring_mask ath12k_wifi7_hw_ring_mask_wcn7850 = {
>   };
>   
>   static const struct ce_ie_addr ath12k_wifi7_ce_ie_addr_ipq5332 = {
> -	.ie1_reg_addr = CE_HOST_IE_ADDRESS - HAL_IPQ5332_CE_WFSS_REG_BASE,
> -	.ie2_reg_addr = CE_HOST_IE_2_ADDRESS - HAL_IPQ5332_CE_WFSS_REG_BASE,
> -	.ie3_reg_addr = CE_HOST_IE_3_ADDRESS - HAL_IPQ5332_CE_WFSS_REG_BASE,
> +	.ie1_reg_addr = CE_HOST_IPQ5332_IE_ADDRESS - HAL_IPQ5332_CE_WFSS_REG_BASE,
> +	.ie2_reg_addr = CE_HOST_IPQ5332_IE_2_ADDRESS - HAL_IPQ5332_CE_WFSS_REG_BASE,
> +	.ie3_reg_addr = CE_HOST_IPQ5332_IE_3_ADDRESS - HAL_IPQ5332_CE_WFSS_REG_BASE,
> +};
> +
> +static const struct ce_ie_addr ath12k_wifi7_ce_ie_addr_ipq5424 = {
> +	.ie1_reg_addr = CE_HOST_IPQ5424_IE_ADDRESS - HAL_IPQ5424_CE_WFSS_REG_BASE,
> +	.ie2_reg_addr = CE_HOST_IPQ5424_IE_2_ADDRESS - HAL_IPQ5424_CE_WFSS_REG_BASE,
> +	.ie3_reg_addr = CE_HOST_IPQ5424_IE_3_ADDRESS - HAL_IPQ5424_CE_WFSS_REG_BASE,
>   };
>   
>   static const struct ce_remap ath12k_wifi7_ce_remap_ipq5332 = {
> @@ -340,6 +346,12 @@ static const struct ce_remap ath12k_wifi7_ce_remap_ipq5332 = {
>   	.cmem_offset = HAL_SEQ_WCSS_CMEM_OFFSET,
>   };
>   
> +static const struct ce_remap ath12k_wifi7_ce_remap_ipq5424 = {
> +	.base = HAL_IPQ5424_CE_WFSS_REG_BASE,
> +	.size = HAL_IPQ5424_CE_SIZE,
> +	.cmem_offset = HAL_SEQ_WCSS_CMEM_OFFSET,
> +};
> +
>   static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
>   	{
>   		.name = "qcn9274 hw1.0",
> @@ -824,8 +836,8 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
>   		.iova_mask = 0,
>   		.supports_aspm = false,
>   
> -		.ce_ie_addr = NULL,
> -		.ce_remap = NULL,
> +		.ce_ie_addr = &ath12k_wifi7_ce_ie_addr_ipq5424,
> +		.ce_remap = &ath12k_wifi7_ce_remap_ipq5424,
>   		.bdf_addr_offset = 0x940000,
>   
>   		.current_cc_support = false,
> 

Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>


  reply	other threads:[~2026-04-07 16:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-07  5:26 [PATCH ath-next v5 0/6] wifi: ath12k: Enable IPQ5424 AHB WiFi device Raj Kumar Bhagat
2026-04-07  5:26 ` [PATCH ath-next v5 1/6] dt-bindings: net: wireless: add ath12k wifi device IPQ5424 Raj Kumar Bhagat
2026-04-07  5:26 ` [PATCH ath-next v5 2/6] wifi: ath12k: Add ath12k_hw_params for IPQ5424 Raj Kumar Bhagat
2026-04-07 16:20   ` Rameshkumar Sundaram
2026-04-07  5:26 ` [PATCH ath-next v5 3/6] wifi: ath12k: add ath12k_hw_version_map entry " Raj Kumar Bhagat
2026-04-07 16:21   ` Rameshkumar Sundaram
2026-04-07  5:26 ` [PATCH ath-next v5 4/6] wifi: ath12k: add ath12k_hw_regs " Raj Kumar Bhagat
2026-04-07 16:22   ` Rameshkumar Sundaram
2026-04-07  5:26 ` [PATCH ath-next v5 5/6] wifi: ath12k: Add CE remap hardware parameters " Raj Kumar Bhagat
2026-04-07 16:23   ` Rameshkumar Sundaram [this message]
2026-04-07  5:26 ` [PATCH ath-next v5 6/6] wifi: ath12k: Enable IPQ5424 WiFi device support Raj Kumar Bhagat
2026-04-07 16:24   ` Rameshkumar Sundaram
2026-04-08  0:50 ` [PATCH ath-next v5 0/6] wifi: ath12k: Enable IPQ5424 AHB WiFi device Jeff Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1e2b396a-5722-4c28-a3fd-3195b5155959@oss.qualcomm.com \
    --to=rameshkumar.sundaram@oss.qualcomm.com \
    --cc=ath12k@lists.infradead.org \
    --cc=baochen.qiang@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jjohnson@kernel.org \
    --cc=johannes@sipsolutions.net \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=quic_saradura@quicinc.com \
    --cc=raj.bhagat@oss.qualcomm.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®