netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Louis Peens <louis.peens@corigine.com>
To: Simon Horman <horms@kernel.org>
Cc: David Miller <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	James Hershaw <james.hershaw@corigine.com>,
	Daniel Basilio <daniel.basilio@corigine.com>,
	netdev@vger.kernel.org, stable@vger.kernel.org,
	oss-drivers@corigine.com
Subject: Re: [PATCH net 1/3] nfp: use correct macro for LengthSelect in BAR config
Date: Mon, 5 Feb 2024 16:22:31 +0200	[thread overview]
Message-ID: <ZcDvJ8fLWw7DCGZv@LouisNoVo> (raw)
In-Reply-To: <20240205133545.GL960600@kernel.org>

On Mon, Feb 05, 2024 at 01:35:45PM +0000, Simon Horman wrote:
> On Fri, Feb 02, 2024 at 01:37:17PM +0200, Louis Peens wrote:
> > From: Daniel Basilio <daniel.basilio@corigine.com>
> > 
> > The 1st and 2nd expansion BAR configuration registers are configured,
> > when the driver starts up, in variables 'barcfg_msix_general' and
> > 'barcfg_msix_xpb', respectively. The 'LengthSelect' field is ORed in
> > from bit 0, which is incorrect. The 'LengthSelect' field should
> > start from bit 27.
> > 
> > This has largely gone un-noticed because
> > NFP_PCIE_BAR_PCIE2CPP_LengthSelect_32BIT happens to be 0.
> > 
> > Fixes: 4cb584e0ee7d ("nfp: add CPP access core")
> > Cc: stable@vger.kernel.org # 4.11+
> > Signed-off-by: Daniel Basilio <daniel.basilio@corigine.com>
> > Signed-off-by: Louis Peens <louis.peens@corigine.com>
> 
> Hi Daniel and Louis,
> 
> If I'm reading this right then this is a code-correctness issue
> and there is no runtime effect (because 0 is 0 regardless of shifting and
> masking).
You are reading this correctly yes.
> 
> If so, I'd suggest that this is net-next material.
> And, in turn, if so the Fixes tag should be dropped.
Thanks Simon. I was definitely flip-flopping on which tree to pick when
preparing this, if not already merged I would have gladly dropped it
from this net series. Thinking of it in terms of runtime effect is
probably a useful angle, will try and do this more when picking a tree.

  reply	other threads:[~2024-02-05 14:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-02 11:37 [PATCH net 0/3] nfp: a few simple driver fixes Louis Peens
2024-02-02 11:37 ` [PATCH net 1/3] nfp: use correct macro for LengthSelect in BAR config Louis Peens
2024-02-05 13:35   ` Simon Horman
2024-02-05 14:22     ` Louis Peens [this message]
2024-02-02 11:37 ` [PATCH net 2/3] nfp: flower: prevent re-adding mac index for bonded port Louis Peens
2024-02-05 13:32   ` Simon Horman
2024-02-05 14:15     ` Louis Peens
2024-02-05 17:58       ` Simon Horman
2024-02-02 11:37 ` [PATCH net 3/3] nfp: enable NETDEV_XDP_ACT_REDIRECT feature flag Louis Peens
2024-02-05 13:37   ` Simon Horman
2024-02-05 11:20 ` [PATCH net 0/3] nfp: a few simple driver fixes patchwork-bot+netdevbpf

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=ZcDvJ8fLWw7DCGZv@LouisNoVo \
    --to=louis.peens@corigine.com \
    --cc=daniel.basilio@corigine.com \
    --cc=davem@davemloft.net \
    --cc=horms@kernel.org \
    --cc=james.hershaw@corigine.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oss-drivers@corigine.com \
    --cc=pabeni@redhat.com \
    --cc=stable@vger.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;
as well as URLs for NNTP newsgroup(s).