PS3 updates for Linux-3.5
Subsystems (2)
Geoff Levand
maintainerHi Ben,
I queued up the PS3 updates I have for v3.5. Please pull.
-Geoff
The following changes since commit 66f75a5d028beaf67c931435fdc3e7823125730c:
Linux 3.4-rc4 (2012-04-21 14:47:52 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git for-powerpc
for you to fetch changes up to 3252c8a3d0bf3c6af6ce7c76c40444943cda2943:
powerpc/ps3: Refresh ps3_defconfig (2012-04-24 18:18:01 -0700)
----------------------------------------------------------------
Andre Heider (3):
powerpc/ps3: Add highmem repository read routines powerpc/ps3: Use highmem region from repository powerpc/ps3: Remove MEMORY_HOTPLUG requirement
Geoff Levand (5):
powerpc/ps3: Correct lv1 repository routine names powerpc/ps3: Add PS3 repository write support powerpc/ps3: Add highmem repository write routines powerpc/ps3: Minor Kconfig cleanup powerpc/ps3: Refresh ps3_defconfig
Hector Martin (1):
powerpc/ps3: Add highmem region memory early
Valentin Ilie (1):
drivers/ps3: Fix checkpatch warnings in ps3av.c
arch/powerpc/configs/ps3_defconfig | 6 - arch/powerpc/include/asm/lv1call.h | 4 +- arch/powerpc/platforms/ps3/Kconfig | 22 +++- arch/powerpc/platforms/ps3/mm.c | 77 ++++++------ arch/powerpc/platforms/ps3/platform.h | 16 +++ arch/powerpc/platforms/ps3/repository.c | 198 +++++++++++++++++++++++++++++++ drivers/ps3/ps3av.c | 24 ++-- 7 files changed, 281 insertions(+), 66 deletions(-)
Andre Heider (3):
powerpc/ps3: Add highmem repository read routines powerpc/ps3: Use highmem region from repository powerpc/ps3: Remove MEMORY_HOTPLUG requirement
Geoff Levand (5):
powerpc/ps3: Correct lv1 repository routine names powerpc/ps3: Add PS3 repository write support powerpc/ps3: Add highmem repository write routines powerpc/ps3: Minor Kconfig cleanup powerpc/ps3: Refresh ps3_defconfig
Hector Martin (1):
powerpc/ps3: Add highmem region memory early
Valentin Ilie (1):
drivers/ps3: Fix checkpatch warnings in ps3av.c
arch/powerpc/configs/ps3_defconfig | 6 - arch/powerpc/include/asm/lv1call.h | 4 +- arch/powerpc/platforms/ps3/Kconfig | 22 +++- arch/powerpc/platforms/ps3/mm.c | 77 ++++++------ arch/powerpc/platforms/ps3/platform.h | 16 +++ arch/powerpc/platforms/ps3/repository.c | 198 +++++++++++++++++++++++++++++++ drivers/ps3/ps3av.c | 24 ++-- 7 files changed, 281 insertions(+), 66 deletions(-)
Signature · 1 line
1.7.9.5
Geoff Levand
maintainerPATCH 1/10 powerpc/ps3: Correct lv1 repository routine names
Rename these repo routines:
modify_repository_node_value => write_repository_node remove_repository_node => delete_repository_node
--- arch/powerpc/include/asm/lv1call.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/include/asm/lv1call.h +2 -2
@@ -265,8 +265,8 @@ LV1_CALL(get_spe_irq_outlet, 2, 1, 78 ) LV1_CALL(set_spe_privilege_state_area_1_register, 3, 0, 79 ) LV1_CALL(create_repository_node, 6, 0, 90 ) LV1_CALL(read_repository_node, 5, 2, 91 ) -LV1_CALL(modify_repository_node_value, 6, 0, 92 ) -LV1_CALL(remove_repository_node, 4, 0, 93 ) +LV1_CALL(write_repository_node, 6, 0, 92 ) +LV1_CALL(delete_repository_node, 4, 0, 93 ) LV1_CALL(read_htab_entries, 2, 5, 95 ) LV1_CALL(set_dabr, 2, 0, 96 )LV1_CALL (get_total_execution_time,2 ,1 ,103 )
Signature · 1 line
1.7.9.5
Geoff Levand
maintainerPATCH 2/10 powerpc/ps3: Add PS3 repository write support
In reply to Geoff LevandAdd a new config option CONFIG_PS3_REPOSITORY_WRITE that conditionally builds in support to create, write and delete nodes in the PS3 system repository.
This support will allow Linux based bootloaders to manage data in the system repository for use by later boot stages,
--- arch/powerpc/platforms/ps3/Kconfig | 13 +++++++ arch/powerpc/platforms/ps3/repository.c | 58 +++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+)
arch/powerpc/platforms/ps3/Kconfig +13 -0
@@ -88,6 +88,19 @@ config PS3_SYS_MANAGER This support is required for system control. In general, all users will say Y or M. +config PS3_REPOSITORY_WRITE + bool "PS3 Repository write support" if PS3_ADVANCED + depends on PPC_PS3 + default n + help + Enables support for writing to the PS3 System Repository. + + This support is intended for bootloaders that need to store data + in the repository for later boot stages. + + If in doubt, say N here and reduce the size of the kernel by a + small amount. + config PS3_STORAGE depends on PPC_PS3 tristate
arch/powerpc/platforms/ps3/repository.c +58 -0
64 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 4/10 powerpc/ps3: Add highmem repository read routines
In reply to Geoff LevandAdd 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.
--- arch/powerpc/platforms/ps3/platform.h | 7 ++++ arch/powerpc/platforms/ps3/repository.c | 66 +++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+)
arch/powerpc/platforms/ps3/platform.h +7 -0
@@ -188,6 +188,13 @@ int ps3_repository_read_rm_size(unsigned int ppe_id, u64 *rm_size);int ps3_repository_read_region_total (u64 *region_total);int ps3_repository_read_mm_info (u64 *rm_base,u64 *rm_size,u64 *region_total); +int ps3_repository_read_highmem_region_count (unsigned int *region_count); +int ps3_repository_read_highmem_base (unsigned int region_index, +u64 *highmem_base); +int ps3_repository_read_highmem_size (unsigned int region_index, +u64 *highmem_size); +int ps3_repository_read_highmem_info (unsigned int region_index, +u64 *highmem_base,u64 *highmem_size);int ps3_repository_write_highmem_region_count (unsigned int region_count); int ps3_repository_write_highmem_base(unsigned int region_index,
arch/powerpc/platforms/ps3/repository.c +66 -0
72 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 5/10 powerpc/ps3: Use highmem region from repository
In reply to Geoff LevandUse any preallocated highmem region setup by the bootloader. This implementation only checks for the existance of a single region at region_index=0.
This feature allows the bootloader to preallocate highmem regions and pass the region locations to the kernel through the repository. Preallocated 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".
--- arch/powerpc/platforms/ps3/mm.c | 51 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-)
arch/powerpc/platforms/ps3/mm.c +49 -2
@@ -79,12 +79,14 @@ enum {* @base: base address * @size: size in bytes * @offset: difference between base and rm.size +* @destroy: flag if region should be destroyed upon shutdown */ struct mem_region {u64 base;u64 size;unsigned long offset; +int destroy; };/**
@@ -262,6 +264,7 @@ static int ps3_mm_region_create(struct mem_region *r, unsigned long size) goto zero_region; } + r->destroy =1 ; r->offset = r->base - map.rm.size;return result;
@@ -279,7 +282,14 @@ static void ps3_mm_region_destroy(struct mem_region *r) {int result; +if (!r->destroy) { +pr_info ("%s:%d: Not destroying high region: %llxh %llxh\n" , + __func__, __LINE__, r->base, r->size); +return ; + } +DBG ("%s:%d: r->base = %llxh\n" , __func__, __LINE__, r->base); +if (r->base) { result =lv1_release_memory (r->base);BUG_ON (result);
@@ -288,6 +298,36 @@ static void ps3_mm_region_destroy(struct mem_region *r) } } +static int ps3_mm_get_repository_highmem (struct mem_region *r) +{ +int result; + +/* Assume a single highmem region. */ + + result =ps3_repository_read_highmem_info (0 , &r->base, &r->size); + +if (result) + goto zero_region; + +if (!r->base || !r->size) { + result =-1 ; + goto zero_region; + } + + r->offset = r->base - map.rm.size; + +DBG ("%s:%d: Found high region in repository: %llxh %llxh\n" , + __func__, __LINE__, r->base, r->size); + +return 0 ; + +zero_region: +DBG ("%s:%d: No high region in repository.\n" , __func__, __LINE__); + + r->size = r->base = r->offset =0 ; +return result; +} +/** * ps3_mm_add_memory - hot add memory */
@@ -304,6 +344,12 @@ static int __init ps3_mm_add_memory(void)BUG_ON (!mem_init_done); +if (!map.r1.size) { +DBG ("%s:%d: No region 1, not adding memory\n" , + __func__, __LINE__); +return 0 ; + } + start_addr = map.rm.size; start_pfn = start_addr >>PAGE_SHIFT ; nr_pages = (map.r1.size +PAGE_SIZE -1 ) >>PAGE_SHIFT ;
@@ -1217,9 +1263,10 @@ void __init ps3_mm_init(void)BUG_ON (map.rm.base);BUG_ON (!map.rm.size); +/* Check if we got the highmem region from an earlier boot step */ -/* arrange to do this in ps3_mm_add_memory */ -ps3_mm_region_create (&map.r1, map.total - map.rm.size); +if (ps3_mm_get_repository_highmem (&map.r1)) +ps3_mm_region_create (&map.r1, map.total - map.rm.size);/* correct map.total for the real total amount of memory we use */ map.total = map.rm.size + map.r1.size;
Signature · 1 line
1.7.9.5
Geoff Levand
maintainerPATCH 3/10 powerpc/ps3: Add highmem repository write routines
In reply to Geoff LevandAdd routines to allow Linux based bootloaders to create and/or modify highmem region info in the PS3 system repository where it can be retrived by later boot stages.
--- arch/powerpc/platforms/ps3/platform.h | 9 ++++ arch/powerpc/platforms/ps3/repository.c | 74 +++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+)
arch/powerpc/platforms/ps3/platform.h +9 -0
@@ -189,6 +189,15 @@ int ps3_repository_read_region_total(u64 *region_total);int ps3_repository_read_mm_info (u64 *rm_base,u64 *rm_size,u64 *region_total); +int ps3_repository_write_highmem_region_count (unsigned int region_count); +int ps3_repository_write_highmem_base (unsigned int region_index, +u64 highmem_base); +int ps3_repository_write_highmem_size (unsigned int region_index, +u64 highmem_size); +int ps3_repository_write_highmem_info (unsigned int region_index, +u64 highmem_base,u64 highmem_size); +int ps3_repository_delete_highmem_info (unsigned int region_index); +/* repository pme info */ int ps3_repository_read_num_be (unsigned int *num_be);
arch/powerpc/platforms/ps3/repository.c +74 -0
80 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 6/10 powerpc/ps3: Add highmem region memory early
In reply to Geoff LevandReal mode memory can be limited and runs out quickly as memory is allocated during kernel startup. Having the highmem available sooner fixes this.
This change simplifies the memory management code by converting from hotplug memory to logical memory blocks.
--- arch/powerpc/platforms/ps3/mm.c | 66 ++++++--------------------------------- 1 file changed, 10 insertions(+), 56 deletions(-)
arch/powerpc/platforms/ps3/mm.c +10 -56
@@ -20,7 +20,6 @@#include <linux/kernel.h> #include <linux/export.h> -#include <linux/memory_hotplug.h> #include <linux/memblock.h> #include <linux/slab.h>
@@ -98,7 +97,7 @@ struct mem_region {* The HV virtual address space (vas) allows for hotplug memory regions. * Memory regions can be created and destroyed in the vas at runtime. * @rm: real mode (bootmem) region -* @r1: hotplug memory region(s) +* @r1: highmem region(s) * * ps3 addresses * virt_addr: a cpu 'translated' effective address
@@ -224,10 +223,6 @@ void ps3_mm_vas_destroy(void) } } -/*============================================================================*/ -/* memory hotplug routines */ -/*============================================================================*/ -/** * ps3_mm_region_create - create a memory region in the vas * @r: pointer to a struct mem_region to accept initialized values
@@ -328,56 +323,6 @@ zero_region:return result; } -/** -* ps3_mm_add_memory - hot add memory -*/ - -static int __init ps3_mm_add_memory (void ) -{ -int result; -unsigned long start_addr; -unsigned long start_pfn; -unsigned long nr_pages; - -if (!firmware_has_feature (FW_FEATURE_PS3_LV1 )) -return -ENODEV ; - -BUG_ON (!mem_init_done); - -if (!map.r1.size) { -DBG ("%s:%d: No region 1, not adding memory\n" , - __func__, __LINE__); -return 0 ; - } - - start_addr = map.rm.size; - start_pfn = start_addr >>PAGE_SHIFT ; - nr_pages = (map.r1.size +PAGE_SIZE -1 ) >>PAGE_SHIFT ; - -DBG ("%s:%d: start_addr %lxh, start_pfn %lxh, nr_pages %lxh\n" , - __func__, __LINE__, start_addr, start_pfn, nr_pages); - - result =add_memory (0 , start_addr, map.r1.size); - -if (result) { -pr_err ("%s:%d: add_memory failed: (%d)\n" , - __func__, __LINE__, result); -return result; - } - -memblock_add (start_addr, map.r1.size); - - result =online_pages (start_pfn, nr_pages); - -if (result) -pr_err ("%s:%d: online_pages failed: (%d)\n" , - __func__, __LINE__, result); - -return result; -} - -device_initcall (ps3_mm_add_memory); -/*============================================================================*/ /* dma routines */ /*============================================================================*/
@@ -1271,6 +1216,15 @@ void __init ps3_mm_init(void)/* correct map.total for the real total amount of memory we use */ map.total = map.rm.size + map.r1.size; +if (!map.r1.size) { +DBG ("%s:%d: No highmem region found\n" , __func__, __LINE__); + }else { +DBG ("%s:%d: Adding highmem region: %llxh %llxh\n" , + __func__, __LINE__, map.rm.size, + map.total - map.rm.size); +memblock_add (map.rm.size, map.total - map.rm.size); + } +DBG (" <- %s:%d\n" , __func__, __LINE__); }
Signature · 1 line
1.7.9.5
Geoff Levand
maintainerPATCH 8/10 powerpc/ps3: Minor Kconfig cleanup
In reply to Geoff Levand--- arch/powerpc/platforms/ps3/Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/powerpc/platforms/ps3/Kconfig +4 -4
@@ -73,7 +73,7 @@ config PS3_PS3AV help Include support for the PS3 AV Settings driver. - This support is required for graphics and sound. In + This support is required for PS3 graphics and sound. In general, all users will say Y or M. config PS3_SYS_MANAGER
@@ -84,7 +84,7 @@ config PS3_SYS_MANAGER help Include support for the PS3 System Manager. - This support is required for system control. In + This support is required for PS3 system control. In general, all users will say Y or M. config PS3_REPOSITORY_WRITE
@@ -134,7 +134,7 @@ config PS3_FLASH This support is required to access the PS3 FLASH ROM, which contains the boot loader and some boot options. - In general, all users will say Y or M. + In general, PS3 OtherOS users will say Y or M. As this driver needs a fixed buffer of 256 KiB of memory, it can be disabled on the kernel command line using "ps3flash=off", to
@@ -168,7 +168,7 @@ config PS3GELIC_UDBG via the Ethernet port (UDP port number 18194). This driver uses a trivial implementation and is independent - from the main network driver. + from the main PS3 gelic network driver. If in doubt, say N here.
Signature · 1 line
1.7.9.5
Geoff Levand
maintainerPATCH 10/10 powerpc/ps3: Refresh ps3_defconfig
In reply to Geoff Levand--- arch/powerpc/configs/ps3_defconfig | 6 ------ 1 file changed, 6 deletions(-)
arch/powerpc/configs/ps3_defconfig +0 -6
@@ -6,7 +6,6 @@ CONFIG_NR_CPUS=2 CONFIG_EXPERIMENTAL=y CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y -CONFIG_SPARSE_IRQ=y CONFIG_BLK_DEV_INITRD=y CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_EMBEDDED=y
@@ -25,7 +24,6 @@ CONFIG_PS3_DISK=y CONFIG_PS3_ROM=y CONFIG_PS3_FLASH=y CONFIG_PS3_VRAM=m -CONFIG_PS3_LPM=m # CONFIG_PPC_OF_BOOT_TRAMPOLINE is not set CONFIG_HIGH_RES_TIMERS=y # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
@@ -53,8 +51,6 @@ CONFIG_IP_PNP_DHCP=y # CONFIG_INET_DIAG is not set CONFIG_IPV6=y CONFIG_BT=m -CONFIG_BT_L2CAP=y -CONFIG_BT_SCO=y CONFIG_BT_RFCOMM=m CONFIG_BT_RFCOMM_TTY=y CONFIG_BT_BNEP=m
@@ -63,7 +59,6 @@ CONFIG_BT_BNEP_PROTO_FILTER=y CONFIG_BT_HIDP=m CONFIG_BT_HCIBTUSB=m CONFIG_CFG80211=m -# CONFIG_WIRELESS_EXT_SYSFS is not set CONFIG_MAC80211=m CONFIG_MAC80211_RC_PID=y # CONFIG_MAC80211_RC_MINSTREL is not set
@@ -181,7 +176,6 @@ CONFIG_DEBUG_INFO=y CONFIG_DEBUG_WRITECOUNT=y CONFIG_DEBUG_MEMORY_INIT=y CONFIG_DEBUG_LIST=y -CONFIG_SYSCTL_SYSCALL_CHECK=y # CONFIG_FTRACE is not set CONFIG_DEBUG_STACKOVERFLOW=y CONFIG_CRYPTO_CCM=m
Signature · 1 line
1.7.9.5
PATCH 7/10 powerpc/ps3: Remove MEMORY_HOTPLUG requirement
In reply to Geoff LevandThe dependency on hotplug memory was removed, so
remove the dependency in the Kconfig.
--- arch/powerpc/platforms/ps3/Kconfig | 1 - 1 file changed, 1 deletion(-)
arch/powerpc/platforms/ps3/Kconfig +0 -1
@@ -7,7 +7,6 @@ config PPC_PS3 select USB_OHCI_BIG_ENDIAN_MMIO select USB_ARCH_HAS_EHCI select USB_EHCI_BIG_ENDIAN_MMIO - select MEMORY_HOTPLUG select PPC_PCI_CHOICE help This option enables support for the Sony PS3 game console
Signature · 1 line
1.7.9.5
PATCH 9/10 drivers/ps3: Fix checkpatch warnings in ps3av.c
In reply to Geoff Levand--- drivers/ps3/ps3av.c | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-)
drivers/ps3/ps3av.c +9 -15
@@ -338,7 +338,7 @@ int ps3av_do_pkt(u32 cid, u16 send_len, size_t usr_buf_size,mutex_unlock (&ps3av->mutex);return 0 ; - err: +err:mutex_unlock (&ps3av->mutex);printk (KERN_ERR "%s: failed cid:%x res:%d\n" , __func__, cid, res);return res;
@@ -477,7 +477,6 @@ int ps3av_set_audio_mode(u32 ch, u32 fs, u32 word_bits, u32 format, u32 source)return 0 ; } -EXPORT_SYMBOL_GPL (ps3av_set_audio_mode);static int ps3av_set_videomode (void )
@@ -501,7 +500,7 @@ static void ps3av_set_videomode_packet(u32 id) video_mode = &video_mode_table[id &PS3AV_MODE_MASK ]; - avb_param.num_of_video_pkt =PS3AV_AVB_NUM_VIDEO ;/* num of head */ + avb_param.num_of_video_pkt =PS3AV_AVB_NUM_VIDEO ;/* num of head */ avb_param.num_of_audio_pkt =0 ; avb_param.num_of_av_video_pkt = ps3av->av_hw_conf.num_of_hdmi + ps3av->av_hw_conf.num_of_avmulti;
@@ -521,7 +520,7 @@ static void ps3av_set_videomode_packet(u32 id)#ifndef PS3AV_HDMI_YUV if (ps3av->av_port[i] ==PS3AV_CMD_AVPORT_HDMI_0 || ps3av->av_port[i] ==PS3AV_CMD_AVPORT_HDMI_1 ) - av_video_cs =RGB8 ;/* use RGB for HDMI */ + av_video_cs =RGB8 ;/* use RGB for HDMI */ #endif len += ps3av_cmd_set_av_video_cs(&avb_param.buf[len], ps3av->av_port[i],
@@ -590,8 +589,8 @@ static void ps3avd(struct work_struct *work)#define SHIFT_VESA 8static const struct { -unsigned mask :19 ; -unsigned id :4 ; +unsigned mask:19 ; +unsigned id:4 ; } ps3av_preferred_modes[] = { {PS3AV_RESBIT_WUXGA <<SHIFT_VESA ,PS3AV_MODE_WUXGA }, { PS3AV_RESBIT_1920x1080P <<SHIFT_60 ,PS3AV_MODE_1080P60 },
@@ -667,7 +666,8 @@ static enum ps3av_mode_num ps3av_hdmi_get_id(struct ps3av_info_monitor *info)return id; } -static void ps3av_monitor_info_dump (const struct ps3av_pkt_av_get_monitor_info *monitor_info) +static void ps3av_monitor_info_dump ( +const struct ps3av_pkt_av_get_monitor_info *monitor_info) {const struct ps3av_info_monitor *info = &monitor_info->info;const struct ps3av_info_audio *audio = info->audio;
@@ -717,8 +717,8 @@ static void ps3av_monitor_info_dump(const struct ps3av_pkt_av_get_monitor_info */* audio block */ for (i =0 ; i < info->num_of_audio_block; i++) { -pr_debug ("audio[%d] type: %02x max_ch: %02x fs: %02x sbit: " -"%02x\n" , +pr_debug ( +"audio[%d] type: %02x max_ch: %02x fs: %02x sbit: %02x\n" , i, audio->type, audio->max_num_of_ch, audio->fs, audio->sbit); audio++;
@@ -870,21 +870,18 @@ int ps3av_set_video_mode(int id)return 0 ; } -EXPORT_SYMBOL_GPL (ps3av_set_video_mode);int ps3av_get_auto_mode (void ) {return ps3av_auto_videomode (&ps3av->av_hw_conf); } -EXPORT_SYMBOL_GPL (ps3av_get_auto_mode);int ps3av_get_mode (void ) {return ps3av ? ps3av->ps3av_mode :0 ; } -EXPORT_SYMBOL_GPL (ps3av_get_mode);/* get resolution by video_mode */
@@ -902,7 +899,6 @@ int ps3av_video_mode2res(u32 id, u32 *xres, u32 *yres) *yres = video_mode_table[id].y;return 0 ; } -EXPORT_SYMBOL_GPL (ps3av_video_mode2res);/* mute */
@@ -911,7 +907,6 @@ int ps3av_video_mute(int mute)return ps3av_set_av_video_mute (mute ?PS3AV_CMD_MUTE_ON :PS3AV_CMD_MUTE_OFF ); } -EXPORT_SYMBOL_GPL (ps3av_video_mute);/* mute analog output only */
@@ -935,7 +930,6 @@ int ps3av_audio_mute(int mute)return ps3av_set_audio_mute (mute ?PS3AV_CMD_MUTE_ON :PS3AV_CMD_MUTE_OFF ); } -EXPORT_SYMBOL_GPL (ps3av_audio_mute);static int __devinit ps3av_probe (struct ps3_system_bus_device *dev)
Signature · 1 line
1.7.9.5
Re: [Cbe-oss-dev] [PATCH 05/10] powerpc/ps3: Use highmem region from repository
In reply to Andre HeiderQuoted 11 lines · Andre Heider
Use any preallocated highmem region setup by the bootloader. This implementation only checks for the existance of a single region at region_index=0.
This feature allows the bootloader to preallocate highmem regions and pass the region locations to the kernel through the repository. Preallocated 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.
Quoted 2 lines
Based on Hector Martin's patch "Get lv1 high memory region from devtree".
Apologies if this has been covered before, but why not use the device tree?
cheers
Geoff Levand
maintainerRe: [Cbe-oss-dev] [PATCH 05/10] powerpc/ps3: Use highmem region from repository
Hi Michael,
Quoted 12 lines · Michael Ellerman
Quoted 11 lines · Andre Heider
Use any preallocated highmem region setup by the bootloader. This implementation only checks for the existance of a single region at region_index=0.
This feature allows the bootloader to preallocate highmem regions and pass the region locations to the kernel through the repository. Preallocated 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.
Quoted 5 lines
Quoted 2 lines
Based on Hector Martin's patch "Get lv1 high memory region from devtree".
Apologies if this has been covered before, but why not use the device tree?
FreeBSD (and other OS's) don't know about the Linux device tree.
This mechanism is for the bootloader to tell the OS about a highmem region it setup, and we want to support more than just Linux.
-Geoff
Re: [Cbe-oss-dev] [PATCH 05/10] powerpc/ps3: Use highmem region from repository
Quoted 17 lines · Geoff Levand
Hi Michael,
Quoted 14 lines · Michael Ellerman
Quoted 13 lines · Andre Heider
Use any preallocated highmem region setup by the bootloader. This implementation only checks for the existance of a single region at region_index=0.
This feature allows the bootloader to preallocate highmem regions and pass the region locations to the kernel through the repository. Preallocated 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".
Quoted 10 lines
Quoted 2 lines
Apologies if this has been covered before, but why not use the device tree?
FreeBSD (and other OS's) don't know about the Linux device tree.
This mechanism is for the bootloader to tell the OS about a highmem region it setup, and we want to support more than just Linux.
-Geoff
FreeBSD actually does have FDT support -- it's just not used for the PS3 platform at the moment since it is (currently) totally redundant with the HV repository. If people decide that FDT has an advantage, FreeBSD at least can easily be adapted to use it. -Nathan