From owner-freebsd-stable@FreeBSD.ORG Fri Dec 20 17:51:38 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B767EE80 for ; Fri, 20 Dec 2013 17:51:38 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 91B0119CD for ; Fri, 20 Dec 2013 17:51:38 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id rBKHpUJj064411 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Dec 2013 09:51:30 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id rBKHpTXJ064410; Fri, 20 Dec 2013 09:51:29 -0800 (PST) (envelope-from jmg) Date: Fri, 20 Dec 2013 09:51:29 -0800 From: John-Mark Gurney To: clutton Subject: Re: Remove all legacy ATA code parts, Thu Apr 4, 7c2b81b0e97e507aa2b3b3fac77056edcdf18669 Message-ID: <20131220175129.GY99167@funkthat.com> Mail-Followup-To: clutton , freebsd-stable References: <1387186669.2370.7.camel@eva02.mbsd> <1387228548.1944.15.camel@eva02.mbsd> <20131219190707.GU99167@funkthat.com> <1387538322.8658.31.camel@eva02.mbsd> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1387538322.8658.31.camel@eva02.mbsd> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Fri, 20 Dec 2013 09:51:30 -0800 (PST) Cc: freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2013 17:51:38 -0000 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 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: mem 0xf8100000-0xf8100fff irq 16 at > device 0.0 on pci21 > cardbus0: 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: (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: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1830-0x183f at device 31.1 on pci0 > ata0: at channel 0 on atapci0 > ata1: at channel 1 on atapci0 > > kldunload atacard && dmesg: > > ata0: detached > ata1: detached > atapci0: detached > pci0: 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."