From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: Paul Mackerras <paulus@samba.org>, James Simmons <jsimmons@infradead.org>, Linux Frame Buffer Device Development <linux-fbdev-devel@lists.sourceforge.net>, Linux/PPC Development <linuxppc-dev@ozlabs.org> Subject: [PATCH 8/10] ps3: disable display flipping during mode changes Date: Thu, 8 Feb 2007 14:59:45 +0100 (CET) [thread overview] Message-ID: <Pine.LNX.4.62.0702081459370.19437@pademelon.sonytel.be> (raw) In-Reply-To: <Pine.LNX.4.62.0702081452080.19437@pademelon.sonytel.be> If ps3fb is available, we have to disable display flipping while changing the audio or video mode. Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> --- drivers/ps3/ps3av_cmd.c | 5 ++++- include/asm-powerpc/ps3fb.h | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) --- ps3-linux-2.6.20.orig/drivers/ps3/ps3av_cmd.c +++ ps3-linux-2.6.20/drivers/ps3/ps3av_cmd.c @@ -22,6 +22,7 @@ #include <linux/kernel.h> #include <linux/delay.h> #include <asm/ps3av.h> +#include <asm/ps3fb.h> #include <asm/ps3.h> #include "vuart.h" @@ -851,8 +852,9 @@ int ps3av_cmd_avb_param(struct ps3av_pkt { int res; - /* avb packet */ + ps3fb_flip_ctl(0); /* flip off */ + /* avb packet */ res = ps3av_do_pkt(PS3AV_CID_AVB_PARAM, send_len, sizeof(*avb), &avb->send_hdr); if (res < 0) @@ -864,6 +866,7 @@ int ps3av_cmd_avb_param(struct ps3av_pkt res); out: + ps3fb_flip_ctl(1); /* flip on */ return res; } --- ps3-linux-2.6.20.orig/include/asm-powerpc/ps3fb.h +++ ps3-linux-2.6.20/include/asm-powerpc/ps3fb.h @@ -41,4 +41,14 @@ struct ps3fb_ioctl_res { __u32 num_frames; /* num of frame buffers */ }; +#ifdef __KERNEL__ + +#ifdef CONFIG_FB_PS3 +extern void ps3fb_flip_ctl(int on); +#else +static inline void ps3fb_flip_ctl(int on) {} +#endif + +#endif /* __KERNEL__ */ + #endif /* _ASM_POWERPC_PS3FB_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 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
WARNING: multiple messages have this Message-ID (diff)
From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: Paul Mackerras <paulus@samba.org>, James Simmons <jsimmons@infradead.org>, Linux Frame Buffer Device Development <linux-fbdev-devel@lists.sourceforge.net>, Linux/PPC Development <linuxppc-dev@ozlabs.org> Subject: [PATCH 8/10] ps3: disable display flipping during mode changes Date: Thu, 8 Feb 2007 14:59:45 +0100 (CET) [thread overview] Message-ID: <Pine.LNX.4.62.0702081459370.19437@pademelon.sonytel.be> (raw) In-Reply-To: <Pine.LNX.4.62.0702081452080.19437@pademelon.sonytel.be> If ps3fb is available, we have to disable display flipping while changing the audio or video mode. Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> --- drivers/ps3/ps3av_cmd.c | 5 ++++- include/asm-powerpc/ps3fb.h | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) --- ps3-linux-2.6.20.orig/drivers/ps3/ps3av_cmd.c +++ ps3-linux-2.6.20/drivers/ps3/ps3av_cmd.c @@ -22,6 +22,7 @@ #include <linux/kernel.h> #include <linux/delay.h> #include <asm/ps3av.h> +#include <asm/ps3fb.h> #include <asm/ps3.h> #include "vuart.h" @@ -851,8 +852,9 @@ int ps3av_cmd_avb_param(struct ps3av_pkt { int res; - /* avb packet */ + ps3fb_flip_ctl(0); /* flip off */ + /* avb packet */ res = ps3av_do_pkt(PS3AV_CID_AVB_PARAM, send_len, sizeof(*avb), &avb->send_hdr); if (res < 0) @@ -864,6 +866,7 @@ int ps3av_cmd_avb_param(struct ps3av_pkt res); out: + ps3fb_flip_ctl(1); /* flip on */ return res; } --- ps3-linux-2.6.20.orig/include/asm-powerpc/ps3fb.h +++ ps3-linux-2.6.20/include/asm-powerpc/ps3fb.h @@ -41,4 +41,14 @@ struct ps3fb_ioctl_res { __u32 num_frames; /* num of frame buffers */ }; +#ifdef __KERNEL__ + +#ifdef CONFIG_FB_PS3 +extern void ps3fb_flip_ctl(int on); +#else +static inline void ps3fb_flip_ctl(int on) {} +#endif + +#endif /* __KERNEL__ */ + #endif /* _ASM_POWERPC_PS3FB_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
next prev parent reply other threads:[~2007-02-08 13:59 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-02-08 13:56 [PATCH 0/10] ps3av/fb drivers for 2.6.21 Geert Uytterhoeven 2007-02-08 13:56 ` Geert Uytterhoeven 2007-02-08 13:58 ` [PATCH 1/10] ps3: Add shutdown to virtual uart port driver framework Geert Uytterhoeven 2007-02-08 13:58 ` Geert Uytterhoeven 2007-02-08 13:58 ` [PATCH 2/10] ps3: AV Settings Driver Geert Uytterhoeven 2007-02-08 13:58 ` Geert Uytterhoeven 2007-02-08 20:30 ` Christoph Hellwig 2007-02-08 20:30 ` Christoph Hellwig 2007-02-09 9:17 ` Andrew Morton 2007-02-09 9:17 ` Andrew Morton 2007-02-08 13:58 ` [PATCH 3/10] fbdev modedb: allow refresh rates for named video modes Geert Uytterhoeven 2007-02-08 13:58 ` Geert Uytterhoeven 2007-02-08 13:59 ` [PATCH 4/10] fbdev modedb: make more pointer parameters const Geert Uytterhoeven 2007-02-08 13:59 ` Geert Uytterhoeven 2007-02-08 13:59 ` [PATCH 5/10] fb_videomode_to_var: reset virtual screen parameters Geert Uytterhoeven 2007-02-08 13:59 ` Geert Uytterhoeven 2007-02-08 13:59 ` [PATCH 6/10] ps3: Preallocate bootmem memory for ps3fb Geert Uytterhoeven 2007-02-08 13:59 ` Geert Uytterhoeven 2007-02-08 13:59 ` [PATCH 7/10] ps3: Virtual Frame Buffer Driver Geert Uytterhoeven 2007-02-08 13:59 ` Geert Uytterhoeven 2007-02-08 13:59 ` Geert Uytterhoeven [this message] 2007-02-08 13:59 ` [PATCH 8/10] ps3: disable display flipping during mode changes Geert Uytterhoeven 2007-02-08 13:59 ` [PATCH 9/10] ps3: cleanup ps3fb before clearing HPTE Geert Uytterhoeven 2007-02-08 13:59 ` Geert Uytterhoeven 2007-02-08 14:00 ` [PATCH 10/10] ps3: ps3av/fb defconfig updates Geert Uytterhoeven 2007-02-08 14:00 ` Geert Uytterhoeven -- strict thread matches above, loose matches on Subject: below -- 2007-01-30 16:57 [PATCH 0/10] ps3av/fb drivers for 2.6.21 Geert Uytterhoeven 2007-01-30 17:02 ` [PATCH 8/10] ps3: disable display flipping during mode changes Geert Uytterhoeven 2007-01-30 17:02 ` Geert Uytterhoeven
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=Pine.LNX.4.62.0702081459370.19437@pademelon.sonytel.be \ --to=geert.uytterhoeven@sonycom.com \ --cc=akpm@linux-foundation.org \ --cc=jsimmons@infradead.org \ --cc=linux-fbdev-devel@lists.sourceforge.net \ --cc=linuxppc-dev@ozlabs.org \ --cc=paulus@samba.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.