Re: SII SATA request size limit

From: Jens Axboe (axboe_at_suse.de)
Date: 09/15/03

  • Next message: Nick Urbanik: "Re: Debugging hard lockups (hardware?): Power Supply!"
    Date:	Mon, 15 Sep 2003 10:47:22 +0200
    To: Eduardo Casino <casino_e@terra.es>
    
    

    On Fri, Sep 12 2003, Eduardo Casino wrote:
    > Hi All,
    >
    > I had a look at the NetBSD pciide.c driver and found this interesting
    > bit of code:
    >
    > /*
    > * Rev. <= 0x01 of the 3112 have a bug that can cause data
    > * corruption if DMA transfers cross an 8K boundary. This is
    > * apparently hard to tickle, but we'll go ahead and play it
    > * safe.
    > */
    > if (PCI_REVISION(pa->pa_class) <= 0x01) {
    > sc->sc_dma_maxsegsz = 8192;
    > sc->sc_dma_boundary = 8192;
    > }
    >
    > This is basically the same as setting hwif->rqsize to 15, but the NetBSD

    You can do much much better than that, it's pretty simply to just
    restrict the segment size and boundary if you have a controller with
    such a bug. And then you get the benefit of the larger requests too,
    it's basically not a performance hit at that point.

    -- 
    Jens Axboe
    -
    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/
    

  • Next message: Nick Urbanik: "Re: Debugging hard lockups (hardware?): Power Supply!"

    Relevant Pages

    • Re: SII SATA request size limit
      ... I had a look at the NetBSD pciide.c driver and found this interesting ... This is basically the same as setting hwif->rqsize to 15, but the NetBSD ... This silly patch makes the siimage driver to set rqsize to 15 only for ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: My thoughts on the "new development model"
      ... |>>> 2.6 tree is great for gentoo users who like gcc consuming all CPU ... |>> that after a month or so of fixes etc it will be a very stable kernel ... driver for 2.6.7 for an ADSL card; a development driver for 2.6.5 for a ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: sata related hang with linux-2.6
      ... IMHO there's something not quite right with the Silicon Image libata ... Perhaps the driver is enabling the hardware to generate interrupts ... before setting up the interrupt routine for it? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: SL811 problem on mach-pxa
      ... It was tested with _both_ workarounds for IRQ issues; ... unlike the predecessors to this driver). ... I've had reports that one of the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.7 (future kernel) wish
      ... > I've never seen one give a STOP error from that but I guess a bad driver ... I would like to see the HAL type crap for Linux. ... to have uniform user device control from a gui programmable means. ... 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/ ...
      (Linux-Kernel)