Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2013 09:51:29 -0800
From:      John-Mark Gurney <jmg@funkthat.com>
To:        clutton <clutton@zoho.com>
Cc:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: Remove all legacy ATA code parts, Thu Apr 4, 7c2b81b0e97e507aa2b3b3fac77056edcdf18669
Message-ID:  <20131220175129.GY99167@funkthat.com>
In-Reply-To: <1387538322.8658.31.camel@eva02.mbsd>
References:  <1387186669.2370.7.camel@eva02.mbsd> <CAJ-VmomeLGR6M4EvQSrX9JS37Hw79yCgZYSdEHzZkSVk-4_ZyA@mail.gmail.com> <1387228548.1944.15.camel@eva02.mbsd> <20131219190707.GU99167@funkthat.com> <1387538322.8658.31.camel@eva02.mbsd>

next in thread | previous in thread | raw e-mail | index | archive | help
clutton wrote this message on Fri, Dec 20, 2013 at 13:18 +0200:
> 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@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@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?

Nothing immediately jumps out...  It's hard to understand what is going
on w/ your system w/o the full dmesg and pciconf -lv...

What version of FreeBSD are you trying to run?

Can you try booting w/ bootverbose turned on? (boot -v) and try to
load atacard again?  And please send me complete (off-list is fine)
dmesg from the boot...  I just read the code, and it should attach as
function 4 means disk, and there is a catch all in the probe routine
that should attach to it...  So, it sounds like it isn't getting
probed, and hopefully the boot verbose will shed some light on it..

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



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