From owner-freebsd-hackers@freebsd.org Mon Nov 18 12:21:57 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 0A5261BE4B3 for ; Mon, 18 Nov 2019 12:21:57 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (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 47Gp3l2YNSz3PsS for ; Mon, 18 Nov 2019 12:21:54 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id xAICLpGV049408 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 18 Nov 2019 13:21:51 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1574079711; bh=S6ZXhR83HGnp/WI80Ql6LPEq1BmnLWbnCUdNrcKYZPY=; h=Date:From:To:Subject; b=Q5UxGLANQJ3X7COjOI/GnYNtRkFyzclrhaaHT1sGdAqUXAflErELTq4FVkYLSqksW Xaj7R1zumNujlZAnl0M8y7PjHkH+EcJPGIhhHK8dAx2nfh6rZd4uwQiJ+5QQ+PwLQn CBOzg7+7Dij450dBIwwQtZ5jQbIUvqtGn85OYlGQ= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id xAICLpvm049403 for ; Mon, 18 Nov 2019 13:21:51 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Mon, 18 Nov 2019 13:21:51 +0100 (CET) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Subject: future BHYVE plans Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 47Gp3l2YNSz3PsS X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=Q5UxGLAN; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-4.72 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.976,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; DMARC_NA(0.00)[puchar.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-3.44)[ip: (-9.10), ipnet: 194.1.144.0/24(-4.55), asn: 43476(-3.64), country: PL(0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(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: Mon, 18 Nov 2019 12:21:57 -0000 are full VGA emulation/vga rendering planned to be done? This is the only feature that bhyve really lacks. From owner-freebsd-hackers@freebsd.org Mon Nov 18 13:09:47 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 897E91BF755 for ; Mon, 18 Nov 2019 13:09:47 +0000 (UTC) (envelope-from crest@rlwinm.de) Received: from mail.rlwinm.de (mail.rlwinm.de [138.201.35.217]) (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 47Gq6y4HfLz4Q0m for ; Mon, 18 Nov 2019 13:09:46 +0000 (UTC) (envelope-from crest@rlwinm.de) Received: from crest.bultmann.eu (unknown [IPv6:2a00:c380:c0d5:1:8b7:b0e5:ebb6:daf2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.rlwinm.de (Postfix) with ESMTPSA id 04B4021FB6 for ; Mon, 18 Nov 2019 13:09:38 +0000 (UTC) Subject: Re: future BHYVE plans To: "freebsd-hackers@freebsd.org >> FreeBSD Hackers" References: From: Jan Bramkamp Message-ID: <6d3f30bf-418e-f574-ea20-2888e8442058@rlwinm.de> Date: Mon, 18 Nov 2019 14:09:37 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 47Gq6y4HfLz4Q0m X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of crest@rlwinm.de designates 138.201.35.217 as permitted sender) smtp.mailfrom=crest@rlwinm.de X-Spamd-Result: default: False [-2.40 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.992,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[rlwinm.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.98)[-0.983,0]; IP_SCORE(-0.12)[ipnet: 138.201.0.0/16(1.05), asn: 24940(-1.64), country: DE(-0.01)]; TO_DN_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:138.201.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: Mon, 18 Nov 2019 13:09:47 -0000 On 18.11.19 13:21, Wojciech Puchar wrote: > are full VGA emulation/vga rendering planned to be done? > > This is the only feature that bhyve really lacks. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" Bhyve has a working framebuffer. It is good enough to install an operating system, but don't expect it to improve much beyond that. What do you are you looking for that a VNC, X11 or RDP server running inside the guest can't offer? From owner-freebsd-hackers@freebsd.org Mon Nov 18 14:41:11 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 0C4AF1C16B7 for ; Mon, 18 Nov 2019 14:41:11 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (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 47Gs8P3tZ0z3R15 for ; Mon, 18 Nov 2019 14:41:09 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id xAIEf5ER043896 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 18 Nov 2019 15:41:06 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1574088066; bh=SFmJ1sazlDSEnd/QYgR4IXNoJWLWQkRFAklF0jBCxlk=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=a3jNI9/z3kb13a7B9xcHCQyr5BpnKgrbbTpSm235KhTKGSUV5jIBvFrJlVwccyTrK XejHlrGsFExY9rkD93kpOHWQIxNmt2pCf9AajyNAVlWz4xvRV4rEfupY9KOhjBga50 Svp9G96hNASziZxySbgrAlErNfhSAbVq4wOOe4X8= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id xAIEf5kR043889; Mon, 18 Nov 2019 15:41:05 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Mon, 18 Nov 2019 15:41:05 +0100 (CET) From: Wojciech Puchar To: Jan Bramkamp cc: "freebsd-hackers@freebsd.org >> FreeBSD Hackers" Subject: Re: future BHYVE plans In-Reply-To: <6d3f30bf-418e-f574-ea20-2888e8442058@rlwinm.de> Message-ID: References: <6d3f30bf-418e-f574-ea20-2888e8442058@rlwinm.de> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 47Gs8P3tZ0z3R15 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=a3jNI9/z; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-4.73 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[puchar.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-3.43)[ip: (-9.07), ipnet: 194.1.144.0/24(-4.53), asn: 43476(-3.63), country: PL(0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(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: Mon, 18 Nov 2019 14:41:11 -0000 >> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > Bhyve has a working framebuffer. It is good enough to install an operating > system, but don't expect it to improve much beyond that. What do you are you no. i am looking on possibility to just copy an image of running OS/software from real computer to bhyve. including windows XP. From owner-freebsd-hackers@freebsd.org Mon Nov 18 16:36:01 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 CEDD81C3CC8 for ; Mon, 18 Nov 2019 16:36:01 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (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 47Gvhw4cjyz44dd for ; Mon, 18 Nov 2019 16:36:00 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-pg1-x52b.google.com with SMTP id r18so9850450pgu.13 for ; Mon, 18 Nov 2019 08:36:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=Zf+/MV8nJbqBvPByBDf7CFdML/WIYna+Mg8Tfb/5N2g=; b=AbKZwo1k3aIkd85CZK9TYxCuAd7d6w8TlNLceSyYYGvnPTq6UFx8GLMkuQsq0l78FF fghCSIgZ+9tpyfC8MnnqPU6yBg6CkQJ6i0CpeSQBVpqBti5GYOt3u2a0M7kSRIScZCQY QStjW4LowPOymkIep1zuUmXvlPTNk5g8DY1AOyft925AJAUAViYKDMR/JU65fEhaNQX0 ZxXWyOvGP4Ljny8pDlYhLeKBj5GrV0Ey2y2Rf8swUG8eNKXKO8ncOAx38luizHJWPJib a//ZJCiWH9EjhEjJpDQ8qx/sB5+G2TEBNzFouZbLnEgixEuk4evPKIE69uUuhXXp5UKs E2Nw== 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:autocrypt:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Zf+/MV8nJbqBvPByBDf7CFdML/WIYna+Mg8Tfb/5N2g=; b=TR7IheAN2KqZf8XzYaKmTg22kszPYsxWeD0Im7hLtcTVa+kPaoR9jv2O02wixrtumL GmGYzeIbAD4eHMj47Kw2ZsSdIZBLTGNeqkpejAyxTEby0i3CuFM7EKCFsarN5OjFdBMu EV4R9NSlOAAZ6FuCkKc4facU6dJoAVdgtoP0NiNcPkZeEbHhNIihhzbceNz7+TCE4bOU x+KnbsNu+Tm1wMuAkQxR09/NAaiJkwOQkCDTuqo416hyg9+zZKeiaZnd2tLUt+ZbOIXx sbOdVd0vkLUX8dr5UhhuXg+9pf9bfH+EfAORmgKWLSS+19ka7VzffM6C4HW/pNmMS5OM HM6A== X-Gm-Message-State: APjAAAX4vjLOTkcytwvuISrYrqQjKylsbVBWDiDfVNUhaSDigvpE4bZs agEWuTVgMy03Su/NH4qCimd52Ri7 X-Google-Smtp-Source: APXvYqwwkeynca+tq7veOQIxShjwyqBSxx63NjAiDEYd96TnzeSeZdXqhJeGKbrgJ+Owjzq6vfUZjA== X-Received: by 2002:a63:792:: with SMTP id 140mr142405pgh.427.1574094958402; Mon, 18 Nov 2019 08:35:58 -0800 (PST) Received: from [10.50.7.175] (wsip-184-181-13-226.ph.ph.cox.net. [184.181.13.226]) by smtp.gmail.com with ESMTPSA id d8sm20618362pfo.47.2019.11.18.08.35.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Nov 2019 08:35:57 -0800 (PST) Subject: Re: future BHYVE plans To: Wojciech Puchar , freebsd-hackers@freebsd.org References: From: Johannes Lundberg Autocrypt: addr=johalun0@gmail.com; keydata= mQINBFxFmoIBEADoFO5jY+Fmsg44KiZjufEmpEf4kt7nCOfxNG9SruWpoXUaq0B296F+fIZC hNZqv1v7lGTsfoWRusxJmLd5CQgHHxEyruZbbPpNsQ/JKoDY3GGmrmWfN/SX3y0t0kdB9HsW mJcvZhK7we52f4gxddIVBS9nQoVoONX+hzXf8zwOAa0ik0EPgEwpIKS4j9lLq4bU+mqVKdRR bPeDujEA/qbsCKhaFJkPzXZtzEe6srq4RK1doEztwnKz02b+8gs642TRkWDQeTRZputrAaoN Un4R76A1QpXWyrFG1dQu48IGHi3KbkrvNyq6R1aUBIA0+CG1npIbxmc2mtSjoyvdipmDRbBD +mhECIxmYfBT6818zuj91XjrfOyfVdV2BryBvqFkJLkS3N3QElBIiVdDgdrqiNFWiOlDMxNI tdP16oQBNo8IB27/0YHpnQEw1MafZv5gG5DO0zLtLy88ASAfL7BYf90JP19rT4JIwnxsXxyv kEJnzhsXf0QVObEiAu1MqeFyWfZ8PpunmvEmJ0VChOL+v/kIx1E9cxhhzMZhqiMXfyM4zx2+ BF1FwAwJYPuJLu2B3L0uVBu+M1YvSOmKAbXPDP8PsqPjgSBTYI51MUjuuxN6jSsHDuK6G5k4 pUWR8axa+wafhd6Vz8zVwdTJZ9LdxgLLVg0kprBgccPHhPAZVQARAQABtCZKb2hhbm5lcyBM dW5kYmVyZyA8am9oYWx1bjBAZ21haWwuY29tPokCVAQTAQgAPhYhBIl1Pb3+hI60ivmRSULn yG4BGvSeBQJcRZqCAhsjBQkJZgGABQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEELnyG4B GvSe9O0P/RzeQAu1R37RlONZTXNn+qIAHvHbZEhzrCibzaZnwYdC31wGrYmXNDyiQIqOngFf QJuufQtH/+95OESJsjR+42L/pNfFdaEWxiI003qE7uCMzLK5UWUXd/5d5vYY0CaPyNCj1tyM ZIq7x4CaR3QLTh/Fw4zMUI/ZPH2S5SxVFGv0ZZFAdNYILD3qCkAS/9HmXsqufBWbfutA8TTf wyJfywmvf7ENjlZ4QOjb242ZY9NndqbmqTgWVAws+PN5e9AT8HkadscCTCSkYnxJyYG2El27 DpAAkekYplb/C0j82KSz2fy9RgwD+tTqt88DJOeFbIbrYt44u7KLHpzaZeqyUtn0reHCkE0W lnKH2kXXbuswFB4sONxI/J5+qSmOsAm5ItO3voyjm/swpmFR1yBlxo4th26gbO5NfBOK9YsY zHKgiRDv6ZdnHo+htphRxcCDHsFPzkQe5jouI25dvMZYl1LaTS/09lwYVwVIB2SFmMtFZ7rB N4NBSzPlpsg+g4dJNqiw6Rfa2Q/wUv+MzTJgLtHjDccXlpm33Nc09UytHFtNn26PO/zrM39r TwzdLu1mg0x2WWEWTIqe4CaczQU9SIg49BSyJNoPSZx3V7nMhTKbOeQKR5aV3dXI66aENw86 pa1tipuUKCPmope/GTJatUgPiD3JkyiD+7c1zQX2UAGmuQINBFxFmoIBEACb55RAkM59huAx 4Ddd8WBjsw25qf7rzxeRKAQ7or/8LvJBYQDPXZy0RhkRiu+P+MjxwGb6HVh+LDyAYDn9d8Mt ZqCP/dOGNcl7pkb6IhfRc3i5neckXCYfbm0cigiX9JkqZSt3KT96zbjCxsFZKyIyEFsMl46q 7wKWK5Irj3zxV/Z51JNTJyMLcIRWhY8G6qlMNFgZkz2Hv63w6BRekKVImOmOdThLAscy5ybq 2CIUeAwPG7lMYG9rgcPdn3tMPeWlLmUmi5pSwOQ3AKg3xFrW3WfegjRHdqpeuXoeTjYPPCW4 gyl59uv6E12a6eivItCxj67vlBXgOr4um+zoPyXG/WfidIFtWaEgyBrlGR1Klk7SIcqjEHUA FdiM+PweY4opHXXKn60NOZCqBJ59K43drOQgRouz8E2T3yEoYg40xAfY3lhJV/Vx5+kSTjmy sT2xotlPn/GzfaAEvNuJDK+Mec3LvfbbDoOWFolNyEvoMQqF5Q3A8eGqYsoVGBPxyzNvF2iY LkymxiXpgrSN0Q/LOK7pFlWwbVC8Z6g5I0J9ecgD55dGLoX2luLir787XX/JxGffzbRnP9NE ifenJGrQmx4CyEaz/CHQqSbROm5Uo/YFUX9J7OfUO4mtu90j773j32I3psey/Fz3EC/A2PHv Ghb0KsWYpS3Pj5TV1gGyswARAQABiQI8BBgBCAAmFiEEiXU9vf6EjrSK+ZFJQufIbgEa9J4F AlxFmoICGwwFCQlmAYAACgkQQufIbgEa9J7qOQ//YG/4e69YTSjtiYLXzBI8tRU2Sx+NFByx zx+C/r0EBThLtgRwCqEUZRB7iIDSO8aZ0Qa3vwWRohlD1tn/LBdDFfMmuQkNVdLIrjBoGBB9 B5xHdZJ9xnTZEwpTtk6IWolT4j+8rpGemGKKiFo3X6l02On4Qb4iM7h6rcDb76mfwooNYzB3 8PPcLvyOWb/9iCXAb5N7doo5zmOl15DVwvIF04eXU0q1FFj/iS1zNmtZ5Got82O1TQFV+de4 Rb3YA80IZhhhCiHHJqkMKeKQogRqU+UNDBARUBxfUtKsJtQzTQ2JUGwkb6X6bx53FTLP6O9q hDoODVweE1LdB1k1H5Nn+gawPdRMBqj43Y2amK7KEgoTBrwU04CLpKiaAC0S+EcJFfJcwtpK k3F+uTtP/hnhFnWbn8SgRkHKXKWqSCt63NstXhMzAJut1gEzV+CcPNKqa/sFgQaYEvzCS5Kl F/PXj0++f3TIFqT+2ZNNp8Bz8dT7gh8RPPg5oYQiCHH8K1RAmq7gKqmwyg0qgOazHnped+od X4f3qx320JAP6NP9wglDm6eht48NJzb0sffN8z34wrP66oz8oPKtS5CFV0m/384hEg0lmi3W wo2Hno7rA1etTPJX0dI6/GLlQDtNTHvKQ077HQdWVOMQVWC9j7YH7Zr9NjtOvxcNVRX3fxpJ 6CE= Message-ID: <7655a827-0818-b162-8480-bd3b65a90612@gmail.com> Date: Mon, 18 Nov 2019 09:35:56 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Rspamd-Queue-Id: 47Gvhw4cjyz44dd X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=AbKZwo1k; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of johalun0@gmail.com designates 2607:f8b0:4864:20::52b as permitted sender) smtp.mailfrom=johalun0@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:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-8.56), ipnet: 2607:f8b0::/32(-2.31), asn: 15169(-1.98), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_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)[]; 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)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[b.2.5.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_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: Mon, 18 Nov 2019 16:36:01 -0000 On 2019-11-18 05:21, Wojciech Puchar wrote: > are full VGA emulation/vga rendering planned to be done? > > This is the only feature that bhyve really lacks. I agree, it would be sweet to have something closer to the metal than VNC. As a data point, VirtualBox recently added support for VMSVGA (also used by VMWare). As far as I can tell, vmwgfx (kernel driver for guest), vmsvga (hypervisor part) are all dual or MIT licensed. Maybe that's something we can use? > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@freebsd.org Tue Nov 19 12:06: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 5F23C1B04A9 for ; Tue, 19 Nov 2019 12:06:41 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (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 47HPgh0spPz4P4T for ; Tue, 19 Nov 2019 12:06:39 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id xAJC6an0017680 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 19 Nov 2019 13:06:36 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1574165196; bh=dKqtbM59ww177NNV3tkGu4uA6TLLgfbU0/M+Khndnl0=; h=Date:From:To:Subject; b=rNqMz9+lr6hsiTTaACO7TwHMm2YjzYQONg+45EDp/eFi70LpoU2IJvMY7vZ7ZYGSZ 8CYzToLinNc0LGI7sIMfOh3vgytBS4nuUPttCAvou2byNEoBf2ViOWfBpecrjznpgh GcwImk56SBUW/faIwIerKrW5HwT7ORNx6kqiNjJo= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id xAJC6aDi017677 for ; Tue, 19 Nov 2019 13:06:36 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Tue, 19 Nov 2019 13:06:36 +0100 (CET) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Subject: geom_ssdcache Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 47HPgh0spPz4P4T X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=rNqMz9+l; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-4.72 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; DMARC_NA(0.00)[puchar.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-3.42)[ip: (-9.04), ipnet: 194.1.144.0/24(-4.52), asn: 43476(-3.62), country: PL(0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(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: Tue, 19 Nov 2019 12:06:41 -0000 today SSD are really fast and quite cheap, but still hard drives are many times cheaper. Magnetic hard drives are OK in long reads anyway, just bad on seeks. While now it's trendy to use ZFS i would stick to UFS anyway. I try to keep most of data on HDDs but use SSD for small files and high I/O needs. It works but needs to much manual and semi automated work. It would be better to just use HDD for storage and some of SSD for cache and other for temporary storage only. My idea is to make geom layer for caching one geom provider (magnetic disk/partition or gmirror/graid5) using other geom provider (SSD partition). I have no experience in writing geom layer drivers but i think geom_cache would be my fine starting point. At first i would do read/write through caching. Writeback caching would be next - if at all, doesn't seem good idea except you are sure SSD won't fail. But my question is really on UFS. I would like to know in geom layer if read/write operation is inode/directory/superblock write or regular data write - so i would give the first time higher priority. Regular data would not be cached at all, or only when read size will be less than defined value. Is it possible to modify UFS code to pass somehow a flag/value when issuing read/write request to device layer? From owner-freebsd-hackers@freebsd.org Tue Nov 19 14:05:39 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 CEC881B3F7C for ; Tue, 19 Nov 2019 14:05:39 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (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 47HSJy2Qhjz4X1d for ; Tue, 19 Nov 2019 14:05:38 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-il1-x143.google.com with SMTP id i6so616022ilr.11 for ; Tue, 19 Nov 2019 06:05:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=WpANMSxLdfaJwljh+7ir/eh3IqNDG4Z3WCgsNqiiseI=; b=d3fzOKhtHyAbGrs323hjuo9U+oYReJu1ub1oG0oBAuJsufHc74IdSdGIVHtAIMGoW0 c41y2cIJkN8odTqa5VzK1xO/R0LEm4plx4f8C0g5Mnlqq0bbXMqQdPxbR5kqOLavL6oM AEYiTrns1QZ5Fb3uXknJYGJMjjn/B1mebJ64E= 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; bh=WpANMSxLdfaJwljh+7ir/eh3IqNDG4Z3WCgsNqiiseI=; b=liXdVs2IOvUwa9UJOGLkiFLreg3qqmQRSKzZBY0jUYzC94Brh/JD+/Rl7poRLgg/Z8 AMV1+tmrSATJ/zRLi7+ApTI2XKd6xP6F2RYZO1/nN8CEUB4AJkf8ZSEvhKQ9KZRJ0AnI pHUkC4SU/VrQqKZqYeRUAN7414Fe+1JUMGxNB3FMGe/Qx1l1o+PH20LUr+PHwqH9Iuja 99uO77TV3VGxDxUr/lI8RZkYs6v28zsZ5sGxr7/O6HEaB33JJfO5IktF1154SfK6ZtTR h0ppe2eDMs1qDRRwssDL68L8FLQUCrKmoiJwFa5z9t1qTVZv9MBz0Brv473Ob5M5bNmt MHEQ== X-Gm-Message-State: APjAAAVFSlm2krDjtpv8CuH60j/E9+A/x67yFBEuA9mVl+Xnjkfc2hiu T6CmibQBQc2USb79CTeFj/CrspO3c5qiiuAkys1L22lO X-Google-Smtp-Source: APXvYqyknT+tIpBwfzDNFhxQ3RF1ELmWSkMEtCCFLaKLvVnPp6piapFAixBcXGuD9mKFURv3nw8hiSCBSin5Q3OZx2c= X-Received: by 2002:a92:d648:: with SMTP id x8mr21319499ilp.297.1574172337128; Tue, 19 Nov 2019 06:05:37 -0800 (PST) MIME-Version: 1.0 References: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> <20191102082641.52f64cc8@ernst.home> <20191111172543.74f95d07@ernst.home> In-Reply-To: <20191111172543.74f95d07@ernst.home> From: Mario Lobo Date: Tue, 19 Nov 2019 11:02:43 -0300 Message-ID: Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. To: freebsd-hackers X-Rspamd-Queue-Id: 47HSJy2Qhjz4X1d X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsd.com.br header.s=capeta header.b=d3fzOKht; dmarc=none; spf=pass (mx1.freebsd.org: domain of lobo@bsd.com.br designates 2607:f8b0:4864:20::143 as permitted sender) smtp.mailfrom=lobo@bsd.com.br X-Spamd-Result: default: False [-0.96 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; R_DKIM_ALLOW(-0.20)[bsd.com.br:s=capeta]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; SUBJECT_HAS_CURRENCY(1.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; URI_COUNT_ODD(1.00)[9]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[bsd.com.br]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsd.com.br:+]; RCVD_IN_DNSWL_NONE(0.00)[3.4.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]; NEURAL_HAM_LONG(-0.98)[-0.981,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-0.48)[ip: (1.91), ipnet: 2607:f8b0::/32(-2.30), asn: 15169(-1.98), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; 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: Tue, 19 Nov 2019 14:05:39 -0000 On Mon, Nov 11, 2019 at 1:26 PM Gary Jennejohn wrote: > On Sat, 2 Nov 2019 08:26:41 +0100 > Gary Jennejohn wrote: > > > On Fri, 1 Nov 2019 12:00:01 +0100 > > Dirk-Willem van Gulik wrote: > > > > > On 1 Nov 2019, at 11:48, Gleb Popov wrote: > > > > On Wed, Jun 19, 2019 at 10:22 AM Gleb Popov > wrote: > > > > > > >> I've posted a bounty for this bug: > > > >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204521 > > > > > > > > In case anyone is interested, the bounty is $375 already. > > > > > > It is 450$ now. > > > > > > > This raises several questions: > > 1) which version(s) of FreeBSD? > > 2) how does a developer get his/her hands on a device which uses this > > controller? It is not reasonable to expect a developer will to buy a > > laptop or PCI card just to develop a driver. > > 3) what is the target environment? Laptop? PCI card? Some other > > device with an embedded controller? > > > > So, thanks to the generosity of a FreeBSD user I now have a laptop > on loan with one of the Realtek SD card reader controllers. > > I started working on porting the NetBSD code (basically the same as > the OpenBSD code), but the FreeBSD bus and mmc code is radically > different, so it will take quite a while to get a working driver. > > So far only the pci bus probe code works, but that's a start. > > -- > Gary Jennejohn > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > I Have an Acer with this chip and FBSD 11-3 stable to test this on. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] From owner-freebsd-hackers@freebsd.org Tue Nov 19 14:31:57 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 58E7B1B48EA for ; Tue, 19 Nov 2019 14:31:57 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (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 47HSvJ4KhWz4Ycn for ; Tue, 19 Nov 2019 14:31:56 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x444.google.com with SMTP id l7so24092349wrp.6 for ; Tue, 19 Nov 2019 06:31:56 -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=q1q59S/3HnOl+2vvsw3OD0E8gmOwKXzZ0DN3tkJrPx0=; b=O/3hSMNlM3IaZnaNICjHOdSyzofsTy4mFz5zO+0HEjtZAOIWFdRN4E8mZPHQ2Uvwxc xLJz4y4Xa8hQiOuLJCnBvPx6BLTVzfp2oVY2QhptQha52AjT24ijT7NDXU0Wiz8HKtQP en697qxP6RZ6v52I4X96F0QuMpcV5zuqMsB/E6NeD5hJ1139ceAcdgCNzB1FMsUmxPla 2DP7edY/Jm/8aCz58VdgKQkiGkijWAdQmWmJdcINKAqqZ2vkefshkKBKfC7fXLJr1opE 0ccvlV4pAQ1j+xKVMG3V2Sc3qMTSKK+3ARVpQlrb45j7Ra3Mn52kR9vdr7dpxmONe/S0 h0PA== 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=q1q59S/3HnOl+2vvsw3OD0E8gmOwKXzZ0DN3tkJrPx0=; b=XdrJCEkL7D8WoNGjL3xPn/05gUm+J7M7MGRQMk+8I2DJxgTbPDGoADisxVECFJHDau 5pYDyBWKURz7+ERwL1Ov7mtbsqAi1JujM2IfzgheN/Q8fzXI6u2/omvB3x1r/Xa8qRMu E7J6Y1GmN316BgH5lzkunFmdTVaZV9+L+HH4nOcKEnK/Q6q39cYn0eN3HymoGt1LysVA LxYPjfIRU6v8o2rxQwrThc6891sE76LJ319On7+Hq+BOTHaAhO+1ZvyJaen4VSg3xFXZ ts9zRy9mAW/Td+KZiXP2Vag3dMp0Xp3HUVPLQIX7wlrW5TjmrICpmABC/1ktxA33wKcR lOjA== X-Gm-Message-State: APjAAAXYhl4uu4wJ20MGCdBxtajvnEzGuoy5vCeVIClArJR8Lm5mh5EU G+vjtIBluKpLlmmu58UKyCBjAcvd X-Google-Smtp-Source: APXvYqxeP9WYrnEXbHCOa6cbmduxZrQJxyPBwTM3Gp5c6UInv0laY+DQcYvtq+ryV1b+sk6fVuoa1A== X-Received: by 2002:adf:e68d:: with SMTP id r13mr39954928wrm.199.1574173914513; Tue, 19 Nov 2019 06:31:54 -0800 (PST) Received: from ernst.home (pD9E239ED.dip0.t-ipconnect.de. [217.226.57.237]) by smtp.gmail.com with ESMTPSA id k1sm27943477wrp.29.2019.11.19.06.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 06:31:53 -0800 (PST) Date: Tue, 19 Nov 2019 15:31:52 +0100 From: Gary Jennejohn To: Mario Lobo Cc: freebsd-hackers Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. Message-ID: <20191119153152.26a725cf@ernst.home> In-Reply-To: References: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> <20191102082641.52f64cc8@ernst.home> <20191111172543.74f95d07@ernst.home> 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: 47HSvJ4KhWz4Ycn X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=O/3hSMNl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::444 as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-2.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]; FREEMAIL_FROM(0.00)[gmail.com]; SUBJECT_HAS_CURRENCY(1.00)[]; 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]; 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]; IP_SCORE(0.00)[ip: (3.14), ipnet: 2a00:1450::/32(-2.72), asn: 15169(-1.98), country: US(-0.05)]; 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]; RECEIVED_SPAMHAUS_PBL(0.00)[237.57.226.217.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,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)[4.4.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: Tue, 19 Nov 2019 14:31:57 -0000 On Tue, 19 Nov 2019 11:02:43 -0300 Mario Lobo wrote: > On Mon, Nov 11, 2019 at 1:26 PM Gary Jennejohn wrote: > > > On Sat, 2 Nov 2019 08:26:41 +0100 > > Gary Jennejohn wrote: > > > > > On Fri, 1 Nov 2019 12:00:01 +0100 > > > Dirk-Willem van Gulik wrote: > > > > > > > On 1 Nov 2019, at 11:48, Gleb Popov wrote: > > > > > On Wed, Jun 19, 2019 at 10:22 AM Gleb Popov > > wrote: > > > > > > > > >> I've posted a bounty for this bug: > > > > >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204521 > > > > > > > > > > In case anyone is interested, the bounty is $375 already. > > > > > > > > It is 450$ now. > > > > > > > > > > This raises several questions: > > > 1) which version(s) of FreeBSD? > > > 2) how does a developer get his/her hands on a device which uses this > > > controller? It is not reasonable to expect a developer will to buy a > > > laptop or PCI card just to develop a driver. > > > 3) what is the target environment? Laptop? PCI card? Some other > > > device with an embedded controller? > > > > > > > So, thanks to the generosity of a FreeBSD user I now have a laptop > > on loan with one of the Realtek SD card reader controllers. > > > > I started working on porting the NetBSD code (basically the same as > > the OpenBSD code), but the FreeBSD bus and mmc code is radically > > different, so it will take quite a while to get a working driver. > > > > So far only the pci bus probe code works, but that's a start. > > > > I Have an Acer with this chip and FBSD 11-3 stable to test this on. > Thanks, but the port is being done in FreeBSD13. It might be backported to 11/12, but at the moment that is not guaranteed. Depends on how much the bus, pci and mmc code varies. I haven't looked at the code in older versions. -- Gary Jennejohn From owner-freebsd-hackers@freebsd.org Wed Nov 20 00:01:28 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 129B01C2498 for ; Wed, 20 Nov 2019 00:01:28 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47HjXR0c31z46d8 for ; Wed, 20 Nov 2019 00:01:26 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id xAK013Cg004301 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 19 Nov 2019 16:01:03 -0800 (PST) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id xAK012Xd004300; Tue, 19 Nov 2019 16:01:02 -0800 (PST) (envelope-from jmg) Date: Tue, 19 Nov 2019 16:01:02 -0800 From: John-Mark Gurney To: Wojciech Puchar Cc: freebsd-hackers@freebsd.org Subject: Re: geom_ssdcache Message-ID: <20191120000102.GI4552@funkthat.com> Mail-Followup-To: Wojciech Puchar , freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 11.0-RELEASE-p7 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Tue, 19 Nov 2019 16:01:03 -0800 (PST) X-Rspamd-Queue-Id: 47HjXR0c31z46d8 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of jmg@gold.funkthat.com has no SPF policy when checking 208.87.223.18) smtp.mailfrom=jmg@gold.funkthat.com X-Spamd-Result: default: False [-1.23 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.988,0]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(-0.47)[ip: (-1.20), ipnet: 208.87.216.0/21(-0.60), asn: 32354(-0.48), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[funkthat.com]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.97)[-0.974,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[jmg@funkthat.com,jmg@gold.funkthat.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:32354, ipnet:208.87.216.0/21, country:US]; FROM_NEQ_ENVFROM(0.00)[jmg@funkthat.com,jmg@gold.funkthat.com]; MID_RHS_MATCH_FROM(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, 20 Nov 2019 00:01:28 -0000 Wojciech Puchar wrote this message on Tue, Nov 19, 2019 at 13:06 +0100: > today SSD are really fast and quite cheap, but still hard drives are many > times cheaper. > > Magnetic hard drives are OK in long reads anyway, just bad on seeks. > > While now it's trendy to use ZFS i would stick to UFS anyway. > > I try to keep most of data on HDDs but use SSD for small files and high > I/O needs. > > It works but needs to much manual and semi automated work. > > It would be better to just use HDD for storage and some of SSD for cache > and other for temporary storage only. > > My idea is to make geom layer for caching one geom provider (magnetic > disk/partition or gmirror/graid5) using other geom provider (SSD > partition). Other thing you should decide is if the cache will be shared or per geom provider. And how this would interact w/ multiple separate geom caches... Likely w/ a shared cache (single ssd covering multiple providers), starting clear each time would be best. > I have no experience in writing geom layer drivers but i think geom_cache > would be my fine starting point. At first i would do read/write through > caching. Writeback caching would be next - if at all, doesn't seem good > idea except you are sure SSD won't fail. Re: ssd failing, you can put a gmirror under the cache to address this... > But my question is really on UFS. I would like to know in geom layer if > read/write operation is inode/directory/superblock write or regular data > write - so i would give the first time higher priority. Regular data would > not be cached at all, or only when read size will be less than defined > value. At the geom layer, I don't think that this information is available. > Is it possible to modify UFS code to pass somehow a flag/value when > issuing read/write request to device layer? Take a look at sys/ufs/ffs/ffs_vfsops.c, and it looks like at least the writes are already segmented by superblock (see ffs_use_bwrite), but you'd further need to split them appart. Also, with snap shots, things might be a little bit more difficult for them. Most of the metadata is likely to be able to be cached in ram already, unless you have a large, LARGE UFS fs, then why aren't you using ZFS? I'd also suggest you look at profiling the actual read/writes to make sure you'd be able to get the performance you need... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@freebsd.org Wed Nov 20 03:09:54 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 F13B01C5CE4 for ; Wed, 20 Nov 2019 03:09:54 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 47Hnjt0zFDz4Fg2 for ; Wed, 20 Nov 2019 03:09:53 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: by mail-wm1-x333.google.com with SMTP id b11so5419786wmb.5 for ; Tue, 19 Nov 2019 19:09:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=c0ukWM16TTb5R2BdtL+iev+glC94vu1ioMS7kZPF108=; b=SB/5NopNCpwnF4YJX/51TwbMBYzAQ46F6DISzsEZM4TND94CnPi0fR3fT2TvtzFWKK I8771rsyw9vc4duE8GdAZLTdUiE8CcPbv36TUDYFeZYXWyr8n1JLrK8AnzWZ1YBDhPGt JCHO9vMREpoRsgqKbXZ2yTOxq9yGDUs0We71ZCcUWrFC0saPB4iqqjzqO1Md6ca/JBnB DXoixb19ouGzV4efk4BD8ks7wjvSe4fWwnAJ68uoZCaT0kNOoP18UuTlzGCVNug+prw8 5w++CaDw95R27D79g3x3bBmZKvUhtLgEMH2bOvKAkVUnN+ZmTXP/E5Zwb4kxf3S6OHnk 4SmA== 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=c0ukWM16TTb5R2BdtL+iev+glC94vu1ioMS7kZPF108=; b=an5UAFkSwFZUEuFXGQL/lvxTmpEukvC3vQYfExHhZ1+uhR+hZ3wUZH8pgTbMQBYyjb W6VxXZFwkPWulQnpz7mWBKaA5GVW5rliVSvazRmi+YBtc2L9C9ughd/TIL0gjUlu+2Tl UL5pa34pzteRhJIyD+4pRPgfthqQhFTuOqUYXCYO30aqsbhTthQY/4c5xDUG8sl74KLk H/uVQeMGR5uYmA/FVRLAHZEYOKJae3hWquns1QI7DumTjfvDHjtCwsYbgQk801zy+/tT tPqqYOd6knLWVaNR6I+qmfWiFKRtlBIT6U7ZLomaNI7izgcXAhp1K5tZ2mO6UV+IDuXz uGZQ== X-Gm-Message-State: APjAAAWuVCWSFpjRIPjUR1/guofAQlK3n//ln1qwWGRsZfpr9aEV9XRu Vq/+nApKrBK+DyNvO7tsq5EOIi4+sgakuc48kFHvrXjaTMw= X-Google-Smtp-Source: APXvYqwd2MBLawpwH/ib4u41WxJvvkGg51/eudYhoqnlrLoAmycMNK7x/XoRRoPiVnk0SjW/5iRtJ9HXTHaSE3Y0ryU= X-Received: by 2002:a05:600c:2103:: with SMTP id u3mr588150wml.150.1574219391760; Tue, 19 Nov 2019 19:09:51 -0800 (PST) MIME-Version: 1.0 From: Dewayne Geraghty Date: Wed, 20 Nov 2019 14:09:24 +1100 Message-ID: Subject: Executable size difference between clang and gcc9 To: freebsd-hackers@freebsd.org X-Rspamd-Queue-Id: 47Hnjt0zFDz4Fg2 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=SB/5NopN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dewaynegeraghty@gmail.com designates 2a00:1450:4864:20::333 as permitted sender) smtp.mailfrom=dewaynegeraghty@gmail.com X-Spamd-Result: default: False [-2.00 / 15.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)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; URI_COUNT_ODD(1.00)[3]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-8.62), ipnet: 2a00:1450::/32(-2.72), asn: 15169(-1.97), country: US(-0.05)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[3.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]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] 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: Wed, 20 Nov 2019 03:09:55 -0000 I noticed the executable a size difference between clang 8.0.1 and gcc 9.2.0 of a simple test code, build on FreeBSD12.1S (r353671M) below.: Differences in object code seem reasonable: # clang -O2 -march=haswell -flto -c "qdate.c" -rw-r----- 1 root wheel 3896 8 Nov 12:59 qdate.o # gcc9 -O2 -march=haswell -flto -c "qdate.c" ; ls -l qdate.o a.out -rw-r----- 1 root wheel 5256 8 Nov 13:00 qdate.o But the executable sizes? # clang -O2 -march=haswell -flto "qdate.c" ; ls -l qdate.o a.out -rwxr-x--- 1 root wheel 16360 8 Nov 13:10 a.out # gcc9 -O2 -march=haswell -flto "qdate.c" ;ls -l qdate.o a.out -rwxr-x--- 1 root wheel 8736 8 Nov 13:09 a.out Is this size variation expected, and what is contributing to this difference? The executeables are the same size with/without lto; and both link to /lib/libc a.out: libc.so.7 => /lib/libc.so.7 (0x800647000) */* Sample code*/* *#include #include int main (int argc, char **argv) { struct timeval tv; gettimeofday(&tv, NULL); if (argc > 1) printf("%ld.%ld\n",tv.tv_sec,tv.tv_usec); else printf("%ld\n",tv.tv_sec);}* The verbose compile/link command is available at http://www.heuristicsystems.com/FreeBSD-compiler/ contains: clang.lis gcc9.lis qdate.c PS who said anything placing malware on the end of executables, at the compilation step? Really I'm not paranoid... :) From owner-freebsd-hackers@freebsd.org Wed Nov 20 04:24: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 2C1D61C76EC for ; Wed, 20 Nov 2019 04:24:37 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:c2c:26d8::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47HqN357dhz4JXX for ; Wed, 20 Nov 2019 04:24:35 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id xAK4OKYI041322 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Nov 2019 04:24:23 GMT (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: wojtek@puchar.net Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id xAK4OH6n028261 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 20 Nov 2019 11:24:17 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: geom_ssdcache To: Wojciech Puchar , freebsd-hackers@freebsd.org References: From: Eugene Grosbein Message-ID: Date: Wed, 20 Nov 2019 11:24:11 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record * -0.0 SPF_PASS SPF: sender matches SPF record * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 47HqN357dhz4JXX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=permerror (mx1.freebsd.org: domain of eugen@grosbein.net uses mechanism not recognized by this client) smtp.mailfrom=eugen@grosbein.net X-Spamd-Result: default: False [-3.78 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grosbein.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_PERMFAIL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-1.68)[ip: (-4.43), ipnet: 2a01:4f8::/29(-2.31), asn: 24940(-1.65), 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:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(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: Wed, 20 Nov 2019 04:24:37 -0000 19.11.2019 19:06, Wojciech Puchar wrote: > today SSD are really fast and quite cheap, but still hard drives are many times cheaper. > > Magnetic hard drives are OK in long reads anyway, just bad on seeks. > > While now it's trendy to use ZFS i would stick to UFS anyway. > > I try to keep most of data on HDDs but use SSD for small files and high I/O needs. > > It works but needs to much manual and semi automated work. > > It would be better to just use HDD for storage and some of SSD for cache and other for temporary storage only. > > My idea is to make geom layer for caching one geom provider (magnetic disk/partition or gmirror/graid5) using other geom provider (SSD partition). > > I have no experience in writing geom layer drivers but i think geom_cache would be my fine starting point. At first i would do read/write through caching. Writeback caching would be next - if at all, doesn't seem good idea except you are sure SSD won't fail. > > But my question is really on UFS. I would like to know in geom layer if read/write operation is inode/directory/superblock write or regular data write - so i would give the first time higher priority. Regular data would not be cached at all, or only when read size will be less than defined value. > > Is it possible to modify UFS code to pass somehow a flag/value when issuing read/write request to device layer? I can't really help you with your questions but you could look at geom_cache we already have. It allows to dedicate additional RAM to the cache layer and more important, it can place lower limit on size of read requests to lower layer (disk) that may be important for providers which performance degrades because of short reads (USB2 device or RAID3). Be warned that geom_cache has some unresolved issues: if system has more than single active GEOM_CACHE provider, it may corrupt metadata. It still may serve as example, just don't trust it blindly. I use it for two-terabyte USB 2.0 HDD connected to my small home router (UFS-only). Also note that such media brings new type of operation other than BIO_READ/BIO_WRITE: BIO_DELETE. For SATA-based SSD, BIO_DELETE corresponds to ATA TRIM protocol command. When file systems frees some block, BIO_DELETE must be processed by GEOM layer invalidating part of cache and passed to lower layer. For HDD, large removals (for example, deletion of a snapshot) should be quick but for SSD it may result in massive I/O due to many BIO_DELETE requests. And SSD may be quite slow to process them. From owner-freebsd-hackers@freebsd.org Wed Nov 20 04:36:45 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 C8D091C7C0B for ; Wed, 20 Nov 2019 04:36:45 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 47Hqf473Cfz4K2N for ; Wed, 20 Nov 2019 04:36:44 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-io1-xd33.google.com with SMTP id 1so26129762iou.4 for ; Tue, 19 Nov 2019 20:36:44 -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:to :cc; bh=+6OZm7Oz2nUaKqWuFFjv2ZsWp59XlRVr9usgysExpyQ=; b=bxPeQLMZzAIix+PVu3CJxWlip9YV0ARlkzuKyKuSRbO62N9Rcv5x+9YukgNIYC91pk EmbUX9dK7GgQDtZ7nKrGRWRG5Qfc3OknU/ASX4S2BLjghBU7j3u178Y5yYLjDFH2Gp87 EcAgBZsL00827IkFOLK//jZR17ElyJFyG5y9vF3e25Ripwn4g/dHWgehrLo4k9oYDVnE 2rtRTvJOCuSxpWYID/d17BaoO00jgGMtoH1L2hGpKciLapYkkZYRH2JE71H6Gb8oUqg2 bz6IwLtKDJq1VD6wat03ovRA0vsSt4Mg/NohOhfYSkXXKuH92SS8SCP7+fdO54jrvxF3 MIiA== 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=+6OZm7Oz2nUaKqWuFFjv2ZsWp59XlRVr9usgysExpyQ=; b=ejWu91x74XFWZGzoE1mrc8q6asaZTWdid4PTW6KgM5qHg0/amlzNt86i/An0aPL3GV smbRPuVhj557yEvpt4T5Yf/tnGAL/IVWrDd1JI2tRTq2EMar5ZEpSALh4tDNPu0hnErk TXiZIP6B8juDrinx9aR55xVMD9mrE8rp26m+5V4oXb00iq+qjvpXJbYrbG2sQkMyJivj Wu3rR9OpMNrPHAYWrc4G7RuKfdJjI3/wKsVCPe3Ftyr4xje/5Ke+oVACvB/JAZlAfg0G IhIDeYDS4Geg1/KDiVjmYXFHQgyYMpisHVlPN+6dxjy/bcxrxGc+MXN0IV5jxopHfsDb ayFw== X-Gm-Message-State: APjAAAWzEuqt3bWyUXlekPivGzG1lMdlEgpDtoJxfPW7NNzdemhmw1JR xdveDfQzKqcYE/x9bxFp4cjQ3JhKTZ4kruvWtjUS43FJ X-Google-Smtp-Source: APXvYqx0KGW2bytNk7JMLLNHcZJteFYD3HRnQCxql8dVKRk8q0ovID2tBBT+uUMvS9IuUM2/tZEal0kwLRjrwUZrWzI= X-Received: by 2002:a05:6638:34b:: with SMTP id x11mr1393153jap.128.1574224603750; Tue, 19 Nov 2019 20:36:43 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Adam Date: Tue, 19 Nov 2019 22:36:34 -0600 Message-ID: Subject: Re: geom_ssdcache To: Wojciech Puchar Cc: FreeBSD Hackers X-Rspamd-Queue-Id: 47Hqf473Cfz4K2N X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=bxPeQLMZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of amvandemore@gmail.com designates 2607:f8b0:4864:20::d33 as permitted sender) smtp.mailfrom=amvandemore@gmail.com X-Spamd-Result: default: False [-3.00 / 15.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)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[3.3.d.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]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-5.06), ipnet: 2607:f8b0::/32(-2.30), asn: 15169(-1.97), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] 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: Wed, 20 Nov 2019 04:36:45 -0000 On Tue, Nov 19, 2019 at 6:06 AM Wojciech Puchar wrote: > > But my question is really on UFS. I would like to know in geom layer if > read/write operation is inode/directory/superblock write or regular data > write - so i would give the first time higher priority. Regular data would > not be cached at all, or only when read size will be less than defined > value. > > Isn't this what geom_journal already does? Not sure, I don't use it but it has some caching in too. -- Adam From owner-freebsd-hackers@freebsd.org Wed Nov 20 11:48:26 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 849751B3BBA for ; Wed, 20 Nov 2019 11:48:26 +0000 (UTC) (envelope-from se@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 47J1DB2wzdz3Ckd; Wed, 20 Nov 2019 11:48:26 +0000 (UTC) (envelope-from se@freebsd.org) Received: from Stefans-MBP-449.fritz.box (p200300CD5F3FC800082CDFE52D1EA3DC.dip0.t-ipconnect.de [IPv6:2003:cd:5f3f:c800:82c:dfe5:2d1e:a3dc]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id DE4491C67D; Wed, 20 Nov 2019 11:48:25 +0000 (UTC) (envelope-from se@freebsd.org) Subject: Re: Executable size difference between clang and gcc9 To: freebsd-hackers@freebsd.org References: From: =?UTF-8?Q?Stefan_E=c3=9fer?= Cc: dewaynegeraghty@gmail.com Message-ID: Date: Wed, 20 Nov 2019 12:48:22 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit 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, 20 Nov 2019 11:48:26 -0000 Am 20.11.19 um 04:09 schrieb Dewayne Geraghty: > I noticed the executable a size difference between clang 8.0.1 and gcc > 9.2.0 of a simple test code, build on FreeBSD12.1S (r353671M) below.: > > Differences in object code seem reasonable: Compiling with "-flto -c" gives quite different file types, depending on the compiler used. > # clang -O2 -march=haswell -flto -c "qdate.c" > -rw-r----- 1 root wheel 3896 8 Nov 12:59 qdate.o # file qdate.o qdate.o: LLVM IR bitcode # ls -l qdate.o -rw-r--r-- 1 se se 4092 20 Nov. 12:08 qdate.o > # gcc9 -O2 -march=haswell -flto -c "qdate.c" ; ls -l qdate.o a.out > -rw-r----- 1 root wheel 5256 8 Nov 13:00 qdate.o # file qdate.o qdate.o: ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped # ls -l qdate.o -rw-r--r-- 1 se se 5248 20 Nov. 12:07 qdate.o > But the executable sizes? For one thing, you did not strip the binary, and there are different amounts of debug information in the binaries. It appears that you used the GNU ld from binutils for GCC, but the llvm linker ld.lld for CLANG, and they may use different alignment of regions or differ in other aspects. > # clang -O2 -march=haswell -flto "qdate.c" ; ls -l qdate.o a.out > -rwxr-x--- 1 root wheel 16360 8 Nov 13:10 a.out # ls -l a.out -rwxr-xr-x 1 se se 24728 20 Nov. 12:17 a.out # size a.out text data bss dec hex filename 2065 448 16 2529 0x9e1 a.out # strip a.out # ls -l a.out -rwxr-xr-x 1 se se 15120 20 Nov. 12:17 a.out > # gcc9 -O2 -march=haswell -flto "qdate.c" ;ls -l qdate.o a.out > -rwxr-x--- 1 root wheel 8736 8 Nov 13:09 a.out # ls -l a.out -rwxr-xr-x 1 se se 14472 20 Nov. 12:18 a.out # size a.out text data bss dec hex filename 2023 464 24 2511 0x9cf a.out # strip a.out # ls -l a.out -rwxr-xr-x 1 se se 5320 20 Nov. 12:19 a.out > Is this size variation expected, and what is contributing to this > difference? There is no difference ;-) While the file size after stripping remains higher for the clang case, the actual code and data segment sizes are identical. The file size difference is due to page alignment of sections performed by the LLVM linker. It slightly increases the file size of the binary, but this is less relevant for typical program sizes. > The executeables are the same size with/without lto; and both link to > /lib/libc > a.out: > libc.so.7 => /lib/libc.so.7 (0x800647000) Yes, -flto cannot make a difference when compiling just a single source file. The library is not subject to link time optimizations, anyway. > */* Sample code*/* Reformatted for readability: > #include > #include > > int main (int argc, char **argv) > { > struct timeval tv; gettimeofday(&tv, NULL); > if (argc > 1) > printf("%ld.%ld\n",tv.tv_sec,tv.tv_usec); > else > printf("%ld\n",tv.tv_sec); > } > The verbose compile/link command is available at > http://www.heuristicsystems.com/FreeBSD-compiler/ > contains: clang.lis gcc9.lis qdate.c > > PS who said anything placing malware on the end of executables, at the > compilation step? Really I'm not paranoid... :) Use hd to look at the generated binary (after stripping, to get rid of the debug symbols) and you'll see that there is nothing hidden. You can also disassemble the file (with source lines as comments) to check the validity of the generated code. But with -O2 you'll get quite some re-arrangement of instructions relative to the source lines. If you want to disassemble the program (compiled with "-g"): # llvm-objdump90 --source -g a.out (Use a different objdump version, if you do only have an older clang on your system. The llvm objdump works equally well on binaries generated by GCC and CLANG.) My tests were performed on a CURRENT/amd64 system. Regards, STefan From owner-freebsd-hackers@freebsd.org Fri Nov 22 07:37: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 8459D1AFAED for ; Fri, 22 Nov 2019 07:37:22 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 47K7YY3gLHz4SPP for ; Fri, 22 Nov 2019 07:37:21 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f178.google.com with SMTP id e9so6146437ljp.13 for ; Thu, 21 Nov 2019 23:37:21 -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=LK3+jDBD5eZ6lG2iz1pNh6KDroLhV3ulHnPhipqK4F8=; b=aV1fEpBsFtZ98wuJvAiGx9eAJ0NZr5VUNw/9v4yWmCRsojiN+erqk/rMz5vs/XFh20 H5g9hST41EukAAhrITSBq7B0rZ+HoleqIq+EKa8aMnspnAbxks4q41yezaJD9KPofqFl unH5ZBaK1C1t3S9tWNwZ+gs08illGKzOTjYzMjfU/8oHsIKO7UAjjNnRQ9Xcu12hdxfD 2+BuHRPot4Mabl1SLpbG1iEebjVD9KZwFTNRYhugOQ8J8NC8WmZX9NyW/4rpflGkE9Z1 Wjui4gT7AZ5GJQ6TVn1h9T+pKXOtniCVmmGVd9zflUFa8VTzpqRxmCq14SpwEqhm/h8x GRNQ== X-Gm-Message-State: APjAAAV9158Tu82ae67HWYHMmxOiJB5AS5YbT7xWZcxc3EN61KBSsOo/ MUrcaSHaSMgWu/Ymvl7qYneKefs3Esda4g== X-Google-Smtp-Source: APXvYqwiHjpwM6ZLs0QSYY8qiRIZKmFPlTdgMxEl0PB3JYCL048qejyHlBvNrdM3TNdCZsQmHdXB/Q== X-Received: by 2002:a2e:81c6:: with SMTP id s6mr10991225ljg.61.1574408239230; Thu, 21 Nov 2019 23:37:19 -0800 (PST) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id f14sm2668877lfa.67.2019.11.21.23.37.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Nov 2019 23:37:18 -0800 (PST) Received: by mail-lj1-f169.google.com with SMTP id 139so6234290ljf.1 for ; Thu, 21 Nov 2019 23:37:17 -0800 (PST) X-Received: by 2002:a2e:994f:: with SMTP id r15mr11043638ljj.18.1574408237600; Thu, 21 Nov 2019 23:37:17 -0800 (PST) MIME-Version: 1.0 From: Gleb Popov Date: Fri, 22 Nov 2019 11:36:52 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Linking Linux library to FreeBSD program. To: freebsd-hackers X-Rspamd-Queue-Id: 47K7YY3gLHz4SPP 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.208.178 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-2.13 / 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)[+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)[5]; 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)[178.208.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.13)[ip: (-0.46), ipnet: 209.85.128.0/17(-3.17), asn: 15169(-1.97), country: US(-0.05)]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[178.208.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, 22 Nov 2019 07:37:22 -0000 Hello hackers@ In my quest for CUDA on FreeBSD I managed to compile a simple CUDA program using native clang. However, it required linking to libcudart.so from Linux CUDA distribution. As you can guess, running this binary results in a segfault - a.out being a FreeBSD binary tries to load libcudart.so Linux library, which in turn pulls Linux libc.so. What course of action could be taken in this situation? My plan is to generate a native wrapper library for libcudart.so in which every exported function would call Linux binary linked to real libcudart.so and route function arguments via RPC or some other mechanism. This looks awful for sure, but I don't see any other solutions. From owner-freebsd-hackers@freebsd.org Fri Nov 22 08:47:04 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 B81EC1B1EAF for ; Fri, 22 Nov 2019 08:47:04 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vtr.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47K95z0rLhz4WRT; Fri, 22 Nov 2019 08:47:02 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp239-208.static.internode.on.net [59.167.239.208]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id xAM8kkSM035797 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Nov 2019 19:46:52 +1100 (AEDT) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id xAM8kfru032322 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 22 Nov 2019 19:46:41 +1100 (AEDT) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id xAM8kfXZ032321; Fri, 22 Nov 2019 19:46:41 +1100 (AEDT) (envelope-from peter) Date: Fri, 22 Nov 2019 19:46:41 +1100 From: Peter Jeremy To: Gleb Popov Cc: freebsd-hackers Subject: Re: Linking Linux library to FreeBSD program. Message-ID: <20191122084641.GH74610@server.rulingia.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rqzD5py0kzyFAOWN" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47K95z0rLhz4WRT X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of peter@rulingia.com designates 2001:19f0:5801:ebe:5400:1ff:fe53:30fd as permitted sender) smtp.mailfrom=peter@rulingia.com X-Spamd-Result: default: False [-7.62 / 15.00]; ARC_NA(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.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[rulingia.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-3.22)[ip: (-9.54), ipnet: 2001:19f0:5800::/38(-4.81), asn: 20473(-1.70), country: US(-0.05)]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5800::/38, country:US]; 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, 22 Nov 2019 08:47:04 -0000 --rqzD5py0kzyFAOWN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-Nov-22 11:36:52 +0400, Gleb Popov wrote: >In my quest for CUDA on FreeBSD I managed to compile a simple CUDA program >using native clang. However, it required linking to libcudart.so from Linux >CUDA distribution. > >As you can guess, running this binary results in a segfault - a.out being a >FreeBSD binary tries to load libcudart.so Linux library, which in turn >pulls Linux libc.so. In the distant past, there was a www/linuxpluginwrapper port that supported this (I used it with print/pips-scx3500_3600s to print to an Epson inkjet print using a Linux blob). Unfortunately, www/linuxpluginwrapper didn't support ELF symbol versioning and was "replaced" with www/nspluginwrapper, which dropped all the required functionality. https://lists.freebsd.org/pipermail/freebsd-ports/2008-June/048827.html describes my last efforts to get that approach to work. I don't know if that's of any use to your efforts. --=20 Peter Jeremy --rqzD5py0kzyFAOWN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAl3XoGtfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzRL6xAAkzDqTI9I3pc5ztyOI6pONIKY169U3Q0VsPt5rMmkPlCc+jTw+MvXvAew wd+EpZLR4Qbxesk33wv2AwcsrjYqzCquXdWINI55Jt0cD92iWGAD440IKpAOmo0x NaAVAWvpoMDP22aoI/1JcdlbSA9mDpByNorDxsAOiIhD8r90FJ/HSl9fcpmiBEJE j2NA+CK3PgtaPwv4rkR9vBkewbwuNIVwgtJ+3CSbvHzLeARJZMv1dYlP4UMUFLPr RKxNSyk+mwHSdCPU1Ga1K5f116QBka8C2BQbsG1/hVyvXzqecnCunejE4GXiIdB0 Sg5QvpGeYSbGpEeKh8RgdJOrjPKgc1HecvbTjlLOTJgItfDTueD6d9q6ttkPfdOO 63shhrrexrgrEE3N5pmCmOiXJTHBmHEGbK6oiHlwQvZ69XSdiQC8nFJj//MmEwtb qEONOYifHpMw8U0+0fup14REb+q5x7uOKjeFu3xxiO0sZ3ik+arAPK0SvVrSUQgU n/6bSzCCEJD268zVVlJt7Oyju6S9FRg8ds6eiuJztWYCYEjrfK5JkuO8jN1Ebfuv 12bEiKcgEnDEfVfUuHMDRvfCZQ5WayCtPNLL8PTRyqbOuZln8i3ZVWmWFXHu5qV8 aaPJe5Q5S5JojN+Synw3DEfijD1A3oFkhB0ncpx6TbRIdOQklt0= =Fl4h -----END PGP SIGNATURE----- --rqzD5py0kzyFAOWN-- From owner-freebsd-hackers@freebsd.org Fri Nov 22 09:11: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 B81201B2852 for ; Fri, 22 Nov 2019 09:11:43 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (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 47K9fQ6JC2z4XYQ; Fri, 22 Nov 2019 09:11:42 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x429.google.com with SMTP id i12so7679231wro.5; Fri, 22 Nov 2019 01:11:42 -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=PjhYmxPKTu7aliZvDNb+EczsBbufy2MqNaX7iARgwAI=; b=c8umSnpr+CA70mIUCB4oQvfTSyw74vKAIPKfmrUT6FLiBYJuuSL+NmUSUar5eJUyY5 B6rNIgOEFk6iTbp9YQdDvr3xHasqzKldC5DsVMq5bV2LmLDB01k+cZGe1c3HKztwm6BY c7VqnlvytsasArBSMkGhIfVyQ/B7/7be6mcGwFwlXbBjJKd+HbLE1t4j24Z5PJe33U4l 7cK5/6E9gCWnSFQr5Q4wE4HDfljML3NCWTiV8nzdtCv74vmu48wE9QHVHotraM+D9NlX xjkXvFPWA+OneqzXDap6ayxhwYfVZ2lP4DFIO+40NxsPN9NWzTOpktnPcjbcxT0MVuOW lytA== 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=PjhYmxPKTu7aliZvDNb+EczsBbufy2MqNaX7iARgwAI=; b=HSD0P89tF4ZG156vOLZLgKQrxR96mCapFMUNdyXS11sg/LlX6wT0I5/PARt7hAkbwB F17cw5DiyGelikZHZFh/YeSP5Ar44tUms1d6I8kqkYy0nGxbwUw+F0ErY5LbkYzSxAfq SNr2oGXJwcy+c3QjJTMtaybweYSrx9DgK4vpzQo8LktqgTo0HkplS6nfIZ+m6V6KO6tl IELp0kxBcOhwl4A1gPWgYFYDUCfo1avl+UhAl3MfDjI5jeRJdwj8n3QVnMYpbULvm+81 tZgJzy8h1z90lOLktgLtRZVSaZq4gcx5W6Gdkg0HO8klSEwr0xBO+9gzlPaeHo3zjyXH ECtQ== X-Gm-Message-State: APjAAAUXM54pDKOvsTT3lE4be4/gX0NS5+g0lGWgR+Fdnsu6HB7j6OVk zk4hGj3X2CsPBrNRWfqw2ZnG8Gnz X-Google-Smtp-Source: APXvYqwT0sUENObLJ+B4OUhFU77CXGH78gr7NEAK+bkG8QNig7ElTqy8/+zDbv9J5DLIaISSmRrCiw== X-Received: by 2002:a05:6000:1286:: with SMTP id f6mr13331913wrx.44.1574413901289; Fri, 22 Nov 2019 01:11:41 -0800 (PST) Received: from ernst.home (pD9E2392D.dip0.t-ipconnect.de. [217.226.57.45]) by smtp.gmail.com with ESMTPSA id f12sm2619391wml.35.2019.11.22.01.11.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2019 01:11:40 -0800 (PST) Date: Fri, 22 Nov 2019 10:11:39 +0100 From: Gary Jennejohn To: Peter Jeremy Cc: Gleb Popov , freebsd-hackers Subject: Re: Linking Linux library to FreeBSD program. Message-ID: <20191122101139.2b4a0e87@ernst.home> In-Reply-To: <20191122084641.GH74610@server.rulingia.com> References: <20191122084641.GH74610@server.rulingia.com> 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: 47K9fQ6JC2z4XYQ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=c8umSnpr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::429 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]; 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:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[45.57.226.217.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)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[gmail.com]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[9.2.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]; IP_SCORE(0.00)[ip: (-9.34), ipnet: 2a00:1450::/32(-2.71), asn: 15169(-1.97), 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: Fri, 22 Nov 2019 09:11:43 -0000 On Fri, 22 Nov 2019 19:46:41 +1100 Peter Jeremy wrote: > On 2019-Nov-22 11:36:52 +0400, Gleb Popov wrote: > >In my quest for CUDA on FreeBSD I managed to compile a simple CUDA program > >using native clang. However, it required linking to libcudart.so from Linux > >CUDA distribution. > > > >As you can guess, running this binary results in a segfault - a.out being a > >FreeBSD binary tries to load libcudart.so Linux library, which in turn > >pulls Linux libc.so. > > In the distant past, there was a www/linuxpluginwrapper port that supported > this (I used it with print/pips-scx3500_3600s to print to an Epson inkjet > print using a Linux blob). Unfortunately, www/linuxpluginwrapper didn't > support ELF symbol versioning and was "replaced" with www/nspluginwrapper, > which dropped all the required functionality. > > https://lists.freebsd.org/pipermail/freebsd-ports/2008-June/048827.html > describes my last efforts to get that approach to work. I don't know if > that's of any use to your efforts. > Maybe running brandelf(1) on it would help: brandelf -t Linux file -- Gary Jennejohn From owner-freebsd-hackers@freebsd.org Fri Nov 22 13:35:11 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 6E9321B886A for ; Fri, 22 Nov 2019 13:35:11 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) (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 47KHVQ636Qz3JXr; Fri, 22 Nov 2019 13:35:10 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: by mail-qt1-x842.google.com with SMTP id q8so5157260qtr.10; Fri, 22 Nov 2019 05:35:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=EYhSm84MOaV9Qc64e7L+S49ntfGI5p7tLAqnD8NMN/s=; b=vFhLRXEv5mfodO4c9kEyauyysPXiMmytuJzH5z3cuuvD2V9gzvWovcIRtzo2XoOF7M PhrbyaqAlX7Kbrmpbt8e2oyPRTdToQNF4Shl+/cXzlflHd5PU+8r2rZHdemKoXA8Hq5+ 1jusLiMhDhJTOwqCt1ms+uAtzJxFG3uuDSV7FQ+F9RhW0Xo30tcaGAYNI3BCJligDYlQ QABJc9KdDcahNVDjg6Ne/hR1jQNn8Wk079M/D1bC/rHYyGUzaG9069YXwis8Cd9yAHMt dabVJcOJ2SqpISsgYXxcOJ1EhuXYxBNOJy0end7ASyUR5XhYKVjgsI0qTJ1X980JqJD6 TepQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=EYhSm84MOaV9Qc64e7L+S49ntfGI5p7tLAqnD8NMN/s=; b=HqUZUiPt80YPyychLkfeEUnU1EXvMfa622Zte+/Y1zPQYgwpQtoXe9uD9/t2k27zQX I2jSyca9zelUqw8SxGBYS+0smUbdqd3whAViELvDbC5w6HSxBG+1Lli8DIoikVOiPiTb AIqfq7OO9ggADs1UNWKvmFKPLizoFv8jfWatWUBtlU2SIhgnQ3lFYg6t40jUv0yrJCR1 JuY/dQVVdHwdZZIXDKMuvGrhDv6Ix11cmng2ayZ4GE8AkahpTWPs5aAtwXpuM8KGvuUW V72JpMBXgB7oBSebTyVlXKGGjWI2qO+3xG+r3ZzBqsWXFe/JHfuItbi3/k/xZ72Hh+Am +ekw== X-Gm-Message-State: APjAAAWomRaYT96spN7JiJn/VK7YERnv1VY7BXDaYkMd/Uj9CezsdfA7 KbYBidnrjiQmm39aosbxJnfKj7qk X-Google-Smtp-Source: APXvYqx6k6Z9rqpARc5Vk5QRT+3ws26MzinW2wfZVtZW4q+GoBQ4ZKsNkn2ASYhXyHDisgLWIlNWFg== X-Received: by 2002:ac8:7253:: with SMTP id l19mr14530223qtp.363.1574429709602; Fri, 22 Nov 2019 05:35:09 -0800 (PST) Received: from [155.41.28.29] (dhcp-wifi-8021x-155-41-28-29.bu.edu. [155.41.28.29]) by smtp.gmail.com with ESMTPSA id n18sm3291111qtl.40.2019.11.22.05.35.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Nov 2019 05:35:04 -0800 (PST) Sender: Theron Tarigo Subject: Re: Linking Linux library to FreeBSD program. To: Gleb Popov , freebsd-hackers References: From: Theron Message-ID: <7679128e-d565-0132-2fe2-cc1083abfa8d@gmail.com> Date: Fri, 22 Nov 2019 08:35:00 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 47KHVQ636Qz3JXr X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=vFhLRXEv; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of therontarigo@gmail.com designates 2607:f8b0:4864:20::842 as permitted sender) smtp.mailfrom=therontarigo@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0: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:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (2.18), ipnet: 2607:f8b0::/32(-2.29), asn: 15169(-1.97), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; 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)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; 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]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.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]; 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, 22 Nov 2019 13:35:11 -0000 On 2019-11-22 02:36, Gleb Popov wrote: > What course of action could be taken in this situation? My plan is to > generate a native wrapper library for libcudart.so in which every exported > function would call Linux binary linked to real libcudart.so and route > function arguments via RPC or some other mechanism. This looks awful for > sure, but I don't see any other solutions. https://github.com/shkhln/nvshim appears to allow using Nvidia Linux binary by FreeBSD executable, but for Vulkan.  Does that look like it could be extended to support CUDA? From owner-freebsd-hackers@freebsd.org Fri Nov 22 19:08:29 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 7A4EA1BEB68 for ; Fri, 22 Nov 2019 19:08:29 +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 47KQv12gLxz470J; Fri, 22 Nov 2019 19:08:29 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from [192.168.0.5] (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 CD2AC147AF; Fri, 22 Nov 2019 19:08:28 +0000 (UTC) (envelope-from pfg@FreeBSD.org) To: Gleb Popov , freebsd-hackers From: Pedro Giffuni Subject: Re: Linking Linux library to FreeBSD program. Organization: FreeBSD Message-ID: <62bb6535-f970-a2fd-634c-63fbc7890325@FreeBSD.org> Date: Fri, 22 Nov 2019 14:08:27 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed 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: Fri, 22 Nov 2019 19:08:29 -0000 > Hello hackers@ > > In my quest for CUDA on FreeBSD I managed to compile a simple CUDA program > using native clang. However, it required linking to libcudart.so from Linux > CUDA distribution. > > As you can guess, running this binary results in a segfault - a.out being a > FreeBSD binary tries to load libcudart.so Linux library, which in turn > pulls Linux libc.so. > > What course of action could be taken in this situation? My plan is to > generate a native wrapper library for libcudart.so in which every exported > function would call Linux binary linked to real libcudart.so and route > function arguments via RPC or some other mechanism. This looks awful for > sure, but I don't see any other solutions. Hi; FWIW, I don't know how much alive it still is, but Debian kFreeBSD[1] had a native port of glibc to FreeBSD. Cheers, Pedro. [1] https://www.debian.org/ports/kfreebsd-gnu/ From owner-freebsd-hackers@freebsd.org Fri Nov 22 20:42: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 7FD401C11F1 for ; Fri, 22 Nov 2019 20:42:41 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-oi1-f195.google.com (mail-oi1-f195.google.com [209.85.167.195]) (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 47KSzh204Zz4Dt2; Fri, 22 Nov 2019 20:42:40 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-oi1-f195.google.com with SMTP id j7so7725117oib.3; Fri, 22 Nov 2019 12:42:40 -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:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=hZbMQW6MIbYK6fTq0DIf68EBsdaeu3MDsawo3VB6NRs=; b=T9lSkrc6BQu5zjkSpICjMj0xqh76ywTlQVuXpSzJQa556tgKFxyUDwOZ6N+/ZUKXcR qxVAiDhffwGLu1HoCQBzncVXULiUYELbDg/HtX0aAhbMTy6Ymq9Zy5OEiGU6rcRcibxa f5sDTxvjtaxqU2mWRZ8K14eb0hCxqxIbeDMcmV30vbIsLayRc7OPEkRE6L3Nt/X+AhFP eooSq3cpZegNO0P2gfcbA9A5yXBGbPwCBpSt/at7SshlRHs3UazlwCOvYlmZ4zM5icMO m1g/BRDjFvIX7NemwnBGLENEbMgx24xy03qAhR1UQ/1B84v4sfmL+nPPP5S8yt7ess9Q L0aA== X-Gm-Message-State: APjAAAUqzuPf0oG95Vax2cvpQz7rtub3CeyvoDrqp8Fi4YMXr2bXs/Zz m+QScfzSstq6lrdwd+x3qZdt4qA2 X-Google-Smtp-Source: APXvYqy5B549FgogWEb7jU0zS9yztGvu1gVTYMjYcfozuC8UFf3wbnJD8CxVNi2LHP5uOrAiaSGxNg== X-Received: by 2002:aca:f141:: with SMTP id p62mr13623087oih.3.1574455358872; Fri, 22 Nov 2019 12:42:38 -0800 (PST) Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com. [209.85.210.50]) by smtp.gmail.com with ESMTPSA id o2sm2415562oih.19.2019.11.22.12.42.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Nov 2019 12:42:38 -0800 (PST) Received: by mail-ot1-f50.google.com with SMTP id z25so7339724oti.5; Fri, 22 Nov 2019 12:42:38 -0800 (PST) X-Received: by 2002:a9d:3f07:: with SMTP id m7mr11624836otc.219.1574455358363; Fri, 22 Nov 2019 12:42:38 -0800 (PST) MIME-Version: 1.0 References: <7679128e-d565-0132-2fe2-cc1083abfa8d@gmail.com> In-Reply-To: <7679128e-d565-0132-2fe2-cc1083abfa8d@gmail.com> Reply-To: cem@freebsd.org From: Conrad Meyer Date: Fri, 22 Nov 2019 12:42:27 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linking Linux library to FreeBSD program. To: Theron Cc: Gleb Popov , freebsd-hackers Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47KSzh204Zz4Dt2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of csecem@gmail.com designates 209.85.167.195 as permitted sender) smtp.mailfrom=csecem@gmail.com X-Spamd-Result: default: False [-3.04 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[cem@freebsd.org]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[cem@freebsd.org,csecem@gmail.com]; 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]; TAGGED_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_NEQ_ENVFROM(0.00)[cem@freebsd.org,csecem@gmail.com]; 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)[195.167.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.04)[ipnet: 209.85.128.0/17(-3.17), asn: 15169(-1.96), country: US(-0.05)]; RWL_MAILSPIKE_POSSIBLE(0.00)[195.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: Fri, 22 Nov 2019 20:42:41 -0000 On Fri, Nov 22, 2019 at 5:35 AM Theron wrote: > > On 2019-11-22 02:36, Gleb Popov wrote: > > What course of action could be taken in this situation? My plan is to > > generate a native wrapper library for libcudart.so in which every exported > > function would call Linux binary linked to real libcudart.so and route > > function arguments via RPC or some other mechanism. This looks awful for > > sure, but I don't see any other solutions. > > https://github.com/shkhln/nvshim appears to allow using Nvidia Linux > binary by FreeBSD executable, but for Vulkan. Does that look like it > could be extended to support CUDA? That looks really promising. I was going to suggest looking at https://github.com/taviso/loadlibrary for rough inspiration, but nvshim looks a lot closer (and is specifically aimed at Nvidia userspace Linux libraries already). Best, Conrad From owner-freebsd-hackers@freebsd.org Sat Nov 23 06:35: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 803F91AB845 for ; Sat, 23 Nov 2019 06:35:18 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 47Kk7T51vhz4g9L for ; Sat, 23 Nov 2019 06:35:17 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lf1-f49.google.com with SMTP id 203so7133955lfa.12 for ; Fri, 22 Nov 2019 22:35:17 -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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5M4apNEcjktUAOOKA6QHHYCumv2PcZO2Gli4rllnttM=; b=JCDWaZ3CgsNBNd1zMMBC/UAMlPJDC9VnT+h/wI43KQ0YNA73c4DtvBIDBGgc4dmOsj v99MVaPhk82mLlMGb9xSS8gQP1v7eJVDSxhL+ddmbZe3vnFN2GegUNRVMBqXvAimBWaO qx9zoQoPgUbzqIC7wPjQVeNftBagxDdXc6L9FdZjQeetIKtoD34qLTE/qgpdUWkLA+PI 8966HV0V/pUdAqAUzc3XZcCKLaXGuEPrVrSwbnooXGAQCZVd01fhL/5KSYsvTpS8JHyx b9ON1y7CwIHJnUrIqc0ZEN31wfgLP0tSWnMWzk2aX2yGixqyvvS8NXZfAbTZJ/iyz9fp f3jQ== X-Gm-Message-State: APjAAAXfjhJwX+wwwm0ijX0XO4E6LLR1qtUjjNGgpKrbGYhbJK86GKBl ebUpzZJVvd5Ri5lDC8QYzHG2pZFDI9Y= X-Google-Smtp-Source: APXvYqwCj7+ZKuT7hGaUw3khqXt1I4MWHkEBiOfLBEp1ssrHnHOlNj2yk1mH351lb2vzz2uvM2CQaQ== X-Received: by 2002:ac2:50cc:: with SMTP id h12mr4700274lfm.29.1574490915474; Fri, 22 Nov 2019 22:35:15 -0800 (PST) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com. [209.85.208.173]) by smtp.gmail.com with ESMTPSA id v12sm196174lfb.47.2019.11.22.22.35.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Nov 2019 22:35:15 -0800 (PST) Received: by mail-lj1-f173.google.com with SMTP id y23so9800445ljh.10 for ; Fri, 22 Nov 2019 22:35:15 -0800 (PST) X-Received: by 2002:a2e:905a:: with SMTP id n26mr13975534ljg.165.1574490915198; Fri, 22 Nov 2019 22:35:15 -0800 (PST) MIME-Version: 1.0 References: <7679128e-d565-0132-2fe2-cc1083abfa8d@gmail.com> In-Reply-To: <7679128e-d565-0132-2fe2-cc1083abfa8d@gmail.com> From: Gleb Popov Date: Sat, 23 Nov 2019 10:34:49 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linking Linux library to FreeBSD program. To: Theron Cc: freebsd-hackers X-Rspamd-Queue-Id: 47Kk7T51vhz4g9L 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.167.49 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-2.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; URI_COUNT_ODD(1.00)[5]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; 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]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; 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)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[49.167.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.10)[ip: (-0.33), ipnet: 209.85.128.0/17(-3.17), asn: 15169(-1.96), country: US(-0.05)]; RWL_MAILSPIKE_POSSIBLE(0.00)[49.167.85.209.rep.mailspike.net : 127.0.0.17]; 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, 23 Nov 2019 06:35:18 -0000 On Fri, Nov 22, 2019 at 5:35 PM Theron wrote: > On 2019-11-22 02:36, Gleb Popov wrote: > > What course of action could be taken in this situation? My plan is to > > generate a native wrapper library for libcudart.so in which every > exported > > function would call Linux binary linked to real libcudart.so and route > > function arguments via RPC or some other mechanism. This looks awful for > > sure, but I don't see any other solutions. > https://github.com/shkhln/nvshim appears to allow using Nvidia Linux > binary by FreeBSD executable, but for Vulkan. Does that look like it > could be extended to support CUDA? > Yep, that looks pretty much relevant. Unfortunately, it doesn't compile on CURRENT. Even after some easy fixes I get error: multiple symbol versions defined for shim__sys_errlist error: multiple symbol versions defined for shim__sys_errlist error: multiple symbol versions defined for shim__sys_errlist error: multiple symbol versions defined for shim__sys_nerr error: multiple symbol versions defined for shim__sys_nerr error: multiple symbol versions defined for shim__sys_nerr error: multiple symbol versions defined for shim__sys_siglist ... From owner-freebsd-hackers@freebsd.org Sat Nov 23 14:38: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 7045A1B72AD for ; Sat, 23 Nov 2019 14:38:21 +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 47Kwrr0cL8z47Md for ; Sat, 23 Nov 2019 14:38:19 +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; Sat, 23 Nov 2019 15:38:15 +0100 id 00F3A934.5DD94457.00008F89 Date: Sat, 23 Nov 2019 15:38:14 +0100 From: Milan Obuch To: freebsd-hackers@freebsd.org Subject: Where is GPIO pin name stored? Message-ID: <20191123153814.13a29e20@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: 47Kwrr0cL8z47Md 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.09 / 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]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[dino.sk]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[72.65.245.84.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.79)[ip: (-7.85), ipnet: 84.245.64.0/18(-3.93), asn: 16160(-2.28), country: SK(0.09)]; 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: Sat, 23 Nov 2019 14:38:21 -0000 Hi, gpio controller has a device method, gpio_pin_getname, which sets name for any gpio pin this driver controlls. It is possible, however, to change this name with gpioctl invoked as gpioctl [ -f /dev/gpiocX ] -n and in gpio pin listing this new name is used subsequently. Where is this name stored? Is it possible to get this new, changed name somehow from driver programatically? I found the way it is done in gpioctl, but this is from upper layer (related to gpiobus - in sys/dev/gpio/gpiobus.c). I need it from lower layer. Looking in sys/dev/gpio/gpiobusvar.h, I think I need access to gpiobus_softc related to my gpio controller device... Use case: I implemented interrupt driver for my AXI GPIO core device. It does nothing special, just prints a line similar to gpio4: btns0 status 1 on console, in this case, when first button gets pressed. This could be changed to create a devd event so one could easily attach some event handling script via some /etc/devd.conf entry. It would be good to see this new name here as well. Regards, Milan