Re: LOR on CURRENT

2014-11-05 Thread Chris H
On Wed, 5 Nov 2014 13:38:01 -0500 (EST) Benjamin Kaduk  wrote

> On Wed, 5 Nov 2014, Chris H wrote:
> 
> > Greetings,
> >  a fresh install off the 2014-10-26 bootonly iso, generates the
> > following LOR:
> >
> > lock order reversal:
> >  1st 0xfe00f7626b48 bufwait (bufwait) @
> >  /usr/src/sys/kern/vfs_bio.c:3093 2nd 0xf8000404aa00 dirhash (dirhash)
> >  @ 
>
> This one is a very well-known false positive.
> http://sources.zabbadoz.net/freebsd/lor/261.html

Ahh. I see. Thanks for putting my mind at ease. :)
Maybe witness(4) needs to be better educated?

Thank you for taking the time to reply, Ben.

--Chris

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


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


Re: LOR on CURRENT

2014-11-05 Thread Benjamin Kaduk
On Wed, 5 Nov 2014, Chris H wrote:

> Greetings,
>  a fresh install off the 2014-10-26 bootonly iso, generates the
> following LOR:
>
> lock order reversal:
>  1st 0xfe00f7626b48 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3093
>  2nd 0xf8000404aa00 dirhash (dirhash) @

This one is a very well-known false positive.
http://sources.zabbadoz.net/freebsd/lor/261.html

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


LOR on CURRENT

2014-11-05 Thread Chris H
Greetings,
 a fresh install off the 2014-10-26 bootonly iso, generates the
following LOR:

lock order reversal:
 1st 0xfe00f7626b48 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3093
 2nd 0xf8000404aa00 dirhash (dirhash) @
/usr/src/sys/ufs/ufs/ufs_dirhash.c:2
84
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe0120cd9650
kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe0120cd9700
witness_checkorder() at witness_checkorder+0xdad/frame 0xfe0120cd9790
_sx_xlock() at _sx_xlock+0x75/frame 0xfe0120cd97d0
ufsdirhash_remove() at ufsdirhash_remove+0x37/frame 0xfe0120cd9800
ufs_dirremove() at ufs_dirremove+0x11b/frame 0xfe0120cd9860
ufs_remove() at ufs_remove+0x75/frame 0xfe0120cd98c0
VOP_REMOVE_APV() at VOP_REMOVE_APV+0xf7/frame 0xfe0120cd98f0
kern_unlinkat() at kern_unlinkat+0x209/frame 0xfe0120cd9ae0
amd64_syscall() at amd64_syscall+0x25a/frame 0xfe0120cd9bf0
Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfe0120cd9bf0
--- syscall (10, FreeBSD ELF64, sys_unlink), rip = 0x800b5208a, rsp =
0x7fff
eb58, rbp = 0x7fffeb70 ---

it's not FATAL, but thought it worth mentioning.
I haven't built, or installed world|kernel (yet). I also have
dmesg(8) from that session, out of var/run/dmesg.boot, and would
be happy to provide it, on request.

Thank you for all your time, and consideration.

--Chris


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


Re: LOR on current as of last Friday

2003-01-28 Thread Matthew N. Dodd
On Tue, 28 Jan 2003, Alexander Pohoyda wrote:
> > {0x0001630e, "CS423x-PCI"}, /* CSC0100 */

unknown:  can't assign resources

You've got LOTS of ISA hints specified and they're conflicting with
PNPBIOS devices.

These are the only ones that don't get setup on my system:

unknown:  can't assign resources (port) /* System Resource */
unknown:  can't assign resources (port) /* PCIC i82365 */
unknown:  can't assign resources (port) /* IDE controller */
unknown:  can't assign resources (port) /* IDE controller */

Since we're using the PCI attachments for the PCIC (cardbus) and IDE
controllers these 'unknown' devices aren't unexpected.

If you boot verbose you can see what each 'unknown' device is looking for
in the way of resources.

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: LOR on current as of last Friday

2003-01-28 Thread Matthew N. Dodd
On Tue, 28 Jan 2003, Alexander Pohoyda wrote:
> > > ps2 ? audio
> Enabled, Address 530, IRQ 5, DMA 3, SBAddress 220
...
> Anything else I may try?
> Thanks to all who replied!

Yes, there should be 2 DMA addresses assigned to the 'audio' device.

{0x0001630e, "CS423x-PCI"}, /* CSC0100 */

This is the PNP ID that should show up.

pcm0:  at port 0x220-0x233,0x388-0x38b,0x530-0x537 irq 5 drq 3,1 on isa0

This uses the 'mss' PCM driver (which is enabled with 'device pcm' in your
config file.)

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: LOR on current as of last Friday

2003-01-27 Thread Alexander Pohoyda
I hope this is not off topic here.
> > I'm talking about TP600E and 4.7-STABLE (as of yesterday) here.

Just recompiled:

device  pcm
options PNPBIOS

> > ps2 ? audio
Enabled, Address 530, IRQ 5, DMA 3, SBAddress 220

> > ps2 ? midi
Enabled, Address 330, IRQ 9

> > No sound. Ideas?
Same result.

A new line in dmesg:
pci0:  (vendor=0x1013, dev=0x6001) at 6.0 irq 10

I do use DOS ps2 utility, and it seems to work.
Should I disable AUDIOCTRL device? What about PCIIRQ?

Anything else I may try?
Thanks to all who replied!


-- 
Alexander Pohoyda
<[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: LOR on current as of last Friday

2003-01-27 Thread Matthew N. Dodd
On Tue, 28 Jan 2003, Alexander Pohoyda wrote:
> I'm talking about TP600E and 4.7-STABLE (as of yesterday) here.
>
> Just recompiled:
>
> apog@oak:~$ grep csa /sys/conf/files
> dev/sound/pci/csa.c optional csa pci
> #dev/sound/pci/csa.coptional pcm pci
> dev/sound/pci/csapcm.c  optional csa pcm pci
> apog@oak:~$ grep pcm0 /sys/i386/conf/OAK
> device  pcm0at isa? port 0x530 irq 9 drq 1 flags 0x10
> apog@oak:~$ grep pcm /var/run/dmesg.boot
> apog@oak:~$
>
>
> ps2 ? audio
> Enabled, Address 530, IRQ 9, DMA 0 - 1, SBAddress 220
>
> ps2 ? midi
> Enabled, Address 580, IRQ 5
>
> No sound. Ideas?

Don't use hints; they're not going to work (I suppose they might if you
use 'snd_mss0')

Enable PNPBIOS.

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: LOR on current as of last Friday

2003-01-27 Thread Matthew N. Dodd
On Mon, 27 Jan 2003, Alexander Pohoyda wrote:
> I'd wish to have sound working..  On my second notebook (TP600E) I have
> a PCI sound card -- 0x1013 0x6001. Don't you?

You'll need to configure the sound resources in DOS using the 'ps2.exe'
utility.  (Or you can wait a few days until I get my config util working
in FreeBSD.)

pcm0:  at port 0x220-0x233,0x388-0x38b,0x530-0x537 irq 5 drq 3,1 on isa0

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: LOR on current as of last Friday

2003-01-27 Thread Alexander Pohoyda
I'm talking about TP600E and 4.7-STABLE (as of yesterday) here.

Just recompiled:

apog@oak:~$ grep csa /sys/conf/files
dev/sound/pci/csa.c optional csa pci
#dev/sound/pci/csa.coptional pcm pci
dev/sound/pci/csapcm.c  optional csa pcm pci
apog@oak:~$ grep pcm0 /sys/i386/conf/OAK 
device  pcm0at isa? port 0x530 irq 9 drq 1 flags 0x10
apog@oak:~$ grep pcm /var/run/dmesg.boot 
apog@oak:~$


ps2 ? audio
Enabled, Address 530, IRQ 9, DMA 0 - 1, SBAddress 220

ps2 ? midi
Enabled, Address 580, IRQ 5


No sound. Ideas?


-- 
Alexander Pohoyda
<[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: LOR on current as of last Friday

2003-01-27 Thread Alexander Pohoyda

Thanks for your suggestions! I will try it out.

> The sound on the 600 is different from the 600E and, while I know the
> magic was different on V4, I don't have any experience with it. Most
> likely you need adjustments to hints file.

Funny is that if I add some:
hint.pcm.0.at="isa"
...

to /boot/device.hints, I will get a line telling that
pcm0: failed to probe on 

...
and later
...
pcm1:  on isa0
device_probe_and_attach: pcm1 attach returned 6

Talking about 5.0-CURRENT here.


-- 
Alexander Pohoyda
<[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: LOR on current as of last Friday

2003-01-27 Thread Kevin Oberman
> Date: Mon, 27 Jan 2003 23:32:57 +0100 (CET)
> From: Alexander Pohoyda <[EMAIL PROTECTED]>
> Sender: [EMAIL PROTECTED]
> 
> 
> > The sound on the 600E is weird. It connect to both PCI and ISA for
> > different functions. As a result, I have to edit /sys/conf/files to
> > delete the csa pcm entry and add csa to the csapcm line.
> > 
> > dev/sound/pci/csa.c optional csa pci
> > #dev/sound/pci/csa.coptional pcm pci
> > dev/sound/pci/csamidi.c optional midi csa
> > dev/sound/pci/csapcm.c  optional csa pcm pci
> 
> Thanks! That's something new to me, will try it out.
> 
> devicepcm
> #options  PNPBIOS
> #device   csa
> 
> Right?
If you don't have PNPBIOS, you will need to add the ISA config info to
/boot/device.hints (V5.0) or the kernel config (V4):
hint.pcm.0.at-"isa"
hint.pcm.0.port="0x52c"
hint.pcm.0.irq="5"
hint.pcm.0.drq="1"
hint.pcm.0.flags="0x10"
or
device pcm0   at isa? port 0x52c irq 5 drq 1 flags 0x10 

> I've spent a whole day trying to make it working on 4.7-STABLE. No
> result. I have seen some very old messages on mobile@ about this
> sound card, but nothing helped.
> The best I can get is:
> csa0:  mem 0x5000-0x500f,0x5010-0x50100fff irq 5 at 
>device 6.0 on pci0
> csa: card is Unknown/invalid SSID (CS4610)
> pcm0:  on csa0
> pcm0: AC97 reset timed out.pcm0: ac97 codec invalid or not present (id == 0)
> device_probe_and_attach: pcm0 attach returned 6

This indicates the need to modify /sys/conf/files before building the
kernel. For V4 the changes are the same as for V5, but the csamidi.c
line is not present in V4. If dmesg contains a csa line, you don't
have files properly edited.

> Does it matter how you configure it with ps2.exe utility?
> Which settings are you running on?

You must enable the sound card and set the IRQ and DRQ with ps2, but
the required settings are hte default, so you really should not need
to change anything. Matthew Dodd tells me that he has fixed the sound
after resume problem that was in V4, but it didn't make 5.0-Release.
You will need to be running current to get it.

> > That's all it took to get sound to work on my 600E.
> 
> I am also not able to make sound working on TP600 with 5.0-CURRENT.
> There is CS4236 there. Pure ISA, AFAIK. Worked fine with 4.5-RELEASE.
> I would spend as much time as it needs to bring it to life. I'd
> appreciate any ideas how to preceed.

The sound on the 600 is different from the 600E and, while I know the
magic was different on V4, I don't have any experience with it. Most
likely you need adjustments to hints file.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]  Phone: +1 510 486-8634

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: LOR on current as of last Friday

2003-01-27 Thread Alexander Pohoyda

> The sound on the 600E is weird. It connect to both PCI and ISA for
> different functions. As a result, I have to edit /sys/conf/files to
> delete the csa pcm entry and add csa to the csapcm line.
> 
> dev/sound/pci/csa.c   optional csa pci
> #dev/sound/pci/csa.c  optional pcm pci
> dev/sound/pci/csamidi.c optional midi csa
> dev/sound/pci/csapcm.coptional csa pcm pci

Thanks! That's something new to me, will try it out.

device  pcm
#optionsPNPBIOS
#device csa

Right?


I've spent a whole day trying to make it working on 4.7-STABLE. No
result. I have seen some very old messages on mobile@ about this
sound card, but nothing helped.
The best I can get is:
csa0:  mem 0x5000-0x500f,0x5010-0x50100fff irq 5 at device 
6.0 on pci0
csa: card is Unknown/invalid SSID (CS4610)
pcm0:  on csa0
pcm0: AC97 reset timed out.pcm0: ac97 codec invalid or not present (id == 0)
device_probe_and_attach: pcm0 attach returned 6

Does it matter how you configure it with ps2.exe utility?
Which settings are you running on?


> That's all it took to get sound to work on my 600E.

I am also not able to make sound working on TP600 with 5.0-CURRENT.
There is CS4236 there. Pure ISA, AFAIK. Worked fine with 4.5-RELEASE.
I would spend as much time as it needs to bring it to life. I'd
appreciate any ideas how to preceed.


-- 
Alexander Pohoyda
<[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: LOR on current as of last Friday

2003-01-27 Thread Kevin Oberman
> Sender: [EMAIL PROTECTED]
> From: Alexander Pohoyda <[EMAIL PROTECTED]>
> Date: 27 Jan 2003 22:13:40 +0100
> 
> "Kevin Oberman" <[EMAIL PROTECTED]> writes:
> 
> > I am getting LORs on my ThinkPad 600e running current of 1/24. I don't
> > know if these have been previously reported, so I thought I'd send
> > them in.
> > 
> > lock order reversal
> >  1st 0xc20193f8 process lock (process lock) @ 
>/scratch/src/sys/kern/kern_descrip.c:2104
> >  2nd 0xc1ff7934 filedesc structure (filedesc structure) @ 
>/scratch/src/sys/kern/kern_descrip.c:2111
> 
> I am getting same messages on every start. IBM ThinkPad 600, 5.0-CURRENT.
> 
> 
> > lock order reversal
> >  1st 0xc1f4a040 pcm0 (sound softc) @ /scratch/src/sys/dev/sound/isa/mss.c:177
> >  2nd 0xc1f4a680 pcm0:play:0 (pcm channel) @ 
>/scratch/src/sys/dev/sound/pcm/channel.c:441
> 
> I'd wish to have sound working.. 
> On my second notebook (TP600E) I have a PCI sound card -- 0x1013 0x6001. Don't you?

The sound on the 600E is weird. It connect to both PCI and ISA for
different functions. As a result, I have to edit /sys/conf/files to
delete the csa pcm entry and add csa to the csapcm line.

dev/sound/pci/csa.c optional csa pci
#dev/sound/pci/csa.coptional pcm pci
dev/sound/pci/csamidi.c optional midi csa
dev/sound/pci/csapcm.c  optional csa pcm pci

One line is commented out and the final one is modified.

That's all it took to get sound to work on my 600E.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]  Phone: +1 510 486-8634

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: LOR on current as of last Friday

2003-01-27 Thread Alexander Pohoyda
"Kevin Oberman" <[EMAIL PROTECTED]> writes:

> I am getting LORs on my ThinkPad 600e running current of 1/24. I don't
> know if these have been previously reported, so I thought I'd send
> them in.
> 
> lock order reversal
>  1st 0xc20193f8 process lock (process lock) @ 
>/scratch/src/sys/kern/kern_descrip.c:2104
>  2nd 0xc1ff7934 filedesc structure (filedesc structure) @ 
>/scratch/src/sys/kern/kern_descrip.c:2111

I am getting same messages on every start. IBM ThinkPad 600, 5.0-CURRENT.


> lock order reversal
>  1st 0xc1f4a040 pcm0 (sound softc) @ /scratch/src/sys/dev/sound/isa/mss.c:177
>  2nd 0xc1f4a680 pcm0:play:0 (pcm channel) @ 
>/scratch/src/sys/dev/sound/pcm/channel.c:441

I'd wish to have sound working.. 
On my second notebook (TP600E) I have a PCI sound card -- 0x1013 0x6001. Don't you?


-- 
Alexander Pohoyda
<[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



LOR on current as of last Friday

2003-01-27 Thread Kevin Oberman
I am getting LORs on my ThinkPad 600e running current of 1/24. I don't
know if these have been previously reported, so I thought I'd send
them in.

lock order reversal
 1st 0xc20193f8 process lock (process lock) @ /scratch/src/sys/kern/kern_descrip.c:2104
 2nd 0xc1ff7934 filedesc structure (filedesc structure) @ 
/scratch/src/sys/kern/kern_descrip.c:2111
lock order reversal
 1st 0xc1f4a040 pcm0 (sound softc) @ /scratch/src/sys/dev/sound/isa/mss.c:177
 2nd 0xc1f4a680 pcm0:play:0 (pcm channel) @ 
/scratch/src/sys/dev/sound/pcm/channel.c:441

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]  Phone: +1 510 486-8634

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message