Bug 57350 - [panic] using old monocrome printer port (IO_LPT3 / 0x3bc)
Summary: [panic] using old monocrome printer port (IO_LPT3 / 0x3bc)
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-29 14:20 UTC by Meyser+bugs.freebsd.org
Modified: 2017-06-27 01:38 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Meyser+bugs.freebsd.org 2003-09-29 14:20:13 UTC
        If I inklude the following lines

        ----------------------------------8<--------------------------------
	# Parallel port
	device         ppc2    at isa? port IO_LPT3
	device         ppbus           # Parallel port bus (required)
        ----------------------------------8<--------------------------------

	in my custoim kernel. The system panics during boot. This happens 
	when normaly the ppc ports are detected.

        ----------------------------------8<--------------------------------
        # Parallel port
        device         ppc1    at isa? port IO_LPT1
        device         ppbus           # Parallel port bus (required)
        device         ppc2    at isa? port IO_LPT2
        device         ppbus           # Parallel port bus (required)
        ----------------------------------8<--------------------------------

	makes no problem, but adding IO_LPT3 traps kernel.

	If I boot with GENERIC kernel I geht the following output
        ----------------------------------8<--------------------------------
	cannot reserve I/O port range
        ----------------------------------8<--------------------------------
	and no LPT port ist detected.

	booting with my old kernel (same kernelconfig)
        ----------------------------------8<--------------------------------
	Copyright (c) 1992-2003 The FreeBSD Project.
	Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
	FreeBSD 4.8-STABLE #8: Fri Jun 20 21:06:01 CEST 2003
    		root@fbsd.intern:/usr/obj/usr/src/sys/RIPPER
	Timecounter "i8254"  frequency 1193182 Hz
	CPU: Pentium/P55C (233.86-MHz 586-class CPU)
  	Origin = "GenuineIntel"  Id = 0x543  Stepping = 3
	Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
	[...]
	ppc0: <Parallel port> at port 0x378-0x37f on isa0
	ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
	lpt0: <Printer> on ppbus0
	lpt0: Polled port
	ppc1: <Parallel port> at port 0x278-0x27f on isa0
	ppc1: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
	ppc1: FIFO with 7/0/5 bytes threshold
	lpt1: <Printer> on ppbus1
	lpt1: Polled port
	ppc2: <Parallel port> at port 0x3bc-0x3bf on isa0
	ppc2: Generic chipset (NIBBLE-only) in COMPATIBLE mode
	ppbus2: IEEE1284 device found /NIBBLE/ECP
	Probing for PnP devices on ppbus2:
	ppbus2: <Hewlett-Packard HP LaserJet 6P> PJL,MLC,PCLXL,PCL
	lpt2: <Printer> on ppbus2
	lpt2: Polled port
        ----------------------------------8<--------------------------------

Fix: 

If memory serves my right, this is caused by trying to reserve an extended
	I/O space (8 instead of 4 Bytes) for LPT3 (0x3bc). I think I had the same problem
	back in 1997 with FreeBSD 2.2.4

	The Fix is to NOT try to reserve this extended I/O space for IP_LPT3
How-To-Repeat: 	Install a monocrome printer card (IO_LPT3,0x3bc) and configure
	your kernel to use it.