NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-sparc64/46461: Sun E450 drops to DDB on boot of 6.0_BETA

The following reply was made to PR port-sparc64/46461; it has been noted by 

From: Havard Eidnes <>
Subject: Re: port-sparc64/46461: Sun E450 drops to DDB on boot of 6.0_BETA
Date: Sat, 19 May 2012 22:37:50 +0200 (CEST)

 >  Could you sprinkle printf()s over pm2fb_attach() to figure out where =20
 >  exactly we crash?
 I did that, and we hit this one:
 @@ -326,6 +347,9 @@
         } else {
 +               if (ri->ri_ops.allocattr == NULL) {
 +                       panic("pm2fb: ri->ri_ops.allocatr == NULL");
 +               }
                  * since we're not the console we can postpone the rest
                  * until someone actually allocates a screen for us
 @@ -338,7 +362,11 @@
 The other debug output I added printed:
 psycho4 at mainbus0 addr 0xfff36000
 psycho4: SUNW,psycho: impl 0, version 4: ign 180 bus range 0 to 0; PCI bus 0
 pci4 at psycho4
 pm2fb0 at pci4 dev 4 function 0: 3D Labs GLINT Permedia 2V (rev. 0x01)
 pm2fb: width property OK, width = 1152
 pm2fb: height property OK, height = 900
 pm2fb: depth property OK, depth = 32
 pm2fb: is_console = 0
 pm2fb: registers mapped
 pm2fb0: 8 MB aperture at 0x00800000
 pm2fb: setting up i2c:
 pm2fb: vcons_init() done
 pm2fb: pm2fb_init() done
 pm2fb: PAL registers set up
 panic: pm2fb: ri->ri_ops.allocatr == NULL
 Stopped in pid 0.1 (system) at  netbsd:cpu_Debugger+0x4:        nop
 So ri->ri_ops.allocattr is NULL, and without the panic() call I
 added, we immediately after try to call via that function pointer
 which lands us with the panic which was the origin of this PR.
 - Havard

Home | Main Index | Thread Index | Old Index