Remove all legacy ATA code parts, Thu Apr 4, 7c2b81b0e97e507aa2b3b3fac77056edcdf18669

clutton clutton at zoho.com
Fri Dec 20 11:19:27 UTC 2013


On Thu, 2013-12-19 at 11:07 -0800, John-Mark Gurney wrote:
> clutton wrote this message on Mon, Dec 16, 2013 at 23:15 +0200:
> > On Mon, 2013-12-16 at 11:34 -0800, Adrian Chadd wrote:
> > > On 16 December 2013 01:37, clutton <clutton at zoho.com> wrote:
> > > > Hi list.
> > > >
> > > > The commit message says:
> > > >
> > > > «Remove all legacy ATA code parts, not used since options ATA_CAM
> > > > enabled in most kernels before FreeBSD 9.0.  Remove such modules and
> > > > respective kernel options: atadisk, ataraid, atapicd, atapifd, atapist,
> > > > atapicam.  Remove the atacontrol utility and some man pages.  Remove
> > > > useless now options ATA_CAM.»
> > > >
> > > > Question: How am I suppose to use my PC Card HDD now?
> > > > I used to use atadisk for this purpose before.
> > > 
> > > As long as it supports LBA, I think you'll be okay.
> > > 
> > > I noticed the CHS support is not quite .. correct. :(
> > 
> > Could you be more specific? I have a toshiba 2Gb pccard hdd.
> > Of course it should support LBA!
> > It doesn't appear as a device without the atadisk.
> > 
> > I used to mount this device from devd with those parameters
> 
> It should show up as a ada disk now...
> 
> If it isn't, please post a pciconf -lv and /var/run/dmesg.boot.
> 
> Thanks.

So, it doesn't. I can see only my ssd as a ada disk.

The device
http://www.ebay.com/itm/TOSHIBA-5-GB-PC-CARD-HARD-DRIVE-TYPE-2-PCMCIA-/111239699206?pt=US_External_Hard_Disk_Drives&hash=item19e6671b06
http://www.ebay.com/itm/Toshiba-MK-2001MPL-2-GB-Internal-4200-RPM-HDD1212-Hard-Drive-CASE-/301028910096?pt=UK_Computing_HardDrives_RL&hash=item4616b8a410

dmesg during boot:
cbb0: <RF5C476 PCI-CardBus Bridge> mem 0xf8100000-0xf8100fff irq 16 at
device 0.0 on pci21
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0


the dmesg after insertion (sysctl hw.cbb.debug=1):
cbb0: card inserted: event=0x00000000, state=30000810
cbb_pcic_socket_enable:
cbb0: cbb_power: 3V
pccard0: <unknown card> (manufacturer=0x0098, product=0x0000,
function_type=4) at function 0
pccard0:    CIS info: TOSHIBA, MK2001MPL 



lspci:
cbb0 at pci0:21:0:0:       class=0x060700 card=0x20c617aa chip=0x04761180
rev=0xba hdr=0x02
    vendor     = 'Ricoh Co Ltd'
    device     = 'RL5c476 II'
    class      = bridge 
    subclass   = PCI-CardBus

I used to use
sysctl hw.cbb.start_32_io=0x4000
systcl hw.cbb.start_memory=0xf4800000

kldload ataacard
kldload atadisk

Now:
kldload atacard && dmesg:

atapci0: <Intel ATA controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1830-0x183f at device 31.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0

kldunload atacard && dmesg:

ata0: detached
ata1: detached
atapci0: detached
pci0: <mass storage, ATA> at device 31.1 (no driver attached)

Any ideas?




More information about the freebsd-stable mailing list