From owner-freebsd-x11@freebsd.org Mon Sep 24 16:39:48 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 C720510B1A2D for ; Mon, 24 Sep 2018 16:39:48 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) (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 62A718909D for ; Mon, 24 Sep 2018 16:39:45 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ot1-x331.google.com with SMTP id n5-v6so20511665otl.5 for ; Mon, 24 Sep 2018 09:39:45 -0700 (PDT) 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=7/qKeWMtTtSVTfOAthDaNBT09AZx8m8xNnE1Qfdgk5c=; b=T3rxfJSQW43fpC5YFVjWfvIczW9DHxq+K3uROH20Q/jYBMcgNEpBAtkLTrTtBV8xz6 3lxGrsSouR1FAYpxyYMMrtS62YT58QWHMM9NK3oApUOlk+UlXlhX3o/l2ZdNGzsOv9P6 ivVK4mvSem0mZ21YDj2FhmhXWyFNuxxc8slyZBFIv1oCCA5FqhCf5DlRL/zcM3iv3/g4 4TBOB3Uhg1OAaeOd1MuQu3mZGFLnPdwbaktmXL75smI75Q8ocGScXL24Qr7h9VqcsCJE DOovbN3lUPntUt78JYDXCY8fBAfOo7rTT+A1O120K8j4SMnes/C8OGTx5Ixn4ovmQIg+ ZTsg== 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=7/qKeWMtTtSVTfOAthDaNBT09AZx8m8xNnE1Qfdgk5c=; b=qmIxAxd26z4tpfnmc/Xu+N4bjj+u8uIiYSyzVCkSiL92B3kd3ZOuJne2lghFJp8mJh ZsCsrkcjM6I/OEDlNnabAPh8tQp1vhSwxOBNzjfnC1vHCszFIcXG7R75U3ahZ+LjJtd1 ZJ+EYw7yKgGH8Lmu8A8BS5CWHWe54LgpmBahtRUkzfsaj7893bWbhbBq1BHvKj50KqKS SeITN7noXR/oUe2rQ/UGl6FCi1vBe3e0d/FtoFXovp+vgYkpFZ2DIqTh5As/7lk4p1JV iaxMpy29lOMn97f5aDXZiZ6rZjYjnhn7UCpyT5jAevkq/GlAzuTmUrOyOtrxePVsTEWO KBOA== X-Gm-Message-State: ABuFfohOxB3rrawOw33ZtIo0+oIJucFWqYfVHWD2mo9T7ZPP95ojVKY4 pplNWO8SBVpZO1kv76njSn4utgIQPrFc2NF44wpfxP+N X-Google-Smtp-Source: ACcGV63QXhXy8/FC2WnDAJtOiEuAJb1ruK8SWZfl5OfbYLrm+LQ630qV67RgVgkXY/CvdddgR15BjSTlEZQ1xEizkbI= X-Received: by 2002:a9d:4905:: with SMTP id e5-v6mr7622718otf.368.1537807184104; Mon, 24 Sep 2018 09:39:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kevin Oberman Date: Mon, 24 Sep 2018 09:39:27 -0700 Message-ID: Subject: Re: drm-[stable|next]-kmod and MAXCPU To: Claude Buisson Cc: x11-list freebsd Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.27 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, 24 Sep 2018 16:39:49 -0000 On Mon, Sep 24, 2018 at 6:24 AM Claude Buisson wrote: > Hello, > > I tried to switch an amd64 Ivy Bridge system (with STABLE-11 @ r338696), > from drm2 in base to drm-stable-kmod (and also drm-next-kmod) in ports, > after rebuilding the custom kernel without any drm/drm2 module. > > I installed: > > gpu-firmware-kmod-g20180825 > drm-stable-kmod-g20180822 > > (and also tried: > > drm-next-kmod-g20180822 > > with the same results) > > Loading "by hand", by rc.conf, or by loader.conf > > i915kms.ko > > led to an immediate reboot. > > I built a GENERIC kernel (without any drm/drm2 module), and everything > was OK. > > So I tried modifying the GENERIC kernel and came to that conclusion: > > the drm-[stable|next]-kmod ports cannot be used with a kernel built with > MAXCPU (at least not defined as 256)!! > > I commented the MAXCPU line in my custom kernel definition, and got back > a working system. > > May be, the assumptions about kernels could be explicited for ports of > this kind ?? > > Hoping being useful, > > CBu I am running drm-stable-kmod on a Sandy Bridge system... one generation older than Ivy with no problems. From your description, I wonder if you might be doing too much. First, a GENERIC kernel should be fine. No need to remove anything. You do need to remove any module loads from /boot/loader.conf. (acpi_video_load is OK). You must add "kld_list="/boot/modules/i915kms.ko" to /etc/rc.conf. Nothing else should be required. When booting, assuming you use the default vt(4) console, the switch from sc to vt should be much later in the boot process... at or near the end of the device scan. If you have am xorg.conf file, move it aside. Most of it is unneeded. I have only a files section for added fonts, a modules section for freetype (which might be unneeded by now), and a screen section to enable brightness control. Nothing else. That works flawlessly on my seven year old system. Good luck! -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683