[4387] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

SCSI Scanner driver, kernel-2.0.34, aha152x.c

daemon@ATHENA.MIT.EDU (Stephane KLEIN)
Fri Jul 17 06:00:49 1998

Date: 	Fri, 17 Jul 1998 10:49:29 +0200
From: Stephane KLEIN <stef@dalim.de>
To: linux-scsi@vger.rutgers.edu

This is a multi-part message in MIME format.
--------------FDA66A8050C0BEC78613F8A5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

I am trying to use an Agfa ( Studioscan ) flat bed scanner on my
linux box with a UNIX driver that work fine on lots of different
UNIX's ( IRIX 5.x, 6.x, Sunos, Solaris, HP-UX ... )

In order to do that I have created a new generic scsi device driver
that allows me to send my scsi commands the same way as with
other UNIX box. This device driver mostly takes 90% of "sg.c"'s
code and only modify the way the scsi commands are sent ( ioctl
structure instead of using read and write with sg ).

I am now able to send my scsi commands through my device driver
but some scsi command causes a "general protection: 0000" error
while waiting in "interruptible_sleep_on" after calling "scsi_do_cmd".
I don't know why some commands are working and some are not and I
also don't know how to interpret the syslog messages:

Thanks in advance for any help.

The "syslog":


Jul 17 00:24:17 lulu kernel: do cmd CMD 15 SIZE 6
Jul 17 00:24:17 lulu kernel: done cmd
Jul 17 00:24:17 lulu kernel: waitCommand 1c600b8
Jul 17 00:24:17 lulu kernel: waitCommand 2 pending 1 complete 0
Jul 17 00:24:17 lulu kernel: waitCommand 3 1c600c0
Jul 17 00:24:17 lulu kernel: cal_command_done
Jul 17 00:24:17 lulu kernel: waitCommand 4
Jul 17 00:24:17 lulu kernel: waitCommand 900627857
Jul 17 00:24:20 lulu kernel: allocating device
Jul 17 00:24:20 lulu kernel: device allocated
Jul 17 00:24:20 lulu kernel: do cmd CMD 15 SIZE 6
Jul 17 00:24:20 lulu kernel: done cmd
Jul 17 00:24:20 lulu kernel: waitCommand 1c600b8
Jul 17 00:24:20 lulu kernel: waitCommand 2 pending 1 complete 0
Jul 17 00:24:20 lulu kernel: waitCommand 3 1c600c0
Jul 17 00:24:21 lulu kernel: general protection: 0000
Jul 17 00:24:21 lulu kernel: CPU:    0
Jul 17 00:24:21 lulu kernel: EIP:    0010:[<02853920>]
Jul 17 00:24:21 lulu kernel: EFLAGS: 00010086
Jul 17 00:24:21 lulu kernel: eax: 01dda410   ebx: ffffffff
ecx:c0c0c0c0   edx: 00000000
Jul 17 00:24:21 lulu kernel: esi: 00000001   edi: 01d92018
ebp:000003e7   esp: 001956fc
Jul 17 00:24:21 lulu kernel: ds: 0018   es: 0018   fs: 002b   gs:
0018ss: 0018
Jul 17 00:24:21 lulu kernel: Process swapper (pid: 0, process nr:
0,stackpage=001938a8)
Jul 17 00:24:21 lulu kernel: Stack: 00000000 01d92018 00000008
0000000000000216 02852c2d 01d92018 00000000
Jul 17 00:24:21 lulu kernel:        00000340 01d92018 00000008
01dda410000000f7 00000018 00000018 00000008
Jul 17 00:24:21 lulu kernel:        01dda410 0285d25d 01d92018
0000000400000000 00000008 00000000 0285d7d7
Jul 17 00:24:21 lulu kernel: Call Trace: [<02852c2d>]
[<0285d25d>][<0285d7d7>] [add_timer_randomness+432/444]
[timer_bh+193/820][timer_bh+248/820] [do_bottom_half+59/96]
Jul 17 00:24:22 lulu kernel:
[do_fast_IRQ+42/76][fast_IRQ9_interrupt+65/112] [sys_idle+92/112]
[system_call+85/128][init+0/624] [start_kernel+478/488]
Jul 17 00:24:22 lulu kernel: Code: 8b 91 b0 00 00 00 85 d2 7e 28 39 f974
08 29 f2 89 91 b0 00
Jul 17 00:24:22 lulu kernel: Aiee, killing interrupt handler
Jul 17 00:24:22 lulu kernel: kfree of non-kmalloced memory:
001958f0,next= 00000000, order=0
Jul 17 00:24:22 lulu kernel: kfree of non-kmalloced memory:
001958e0,next= 00000000, order=0
Jul 17 00:24:22 lulu kernel: kfree of non-kmalloced memory:
00195df4,next= 00000000, order=0
Jul 17 00:24:22 lulu kernel: idle task may not sleep
Jul 17 00:24:22 lulu last message repeated 4 times
Jul 17 00:24:22 lulu kerneld: error: exit: Identifier removed
Jul 17 00:24:31 lulu kernel: general protection: 0000
Jul 17 00:24:31 lulu kernel: CPU:    0
Jul 17 00:24:31 lulu kernel: EIP:    0010:[<02853920>]
Jul 17 00:24:31 lulu kernel: EFLAGS: 00010086
Jul 17 00:24:31 lulu kernel: eax: 01dda410   ebx: ffffffff
ecx:c0c0c0c0   edx: 00000000
Jul 17 00:24:31 lulu kernel: esi: 000003e7   edi: 00000000
ebp:00000000   esp: 001955c0
Jul 17 00:24:31 lulu kernel: ds: 0018   es: 0018   fs: 002b   gs:
0000ss: 0018
Jul 17 00:24:31 lulu kernel: Process swapper (pid: 0, process nr:
0,stackpage=001938a8)
Jul 17 00:24:31 lulu kernel: Stack: 00040000 001b09b0 00000206
0019560400000002 028537d7 00000000 00000000
Jul 17 00:24:31 lulu kernel:        00040000 001b09b0 00000001
0011258000000001 ffffffff 00000001 00000001
Jul 17 00:24:31 lulu kernel:        00195620 001b0820 00118057
0019562000000000 00000000 00000009 0010a60b
Jul 17 00:24:31 lulu kernel: Call Trace: [<028537d7>]
[timer_bh+248/820][do_bottom_half+59/96] [handle_bottom_half+11/32]
[exit_notify+62/480][do_exit+456/508] [die_if_kernel+695/704]
Jul 17 00:24:31 lulu kernel:        [<03000000>]
[<02800000>][redo_fd_request+576/792]
[do_general_protection+40/84][do_general_protection+0/84]
[error_code+64/80] [<02853920>][<02852c2d>]
Jul 17 00:24:31 lulu kernel:        [<0285d25d>]
[<0285d7d7>][add_timer_randomness+432/444] [timer_bh+193/820]
[timer_bh+248/820][do_bottom_half+59/96] [do_fast_IRQ+42/76]
[fast_IRQ9_interrupt+65/112]
Jul 17 00:24:31 lulu kernel:
[sys_idle+92/112][system_call+85/128] [init+0/624]
[start_kernel+478/488]
Jul 17 00:24:31 lulu kernel: Code: 8b 91 b0 00 00 00 85 d2 7e 28 39 f974
08 29 f2 89 91 b0 00
Jul 17 00:24:31 lulu kernel: Aiee, killing interrupt handler





--------------FDA66A8050C0BEC78613F8A5
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for KLEIN Stephane
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             KLEIN Stephane
n:              Stephane;KLEIN
org:            DALIM Gmbh
adr:            Daimler strasse 2,;;;Kehl/Rhein;;D-77694;GERMANY
email;internet: stef@dalim.de
title:          R&D Software Engineer
tel;work:       +49(0)7851919624
tel;fax:        +49(0)785173576
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


--------------FDA66A8050C0BEC78613F8A5--


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post