login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
1
Re: regression breaks lowmem reserved RAM
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jens Axboe <jens.axboe@...>
To: Andrea Arcangeli <andrea@...>
Cc: Andrew Morton <akpm@...>, Yang Shi <yang.shi@...>, <linux-kernel@...>, <kvm-devel@...>
Subject:
Re: regression breaks lowmem reserved RAM
Date: Tuesday, April 1, 2008 - 8:45 am
On Tue, Apr 01 2008, Andrea Arcangeli wrote:
quoted text
> 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 <= (min_t(u64, 0xffffffff, BLK_BOUNCE_HIGH) >> PAGE_SHIFT)) > dma = 1 > > that will translate to: > > if (BLK_BOUNCE_HIGH <= BLK_BOUNCE_HIGH) > dma = 1 > > So for 99% of hardware this will trigger unnecessary GFP_DMA > allocations and isa pooling operations. > > Also note how the 32bit code still does b_pfn < 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 <andrea@qumranet.com>
Thanks Andrea, this looks much saner! -- Jens Axboe --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
regression breaks lowmem reserved RAM
, Andrea Arcangeli
, (Fri Mar 28, 3:49 pm)
Re: regression breaks lowmem reserved RAM
, Andrea Arcangeli
, (Tue Apr 1, 6:53 am)
Re: regression breaks lowmem reserved RAM
, Jens Axboe
, (Tue Apr 1, 8:45 am)
Re: regression breaks lowmem reserved RAM
, yshi
, (Tue Apr 1, 7:27 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Parag Warudkar
BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0]
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Arjan van de Ven
Re: [GIT]: Networking
David Miller
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
927 guests
online.
Online users
jessking1982
strcmp
muebcas98
Syndicate