* [PATCH 2.5.bk] allow sbp2 driver to compile again
@ 2002-10-30 14:13 Stelian Pop
2002-10-30 14:26 ` Ben Collins
0 siblings, 1 reply; 7+ messages in thread
From: Stelian Pop @ 2002-10-30 14:13 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: linux1394-devel
Hi,
The attached patch is required to make the sbp2 compile again.
Note however that, until 2.5.45 is released, one should tweak
the Makefile to manually change the version in order to get
the KERNEL_VERSION tests work...
Stelian.
===== drivers/ieee1394/sbp2.h 1.10 vs edited =====
--- 1.10/drivers/ieee1394/sbp2.h Sat Oct 12 23:40:06 2002
+++ edited/drivers/ieee1394/sbp2.h Wed Oct 30 12:32:39 2002
@@ -549,10 +549,11 @@
static int sbp2scsi_detect (Scsi_Host_Template *tpnt);
static const char *sbp2scsi_info (struct Scsi_Host *host);
void sbp2scsi_setup(char *str, int *ints);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,28)
-static int sbp2scsi_biosparam (Scsi_Disk *disk, kdev_t dev, int geom[]);
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,44)
+static int sbp2scsi_biosparam (struct scsi_device *sdev,
+ struct block_device *dev, sector_t capacity, int geom[]);
#else
-static int sbp2scsi_biosparam (Scsi_Disk *disk, struct block_device *dev, int geom[]);
+static int sbp2scsi_biosparam (Scsi_Disk *disk, kdev_t dev, int geom[]);
#endif
static int sbp2scsi_abort (Scsi_Cmnd *SCpnt);
static int sbp2scsi_reset (Scsi_Cmnd *SCpnt);
===== drivers/ieee1394/sbp2.c 1.16 vs edited =====
--- 1.16/drivers/ieee1394/sbp2.c Tue Oct 29 01:27:33 2002
+++ edited/drivers/ieee1394/sbp2.c Wed Oct 30 12:32:58 2002
@@ -3139,12 +3139,12 @@
*/
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,44)
static int sbp2scsi_biosparam (struct scsi_device *sdev,
- struct block_device *dev, sector_t capacy, int geom[])
+ struct block_device *dev, sector_t capacity, int geom[])
{
#else
static int sbp2scsi_biosparam (Scsi_Disk *disk, kdev_t dev, int geom[])
{
- sector_t capacy = disk->capacity;
+ sector_t capacity = disk->capacity;
#endif
int heads, sectors, cylinders;
--
Stelian Pop <stelian.pop@fr.alcove.com>
Alcove - http://www.alcove.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.5.bk] allow sbp2 driver to compile again
2002-10-30 14:13 [PATCH 2.5.bk] allow sbp2 driver to compile again Stelian Pop
@ 2002-10-30 14:26 ` Ben Collins
2002-10-30 14:32 ` Stelian Pop
0 siblings, 1 reply; 7+ messages in thread
From: Ben Collins @ 2002-10-30 14:26 UTC (permalink / raw)
To: Stelian Pop, Linux Kernel Mailing List, linux1394-devel
On Wed, Oct 30, 2002 at 03:13:38PM +0100, Stelian Pop wrote:
> Hi,
>
> The attached patch is required to make the sbp2 compile again.
>
> Note however that, until 2.5.45 is released, one should tweak
> the Makefile to manually change the version in order to get
> the KERNEL_VERSION tests work...
You're going to need to diff this against our SVN tree, or wait till I
resync with 2.5.45. Seems it depends on patches in BK against our stock
source.
--
Debian - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo - http://www.deqo.com/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.5.bk] allow sbp2 driver to compile again
2002-10-30 14:26 ` Ben Collins
@ 2002-10-30 14:32 ` Stelian Pop
2002-10-30 14:37 ` Ben Collins
0 siblings, 1 reply; 7+ messages in thread
From: Stelian Pop @ 2002-10-30 14:32 UTC (permalink / raw)
To: Ben Collins; +Cc: Linux Kernel Mailing List, linux1394-devel
On Wed, Oct 30, 2002 at 09:26:12AM -0500, Ben Collins wrote:
> On Wed, Oct 30, 2002 at 03:13:38PM +0100, Stelian Pop wrote:
> > Hi,
> >
> > The attached patch is required to make the sbp2 compile again.
> >
> > Note however that, until 2.5.45 is released, one should tweak
> > the Makefile to manually change the version in order to get
> > the KERNEL_VERSION tests work...
>
> You're going to need to diff this against our SVN tree, or wait till I
> resync with 2.5.45. Seems it depends on patches in BK against our stock
> source.
Sure, no problem, it's a two-liner...
While we are at it, there are a lot of 'bad: scheduling while atomic!'
and 'sleeping function called from illegal context' when loading
the ohci1394/sbp2 drivers (detailed stack available when compiling
with CONFIG_DEBUG_KERNEL)...
Stelian.
--
Stelian Pop <stelian.pop@fr.alcove.com>
Alcove - http://www.alcove.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.5.bk] allow sbp2 driver to compile again
2002-10-30 14:32 ` Stelian Pop
@ 2002-10-30 14:37 ` Ben Collins
2002-10-30 14:40 ` Stelian Pop
2002-10-30 15:04 ` Stelian Pop
0 siblings, 2 replies; 7+ messages in thread
From: Ben Collins @ 2002-10-30 14:37 UTC (permalink / raw)
To: Stelian Pop, Linux Kernel Mailing List, linux1394-devel
On Wed, Oct 30, 2002 at 03:32:18PM +0100, Stelian Pop wrote:
> On Wed, Oct 30, 2002 at 09:26:12AM -0500, Ben Collins wrote:
>
> > On Wed, Oct 30, 2002 at 03:13:38PM +0100, Stelian Pop wrote:
> > > Hi,
> > >
> > > The attached patch is required to make the sbp2 compile again.
> > >
> > > Note however that, until 2.5.45 is released, one should tweak
> > > the Makefile to manually change the version in order to get
> > > the KERNEL_VERSION tests work...
> >
> > You're going to need to diff this against our SVN tree, or wait till I
> > resync with 2.5.45. Seems it depends on patches in BK against our stock
> > source.
>
> Sure, no problem, it's a two-liner...
>
> While we are at it, there are a lot of 'bad: scheduling while atomic!'
> and 'sleeping function called from illegal context' when loading
> the ohci1394/sbp2 drivers (detailed stack available when compiling
> with CONFIG_DEBUG_KERNEL)...
Yeah, I've noticed aswell. Problem is I don't have a machine that runs
2.5.x stable enough to do some testing.
--
Debian - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo - http://www.deqo.com/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.5.bk] allow sbp2 driver to compile again
2002-10-30 14:37 ` Ben Collins
@ 2002-10-30 14:40 ` Stelian Pop
2002-10-30 15:50 ` Ben Collins
2002-10-30 15:04 ` Stelian Pop
1 sibling, 1 reply; 7+ messages in thread
From: Stelian Pop @ 2002-10-30 14:40 UTC (permalink / raw)
To: Ben Collins; +Cc: Linux Kernel Mailing List, linux1394-devel
On Wed, Oct 30, 2002 at 09:37:20AM -0500, Ben Collins wrote:
> > While we are at it, there are a lot of 'bad: scheduling while atomic!'
> > and 'sleeping function called from illegal context' when loading
> > the ohci1394/sbp2 drivers (detailed stack available when compiling
> > with CONFIG_DEBUG_KERNEL)...
>
> Yeah, I've noticed aswell. Problem is I don't have a machine that runs
> 2.5.x stable enough to do some testing.
Well, it should just be stable enough to survive a modprobe ohci1394...
Stelian.
--
Stelian Pop <stelian.pop@fr.alcove.com>
Alcove - http://www.alcove.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.5.bk] allow sbp2 driver to compile again
2002-10-30 14:37 ` Ben Collins
2002-10-30 14:40 ` Stelian Pop
@ 2002-10-30 15:04 ` Stelian Pop
1 sibling, 0 replies; 7+ messages in thread
From: Stelian Pop @ 2002-10-30 15:04 UTC (permalink / raw)
To: Ben Collins; +Cc: Linux Kernel Mailing List, linux1394-devel
On Wed, Oct 30, 2002 at 09:37:20AM -0500, Ben Collins wrote:
> > While we are at it, there are a lot of 'bad: scheduling while atomic!'
> > and 'sleeping function called from illegal context' when loading
> > the ohci1394/sbp2 drivers (detailed stack available when compiling
> > with CONFIG_DEBUG_KERNEL)...
>
> Yeah, I've noticed aswell. Problem is I don't have a machine that runs
> 2.5.x stable enough to do some testing.
A quick look shows that (most of) the problems come from
highlevel.c, in the add_host etc. methods, where each driver
add_host etc. methods are called (which do kmallocs and schedules)
while a read_lock is taken.
Stelian.
--
Stelian Pop <stelian.pop@fr.alcove.com>
Alcove - http://www.alcove.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.5.bk] allow sbp2 driver to compile again
2002-10-30 14:40 ` Stelian Pop
@ 2002-10-30 15:50 ` Ben Collins
0 siblings, 0 replies; 7+ messages in thread
From: Ben Collins @ 2002-10-30 15:50 UTC (permalink / raw)
To: Stelian Pop, Linux Kernel Mailing List, linux1394-devel
On Wed, Oct 30, 2002 at 03:40:04PM +0100, Stelian Pop wrote:
> On Wed, Oct 30, 2002 at 09:37:20AM -0500, Ben Collins wrote:
>
> > > While we are at it, there are a lot of 'bad: scheduling while atomic!'
> > > and 'sleeping function called from illegal context' when loading
> > > the ohci1394/sbp2 drivers (detailed stack available when compiling
> > > with CONFIG_DEBUG_KERNEL)...
> >
> > Yeah, I've noticed aswell. Problem is I don't have a machine that runs
> > 2.5.x stable enough to do some testing.
>
> Well, it should just be stable enough to survive a modprobe ohci1394...
I don't have any i386's to test with. I'm doing all my 1394 development
on ultrasparc, and a little on ia64, parisc, and powerpc...you know,
real machines :)
I'll be able to look at this over the weekend.
--
Debian - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo - http://www.deqo.com/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-10-30 15:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-30 14:13 [PATCH 2.5.bk] allow sbp2 driver to compile again Stelian Pop
2002-10-30 14:26 ` Ben Collins
2002-10-30 14:32 ` Stelian Pop
2002-10-30 14:37 ` Ben Collins
2002-10-30 14:40 ` Stelian Pop
2002-10-30 15:50 ` Ben Collins
2002-10-30 15:04 ` Stelian Pop
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox