Re: Hi, some prob with SBP2 code;

James Chacon <[email protected]>
Newsgroups gmane.os.netbsd.ports.i386,gmane.os.netbsd.general,gmane.os.netbsd.devel.general
Message-ID <[email protected]>
>
>This is a multi-part message in MIME format.
>
>------_=_NextPart_001_01C35FC6.C917FD93
>Content-Type: text/plain;
>	charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>Hi james,
>=20
>I m working on firewire SBP2 driver code for NetBSD for Toshiba =
>processor. I m facing a lot of problems wrto SBP2 driver architecture.=20
>1.         I did not understand the need for calling sbp2_free() form =
>sbpscsi_match().

There is a bug there but in general this is cleaning up data structures that
can't exist until an actual attach happens. 

>2.         the sbp2_init() function does not make a login call or in =
>other words, sbp2_login function is not called though it registers a =
>handler function and that too for WRITE_REQ_BLOCK.

You don't want it to at this stage. Drives can be plugged into multiple hosts
and simply probing them on the box shouldn't cause a login. On first access
to the drive (usually the scsi probes) it'll log into the drive.

James


>Regards,
>Rishabh
>
>------_=_NextPart_001_01C35FC6.C917FD93
>Content-Type: text/html;
>	charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
><html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
>xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
>xmlns=3D"http://www.w3.org/TR/REC-html40">
>
><head>
><META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
>charset=3Diso-8859-1">
>
>
><meta name=3DProgId content=3DWord.Document>
><meta name=3DGenerator content=3D"Microsoft Word 10">
><meta name=3DOriginator content=3D"Microsoft Word 10">
><link rel=3DFile-List href=3D"cid:[email protected]">
><!--[if gte mso 9]><xml>
> <o:OfficeDocumentSettings>
>  <o:DoNotRelyOnCSS/>
> </o:OfficeDocumentSettings>
></xml><![endif]--><!--[if gte mso 9]><xml>
> <w:WordDocument>
>  <w:SpellingState>Clean</w:SpellingState>
>  <w:GrammarState>Clean</w:GrammarState>
>  <w:DocumentKind>DocumentEmail</w:DocumentKind>
>  <w:EnvelopeVis/>
>  <w:Compatibility>
>   <w:BreakWrappedTables/>
>   <w:SnapToGridInCell/>
>   <w:WrapTextWithPunct/>
>   <w:UseAsianBreakRules/>
>  </w:Compatibility>
>  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
> </w:WordDocument>
></xml><![endif]-->
><style>
><!--
> /* Style Definitions */
> p.MsoNormal, li.MsoNormal, div.MsoNormal
>	{mso-style-parent:"";
>	margin:0in;
>	margin-bottom:.0001pt;
>	mso-pagination:widow-orphan;
>	font-size:12.0pt;
>	font-family:"Times New Roman";
>	mso-fareast-font-family:"Times New Roman";}
>a:link, span.MsoHyperlink
>	{color:blue;
>	text-decoration:underline;
>	text-underline:single;}
>a:visited, span.MsoHyperlinkFollowed
>	{color:purple;
>	text-decoration:underline;
>	text-underline:single;}
>span.EmailStyle17
>	{mso-style-type:personal-compose;
>	mso-style-noshow:yes;
>	mso-ansi-font-size:10.0pt;
>	mso-bidi-font-size:10.0pt;
>	font-family:Arial;
>	mso-ascii-font-family:Arial;
>	mso-hansi-font-family:Arial;
>	mso-bidi-font-family:Arial;
>	color:windowtext;}
>span.SpellE
>	{mso-style-name:"";
>	mso-spl-e:yes;}
>span.GramE
>	{mso-style-name:"";
>	mso-gram-e:yes;}
>@page Section1
>	{size:8.5in 11.0in;
>	margin:1.0in 1.25in 1.0in 1.25in;
>	mso-header-margin:.5in;
>	mso-footer-margin:.5in;
>	mso-paper-source:0;}
>div.Section1
>	{page:Section1;}
>-->
></style>
><!--[if gte mso 10]>
><style>
> /* Style Definitions */=20
> table.MsoNormalTable
>	{mso-style-name:"Table Normal";
>	mso-tstyle-rowband-size:0;
>	mso-tstyle-colband-size:0;
>	mso-style-noshow:yes;
>	mso-style-parent:"";
>	mso-padding-alt:0in 5.4pt 0in 5.4pt;
>	mso-para-margin:0in;
>	mso-para-margin-bottom:.0001pt;
>	mso-pagination:widow-orphan;
>	font-size:10.0pt;
>	font-family:"Times New Roman";}
></style>
><![endif]-->
></head>
>
><body lang=3DEN-US link=3Dblue vlink=3Dpurple =
>style=3D'tab-interval:.5in'>
>
><div class=3DSection1>
>
><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>style=3D'font-size:10.0pt;
>font-family:Arial'>Hi <span =
>class=3DSpellE>james</span>,<o:p></o:p></span></font></p>
>
><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>style=3D'font-size:10.0pt;
>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>
><p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
>face=3DArial><span
>style=3D'font-size:10.0pt;font-family:Arial'>I m working on <span =
>class=3DSpellE>firewire</span>
>SBP2 driver code for <span class=3DSpellE>NetBSD</span> for Toshiba =
>processor.</span></font></span><font
>size=3D2 face=3DArial><span =
>style=3D'font-size:10.0pt;font-family:Arial'> <span
>class=3DGramE>I m facing a lot of problems <span =
>class=3DSpellE>wrto</span> SBP2
>driver architecture.</span> <o:p></o:p></span></font></p>
>
><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>style=3D'font-size:10.0pt;
>font-family:Arial'>1.<span =
>style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0 </span>I did not
>understand the need for calling sbp2_<span class=3DGramE>free(</span>) =
>form <span
>class=3DSpellE>sbpscsi_match</span>().<o:p></o:p></span></font></p>
>
><p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:-.5in'><font =
>size=3D2
>face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>2.<span
>style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0 </span><span =
>class=3DGramE>the</span>
>sbp2_init() function does not make a login call or in other words, =
>sbp2_login
>function is not called though it registers a handler function and that =
>too for
>WRITE_REQ_BLOCK.<o:p></o:p></span></font></p>
>
><p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:-.5in'><font =
>size=3D2
>face=3DArial><span =
>style=3D'font-size:10.0pt;font-family:Arial'>Regards,<o:p></o:p></span></=
>font></p>
>
><p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:-.5in'><font =
>size=3D2
>face=3DArial><span =
>style=3D'font-size:10.0pt;font-family:Arial'>Rishabh<o:p></o:p></span></f=
>ont></p>
>
></div>
>
></body>
>
></html>
>
>------_=_NextPart_001_01C35FC6.C917FD93--
>Scanned by SecureSynergy VirusScreen Service. 
>For more information log on to : http://www.securesynergyonline.com or http://www.securesynergy.com
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.