04 Jul, 2008

1 commit

  • This adds blk_queue_update_dma_pad to prevent LLDs from overwriting
    the dma pad mask wrongly (we added blk_queue_update_dma_alignment due
    to the same reason).

    This also converts libata to use blk_queue_update_dma_pad instead of
    blk_queue_dma_pad.

    Signed-off-by: FUJITA Tomonori
    Cc: Tejun Heo
    Cc: Bartlomiej Zolnierkiewicz
    Cc: Thomas Bogendoerfer
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Jens Axboe

    FUJITA Tomonori
     

15 May, 2008

1 commit

  • As setting and clearing queue flags now requires that we hold a spinlock
    on the queue, and as blk_queue_stack_limits is called without that lock,
    get the lock inside blk_queue_stack_limits.

    For blk_queue_stack_limits to be able to find the right lock, each md
    personality needs to set q->queue_lock to point to the appropriate lock.
    Those personalities which didn't previously use a spin_lock, us
    q->__queue_lock. So always initialise that lock when allocated.

    With this in place, setting/clearing of the QUEUE_FLAG_PLUGGED bit will no
    longer cause warnings as it will be clear that the proper lock is held.

    Thanks to Dan Williams for review and fixing the silly bugs.

    Signed-off-by: NeilBrown
    Cc: Dan Williams
    Cc: Jens Axboe
    Cc: Alistair John Strachan
    Cc: Nick Piggin
    Cc: "Rafael J. Wysocki"
    Cc: Jacek Luczak
    Cc: Prakash Punnoor
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Neil Brown
     

01 May, 2008

1 commit


29 Apr, 2008

2 commits


02 Apr, 2008

1 commit

  • Looking a bit closer into this regression the reason this can't be
    right is that dma_addr common default is BLK_BOUNCE_HIGH and most
    machines have less than 4G. So if you do:

    if (b_pfn > PAGE_SHIFT))
    dma = 1

    that will translate to:

    if (BLK_BOUNCE_HIGH < blk_max_low_pfn.

    I guess this is what you were looking after. I didn't verify but as
    far as I can tell, this will stop the regression with isa dma
    operations at boot for 99% of blkdev/memory combinations out there and
    I guess this fixes the setups with >4G of ram and 32bit pci cards as
    well (this also retains symmetry with the 32bit code).

    Signed-off-by: Andrea Arcangeli
    Signed-off-by: Jens Axboe

    Andrea Arcangeli
     

04 Mar, 2008

4 commits


19 Feb, 2008

2 commits


01 Feb, 2008

1 commit


30 Jan, 2008

1 commit