Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2003 15:53:41 -0500
From:      Mikhail Teterin <mi+kde@aldan.algebra.com>
To:        questions@FreeBSD.org
Cc:        sam@FreeBSD.org
Subject:   problems with device detection on Vaio laptop
Message-ID:  <200312161553.41436@aldan>

next in thread | raw e-mail | index | archive | help
Hello!

I have some problems with this rather "loaded" laptop (dmesg.boot
attached).

As can be seen from dmesg.boot, neither the FireWire nor the WiFi are
enabled at boot:

	fwohci0: <Ricoh R5C551> mem 0xe0211000-0xe02117ff at device 5.1 on pci2
	fwohci0: latency timer 1 -> 32.
	fwohci0: cache size 12 -> 12.
	fwohci0: failed to enable memory mapping!
	fwohci0: Could not map memory
	device_probe_and_attach: fwohci0 attach returned 6
	[...]
	ath0: <Atheros 5212> mem 0xe0200000-0xe020ffff irq 9 at device 11.0 on pci2
	pcib1: device ath0 requested decoded memory range 0xe0200000-0xe020ffff
	ath0: cannot map register space

However, kldunload-ing the snd_ich module and then kldload-ing it back
leads to the following "reprobing", which finds the firewire device(s),
but, unfortunately, still leaves ath0 disabled:

	pcm0: detached
	pcm0: <Intel ICH4 (82801DB)> port 0x18c0-0x18ff,0x1c00-0x1cff mem
	0xe0100800-0xe01008ff,0xe0100c00-0xe0100dff irq 9 at device 31.5 on pci0
	pcm0: <Analog Devices AD1981B AC97 Codec (id = 0x41445374)>
	pcm0: Codec features headphone, 20 bit DAC, 5 bit master volume, no 3D
	Stereo Enhancement
	pcm0: Primary codec extended features variable rate PCM, AMAP, reserved 4
	pcm0: sndbuf_setmap 27b000, 4000; 0xd6c9c000 -> 27b000
	pcm0: sndbuf_setmap 29b000, 4000; 0xd6ca0000 -> 29b000
	pcm0: measured ac97 link rate at 48003 Hz, will use 48000 Hz
	fwohci0: <Ricoh R5C551> mem 0xe0211000-0xe02117ff at device 5.1 on pci2
	fwohci0: latency timer 32 -> 32.
	fwohci0: cache size 0 -> 8.
	pcib1: device fwohci0 requested decoded memory range
	0xe0211000-0xe02117ff
	pcib1: matched entry for 2.5.INTB (source \\_SB_.PCI0.LPCB.LNKG)
	pcib1: slot 5 INTB is routed to irq 9
	fwohci0: OHCI version 1.0 (ROM=1)
	fwohci0: No. of Isochronous channel is 4.
	fwohci0: EUI64 08:00:46:03:01:7a:95:99
	fwohci0: resetting OHCI...done (loop=0)
	fwohci0: fwphy_rddata: 0x2 loop=29, retry=0
	fwohci0: fwphy_rddata: 0x3 loop=1, retry=0
	fwohci0: Phy 1394a available S400, 2 ports.
	fwohci0: fwphy_rddata: 0x5 loop=1, retry=0
	fwohci0: Enable 1394a Enhancements
	fwohci0: fwphy_rddata: 0x5 loop=1, retry=0
	fwohci0: fwphy_rddata: 0x2 loop=1, retry=0
	fwohci0: fwphy_rddata: 0x4 loop=1, retry=0
	fwohci0: fwphy_rddata: 0x4 loop=1, retry=0
	fwohci0: fwphy_rddata: 0x4 loop=1, retry=0
	fwohci0: Link S400, max_rec 2048 bytes.
	fwohci0: BUS_OPT 0xf064a022 -> 0xf864a022
	fwohci0: fwohci_set_intr: 1
	firewire0: <IEEE1394(FireWire) bus> on fwohci0
	fwe0: <Ethernet over FireWire> on firewire0
	if_fwe0: Fake Ethernet address: 0a:00:46:7a:95:99
	fwe0: bpf attached
	sbp0: <SBP-2/SCSI over FireWire> on firewire0
	sbp_attach (cold=0)
	fwohci0: Initiate bus reset
	fwohci0: fwphy_rddata: 0x1 loop=1, retry=0
	fwohci0: fwphy_rddata: 0x1 loop=1, retry=0
	fwohci0: BUS reset
	sbp_post_busreset
	fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
	firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
	fwohci0: fw_set_bus_manager: 0->0 (loop=0)
	firewire0: bus manager 0 (me)
	send phy_config root_node=-1 gap_count=5
	fwohci0: maxdesc: 2
	fwohci0: start AT DMA status=0
	ath0: <Atheros 5212> mem 0xe0200000-0xe020ffff irq 9 at device 11.0 on pci2
	pcib1: device ath0 requested decoded memory range 0xe0200000-0xe020ffff
	ath0: cannot map register space
	device_probe_and_attach: ath0 attach returned 6
	Current DB 0
	ch = 0
	 Current OP   KEY INT BR   len     Addr   Depend Stat: Cnt
	0c725000 OUTL ST2 ALL ALL    12 00000000 0c725080 8411:0001 RUN,ACTIVE,
	ack complete(11)
	0x000000e0 0x00450000 0xffbaffff 0x00000000
	bus_explore done
	sbp_post_explore (sbp_cold=1)

Why is it neccessary to reload snd_ich to enable FW? What other
animal/bird to shake to enable the Atheros card?

Not as important, but no sound ever comes out, despite seemingly
reassuring detection and the content of the /dev/sndstat:

	FreeBSD Audio Driver (newpcm)
	Installed devices:
	pcm0: <CS423x> at io 0x534 irq 5 drq 1:0 bufsz 4096 (1p/1r/0v channels duplex 
default)

Thanks a lot for any clues!

	-mi



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