NetBSD Problem Report #52060

From www@NetBSD.org  Fri Mar 10 17:03:29 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 04E157A1F5
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 10 Mar 2017 17:03:29 +0000 (UTC)
Message-Id: <20170310170327.78E147A281@mollari.NetBSD.org>
Date: Fri, 10 Mar 2017 17:03:27 +0000 (UTC)
From: kalta59@gmail.com
Reply-To: kalta59@gmail.com
To: gnats-bugs@NetBSD.org
Subject: ifb driver for Sun XVR-1200
X-Send-Pr-Version: www-1.0

>Number:         52060
>Category:       port-sparc64
>Synopsis:       ifb driver for Sun XVR-1200
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 10 17:05:00 +0000 2017
>Last-Modified:  Wed Mar 15 05:25:01 +0000 2017
>Originator:     Maurizio Caltabiano
>Release:        7.1 RC1
>Organization:
Maurizio Caltabiano
>Environment:
Sun Blade 2500 - 2xCPU/8Gb Ram/36Gb disk/1 x XVR-1200
>Description:
Hi Martin,
finally the 7.1 RC1 is up and running, but I cannot use a GUI.
The "X -configure" command is failing the configuration, because doesn't find the right video card driver. I was searching for ifb driver in /usr/X11R7/lib/modules/drivers, but is missed. Please let me know if you have already prepared an xorg.conf file for XVR-1200, then I'll configure the monitor part with my Samsung LCD.
PS I've installed 7.1 RC1 from CD after a fast swap from original Sun DVD unit to an HP DVD burner.
Thanks,
Maurizio
>How-To-Repeat:

>Fix:

>Audit-Trail:
From: Michael <macallan@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc64/52060: ifb driver for Sun XVR-1200
Date: Sat, 11 Mar 2017 12:11:47 -0500

 There is no Xorg driver for the XVR-1200 or any other wildcat-based
 cards, not in NetBSD or anywhere else that I'm aware of. It wouldn't be
 too hard to write one though, we have limited documentation for at
 least a few chips.
 The problem is that we get the hardware in a rather weird state - two
 framebuffers and a control plane which ( likely among other things )
 selects which pixel's colour info is taken from what framebuffer. This
 control plane contains garbage and we don't know how to access it. 
 Currently the kernel's wcfb driver works around this by writing into
 both framebuffers.
 An Xorg driver would either need to use a shadow framebuffer with a
 specialized update routine that writes both framebuffers ( not hard to
 do, I did something similar for the mgx board ) or, on boards where we
 know how to use the blitter, one could write a simple exa driver with
 an UploadToScreen() method that takes care of this.

 have fun
 Michael

From: Maurizio Caltabiano <kalta59@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-sparc64/52060: ifb driver for Sun XVR-1200
Date: Sat, 11 Mar 2017 18:52:33 +0100

 --001a11463b9299883d054a782455
 Content-Type: text/plain; charset=UTF-8

 Hi Michael,
 sad news by your side...
 I could swap XVR-1200 to a cheaper XVR-100 64 ( ATI Radeon 7000 - 64Mb).
 please could you say me if XVR100-64 is supported with a driver already
 present in the distribution?
 Thanks a lot,
 Maurizio


 2017-03-11 18:15 GMT+01:00 Michael <macallan@netbsd.org>:

 > The following reply was made to PR port-sparc64/52060; it has been noted
 > by GNATS.
 >
 > From: Michael <macallan@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: port-sparc64/52060: ifb driver for Sun XVR-1200
 > Date: Sat, 11 Mar 2017 12:11:47 -0500
 >
 >  There is no Xorg driver for the XVR-1200 or any other wildcat-based
 >  cards, not in NetBSD or anywhere else that I'm aware of. It wouldn't be
 >  too hard to write one though, we have limited documentation for at
 >  least a few chips.
 >  The problem is that we get the hardware in a rather weird state - two
 >  framebuffers and a control plane which ( likely among other things )
 >  selects which pixel's colour info is taken from what framebuffer. This
 >  control plane contains garbage and we don't know how to access it.
 >  Currently the kernel's wcfb driver works around this by writing into
 >  both framebuffers.
 >  An Xorg driver would either need to use a shadow framebuffer with a
 >  specialized update routine that writes both framebuffers ( not hard to
 >  do, I did something similar for the mgx board ) or, on boards where we
 >  know how to use the blitter, one could write a simple exa driver with
 >  an UploadToScreen() method that takes care of this.
 >
 >  have fun
 >  Michael
 >
 >


 -- 

 -------------------------
 Maurizio Caltabiano
 Mob. +39.348.2292474
 E-mail: kalta59@gmail.com
 Skype: macal.pointsec
 -------------------------

 --001a11463b9299883d054a782455
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable

 <div dir=3D"ltr"><div><div><div><div>Hi Michael,<br></div>sad news by your =
 side...<br></div>I could swap XVR-1200 to a cheaper XVR-100 64 (<span class=
 =3D"gmail-spec"></span>
                             <span class=3D"gmail-value">
                                                                        =20
                                                                        =20
         ATI Radeon 7000 - 64Mb)</span>.<br>please could you say me if XVR10=
 0-64 is supported with a driver already present in the distribution?<br></d=
 iv>Thanks a lot,<br></div>Maurizio<br><br></div><div class=3D"gmail_extra">=
 <br><div class=3D"gmail_quote">2017-03-11 18:15 GMT+01:00 Michael <span dir=
 =3D"ltr">&lt;<a href=3D"mailto:macallan@netbsd.org" target=3D"_blank">macal=
 lan@netbsd.org</a>&gt;</span>:<br><blockquote class=3D"gmail_quote" style=
 =3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The foll=
 owing reply was made to PR port-sparc64/52060; it has been noted by GNATS.<=
 br>
 <br>
 From: Michael &lt;<a href=3D"mailto:macallan@netbsd.org">macallan@netbsd.or=
 g</a>&gt;<br>
 To: gnats-bugs@NetBSD.org<br>
 Cc:<br>
 Subject: Re: port-sparc64/52060: ifb driver for Sun XVR-1200<br>
 Date: Sat, 11 Mar 2017 12:11:47 -0500<br>
 <br>
 =C2=A0There is no Xorg driver for the XVR-1200 or any other wildcat-based<b=
 r>
 =C2=A0cards, not in NetBSD or anywhere else that I&#39;m aware of. It would=
 n&#39;t be<br>
 =C2=A0too hard to write one though, we have limited documentation for at<br=
 >
 =C2=A0least a few chips.<br>
 =C2=A0The problem is that we get the hardware in a rather weird state - two=
 <br>
 =C2=A0framebuffers and a control plane which ( likely among other things )<=
 br>
 =C2=A0selects which pixel&#39;s colour info is taken from what framebuffer.=
  This<br>
 =C2=A0control plane contains garbage and we don&#39;t know how to access it=
 .<br>
 =C2=A0Currently the kernel&#39;s wcfb driver works around this by writing i=
 nto<br>
 =C2=A0both framebuffers.<br>
 =C2=A0An Xorg driver would either need to use a shadow framebuffer with a<b=
 r>
 =C2=A0specialized update routine that writes both framebuffers ( not hard t=
 o<br>
 =C2=A0do, I did something similar for the mgx board ) or, on boards where w=
 e<br>
 =C2=A0know how to use the blitter, one could write a simple exa driver with=
 <br>
 =C2=A0an UploadToScreen() method that takes care of this.<br>
 <br>
 =C2=A0have fun<br>
 <span class=3D"HOEnZb"><font color=3D"#888888">=C2=A0Michael<br>
 <br>
 </font></span></blockquote></div><br><br clear=3D"all"><br>-- <br><div clas=
 s=3D"gmail_signature" data-smartmail=3D"gmail_signature"><br>--------------=
 -----------<br>Maurizio Caltabiano<br>Mob. +39.348.2292474<br>E-mail: <a hr=
 ef=3D"mailto:kalta59@gmail.com" target=3D"_blank">kalta59@gmail.com</a><br>=
 Skype: macal.pointsec<br>-------------------------</div>
 </div>

 --001a11463b9299883d054a782455--

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: port-sparc64-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, kalta59@gmail.com
Subject: Re: port-sparc64/52060: ifb driver for Sun XVR-1200
Date: Sat, 11 Mar 2017 21:04:39 +0100

 On Sat, Mar 11, 2017 at 05:55:00PM +0000, Maurizio Caltabiano wrote:
 >  I could swap XVR-1200 to a cheaper XVR-100 64 ( ATI Radeon 7000 - 64Mb).
 >  please could you say me if XVR100-64 is supported with a driver already
 >  present in the distribution?

 Yes, XVR100 works out of the box.

 Martin

From: Maurizio Caltabiano <kalta59@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-sparc64/52060: ifb driver for Sun XVR-1200
Date: Sun, 12 Mar 2017 19:30:02 +0100

 --001a113db6ae7be3db054a8cc8c7
 Content-Type: text/plain; charset=UTF-8

 Hi Martin,
 sorry if bother you.
 May the system recognise automatically the new board (XVR-100 instead
 XVR-1200) at the boot, or there is a sort of Solaris "boot -r" to reconfig
 the new devices, or it's better to reinstall NetBSD from scratch??
 Thanks a lot,
 Maurizio

 2017-03-11 21:05 GMT+01:00 Martin Husemann <martin@duskware.de>:

 > The following reply was made to PR port-sparc64/52060; it has been noted
 > by GNATS.
 >
 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@NetBSD.org
 > Cc: port-sparc64-maintainer@netbsd.org, gnats-admin@netbsd.org,
 >         netbsd-bugs@netbsd.org, kalta59@gmail.com
 > Subject: Re: port-sparc64/52060: ifb driver for Sun XVR-1200
 > Date: Sat, 11 Mar 2017 21:04:39 +0100
 >
 >  On Sat, Mar 11, 2017 at 05:55:00PM +0000, Maurizio Caltabiano wrote:
 >  >  I could swap XVR-1200 to a cheaper XVR-100 64 ( ATI Radeon 7000 -
 > 64Mb).
 >  >  please could you say me if XVR100-64 is supported with a driver already
 >  >  present in the distribution?
 >
 >  Yes, XVR100 works out of the box.
 >
 >  Martin
 >
 >


 -- 

 -------------------------
 Maurizio Caltabiano
 Mob. +39.348.2292474
 E-mail: kalta59@gmail.com
 Skype: macal.pointsec
 -------------------------

 --001a113db6ae7be3db054a8cc8c7
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable

 <div dir=3D"ltr"><div><div><div><div>Hi Martin,<br></div>sorry if bother yo=
 u.<br></div>May the system recognise automatically the new board (XVR-100 i=
 nstead XVR-1200) at the boot, or there is a sort of Solaris &quot;boot -r&q=
 uot; to reconfig the new devices, or it&#39;s better to reinstall NetBSD fr=
 om scratch??<br></div>Thanks a lot,<br></div>Maurizio<br></div><div class=
 =3D"gmail_extra"><br><div class=3D"gmail_quote">2017-03-11 21:05 GMT+01:00 =
 Martin Husemann <span dir=3D"ltr">&lt;<a href=3D"mailto:martin@duskware.de"=
  target=3D"_blank">martin@duskware.de</a>&gt;</span>:<br><blockquote class=
 =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
 ing-left:1ex"><span class=3D"">The following reply was made to PR port-spar=
 c64/52060; it has been noted by GNATS.<br>
 <br>
 </span>From: Martin Husemann &lt;<a href=3D"mailto:martin@duskware.de">mart=
 in@duskware.de</a>&gt;<br>
 To: gnats-bugs@NetBSD.org<br>
 Cc: <a href=3D"mailto:port-sparc64-maintainer@netbsd.org">port-sparc64-main=
 tainer@<wbr>netbsd.org</a>, <a href=3D"mailto:gnats-admin@netbsd.org">gnats=
 -admin@netbsd.org</a>,<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"mailto:netbsd-bugs@netbsd.org">netbs=
 d-bugs@netbsd.org</a>, <a href=3D"mailto:kalta59@gmail.com">kalta59@gmail.c=
 om</a><br>
 <span class=3D"">Subject: Re: port-sparc64/52060: ifb driver for Sun XVR-12=
 00<br>
 </span>Date: Sat, 11 Mar 2017 21:04:39 +0100<br>
 <div class=3D"HOEnZb"><div class=3D"h5"><br>
 =C2=A0On Sat, Mar 11, 2017 at 05:55:00PM +0000, Maurizio Caltabiano wrote:<=
 br>
 =C2=A0&gt;=C2=A0 I could swap XVR-1200 to a cheaper XVR-100 64 ( ATI Radeon=
  7000 - 64Mb).<br>
 =C2=A0&gt;=C2=A0 please could you say me if XVR100-64 is supported with a d=
 river already<br>
 =C2=A0&gt;=C2=A0 present in the distribution?<br>
 <br>
 =C2=A0Yes, XVR100 works out of the box.<br>
 <br>
 =C2=A0Martin<br>
 <br>
 </div></div></blockquote></div><br><br clear=3D"all"><br>-- <br><div class=
 =3D"gmail_signature" data-smartmail=3D"gmail_signature"><br>---------------=
 ----------<br>Maurizio Caltabiano<br>Mob. +39.348.2292474<br>E-mail: <a hre=
 f=3D"mailto:kalta59@gmail.com" target=3D"_blank">kalta59@gmail.com</a><br>S=
 kype: macal.pointsec<br>-------------------------</div>
 </div>

 --001a113db6ae7be3db054a8cc8c7--

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc64/52060: ifb driver for Sun XVR-1200
Date: Mon, 13 Mar 2017 10:05:14 +0100

 On Sun, Mar 12, 2017 at 06:35:01PM +0000, Maurizio Caltabiano wrote:
 >  May the system recognise automatically the new board (XVR-100 instead
 >  XVR-1200) at the boot, or there is a sort of Solaris "boot -r" to reconfig
 >  the new devices, or it's better to reinstall NetBSD from scratch??

 No need to reinstall, at worst you would have to edit your /etc/xorg.conf
 (but you did not edit that before, and an empty or missing one should mostly
 work anyway).

 Martin

From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc64/52060: ifb driver for Sun XVR-1200
Date: Mon, 13 Mar 2017 16:11:42 +0700

     Date:        Sun, 12 Mar 2017 18:35:01 +0000 (UTC)
     From:        Maurizio Caltabiano <kalta59@gmail.com>
     Message-ID:  <20170312183501.2E3BD7A2AF@mollari.NetBSD.org>

   |  Hi Martin,

 I'm not Martin, but ...

   |  May the system recognise automatically the new board (XVR-100 instead
   |  XVR-1200) at the boot, or there is a sort of Solaris "boot -r" to reconfig
   |  the new devices, or it's better to reinstall NetBSD from scratch??

 Assuming you are still running the GENERIC kernel (you haven't configured,
 built, installed, and booted, a modified version) then all you need to do
 is reboot - the kernel looks for hardware that is installed every time it
 boots (and for some, that can be hot plugged, whenever it is plugged in.)

 Even if you have a modified kernel, it would only matter if you had
 removed the driver for new device, and either you don't have support
 for modules or the driver has not been modularised - since in this case
 the driver for your replacement board is likely the same one as you hoped
 would work with the unsupported board, it is unlikely you would have
 removed it, even in a custom kernel - so even there just a reboot should
 work.

 No special boot sequence is required, and there is certainly no benefit
 to installing (the same system version) again.

 kre

From: Michael <macallan@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-sparc64/52060: ifb driver for Sun XVR-1200
Date: Wed, 15 Mar 2017 01:22:03 -0400

 Hello,

 the xvr-100 should Just Work(tm) out of the box. The GENERIC kernel has
 a driver for it ( radeonfb ) and Xorg should just use the radeon
 driver, you don't even need a config file for that.
 Also, no need to swap cards - just point the OpenFirmware console at
 the xvr-100 and the NetBSD kernel should do the right thing.

 Please let us know if there are any problems.

 That said, I have an xvr-1200, it's really a shame we can't run X on
 it. I'll give it a shot next time I have some hacking time.

 have fun
 Michael

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.