These are a few updates for the PS3 Audio/Video Settings Driver and the PS3
Virtual Frame Buffer Driver:
[PATCH 1/5] ps3fb: thread updates
[PATCH 2/5] ps3fb: atomic fixes
[PATCH 3/5] ps3av: thread updates
[PATCH 4/5] ps3fb: kill superfluous zero initializations
[PATCH 5/5] ps3av: misc updates
Please apply for 2.6.21. Thx!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
@@ -786,8 +783,7 @@ static int ps3fb_ioctl(struct fb_info *icasePS3FB_IOCTL_OFF:DPRINTK("PS3FB_IOCTL_OFF:\n");-if(atomic_read(&ps3fb.ext_flip)>0)-atomic_dec(&ps3fb.ext_flip);+atomic_dec_if_positive(&ps3fb.ext_flip);retval=0;break;--
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
ps3fb: Replace the kernel_thread and the semaphore by a proper kthread, which is
simply woken up when the screen must be updated
Signed-off-by: Geert Uytterhoeven <redacted>
---
drivers/video/ps3fb.c | 41 ++++++++++++++++++++++++++++++++---------
1 files changed, 32 insertions(+), 9 deletions(-)
@@ -968,6 +977,7 @@ static int __init ps3fb_probe(struct plau64xdr_lpar;intstatus;unsignedlongoffset;+structtask_struct*task;/* get gpu context handle */status=lv1_gpu_memory_allocate(DDR_SIZE,0,0,0,0,
@@ -1050,9 +1060,18 @@ static int __init ps3fb_probe(struct pla"fb%d: PS3 frame buffer device, using %ld KiB of video memory\n",info->node,ps3fb_videomemory.size>>10);-kernel_thread(ps3fbd,info,CLONE_KERNEL);+task=kthread_run(ps3fbd,info,"ps3fbd");+if(IS_ERR(task)){+retval=PTR_ERR(task);+gotoerr_unregister_framebuffer;+}++ps3fb.task=task;+return0;+err_unregister_framebuffer:+unregister_framebuffer(info);err_fb_dealloc:fb_dealloc_cmap(&info->cmap);err_framebuffer_release:
@@ -1195,7 +1219,6 @@ static int __init ps3fb_init(void)atomic_set(&ps3fb.f_count,-1);/* fbcon opens ps3fb */atomic_set(&ps3fb.ext_flip,0);/* for flip with vsync */-init_MUTEX(&ps3fb.sem);init_waitqueue_head(&ps3fb.wait_vsync);ps3fb.num_frames=1;--
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
@@ -440,7 +440,7 @@ static int ps3av_set_videomode(void)ps3av_set_av_video_mute(PS3AV_CMD_MUTE_ON);/* wake up ps3avd to do the actual video mode setting */-up(&ps3av.ping);+queue_work(ps3av.wq,&ps3av.work);return0;}
@@ -725,7 +717,7 @@ int ps3av_set_video_mode(u32 id, int boo}/* set videomode */-down(&ps3av.pong);+wait_for_completion(&ps3av.done);ps3av.ps3av_mode_old=ps3av.ps3av_mode;ps3av.ps3av_mode=id;if(ps3av_set_videomode())
@@ -881,12 +873,16 @@ static int ps3av_probe(struct ps3_vuart_memset(&ps3av,0,sizeof(ps3av));init_MUTEX(&ps3av.sem);-init_MUTEX_LOCKED(&ps3av.ping);-init_MUTEX(&ps3av.pong);mutex_init(&ps3av.mutex);ps3av.ps3av_mode=0;ps3av.dev=dev;-kernel_thread(ps3avd,&ps3av,CLONE_KERNEL);++INIT_WORK(&ps3av.work,ps3avd);+init_completion(&ps3av.done);+complete(&ps3av.done);+ps3av.wq=create_singlethread_workqueue("ps3avd");+if(!ps3av.wq)+return-ENOMEM;ps3av.available=1;switch(ps3_os_area_get_av_multi_out()){
@@ -926,6 +922,8 @@ static int ps3av_remove(struct ps3_vuart{if(ps3av.available){ps3av_cmd_fin();+if(ps3av.wq)+destroy_workqueue(ps3av.wq);ps3av.available=0;}---ps3-linux-2.6.21-rc3.orig/include/asm-powerpc/ps3av.h+++ps3-linux-2.6.21-rc3/include/asm-powerpc/ps3av.h
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
ps3av:
- Move the definition of struct ps3av to ps3av.c, as it's locally used only.
- Kill ps3av.sem, use the existing ps3av.mutex instead.
- Make the 512-byte buffer in ps3av_do_pkt() static to reduce stack usage.
It's use is protected by a semaphore anyway.
Signed-off-by: Geert Uytterhoeven <redacted>
---
drivers/ps3/ps3av.c | 29 ++++++++++++++++++++++-------
include/asm-powerpc/ps3av.h | 22 +---------------------
2 files changed, 23 insertions(+), 28 deletions(-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV