Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Aaradhana Sahu" <aaradhana.sahu@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH ath-next v2 03/17] wifi: ath12k: Add hardware parameter for QCN6432
Date: Fri, 16 Oct 2026 03:41:48 +0000	[thread overview]
Message-ID: <sashiko-outbox-173693@kernel.org> (raw)
In-Reply-To: <20261016-mpp-bringup-v2-3-f510c33bfcf5@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] wifi: ath12k: missing qmi_max_chunk_size for QCN6432 breaks memory allocation fallback
--

commit 417c2f74682574a9e982b5753b7747e20b63cda7
Author: Sowmiya Sree Elavalagan <quic_ssreeela@quicinc.com>

wifi: ath12k: Add hardware parameter for QCN6432

This commit adds hardware parameters for the QCN6432 WiFi device in the ath12k
driver. It introduces a new hardware revision definition and configures the
ath12k_hw_params structure for QCN6432 by reusing parameters from IPQ5332 and
QCN9274.

> diff --git a/drivers/net/wireless/ath/ath12k/wifi7/hw.c b/drivers/net/wireless/ath/ath12k/wifi7/hw.c
> index b1c17cc197dfd..494c7b3ae1acf 100644
> --- a/drivers/net/wireless/ath/ath12k/wifi7/hw.c
> +++ b/drivers/net/wireless/ath/ath12k/wifi7/hw.c
> @@ -906,6 +906,91 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {

[ ... ]

>  	},
> +	{
> +		.name = "qcn6432 hw1.0",
> +		.hw_rev = ATH12K_HW_QCN6432_HW10,

[Severity: Medium]
Does this struct initialization need to include .qmi_max_chunk_size?

If .qmi_max_chunk_size is not initialized, it will default to 0. During
firmware memory allocation in ath12k_qmi_alloc_chunk(), if
dma_alloc_coherent() fails, the driver falls back based on this threshold:

	if (!vaddr) {
		if (chunk->size > ab->hw_params->qmi_max_chunk_size) {
			ab->qmi.target_mem_delayed = true;
			...
			ath12k_qmi_free_target_mem_chunk(ab);
			return -EAGAIN;
		}
		...
		return -ENOMEM;
	}

Because qmi_max_chunk_size is 0, any failed chunk size will be strictly
greater than 0. Will this cause the driver to indefinitely return -EAGAIN,
asking the firmware to supply progressively smaller chunk requests, rather
than correctly terminating the failing QMI negotiation with -ENOMEM?

> +		.fw = {
> +			.dir = "QCN6432/hw1.0",
> +			.board_size = 256 * 1024,
> +			.cal_offset = 128 * 1024,

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261016-mpp-bringup-v2-0-f510c33bfcf5@oss.qualcomm.com?part=3

  reply	other threads:[~2026-10-16  3:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-16  3:21 [PATCH ath-next v2 00/17] wifi: ath12k: Add support for QCN6432 Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 01/17] dt-bindings: net: wireless: Add QCN6432 device tree binding documentation Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 02/17] wifi: ath12k: Refactor PCI operations and MSI config structure Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 03/17] wifi: ath12k: Add hardware parameter for QCN6432 Aaradhana Sahu
2026-10-16  3:41   ` sashiko-bot [this message]
2026-10-16  3:21 ` [PATCH ath-next v2 04/17] wifi: ath12k: Add hardware ring mask " Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 05/17] wifi: ath12k: add hardware registers " Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 06/17] wifi: ath12k: move multi MSI vector flag to ath12k_dev_flags Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 07/17] wifi: ath12k: Add hybrid_bus_type in ath12k_hw_params Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 08/17] wifi: ath12k: Add hif operation support for QCN6432 Aaradhana Sahu
2026-10-16  3:46   ` sashiko-bot
2026-10-16  3:21 ` [PATCH ath-next v2 09/17] wifi: ath12k: add support for unified data-region memory allocation Aaradhana Sahu
2026-10-16  3:35   ` sashiko-bot
2026-10-16  3:21 ` [PATCH ath-next v2 10/17] wifi: ath12k: move MSI config to pci.c Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 11/17] wifi: ath12k: Add platform MSI support for CE Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 12/17] wifi: ath12k: Enable MSI interrupt support for DP interrupt Aaradhana Sahu
2026-10-16  3:41   ` sashiko-bot
2026-10-16  3:21 ` [PATCH ath-next v2 13/17] wifi: ath12k: use CMEM write for PPT on hybrid bus devices Aaradhana Sahu
2026-10-16  3:41   ` sashiko-bot
2026-10-16  3:21 ` [PATCH ath-next v2 14/17] wifi: ath12k: store and use MSI data per CE and DP interrupt group for QCN6432 Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 15/17] wifi: ath12k: Derive QMI service instance ID per protection domain Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 16/17] wifi: ath12k: Resolve userPD ID per device Aaradhana Sahu
2026-10-16  3:21 ` [PATCH ath-next v2 17/17] wifi: ath12k: Add QCN6432 AHB support Aaradhana Sahu

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=sashiko-outbox-173693@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=aaradhana.sahu@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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