powerpc/ps3: Replace the flip_ctl logic in ps3av and ps3fb by a mutex
commit9b82f3e61758ed897200f0244b63a77c1791bcba
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Thu, 30 Oct 2008 08:12:58 +0000 (30 08:12 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Nov 2008 05:03:54 +0000 (19 16:03 +1100)
treeed1a41b22151fabf4e096ca6b4bee8f1931599c7
parent486936cd93e99c802153b3f2f629c5ce62b8c0d4
powerpc/ps3: Replace the flip_ctl logic in ps3av and ps3fb by a mutex

Introduce ps3_gpu_mutex to synchronizes GPU-related operations, like:
  - invoking the L1GPU_CONTEXT_ATTRIBUTE_FB_BLIT command using the
    lv1_gpu_context_attribute() hypervisor call,
  - handling the PS3AV_CID_AVB_PARAM packet in the PS3 A/V Settings driver.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/include/asm/ps3.h
arch/powerpc/include/asm/ps3av.h
arch/powerpc/platforms/ps3/setup.c
drivers/ps3/ps3av.c
drivers/ps3/ps3av_cmd.c
drivers/video/ps3fb.c