From owner-freebsd-questions@freebsd.org Thu Jan 21 06:25:52 2021 Return-Path: Delivered-To: freebsd-questions@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 F23EA4EC1F6 for ; Thu, 21 Jan 2021 06:25:52 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DLspS56J0z3F4C for ; Thu, 21 Jan 2021 06:25:52 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id AF60A4EC2F7; Thu, 21 Jan 2021 06:25:52 +0000 (UTC) Delivered-To: questions@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 AF2764EC3D0 for ; Thu, 21 Jan 2021 06:25:52 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4DLspS4P1Qz3F4B for ; Thu, 21 Jan 2021 06:25:52 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-oi1-x22e.google.com with SMTP id r189so1076159oih.4 for ; Wed, 20 Jan 2021 22:25:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Eg8135HG9eTAYZymHX5nbJaLXTFk1/VbqFTl0VapD9o=; b=Mwy0lTpStbPwx+59s5xR5CwecMjNKu0RhWbOxGjRzh48cLZgFkj1LpjG6duMNlwoHT C2frytweDCbKSgDHXR51KCYKWQy4uhq6X95TPSfR8fCVqVuH30D9Jxip5Q5cnEwYNvcZ WFFlH3zh2E3feywpshPoxjMeFwyrdD0c+ej17GoBZ9aPlGEynxXvt2mBXWu0rVwTXpkz 3wCUYVx77bfQgcTsy8ZZ6B+t53BuvxYPiIZw3XUFARXSajxdt8zdlFx2YKU6uRRYAYfz yGaCFghah7A1e//USkM0bCyTNj1ihi3OX/guXMf1lcn8VnwIQUnDA3EBRE/RbBs6Bd/i SQ8A== 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=Eg8135HG9eTAYZymHX5nbJaLXTFk1/VbqFTl0VapD9o=; b=e2ntGgX/n/2R3/Bbq0UT5ReayLApHvXMtsUhd6OpOI2jhvIkp9zVXvkweFW/5bXw+R fz21B49MqJfRN3utHVOCCothKEZs+bYHkFLg+DScKZuTbpBqtGvcteqxVDCaun0gexD2 QfvJO/g6d6bZ+EdrYXHNkaC3xyfUD7dHtoVTE17P1p4K9FugIUj7G9MxFlgfn5D+Fnee 5lFbyK4+i9MrjFKsTNqdg8B8m/j/Jhd+jLSP/PY+SxZhfjaIT3juf8B3svrOUzKJVSfo k2K4Ejt2nMFKVAaxemJ2YJjikquQQehcbkb8ju2zVw6yRvA1EDROUjWLbOTpfeCOBnxF H3og== X-Gm-Message-State: AOAM530/C+t93OWo/wkXQqRMEfZOtbtnSQtMzEY0UJKN5v8cWHXWu3iz eRAUeLlsWVy1Rxt9rJtaKiLVjwBsPJ44mqk8yMU= X-Google-Smtp-Source: ABdhPJzMZ1Z83qCX7z7qteXDpnKBEvYGJEiUnp8ZZkX8AIukPqGmCayxa6kYkPF2ie0R66vrQHwJj7p6xYN5deWj0Wc= X-Received: by 2002:aca:4303:: with SMTP id q3mr5191185oia.133.1611210351446; Wed, 20 Jan 2021 22:25:51 -0800 (PST) MIME-Version: 1.0 References: <24584.64455.966459.479993@jerusalem.litteratus.org> In-Reply-To: <24584.64455.966459.479993@jerusalem.litteratus.org> From: Kevin Oberman Date: Wed, 20 Jan 2021 22:25:35 -0800 Message-ID: Subject: Re: drm-kmod kills FreeBSD To: Robert Huff Cc: Chris Hill , "freebsd-questions@freebsd.org" X-Rspamd-Queue-Id: 4DLspS4P1Qz3F4B X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2021 06:25:53 -0000 On Wed, Jan 20, 2021 at 7:58 PM Robert Huff wrote: > > Chris Hill writes: > > > > You need to build and reinstall drm-kmod-g20190710 and > > > drm-fbsd12.0-kmod-4.16.g20201016 manually from ports, so module > > > gets 12.2 stuff in it, pkg installs binary that is built on 12.1 > > > and will not work on 12.2 properly. This is a known issue and > > > fix :-) > > > > Really! That's extremely helpful to know. Do I actually need both > > of those? I'm not sure what the difference is. > > Short version: > To do what they do, drm-kmods and gpu-firmware-kmod burrow _deep_ > into the kernel; everything needs to be _perfectly_ in sync or > ... On my systems I upgrade as a triplet: > {kernel+world,drm,gpu-firmware}. > > > Respectfully, > > > Robert Huff > Easy way to make this "just work" is to add drm-fbsd12.0-kmod to PORTS_MODULES in /etc/src.conf. This probably should also be done for lsof and virtualbox-osf-kmod, as well, as both depend on unstable KBIs. I have: PORTS_MODULES= emulators/virtualbox-ose-kmod PORTS_MODULES+= sysutils/lsof PORTS_MODULES+= graphics/drm-kmod (or the appropriate port for your system) PORTS_MODULES+= graphics/gpu-firmware-kmod Ports listed in PORTS_MODULES are always rebuilt with kernel builds. I'll also mention that drm-kmod is just a wrapper that picks the correct port for your version of FreeBSD. If you install drm-kmod, you will see boh that port and the "real" drm-*-kmod port is installed. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683