From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] tsec: Configure the buffer descriptor bases to always include all of the descriptors
Date: Wed, 10 Aug 2011 14:29:19 +0200 [thread overview]
Message-ID: <m239h9pi00.fsf@ohwell.denx.de> (raw)
In-Reply-To: <1312960344-1499-1-git-send-email-joe.hershberger@ni.com> (Joe Hershberger's message of "Wed, 10 Aug 2011 02:12:24 -0500")
Hi Joe,
> Previously only the last N were included based on the current one in use.
>
> Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
> Cc: Joe Hershberger <joe.hershberger@gmail.com>
> Cc: Mingkai Hu <Mingkai.hu@freescale.com>
> Cc: Andy Fleming <afleming@freescale.com>
> Cc: Kumar Gala <galak@kernel.crashing.org>
> Cc: Detlev Zundel <dzu@denx.de>
> ---
> drivers/net/tsec.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
> index 78ffc95..1805ca0 100644
> --- a/drivers/net/tsec.c
> +++ b/drivers/net/tsec.c
> @@ -250,8 +250,8 @@ static void startup_tsec(struct eth_device *dev)
> txIdx = 0;
>
> /* Point to the buffer descriptors */
> - out_be32(®s->tbase, (unsigned int)(&rtx.txbd[txIdx]));
> - out_be32(®s->rbase, (unsigned int)(&rtx.rxbd[rxIdx]));
> + out_be32(®s->tbase, (unsigned int)(&rtx.txbd[0]));
> + out_be32(®s->rbase, (unsigned int)(&rtx.rxbd[0]));
>
> /* Initialize the Rx Buffer descriptors */
> for (i = 0; i < PKTBUFSRX; i++) {
I see these two lines just before the code you change (one is even in
the context of your patch):
/* reset the indices to zero */
rxIdx = 0;
txIdx = 0;
So can you tell me, what your change actually does? I cannot remember
that we have concurrency issues here, or do we?
Cheers
Detlev
--
Don't trust everything you read, and don't assume every poster in
a thread is actually relevant to the problem.
-- Stefan Monnier <jwvlj1gk44h.fsf-monnier+emacs@gnu.org>
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
next prev parent reply other threads:[~2011-08-10 12:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 7:12 [U-Boot] [PATCH] tsec: Configure the buffer descriptor bases to always include all of the descriptors Joe Hershberger
2011-08-10 12:29 ` Detlev Zundel [this message]
2011-08-10 19:15 ` Joe Hershberger
2011-08-10 19:24 ` Detlev Zundel
2011-08-10 19:49 ` Andy Fleming
2011-08-10 20:59 ` Detlev Zundel
2011-08-10 14:10 ` Andy Fleming
2011-08-10 19:20 ` Joe Hershberger
2011-08-24 22:46 ` Wolfgang Denk
2011-08-24 22:48 ` Joe Hershberger
2011-08-10 21:14 ` Andy Fleming
2011-08-11 12:26 ` Sergei Shtylyov
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=m239h9pi00.fsf@ohwell.denx.de \
--to=dzu@denx.de \
--cc=u-boot@lists.denx.de \
/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