[PATCH] SH/Dreamcast - add support for GD-Rom CDROM drive on SEGA Dreamcast

2008-01-10 Thread Adrian McMenamin
From: Adrian McMenamin [EMAIL PROTECTED] This patch adds support for the GD-Rom drive, SEGA's proprietary implementation of an IDE CD Rom for the SEGA Dreamcast. This driver implements Sega's Packet Interface (SPI) - at least partially. It will also read disks in SEGA's propreitary GD format

Re: [PATCH] SH/Dreamcast - add support for GD-Rom CDROM drive on SEGA Dreamcast

2008-01-11 Thread Adrian McMenamin
On Thu, 2008-01-10 at 23:25 +, Adrian McMenamin wrote: From: Adrian McMenamin [EMAIL PROTECTED] This patch adds support for the GD-Rom drive, SEGA's proprietary implementation of an IDE CD Rom for the SEGA Dreamcast. This driver implements Sega's Packet Interface (SPI) - at least

Re: [PATCH] SH/Dreamcast - add support for GD-Rom CDROM drive on SEGA Dreamcast

2008-01-12 Thread Adrian McMenamin
On Sat, 2008-01-12 at 05:36 -0800, Andrew Morton wrote: On Fri, 11 Jan 2008 21:56:49 + Adrian McMenamin [EMAIL PROTECTED] wrote: On Thu, 2008-01-10 at 23:25 +, Adrian McMenamin wrote: From: Adrian McMenamin [EMAIL PROTECTED] This patch adds support for the GD-Rom drive

Re: [PATCH] SH/Dreamcast - add support for GD-Rom CDROM drive on SEGA Dreamcast

2008-01-13 Thread Adrian McMenamin
On 12/01/2008, Andrew Morton [EMAIL PROTECTED] wrote: On Sat, 12 Jan 2008 14:14:01 + Adrian McMenamin [EMAIL PROTECTED] wrote: + spin_command-cmd[0] = 0x70; + spin_command-cmd[2] = 0x1f; + spin_command-buflen = 0; + gd.pending = 1; + gdrom_packetcommand(gd.cd_info

Re: [PATCH] SH/Dreamcast - add support for GD-Rom CDROM drive on SEGA Dreamcast

2008-01-14 Thread Adrian McMenamin
On Mon, 2008-01-14 at 23:00 +, Adrian McMenamin wrote: From: Adrian McMenamin [EMAIL PROTECTED] This patch adds support for the GD-Rom drive, SEGA's proprietary implementation of an IDE CD Rom for the SEGA Dreamcast. This driver implements Sega's Packet Interface (SPI) - at least

Re: [PATCH] SH/Dreamcast - add support for GD-Rom CDROM drive on SEGA Dreamcast

2008-01-14 Thread Adrian McMenamin
From: Adrian McMenamin [EMAIL PROTECTED] This patch adds support for the GD-Rom drive, SEGA's proprietary implementation of an IDE CD Rom for the SEGA Dreamcast. This driver implements Sega's Packet Interface (SPI) - at least partially. It will also read disks in SEGA's propreitary GD format

[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: Latest git won't compile

2007-09-16 Thread Adrian McMenamin
On 15/09/2007, Adrian McMenamin [EMAIL PROTECTED] wrote: 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

Re: SPARC{,64}: kernel_termios_to_user_termios_1 missing

2007-09-16 Thread Adrian McMenamin
On 16/09/2007, Andrew Morton [EMAIL PROTECTED] wrote: Hopefully bb8bd3a52a5dbca8bea31bfc72dacfb384170e69 (merged six hours ago) will have fixed this. It Works For Me. It also works on SH4 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Fwd: [PATCH 0/3] Add Maple bus support for the SEGA Dreamcast - repost

2007-09-20 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

Fwd: [PATCH 2/3] Add Maple bus support for the SEGA Dreamcast - maple keyboard (repost)

2007-09-20 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

Fwd: [PATCH 1/3] Add Maple bus support for the SEGA Dreamcast - core maplebus (repost)

2007-09-20 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

Fwd: [PATCH 3/3] Add Maple bus support for the SEGA Dreamcast - headers (repost)

2007-09-20 Thread Adrian McMenamin
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/linux/maple.h new file mode 100644 index 000..e297cce --- /dev/null +++ b/include/linux/maple.h @@ -0,0 +1,87

Race in setup_irq?

2007-11-11 Thread Adrian McMenamin
I am writing a device driver for the Dreamcast CD Drive (the GD Rom) and I am hitting what looks like some sort of race in kernel/irq/manage.c. Can anybody point me in the right direction or is there a bug here? This never seems to return in setup_irq: spin_unlock_irqrestore(desc-lock,

Re: Race in setup_irq?

2007-11-11 Thread Adrian McMenamin
On 11/11/2007, Dmitry Adamushko [EMAIL PROTECTED] wrote: On 11/11/2007, Adrian McMenamin [EMAIL PROTECTED] wrote I am writing a device driver for the Dreamcast CD Drive (the GD Rom) and I am hitting what looks like some sort of race in kernel/irq/manage.c. Can anybody point me in the right

Re: [PATCH 2/3] Add GD-Rom support to the SEGA Dreamcast

2007-12-16 Thread Adrian McMenamin
On Mon, 2007-12-17 at 06:59 +0900, Paul Mundt wrote: While I realize that this is all undocumented and based entirely on reverse engineering, you should at least verify that that's precisely what is going on, and that this is not just a precaution for flushing posted writes. You can test

Re: [PATCH 2/3] Add GD-Rom support to the SEGA Dreamcast

2007-12-17 Thread Adrian McMenamin
On Mon, December 17, 2007 2:06 pm, Jens Axboe wrote: On Sun, Dec 16 2007, Adrian McMenamin wrote: Few notes: Thanks for these, very helpful. - Compare rq_data_dir() with WRITE, don't just assume that any non-zero will be a write. - You need to offload this request handling

Re: [PATCH 2/3] Add GD-Rom support to the SEGA Dreamcast

2007-12-20 Thread Adrian McMenamin
On 16/12/2007, Paul Mundt [EMAIL PROTECTED] wrote: Also, __devinit/__devexit annotations? Is there any difference between __init and __devint? I am using __init/__exit already +static struct platform_driver gdrom_driver = { + .probe = probe_gdrom, + .remove = remove_gdrom,

[PATCH - SH/Dreamcast] Add support for GD-Rom device

2007-12-20 Thread Adrian McMenamin
/change requests made last time. But grateful for all comments. This is targetted at Paul Mundt's 2.6.25 queue, but should also compile against 2.6.24-rc5 I am using it play mp3s off CD even as I write this and it seems to work pretty well :) Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff

Re: [PATCH - SH/Dreamcast] Add support for GD-Rom device

2007-12-20 Thread Adrian McMenamin
On 20/12/2007, Adrian McMenamin [EMAIL PROTECTED] wrote: This patch adds support for the CD Rom device (called a GD Rom) on the SEGA Dreamcast.This device has a command block similar to a standard ATA-3 device, though implements Sega's proprietary packet interface - the so-called Sega Packet

Re: [PATCH - SH/Dreamcast] Add support for GD-Rom device

2007-12-21 Thread Adrian McMenamin
On Fri, December 21, 2007 2:22 pm, Jens Axboe wrote: On Fri, Dec 21 2007, Adrian McMenamin wrote: On 21/12/2007, Jens Axboe [EMAIL PROTECTED] wrote: Your design is also heavily geared towards there just being a single CDROM, I'm assuming this wont be a problem given your hw (it sets a bad

Re: [PATCH - SH/Dreamcast] Add support for GD-Rom device

2007-12-21 Thread Adrian McMenamin
On 21/12/2007, Jens Axboe [EMAIL PROTECTED] wrote: Your design is also heavily geared towards there just being a single CDROM, I'm assuming this wont be a problem given your hw (it sets a bad example for others to follow though, lots of violations against normal programming practice for

Re: [PATCH - SH/Dreamcast] Add support for GD-Rom device

2007-12-21 Thread Adrian McMenamin
On Fri, 2007-12-21 at 13:14 +0100, Jens Axboe wrote: What is pages doing in gdrom_request()? As the device doesn't do scatter-gather I've set blk_queue_max_segment_size to 1 and am not bothering with pages - is that wrong? -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH - SH/Dreamcast] Add support for GD-Rom device

2007-12-21 Thread Adrian McMenamin
On Fri, 2007-12-21 at 20:35 +0100, Jens Axboe wrote: backing_dev_info Sorry, I know what you mean now ... left over from an earlier experiments with read ahead. Will delete it now: didn't realise it was still lurking there) -- To unsubscribe from this list: send the line unsubscribe

Correct use of __init and __devinit

2007-12-23 Thread Adrian McMenamin
Could someone here help settle this argument? I have written a driver (for the CD Rom on the Sega Dreamcast). I have marked various initialisation functions - including probe() and the functions that it, and only it, calls, as __init. Other developers tell me I should mark them as __devinit.

[PATCH - SH/Dreamcast] CD-Rom (GD-Rom) support for the SEGA Dreamcast

2007-12-23 Thread Adrian McMenamin
versus __devinit - see http://lkml.org/lkml/2007/12/23/130 but I think otherwise it has dealt with most people's suggestions. The one exception is that Jens suggested using sector_div, though I found that did not work. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff -ruN linux-2.6-orig

Re: [PATCH - SH/Dreamcast] CD-Rom (GD-Rom) support for the SEGA Dreamcast

2007-12-23 Thread Adrian McMenamin
On 23/12/2007, Adrian McMenamin [EMAIL PROTECTED] wrote: This patch adds support for the CD-Rom (the so-called GD-Rom) on the SEGA Dreamcast. The GD-Rom is based on the ATA-3 standard but implements a proprietary packet interface - the so-called Sega Packet Interface (SPI) and supports

rq_for_each_bio

2007-12-08 Thread Adrian McMenamin
I have tried to search through the mailing list and it is not entirely clear, but it looks like this has gone from the kernel: not least because my driver reports: drivers/sh/gdrom/gdrom.c:665: error: implicit declaration of function 'rq_for_each_bio' I am not arguing for a stable ABI/API, I get

[PATCH 0/3] Add GD-Rom support to the SEGA Dreamcast

2007-12-15 Thread Adrian McMenamin
This has been tested against the latest git in Paul Mundt's 2.6.25 queue as well as 2.6.24-rc5 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 majordomo info at http

[PATCH 1/3] Add GD-Rom support to the SEGA Dreamcast

2007-12-15 Thread Adrian McMenamin
diff -ruN ./linux-2.6-orig/drivers/block/Kconfig ./linux-2.6/drivers/block/Kconfig --- ./linux-2.6-orig/drivers/block/Kconfig 2007-12-15 22:23:47.0 + +++ ./linux-2.6/drivers/block/Kconfig 2007-12-15 22:18:28.0 + @@ -105,6 +105,18 @@ MicroSolutions backpack

[PATCH 3/3] Add GD-Rom support to the SEGA Dreamcast

2007-12-15 Thread Adrian McMenamin
diff -ruN ./linux-2.6-orig/drivers/sh/Makefile ./linux-2.6/drivers/sh/Makefile --- ./linux-2.6-orig/drivers/sh/Makefile2007-12-15 22:23:59.0 + +++ ./linux-2.6/drivers/sh/Makefile 2007-12-15 22:18:45.0 + @@ -4,3 +4,4 @@ obj-$(CONFIG_SUPERHYWAY) +=

Re: [PATCH 0/3] Add GD-Rom support to the SEGA Dreamcast

2007-12-15 Thread Adrian McMenamin
On Sun, 2007-12-16 at 00:20 +, Adrian McMenamin wrote: (Apologies if you've already had this. I sent it to lkml etc an hour ago but it just disappeated into the ether - trying it in smaller packets this time.) vger/lkml's spam filtering is trapping the main part of the patch as spam

[PATCH 2/3] Add GD-Rom support to the SEGA Dreamcast

2007-12-15 Thread Adrian McMenamin
for the SEGA Dreamcast + * copyright Adrian McMenamin, 2007 + * With thanks to Marcus Comstedt and Nathan Keynes + * for work in reversing PIO and DMA + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published

Re: [PATCH 0/3] Add GD-Rom support to the SEGA Dreamcast

2007-12-16 Thread Adrian McMenamin
On Sun, 2007-12-16 at 13:13 +0900, Paul Mundt wrote: On Sun, Dec 16, 2007 at 12:20:54AM +, Adrian McMenamin wrote: This device is electrically compatible with ATA-3 IDE CD drives but implements a proprietary packet interface. There have been previous Dreamcast CD drivers around

Re: [PATCH 2/3] Add GD-Rom support to the SEGA Dreamcast

2007-12-16 Thread Adrian McMenamin
On Sun, 2007-12-16 at 18:50 +0900, Paul Mundt wrote: Ok, I don't know anything about the CD-ROM layer, so I've just commented on the general and SH-specific stuff. Hopefully someone with a clue in this area (ie, not me) can offer input on the rest of the bits. +static char

Re: [PATCH 2/3] Add GD-Rom support to the SEGA Dreamcast

2007-12-16 Thread Adrian McMenamin
On Sun, 2007-12-16 at 18:50 +0900, Paul Mundt wrote: +static int gdrom_readdisk_dma(int block, int block_cnt, char *buffer) +{ + int err; + struct packet_command *read_command; + /* release the spin lock but check later +* we're not in the middle of some dma */ +

[PATCH] SH/Dreamcast - add support for GD-Rom device

2007-12-26 Thread Adrian McMenamin
, not a modified version of previous drivers. This is the fourth iteration of this patch - which should work with both 2.6-24-rc5 and Paul Mundt's 2.6.25 queue. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff -rupN linux-2.6-orig/drivers/block/Kconfig linux-2.6/drivers/block/Kconfig

Re: [PATCH] SH/Dreamcast - add support for GD-Rom device

2007-12-27 Thread Adrian McMenamin
On Thu, 2007-12-27 at 17:18 +0900, Paul Mundt wrote: On Thu, Dec 27, 2007 at 01:26:47AM +, Adrian McMenamin wrote: + /* now seek to take the request spinlock +* before handling ending the request */ + spin_lock(gdrom_lock); + list_del_init

[PATCH] SH/Dreamcast - add support for GD-Rom device

2007-12-27 Thread Adrian McMenamin
, not a modified version of previous drivers. This is the fifth iteration of this patch - which should work with both 2.6-24-rc5 and Paul Mundt's 2.6.25 queue. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff -rupN linux-2.6-orig/drivers/block/Kconfig linux-2.6/drivers/block/Kconfig

Re: [PATCH] SH/Dreamcast - add support for GD-Rom device

2007-12-27 Thread Adrian McMenamin
On Thu, 2007-12-27 at 16:52 +, Adrian McMenamin wrote: This patch adds support for the CD-Rom drive on the SEGA Dreamcast. The SEGA Dreamcast has a built in CD-Rom drive, electrically similar to an ATA-3 drive, but implementing a proprietary packet interface - the so-called Sega Packet

Re: [PATCH] SH/Dreamcast - add support for GD-Rom device

2007-12-29 Thread Adrian McMenamin
On Fri, 2007-12-28 at 17:57 -0800, Joe Perches wrote: Perhaps (uncompiled/untested): Remove unnecessary parenthesis Remove GDROM: prefix from sense_texts Add function gdrom_data_request Check sense_key against sense_text array size Signed-off-by: Joe Perches [EMAIL

Re: [PATCH] SH/Dreamcast - add support for GD-Rom device

2007-12-29 Thread Adrian McMenamin
On Sat, 2007-12-29 at 12:03 +, Adrian McMenamin wrote: On Fri, 2007-12-28 at 17:57 -0800, Joe Perches wrote: Perhaps (uncompiled/untested): Remove unnecessary parenthesis Remove GDROM: prefix from sense_texts Add function gdrom_data_request Check sense_key

Re: [PATCH] Fix broken ip= parsing

2007-12-29 Thread Adrian McMenamin
] --- This patch certainly fixes the problem I was having with NFS root - I had a working setup that stopped (though at the same time as I updated my Busybox setup so I thought this was my mistake). Please apply. Tested by: Adrian McMenamin [EMAIL PROTECTED] -- To unsubscribe from this list: send the line

Re: [PATCH] SH/Dreamcast - add support for GD-Rom device

2007-12-30 Thread Adrian McMenamin
On Thu, 2007-12-27 at 14:58 -0800, Joe Perches wrote: On Thu, 2007-12-27 at 16:52 +, Adrian McMenamin wrote: This patch adds support for the CD-Rom drive on the SEGA Dreamcast. Because it was already so close, might as well make it checkpatch clean. I also added a function

[PATCH - SH] Clean up maple bus code to supress compiler warning

2007-10-28 Thread Adrian McMenamin
The API for uevent has changed for 2.6.24 and this patch makes a consequential clean up. (Apols to linux-sh list users seeing this for the second time, I should have included lkml first time round for completeness) Signed-off-by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/drivers/sh/maple

[PATCH] Dreamcast AICA sound - Get rid of annoying compiler warning

2007-10-28 Thread Adrian McMenamin
This patch supresses an annoying compiler warning that the variable err may be used uninitialised. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/sound/sh/aica.c b/sound/sh/aica.c index 88dc840..8861d2f 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c @@ -237,6 +237,7

[PATCH] ALSA - protect Dreamcast PCM driver (AICA) from G2 bus effects

2007-10-17 Thread Adrian McMenamin
). There are other cleanups for this (AICA) code - but this is in effect a regression fix rather than a cleanup. Signed-off-by: Adrian McMenamin [EMAIL PROTECTED] diff --git a/sound/sh/aica.c b/sound/sh/aica.c index 7397865..407981d 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c @@ -106,11 +106,14

[PATCH 1/2] SH/Dreamcast - joystick (Control pad)

2008-02-10 Thread Adrian McMenamin
Adds support for the Dreamcast control pad. This is a port of the 2.4 driver (never in mainline) by Yaegashi Takeshi. Signed-off-by: Adrian McMenamin [EMAIL PROTECTED] == --- /dev/null 2007-10-16 19:02:41.0 +0100 +++ drivers/input/joystick/maplecontrol.c 2008-02-10 22:50

[PATCH 2/2] SH/Dreamcast - joystick (controlpad)

2008-02-10 Thread Adrian McMenamin
Changes to the Kconfig and Makefile needed to build the Maple controlpad code. Signed-off-by: Adrian McMenamin [EMAIL PROTECTED] == diff --combined drivers/input/joystick/Kconfig index 7c662ee,7c662ee..3566fa2 --- a/drivers/input/joystick/Kconfig +++ b/drivers/input/joystick/Kconfig

Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad)

2008-02-11 Thread Adrian McMenamin
On Mon, February 11, 2008 4:25 pm, Dmitry Torokhov wrote: On Mon, Feb 11, 2008 at 11:19:22AM -0500, Mike Frysinger wrote: On Monday 11 February 2008, Adrian McMenamin wrote: On Mon, February 11, 2008 12:22 am, Mike Frysinger wrote: no remove function ? looks like the probe() forces

Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad)

2008-02-11 Thread Adrian McMenamin
On Mon, February 11, 2008 12:22 am, Mike Frysinger wrote: no remove function ? looks like the probe() forces a connect, but there's no remove() to force a disconnect ... Removing these devices (or any other plugged directly into the maple ports) is a quick way to destroy your Dreamcast:

Re: Fwd: [PATCH 0/3] Add Maple bus support for the SEGA Dreamcast - repost

2007-09-21 Thread Adrian McMenamin
On Fri, 2007-09-21 at 16:00 +0900, Paul Mundt wrote: On Thu, Sep 20, 2007 at 12:29:40PM +0100, Adrian McMenamin wrote: The Maple bus is SEGA's proprietary serial bus for peripherals (keyboard, mouse, controller etc). The bus is capable of some (limited) hotplugging and operates at up to 2 M

[PATCH] Add TV (RGB) support to Dreamcast PVR driver

2007-09-28 Thread Adrian McMenamin
Add support for RGB output to the Dreamcast PVR2 frame buffer driver. Signed-off by Adrian McMenamin [EMAIL PROTECTED] --- drivers/video/pvr2fb.c 2007/09/22 18:34:42 1.6 +++ drivers/video/pvr2fb.c 2007/09/23 00:04:31 1.7 @@ -667,6 +667,8 @@ static int pvr2_init_cable(void

[PATCH] Fix SH DMA API so it works with PVR cascade

2007-10-02 Thread Adrian McMenamin
(at least for the PVR) so that code is removed. Submitted-by: Adrian McMenamin [EMAIL PROTECTED] --- arch/sh/drivers/dma/dma-sh.c2007/09/22 18:34:42 1.1 +++ arch/sh/drivers/dma/dma-sh.c2007/09/22 18:37:28 1.2 @@ -150,6 +150,13 @@ static void sh_dmac_disable_dma(struct d

[PATCH] Fix up SH DMAC code to correctly handle PVR DMA

2007-10-02 Thread Adrian McMenamin
on a division by 32 before the xfer function is called * Currently the code supports reading and writing, but the hardware only supports writing Signed-off by Adrian McMenamin [EMAIL PROTECTED] --- arch/sh/drivers/dma/dma-sh.c2007/09/22 18:34:42 1.1 +++ arch/sh/drivers/dma/dma-sh.c

Re: [PATCH] Fix SH DMA API so it works with PVR cascade

2007-10-02 Thread Adrian McMenamin
On Tue, 2007-10-02 at 19:15 +0100, Adrian McMenamin wrote: This patch - hope it is not too late for 2.6.24 queue - gets the SH DMA API to work properly for the PVR2 DMA cascade. Please ignore this - sent in error - and look at http://lkml.org/lkml/2007/10/2/276 - To unsubscribe from this list

[PATCH] Fix SH DMAC code to handle PVR2 cascade

2007-10-02 Thread Adrian McMenamin
Fix SH DMAC code to correctly handle PVR2 cascade DMA. This updates http://lkml.org/lkml/2007/10/2/276 (I decided it was better to have the true size of the transfer put in via the API and refactor this here. And calc_xmit_shift(chan) should return 5 but only returns 3 so I've not used it here)

Re: [PATCH] Fix SH DMAC code to handle PVR2 cascade

2007-10-03 Thread Adrian McMenamin
On Wed, October 3, 2007 7:18 am, Paul Mundt wrote: On Tue, Oct 02, 2007 at 10:09:27PM +0100, Adrian McMenamin wrote: Fix SH DMAC code to correctly handle PVR2 cascade DMA. This updates http://lkml.org/lkml/2007/10/2/276 (I decided it was better to have the true size of the transfer put

Re: [PATCH] Fix SH DMAC code to handle PVR2 cascade

2007-10-04 Thread Adrian McMenamin
On Thu, October 4, 2007 11:01 am, Paul Mundt wrote: So for PVR2 cascade, what does the CHCR value work out to? Both CHCR_TS_MASK and CHCR_TS_SHIFT haven't changed for SH7750, so this suggests that either the CHCR value is just wrong or we've had a long-standing bug with the CHCR.TS mask.

[PATCH] Fix SH4 DMAC API

2007-10-06 Thread Adrian McMenamin
This patch fixes the DMA cascade by masking the correct bits. Tested and working with Dreamcast PVR2 DMA. With this patch applied the existing mainline code in arch/sh/drivers/dma/dma-sh.c works, whereas before I was patching that to get round this problem. Signed-off by: Adrian McMenamin [EMAIL

[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] 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

[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] 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 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 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 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

Re: [PATCH] Fix DMA on Dreamcast

2007-07-21 Thread Adrian McMenamin
On 20/07/07, Andrew Morton [EMAIL PROTECTED] wrote: On Thu, 19 Jul 2007 20:30:34 +0100 Adrian McMenamin [EMAIL PROTECTED] wrote: I think my first attempt to post this may have got lost in space somewhere. Signed-off by: Adrian McMenamin [EMAIL PROTECTED] Please provide a description of what

Re: [PATCH] Fix DMA on Dreamcast

2007-07-21 Thread Adrian McMenamin
On 21/07/07, Peter Bortas [EMAIL PROTECTED] wrote: Sidenote: Does Linux handle the Dreamcast DMA errata? You need to explain what you mean (at least to me!). If you mean will it degrade gracefully - not without this patch if set to the (correct) defconfig. With iffy settings it will. - To

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 [

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

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

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

  1   2   3   4   >