From nobody Tue Aug 23 00:31:41 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 4MBVXZ61zsz4b4b0 for ; Tue, 23 Aug 2022 00:31:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MBVXZ5Tb0z44sg; Tue, 23 Aug 2022 00:31:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661214702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F1162wuepV8P1Nkufw3ejnthv5Jfre+6ZiXBM9y3Kwk=; b=E1LJNaKu1DABT8/nqGzVt3vXbDnHFA6/Y+Z5qxz51UOt7bgDh6vzcbZsr4IPrtY5qk45Wa ph7cVUz2UxJp1vKizL7jApH+KZj0dmTUil2enfEwGQG5YLaHYxns0FnRgahBL6UHSfStdE +bKGPvaBI0d7Fg8s9gJKDMIzPjUk7fbj1fWAIWN8zteaqRGk3D8fQ+fcYaU5oajk6WmcCM ro1acJDFqqXNLIwMVNoo1FCCTquoD7UJ2VGp0qJBz2n87mazQ2FxsaeYqTeo5UBk4UWmKB ckrRc35juL6/thPmBoZq/rnis1fOmqY/Bk5DdqKUTx1B0merYNZGaLoxDnATGw== Received: from [10.0.1.4] (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4MBVXZ2bwwzfRl; Tue, 23 Aug 2022 00:31:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <833c5f40-317e-fee1-ec2a-828eba794b19@FreeBSD.org> Date: Mon, 22 Aug 2022 17:31:41 -0700 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 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: puc driver (Oxford Semiconductor Ltd OX16PCI954) not recognized Content-Language: en-US To: klaus.troffob@caliopea.com, freebsd-hardware@FreeBSD.org References: <9e9f672e-5568-78b4-4c42-dace8b7174a1@calyopea.com> From: John Baldwin In-Reply-To: <9e9f672e-5568-78b4-4c42-dace8b7174a1@calyopea.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661214702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F1162wuepV8P1Nkufw3ejnthv5Jfre+6ZiXBM9y3Kwk=; b=jYUR9sEb8Vva62QOeTqurWyR+3yYu319ZaWpHLAaIKef7aqILCKG59OhemLS3N2EqiGe7Y hdD0UkeMhbex7Ngc9uc/ilHcRNcsfVk0mAXnFqVgPS2UpHAxphmK27ysliSoTFA+XzwUxx fVZwQOufKGlV/QraDN1wdUZQuMPuoSHBelojVkXkHrfS5bAHLz2Jv3O4XxxZK1Jpth5imb sMFibhcl1QADfvFqW1rAH30dpzpULSZ/Jui73VYLO7RF9hKAjgmaZ4Q/GDUMdCgstDo74k r/KT4IW2hq5rH9cHxdYy61AQzhPX61GgAQ6CAgUF3QpHrb53fDyF9KIP9Ui+tg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661214702; a=rsa-sha256; cv=none; b=aRs46tmtIBJTLDZmtnhWqpOH+Uj6J4gcHfOLhk15HxJwv0248d/RoKrr+lQeaeHxHNBt9C jLagQctQVk8VBTbffas/dOYqcewq8aGAP/gua1hpPlSRK1wCEGbcXulkQvCHkVmubcy0nw sk7PiIKH4GUH+kNhflJ/hRO+I+pA3xTDzHwwAMa3NaCJJOGN3CvODUQ85iNpbCInBOaIk6 a6oaNPm2hbKtfw4aGFydQ7xRsNf8EtKVWmUgmmIZEPmynZEqHSGx3VFyFOeB6dO26+Bmxp X/KuRTqkWOskQnNuW8aeDda90q6qaP+i7nowJxL5EGQ7sKdW08FKHXnSWcuYig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 8/8/22 4:27 PM, klaus.troffob@caliopea.com wrote: > 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 ;-) It's still a matter of patching pucdata.c. -- John Baldwin