ps3/block: Add ps3vram-ng driver for accessing video RAM as block device
PATCH 1/1 ps3/block: Add ps3vram-ng driver for accessing video RAM as block device
Add ps3vram-ng driver, which exposes unused video RAM on the PS3 as a block device suitable for storage or swap. Fast data transfer is achieved using a local cache in system RAM and DMA transfers via the GPU.
Notes:
- As both the existing MTD ps3vram and ps3vram-ng bind to the same PS3 system bus device, the driver which is loaded first by udev wins. However, you can unload ps3vram, and load ps3vram-ng later.
- ps3vram-ng is faster than ps3vram:
o 1 MiB blocks: +50% (read), +5% (write)
o 4 KiB blocks: +50% (read), +5% (write)
o 512 B blocks: +10% (read), +10% (write)
Signed-off-by Geert Uytterhoeven <[email protected]>
Cc Jim Paris <[email protected]>
Cc Vivien Chappelier <[email protected]>
--- arch/powerpc/platforms/ps3/Kconfig | 7 + drivers/block/Makefile | 1 + drivers/block/ps3vram_ng.c | 916 ++++++++++++++++++++++++++++++++++++ 3 files changed, 924 insertions(+), 0 deletions(-) create mode 100644 drivers/block/ps3vram_ng.c
arch/powerpc/platforms/ps3/Kconfig +7 -0
@@ -128,6 +128,13 @@ config PS3_FLASH be disabled on the kernel command line using "ps3flash=off", to not allocate this fixed buffer. +config PS3_VRAM + tristate "PS3 Video RAM Storage Driver" + depends on PPC_PS3 && BLOCK + help + This driver allows you to use excess PS3 video RAM as volatile + storage or system swap. + config PS3_LPM tristate "PS3 Logical Performance Monitor support" depends on PPC_PS3
drivers/block/Makefile +1 -0
@@ -9,6 +9,7 @@ obj-$(CONFIG_MAC_FLOPPY) += swim3.o obj-$(CONFIG_BLK_DEV_FD) += floppy.o obj-$(CONFIG_AMIGA_FLOPPY) += amiflop.o obj-$(CONFIG_PS3_DISK) += ps3disk.o +obj-$(CONFIG_PS3_VRAM) += ps3vram_ng.o obj-$(CONFIG_ATARI_FLOPPY) += ataflop.o obj-$(CONFIG_AMIGA_Z2RAM) += z2ram.o obj-$(CONFIG_BLK_DEV_RAM) += brd.o
drivers/block/ps3vram_ng.c new file +916 -0
916 lines not on this page · raw message
Signature · 19 lines
1.6.0.4 With kind regards, Geert Uytterhoeven Software Architect Sony Techsoft Centre Europe The Corporate Village ? Da Vincilaan 7-D1 ? B-1935 Zaventem ? Belgium Phone: +32 (0)2 700 8453 Fax: +32 (0)2 700 8622 E-mail: [email protected] Internet: http://www.sony-europe.com/ A division of Sony Europe (Belgium) N.V. VAT BE 0413.825.160 ? RPR Brussels Fortis ? BIC GEBABEBB ? IBAN BE41293037680010