Skip to contentSkip to conversation

Patch for ALI15x3 - Linux-MIPS kernel 2.4.22-rc3

PATCH Jack Miller 4 participants 6 messages Nov 12, 2003 – Nov 13, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

Ralf,
Please apply this patch for the file drivers/ide/pci/alim15x3.c. It
fixes the LBA addressing mode for chip revisions <= 0xC4. Thank-You.

Regards,
Jack

alim15x3.c renamed from alim15x3.c.orig +1 -1
@@ -760,7 +760,7 @@
 	hwif->speedproc = &ali15x3_tune_chipset;
 
 	/* Don't use LBA48 on ALi devices before rev 0xC5 */
-	hwif->addressing = (m5229_revision <= 0xC4) ? 1 : 0;
+	hwif->addressing = (m5229_revision <= 0xC4) ? 0 : 1;
 
 	if (!hwif->dma_base) {
 		hwif->drives[0].autotune = 1;
#1 lore raw
Quoted 3 lines · Jack Miller

Ralf,
Please apply this patch for the file drivers/ide/pci/alim15x3.c. It
fixes the LBA addressing mode for chip revisions <= 0xC4. Thank-You.

It seems to break it not fix it.

addressing = 1 means no LBA48
addressing = 0 means LBA48

Alan

#2 lore raw

Alan,
I am not so sure of that. If you look at ide-disk.c:__ide_do_rw_disk(),
there is a local variable assignment statement:

  u8 lba48 = (drive->addressing = 1) ? 1 : 0;

So it would seem that the problem is elswhere ?

-Jack

Quoted 23 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Alan Cox
Sent: Wednesday, November 12, 2003 4:57 PM
To: Jack Miller
Cc: Ralf Baechle; Linux-MIPS
Subject: Re: Patch for ALI15x3 - Linux-MIPS kernel 2.4.22-rc3

Quoted 3 lines · Jack Miller

Ralf,
Please apply this patch for the file drivers/ide/pci/alim15x3.c. It
fixes the LBA addressing mode for chip revisions <= 0xC4. Thank-You.

It seems to break it not fix it.

addressing = 1 means no LBA48
addressing = 0 means LBA48

Alan

#3 lore raw

On Wed, 2003-11-12 17:13:53 -0800, Jack Miller <[email protected]> wrote in message <[email protected]>:

Quoted 5 lines

Alan,
I am not so sure of that. If you look at ide-disk.c:__ide_do_rw_disk(),
there is a local variable assignment statement:

  u8 lba48 = (drive->addressing = 1) ? 1 : 0;
                                 ^^^

Explode. Now, lba48 would _always_ be 1.

MfG, JBG

Signature · 4 lines
   Jan-Benedict Glaw       [email protected]    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
#4 lore raw

Sorry for the typo in the transcription, the source code is correct
regarding the test and assignment.

Quoted 33 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Jan-Benedict Glaw
Sent: Thursday, November 13, 2003 12:59 AM
To: Linux-MIPS
Subject: Re: Patch for ALI15x3 - Linux-MIPS kernel 2.4.22-rc3

On Wed, 2003-11-12 17:13:53 -0800, Jack Miller <[email protected]>
wrote in message <[email protected]>:

Quoted 2 lines

Alan,
I am not so sure of that. If you look at

ide-disk.c:__ide_do_rw_disk(),

Quoted 3 lines

there is a local variable assignment statement:

  u8 lba48 = (drive->addressing = 1) ? 1 : 0;
                                 ^^^

Explode. Now, lba48 would _always_ be 1.

MfG, JBG

--

   Jan-Benedict Glaw       [email protected]    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur |

Gegen Krieg
fuer einen Freien Staat voll Freier Bürger" | im Internet! |
im Irak!
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW |
DRM | TCPA));

#5 lore raw
In reply to Jack Miller
Quoted 7 lines · Jack Miller

Alan,
I am not so sure of that. If you look at ide-disk.c:__ide_do_rw_disk(),
there is a local variable assignment statement:

  u8 lba48 = (drive->addressing = 1) ? 1 : 0;

So it would seem that the problem is elswhere ?

drive and hwif->addressing are different. (Not my idea don't blame me!)

In the last code I did before going on sabattical its all become a bit irrelevant as I implemented the notion of lba48 pio-only