Re: Xorg 7.4 and umass devices - a bad combination?

2009-03-21 Thread Juergen Lock
In article 20090318205909.07625cdb.torfinn.ingolf...@broadpark.no you write:
Hello,

More testing.
- I verified that listing the firewire drive while Xorg is running
doesn't seeem to cause any errors.
So I thought: what happens if I start Xorg (using startx), then exit it
and _then_ do an 'ls' on the usb drives?

First try: 'startx', do a couple of commands (like 'date', 'pwd'), the
exit Xorg again. Then do 'ls' on the usb drives. Result: it works
without errors.

Second try: 'startx', do a couple of commands (like 'date', 'pwd'), the
exit Xorg again. Then do 'ls' on the usb drives. Result: the erors are
back.

Just in case you haven't seen it yet...

 Apparently there have been issues on some hardware with the way xorg
(used to) probe the pci bus, see the `Unhappy Xorg upgrade' thread on
-stable, particularly:
http://docs.freebsd.org/cgi/mid.cgi?1234292252.1524.38.camel
and
http://docs.freebsd.org/cgi/mid.cgi?49A81556.2040801
(which details the fix.)

 HTH,
Juergen
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Xorg 7.4 and umass devices - a bad combination?

2009-03-21 Thread Torfinn Ingolfsen
I did some more tests, this time with RELENG_7 / amd64:
r...@kg-quiet# uname -a
FreeBSD kg-quiet.kg4.no 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #2: Tue
Mar 17 22:09:21 CET 2009
r...@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET  amd64

I updated the ports tree, and installed Xorg 7.4 (and Xfce 4.6.0)
directly - no upgrades needed.

And now everything runs smooth - I can not reproduce the problem at all.
I am using the ati driver (xf86-video-ati-6.12.1) for Xorg in case that
matters.
-- 
Regards,
Torfinn Ingolfsen

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Xorg 7.4 and umass devices - a bad combination?

2009-03-18 Thread Torfinn Ingolfsen
On Wed, 18 Mar 2009 20:59:09 +0100
Torfinn Ingolfsen torfinn.ingolf...@broadpark.no wrote:

 More testing.

Also, drm uses irq 18. AFAICT, this doesn't conflict with anything else:
Mar 18 20:49:45 kg-quiet kernel: drm0: ATI Radeon RV370 X550 port 
0xef00-0xefff mem 0xd800-0xdfff,0xfdef-0xfdef irq 18 at device 
0.0 on pci1
Mar 18 20:49:45 kg-quiet kernel: info: [drm] Initialized radeon 1.25.0 20060524
Mar 18 20:49:46 kg-quiet kernel: info: [drm] Setting GART location based on new 
memory map
Mar 18 20:49:46 kg-quiet kernel: info: [drm] Loading R300 Microcode
Mar 18 20:49:46 kg-quiet kernel: info: [drm] writeback test succeeded in 1 usecs
-- 
Torfinn

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Xorg 7.4 and umass devices - a bad combination?

2009-03-17 Thread Torfinn Ingolfsen
On Mon, 16 Mar 2009 23:15:13 +0100
Torfinn Ingolfsen torfinn.ingolf...@broadpark.no wrote:

 No, I am not. PS/ mouse and keyboard here.

should read: PS/2 mouse and keyboard.
-- 
Torfinn

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Xorg 7.4 and umass devices - a bad combination?

2009-03-17 Thread Torfinn Ingolfsen
On Tue, 17 Mar 2009 08:57:06 +0100
Hans Petter Selasky hsela...@c2i.net wrote:

 It's maybe an interrupt problem. Can you do some vmstat'ing before
 and after ?

After starting Xorg (with startx this time), but before doing an 'ls'
on one of the usb drives:
r...@kg-quiet# vmstat
 procs  memory  pagedisks faults cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad0 ad1   in   sy  cs us sy id
 1 0 0136M  2736M  512   4  11   0 438   0   0   0  198 1604 570  1  1 98


After issuing the 'ls' command (and still waiting for it to complete):
r...@kg-quiet# vmstat
 procs  memory  pagedisks faults cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad0 ad1   in   sy  cs us sy id
 1 1 0136M  2736M  474   4  10   0 405   0   0   0  205 1484 573  1  1 98
r...@kg-quiet# vmstat
 procs  memory  pagedisks faults cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad0 ad1   in   sy  cs us sy id
 1 1 0136M  2736M  470   4  10   0 402   0   0   0  206 1473 574  1  1 98
r...@kg-quiet# vmstat
 procs  memory  pagedisks faults cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad0 ad1   in   sy  cs us sy id
 1 1 0136M  2736M  469   4  10   0 401   0   0   0  206 1469 574  1  1 98
r...@kg-quiet# vmstat
 procs  memory  pagedisks faults cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad0 ad1   in   sy  cs us sy id
 1 1 0136M  2736M  468   4  10   0 400   0   0   0  206 1464 574  1  1 98
r...@kg-quiet# vmstat
 procs  memory  pagedisks faults cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad0 ad1   in   sy  cs us sy id
 1 1 0136M  2736M  466   4  10   0 399   0   0   0  206 1459 574  1  1 98
r...@kg-quiet# vmstat
 procs  memory  pagedisks faults cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad0 ad1   in   sy  cs us sy id
 1 1 0136M  2736M  467   4  10   0 399   0   0   0  207 1460 576  1  1 98
r...@kg-quiet# vmstat
 procs  memory  pagedisks faults cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad0 ad1   in   sy  cs us sy id
 1 1 0136M  2736M  466   4  10   0 398   0   0   0  207 1456 576  1  1 98
r...@kg-quiet# vmstat
 procs  memory  pagedisks faults cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad0 ad1   in   sy  cs us sy id
 1 1 0136M  2736M  464   4  10   0 397   0   0   0  208 1451 576  1  1 98
r...@kg-quiet# vmstat
 procs  memory  pagedisks faults cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad0 ad1   in   sy  cs us sy id
 1 1 0136M  2736M  463   4   9   0 396   0   0   0  208 1447 576  1  1 98

I can't see anything odd from these. Can you?
Now it is several minutes later,. the 'ls' command still hasn't completed, and 
I try vmstat once more:
r...@kg-quiet# vmstat
 procs  memory  pagedisks faults cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad0 ad1   in   sy  cs us sy id
 0 1 0136M  2736M  214   2   4   0 183   0   0   0  252  676 606  0  1 99

I now have several timeout messages in /var/log/messages:
Mar 17 22:48:56 kg-quiet kernel: umass1: BBB reset failed, TIMEOUT
Mar 17 22:48:56 kg-quiet kernel: umass3: BBB reset failed, TIMEOUT
Mar 17 22:48:56 kg-quiet kernel: umass2: BBB reset failed, TIMEOUT
Mar 17 22:48:56 kg-quiet kernel: umass0: BBB reset failed, TIMEOUT
Mar 17 22:50:01 kg-quiet kernel: umass1: BBB bulk-in clear stall failed, TIMEOUT
Mar 17 22:50:01 kg-quiet kernel: umass3: BBB bulk-in clear stall failed, TIMEOUT
Mar 17 22:50:01 kg-quiet kernel: umass2: BBB bulk-in clear stall failed, TIMEOUT
Mar 17 22:50:01 kg-quiet kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT
Mar 17 22:51:06 kg-quiet kernel: umass1: BBB bulk-out clear stall failed, 
TIMEOUT
Mar 17 22:51:06 kg-quiet kernel: umass3: BBB bulk-out clear stall failed, 
TIMEOUT
Mar 17 22:51:06 kg-quiet kernel: umass2: BBB bulk-out clear stall failed, 
TIMEOUT
Mar 17 22:51:06 kg-quiet kernel: umass0: BBB bulk-out clear stall failed, 
TIMEOUT
Mar 17 22:53:16 kg-quiet kernel: umass1: BBB reset failed, TIMEOUT
Mar 17 22:53:16 kg-quiet kernel: umass3: BBB reset failed, TIMEOUT
Mar 17 22:53:16 kg-quiet kernel: umass2: BBB reset failed, TIMEOUT
Mar 17 22:53:16 kg-quiet kernel: umass0: BBB reset failed, TIMEOUT
Mar 17 22:54:21 kg-quiet kernel: umass1: BBB bulk-in clear stall failed, TIMEOUT
Mar 17 22:54:21 kg-quiet kernel: umass3: BBB bulk-in clear stall failed, TIMEOUT
Mar 17 22:54:21 kg-quiet kernel: umass2: BBB bulk-in clear stall failed, TIMEOUT
Mar 17 22:54:21 kg-quiet kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT


 Also try to upgrade the kernel to the lastest sources. There has been
 an EHCI performance quirk added recently.

Is this update in 

Re: Xorg 7.4 and umass devices - a bad combination?

2009-03-16 Thread M. Warner Losh
In message: 20090316205626.b0ed5027.torfinn.ingolf...@broadpark.no
Torfinn Ingolfsen torfinn.ingolf...@broadpark.no writes:
: Have anyone seen bad performance when using umass devices (external
: hard drives) in combination with Xorg 7.4?

I don't see it.

But I'm not using a usb mouse/keyboard...  Are you?

Warner

: The reason I ask is that I have this machine[1] which is both a test
: workstation, and cheap-ass fileserver. I am using external usb drives
: for storage (it was the cheapest option when I set this up).
: r...@kg-quiet# dmesg | grep da[01234]
: da4 at sbp0 bus 0 target 0 lun 0
: da4: Maxtor OneTouch II 0310 Fixed Direct Access SCSI-4 device 
: da4: 50.000MB/s transfers
: da4: 286188MB (586114704 512 byte sectors: 255H 63S/T 36483C)
: da3 at umass-sim3 bus 3 target 0 lun 0
: da3: WD 5000AAK External 1.06 Fixed Direct Access SCSI-0 device 
: da3: 40.000MB/s transfers
: da3: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
: da2 at umass-sim2 bus 2 target 0 lun 0
: da2: WD 5000AAK External 1.06 Fixed Direct Access SCSI-0 device 
: da2: 40.000MB/s transfers
: da2: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
: da1 at umass-sim1 bus 1 target 0 lun 0
: da1: WD 5000AAV External 1.06 Fixed Direct Access SCSI-0 device 
: da1: 40.000MB/s transfers
: da1: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
: da0 at umass-sim0 bus 0 target 0 lun 0
: da0: WD 5000AAK External 1.06 Fixed Direct Access SCSI-0 device 
: da0: 40.000MB/s transfers
: da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
: 
: Yes, there is a firewire drive in there too.
: 
: The machine currently runs FreeBSD 6.4-stable / amd64, and have run
: through most releases sine 6.1-prerelease. I use Samba for file serving.
: r...@kg-quiet# uname -a
: FreeBSD kg-quiet.kg4.no 6.4-STABLE FreeBSD 6.4-STABLE #27: Sun Mar 15
: 19:42:19 CET 2009 r...@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET
: amd64
: 
: The machine have always been in X when it is up (I use XFce) and this hasn't 
created any problems that I have noticed.
: However, after I upgraded Xorg to 7.4, I get lots of these messages in 
/var/log/messages if I try to
: do a simple 'ls' on any filesystem on a usb drive:
: Mar 16 17:09:02 kg-quiet kernel: umass2: BBB bulk-out clear stall failed, 
TIMEOUT
: Mar 16 17:09:31 kg-quiet kernel: umass1: BBB bulk-out clear stall failed, 
TIMEOUT
: Mar 16 17:10:00 kg-quiet kernel: umass3: BBB bulk-out clear stall failed, 
TIMEOUT
: Mar 16 17:10:43 kg-quiet kernel: umass0: BBB reset failed, TIMEOUT
: Mar 16 17:11:12 kg-quiet kernel: umass2: BBB reset failed, TIMEOUT
: Mar 16 17:11:41 kg-quiet kernel: umass1: BBB reset failed, TIMEOUT
: Mar 16 17:11:48 kg-quiet kernel: umass0: BBB bulk-in clear stall failed, 
TIMEOUT
: Mar 16 17:12:10 kg-quiet kernel: umass3: BBB reset failed, TIMEOUT
: 
: Followed by these:
: Mar 16 17:12:53 kg-quiet kernel: 
g_vfs_done():da0s1d[WRITE(offset=196864589824, length=16384)]error = 5
: Mar 16 17:12:53 kg-quiet kernel: g_vfs_done():da0s1d[WRITE(offset=114688, 
length=16384)]error = 5
: Mar 16 17:13:15 kg-quiet kernel: umass3: BBB bulk-in clear stall failed, 
TIMEOUT
: Mar 16 17:13:22 kg-quiet kernel: umass2: BBB bulk-out clear stall failed, 
TIMEOUT
: Mar 16 17:13:22 kg-quiet kernel: 
g_vfs_done():da2s1d[WRITE(offset=357707874304, length=16384)]error = 5
: Mar 16 17:13:22 kg-quiet kernel: g_vfs_done():da2s1d[WRITE(offset=114688, 
length=16384)]error = 5
: 
: and the 'ls' takes several minutes to complete.
: 
: Notice that the messages mention all umass drives (umass0 - umass3), even if 
I only do an ls on one of them.
: Also notice that the firewire drive is absent fom any messages.
: Note: hal is NOT running on this machine.
: 
: What is my workaround? Reboot the machine (needing a forced reset, as the 
machine hangs on shutdown
: after the umass errors), let fsck do its thing and then don't start Xorg. But 
this is no solution.
: 
: The funny thing is that It worked find before I upgraded Xorg from 7.3.2 to 
7.4...
: 
: Any hints on how I can debug this?
: 
: More info: FreeBSD work log[2], dmesg output normal[3] and verbose[4].
: 
: References:
: 1) http://tingox.googlepages.com/rs480m2
: 2) http://tingox.googlepages.com/rs480m2_freebsd
: 3) http://tingox.googlepages.com/quiet-dmesg-6.4-stable-20090315.txt
: 4) http://tingox.googlepages.com/quiet-dmesg-6.4-stable-20090315_verb.txt
: -- 
: Regards,
: Torfinn Ingolfsen,
: Norway
: 
: ___
: freebsd-usb@freebsd.org mailing list
: http://lists.freebsd.org/mailman/listinfo/freebsd-usb
: To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
: 
: 
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: Xorg 7.4 and umass devices - a bad combination?

2009-03-16 Thread Torfinn Ingolfsen
On Tue, 17 Mar 2009 05:01:16 +0900 (JST)
M. Warner Losh i...@bsdimp.com wrote:

 In message: 20090316205626.b0ed5027.torfinn.ingolf...@broadpark.no
 Torfinn Ingolfsen torfinn.ingolf...@broadpark.no writes:
 : Have anyone seen bad performance when using umass devices (external
 : hard drives) in combination with Xorg 7.4?
 
 I don't see it.
 
 But I'm not using a usb mouse/keyboard...  Are you?

No, I am not. PS/ mouse and keyboard here.

This is very strange, very puzzling.
-- 
Regards,
Torfinn Ingolfsen

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org