netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: "Ertman, David M" <david.m.ertman@intel.com>
Cc: "Nikolova, Tatyana E" <tatyana.e.nikolova@intel.com>,
	"jgg@nvidia.com" <jgg@nvidia.com>,
	"leon@kernel.org" <leon@kernel.org>,
	"intel-wired-lan@lists.osuosl.org"
	<intel-wired-lan@lists.osuosl.org>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [Intel-wired-lan] [iwl-next v5 5/5] iidc/ice/irdma: Update IDC to support multiple consumers
Date: Wed, 23 Apr 2025 17:14:25 +0100	[thread overview]
Message-ID: <20250423161425.GA2843373@horms.kernel.org> (raw)
In-Reply-To: <IA1PR11MB6194FD66BA60E12D6430DF22DDBF2@IA1PR11MB6194.namprd11.prod.outlook.com>

On Fri, Apr 18, 2025 at 05:14:24PM +0000, Ertman, David M wrote:
> > -----Original Message-----
> > From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
> > Simon Horman
> > Sent: Thursday, April 17, 2025 4:22 AM
> > To: Nikolova, Tatyana E <tatyana.e.nikolova@intel.com>
> > Cc: jgg@nvidia.com; leon@kernel.org; intel-wired-lan@lists.osuosl.org; linux-
> > rdma@vger.kernel.org; netdev@vger.kernel.org
> > Subject: Re: [Intel-wired-lan] [iwl-next v5 5/5] iidc/ice/irdma: Update IDC to
> > support multiple consumers
> > 
> > On Tue, Apr 15, 2025 at 09:15:49PM -0500, Tatyana Nikolova wrote:
> > > From: Dave Ertman <david.m.ertman@intel.com>
> > >
> > > In preparation of supporting more than a single core PCI driver
> > > for RDMA, move ice specific structs like qset_params, qos_info
> > > and qos_params from iidc_rdma.h to iidc_rdma_ice.h.
> > >
> > > Previously, the ice driver was just exporting its entire PF struct
> > > to the auxiliary driver, but since each core driver will have its own
> > > different PF struct, implement a universal struct that all core drivers
> > > can provide to the auxiliary driver through the probe call.
> > >
> > > Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> > > Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
> > > Co-developed-by: Mustafa Ismail <mustafa.ismail@intel.com>
> > > Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
> > > Co-developed-by: Shiraz Saleem <shiraz.saleem@intel.com>
> > > Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
> > > Co-developed-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
> > > Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
> > 
> > ...
> > 
> > > diff --git a/drivers/net/ethernet/intel/ice/devlink/devlink.c
> > b/drivers/net/ethernet/intel/ice/devlink/devlink.c
> > > index fcb199efbea5..4af60e2f37df 100644
> > > --- a/drivers/net/ethernet/intel/ice/devlink/devlink.c
> > > +++ b/drivers/net/ethernet/intel/ice/devlink/devlink.c
> > > @@ -1339,8 +1339,13 @@ ice_devlink_enable_roce_get(struct devlink
> > *devlink, u32 id,
> > >  			    struct devlink_param_gset_ctx *ctx)
> > >  {
> > >  	struct ice_pf *pf = devlink_priv(devlink);
> > > +	struct iidc_rdma_core_dev_info *cdev;
> > >
> > > -	ctx->val.vbool = pf->rdma_mode & IIDC_RDMA_PROTOCOL_ROCEV2
> > ? true : false;
> > > +	cdev = pf->cdev_info;
> > > +	if (!cdev)
> > > +		return -ENODEV;
> > 
> > Is it possible for cdev to be NULL here?
> > 
> > Likewise for other checks for NULL arguments passed to functions
> > elsewhere in this patch.
> 
> Hi Simon,
> 
> In the resume path from Sx states it is possible to have a NULL pointer for
> the cdev_info pointer.  This is due to us not wanting to fail on resuming unless
> absolutely necessary.  I went through the rest of the patch looking for NULL checks
> and all of them are valid from my inspection (possible to be NULL).
> 
> Thanks for the review!

Likewise, thanks for checking.

  reply	other threads:[~2025-04-23 16:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-16  2:15 [iwl-next v5 0/5] Refactor to prepare for Intel IPU E2000 (GEN3) Tatyana Nikolova
2025-04-16  2:15 ` [iwl-next v5 1/5] iidc/ice/irdma: Rename IDC header file Tatyana Nikolova
2025-04-16  2:15 ` [iwl-next v5 2/5] iidc/ice/irdma: Rename to iidc_* convention Tatyana Nikolova
2025-04-16  2:15 ` [iwl-next v5 3/5] iidc/ice/irdma: Break iidc.h into two headers Tatyana Nikolova
2025-04-16  2:15 ` [iwl-next v5 4/5] ice: Replace ice specific DSCP mapping num with a kernel define Tatyana Nikolova
2025-04-17 11:21   ` Simon Horman
2025-04-16  2:15 ` [iwl-next v5 5/5] iidc/ice/irdma: Update IDC to support multiple consumers Tatyana Nikolova
2025-04-17 11:21   ` Simon Horman
2025-04-18 17:14     ` [Intel-wired-lan] " Ertman, David M
2025-04-23 16:14       ` Simon Horman [this message]
2025-04-24 15:58 ` [iwl-next v5 0/5] Refactor to prepare for Intel IPU E2000 (GEN3) Nikolova, Tatyana E
2025-04-24 21:51   ` Jakub Kicinski
2025-04-28 20:29     ` Nikolova, Tatyana E

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=20250423161425.GA2843373@horms.kernel.org \
    --to=horms@kernel.org \
    --cc=david.m.ertman@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jgg@nvidia.com \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=tatyana.e.nikolova@intel.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;
as well as URLs for NNTP newsgroup(s).