From: Alex Elder <elder@linaro.org>
To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com
Cc: caleb.connolly@linaro.org, mka@chromium.org,
evgreen@chromium.org, andersson@kernel.org,
quic_cpratapa@quicinc.com, quic_avuyyuru@quicinc.com,
quic_jponduru@quicinc.com, quic_subashab@quicinc.com,
elder@kernel.org, netdev@vger.kernel.org,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net v2 3/4] net: ipa: kill FILT_ROUT_CACHE_CFG IPA register
Date: Wed, 15 Mar 2023 16:19:35 -0500 [thread overview]
Message-ID: <6f7fa54c-6743-509b-a5d2-2d70ffb8c0e2@linaro.org> (raw)
In-Reply-To: <20230315193552.1646892-4-elder@linaro.org>
On 3/15/23 2:35 PM, Alex Elder wrote:
> A recent commit defined a few IPA registers used for IPA v5.0+.
> One of those was a mistake. Although the filter and router caches
> get *flushed* using a single register, they use distinct registers
> (ENDP_FILTER_CACHE_CFG and ENDP_ROUTER_CACHE_CFG) for configuration.
>
> And although there *exists* a FILT_ROUT_CACHE_CFG register, it is
> not needed in upstream code. So get rid of definitions related to
> FILT_ROUT_CACHE_CFG, because they are not needed.
>
> Fixes: de101ca79f97 ("net: ipa: define IPA v5.0+ registers")'
AGAIN! This is a bad commit ID. It should be 8ba59716d16a.
I've got a new series ready to go but I'll wait until
tomorrow to post it.
Sorry for the noise.
-Alex
> Signed-off-by: Alex Elder <elder@linaro.org>
> ---
> drivers/net/ipa/ipa_reg.c | 4 ++--
> drivers/net/ipa/ipa_reg.h | 9 ---------
> 2 files changed, 2 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/net/ipa/ipa_reg.c b/drivers/net/ipa/ipa_reg.c
> index 735fa65916097..463a31dfa9f47 100644
> --- a/drivers/net/ipa/ipa_reg.c
> +++ b/drivers/net/ipa/ipa_reg.c
> @@ -39,7 +39,8 @@ static bool ipa_reg_id_valid(struct ipa *ipa, enum ipa_reg_id reg_id)
> return version <= IPA_VERSION_3_1;
>
> case ENDP_FILTER_ROUTER_HSH_CFG:
> - return version != IPA_VERSION_4_2;
> + return version < IPA_VERSION_5_0 &&
> + version != IPA_VERSION_4_2;
>
> case IRQ_SUSPEND_EN:
> case IRQ_SUSPEND_CLR:
> @@ -52,7 +53,6 @@ static bool ipa_reg_id_valid(struct ipa *ipa, enum ipa_reg_id reg_id)
> case QSB_MAX_WRITES:
> case QSB_MAX_READS:
> case FILT_ROUT_HASH_EN:
> - case FILT_ROUT_CACHE_CFG:
> case FILT_ROUT_HASH_FLUSH:
> case FILT_ROUT_CACHE_FLUSH:
> case STATE_AGGR_ACTIVE:
> diff --git a/drivers/net/ipa/ipa_reg.h b/drivers/net/ipa/ipa_reg.h
> index 28aa1351dd488..ff2be8be0f683 100644
> --- a/drivers/net/ipa/ipa_reg.h
> +++ b/drivers/net/ipa/ipa_reg.h
> @@ -61,7 +61,6 @@ enum ipa_reg_id {
> QSB_MAX_WRITES,
> QSB_MAX_READS,
> FILT_ROUT_HASH_EN, /* Not IPA v5.0+ */
> - FILT_ROUT_CACHE_CFG, /* IPA v5.0+ */
> FILT_ROUT_HASH_FLUSH, /* Not IPA v5.0+ */
> FILT_ROUT_CACHE_FLUSH, /* IPA v5.0+ */
> STATE_AGGR_ACTIVE,
> @@ -206,14 +205,6 @@ enum ipa_reg_qsb_max_reads_field_id {
> GEN_QMB_1_MAX_READS_BEATS, /* IPA v4.0+ */
> };
>
> -/* FILT_ROUT_CACHE_CFG register */
> -enum ipa_reg_filt_rout_cache_cfg_field_id {
> - ROUTER_CACHE_EN,
> - FILTER_CACHE_EN,
> - LOW_PRI_HASH_HIT_DISABLE,
> - LRU_EVICTION_THRESHOLD,
> -};
> -
> /* FILT_ROUT_HASH_EN and FILT_ROUT_HASH_FLUSH registers */
> enum ipa_reg_filt_rout_hash_field_id {
> IPV6_ROUTER_HASH,
next prev parent reply other threads:[~2023-03-15 21:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-15 19:35 [PATCH net v2 0/4] net: ipa: minor bug fixes Alex Elder
2023-03-15 19:35 ` [PATCH net v2 1/4] net: ipa: reg: include <linux/bug.h> Alex Elder
2023-03-15 19:35 ` [PATCH net v2 2/4] net: ipa: add two missing declarations Alex Elder
2023-03-15 19:35 ` [PATCH net v2 3/4] net: ipa: kill FILT_ROUT_CACHE_CFG IPA register Alex Elder
2023-03-15 21:19 ` Alex Elder [this message]
2023-03-15 19:35 ` [PATCH net v2 4/4] net: ipa: fix some register validity checks Alex Elder
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=6f7fa54c-6743-509b-a5d2-2d70ffb8c0e2@linaro.org \
--to=elder@linaro.org \
--cc=andersson@kernel.org \
--cc=caleb.connolly@linaro.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=elder@kernel.org \
--cc=evgreen@chromium.org \
--cc=kuba@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mka@chromium.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=quic_avuyyuru@quicinc.com \
--cc=quic_cpratapa@quicinc.com \
--cc=quic_jponduru@quicinc.com \
--cc=quic_subashab@quicinc.com \
/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