login
Header Space

 
 

Re: [PATCH 1/2 v2] Driver for Freescale 8610 and 5121 DIU

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: York Sun <yorksun@...>, <linux-kernel@...>, <linuxppc-dev@...>, <galak@...>, <linux-fbdev-devel@...>, Peter Zijlstra <a.p.zijlstra@...>
Date: Monday, March 24, 2008 - 10:53 am

Andrew Morton wrote:


Well, maybe we don't want GFP_ATOMIC then, because I don't think we want
__GFP_HIGH.  Looking at the code, it appears the __GFP_HIGH has nothing to do
with HIGHMEM (which on PowerPC is the not 1-to-1 mapping memory from 0xF000000
to 0xFFFFFFFF).  Further examination of the cools shows the __GFP_HIGH says to
try access the "emergency pool", and I see this code snippet:

	if (alloc_flags & ALLOC_HIGH)
		min -= min / 2;

I guess this means that we reduce the amount of memory that can be available in
order for the allocate to succeed.

Considering that the amount of memory that we allocate is in the order of
megabytes, and it really isn't that important, I would think that we don't want
to touch the emergency pool.  Does that sound right?

-- 
Timur Tabi
Linux kernel developer at Freescale
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
v2 patch for Freescale DIU driver, York Sun, (Wed Mar 19, 2:50 pm)
Re: [PATCH 1/2 v2] Driver for Freescale 8610 and 5121 DIU, Andrew Morton, (Thu Mar 20, 6:27 pm)
Re: [PATCH 1/2 v2] Driver for Freescale 8610 and 5121 DIU, Andrew Morton, (Fri Mar 21, 2:12 pm)
Re: [PATCH 1/2 v2] Driver for Freescale 8610 and 5121 DIU, Timur Tabi, (Mon Mar 24, 10:53 am)
Re: [PATCH 1/2 v2] Driver for Freescale 8610 and 5121 DIU, Andrew Morton, (Mon Mar 24, 2:47 pm)
Re: [PATCH 1/2 v2] Driver for Freescale 8610 and 5121 DIU, Peter Zijlstra, (Thu Mar 20, 7:02 pm)
Re: [PATCH 2/2 v2] Add DIU platform code for MPC8610HPCD, Andrew Morton, (Thu Mar 20, 6:33 pm)
Re: [PATCH 2/2 v2] Add DIU platform code for MPC8610HPCD, Andy Whitcroft, (Tue Mar 25, 8:43 am)
Re: [PATCH 2/2 v2] Add DIU platform code for MPC8610HPCD, Andrew Morton, (Tue Mar 25, 3:18 pm)
speck-geostationary