Re: Thinkpad CD-ROM hotplug with ATA_CAM

2011-09-16 Thread Boris Kochergin

On 09/14/11 12:15, Andriy Gapon wrote:

on 14/09/2011 18:11 Boris Kochergin said the following:

camcontrol rescan all

I think that this command may screw up communication between kernel and HDD from
which the OS runs.


It works under normal circumstances--I can run camcontrol rescan all 
on a system with ATA_CAM and the root filesystem isn't disturbed.



Perhaps using a specific bus number would work better.



Somewhat, but results are still undesirable. camcontrol rescan 1 (the 
CD-ROM is listed as being on scbus1) executes, stays in the cbwait state 
for 30 seconds, then the system locks up.


camcontrol reset 1 has the same behavior as camcontrol rescan all in 
that the system locks up instantly.


-Boris
___
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: Thinkpad CD-ROM hotplug with ATA_CAM

2011-09-16 Thread Andriy Gapon
on 16/09/2011 15:55 Boris Kochergin said the following:
 On 09/14/11 12:15, Andriy Gapon wrote:
 on 14/09/2011 18:11 Boris Kochergin said the following:
 camcontrol rescan all
 I think that this command may screw up communication between kernel and HDD 
 from
 which the OS runs.
 
 It works under normal circumstances--I can run camcontrol rescan all on a 
 system
 with ATA_CAM and the root filesystem isn't disturbed.
 
 Perhaps using a specific bus number would work better.

 
 Somewhat, but results are still undesirable. camcontrol rescan 1 (the 
 CD-ROM is
 listed as being on scbus1) executes, stays in the cbwait state for 30 seconds,
 then the system locks up.
 
 camcontrol reset 1 has the same behavior as camcontrol rescan all in that 
 the
 system locks up instantly.

Weird.  Can you provoke a panic when that happens?
Maybe you can contact mav@ directly and he'd be interested in debugging this 
case.


-- 
Andriy Gapon
___
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: Thinkpad CD-ROM hotplug with ATA_CAM

2011-09-16 Thread Kevin Oberman
On Fri, Sep 16, 2011 at 6:30 AM, Andriy Gapon a...@freebsd.org wrote:
 on 16/09/2011 15:55 Boris Kochergin said the following:
 On 09/14/11 12:15, Andriy Gapon wrote:
 on 14/09/2011 18:11 Boris Kochergin said the following:
 camcontrol rescan all
 I think that this command may screw up communication between kernel and HDD 
 from
 which the OS runs.

 It works under normal circumstances--I can run camcontrol rescan all on a 
 system
 with ATA_CAM and the root filesystem isn't disturbed.

 Perhaps using a specific bus number would work better.


 Somewhat, but results are still undesirable. camcontrol rescan 1 (the 
 CD-ROM is
 listed as being on scbus1) executes, stays in the cbwait state for 30 
 seconds,
 then the system locks up.

 camcontrol reset 1 has the same behavior as camcontrol rescan all in 
 that the
 system locks up instantly.

 Weird.  Can you provoke a panic when that happens?
 Maybe you can contact mav@ directly and he'd be interested in debugging this 
 case.

I fear that BIOS may have some issue. I have a T43 and found that, if
I booted with the DVD
installed, atacontrol (this was prior to ATA-CAM) would allow me to
detach, but if I then
inserted a hard drive and tried to attach it, the system would lock up.

If I booted with a hard drive in the bay, I could detach, change
drives, and attach with no
problems. I don't recall if I could replace the hard drive with a DVD,
though and I don't have
physical access to that system ATM. Still, this sounds rather similar
to what I saw and it
was unique to the T43. I have had several other ThinkPads, all of
which allow me to swap
out the DVD for a different drive including the T520 I am using to
enter this reply.
-- 
R. Kevin Oberman, Network Engineer - Retired
E-mail: kob6...@gmail.com
___
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: Thinkpad CD-ROM hotplug with ATA_CAM

2011-09-16 Thread Benjamin Kaduk

On Fri, 16 Sep 2011, Kevin Oberman wrote:



I fear that BIOS may have some issue. I have a T43 and found that, if
I booted with the DVD
installed, atacontrol (this was prior to ATA-CAM) would allow me to
detach, but if I then
inserted a hard drive and tried to attach it, the system would lock up.

If I booted with a hard drive in the bay, I could detach, change
drives, and attach with no
problems. I don't recall if I could replace the hard drive with a DVD,
though and I don't have
physical access to that system ATM. Still, this sounds rather similar
to what I saw and it
was unique to the T43. I have had several other ThinkPads, all of
which allow me to swap
out the DVD for a different drive including the T520 I am using to
enter this reply.


It's not entirely clear that this is relevant, but my T400 has very odd 
behavior with the CD drive either disappearing or taking a very long time 
to probe on warm boots.  Linux (or grub?  I don't remember.) also has some 
trouble finding the root device (hard disk) on warm boots, but FreeBSD 
does fine.


-Ben Kaduk
___
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


Thinkpad CD-ROM hotplug with ATA_CAM

2011-09-14 Thread Boris Kochergin

Ahoy.

I have some Thinkpad T40-T43s running -CURRENT (as recent as yesterday's 
sources) with ATA_CAM enabled. If I remove the CD-ROM and proceed to run 
camcontrol rescan all, the system hangs with the cursor still at the 
end of the the line. Is there a correct way of doing this, or does it 
just not work right now? Back in the old ATA days, I'd be able to detach 
the channel with atacontrol, remove the CD-ROM, and put it back without 
any trouble.


-Boris
___
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: Thinkpad CD-ROM hotplug with ATA_CAM

2011-09-14 Thread Andriy Gapon
on 14/09/2011 18:11 Boris Kochergin said the following:
 camcontrol rescan all

I think that this command may screw up communication between kernel and HDD from
which the OS runs.  Perhaps using a specific bus number would work better.

-- 
Andriy Gapon
___
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