From: Chiaki <ishikawa@yk.rim.or.jp>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: linux-scsi@vger.kernel.org
Subject: Re: TMSCSIM [2.6]
Date: Wed, 26 Nov 2003 07:44:38 +0900 [thread overview]
Message-ID: <3FC3DB56.6020104@yk.rim.or.jp> (raw)
In-Reply-To: <Pine.LNX.4.44.0311252311360.14624-100000@poirot.grange>
Guennadi Liakhovetski wrote:
> On Wed, 26 Nov 2003, Chiaki wrote:
>
>
>>I am using TEKRAM dc390. I use tmscsim driver as a module.
>>There is a PD/CD combo on the dc390 scsi bus. (PD is
>>a somewhat outdated optomagnetic drive. The drive has
>>two LUNs, one for CD, and one for PD. PD side is recognized as
>>rewritable removable media at least under 2.4.22.)
>>
>>With the modified tmscsim driver under 2.6.0-test10,
>>(the bzipped patch submitted to linux-scsi worked without rejection)
>>I got a panic after module insertion during booting.
>>tmscsim is mentioned in /etc/modules and so inserted automatically
>>during booting.
>>
>>(More background: related stuff I can think of.
>> kernel 2.6.0-test10.
>> tmscsim ... used as module
>> sr ... module as sr_mod
>> event mechanism enabled in the kernel.
>> gcc 3.3 used...)
>>
>>Here is the panic message left on the screen which I scribbed down
>>manually.
>>
>> ... anything above is scrolled and disappeared but I saw the
>> module insertion began. ...
>>esi: ef63a2f0 edi: 00000001 ebp: c03a5e4c esp: c03a5e3c
>>ds: 007b es: 007b ss: 0068
>>
>>Process swapper (pid:0, threadinfo = c03a4000, task=c0338680)
>>
>>Stack: 00000000 ef63a2f0 efc617c0 ef5e92c0 c0ea5e8c f09451d1 ef63a2f0
>>ef63a2f0
>> ef5e92c0 ef5e92c0 c03a5ea4 f09451d1 ef63a2f0 4f89f21d 00000021
>>00000001
>> cc000092 ef63a2f0 efc617c0 ef63a208 c03a5ec4 f0946e36 ef63a208
>>ef5e92c0
>>
>>Call trace:
>> [<f09451d1>] dc390_StartSCCSI+0x41/0x330 [tmscsim]
>> [<f09451d1>] dc390_StartSCCSI+0x41/0x330 [tmscsim]
>> [<f0946e36>] dc390_SRBdone+0x306/0x5b0 [tmscsim]
>> [<f09472f3>] dc390_RequestSense+0x53/0x90 [tmscsim]
>> [<f0946714>] dc390_Disconnect+0x104/0x160 [tmscsim]
>> [<f094574a>] do_DC390_Interrupt:0x28d/0x350 [tmscsim]
>> [<c025dc88>] scsi_softirq+0xe8/0x240
>> [<c010da4b>] handle_IRQ_event:0x3b/0x70
>> [<c010e060>] do_IRQ+0x140/0x390
>> [<c0105000>] _stext+0x0/0xf0
>> [<c010c0ec>] common_interrupt:0x18/0x20
>> [<c0105000>] _stext+0x0/0xf0
>> [<c0108ea6>] default_idel+0x26/0x30
>> [<c0108f24>] cpu_idle+0x34/0x40
>> [<c03a6797>] start_kernel+0x1e7/0x270
>> [<c03a6480>] unknown_bootoption+0x0/0x100
>>
>>Code: 0f 0b 28 00 77 9d 94 f0 eb c5 0f 0b 25 00 77 9d 94 f0 eb e8
>>
>><0> Kernel panic: Fatal exception in interrupt
>> In interrupt handler --- not syncing
>
>
> Aha, now that's getting interesting - or I was started to feel borref
> already:-) A couple of things, that would definitely help:
>
Hi,
> 1) is this the only computer you have? If you had another one - could you
> attach a serial console and get a complete Oops?
I will try this later today.
> 2) gcc-3.3 could be ok, but I don't really feel quite secure about it...
> If we don't find an obvious bug somewhere, I'll ask you to try recompile
> it with 2.95.3, ok?
No problem. I will try this also.
> 3) are you sure you copied the Oops exactly from the terminal? It didn't
> get into /var/log/messages, I presume. Some things in that Oops above look
> a bit strange... E.g. the double
As far as manual copying goes, I did my best.
Indeed, I noticed the duplicate lines and I thought that was quite strange!
I suspect that it might lead to the cause of the problem.
> I'll try to think about it a bit, but without a complete and exact Oops it
> is a bit difficult, also, that the code, generated by your 3.3 seems to be
> very different, from what 2.95.3 produces. Your .config (bzipped) could be
> useful too. I guess, you have the multiple LUNs option enabled, I'll try
> that too, but my hardware is very different from what you have there -
> just a AM53C974 and a single hard-drive on it.
>
I will try to capture the complete oops and
send it as well as the .config file together.
Yes, my hardware is a rather quirky kind for home use
and it has found a few problems in the kernel and driver before.
I will get back with the information
hopefully in 24 hours.
>>OBSERVATION:
>>
>> alt sysreq magic key combination worked.
>> I could run emergency sync and reboot.
>>
>> From the kernel panic message, and the call trace, it looks to
>> me that the interrupt is recursively entered somehow.
>> (Or unexpected interrupt came in.)
>>
>>
>>So what next?
>>I can enable debugging macro if necessary and re-try.
>>
>>Or, I can disable tmscsim module insertion during booting,
>>and try "insmod tmscsim" after the kernel is up and running and
>>see if it makes difference.
>>
>>(Under 2.6.0-test9, and manually fixed patched tmscsim files (due to
>>whitespace problems of the patch), I could insert the tmscsim module
>>but "insmod tmscsim" took unusually long time, but eventually
>>returned. However, /proc/scsi/ didn't show the 2nd LUN of the
>>PD/CD combo I have on dc390 bus. Maybe it was a problem of
>>insertion of sr_mod due to my misconfiguration of module set up
>>for 2.6.0-testXX which I believe is now corrected.
>>Since immediately
>>afterward when I tried automatic insertion of dc390 during booting,
>>I got a similar panic which I reported above, I didn't pursue
>>the insertion testing after the kernel is up and running.
>>I thought fixing the panic of auto insertion needs to be handled first.
>>But maybe I should re-try under test10 if this gives more insight.)
>
>
>
--
int main(void){int j=2003;/*(c)2003 cishikawa. */
char t[] ="<CI> @abcdefghijklmnopqrstuvwxyz.,\n\"";
char *i ="g>qtCIuqivb,gCwe\np@.ietCIuqi\"tqkvv is>dnamz";
while(*i)((j+=strchr(t,*i++)-(int)t),(j%=sizeof t-1),
(putchar(t[j])));return 0;}/* under GPL */
next prev parent reply other threads:[~2003-11-25 22:45 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.44.0311242223130.2874-200000@poirot.grange>
2003-11-24 22:33 ` TMSCSIM [2.6] (was: Re: [PATCH] Re: AMD 53c974 SCSI driver in 2.6) Guennadi Liakhovetski
2003-11-25 20:58 ` TMSCSIM [2.6] Chiaki
2003-11-25 21:16 ` Chiaki
2003-11-25 22:26 ` Guennadi Liakhovetski
2003-11-25 22:44 ` Chiaki [this message]
2003-11-27 19:13 ` Chiaki
2003-11-27 22:05 ` Guennadi Liakhovetski
2003-11-28 1:41 ` Chiaki
2003-11-28 7:33 ` Guennadi Liakhovetski
2003-11-29 1:55 ` Chiaki
2003-11-29 9:46 ` Guennadi Liakhovetski
2003-11-29 9:58 ` Guennadi Liakhovetski
2003-11-29 13:06 ` Matthias Andree
2003-11-29 20:37 ` Guennadi Liakhovetski
2003-11-29 18:11 ` Kurt Garloff
2003-11-29 18:36 ` James Bottomley
2003-11-29 21:19 ` Guennadi Liakhovetski
2003-11-30 5:27 ` Chiaki
2003-11-28 20:25 ` Guennadi Liakhovetski
2003-11-29 11:03 ` Thorsten Leemhuis
2003-11-29 12:43 ` Thorsten Leemhuis
2003-11-27 22:43 ` TMSCSIM [2.6] (cards) Guennadi Liakhovetski
2003-11-28 1:45 ` Chiaki
2003-11-29 18:14 ` Kurt Garloff
[not found] <1069954227.1667.1.camel@work.thl.home>
2003-11-28 9:05 ` TMSCSIM [2.6] Guennadi Liakhovetski
2003-11-22 23:27 TMSCSIM [2.6] (was: Re: [PATCH] Re: AMD 53c974 SCSI driver in 2.6) Guennadi Liakhovetski
2003-11-23 20:26 ` TMSCSIM [2.6] Matthias Andree
2003-11-23 20:53 ` Guennadi Liakhovetski
2003-11-23 23:29 ` Kurt Garloff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FC3DB56.6020104@yk.rim.or.jp \
--to=ishikawa@yk.rim.or.jp \
--cc=g.liakhovetski@gmx.de \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.