From: netdev-bot+sashiko@kernel.org
To: robertijtsma@gmail.com
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, elder@kernel.org,
linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 2/3] net: ipa: add IPA v4.1 register definitions
Date: Sun, 29 Nov 2026 00:43:22 +0000 [thread overview]
Message-ID: <179591300298.3135.15100657932490371907@kernel.org> (raw)
In-Reply-To: <20261125-qcom-ipa-sc8180x-v1-2-48a889acbe6b@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 1
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The new IPA v4.1 table in drivers/net/ipa/reg/ipa_reg-v4.1.c
(line 182) puts IDLE_INDICATION_CFG at 0x00000220.
- [Low] In drivers/net/ipa/reg/ipa_reg-v4.1.c, reg_ipa_tx_cfg_fmask
(lines 156-157) defines SSPND_PA_NO_START_STATE = BIT(18) and…
--
net: ipa: add IPA v4.1 register definitions
This commit adds an IPA v4.1 register table (ipa_regs_v4_1) and maps
IPA_VERSION_4_1 to gsi_regs_v4_0. This lets the Qualcomm IPA driver
drive SC8180X IPA v4.1 hardware.
> diff --git a/drivers/net/ipa/reg/ipa_reg-v4.1.c b/drivers/net/ipa/reg/ipa_reg-v4.1.c
> new file mode 100644
> index 0000000000000..75f47b2f1a474
> --- /dev/null
> +++ b/drivers/net/ipa/reg/ipa_reg-v4.1.c
> @@ -0,0 +1,475 @@
[ ... ]
> +static const u32 reg_ipa_tx_cfg_fmask[] = {
> + /* Bits 0-1 reserved */
> + [PREFETCH_ALMOST_EMPTY_SIZE_TX0] = GENMASK(5, 2),
> + [DMAW_SCND_OUTSD_PRED_THRESHOLD] = GENMASK(9, 6),
> + [DMAW_SCND_OUTSD_PRED_EN] = BIT(10),
> + [DMAW_MAX_BEATS_256_DIS] = BIT(11),
> + [PA_MASK_EN] = BIT(12),
> + [PREFETCH_ALMOST_EMPTY_SIZE_TX1] = GENMASK(16, 13),
> + /* Bit 17 reserved */
> + [SSPND_PA_NO_START_STATE] = BIT(18),
> + [SSPND_PA_NO_BQ_STATE] = BIT(19),
[Severity: Low]
This isn't a bug, but these two fields were copied from ipa_reg-v4.2.c.
The field enum in ipa_reg.h says they first appear in IPA v4.2:
drivers/net/ipa/ipa_reg.h:enum ipa_reg_ipa_tx_cfg_field_id {
...
SSPND_PA_NO_START_STATE, /* IPA v4,2+, not IPA v4.5 */
SSPND_PA_NO_BQ_STATE, /* IPA v4.2 only */
...
}
Do these bits exist on IPA v4.1? If they do, should the annotations in
ipa_reg.h be updated to include v4.1? If not, should they be dropped
from this table?
> + /* Bits 20-31 reserved */
> +};
> +
> +REG_FIELDS(IPA_TX_CFG, ipa_tx_cfg, 0x000001fc);
[ ... ]
> +static const u32 reg_idle_indication_cfg_fmask[] = {
> + [ENTER_IDLE_DEBOUNCE_THRESH] = GENMASK(15, 0),
> + [CONST_NON_IDLE_ENABLE] = BIT(16),
> + /* Bits 17-31 reserved */
> +};
> +
> +REG_FIELDS(IDLE_INDICATION_CFG, idle_indication_cfg, 0x00000220);
[Severity: Medium]
Is 0x220 the right offset for IPA v4.1? That is the IPA v3.5.1 value.
The v4.2, v4.5, v4.7, v4.9 and v4.11 tables all put
IDLE_INDICATION_CFG at 0x240:
drivers/net/ipa/reg/ipa_reg-v4.2.c:
REG_FIELDS(IDLE_INDICATION_CFG, idle_indication_cfg, 0x00000240);
Most of this file matches ipa_reg-v4.2.c. It has the v4.0+ IPA_TX_CFG
layout, STATE_AGGR_ACTIVE at 0xb4 and FILT_ROUT_HASH_FLUSH at 0x14c.
Apart from dropping FILT_ROUT_HASH_EN, this offset is the only
difference.
ipa_reg_id_valid() accepts IDLE_INDICATION_CFG for any version >= 3.5,
so this entry gets used:
ipa_config()
ipa_hardware_config()
ipa_hardware_dcd_config()
ipa_idle_indication_cfg()
iowrite32(val, ipa->reg_virt + reg_offset(reg));
ipa_hardware_dcd_deconfig() writes the same register again during
teardown.
Suppose v4.1 hardware has this register at 0x240, like v4.2 and later.
Wouldn't both writes then land on whatever register sits at 0x220? The
real IDLE_INDICATION_CFG would keep its reset value, so dynamic clock
division would never be configured.
Normal data traffic would still work in that case. Could the offset be
checked against v4.1 documentation or the downstream ipahal tables? The
later patch in this series, "net: ipa: add SC8180X (IPA v4.1)
configuration data", does not change this offset.
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261125-qcom-ipa-sc8180x-v1-0-48a889acbe6b%40gmail.com
next prev parent reply other threads:[~2026-11-29 0:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 23:01 [PATCH net-next 0/3] net: ipa: add Qualcomm SC8180X (IPA v4.1) support Robert Ijtsma via B4 Relay
2026-11-24 23:01 ` [PATCH net-next 1/3] dt-bindings: net: qcom,ipa: add qcom,sc8180x-ipa compatible Robert Ijtsma via B4 Relay
2026-11-25 7:41 ` Krzysztof Kozlowski
2026-11-24 23:01 ` [PATCH net-next 2/3] net: ipa: add IPA v4.1 register definitions Robert Ijtsma via B4 Relay
2026-11-29 0:43 ` netdev-bot+sashiko [this message]
2026-11-24 23:01 ` [PATCH net-next 3/3] net: ipa: add SC8180X (IPA v4.1) configuration data Robert Ijtsma via B4 Relay
2026-11-25 10:49 ` Konrad Dybcio
2026-11-29 0:43 ` netdev-bot+sashiko
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=179591300298.3135.15100657932490371907@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@kernel.org \
--cc=elder@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robertijtsma@gmail.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