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> </DIV> <=
DIV>Dear Scott,</DIV> <DIV> 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> Let me talk abou=
t some work about RAIDFrame.</DIV> <DIV> 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> I think I must compile successfully firstly.:)</DIV> <DIV=
> Now, I try to trace those command('raidctl').</DIV> <DIV> 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> </DIV> =
<DIV>Best Regards</DIV> <DIV> Ouyang Kai</DIV> <DIV> </DIV> <BL=
OCKQUOTE style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px=
; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV> </DIV>On=
Wed, Jun 19, 2002 at 04:59:19PM +0800, kai ouyang wrote:<BR>> Hi, eve=
rybody<BR>> I am transfering the RAIDFrame from FreeBSD4.x=
to Current.<BR><BR>That's funny, so am I =3D-)<BR><BR>> Now I can con=
fig the RAIDFrame. I have some problems about 'open'.<BR>> When I conf=
iged a raid device(raid0), I can see the process by 'ps ax'.<BR>><BR>&=
gt; #ps ax|grep raid<BR>> 215 ?? DL 0:00.00 (raid)<BR>><BR>> 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 the device.<BR>> I am puzz=
led about that. if open is fail, it should return error. Why<BR>> pani=
c?<BR>> Have you the similar problem?<BR>><BR>> 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. It's =
starting to work well on my system, and I'm squashing<BR>Witness warnings=
as they come up.<BR><BR>Scott<BR>><BR>><BR>><BR>> Best Regar=
ds<BR>> Ouyang Kai<BR>><BR>><BR>><BR>> _____<B=
R>><BR>> ????????????????????MSN Explorer ?????????? http://explore=
r.msn.com/lccn<BR>> <http://explorer.msn.com/lccn><BR>><BR>&g=
t;<BR><BR>> Hi, everybody<BR>> I am transfering the RAI=
DFrame from FreeBSD4.x to Current.<BR>> Now I can config the RAIDFrame=
. I have some problems about 'open'.<BR>> When I configed a raid devic=
e(raid0), I can see the process by 'ps ax'.<BR>><BR>> #ps ax|grep r=
aid<BR>> 215 ?? DL 0:00.00 (raid)<BR>><BR>> I am trying to open =
the device again(by the open function), the box is<BR>> panic. So I ca=
n not do anything to the device.<BR>> I am puzzled about that. i=
f open is fail, it should return error. Why panic?<BR>> Have you the s=
imilar problem?<BR>><BR>> Fatal trap 12: page fault while in kernel=
mode<BR>><BR>><BR>><BR>> Best Regards<BR>> 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>
