From owner-freebsd-hackers@freebsd.org Tue Feb 19 00:33:34 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E0FD14F160B for ; Tue, 19 Feb 2019 00:33:34 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CCE98D2BA for ; Tue, 19 Feb 2019 00:33:33 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x844.google.com with SMTP id p48so21306403qtk.2 for ; Mon, 18 Feb 2019 16:33:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XNriMNmY7bi/kBS+kas7Kkgv1qO/55KEF73G1HiTtyg=; b=JkLHnBT/ZyLTpcX+4H5hJ3hLCECUWlmaP58AUOtS/GweJ2ePx9J2/9BTGo0P5QacVZ Uzn16lzpcyLKZNaQ1Kp9dr1DRxZScw1kTqiD6/onqCN9O51FSgSI5S2IJC/llsYlHG1c qHWLhVkyxyCPqDnymwlrH660YSGrxoj1lkW1oQJHSm/QEAKRSN1QCtjNTIZbqDu0RRIz XH7dcC9YJQhW8YZuRi3sTpdEgvNzUMm+xoqWaKdz+EWFX5kHVUp7WQqUDTIiYAHiZFjP WLmK6Bj8ZI/ycY1RY9LWFUtLloUz1exDr7dzo0SuFS+mtnPGppFgutqXl4f4Fz6GMosV mZAw== 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=XNriMNmY7bi/kBS+kas7Kkgv1qO/55KEF73G1HiTtyg=; b=iUW0NjzdoPiK7rvawsl5NDT5yj2QWaFFp8D3A1ys+Rn+pg9dsshJCdcv5iDUKCnOQs W+F3PKElE8cB9/D5591EfeO/u/rJ2FLifZCypaDbRAzgi3GNTWTZlveQW78fpwgFHzL4 +JR6eCnU6H+7YBnjHSqyBLtDgjQ/Tp0xQs1G0VHADqCB6y8KTgngzM05fp/TdwHme368 xmG/alpA724Laa+GueKetqtKVtUwzzgeFiYGDRSjK9zKyEIpS+oyu2HffxLZPe2UTLBl LPGZm/rpyt4gA/5zqX2HDJf/IomiX28p97XIA1hBg1aPa4+KGz68z0RuHKioFc4KErQN qaLA== X-Gm-Message-State: AHQUAuaXIkbjknLnkt8PhYibUm20wkgIenW/DeJLclLU2WFQNaoJv5S3 HxdJ2tSZbikDNadm6yw/MXbdtbD7aoOQg2h6sv5Hn6S0 X-Google-Smtp-Source: AHgI3IbNifbgLzLv2MfdceKpaW2riLgI/1HQe8RbndvLXH69fyu1k4Bo4uFU3/hmp9US2U9DG69jTf8FwwfPLd4VOfY= X-Received: by 2002:ac8:35f8:: with SMTP id l53mr21029504qtb.15.1550536412606; Mon, 18 Feb 2019 16:33:32 -0800 (PST) MIME-Version: 1.0 References: <201902181650.x1IGoRsZ006131@pdx.rh.CN85.dnsmgr.net> In-Reply-To: <201902181650.x1IGoRsZ006131@pdx.rh.CN85.dnsmgr.net> From: Warner Losh Date: Mon, 18 Feb 2019 17:33:21 -0700 Message-ID: Subject: Re: What is evdev and autoloading? To: "Rodney W. Grimes" Cc: Baptiste Daroussin , Niclas Zeising , "freebsd-hackers@freebsd.org" , Stefan Blachmann , FreeBSD Current , Steve Kargl , Vladimir Kondratyev X-Rspamd-Queue-Id: 4CCE98D2BA X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=JkLHnBT/ X-Spamd-Result: default: False [0.09 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-0.23)[-0.234,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.23)[0.231,0]; IP_SCORE(-0.06)[ip: (4.32), ipnet: 2607:f8b0::/32(-2.59), asn: 15169(-1.98), country: US(-0.07)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; NEURAL_HAM_LONG(-0.83)[-0.833,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCPT_COUNT_SEVEN(0.00)[8]; RCVD_IN_DNSWL_NONE(0.00)[4.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]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_LAST(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: Tue, 19 Feb 2019 00:33:34 -0000 On Mon, Feb 18, 2019 at 9:50 AM Rodney W. Grimes < freebsd-rwg@pdx.rh.cn85.dnsmgr.net> wrote: > > On Mon, Feb 18, 2019 at 9:12 AM Rodney W. Grimes < > > freebsd-rwg@pdx.rh.cn85.dnsmgr.net> wrote: > > > > > > On Mon, Feb 18, 2019 at 07:12:24AM -0800, Rodney W. Grimes wrote: > > > > > > On 2/18/19 12:06 PM, Stefan Blachmann wrote: > > > > > > > On 2/18/19, Vladimir Kondratyev > wrote: > > > > > > >> On 2019-02-17 21:03, Steve Kargl wrote: > > > > > > >>> Anyone have insight into what evdev is? > > > > > > >> evdev.ko is a small in-kernel library that makes all your > input > > > events > > > > > > >> like keyboard presses libinput-compatible. > > > > > > > > > > > > > > And libinput was created by the Freedesktop Wayland team to > create > > > > > > > pressure on OS people to make their systems Wayland-compatible. > > > > > > > > > > > > > >>> I do not need nor what these modules loaded. > > > > > > >> I think removing "option EVDEV_SUPPORT" from your kernel > config > > > should > > > > > > >> disable most of evdev.ko dependencies > > > > > > > > > > > > > > Shouldn't the EVDEV_SUPPORT default be off on FreeBSD anyway, > as > > > well > > > > > > > as libinput not be part of the standard packages? > > > > > > > > > > > > > > The Freedesktop Wayland team consists of people with the Kay > > > Sievers > > > > > > > mentality, which made Linus Torvalds ban his contributions. > They do > > > > > > > not care about the bugs they introduce, forcing others to > clean up > > > the > > > > > > > mess they create. > > > > > > > > > > > > > > I'd be glad if FreeBSD would keep clean of following that > Wayland > > > fad... > > > > > > > > > > > > EVDEV_SUPPORT was enabled in GENERIC on 13 and 12-stable to > improve > > > > > > input device handling in X and Wayland. Not having it means > that a > > > lot > > > > > > of input devices stop working, or work much worse. > > > > > > > > > > > > We in the FreeBSD Graphics Team are working very hard to improve > the > > > > > > FreeBSD Desktop experience, since it is an avenue to recruit new > > > users, > > > > > > and make current users use FreeBSD more. > > > > > > > > > > Sadly your execution on that seems to be missing the mark, > > > > > telling people they have to go get a port now to get drm working > > > > > because it could not be maintained in base, and then telling them, > > > > > oh, you need this new code in base so that it is so much easier > > > > > to use graphical stuff this way. > > > > > > > > > > These seem to be conflicting stories. > > > > > > > > > You are missing the point, one does not evolve as fast as the other, > > > meaning > > > > one can be maintained within usual freebsd lifecycle, the other > cannot > > > or it > > > > becomes very painful. > > > > > > So to ditch our 5 years support model, kick the code out of the tree > and > > > make the users suffer? The support model is suppose to be under > review, > > > and IMHO, if kicking functional code out of the base system is to make > > > it possible to meet some support model we should defanitly take a very > > > close look at that issue. > > > > > > The code has simply gone from being in base to a few git repositories > > > which are probably going to rot every time a breaking ABI change occurs > > > and we wend up with un happy users, un happy developers and bugmisters > > > who have to close bogus bug reports. > > > > > > Have we really moved the state of the art forward by this action, > simply > > > in the name of "we could not suppor that code?" > > > > > > > I don't know. I think the fact that drm2 doesn't support anything newer > > than 5-year-old hardware is a pretty convincing evidence that the old way > > is broken and doesn't work. > > But it DOES work, I am pretty sure we have 1000's of users on that 5 year > old hardware that are totally happy with the in tree DRM2 that is in > stable/12, > and some of whom have ventured into head/13 are having issues with the > "new" model (ie kmod broken by a base commit). First off, current is current. Second, they have two different drm modules to choose from. The drm-legacy stuff was broken by a commit to base, but even if it had been in base, and connected to the build, it would have been broken. kib would have fixed the compile issue (which we did fix in github almost as soon as it happend). However, the semantic issue he wouldn't have seen because he wouldn't have actually tested the setup that's broken because he doesn't have it. So please stop saying it does work. It does not work. It was silently broken by kib's changes. The compile issue is a red herring. You'd be fighting the same issue in current if it was connected to the build. It's literally the same code. > I know that there is wip > to get CI coverage for that, but wip is wip, and we need to start changing > the cart horse driver order we keep doing and get things right. Port > up and working, with CI testing *before* we go remove kmod'ed code from > base would be a much more appropriate path. > > I think one serious problem here is the summary dismissal of things > simply on the "5 year old" basis. Not everyone, and infact few now > a days other than corporate buyers, can afford new hardware, > giving the minimal performance increase in systems over the last 5 > years the cost/benifit factor of a new computer is just too low No you are purposely mischaracterizing what's going on here. Nobody is being dismissive of 5 year old hardware. You are mischaracterizing what I'm saying. Please stop. What I'm being dismissive about is that drm2 only supports 5 year old hardware. Not because the hardware is broken, but because the model we used to keep in the tree is broken. Newer hardware just isn't supported at all by it. That's the problem we're trying to fix. drm2 only supporting old hardware is a bigger problem. Read another way, our support model is so broken that we can't support anything newer than 5 year old hardware in drm2. It's our inability to move faster in base that I'm dissing here, not the hardware. We're transitioning to a newer / better model. There are bumps along the way. ne of the long standing features of running a BSD is that it could > stretch very good life out of hardware, and imho it would be in our > best interest to try and keep that. And we do in most aspects, > though recently in some hardware testing OpenBSD beat us in several > cases of "just booted and worked" on several pieces of hardware > that came accross my bench for data recovery. FreeBSD would not > even boot, or paniced early in the kernel :-( None of these systems > was older than a P4. > If you can't handle the bumpiness of -current, you can run stable/12. You can also run any of the 64-bit hardware. It all still works. 32-bit laptops haven't been mainstream in even longer, so none of the developers have them. They are kinda hard to come by, so things don't get tested. When things aren't tested, other changes in the system break them. Warner