Date: Sat, 13 Aug 2005 11:26:22 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= <sos@FreeBSD.org> To: Vadim Chekan <vchekan@cox.net> Cc: current@FreeBSD.org Subject: Re: [Patch] Serial ATAPI is not recognized Message-ID: <DABE4116-EE59-463C-8AB6-D4E2F66B9E64@FreeBSD.org> In-Reply-To: <42FCE289.4070901@cox.net> References: <42FBEA3A.5090809@cox.net> <22CD48F3-747D-48EB-A5CF-633FB78BCA8D@FreeBSD.org> <42FCE289.4070901@cox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12/08/2005, at 19:55, Vadim Chekan wrote: > Søren Schmidt wrote: >> >> SATA/ATAPI is not supported yet, and the above patch is by far >> not enough for all systems to work. >> In fact you are just lucky on your system, for the heck of it I >> tried it here and my test system lost all its SATA disks :) >> Support is in the works and will hit -current when its stable >> enough for general usage.... >> > Then I'll be one of the first who check this support. > Thanks for your job! > > BTW, I was a little bit puzzled by the code in > ata-chipset.c:ata_achi_allocate() > /* XXX SOS this is a hack to satisfy various legacy cruft */ > ch->r_io[ATA_CYL_LSB].res = ctlr->r_res2; > ch->r_io[ATA_CYL_LSB].offset = ATA_AHCI_P_SIG + 1 + offset; > ch->r_io[ATA_CYL_LSB].res = ctlr->r_res2; > ch->r_io[ATA_CYL_MSB].offset = ATA_AHCI_P_SIG + 3 + offset; > > > If I understand the logic of the code correct, in the line before > last should be ATA_CYL_MSB, not ATA_CYL_LSB. Looks like it's typo > and ch->r_io[ATA_CYL_MSB].res is never initialized by this code. > Neither I can find where it is initialized at all. But somehow it > works !? Thats a bug alright, however its not used as the AHCI support doesn't understand ATAPI yet, so the code should newer be used (but it will fail to recon ATAPI devices). - Søren
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DABE4116-EE59-463C-8AB6-D4E2F66B9E64>
