NetBSD Problem Report #48431

From www@NetBSD.org  Sat Dec  7 12:57:22 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 46087A5684
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  7 Dec 2013 12:57:22 +0000 (UTC)
Message-Id: <20131207125718.C9F1AA6451@mollari.NetBSD.org>
Date: Sat,  7 Dec 2013 12:57:18 +0000 (UTC)
From: nullnilaki@gmail.com
Reply-To: nullnilaki@gmail.com
To: gnats-bugs@NetBSD.org
Subject: radeonfb fails to initialize on Alpha Station DS15 and Alpha Station XP1000
X-Send-Pr-Version: www-1.0

>Number:         48431
>Category:       port-alpha
>Synopsis:       radeonfb fails to initialize on Alpha Station DS15 and Alpha Station XP1000
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    tsutsui
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 07 13:00:00 +0000 2013
>Closed-Date:    Tue Jan 28 11:51:40 +0000 2014
>Last-Modified:  Tue Jan 28 11:51:40 +0000 2014
>Originator:     nullnilaki
>Release:        NetBSD  6.1.2
>Organization:
Japan
>Environment:
NetBSD  6.1.2 NetBSD 6.1.2 (GENERIC-$Revision: 1.343 $) #13: Sat Dec  7 08:25:52 JST 2013 
naruaki@NetBSD:/usr/netbsd_6_1_2/obj.alpha/sys/arch/alpha/compile/GENERIC alpha
@ Alpha Station DS15 and Alpha Station XP1000
>Description:
radeonfb fails to initialize on Alpha Station DS15 and Alpha Station XP1000

Please see NetBSD Problem Report #48148

========================================================================
Notice!:
Do not use radeonfb because Display blackout and panic.
========================================================================

>How-To-Repeat:

>Fix:
I create patch for NetBSD 6.1.2.
Because current version is broken.
Please see NetBSD Problem Report #48430

========================================================================

I'm a beginner.
Please rewite for NetBSD style.

diff -Naru src.orig/sys/arch/alpha/alpha/dec_6600.c src/sys/arch/alpha/alpha/dec_6600.c
--- src.orig/sys/arch/alpha/alpha/dec_6600.c	2012-02-06 11:14:11.000000000 +0900
+++ src/sys/arch/alpha/alpha/dec_6600.c	2013-12-03 01:53:01.000000000 +0900
@@ -196,11 +196,16 @@
 static void
 dec_6600_device_register(device_t dev, void *aux)
 {
+        struct ctb *ctb;
+        device_t pdev;
+        prop_dictionary_t dict;
 	static int found, initted, diskboot, netboot;
 	static device_t primarydev, pcidev, ctrlrdev;
 	struct bootdev_data *b = bootdev_data;
 	device_t parent = device_parent(dev);

+        ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
+
 	if (found)
 		return;

@@ -370,6 +375,13 @@
 		DR_VERBOSE(printf("booted_device = %s\n", device_xname(dev)));
 		found = 1;
 	}
+
+        if (ctb->ctb_term_type == CTB_GRAPHICS) {
+                if ((pdev = device_parent(dev)) != NULL && device_is_a(pdev, "pci")) {
+                        dict = device_properties(dev);
+                        prop_dictionary_set_bool(dict, "is_console", 1);
+                }
+        }
 }
========================================================================

I think that need ALPHA_PHYS_TO_K0SEG.
Because direct-mapped addresses.

diff -Naru src.orig/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c src/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c
--- src.orig/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c	2012-02-06 11:14:15.000000000 +0900
+++ src/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c	2013-12-01 21:33:43.000000000 +0900
@@ -500,7 +500,7 @@
 	int flags)
 {

-	return (alpha_btop(CHIP_MEM_SYS_START(v) + addr + off));
+        return (alpha_btop(ALPHA_PHYS_TO_K0SEG(CHIP_MEM_SYS_START(v) + addr + off)));
 }

 static inline void
========================================================================

Please define RADEONFB_DEPTH_32!
If undefined RADEONFB_DEPTH_32, X window system is broken.
Please see https://twitter.com/nullnilaki/status/407561289502703616/photo/1

Please ignore 
+#if BYTE_ORDER == LITTLE_ENDIAN
+				reg = reg << 24;
+#endif
and
+#if BYTE_ORDER == LITTLE_ENDIAN
+				reg = reg << 16;
+#endif.
This ploblem is fixd at radeonfb.c v1.66.

Please do not use radeonfb_set_backlight function.
Because Display blackout.
Use radeonfb_set_backlight function version.
Please see http://twitpic.com/dnd9h7
Do not use radeonfb_set_backlight function version.
http://twitpic.com/dndawd

diff -Naru src.orig/sys/dev/pci/radeonfb.c src/sys/dev/pci/radeonfb.c
--- src.orig/sys/dev/pci/radeonfb.c	2012-03-22 01:12:18.000000000 +0900
+++ src/sys/dev/pci/radeonfb.c	2013-12-03 02:36:23.000000000 +0900
@@ -99,6 +99,7 @@
 #include "opt_radeonfb.h"
 #include "opt_vcons.h"

+#define RADEONFB_DEPTH_32 
 #ifdef RADEONFB_DEPTH_32
 #define RADEONFB_DEFAULT_DEPTH 32
 #else
@@ -2478,6 +2479,9 @@
 			data8 = data;
 			for (i = 0; i < h; i++) {
 				reg = *data8;
+#if BYTE_ORDER == LITTLE_ENDIAN
+				reg = reg << 24;
+#endif
 				bus_space_write_stream_4(sc->sc_regt, 
 				    sc->sc_regh, RADEON_HOST_DATA0, reg);
 				data8++;
@@ -2488,6 +2492,9 @@
 			data16 = data;
 			for (i = 0; i < h; i++) {
 				reg = *data16;
+#if BYTE_ORDER == LITTLE_ENDIAN
+				reg = reg << 16;
+#endif
 				bus_space_write_stream_4(sc->sc_regt, 
 				    sc->sc_regh, RADEON_HOST_DATA0, reg);
 				data16++;
@@ -3609,6 +3616,10 @@
 	int rlevel, s;
 	uint32_t lvds;

+	#if defined(__alpha__) || defined(alpha)
+		return 0;
+	#endif	
+
 	s = spltty();

 	dp->rd_bl_level = level;
========================================================================

Necessary.

diff -Naru src.orig/sys/arch/alpha/conf/GENERIC src/sys/arch/alpha/conf/GENERIC
--- src.orig/sys/arch/alpha/conf/GENERIC	2011-12-18 14:49:23.000000000 +0900
+++ src/sys/arch/alpha/conf/GENERIC	2013-12-01 21:32:32.000000000 +0900
@@ -374,6 +374,7 @@
 tlp*	at	pci? dev ? function ?		# DECchip 21x4x and clones
 uhci*	at	pci? dev ? function ?		# USB Univ. Host Controller
 vga*	at	pci? dev ? function ?		# PCI VGA Graphics
+radeonfb*       at      pci? dev ? function ?           # PCI VGA Graphics
 vr*	at	pci? dev ? function ?		# VIA Rhine Fast Ethernet
 wi*	at	pci? dev ? function ?		# Lucent/Intersil WaveLAN/IEEE
 wm*	at	pci? dev ? function ?		# Intel 8254x Ethernet
@@ -686,6 +687,7 @@
 wsdisplay*	at	px?
 wsdisplay*	at	pxg?
 wsdisplay*	at	vga?
+wsdisplay*      at      radeonfb?
 wsdisplay*	at	tga?
 wskbd*		at	lkkbd? console ?
 wsmouse*	at	vsms?
========================================================================

If you use X Window System, apply this patch and build.sh -x and use "wsfb" driver at xorg.conf

diff -Naru src.orig/share/mk/bsd.own.mk src/share/mk/bsd.own.mk
--- src.orig/share/mk/bsd.own.mk	2012-11-25 04:45:11.000000000 +0900
+++ src/share/mk/bsd.own.mk	2013-12-01 21:31:07.000000000 +0900
@@ -847,7 +847,6 @@
 #
 .if \
     ${MACHINE} == "acorn32"	|| \
-    ${MACHINE} == "alpha"	|| \
     ${MACHINE} == "amiga"	|| \
     ${MACHINE} == "ews4800mips"	|| \
     ${MACHINE} == "mac68k"	|| \
========================================================================

Please ignore these patch because fixd at NetBSD Problem Report #48148

***********************************************************************
diff -Naru src.orig/sys/arch/alpha/alpha/cpuconf.c src/sys/arch/alpha/alpha/cpuconf.c
--- src.orig/sys/arch/alpha/alpha/cpuconf.c	2012-02-06 11:14:10.000000000 +0900
+++ src/sys/arch/alpha/alpha/cpuconf.c	2013-12-01 16:15:07.000000000 +0900
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuconf.c,v 1.35 2012/02/06 02:14:10 matt Exp $ */
+/* $NetBSD: cpuconf.c,v 1.36 2013/09/23 16:41:56 tsutsui Exp $ */

 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */

 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpuconf.c,v 1.35 2012/02/06 02:14:10 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpuconf.c,v 1.36 2013/09/23 16:41:56 tsutsui Exp $");

 #include <sys/param.h>
 #include <sys/device.h>
@@ -233,6 +233,7 @@
 	cpu_notsupp(ST_DEC_EV56_PBP, "EV56 Passive Backplane Board"),
 	cpu_notsupp(ST_DEC_ALPHAVME_320, "AlphaVME 320"),
 	cpu_init(ST_DEC_6600, dec_6600_init, "DEC_6600"),
+	cpu_init(ST_DEC_TITAN, dec_6600_init, "DEC_6600"), 
 	cpu_init(ST_API_NAUTILUS, api_up1000_init, "API_UP1000"),
 };
 static const int ncpuinit = (sizeof(cpuinit) / sizeof(cpuinit[0]));

diff -Naru src.orig/sys/arch/alpha/pci/tsc.c src/sys/arch/alpha/pci/tsc.c
--- src.orig/sys/arch/alpha/pci/tsc.c	2011-05-18 02:34:47.000000000 +0900
+++ src/sys/arch/alpha/pci/tsc.c	2013-12-01 16:16:40.000000000 +0900
@@ -1,4 +1,4 @@
-/* $NetBSD: tsc.c,v 1.19 2011/05/17 17:34:47 dyoung Exp $ */
+/* $NetBSD: tsc.c,v 1.22 2013/09/23 16:50:12 tsutsui Exp $ */

 /*-
  * Copyright (c) 1999 by Ross Harvey.  All rights reserved.
@@ -35,7 +35,7 @@

 #include <sys/cdefs.h>

-__KERNEL_RCSID(0, "$NetBSD: tsc.c,v 1.19 2011/05/17 17:34:47 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tsc.c,v 1.22 2013/09/23 16:50:12 tsutsui Exp $");

 #include <sys/param.h>
 #include <sys/systm.h>
@@ -66,7 +66,7 @@

 extern struct cfdriver tsc_cd;

-struct tsp_config tsp_configuration[2];
+struct tsp_config tsp_configuration[4];

 static int tscprint(void *, const char *pnp);

@@ -91,9 +91,13 @@
 {
 	struct mainbus_attach_args *ma = aux;

-	return cputype == ST_DEC_6600
-	    && strcmp(ma->ma_name, tsc_cd.cd_name) == 0
-	    && !tscfound;
+	switch (cputype) {
+	case ST_DEC_6600:
+	case ST_DEC_TITAN:
+		return strcmp(ma->ma_name, tsc_cd.cd_name) == 0 && !tscfound;
+	default:
+		return 0;
+	}
 }
***********************************************************************
========================================================================

Screen shots!!

Alpha Station DS15 running NetBSD/alpha 6.1.2 apply this patch 
and Twitter clients (pkgsrc/net/tw and pkgsrc/net/mikutter) on
mlterm-fb (pkgsrc/x11/mlterm) framebuffer console (i.e. without X server):
https://twitter.com/nullnilaki/status/404229958228119553

Alpha Station DS15 running NetBSD/alpha 6.1.2 apply this patch 
and Twitter clients (pkgsrc/net/tw and pkgsrc/net/mikutter) 
https://twitter.com/nullnilaki/status/404466539509710848

Alpha Station XP1000 running NetBSD/alpha 6.1.2 apply this patch 
https://twitter.com/nullnilaki/status/409175566542065664

========================================================================

Boot log at Alpha Station XP1000

VMS PAL rev: 0x1001b00010158
OSF PAL rev: 0x1001600020153
Switch to OSF PAL code succeeded.

Boot flags: A
|/-\|/-\|/-\|/-\|/10394608-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/
 -\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/+285376-\ [570432|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\+380164|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/]=0xb17ff8

Entering netbsd at 0xfffffc0000431230...
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 6.1.2 (GENERIC-$Revision: 1.343 $) #13: Sat Dec  7 08:25:52 JST 2013
	naruaki@NetBSD:/usr/netbsd_6_1_2/obj.alpha/sys/arch/alpha/compile/GENERIC
COMPAQ Professional Workstation XP1000, 500MHz, s/n 
8192 byte page size, 1 processor.
total memory = 512 MB
(2128 KB reserved for PROM, 509 MB used by NetBSD)
avail memory = 491 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264-5
cpu0: Architecture extensions: 0x303<PAT,MVI,FIX,BWX>
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 4 Dchips, 1 memory bus of 32 bytes
tsc0: arrays present: 512MB (split), 0MB, 0MB, 0MB, Dchip 0 rev 1
tsp0 at tsc0
pci0 at tsp0 bus 0
sio0 at pci0 dev 7 function 0: Contaq Microsystems 82C693 PCI-ISA Bridge (rev. 0x00)
cypide0 at pci0 dev 7 function 1: Cypress 82C693 IDE Controller (rev. 0x00)
cypide0: primary channel wired to compatibility mode
cypide0: primary channel interrupting at isa irq 14
atabus0 at cypide0 channel 0
cypide1 at pci0 dev 7 function 2: Cypress 82C693 IDE Controller (rev. 0x00)
cypide1: hardware does not support DMA
cypide1: primary channel wired to compatibility mode
cypide1: secondary channel interrupting at isa irq 15
atabus1 at cypide1 channel 0
ohci0 at pci0 dev 7 function 3: Contaq Microsystems 82C693 PCI-ISA Bridge (rev. 0x00)
ohci0: interrupting at isa irq 10
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
isa0 at sio0
lpt0 at isa0 port 0x3bc-0x3bf irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
attimer0 at isa0 port 0x40-0x43
sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
audio0 at sb0: half duplex, playback, capture, mmap, independent
midi0 at sb0: SB MIDI UART
opl at sb0 not configured
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
mcclock0 at isa0 port 0x70-0x71: mc146818 compatible time-of-day clock
attimer0: attached to pcppi0
tsp1 at tsc0
pci1 at tsp1 bus 0
tlp0 at pci1 dev 3 function 0: DECchip 21143 Ethernet, pass 4.1
tlp0: interrupting at dec 6600 irq 45
tlp0: DEC, Ethernet address 00:00:f8:71:71:15
tlp0: 10baseT, 10base2, 10base5, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isp0 at pci1 dev 6 function 0: QLogic 1020 Fast Wide SCSI HBA
isp0: interrupting at dec 6600 irq 47
ppb0 at pci1 dev 8 function 0: Digital Equipment DC21152 PCI-PCI Bridge (rev. 0x03)
pci2 at ppb0 bus 2
radeonfb0 at pci2 dev 9 function 0: ATI Technologies Radeon 7500 QW (rev. 0x00)
radeonfb0: 64 MB aperture at 0x40000000, 64 KB registers at 0x01020000
radeonfb0: display 0: initial virtual resolution 640x480 at 32 bpp
radeonfb0: port 0: physical 1024x768 60Hz
radeonfb0: port 1: physical 1024x768 60Hz
wsdisplay0 at radeonfb0 kbdmux 1
drm at radeonfb0 not configured
scsibus0 at isp0: 16 targets, 8 luns per target
atapibus0 at atabus0: 2 targets
scsibus0: waiting 2 seconds for devices to settle...
cd0 at atapibus0 drive 0: <JLMS XJ-HD166S, , D3S4> cdrom removable
uhub0 at usb0: Contaq Microsystems OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
sd0 at scsibus0 target 0 lun 0: <WDIGTL, WDE9100-1807A4, 1.30> disk fixed
sd0: 8683 MB, 6932 cyl, 12 head, 213 sec, 512 bytes/sect x 17783204 sectors
sd0: sync (50.00ns offset 8), 16-bit (40.000MB/s) transfers, tagged queueing
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
st0 at scsibus0 target 5 lun 0: <SONY, SDT-9000, 0123> tape removable
st0 : drive empty
st0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers
root on sd0a dumps on sd0b
root file system type: ffs
WARNING: preposterous TOD clock time
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
Sat Dec  7 02:23:41 UTC 2013
Starting root file system check:
/dev/rsd0a: file system is clean; not checking
swapctl: setting dump device to /dev/sd0b
swapctl: adding /dev/sd0b as swap device at priority 0
Starting file system checks:
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
IPv6 mode: host
Configuring network interfaces:.
Adding interface aliases:.
Starting dhclient.
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on BPF/tlp0/00:00:f8:71:71:15
Sending on   BPF/tlp0/00:00:f8:71:71:15
Sending on   Socket/fallback
DHCPREQUEST on tlp0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1

bound to 192.168.1.2 -- renewal in 7079 seconds.
Building databases: dev, utmp, utmpx.
Starting syslogd.
Mounting all filesystems...
Clearing temporary files.
Updating fontconfig cache: done.
Checking quotas: done.
Loaded entropy from disk.
Setting securelevel: kern.securelevel: 0 -> 1
swapctl: setting dump device to /dev/sd0b
Starting virecover.
Checking for core dump...
savecore: no core dump
Starting local daemons:.
Updating motd.
postfix: rebuilding /etc/mail/aliases (missing /etc/mail/aliases.db)
newaliases: warning: valid_hostname: empty hostname
newaliases: fatal: unable to use my own hostname
Dec  7 02:23:57  postfix/sendmail[345]: fatal: unable to use my own hostname
/etc/rc.d/postfix exited with code 1
Starting inetd.
Starting cron.
The following components reported failures:
    /etc/rc.d/postfix
See /var/run/rc.log for more information.
Sat Dec  7 02:23:58 UTC 2013

NetBSD/alpha (Amnesiac) (console)

========================================================================

Boot log at Alpha Station DS15

VMS PAL rev: 0x1000700010162
OSF PAL rev: 0x100070002015c
Switch to OSF PAL code succeeded.

Boot flags: A
|/-\|/-\|/-\|/-\|/10394608-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/
 -\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/+285376-\ [570432|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\+380164|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/]=0xb17ff8

Entering netbsd at 0xfffffc0000431230...
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 6.1.2 (GENERIC-$Revision: 1.343 $) #13: Sat Dec  7 08:25:52 JST 2013
	naruaki@NetBSD:/usr/netbsd_6_1_2/obj.alpha/sys/arch/alpha/compile/GENERIC
AlphaStation DS15, 1000MHz, s/n AY42501857
8192 byte page size, 1 processor.
total memory = 512 MB
(2880 KB reserved for PROM, 509 MB used by NetBSD)
avail memory = 490 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264C-6
cpu0: Architecture extensions: 0x1307<PAT,MVI,CIX,FIX,BWX>
tsc0 at mainbus0: 21274 Core Logic Chipset, Cchip rev 0
tsc0: 2 Dchips, 1 memory bus of 16 bytes
tsc0: arrays present: 512MB, 0MB, 0MB, 0MB, Dchip 0 rev 1
tsp0 at tsc0
pci0 at tsp0 bus 0
sio0 at pci0 dev 7 function 0: Acer Labs M1533 PCI-ISA Bridge (rev. 0xc3)
ahc0 at pci0 dev 8 function 0: Adaptec aic7899 Ultra160 SCSI adapter
ahc0: interrupting at dec 6600 irq 13
ahc0: aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
ahc1 at pci0 dev 8 function 1: Adaptec aic7899 Ultra160 SCSI adapter
ahc1: interrupting at dec 6600 irq 12
ahc1: aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
scsibus1 at ahc1: 16 targets, 8 luns per target
fxp0 at pci0 dev 9 function 0: Intel i82559ER Ethernet (rev. 0x09)
fxp0: interrupting at dec 6600 irq 28
fxp0: Ethernet address 00:0f:20:2b:e1:24
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1 at pci0 dev 10 function 0: Intel i82559ER Ethernet (rev. 0x09)
fxp1: interrupting at dec 6600 irq 4
fxp1: Ethernet address 00:0f:20:2b:e1:23
inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 4
inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
aceride0 at pci0 dev 13 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc1)
aceride0: primary channel interrupting at isa irq 14
atabus0 at aceride0 channel 0
aceride0: secondary channel interrupting at isa irq 15
atabus1 at aceride0 channel 1
isa0 at sio0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
attimer0 at isa0 port 0x40-0x43
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
mcclock0 at isa0 port 0x70-0x71: mc146818 compatible time-of-day clock
attimer0: attached to pcppi0
tsp1 at tsc0
pci1 at tsp1 bus 0
radeonfb0 at pci1 dev 7 function 0: ATI Technologies Radeon 7500 QW (rev. 0x00)
Vendor: [SNY] Sony
Product: [03D0] SDM-P234
Serial number: 88bd8c00
Manufactured 2006 Week 6
EDID Version 1.3
EDID Comment: 
Video Input: e
	Analog
	-0.7, 0.3V
	Seperate syncs
	Composite sync
	Sync on green
Gamma: 2.20
Max Size: 50 cm x 31 cm
Features: ea
	DPMS standby
	DPMS suspend
	DPMS active-off
	RGB
	Preferred timing
Chroma Info:
	Red X: 0.639
	Red Y: 0.639
	Grn X: 0.291
	Grn Y: 0.618
	Blu X: 0.146
	Blu Y: 0.074
	Wht X: 0.313
	Wht Y: 0.329
Range:
	Horizontal: 28 - 92 kHz
	Vertical: 57 - 85 Hz
	Max Dot Clock: 162 MHz
Video modes:
	720x400 @ 70Hz (28320 738 846 900 412 414 449 -H +V)
	640x480 @ 60Hz (25175 656 752 800 490 492 525 -H -V)
	640x480 @ 73Hz (31500 664 704 832 489 492 520 -H -V)
	640x480 @ 75Hz (31500 656 720 840 481 484 500 -H -V)
	800x600 @ 60Hz (40000 840 968 1056 601 605 628 +H +V)
	800x600 @ 72Hz (50000 856 976 1040 637 643 666 +H +V)
	800x600 @ 75Hz (49500 816 896 1056 601 604 625 +H +V)
	1024x768 @ 60Hz (65000 1048 1184 1344 771 777 806 -H -V)
	1024x768 @ 70Hz (75000 1048 1184 1328 771 777 806 -H -V)
	1024x768 @ 75Hz (78750 1040 1136 1312 769 772 800 +H +V)
	1280x1024 @ 75Hz (135000 1296 1440 1688 1025 1028 1066 +H +V)
	1600x1200 @ 60Hz (162000 1664 1856 2160 1201 1204 1250 +H +V)
	1280x1024 @ 85Hz (157500 1344 1504 1728 1025 1028 1072 +H +V)
	1280x960 @ 85Hz (148500 1344 1504 1728 961 964 1011 +H +V)
	1920x1200 @ 60Hz (154000 1968 2000 2080 1203 1209 1235 +H -V)
Preferred mode: 1920x1200 @ 60Hz
radeonfb0: 64 MB aperture at 0x40000000, 64 KB registers at 0x01080000
radeonfb0: display 0: initial virtual resolution 1920x1200 at 32 bpp
radeonfb0: port 0: physical 1024x768 60Hz
radeonfb0: port 1: physical 1920x1200 60Hz
wsdisplay0 at radeonfb0 kbdmux 1
drm at radeonfb0 not configured
tlp0 at pci1 dev 9 function 0: DECchip 21140A Ethernet, pass 2.0
tlp0: interrupting at dec 6600 irq 24
tlp0: DEC DE500-AA, Ethernet address 00:00:f8:03:dd:a1
nsphy0 at tlp0 phy 5: DP83840 10/100 media interface, rev. 0
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
esiop0 at pci1 dev 10 function 0: Symbios Logic 53c895 (ultra2-wide scsi)
esiop0: using on-board RAM
esiop0: interrupting at dec 6600 irq 20
scsibus2 at esiop0: 16 targets, 8 luns per target
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <HL-DT-ST RW/DVD GCC-4480B, , 2.06> cdrom removable
sd0 at scsibus0 target 0 lun 0: <FUJITSU, MAU3073NP, 3502> disk fixed
sd0: 70007 MB, 49158 cyl, 4 head, 729 sec, 512 bytes/sect x 143374744 sectors
sd0: sync (12.50ns offset 127), 16-bit (160.000MB/s) transfers, tagged queueing
root on sd0a dumps on sd0b
root file system type: ffs
Sat Dec  7 09:46:29 UTC 2013
Starting root file system check:
/dev/rsd0a: file system is clean; not checking
swapctl: setting dump device to /dev/sd0b
swapctl: adding /dev/sd0b as swap device at priority 0
Starting file system checks:
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
/etc/rc: WARNING: $hostname not set.
IPv6 mode: host
Configuring network interfaces: tlp0cprng sysctl: WARNING pseudorandom rekeying.
.
Adding interface aliases:.
Building databases: dev, utmp, utmpx.
Starting syslogd.
Mounting all filesystems...
Clearing temporary files.
Updating fontconfig cache: done.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
swapctl: setting dump device to /dev/sd0b
Starting virecover.
Checking for core dump...
savecore: no core dump
Starting local daemons:.
Updating motd.
postfix: rebuilding /etc/mail/aliases (missing /etc/mail/aliases.db)
newaliases: warning: valid_hostname: empty hostname
newaliases: fatal: unable to use my own hostname
/etc/rc.d/postfix exited with code 1
Dec  7 09:46:40  postfix/sendmail[568]: fatal: unable to use my own hostname
Starting inetd.
Starting cron.
The following components reported failures:
    /etc/rc.d/postfix
See /var/run/rc.log for more information.
Sat Dec  7 09:46:40 UTC 2013

NetBSD/alpha (Amnesiac) (console)

========================================================================

Please enjoy brightly colored X window system!!

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-alpha-maintainer->tsutsui
Responsible-Changed-By: tsutsui@NetBSD.org
Responsible-Changed-When: Mon, 13 Jan 2014 15:11:27 +0000
Responsible-Changed-Why:
I'll check this patch. At least fix against pci bwx mmap function is correct.


From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48431 CVS commit: src/sys/arch/alpha/pci
Date: Mon, 13 Jan 2014 15:48:09 +0000

 Module Name:	src
 Committed By:	tsutsui
 Date:		Mon Jan 13 15:48:09 UTC 2014

 Modified Files:
 	src/sys/arch/alpha/pci: pci_bwx_bus_mem_chipdep.c

 Log Message:
 bus_space_mmap(9) function should return alpha_btop(PA), not alpha_btop(VA).

 Pointed out in PR port-alpha/48431 from nullnilaki.


 To generate a diff of this commit:
 cvs rdiff -u -r1.25 -r1.26 src/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: netbsd-bugs@netbsd.org, tsutsui@ceres.dti.ne.jp
Subject: Re: port-alpha/48431: radeonfb fails to initialize on Alpha Station
	 DS15 and Alpha Station XP1000
Date: Tue, 14 Jan 2014 01:46:11 +0900

 > I'm a beginner.
 > Please rewite for NetBSD style.
 > 
 > diff -Naru src.orig/sys/arch/alpha/alpha/dec_6600.c src/sys/arch/alpha/alpha/dec_6600.c
 > --- src.orig/sys/arch/alpha/alpha/dec_6600.c	2012-02-06 11:14:11.000000000 +0900
 > +++ src/sys/arch/alpha/alpha/dec_6600.c	2013-12-03 01:53:01.000000000 +0900
 > @@ -196,11 +196,16 @@
 >  static void
 >  dec_6600_device_register(device_t dev, void *aux)
 >  {
 > +        struct ctb *ctb;
 > +        device_t pdev;
 > +        prop_dictionary_t dict;
 >  	static int found, initted, diskboot, netboot;
 >  	static device_t primarydev, pcidev, ctrlrdev;
 >  	struct bootdev_data *b = bootdev_data;
 >  	device_t parent = device_parent(dev);
 >  
 > +        ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
 > +
 >  	if (found)
 >  		return;
 >  
 > @@ -370,6 +375,13 @@
 >  		DR_VERBOSE(printf("booted_device = %s\n", device_xname(dev)));
 >  		found = 1;
 >  	}
 > +
 > +        if (ctb->ctb_term_type == CTB_GRAPHICS) {
 > +                if ((pdev = device_parent(dev)) != NULL && device_is_a(pdev, "pci")) {
 > +                        dict = device_properties(dev);
 > +                        prop_dictionary_set_bool(dict, "is_console", 1);
 > +                }
 > +        }
 >  }

 The current machine dependent device_register() function
 only checks boot device.

 If we'll add different checks to set device properties,
 we have to add them before current boot device check
 otherwise the function returns after boot device is found
 (though usually boot device will be found after any PCI devices
 because they are probed after interrupts are enabled).

 To set the "is_console" property for radeon (and other possible
 pci display drivers like machfb), we have to check not only
 the parent "pci" but also whether the device is actually display.
 Could you try this diff?

 Index: dec_6600.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/alpha/alpha/dec_6600.c,v
 retrieving revision 1.34
 diff -u -p -r1.34 dec_6600.c
 --- dec_6600.c	13 Oct 2012 17:58:54 -0000	1.34
 +++ dec_6600.c	13 Jan 2014 16:18:09 -0000
 @@ -201,6 +201,21 @@ dec_6600_device_register(device_t dev, v
  	struct bootdev_data *b = bootdev_data;
  	device_t parent = device_parent(dev);

 +	/* set properties for PCI framebuffers */
 +	if (parent != NULL && device_is_a(parent, "pci")) {
 +		struct pci_attach_args *pa = aux;
 +		struct ctb *ctb;
 +		prop_dictionary_t dict;
 +
 +		ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
 +		if (PCI_CLASS(pa->pa_class) == PCI_CLASS_DISPLAY &&
 +		    ctb->ctb_term_type == CTB_GRAPHICS) {
 +			dict = device_properties(dev);
 +			prop_dictionary_set_bool(dict, "is_console", true);
 +		}
 +	}
 +
 +	/* check boot device */
  	if (found)
  		return;

 ---

 I wonder if we should prepare a separate common device_register(9)
 function which can be shared among all machines that have PCI bus,
 but it's a future improvement.

 > I think that need ALPHA_PHYS_TO_K0SEG.
 > Because direct-mapped addresses.
 > 
 > diff -Naru src.orig/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c src/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c
 > --- src.orig/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c	2012-02-06 11:14:15.000000000 +0900
 > +++ src/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c	2013-12-01 21:33:43.000000000 +0900
 > @@ -500,7 +500,7 @@
 >  	int flags)
 >  {
 >  
 > -	return (alpha_btop(CHIP_MEM_SYS_START(v) + addr + off));
 > +        return (alpha_btop(ALPHA_PHYS_TO_K0SEG(CHIP_MEM_SYS_START(v) + addr + off)));
 >  }
 >  
 >  static inline void

 I've committed the similar fix for this part. Thanks.

 > Please define RADEONFB_DEPTH_32!
 > If undefined RADEONFB_DEPTH_32, X window system is broken.
 > Please see https://twitter.com/nullnilaki/status/407561289502703616/photo/1
  :
 > Please do not use radeonfb_set_backlight function.
 > Because Display blackout.
 > Use radeonfb_set_backlight function version.
 > Please see http://twitpic.com/dnd9h7
 > Do not use radeonfb_set_backlight function version.
 > http://twitpic.com/dndawd

 Can you any info why we need DEPTH_32 and
 how does radeonfb_set_backlight() function fail?

 Probably we should also handle these quirks by
 device properties for now, rather than ugly ifdefs.

 > If you use X Window System, apply this patch and build.sh -x and use "wsfb" driver at xorg.conf
 > 
 > diff -Naru src.orig/share/mk/bsd.own.mk src/share/mk/bsd.own.mk
 > --- src.orig/share/mk/bsd.own.mk	2012-11-25 04:45:11.000000000 +0900
 > +++ src/share/mk/bsd.own.mk	2013-12-01 21:31:07.000000000 +0900
 > @@ -847,7 +847,6 @@
 >  #
 >  .if \
 >      ${MACHINE} == "acorn32"	|| \
 > -    ${MACHINE} == "alpha"	|| \
 >      ${MACHINE} == "amiga"	|| \
 >      ${MACHINE} == "ews4800mips"	|| \
 >      ${MACHINE} == "mac68k"	|| \

 IIRC the alpha port still sticks X11R6 (XFree) based server
 for PCI TGA and TURBOchannel SFB/HFB/TFB etc.

 Probably it's time to switch alpha port to Xorg server
 (I guess TGA and SFB has fewer users and will also work
 with wsfb driver), but it should be discussed on port-alpha@.

 ---
 Izumi Tsutsui

From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48431 CVS commit: src/sys/arch/alpha/pci
Date: Wed, 15 Jan 2014 14:27:49 +0000

 Module Name:	src
 Committed By:	tsutsui
 Date:		Wed Jan 15 14:27:49 UTC 2014

 Modified Files:
 	src/sys/arch/alpha/pci: pci_bwx_bus_mem_chipdep.c

 Log Message:
 Revert previous.  PR/48431 claims ALPHA_PHYS_TO_K0SEG() is necessary.

 Actually CHIP_MEM_SYS_START(v) seems a physical address per *_mem_map()
 function, but I don't think mmap() function should return K0SEG address
 (it should return PA cookie IIUC) so I guess there is something wrong
 in Titan's bus space functions.  I'll investigate them later.


 To generate a diff of this commit:
 cvs rdiff -u -r1.26 -r1.27 src/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: PR/48431 CVS commit: src/sys/arch/alpha/pci
Date: Thu, 16 Jan 2014 00:22:30 +0900

 >  Revert previous.  PR/48431 claims ALPHA_PHYS_TO_K0SEG() is necessary.

 Can you try this patch instead?

 ---
 Index: pci/tsp_bus_mem.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/alpha/pci/tsp_bus_mem.c,v
 retrieving revision 1.12
 diff -u -p -r1.12 tsp_bus_mem.c
 --- pci/tsp_bus_mem.c	6 Feb 2012 02:14:15 -0000	1.12
 +++ pci/tsp_bus_mem.c	15 Jan 2014 15:18:22 -0000
 @@ -57,7 +57,8 @@ __KERNEL_RCSID(0, "$NetBSD: tsp_bus_mem.
  #define	CHIP_MEM_EX_STORE_SIZE(v)					\
  	(sizeof (((struct tsp_config *)(v))->pc_mem_exstorage))

 -#define CHIP_MEM_SYS_START(v)    (((struct tsp_config *)(v))->pc_iobase)
 +#define CHIP_MEM_SYS_START(v)						\
 +	(((struct tsp_config *)(v))->pc_iobase | P_PCI_MEM)

  /*
   * Tsunami core logic appears on EV6.  We require at least EV56

 ---

 I'm not sure which address should be used to translate
 Titan's P_PCI_MEM (from 0x0000080000000000) regions into
 K0SEG direct map  (from 0xfffffc0000000000) regions though.

 ---
 Izumi Tsutsui

From: "Naruaki.Etomi" <nullnilaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc: tsutsui@netbsd.org, macallan@netbsd.org
Subject: Re: PR/48431 CVS commit: src/sys/arch/alpha/pci
Date: Sun, 19 Jan 2014 04:00:53 +0900

 Dear Tsutsui-san.

 Thank you for your mail!

 >  Could you try this diff?
 >
 >  Index: dec_6600.c
 >  ===================================================================
 >  RCS file: /cvsroot/src/sys/arch/alpha/alpha/dec_6600.c,v
 >  retrieving revision 1.34
 >  diff -u -p -r1.34 dec_6600.c
 >  --- dec_6600.c 13 Oct 2012 17:58:54 -0000      1.34
 >  +++ dec_6600.c 13 Jan 2014 16:18:09 -0000
 >  @@ -201,6 +201,21 @@ dec_6600_device_register(device_t dev, v
 >         struct bootdev_data *b = bootdev_data;
 >         device_t parent = device_parent(dev);
 >
 >  +      /* set properties for PCI framebuffers */
 >  +      if (parent != NULL && device_is_a(parent, "pci")) {
 >  +              struct pci_attach_args *pa = aux;
 >  +              struct ctb *ctb;
 >  +              prop_dictionary_t dict;
 >  +
 >  +              ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
 >  +              if (PCI_CLASS(pa->pa_class) == PCI_CLASS_DISPLAY &&
 >  +                  ctb->ctb_term_type == CTB_GRAPHICS) {
 >  +                      dict = device_properties(dev);
 >  +                      prop_dictionary_set_bool(dict, "is_console", true);
 >  +              }
 >  +      }
 >  +
 >  +      /* check boot device */
 >         if (found)
 >                 return;
 >
 >  ---

 I apply this patch.
 It work fine and radeonfb attached correctly.

 --------------------------------------------------------------------------------------
 radeonfb0 at pci1 dev 7 function 0: ATI Technologies Radeon 7500 QW (rev. 0x00)
 radeonfb0: Found 48 KB Legacy BIOS
 radeonfb0: refclk = 27.000 MHz, refdiv = 8 minpll = 200000, maxpll = 350000
 radeonfb0: 64 MB aperture at 0x40000000, 64 KB registers at 0x01080000
 radeonfb0: display 0: initial virtual resolution 1920x1200 at 32 bpp
 radeonfb0: using 32 MB per display
 radeonfb0: port 0: physical 1920x1200 60Hz
 radeonfb0: port 1: physical 1920x1200 60Hz
 wsdisplay0 at radeonfb0 kbdmux 1: console (fb, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 --------------------------------------------------------------------------------------

 >  >  Revert previous.  PR/48431 claims ALPHA_PHYS_TO_K0SEG() is necessary.
 >
 >  Can you try this patch instead?
 >
 >  ---
 >  Index: pci/tsp_bus_mem.c
 >  ===================================================================
 >  RCS file: /cvsroot/src/sys/arch/alpha/pci/tsp_bus_mem.c,v
 >  retrieving revision 1.12
 >  diff -u -p -r1.12 tsp_bus_mem.c
 >  --- pci/tsp_bus_mem.c  6 Feb 2012 02:14:15 -0000       1.12
 >  +++ pci/tsp_bus_mem.c  15 Jan 2014 15:18:22 -0000
 >  @@ -57,7 +57,8 @@ __KERNEL_RCSID(0, "$NetBSD: tsp_bus_mem.
 >   #define       CHIP_MEM_EX_STORE_SIZE(v)                                       \
 >         (sizeof (((struct tsp_config *)(v))->pc_mem_exstorage))
 >
 >  -#define CHIP_MEM_SYS_START(v)    (((struct tsp_config *)(v))->pc_iobase)
 >  +#define CHIP_MEM_SYS_START(v)                                         \
 >  +      (((struct tsp_config *)(v))->pc_iobase | P_PCI_MEM)
 >
 >   /*
 >    * Tsunami core logic appears on EV6.  We require at least EV56
 >
 >  ---

 I apply this patch.
 It work fine!

 --------------------------------------------------------------------------------------
 Please see the pictures below
 Twitter clients /pkgsrc/net/tw on mlterm-fb framebuffer console
 without X server @ Alpha station DS15
 https://twitter.com/nullnilaki/status/424370741258096641/photo/1
 Twitter clients /pkgsrc/net/mikutter on Xorg with radeonfb and wsfb
 driver @ Alpha station DS15
 https://twitter.com/nullnilaki/status/424380535062790144/photo/1
 Xorg with radeonfb and wsfb driver on NetBSD/alpha @ Alpha station XP1000
 https://twitter.com/nullnilaki/status/424405419377717248/photo/1
 --------------------------------------------------------------------------------------

 >return (alpha_btop(ALPHA_PHYS_TO_K0SEG(CHIP_MEM_SYS_START(v) + addr + off)));
 My patch is work but it is very very rare instances.
 I guess it should be MMU's magic!

 >  Can you any info why we need DEPTH_32 and

 Why I used to "32bpp display mode" because Xorg with wsfb driver is
 wrong on "8bpp display mode" and Xorg's radeon driver is wrong on alpha.
 I guess radeonfb_getcmap function and radeonfb_putcmap function hasn't
 been implemented yet.

 >  how does radeonfb_set_backlight() function fail?
 This patch is not necessary.
 I write a patch for old radeonfb.(NetBSD 6.1.2 included)
 Some problems was solved.

 --------------------------------------------------------------------------------------
 Please read the send-pr.
 http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=48492
 --------------------------------------------------------------------------------------

 >  device properties for now, rather than ugly ifdefs.
 >  IIRC the alpha port still sticks X11R6 (XFree) based server
 >  for PCI TGA and TURBOchannel SFB/HFB/TFB etc.
 >
 >  Probably it's time to switch alpha port to Xorg server
 >  (I guess TGA and SFB has fewer users and will also work
 >  with wsfb driver), but it should be discussed on port-alpha@.

 I wholeheartedly agree with you!

 Sincerely,
 Naruaki Etomi
 --
 nullnilaki@gmail.com

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: nullnilaki@gmail.com, tsutsui@ceres.dti.ne.jp
Subject: Re: PR/48431 CVS commit: src/sys/arch/alpha/pci
Date: Sun, 19 Jan 2014 12:38:00 +0900

 >  >  --- dec_6600.c 13 Oct 2012 17:58:54 -0000      1.34
 >  >  +++ dec_6600.c 13 Jan 2014 16:18:09 -0000
 >  >  @@ -201,6 +201,21 @@ dec_6600_device_register(device_t dev, v
 >  >         struct bootdev_data *b = bootdev_data;
 >  >         device_t parent = device_parent(dev);
 >  >
 >  >  +      /* set properties for PCI framebuffers */
  :

 >  I apply this patch.
 >  It work fine and radeonfb attached correctly.

 Thanks.

 After some thoughts, I notice x86 ports have device_pci_register()
 in sys/arch/x86/pci/pci_machidep.c and now I think it's better to put
 a common PCI specific device_register function in alpha/pci/pci_machidep.c.

 Could you also try the following patch (after revert previous
 dec_6600.c diff)?

 ---
 Index: alpha/autoconf.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/alpha/alpha/autoconf.c,v
 retrieving revision 1.52
 diff -u -p -r1.52 autoconf.c
 --- alpha/autoconf.c	29 Jul 2012 18:05:39 -0000	1.52
 +++ alpha/autoconf.c	18 Jan 2014 14:08:35 -0000
 @@ -44,6 +44,8 @@

  __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.52 2012/07/29 18:05:39 mlelstv Exp $");

 +#include "pci.h"
 +
  #include <sys/param.h>
  #include <sys/systm.h>
  #include <sys/buf.h>
 @@ -53,6 +55,8 @@ __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v
  #include <sys/conf.h>
  #include <dev/cons.h>

 +#include <dev/pci/pcivar.h>
 +
  #include <machine/autoconf.h>
  #include <machine/alpha.h>
  #include <machine/cpu.h>
 @@ -172,6 +176,13 @@ atoi(const char *s)
  void
  device_register(device_t dev, void *aux)
  {
 +#if NPCI > 0
 +	device_t parent = device_parent(dev);
 +
 +	if (parent != NULL && device_is_a(parent, "pci"))
 +		device_pci_register(dev, aux);
 +#endif
 +
  	if (bootdev_data == NULL) {
  		/*
  		 * There is no hope.
 Index: include/pci_machdep.h
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/alpha/include/pci_machdep.h,v
 retrieving revision 1.15
 diff -u -p -r1.15 pci_machdep.h
 --- include/pci_machdep.h	6 Feb 2012 02:14:13 -0000	1.15
 +++ include/pci_machdep.h	18 Jan 2014 14:08:35 -0000
 @@ -109,3 +109,4 @@ void	pci_display_console(bus_space_tag_t
      ((c)->pc_pciide_compat_intr_establish == NULL ? NULL :		\
       (*(c)->pc_pciide_compat_intr_establish)((c)->pc_conf_v, (d), (p),	\
  	(ch), (f), (a)))
 +void	device_pci_register(device_t, void *);
 Index: pci/pci_machdep.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/alpha/pci/pci_machdep.c,v
 retrieving revision 1.19
 diff -u -p -r1.19 pci_machdep.c
 --- pci/pci_machdep.c	6 Feb 2012 02:14:15 -0000	1.19
 +++ pci/pci_machdep.c	18 Jan 2014 14:08:35 -0000
 @@ -59,6 +59,8 @@ __KERNEL_RCSID(0, "$NetBSD: pci_machdep.
  #include <dev/pci/tgavar.h>
  #endif

 +#include <machine/rpb.h>
 +
  void
  pci_display_console(bus_space_tag_t iot, bus_space_tag_t memt, pci_chipset_tag_t pc, int bus, int device, int function)
  {
 @@ -101,3 +103,20 @@ pci_display_console(bus_space_tag_t iot,
  		panic("pci_display_console: unconfigured device at %d/%d/%d",
  		    bus, device, function);
  }
 +
 +void
 +device_pci_register(device_t dev, void *aux)
 +{
 +	struct pci_attach_args *pa = aux;
 +	struct ctb *ctb;
 +	prop_dictionary_t dict;
 +
 +	/* set properties for PCI framebuffers */
 +	ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
 +	if (PCI_CLASS(pa->pa_class) == PCI_CLASS_DISPLAY &&
 +	    ctb->ctb_term_type == CTB_GRAPHICS) {
 +		/* XXX should consider multiple displays? */
 +		dict = device_properties(dev);
 +		prop_dictionary_set_bool(dict, "is_console", true);
 +	}
 +}
 ---


 >  >  --- pci/tsp_bus_mem.c  6 Feb 2012 02:14:15 -0000       1.12
 >  >  +++ pci/tsp_bus_mem.c  15 Jan 2014 15:18:22 -0000
  :
 >  >  -#define CHIP_MEM_SYS_START(v)    (((struct tsp_config *)(v))->pc_iobase)
 >  >  +#define CHIP_MEM_SYS_START(v)                                         \
 >  >  +      (((struct tsp_config *)(v))->pc_iobase | P_PCI_MEM)
  :
 >  I apply this patch.
 >  It work fine!

 Thanks. I'll commit this part soon.

 >  >return (alpha_btop(ALPHA_PHYS_TO_K0SEG(CHIP_MEM_SYS_START(v) + addr + off)));
 >  My patch is work but it is very very rare instances.
 >  I guess it should be MMU's magic!

 I guess some higher bits (around P_PCI_MEM) are ignored in pmap_enter()
 or alpha's MMU (but not sure).

 >  >  Can you any info why we need DEPTH_32 and
 >  
 >  Why I used to "32bpp display mode" because Xorg with wsfb driver is
 >  wrong on "8bpp display mode" and Xorg's radeon driver is wrong on alpha.
 >  I guess radeonfb_getcmap function and radeonfb_putcmap function hasn't
 >  been implemented yet.

 If this problem is not port specific, I wonder if we should make
 32BPP default..

 >  >  how does radeonfb_set_backlight() function fail?
 >  This patch is not necessary.

 Ok, I'll leave this part.

 ---
 Izumi Tsutsui

From: "Naruaki.Etomi" <nullnilaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc: tsutsui@netbsd.org
Subject: Re: PR/48431 CVS commit: src/sys/arch/alpha/pci
Date: Mon, 20 Jan 2014 01:43:26 +0900

 Dear Tsutsui-san.

 Thank you for your mail!

 >  After some thoughts, I notice x86 ports have device_pci_register()
 >  in sys/arch/x86/pci/pci_machidep.c and now I think it's better to put
 >  a common PCI specific device_register function in alpha/pci/pci_machidep.c.
 >
 >  Could you also try the following patch (after revert previous
 >  dec_6600.c diff)?
 >
 >  ---
 >  Index: alpha/autoconf.c
 >  ===================================================================
 >  RCS file: /cvsroot/src/sys/arch/alpha/alpha/autoconf.c,v
 >  retrieving revision 1.52
 >  diff -u -p -r1.52 autoconf.c
 >  --- alpha/autoconf.c   29 Jul 2012 18:05:39 -0000      1.52
 >  +++ alpha/autoconf.c   18 Jan 2014 14:08:35 -0000
 >  @@ -44,6 +44,8 @@
 >
 >   __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.52 2012/07/29 18:05:39 mlelstv Exp $");
 >
 >  +#include "pci.h"
 >  +
 >   #include <sys/param.h>
 >   #include <sys/systm.h>
 >   #include <sys/buf.h>
 >  @@ -53,6 +55,8 @@ __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v
 >   #include <sys/conf.h>
 >   #include <dev/cons.h>
 >
 >  +#include <dev/pci/pcivar.h>
 >  +
 >   #include <machine/autoconf.h>
 >   #include <machine/alpha.h>
 >   #include <machine/cpu.h>
 >  @@ -172,6 +176,13 @@ atoi(const char *s)
 >   void
 >   device_register(device_t dev, void *aux)
 >   {
 >  +#if NPCI > 0
 >  +      device_t parent = device_parent(dev);
 >  +
 >  +      if (parent != NULL && device_is_a(parent, "pci"))
 >  +              device_pci_register(dev, aux);
 >  +#endif
 >  +
 >         if (bootdev_data == NULL) {
 >                 /*
 >                  * There is no hope.
 >  Index: include/pci_machdep.h
 >  ===================================================================
 >  RCS file: /cvsroot/src/sys/arch/alpha/include/pci_machdep.h,v
 >  retrieving revision 1.15
 >  diff -u -p -r1.15 pci_machdep.h
 >  --- include/pci_machdep.h      6 Feb 2012 02:14:13 -0000       1.15
 >  +++ include/pci_machdep.h      18 Jan 2014 14:08:35 -0000
 >  @@ -109,3 +109,4 @@ void       pci_display_console(bus_space_tag_t
 >       ((c)->pc_pciide_compat_intr_establish == NULL ? NULL :            \
 >        (*(c)->pc_pciide_compat_intr_establish)((c)->pc_conf_v, (d), (p),        \
 >         (ch), (f), (a)))
 >  +void  device_pci_register(device_t, void *);
 >  Index: pci/pci_machdep.c
 >  ===================================================================
 >  RCS file: /cvsroot/src/sys/arch/alpha/pci/pci_machdep.c,v
 >  retrieving revision 1.19
 >  diff -u -p -r1.19 pci_machdep.c
 >  --- pci/pci_machdep.c  6 Feb 2012 02:14:15 -0000       1.19
 >  +++ pci/pci_machdep.c  18 Jan 2014 14:08:35 -0000
 >  @@ -59,6 +59,8 @@ __KERNEL_RCSID(0, "$NetBSD: pci_machdep.
 >   #include <dev/pci/tgavar.h>
 >   #endif
 >
 >  +#include <machine/rpb.h>
 >  +
 >   void
 >   pci_display_console(bus_space_tag_t iot, bus_space_tag_t memt, pci_chipset_tag_t pc, int bus, int device, int function)
 >   {
 >  @@ -101,3 +103,20 @@ pci_display_console(bus_space_tag_t iot,
 >                 panic("pci_display_console: unconfigured device at %d/%d/%d",
 >                     bus, device, function);
 >   }
 >  +
 >  +void
 >  +device_pci_register(device_t dev, void *aux)
 >  +{
 >  +      struct pci_attach_args *pa = aux;
 >  +      struct ctb *ctb;
 >  +      prop_dictionary_t dict;
 >  +
 >  +      /* set properties for PCI framebuffers */
 >  +      ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
 >  +      if (PCI_CLASS(pa->pa_class) == PCI_CLASS_DISPLAY &&
 >  +          ctb->ctb_term_type == CTB_GRAPHICS) {
 >  +              /* XXX should consider multiple displays? */
 >  +              dict = device_properties(dev);
 >  +              prop_dictionary_set_bool(dict, "is_console", true);
 >  +      }
 >  +}
 >  ---

 I apply this patch.
 It work fine and radeonfb attached correctly!(vga(4) attached
 correctly as a matter of course)

 >  If this problem is not port specific, I wonder if we should make
 >  32BPP default..

 I think so too, but I am not designer of radeonfb....

 I have attached dmesg.(AlphaStation DS15 with radeonfb and
 AlphaStation XP1000 with vga(PowerStorm 300)).
 Please see dmesg.

 -----------------------------------------------------------------------------------------------------
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

 NetBSD 6.99.29 (GENERIC-$Revision: 1.356 $) #1: Sun Jan 19 23:05:47 JST 2014
         naruaki@NetBSD:/usr/obj.alpha/sys/arch/alpha/compile/GENERIC
 AlphaStation DS15, 1000MHz, s/n AY42501857
 8192 byte page size, 1 processor.
 total memory = 512 MB
 (2880 KB reserved for PROM, 509 MB used by NetBSD)
 avail memory = 490 MB
 timecounter: Timecounters tick every 0.976 msec
 mainbus0 (root)
 cpu0 at mainbus0: ID 0 (primary), 21264C-6
 cpu0: Architecture extensions: 0x1307<PAT,MVI,CIX,FIX,BWX>
 tsc0 at mainbus0: 21274 Core Logic Chipset, Cchip rev 0
 tsc0: 2 Dchips, 1 memory bus of 16 bytes
 tsc0: arrays present: 512MB, 0MB, 0MB, 0MB, Dchip 0 rev 1
 tsp0 at tsc0
 pci0 at tsp0 bus 0
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 sio0 at pci0 dev 7 function 0: Acer Labs M1533 PCI-ISA Bridge (rev. 0xc3)
 ahc0 at pci0 dev 8 function 0: Adaptec aic7899 Ultra160 SCSI adapter
 ahc0: interrupting at dec 6600 irq 13
 ahc0: aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
 scsibus0 at ahc0: 16 targets, 8 luns per target
 ahc1 at pci0 dev 8 function 1: Adaptec aic7899 Ultra160 SCSI adapter
 ahc1: interrupting at dec 6600 irq 12
 ahc1: aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
 scsibus1 at ahc1: 16 targets, 8 luns per target
 fxp0 at pci0 dev 9 function 0: Intel i82559ER Ethernet (rev. 0x09)
 fxp0: interrupting at dec 6600 irq 28
 fxp0: May need receiver lock-up workaround
 fxp0: Ethernet address 00:0f:20:2b:e1:24
 inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 fxp1 at pci0 dev 10 function 0: Intel i82559ER Ethernet (rev. 0x09)
 fxp1: interrupting at dec 6600 irq 4
 fxp1: May need receiver lock-up workaround
 fxp1: Ethernet address 00:0f:20:2b:e1:23
 inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 4
 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 aceride0 at pci0 dev 13 function 0: Acer Labs M5229 UDMA IDE
 Controller (rev. 0xc1)
 aceride0: bus-master DMA support present
 aceride0: using PIO transfers above 137GB as workaround for 48bit DMA
 access bug, expect reduced performance
 aceride0: primary channel configured to compatibility mode
 aceride0: primary channel interrupting at isa irq 14
 atabus0 at aceride0 channel 0
 aceride0: secondary channel configured to compatibility mode
 aceride0: secondary channel interrupting at isa irq 15
 atabus1 at aceride0 channel 1
 isa0 at sio0
 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pms0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 attimer0 at isa0 port 0x40-0x43
 pcppi0 at isa0 port 0x61
 midi0 at pcppi0: PC speaker
 spkr0 at pcppi0
 isabeep0 at pcppi0
 fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
 mcclock0 at isa0 port 0x70-0x71: mc146818 compatible time-of-day clock
 attimer0: attached to pcppi0
 tsp1 at tsc0
 pci1 at tsp1 bus 0
 pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 radeonfb0 at pci1 dev 7 function 0: ATI Technologies Radeon 7500 QW (rev. 0x00)
 radeonfb0: Found 48 KB Legacy BIOS
 radeonfb0: refclk = 27.000 MHz, refdiv = 8 minpll = 200000, maxpll = 350000
 radeonfb0: 64 MB aperture at 0x40000000, 64 KB registers at 0x01080000
 radeonfb0: display 0: initial virtual resolution 1920x1200 at 8 bpp
 radeonfb0: using 32 MB per display
 radeonfb0: port 0: physical 1920x1200 60Hz
 radeonfb0: port 1: physical 1920x1200 60Hz
 wsdisplay0 at radeonfb0 kbdmux 1: console (fb, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 drm at radeonfb0 not configured
 tlp0 at pci1 dev 9 function 0: DECchip 21140A Ethernet, pass 2.0
 tlp0: interrupting at dec 6600 irq 24
 tlp0: DEC DE500-AA, Ethernet address 00:00:f8:03:dd:a1
 nsphy0 at tlp0 phy 5: DP83840 10/100 media interface, rev. 0
 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 esiop0 at pci1 dev 10 function 0: Symbios Logic 53c895 (ultra2-wide scsi)
 esiop0: using on-board RAM
 esiop0: interrupting at dec 6600 irq 20
 scsibus2 at esiop0: 16 targets, 8 luns per target
 timecounter: Timecounter "clockinterrupt" frequency 1024 Hz quality 0
 timecounter: Timecounter "PCC" frequency 999723072 Hz quality 1000
 scsibus0: waiting 2 seconds for devices to settle...
 scsibus1: waiting 2 seconds for devices to settle...
 scsibus2: waiting 2 seconds for devices to settle...
 atapibus0 at atabus0: 2 targets
 cd0 at atapibus0 drive 0: <HL-DT-ST RW/DVD GCC-4480B, , 2.06> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 3
 cd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 sd0 at scsibus0 target 0 lun 0: <FUJITSU, MAU3073NP, 3502> disk fixed
 sd0: 70007 MB, 49158 cyl, 4 head, 729 sec, 512 bytes/sect x 143374744 sectors
 sd0: sync (12.50ns offset 127), 16-bit (160.000MB/s) transfers, tagged queueing
 Kernelized RAIDframe activated
 root on sd0a dumps on sd0b
 root file system type: ffs
 -----------------------------------------------------------------------------------------------------
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

 NetBSD 6.99.29 (GENERIC-$Revision: 1.356 $) #1: Sun Jan 19 23:05:47 JST 2014
         naruaki@NetBSD:/usr/obj.alpha/sys/arch/alpha/compile/GENERIC
 COMPAQ Professional Workstation XP1000, 500MHz, s/n
 8192 byte page size, 1 processor.
 total memory = 512 MB
 (2128 KB reserved for PROM, 509 MB used by NetBSD)
 avail memory = 491 MB
 timecounter: Timecounters tick every 0.976 msec
 mainbus0 (root)
 cpu0 at mainbus0: ID 0 (primary), 21264-5
 cpu0: Architecture extensions: 0x303<PAT,MVI,FIX,BWX>
 tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
 tsc0: 4 Dchips, 1 memory bus of 32 bytes
 tsc0: arrays present: 512MB (split), 0MB, 0MB, 0MB, Dchip 0 rev 1
 tsp0 at tsc0
 pci0 at tsp0 bus 0
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 sio0 at pci0 dev 7 function 0: Contaq Microsystems 82C693 PCI-ISA
 Bridge (rev. 0x00)
 cypide0 at pci0 dev 7 function 1: Cypress 82C693 IDE Controller (rev. 0x00)
 cypide0: bus-master DMA support present
 , but unused (registers at unsafe address 0x10000)cypide0: primary
 channel wired to compatibility mode
 cypide0: primary channel interrupting at isa irq 14
 atabus0 at cypide0 channel 0
 cypide1 at pci0 dev 7 function 2: Cypress 82C693 IDE Controller (rev. 0x00)
 cypide1: hardware does not support DMA
 cypide1: primary channel wired to compatibility mode
 cypide1: secondary channel interrupting at isa irq 15
 atabus1 at cypide1 channel 0
 ohci0 at pci0 dev 7 function 3: Contaq Microsystems 82C693 PCI-ISA
 Bridge (rev. 0x00)
 ohci0: interrupting at isa irq 10
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 isa0 at sio0
 lpt0 at isa0 port 0x3bc-0x3bf irq 7
 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pms0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 attimer0 at isa0 port 0x40-0x43
 sb0 at isa0 port 0x220-0x237 irq 5 drq 1: dsp v3.01
 audio0 at sb0: half duplex, playback, capture, mmap, independent
 midi0 at sb0: SB MIDI UART
 opl0 at sb0: model OPL3
 midi1 at opl0: SB Yamaha OPL3
 pcppi0 at isa0 port 0x61
 midi2 at pcppi0: PC speaker
 spkr0 at pcppi0
 isabeep0 at pcppi0
 fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
 mcclock0 at isa0 port 0x70-0x71: mc146818 compatible time-of-day clock
 attimer0: attached to pcppi0
 tsp1 at tsc0
 pci1 at tsp1 bus 0
 pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 tlp0 at pci1 dev 3 function 0: DECchip 21143 Ethernet, pass 4.1
 tlp0: interrupting at dec 6600 irq 45
 tlp0: DEC, Ethernet address 00:00:f8:71:71:15
 tlp0: 10baseT, 10base2, 10base5, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 isp0 at pci1 dev 6 function 0: QLogic 1020 Fast Wide SCSI HBA
 isp0: interrupting at dec 6600 irq 47
 ppb0 at pci1 dev 8 function 0: Digital Equipment DC21152 PCI-PCI
 Bridge (rev. 0x03)
 pci2 at ppb0 bus 2
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 vga0 at pci2 dev 9 function 0: Mitsubishi Electronics product 0x0304 (rev. 0x00)
 wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 drm at vga0 not configured
 timecounter: Timecounter "clockinterrupt" frequency 1024 Hz quality 0
 timecounter: Timecounter "PCC" frequency 500029680 Hz quality 1000
 scsibus0 at isp0: 16 targets, 8 luns per target
 atapibus0 at atabus0: 2 targets
 scsibus0: waiting 2 seconds for devices to settle...
 cd0 at atapibus0 drive 0: <JLMS XJ-HD166S, , D3S4> cdrom removable
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(cypide0:0:0): using PIO mode 4
 uhub0 at usb0: Contaq Microsystems OHCI root hub, class 9/0, rev
 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 sd0 at scsibus0 target 0 lun 0: <WDIGTL, WDE9100-1807A4, 1.30> disk fixed
 sd0: 8683 MB, 6932 cyl, 12 head, 213 sec, 512 bytes/sect x 17783204 sectors
 sd0: sync (50.00ns offset 8), 16-bit (40.000MB/s) transfers, tagged queueing
 fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
 st0 at scsibus0 target 5 lun 0: <SONY, SDT-9000, 0123> tape removable
 st0 : drive empty
 st0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers
 Kernelized RAIDframe activated
 root on sd0a dumps on sd0b
 root file system type: ffs
 -----------------------------------------------------------------------------------------------------

 Sincerely,
 Naruaki Etomi
 --
 nullnilaki@gmail.com

From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48431 CVS commit: src/sys/arch/alpha
Date: Mon, 20 Jan 2014 15:05:14 +0000

 Module Name:	src
 Committed By:	tsutsui
 Date:		Mon Jan 20 15:05:14 UTC 2014

 Modified Files:
 	src/sys/arch/alpha/alpha: autoconf.c
 	src/sys/arch/alpha/include: pci_machdep.h
 	src/sys/arch/alpha/pci: pci_machdep.c

 Log Message:
 Check and set "is_console" property to PCI displays for framebuffer drivers.

 Tested on DS15 with radeonfb(4) and XP1000 with vga(4)
 by Naruaki Etomi in PR/48431.


 To generate a diff of this commit:
 cvs rdiff -u -r1.52 -r1.53 src/sys/arch/alpha/alpha/autoconf.c
 cvs rdiff -u -r1.15 -r1.16 src/sys/arch/alpha/include/pci_machdep.h
 cvs rdiff -u -r1.19 -r1.20 src/sys/arch/alpha/pci/pci_machdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48431 CVS commit: src/sys/arch/alpha/conf
Date: Mon, 20 Jan 2014 15:32:23 +0000

 Module Name:	src
 Committed By:	tsutsui
 Date:		Mon Jan 20 15:32:23 UTC 2014

 Modified Files:
 	src/sys/arch/alpha/conf: GENERIC

 Log Message:
 Add and enable radeonfb(4) at pci with options RADEONFB_DEPTH_32.

 Requested and tested (with wsfb Xorg server) by Naruaki Etomi in PR/48431.


 To generate a diff of this commit:
 cvs rdiff -u -r1.356 -r1.357 src/sys/arch/alpha/conf/GENERIC

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Naruaki.Etomi" <nullnilaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc: tsutsui@netbsd.org
Subject: Re: PR/48431 CVS commit: src/sys/arch/alpha/conf
Date: Tue, 21 Jan 2014 23:41:41 +0900

 Dear Tsutsui-san.

 Thank you for your mail!

 X with wsfb driver work fine!

 Please see
 --------------------------------------------------------------------------------------------
 Have fun!
 https://twitter.com/nullnilaki/status/425634552388661248/photo/1
 --------------------------------------------------------------------------------------------

 Sincerely,
 Naruaki Etomi
 --
 nullnilaki@gmail.com

State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Tue, 28 Jan 2014 11:51:40 +0000
State-Changed-Why:
All necessary fixes are committed and confirmed. Thanks.
Note X11FLAVOUR default should be discussed in port-alpha@.


>Unformatted:

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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.