Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2002 17:46:20 +0800
From:      "kai ouyang" <oykai@msn.com>
To:        "Scott Long" <scott_long@btc.adaptec.com>, <current@FreeBSD.org>
Subject:   Re:open panic?
Message-ID:  <OE41tLn0TztdK0HMEQ700031fde@hotmail.com>

next in thread | raw e-mail | index | archive | help

------=_NextPart_001_0003_01C217B9.386C3780
Content-Type: multipart/alternative; boundary="----=_NextPart_002_0004_01C217B9.386C3780"


------=_NextPart_002_0004_01C217B9.386C3780
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: quoted-printable


Dear Scott,
  I am glad to see you. I am working based on your RAIDFrame 2000-06 patc=
h. =20
I know you are so busy. So I am trying to transfer them myself. :)
About RAIDFrame, I have talk about some problems with Oster.
 Let me talk about some work about RAIDFrame.
 This is the first I hack the kernel. so I have a lot of problem about Fr=
eeBSD kernel.:(
 First, I replace the simplelock with mutex, modify many proc parameter t=
o thread and
modify some buf structure to bio structure.
 I think I must compile successfully firstly.:)
 Now, I try to trace those command('raidctl').
 When I excute the 'raidctl -C configfile'. the system is panic. I think =
the ioctl thread parameter
should be hold by rf_Configure, right? But the FreeBSD4.x version did not=
 hold the ioctl proc paramter.
I know little about Gaint. I only know the Gaint is the global mtx var, b=
ut I do not know how to use it.
Could you give me some Gaint usage knowledge or relative articles ?
Hmm... I really want to learn the FreeBSD kernel by this experience. =20

Best Regards
 Ouyang Kai


On Wed, Jun 19, 2002 at 04:59:19PM +0800, kai ouyang wrote:
> Hi, everybody
>   I am transfering the RAIDFrame from FreeBSD4.x to Current.

That's funny, so am I =3D-)

> Now I can config the RAIDFrame. I have some problems about 'open'.
> When I configed a raid device(raid0), I can see the process by 'ps ax'.
>
> #ps ax|grep raid
> 215 ?? DL 0:00.00 (raid)
>
> I am trying to open the device again(by the open function), the box is
> panic. So I can not do anything to  the device.
> I am puzzled about that. if open is fail, it should return error. Why
> panic?
> Have you the similar problem?
>
> Fatal trap 12: page fault while in kernel mode

Have you taken the proper steps to handle Giant in the RAIDframe
kernel thread?

That said, I'm getting close to having -current RAIDframe patches
available.  It's starting to work well on my system, and I'm squashing
Witness warnings as they come up.

Scott
>
>
>
> Best Regards
> Ouyang Kai
>
>
>
>   _____
>
> ????????????????????MSN Explorer ?????????? http://explorer.msn.com/lcc=
n
> <http://explorer.msn.com/lccn>;
>
>

> Hi, everybody
>   I am transfering the RAIDFrame from FreeBSD4.x to Current.
> Now I can config the RAIDFrame. I have some problems about 'open'.
> When I configed a raid device(raid0), I can see the process by 'ps ax'.
>
> #ps ax|grep raid
> 215 ?? DL 0:00.00 (raid)
>
> I am trying to open the device again(by the open function), the box is
> panic. So I can not do anything to  the device.
> I am puzzled about that. if open is fail, it should return error. Why p=
anic?
> Have you the similar problem?
>
> Fatal trap 12: page fault while in kernel mode
>
>
>
> Best Regards
> Ouyang Kai=B4=D3=CD=F8=D5=BE=B5=C3=B5=BD=B8=FC=B6=E0=D0=C5=CF=A2=A1=A3M=
SN Explorer =C3=E2=B7=D1=CF=C2=D4=D8:http://explorer.msn.com/lccn

------=_NextPart_002_0004_01C217B9.386C3780
Content-Type: text/html; charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><DIV>&nbsp;</DIV> <=
DIV>Dear Scott,</DIV> <DIV>&nbsp; I am glad to see you. I am working base=
d on your RAIDFrame 2000-06 patch. </DIV> <DIV>I know you are so busy. So=
 I am trying to transfer them myself. :)</DIV> <DIV>About RAIDFrame, I ha=
ve talk about some problems with Oster.</DIV> <DIV>&nbsp;Let me talk abou=
t some work about RAIDFrame.</DIV> <DIV>&nbsp;This is the first I hack th=
e kernel. so I have a lot of problem about FreeBSD kernel.:(</DIV> <DIV>&=
nbsp;First, I replace the simplelock with mutex, modify many proc paramet=
er to thread and</DIV> <DIV>modify some buf structure to bio structure.</=
DIV> <DIV>&nbsp;I think I must compile successfully firstly.:)</DIV> <DIV=
>&nbsp;Now, I try to trace those command('raidctl').</DIV> <DIV>&nbsp;Whe=
n I excute the 'raidctl -C configfile'. the system is panic. I think the =
ioctl thread parameter</DIV> <DIV>should be hold by rf_Configure, right? =
But the FreeBSD4.x version did not hold the ioctl proc paramter.</DIV> <D=
IV>I know little about Gaint. I only know the Gaint is the global mtx var=
, but I do not know how to use it.</DIV> <DIV>Could you give me some Gain=
t usage knowledge or relative articles ?</DIV> <DIV>Hmm... I really want =
to learn the FreeBSD kernel by this experience. </DIV> <DIV>&nbsp;</DIV> =
<DIV>Best Regards</DIV> <DIV>&nbsp;Ouyang Kai</DIV> <DIV>&nbsp;</DIV> <BL=
OCKQUOTE style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px=
; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV>&nbsp;</DIV>On=
 Wed, Jun 19, 2002 at 04:59:19PM +0800, kai ouyang wrote:<BR>&gt; Hi, eve=
rybody<BR>&gt;&nbsp;&nbsp; I am transfering the RAIDFrame from FreeBSD4.x=
 to Current.<BR><BR>That's funny, so am I =3D-)<BR><BR>&gt; Now I can con=
fig the RAIDFrame. I have some problems about 'open'.<BR>&gt; When I conf=
iged a raid device(raid0), I can see the process by 'ps ax'.<BR>&gt;<BR>&=
gt; #ps ax|grep raid<BR>&gt; 215 ?? DL 0:00.00 (raid)<BR>&gt;<BR>&gt; I a=
m trying to open the device again(by the open function), the box is<BR>&g=
t; panic. So I can not do anything to&nbsp; the device.<BR>&gt; I am puzz=
led about that. if open is fail, it should return error. Why<BR>&gt; pani=
c?<BR>&gt; Have you the similar problem?<BR>&gt;<BR>&gt; Fatal trap 12: p=
age fault while in kernel mode<BR><BR>Have you taken the proper steps to =
handle Giant in the RAIDframe<BR>kernel thread?<BR><BR>That said, I'm get=
ting close to having -current RAIDframe patches<BR>available.&nbsp; It's =
starting to work well on my system, and I'm squashing<BR>Witness warnings=
 as they come up.<BR><BR>Scott<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Best Regar=
ds<BR>&gt; Ouyang Kai<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp; _____<B=
R>&gt;<BR>&gt; ????????????????????MSN Explorer ?????????? http://explore=
r.msn.com/lccn<BR>&gt; &lt;http://explorer.msn.com/lccn&gt;<BR>&gt;<BR>&g=
t;<BR><BR>&gt; Hi, everybody<BR>&gt;&nbsp;&nbsp; I am transfering the RAI=
DFrame from FreeBSD4.x to Current.<BR>&gt; Now I can config the RAIDFrame=
. I have some problems about 'open'.<BR>&gt; When I configed a raid devic=
e(raid0), I can see the process by 'ps ax'.<BR>&gt;<BR>&gt; #ps ax|grep r=
aid<BR>&gt; 215 ?? DL 0:00.00 (raid)<BR>&gt;<BR>&gt; I am trying to open =
the device again(by the open function), the box is<BR>&gt; panic. So I ca=
n not do anything to&nbsp; the device.<BR>&gt; I am puzzled about that. i=
f open is fail, it should return error. Why panic?<BR>&gt; Have you the s=
imilar problem?<BR>&gt;<BR>&gt; Fatal trap 12: page fault while in kernel=
 mode<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Best Regards<BR>&gt; Ouyang Kai<BR>=
<BR></BLOCKQUOTE></BODY></HTML><br clear=3Dall><hr>=B4=D3=CD=F8=D5=BE=B5=C3=
=B5=BD=B8=FC=B6=E0=D0=C5=CF=A2=A1=A3MSN Explorer =C3=E2=B7=D1=CF=C2=D4=D8=
=A3=BA<a href=3D'http://explorer.msn.com/lccn'>http://explorer.msn.com/lc=
cn</a><br></p>

------=_NextPart_002_0004_01C217B9.386C3780--


------=_NextPart_001_0003_01C217B9.386C3780
Content-Type: text/plain; name="Re.txt"
Content-Disposition: attachment; filename="Re.txt"
Content-Transfer-Encoding: quoted-printable

Dear Scott,
  I am glad to see you. I am working based on your RAIDFrame 2000-06 patc=
h. =20
I know you are so busy. So I am trying to transfer them myself. :)
About RAIDFrame, I have talk about some problems with Oster.
 Let me talk about some work about RAIDFrame.
 This is the first I hack the kernel. so I have a lot of problem about Fr=
eeBSD kernel.:(
 First, I replace the simplelock with mutex, modify many proc parameter t=
o thread and
modify some buf structure to bio structure.
 I think I must compile successfully firstly.:)
 Now, I try to trace those command('raidctl').
 When I excute the 'raidctl -C configfile'. the system is panic. I think =
the ioctl thread parameter
should be hold by rf_Configure, right? But the FreeBSD4.x version did not=
 hold the ioctl proc paramter.
I know little about Gaint. I only know the Gaint is the global mtx var, b=
ut I do not know how to use it.
Could you give me some Gaint usage knowledge or relative articles ?
Hmm... I really want to learn the FreeBSD kernel by this experience. =20

Best Regards
 Ouyang Kai

------=_NextPart_001_0003_01C217B9.386C3780--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE41tLn0TztdK0HMEQ700031fde>