Andrew Smallshaw | 9 Jan 2012 18:10
Picon
Favicon

Determining USB product ID

What's the easiest way to determine the USB product ID for an
unregnised device?  On attachment ugen reports the VID but not the
PID.  The device in question is is an RTL8150 based ethernet
interface so I'm hoping that I only need to add appropriate entries
to the VID and PID lists and tweak the url source to recognise it.

--

-- 
Andrew Smallshaw
andrews <at> sdf.lonestar.org

Matthias Drochner | 9 Jan 2012 18:15
Picon
Picon
Favicon

Re: Determining USB product ID


andrews <at> sdf.lonestar.org said:
> What's the easiest way to determine the USB product ID

usbdevs -v

best regards
Matthias

------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Kennen Sie schon unsere app? http://www.fz-juelich.de/app

Patrick Welche | 12 Jan 2012 15:54
Picon
Picon
Favicon

Flakey AMD box

I am trying to get to the bottom of why one of my i386 boxen is very
unreliable. It is my only 32 bit AMD CPU machine.

Symptoms are:
On boot, sometimes all is well, sometimes I get a panic - usually in uiomove
(mode=READ), then reboot, panic, reboot, all well.

This is nasty: files which are built correctly into /usr/obj are then
corrupt when installed. Several times fate rolled a double 6 and
/usr/obj/lib/libc.i386/libc.so.12.179 was fine, but
/lib/libc.so.12.179 was a file with the same name, length, timestamp, but
containing "data" rather than a shared object. (Last round it happened
to both libc and libgcc_s which was fun.)
It isn't just those files, though it is immediately obvious when it
happens to them. (Happened again with yesterday's -current)

I thought it must be flakey hardware, but I have now replaced the
disks with a known working pair of IDE raidframe mirrored disks
plugged into hptide.  They (disks and controller card) come out of
a NetBSD/i386 server that has been rock solid for years.

I also changed the Sempron 2200+ and 512MB DDR400 memory, to a
?Athlon XP 3000+? (from memory) and 3x512MB DDR333 memory.  Two
iterations of memtest86 4.0a were happy. The motherboard is an ASUS
A7V600-X, so VIA chipset (eg VT8377).

Same flakiness - all I didn't change are the motherboard and power supply,
and a sata drive is still connected but not mounted anywhere special.

During builds, with that much memory, /usr/obj/* must be in the
(Continue reading)

Thomas Klausner | 15 Jan 2012 23:31
Picon

PR 45814: changing x86/lock.h

Any opinions on the suggested change here?
(I'm not subscribed to port-i386, please cc me)
 Thomas

----- Forwarded message from noud4 <at> home.nl -----

Date: Tue, 10 Jan 2012 19:00:00 +0000 (UTC)
From: noud4 <at> home.nl
To: pkg-manager <at> netbsd.org, gnats-admin <at> netbsd.org, pkgsrc-bugs <at> netbsd.org
Subject: pkg/45814: lang/gcc45 doesn't build on 5.99.5x/i386

>Number:         45814
>Category:       pkg
>Synopsis:       lang/gcc45 doesn't build on 5.99.5x/i386
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 10 19:00:00 +0000 2012
>Originator:     B.ICT A.P. deBROUWER Jr.
>Release:        5.99.59
>Organization:
-none-
>Environment:
NetBSD 10.0.2.17 5.99.59 NetBSD 5.99.59 (MONOLITHIC) #0: Tue Dec 27 01:19:12 UTC 2011 
builds <at> b8.netbsd.org:/home/builds/ab/HEAD/i386/201112261820Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/MONOLITHIC i386
>Description:
(Continue reading)

Thor Lancelot Simon | 17 Jan 2012 21:57
Picon
Favicon

Re: NetBSD on current AMD motherboards

On Tue, Jan 17, 2012 at 08:25:04PM +0100, Edgar Fu? wrote:
> 
> My main concern is SAS. It looks like there's no support for any SAS-2
> controller yet, only for the (SAS-1) LSI 1068. This sounds strange. What does
> wasabi use in their storage products?

Wasabi doesn't exist.

Your best bet for a supported storage adapter might be a RAID controller
even if you don't use RAID mode.  The vendors usually keep the host
interface pretty stable even as the technology on the disk side changes,
so the drivers usually just work with new generations of hardware.

Areca is one decent choice.  I like LSI considerably less but it will
probably work.

Thor

Edgar Fuß | 17 Jan 2012 23:52
Picon
Favicon

Non-RAID SAS adapters (was: NetBSD on current AMD motherboards)

> Is there SAS controllers out there that are not RAID?
Well, maybe some of them have RAID0 and RAID1.

> I looked for one when I needed a new tape changer, and didn't find
> anything with a SAS interface and no RAID (so I went fiber channel ...)
LSI SAS3xxx for SAS-1, LSI SAS 9xxx for SAS-2. See
http://www.lsi.com/products/storagecomponents/Pages/HBAs.aspx
for details.
The 3xxx series uses the SAS1068 chip, which are supported by mpt(4).

Greg A. Woods | 18 Jan 2012 05:28
X-Face
Picon
Favicon

Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)

After digging in the mfi(4) code a bit more, and poking through the
current OpenBSD code (from which NetBSD's mfi(4) was long ago derived),
I thought I had discovered a possible problem (as well as a few other
bug fixes not yet imported to NetBSD).  The changes I made to mfi(4) are
appended below my signature.  I completely removed the kernel_lock and
reverted to using splbio() around the only the same code OpenBSD uses it
around (w.r.t. the code paths previously protected by the kernel_lock).

Unfortunately although it seemed to get a bit further along with some of
my tests, the machine still crashed soon enough again.

(I did manage to get a full sysinst onto my CF card for my Soekris box,
and a bit further along in a "build.sh -j 4" than last time....)

Unfortunately some stray output hung the telnet session through the
terminal server I'm using for serial ports and so I wasn't able to get
any more from DDB (I think it was the garbage being spewed by savecore,
see below):

Reader / writer lock error: lockdebug_unlocked: no shared locks held by LWP

lock address : 0x00000000c0d52cc0 type     :     sleep/adaptive
initialized  : 0x00000000c04e0a73
shared holds :                  0 exclusive:                  0
shares wanted:                  0 exclusive:                  0
current cpu  :                  7 last held:              65535
current lwp  : 0x00000000deac9340 last held: 000000000000000000
last locked  : 0x00000000c04e0111 unlocked : 0x00000000c04e0302
owner/count  : 000000000000000000 flags    : 0x0000000000000008

(Continue reading)

Thor Lancelot Simon | 18 Jan 2012 14:48
Picon
Favicon

Re: ongoing major problems with NetBSD-5 and LOCKDEBUG on multi-core system (mfi(4) related?)

On Tue, Jan 17, 2012 at 08:28:28PM -0800, Greg A. Woods wrote:
> After digging in the mfi(4) code a bit more, and poking through the
> current OpenBSD code (from which NetBSD's mfi(4) was long ago derived),
> I thought I had discovered a possible problem (as well as a few other
> bug fixes not yet imported to NetBSD).  The changes I made to mfi(4) are
> appended below my signature.  I completely removed the kernel_lock and
> reverted to using splbio() around the only the same code OpenBSD uses it
> around (w.r.t. the code paths previously protected by the kernel_lock).

I don't think either of these is the right way.

Unfortunately, I don't know enough about our storage drivers these days
to recommend one as a good example for you to look at; but I think it
would be a much better idea to look at another storage driver and see
how the locking works than to copy OpenBSD or throw KERNEL_LOCK()
calls around, which is what the changes in the source tree seem to
have done.

What is being protected by those calls?  The driver, from another kernel
subsystem?  Or the driver, from itself?  If the latter, it would be much
better to think about the driver's actual locking needs and add or adjust
locks accordingly.

If the issue is that the driver needs to do something that could sleep,
and that it's sometimes from interrupt context, the only correct
solution is to move that operation to a sleepable entity, which means
that the driver probably needs a softint callout, workqueue, or just a
kernel thread to do its deferred operations.  If not, then it's just
locking mistakes, but borrowing code from OpenBSD, where kernel
synchronization is totally different, isn't likely to help.
(Continue reading)

Matthias Drochner | 18 Jan 2012 23:38
Picon
Picon
Favicon

Re: CVS commit: src/sys/arch/i386/i386


dyoung <at> pobox.com said:
>  was setting pba_sub = 255 causing material problems for someone, or
> are you concerned that lossage will eventually occur on certain
> server-class machines?

No, this wasn't causing damage. I was tracking another problem which
was incidentally triggered by another of your changes -- increased
stack use lead to stack overflow on amd64 with a deep PCI hierarchy
(a MicroTCA system).

Just stumbled over this. But it is obviously wrong. If you think
it should be in the public tree there should be at least a big fat
comment telling that it is for testing purposes and nothing uses
it really and it will be removed before it can cause damage.

best regards
Matthias

------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
(Continue reading)


Gmane