NetBSD Problem Report #55887

From www@netbsd.org  Sun Dec 20 12:25:36 2020
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A69D61A921F
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 20 Dec 2020 12:25:36 +0000 (UTC)
Message-Id: <20201220122534.815E11A9239@mollari.NetBSD.org>
Date: Sun, 20 Dec 2020 12:25:34 +0000 (UTC)
From: jbryn@students.wcpss.net
Reply-To: jbryn@students.wcpss.net
To: gnats-bugs@NetBSD.org
Subject: status of new radeon drm2 on macppc
X-Send-Pr-Version: www-1.0

>Number:         55887
>Category:       port-macppc
>Synopsis:       status of new radeon drm2 on macppc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 20 12:30:00 +0000 2020
>Last-Modified:  Fri Dec 25 19:55:01 +0000 2020
>Originator:     Jackson Bryn
>Release:        
>Organization:
N/A
>Environment:
>Description:
This isn't exactly a bug report, but I would like to document the current state of radeon on macppc so that it doesn't get lost/someone can look at it.

When we implement _bus_dmamap_load_raw from x86, radeon surprisingly works well, but drmkmsfb fails to provide a console:
[     1.000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[     1.000000]     2006, 2007, 200M-2M^^M^MM^Fe=^[^M 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[     1.000000]     2018, 2019, 2020 The NetBSD Foundation, Inc.  All riM-2M^^M^MM^Fe=^[^Merved.
[     1.000000] Copyright (c) 1982, 1986, 1989, 19M-2M^^M^MM^Fe=^[^M
[     1.000000]     The M-2M^^M^MM^Fe=^[^Mof the UM-2M^^M^MM^Fe=^[^MM-2M^^M^MM^Fe=^[^MM-2M^^M^MM^Fe=^[^M  All rights reserved.

[     1.000000] NetBSD 9.99.77 (NURADEON) #6: Fri Dec 18 17:06:41 EST 2020
[     1.000000] 	root@ibook.AAPPLE.foo:/usr/src/sys/arch/macppc/compile/NURADEON
[     1.000000] total memory = 1152 MB
[     1.000000] oea_startup: failed to allocate DEAD ZONE: error=12
[     1.000000] avail memory = 1095 MB
[     1.000000] entropy: no seed from bootloader
[     1.000000] timecounter: Timecounters tick every 10.000 msec
[     1.000000] Kernelized RAIDframe activated
[     1.000000] found openpic PIC at 80040000
[     1.000000] OpenPIC Version 1.2: Supports 4 CPUs and 64 interrupt sources.
[     1.000000] bootpath: /pci@f4000000/ata-6@d/disk@0:0/mactest
[     1.000000] mainbus0 (root)
[     1.000000] cpu0 at mainbus0: 7455 (Revision 3.3), ID 0 (primary)
[     1.000000] cpu0: HID0 0x84d0c1bc<EMCP,TBEN,HIGH_BAT_EN,NAP,DPM,ICE,DCE,XBSEN,SGE,BTIC,LRSTK,FOLD,BHT>, powersave: 1
[     1.000000] cpu0: 614.39 MHz, 256KB L2 cache no parity
[     1.000000] memory0 at mainbus0: len=256
[     1.000000] spdmem0 at memory0
[     1.000000] spdmem0: DDR SDRAM, no parity or ECC, 1GB, 267MHz (PC-2100)
[     1.000000] spdmem0: 13 rows, 11 cols, 2 ranks, 4 banks/chip, 7.5ns cycle time
[     1.000000] spdmem0: tAA-tRCD-tRP-tRAS: 1-3-3-6
[     1.000000] spdmem0: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
[     1.000000] uni_n0 at mainbus0 address 0xf8000000
[     1.000000] hw-clock at uni_n0 not configured
[     1.000000] ki2c0 at uni_n0 address 0xf8001000
[     1.000000] iic0 at ki2c0: I2C bus
[     1.000000] dbcool0 at iic0 addr 0xae
[     1.000000] dbcool0: ADT7467/ADT7468 dBCool(tm) Controller (rev 0x07, stepping 0x01)
[     1.000000] i2c-hwclock at iic0 addr 0xe9 not configured
[     1.000000] cereal at iic0 addr 0xe0 not configured
[     1.000000] uninorth0 at mainbus0
[     1.000000] pci0 at uninorth0 bus 0
[     1.000000] pci0: i/o space, memory space enabled
[     1.000000] pchb0 at pci0 dev 11 function 0
[     1.000000] pchb0: Apple Computer UniNorth AGP Bridge (rev. 0x00)
[     1.000000] radeon0 at pci0 dev 16 function 0: ATI Technologies Radeon Mobility 9200 (M9+) (rev. 0x01)
[     1.000000] uninorth1 at mainbus0
[     1.000000] pci1 at uninorth1 bus 0
[     1.000000] pci1: i/o space, memory space enabled
[     1.000000] pchb1 at pci1 dev 11 function 0
[     1.000000] pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
[     1.000000] bwi0 at pci1 dev 18 function 0: Broadcom Wireless
[     1.000000] bwi0: interrupting at irq 52
[     1.000000] bwi0: BBP id 0x4306, BBP rev 0x2, BBP pkg 0
[     1.000000] bwi0: MAC: rev 4
[     1.000000] bwi0: PHY type 2, rev 1, ver 1
[     1.000000] bwi0: RF manu 0x17f, type 0x2050, rev 2
[     1.000000] bwi0: autoconfiguration error: invalid antenna gain in sprom
[     1.000000] obio0 at pci1 dev 23 function 0: addr 0x80000000
[     1.000000] obio0: enabling Intrepid CPU speed control
[     1.000000] hiclock: 800
[     1.000000] speed: 614397
[     1.000000] zsc0 at obio0 irq 22,23
[     1.000000] zstty0 at zsc0 channel 0
[     1.000000] zstty1 at zsc0 channel 1
[     1.000000] snapper0 at obio0 offset 0x10000: irq 30,1,2
[     1.000000] pmu0 at obio0 offset 0x16000 irq 47:  rev. 12
[     1.000000] pmu0: initializing IIC bus
[     1.000000] iic1 at pmu0: I2C bus
[     1.000000] pmu0: initializing RTC
[     1.000000] pmu0: initializing ADB
[     1.000000] nadb0 at pmu0: Apple Desktop Bus
[     1.000000] pmu0: power-mgt not configured
[     1.000000] smartbat0 at pmu0 addr 0: smart battery
[     1.000000]  flags: 5 AC present
[     1.000000] ki2c1 at obio0
[     1.000000] iic2 at ki2c1: I2C bus
[     1.000000] cereal at iic2 addr 0xe0 not configured
[     1.000000] deq0 at iic2 addr 0x35 Audio Codec (tas3004)
[     1.000000] wdc0 at obio0 offset 0x20000 irq 24, level triggered: DMA transfer
[     1.000000] atabus0 at wdc0 channel 0
[     1.000000] snapper0: codec: TAS3004
[     1.000000] audio0 at snapper0: playback, capture, full duplex
[     1.000000] audio0: slinear_be:16 -> slinear_be:16 2ch 48000Hz, blk 12288 bytes (64ms) for playback
[     1.000000] audio0: slinear_be:16 <- slinear_be:16 2ch 48000Hz, blk 12288 bytes (64ms) for recording
[     1.000000] spkr0 at audio0: PC Speaker (synthesized)
[     1.000000] wsbell at spkr0 not configured
[     1.000000] ohci0 at pci1 dev 24 function 0: Apple Computer Intrepid USB Controller (rev. 0x00)
[     1.000000] ohci0: autoconfiguration error: memory access is disabled
[     1.000000] ohci1 at pci1 dev 25 function 0: Apple Computer Intrepid USB Controller (rev. 0x00)
[     1.000000] ohci1: autoconfiguration error: memory access is disabled
[     1.000000] ohci2 at pci1 dev 26 function 0: Apple Computer Intrepid USB Controller (rev. 0x00)
[     1.000000] ohci2: interrupting at irq 29
[     1.000000] ohci2: OHCI version 1.0, legacy support
[     1.000000] usb0 at ohci2: USB revision 1.0
[     1.000000] ohci3 at pci1 dev 27 function 0: NEC USB Host Controller (rev. 0x43)
[     1.000000] ohci3: interrupting at irq 63
[     1.000000] ohci3: OHCI version 1.0
[     1.000000] usb1 at ohci3: USB revision 1.0
[     1.000000] ohci4 at pci1 dev 27 function 1: NEC USB Host Controller (rev. 0x43)
[     1.000000] ohci4: interrupting at irq 63
[     1.000000] ohci4: OHCI version 1.0
[     1.000000] usb2 at ohci4: USB revision 1.0
[     1.000000] ehci0 at pci1 dev 27 function 2: NEC USB2 Host Controller (rev. 0x04)
[     1.000000] ehci0: interrupting at irq 63
[     1.000000] ehci0: EHCI version 1.0
[     1.000000] ehci0: 2 companion controllers, 3 ports each: ohci3 ohci4
[     1.000000] usb3 at ehci0: USB revision 2.0
[     1.000000] uninorth2 at mainbus0
[     1.000000] pci2 at uninorth2 bus 0
[     1.000000] pci2: i/o space, memory space enabled
[     1.000000] pchb2 at pci2 dev 11 function 0
[     1.000000] pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
[     1.000000] wdc1 at pci2 dev 13 function 0: interrupting at irq 39
[     1.000000] atabus1 at wdc1 channel 0
[     1.000000] fwohci0 at pci2 dev 14 function 0: Apple Computer UniNorth Firewire (rev. 0x81)
[     1.000000] fwohci0: interrupting at irq 40
[     1.000000] fwohci0: OHCI version 1.10 (ROM=0)
[     1.000000] fwohci0: No. of Isochronous channels is 8.
[     1.000000] fwohci0: EUI64 00:0d:93:ff:fe:67:38:c6
[     1.000000] fwohci0: Phy 1394a available S400, 1 ports.
[     1.000000] fwohci0: Link S400, max_rec 2048 bytes.
[     1.000000] ieee1394if0 at fwohci0: IEEE1394 bus
[     1.000000] fwip0 at ieee1394if0: IP over IEEE1394
[     1.000000] fwohci0: Initiate bus reset
[     1.000000] fwohci0: Clear PME# now
[     1.000000] gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x80)
[     1.000000] gem0: interrupting at irq 41
[     1.000000] bmtphy0 at gem0 phy 0: BCM5221 10/100 media interface, rev. 4
[     1.000000] bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[     1.000000] gem0: Ethernet address 00:0d:93:67:38:c6, 10KB RX fifo, 4KB TX fifo
[     1.000000] vmmask 737c0000 schedmask 7ffc0000 highmask 7ffc0000
[     1.000000] entropy: WARNING: extracting entropy too early
[     1.000000] timecounter: Timecounter "mftb" frequency 18432000 Hz quality 100
[     1.000031] fwohci0: BUS reset
[     1.000031] fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode
[     1.000031] ieee1394if0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me)
[     1.000031] ieee1394if0: bus manager 0
[     1.000031] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
[     1.659979] uhub0 at usb0: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[     1.659979] uhub0: 2 ports with 2 removable, self powered
[     1.659979] uhub1 at usb1: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[     1.659979] uhub1: 3 ports with 3 removable, self powered
[     1.659979] uhub2 at usb2: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[     1.659979] uhub2: 2 ports with 2 removable, self powered
[     1.659979] uhub3 at usb3: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
[     1.659979] uhub3: 5 ports with 5 removable, self powered
[     1.659979] atapibus0 at atabus0: 2 targets
[     2.209983] cd0 at atapibus0 drive 0: <MATSHITACD-RW  CW-8123, , CA0T> cdrom removable
[     2.209983] cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
[     2.209983] cd0(wdc0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
[     2.209983] IPsec: Initialized Security Association Processing.
[     2.320016] aes: BearSSL aes_ct
[     2.320016] aes_ccm: self-test passed
[     2.320016] chacha: Portable C ChaCha
[     2.320016] blake2s: self-test passed
[     2.320016] adbkbd0 at nadb0 addr 2: PowerBook G3 keyboard
[     2.320016] wskbd0 at adbkbd0 mux 1
[     2.320016] wsmouse0 at adbkbd0 mux 0
[     2.320016] adbms0 at nadb0 addr 3: AC Power: AC adapter online.
[     2.749999] EMP trackpad <tpad> 4-button, 400 dpi
[     2.809984] wsmouse1 at adbms0 mux 0
[     2.809984] adbbt0 at nadb0 addr 7: button device
[     5.979983] wd0 at atabus1 drive 0
[     5.979983] wd0: <TOSHIBA MK8026GAX>
[     5.979983] wd0: drive supports 16-sector PIO transfers, LBA addressing
[     5.979983] wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
[     6.549984] wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
[     6.549984] wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) (using DMA)
[     6.559989] swwdog0: software watchdog initialized
[     6.660003] WARNING: 3 errors while detecting hardware; check system log.
[     6.660003] boot device: wd0
[     6.660003] root on wd0a dumps on wd0b
[     6.979986] root file system type: ffs
[     6.979986] kern.module.path=/stand/macppc/9.99.77/modules
[     6.979986] kern info: [drm] initializing kernel modesetting (RV280 0x1002:0x5C63 0x1002:0x5C63).
[     6.979986] kern info: [drm] register mmio base: 0x90000000
[     6.979986] kern info: [drm] register mmio size: 65536
[     6.979986] kern error: [drm:(../../../../external/bsd/drm2/dist/drm/radeon/radeon_bios.c:724)radeon_get_bios] *ERROR* Unable to locate a BIOS ROM
[     6.979986] kern info: [drm] Using generic clock info
[     6.979986] kern error: [drm:(../../../../external/bsd/drm2/dist/drm/radeon/radeon_agp.c:146)radeon_agp_init] *ERROR* Unable to acquire AGP: -19
[     6.979986] kern info: [drm] Forcing AGP to PCI mode
[     6.979986] kern info: [drm] Generation 2 PCI interface, using max accessible memory
[     6.979986] radeon0: info: VRAM: 128M 0x0000000098000000 - 0x000000009FFFFFFF (32M used)
[     6.979986] radeon0: info: GTT: 512M 0x0000000078000000 - 0x0000000097FFFFFF
[     6.979986] kern info: [drm] Detected VRAM RAM=80M, BAR=128M
[     6.979986] kern info: [drm] RAM width 64bits DDR
[     6.979986] Zone  kernel: Available graphics memory: 408898 kiB
[     6.979986] kern info: [drm] radeon: 32M of VRAM memory ready
[     6.979986] kern info: [drm] radeon: 512M of GTT memory ready.
[     6.979986] kern info: [drm] GART: num cpu pages 131072, num gpu pages 131072
[     7.790415] kern info: [drm] PCI GART of 512M enabled (table at 0x000000001027C000).
[     7.790415] radeon0: info: WB disabled
[     7.790415] radeon0: info: fence driver on ring 0 use gpu addr 0x0000000078000000 and cpu addr 0x0x47708000
[     7.790415] kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[     7.790415] kern info: [drm] Driver supports precise vblank timestamp query.
[     7.790415] radeon0: interrupting at irq 48 (radeon0)
[     7.790415] kern info: [drm] radeon: irq initialized.
[     7.790415] kern info: [drm] Loading R200 Microcode
[     8.739993] kern error: radeon_cp: Failed to load firmware "radeon/R200_cp.bin"
[     8.739993] kern error: [drm:(../../../../external/bsd/drm2/dist/drm/radeon/radeon_r100.c:1147)r100_cp_init] *ERROR* Failed to load firmware!
[     8.739993] radeon0: autoconfiguration error: error: failed initializing CP (-2).
[     8.739993] radeon0: autoconfiguration error: error: Disabling GPU acceleration
[     8.739993] kern info: [drm] radeon: cp finalized
[     9.250126] kern info: [drm] Connector Table: 1 (generic)
[     9.250126] kern info: [drm] No panel info found in BIOS
[     9.250126] kern info: [drm] Panel info derived from registers
[     9.250126] kern info: [drm] Panel Size 1024x768
[     9.250126] kern info: [drm] No TV DAC info found in BIOS
[     9.250126] kern info: [drm] Radeon Display Connectors
[     9.250126] kern info: [drm] Connector 0:
[     9.250126] kern info: [drm]   LVDS-1
[     9.250126] kern info: [drm]   Encoders:
[     9.250126] kern info: [drm]     LCD1: INTERNAL_LVDS
[     9.250126] kern info: [drm] Connector 1:
[     9.250126] kern info: [drm]   VGA-1
[     9.250126] kern info: [drm]   DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
[     9.250126] kern info: [drm]   Encoders:
[     9.250126] kern info: [drm]     CRT1: INTERNAL_DAC1
[     9.250126] kern info: [drm] Connector 2:
[     9.250126] kern info: [drm]   SVIDEO-1
[     9.250126] kern info: [drm]   Encoders:
[     9.250126] kern info: [drm]     TV1: INTERNAL_DAC2
[    10.550004] radeondrmkmsfb0 at radeon0
[    10.550004] radeondrmkmsfb0: framebuffer at 0x98040000, size 1024x768, depth 8, stride 1024
[    11.110004] warning: ../../../../external/bsd/drm2/dist/drm/radeon/radeon_r100.c:714: Can't enable IRQ/MSI because no handler is installed
[    11.470006] wsdisplay0 at radeondrmkmsfb0 kbdmux 1
[    11.470006] wsmux1: connecting to wsdisplay0
[    11.470006] wskbd0: connecting to wsdisplay0
[    11.950008] panic: cnopen: no console device

The drmkmsfb object is created, but no console along with it, hence the crash.
Note that this is with just "wsdisplay* at wsemuldisplaydev? console ?." If we add in the "make sure the console display is always wsdisplay0" hack, it gets assigned to wsdisplay1 rather.
jackllsch suggests it might be something in the ofw? handling of console devices but we can't dissect.

Next part of the plan would be to test fb glitches + X then port pmap tracking to powerpc. ;)
>How-To-Repeat:

>Fix:

>Audit-Trail:
From: Jackson Bryn _ Student - WakefieldHS <jbryn@students.wcpss.net>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: port-macppc/55887
Date: Wed, 23 Dec 2020 17:01:26 +0000

 --_000_BLAPR16MB36832B186FC05725E05EB1A996DE0BLAPR16MB3683namp_
 Content-Type: text/plain; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable

 OK, so this is what needs to be done for the bootup to get past console:
 radeondrmkmsfb is a subdevice. In macppc land this means that is_console wo=
 n't be properly set. So do a check if the device is a "radeondrmkmsfb" in t=
 he ofw autoconf and then set is_console if so.
 Then to avoid the wsdisplay assignment issue, avoid setting is_console in c=
 opy_disp_props if the device is a "radeon." (For safety measures, we can sk=
 ip copy_disp_props if the device is a "radeondrmkmsfb" even though it won't=
  have an OFW node unlike "radeon.")

 This gets us far to the point that radeondrmkmsfb will now open up console!=
  However, it is not much, as we get a blank screen shortly after due to the=
  driver somehow not being able to get the CRTC clock from the selected disp=
 lay mode. This is probably with how it hates the laptop panel? If I plugged=
  in a TV cable maybe I would get something.

 --_000_BLAPR16MB36832B186FC05725E05EB1A996DE0BLAPR16MB3683namp_
 Content-Type: text/html; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable

 <html>
 <head>
 <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
 1">
 <style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
 ttom:0;} </style>
 </head>
 <body dir=3D"ltr">
 <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
 : 12pt; color: rgb(0, 0, 0);">
 OK, so this is what needs to be done for the bootup to get past console:</d=
 iv>
 <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
 : 12pt; color: rgb(0, 0, 0);">
 radeondrmkmsfb is a subdevice. In macppc land this means that is_console wo=
 n't be properly set. So do a check if the device is a &quot;radeondrmkmsfb&=
 quot; in the ofw autoconf and then set is_console if so.</div>
 <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
 : 12pt; color: rgb(0, 0, 0);">
 Then to avoid the wsdisplay assignment issue, avoid setting is_console in c=
 opy_disp_props if the device is a &quot;radeon.&quot; (For safety measures,=
  we can skip copy_disp_props if the device is a &quot;radeondrmkmsfb&quot; =
 even though it won't have an OFW node unlike &quot;radeon.&quot;)</div>
 <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
 : 12pt; color: rgb(0, 0, 0);">
 <br>
 </div>
 <div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
 : 12pt; color: rgb(0, 0, 0);">
 This gets us far to the point that radeondrmkmsfb will now open up console!=
  However, it is not much, as we get a blank screen shortly after due to the=
  driver somehow not being able to get the CRTC clock from the selected disp=
 lay mode. This is probably with
  how it hates the laptop panel? If I plugged in a TV cable maybe I would ge=
 t something.</div>
 </body>
 </html>

 --_000_BLAPR16MB36832B186FC05725E05EB1A996DE0BLAPR16MB3683namp_--

From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@netbsd.org
Cc: port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org, jbryn@students.wcpss.net
Subject: re: port-macppc/55887
Date: Thu, 24 Dec 2020 16:25:28 +1100

 FWIW, the r100 and r200 code in radeondrmkms only works
 for some of the chipsets and does not for others. :(

 see eg PR#49744.  but ... you may have already had to
 force-enable this code in that case?  i thought it was
 disabled for basically all < r300.


 .mrg.

From: Michael <macallan@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-macppc/55887: status of new radeon drm2 on macppc
Date: Fri, 25 Dec 2020 14:53:16 -0500

 > The drmkmsfb object is created, but no console along with it, hence
 > the crash. Note that this is with just "wsdisplay* at
 > wsemuldisplaydev? console ?." If we add in the "make sure the console
 > display is always wsdisplay0" hack, it gets assigned to wsdisplay1
 > rather.

 There's code in macppc/machdep.c to set the 'is_console' property on
 whatever is the OF console, just having radeondrmkmsfb copy it from its
 parent should do the trick.

 have fun
 Michael

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.