[parisc-linux] Turn off CONFIG_PCI

Matthew Wilcox willy@debian.org
Sat, 18 Aug 2001 23:37:00 +0100


On Sat, Aug 18, 2001 at 09:37:06PM +0200, Helge Deller wrote:
> I tested your patch sucessfully on my c3k and my 715/64.
> I've only added a small security check to setup.c to prevent PA2.x machines
> from booting without CONFIG_PCI and to print a small panic-message
> at bootup instead of just HPMC'ing.

> +#ifndef CONFIG_PCI
> +	/* security check: PA2.x processor machines won't detect their main
> +	 * PCI-based devices (screen, serial, SCSI, ...), so it's better to
> +	 * stop them from booting right here. If we would continue we would
> +	 * only get a HPMC without any other information. */
> +	if (boot_cpu_data.cpu_type >= pcxu) { /* >=PA8000 (PCX-U) CPU ? */
> +		/* switch back to PDC console for panic */
> +		pdc_console_restart();
> +		panic("This system will not boot without PCI-support in the kernel !\n");
> +	}
> +#endif

I don't believe this is appropriate.  Cxxx / Jxxx machines use Lasi for
their serial port, so it's theoretically possible to boot one without
CONFIG_PCI.  If the user wants to turn it off, let them.  It's not like
any other architecture does anything like this.

-- 
Revolutions do not require corporate support.