[PATCH] Dreamcast AICA sound driver G2 bus handling

2007-09-15 Thread Adrian McMenamin
ses such as maple bus (see http://lkml.org/lkml/2007/9/15/181) hotplugging but the patch is good for all conditions. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/sound/sh/aica.c b/sound/sh/aica.c index 7397865..54aed1d 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c @@ -3

[PATCH 1/2] Add Maple bus support for the SEGA Dreamcast - core maplebus

2007-09-15 Thread Adrian McMenamin
This adds support for the maple bus (SEGA's proprietary serial bus on the Dreamcast) to the kernel. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 54878f0..077438f 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -702,6 +

[PATCH 2/2] Add Maple bus support for the SEGA Dreamcast - maple keyboard

2007-09-15 Thread Adrian McMenamin
This patch adds support for the keyboard on the SEGA Dreamcast Signed-off by Adrian McMenamin <[EMAIL PROTECTED]> Acked-by: Arjan van de Ven <[EMAIL PROTECTED]> Acked-by: Dmitry Torokhov <[EMAIL PROTECTED]> diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyb

[PATCH 0/2] Add Maple bus support for the SEGA Dreamcast

2007-09-15 Thread Adrian McMenamin
way to handle something like that - you either want the bus or you don't. maplebus.c: adds the core bus support maple_keyb.c: adds the keyboard Signed off by Adrian McMenamin <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the b

[PATCH 0/2] Add Maple bus support for the SEGA Dreamcast

2007-09-15 Thread Adrian McMenamin
way to handle something like that - you either want the bus or you don't. maplebus.c: adds the core bus support maple_keyb.c: adds the keyboard Signed off by Adrian McMenamin [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

[PATCH 1/2] Add Maple bus support for the SEGA Dreamcast - core maplebus

2007-09-15 Thread Adrian McMenamin
This adds support for the maple bus (SEGA's proprietary serial bus on the Dreamcast) to the kernel. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 54878f0..077438f 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -702,6 +702,17

[PATCH 2/2] Add Maple bus support for the SEGA Dreamcast - maple keyboard

2007-09-15 Thread Adrian McMenamin
This patch adds support for the keyboard on the SEGA Dreamcast Signed-off by Adrian McMenamin [EMAIL PROTECTED] Acked-by: Arjan van de Ven [EMAIL PROTECTED] Acked-by: Dmitry Torokhov [EMAIL PROTECTED] diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index c97d5eb

[PATCH] Dreamcast AICA sound driver G2 bus handling

2007-09-15 Thread Adrian McMenamin
such as maple bus (see http://lkml.org/lkml/2007/9/15/181) hotplugging but the patch is good for all conditions. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/sound/sh/aica.c b/sound/sh/aica.c index 7397865..54aed1d 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c @@ -35,6 +35,7

[PATCH 3/2] Add Maple bus support for the SEGA Dreamcast - the missing header files

2007-09-15 Thread Adrian McMenamin
Apologies - these are the patches to add header files to the series beginning here: http://lkml.org/lkml/2007/9/15/181 Add maplebus headers Signed off by Adrian McMenamin [EMAIL PROTECTED] diff --git a/include/linux/input.h b/include/linux/input.h diff --git a/include/linux/maple.h b/include

Latest git won't compile

2007-09-15 Thread Adrian McMenamin
CC drivers/char/tty_ioctl.o drivers/char/tty_ioctl.c: In function 'n_tty_ioctl': drivers/char/tty_ioctl.c:799: error: implicit declaration of function 'kernel_termios_to_user_termios_1' drivers/char/tty_ioctl.c:806: error: implicit declaration of function 'user_termios_to_kernel_termios_1'

Re: time_after - what on earth???

2007-09-11 Thread Adrian McMenamin
On 12/09/2007, Björn Steinbrink <[EMAIL PROTECTED]> wrote: > > A fix would likely initialize "when" to jiffies. > > Björn > Thanks, I'll try that :) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: time_after - what on earth???

2007-09-11 Thread Adrian McMenamin
On 12/09/2007, Björn Steinbrink <[EMAIL PROTECTED]> wrote: > On 2007.09.12 00:19:09 +0200, Rene Herman wrote: > > On 09/12/2007 12:15 AM, Adrian McMenamin wrote: > > > >> On 11/09/2007, Rene Herman <[EMAIL PROTECTED]> wrote: > >>> On 09/12/2007 1

Re: time_after - what on earth???

2007-09-11 Thread Adrian McMenamin
On 11/09/2007, Rene Herman <[EMAIL PROTECTED]> wrote: > On 09/12/2007 12:05 AM, Adrian McMenamin wrote: > > > OK, why does this line occasionally return true: > > > > if ((maple_dev->interval > 0) && (jiffies >maple_dev->when)) > &

time_after - what on earth???

2007-09-11 Thread Adrian McMenamin
OK, why does this line occasionally return true: if ((maple_dev->interval > 0) && (jiffies >maple_dev->when)) while this one never does (no other changes made): if ((maple_dev->interval > 0) && (time_after(jiffies, maple_dev->when))) Is this a gcc issue or what? - To unsubscribe from

Re: [PATCH 1/2] Maple Bus support for SEGA Dreamcast

2007-09-11 Thread Adrian McMenamin
/dev/null > > +++ b/drivers/sh/maple/maplebus.c > > @@ -0,0 +1,747 @@ > > +/* maplebus.c > > + * Core maple bus functionality > > + * Original 2.4 code used here copyright > > + * YAEGASHI Takeshi, Paul Mundt, M. R. Brown and others > > + * Porting to 2

Re: [PATCH 1/2] Maple Bus support for SEGA Dreamcast

2007-09-11 Thread Adrian McMenamin
/maplebus.c @@ -0,0 +1,747 @@ +/* maplebus.c + * Core maple bus functionality + * Original 2.4 code used here copyright + * YAEGASHI Takeshi, Paul Mundt, M. R. Brown and others + * Porting to 2.6 Copyright Adrian McMenamin, 2007 + * + * This program is free software; you can redistribute

time_after - what on earth???

2007-09-11 Thread Adrian McMenamin
OK, why does this line occasionally return true: if ((maple_dev-interval 0) (jiffies maple_dev-when)) while this one never does (no other changes made): if ((maple_dev-interval 0) (time_after(jiffies, maple_dev-when))) Is this a gcc issue or what? - To unsubscribe from this list:

Re: time_after - what on earth???

2007-09-11 Thread Adrian McMenamin
On 11/09/2007, Rene Herman [EMAIL PROTECTED] wrote: On 09/12/2007 12:05 AM, Adrian McMenamin wrote: OK, why does this line occasionally return true: if ((maple_dev-interval 0) (jiffies maple_dev-when)) while this one never does (no other changes made): if ((maple_dev

Re: time_after - what on earth???

2007-09-11 Thread Adrian McMenamin
On 12/09/2007, Björn Steinbrink [EMAIL PROTECTED] wrote: On 2007.09.12 00:19:09 +0200, Rene Herman wrote: On 09/12/2007 12:15 AM, Adrian McMenamin wrote: On 11/09/2007, Rene Herman [EMAIL PROTECTED] wrote: On 09/12/2007 12:05 AM, Adrian McMenamin wrote: OK, why does this line

Re: time_after - what on earth???

2007-09-11 Thread Adrian McMenamin
On 12/09/2007, Björn Steinbrink [EMAIL PROTECTED] wrote: A fix would likely initialize when to jiffies. Björn Thanks, I'll try that :) - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

[PATCH 2/2] Maple bus support for the SEGA Dreamcast - Dreamcast keyboard support

2007-09-10 Thread Adrian McMenamin
Support for the Maple bus keyboard on the SEGA Dreamcast. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index c97d5eb..056cc52 100644 --- a/drivers/input/keyboard/Kconfig +++ b/drivers/input/keyboard/K

[PATCH 1/2] Maple Bus support for SEGA Dreamcast

2007-09-10 Thread Adrian McMenamin
This adds support for the Maple Bus - Sega's proprietary serial if with peripherals - for the Dreamcast. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 54878f0..c1771b7 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -702,6 +

[PATCH 0/2] Maple bus support for the SEGA Dreamcast

2007-09-10 Thread Adrian McMenamin
bus problems. Following requests the bus driver now has a mutex to guard against a rogue process adding to the waitq. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: [PATCH 2/3] Maple bus support for the Sega Dreamcast - keyboard support

2007-09-10 Thread Adrian McMenamin
On 10/09/2007, Dmitry Torokhov <[EMAIL PROTECTED]> wrote: > Hi Adrian, > Thanks for the comments - will get on with this but > > + for (i = 0; i < NR_SCANCODES; i++) > > + kbd->keycode[i] = dc_kbd_keycode[i]; > > memcpy? > I see that other drivers use memcpy - and will

Re: [PATCH 2/3] Maple bus support for the Sega Dreamcast - keyboard support

2007-09-10 Thread Adrian McMenamin
On 10/09/2007, Dmitry Torokhov [EMAIL PROTECTED] wrote: Hi Adrian, Thanks for the comments - will get on with this but + for (i = 0; i NR_SCANCODES; i++) + kbd-keycode[i] = dc_kbd_keycode[i]; memcpy? I see that other drivers use memcpy - and will happily convert

[PATCH 0/2] Maple bus support for the SEGA Dreamcast

2007-09-10 Thread Adrian McMenamin
bus problems. Following requests the bus driver now has a mutex to guard against a rogue process adding to the waitq. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

[PATCH 1/2] Maple Bus support for SEGA Dreamcast

2007-09-10 Thread Adrian McMenamin
This adds support for the Maple Bus - Sega's proprietary serial if with peripherals - for the Dreamcast. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 54878f0..c1771b7 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -702,6 +702,17

[PATCH 2/2] Maple bus support for the SEGA Dreamcast - Dreamcast keyboard support

2007-09-10 Thread Adrian McMenamin
Support for the Maple bus keyboard on the SEGA Dreamcast. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index c97d5eb..056cc52 100644 --- a/drivers/input/keyboard/Kconfig +++ b/drivers/input/keyboard/Kconfig

Re: [PATCH 2/3] Maple bus support for the Sega Dreamcast - keyboard support

2007-09-09 Thread Adrian McMenamin
On 09/09/07, Arjan van de Ven <[EMAIL PROTECTED]> wrote: > On Sun, 9 Sep 2007 21:35:11 +0100 > "Adrian McMenamin" <[EMAIL PROTECTED]> wrote: > > I think this has a bug; mutex_trylock has the opposite return code as > down_trylock (mutex follows the same

Re: [PATCH 2/3] Maple bus support for the Sega Dreamcast - keyboard support

2007-09-09 Thread Adrian McMenamin
On 09/09/07, Arjan van de Ven <[EMAIL PROTECTED]> wrote: > On Sun, 9 Sep 2007 18:01:26 +0100 > "Adrian McMenamin" <[EMAIL PROTECTED]> wrote: > > > This patch adds support for the SEGA Dreamcast keyboard. > > > > Following suggestions from the in

[PATCH] Patch Dreamcast AICA driver to handle Maple bus support

2007-09-09 Thread Adrian McMenamin
This patches the AICA sound driver for the Dreamcast to handle the well known flakiness of the Dreamcast's G2 bus. This is dependent on getting Maple bus support (see http://lkml.org/lkml/2007/9/9/70) into the kernel. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/so

Re: [PATCH 1/3] Maple bus support for the Sega Dreamcast

2007-09-09 Thread Adrian McMenamin
On 09/09/07, Arjan van de Ven <[EMAIL PROTECTED]> wrote: > On Sun, 9 Sep 2007 17:46:54 +0100 > "Adrian McMenamin" <[EMAIL PROTECTED]> wrote: > > > This patch adds support for Sega's proprietary Maple bus - which is > > required to support the Dreamc

[PATCH 3/3] Maple bus support for the Sega Dreamcast - consequential change to pvr2 driver

2007-09-09 Thread Adrian McMenamin
Make the VBLANK interrupt shareable. This is the third time I have posted this patch. This is required to allow the Maple bus driver to work (Maple hardware is synced with the VBLANK interrupt). Signed off: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/drivers/video/pvr2fb.c b/drivers

[PATCH 2/3] Maple bus support for the Sega Dreamcast - keyboard support

2007-09-09 Thread Adrian McMenamin
the core maple bus support. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index c97d5eb..056cc52 100644 --- a/drivers/input/keyboard/Kconfig +++ b/drivers/input/keyboard/Kconfig @@ -253,4 +253,14 @@

[PATCH 1/3] Maple bus support for the Sega Dreamcast

2007-09-09 Thread Adrian McMenamin
This patch adds support for Sega's proprietary Maple bus - which is required to support the Dreamcast's peripherals. This driver represents a substantial re-write of the old 2.4 driver. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig

[PATCH 1/3] Maple bus support for the Sega Dreamcast

2007-09-09 Thread Adrian McMenamin
This patch adds support for Sega's proprietary Maple bus - which is required to support the Dreamcast's peripherals. This driver represents a substantial re-write of the old 2.4 driver. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index

[PATCH 2/3] Maple bus support for the Sega Dreamcast - keyboard support

2007-09-09 Thread Adrian McMenamin
the core maple bus support. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index c97d5eb..056cc52 100644 --- a/drivers/input/keyboard/Kconfig +++ b/drivers/input/keyboard/Kconfig @@ -253,4 +253,14 @@ config

[PATCH 3/3] Maple bus support for the Sega Dreamcast - consequential change to pvr2 driver

2007-09-09 Thread Adrian McMenamin
Make the VBLANK interrupt shareable. This is the third time I have posted this patch. This is required to allow the Maple bus driver to work (Maple hardware is synced with the VBLANK interrupt). Signed off: Adrian McMenamin [EMAIL PROTECTED] diff --git a/drivers/video/pvr2fb.c b/drivers/video

Re: [PATCH 1/3] Maple bus support for the Sega Dreamcast

2007-09-09 Thread Adrian McMenamin
On 09/09/07, Arjan van de Ven [EMAIL PROTECTED] wrote: On Sun, 9 Sep 2007 17:46:54 +0100 Adrian McMenamin [EMAIL PROTECTED] wrote: This patch adds support for Sega's proprietary Maple bus - which is required to support the Dreamcast's peripherals. First of all, I'm a little concerned

[PATCH] Patch Dreamcast AICA driver to handle Maple bus support

2007-09-09 Thread Adrian McMenamin
This patches the AICA sound driver for the Dreamcast to handle the well known flakiness of the Dreamcast's G2 bus. This is dependent on getting Maple bus support (see http://lkml.org/lkml/2007/9/9/70) into the kernel. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/sound/sh

Re: [PATCH 2/3] Maple bus support for the Sega Dreamcast - keyboard support

2007-09-09 Thread Adrian McMenamin
On 09/09/07, Arjan van de Ven [EMAIL PROTECTED] wrote: On Sun, 9 Sep 2007 18:01:26 +0100 Adrian McMenamin [EMAIL PROTECTED] wrote: This patch adds support for the SEGA Dreamcast keyboard. Following suggestions from the inout maintainer it has been somewhat rewritten since the previous

Re: [PATCH 2/3] Maple bus support for the Sega Dreamcast - keyboard support

2007-09-09 Thread Adrian McMenamin
On 09/09/07, Arjan van de Ven [EMAIL PROTECTED] wrote: On Sun, 9 Sep 2007 21:35:11 +0100 Adrian McMenamin [EMAIL PROTECTED] wrote: I think this has a bug; mutex_trylock has the opposite return code as down_trylock (mutex follows the same convention as the spinlock trylock) so you

Re: [PATCH] Add support for keyboard on SEGA Dreamcast

2007-09-07 Thread Adrian McMenamin
On 05/09/07, Dmitry Torokhov <[EMAIL PROTECTED]> wrote: > > Are we guaranteed that the dc_kbd_callback is not running in a separate > thread? > > Please also consider implementing support for changing keyma. Since > the keymap is pretty full I think the best way is to copy the vanilla > keymap

Re: [PATCH] Add support for keyboard on SEGA Dreamcast

2007-09-07 Thread Adrian McMenamin
On 05/09/07, Dmitry Torokhov [EMAIL PROTECTED] wrote: Are we guaranteed that the dc_kbd_callback is not running in a separate thread? Please also consider implementing support for changing keyma. Since the keymap is pretty full I think the best way is to copy the vanilla keymap into a

[PATCH] Add support for keyboard on SEGA Dreamcast

2007-09-04 Thread Adrian McMenamin
This patch will add support for the Dreamcast keyboard when used alongside the maple bus patch (http://lkml.org/lkml/2007/9/4/165) and the pvr2 patch. Signed off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index c

[PATCH - RESUBMiT] Minor patch to pvr2 driver required for maple bus support on SEGA Dreamcast

2007-09-04 Thread Adrian McMenamin
The maple bus driver (http://lkml.org/lkml/2007/9/4/165) uses hardware synchronisation between the maple bus and the VBLANK to poll the maple bus. This patch makes the interrupt shareable. By definition the interrupt is for both devices. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]>

[PATCH] Add maple bus support for the SEGA Dreamcast

2007-09-04 Thread Adrian McMenamin
This patch adds support for SEGA's proprietary Maple bus. Maple is a serial communications bus and support is required to operate Dreamcast peripherals. A keyboard driver is also available and will be posted separately. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/a

[PATCH] Add maple bus support for the SEGA Dreamcast

2007-09-04 Thread Adrian McMenamin
This patch adds support for SEGA's proprietary Maple bus. Maple is a serial communications bus and support is required to operate Dreamcast peripherals. A keyboard driver is also available and will be posted separately. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/arch/sh

[PATCH - RESUBMiT] Minor patch to pvr2 driver required for maple bus support on SEGA Dreamcast

2007-09-04 Thread Adrian McMenamin
The maple bus driver (http://lkml.org/lkml/2007/9/4/165) uses hardware synchronisation between the maple bus and the VBLANK to poll the maple bus. This patch makes the interrupt shareable. By definition the interrupt is for both devices. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff

[PATCH] Add support for keyboard on SEGA Dreamcast

2007-09-04 Thread Adrian McMenamin
This patch will add support for the Dreamcast keyboard when used alongside the maple bus patch (http://lkml.org/lkml/2007/9/4/165) and the pvr2 patch. Signed off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index c97d5eb

Re: [PATCH] Patch pvr2 driver to allow development of maple bus driver

2007-09-01 Thread Adrian McMenamin
On Fri, 2007-08-31 at 23:02 -0400, Mike Frysinger wrote: > i really dont know how the maple bus works or what piece of hardware is wired > up to the same interrupt line. my point is that if the other device fires an > interrupt, the pvr interrupt handler may be executed and attempt to do work

Re: [PATCH] Patch pvr2 driver to allow development of maple bus driver

2007-09-01 Thread Adrian McMenamin
On Fri, 2007-08-31 at 23:02 -0400, Mike Frysinger wrote: i really dont know how the maple bus works or what piece of hardware is wired up to the same interrupt line. my point is that if the other device fires an interrupt, the pvr interrupt handler may be executed and attempt to do work

Re: [PATCH] Patch pvr2 driver to allow development of maple bus driver

2007-08-31 Thread Adrian McMenamin
On 31/08/2007, Mike Frysinger <[EMAIL PROTECTED]> wrote: > On 8/31/07, Adrian McMenamin <[EMAIL PROTECTED]> wrote: > > This patch makes the PVR2 VBLANK interrupt on the SEGA Dreamcast > > shareable - a small but necessary change to enable ongoing efforts to > > d

Fwd: [PATCH] Patch pvr2 driver to allow development of maple bus driver

2007-08-31 Thread Adrian McMenamin
Apologies, sent this Bcc by mistake the first time -- Forwarded message -- From: Adrian McMenamin <[EMAIL PROTECTED]> Date: 31 Aug 2007 21:00 Subject: [PATCH] Patch pvr2 driver to allow development of maple bus driver To: "Antonino A. Daplas" <[EMAIL PROTECTED]&

[PATCH] Patch pvr2 driver to allow development of maple bus driver

2007-08-31 Thread Adrian McMenamin
to the VBLANK). This has no impact on the performance of the PVR2. Signed-off by Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/drivers/video/pvr2fb.c b/drivers/video/pvr2fb.c index 7d6c298..13de07f 100644 --- a/drivers/video/pvr2fb.c +++ b/drivers/video/pvr2fb.c @@ -890,7 +890,7 @@ stat

[PATCH] Patch pvr2 driver to allow development of maple bus driver

2007-08-31 Thread Adrian McMenamin
to the VBLANK). This has no impact on the performance of the PVR2. Signed-off by Adrian McMenamin [EMAIL PROTECTED] diff --git a/drivers/video/pvr2fb.c b/drivers/video/pvr2fb.c index 7d6c298..13de07f 100644 --- a/drivers/video/pvr2fb.c +++ b/drivers/video/pvr2fb.c @@ -890,7 +890,7 @@ static int

Fwd: [PATCH] Patch pvr2 driver to allow development of maple bus driver

2007-08-31 Thread Adrian McMenamin
Apologies, sent this Bcc by mistake the first time -- Forwarded message -- From: Adrian McMenamin [EMAIL PROTECTED] Date: 31 Aug 2007 21:00 Subject: [PATCH] Patch pvr2 driver to allow development of maple bus driver To: Antonino A. Daplas [EMAIL PROTECTED] This patch makes

Re: [PATCH] Patch pvr2 driver to allow development of maple bus driver

2007-08-31 Thread Adrian McMenamin
On 31/08/2007, Mike Frysinger [EMAIL PROTECTED] wrote: On 8/31/07, Adrian McMenamin [EMAIL PROTECTED] wrote: This patch makes the PVR2 VBLANK interrupt on the SEGA Dreamcast shareable - a small but necessary change to enable ongoing efforts to develop a driver for the maple bus

Re: [PATCH] SH: add machine-ops and Dreamcast specific fix-up

2007-08-04 Thread Adrian McMenamin
On Sat, 2007-08-04 at 12:06 +0900, Paul Mundt wrote: > On Fri, Aug 03, 2007 at 08:26:17PM +0100, Adrian McMenamin wrote: > > diff --git a/arch/sh/boards/dreamcast/Makefile > > b/arch/sh/boards/dreamcast/Makefile > > index e6fcd3d..7b97546 100644 > > --- a/arch/s

Re: [PATCH] SH: add machine-ops and Dreamcast specific fix-up

2007-08-04 Thread Adrian McMenamin
On Sat, 2007-08-04 at 12:06 +0900, Paul Mundt wrote: On Fri, Aug 03, 2007 at 08:26:17PM +0100, Adrian McMenamin wrote: diff --git a/arch/sh/boards/dreamcast/Makefile b/arch/sh/boards/dreamcast/Makefile index e6fcd3d..7b97546 100644 --- a/arch/sh/boards/dreamcast/Makefile +++ b/arch/sh

[PATCH] SH: add machine-ops and Dreamcast specific fix-up

2007-08-03 Thread Adrian McMenamin
-ops code to the SH code base, allowing board specific reboot and halt code. Currently only Dreamcast specific warm reboot fixup in code. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/arch/sh/boards/dreamcast/Makefile b/arch/sh/boards/dreamcast/Makefile index e6fcd3d..7

[PATCH] SH: add machine-ops and Dreamcast specific fix-up

2007-08-03 Thread Adrian McMenamin
-ops code to the SH code base, allowing board specific reboot and halt code. Currently only Dreamcast specific warm reboot fixup in code. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/arch/sh/boards/dreamcast/Makefile b/arch/sh/boards/dreamcast/Makefile index e6fcd3d..7b97546 100644

Re: Fwd: [PATCH] Reboot Dreamcast under software control

2007-07-29 Thread Adrian McMenamin
On Mon, 2007-07-30 at 07:50 +0900, Paul Mundt wrote: > On Sun, Jul 29, 2007 at 07:25:21PM +0100, Adrian McMenamin wrote: > > diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c > > index 6334a4c..6f5e9e4 100644 > > --- a/arch/sh/kernel/process.c > > +++

Fwd: [PATCH] Reboot Dreamcast under software control

2007-07-29 Thread Adrian McMenamin
Apologies. I meant to cc: this to the lists first time round and appear to have bcc'ed it instead. -- Forwarded message -- From: Adrian McMenamin <[EMAIL PROTECTED]> Date: 29-Jul-2007 19:04 Subject: [PATCH] Reboot Dreamcast under software control To: [EMAIL PRO

[PATCH] Reboot Dreamcast under software control

2007-07-29 Thread Adrian McMenamin
. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c index 6334a4c..6f5e9e4 100644 --- a/arch/sh/kernel/process.c +++ b/arch/sh/kernel/process.c @@ -97,6 +97,11 @@ void cpu_idle(void) void machine_restart(char * __unused) { + +

[PATCH] Reboot Dreamcast under software control

2007-07-29 Thread Adrian McMenamin
. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c index 6334a4c..6f5e9e4 100644 --- a/arch/sh/kernel/process.c +++ b/arch/sh/kernel/process.c @@ -97,6 +97,11 @@ void cpu_idle(void) void machine_restart(char * __unused) { + +#ifdef

Fwd: [PATCH] Reboot Dreamcast under software control

2007-07-29 Thread Adrian McMenamin
Apologies. I meant to cc: this to the lists first time round and appear to have bcc'ed it instead. -- Forwarded message -- From: Adrian McMenamin [EMAIL PROTECTED] Date: 29-Jul-2007 19:04 Subject: [PATCH] Reboot Dreamcast under software control To: [EMAIL PROTECTED] In the light

Re: Fwd: [PATCH] Reboot Dreamcast under software control

2007-07-29 Thread Adrian McMenamin
On Mon, 2007-07-30 at 07:50 +0900, Paul Mundt wrote: On Sun, Jul 29, 2007 at 07:25:21PM +0100, Adrian McMenamin wrote: diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c index 6334a4c..6f5e9e4 100644 --- a/arch/sh/kernel/process.c +++ b/arch/sh/kernel/process.c @@ -97,6

Re: [PATCH] Framebuffer: Consolidated cleanup of pvr2fb.c for Sega Dreamcast

2007-07-28 Thread Adrian McMenamin
On 29/07/07, Adrian McMenamin <[EMAIL PROTECTED]> wrote: > Tony, > > Second time attempt at this and a much better job I think. > Sorry, given I've jsut said this *does* work at 24bpp and 32bpp I'd better clean up the Documentation patch,,, diff --git a/Documentation/fb/pvr2fb.t

[PATCH] Framebuffer: Consolidated cleanup of pvr2fb.c for Sega Dreamcast

2007-07-28 Thread Adrian McMenamin
) available, but I have no reason to think this is broken. Incidentally, substituing DIRECTCOLOR for TRUECOLOR appears to break the driver. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/Documentation/fb/pvr2fb.txt b/Documentation/fb/pvr2fb.txt index 2bf6c23..3d08551

Re: [PATCH] Framebuffer: Fix 16bpp colour output in Dreamcast pvr2fb

2007-07-28 Thread Adrian McMenamin
On 28/07/07, Ondrej Zajicek <[EMAIL PROTECTED]> wrote: > On Sat, Jul 28, 2007 at 03:51:38PM +0100, Adrian McMenamin wrote: > > Tony, > > > > This patch - on top of your others - fixes the colour output for 16bpp > > RGB565 output in the Dreamcast - it was a simpl

[PATCH] Documentation - update Documentation/fb/pvr2fb.txt

2007-07-28 Thread Adrian McMenamin
The current version is very old and does not correctly specify how to set the video mode. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/Documentation/fb/pvr2fb.txt b/Documentation/fb/pvr2fb.txt index 2bf6c23..1489f9b 100644 --- a/Documentation/fb/pvr2fb.txt +++ b/Documen

[PATCH] Framebuffer: Fix 16bpp colour output in Dreamcast pvr2fb

2007-07-28 Thread Adrian McMenamin
Tony, This patch - on top of your others - fixes the colour output for 16bpp RGB565 output in the Dreamcast - it was a simple out by one error in the bit shift. Still looking at the 24bpp and 32bpp issues. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/drivers/video/pvr2

[PATCH] Framebuffer: Fix 16bpp colour output in Dreamcast pvr2fb

2007-07-28 Thread Adrian McMenamin
Tony, This patch - on top of your others - fixes the colour output for 16bpp RGB565 output in the Dreamcast - it was a simple out by one error in the bit shift. Still looking at the 24bpp and 32bpp issues. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/drivers/video/pvr2fb.c b

[PATCH] Documentation - update Documentation/fb/pvr2fb.txt

2007-07-28 Thread Adrian McMenamin
The current version is very old and does not correctly specify how to set the video mode. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/Documentation/fb/pvr2fb.txt b/Documentation/fb/pvr2fb.txt index 2bf6c23..1489f9b 100644 --- a/Documentation/fb/pvr2fb.txt +++ b/Documentation

Re: [PATCH] Framebuffer: Fix 16bpp colour output in Dreamcast pvr2fb

2007-07-28 Thread Adrian McMenamin
On 28/07/07, Ondrej Zajicek [EMAIL PROTECTED] wrote: On Sat, Jul 28, 2007 at 03:51:38PM +0100, Adrian McMenamin wrote: Tony, This patch - on top of your others - fixes the colour output for 16bpp RGB565 output in the Dreamcast - it was a simple out by one error in the bit shift

[PATCH] Framebuffer: Consolidated cleanup of pvr2fb.c for Sega Dreamcast

2007-07-28 Thread Adrian McMenamin
) available, but I have no reason to think this is broken. Incidentally, substituing DIRECTCOLOR for TRUECOLOR appears to break the driver. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/Documentation/fb/pvr2fb.txt b/Documentation/fb/pvr2fb.txt index 2bf6c23..3d08551 100644

Re: [PATCH] Framebuffer: Consolidated cleanup of pvr2fb.c for Sega Dreamcast

2007-07-28 Thread Adrian McMenamin
On 29/07/07, Adrian McMenamin [EMAIL PROTECTED] wrote: Tony, Second time attempt at this and a much better job I think. Sorry, given I've jsut said this *does* work at 24bpp and 32bpp I'd better clean up the Documentation patch,,, diff --git a/Documentation/fb/pvr2fb.txt b/Documentation/fb

Re: Problems with framebuffer in 2.6.22-git17

2007-07-27 Thread Adrian McMenamin
On 28/07/07, Antonino A. Daplas <[EMAIL PROTECTED]> wrote: > > Is this with commit a66ad56eb2c9644717da4d7f05f971d6786145e3 reverted? > Reapply this commit again, it might (fingers crossed) correct the color > problem. > > As to your display doubling/quadrupling with bpp 24/32, I don't have any >

Re: Problems with framebuffer in 2.6.22-git17

2007-07-27 Thread Adrian McMenamin
On 28/07/07, Antonino A. Daplas <[EMAIL PROTECTED]> wrote: > On Fri, 2007-07-27 at 23:25 +0100, Adrian McMenamin wrote: > > On 27/07/07, Antonino A. Daplas <[EMAIL PROTECTED]> wrote: > > > On Fri, 2007-07-27 at 21:18 +0100, Adrian McMenamin wrote: > > >

Re: Problems with framebuffer in 2.6.22-git17

2007-07-27 Thread Adrian McMenamin
On 27/07/07, Antonino A. Daplas <[EMAIL PROTECTED]> wrote: > On Fri, 2007-07-27 at 21:18 +0100, Adrian McMenamin wrote: > > On 27/07/07, Adrian McMenamin <[EMAIL PROTECTED]> wrote: > > > > > With the patch reverted and 24bpp, it oopses before freezing (w

Re: Problems with framebuffer in 2.6.22-git17

2007-07-27 Thread Adrian McMenamin
On 27/07/07, Adrian McMenamin <[EMAIL PROTECTED]> wrote: > With the patch reverted and 24bpp, it oopses before freezing (with two > odd looking boot logos on the screen): > Tested this further and it fails on: rev = fb_readl(par->mmio_base + 0x04); Will try to see what's

Re: Problems with framebuffer in 2.6.22-git17

2007-07-27 Thread Adrian McMenamin
On 26/07/07, Antonino A. Daplas <[EMAIL PROTECTED]> wrote: > > I'm also confused. Can you change the color depth to 32 bpp ('fbset > -depth 32')? I'm thinking of a possible pseudo_palette overrun. > The code behaves in exactly the same way with the bit depth set to 32 and without the patch

Re: Problems with framebuffer in 2.6.22-git17

2007-07-27 Thread Adrian McMenamin
On 26/07/07, Antonino A. Daplas [EMAIL PROTECTED] wrote: I'm also confused. Can you change the color depth to 32 bpp ('fbset -depth 32')? I'm thinking of a possible pseudo_palette overrun. The code behaves in exactly the same way with the bit depth set to 32 and without the patch reversion

Re: Problems with framebuffer in 2.6.22-git17

2007-07-27 Thread Adrian McMenamin
On 27/07/07, Adrian McMenamin [EMAIL PROTECTED] wrote: With the patch reverted and 24bpp, it oopses before freezing (with two odd looking boot logos on the screen): Tested this further and it fails on: rev = fb_readl(par-mmio_base + 0x04); Will try to see what's up - but if anyone knows what

Re: Problems with framebuffer in 2.6.22-git17

2007-07-27 Thread Adrian McMenamin
On 27/07/07, Antonino A. Daplas [EMAIL PROTECTED] wrote: On Fri, 2007-07-27 at 21:18 +0100, Adrian McMenamin wrote: On 27/07/07, Adrian McMenamin [EMAIL PROTECTED] wrote: With the patch reverted and 24bpp, it oopses before freezing (with two odd looking boot logos on the screen

Re: Problems with framebuffer in 2.6.22-git17

2007-07-27 Thread Adrian McMenamin
On 28/07/07, Antonino A. Daplas [EMAIL PROTECTED] wrote: On Fri, 2007-07-27 at 23:25 +0100, Adrian McMenamin wrote: On 27/07/07, Antonino A. Daplas [EMAIL PROTECTED] wrote: On Fri, 2007-07-27 at 21:18 +0100, Adrian McMenamin wrote: On 27/07/07, Adrian McMenamin [EMAIL PROTECTED] wrote

Re: Problems with framebuffer in 2.6.22-git17

2007-07-27 Thread Adrian McMenamin
On 28/07/07, Antonino A. Daplas [EMAIL PROTECTED] wrote: Is this with commit a66ad56eb2c9644717da4d7f05f971d6786145e3 reverted? Reapply this commit again, it might (fingers crossed) correct the color problem. As to your display doubling/quadrupling with bpp 24/32, I don't have any answers

Re: Problems with framebuffer in 2.6.22-git17

2007-07-24 Thread Adrian McMenamin
On 23/07/07, Antonino A. Daplas <[EMAIL PROTECTED]> wrote: On Sun, 2007-07-22 at 19:41 +0100, Adrian McMenamin wrote: > I ma having problems with the pvr2 fb on the Dreamcast in 2.6.22-git17 > - when the code is executed it appears to lock the Dreamcast up. > >

Re: Problems with framebuffer in 2.6.22-git17

2007-07-24 Thread Adrian McMenamin
On 23/07/07, Antonino A. Daplas [EMAIL PROTECTED] wrote: On Sun, 2007-07-22 at 19:41 +0100, Adrian McMenamin wrote: I ma having problems with the pvr2 fb on the Dreamcast in 2.6.22-git17 - when the code is executed it appears to lock the Dreamcast up. The problem seems

[PATCH] Fix Dreamcast DMA issues

2007-07-23 Thread Adrian McMenamin
and consequently fixes the sound driver to ensure it continues to function. Signed-off by: Adrian McMenamin <[EMAIL PROTECTED]> diff --git a/arch/sh/drivers/dma/dma-api.c b/arch/sh/drivers/dma/dma-api.c index cf8e119..76ed816 100644 --- a/arch/sh/drivers/dma/dma-api.c +++ b/arch/sh/drivers/dma/dma-api.c @@

Re: Problems with framebuffer in 2.6.22-git17

2007-07-23 Thread Adrian McMenamin
(Apologies to those getting this a second time: resending as text/plain only) On 23/07/07, Adrian McMenamin <[EMAIL PROTECTED]> wrote: On 7/23/07, Antonino A. Daplas <[EMAIL PROTECTED]> wrote: > On Sun, 2007-07-22 at 19:41 +0100, Adrian McMenamin wrote: > >

Re: Problems with framebuffer in 2.6.22-git17

2007-07-23 Thread Adrian McMenamin
(Apologies to those getting this a second time: resending as text/plain only) On 23/07/07, Adrian McMenamin [EMAIL PROTECTED] wrote: On 7/23/07, Antonino A. Daplas [EMAIL PROTECTED] wrote: On Sun, 2007-07-22 at 19:41 +0100, Adrian McMenamin wrote: I ma having problems with the pvr2 fb

[PATCH] Fix Dreamcast DMA issues

2007-07-23 Thread Adrian McMenamin
and consequently fixes the sound driver to ensure it continues to function. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/arch/sh/drivers/dma/dma-api.c b/arch/sh/drivers/dma/dma-api.c index cf8e119..76ed816 100644 --- a/arch/sh/drivers/dma/dma-api.c +++ b/arch/sh/drivers/dma/dma-api.c @@ -31,8

Lots of scheduling bugs (?) with -rc1

2007-07-22 Thread Adrian McMenamin
Lots of this on the Dreamcast (nb the first pvr2fb oops is a different issue) eg Starting network... Starting dropbear sshd: [ 16.689047] BUG: scheduling while atomic: dropbear/0x1001/722 [ 16.694675] Stack: (0x8c3f7e58 to 0x8c3f8000) [ 16.699143] 7e40: 8c15a80c 1000 [

Re: Problems with framebuffer in 2.6.22-git17

2007-07-22 Thread Adrian McMenamin
On 22/07/07, Adrian McMenamin <[EMAIL PROTECTED]> wrote: I ma having problems with the pvr2 fb on the Dreamcast in 2.6.22-git17 - when the code is executed it appears to lock the Dreamcast up. The problem seems to be: fb_notifier_call_chain(FB_EVENT_FB_REGISTERED, ); In drivers/video/f

Problems with framebuffer in 2.6.22-git17

2007-07-22 Thread Adrian McMenamin
I ma having problems with the pvr2 fb on the Dreamcast in 2.6.22-git17 - when the code is executed it appears to lock the Dreamcast up. The problem seems to be: fb_notifier_call_chain(FB_EVENT_FB_REGISTERED, ); In drivers/video/fbmem.c This hasn't been an issue before, so are there any recent

Problems with framebuffer in 2.6.22-git17

2007-07-22 Thread Adrian McMenamin
I ma having problems with the pvr2 fb on the Dreamcast in 2.6.22-git17 - when the code is executed it appears to lock the Dreamcast up. The problem seems to be: fb_notifier_call_chain(FB_EVENT_FB_REGISTERED, event); In drivers/video/fbmem.c This hasn't been an issue before, so are there any

Re: Problems with framebuffer in 2.6.22-git17

2007-07-22 Thread Adrian McMenamin
On 22/07/07, Adrian McMenamin [EMAIL PROTECTED] wrote: I ma having problems with the pvr2 fb on the Dreamcast in 2.6.22-git17 - when the code is executed it appears to lock the Dreamcast up. The problem seems to be: fb_notifier_call_chain(FB_EVENT_FB_REGISTERED, event); In drivers/video

Lots of scheduling bugs (?) with -rc1

2007-07-22 Thread Adrian McMenamin
Lots of this on the Dreamcast (nb the first pvr2fb oops is a different issue) eg Starting network... Starting dropbear sshd: [ 16.689047] BUG: scheduling while atomic: dropbear/0x1001/722 [ 16.694675] Stack: (0x8c3f7e58 to 0x8c3f8000) [ 16.699143] 7e40: 8c15a80c 1000 [

<    1   2   3   4   >