From: Andries Brouwer <email@example.com> To: Walt H <firstname.lastname@example.org> Cc: Andries Brouwer <email@example.com>, Alan Cox <firstname.lastname@example.org>, email@example.com, Linux Kernel Mailing List <firstname.lastname@example.org>, email@example.com Subject: Re: [PATCH] pdcraid and weird IDE geometry Date: Fri, 18 Jul 2003 10:58:10 +0200 [thread overview] Message-ID: <20030718105810.A2925@pclin040.win.tue.nl> (raw) In-Reply-To: <3F175C5C.firstname.lastname@example.org>; from email@example.com on Thu, Jul 17, 2003 at 07:33:00PM -0700 On Thu, Jul 17, 2003 at 07:33:00PM -0700, Walt H wrote: > OK. Just got home from work. I've tried booting and specifying geometry > via hdg=79780,16,63 hdg=noprobe etc... The geometry is accepted, > however, drive access fails when trying to read the disk. This geometry > is the geometry reported by hde (my old drive without screwy geometry). > The code in calc_pdcblock_offset to calculate the offset is unchanged > in my patch (except the date type conversion to float) and calls > get_info_ptr for geometry. I don't understand. Did you introduce some float? Remove it immediately. You just replace lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect)); lba = lba * (ideinfo->head*ideinfo->sect); lba = lba - ideinfo->sect; by lba = ideinfo->capacity - 63; Then everything works for you, I suppose. Subsequently we wait for other people with the same hardware and see how the 63 varies as a function of their setup. (Or maybe you can go into the BIOS and specify different translations yourself?) (By the way, didnt your boot parameters lead to ideinfo->head = 16 and ideinfo->sect = 63?) Andries
next prev parent reply other threads:[~2003-07-18 8:43 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-07-17 2:26 Walt H 2003-07-17 8:49 ` Arjan van de Ven 2003-07-17 14:37 ` Walt H 2003-07-17 14:58 ` Alan Cox 2003-07-17 15:34 ` Jeff Garzik 2003-07-17 16:03 ` Andries Brouwer 2003-07-17 15:34 ` Andries Brouwer 2003-07-18 2:33 ` Walt H 2003-07-18 8:58 ` Andries Brouwer [this message] 2003-07-18 13:56 ` Walt H 2003-07-17 12:19 ` David Zaffiro 2003-07-18 14:51 Walt H
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030718105810.A2925@pclin040.win.tue.nl \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: [PATCH] pdcraid and weird IDE geometry' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).