From nobody Mon Aug 8 23:27:33 2022 X-Original-To: freebsd-hardware@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M1sn458bMz4YXYS for ; Mon, 8 Aug 2022 23:27:36 +0000 (UTC) (envelope-from klaus.troffob@caliopea.com) Received: from nvme-2020.calyopea.fr (nvme-2020.calyopea.fr [51.255.75.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature ECDSA (P-384)) (Client CN "nvme-2020.calyopea.fr", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M1sn35dssz3L8H for ; Mon, 8 Aug 2022 23:27:35 +0000 (UTC) (envelope-from klaus.troffob@caliopea.com) Received: from submission.calyopea.com (lcs07-lyo-176-188-196-53.sfr.lns.abo.bbox.fr [176.188.196.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "imaps.calyopea.com", Issuer "R3" (verified OK)) by nvme-2020.calyopea.fr (Postfix) with ESMTPS id 82C8118150 for ; Tue, 9 Aug 2022 01:27:34 +0200 (CEST) Received: from local-area-network (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by submission.calyopea.com (Postfix) with ESMTPSA id 32E5E282EA for ; Tue, 9 Aug 2022 01:27:34 +0200 (CEST) Message-ID: <9e9f672e-5568-78b4-4c42-dace8b7174a1@calyopea.com> Date: Tue, 9 Aug 2022 01:27:33 +0200 List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.1 Content-Language: fr To: freebsd-hardware@FreeBSD.org From: klaus.troffob@caliopea.com Subject: puc driver (Oxford Semiconductor Ltd OX16PCI954) not recognized Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4M1sn35dssz3L8H X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=reject) header.from=caliopea.com; spf=pass (mx1.freebsd.org: domain of klaus.troffob@caliopea.com designates 51.255.75.201 as permitted sender) smtp.mailfrom=klaus.troffob@caliopea.com X-Spamd-Result: default: False [-3.80 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[caliopea.com,reject]; R_SPF_ALLOW(-0.20)[+ip4:51.255.75.201/32:c]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FROM_NO_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hardware@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:16276, ipnet:51.254.0.0/15, country:FR]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hardware@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hello I have an old PCI GPS card with an Oxford Semiconductor UART chip on It. This chip should be recognized by the "puc" driver. But the device number is not in the list of recognized chips. from pciconfig: none0@pci0:9:1:0:       class=0x070006 rev=0x00 hdr=0x00 vendor=0x1415 device=0x950c subvendor=0x0000 subdevice=0x0000     vendor     = 'Oxford Semiconductor Ltd'     class      = simple comms     subclass   = UART none1@pci0:9:1:1:       class=0x068000 rev=0x00 hdr=0x00 vendor=0x1415 device=0x9510 subvendor=0x0000 subdevice=0x0000     vendor     = 'Oxford Semiconductor Ltd'     device     = 'OX16PCI954 (Quad 16950 UART) function 1 (Disabled)'     class      = bridge I remember a few years ago having patched /usr/src/sys/dev/puc/pucdata.c and recompiled the kernel to make it works. It was in freebsd 7 ; now, with freebsd 13, I'm sure there must be a more modern way to make this card match the driver . Perhaps "hint" (but devices.hints is mostly for old "isa" things), or recompiling only this kernel driver (but "puc" is already embeded in the kernel: it's seem not possible to unload it to reload a new one). I try to avoid recompiling a patched kernel since it's likely to be changed at next freebsd-update..... Any advice would be appreciated ;-) Thanks.