From owner-freebsd-x11@freebsd.org Mon May 21 12:26:05 2018 Return-Path: Delivered-To: freebsd-x11@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 0F97FEEF879 for ; Mon, 21 May 2018 12:26:05 +0000 (UTC) (envelope-from emil.l.velikov@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8582A7B8E1 for ; Mon, 21 May 2018 12:26:04 +0000 (UTC) (envelope-from emil.l.velikov@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 45B1DEEF878; Mon, 21 May 2018 12:26:04 +0000 (UTC) Delivered-To: x11@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 20A4FEEF877 for ; Mon, 21 May 2018 12:26:04 +0000 (UTC) (envelope-from emil.l.velikov@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B77B7B8DF; Mon, 21 May 2018 12:26:03 +0000 (UTC) (envelope-from emil.l.velikov@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id t11-v6so25110363wmt.0; Mon, 21 May 2018 05:26:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9obllYa1oHsUmMaC15kZk3Q3o2U6c/pN2mz70pcUhZU=; b=S0ab/Zg2Ppz8ZICulAktzHuzV2BhjXf5GeGwlYrS0J0zvTEgwJlC0QrddrZ5g1ie9j E73W5j5xciMb88AD9Z2JLgyFZ2+51M29dd7aeCD9jvMGRjv/Y8F7mTe1kjFmg+RuxaDF M9Bpn1oq/5PlWaI1Y6Fbsj7tT+fmeVOuOruHWoBhrm3xLW2hgz4OabgiKSEqt7utLEMR Mv0bkn7ifBGX0A/A7+o7+/3bt9RPDPER+7BdnaogcDcfQzT+qyMTOK7QJJ7/taGe4f7n X7p7xPiE95INeXMkD3ug7GgBMrdpA3Rw+/gSVWZhmFo5bPxM6Twuh0fexBC1FjV5anCW +R7w== 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=9obllYa1oHsUmMaC15kZk3Q3o2U6c/pN2mz70pcUhZU=; b=bayvCLmrj0/WwiY5rCik2uLCxZA9TYuNw5UrHDjgKNTu9lzisSgRUr6YrdG/I2ZwSS sZNpKe+2lTleDVjdZ1xFRJbS/RRwgIQGfLOhCXVN9ImAUwxYyn6A5chNhZBKb/cy5yl/ 4aoi7ZG4ydPAfacg81xWWv50hywF+jXDmsXIlBMgyzq7wKHdO2Lw2do620TBuhFzaAyi XuUUrMv0G0OJSSw17E0Z9/w+FOrJDLCZsUGic23XCiPtAMZS4uIyTpA7q6UGlQVVw+Qu Fuy06zle97mqGy3/UZ73hpUOoixQyxWBkAaX9HzSJ6OJzHwXHwo23rf3RqEpWEW9oxKG ozTw== X-Gm-Message-State: ALKqPwcfONBsuJ47PVs2XlpHY6zIb2pM+AzD9epnpaGnz/ItejUhAKCi hz8f8V8UHWx7maZlQvLRyDGHO15qu5wNr6/swtE= X-Google-Smtp-Source: AB8JxZpMHYngYt5g6NDM8V/XryPkSgm1e10l+JLL+95SnXzeU2vjJ8IxqupJzqRSqi9a4wasN5cBzH8ezH+RlovM2dk= X-Received: by 2002:a1c:2054:: with SMTP id g81-v6mr9712034wmg.122.1526905562172; Mon, 21 May 2018 05:26:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.167.214 with HTTP; Mon, 21 May 2018 05:26:01 -0700 (PDT) In-Reply-To: References: <20170222120828.zkrfh56swen7r44o@ivaldir.etoilebsd.net> <3635692.Vys3mgEcQY@workstation.reztek> <237b2552-c97c-fd41-5509-ed611f0103dd@freebsd.org> From: Emil Velikov Date: Mon, 21 May 2018 13:26:01 +0100 Message-ID: Subject: Re: your mail To: Niclas Zeising Cc: x11@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2018 12:26:05 -0000 On 20 May 2018 at 20:28, Niclas Zeising wrote: >>> Currently, we have a working area and development repos on gitub, which >>> you >>> can find here https://github.com/FreeBSDDesktop/, amongst other things >>> there's a fork of the FreeBSD ports repo there where most ports >>> development >>> happens. There's no problem getting you access to that one, and we can >>> also >>> add forks of upstream mesa and drm repos and so on. >> >> Since I'm not using/testing FreeBSD I'm looking for someone to review >> any patches ;-) >> Having commit access is not really required on my end. > > > I don't know the internals of mesa or libdrm, but I can try to have a look > and to test patches as need. I'm talking about FreeBSD specifics. Either way let's not think about that just yet. >>> Creating /dev nodes is handled automatically by devfs and devd. I don't >>> know how it's done in detail, but it's automatic as far as at least I'm >>> concerned. >>> >> Ack. On Linux the same daemon (udevd in our case) loads the kernel >> module also creates the node. >> Has there been attempts/discussions about doing the same in FreeBSD? > > > I don't think so. There is some work done in general to load modules as > needed, but I don't think anything's been done specifically for graphics. > On linux, when is the module loaded? On start or when starting X or some > other time? It's been years since I've looked, so the following outline might not be 100% - device is plugged/present - kernel populates /sys/$hardware_bus..../uevent - udevd reads the uevent, loads (modprobe) the new module - the module is loaded, creates more sysfs entries - udevd sees the new ones, matches them to $rules and creates device nodes/symlinks/others >>> As for sysfs, mmacy gave a good responce on IRC. >>> >> Are you sure it wasn't on gitter? You're the only person who wrote in >> the IRC channel since I joined. >> Can you please copy it here or share a link? > > > I think you were offline and missed the response. Here it is: > < mmacy> sysfs compat is mediocre > < mmacy> patches welcome Thanks. Polishing that might be better instead of adding XXX line FreeBSD custom paths. Be that for libdrm or elsewhere - but that in due time. > I hope so to. It will take a little time to get the ball rolling, but it's > a start. I hope we can keep in touch as things progress, either here or on > gitter. As you know I'm already there - evelikov. Thanks Emil