From owner-freebsd-hackers@freebsd.org Sun Nov 3 04:23:32 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8E4241A5728 for ; Sun, 3 Nov 2019 04:23:32 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [45.55.20.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 475N8g44rCz4cyk for ; Sun, 3 Nov 2019 04:23:31 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from localhost ([127.0.0.1] helo=id.bluezbox.com) by id.bluezbox.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92 (FreeBSD)) (envelope-from ) id 1iR7QA-000D1F-Jl; Sat, 02 Nov 2019 21:23:23 -0700 Received: (from gonzo@localhost) by id.bluezbox.com (8.15.2/8.15.2/Submit) id xA34NLpn050048; Sat, 2 Nov 2019 21:23:21 -0700 (PDT) (envelope-from gonzo@bluezbox.com) X-Authentication-Warning: id.bluezbox.com: gonzo set sender to gonzo@bluezbox.com using -f Date: Sat, 2 Nov 2019 21:23:21 -0700 From: Oleksandr Tymoshenko To: Milan Obuch Cc: freebsd-hackers@freebsd.org, Oliver Pinter Subject: Re: UART driver as kld - how? Message-ID: <20191103042321.GA49790@bluezbox.com> References: <20191027214209.712d62ca@zeta.dino.sk> <20191027232956.28b11772@zeta.dino.sk> <20191028191005.GA89835@bluezbox.com> <20191028201952.20a92307@zeta.dino.sk> <20191102214100.500ba493@zeta.dino.sk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191102214100.500ba493@zeta.dino.sk> X-Operating-System: FreeBSD/11.2-RELEASE-p10 (amd64) User-Agent: Mutt/1.12.1 (2019-06-15) X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Milan Obuch (freebsd-hackers@dino.sk) wrote: > On Mon, 28 Oct 2019 20:19:52 +0100 > Milan Obuch wrote: > > [ snip ] > > > Hi, > > > > I found uart_dev_snps.c being somewhat n [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Rspamd-Queue-Id: 475N8g44rCz4cyk X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of gonzo@bluezbox.com designates 45.55.20.155 as permitted sender) smtp.mailfrom=gonzo@bluezbox.com X-Spamd-Result: default: False [-3.49 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[bluezbox.com]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-2.19)[ip: (-8.62), ipnet: 45.55.0.0/19(-4.19), asn: 14061(1.91), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:14061, ipnet:45.55.0.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Nov 2019 04:23:32 -0000 Milan Obuch (freebsd-hackers@dino.sk) wrote: > On Mon, 28 Oct 2019 20:19:52 +0100 > Milan Obuch wrote: > > [ snip ] > > > Hi, > > > > I found uart_dev_snps.c being somewhat near what I need. I am trying > > to extract necessary bits from this and other files (what you wrote is > > just one bit), it seems our docs are lacking in this area. > > > > Regards, > > Milan > > > > After studying other uart_dev_xxx.c files I am able to create working > skeleton uart driver. I can compile it, kldload, and get some console > output. Right now, I hit another problem - uart framework is not > documented well, at least no man page is found in share/man directory. > > My probe function is similar to that in uart_dev_snps.c file, > simplified, and I need to know what arguments should uart_bus_probe > function be invoked with. In many device drivers there are mostly > zeros, but this does not work for me. > > Currently I am getting error 6, ENXIO, so I am not correctly attaching > my driver to device. Putting some printf here and there, I found test > at line 508, file uart_core.c, fails - sc->sc_class is null. Question > is, now, where and how should this field in this structure be > initialized... > > I am sure I need docs/description for other functions as well, so if > anybody knows where good uart framework description could be found, > please advice. Or if somebody already has good understanding of it and > could help me with my issues, it wil be greatly appreciated. if you follow uart_dev_snsps.c template, the sc_class is set in probe function: uart_class = (struct uart_class *)ofw_bus_search_compatible(dev, compat_data)->ocd_data; if (uart_class == NULL) return (ENXIO); freq = 0; sc = device_get_softc(dev); sc->ns8250.base.sc_class = uart_class; ocd_data is the second element in your compat_data var: static struct ofw_compat_data compat_data[] = { { "snps,dw-apb-uart", (uintptr_t)&uart_snps_class }, { "marvell,armada-38x-uart", (uintptr_t)&uart_snps_class }, { NULL, (uintptr_t)NULL } }; Every uart_dev_ driver has its own softc structure (device-specific data associated with the device instance): struct uart_pl011_softc, struct snps_softc. uart_core operates with uart_softc. Device-specific softc is supposed to have uart_softc variable as the very first member: struct uart_pl011_softc { struct uart_softc base; uint16_t imsc; /* Interrupt mask */ }; This way it can be converted to uart_softc by a pointer cast. Poor man's OOP so to say. In your case, my guess would be: you either do not set the sc_class member var in probe function or your base var is not the first in the struct. -- gonzo From owner-freebsd-hackers@freebsd.org Sun Nov 3 12:01:23 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 098A81B257C for ; Sun, 3 Nov 2019 12:01:23 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 475ZJx6P8mz43gs for ; Sun, 3 Nov 2019 12:01:21 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Sun, 03 Nov 2019 13:01:18 +0100 id 00F407DE.5DBEC18E.000122B0 Date: Sun, 3 Nov 2019 13:01:18 +0100 From: Milan Obuch To: Oleksandr Tymoshenko Cc: freebsd-hackers@freebsd.org, Oliver Pinter Subject: Re: UART driver as kld - how? Message-ID: <20191103130118.36fa6eec@zeta.dino.sk> In-Reply-To: <20191103042321.GA49790@bluezbox.com> References: <20191027214209.712d62ca@zeta.dino.sk> <20191027232956.28b11772@zeta.dino.sk> <20191028191005.GA89835@bluezbox.com> <20191028201952.20a92307@zeta.dino.sk> <20191102214100.500ba493@zeta.dino.sk> <20191103042321.GA49790@bluezbox.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i386-portbld-freebsd11.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 475ZJx6P8mz43gs X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-hackers@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-hackers@dino.sk X-Spamd-Result: default: False [-4.17 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dino.sk]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[72.65.245.84.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.87)[ip: (-8.04), ipnet: 84.245.64.0/18(-4.02), asn: 16160(-2.35), country: SK(0.08)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:16160, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Nov 2019 12:01:23 -0000 On Sat, 2 Nov 2019 21:23:21 -0700 Oleksandr Tymoshenko wrote: > Milan Obuch (freebsd-hackers@dino.sk) wrote: [ snip ] > > After studying other uart_dev_xxx.c files I am able to create > > working skeleton uart driver. I can compile it, kldload, and get > > some console output. Right now, I hit another problem - uart > > framework is not documented well, at least no man page is found in > > share/man directory. > > > > My probe function is similar to that in uart_dev_snps.c file, > > simplified, and I need to know what arguments should uart_bus_probe > > function be invoked with. In many device drivers there are mostly > > zeros, but this does not work for me. > > > > Currently I am getting error 6, ENXIO, so I am not correctly > > attaching my driver to device. Putting some printf here and there, > > I found test at line 508, file uart_core.c, fails - sc->sc_class is > > null. Question is, now, where and how should this field in this > > structure be initialized... > > > > I am sure I need docs/description for other functions as well, so if > > anybody knows where good uart framework description could be found, > > please advice. Or if somebody already has good understanding of it > > and could help me with my issues, it wil be greatly appreciated. > > if you follow uart_dev_snsps.c template, the sc_class is set in > probe function: > > uart_class = (struct uart_class > *)ofw_bus_search_compatible(dev, compat_data)->ocd_data; > if (uart_class == NULL) > return (ENXIO); > > freq = 0; > sc = device_get_softc(dev); > sc->ns8250.base.sc_class = uart_class; > *facepalm* I totally overlooked the obvious... yes, you are right. [ snip ] > In your case, my guess would be: you either do not set the sc_class > member var in probe function or your base var is not the first in the > struct. > Back to testing... probe function now does work, so I am going to analyze what should be done in attach... and why I am getting now panic... I'll write again when I find another obstacle I do not understand or I have working driver, whatever comes first :) Regards, Milan From owner-freebsd-hackers@freebsd.org Sun Nov 3 17:32:49 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0586C17D5B3 for ; Sun, 3 Nov 2019 17:32:49 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from edna.lautre.net (edna.lautre.net [80.67.160.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "lautre.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 475jgN1J4xz4fFS for ; Sun, 3 Nov 2019 17:32:47 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from graf.pompo.net (graf.pompo.net [78.225.128.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by edna.lautre.net (Postfix) with ESMTPSA id 138FB108814 for ; Sun, 3 Nov 2019 18:32:18 +0100 (CET) Received: by graf.pompo.net (Postfix, from userid 1001) id 95E19353E7B; Sun, 3 Nov 2019 18:32:14 +0100 (CET) Date: Sun, 3 Nov 2019 18:32:14 +0100 From: Thierry Thomas To: freebsd-hackers@freebsd.org Subject: [ARG_MAX] execv: Argument list too long Message-ID: <20191103173214.GG90515@graf.pompo.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline X-Operating-System: FreeBSD 12.0-STABLE amd64 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: X-PGP: 0xF1C516B3C8359753 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 475jgN1J4xz4fFS X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of thierry@pompo.net has no SPF policy when checking 80.67.160.88) smtp.mailfrom=thierry@pompo.net X-Spamd-Result: default: False [-5.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[thierry@freebsd.org,thierry@pompo.net]; IP_SCORE(-2.60)[ip: (-9.33), ipnet: 80.67.160.0/19(-2.04), asn: 20766(-1.63), country: FR(-0.00)]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:20766, ipnet:80.67.160.0/19, country:FR]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_NEQ_ENVFROM(0.00)[thierry@freebsd.org,thierry@pompo.net]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[88.160.67.80.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[88.160.67.80.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Nov 2019 17:32:49 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, [Repost from FreeBSD-questions] I'm trying to upgrade the port french/aster to the latest stable release. This is a complex port: it has no Makefile (in the upstream tarball, but of course there is a Makefile for the port), and it uses a combination of setup.py (Python) and a bundled waf. At this point, it builds, but the latest step (linkage) fails with the following message: gfortran9: fatal error: cannot execute '/usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd12.0/9.2.0/collect2': execv: Argument list too long Yes, linkage is done by gfortran, in a classical way: gfortran9 (some -Wl parameters) (a very long list of object files .o) (a list of several libraies with their paths) but the problem is not caused neither by gfortran nor by the final linker: if I execute the same command line manually from my shell, it succeeds and the aster program is built. So I guess that the problem is caused partly by the arguments list, but also by the environment variables brought by the build system. On my machine, `getconf ARG_MAX' returns 262144. Is there a way to increase this value dynamically? Any idea? Thanks for reading! --=20 Th. Thomas. --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJdvw8eXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFNTM2QkU4NTM4NTM5OUQwMEI2RkFBNzZG MUM1MTZCM0M4MzU5NzUzAAoJEPHFFrPINZdTzV8P/3Z+SlXZpGaCj+81wyeFj8+Z jXuTLB+o5KaB8V6bHABUbrZCWjUvTmLUq45U7dooReXMdZ9fO/34wyDmTbpSWKJ9 gfNJep+StYTn5Q0FBccwXGoQVCMZpG2wj3UkW3mfumpv8rnBOzPXC1MTRSRbE7lO kQwI4ShBNWGuMGk96zTrwebRm3oMbbLnZbFVBqHJOj4oBs7veexbUgdDlHUQJBJf zg+MpVllX2tQcSQPGRoLmsLXDXffYkJ2qtjRbLarMTqIws8O6CpAynHMko70H0Xw 0wkss1B1byy0psZVbu1ORcNCuEHvoEt/w7KhiErvUf24UcyfhUgretjwDIhBJFUV 1hgKNIdAzTsIn+X1lmKduQlT5EMG2w4K5AaWLhlLdkRVla133g9vdvZfWPsBva4o 3OH0jcpOhstehBKtUMjv9ecfK5EjTp6xCuv3zUOsu0V1jUuZzY4jDOhpQK+ai+et 4rvSf8NgCz0M8TYQXocnj5n3JRHxWtYsqT2/GRsvY7DZQVJ0kh69HP2DC7PbTCYR ZHGs5aFHgX3+emTtyBjsqq7a3BDPuxluDN8XFtpt/A1jYKtQGJf4SWUTc39MCCTD OCe31ynYBbP1DYLYD+0eJ87keUaAzZoAS3Md2BDTZMi3w9C7zYzjSin0ThNe83vr +hj8tXNaBq+VlqYmf+ZU =ZIZT -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm-- From owner-freebsd-hackers@freebsd.org Mon Nov 4 09:04:18 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6C83217868A for ; Mon, 4 Nov 2019 09:04:18 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4766LB2Jmxz48fD; Mon, 4 Nov 2019 09:04:18 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x443.google.com with SMTP id l10so16057351wrb.2; Mon, 04 Nov 2019 01:04:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=JEoJvAyMoQ64GNIQmADPMIAZwzaNCBVWQwUCpO5Bz7U=; b=VSmbgLxg5NGQDyzzNf84a+7OGANl3zIzUMfy9r87Jjz84njbemm//XyMnGaKKbXw7o mWilJ0EAzXELTCIMsIzbvNlJGw16fv7xoj5JlL2Zh87rGnCbANLsjg+rbrxdTsaaqffu 7zxAC+mumGJq36/d3GZ2pN+9mKnnHty2aAeFJ6N1XIINrhoZvpV64aH76xJxi/9M9nxa eWtf/Ui6+6rmnaJkFe2dRxpzk7vFDY8YFLCJGVGcwgZH3vkE8/ErVy/sJd+vkS6BYVAz cw3YWAWAFMBHKeDAMtHLJNEKf4u+u5DmeRgSLnViJYBHGFQV+j9TwW/ikxefUCw4yARC k8GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=JEoJvAyMoQ64GNIQmADPMIAZwzaNCBVWQwUCpO5Bz7U=; b=MDFzo/V5CSnVFshpGZC9XeZDHebsajE7m+9BRhe3yhpELGu/sFPZmSfZUFHCsZNH8O Td2f3jpmTsAMpZBYjqHs9adBbr9mvnKYwniQZbtFp5PBea1BL0rRVYZNv0vKcNVIRob2 0PJglLNg7skCvTFkjj/UmZlCYmtuhsr4PYzl7e+kYWQ1lMLzJXWbAq/R40ScZM2aNNRT pLW8z6WhnXSiNwXSpdO1CNtOpl/yQIGUI72B5zgi5X/Qxw7Fe092A+2taTGh0QkG/nvn D6syVciQc7RxfesjKhncuUifkuoy+NymerDDxSVnHGhnZ4ZuTPQ3D5cxHWK0EYRkf8Ip CPlA== X-Gm-Message-State: APjAAAViMPiftTCx2tHqiERXmTIViKrwuWO5r1ZK/6zskwGCInRGMTRv U5P7hVqpWSiGVuUKonVCMoOpSKVU X-Google-Smtp-Source: APXvYqxovhIB4V4auEvBbh7QYWl9b9LjzDvxL1w7aDfcCSsTWbnYedAeXHRzD43WfTdDqUP5f1GDWQ== X-Received: by 2002:a5d:54cb:: with SMTP id x11mr22490515wrv.161.1572858256158; Mon, 04 Nov 2019 01:04:16 -0800 (PST) Received: from ernst.home (pD9E23786.dip0.t-ipconnect.de. [217.226.55.134]) by smtp.gmail.com with ESMTPSA id t10sm17393181wrw.23.2019.11.04.01.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2019 01:04:15 -0800 (PST) Date: Mon, 4 Nov 2019 10:04:14 +0100 From: Gary Jennejohn To: Thierry Thomas Cc: freebsd-hackers@freebsd.org Subject: Re: [ARG_MAX] execv: Argument list too long Message-ID: <20191104100414.2bd2ca12@ernst.home> In-Reply-To: <20191103173214.GG90515@graf.pompo.net> References: <20191103173214.GG90515@graf.pompo.net> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4766LB2Jmxz48fD X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2019 09:04:18 -0000 On Sun, 3 Nov 2019 18:32:14 +0100 Thierry Thomas wrote: > Hello, > > [Repost from FreeBSD-questions] > > I'm trying to upgrade the port french/aster to the latest stable > release. This is a complex port: it has no Makefile (in the upstream > tarball, but of course there is a Makefile for the port), and it uses a > combination of setup.py (Python) and a bundled waf. > > At this point, it builds, but the latest step (linkage) fails with the > following message: > > gfortran9: fatal error: cannot execute > '/usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd12.0/9.2.0/collect2': > execv: Argument list too long > > Yes, linkage is done by gfortran, in a classical way: > gfortran9 (some -Wl parameters) (a very long list of object files .o) (a > list of several libraies with their paths) > > but the problem is not caused neither by gfortran nor by the final > linker: if I execute the same command line manually from my shell, it > succeeds and the aster program is built. > > So I guess that the problem is caused partly by the arguments list, but > also by the environment variables brought by the build system. > > On my machine, `getconf ARG_MAX' returns 262144. > > Is there a way to increase this value dynamically? Any idea? > Doesn't look like it. Thre's a sysctl kern.argmax, but it's read-only and initialized to ARG_MAX. > Thanks for reading! > -- > Th. Thomas. -- Gary Jennejohn From owner-freebsd-hackers@freebsd.org Mon Nov 4 11:35:20 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4DD9F17D055 for ; Mon, 4 Nov 2019 11:35:20 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4769hR092wz4KBK for ; Mon, 4 Nov 2019 11:35:18 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Mon, 04 Nov 2019 12:28:17 +0100 id 00F407FC.5DC00B51.000051D8 Date: Mon, 4 Nov 2019 12:28:16 +0100 From: Milan Obuch To: freebsd-hackers@freebsd.org Cc: Oleksandr Tymoshenko , Oliver Pinter Subject: Re: UART driver as kld - how? Message-ID: <20191104122816.63647120@zeta.dino.sk> In-Reply-To: <20191103130118.36fa6eec@zeta.dino.sk> References: <20191027214209.712d62ca@zeta.dino.sk> <20191027232956.28b11772@zeta.dino.sk> <20191028191005.GA89835@bluezbox.com> <20191028201952.20a92307@zeta.dino.sk> <20191102214100.500ba493@zeta.dino.sk> <20191103042321.GA49790@bluezbox.com> <20191103130118.36fa6eec@zeta.dino.sk> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i386-portbld-freebsd11.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4769hR092wz4KBK X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-hackers@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-hackers@dino.sk X-Spamd-Result: default: False [-4.14 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dino.sk]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[72.65.245.84.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.84)[ip: (-7.98), ipnet: 84.245.64.0/18(-3.99), asn: 16160(-2.32), country: SK(0.08)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:16160, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2019 11:35:20 -0000 On Sun, 3 Nov 2019 13:01:18 +0100 Milan Obuch wrote: > On Sat, 2 Nov 2019 21:23:21 -0700 > Oleksandr Tymoshenko wrote: > > > Milan Obuch (freebsd-hackers@dino.sk) wrote: [ snip ] > > > I am sure I need docs/description for other functions as well, so > > > if anybody knows where good uart framework description could be > > > found, please advice. Or if somebody already has good > > > understanding of it and could help me with my issues, it wil be > > > greatly appreciated. > > > > if you follow uart_dev_snsps.c template, the sc_class is set in > > probe function: [ snip ] > I totally overlooked the obvious... yes, you are right. > > [ snip ] > > > In your case, my guess would be: you either do not set the sc_class > > member var in probe function or your base var is not the first in > > the struct. > > > > Back to testing... probe function now does work, so I am going to > analyze what should be done in attach... and why I am getting now > panic... I'll write again when I find another obstacle I do not > understand or I have working driver, whatever comes first :) > Now I am getting further... attach works now, device nodes expected are being created, but there are some warnings mentioning locks on detach. Also, my hardware design currently does not use interrupts. Do we have any example of uart device being polled? Regards, Milan From owner-freebsd-hackers@freebsd.org Mon Nov 4 14:23:44 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 925AB1A4248 for ; Mon, 4 Nov 2019 14:23:44 +0000 (UTC) (envelope-from pfg@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 476FQm3MZ3z3JK7; Mon, 4 Nov 2019 14:23:44 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from [192.168.0.6] (unknown [181.52.72.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: pfg) by smtp.freebsd.org (Postfix) with ESMTPSA id 11DB61D86F; Mon, 4 Nov 2019 14:23:43 +0000 (UTC) (envelope-from pfg@FreeBSD.org) To: Thierry Thomas From: Pedro Giffuni Subject: Re: [ARG_MAX] execv: Argument list too long Autocrypt: addr=pfg@FreeBSD.org; keydata= mQENBFU6tr0BCAC/MABNSg8O9sLZZ1cCl8GczwjnyF6WEvtfLpIkAWEo49H3TuG3cMNwuavi xnwASLS73ppj6ziWK1QsfdAaA8Mkvk25UtenfsCTiA38q0RwvHPn8W6eorJ6rYHRReNnncA+ oPLrLmL6IOUK9dlcLJP5i45PGwpx9YNI+D/BFcji7enpnsGjunhRE3NJ1YBXiKMormfnPvpV yVWpKnnB03nFIQphW108G5U9wytZqsiGkshn0ar0FBGsdJ19d/ePBuMceaWRtf0nJrNkC9sB D8ISmFp6/DAoQBhyJxvemC83/QNV5u9kGdwemaKOJ6SdAmBBZYbdAxCO8i/Eq33mrXx7ABEB AAG0H1BlZHJvIEdpZmZ1bmkgPHBmZ0BGcmVlQlNELm9yZz6JATcEEwEKACEFAlU6tr0CGwMF CwkIBwMFFQoJCAsFFgMCAQACHgECF4AACgkQzWsLls7yLQTFEgf/blVvg7MPpZp/KWwEShqI VpkJLhXLjvYzjoSCrpuVtNMCdpYh3L6gY5mBr9VASc/iWb6DUUxX9g6oLQ4l1e8eEwSHdXda RG/NjxJhz8dsLO8H6dnwl6HEZ+nymXIibX6GGy10gQeyv6sNGsgSCwlyFJZcv2lW2M1ev11w 3yY1eQnIsPq4vyIMYEQ1aIIYu1JPNEzRZ7sDuRGdnvMH7FhHaNzSs8d4PHw2JSwDHPuN/W6S UhK+A/TDW9BQ4ZzDRpKrIPfWqkAa+76NtGglmJWS99WG7rJAoPUIj2xpzojoQbT3z1vbeGxK cgGvOyQMlrJSRZwOtFuhcdbQ6DX4ETI7NrkBDQRVOra9AQgA1ACQK5u/H1MgjSKXQttCv8Kz /k7fHmaWLrhPAJH6bqR7wpv/Hz2y/8uD+5qg/vk9/pwYuj9TzbCXs9NeWye/+DV8Aw7Z22b2 OjB0VbEpHREDs0zS+0KMP7STOPpyHVYdgWCQ7Qgd/LG0gfUP5M0R8s2OH3Il8rcS4ZeEd/tr O3LyoDiK4mInT/X3oJX7xetws3jpSPk51TDOplamehXjndwemttUTw1czITF9MfDosaihoUr o6NcAtBzFYIF2NuKhrASs9prec+e36a3lCUbMOHof62TnBZZnWtNdmnv1RNv3q17yavqi0F/ rvtmckHhJ8NcnYL8/gGD48nhKf60UQARAQABiQEfBBgBCgAJBQJVOra9AhsMAAoJEM1rC5bO 8i0EkGAH+QG/1y0mcOBFsouMdmDUpRusRxWHdmdIjFt4FJ2/K7YDyrliKcUTOp+zjCyfLVE6 UELiRvsT+mg4QcZL7e+JAuLkW5LhiAskz8/1fRgnwVquTcYd7TPJrYnejpLyumhbsgo0bN4G s9yrJeQpKbln6YQxifzT4Eqot3aEeZxlUEKzQd0Vq1ci8PTI1krvda9x+FdGvKxY9Iz4T+SW NZsvBaCXo9hjJZ7U1VaCdWxgHhy5tuTuMAGGS9lCGbdvdKuAbSQDtcvx0jcY5s7Q2t2udCyV mRDbQYrl8PEyJa3Cz3NoBD9g9EEr9PlX05hOWMVf3M5pS4j/XKbzUbKqiBy1VPw= Organization: FreeBSD Cc: FreeBSD Hackers Message-ID: <27d5e66b-a9bd-6037-29cd-77cb529bab9e@FreeBSD.org> Date: Mon, 4 Nov 2019 09:23:44 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2019 14:23:44 -0000 Hi Thierry; On Sun, 3 Nov 2019 18:32:14 +0100 Thierry Thomas wrote: > Hello, > > [Repost from FreeBSD-questions] > > I'm trying to upgrade the port french/aster to the latest stable > release. This is a complex port: it has no Makefile (in the upstream > tarball, but of course there is a Makefile for the port), and it uses a= > combination of setup.py (Python) and a bundled waf. > > At this point, it builds, but the latest step (linkage) fails with the > following message: > > gfortran9: fatal error: cannot execute > '/usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd12.0/9.2.0/collect2'= : > execv: Argument list too long > > Yes, linkage is done by gfortran, in a classical way: > gfortran9 (some -Wl parameters) (a very long list of object files .o) (= a > list of several libraries with their paths) > > but the problem is not caused neither by gfortran nor by the final > linker: if I execute the same command line manually from my shell, it > succeeds and the aster program is built. > > So I guess that the problem is caused partly by the arguments list, but= > also by the environment variables brought by the build system. > > On my machine, `getconf ARG_MAX' returns 262144. > > Is there a way to increase this value dynamically? Any idea? > > Thanks for reading! > -- > Th. Thomas. This is basically the same issue seen long ago with libreoffice: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208154 Please open a PR and add me. Code Aster is sufficiently important (at least for me) that I think we should revise the limit. Pedro. From owner-freebsd-hackers@freebsd.org Mon Nov 4 15:32:41 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D22731A632E for ; Mon, 4 Nov 2019 15:32:41 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 476GyJ3gRKz3N5c for ; Mon, 4 Nov 2019 15:32:39 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x831.google.com with SMTP id o3so24498946qtj.8 for ; Mon, 04 Nov 2019 07:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nNsTKMsnQCBkL7iesQggYuFIysAnCvgb1Pv8zcFIDb4=; b=LInoyZozFCEM6Sagt5+m9jCKuisPVha6VrYriSKywdOB/eqMJXDENZ1abgvfkMr8OV 4mTz69z8IKk0o7gaOlzGmuJJkTsPlNOXkJkmnpg8w8DSINZJxctn+83b7F/faTxMiW1Y BI1f5ORUoqWlPoXrlxASnRvD62CI+XqLdp46URke4WIJMC+d3GcVc2L+fLai6wg4fJaz 8SDLytCfOs2K96uJQk3Xk4Hux/Uev0JpvqJf/R5vpQs62cKLufGdo6ZX825Un4EyzefZ d+se8Zw0JNOhebrMbH0n74mPac67QMyeN9e+o5peUvUVYE8YEAN4CncJIbNt2F64KY11 bksw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nNsTKMsnQCBkL7iesQggYuFIysAnCvgb1Pv8zcFIDb4=; b=DwkpsfUq6bodAY8I8ZCEJ2A5MQbzpUcGy+b3Og/n/G9q5wbG+8H4LNWqv+fmXiFhxm TUPX7Nyqn7dNP/xIZCmAND9F/hdGJgczGnr4YS/EyMW455FJhfUsXf8/KflH3qvkJcqh /UKFEUXfN1Zqs8LQzkLlHI8eBFFxX6OoIrZujssMjFrdOjvezG2yInPdBH3r36GJKUUH ffgkjBakzu7BBKJ53IRaDYjYYQjbCTJEMaSu8I+RoRhBgCkeWhqI9/VCpJgF1PzxdxKc f3eYNJYtvNKzF55+RfKDsUg17bZtfjK2l+vHFbsm6iECnLFXD0AtawL1A4k8Q4QA7cQ1 uIsw== X-Gm-Message-State: APjAAAXCH4iVu1wz7B0VEYRTWAOfqIJ59eumzdabFx8Lf17D/oFNfh4x nbPFWXBCLSdVSYrOXnJ0DLt0xx8ejT2Mzo2xbeUlPfQkH/E= X-Google-Smtp-Source: APXvYqxFL4StR07iwGdHQeS9pBcE9m9rgL5sLKFpuCslWCiD87UjZb0ZZevo6JMCfh58aoPnOrRbGBZWLLQm39NUMJ8= X-Received: by 2002:ac8:6697:: with SMTP id d23mr5412713qtp.32.1572881558767; Mon, 04 Nov 2019 07:32:38 -0800 (PST) MIME-Version: 1.0 References: <20191027214209.712d62ca@zeta.dino.sk> <20191027232956.28b11772@zeta.dino.sk> <20191028191005.GA89835@bluezbox.com> <20191028201952.20a92307@zeta.dino.sk> <20191102214100.500ba493@zeta.dino.sk> <20191103042321.GA49790@bluezbox.com> <20191103130118.36fa6eec@zeta.dino.sk> <20191104122816.63647120@zeta.dino.sk> In-Reply-To: <20191104122816.63647120@zeta.dino.sk> From: Warner Losh Date: Mon, 4 Nov 2019 08:32:27 -0700 Message-ID: Subject: Re: UART driver as kld - how? To: Milan Obuch Cc: "freebsd-hackers@freebsd.org" , Oleksandr Tymoshenko , Oliver Pinter X-Rspamd-Queue-Id: 476GyJ3gRKz3N5c X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=LInoyZoz; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::831) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.74 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; IP_SCORE(-2.74)[ip: (-9.27), ipnet: 2607:f8b0::/32(-2.37), asn: 15169(-2.03), country: US(-0.05)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[1.3.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2019 15:32:41 -0000 On Mon, Nov 4, 2019 at 4:35 AM Milan Obuch wrote: > On Sun, 3 Nov 2019 13:01:18 +0100 > Milan Obuch wrote: > > > On Sat, 2 Nov 2019 21:23:21 -0700 > > Oleksandr Tymoshenko wrote: > > > > > Milan Obuch (freebsd-hackers@dino.sk) wrote: > > [ snip ] > > > > > I am sure I need docs/description for other functions as well, so > > > > if anybody knows where good uart framework description could be > > > > found, please advice. Or if somebody already has good > > > > understanding of it and could help me with my issues, it wil be > > > > greatly appreciated. > > > > > > if you follow uart_dev_snsps.c template, the sc_class is set in > > > probe function: > > [ snip ] > > > I totally overlooked the obvious... yes, you are right. > > > > [ snip ] > > > > > In your case, my guess would be: you either do not set the sc_class > > > member var in probe function or your base var is not the first in > > > the struct. > > > > > > > Back to testing... probe function now does work, so I am going to > > analyze what should be done in attach... and why I am getting now > > panic... I'll write again when I find another obstacle I do not > > understand or I have working driver, whatever comes first :) > > > > Now I am getting further... attach works now, device nodes expected are > being created, but there are some warnings mentioning locks on detach. > Also, my hardware design currently does not use interrupts. Do we have > any example of uart device being polled? > All UARTS have interrupts. It's the nature of UARTS. At least that's the nature of the model that uart(4) uses: there's a number of conditions that we notice from time to time and make a note in the ipend mask so that we can call uart specific code later to deal with that condition. Your system may not connect those uart signals to a system interrupt, but the internal model is the same. I'd just use callouts to poll. Then call what would be the interrupt routines from there. Since we have a separation between noting a condition and processing it, that should work well. However, I'd also expect issues at higher data rates unless you have very deep FIFOs and some kind of hardware-assist for flow control. Warner From owner-freebsd-hackers@freebsd.org Mon Nov 4 15:43:21 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 029141A66E2 for ; Mon, 4 Nov 2019 15:43:21 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 476HBc4B2Bz3NXj for ; Mon, 4 Nov 2019 15:43:20 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1572882198; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=Ll/AjyQ5GXLf3ideCqDRSHqprzkMRbsQ8LndfQddRNgeGWyRC4RKQ7yJhg6WM/jpGq+JHI6WZTTXA c6c386ALfsOpLGnPVtwIeVsncS1sX1pPsaRW3B67bmBjnNev6TWe0OveYS/tzrW4SxJvQoISnE0kO4 2cxGo/DEY5liJwH+JzRHgmIOiHo+Z6fpg3Ae6dxdVKyH2I8k/c6YMn/k0Mc0NU8YwWH9MoG0Mq9MQm NlipYGTYXa496iIXgmVyodw8CcNnNmheHrGfApRAwAT/QZJb5XPtDywFEElJCqx6gr2ZXKHu7/6y4e yVyG150WqF06gl5N9ZPF21Cjyfjxs4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=tWDrZ9Fm1fwL1eea3iPrJEXrvUNJa2X39uXqdpOod/Y=; b=vluOuBomKNJe5TqvbhVnCNQmQRdynH2pdNh17tapTm+GJMz5fyvBqAW3+J/q+o2WzFZB/InPZvY6l Ruzb1xhEeOvnCX0v+WaHg2LNPqWb9eYZR5t1Qc7xGWBe67Mywi2MHiqDEHIDy6Sq9MhuJ/MBN5u6JQ JLsbWxmAhfYKT3YLws/6JR+bfbQkR12GEs/YM0KK62W/1inhcnmAIzmjuiLMhd1FtSOFKTIBhuIJSA +PQ6jj6FTp8xspFW9TTUz2bv6dAwuUuzOIRhelfqtlpr/A/kODWYis08vqhRX+wR90fB7eFeCIdi1X JFkpFxOCbBgI5HiKq8ykVmsU7fOFPeg== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=tWDrZ9Fm1fwL1eea3iPrJEXrvUNJa2X39uXqdpOod/Y=; b=JVPnoTWFIg0/2g/E41vCde+QTFuWMamDHY1hfSko/+5wh0tXi8qIgcf6kNU8xh97PXZXJr0tIYIsS t9zpOaU9Xr+BIW5BrERyVRM7fYANqEYSw5VOr00MAumNboMEw2VyititZuKogZq37RlryVMjS80jpU h4FmzGSYpZyl/ptwyXIvjM2HzPHxTJWmdF685vVapu/V+KNGpsEzDQQJhH+93rehyE0C7nBcmYzQnE yTY/OX+IeIA01uZUGfIlufOVoKfDirOQp3U4lYSWgLLyIq6CxL97GOEG1eKJ4EogWQJVPM1k1b2J8A kyqB1BksRCl9ssEUWmE6gWcBEW1oiwg== X-MHO-RoutePath: aGlwcGll X-MHO-User: d089d54b-ff19-11e9-829e-79a40d15cccd X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id d089d54b-ff19-11e9-829e-79a40d15cccd; Mon, 04 Nov 2019 15:43:17 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id xA4FhEvc088411; Mon, 4 Nov 2019 08:43:14 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: UART driver as kld - how? From: Ian Lepore To: Warner Losh , Milan Obuch Cc: "freebsd-hackers@freebsd.org" Date: Mon, 04 Nov 2019 08:43:14 -0700 In-Reply-To: References: <20191027214209.712d62ca@zeta.dino.sk> <20191027232956.28b11772@zeta.dino.sk> <20191028191005.GA89835@bluezbox.com> <20191028201952.20a92307@zeta.dino.sk> <20191102214100.500ba493@zeta.dino.sk> <20191103042321.GA49790@bluezbox.com> <20191103130118.36fa6eec@zeta.dino.sk> <20191104122816.63647120@zeta.dino.sk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 476HBc4B2Bz3NXj X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.99)[-0.987,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2019 15:43:21 -0000 On Mon, 2019-11-04 at 08:32 -0700, Warner Losh wrote: > On Mon, Nov 4, 2019 at 4:35 AM Milan Obuch wrote: > > > On Sun, 3 Nov 2019 13:01:18 +0100 > > Milan Obuch wrote: > > > > > On Sat, 2 Nov 2019 21:23:21 -0700 > > > Oleksandr Tymoshenko wrote: > > > > > > > Milan Obuch (freebsd-hackers@dino.sk) wrote: > > > > [...] > > > Back to testing... probe function now does work, so I am going to > > > analyze what should be done in attach... and why I am getting now > > > panic... I'll write again when I find another obstacle I do not > > > understand or I have working driver, whatever comes first :) > > > > > > > Now I am getting further... attach works now, device nodes expected are > > being created, but there are some warnings mentioning locks on detach. > > Also, my hardware design currently does not use interrupts. Do we have > > any example of uart device being polled? > > > > All UARTS have interrupts. It's the nature of UARTS. At least that's the > nature of the model that uart(4) uses: there's a number of conditions that > we notice from time to time and make a note in the ipend mask so that we > can call uart specific code later to deal with that condition. Your system > may not connect those uart signals to a system interrupt, but the internal > model is the same. > > I'd just use callouts to poll. Then call what would be the interrupt > routines from there. Since we have a separation between noting a condition > and processing it, that should work well. However, I'd also expect issues > at higher data rates unless you have very deep FIFOs and some kind of > hardware-assist for flow control. > Polling support is built into uart(4) already. Just set debug.uart_force_poll=1 in loader.conf or via sysctl. You can also set debug.uart_poll_freq (default is 50hz). -- Ian From owner-freebsd-hackers@freebsd.org Mon Nov 4 20:16:37 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EF2F81AF1DD for ; Mon, 4 Nov 2019 20:16:37 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from edna.lautre.net (edna.lautre.net [80.67.160.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "lautre.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 476PFw3s3xz4Hnd for ; Mon, 4 Nov 2019 20:16:36 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from graf.pompo.net (graf.pompo.net [78.225.128.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by edna.lautre.net (Postfix) with ESMTPSA id E3CA51088A6 for ; Mon, 4 Nov 2019 21:16:33 +0100 (CET) Received: by graf.pompo.net (Postfix, from userid 1001) id 1C6B4356554; Mon, 4 Nov 2019 21:16:33 +0100 (CET) Date: Mon, 4 Nov 2019 21:16:33 +0100 From: Thierry Thomas To: FreeBSD Hackers Subject: Re: [ARG_MAX] execv: Argument list too long Message-ID: <20191104201633.GA96284@graf.pompo.net> Mail-Followup-To: FreeBSD Hackers References: <27d5e66b-a9bd-6037-29cd-77cb529bab9e@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <27d5e66b-a9bd-6037-29cd-77cb529bab9e@FreeBSD.org> X-Operating-System: FreeBSD 12.0-STABLE amd64 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: X-PGP: 0xF1C516B3C8359753 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 476PFw3s3xz4Hnd X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of thierry@pompo.net has no SPF policy when checking 80.67.160.88) smtp.mailfrom=thierry@pompo.net X-Spamd-Result: default: False [-3.38 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; IP_SCORE(-2.58)[ip: (-9.27), ipnet: 80.67.160.0/19(-2.03), asn: 20766(-1.62), country: FR(-0.00)]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[88.160.67.80.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[thierry@freebsd.org,thierry@pompo.net]; RWL_MAILSPIKE_POSSIBLE(0.00)[88.160.67.80.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20766, ipnet:80.67.160.0/19, country:FR]; FROM_NEQ_ENVFROM(0.00)[thierry@freebsd.org,thierry@pompo.net]; RCVD_TLS_ALL(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2019 20:16:38 -0000 Le lun. 4 nov. 19 à 15:23:44 +0100, Pedro Giffuni écrivait : Thanks all for your answers! > This is basically the same issue seen long ago with libreoffice: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208154 > > Please open a PR and add me. Code Aster is sufficiently important (at > least for me) that I think we should revise the limit. Done. This is PR 241710: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241710 -- Th. Thomas. From owner-freebsd-hackers@freebsd.org Wed Nov 6 18:32:59 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EEBA61BCB79 for ; Wed, 6 Nov 2019 18:32:59 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 477ZsQ2N8Lz4TDF for ; Wed, 6 Nov 2019 18:32:58 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: by mail-wr1-x430.google.com with SMTP id p2so1978544wro.2 for ; Wed, 06 Nov 2019 10:32:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version:content-language :thread-index; bh=l0z3JFJPZPOmZ3xJGAj7e2E0tbHrfS2RXUZUOKxGMvA=; b=SqIoUFeCaq0+m8gYU2VOj23yVkS+j1yc4VcEUbWgTdxDrv3rh/OYQKXEdm4egXjEk/ 9rTwKuz6rFAcKyKCpeEFsikeMJdL7KQpTLc6/63+wDM+ILJgbRBvwvMTJdkqCbpZU7y8 +vjM4vFudVatxSm2OrcmzEWII0ZWauMuanfu/VWzWjJW57ejBRGeER8cPMNfUb/Gdn1I EgJKCccQ8VTQGj+HAv3Hi9oZl3AI+Uno0gElvvi6HB8d/Wpf+3wcFJ2oDSOAJ1k1E8bn EwaiApBJZXxcW925WQ9XFOC8rogNlQZtLAHF6lpixX9D3EAIcL2dfEiv71PKf9aFYWBy 64tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-language:thread-index; bh=l0z3JFJPZPOmZ3xJGAj7e2E0tbHrfS2RXUZUOKxGMvA=; b=V/4pbwTurDopdo34ZUaEJ8fHd8RQaUAcoZG/tycW1ADdDNHB2YDAhUuYkbfOvDa5J/ KM97Ifw5dEoafu0jzaMQMYwlIBEpXLrgbLHaY/DROdUI7movG1+XJNvlMWN31BSI6kjY kuLcgeTcMdi/pn9cpYNq+wHWgC3DRR4C0342cwQtSZJpp1s35uIG54fpzEXjvv/lLw11 nMYThLq3LNOf/Cza0pR1AUwg2IMeQiUJOdTl8ym27pFpXK7+gfSqYNU/opDpSbmZPnfR jcxJCY6YQ2c2CNVeV+6MhgaZIcz/xkd/0XeMROVTH7dysMRz1M9E/sRnanrVrvH8wjeC Clzg== X-Gm-Message-State: APjAAAUvGjo00FgEDpw+PJxV/VrGcWiZgObNJCwMwsGDRMmcw9PoK0eW UgEMRzyFSKM/KNN77l6cuNus3f3h X-Google-Smtp-Source: APXvYqw1yYmdpEGFYaXhGiT9SruYbQ/NowG8YZYFP33dRrdOr5YsyFFPUiq9KPkXKukhznR03pXtow== X-Received: by 2002:adf:fd84:: with SMTP id d4mr3984356wrr.152.1573065175960; Wed, 06 Nov 2019 10:32:55 -0800 (PST) Received: from DRIESPC (ptr-8shtsnt89t73vpyk5or.18120a2.ip6.access.telenet.be. [2a02:1811:2500:6b00:5ccd:75e7:74b8:6fcb]) by smtp.gmail.com with ESMTPSA id s12sm4128442wme.20.2019.11.06.10.32.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2019 10:32:55 -0800 (PST) From: To: Subject: Getting jedec_dimm to work Date: Wed, 6 Nov 2019 19:32:54 +0100 Message-ID: <002101d594d0$9b2a3280$d17e9780$@gmail.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Content-Language: nl-be Thread-Index: AdWUzm16mwttWZWXQ6abXwnBsk6DEQ== X-Rspamd-Queue-Id: 477ZsQ2N8Lz4TDF X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=SqIoUFeC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of driesmmichiels@gmail.com designates 2a00:1450:4864:20::430 as permitted sender) smtp.mailfrom=driesmmichiels@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.26), ipnet: 2a00:1450::/32(-2.76), asn: 15169(-2.01), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_NO_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[0.3.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2019 18:33:00 -0000 Hi hackers mailing list, I'm playing around with jedec_dimm to pick up my memory modules so I can monitor temperature and read information from the SPD. Although I'm kind of stuck at the point where I am as there really should not be anything more to it. ATM I load the module through kld_list in rc.conf and have the following in my device.hints as suggested in the man pages: hint.jedec_dimm.0.at="smbus0" hint.jedec_dimm.0.addr="0xa0" hint.jedec_dimm.1.at="smbus0" hint.jedec_dimm.1.addr="0xa2" hint.jedec_dimm.2.at="smbus0" hint.jedec_dimm.2.addr="0xa4" hint.jedec_dimm.3.at="smbus0" hint.jedec_dimm.3.addr="0xa6" hint.jedec_dimm.4.at="smbus0" hint.jedec_dimm.4.addr="0xa8" hint.jedec_dimm.5.at="smbus0" hint.jedec_dimm.5.addr="0xaA" hint.jedec_dimm.6.at="smbus0" hint.jedec_dimm.6.addr="0xaC" hint.jedec_dimm.7.at="smbus0" hint.jedec_dimm.7.addr="0xaE" Although when rebooting nothing gets detected/reported or printed on the console. Is it possible that it does not work through kld_list or should it not matter, if so why is that? Just curious =) Thanks for any pointers, Dries. From owner-freebsd-hackers@freebsd.org Wed Nov 6 19:59:43 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AE9581BE94D for ; Wed, 6 Nov 2019 19:59:43 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from weser.webweaving.org (weser.webweaving.org [148.251.234.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "weser.webweaving.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 477cnV3CT5z4YmY for ; Wed, 6 Nov 2019 19:59:42 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from [10.11.0.194] (94-210-134-94.cable.dynamic.v4.ziggo.nl [94.210.134.94]) (authenticated bits=0) by weser.webweaving.org (8.15.2/8.15.2) with ESMTPSA id xA6Jp2Xv046500 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 6 Nov 2019 20:51:03 +0100 (CET) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: weser.webweaving.org: Host 94-210-134-94.cable.dynamic.v4.ziggo.nl [94.210.134.94] claimed to be [10.11.0.194] To: FreeBSD Hackers From: Dirk-Willem van Gulik Subject: apm on amd64 (FreeBSD 12.1) Message-ID: <5ae77a59-81a4-881f-9f85-e2ad966b3e17@webweaving.org> Date: Wed, 6 Nov 2019 20:58:19 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (weser.webweaving.org [148.251.234.232]); Wed, 06 Nov 2019 20:51:03 +0100 (CET) X-Rspamd-Queue-Id: 477cnV3CT5z4YmY X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of dirkx@webweaving.org designates 148.251.234.232 as permitted sender) smtp.mailfrom=dirkx@webweaving.org X-Spamd-Result: default: False [-2.59 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[webweaving.org]; TO_DN_ALL(0.00)[]; IP_SCORE(-0.29)[ipnet: 148.251.0.0/16(0.25), asn: 24940(-1.69), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:148.251.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2019 19:59:43 -0000 After a recent upgrade to 12.1 release - I noticed that rc.d/apm is specific to i386; and cannot be enabled on amd64. Does that mean that AMD64 laptops no longer need APM for good power management* ? Any man-page or 'updating' notes one can study to understand ? Dw. *) As prior; enabling it on an Thinkpad X270 appeared to make the battery last a lot longer during lengthy suspends. From owner-freebsd-hackers@freebsd.org Wed Nov 6 23:24:43 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B649517B7EF for ; Wed, 6 Nov 2019 23:24:43 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 477jL26jq1z3H5H for ; Wed, 6 Nov 2019 23:24:42 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lf1-f68.google.com with SMTP id y9so55940lfy.0 for ; Wed, 06 Nov 2019 15:24:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=nqijEsNGqmT5vy+r07lbf53O63lMcnSu75tYqVmWApI=; b=KwsG2fdR7oi8pnpkiE5nlKNLl9rpTpDX8CQ1Kzc81ioTOLRcETkbloqwr8SOKP6ZbF RraEDH42sxePwZ8pGm99n7x1vsGMWLSv+moS1N8UNCiOxiQBomlKLp3aE5UsWyTZzssP BkNJfFeSmOjUcCttx+YpT0AHDEmo5KOz9gxrBDd/5AXHyaPq3zZFaxRpdfgnQ4JQorxc +rUvzkc1NGmcMtprR1St1srfiAPhhyMVqk15tSqKJ1+KY0PnBu2ykcamBcoELrxDSf3D Gvamjef92PM0rxJLfkw6yUAf3WFaKJLMQCBTqdDalx4QB5xGSlJElxAVEadbPtGrTJjJ wPSw== X-Gm-Message-State: APjAAAWMdGIOX39b4JU/PxVmJDx8Z3ldVmaRKVq4mGGFOAGxhkDZDvk3 Wi7aF511PjfUTP0xP3eMytpwiWPxpi0= X-Google-Smtp-Source: APXvYqx2PDKoiJgl0fssRv/KPnYWKUSiwyAOTzfbDQxo2HbxM1PpV6jmlvsRBc+y0lwhQnKLKRn0Vw== X-Received: by 2002:a19:c813:: with SMTP id y19mr5209lff.41.1573082680697; Wed, 06 Nov 2019 15:24:40 -0800 (PST) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id y6sm111240lfj.75.2019.11.06.15.24.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Nov 2019 15:24:39 -0800 (PST) Subject: Re: Getting jedec_dimm to work To: driesm.michiels@gmail.com, freebsd-hackers@freebsd.org References: <002101d594d0$9b2a3280$d17e9780$@gmail.com> From: Andriy Gapon Openpgp: preference=signencrypt Autocrypt: addr=avg@FreeBSD.org; prefer-encrypt=mutual; keydata= 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 Message-ID: <30a5f191-46ef-48e2-5fb4-395a1f1bd370@FreeBSD.org> Date: Thu, 7 Nov 2019 01:24:37 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <002101d594d0$9b2a3280$d17e9780$@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 477jL26jq1z3H5H X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of agapon@gmail.com designates 209.85.167.68 as permitted sender) smtp.mailfrom=agapon@gmail.com X-Spamd-Result: default: False [-3.05 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[avg@FreeBSD.org,agapon@gmail.com]; FREEMAIL_TO(0.00)[gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[96.151.72.93.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[avg@FreeBSD.org,agapon@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[FreeBSD.org]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[68.167.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.05)[ip: (0.01), ipnet: 209.85.128.0/17(-3.21), asn: 15169(-2.01), country: US(-0.05)]; RWL_MAILSPIKE_POSSIBLE(0.00)[68.167.85.209.rep.mailspike.net : 127.0.0.17]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2019 23:24:43 -0000 On 06/11/2019 20:32, driesm.michiels@gmail.com wrote: > Hi hackers mailing list, > > > > I'm playing around with jedec_dimm to pick up my memory modules so I can > monitor temperature and read information from the SPD. > > Although I'm kind of stuck at the point where I am as there really should > not be anything more to it. Are you sure that your DIMMs have the temperature sensor? Are you sure that the DIMMs are connected to smbus0? Do you have an smbus driver attached at all? A bit more information about your hardware and kernel configuration would help. It is typical to share a dmesg at least. > ATM I load the module through kld_list in rc.conf and have the following in > my device.hints as suggested in the man pages: > > > > hint.jedec_dimm.0.at="smbus0" > > hint.jedec_dimm.0.addr="0xa0" > > hint.jedec_dimm.1.at="smbus0" > > hint.jedec_dimm.1.addr="0xa2" > > hint.jedec_dimm.2.at="smbus0" > > hint.jedec_dimm.2.addr="0xa4" > > hint.jedec_dimm.3.at="smbus0" > > hint.jedec_dimm.3.addr="0xa6" > > hint.jedec_dimm.4.at="smbus0" > > hint.jedec_dimm.4.addr="0xa8" > > hint.jedec_dimm.5.at="smbus0" > > hint.jedec_dimm.5.addr="0xaA" > > hint.jedec_dimm.6.at="smbus0" > > hint.jedec_dimm.6.addr="0xaC" > > hint.jedec_dimm.7.at="smbus0" > > hint.jedec_dimm.7.addr="0xaE" > > > > Although when rebooting nothing gets detected/reported or printed on the > console. > > Is it possible that it does not work through kld_list or should it not > matter, if so why is that? Just curious =) > -- Andriy Gapon From owner-freebsd-hackers@freebsd.org Wed Nov 6 23:39:08 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 44AA517BC3C for ; Wed, 6 Nov 2019 23:39:08 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 477jfh0zbHz3HZG; Wed, 6 Nov 2019 23:39:07 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (c-73-225-95-104.hsd1.wa.comcast.net [73.225.95.104]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id xA6Ncxde083611 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NO); Wed, 6 Nov 2019 15:39:00 -0800 (PST) (envelope-from julian@freebsd.org) Subject: Re: Getting jedec_dimm to work To: Andriy Gapon , driesm.michiels@gmail.com, freebsd-hackers@freebsd.org References: <002101d594d0$9b2a3280$d17e9780$@gmail.com> <30a5f191-46ef-48e2-5fb4-395a1f1bd370@FreeBSD.org> From: Julian Elischer Message-ID: <9a6336d2-2ab2-a2ae-8258-91a3cbdd3e02@freebsd.org> Date: Wed, 6 Nov 2019 15:38:53 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <30a5f191-46ef-48e2-5fb4-395a1f1bd370@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 477jfh0zbHz3HZG X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2019 23:39:08 -0000 On 11/6/19 3:24 PM, Andriy Gapon wrote: > On 06/11/2019 20:32, driesm.michiels@gmail.com wrote: >> Hi hackers mailing list, >> >> >> >> I'm playing around with jedec_dimm to pick up my memory modules so I can >> monitor temperature and read information from the SPD. >> >> Although I'm kind of stuck at the point where I am as there really should >> not be anything more to it. > Are you sure that your DIMMs have the temperature sensor? > Are you sure that the DIMMs are connected to smbus0? > Do you have an smbus driver attached at all? > > A bit more information about your hardware and kernel configuration would help. > It is typical to share a dmesg at least. Expanding on what Andriy said, a "hint" is information from the configuration files TO a driver as to where to look for something, and not a confirmation that it found it. >> ATM I load the module through kld_list in rc.conf and have the following in >> my device.hints as suggested in the man pages: >> >> >> >> hint.jedec_dimm.0.at="smbus0" >> >> hint.jedec_dimm.0.addr="0xa0" >> >> hint.jedec_dimm.1.at="smbus0" >> >> hint.jedec_dimm.1.addr="0xa2" >> >> hint.jedec_dimm.2.at="smbus0" >> >> hint.jedec_dimm.2.addr="0xa4" >> >> hint.jedec_dimm.3.at="smbus0" >> >> hint.jedec_dimm.3.addr="0xa6" >> >> hint.jedec_dimm.4.at="smbus0" >> >> hint.jedec_dimm.4.addr="0xa8" >> >> hint.jedec_dimm.5.at="smbus0" >> >> hint.jedec_dimm.5.addr="0xaA" >> >> hint.jedec_dimm.6.at="smbus0" >> >> hint.jedec_dimm.6.addr="0xaC" >> >> hint.jedec_dimm.7.at="smbus0" >> >> hint.jedec_dimm.7.addr="0xaE" >> >> >> >> Although when rebooting nothing gets detected/reported or printed on the >> console. >> >> Is it possible that it does not work through kld_list or should it not >> matter, if so why is that? Just curious =) >> > > From owner-freebsd-hackers@freebsd.org Thu Nov 7 07:53:50 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B202C1AACA6 for ; Thu, 7 Nov 2019 07:53:50 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 477wdT6WZjz4GCL for ; Thu, 7 Nov 2019 07:53:49 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x32d.google.com with SMTP id v3so4193111wmh.1 for ; Wed, 06 Nov 2019 23:53:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=hYHkWth/ml9UNxEBmA39f96/W/92017MjUANp+8gEb4=; b=piMkbhq/tB/HWDUhoMzqj4dvg9j+tBgqQesthuZfsJYQV/YzTlACOVujwYourUTb5V KGOseB7AwFZaRUUOVP4reaMzE+ocNyhmG64ynLLop3mpku8x2nIwTXlUqVpinRMPeZiP z5GL5SZXtZWcXIVbZOpsWAjaalJqYldo8s/CWGyRge+QJMu5x1BbcJV8xHRPbdZe5mgi VHvslk+bJXlFY8MxgwkfqOYoxPNYsTTsrnKUu7ihB+QADq9S0ep2VROO8QT2d3uhuwhp P//bhQh9mHs9rM4Nlk/VTNeaawWXGJHKdv/xiupyRdTuO2bD96gE1/b/MrRIeLF+29cj Fejg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=hYHkWth/ml9UNxEBmA39f96/W/92017MjUANp+8gEb4=; b=WQM5kOTcIUy6nslGwRbjTu0opDs7qSFBtFpiQiynx2KzgB75nTA1v8AcZmWpIr7G/f 54kp5/BC3OgDv8OnzYqSseOwu4OOYvqLs6959YPQsZDRcbjzflkLGrD3PBxp/ENMLorI zJYeaq0QpcnIAKNlBwMM/H+iiHLyQT5CnT2gPVpUEvIP4f0gcQfADmoF50oB22oj3ulR uYOAhtKDGdaskhZv6pLIHKXOlEHqqG10Pb9fY8JBPLQPb/EuwZz38a1kbKBVaiu37z1j A1CgKituFTGlP2u9R544MDKKA9SR9tdsZB+x/r0y/MCjIw8QsdvtCHUYn+hmZYWtmlWo jiOg== X-Gm-Message-State: APjAAAWeJu+YQ2oEsEmA8EpucnQzfANzT6qqM5JTjSVOk1dAKgh//J9S gvRk77ukTFC2YhzTL+38AaWa9Pdn X-Google-Smtp-Source: APXvYqwMmAGNEeKoJvBooqb2ez4nQB0G6Bd/ANvL9ctp4dxRcaXmUu7RK/O2UMo5QUrh1VMHSNPkaA== X-Received: by 2002:a1c:808d:: with SMTP id b135mr1441552wmd.175.1573113227853; Wed, 06 Nov 2019 23:53:47 -0800 (PST) Received: from ernst.home (p5B023A45.dip0.t-ipconnect.de. [91.2.58.69]) by smtp.gmail.com with ESMTPSA id m15sm1118786wrq.97.2019.11.06.23.53.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 23:53:47 -0800 (PST) Date: Thu, 7 Nov 2019 08:53:46 +0100 From: Gary Jennejohn To: Dirk-Willem van Gulik Cc: FreeBSD Hackers Subject: Re: apm on amd64 (FreeBSD 12.1) Message-ID: <20191107085346.6e2fd7aa@ernst.home> In-Reply-To: <5ae77a59-81a4-881f-9f85-e2ad966b3e17@webweaving.org> References: <5ae77a59-81a4-881f-9f85-e2ad966b3e17@webweaving.org> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 477wdT6WZjz4GCL X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=piMkbhq/; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::32d as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[gljennjohn@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[69.58.2.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; FREEMAIL_REPLYTO(0.00)[gmail.com]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[d.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.10), ipnet: 2a00:1450::/32(-2.76), asn: 15169(-2.01), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2019 07:53:50 -0000 On Wed, 6 Nov 2019 20:58:19 +0100 Dirk-Willem van Gulik wrote: > After a recent upgrade to 12.1 release - I noticed that > rc.d/apm is specific to i386; and cannot be enabled on amd64. > > Does that mean that AMD64 laptops no longer need APM for good > power management* ? Any man-page or 'updating' notes one can > study to understand ? > > *) As prior; enabling it on an Thinkpad X270 appeared to make > the battery last a lot longer during lengthy suspends. > apm seems to have been replaced by acpi(4). -- Gary Jennejohn From owner-freebsd-hackers@freebsd.org Thu Nov 7 18:06:37 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C9F21BB6B2 for ; Thu, 7 Nov 2019 18:06:37 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 478BDX3JZwz43CN; Thu, 7 Nov 2019 18:06:36 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: by mail-wm1-x342.google.com with SMTP id 8so3507062wmo.0; Thu, 07 Nov 2019 10:06:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-language:thread-index; bh=f6HzcpfT0RMiPEy1xVS0/RYUOXG2KhUMmf6xATCe4xU=; b=Y/44TgLSoPrBgBlqmCQYThMd5dfaSx0dmG9AufnZzEZOloC2vcIzRl2pha9A1zZBrI S0hKIItK8LEdQknfgrmZ9E+t+l68CTvW8NnwCcUFZLk0OYD3IpNOil1UCv92HGKl4keZ BuyvVwzJGOTaGmSw5khmvTH6gK1xVTJVEFKvW7U+YAu/c1br43hRzcWwtwpgvx/74T4L QZu7icD6hNglo+Tb0pqqeMESM7lUTo7WwFcsIdCaOh7HURi3qJ4sKUujl2pwLX8pW8EB EYFyYUd2uJnqrSAmHFxeQkAgqhabQygzSH+DZYCqj8c4t0Bz4dyutewdJC/NDXge3BH3 hihA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-language:thread-index; bh=f6HzcpfT0RMiPEy1xVS0/RYUOXG2KhUMmf6xATCe4xU=; b=MCB52yR9xogS1MYF1aTem2+Nq43ch6B/5KLi6dquntj7bb41gYRpkDL/7Jw9r+AaC3 5kYkHRVJOEbnNytSuxA59FXr9Ew3r32i/Svs9NurTkr0bOAzq6lRWXWpKJ4EBXX6OPbc 0R0TCBjVuZSwbqbaBzdDKgUgAdj1gDB/WZWctIQXRvhTtQVxCoDHTBaBwty9lzsIdrg0 Wajzo3HZPlSjF9jUcgTJp0wMRjIdlEzvpD1KJYwRUYgrtk2JXHgp4W8J6j6Y4UlygMTp /RVEjCAVW6MPCiV9O/lx2he2FruHXGdFgvdGqeGk5kLsWl4QqEw+ITnhFsuvUFWSMqCK kGdw== X-Gm-Message-State: APjAAAV0cY7+T8jZD7hlzeS/9QEJ+csoc8G9vN7IVHQ5f0IX6IPN0mLW Wo2ZPI93hNkOHAZVzRayCAkDMk7ZbMk= X-Google-Smtp-Source: APXvYqxdfQt5bYDpyMGoPupRH+4W3s5BhNmNn/fNrn/1RfR/dmxkfISNVUMmRjWEJIXjFseN+nfFYg== X-Received: by 2002:a1c:3d08:: with SMTP id k8mr3924625wma.119.1573149993243; Thu, 07 Nov 2019 10:06:33 -0800 (PST) Received: from DRIESPC (ptr-8shtsnup5aq9glbwplp.18120a2.ip6.access.telenet.be. [2a02:1811:2500:6b00:bd62:64de:8233:e89d]) by smtp.gmail.com with ESMTPSA id t12sm2767372wrx.93.2019.11.07.10.06.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 10:06:31 -0800 (PST) From: To: "'Julian Elischer'" , "'Andriy Gapon'" , References: <002101d594d0$9b2a3280$d17e9780$@gmail.com> <30a5f191-46ef-48e2-5fb4-395a1f1bd370@FreeBSD.org> <9a6336d2-2ab2-a2ae-8258-91a3cbdd3e02@freebsd.org> In-Reply-To: <9a6336d2-2ab2-a2ae-8258-91a3cbdd3e02@freebsd.org> Subject: RE: Getting jedec_dimm to work Date: Thu, 7 Nov 2019 19:06:32 +0100 Message-ID: <000501d59596$169e16f0$43da44d0$@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0006_01D5959E.7862CD10" X-Mailer: Microsoft Outlook 16.0 Content-Language: nl-be Thread-Index: AQF2WESrVRmi+sh1idMRkXBCK0j6VAHYMPjWAaTFcv6oIpF7kA== X-Rspamd-Queue-Id: 478BDX3JZwz43CN X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Y/44TgLS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of driesmmichiels@gmail.com designates 2a00:1450:4864:20::342 as permitted sender) smtp.mailfrom=driesmmichiels@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; HAS_ATTACHMENT(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (2.76), ipnet: 2a00:1450::/32(-2.76), asn: 15169(-2.01), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FROM_NO_DN(0.00)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2019 18:06:37 -0000 This is a multipart message in MIME format. ------=_NextPart_000_0006_01D5959E.7862CD10 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable > On 11/6/19 3:24 PM, Andriy Gapon wrote: > > On 06/11/2019 20:32, driesm.michiels@gmail.com wrote: > >> Hi hackers mailing list, > >> > >> > >> > >> I'm playing around with jedec_dimm to pick up my memory modules so = I > >> can monitor temperature and read information from the SPD. > >> > >> Although I'm kind of stuck at the point where I am as there really > >> should not be anything more to it. > > Are you sure that your DIMMs have the temperature sensor? No but they do have an SPD so that=E2=80=99s the minimal information I = would expect to see. > > Are you sure that the DIMMs are connected to smbus0? > > Do you have an smbus driver attached at all? > > > > A bit more information about your hardware and kernel configuration > would help. Dmesg attached, see below for a summarized answer. > > It is typical to share a dmesg at least. >=20 > Expanding on what Andriy said, a "hint" is information from the = configuration > files TO a driver as to where to look for something, and not a = confirmation > that it found it. Honestly, I kinda *assumed* it was a common interface used on every = motherboard. This seems a *very* wrong assumption, as I just went through my dmesg = and I didn't see any smbus getting detected.. I guess the driver won't work without one? Or is it possible to get the = driver attached over another bus/interface that my system has? =20 > >> ATM I load the module through kld_list in rc.conf and have the > >> following in my device.hints as suggested in the man pages: > >> > >> > >> > >> hint.jedec_dimm.0.at=3D"smbus0" > >> > >> hint.jedec_dimm.0.addr=3D"0xa0" > >> > >> hint.jedec_dimm.1.at=3D"smbus0" > >> > >> hint.jedec_dimm.1.addr=3D"0xa2" > >> > >> hint.jedec_dimm.2.at=3D"smbus0" > >> > >> hint.jedec_dimm.2.addr=3D"0xa4" > >> > >> hint.jedec_dimm.3.at=3D"smbus0" > >> > >> hint.jedec_dimm.3.addr=3D"0xa6" > >> > >> hint.jedec_dimm.4.at=3D"smbus0" > >> > >> hint.jedec_dimm.4.addr=3D"0xa8" > >> > >> hint.jedec_dimm.5.at=3D"smbus0" > >> > >> hint.jedec_dimm.5.addr=3D"0xaA" > >> > >> hint.jedec_dimm.6.at=3D"smbus0" > >> > >> hint.jedec_dimm.6.addr=3D"0xaC" > >> > >> hint.jedec_dimm.7.at=3D"smbus0" > >> > >> hint.jedec_dimm.7.addr=3D"0xaE" > >> > >> > >> > >> Although when rebooting nothing gets detected/reported or printed = on > >> the console. > >> > >> Is it possible that it does not work through kld_list or should it > >> not matter, if so why is that? Just curious =3D) > >> > > > > ------=_NextPart_000_0006_01D5959E.7862CD10 Content-Type: application/octet-stream; name="dmesg.today" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="dmesg.today" ---<>--- Copyright (c) 1992-2019 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 12.1-STABLE r354128 VADOS amd64 FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on = LLVM 8.0.1) VT(efifb): resolution 1024x768 Skipping TSC calibration since no legacy devices reported by FADT and = CPUID works CPU: Intel(R) Xeon(R) CPU E3-1245 v5 @ 3.50GHz (3500.00-MHz K8-class = CPU) Origin=3D"GenuineIntel" Id=3D0x506e3 Family=3D0x6 Model=3D0x5e = Stepping=3D3 = Features=3D0xbfebfbff = Features2=3D0x7ffafbff AMD Features=3D0x2c100800 AMD Features2=3D0x121 Structured Extended = Features=3D0x29c6fbf Structured Extended Features3=3D0x9c000000 XSAVE Features=3D0xf VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory =3D 68719476736 (65536 MB) avail memory =3D 66755768320 (63663 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 hardware threads random: unblocking device. ioapic0 irqs 0-119 on motherboard Launching APs: 1 3 4 6 2 5 7 Timecounter "TSC-low" frequency 1750000000 Hz quality 1000 random: entropy device external interface random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" kbd0 at kbdmux0 000.000041 [4336] netmap_init netmap: loaded module nexus0 efirtc0: on motherboard efirtc0: registered as a time-of-day clock, resolution 1.000000s cryptosoft0: on motherboard acpi0: on motherboard acpi0: Power Button (fixed) cpu0: on acpi0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 24000000 Hz quality 950 Event timer "HPET" frequency 24000000 Hz quality 550 atrtc0: port 0x70-0x77 irq 8 on acpi0 atrtc0: Warning: Couldn't map I/O. atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 mpr0: port 0xe000-0xe0ff mem = 0xdf440000-0xdf44ffff,0xdf400000-0xdf43ffff irq 16 at device 0.0 on pci1 mpr0: Firmware: 14.00.00.00, Driver: 23.00.00.00-fbsd mpr0: IOCCapabilities: = 7a85c vgapci0: port 0xf000-0xf03f mem = 0xde000000-0xdeffffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0 vgapci0: Boot video device xhci0: mem = 0xdf720000-0xdf72ffff irq 16 at device 20.0 on pci0 xhci0: 32 bytes context size, 64-bit DMA usbus0 on xhci0 usbus0: 5.0Gbps Super Speed USB v3.0 pci0: at device 22.0 (no driver attached) pci0: at device 23.0 (no driver attached) pcib2: irq 16 at device 28.0 on pci0 pci2: on pcib2 xhci1: mem 0xdf600000-0xdf607fff irq = 16 at device 0.0 on pci2 xhci1: 32 bytes context size, 64-bit DMA xhci1: Unable to map MSI-X table=20 usbus1 on xhci1 usbus1: 5.0Gbps Super Speed USB v3.0 pcib3: irq 18 at device 28.2 on pci0 pci3: on pcib3 igb0: mem = 0xdf100000-0xdf1fffff,0xdf200000-0xdf203fff irq 18 at device 0.0 on pci3 igb0: Using 1024 TX descriptors and 1024 RX descriptors igb0: Using 4 RX queues 4 TX queues igb0: Using MSI-X interrupts with 5 vectors igb0: Ethernet address: a0:36:9f:cd:7d:e7 igb0: netmap queues/slots: TX 4/1024, RX 4/1024 pcib4: irq 16 at device 29.0 on pci0 pci4: on pcib4 nvme0: mem 0xdf500000-0xdf503fff irq 16 at device = 0.0 on pci4 isab0: at device 31.0 on pci0 isa0: on isab0 pci0: at device 31.2 (no driver attached) em0: mem 0xdf700000-0xdf71ffff = irq 16 at device 31.6 on pci0 em0: Using 1024 TX descriptors and 1024 RX descriptors em0: Using an MSI interrupt em0: Ethernet address: 4c:cc:6a:28:3e:a3 em0: netmap queues/slots: TX 1/1024, RX 1/1024 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_tz0: on acpi0 acpi_tz1: on acpi0 orm0: at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0 est0: on cpu0 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec ugen1.1: <0x1b21 XHCI root HUB> at usbus1 ugen0.1: <0x8086 XHCI root HUB> at usbus0 uhub0: <0x1b21 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on = usbus1 uhub1: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on = usbus0 mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x0009> enclosureHandle<0x0001> slot 3 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000a> enclosureHandle<0x0001> slot 2 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000b> enclosureHandle<0x0001> slot 0 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000c> enclosureHandle<0x0001> slot 1 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000d> enclosureHandle<0x0001> slot 7 mpr0: At enclosure level 0 and connector name ( ) nvd0: NVMe namespace nvd0: 488386MB (1000215216 512 byte sectors) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000e> enclosureHandle<0x0001> slot 6 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x000f> enclosureHandle<0x0001> slot 4 mpr0: At enclosure level 0 and connector name ( ) mpr0: Found device <881,End Device> <6.0Gbps> = handle<0x0010> enclosureHandle<0x0001> slot 5 mpr0: At enclosure level 0 and connector name ( ) Trying to mount root from zfs:zroot/ROOT/default []... da1 at mpr0 bus 0 scbus0 target 1 lun 0 da1: Fixed Direct Access SPC-4 SCSI device da1: Serial Number W6A1WL8Y da1: 600.000MB/s transfers da1: Command Queueing enabled da1: 2861588MB (5860533168 512 byte sectors) da0 at mpr0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SPC-4 SCSI device da0: Serial Number W6A1XYMY da0: 600.000MB/s transfers da0: Command Queueing enabled da0: 2861588MB (5860533168 512 byte sectors) da5 at mpr0 bus 0 scbus0 target 5 lun 0 da5: Fixed Direct Access SPC-4 SCSI device da5: Serial Number W6A1XZ7B da5: 600.000MB/s transfers da5: Command Queueing enabled da5: 2861588MB (5860533168 512 byte sectors) da6 at mpr0 bus 0 scbus0 target 6 lun 0 da6: Fixed Direct Access SPC-4 SCSI device da6: Serial Number W6A1M7A2 da6: 600.000MB/s transfers da6: Command Queueing enabled da6: 2861588MB (5860533168 512 byte sectors) da2 at mpr0 bus 0 scbus0 target 2 lun 0 da2: Fixed Direct Access SPC-4 SCSI device da2: Serial Number W6A1XDXW da2: 600.000MB/s transfers da2: Command Queueing enabled da2: 2861588MB (5860533168 512 byte sectors) da3 at mpr0 bus 0 scbus0 target 3 lun 0 da3: Fixed Direct Access SPC-4 SCSI device da3: Serial Number W6A1XB8T da3: 600.000MB/s transfers da3: Command Queueing enabled da3: 2861588MB (5860533168 512 byte sectors) da7 at mpr0 bus 0 scbus0 target 7 lun 0 da7: Fixed Direct Access SPC-4 SCSI device da7: Serial Number W6A1M7ET da7: 600.000MB/s transfers da7: Command Queueing enabled da7: 2861588MB (5860533168 512 byte sectors) da4 at mpr0 bus 0 scbus0 target 4 lun 0 da4: Fixed Direct Access SPC-4 SCSI device da4: Serial Number W6A1XBHT da4: 600.000MB/s transfers da4: Command Queueing enabled da4: 2861588MB (5860533168 512 byte sectors) uhub0: 4 ports with 4 removable, self powered uhub1: 26 ports with 26 removable, self powered ugen0.2: at usbus0 ukbd0 on uhub1 ukbd0: = on usbus0 kbd1 at ukbd0 aesni0: on motherboard coretemp0: on cpu0 drmn0: on vgapci0 vgapci0: child drmn0 requested pci_enable_io vgapci0: child drmn0 requested pci_enable_io [drm] Unable to create a private tmpfs mount, hugepage support will be = disabled(-19). Failed to add WC MTRR for [0xc0000000-0xcfffffff]: -22; performance may = suffer [drm] Got stolen memory base 0x8c000000, size 0x4000000 [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] Driver supports precise vblank timestamp query. [drm] Connector HDMI-A-1: get mode from tunables: [drm] - kern.vt.fb.modes.HDMI-A-1 [drm] - kern.vt.fb.default_mode [drm] Connector HDMI-A-2: get mode from tunables: [drm] - kern.vt.fb.modes.HDMI-A-2 [drm] - kern.vt.fb.default_mode [drm] Connector DP-1: get mode from tunables: [drm] - kern.vt.fb.modes.DP-1 [drm] - kern.vt.fb.default_mode [drm] Connector HDMI-A-3: get mode from tunables: [drm] - kern.vt.fb.modes.HDMI-A-3 [drm] - kern.vt.fb.default_mode [drm] Initialized i915 1.6.0 20171222 for drmn0 on minor 0 VT: Replacing driver "efifb" with new "fb". start FB_INFO: type=3D11 height=3D1024 width=3D1280 depth=3D32 cmsize=3D16 size=3D5242880 pbase=3D0xc0040000 vbase=3D0xfffff800c0040000 name=3Ddrmn0 flags=3D0x0 stride=3D5120 bpp=3D32 cmap[0]=3D0 cmap[1]=3D7f0000 cmap[2]=3D7f00 cmap[3]=3Dc4a000 end FB_INFO drmn0: fb0: inteldrmfb frame buffer device drmn0: successfully loaded firmware image with name: = i915/skl_dmc_ver1_27.bin [drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27) lo0: link state changed to UP igb0: link state changed to UP em0: link state changed to UP ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to = accept, logging disabled Security policy loaded: MAC/ntpd (mac_ntpd) tun0: link state changed to UP ------=_NextPart_000_0006_01D5959E.7862CD10-- From owner-freebsd-hackers@freebsd.org Thu Nov 7 18:15:51 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DDAC31BBF74 for ; Thu, 7 Nov 2019 18:15:51 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 478BRB6Njyz44q3; Thu, 7 Nov 2019 18:15:50 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lj1-f182.google.com with SMTP id r7so3359048ljg.2; Thu, 07 Nov 2019 10:15:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=WN/stkKID7EwauH9bzcEnNZIamA2V9HaU+2g27Up3Xo=; b=RY9qxV8bf0ePbK5+4wouN0dLLBZby4H07DF4RAOtNNN88udRgHzMYL6rKZLz52XunH EX7Ct/+NtBnD5mp/vPSfjTD05J2K5QOQElIHRdnzDBmHjUugXWqrl6KpEUGd5c5QCrhb 8ZIjwtYG+OzAxVhS2tud08ggHhbDDeKzPCWrCw3Z9dYj3X+Grf1qZ+Kgg02qjem+ekni O6mz1K6BVfMraL+o3o5IApup0U50kbbcDq7ybw/NvTkZ6DCeogVaduFMtoqUPvjGeUlp 10sVMp92lO5LPf7Bo5a1+WtLhdjU7wDSD2rlg8bLw0c2kWeFc7VnZ7e90HPPjJmGu8Ha K9Iw== X-Gm-Message-State: APjAAAXtmxcO/v4cMhpZ3E1d+JSRgELNWHjrUQvxtkLpWXnRs6gQvHhK OQwmZK1n1vmTGEa36AYFFxhLtMUPxsM= X-Google-Smtp-Source: APXvYqyFUn7+jcRk0YXf/i/juUl6CYw/rmRDNLVAM5F16B4F226P8miu/pF8uuBtCek1z2NyJW74WA== X-Received: by 2002:a2e:9841:: with SMTP id e1mr3479155ljj.19.1573150548917; Thu, 07 Nov 2019 10:15:48 -0800 (PST) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id o26sm1236869lfi.57.2019.11.07.10.15.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Nov 2019 10:15:48 -0800 (PST) Subject: Re: Getting jedec_dimm to work To: driesm.michiels@gmail.com, 'Julian Elischer' , freebsd-hackers@freebsd.org References: <002101d594d0$9b2a3280$d17e9780$@gmail.com> <30a5f191-46ef-48e2-5fb4-395a1f1bd370@FreeBSD.org> <9a6336d2-2ab2-a2ae-8258-91a3cbdd3e02@freebsd.org> <000501d59596$169e16f0$43da44d0$@gmail.com> From: Andriy Gapon Openpgp: preference=signencrypt Autocrypt: addr=avg@FreeBSD.org; prefer-encrypt=mutual; keydata= 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 Message-ID: Date: Thu, 7 Nov 2019 20:15:47 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <000501d59596$169e16f0$43da44d0$@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 478BRB6Njyz44q3 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of agapon@gmail.com designates 209.85.208.182 as permitted sender) smtp.mailfrom=agapon@gmail.com X-Spamd-Result: default: False [-3.16 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[avg@FreeBSD.org,agapon@gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[96.151.72.93.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[avg@FreeBSD.org,agapon@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[FreeBSD.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[182.208.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.16)[ip: (-0.54), ipnet: 209.85.128.0/17(-3.20), asn: 15169(-2.01), country: US(-0.05)]; RWL_MAILSPIKE_POSSIBLE(0.00)[182.208.85.209.rep.mailspike.net : 127.0.0.17]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2019 18:15:51 -0000 On 07/11/2019 20:06, driesm.michiels@gmail.com wrote: > Honestly, I kinda *assumed* it was a common interface used on every motherboard. > This seems a *very* wrong assumption, as I just went through my dmesg and I didn't see any smbus getting detected.. > I guess the driver won't work without one? Or is it possible to get the driver attached over another bus/interface that my system has? No, you do need an smbus. Check with pciconf -lv if you have any device without a driver that looks like it could be an SMBus controller. Maybe ichsmb driver will work for you (kldload ichsmb). -- Andriy Gapon From owner-freebsd-hackers@freebsd.org Thu Nov 7 18:45:53 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A1F041BCF8D; Thu, 7 Nov 2019 18:45:53 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 478C5r4xLqz47k9; Thu, 7 Nov 2019 18:45:51 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id xA7Ijh0U012948 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 7 Nov 2019 10:45:43 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id xA7Ijht5012947; Thu, 7 Nov 2019 10:45:43 -0800 (PST) (envelope-from sgk) Date: Thu, 7 Nov 2019 10:45:43 -0800 From: Steve Kargl To: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: [PATCH] Typo in libm code Message-ID: <20191107184543.GA12924@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 478C5r4xLqz47k9 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu X-Spamd-Result: default: False [-1.27 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; NEURAL_HAM_MEDIUM(-0.97)[-0.966,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.979,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[washington.edu]; AUTH_NA(1.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; IP_SCORE(-0.23)[ip: (0.06), ipnet: 128.95.0.0/16(-0.29), asn: 73(-0.85), country: US(-0.05)]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2019 18:45:53 -0000 This patch https://cvsweb.openbsd.org/src/lib/libm/src/ld80/k_sincosl.h?sortby=date is applicable to FreeBSD. Index: src/k_sincosl.h =================================================================== --- src/k_sincosl.h (revision 353571) +++ src/k_sincosl.h (working copy) @@ -28,8 +28,8 @@ #define C1 ((long double)C1hi + C1lo) #else static const long double -C1 = 0.0416666666666666666136L; /* 0xaaaaaaaaaaaaaa9b.0p-68 */ -S1 = -0.166666666666666666671L, /* -0xaaaaaaaaaaaaaaab.0p-66 */ +C1 = 0.0416666666666666666136L, /* 0xaaaaaaaaaaaaaa9b.0p-68 */ +S1 = -0.166666666666666666671L; /* -0xaaaaaaaaaaaaaaab.0p-66 */ #endif static const double -- Steve From owner-freebsd-hackers@freebsd.org Thu Nov 7 18:45:58 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1ECD61BCFAD for ; Thu, 7 Nov 2019 18:45:58 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 478C5x5hbhz47mm; Thu, 7 Nov 2019 18:45:57 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: by mail-wr1-x42e.google.com with SMTP id p2so4291192wro.2; Thu, 07 Nov 2019 10:45:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-transfer-encoding:content-language:thread-index; bh=ye95uB3viu6dD7c5iuQHvqol/FbDckHAXvM4APPHxak=; b=nMRSupUukAnZk3wjSuS5Sp/kA+kB7cfsZx64IZ8K/bMNvo8CE9U5WycBm52VvOP8gd fLBlLQ363UDnj+4GLeYmIXWPK+DzglEkF6+VQAmVklBcQYM5ZVG7Pv5hx7ZU40hzeiJn XDhEh7Hh5tFqoHklhNgPGKR03OfvjNil9nNwh2kD1T7o/r4nCkkyLJmas+T/t46BnGWW rNn9mDO8VEQRO67OdbAkc0yI/F9ek69XYYcspVPct3mDKoAPB3onOoPIxtAJcMB/PWGQ S9aULQeD/ubdbncEBH+N2EkfnZmafqDoUeY0TIoC1KD2btEluoXNeFMuRcvwU+PWCsQ4 1JKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:content-language :thread-index; bh=ye95uB3viu6dD7c5iuQHvqol/FbDckHAXvM4APPHxak=; b=chPGjc0SADK8eRLSbbAtFuf60mSkDB4lCLhmQ6mJlCGnCJyWxUZtXWkITbOHcPW1vS whkUFZmCta0MDiOfAhTXoLmCvTJN9UshKXY7QX55VqN57/308ekQn94hiIxWaOgeH32u 7x5g7X4SEXJYopQSifdQ1SyeeEhucIypRc7ycL5casDPg5pNXmZ7dQ42sK/Yj/F92xXX FzcnMuMtlxHjoI2uE7uQW4q6LYTnwL3IVsCLeslXN3qcUYe9TFgRjE3xdsAk09m2sQcY li5sbh5obVmAxq2Uky47o0Q0KNeHDfNAhxplL3XQVcgZfj51ayIuYv6+ajhVNWsJhgJp OoIg== X-Gm-Message-State: APjAAAVUIA/Pfj0Y7ieipuCmWkeAGmVCpV+azjKNG6vK3BWCDC3DNxMB 6HY+XFrnQ2FA10ZGoIdgm3/yVk9RRS8= X-Google-Smtp-Source: APXvYqwGXeKpoi1nLfhwQBw4Thbx/C1DK/gFSI2gD8heIcJjiCSwKib2zFIdPIKqZ7hwSvBKfDyEKA== X-Received: by 2002:adf:fec7:: with SMTP id q7mr4440926wrs.267.1573152354311; Thu, 07 Nov 2019 10:45:54 -0800 (PST) Received: from DRIESPC (ptr-8shtsntsjqs87g44i0b.18120a2.ip6.access.telenet.be. [2a02:1811:2500:6b00:81d6:c466:f233:682b]) by smtp.gmail.com with ESMTPSA id y19sm4164747wmd.29.2019.11.07.10.45.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 10:45:53 -0800 (PST) From: To: "'Andriy Gapon'" , "'Julian Elischer'" , References: <002101d594d0$9b2a3280$d17e9780$@gmail.com> <30a5f191-46ef-48e2-5fb4-395a1f1bd370@FreeBSD.org> <9a6336d2-2ab2-a2ae-8258-91a3cbdd3e02@freebsd.org> <000501d59596$169e16f0$43da44d0$@gmail.com> In-Reply-To: Subject: RE: Getting jedec_dimm to work Date: Thu, 7 Nov 2019 19:45:54 +0100 Message-ID: <000d01d5959b$963f54a0$c2bdfde0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: nl-be Thread-Index: AQF2WESrVRmi+sh1idMRkXBCK0j6VAHYMPjWAaTFcv4BXr6JTgKNOMfDqAM99EA= X-Rspamd-Queue-Id: 478C5x5hbhz47mm X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2019 18:45:58 -0000 After loading the suggested driver and changing the = hint.jedec_dimm.*.at=3D"smbus0" to hint.jedec_dimm.*.at =3D"ichsmb0" Everything is working smooth. Thanks! A reboot was not even needed! ichsmb0@pci0:0:31:4: class=3D0x0c0500 card=3D0x79981462 = chip=3D0xa1238086 rev=3D0x31 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '100 Series/C230 Series Chipset Family SMBus' class =3D serial bus subclass =3D SMBus I'll submit some minor extra's to the man page if that=E2=80=99s OK. Detailing a bit more how to find the correct location of the dimms and = the correct driver to load (with pciconf). Regards & thanks again!=20 Dries -----Original Message----- > From: Andriy Gapon > Sent: donderdag 7 november 2019 19:16 > To: driesm.michiels@gmail.com; 'Julian Elischer' ; > freebsd-hackers@freebsd.org > Subject: Re: Getting jedec_dimm to work >=20 > On 07/11/2019 20:06, driesm.michiels@gmail.com wrote: > > Honestly, I kinda *assumed* it was a common interface used on every > motherboard. > > This seems a *very* wrong assumption, as I just went through my = dmesg > and I didn't see any smbus getting detected.. > > I guess the driver won't work without one? Or is it possible to get = the driver > attached over another bus/interface that my system has? >=20 > No, you do need an smbus. > Check with pciconf -lv if you have any device without a driver that = looks like it > could be an SMBus controller. > Maybe ichsmb driver will work for you (kldload ichsmb). >=20 > -- > Andriy Gapon From owner-freebsd-hackers@freebsd.org Thu Nov 7 19:32:56 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A8D661BE3E4; Thu, 7 Nov 2019 19:32:56 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 478D8744R0z4CLq; Thu, 7 Nov 2019 19:32:55 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 2577A3C0199; Thu, 7 Nov 2019 19:32:49 +0000 (UTC) Date: Thu, 7 Nov 2019 19:32:49 +0000 From: Brooks Davis To: Steve Kargl Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: [PATCH] Typo in libm code Message-ID: <20191107193249.GA95473@spindle.one-eyed-alien.net> References: <20191107184543.GA12924@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: <20191107184543.GA12924@troutmask.apl.washington.edu> User-Agent: Mutt/1.9.4 (2018-02-28) X-Rspamd-Queue-Id: 478D8744R0z4CLq X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of brooks@spindle.one-eyed-alien.net has no SPF policy when checking 199.48.129.229) smtp.mailfrom=brooks@spindle.one-eyed-alien.net X-Spamd-Result: default: False [-6.51 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[freebsd.org]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; RCVD_COUNT_ZERO(0.00)[0]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; IP_SCORE(-3.61)[ip: (-9.44), ipnet: 199.48.128.0/22(-4.71), asn: 36236(-3.85), country: US(-0.05)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2019 19:32:56 -0000 --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 07, 2019 at 10:45:43AM -0800, Steve Kargl wrote: > This patch >=20 > https://cvsweb.openbsd.org/src/lib/libm/src/ld80/k_sincosl.h?sortby=3Ddate >=20 > is applicable to FreeBSD. >=20 > Index: src/k_sincosl.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- src/k_sincosl.h (revision 353571) > +++ src/k_sincosl.h (working copy) > @@ -28,8 +28,8 @@ > #define C1 ((long double)C1hi + C1lo) > #else > static const long double > -C1 =3D 0.0416666666666666666136L; /* 0xaaaaaaaaaaaaaa9b.0p-68 */ > -S1 =3D -0.166666666666666666671L, /* -0xaaaaaaaaaaaaaaab.0p-66 */ > +C1 =3D 0.0416666666666666666136L, /* 0xaaaaaaaaaaaaaa9b.0p-68 */ > +S1 =3D -0.166666666666666666671L; /* -0xaaaaaaaaaaaaaaab.0p-66 */ > #endif > =20 > static const double Committed in r354467. -- Brooks --17pEHd4RhPHOinZp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdxHFfAAoJEKzQXbSebgfAUCEH/jcT+kFYNZLaMjzpu/4gP7WD LPc0AuHB/zVoJreyt5ip8TVIPOv9xdXyF//wefItNuf1ShN9uzmugcUazykChifY Gt2n1uZBy1i0DGIjfa4I3As26ilvlj0eBvnv3+jI37rVCk7LFCxkRkVn0LcHN792 aQD8fvz+a0EkbWeEqMdrFHv4faXvAKliiJD7WVJpk/TPk+caBCvil85YadxSVp+H CoEfeLuXl31wL0tq9/wDS3nwW7H+zEefNxyFY5jk1p7dIfikSE0hdAEgdAzBPLUZ HyQMAv9qV4dvZ3BMwpWVqszGN36jGyH6cQasG0ygW2FU8xFbUUaGLynFIueAxj0= =skbg -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp-- From owner-freebsd-hackers@freebsd.org Thu Nov 7 19:46:18 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D22811BEBC1 for ; Thu, 7 Nov 2019 19:46:18 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 478DRY1v92z4DYD; Thu, 7 Nov 2019 19:46:16 +0000 (UTC) (envelope-from driesm.michiels@gmail.com) Received: by mail-wm1-x336.google.com with SMTP id a17so4889272wmb.0; Thu, 07 Nov 2019 11:46:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-transfer-encoding:content-language:thread-index; bh=KGcXJmHxFmXOuQWduL0grqw8faMUMW48+tueHiAUkaI=; b=fySrEYxY+4DkWFoVu6Zpb/988ZabTdigUeLbWxRLbHZ1eAxfAIuGKshRUZXlHs6ydl ZtvEcgjvTwDmGP0ML49yvnEi4YA1/lTshPLxaD+xWs17R36WkgzUGJHA8MStKIoR1sQ0 c5PP8HST89VaCSLkf77fHz2rs3mzwBfl6q4Ig23z60sQ0nNS5h67KK11P8vwZ+UJRV75 hyE6NpL5DUK4f78kBC6oUXpiGYj5btbpBS9PbG0wsYcBVuQskGGsW5frQtv7LxTV168r AFtKf9upwTAihEihvYzDlBEdj4cVfUZ1EvILg88ardsGOCU7prsELdNblXyPJdox3j7E YFWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:content-language :thread-index; bh=KGcXJmHxFmXOuQWduL0grqw8faMUMW48+tueHiAUkaI=; b=kJB6JksFXMElBrsArEpI2JVX9G0cLbcppxXEAYudglt8Xv8nTDJ3dgSzSskPAjoP3w hq8xFUfq7AUcIZa9WycyXHLq6qIYkF+FrkzKv9OlfUW8mUb3zrAqV7jgegup1WrDWfMT 2LQTfXeFRoKP81KAUBgNmt/2dK6SoJEXOroeB3jLM6T34EXPTag61wNU6awyZImiwsqH 50d/LzCghAXXWVOkeP6/nbuLhKsgfABGEK9AQKbxJCMdvYmIuI4469iKhQeZhN1vVAuV HxuDuJIREsJMTFNyyH8nIWNM36yjwDQbu0kIPm8FDv8ImJhLaGf4cKvQV8Dmk2ZkO88d mXEw== X-Gm-Message-State: APjAAAV5DaJSMRjwwL83MsqKXiuvDswjkcJ7veDVWI22hr7oImjHaoGa 7XovceY0NG++Z4wKG1eHeq+R9dAYxdE= X-Google-Smtp-Source: APXvYqzBGw4MKmKWayz3hksVopH96OtCIf5AX+4/+VMqbKmaOD1Xbrnc8qdzHV6PqOMDAl9HzicH6A== X-Received: by 2002:a7b:cf36:: with SMTP id m22mr4754417wmg.96.1573155975066; Thu, 07 Nov 2019 11:46:15 -0800 (PST) Received: from DRIESPC (ptr-8shtsntsjqs87g44i0b.18120a2.ip6.access.telenet.be. [2a02:1811:2500:6b00:81d6:c466:f233:682b]) by smtp.gmail.com with ESMTPSA id a10sm5052414wrg.0.2019.11.07.11.46.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 11:46:14 -0800 (PST) From: To: "'Andriy Gapon'" , "'Julian Elischer'" , References: <002101d594d0$9b2a3280$d17e9780$@gmail.com> <30a5f191-46ef-48e2-5fb4-395a1f1bd370@FreeBSD.org> <9a6336d2-2ab2-a2ae-8258-91a3cbdd3e02@freebsd.org> <000501d59596$169e16f0$43da44d0$@gmail.com> <000d01d5959b$963f54a0$c2bdfde0$@gmail.com> In-Reply-To: <000d01d5959b$963f54a0$c2bdfde0$@gmail.com> Subject: RE: Getting jedec_dimm to work Date: Thu, 7 Nov 2019 20:46:15 +0100 Message-ID: <001a01d595a4$047f3b80$0d7db280$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: nl-be Thread-Index: AQF2WESrVRmi+sh1idMRkXBCK0j6VAHYMPjWAaTFcv4BXr6JTgKNOMfDAUQfGwqn+S6WEA== X-Rspamd-Queue-Id: 478DRY1v92z4DYD X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=fySrEYxY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of driesmmichiels@gmail.com designates 2a00:1450:4864:20::336 as permitted sender) smtp.mailfrom=driesmmichiels@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.39), ipnet: 2a00:1450::/32(-2.76), asn: 15169(-2.01), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[6.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FROM_NO_DN(0.00)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2019 19:46:18 -0000 > -----Original Message----- > From: driesm.michiels@gmail.com > Sent: donderdag 7 november 2019 19:46 > To: 'Andriy Gapon' ; 'Julian Elischer' = ; > freebsd-hackers@freebsd.org > Subject: RE: Getting jedec_dimm to work >=20 > After loading the suggested driver and changing the > hint.jedec_dimm.*.at=3D"smbus0" to hint.jedec_dimm.*.at =3D"ichsmb0" Sorry for the noise, but never mind the change in hint.jedec_dimm*.at. = It was just a matter of loading the correct driver =3D). > Everything is working smooth. Thanks! A reboot was not even needed! >=20 > ichsmb0@pci0:0:31:4: class=3D0x0c0500 card=3D0x79981462 = chip=3D0xa1238086 > rev=3D0x31 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D '100 Series/C230 Series Chipset Family SMBus' > class =3D serial bus > subclass =3D SMBus >=20 > I'll submit some minor extra's to the man page if that=E2=80=99s OK. > Detailing a bit more how to find the correct location of the dimms and = the > correct driver to load (with pciconf). >=20 > Regards & thanks again! > Dries >=20 > -----Original Message----- > > From: Andriy Gapon > > Sent: donderdag 7 november 2019 19:16 > > To: driesm.michiels@gmail.com; 'Julian Elischer' = ; > > freebsd-hackers@freebsd.org > > Subject: Re: Getting jedec_dimm to work > > > > On 07/11/2019 20:06, driesm.michiels@gmail.com wrote: > > > Honestly, I kinda *assumed* it was a common interface used on = every > > motherboard. > > > This seems a *very* wrong assumption, as I just went through my > > > dmesg > > and I didn't see any smbus getting detected.. > > > I guess the driver won't work without one? Or is it possible to = get > > > the driver > > attached over another bus/interface that my system has? > > > > No, you do need an smbus. > > Check with pciconf -lv if you have any device without a driver that > > looks like it could be an SMBus controller. > > Maybe ichsmb driver will work for you (kldload ichsmb). > > > > -- > > Andriy Gapon From owner-freebsd-hackers@freebsd.org Fri Nov 8 10:50:50 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DC5BD1AE0EA for ; Fri, 8 Nov 2019 10:50:50 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 478cWG0K2Qz4B3b for ; Fri, 8 Nov 2019 10:50:49 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-pf1-f175.google.com with SMTP id 193so4257958pfc.13 for ; Fri, 08 Nov 2019 02:50:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=sEzPih84YDVnn3tQDizrPFc6jAULOgwGEYDS+Knpw2g=; b=fQ1f017LD2X2G4OL8qB08Oq4tYfn6D1fmmEF3A84kKhlUxefqfgc9iRBxD0kI1V2qV M5omDTc+gnb97YLnLvbevYd6Jw6agUbjEtmkiwuvdbPGWlLzsLv++UT7DKqUGwG69qN/ tHTmAhio0gRGwUuphIdJQI+3ZxCsztWVo7c/oqhWDO+TD8HSk4zTX6N2Bc9/n/rgnMkz 89i9tO0RVWsmsBuanm3IRugSIOP12VWA9AOL0509qQY0S2sgL5J/de4nFAjqstOFgz1W iaL1Yt+JISVotXjGJ7IuFoyHdl3OT/u6LA+/uvfzihKN1tvnbSkRFRycMkpePtSbK0v8 XUsA== X-Gm-Message-State: APjAAAWcyiswg6EdgKHMLynRxYwjN1ToAhkQ1cPR31xE2gwQxP63coU1 s95LwL+/ReNsBWdccHktLLSnaFAaLQ4= X-Google-Smtp-Source: APXvYqyWOLdi4jQ9MdhZQNzCdz+Zb9iowSvVw7nlw3PQ6jJviZZqzDpxyqQ5nfzrpDWSMaGgG5DZGA== X-Received: by 2002:aa7:92c9:: with SMTP id k9mr11026894pfa.155.1573210247680; Fri, 08 Nov 2019 02:50:47 -0800 (PST) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com. [209.85.214.181]) by smtp.gmail.com with ESMTPSA id d9sm6732148pgc.80.2019.11.08.02.50.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Nov 2019 02:50:47 -0800 (PST) Received: by mail-pl1-f181.google.com with SMTP id l4so3883873plt.13 for ; Fri, 08 Nov 2019 02:50:47 -0800 (PST) X-Received: by 2002:a17:902:6807:: with SMTP id h7mr9907566plk.288.1573210246973; Fri, 08 Nov 2019 02:50:46 -0800 (PST) MIME-Version: 1.0 From: Gleb Popov Date: Fri, 8 Nov 2019 14:50:21 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: My code causes "ata0: already running" error and hang in VirtualBox VM To: freebsd-hackers X-Rspamd-Queue-Id: 478cWG0K2Qz4B3b X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.210.175 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-4.02 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; URI_COUNT_ODD(1.00)[3]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_IN_DNSWL_NONE(0.00)[175.210.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-3.02)[ip: (-9.85), ipnet: 209.85.128.0/17(-3.20), asn: 15169(-2.01), country: US(-0.05)]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[175.210.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; RCVD_TLS_ALL(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2019 10:50:50 -0000 Hello, hackers@ I'm facing an issue that I'm unable to debug, so decided to ask for an advice here. The project I'm working on is bsdisks - an implementation of UDisks2 daemon for FreeBSD. Amongst other things it tries to find out if a gived disk (from a list reported by geom disk list) has "removable" property. For that, it run the same code that `camcontrol identify && camcontrol inquiry` runs [1]. However, I got reports that this code causes the following error message when bsdisks is run on a FreeBSD system virtualized under VirtualBox: ata0: already running! ata0: timeout waiting for ATAPI ready ata0: error issuing ATA PACKET command Right after this message the system goes into a strange state, when It can't run any new processes. After a while, the system hangs completely with additional message, something like "out of memory", but I can't reproduce it now. The strangest thing is that this error can be reproduced **once per host reboot**. That is, restarting a VM causes the problem to go away. To reproduce the hang again, I have to reboot host machine (even unloading/loading vbox kernel modules doesn't work). I tried to create a minimal reproducing program, but failed. Just calling cam_is_removable() from empty main() doesn't trigger the hang. I also tried simulating race conditions by calling cam_is_removalbe from different threads, as well as using mutex in bsdisks - still no luck. I'm completely lost there, so hoping someone can shed some light on this heisenbug. Reproduction steps are as simple as # pkg install bsdisks # bsdisks on both FreeBSD 11 and 12 in a VirtualBox VM. Thanks in advance. [1] https://bitbucket.org/arrowd/bsdisks/src/3e6fcb56763c14afb55c69cad3703543de41373f/camcontrol.c#lines-179 From owner-freebsd-hackers@freebsd.org Fri Nov 8 12:40:22 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8505A1B14A7 for ; Fri, 8 Nov 2019 12:40:22 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 478fxd191Lz4JWd for ; Fri, 8 Nov 2019 12:40:20 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: by mail-wr1-x434.google.com with SMTP id a11so6903600wra.6 for ; Fri, 08 Nov 2019 04:40:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=inStPXaKjsMjg8PhgQ8tZ7qM00WL0zZkt9mnXlXbYa8=; b=WmM7tpIpNeNpSMrzdpVdkZM1GCMNbqBb1IUk4/EOBIZbAjEYCD0sNVJ6UhPjs1xU2s UF2fn5h5cwzyUZxetC2JGWAbVEC3ORSt91BWaxSQuFGAFm4kY0rRLn0TmF1qsjAvaAM7 VpvqOXdc53w/Kl882k2qGWYhCqowkv7SiylAD5IfVQsDVunFQkpnzpxqFU07rtsKyf0V ifejI8sm4NqWCpus0zpdT2xXNmHJRuhPzclpqZt1E/FUCgxGKzlUqyVxUi2ZKkIT99UN PVZHXCSD9aVaaC8/jcOQLZwnyHGaEKJHysZ3oztiG69iFj+UKqJe9sUNV2Xosh9zG6JJ +zpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=inStPXaKjsMjg8PhgQ8tZ7qM00WL0zZkt9mnXlXbYa8=; b=l04qyJuQEGiiJeFZLX1JXZhnh4oKKxn+nWH00USe+q9rH1oa1cZqjMRnEyJFNYy1ze hiBsRC5d6PisUL8S/JtOpHXL86Y5fNOoeoLjbLp5agQY1EmncA6uUqro9r3O/SSzfW5+ CzRr+kFSnpUkEzd25jers/wDZZ6SqFVEAzkj/TCPkVL+l5afHFWOtMGXhyBOKn99rHBh c4IfUbGfxjGEE0yi6UeMxA9RxQT+gBRQcTrGjYy7WKIGpj40xew+GKSzJ1N/tPwRQbL+ /tIccQ2GuxrZRd/trw+nEZoxrl9EgEyaTe/9nx6audyjJOQ16eAvrhRw4vkGTSeKQCFz NZag== X-Gm-Message-State: APjAAAWoYhBBtuZ1SmXr1hjI1e+/wjZufIOrURR2SHaXw0HZHQ9lu3Ce I1KWTF58x98CF/dWeT+1uZMibd+y X-Google-Smtp-Source: APXvYqybEelp/JToojt6gzEss/WkuDl8FGV88iuyMOHDXqEJ1G1k4/efv4WaIaGhIAzNRvwNznN/LA== X-Received: by 2002:adf:e506:: with SMTP id j6mr8442432wrm.19.1573216819580; Fri, 08 Nov 2019 04:40:19 -0800 (PST) Received: from localhost ([213.149.52.223]) by smtp.gmail.com with ESMTPSA id e27sm8602580wra.21.2019.11.08.04.40.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 04:40:19 -0800 (PST) Date: Fri, 8 Nov 2019 13:39:00 +0100 From: Domagoj =?UTF-8?Q?Smol=C4=8Di=C4=87?= To: freebsd-hackers Subject: Hang at stage 3 boot (Race condition?) loader Message-ID: <20191108133900.0000594c@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 478fxd191Lz4JWd X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=WmM7tpIp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rank1seeker@gmail.com designates 2a00:1450:4864:20::434 as permitted sender) smtp.mailfrom=rank1seeker@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.51), ipnet: 2a00:1450::/32(-2.76), asn: 15169(-2.01), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[4.3.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2019 12:40:22 -0000 Yo crew! So, after upgrading from 11.1 to >=3D11.2 or >=3D12.0 boot would halt, just= after stage 3 loader, during kernel booting. In my case it always halts at line: em0: port ... This is very old SuperMicro P4SC8 board and kernel is custom(11.3). When that happens, only hardware reset is possible. I did debugging which included many manual reboots/resets and waiting to hi= t enter at a targeted boot point(read further below), which is totally anno= ying and retarded. So I narrowed down it to MBR and behind (to BIOS). Fix: -- At MBR stage 1 boot in booteasy's menu, if I press enter once, very early, = boot will succeed. Pressing it a few seconds later, while still at above stage, will cause a h= ang later on. -- Will it fail or not, I can see at the beginning of stage 3 boot. If BTX hangs for a while, just after it printed BIOS disc A, C, D, E ..., b= oot always fails with hang at em0. If I press enter as described, BTX will just "flash" through BIOS disc list= and boot will always succeed. Boot also succeeds without my intervention if I: Unplug secondary SATA disk =3D> No BTX hang Disable em0 in BIOS =3D> BTX hangs, BUT boot succeeds anyway! Pressing enter at stage3's menu, has no effect. Adding '-v' to boot.config shows detailed info when it is already too late. Boot codes (stage 1 & 2) haven't been touched since 9 or 10 REL, I think. I didn't want to reinstall them, because if it would fix a problem, how wou= ld I know the cause. Additionally, I have a special bsdlabel layout. I've split / and /boot into= different labels, where /boot is 'a'. I won't go into details, unless this proves to be a culprit, but then again= , it did worked up to <=3D11.1. Domagoj Smol=C4=8Di=C4=87 From owner-freebsd-hackers@freebsd.org Sat Nov 9 05:00:44 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 057BD17D71A for ; Sat, 9 Nov 2019 05:00:44 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4794hq090rz4LMV for ; Sat, 9 Nov 2019 05:00:42 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-lf1-x142.google.com with SMTP id y6so6065974lfj.2 for ; Fri, 08 Nov 2019 21:00:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mime-version :content-transfer-encoding; bh=rpadJ8cJM40TY+oth+aBo8ZC4ng/31X6UhXc6ptS1w4=; b=m0QbsT+ieyd0GjcQRcpncYIKVAzm9hVAgwTI6FWNVixPicFAzQWNYWpkwWW9vWKbNS 1ch301xliDbXST1UjjaOselGxkSLjAA5fk+rr2A18Ak5l0kpJPqDW1vdQTrCtZ6r2M7g /jEMTJmNbmfpGltn83k4C3FpU1wuL7zukMw7sofLGQHeeAwWZ1kdl8t4fL4hEZ/xLEvX BfJXgFFagf6SFVD6P1+nMiU+rA2HRIG8fWxR3quYOpwlk0cEM7+z1tDiwzX5XpJ5/Zdj D3OZcfqgQMEjMy2lx7W1S7NPKSuf9ZaU+NU8RFl7H/BthbN5I2Uzcp9z1IOqFqddIsvF tPtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mime-version :content-transfer-encoding; bh=rpadJ8cJM40TY+oth+aBo8ZC4ng/31X6UhXc6ptS1w4=; b=IZ1hOVxObwrZZ5pv2wFFy1vzcJvHts9mJ9ux3OFs9TqvySfwAORIjRyuZLmXrtfRZ0 ckuFGzDlAvzV15hb9XFyC5Wvl4l4sgjh8DznHZlGlICASbbZgscvtzidGvAzROJkJlwf cLCaxqiXPjh1n9ZsDt7WmQw4N0IHylPdejuNJ6ON/aB5p6hV9gbdol+c5HRqzj4mAxNR ApsszMnfEeuHpa5Tijx/1+KZtPUqb6cYagGFYCUIKrih/9i14IkO0SbbLvOt9itrYl01 oD/rOu3RfVLgffGUNAOYhDZdb7603P3ga0tRTKarv+rSF16S279vE85HT6kChbwg21s+ IWgg== X-Gm-Message-State: APjAAAXiKSDr5YzFoGfGZWT3Ct1TFxeE+Ydj/RAwIADC3jIR1Bffob7R aTC2v3gsa/KYs++RrdswJ8itDBq+ X-Google-Smtp-Source: APXvYqysKspDcp1qIK1lULMPRajOepahlH7kmbniV6b787haJKSg6JpntpzyscrPO+3Ky4P6SE0jyA== X-Received: by 2002:ac2:5144:: with SMTP id q4mr9151061lfd.36.1573275638249; Fri, 08 Nov 2019 21:00:38 -0800 (PST) Received: from rimwks ([2001:470:1f15:3d8:7285:c2ff:fe37:5722]) by smtp.gmail.com with ESMTPSA id y21sm3439920ljm.25.2019.11.08.21.00.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 21:00:37 -0800 (PST) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Sat, 9 Nov 2019 08:00:32 +0300 To: freebsd-hackers@freebsd.org, Hans Petter Selasky , Johannes Lundberg , Rozhuk Ivan Subject: Linux PCI drivers in user space Message-ID: <20191109080032.231cd203@rimwks> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4794hq090rz4LMV X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=m0QbsT+i; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rozhukim@gmail.com designates 2a00:1450:4864:20::142 as permitted sender) smtp.mailfrom=rozhukim@gmail.com X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.00)[ip: (2.81), ipnet: 2a00:1450::/32(-2.75), asn: 15169(-2.01), country: US(-0.05)]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Nov 2019 05:00:44 -0000 Hi! Im frustrating with amdgpu on 12.1... Current status DRM with linuxkpi - it hard to use and hard to support. FreeBSD stable have no fresh drivers, FreeBSD current - unstable. But we have webcamd: + almost all time fresh drivers from linux + easy to pull drivers from linux + easy to debug + on crash - system continue work + more secure - driver limited to process memory - probably a bit slower If add some kernel module that will export all pci devices and allow to mmap() pci device memory to user space and somehow proxy IRQ (like events to poll()/kqueue()), IO ports and registers then webcamd will can work with this like it now works with USB devices, and fbsd users can use latest DRM and some other drivers. Also adding sysctl settings to webcamd devices will be very useful. Porting and updating drivers in user space webcamd easy then do same in kernel. Also all latest drivers will work on all actual FreeBSD versions. From owner-freebsd-hackers@freebsd.org Sat Nov 9 10:43:17 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 948991A59BD for ; Sat, 9 Nov 2019 10:43:17 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 479DJ45XfSz4bk4 for ; Sat, 9 Nov 2019 10:43:15 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id A2C4F26021C; Sat, 9 Nov 2019 11:43:07 +0100 (CET) Subject: Re: Linux PCI drivers in user space To: Rozhuk Ivan , freebsd-hackers@freebsd.org, Johannes Lundberg References: <20191109080032.231cd203@rimwks> From: Hans Petter Selasky Message-ID: Date: Sat, 9 Nov 2019 11:42:11 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20191109080032.231cd203@rimwks> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 479DJ45XfSz4bk4 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-4.92 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-2.62)[ip: (-9.16), ipnet: 2a01:4f8::/29(-2.26), asn: 24940(-1.68), country: DE(-0.01)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Nov 2019 10:43:17 -0000 On 2019-11-09 06:00, Rozhuk Ivan wrote: > Hi! > > > Im frustrating with amdgpu on 12.1... > Current status DRM with linuxkpi - it hard to use and hard to support. > FreeBSD stable have no fresh drivers, FreeBSD current - unstable. > > But we have webcamd: > + almost all time fresh drivers from linux > + easy to pull drivers from linux > + easy to debug > + on crash - system continue work > + more secure - driver limited to process memory > - probably a bit slower > > > If add some kernel module that will export all pci devices and > allow to mmap() pci device memory to user space and somehow proxy > IRQ (like events to poll()/kqueue()), IO ports and registers then > webcamd will can work with this like it now works with USB devices, > and fbsd users can use latest DRM and some other drivers. > Also adding sysctl settings to webcamd devices will be very useful. > > Porting and updating drivers in user space webcamd easy then do same > in kernel. > Also all latest drivers will work on all actual FreeBSD versions. Hi, This is how X11 / X.org used to work. The biggest problem is sharing memory between applications if you put everything in user-space. I've been using the new DRM for a while, i915, and there aren't so many issues if you know what you are doing. The biggest problem is keeping the ports-modules up-to-date with the kernel re-builds. What might make life easier is to include the graphics drivers in base, though that might be a bit controversial .... Webcamd is a great tool for drivers, but is mostly focused around USB device. It could probably support PCI devices too, but then I guess libpci would need to be extended. And I would appreciate if more people would be interested contributing to webcamd, now on github :-) --HPS From owner-freebsd-hackers@freebsd.org Sat Nov 9 11:27:40 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 45CAD1A689E for ; Sat, 9 Nov 2019 11:27:40 +0000 (UTC) (envelope-from damjan.jov@gmail.com) Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 479FHH0zZ9z4dPC for ; Sat, 9 Nov 2019 11:27:38 +0000 (UTC) (envelope-from damjan.jov@gmail.com) Received: by mail-il1-x12d.google.com with SMTP id m5so7533466ilq.0 for ; Sat, 09 Nov 2019 03:27:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:cc; bh=2yC8tEE284MYw6+rkafNyKehVng7pelMFLcgRX1OlrI=; b=ciqxC0sYiYXjQfAjnVoSb9wXWzEXlFPQa2XYx7pOLxpctlb03JS3QB2jMFKHP8PWH1 UinRYcS8KCU4hHmjXY/vsYfmDLeXNUdNvL1HTgfksOiudFVA/pVI0BSmIDchLUFyMre1 81fTzuaN+G53QP/3FDTW4lWMvOHzK6U06fXhlX9B78SrEinovKdvbqVOOOD4vBaYV3AH Aqw89MydX5nTBf/WegROf2Wd1Ioo4YVeKRhnbZj3KaOkhJQKjxQOxcZrYPQKjd/KkKGD Wzwqgjn6VSKL6uwmX12uskKTzRJq9rlhgD99aehpspFXqYxrZrLfbzH0KKpz1t0ti4MU KjtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:cc; bh=2yC8tEE284MYw6+rkafNyKehVng7pelMFLcgRX1OlrI=; b=o4NtG8A9ARdJCEia2EObTpinXrinNtQyPi0Dvcqtreq/ZL2ruTtBWvQG1x0Hko3llr UjjS8WwFrTCjr+aqgMLa1BbJ86WozlAaj7gR/MsFZ469obLxcwz3Kn/Tv8ClaumMBZRP Ghu3OAScVL247Fg7qJSaOVGPzm2NIQ/6uxVBWs3cGVrw5VwDSwsZwirz1pk7B527dWBj 1SZk7DVubnyXUjCKz84ATM/+zdWYoTDeZNpp8PmbFqjS3eKUpctLwx6U0CmkjvFlK7KH ihEaOFWWS0TQMiJ7cj6oLVaNwvk4eoC5m/u8C9wxlrPvC0qWNtrhUQY1621Js6U5eb9M /FBA== X-Gm-Message-State: APjAAAUB+VmULazOpwzuKyhOLFYwX0Bu9MzFEqlN0m0sN6c/dEe8NMjs FkXqhUeuvxK6sfjVUBkRP2DZw/Lh4GLRZMQxGU1Y8ifiAzhCVw== X-Google-Smtp-Source: APXvYqw5hiW0mF4sKjQLwkn99KFHZWZVsnqUszFKm3A1pC6IdaD7yQ1NBeIfvQ2jF4idBIDNfbSogEkyMOUfJ9dc2Nk= X-Received: by 2002:a92:8d19:: with SMTP id s25mr18782362ild.273.1573298857530; Sat, 09 Nov 2019 03:27:37 -0800 (PST) MIME-Version: 1.0 References: <20191109080032.231cd203@rimwks> In-Reply-To: <20191109080032.231cd203@rimwks> From: Damjan Jovanovic Date: Sat, 9 Nov 2019 13:24:20 +0200 Message-ID: Subject: Re: Linux PCI drivers in user space Cc: Hackers freeBSD X-Rspamd-Queue-Id: 479FHH0zZ9z4dPC X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ciqxC0sY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of damjanjov@gmail.com designates 2607:f8b0:4864:20::12d as permitted sender) smtp.mailfrom=damjanjov@gmail.com X-Spamd-Result: default: False [-1.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MISSING_TO(2.00)[]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-8.84), ipnet: 2607:f8b0::/32(-2.34), asn: 15169(-2.00), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[d.2.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Nov 2019 11:27:40 -0000 On Sat, Nov 9, 2019 at 7:00 AM Rozhuk Ivan wrote: > Hi! > > > Im frustrating with amdgpu on 12.1... > Current status DRM with linuxkpi - it hard to use and hard to support. > FreeBSD stable have no fresh drivers, FreeBSD current - unstable. > > But we have webcamd: > + almost all time fresh drivers from linux > + easy to pull drivers from linux > + easy to debug > + on crash - system continue work > + more secure - driver limited to process memory > - probably a bit slower > > > If add some kernel module that will export all pci devices and > allow to mmap() pci device memory to user space and somehow proxy > IRQ (like events to poll()/kqueue()), IO ports and registers then > webcamd will can work with this like it now works with USB devices, > and fbsd users can use latest DRM and some other drivers. > Also adding sysctl settings to webcamd devices will be very useful. > > Porting and updating drivers in user space webcamd easy then do same > in kernel. > Also all latest drivers will work on all actual FreeBSD versions. > > (resent from the right source address...) Hi When last I checked, NVidia's driver interfaced with the BIOS, power management, the x86 global descriptor table, and all kinds of other low level hardware systems. Other graphics cards are probably similar. It will take much more than just user-space PCI, to be able to run their drivers in user space. And if we do somehow get all-user-space graphics card drivers working, then why would we want the Linux drivers? The Windows graphics stack is a lot more actively developed. Wine and NDISulator both work with Windows drivers, to some degree. Mac drivers might also be worth a look.