lkml.org 
[lkml]   [2004]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: drivers/block/ub.c
    On Sun, 27 Jun 2004 00:46:53 +0200
    Oliver Neukum <oliver@neukum.org> wrote:

    > > +       /* XXX Can be done at init */
    > > +       scmd->cdb[0] = REQUEST_SENSE;
    > > +       scmd->cdb_len = 6;
    > > +       scmd->dir = UB_DIR_READ;
    > > +       scmd->state = UB_CMDST_INIT;
    > > +       scmd->data = sc->top_sense;
    >
    > You must allocate a separate buffer to the sense data.
    > We had similar code in hid which leads to data corruption
    > on some architectures. It's an issue of DMA coherency.

    I agree. This is also an issue for the work_bcs. I postponed doing it
    right because that area waits for changes regarding queueing and
    error processing in such case.

    -- Pete
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:04    [W:3.516 / U:0.924 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site