NetBSD-Users archive

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

Re: GOP and using monitor



On Tue, 5 Oct 2021, Riza Dindir wrote:

[Tue Oct  5 18:26:58 UTC 2021] genfb0 at pci0 dev 1 function 0: vendor 1002 product 1309 (rev. 0x00)
[Tue Oct  5 18:26:58 UTC 2021] genfb0: framebuffer at 0xe0000000, size 1366x768, depth 32, stride 5632
[Tue Oct  5 18:26:58 UTC 2021] genfb0: shadow framebuffer enabled, size 4224 KB
[Tue Oct  5 18:26:58 UTC 2021] wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
[Tue Oct  5 18:26:58 UTC 2021] drm at genfb0 not configured
[Tue Oct  5 18:26:58 UTC 2021] genfb1 at pci1 dev 0 function 0: vendor 1002 product 6604 (rev. 0x00)
[Tue Oct  5 18:26:58 UTC 2021] genfb1 at pci0 dev 1 function 0: vendor 1002 product 1309 (rev. 0x00)
[Tue Oct  5 18:26:58 UTC 2021] genfb1: framebuffer at 0xe0000000, size 1366x768, depth 32, stride 5632
[Tue Oct  5 18:26:58 UTC 2021] genfb1: shadow framebuffer enabled, size 4224 KB
[Tue Oct  5 18:26:58 UTC 2021] wsdisplay0 at genfb1 kbdmux 1: console (default, vt100 emulation), using wskbd0
[Tue Oct  5 18:26:58 UTC 2021] drm at genfb1 not configured
[Tue Oct  5 18:26:58 UTC 2021] genfb0 at pci1 dev 0 function 0: vendor 1002 product 6604 (rev. 0x00)


This is a mess: looks like both genfb0 and genfb1 have attached to
pci0 dev 1 function 0: vendor 1002 product 1309.

Put back the original GENERIC config file, then compile a new kernel
with this patch:

---START PATCH---
--- sys/dev/pci/genfb_pci.c.orig	2016-07-07 06:55:41.000000000 +0000
+++ sys/dev/pci/genfb_pci.c	2021-10-06 07:07:49.948384764 +0000
@@ -83,6 +83,11 @@
 	if (genfb_is_console())
 		matchlvl = 5;	/* beat VGA */

+	/* XXX: HACK */
+	if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_ATI &&
+	    PCI_PRODUCT(pa->pa_id) == 0x1309)
+		return 0;	/* skip AMD/ATI Kaveri [Radeon R6/R7 Graphics]
+
 	if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_APPLE &&
 	    PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_APPLE_CONTROL)
 		return matchlvl;
---END PATCH---

You should, hopefully, get output on the external monitor _if_ that
VGA connector is attached to the other ATI card.

-RVP


Home | Main Index | Thread Index | Old Index