From owner-freebsd-hackers@freebsd.org Sat Nov 9 05:00:44 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 057BD17D71A for ; Sat, 9 Nov 2019 05:00:44 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4794hq090rz4LMV for ; Sat, 9 Nov 2019 05:00:42 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-lf1-x142.google.com with SMTP id y6so6065974lfj.2 for ; Fri, 08 Nov 2019 21:00:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mime-version :content-transfer-encoding; bh=rpadJ8cJM40TY+oth+aBo8ZC4ng/31X6UhXc6ptS1w4=; b=m0QbsT+ieyd0GjcQRcpncYIKVAzm9hVAgwTI6FWNVixPicFAzQWNYWpkwWW9vWKbNS 1ch301xliDbXST1UjjaOselGxkSLjAA5fk+rr2A18Ak5l0kpJPqDW1vdQTrCtZ6r2M7g /jEMTJmNbmfpGltn83k4C3FpU1wuL7zukMw7sofLGQHeeAwWZ1kdl8t4fL4hEZ/xLEvX BfJXgFFagf6SFVD6P1+nMiU+rA2HRIG8fWxR3quYOpwlk0cEM7+z1tDiwzX5XpJ5/Zdj D3OZcfqgQMEjMy2lx7W1S7NPKSuf9ZaU+NU8RFl7H/BthbN5I2Uzcp9z1IOqFqddIsvF tPtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mime-version :content-transfer-encoding; bh=rpadJ8cJM40TY+oth+aBo8ZC4ng/31X6UhXc6ptS1w4=; b=IZ1hOVxObwrZZ5pv2wFFy1vzcJvHts9mJ9ux3OFs9TqvySfwAORIjRyuZLmXrtfRZ0 ckuFGzDlAvzV15hb9XFyC5Wvl4l4sgjh8DznHZlGlICASbbZgscvtzidGvAzROJkJlwf cLCaxqiXPjh1n9ZsDt7WmQw4N0IHylPdejuNJ6ON/aB5p6hV9gbdol+c5HRqzj4mAxNR ApsszMnfEeuHpa5Tijx/1+KZtPUqb6cYagGFYCUIKrih/9i14IkO0SbbLvOt9itrYl01 oD/rOu3RfVLgffGUNAOYhDZdb7603P3ga0tRTKarv+rSF16S279vE85HT6kChbwg21s+ IWgg== X-Gm-Message-State: APjAAAXiKSDr5YzFoGfGZWT3Ct1TFxeE+Ydj/RAwIADC3jIR1Bffob7R aTC2v3gsa/KYs++RrdswJ8itDBq+ X-Google-Smtp-Source: APXvYqysKspDcp1qIK1lULMPRajOepahlH7kmbniV6b787haJKSg6JpntpzyscrPO+3Ky4P6SE0jyA== X-Received: by 2002:ac2:5144:: with SMTP id q4mr9151061lfd.36.1573275638249; Fri, 08 Nov 2019 21:00:38 -0800 (PST) Received: from rimwks ([2001:470:1f15:3d8:7285:c2ff:fe37:5722]) by smtp.gmail.com with ESMTPSA id y21sm3439920ljm.25.2019.11.08.21.00.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 21:00:37 -0800 (PST) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Sat, 9 Nov 2019 08:00:32 +0300 To: freebsd-hackers@freebsd.org, Hans Petter Selasky , Johannes Lundberg , Rozhuk Ivan Subject: Linux PCI drivers in user space Message-ID: <20191109080032.231cd203@rimwks> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4794hq090rz4LMV X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=m0QbsT+i; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rozhukim@gmail.com designates 2a00:1450:4864:20::142 as permitted sender) smtp.mailfrom=rozhukim@gmail.com X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.00)[ip: (2.81), ipnet: 2a00:1450::/32(-2.75), asn: 15169(-2.01), country: US(-0.05)]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Nov 2019 05:00:44 -0000 Hi! Im frustrating with amdgpu on 12.1... Current status DRM with linuxkpi - it hard to use and hard to support. FreeBSD stable have no fresh drivers, FreeBSD current - unstable. But we have webcamd: + almost all time fresh drivers from linux + easy to pull drivers from linux + easy to debug + on crash - system continue work + more secure - driver limited to process memory - probably a bit slower If add some kernel module that will export all pci devices and allow to mmap() pci device memory to user space and somehow proxy IRQ (like events to poll()/kqueue()), IO ports and registers then webcamd will can work with this like it now works with USB devices, and fbsd users can use latest DRM and some other drivers. Also adding sysctl settings to webcamd devices will be very useful. Porting and updating drivers in user space webcamd easy then do same in kernel. Also all latest drivers will work on all actual FreeBSD versions.