From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH 5/9] ps3: Preallocate bootmem memory for ps3fb From: Michael Ellerman To: Geert Uytterhoeven In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-mgCt+0uGL4wdtvkDOC7B" Date: Tue, 30 Jan 2007 13:29:17 +1100 Message-Id: <1170124157.19887.116.camel@concordia.ozlabs.ibm.com> Mime-Version: 1.0 Cc: Paul Mackerras , James Simmons , Linux Frame Buffer Device Development , Linux/PPC Development Reply-To: michael@ellerman.id.au List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=-mgCt+0uGL4wdtvkDOC7B Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2007-01-25 at 18:50 +0100, Geert Uytterhoeven wrote: > Preallocate bootmem memory for the PS3 frame buffer device, which needs a > large block of physically-contiguous memory. The size of this memory bloc= k is > configurable: > - The config option CONFIG_FB_PS3_DEFAULT_SIZE_M allows to specify the > default amount of memory (in MiB) allocated to the virtual frame buff= er. > - The early boot parameter `ps3fb=3Dxxx' allows to override the default= value. > It will be rounded up to a multiple of 1 MiB, if needed. >=20 > Signed-off-by: Geert Uytterhoeven > Signed-off-by: Geoff Levand Rather than doing the alloc in setup.c, defining a structure to the hold the params, and then exporting the structure - why don't you just do the alloc in the ps3 fb driver code, and have it all private in there? cheers --=20 Michael Ellerman OzLabs, IBM Australia Development Lab wwweb: http://michael.ellerman.id.au phone: +61 2 6212 1183 (tie line 70 21183) We do not inherit the earth from our ancestors, we borrow it from our children. - S.M.A.R.T Person --=-mgCt+0uGL4wdtvkDOC7B Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBFvq19dSjSd0sB4dIRAvtvAKCcMGFlUACDbMwG8Zve6uNY7MWvdACfWocn ZhfV5G0TXXLLxMorvMAJ/h0= =8EgF -----END PGP SIGNATURE----- --=-mgCt+0uGL4wdtvkDOC7B--