From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.lixom.net (lixom.net [66.141.50.11]) by ozlabs.org (Postfix) with ESMTP id 66E6F67E35 for ; Sat, 11 Nov 2006 08:23:55 +1100 (EST) Date: Fri, 10 Nov 2006 15:23:10 -0600 From: Olof Johansson To: Geoff Levand Subject: Re: [PATCH 7/16] powerpc: add support for ps3 platform Message-ID: <20061110152310.7419ef3e@pb15> In-Reply-To: <4554DACB.8060809@am.sony.com> References: <4554DACB.8060809@am.sony.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, Just a couple of small comments, I haven't had time to get deeper into the patchset yet. :-) On Fri, 10 Nov 2006 12:02:19 -0800 Geoff Levand wrote: > This adds the core platform support for the PS3 game console and other > platforms using the PS3 Platform hypervisor. > > > Signed-off-by: Geoff Levand > > --- > MAINTAINERS | 7 > arch/powerpc/Kconfig | 11 > arch/powerpc/platforms/Makefile | 1 > arch/powerpc/platforms/ps3pf/Kconfig | 32 + Why are you naming the platform "platform" as in "this is the ps3pf platform" which expands to "this is the ps3 platform platform"? ps3 is quite adequate as the platform name. :-) > +config PS3PF_HTAB_SIZE > + depends on PS3PF > + int "PS3 Platform pagetable size" > + range 18 20 > + default 20 > + help > + This option is only for experts who may have the desire to fine > + tune the pagetable size on their system. The value here is > + expressed as the log2 of the page table size. Valid values are > + 18, 19, and 20, corresponding to 256KB, 512KB and 1MB respectively. > + > + If unsure, choose the default (20) with the confidence that your > + system will have optimal runtime performance. Wouldn't it be more understandable if you had a "small/medium/large" memory config options (that in itself sets the values) instead of having people pick numbers? > + result = dma_region_create(r); > + > + if (result) { > + pr_debug("%s:%d: ps3pf_dma_region_create failed\n", > + __func__, __LINE__); > + BUG(); > + } You have lots of these. please do BUG_ON(result) instead. :-) -Olof