Bug 142157 - [ppc] [puc] Don't find Printer port at "NetMos NM9835 Dual UART and 1284 Printer port" extended card at FreeBSD 8.0
Summary: [ppc] [puc] Don't find Printer port at "NetMos NM9835 Dual UART and 1284 Prin...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 8.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-30 05:50 UTC by mail_of_sergey
Modified: 2017-12-31 22:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mail_of_sergey 2009-12-30 05:50:01 UTC
Printer port at NetMos NM9835 Dual UART and 1284 Printer port not
detected nor interrupt-driven method nor polled method.

Serial ports is working fine.

Fragment of dmesg is:
Dec 29 17:28:34 acc kernel: puc0: <NetMos NM9835 Dual UART and 1284 Printer port> port 0x1070-0x1077,0x1068-0x106f,0x1060-0x1067,0x1058-0x105f,0x1050-0x1057,0x1040-0x104f irq 16 at device 0.0 on pci4
Dec 29 17:28:34 acc kernel: puc0: [FILTER]
Dec 29 17:28:34 acc kernel: uart2: <Non-standard ns8250 class UART with FIFOs> on puc0
Dec 29 17:28:34 acc kernel: uart2: [FILTER]
Dec 29 17:28:34 acc kernel: uart3: <Non-standard ns8250 class UART with FIFOs> on puc0
Dec 29 17:28:34 acc kernel: uart3: [FILTER]
Dec 29 17:28:34 acc kernel: ppc1: <Parallel port> on puc0
Dec 29 17:28:34 acc kernel: ppc1: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
Dec 29 17:28:34 acc kernel: device_attach: ppc1 attach returned 6

Dec 29 17:28:34 acc kernel: ppc0: parallel port not found.

How-To-Repeat: Problem is repeated always.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-01-03 19:29:36 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-bugs

This may not be i386-specific.
Comment 2 kuzvesov 2011-12-21 04:19:44 UTC
I confirm the problem in 8.2-RELEASE amd64. 

Driver fails to register interrupt handler.

puc0: <NetMos NM9835 Dual UART and 1284 Printer port> port 0xa000-0xa007,0xa400-0xa407,0xa800-0xa807,0xac00-0xac07,0xb000-0xb007,0xb400-0xb40f irq 20 at device 0.0 on pci4
puc0: Reserved 0x8 bytes for rid 0x10 type 4 at 0xa000
puc0: Reserved 0x8 bytes for rid 0x14 type 4 at 0xa400
puc0: Reserved 0x8 bytes for rid 0x18 type 4 at 0xa800
ioapic0: routing intpin 20 (PCI IRQ 20) to lapic 0 vector 51
puc0: [FILTER]
uart1: <Non-standard ns8250 class UART with FIFOs> on puc0
uart1: [FILTER]
uart1: fast interrupt
uart2: <Non-standard ns8250 class UART with FIFOs> on puc0
uart2: [FILTER]
uart2: fast interrupt
ppc1: using extended I/O port range
ppc1: SPP ECP  ECP+EPP
ppc1: <Parallel port> on puc0
ppc1: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc1: FIFO with 16/16/12 bytes threshold
ppc1: failed to register interrupt handler: 6
device_attach: ppc1 attach returned 6

While the built-in parallel port works fine:

ppc0: using extended I/O port range
ppc0: SPP ECP  ECP+EPP
ppc0: <Parallel port> port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ioapic0: routing intpin 7 (ISA IRQ 7) to lapic 0 vector 54
ppc0: [MPSAFE]
ppc0: [ITHREAD]
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: [MPSAFE]
lpt0: [ITHREAD]
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0

#uname -a
FreeBSD host.ru 8.2-RELEASE FreeBSD 8.2-RELEASE #9: Wed Dec 21 09:23:04 2011     root@host.ru:/usr/obj/usr/src/sys/MYKERNEL  amd64

#grep -v "^[#]" /usr/src/sys/amd64/conf/MYKERNEL | grep -v ^$
cpu		HAMMER
ident		MYKERNEL
makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
makeoptions	MODULES_OVERRIDE="zfs opensolaris ahci accf_http accf_data ipfilter pps linux"
options 	SCHED_ULE		# ULE scheduler
options 	PREEMPTION		# Enable kernel thread preemption
options 	INET			# InterNETworking
options 	INET6			# IPv6 communications protocols
options 	SCTP			# Stream Control Transmission Protocol
options 	FFS			# Berkeley Fast Filesystem
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_ACL			# Support for access control lists
options 	UFS_DIRHASH		# Improve performance on big directories
options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
options 	MD_ROOT			# MD is a potential root device
options 	NFSCLIENT		# Network Filesystem Client
options 	NFSSERVER		# Network Filesystem Server
options 	NFSLOCKD		# Network Lock Manager
options 	NFS_ROOT		# NFS usable as /, requires NFSCLIENT
options 	MSDOSFS			# MSDOS Filesystem
options 	CD9660			# ISO 9660 Filesystem
options 	PROCFS			# Process filesystem (requires PSEUDOFS)
options 	PSEUDOFS		# Pseudo-filesystem framework
options 	GEOM_PART_GPT		# GUID Partition Tables.
options 	GEOM_LABEL		# Provides labelization
options 	COMPAT_43TTY		# BSD 4.3 TTY compat (sgtty)
options 	COMPAT_FREEBSD32	# Compatible with i386 binaries
options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
options 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
options 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
options 	KTRACE			# ktrace(1) support
options 	STACK			# stack(9) support
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
options 	P1003_1B_SEMAPHORES	# POSIX-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
options 	AUDIT			# Security event auditing
options 	MAC			# TrustedBSD MAC Framework
options 	FLOWTABLE		# per-cpu routing cache
options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
options 	KDB			# Kernel debugger related code
options 	KDB_TRACE		# Print a stack trace for a panic
options 	SMP			# Symmetric MultiProcessor Kernel
options		IPFIREWALL
options		IPFIREWALL_FORWARD	# packet destination changes
device		cpufreq
device		acpi
device		pci
device		ata
device		atadisk		# ATA disk drives
device		ataraid		# ATA RAID drives
device		atapicd		# ATAPI CDROM drives
options 	ATA_STATIC_ID	# Static device numbering
device		scbus		# SCSI bus (required for SCSI)
device		da		# Direct Access (disks)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse
device		kbdmux		# keyboard multiplexer
device		vga		# VGA video card driver
device		splash		# Splash screen and screen saver support
device		sc
device		uart		# Generic UART driver
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		ppi		# Parallel port interface device
device		puc
device		miibus		# MII bus support
device		re		# RealTek 8139C+/8169/8169S/8110S
device		rl		# RealTek 8129/8139
device		loop		# Network loopback
device		random		# Entropy device
device		ether		# Ethernet support
device		vlan		# 802.1Q VLAN support
device		tun		# Packet tunnel.
device		pty		# BSD-style compatibility pseudo ttys
device		md		# Memory "disks"
device		gif		# IPv6 and IPv4 tunneling
device		faith		# IPv6-to-IPv4 relaying (translation)
device		firmware	# firmware assist module
device		bpf		# Berkeley packet filter

#pciconf -lv
hostb0@pci0:0:0:0:	class=0x060000 card=0x50001458 chip=0x29a08086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel P965/G965 Processor to I/O Controller (?(82P965))'
    class      = bridge
    subclass   = HOST-PCI
none0@pci0:0:3:0:	class=0x078000 card=0x29a41458 chip=0x29a48086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'The Intel Management Engine provides thermal management for Intel Desktop Boards. (Intel DG965SS)'
    class      = simple comms
none1@pci0:0:26:0:	class=0x0c0300 card=0x50041458 chip=0x28348086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB UHCI *4'
    class      = serial bus
    subclass   = USB
none2@pci0:0:26:1:	class=0x0c0300 card=0x50041458 chip=0x28358086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB UHCI *5'
    class      = serial bus
    subclass   = USB
none3@pci0:0:26:7:	class=0x0c0320 card=0x50061458 chip=0x283a8086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'ICH8 Enhanced USB2 Enhanced Host Controller (81EC1043 (?))'
    class      = serial bus
    subclass   = USB
pcib1@pci0:0:28:0:	class=0x060400 card=0x50011458 chip=0x283f8086 rev=0x02 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) PCIe Port 1'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:3:	class=0x060400 card=0x50011458 chip=0x28458086 rev=0x02 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) PCIe Port 4'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:28:4:	class=0x060400 card=0x50011458 chip=0x28478086 rev=0x02 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) PCIe Port 5'
    class      = bridge
    subclass   = PCI-PCI
none4@pci0:0:29:0:	class=0x0c0300 card=0x50041458 chip=0x28308086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB UHCI *1'
    class      = serial bus
    subclass   = USB
none5@pci0:0:29:1:	class=0x0c0300 card=0x50041458 chip=0x28318086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB UHCI *2'
    class      = serial bus
    subclass   = USB
none6@pci0:0:29:2:	class=0x0c0300 card=0x50041458 chip=0x28328086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB UHCI *3'
    class      = serial bus
    subclass   = USB
none7@pci0:0:29:7:	class=0x0c0320 card=0x50061458 chip=0x28368086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB2 EHCI *1'
    class      = serial bus
    subclass   = USB
pcib4@pci0:0:30:0:	class=0x060401 card=0x50001458 chip=0x244e8086 rev=0xf2 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801 Family (ICH2/3/4/5/6/7/8/9,63xxESB) Hub Interface to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:	class=0x060100 card=0x50011458 chip=0x28108086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801HB/HR (ICH8/R) LPC Interface Controller'
    class      = bridge
    subclass   = PCI-ISA
ahci1@pci0:0:31:2:	class=0x010601 card=0xb0051458 chip=0x28248086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801HR/HO/HH (ICH8R/DO/DH) SATA AHCI Controller'
    class      = mass storage
    subclass   = SATA
none8@pci0:0:31:3:	class=0x0c0500 card=0x50011458 chip=0x283e8086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'SM Bus Controller (PCIVEN_8086&DEV_283E&SUBSYS_FF641179&REV_033&B1B)'
    class      = serial bus
    subclass   = SMBus
ahci0@pci0:2:0:0:	class=0x010601 card=0xb0001458 chip=0x2363197b rev=0x02 hdr=0x00
    vendor     = 'JMicron Technology Corp.'
    device     = 'JMicron JMB362/JMB363 AHCI Controller (JMB36X)'
    class      = mass storage
    subclass   = SATA
atapci0@pci0:2:0:1:	class=0x010185 card=0xb0001458 chip=0x2363197b rev=0x02 hdr=0x00
    vendor     = 'JMicron Technology Corp.'
    device     = 'JMicron JMB362/JMB363 AHCI Controller (JMB36X)'
    class      = mass storage
    subclass   = ATA
none9@pci0:3:0:0:	class=0x020000 card=0xe0001458 chip=0x436411ab rev=0x12 hdr=0x00
    vendor     = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
    device     = 'Yukon PCI-E Gigabit Ethernet Controller (88E8056)'
    class      = network
    subclass   = ethernet
puc0@pci0:4:0:0:	class=0x078000 card=0x00121000 chip=0x98359710 rev=0x01 hdr=0x00
    vendor     = 'MosChip Semiconductors (Was: Netmos Technology)'
    device     = 'Nm9835 Parallel/Serial Port Adapter'
    class      = simple comms
rl0@pci0:4:1:0:	class=0x020000 card=0x813911f6 chip=0x813910ec rev=0x10 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'Realtek RTL8139 Family PCI Fast Ethernet NIC (RTL-8139/8139C/8139D)'
    class      = network
    subclass   = ethernet
re0@pci0:4:2:0:	class=0x020000 card=0x43001186 chip=0x43001186 rev=0x10 hdr=0x00
    vendor     = 'D-Link System Inc'
    device     = 'Used on DGE-528T Gigabit adaptor (dlg10086)'
    class      = network
    subclass   = ethernet
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:10 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped