[lkml]   [2008]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 5/5] falconide/q40ide: add ->atapi_*put_bytes and ->ata_*put_data methods
    On Sun, 30 Mar 2008, Bartlomiej Zolnierkiewicz wrote:
    > On Sunday 30 March 2008, Geert Uytterhoeven wrote:
    > > On Sun, 30 Mar 2008, Bartlomiej Zolnierkiewicz wrote:
    > > > * Add ->atapi_{in,out}put_bytes and ->ata_{in,out}put_data methods to
    > > > falconide and q40ide host drivers (->ata_* methods are implemented on
    > > > top of ->atapi_* methods so they also do byte-swapping now).
    > > >
    > > > * Cleanup atapi_{in,out}put_bytes().
    > >
    > > Thanks!
    > >
    > > One remaining issue (for which the fix has never been submitted upstream so
    > > far) with Atari and Q40 is that due to the byteswapped interface, the driveid
    > > is also byteswapped, so it has to be unswapped again in ide_fix_driveid().
    > My patch causes unswapping for _all_ data coming from the device so I wonder
    > whether the ide_fix_driveid() fix is still needed?

    I'll give it a try on Aranym...

    > [ I now recall some discussion that we shouldn't un-swap fs requests because
    > of how the things were done in the past fs itself is stored byte-swapped on
    > the disk - if this is the case I will recast the patch to pass rq to
    > ->ata_*put_data in ide_pio_sector() and check rq->cmd_type == REQ_TYPE_FS
    > in falconide/q40ide_*put_data() to decide whether to unswap data or not ]

    Yes, the data on the disk is stored byte-swapped.
    So it's only the drive ID and packet commands that should be swapped.



    Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

    In personal conversations with technical people, I call myself a hacker. But
    when I'm talking to journalists I just say "programmer" or something like that.
    -- Linus Torvalds

     \ /
      Last update: 2008-03-31 07:57    [W:0.020 / U:55.656 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site