[PATCH 07/10] powerpc/ps3: Remove MEMORY_HOTPLUG requirement

2012-04-25 Thread Andre Heider
The dependency on hotplug memory was removed, so remove the dependency in the Kconfig. Signed-off-by: Andre Heider Signed-off-by: Geoff Levand --- arch/powerpc/platforms/ps3/Kconfig |1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/platforms/ps3/Kconfig b/arch/powerpc

[PATCH 04/10] powerpc/ps3: Add highmem repository read routines

2012-04-25 Thread Andre Heider
Add repository helper routines to read highmem region info. Bootloaders that preallocate highmem regions must place the region info into the repository at these well known nodes. These routines allow second stage kernles to read the region info from those nodes. Signed-off-by: Andre Heider CC

[PATCH 05/10] powerpc/ps3: Use highmem region from repository

2012-04-25 Thread Andre Heider
regions can be used to hold the initrd or other large data. If no region info exists, the kernel retains the old behavior and attempts to allocate the highmem region itself. Based on Hector Martin's patch "Get lv1 high memory region from devtree". CC: Hector Martin Signed-off-b

[PATCH part1 v2 9/9] ps3: Only prealloc the flash bounce buffer for the OtherOS lpar

2011-08-11 Thread Andre Heider
It's only used by the ps3flash driver, which only supports the OtherOS lpar. Signed-off-by: Andre Heider --- arch/powerpc/platforms/ps3/setup.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/se

[PATCH part1 v2 8/9] ps3flash: Refuse to work in lpars other than OtherOS

2011-08-11 Thread Andre Heider
The driver implements a character and misc device, meant for the axed OtherOS to exchange various settings with GameOS. Since Firmware 3.21 there is no support anymore to write these settings, so test if we're running in OtherOS, and refuse to load if that is not the case. Signed-off-by:

[PATCH part1 v2 7/9] ps3: Log the detected lpar on startup

2011-08-11 Thread Andre Heider
Add PS3_SS_LAID_GAMEOS to enum ps3_ss_laid. Signed-off-by: Andre Heider --- arch/powerpc/include/asm/ps3.h |1 + arch/powerpc/platforms/ps3/setup.c | 13 + 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/ps3.h b/arch/powerpc/include

[PATCH part1 v2 6/9] ps3: Detect the current lpar

2011-08-11 Thread Andre Heider
Detect it by reading the ss laid repository node, and make it accessible via ps3_get_ss_laid(). Signed-off-by: Andre Heider --- arch/powerpc/include/asm/ps3.h |6 ++ arch/powerpc/platforms/ps3/platform.h |4 arch/powerpc/platforms/ps3/repository.c | 19

[PATCH part1 v2 3/9] ps3: Get lv1 high memory region from the repository

2011-08-11 Thread Andre Heider
"[PS3] Get lv1 high memory region from devtree" from Hector Martin Signed-off-by: Andre Heider --- arch/powerpc/platforms/ps3/mm.c | 46 -- 1 files changed, 43 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/ps3/mm.c b/arch/powerp

[PATCH part1 v2 5/9] ps3: MEMORY_HOTPLUG is not a requirement anymore

2011-08-11 Thread Andre Heider
Signed-off-by: Andre Heider --- arch/powerpc/platforms/ps3/Kconfig |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/ps3/Kconfig b/arch/powerpc/platforms/ps3/Kconfig index 476d9d9..84df5c8 100644 --- a/arch/powerpc/platforms/ps3/Kconfig +++ b/arch

[PATCH part1 v2 4/9] Add region 1 memory early

2011-08-11 Thread Andre Heider
From: Hector Martin Real mode memory can be limited and runs out quickly as memory is allocated during kernel startup. Having region1 available sooner fixes this. Signed-off-by: Hector Martin [a.heider: Various cleanups to make checkpatch.pl happy] Signed-off-by: Andre Heider --- arch

[PATCH part1 v2 2/9] ps3: Add helper functions to read highmem info from the repository

2011-08-11 Thread Andre Heider
An earlier step in the boot chain can preallocate the highmem region. A boot loader doing so will place the region infos in the repository. Provide helper functions to read the required nodes. Signed-off-by: Andre Heider --- arch/powerpc/platforms/ps3/platform.h |3 ++ arch/powerpc

[PATCH part1 v2 1/9] Add udbg driver using the PS3 gelic Ethernet device

2011-08-11 Thread Andre Heider
From: Hector Martin Signed-off-by: Hector Martin [a.heider: Various cleanups to make checkpatch.pl happy] Signed-off-by: Andre Heider --- arch/powerpc/Kconfig.debug |8 + arch/powerpc/include/asm/udbg.h |1 + arch/powerpc/kernel/udbg.c |2 + arch

[PATCH part1 v2 0/9] ps3: General improvements and preparation for support more than the OtherOS lpar

2011-08-11 Thread Andre Heider
Linus' tree. Andre Heider (7): ps3: Add helper functions to read highmem info from the repository ps3: Get lv1 high memory region from the repository ps3: MEMORY_HOTPLUG is not a requirement anymore ps3: Detect the current lpar ps3: Log the detected lpar on startup ps3flash: Refuse

Re: [Cbe-oss-dev] [PATCH 00/15] ps3: Support more than the OtherOS lpar

2011-08-11 Thread Andre Heider
On Thu, Aug 11, 2011 at 2:17 PM, Arnd Bergmann wrote: > On Monday 01 August 2011, Andre Heider wrote: >> This series addresses various issues and extends support when running >> in lpars like GameOS. Included are some patches from Hector Martin, which >> I found useful. &

Re: [Cbe-oss-dev] [PATCH 01/15] [PS3] Add udbg driver using the PS3 gelic Ethernet device

2011-08-11 Thread Andre Heider
On Thu, Aug 11, 2011 at 2:13 PM, Arnd Bergmann wrote: > On Thursday 04 August 2011, Geoff Levand wrote: >> > + * >> > + * udbg debug output routine via GELIC UDP broadcasts >> > + * Copyright (C) 2010 Hector Martin >> > + * Copyright (C) 2011 Andre Heide

Re: [Cbe-oss-dev] [PATCH 09/15] ps3: Limit the number of regions per storage device

2011-08-06 Thread Andre Heider
On Sat, Aug 6, 2011 at 2:28 PM, Andre Heider wrote: > On Mon, Aug 1, 2011 at 10:58 PM, Andre Heider wrote: >> On Mon, Aug 1, 2011 at 10:30 PM, Geert Uytterhoeven >> wrote: >>> On Mon, Aug 1, 2011 at 22:03, Andre Heider wrote: >>>> There can be only 8 regions

Re: [Cbe-oss-dev] [PATCH 07/15] ps3flash: Refuse to work in lpars other than OtherOS

2011-08-06 Thread Andre Heider
On Thu, Aug 4, 2011 at 9:27 PM, Geert Uytterhoeven wrote: > On Thu, Aug 4, 2011 at 18:40, Andre Heider wrote: >> On Thu, Aug 4, 2011 at 12:34 AM, Geoff Levand wrote: >>> On 08/01/2011 01:02 PM, Andre Heider wrote: >>>> --- a/drivers/char/ps3flash.c >

Re: [Cbe-oss-dev] [PATCH 09/15] ps3: Limit the number of regions per storage device

2011-08-06 Thread Andre Heider
On Mon, Aug 1, 2011 at 10:58 PM, Andre Heider wrote: > On Mon, Aug 1, 2011 at 10:30 PM, Geert Uytterhoeven > wrote: >> On Mon, Aug 1, 2011 at 22:03, Andre Heider wrote: >>> There can be only 8 regions, add a sanity check >> >> Why can there be only 8 regions? &g

Re: [PATCH 02/15] [PS3] Get lv1 high memory region from devtree

2011-08-06 Thread Andre Heider
On Thu, Aug 4, 2011 at 9:24 PM, Geoff Levand wrote: > Also, it needs to be considered that a lot of kernels are out > there will be confused if started with high mem already allocated. True, but is there anything we can do about that? Isn't is okay to tell users of first stage boot loaders utiliz

Re: [PATCH 07/15] ps3flash: Refuse to work in lpars other than OtherOS

2011-08-04 Thread Andre Heider
On Thu, Aug 4, 2011 at 12:34 AM, Geoff Levand wrote: > On 08/01/2011 01:02 PM, Andre Heider wrote: >> The driver implements a character and misc device, meant for the >> axed OtherOS to exchange various settings with GameOS. >> Since Firmware 3.21 there is no GameOS support a

Re: [PATCH 01/15] [PS3] Add udbg driver using the PS3 gelic Ethernet device

2011-08-04 Thread Andre Heider
On Thu, Aug 4, 2011 at 12:32 AM, Geoff Levand wrote: > On 08/01/2011 01:02 PM, Andre Heider wrote: >> --- /dev/null >> +++ b/arch/powerpc/platforms/ps3/gelic_udbg.c >> @@ -0,0 +1,272 @@ >> +/* >> + * arch/powerpc/platforms/ps3/gelic_udbg.c > > Don't

Re: [PATCH 05/15] ps3: Detect the current lpar environment

2011-08-04 Thread Andre Heider
On Thu, Aug 4, 2011 at 12:31 AM, Geoff Levand wrote: > On 08/01/2011 01:02 PM, Andre Heider wrote: >> --- >>  arch/powerpc/include/asm/ps3.h          |    7 +++ >>  arch/powerpc/platforms/ps3/platform.h   |    4 >>  arch/powerpc/platfo

Re: [PATCH 00/15] ps3: Support more than the OtherOS lpar

2011-08-04 Thread Andre Heider
Hi Geoff, On Thu, Aug 4, 2011 at 12:23 AM, Geoff Levand wrote: > Hi Andre, > > On 08/01/2011 01:02 PM, Andre Heider wrote: >> This series addresses various issues and extends support when running >> in lpars like GameOS. Included are some patches from Hector Martin, wh

Re: [PATCH 10/15] ps3stor_lib: Add support for multiple regions

2011-08-01 Thread Andre Heider
On Mon, Aug 1, 2011 at 10:35 PM, Geert Uytterhoeven wrote: > On Mon, Aug 1, 2011 at 22:03, Andre Heider wrote: >>        priv->gendisk = gendisk; >> + >> +       /* find first accessible region */ >> +       for (region_idx = 0; region_idx < dev->num_regions;

Re: [Cbe-oss-dev] [PATCH 09/15] ps3: Limit the number of regions per storage device

2011-08-01 Thread Andre Heider
On Mon, Aug 1, 2011 at 10:30 PM, Geert Uytterhoeven wrote: > On Mon, Aug 1, 2011 at 22:03, Andre Heider wrote: >> There can be only 8 regions, add a sanity check > > Why can there be only 8 regions? I believe lv1 limits it to 8? I might be mistaken here, it mostly is a check

Re: [Cbe-oss-dev] [PATCH 06/15] ps3flash: Fix region align checks

2011-08-01 Thread Andre Heider
On Mon, Aug 1, 2011 at 10:29 PM, Geert Uytterhoeven wrote: > On Mon, Aug 1, 2011 at 22:02, Andre Heider wrote: >> The region fields used by the align checks are set in >> ps3stor_setup(), so move those after that call. > > Are you sure? > Aren't they set in > a

[PATCH 15/15] ps3: Add a NOR FLASH driver for PS3s without NAND

2011-08-01 Thread Andre Heider
A gendisk for each accessible region is created, and a default set of region flags is provided - overwritable via a module param array. Signed-off-by: Andre Heider --- arch/powerpc/include/asm/ps3.h |2 + arch/powerpc/platforms/ps3/Kconfig | 15 + arch/powerpc/platforms

[PATCH 14/15] ps3: Add a vflash driver for lpars other than OtherOS

2011-08-01 Thread Andre Heider
This driver refuses to work on OtherOS, and hence complements the ps3flash driver - which only works on OtherOS. A gendisk for each accessible region is created, and a default set of region flags is provided - overwritable via a module param array. Signed-off-by: Andre Heider --- arch/powerpc

[PATCH 11/15] ps3disk: Provide a gendisk per accessible region

2011-08-01 Thread Andre Heider
: - only one region will be exposed as block device - the block device name stays the same Signed-off-by: Andre Heider --- drivers/block/ps3disk.c | 118 ++ 1 files changed, 77 insertions(+), 41 deletions(-) diff --git a/drivers/block/ps3disk.c b

[PATCH 13/15] ps3disk: Use region flags

2011-08-01 Thread Andre Heider
Provide a set of default region flags and make them overwritable via a module parameter array. Set PS3_STORAGE_FLAG_SKIP_ACL for region 0, so it can be accessed from the GameOS lpar. Signed-off-by: Andre Heider --- drivers/block/ps3disk.c | 16 1 files changed, 16 insertions

[PATCH 12/15] ps3stor_lib: Add support for storage access flags

2011-08-01 Thread Andre Heider
Users can now set the access flags in the region struct. This is required for accessing the first region, or selecting an alternative decryption key for the vflash partitions. Signed-off-by: Andre Heider --- arch/powerpc/include/asm/ps3stor.h |8 +++- arch/powerpc/platforms/ps3

[PATCH 10/15] ps3stor_lib: Add support for multiple regions

2011-08-01 Thread Andre Heider
Users (ps3disk, ps3flash and ps3rom) retain the old behavior. That is: they still only provide access to the first accessible region. Signed-off-by: Andre Heider --- arch/powerpc/include/asm/ps3stor.h |4 ++-- drivers/block/ps3disk.c| 15 +-- drivers/char

[PATCH 08/15] ps3: Only prealloc the flash bounce buffer for the OtherOS lpar

2011-08-01 Thread Andre Heider
It's only used by the ps3flash driver, which only supports the OtherOS lpar. Signed-off-by: Andre Heider --- arch/powerpc/platforms/ps3/setup.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/se

[PATCH 09/15] ps3: Limit the number of regions per storage device

2011-08-01 Thread Andre Heider
There can be only 8 regions, add a sanity check Signed-off-by: Andre Heider --- arch/powerpc/include/asm/ps3stor.h |1 + arch/powerpc/platforms/ps3/device-init.c |8 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/ps3stor.h b/arch

[PATCH 04/15] ps3: MEMORY_HOTPLUG is not a requirement anymore

2011-08-01 Thread Andre Heider
Signed-off-by: Andre Heider --- arch/powerpc/platforms/ps3/Kconfig |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/ps3/Kconfig b/arch/powerpc/platforms/ps3/Kconfig index 476d9d9..84df5c8 100644 --- a/arch/powerpc/platforms/ps3/Kconfig +++ b/arch

[PATCH 07/15] ps3flash: Refuse to work in lpars other than OtherOS

2011-08-01 Thread Andre Heider
The driver implements a character and misc device, meant for the axed OtherOS to exchange various settings with GameOS. Since Firmware 3.21 there is no GameOS support anymore to write these settings, so limit the driver to the OtherOS environment. Signed-off-by: Andre Heider --- arch/powerpc

[PATCH 06/15] ps3flash: Fix region align checks

2011-08-01 Thread Andre Heider
The region fields used by the align checks are set in ps3stor_setup(), so move those after that call. Signed-off-by: Andre Heider --- drivers/char/ps3flash.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/char/ps3flash.c b/drivers

[PATCH 03/15] [PS3] Add region 1 memory early

2011-08-01 Thread Andre Heider
From: Hector Martin Signed-off-by: Hector Martin [a.heider: Various cleanups to make checkpatch.pl happy] Signed-off-by: Andre Heider --- arch/powerpc/platforms/ps3/mm.c | 62 +++ 1 files changed, 11 insertions(+), 51 deletions(-) diff --git a/arch

[PATCH 05/15] ps3: Detect the current lpar environment

2011-08-01 Thread Andre Heider
There is more than the OtherOS lpar the kernel can be launched in. Detect it by reading the ss laid repository node, and be verbose about it. Signed-off-by: Andre Heider --- arch/powerpc/include/asm/ps3.h |7 +++ arch/powerpc/platforms/ps3/platform.h |4 arch/powerpc

[PATCH 02/15] [PS3] Get lv1 high memory region from devtree

2011-08-01 Thread Andre Heider
igned-off-by: Hector Martin [a.heider: Various cleanups to make checkpatch.pl happy] Signed-off-by: Andre Heider --- arch/powerpc/platforms/ps3/mm.c | 61 +- 1 files changed, 59 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/ps3/mm.c b

[PATCH 01/15] [PS3] Add udbg driver using the PS3 gelic Ethernet device

2011-08-01 Thread Andre Heider
From: Hector Martin Signed-off-by: Hector Martin [a.heider: Various cleanups to make checkpatch.pl happy] Signed-off-by: Andre Heider --- arch/powerpc/Kconfig.debug |8 + arch/powerpc/include/asm/udbg.h |1 + arch/powerpc/kernel/udbg.c |2 + arch

[PATCH 00/15] ps3: Support more than the OtherOS lpar

2011-08-01 Thread Andre Heider
now If there're any issues! Thanks, Andre Andre Heider (12): ps3: MEMORY_HOTPLUG is not a requirement anymore ps3: Detect the current lpar environment ps3flash: Fix region align checks ps3flash: Refuse to work in lpars other than OtherOS ps3: Only prealloc the flash bounce buffer for