DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Xu, Rosen" <rosen.xu@intel.com>
To: "Wei, Dan" <dan.wei@intel.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: "Yigit, Ferruh" <ferruh.yigit@intel.com>,
	"stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-dev] [DPDK v2] net/ipn3ke: modifications on AFU configurations
Date: Tue, 11 Jun 2019 02:33:49 +0000	[thread overview]
Message-ID: <0E78D399C70DA940A335608C6ED296D73A7DE0DF@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <35413AA7DC893F4FA6679F94DEE6B7E73C235811@CDSMSX102.ccr.corp.intel.com>

Hi Dan,

Thanks your clarify, pls apply them in new patch set, not just explain them in this patch.

> -----Original Message-----
> From: Wei, Dan
> Sent: Tuesday, June 04, 2019 11:19
> To: Xu, Rosen <rosen.xu@intel.com>; dev@dpdk.org
> Cc: Yigit, Ferruh <ferruh.yigit@intel.com>; stable@dpdk.org
> Subject: RE: [DPDK v2] net/ipn3ke: modifications on AFU configurations
> 
> Hi Rosen, thank you for your comments.
> 
> > > > -----Original Message-----
> > > From: Wei, Dan
> > > Sent: Thursday, May 30, 2019 22:59
> > > To: dev@dpdk.org
> > > Cc: Yigit, Ferruh <ferruh.yigit@intel.com>; Wei, Dan
> > > <dan.wei@intel.com>; Xu, Rosen <rosen.xu@intel.com>;
> stable@dpdk.org
> > > Subject: [DPDK v2] net/ipn3ke: modifications on AFU configurations
> > >
> > > Modify AFU configurations for new Blue Bitstream of A10 on N3000 card:
> >
> > Blue Bitstream is new term, pls explain it or take modification.
>   BBS is the abbreviation of Blue Bitsteam.
> 
> > > - AFU register access: RTL changes the UPL base address and the
> > > read/write commands of register indirect access.
> >
> > What means UPL?
> > Could you descript it in more common language?
>   UPL is the abbreviation of User Programable Logic which is the cotainer of
> vBNG IP.
> 
> > > - Add delays to wait for the HW reset completion.
> >
> > Does HW same means with RTL?
>   It means RTL + DDR.
> 
> > > - Refine log for debug: print UPL_version not only for vBNG bit
> > > stream, but also for other bit streams
> > >
> > > Fixes: c01c748e4ae6 ("net/ipn3ke: add new driver")
> > > Cc: rosen.xu@intel.com
> > > Cc: stable@dpdk.org
> > >
> > > Signed-off-by: Dan Wei <dan.wei@intel.com>
> > > ---
> > >  drivers/net/ipn3ke/ipn3ke_ethdev.c | 14 ++++++++++++--
> > > drivers/net/ipn3ke/ipn3ke_ethdev.h |  9 +++++----
> > >  drivers/net/ipn3ke/ipn3ke_flow.c   |  1 +
> > >  3 files changed, 18 insertions(+), 6 deletions(-)
> > >
> > > diff --git a/drivers/net/ipn3ke/ipn3ke_ethdev.c
> > > b/drivers/net/ipn3ke/ipn3ke_ethdev.c
> > > index 9079b57..84eb0e9 100644
> > > --- a/drivers/net/ipn3ke/ipn3ke_ethdev.c
> > > +++ b/drivers/net/ipn3ke/ipn3ke_ethdev.c
> > > @@ -223,15 +223,25 @@
> > >  				"LineSideMACType", &mac_type);
> > >  	hw->retimer.mac_type = (int)mac_type;
> > >
> > > +	/* After power on, wait until init done */
> > > +	while (IPN3KE_READ_REG(hw, IPN3KE_INIT_DONE) != 0x3)
> > > +		;
> > > +
> > > +	IPN3KE_AFU_PMD_DEBUG("UPL_version is 0x%x\n",
> > > IPN3KE_READ_REG(hw, 0));
> > > +
> > >  	if (afu_dev->id.uuid.uuid_low == IPN3KE_UUID_VBNG_LOW &&
> > >  		afu_dev->id.uuid.uuid_high == IPN3KE_UUID_VBNG_HIGH) {
> > >  		ipn3ke_hw_cap_init(hw);
> > > -		IPN3KE_AFU_PMD_DEBUG("UPL_version is 0x%x\n",
> > > -			IPN3KE_READ_REG(hw, 0));
> >
> > Why did you remove Debug code?
>   The debug code is moved up. Not only the version of vBNG Bitsteam, but
> also
>   that of other bitsteams, should be printed out.
> > >  		/* Reset FPGA IP */
> > >  		IPN3KE_WRITE_REG(hw, IPN3KE_CTRL_RESET, 1);
> > > +		rte_delay_us(10);
> > >  		IPN3KE_WRITE_REG(hw, IPN3KE_CTRL_RESET, 0);
> > > +
> > > +		/* After reset, wait until init done */
> > > +		while (IPN3KE_READ_REG(hw, IPN3KE_INIT_DONE) != 0x3)
> > > +			;
> > > +		rte_delay_us(10);
> > >  	}


  reply	other threads:[~2019-06-11  2:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-30 14:58 Dan Wei
2019-05-31  6:17 ` Xu, Rosen
2019-06-04  3:19   ` Wei, Dan
2019-06-11  2:33     ` Xu, Rosen [this message]
2019-06-06 15:13 ` Ferruh Yigit
2019-06-10  6:27   ` Wei, Dan

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=0E78D399C70DA940A335608C6ED296D73A7DE0DF@SHSMSX104.ccr.corp.intel.com \
    --to=rosen.xu@intel.com \
    --cc=dan.wei@intel.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=stable@dpdk.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).