From owner-freebsd-current Wed Jun 19 2:46:53 2002 Delivered-To: freebsd-current@freebsd.org Received: from hotmail.com (oe41.pav0.hotmail.com [64.4.32.121]) by hub.freebsd.org (Postfix) with ESMTP id 1AA4037B405 for ; Wed, 19 Jun 2002 02:46:37 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 19 Jun 2002 02:46:36 -0700 X-Originating-IP: [210.74.136.33] From: "kai ouyang" To: "Scott Long" , Subject: Re:open panic? Date: Wed, 19 Jun 2002 17:46:20 +0800 MIME-Version: 1.0 X-Mailer: MSN Explorer 7.00.0021.1900 Content-Type: multipart/mixed; boundary="----=_NextPart_001_0003_01C217B9.386C3780" Message-ID: X-OriginalArrivalTime: 19 Jun 2002 09:46:36.0953 (UTC) FILETIME=[34391090:01C21776] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ------=_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 > > > > 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
 
<= DIV>Dear Scott,
  I am glad to see you. I am working base= d on your RAIDFrame 2000-06 patch.
I know you are so busy. So= I am trying to transfer them myself. :)
About RAIDFrame, I ha= ve talk about some problems with Oster.
 Let me talk abou= t some work about RAIDFrame.
 This is the first I hack th= e kernel. so I have a lot of problem about FreeBSD kernel.:(
&= nbsp;First, I replace the simplelock with mutex, modify many proc paramet= er to thread and
modify some buf structure to bio structure.
 I think I must compile successfully firstly.:)
 Now, I try to trace those command('raidctl').
 Whe= n 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= , but I do not know how to use it.
Could you give me some Gain= t usage knowledge or relative articles ?
Hmm... I really want = to learn the FreeBSD kernel by this experience.
 
=
Best Regards
 Ouyang Kai
 
 
On= Wed, Jun 19, 2002 at 04:59:19PM +0800, kai ouyang wrote:
> Hi, eve= rybody
>   I am transfering the RAIDFrame from FreeBSD4.x= to Current.

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

> Now I can con= fig the RAIDFrame. I have some problems about 'open'.
> When I conf= iged a raid device(raid0), I can see the process by 'ps ax'.
>
&= gt; #ps ax|grep raid
> 215 ?? DL 0:00.00 (raid)
>
> I a= m trying to open the device again(by the open function), the box is
&g= t; panic. So I can not do anything to  the device.
> I am puzz= led about that. if open is fail, it should return error. Why
> pani= c?
> Have you the similar problem?
>
> Fatal trap 12: p= age fault while in kernel mode

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

That said, I'm get= ting 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 Regar= ds
> Ouyang Kai
>
>
>
>   _____>
> ????????????????????MSN Explorer ?????????? http://explore= r.msn.com/lccn
> <http://explorer.msn.com/lccn>
>
&g= t;

> Hi, everybody
>   I am transfering the RAI= DFrame from FreeBSD4.x to Current.
> Now I can config the RAIDFrame= . I have some problems about 'open'.
> When I configed a raid devic= e(raid0), I can see the process by 'ps ax'.
>
> #ps ax|grep r= aid
> 215 ?? DL 0:00.00 (raid)
>
> I am trying to open = the device again(by the open function), the box is
> panic. So I ca= n not do anything to  the device.
> I am puzzled about that. i= f open is fail, it should return error. Why panic?
> Have you the s= imilar 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=A3MSN Explorer =C3=E2=B7=D1=CF=C2=D4=D8= =A3=BAhttp://explorer.msn.com/lc= cn

------=_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