Linux PCI Non-Transparent Bridge framework and drivers
 help / color / mirror / Atom feed
From: Jon Mason <jdmason@kudzu.us>
To: Allen Hubbe <Allen.Hubbe@dell.com>
Cc: 'Dave Jiang' <dave.jiang@intel.com>,
	linux-ntb@googlegroups.com, ujjal.singh@intel.com
Subject: Re: [PATCH v2] ntb: ntb_hw_intel: Skylake doorbells should be 32bits, not 64bits
Date: Fri, 9 Jun 2017 17:08:20 -0400	[thread overview]
Message-ID: <20170609210819.GB9847@kudzu.us> (raw)
In-Reply-To: <000001d2e127$7fb8d740$7f2a85c0$@dell.com>

On Fri, Jun 09, 2017 at 09:51:30AM -0400, Allen Hubbe wrote:
> From: Dave Jiang 
> > Fixing doorbell register length to 32bits per spec. On Skylake NTB, the
> > doorbell registers are 32bit write only registers. The source for the doorbell is
> > a 64bit register that shows the interrupt bits.
> > 
> > Signed-off-by: Dave Jiang <dave.jiang@intel.com>
> 
> Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>

Adding to my ntb branch with the following line:
Fixes: 783dfa6cc41b ("ntb: Adding Skylake Xeon NTB support")

This enables the stable kernels it is a bug fix and to pick it up.

Thanks,
Jon

> 
> > ---
> > 
> > v2: Allen: remove unnecessary change to code.
> > 
> >  drivers/ntb/hw/intel/ntb_hw_intel.c |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/ntb/hw/intel/ntb_hw_intel.c
> > b/drivers/ntb/hw/intel/ntb_hw_intel.c
> > index c002384..7b3b6fd 100644
> > --- a/drivers/ntb/hw/intel/ntb_hw_intel.c
> > +++ b/drivers/ntb/hw/intel/ntb_hw_intel.c
> > @@ -2878,7 +2878,7 @@ static const struct intel_ntb_reg skx_reg = {
> >  	.link_is_up		= xeon_link_is_up,
> >  	.db_ioread		= skx_db_ioread,
> >  	.db_iowrite		= skx_db_iowrite,
> > -	.db_size		= sizeof(u64),
> > +	.db_size		= sizeof(u32),
> >  	.ntb_ctl		= SKX_NTBCNTL_OFFSET,
> >  	.mw_bar			= {2, 4},
> >  };
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups "linux-ntb" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-ntb+unsubscribe@googlegroups.com.
> To post to this group, send email to linux-ntb@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/linux-ntb/000001d2e127%247fb8d740%247f2a85c0%24%40dell.com.
> For more options, visit https://groups.google.com/d/optout.

      reply	other threads:[~2017-06-09 21:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-08 19:46 [PATCH v2] ntb: ntb_hw_intel: Skylake doorbells should be 32bits, not 64bits Dave Jiang
2017-06-09 13:51 ` Allen Hubbe
2017-06-09 21:08   ` Jon Mason [this message]

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=20170609210819.GB9847@kudzu.us \
    --to=jdmason@kudzu.us \
    --cc=Allen.Hubbe@dell.com \
    --cc=dave.jiang@intel.com \
    --cc=linux-ntb@googlegroups.com \
    --cc=ujjal.singh@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