Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26431 - can't use atp870u scsi driver with 2.5.x/2.6.x kernels.
Summary: can't use atp870u scsi driver with 2.5.x/2.6.x kernels.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-11 16:30 UTC by Ahmed Farid
Modified: 2003-08-22 05:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the results from strace (modprobe_atp870u.strace,2.96 KB, text/plain)
2003-08-11 16:36 UTC, Ahmed Farid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmed Farid 2003-08-11 16:30:56 UTC
i have tried it with every single kernel from 2.5.70-mm1 til 2.6.0-test2-mm5,
all the same results.
if i build it into the kernel it would freeze while booting, if i build it as a
module and modprobe it it'd freeze modprobe and the only way i kill it is "rm -f
atp870u".
i tried to enable/disable acpi/prempt/elevator but all the same results...
i really hare rebooting 2.4.20-gentoo-r5 everytime i want to use the CDR drive.
i'll attach strace results in a sec.

emerge info : 
Portage 2.0.48-r7 (default-x86-1.4, gcc-3.3-r1, 2.3.2-r3)
=================================================================
System uname: 2.6.0-test2-mm5 i686 Intel(R) Pentium(R) 4 CPU 2.20GHz
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://gentoo.mirrors.pair.com http://www.ibiblio.org/gentoo 
ftp://gentoo.mirrors.pair.com http://gentoo.chem.wisc.edu/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /etc/make.conf /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx
mpeg ncurses pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm
berkdb slang readline arts tetex tcltk mysql X sdl gpm tcpd pam libwww ssl perl
python imlib oggvorbis gtk qt kde motif opengl mozilla cdr apache2 md5sum
mozinterfaceinfo moznoirc moznomail mozp3p mozsvg mozxmlterm offensive pic
prebuilt sse threads tiff usb xml xosd -3dnow -java -nls -svga -esd -gnome"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -pipe -fomit-frame-pointer -fforce-addr -ftracer
-mfpmath=sse,387 -fprefetch-loop-arrays -ffast-math -funroll-loops -O3"
CXXFLAGS="-march=pentium4 -pipe -fomit-frame-pointer -fforce-addr -ftracer
-mfpmath=sse,387 -fprefetch-loop-arrays -ffast-math -funroll-loops -O3"
ACCEPT_KEYWORDS="~x86 x86"
MAKEOPTS="-j2"
AUTOCLEAN="no"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Ahmed Farid 2003-08-11 16:32:46 UTC
the important part of dmesg (after enabling scsi verbose) :
aec671x_detect:
Unable to handle kernel paging request at virtual address d9ca6f43
 printing eip:
d9ca6f43
*pde = 15dc5067
*pte = 00000000
Oops: 0000 [#1]
PREEMPT
CPU:    0
EIP:    0060:[<d9ca6f43>]    Tainted: PF  VLI
EFLAGS: 00010282
EIP is at 0xd9ca6f43
eax: 00000000   ebx: 00000000   ecx: d3962000   edx: d709e000
esi: 00000000   edi: d709ff2c   ebp: c034bf58   esp: d709fbfc
ds: 007b   es: 007b   ss: 0068
Process modprobe (pid: 17815, threadinfo=d709e000 task=d7cc9900)
Stack: 00001191 00008081 00000000 c034c1b0 c034c1b0 00000202 c034c1b0 c01381bb
       c1135538 00000000 00000010 c034c288 00000000 000001eb 00106025 00000000
       c013830d c034c1b0 00000000 00000000 d709e000 00000000 d7cc9900 c034c1b0
Call Trace:
 [<c01381bb>] buffered_rmqueue+0xd6/0x182
 [<c013830d>] __alloc_pages+0xa6/0x314
 [<c014171c>] do_anonymous_page+0x133/0x224
 [<c0141d56>] handle_mm_fault+0xd6/0x166
 [<c0118486>] do_page_fault+0x252/0x459
 [<c025e93b>] start_request+0x167/0x276
 [<c0119e16>] schedule+0x31c/0x57b
 [<c025ee41>] do_ide_request+0x1d/0x21
 [<c023ffba>] generic_unplug_device+0x77/0x79
 [<c0118234>] do_page_fault+0x0/0x459
 [<c02fa55f>] error_code+0x2f/0x38
 [<c0134ea5>] file_read_actor+0xd9/0xea
 [<c0134aa7>] do_generic_mapping_read+0x160/0x485
 [<c0134dcc>] file_read_actor+0x0/0xea
 [<c01350ad>] __generic_file_aio_read+0x1f7/0x229
 [<c0119189>] recalc_task_prio+0x7b/0x11b
 [<c0124c44>] update_process_times+0x46/0x52
 [<c0124abe>] update_wall_time+0xd/0x36
 [<c0124f1a>] do_timer+0xdf/0xe4
 [<c01381bb>] buffered_rmqueue+0xd6/0x182
 [<c014926c>] map_area_pmd+0x66/0x8e
 [<c014915a>] unmap_area_pmd+0x4b/0x56
 [<c01495be>] __vunmap+0x88/0xb3
 [<c0149610>] vfree+0x27/0x35
 [<c0131ea4>] load_module+0x6d5/0x8f9
 [<c01321df>] sys_init_module+0x117/0x228
 [<c02fa3b3>] syscall_call+0x7/0xb

Code:  Bad EIP value.
Comment 2 Ahmed Farid 2003-08-11 16:36:24 UTC
Created attachment 15939 [details]
the results from strace

ps : i had to rmmod -f atp870u to be able to exit strace.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2003-08-12 04:22:28 UTC
This really needs to go to the kernel development folks instead...

http://marc.theaimsgroup.com/?l=linux-scsi&r=1&w=2 
and 
linux-scsi@vger.kernel.org

... if you get this through 2.5.70-mm1 up to 2.6.0-test-mm5

Try kernel 2.5.43. SCSI structures [including the atp870u] were changed in 2.5.44. If it works on 2.5.43 step through every working version, once it stops working we can find something to compare the problem against...
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2003-08-12 04:24:01 UTC
Also, have you tried a vanilla kernel [ development-sources ] ...

The problem might be in Andrew Morton's patches?
Comment 5 Ahmed Farid 2003-08-12 13:43:28 UTC
i did once, using 2.5.71, was the same result :-/
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2003-08-12 14:04:50 UTC
Right... Have you tried 2.5.44?
Comment 7 Ahmed Farid 2003-08-13 14:32:44 UTC
not on gentoo, but i remember one of the early < 2.5.60 kernels used to work fine with my scsi.

peace
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2003-08-13 15:21:31 UTC
I can't do much to help you unless you can give me the kernel version at which you start getting problems at, with a kernel version we can diff the SCSI layer and see anything which might cause problems and send it to the kernel-devs...
Comment 9 Ahmed Farid 2003-08-14 13:29:54 UTC
i can't offerd to download older kernels right now, but i'm pretty sure it started after 2.5.67.

peace
Comment 10 Ahmed Farid 2003-08-20 07:18:37 UTC
just wanted to add that there's a patch added in 2.6.0-test3-mm3 for it but it's not really working.

peace
Comment 11 Tim Yamin (RETIRED) gentoo-dev 2003-08-22 05:52:22 UTC
Please forward this to the kernel SCSI maintainer...