From owner-freebsd-hackers@freebsd.org Sat Mar 3 15:53:28 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2BC1DF46C36 for ; Sat, 3 Mar 2018 15:53:28 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.netplex.net", Issuer "RapidSSL SHA256 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE23E87566 for ; Sat, 3 Mar 2018 15:53:27 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.15.1/8.15.1/NETPLEX) with ESMTP id w23FrK71027892; Sat, 3 Mar 2018 10:53:20 -0500 X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.4.3 (mail.netplex.net [204.213.176.9]); Sat, 03 Mar 2018 10:53:20 -0500 (EST) Date: Sat, 3 Mar 2018 10:53:20 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net Reply-To: Daniel Eischen To: Andre Albsmeier cc: freebsd-hackers@FreeBSD.org Subject: Re: Adding support for MosChip 9912 PCIe (serial/parallel) cards In-Reply-To: <20180303064400.GA27337@bali> Message-ID: References: <20180302061852.GA7887@bali> <20180303064400.GA27337@bali> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2018 15:53:28 -0000 On Sat, 3 Mar 2018, Andre Albsmeier wrote: > On Fri, 02-Mar-2018 at 08:36:40 -0500, Daniel Eischen wrote: >> On Fri, 2 Mar 2018, Andre Albsmeier wrote: >> >>> I have a MosChip 9912 card (PCIe card with 1 parallel and 2 serial >>> ports) sitting here which does not get detected on 11.1. I tried >>> to simply add it to the uart and ppc drivers with >>> >> [ ... ] >> >> Do you try adding similar support to puc_pci_devices[] in >> sys/dev/puc/pucdata.c? > > Just tried that: > > @@ -1204,6 +1204,11 @@ > PUC_PORT_1S1P, 0x10, 4, 0, > }, > > +{ 0x9710, 0x9912, 0xa000, 0x3012, > + "NetMos NM9912 Dual UART and 1284 Printer port", > + DEFAULT_RCLK, > + PUC_PORT_2S1P, 0x10, 4, 0, > +}, > { 0x9710, 0x9865, 0xa000, 0x3012, > "NetMos NM9865 Dual UART and 1284 Printer port", > DEFAULT_RCLK, > > But the results are exactly the same. It also doesn't > matter if puc.ko is loaded at all. Are you sure your subvendor and subdevice are correct? I would add some device_printf()'s in puc_pci.c::puc_pci_match() and boot with/enable bootverbose. Try to see where it's failing. -- DE