no console with ACPI

John Baldwin jhb at FreeBSD.org
Thu Sep 29 07:41:26 PDT 2005


On Thursday 29 September 2005 05:12 am, Gleb Smirnoff wrote:
>   [ please, keep me in Cc:, I am not subscribed ]
>
> Yesterday I've upgraded a RELENG_5 box to RELENG_6. It is running on
> Epox 8KHA+ mainboard. For a reason unknown to me ACPI was disabled
> on the installation. Once upgraded to RELENG_6 I have tried to enable
> ACPI, but a strange problem arose: when booted with ACPI the box
> did not have console. As soon as kernel boot finished, no new lines
> were printed (but kernel log messages did appear on screen). However,
> the syscons driver seemed to be working: ScrLk switched cursor on/off,
> attempts to switch to another vty produced beeps, Ctrl-Alt-Del rebooted.
>
> This is how boot looks with ACPI (no sc0 in dmesg!):

Known issue unfortunately.

> viapropm0: SMBus I/O base at 0x5000
> viapropm0: SMBus I/O base at 0x5000
> viapropm0: <VIA VT8233 Power Management Unit> port 0x5000-0x500f at device
> 17.0 on pci0 viapropm0: SMBus revision code 0x0
> smbus0: <System Management Bus> on viapropm0
> smb0: <SMBus generic I/O> on smbus0

This chip is also your PCI-ISA bridge, but since viapropm0 probed it, isab 
doesn't probe it so you don't get an isa bus for syscons to attach to.  The 
real fix is that the viapropm(4) driver needs to act like an isab and create 
an isa0 child in addition to an smbus0 child.

Try this patch:

--- //depot/vendor/freebsd/src/sys/pci/viapm.c	2005/05/29 04:45:51
+++ //depot/user/jhb/acpipci/pci/viapm.c	2005/09/29 14:37:52
@@ -39,6 +39,7 @@
 #include <machine/resource.h>
 #include <sys/rman.h>
 
+#include <isa/isavar.h>
 #include <dev/pci/pcivar.h>
 #include <dev/pci/pcireg.h>
 
@@ -369,6 +370,10 @@
 	VIAPM_OUTB(SMBHCTRL, VIAPM_INB(SMBHCTRL) | SMBHCTRL_ENABLE);
 #endif
 
+	/* If this device is a PCI-ISA bridge, then attach an ISA bus. */
+	if ((pci_get_class(dev) == PCIC_BRIDGE) &&
+	    (pci_get_subclass(dev) == PCIS_BRIDGE_ISA))
+		isab_attach(dev);
 	return 0;
 
 error:

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-acpi mailing list