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
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
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
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
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:
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
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
"[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
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
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
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
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
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
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.
&
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
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
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
>
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
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
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
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
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
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
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;
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
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
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
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
:
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
42 matches
Mail list logo