From owner-freebsd-hackers@freebsd.org Sun Oct 27 20:42:15 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 79ED81A573E for ; Sun, 27 Oct 2019 20:42:15 +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 471VCB2DMVz46Qr for ; Sun, 27 Oct 2019 20:42:13 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Sun, 27 Oct 2019 21:42:10 +0100 id 00F407D1.5DB60122.0000DADE Date: Sun, 27 Oct 2019 21:42:09 +0100 From: Milan Obuch To: freebsd-hackers@freebsd.org Subject: UART driver as kld - how? Message-ID: <20191027214209.712d62ca@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: 471VCB2DMVz46Qr 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.26 / 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.96)[ip: (-8.30), ipnet: 84.245.64.0/18(-4.15), asn: 16160(-2.45), country: SK(0.08)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:16160, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2019 20:42:15 -0000 Hi, I am trying to create a driver for Xilinx' AXI UART Lite IP core. I can't find a way to do it as kld module. I started with uart_dev_cdnc.c, but I can't see how it is hooked into the kernel - or, better formulated, how can I created kld loadable module. As Zynq has uart_dev_cdnc driver for its PS UART, all necessary files are compiled into kernel, but how can I extend those modules tables to work with new driver too? You can ask why I want it this way, if I can put this into kernel... simply this would make development awkward - every change would mean recompile everything (or at least relinking kernel) and reboot. With kld, I can just rebuild the module, reinstall it, unload old/load new version and test. Other thing is, for any IP core I must first load hw design into PL part (FPGA bitstream, actually), there is simply no device without this step performed. Did anybody already create something similar? Any help/hint/pointer appreciated... Regards, Milan From owner-freebsd-hackers@freebsd.org Sun Oct 27 21:07:15 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 364E11A6FC4 for ; Sun, 27 Oct 2019 21:07:15 +0000 (UTC) (envelope-from leres@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 471Vm30hpbz48RM for ; Sun, 27 Oct 2019 21:07:15 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from ice.alameda.xse.com (unknown [IPv6:2001:558:6045:bb:2058:ecd1:3e14:bec6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id BF03BC62E for ; Sun, 27 Oct 2019 21:07:14 +0000 (UTC) (envelope-from leres@freebsd.org) To: FreeBSD Hackers From: Craig Leres Subject: How to prevent underclocking when running with 1 redundant power supply Message-ID: Date: Sun, 27 Oct 2019 14:07:12 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed 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: Sun, 27 Oct 2019 21:07:15 -0000 I have a nameserver running 11.3-RELEASE-p4. It has a Supermicro X9SRi-F motherboard in a 1U chassis with redundant PWS-406P-1R power supplies (400W each). Site power is out thanks to a PG&E "public safety power shutdown" and I find that the system is really unhappy. It looks like it is underclocking due to one power supply not being powered: # sysctl dev.cpu.0.freq_levels dev.cpu.0.freq dev.cpu.0.freq_levels: 3001/80000 3000/80000 2900/75926 2700/69558 2600/65698 2500/62669 2400/59709 2200/53206 2100/50412 2000/46962 1800/41676 1700/38423 1600/35918 1500/33467 1300/28074 1200/25787 dev.cpu.0.freq: 1200 I found powerd and tried this: powerd_enable="YES" powerd_flags="-a max -b max -n max" which works... once it's started. Now I'm finding one system has a difficult time booting because powerd is started so late in the boot process. Is there a sysctl I can put in loader.conf to disable this underclocking behavior? Thanks! Craig From owner-freebsd-hackers@freebsd.org Sun Oct 27 21:52:13 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 E50F01581F5 for ; Sun, 27 Oct 2019 21:52:13 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) (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 471Wlw6XSfz4BxK for ; Sun, 27 Oct 2019 21:52:12 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mail-yb1-xb2a.google.com with SMTP id h202so3375777ybg.13 for ; Sun, 27 Oct 2019 14:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sjWUF5h0+ElpCbeu78oDhAsTOHBhPgwK4SslbkO4WQE=; b=kcKuiOCEfUc/AfPd/n45CLklUTdZIqDACMT/J/aBPNg17kHCcmatH7/2K109T4fLLm jqbXQH/69KnOEN5jQAoIvk0Typfse9CVUSGEPkgwE5jSaXXzigHvw07X5wpTT0Y1jTRy BRy3TWpptnZkLyaybP319x5I61tE/GePb++maBhBdZhzxp80nDNg3E5QdGpBmzIWZCqz k/KV4WjIqcd2IzGg5OxkGZEQOCrovwTgY94p4pMEnvBsx7Jh9aHbFjT0dhLYxAIF/Qh5 ItLsuQCXWZH3ZyaWOiyCJ8NlA+ReZld8yyAKoE7nWm2wiPYqSo3lBL8VE9x27G2CHkHn Cyyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sjWUF5h0+ElpCbeu78oDhAsTOHBhPgwK4SslbkO4WQE=; b=IiEicYes/Yp73FXdldorcXoeNC6VeNxMigV9KA+2b48mkVfobPXhlV5zgoQp0vnj3w cZFQoEtDIHm0WXsauqsXOqTFYhnlqtw1usxTfnRbXAWDTUEKXA53wV/cPoqmy4rPQjgD YOsdUl4Q5WFs9w0oXG7GpojAKaX509qvRlAPlQtGHrV+iWqtEIsBmeP1rfljbul9AGXc Ep0bMLnOMDPaZMhVg3Q2+QIMCEXJC+mxAxlZBFcI0/m0eFOZ7PdQEAw4YmJXgQ8IW47F u3V1zc7WyZt+hRAiLFyC894VVu+FmK4OLq15no3L7oshXB2BX4h0DSY2p5HotN5psqJV DfWQ== X-Gm-Message-State: APjAAAUq1+hcNNnKGJgDoUtaJJY5NpWZKUuMFt7n7aVdle14V4DbRNm+ RpcLCljfO0Kriow7gRBf/+I02zSJ4FVrAcwJIIudGaGoDpc= X-Google-Smtp-Source: APXvYqyQQztSoZocFWjRhMMvWpfWgD764B3pNrITV+LUZcl6uQjwEkbLcIVuBOhBr/8WZuknXsOBliUlq1xT/V/j9Rk= X-Received: by 2002:a25:1444:: with SMTP id 65mr10973344ybu.132.1572213131176; Sun, 27 Oct 2019 14:52:11 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:7b47:0:0:0:0:0 with HTTP; Sun, 27 Oct 2019 14:52:10 -0700 (PDT) In-Reply-To: <20191027214209.712d62ca@zeta.dino.sk> References: <20191027214209.712d62ca@zeta.dino.sk> From: Oliver Pinter Date: Sun, 27 Oct 2019 22:52:10 +0100 Message-ID: Subject: Re: UART driver as kld - how? To: Milan Obuch Cc: "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 471Wlw6XSfz4BxK X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b=kcKuiOCE; dmarc=none; spf=pass (mx1.freebsd.org: domain of oliver.pinter@hardenedbsd.org designates 2607:f8b0:4864:20::b2a as permitted sender) smtp.mailfrom=oliver.pinter@hardenedbsd.org X-Spamd-Result: default: False [-4.31 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[hardenedbsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[hardenedbsd.org:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[a.2.b.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]; IP_SCORE(-2.81)[ip: (-9.56), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-2.05), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; 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: Sun, 27 Oct 2019 21:52:14 -0000 On Sunday, October 27, 2019, Milan Obuch wrote: > Hi, > > I am trying to create a driver for Xilinx' AXI UART Lite IP core. I > can't find a way to do it as kld module. I started with > uart_dev_cdnc.c, but I can't see how it is hooked into the kernel - or, > better formulated, how can I created kld loadable module. As Zynq has > uart_dev_cdnc driver for its PS UART, all necessary files are compiled > into kernel, but how can I extend those modules tables to work with new > driver too? > > You can ask why I want it this way, if I can put this into kernel... > simply this would make development awkward - every change would mean > recompile everything (or at least relinking kernel) and reboot. With > kld, I can just rebuild the module, reinstall it, unload old/load new > version and test. Other thing is, for any IP core I must first load hw > design into PL part (FPGA bitstream, actually), there is simply no > device without this step performed. > > Did anybody already create something similar? Any help/hint/pointer > appreciated... https://github.com/freebsd/freebsd/tree/master/share/examples/kld > > Regards, > Milan > _______________________________________________ > 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 Sun Oct 27 22:30:00 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 C7D5B1597BE for ; Sun, 27 Oct 2019 22:30:00 +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 471XbW54KQz4Dbm for ; Sun, 27 Oct 2019 22:29:59 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Sun, 27 Oct 2019 23:29:56 +0100 id 00F406F7.5DB61A64.0000E77D Date: Sun, 27 Oct 2019 23:29:56 +0100 From: Milan Obuch To: Oliver Pinter Cc: freebsd-hackers@freebsd.org Subject: Re: UART driver as kld - how? Message-ID: <20191027232956.28b11772@zeta.dino.sk> In-Reply-To: References: <20191027214209.712d62ca@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: 471XbW54KQz4Dbm 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.24 / 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)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dino.sk]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[72.65.245.84.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.94)[ip: (-8.23), ipnet: 84.245.64.0/18(-4.12), asn: 16160(-2.42), country: SK(0.08)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:16160, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2019 22:30:00 -0000 On Sun, 27 Oct 2019 22:52:10 +0100 Oliver Pinter wrote: > On Sunday, October 27, 2019, Milan Obuch > wrote: > > > Hi, > > > > I am trying to create a driver for Xilinx' AXI UART Lite IP core. I > > can't find a way to do it as kld module. I started with > > uart_dev_cdnc.c, but I can't see how it is hooked into the kernel - > > or, better formulated, how can I created kld loadable module. As > > Zynq has uart_dev_cdnc driver for its PS UART, all necessary files > > are compiled into kernel, but how can I extend those modules tables > > to work with new driver too? > > > > You can ask why I want it this way, if I can put this into kernel... > > simply this would make development awkward - every change would mean > > recompile everything (or at least relinking kernel) and reboot. With > > kld, I can just rebuild the module, reinstall it, unload old/load > > new version and test. Other thing is, for any IP core I must first > > load hw design into PL part (FPGA bitstream, actually), there is > > simply no device without this step performed. > > > > Did anybody already create something similar? Any help/hint/pointer > > appreciated... > > > https://github.com/freebsd/freebsd/tree/master/share/examples/kld > Hi, my problem is somewhere else - I am able to build kld, load and unload it, but in all uart_dev_xxxx.c files I saw there are no attach and detach function, so there must be something more to do. On the other side, uart_core.o is already present in kernel, but how should I make it work with newly loaded module? uart_bus_fdt.o is linked in kernel too, and there are attach and detach function, but how can my tables be added in list for it? Regards, Milan From owner-freebsd-hackers@freebsd.org Mon Oct 28 13:42:34 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 E26BC1A3456 for ; Mon, 28 Oct 2019 13:42:34 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 471wrT6nqnz3yd8; Mon, 28 Oct 2019 13:42:33 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id P5HwivNtBUIS2P5HyitOSW; Mon, 28 Oct 2019 07:42:31 -0600 X-Authority-Analysis: v=2.3 cv=N41X6F1B c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=xqWC_Br6kY4A:10 a=XobE76Q3jBoA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=XzyQun5W9-DtYkMxlXgA:9 a=QEXdDO2ut3YA:10 a=Fw41rLh8eLjZiEonq94A:9 a=vVFPoflkoZ-V0Vno:21 a=_W_S_7VecoQA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from [IPv6:2605:8d80:406:1c1b:cf0:5985:232f:3e87] (unknown [72.143.223.11]) by spqr.komquats.com (Postfix) with ESMTPSA id 716E388AB; Mon, 28 Oct 2019 06:42:27 -0700 (PDT) Date: Mon, 28 Oct 2019 06:41:57 -0700 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Subject: Re: How to prevent underclocking when running with 1 redundant power supply To: freebsd-hackers@freebsd.org, Craig Leres , FreeBSD Hackers From: Cy Schubert Message-ID: X-CMAE-Envelope: MS4wfK62L4UnxIQ4UhO+9wGsIKrhIDpdoSpWKC1XR92O23qQZDQ15+g3sQDiBoKcxqsChUy5t/Xt9jpo9JuY8t5dA8srBhLPjTVTOtx/FP4owhHgz4tMsfBn sS3dz9fpZZfg45ntQTpWq5p1HEF09DocnQ3FbEfkRCGaEdHM1hCvIj66ojbbxG/1ti5z4I++HtkEFJMNh6fVYqzwZSPBfddkWTmetGfxQPR20fE9QRUb0eg4 X-Rspamd-Queue-Id: 471wrT6nqnz3yd8 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 64.59.134.13) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-4.49 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-2.39)[ip: (-6.47), ipnet: 64.59.128.0/20(-3.04), asn: 6327(-2.35), country: CA(-0.09)]; RCVD_IN_DNSWL_NONE(0.00)[13.134.59.64.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 13:42:34 -0000 On October 27, 2019 2:07:12 PM PDT, Craig Leres wrote= : >I have a nameserver running 11=2E3-RELEASE-p4=2E It has a Supermicro >X9SRi-F=20 >motherboard in a 1U chassis with redundant PWS-406P-1R power supplies=20 >(400W each)=2E > >Site power is out thanks to a PG&E "public safety power shutdown" and I > >find that the system is really unhappy=2E It looks like it is=20 >underclocking due to one power supply not being powered: > > # sysctl dev=2Ecpu=2E0=2Efreq_levels dev=2Ecpu=2E0=2Efreq > dev=2Ecpu=2E0=2Efreq_levels: 3001/80000 3000/80000 2900/75926 2700/69= 558=20 >2600/65698 2500/62669 2400/59709 2200/53206 2100/50412 2000/46962=20 >1800/41676 1700/38423 1600/35918 1500/33467 1300/28074 1200/25787 > dev=2Ecpu=2E0=2Efreq: 1200 > >I found powerd and tried this: > > powerd_enable=3D"YES" > powerd_flags=3D"-a max -b max -n max" > >which works=2E=2E=2E once it's started=2E Now I'm finding one system has = a=20 >difficult time booting because powerd is started so late in the boot=20 >process=2E > >Is there a sysctl I can put in loader=2Econf to disable this >underclocking=20 >behavior? > >Thanks! > > Craig >_______________________________________________ >freebsd-hackers@freebsd=2Eorg mailing list >https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to >"freebsd-hackers-unsubscribe@freebsd=2Eorg" dev=2Ecpu=2E0=2Efreq can be set by hand (or script)=2E I suppose your BIOS automatically reduces the clock rate with one power su= pply connected=2E I assume that's a safety feature one might want to invest= igate before incurring possible undesired consequences=2E=20 --=20 Pardon the typos and autocorrect, small keyboard in use=2E=20 Cy Schubert FreeBSD UNIX: Web: https://www=2EFreeBSD=2Eorg The need of the many outweighs the greed of the few=2E Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E From owner-freebsd-hackers@freebsd.org Mon Oct 28 19:10:16 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 611F615A861 for ; Mon, 28 Oct 2019 19:10:16 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [45.55.20.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47246b0cWnz4P2C for ; Mon, 28 Oct 2019 19:10:14 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from localhost ([127.0.0.1] helo=id.bluezbox.com) by id.bluezbox.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92 (FreeBSD)) (envelope-from ) id 1iPAP0-000NPD-V6; Mon, 28 Oct 2019 12:10:08 -0700 Received: (from gonzo@localhost) by id.bluezbox.com (8.15.2/8.15.2/Submit) id x9SJA50F089969; Mon, 28 Oct 2019 12:10:05 -0700 (PDT) (envelope-from gonzo@bluezbox.com) X-Authentication-Warning: id.bluezbox.com: gonzo set sender to gonzo@bluezbox.com using -f Date: Mon, 28 Oct 2019 12:10:05 -0700 From: Oleksandr Tymoshenko To: Milan Obuch Cc: Oliver Pinter , freebsd-hackers@freebsd.org Subject: Re: UART driver as kld - how? Message-ID: <20191028191005.GA89835@bluezbox.com> References: <20191027214209.712d62ca@zeta.dino.sk> <20191027232956.28b11772@zeta.dino.sk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191027232956.28b11772@zeta.dino.sk> X-Operating-System: FreeBSD/11.2-RELEASE-p10 (amd64) User-Agent: Mutt/1.12.1 (2019-06-15) X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Milan Obuch (freebsd-hackers@dino.sk) wrote: > On Sun, 27 Oct 2019 22:52:10 +0100 > Oliver Pinter wrote: > > > On Sunday, October 27, 2019, Milan Obuch List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 19:10:16 -0000 Milan Obuch (freebsd-hackers@dino.sk) wrote: > On Sun, 27 Oct 2019 22:52:10 +0100 > Oliver Pinter wrote: > > > On Sunday, October 27, 2019, Milan Obuch > > wrote: > > > > > Hi, > > > > > > I am trying to create a driver for Xilinx' AXI UART Lite IP core. I > > > can't find a way to do it as kld module. I started with > > > uart_dev_cdnc.c, but I can't see how it is hooked into the kernel - > > > or, better formulated, how can I created kld loadable module. As > > > Zynq has uart_dev_cdnc driver for its PS UART, all necessary files > > > are compiled into kernel, but how can I extend those modules tables > > > to work with new driver too? > > > > > > You can ask why I want it this way, if I can put this into kernel... > > > simply this would make development awkward - every change would mean > > > recompile everything (or at least relinking kernel) and reboot. With > > > kld, I can just rebuild the module, reinstall it, unload old/load > > > new version and test. Other thing is, for any IP core I must first > > > load hw design into PL part (FPGA bitstream, actually), there is > > > simply no device without this step performed. > > > > > > Did anybody already create something similar? Any help/hint/pointer > > > appreciated... > > > > > > https://github.com/freebsd/freebsd/tree/master/share/examples/kld > > > > Hi, > > my problem is somewhere else - I am able to build kld, load and unload > it, but in all uart_dev_xxxx.c files I saw there are no attach and > detach function, so there must be something more to do. On the other > side, uart_core.o is already present in kernel, but how should I make > it work with newly loaded module? uart_bus_fdt.o is linked in kernel > too, and there are attach and detach function, but how can my tables be > added in list for it? >From what I see in source code, UART drivers with FDT support are tied to the UART subsystem using UART_FDT_CLASS_AND_DEVICE macro, that adds compat data (list of compatible strings for the driver with pointer to respective uart_class instance) to uart_fdt_class_and_device_set dataset. This dataset is then traversed by uart_fdt_find_device in uart_fdt_probe function. You need: - Add FDT node to device tree, with unique compatible property value and "status" property set to "okay" - In you driver do something like: static struct ofw_compat_data compat_data[] = { {"xlnx,axilite", (uintptr_t)&uart_axilite_class}, {NULL, (uintptr_t)NULL}, }; UART_FDT_CLASS_AND_DEVICE(compat_data); xlnx,axilite in this case is just something I've just made up, you need to get the value from the vendor's DTS bindings documentation. -- gonzo From owner-freebsd-hackers@freebsd.org Mon Oct 28 19:19: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 927B215ACFD for ; Mon, 28 Oct 2019 19:19:57 +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 4724Kl74Tvz4PSM for ; Mon, 28 Oct 2019 19:19:55 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Mon, 28 Oct 2019 20:19:53 +0100 id 00F407EB.5DB73F59.00000B82 Date: Mon, 28 Oct 2019 20:19:52 +0100 From: Milan Obuch To: Oleksandr Tymoshenko Cc: freebsd-hackers@freebsd.org, Oliver Pinter Subject: Re: UART driver as kld - how? Message-ID: <20191028201952.20a92307@zeta.dino.sk> In-Reply-To: <20191028191005.GA89835@bluezbox.com> References: <20191027214209.712d62ca@zeta.dino.sk> <20191027232956.28b11772@zeta.dino.sk> <20191028191005.GA89835@bluezbox.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i386-portbld-freebsd11.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4724Kl74Tvz4PSM 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.21 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dino.sk]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[72.65.245.84.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.91)[ip: (-8.17), ipnet: 84.245.64.0/18(-4.08), asn: 16160(-2.40), country: SK(0.08)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:16160, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 19:19:57 -0000 On Mon, 28 Oct 2019 12:10:05 -0700 Oleksandr Tymoshenko wrote: > Milan Obuch (freebsd-hackers@dino.sk) wrote: [ snip ] > > Hi, > > > > my problem is somewhere else - I am able to build kld, load and > > unload it, but in all uart_dev_xxxx.c files I saw there are no > > attach and detach function, so there must be something more to do. > > On the other side, uart_core.o is already present in kernel, but > > how should I make it work with newly loaded module? uart_bus_fdt.o > > is linked in kernel too, and there are attach and detach function, > > but how can my tables be added in list for it? > > From what I see in source code, UART drivers with FDT support are > tied to the UART subsystem using UART_FDT_CLASS_AND_DEVICE macro, > that adds compat data (list of compatible strings for the driver > with pointer to respective uart_class instance) to > uart_fdt_class_and_device_set dataset. This dataset is then traversed > by uart_fdt_find_device in uart_fdt_probe function. > > You need: > > - Add FDT node to device tree, with unique compatible property value > and "status" property set to "okay" > - In you driver do something like: > > static struct ofw_compat_data compat_data[] = { > {"xlnx,axilite", (uintptr_t)&uart_axilite_class}, > {NULL, (uintptr_t)NULL}, > }; > UART_FDT_CLASS_AND_DEVICE(compat_data); > > xlnx,axilite in this case is just something I've just made up, you > need to get the value from the vendor's DTS bindings documentation. > Hi, I found uart_dev_snps.c being somewhat near what I need. I am trying to extract necessary bits from this and other files (what you wrote is just one bit), it seems our docs are lacking in this area. Regards, Milan From owner-freebsd-hackers@freebsd.org Tue Oct 29 12:13:59 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AB8D21A5382 for ; Tue, 29 Oct 2019 12:13:59 +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 472Vqp3MtGz4RwR for ; Tue, 29 Oct 2019 12:13:58 +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 x9TCDsj2076220 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 29 Oct 2019 13:13:55 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1572351235; bh=PVzfe0n2IUQ+FOVtuegpyQGmFOsAWqy2d/L6BR/rN9I=; h=Date:From:To:Subject; b=NQjtdmkY4VDlmFiZptAgRCiATCZk0+Bh8R5agum2QEmAqn6NPDyDk+Zcs/ijmLpA2 EqgBhuXZ4npCvB5ga1siJrgPsQrRSucAnWCP0pFAkw432LqBdZ77tPgzaUZAU9C0gI y9F7faua8sTPVH22P0DMljw8L7E0XJCFHLmn3PPg= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id x9TCDsBE076217 for ; Tue, 29 Oct 2019 13:13:54 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Tue, 29 Oct 2019 13:13:54 +0100 (CET) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Subject: converting password hashes 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: 472Vqp3MtGz4RwR X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=NQjtdmkY; 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.77 / 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]; 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)[-1.000,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.47)[ip: (-9.16), ipnet: 194.1.144.0/24(-4.58), asn: 43476(-3.66), 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, 29 Oct 2019 12:13:59 -0000 i want to convert accouts from one system where there was mail-only accounts using dovecot/postfix based system and SQL tables to my system, where accounts are real unix accounts - that do mail and other things. I don't know all people's plaintext passwords, and i don't need to and want to, but i want new accounts to work with the same passwords in SQL tables there are entries like this: $1$aab7638c$Cn7BA/oU4mzr0QltXzV7Z0 and these works by simple cut and paste to /etc/master.passwd file but there are entries like: {PLAIN-MD5}c575f55800a549930b9063b43af04f47 that doesn't is there a way to make it work without contacting over hundred people and telling them what new password they have? From owner-freebsd-hackers@freebsd.org Tue Oct 29 12:49:42 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 023341A6088 for ; Tue, 29 Oct 2019 12:49:42 +0000 (UTC) (envelope-from janm@transactionware.com) Received: from mail3.transactionware.com (mail.transactionware.com [203.14.245.7]) by mx1.freebsd.org (Postfix) with SMTP id 472Wcz0spFz4Tkg for ; Tue, 29 Oct 2019 12:49:38 +0000 (UTC) (envelope-from janm@transactionware.com) Received: (qmail 55254 invoked by uid 907); 29 Oct 2019 12:49:30 -0000 Received: from p5DD14C1D.dip0.t-ipconnect.de (HELO [192.168.7.2]) (93.209.76.29) (smtp-auth username janm, mechanism plain) by mail3.transactionware.com (qpsmtpd/0.84) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) ESMTPSA; Tue, 29 Oct 2019 23:49:30 +1100 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: converting password hashes From: Jan Martin Mikkelsen In-Reply-To: Date: Tue, 29 Oct 2019 13:49:20 +0100 Cc: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <1A7D3067-D5D6-47A0-9F42-FCBF8A1A856D@transactionware.com> References: To: Wojciech Puchar X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: 472Wcz0spFz4Tkg X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of janm@transactionware.com has no SPF policy when checking 203.14.245.7) smtp.mailfrom=janm@transactionware.com X-Spamd-Result: default: False [-0.09 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.79)[-0.787,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.81)[-0.807,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[transactionware.com]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:17559, ipnet:203.14.245.0/24, country:AU]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[country: AU(0.01)]; 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, 29 Oct 2019 12:49:42 -0000 > On 29 Oct 2019, at 13:13, Wojciech Puchar wrote: >=20 > i want to convert accouts from one system where there was mail-only = accounts using dovecot/postfix based system and SQL tables to my system, = where accounts are real unix accounts - that do mail and other things. >=20 > I don't know all people's plaintext passwords, and i don't need to and = want to, but i want new accounts to work with the same passwords >=20 > in SQL tables there are entries like this: >=20 > $1$aab7638c$Cn7BA/oU4mzr0QltXzV7Z0 >=20 > and these works by simple cut and paste to /etc/master.passwd file >=20 >=20 > but there are entries like: >=20 > {PLAIN-MD5}c575f55800a549930b9063b43af04f47 >=20 > that doesn't >=20 >=20 > is there a way to make it work without contacting over hundred people = and telling them what new password they have? If it is just MD5 with no salt, I suspect substituting =E2=80=9C$1$$=E2=80= =9D for the =E2=80=9C{PLAIN_MD5}=E2=80=9D would be sufficient. Regards, Jan M. From owner-freebsd-hackers@freebsd.org Tue Oct 29 13:14:10 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 D0F731A69D6 for ; Tue, 29 Oct 2019 13:14:10 +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 472X9G58KRz4VqT; Tue, 29 Oct 2019 13:14:10 +0000 (UTC) (envelope-from se@freebsd.org) Received: from Stefans-MBP-449.fritz.box (p200300CD5F23DA00FC518F8E6EA06116.dip0.t-ipconnect.de [IPv6:2003:cd:5f23:da00:fc51:8f8e:6ea0:6116]) (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 4CD501DEB5; Tue, 29 Oct 2019 13:14:10 +0000 (UTC) (envelope-from se@freebsd.org) Subject: Re: converting password hashes To: freebsd-hackers@freebsd.org References: <1A7D3067-D5D6-47A0-9F42-FCBF8A1A856D@transactionware.com> From: =?UTF-8?Q?Stefan_E=c3=9fer?= Message-ID: <6bc3f2ec-0b2b-bbcc-2636-7130f8567bb4@freebsd.org> Date: Tue, 29 Oct 2019 14:14:07 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: <1A7D3067-D5D6-47A0-9F42-FCBF8A1A856D@transactionware.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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, 29 Oct 2019 13:14:10 -0000 On 29.10.19 13:49, Jan Martin Mikkelsen wrote: >> On 29 Oct 2019, at 13:13, Wojciech Puchar wrote: >> >> i want to convert accouts from one system where there was mail-only accounts using dovecot/postfix based system and SQL tables to my system, where accounts are real unix accounts - that do mail and other things. >> >> I don't know all people's plaintext passwords, and i don't need to and want to, but i want new accounts to work with the same passwords >> >> in SQL tables there are entries like this: >> >> $1$aab7638c$Cn7BA/oU4mzr0QltXzV7Z0 >> >> and these works by simple cut and paste to /etc/master.passwd file >> >> >> but there are entries like: >> >> {PLAIN-MD5}c575f55800a549930b9063b43af04f47 >> >> that doesn't >> >> >> is there a way to make it work without contacting over hundred people and telling them what new password they have? > > If it is just MD5 with no salt, I suspect substituting “$1$$” for the “{PLAIN_MD5}” would be sufficient. I have not checked the code, this might even work (if there is no check for a non-empty hash). But the plain MD5 hashes have to be converted from hex to base64, too, since that is the expected encoding for $1$ password entries ... Regards, STefan From owner-freebsd-hackers@freebsd.org Tue Oct 29 14: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 2DBAD158986 for ; Tue, 29 Oct 2019 14:48:26 +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 472ZG15Prsz4bNG; Tue, 29 Oct 2019 14:48:25 +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 x9TEmKd4008598 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 29 Oct 2019 15:48:21 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1572360501; bh=D88hkcKFDO4QK8+jyhl5n50Anewj0qeNHbK6DekzgRU=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=rPL1DXoLdWMIdeEGFj2z0glHgYEct8Hg8i8NQ9vgqGN/DVquvD2pio0UT2rMMkCE3 IATzq4mZ1iaCmiaei4LenfuX+4tRDtK4VX9MLpfAogt70gHrVwB8i0+SCBX531oT3f lC0bZdvZUME0cyy2zPzuYufAv2eQyXXgFoGzByS0= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id x9TEmKHY008595; Tue, 29 Oct 2019 15:48:20 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Tue, 29 Oct 2019 15:48:20 +0100 (CET) From: Wojciech Puchar To: =?ISO-8859-15?Q?Stefan_E=DFer?= cc: freebsd-hackers@freebsd.org Subject: Re: converting password hashes In-Reply-To: <6bc3f2ec-0b2b-bbcc-2636-7130f8567bb4@freebsd.org> Message-ID: References: <1A7D3067-D5D6-47A0-9F42-FCBF8A1A856D@transactionware.com> <6bc3f2ec-0b2b-bbcc-2636-7130f8567bb4@freebsd.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 X-Rspamd-Queue-Id: 472ZG15Prsz4bNG X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT 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, 29 Oct 2019 14:48:26 -0000 >>> that doesn't >>> >>> >>> is there a way to make it work without contacting over hundred people and telling them what new password they have? >> >> If it is just MD5 with no salt, I suspect substituting “$1$$” for the “{PLAIN_MD5}” would be sufficient. > > I have not checked the code, this might even work (if there is no check > for a non-empty hash). > > But the plain MD5 hashes have to be converted from hex to base64, too, > since that is the expected encoding for $1$ password entries ... tried: $ echo -n blah|md5|xxd -r -p|base64 bx7QAqtVlYWQFOvwlRUi2Q== then i put $1$$bx7QAqtVlYWQFOvwlRUi2Q by vipw in password field tried to log in with blah password. doesn't work any more ideas? From owner-freebsd-hackers@freebsd.org Tue Oct 29 16:55: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 D1BC515C874 for ; Tue, 29 Oct 2019 16:55:41 +0000 (UTC) (envelope-from SRS0=bdhP=YW=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (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 472d4r4rW2z3JDq; Tue, 29 Oct 2019 16:55:40 +0000 (UTC) (envelope-from SRS0=bdhP=YW=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id B62D728422; Tue, 29 Oct 2019 17:55:37 +0100 (CET) Received: from illbsd.quip.test (ip-62-24-92-232.net.upcbroadband.cz [62.24.92.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 412472840C; Tue, 29 Oct 2019 17:55:36 +0100 (CET) Subject: Re: converting password hashes To: Wojciech Puchar , =?UTF-8?Q?Stefan_E=c3=9fer?= Cc: freebsd-hackers@freebsd.org References: <1A7D3067-D5D6-47A0-9F42-FCBF8A1A856D@transactionware.com> <6bc3f2ec-0b2b-bbcc-2636-7130f8567bb4@freebsd.org> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <9952a3b8-025f-2f8a-139f-417a2b0dcec9@quip.cz> Date: Tue, 29 Oct 2019 17:55:35 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 472d4r4rW2z3JDq X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=bdhP=YW=quip.cz=000.fbsd@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=bdhP=YW=quip.cz=000.fbsd@elsa.codelab.cz X-Spamd-Result: default: False [4.08 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; IP_SCORE(0.90)[ip: (0.43), ipnet: 94.124.104.0/21(0.22), asn: 42000(3.77), country: CZ(0.09)]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[quip.cz]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.99)[0.986,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.993,0]; RCVD_IN_DNSWL_NONE(0.00)[4.105.124.94.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=bdhP=YW=quip.cz=000.fbsd@elsa.codelab.cz]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=bdhP=YW=quip.cz=000.fbsd@elsa.codelab.cz]; MID_RHS_MATCH_FROM(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, 29 Oct 2019 16:55:41 -0000 Wojciech Puchar wrote on 2019/10/29 15:48: >>>> that doesn't >>>> >>>> >>>> is there a way to make it work without contacting over hundred >>>> people and telling them what new password they have? >>> >>> If it is just MD5 with no salt, I suspect substituting “$1$$” for the >>> “{PLAIN_MD5}” would be sufficient. >> >> I have not checked the code, this might even work (if there is no check >> for a non-empty hash). >> >> But the plain MD5 hashes have to be converted from hex to base64, too, >> since that is the expected encoding for $1$ password entries ... > > tried: > > $ echo -n blah|md5|xxd -r -p|base64 > bx7QAqtVlYWQFOvwlRUi2Q== > > then i put $1$$bx7QAqtVlYWQFOvwlRUi2Q by vipw in password field > > tried to log in with blah password. doesn't work > > any more ideas? MD5 passwords are very weak and should not be used in these days. Blf-Crypt (bcrypt) or Argon2 is recommended https://doc.dovecot.org/configuration_manual/authentication/password_schemes/ There is a way you can change password hashes after successful logon with the old password hash. This How To is for passwords in MySQL but you can modify it to your environment with UNIX passwords too. https://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes Only hashes will be changed and nothing will be visible from the user's point of view, they will use their passwords. I think it is much better than using MD5 hashes forever. Miroslav Lachman From owner-freebsd-hackers@freebsd.org Wed Oct 30 07:06:59 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 380F317B979 for ; Wed, 30 Oct 2019 07:06:59 +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 472zz605n4z4Wl3; Wed, 30 Oct 2019 07:06:57 +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 x9U76pe2099137 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 30 Oct 2019 08:06: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=1572419212; bh=ASxI7D/Un9unG/BImnr7BsQGNTleRW4tBaadNmmgEUY=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=qdOevhfJHR0GD4mnsLk4qvetniQI3wemq5MmWD+rxI4KQQJ+PbM4wX8VIbY4oNBtw LK5fUCiAv2Udffpb1GFD4bll0pO8x9GW8C8BOgbyGffQq67eOvjsJ0fT8Cak4wlF5b fPLn98A3fvLGfdIZdaAvqWshCsQ9WmMNeChAKmPU= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id x9U76pLV099134; Wed, 30 Oct 2019 08:06:51 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Wed, 30 Oct 2019 08:06:51 +0100 (CET) From: Wojciech Puchar To: Miroslav Lachman <000.fbsd@quip.cz> cc: Wojciech Puchar , =?ISO-8859-15?Q?Stefan_E=DFer?= , freebsd-hackers@freebsd.org Subject: Re: converting password hashes In-Reply-To: <9952a3b8-025f-2f8a-139f-417a2b0dcec9@quip.cz> Message-ID: References: <1A7D3067-D5D6-47A0-9F42-FCBF8A1A856D@transactionware.com> <6bc3f2ec-0b2b-bbcc-2636-7130f8567bb4@freebsd.org> <9952a3b8-025f-2f8a-139f-417a2b0dcec9@quip.cz> 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: 472zz605n4z4Wl3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=qdOevhfJ; 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.75 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+mx]; 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_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(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.45)[ip: (-9.13), ipnet: 194.1.144.0/24(-4.56), asn: 43476(-3.65), 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: Wed, 30 Oct 2019 07:06:59 -0000 >>> since that is the expected encoding for $1$ password entries ... >> >> tried: >> >> $ echo -n blah|md5|xxd -r -p|base64 >> bx7QAqtVlYWQFOvwlRUi2Q== >> >> then i put $1$$bx7QAqtVlYWQFOvwlRUi2Q by vipw in password field >> >> tried to log in with blah password. doesn't work >> >> any more ideas? > > MD5 passwords are very weak and should not be used in these days. > Blf-Crypt (bcrypt) or Argon2 is recommended > https://doc.dovecot.org/configuration_manual/authentication/password_schemes/ > not what i've asked From owner-freebsd-hackers@freebsd.org Fri Nov 1 00:16:44 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D0CE117AFB6 for ; Fri, 1 Nov 2019 00:16:44 +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 4742mq6m86z41Pm for ; Fri, 1 Nov 2019 00:16:43 +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 xA10GM3m037473 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 31 Oct 2019 17:16:23 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id xA10GM8j037472; Thu, 31 Oct 2019 17:16:22 -0700 (PDT) (envelope-from jmg) Date: Thu, 31 Oct 2019 17:16:22 -0700 From: John-Mark Gurney To: Wojciech Puchar Cc: freebsd-hackers@freebsd.org Subject: Re: converting password hashes Message-ID: <20191101001622.GB8521@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]); Thu, 31 Oct 2019 17:16:23 -0700 (PDT) X-Rspamd-Queue-Id: 4742mq6m86z41Pm 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.24 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.938,0]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(-0.51)[ip: (-1.31), ipnet: 208.87.216.0/21(-0.65), asn: 32354(-0.52), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[funkthat.com]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,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: Fri, 01 Nov 2019 00:16:44 -0000 Wojciech Puchar wrote this message on Tue, Oct 29, 2019 at 13:13 +0100: > i want to convert accouts from one system where there was mail-only > accounts using dovecot/postfix based system and SQL tables to my system, > where accounts are real unix accounts - that do mail and other things. > > I don't know all people's plaintext passwords, and i don't need to and > want to, but i want new accounts to work with the same passwords > > in SQL tables there are entries like this: > > $1$aab7638c$Cn7BA/oU4mzr0QltXzV7Z0 > > and these works by simple cut and paste to /etc/master.passwd file > > > but there are entries like: > > {PLAIN-MD5}c575f55800a549930b9063b43af04f47 > > that doesn't > > > is there a way to make it work without contacting over hundred people and > telling them what new password they have? There's two ways, one is to write a PAM module or extend crypt(3) to support the plain md5 format from postgresql. The other option is to do what is called on-line conversion. Ask all the affected users to login using their existing password, and as part of the process, you now have their original password, so you jsut re-crypt them w/ a compatible format, and then store and use the new format. -- 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 Fri Nov 1 02:16:03 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 C09C817E70C for ; Fri, 1 Nov 2019 02:16:03 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4745QW4NR6z48NF; Fri, 1 Nov 2019 02:16:03 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from hot.ee.lbl.gov (hot.ee.lbl.gov [IPv6:2620:83:8000:102::cb]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id 131D61868D; Fri, 1 Nov 2019 02:16:02 +0000 (UTC) (envelope-from leres@freebsd.org) From: Craig Leres Subject: Re: 11.2-RELEASE-p11 hang on shutdown To: Eugene Grosbein , FreeBSD Hackers References: <28a4a088-922f-4f95-9d8c-e75250883dd2@freebsd.org> <25843b14-dbd9-3464-1382-ca36e5395ee6@grosbein.net> <7e4e7fa0-9af3-eb3f-42ce-a3a8a382558b@freebsd.org> Message-ID: <3a38bcb2-47d8-cd3f-6ff0-0df9fbdc247f@freebsd.org> Date: Thu, 31 Oct 2019 19:16:00 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <7e4e7fa0-9af3-eb3f-42ce-a3a8a382558b@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed 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: Fri, 01 Nov 2019 02:16:03 -0000 On 2019-07-25 14:30, Craig Leres wrote: > On 2019-07-25 01:08, Eugene Grosbein wrote: >> Most probably there is some incompatibility between your BIOS/UEFI >> code and FreeBSD code. >> First you need to make sure you have lastest firmware flashed and >> update it if yours staled. > > I started with 3.0a and had upgraded to 3.1 and retested before posting > to freebsd-hackers. > >> If that won't help, you could play with sysctl hw.acpi.handle_reboot >> and/or hw.acpi.disable_on_reboot >> changing their values (0 or 1) one time per try and trying reboot. > > Changing hw.acpi.handle_reboot from 1 to 0 didn't help but changing > hw.acpi.disable_on_reboot from 0 to 1 did. Following up, hw.acpi.disable_on_reboot didn't work after all (either it worked once or I got confused). But today I saw there was a new bios (3.3) and new ipmi firmware (1.71.11) and with those installed and configured I'm able to reboot with hanging (without any hw.acpi tweaks). Craig From owner-freebsd-hackers@freebsd.org Fri Nov 1 10:49:17 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1069E158D5C for ; Fri, 1 Nov 2019 10:49:17 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) (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 474Jph0hTKz44Kj for ; Fri, 1 Nov 2019 10:49:15 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-pf1-f196.google.com with SMTP id 3so6785144pfb.10 for ; Fri, 01 Nov 2019 03:49:15 -0700 (PDT) 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=gLDs9RUBiSu4EICkWMpZTtvwdU7ZPtaDw1tkfOaAZMQ=; b=tEbJw92yKJbna4kA9frJehIhIVMegZtz5fXEXLJedlV4BsZ7NMThme+5yLae9yiR8G qHQKBpTfzzR+ZRKj+/slFfszMe3O/In44hxHCkfv7U3Us41HLqfevekRc1IoluzhOgz7 ZP9FZtxM/kQXaebLtONjnUkKuIcH6CowsS0TbGUwp6cZP8I0G9ywEU/C2PPJFbmZFwaD e8qVoN9RxTIWHTh4/bgqt/JXtSZHPi1xP0HlwkoaRGPv22ccAL5UDA9xEp4Qbt9HBh9V jqbQGwceeECmBnBEYQrU2RMRVff+Ta9L9hwTjAO7uzcPw5yW0j9r9KGO7MAR+Ee0AXMl Do6w== X-Gm-Message-State: APjAAAUc3QYeKw3eZomS7OB6gQVKu3o0QSXSeBAQUbs2TaOKlA940pYC F5TsLL6RsjWBN06ScZe98w5knJGphAhK2g== X-Google-Smtp-Source: APXvYqxz1AzqHFPFhALG6d1JoQiF0SgzJrGMvkHI3UNRwLFCfQQaKzy9rSOLfjunO10FHFie4JFrTA== X-Received: by 2002:a17:90a:610:: with SMTP id j16mr14527298pjj.85.1572605354274; Fri, 01 Nov 2019 03:49:14 -0700 (PDT) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com. [209.85.214.182]) by smtp.gmail.com with ESMTPSA id f13sm5931805pgs.83.2019.11.01.03.49.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Nov 2019 03:49:13 -0700 (PDT) Received: by mail-pl1-f182.google.com with SMTP id w8so4192885plq.5 for ; Fri, 01 Nov 2019 03:49:13 -0700 (PDT) X-Received: by 2002:a17:902:b08b:: with SMTP id p11mr12084585plr.57.1572605353703; Fri, 01 Nov 2019 03:49:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Gleb Popov Date: Fri, 1 Nov 2019 14:48:49 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: A bounty of $100 for rtsx SD card reader driver. To: freebsd-hackers X-Rspamd-Queue-Id: 474Jph0hTKz44Kj X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.210.196 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-1.03 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[196.210.85.209.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; SUBJECT_HAS_CURRENCY(1.00)[]; URI_COUNT_ODD(1.00)[3]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; 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]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.975,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-1.06)[ipnet: 209.85.128.0/17(-3.21), asn: 15169(-2.04), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[196.210.85.209.list.dnswl.org : 127.0.5.0]; 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: Fri, 01 Nov 2019 10:49:17 -0000 On Wed, Jun 19, 2019 at 10:22 AM Gleb Popov wrote: > Hello hackers@ > > I've posted a bounty for this bug: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204521 > > I invite anyone interested in using this driver on FreeBSD to either add > some money to the bounty, or take up the task and implement it. This > shouldn't be very hard, as there an OpenBSD implementation already. > > Thanks for your attention. > In case anyone is interested, the bounty is $375 already. From owner-freebsd-hackers@freebsd.org Fri Nov 1 11:01: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 A804B159549 for ; Fri, 1 Nov 2019 11:01:26 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from weser.webweaving.org (weser.webweaving.org [148.251.234.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "weser.webweaving.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474K4j3bp0z4556 for ; Fri, 1 Nov 2019 11:01:25 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from [10.11.0.158] (94-210-134-94.cable.dynamic.v4.ziggo.nl [94.210.134.94]) (authenticated bits=0) by weser.webweaving.org (8.15.2/8.15.2) with ESMTPSA id xA1AqlRw062567 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 1 Nov 2019 11:52:48 +0100 (CET) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: weser.webweaving.org: Host 94-210-134-94.cable.dynamic.v4.ziggo.nl [94.210.134.94] claimed to be [10.11.0.158] Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. From: Dirk-Willem van Gulik In-Reply-To: Date: Fri, 1 Nov 2019 12:00:01 +0100 Cc: freebsd-hackers Content-Transfer-Encoding: 7bit Message-Id: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> References: To: Gleb Popov X-Mailer: Apple Mail (2.3273) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (weser.webweaving.org [148.251.234.232]); Fri, 01 Nov 2019 11:52:48 +0100 (CET) X-Rspamd-Queue-Id: 474K4j3bp0z4556 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of dirkx@webweaving.org designates 148.251.234.232 as permitted sender) smtp.mailfrom=dirkx@webweaving.org X-Spamd-Result: default: False [-0.97 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.87)[-0.872,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; SUBJECT_HAS_CURRENCY(1.00)[]; DMARC_NA(0.00)[webweaving.org]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-0.30)[ipnet: 148.251.0.0/16(0.25), asn: 24940(-1.74), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:148.251.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 11:01:26 -0000 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. Dw From owner-freebsd-hackers@freebsd.org Sat Nov 2 07:26:49 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B0D52167DF6 for ; Sat, 2 Nov 2019 07:26:49 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 474rGc5K2Lz4KJM; Sat, 2 Nov 2019 07:26:48 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x32f.google.com with SMTP id 6so10172258wmf.0; Sat, 02 Nov 2019 00:26:48 -0700 (PDT) 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=TNApy42kpifV6Rnnz6LGYOOwQ4NRI3fbfc/hObY/sz8=; b=qli1YBbzIeUwYkYAHeNXY11Jx14orqQw0NrrY6qm2gkpRT/KrMNtRkUmtzp2RM/08f hUxChfa8T+ZJodF2UMlxcBff9jU9YmFjDrukEd6Yp+fRJ+lxp4GRUVnBP54DBg0XAMJP oS4VZwU6ljC00VmY7yZfh2S6jgdB+CsaFampfkn0wEvIjInOSlZeaV/PCCzOz2qwNQV/ XdO7srjgw2Vm6T+b/fEkjqCrzE69yb2WB8aL4VZHd2FJc9O3nm5RW/Wte/DHJsxsOVHI /L1tl8eFt1B5AY2UHYTWuzddLp9Sm4jdHS+qnd8NNm5PNGpTWjiRvXU+tGeF0gbvGn4H 3T0A== 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=TNApy42kpifV6Rnnz6LGYOOwQ4NRI3fbfc/hObY/sz8=; b=OCIVGhq7EqVkzQsz0rinL1uyU8S7k8w51D0QhO4Jz1AtBZCOxbEkJSsMFwzYu6RSTz 9fUdSFk3Pfg+kCz30ZlvqKp2KCUcKGq7o0oOJusPgvSE8AHFCdMW8RYUySrLuv0VdeJK omDD+iADoZkYAPcco5bh36WwrKL9/3gkaQBuQIbEIu3rSYvBq22e2N79KuPHdmF4p4NU uZmKH2Ed8xgYsFJurJ0wL31SI14vdu7KFVpEMgrsd6RdpG5QdD0QTHKt7irxmy151TUk vfLqWX6pol4O5zuspFHQQmATta5jfeJcU5AwkTAvbyOAuCOTQixFcj7hcoeyCRLgIjnO FLLw== X-Gm-Message-State: APjAAAV7ipcgD2wBrJtufD0RpBATjh1ipi5xW4ZwxBXJHQy31Z3MBHlc DIuopEtIi9cjSO7gsPFWaFvRLj0+ X-Google-Smtp-Source: APXvYqyuJBUADxPJEgdxn3y0cPOhPFupKdQMuJmlbWtyR9A7nZihitaegiSlhTN+diKTqPHwDxOVrw== X-Received: by 2002:a1c:2342:: with SMTP id j63mr13345962wmj.56.1572679606850; Sat, 02 Nov 2019 00:26:46 -0700 (PDT) Received: from ernst.home (pD9E23368.dip0.t-ipconnect.de. [217.226.51.104]) by smtp.gmail.com with ESMTPSA id q2sm8809999wmq.30.2019.11.02.00.26.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2019 00:26:45 -0700 (PDT) Date: Sat, 2 Nov 2019 08:26:41 +0100 From: Gary Jennejohn To: Dirk-Willem van Gulik Cc: Gleb Popov , freebsd-hackers Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. Message-ID: <20191102082641.52f64cc8@ernst.home> In-Reply-To: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> References: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 474rGc5K2Lz4KJM X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=qli1YBbz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::32f 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:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[104.51.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)[f.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-8.83), ipnet: 2a00:1450::/32(-2.78), asn: 15169(-2.03), 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: Sat, 02 Nov 2019 07:26:49 -0000 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? -- Gary Jennejohn From owner-freebsd-hackers@freebsd.org Sat Nov 2 07:54: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 9A20017946A for ; Sat, 2 Nov 2019 07:54:29 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 474rtX30gvz4LVx for ; Sat, 2 Nov 2019 07:54:28 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-pf1-f181.google.com with SMTP id z4so2521208pfn.12 for ; Sat, 02 Nov 2019 00:54:28 -0700 (PDT) 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=o/aFzhHKJt9cRZgMP7MgYn4n5AdyN7tSdKru4mjg2CI=; b=VSZhroxJY5TQPJfAV79snT1zumagFuQgFL81J1QdZQd2VrLXEB3dkkKaJfJW/Czyuu SNg/qcb0tZSE4Yxqr+Dy2mQ4NtwJTafJF1LsCBwCyuiP8d0ys2l5SbETJAXr9m8jhLdi 2Nn/i9irgz3zMgQfabc8E3vIH79V+UJ1J6ZvRxnpuLMmRom4koCcYL83bL0CsXXlLdkF hPhbum/D1AhficLwkLi2vdieuuNyUAyaGAKIMXCDm9MSvntP4w6t8m42iZmUgI83YWnn GAhboNSyjrU5k/GaeGzUz9wxQGGmOinl2xl7RwfrnF3Lw72YWcV0BtIa7nXlIFigA5u6 gP9Q== X-Gm-Message-State: APjAAAVs3DpSGwWdvnSPCsgf3cKNkC38RZas1wZBqX5FTjtaljU9lMQe +tyimKHWOs+FugXlFXQAKdZTzfp/Js8= X-Google-Smtp-Source: APXvYqxmvQVkyKFhckV4DJZTW4mCV4m4+8eWycz0eEYhtgb+cts4s1drY40ARzA/tYJG8AYZlm4o6w== X-Received: by 2002:a62:1ad6:: with SMTP id a205mr18804365pfa.64.1572681266607; Sat, 02 Nov 2019 00:54:26 -0700 (PDT) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com. [209.85.210.169]) by smtp.gmail.com with ESMTPSA id b6sm10777200pga.12.2019.11.02.00.54.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Nov 2019 00:54:26 -0700 (PDT) Received: by mail-pf1-f169.google.com with SMTP id p24so2052465pfn.4 for ; Sat, 02 Nov 2019 00:54:26 -0700 (PDT) X-Received: by 2002:a63:cc17:: with SMTP id x23mr18287570pgf.446.1572681265998; Sat, 02 Nov 2019 00:54:25 -0700 (PDT) MIME-Version: 1.0 References: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> <20191102082641.52f64cc8@ernst.home> In-Reply-To: <20191102082641.52f64cc8@ernst.home> From: Gleb Popov Date: Sat, 2 Nov 2019 11:54:01 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. To: gljennjohn@gmail.com Cc: Dirk-Willem van Gulik , freebsd-hackers X-Rspamd-Queue-Id: 474rtX30gvz4LVx X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.210.181 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-3.02 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; RWL_MAILSPIKE_GOOD(0.00)[181.210.85.209.rep.mailspike.net : 127.0.0.18]; SUBJECT_HAS_CURRENCY(1.00)[]; URI_COUNT_ODD(1.00)[3]; RCVD_COUNT_THREE(0.00)[4]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; FREEMAIL_TO(0.00)[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)[-0.998,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[181.210.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-3.02)[ip: (-9.81), ipnet: 209.85.128.0/17(-3.21), asn: 15169(-2.03), country: US(-0.05)]; 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, 02 Nov 2019 07:54:29 -0000 On Sat, Nov 2, 2019 at 11:26 AM 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? > I'd be OK with CURRENT and MFH to 12 sometime. 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. > With that I cannot help, unfortunately. I can, however, test the code and help with debugging. 3) what is the target environment? Laptop? PCI card? Some other > device with an embedded controller? > In my case it is an ASUS notebook. > -- > Gary Jennejohn > From owner-freebsd-hackers@freebsd.org Sat Nov 2 10:57:08 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E922717F242 for ; Sat, 2 Nov 2019 10:57:08 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (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 474wxJ5sCsz4TsC; Sat, 2 Nov 2019 10:57:08 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x341.google.com with SMTP id c22so11411575wmd.1; Sat, 02 Nov 2019 03:57:08 -0700 (PDT) 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=DFb9pKx71vgbz5a/2FOxooAgb6zcBENHBQyNH7dUh2A=; b=kq6z1diaKuZ12t8ISPOtCvwNIeMEaQ4d/OFELfZsJgFWR5bHl3ZdpVKcHvRYHtxQOu kj7d1k+8xZVzwWb+EVoHTnnzpUfCJKpTfdKc0+JCv/BbtczLRI7e/ubqt9e4kUHNy/pl 49Sj7w85jNq+g3VmSbXL2zq9t04AJ7wvAMsTJ2CnZ4Nox4KumPwB6IpNrOpeJwgyGa7m IoCVrrwa4udDip36ZiXQ1xRWsLEtj2kyzVDohh0tgneWUXiPe2a6jrS509AoD3l7Ek8t nECKyYSztla+x9GqvMdm5tY+h0vaNvnMgQSUS1r9pG8eFqXbdL9+1SkL9ZEpNDluQ7z5 eAsg== 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=DFb9pKx71vgbz5a/2FOxooAgb6zcBENHBQyNH7dUh2A=; b=bG87ZG1Qu0NN3EVKv14iQPXjb2XgESFnzvvW+DXHVnHwfcPwDS4TqL2tMxW8FovjyJ dkla3FbbBHHQ/A5F7MxEsT2IMA8tq4RR5RoLHEaLulloXg74claWYB+vEjV6LFw5UAB5 +nN/O7etG19AXZPCBoxFl2C4mzx0cj1sFhMl26OyLrXsQHLHiQ4lYlIOgG4GqUNla7E/ hvm17oh16DzD6bW6HMMUsKRc55sHS2/4+pU2KHLFaJRhyr/IjiKEEUR05VFmH/Sfe8xa OSIPXBQTbQI9g8ge+H4vJNuKxtERsFNYzK+NZaHJmw9/3WJ4zRNq3eZPR5YriPA0pJvJ tlYA== X-Gm-Message-State: APjAAAVywlHnFKlHGcfYwYWBE/NiJo4zJwOG+lho2WcWvkVBRhamhGam s9Xdx0l7vlu5sraDBzuLuuwamKli X-Google-Smtp-Source: APXvYqynuhLVEDFnyiNhlftNdBbby4FaXdeUWOVqnlCsHJPn3WT2qQssG0WRDgRHIfoUw0r6ac0QlQ== X-Received: by 2002:a1c:2b82:: with SMTP id r124mr4634771wmr.112.1572692226515; Sat, 02 Nov 2019 03:57:06 -0700 (PDT) Received: from ernst.home (pD9E23368.dip0.t-ipconnect.de. [217.226.51.104]) by smtp.gmail.com with ESMTPSA id j22sm14061705wrd.41.2019.11.02.03.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2019 03:57:05 -0700 (PDT) Date: Sat, 2 Nov 2019 11:57:05 +0100 From: Gary Jennejohn To: Gleb Popov Cc: Dirk-Willem van Gulik , freebsd-hackers Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. Message-ID: <20191102115705.323376cd@ernst.home> In-Reply-To: References: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> <20191102082641.52f64cc8@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: 474wxJ5sCsz4TsC X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.99 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.993,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 10:57:09 -0000 On Sat, 2 Nov 2019 11:54:01 +0400 Gleb Popov wrote: > On Sat, Nov 2, 2019 at 11:26 AM 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? > > > > I'd be OK with CURRENT and MFH to 12 sometime. > I had commit bits (src, ports) at one time (gj@), but I gave them back several years ago. So, since you're a committer, you would have to sheperd the code into the tree. But as a ports committer that may not be so easy. > 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. > > > > With that I cannot help, unfortunately. I can, however, test the code and > help with debugging. > Well, I've been developing drivers for 35 years and I can tell you that this approach would not too very practical. But it might work. > 3) what is the target environment? Laptop? PCI card? Some other > > device with an embedded controller? > > > > In my case it is an ASUS notebook. > I have 3 laptops but unfortunately none of them uses this controller. Maybe I can find a PCIe card with the controller. Would probably cost less than $450. -- Gary Jennejohn From owner-freebsd-hackers@freebsd.org Sat Nov 2 15:27: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 1C6C91A8F35 for ; Sat, 2 Nov 2019 15:27:41 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) (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 4752xR6hnxz3KBJ for ; Sat, 2 Nov 2019 15:27:39 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x843.google.com with SMTP id t8so17235054qtc.6 for ; Sat, 02 Nov 2019 08:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nB3fpmNiZFD90UJGREx0kw7TrpUf6AxfCejpjSH/D30=; b=eiav6yAEJhkfQ5DLZRChpB+7eaRL61q+97/yVuCFwYXHWM1NULp4n8SqftgBRpkV+N wCFb438kL6rl5T3UFy6EuTRgn+KfkR6bsdT3yRApnLeO1qBnhKjRQqhG3qI0t3gZHl8E JC+JIgRk3kQexyjAF2bXuB7G0RLqehPr1f9hQruFTTc1k/DM0TuaAbhNCw9I694+i4Vo rgDsYTr8XhDHK6tz3b7LjqvTVWUc1DUScyNXfnSeOemHKHaz8ygz8OuzVIpPyqMTfKah d1E/DYyn9C8L4zwSMoiKRVLRrRjbcFSwqzSuSDY2Dz+4MltWwFsPRTmPtPDS4xeW2o80 Mvbg== 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=nB3fpmNiZFD90UJGREx0kw7TrpUf6AxfCejpjSH/D30=; b=sRVIKgQuMTBzjBPV+97jKfoDYZwGlAOIc4iiVUtxrR/kqc+EzzPVa5+iJJPJEo9thE Nljd4yYxfsPT5fGXA6Sp9vrNQHMC8kGnpuQPw6TslxhqBsQdxXbCA12b3wTlgw634HG1 TfiEU7XrA1T7dq3xqx2jDBzAvg+0kYsHa+0Ndwt0pff8UpFW38O7pZ21AFZBXEC19NF1 V2mHEWjUJe6NEqg/dT3PIIdqDqF00DoHQXhdzMn23PjSUDcSW4JkpiDWyyTqoV0c41JM vKqr5B5VX2Xjza424jyi5pmhv8zjBPxC20hzYP7U097fV46Sjn04cCi+Ys1Xhc1/wrKj Y3MA== X-Gm-Message-State: APjAAAXuXa2b5Qa5Vkj6bkmJHcD2JKI5P618Expa5dqpvkojIihRHW9F uNO9x2537IyEHRJeyvnIwQU4iLnkIeD/XZ6jn0aLQA== X-Google-Smtp-Source: APXvYqwePe8SENxZH8lLfTa8ypwIibSJsQvF+lH/9eAGEzlctPKGoSbzRRU1oKmoTBbbW2vLmtK+kZvvQN+JYgJew9M= X-Received: by 2002:a0c:c125:: with SMTP id f34mr1987238qvh.22.1572708458541; Sat, 02 Nov 2019 08:27:38 -0700 (PDT) MIME-Version: 1.0 References: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> <20191102082641.52f64cc8@ernst.home> <20191102115705.323376cd@ernst.home> In-Reply-To: <20191102115705.323376cd@ernst.home> From: Warner Losh Date: Sat, 2 Nov 2019 09:27:26 -0600 Message-ID: Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. To: Gary Jennejohn Cc: Gleb Popov , Dirk-Willem van Gulik , freebsd-hackers X-Rspamd-Queue-Id: 4752xR6hnxz3KBJ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=eiav6yAE; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::843) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-1.38 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; SUBJECT_HAS_CURRENCY(1.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[3.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]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-0.38)[ip: (2.55), ipnet: 2607:f8b0::/32(-2.38), asn: 15169(-2.03), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 15:27:41 -0000 On Sat, Nov 2, 2019, 4:58 AM Gary Jennejohn wrote: > On Sat, 2 Nov 2019 11:54:01 +0400 > Gleb Popov wrote: > > > On Sat, Nov 2, 2019 at 11:26 AM 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? > > > > > > > I'd be OK with CURRENT and MFH to 12 sometime. > > > > I had commit bits (src, ports) at one time (gj@), but I gave them > back several years ago. So, since you're a committer, you would > have to sheperd the code into the tree. But as a ports committer > that may not be so easy. > > > 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. > > > > > > > With that I cannot help, unfortunately. I can, however, test the code and > > help with debugging. > > > > Well, I've been developing drivers for 35 years and I can tell > you that this approach would not too very practical. But it > might work. > I agree. > 3) what is the target environment? Laptop? PCI card? Some other > > > device with an embedded controller? > > > > > > > In my case it is an ASUS notebook. > > > > I have 3 laptops but unfortunately none of them uses this > controller. > > Maybe I can find a PCIe card with the controller. Would probably > cost less than $450. > Years ago I was told they were cards, but I couldn't find any. I have started to get the proper scaffolding in place to drop the bit from openbsd that frobs the hardware. But everything about this port is an impedance mismatch. Busdma is different and the mmc host adapter interface is different. It's far from a simple drop in with minor tweaks. It's likely the reason even a few hundred hasn't help expedite porting.... especially since this is a rare part... I'd say we also need docs to make a proper go of it because that too is usually needed... Warner -- > 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" > From owner-freebsd-hackers@freebsd.org Sat Nov 2 16:10:19 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 100111AA59E for ; Sat, 2 Nov 2019 16:10:19 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (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 4753tf29BGz3MP7; Sat, 2 Nov 2019 16:10:17 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x441.google.com with SMTP id a15so12557933wrf.9; Sat, 02 Nov 2019 09:10:17 -0700 (PDT) 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=cU1QLNGVD2bMJs0iYqPDP/6Oa1SUw8WZHQalZ/uib5k=; b=TmHZ+CC0scuJZthnY5Z7Up9HyN52FAVtROTObm7hJnpJIVz3e67OLulvLYcpdmH4y+ iHOz2RXEfz/T3kj66mrO2Xh3Dr1ON/J/TLRB2pVcU4/LJX+xanDZShzRIlQBNE4QzhEX 3SU0fyiP1pGxVpZlRwU0YwMKpgv1n8mSCI1aZcRkEsP4lyHukh2ukICxMs0UtyOF/NEx nCQU55tDZhqxtyMtPB6GkCW1DwP6hazzVtmuWy5mxubHrCpxVi4THP/YmTr9fr2aq2+I Bw6dS/9CIUmP3fMt/tCfLmJZw6QAclk5oirX/9kmXHZrd7571wdM8Y80eelYTIn2luo6 AnYA== 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=cU1QLNGVD2bMJs0iYqPDP/6Oa1SUw8WZHQalZ/uib5k=; b=G70iQt+ODXZUT6h+NyjBVO4QE+qCHBFuCKOI4EBQdvGmm40dn0g1NsF4yLoqZlnE4H ouUkCiDmaiUP/7fcKXIJHqhG7YZ7GqFPgRFIOhHcV+0tQ5N4Ej1FZDKSFmVJ1uCVHAt2 zY2Hgmxl57RxC0PeFagvjTiJRVY82TI7sYRSIT6DAE4RBstIJn39aTh70mduG1NcvqeO TA0dnM5RyvmFt7FiUXk3nxEaJh+/cDhudhzZoF/zCn+JNJ6kZqMsY+f+OM2RVXIcmcj1 oo8ozTnvY4AGuLKW6VnGeQ7W3SV9NFZU0NOdOXDYZbyMidgmJ7Ok8gkw06JmyX8e1TO1 4m6Q== X-Gm-Message-State: APjAAAWMNCa6bLpYdtAAw863oSlK1C6k/h0OPOe/xwfO+K+aA9IO7Die OhIFi+wHq3owCs+FYC2npk0vC8Kq X-Google-Smtp-Source: APXvYqyxHNi44kv2VE64Y/FJJXUW2nxfgbpA4e1zkrG9lf2l/Fa5O1I0JoPGKYBpGZJhHpXDLHMltQ== X-Received: by 2002:a5d:6cc3:: with SMTP id c3mr15585568wrc.202.1572711015983; Sat, 02 Nov 2019 09:10:15 -0700 (PDT) Received: from ernst.home (pD9E23368.dip0.t-ipconnect.de. [217.226.51.104]) by smtp.gmail.com with ESMTPSA id 6sm15826110wmd.36.2019.11.02.09.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2019 09:10:15 -0700 (PDT) Date: Sat, 2 Nov 2019 17:10:13 +0100 From: Gary Jennejohn To: Warner Losh Cc: Gleb Popov , Dirk-Willem van Gulik , freebsd-hackers Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. Message-ID: <20191102171013.67322f23@ernst.home> In-Reply-To: References: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> <20191102082641.52f64cc8@ernst.home> <20191102115705.323376cd@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: 4753tf29BGz3MP7 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=TmHZ+CC0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::441 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:c]; 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:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[104.51.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)[-0.997,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; 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)[1.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]; IP_SCORE(0.00)[ip: (2.79), ipnet: 2a00:1450::/32(-2.78), asn: 15169(-2.03), 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: Sat, 02 Nov 2019 16:10:19 -0000 On Sat, 2 Nov 2019 09:27:26 -0600 Warner Losh wrote: > On Sat, Nov 2, 2019, 4:58 AM Gary Jennejohn wrote: > > > On Sat, 2 Nov 2019 11:54:01 +0400 > > Gleb Popov wrote: > > > > > On Sat, Nov 2, 2019 at 11:26 AM 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? > > > > > > > > > > I'd be OK with CURRENT and MFH to 12 sometime. > > > > > > > I had commit bits (src, ports) at one time (gj@), but I gave them > > back several years ago. So, since you're a committer, you would > > have to sheperd the code into the tree. But as a ports committer > > that may not be so easy. > > > > > 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. > > > > > > > > > > With that I cannot help, unfortunately. I can, however, test the code and > > > help with debugging. > > > > > > > Well, I've been developing drivers for 35 years and I can tell > > you that this approach would not too very practical. But it > > might work. > > > > I agree. > > > 3) what is the target environment? Laptop? PCI card? Some other > > > > device with an embedded controller? > > > > > > > > > > In my case it is an ASUS notebook. > > > > > > > I have 3 laptops but unfortunately none of them uses this > > controller. > > > > Maybe I can find a PCIe card with the controller. Would probably > > cost less than $450. > > > > Years ago I was told they were cards, but I couldn't find any. > Yeah, at one time DeLock sold Express and PCIe cards, but they're no longer available. Couldn't find any on eBay either. > I have started to get the proper scaffolding in place to drop > the bit from openbsd that frobs the hardware. But everything > about this port is an impedance mismatch. Busdma is different > and the mmc host adapter interface is different. It's far from > a simple drop in with minor tweaks. It's likely the reason > even a few hundred hasn't help expedite porting.... especially > since this is a rare part... > That's good. There's also a Linux driver and even one for MacOS. I'm now retired and don't have anything interesting to do since freelance work has sort of dried up. This port would help keep my brain healthy. The money's not that important. > I'd say we also need docs to make a proper go of it because > that too is usually needed... > Well, I couldn't find any docs after several google searches. Have to try harder, I guess. -- Gary Jennejohn From owner-freebsd-hackers@freebsd.org Sat Nov 2 16:29:23 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9DB9D1AB1B3 for ; Sat, 2 Nov 2019 16:29:23 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from weser.webweaving.org (weser.webweaving.org [148.251.234.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "weser.webweaving.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4754Jg24ghz3NlM for ; Sat, 2 Nov 2019 16:29:23 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from [10.11.0.158] (94-210-134-94.cable.dynamic.v4.ziggo.nl [94.210.134.94]) (authenticated bits=0) by weser.webweaving.org (8.15.2/8.15.2) with ESMTPSA id xA2GJQnK009454 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 2 Nov 2019 17:19:26 +0100 (CET) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: weser.webweaving.org: Host 94-210-134-94.cable.dynamic.v4.ziggo.nl [94.210.134.94] claimed to be [10.11.0.158] Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. From: Dirk-Willem van Gulik In-Reply-To: Date: Sat, 2 Nov 2019 17:26:40 +0100 Cc: Gary Jennejohn , Gleb Popov , freebsd-hackers Content-Transfer-Encoding: quoted-printable Message-Id: <082B79A4-EB74-42D7-94F1-67619C1FF31D@webweaving.org> References: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> <20191102082641.52f64cc8@ernst.home> <20191102115705.323376cd@ernst.home> To: Warner Losh X-Mailer: Apple Mail (2.3273) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (weser.webweaving.org [148.251.234.232]); Sat, 02 Nov 2019 17:19:27 +0100 (CET) X-Rspamd-Queue-Id: 4754Jg24ghz3NlM X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of dirkx@webweaving.org designates 148.251.234.232 as permitted sender) smtp.mailfrom=dirkx@webweaving.org X-Spamd-Result: default: False [-1.02 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; SUBJECT_HAS_CURRENCY(1.00)[]; DMARC_NA(0.00)[webweaving.org]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RECEIVED_SPAMHAUS_PBL(0.00)[94.134.210.94.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_MEDIUM(-0.93)[-0.933,0]; IP_SCORE(-0.29)[ipnet: 148.251.0.0/16(0.25), asn: 24940(-1.70), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:148.251.0.0/16, country:DE]; FREEMAIL_CC(0.00)[gmail.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: Sat, 02 Nov 2019 16:29:23 -0000 On 2 Nov 2019, at 16:27, Warner Losh wrote: > Years ago I was told they were cards, but I couldn't find any. ... > I'd say we also need docs to make a proper go of it because that too = is usually needed=E2=80=A6 An alternative source of information is the linux port: https://github.com/gexplorer/RTS5209-linux-driver https://github.com/chrisnew/rts_pstor I=E2=80=99ll check if we have some of those cards here that ca easily be = shipped out. Dw. From owner-freebsd-hackers@freebsd.org Sat Nov 2 16:50:49 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A5D451ABCDF for ; Sat, 2 Nov 2019 16:50:49 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4754nP1xjkz3Pfs for ; Sat, 2 Nov 2019 16:50:49 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1572713447; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=ux5P99pvos9+CzzSc1rOCQTjqid0gtS+kpF28TFGWesUJWJXb6t4izGF/Kj0ZH0rF3P1bbpWZhZG2 y14XRw6nRl35hwBqC/S0YQGe3epbPbQsOFmzAHt4yNIX6MHTd5FxrZKjyGRul/G/c71aFfFiWrIttA SlA6ag2OEi8EfcamUJFfNyR0DJ9WhY4KNHoMfuwWKoI6Dh3OeT0SeiKXeOAd8aKER9HmM0q+N/5VM1 /LZHScLqiPdNLG6sZv2/GQXh3/vqbI4oooa8961PvZKM9xg54XcYmEDRW5sW8hSGaXPHJ47NDcilq2 QGwpJnRNs+CJApVmwqJzEwJuzV2U3qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=Gatf7muRMtAYBaO6/ZvBZBm+JhtEnciChHEQp66NzX4=; b=aAo0/dP0xHN4FEw+F+IllVvDzcb6rz0EHqcrY0Ff1UmJwbjj+GqIX5quqxfUqV0FKZs3JcqcS7vYb OJ72QT3vYxrthMODb7Sp3ty919RSHfjMuIys+B1aBw4xAaDS9kQZV6n2bCCzBOsCCXo3LYitBEcPsn IjL8+2rxAA4zYmtZZWzu9dortAYfficeUnEqU7WfX8dMf4QvK7I5gzp1Dr1JS/d90Ki4JiT0HNXHLF +bCHD0TaKuf/ezjN2VelLc+wg17ijupsGCRnY8dmin5sSjCboCv9QG/lBM2pH9fVi+6+2A13HooGmc TryW4QKTYwfkZ48Ax1rOOxJaNA+I/mA== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=Gatf7muRMtAYBaO6/ZvBZBm+JhtEnciChHEQp66NzX4=; b=LxAi+WW+397mboJYR6BbsJiCBKwzPVBvd6GS1QXb+hgO+dr4E/+e5RJbW5ck8MXVFhvy4fMooZLkB NEUBJxJYmKHbElnEzE4wojtMdkUxyh7el4lwV+5Aky/PccAbenfX5dD3O+Kkx97hAUHAqCGy65V3DQ H9u6XdDG60CrNr57m0zDKPtl7CAvkzY+NZi4UKuiQYlQVc4uOJHtKki4DDqnBcxb6wbG+mmN4jXlXy wcrLQcEIbdk/brAV/h/FUyryraaNvMAZUPLVPEvZK6EnzzTepmCOS/kJKxMwgiKZ/mTRKOZlgMjXUj BK980NV6cyjB7X7Noe/tVOBZtNEtAXQ== X-MHO-RoutePath: aGlwcGll X-MHO-User: e8eb5164-fd90-11e9-829e-79a40d15cccd X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id e8eb5164-fd90-11e9-829e-79a40d15cccd; Sat, 02 Nov 2019 16:50:46 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id xA2GohHt080890; Sat, 2 Nov 2019 10:50:43 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. From: Ian Lepore To: Dirk-Willem van Gulik , Warner Losh Cc: freebsd-hackers , Gleb Popov Date: Sat, 02 Nov 2019 10:50:43 -0600 In-Reply-To: <082B79A4-EB74-42D7-94F1-67619C1FF31D@webweaving.org> References: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> <20191102082641.52f64cc8@ernst.home> <20191102115705.323376cd@ernst.home> <082B79A4-EB74-42D7-94F1-67619C1FF31D@webweaving.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4754nP1xjkz3Pfs X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.96 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.96)[-0.960,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 16:50:49 -0000 On Sat, 2019-11-02 at 17:26 +0100, Dirk-Willem van Gulik wrote: > On 2 Nov 2019, at 16:27, Warner Losh wrote: > > > Years ago I was told they were cards, but I couldn't find any. > > ... > > I'd say we also need docs to make a proper go of it because that > > too is usually needed… > > An alternative source of information is the linux port: > > https://github.com/gexplorer/RTS5209-linux-driver > https://github.com/chrisnew/rts_pstor > And just how do you draw the line between "I looked at the linux code as a source of information" and "I copied the linux code in violation of its GPL license" ? -- Ian From owner-freebsd-hackers@freebsd.org Sat Nov 2 17:02:27 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 85E0A1AC356 for ; Sat, 2 Nov 2019 17:02:27 +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 47552q2X0lz3QZ8; Sat, 2 Nov 2019 17:02:27 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x444.google.com with SMTP id b3so6868110wrs.13; Sat, 02 Nov 2019 10:02:27 -0700 (PDT) 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=j3pWA24OwfVYuVonx1H5t6PftfsnJXMmxkg+G72Ek3E=; b=Cp9jOJg9gHz84GLK9+IwMhLw6shwk7gkoYzPrGtiw0ozQVNxf3GLVA/o3AqXXiLQ8o waL/Qfk0XQz4oI8hIKtVk3IFO+e3u0JOojgbUdYzMKqRzqFGIT5VWqXSycrU1hLHdWtU zuG6cx5GuRC6W26tl8flDdYsYlL0ycIl3eGC3dYkaD9tPUo1gZ15prdWN9ZEO89Rrr3o XHJA4GZjloqFD7SPzgKqr/0RKsrVzj0r7ONGCFGsMPdxL6tMzoBzRS4fIYVD+Bm+ttzf tKYviuYvfcY6awNTYm3bVMz6nvBc3zs+Se6xgGICNhXi/wPmiXWqGROWBLlqeqsypzWb aoGg== 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=j3pWA24OwfVYuVonx1H5t6PftfsnJXMmxkg+G72Ek3E=; b=MixkweZvRZt//poFf/EZjswnhQQiqrPnuMQETSVCVHmY/egb93ZKExdi8ES1nflgqF sNu4Bia3xGJZ5be296uElTjLUoSFOeGySOuweYEd8ULRkUqRdQX9pMzjxCMFXfUl6prz biDx5bnKX4bbBztH6fKyinrRnfsLu7r2x1AN2kQb3mwS+sAEMDm9b07vUMCJHKzSzA85 hiPAf5eexDmDNkFC0LorK/LLS2ZlnwqJtRsR8I6Eqhi6w+QcP6jsGstB2KsTaPTps3yD gqarw9MbWmeDt+0JaMrF/YV7sLGaT2zTLDtmMsW3rJks0rOfJ7gD0G1mGuuC0SLqNPkG 4MtQ== X-Gm-Message-State: APjAAAUDVIskfWVkDTb1T0sw54RT4rlfWFL/65XsvDjPZB+O7C8LiRPK GfMnKhM+2TtE9IHm0TvySVsvtiFq X-Google-Smtp-Source: APXvYqzFmU2LiEuWDfArCrsM4vFJXSzGhMeT7aZyI0plAj9/apPil57cE/eqPbbIFQt1CeG0mSa2Tg== X-Received: by 2002:adf:f048:: with SMTP id t8mr12558874wro.237.1572714146035; Sat, 02 Nov 2019 10:02:26 -0700 (PDT) Received: from ernst.home (pD9E23368.dip0.t-ipconnect.de. [217.226.51.104]) by smtp.gmail.com with ESMTPSA id w4sm4875119wmi.39.2019.11.02.10.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2019 10:02:25 -0700 (PDT) Date: Sat, 2 Nov 2019 18:02:24 +0100 From: Gary Jennejohn To: Ian Lepore Cc: Dirk-Willem van Gulik , Warner Losh , freebsd-hackers , Gleb Popov Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. Message-ID: <20191102180224.30b5693a@ernst.home> In-Reply-To: References: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> <20191102082641.52f64cc8@ernst.home> <20191102115705.323376cd@ernst.home> <082B79A4-EB74-42D7-94F1-67619C1FF31D@webweaving.org> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47552q2X0lz3QZ8 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.99 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.991,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 17:02:27 -0000 On Sat, 02 Nov 2019 10:50:43 -0600 Ian Lepore wrote: > On Sat, 2019-11-02 at 17:26 +0100, Dirk-Willem van Gulik wrote: > > On 2 Nov 2019, at 16:27, Warner Losh wrote: > > > > > Years ago I was told they were cards, but I couldn't find any. > > > > ... > > > I'd say we also need docs to make a proper go of it because that > > > too is usually needed... > > > > An alternative source of information is the linux port: > > > > https://github.com/gexplorer/RTS5209-linux-driver > > https://github.com/chrisnew/rts_pstor > > > > And just how do you draw the line between "I looked at the linux code > as a source of information" and "I copied the linux code in violation > of its GPL license" ? > The driver was also ported to NetBSD, so that gives us two BSD-based drivers as reference. Plus, the author of the OpenBSD driver may have some documentation available. -- Gary Jennejohn From owner-freebsd-hackers@freebsd.org Sat Nov 2 17:04:52 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 C885E1AC7B6 for ; Sat, 2 Nov 2019 17:04:52 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 47555c4zDxz3xNY for ; Sat, 2 Nov 2019 17:04:52 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from comporellon.tachypleus.net (unknown [IPv6:2605:e000:1314:5ea:8035:e2a:2c77:7bdc]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: nwhitehorn/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 6358F9C92 for ; Sat, 2 Nov 2019 17:04:52 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. To: freebsd-hackers@freebsd.org References: <9C97A802-A542-44B3-A295-79CCF70BF8D2@webweaving.org> <20191102082641.52f64cc8@ernst.home> <20191102115705.323376cd@ernst.home> <082B79A4-EB74-42D7-94F1-67619C1FF31D@webweaving.org> From: Nathan Whitehorn Message-ID: <56c3d132-b51a-f239-2527-8790acc2ffa5@freebsd.org> Date: Sat, 2 Nov 2019 10:04:50 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 17:04:52 -0000 On 2019-11-02 09:50, Ian Lepore wrote: > On Sat, 2019-11-02 at 17:26 +0100, Dirk-Willem van Gulik wrote: >> On 2 Nov 2019, at 16:27, Warner Losh wrote: >> >>> Years ago I was told they were cards, but I couldn't find any. >> ... >>> I'd say we also need docs to make a proper go of it because that >>> too is usually needed… >> An alternative source of information is the linux port: >> >> https://github.com/gexplorer/RTS5209-linux-driver >> https://github.com/chrisnew/rts_pstor >> > And just how do you draw the line between "I looked at the linux code > as a source of information" and "I copied the linux code in violation > of its GPL license" ? > > -- Ian > There is also an OpenBSD driver. I just bought a laptop that has this thing in it (Thinkpad 495) and might give it a go. Wireless is a bit higher up the priority list though... -Nathan From owner-freebsd-hackers@freebsd.org Sat Nov 2 18:14:06 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 588531AE8FC for ; Sat, 2 Nov 2019 18:14:06 +0000 (UTC) (envelope-from jim@netgate.com) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (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 4756dT3zbNz41sq for ; Sat, 2 Nov 2019 18:14:05 +0000 (UTC) (envelope-from jim@netgate.com) Received: by mail-io1-xd2e.google.com with SMTP id c6so14214262ioo.13 for ; Sat, 02 Nov 2019 11:14:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=4MocaDBnlVbahmntpeX+p/NRFTWwfGz4pz3NRsX1OK4=; b=UBwz/QIJD9WZyZCIccUtKs1ahV3opdjgeJLQ5APk9jKXeWE0pNMu1Eq9Z357PIpPZN crJZynfycutOn3FvX329ntFWyComuQEl6E5Fw2izcIi4HeD1QsY91aOXmZmctMu1oCIA ODnd5j7bAnfRYMt5Xye1DVlyDSs3fTvSTn9oJmjk6WMf5jcnVgVxgr5vo4Rp5hg0G0lj hebbyRsDvk9wGO5bvJ2FiHKWVNzcajU6jRgnykc4Q/9L9x8Qw2T+ajWs7JGQPZIj+vjX 6TGdDMQhGjMErGKlw+DMuBHRyEe/iUwv7FxG4Ql1u96ro1rCWmVRpCPY0NjtrQWZH3LG WNew== X-Gm-Message-State: APjAAAWPL5Cu1uKQrkMPRiLvp2m22ONb6tkn8NMriBWQeSVzg/M73+HY 0ydaIXWFGojUsH8T2hzPeMdoBg== X-Google-Smtp-Source: APXvYqzDUTWF19wgwIHOsLw/gxNy81P+zB+MHn/GAfaUKIIti3QP8LvFngs1LHRaGYrtDxOWtnYSWw== X-Received: by 2002:a5d:9f17:: with SMTP id q23mr14208153iot.100.1572718444031; Sat, 02 Nov 2019 11:14:04 -0700 (PDT) Received: from ?IPv6:2600:1:9502:be6:95a3:887:dccc:5c7? ([2600:1:9502:be6:95a3:887:dccc:5c7]) by smtp.gmail.com with ESMTPSA id b65sm1660041ill.85.2019.11.02.11.14.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Nov 2019 11:14:02 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Jim Thompson Mime-Version: 1.0 (1.0) Subject: Re: A bounty of 450 (was $100) for rtsx SD card reader driver. Date: Sat, 2 Nov 2019 12:14:01 -0600 Message-Id: <03F712F6-02BD-4542-AF13-DC48568AFEC0@netgate.com> References: Cc: Dirk-Willem van Gulik , Warner Losh , freebsd-hackers , Gleb Popov In-Reply-To: To: Ian Lepore X-Mailer: iPhone Mail (17A878) X-Rspamd-Queue-Id: 4756dT3zbNz41sq X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.58 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[netgate.com:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; SUBJECT_HAS_CURRENCY(1.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[netgate.com:+]; DMARC_POLICY_ALLOW(-0.50)[netgate.com,quarantine]; RCVD_IN_DNSWL_NONE(0.00)[e.2.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]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.08)[ip: (-5.94), ipnet: 2607:f8b0::/32(-2.38), asn: 15169(-2.03), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; 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: Sat, 02 Nov 2019 18:14:06 -0000 > On Nov 2, 2019, at 10:51 AM, Ian Lepore wrote: >=20 > And just how do you draw the line between "I looked at the linux code as a= source of information" and "I copied the linux code in violation of its GPL= license" ? (I am not a lawyer, and if I was, I am not your lawyer...) If you copy, then you are subject to whatever license you got with the origi= nal code.=20 One of the normal legal tests (in copyright law, but not, say, patent law) i= s that what=E2=80=99s in your head is yours. Copyright only covers the expre= ssion of an idea in a fixed medium.=20 So you can study the code (assuming that you have legal access), gain unders= tanding, and write your own implementation, using only that understanding. One of the huge =E2=80=9Cgotchas=E2=80=9D is if copying of non-functional el= ements of the source code occurs. These include things like comments, varia= ble names, indentation style, etc.=20 To that end, a certain other BSD project once copied unpublished code to a W= iFi driver and, =E2=80=9CTada!!=E2=80=9D published the result, claiming reve= rse-engineering.=20 Only they even left the comments intact.=20 When challenged on this, the other BSD project had the audacity to get SFLC (= the people who sue over the GPL) to step in and say it was all OK. To be c= lear, neither the original source, nor the =E2=80=9Cderived=E2=80=9D code wa= s/is GPL licensed.=20 One of the best ever FreeBSD Developers now works on Linux full-time in part= due to this incident. And so it goes... So even if you don=E2=80=99t step on a landmine when copying GPL (or other) c= ode, you might step in s***. =20 Best to be careful and keep it clean, right? From owner-freebsd-hackers@freebsd.org Sat Nov 2 20:41:10 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 C8BE4163A4C for ; Sat, 2 Nov 2019 20:41:10 +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 4759v90hVCz495k for ; Sat, 2 Nov 2019 20:41:08 +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, 02 Nov 2019 21:41:05 +0100 id 00F4071F.5DBDE9E1.0000BF62 Date: Sat, 2 Nov 2019 21:41:00 +0100 From: Milan Obuch To: freebsd-hackers@freebsd.org Cc: Oleksandr Tymoshenko , Oliver Pinter Subject: Re: UART driver as kld - how? Message-ID: <20191102214100.500ba493@zeta.dino.sk> In-Reply-To: <20191028201952.20a92307@zeta.dino.sk> References: <20191027214209.712d62ca@zeta.dino.sk> <20191027232956.28b11772@zeta.dino.sk> <20191028191005.GA89835@bluezbox.com> <20191028201952.20a92307@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: 4759v90hVCz495k 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.19 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dino.sk]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[72.65.245.84.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.89)[ip: (-8.11), ipnet: 84.245.64.0/18(-4.05), asn: 16160(-2.37), country: SK(0.08)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:16160, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 20:41:10 -0000 On Mon, 28 Oct 2019 20:19:52 +0100 Milan Obuch wrote: [ snip ] > Hi, > > I found uart_dev_snps.c being somewhat near what I need. I am trying > to extract necessary bits from this and other files (what you wrote is > just one bit), it seems our docs are lacking in this area. > > Regards, > Milan > After studying other uart_dev_xxx.c files I am able to create working skeleton uart driver. I can compile it, kldload, and get some console output. Right now, I hit another problem - uart framework is not documented well, at least no man page is found in share/man directory. My probe function is similar to that in uart_dev_snps.c file, simplified, and I need to know what arguments should uart_bus_probe function be invoked with. In many device drivers there are mostly zeros, but this does not work for me. Currently I am getting error 6, ENXIO, so I am not correctly attaching my driver to device. Putting some printf here and there, I found test at line 508, file uart_core.c, fails - sc->sc_class is null. Question is, now, where and how should this field in this structure be initialized... I am sure I need docs/description for other functions as well, so if anybody knows where good uart framework description could be found, please advice. Or if somebody already has good understanding of it and could help me with my issues, it wil be greatly appreciated. Regards, Milan