Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Apr 2011 12:05:22 -0700
From:      bhanuprakash bodireddy <bhanuprakashbodireddy@gmail.com>
To:        Patrick Mahan <mahan@mahan.org>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: Blatant simple bug in Cavium SDK USB code?
Message-ID:  <BANLkTikVnwVTrL5qM9DEifZkzOzBXQRAMQ@mail.gmail.com>
In-Reply-To: <4D961CB0.6080802@mahan.org>
References:  <AC6674AB7BC78549BB231821ABF7A9AEB52F1950C5@EMBX01-WF.jnpr.net> <AC6674AB7BC78549BB231821ABF7A9AEB52F1950C7@EMBX01-WF.jnpr.net> <4D961CB0.6080802@mahan.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 1, 2011 at 11:42 AM, Patrick Mahan <mahan@mahan.org> wrote:

>
>
> On 4/1/11 11:08 AM, Andrew Duane wrote:
> >
> > In the routine cvmx_usb_initialize in sys/contrib/octeon-sdk/cvmx-usb.c,
> I'm pretty sure there's a silly little bug that really BADLY breaks the USB
> driver for some of us.
> >
> > Near the top, after it finds board type and sets the clock type, as part
> of the structure initialization, there is:
> >
> >     memset(usb, 0, sizeof(usb));
> >
> > Tell me that is not supposed to be:
> >
> >     memset(usb, 0, sizeof(*usb));
> >
> > The existing code only zeros 4/8 bytes, instead of the 23KB of the
> structure.
> >
>
> Ugh... Looks like this is an original bug from Cavium.  No wonder I always
> had issues working with the USB in u-boot off of the SDK.
>
> I see this is my 1.9 Cavium SDK.  Not sure if it is on a more recent
> version.
>

We already have 2.0 Simple Exec support merged on to Mainline.
Unfortunately this bug wasn't detected.

Thanks,
Bhanu prakash.


>
> Patrick
> _______________________________________________
> freebsd-mips@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mips
> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikVnwVTrL5qM9DEifZkzOzBXQRAMQ>