From owner-freebsd-questions@freebsd.org  Sat May  8 11:52:56 2021
Return-Path: <owner-freebsd-questions@freebsd.org>
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 F2C73632A77
 for <freebsd-questions@mailman.nyi.freebsd.org>;
 Sat,  8 May 2021 11:52:56 +0000 (UTC)
 (envelope-from grahamperrin@gmail.com)
Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com
 [IPv6:2a00:1450:4864:20::334])
 (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 4Fcm0R67bzz4nsf
 for <freebsd-questions@freebsd.org>; Sat,  8 May 2021 11:52:55 +0000 (UTC)
 (envelope-from grahamperrin@gmail.com)
Received: by mail-wm1-x334.google.com with SMTP id
 y124-20020a1c32820000b029010c93864955so8530881wmy.5
 for <freebsd-questions@freebsd.org>; Sat, 08 May 2021 04:52:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language;
 bh=cX6MJy0dXsg5szFmoguWajrmUG6MaUZTUTT2YOS6lD8=;
 b=gMm0BW0zfOr5XYPVS9WZnA8zHVGicE5bv8SHQ9p8b8EGnW4o0NP1eTfQqZpNFJiWPg
 Jxe+Y5sstIwEl+QjGGrNL6flA8kgex9f7YxGhtvq6jas8t2a3AC6PeUbBhS2Z8CEnboZ
 2jbx5sP7/1xEExMkh+zUb7n7OXOdHB0HgzKks4eHjnPufrpt9CvyQQBgPNGaFNIZ03nX
 xY453vlXIUPx3L6C9hXz4xYYuZN7GxhMKhHXwaOBjPhwlLEeuimPEIJ2/vkgFSt2CRhd
 Au0MJmDCkFM4z6w9JIWbEORTLMn80xydgGkFi1PC1y4eJlUtiPFipPjVoNHv7mXw8m2e
 r/Sw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:cc:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language;
 bh=cX6MJy0dXsg5szFmoguWajrmUG6MaUZTUTT2YOS6lD8=;
 b=gb1LbU2w8XJPqMOKmhPsCXlXQYdI2jZhceYRSMDSRFlwFS/hHjeJVCBo5/MpHepawV
 D5jFre3/yhCNaKs3kKXwq81bhcqwwBpG+O/+ms+2ROxTfCyL+HFnL2Lh1aTJj9vD9/s3
 oqPJFy5ZbtSwomjH5t0MddK0Bcofl+tTM926DN2Q0xvS35vXz2RoNgSbRbXlLiE2TBlU
 DVxkM0i6b6RRjL5sRKXQ2gTi/buT/N9pW2wVHasy0CeWjeW7DpP4Ec4KWUlnbJVoBP/F
 PLT4G9RKtlnQtBZpl0avCE4mA+WB01ShIlBFpkUcOfSnEz+aa/GgziyqSpzYPOGuRxGO
 wwyg==
X-Gm-Message-State: AOAM5314NhUSkg+nOjw+lkswzLAktb/CZZGUSM3VsrhvnG/3f/0Mlpr+
 rOISmJPsr9SjON3jYJpmXZ94a2dgZfvzaQ==
X-Google-Smtp-Source: ABdhPJx/jjX79Em4cIXAa642dRDpkf4alhyeIMagOEpMVgLhVc3o/WdMZbitKtz7vROKdoOjhddCzg==
X-Received: by 2002:a1c:7fd0:: with SMTP id
 a199mr15488771wmd.161.1620474773652; 
 Sat, 08 May 2021 04:52:53 -0700 (PDT)
Received: from [192.168.1.10] (88-105-96-80.dynamic.dsl.as9105.com.
 [88.105.96.80])
 by smtp.gmail.com with ESMTPSA id i12sm13127059wry.57.2021.05.08.04.52.53
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 08 May 2021 04:52:53 -0700 (PDT)
Subject: kld_list="drm" (was: i915kms kernel module causing freezes on FreeBSD
 13.0-RELEASE)
To: Matt K <kilikmatej@gmail.com>
Cc: freebsd-questions@freebsd.org
References: <CA+4jMao_YgwF_Jn8CG8ucU0c7AgnmoBknMtPEhPet0XcJJrr9A@mail.gmail.com>
 <68023ace-7338-5e39-28f9-22bf1ff78365@gmail.com>
 <alpine.BSF.2.20.2105072136430.96788@tripel.monochrome.org>
 <CA+4jMaqH7-Z7YCtoxvHdeOwA_g=s1=wuw3RfsueUuiPeAk1kng@mail.gmail.com>
From: Graham Perrin <grahamperrin@gmail.com>
Message-ID: <849f51ec-86a9-ccd8-8bde-175c27b15270@gmail.com>
Date: Sat, 8 May 2021 12:52:52 +0100
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101
 Thunderbird/78.10.1
MIME-Version: 1.0
In-Reply-To: <CA+4jMaqH7-Z7YCtoxvHdeOwA_g=s1=wuw3RfsueUuiPeAk1kng@mail.gmail.com>
Content-Language: en-GB
X-Rspamd-Queue-Id: 4Fcm0R67bzz4nsf
X-Spamd-Bar: ---
Authentication-Results: mx1.freebsd.org;
 dkim=pass header.d=gmail.com header.s=20161025 header.b=gMm0BW0z;
 dmarc=pass (policy=none) header.from=gmail.com;
 spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates
 2a00:1450:4864:20::334 as permitted sender)
 smtp.mailfrom=grahamperrin@gmail.com
X-Spamd-Result: default: False [-3.79 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[];
 TO_DN_SOME(0.00)[];
 R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c];
 FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3];
 DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2];
 DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
 NEURAL_HAM_SHORT(-0.79)[-0.794]; FREEMAIL_TO(0.00)[gmail.com];
 FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~];
 FREEMAIL_ENVFROM(0.00)[gmail.com];
 ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US];
 MID_RHS_MATCH_FROM(0.00)[];
 RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::334:from];
 DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000];
 R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025];
 RECEIVED_SPAMHAUS_PBL(0.00)[88.105.96.80:received];
 FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000];
 MIME_GOOD(-0.10)[multipart/alternative,text/plain];
 PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org];
 SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::334:from:127.0.2.255];
 TO_MATCH_ENVRCPT_SOME(0.00)[];
 RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::334:from];
 RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
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 <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 08 May 2021 11:52:57 -0000

On 08/05/2021 07:10, Matt K wrote:

> On Sat, May 8, 2021 at 1:08 AM Graham Perrin <grahamperrin@gmail.com 
> <mailto:grahamperrin@gmail.com>> wrote:
>
>
>     Try a third approach:
>
>     kld_list="drm"
>
>
> This works. I will keep an eye on the system, logs, etc, and let you 
> know what I find. Now everything seems to be working as advertised. 
> With xf86-video-intel, even TearFree is working.
> Where is this behavior documented?


FreeBSD for Pretty Little Unicorns, 1st Edition.


> How did you know about this solution?


It came to me in a dream. Whispered by the ghost of Barbara Stanwyck, 
once the highest-paid woman in the United States and famed for movies 
such as 'Sorry, Wrong Number'. Lesser-known but no less valuable 
contributions to postmodern creative thinking include 'Sorry, Wrong 
Module'.


> I think that this means that my problem is solved, but the question 
> remains: why does i915kms cause freezes when loaded from rc.conf and 
> works normally when loaded by hand? This is not handbook-documented 
> behavior. Nor is it consistent or transparent.


Maybe not Intel-specific.

I find kld_list="drm" less troublesome than kld_list="radeonkms" with 
Thames [Radeon HD 7550M/7570M/7650M] with SDDM. A recent probe: 
<https://bsd-hardware.info/?probe=e90abb54c9#d10>.

My voyage of discovery spanned around three years. Maybe longer. A few 
flashbacks:

<https://lists.freebsd.org/pipermail/freebsd-current//2018-September/071327.html> 
(2018) I found kld_list="/boot/modules/radeonkms.ko" troublesome with 
FreeBSD 12.0-ALPHA7

<https://lists.freebsd.org/pipermail/freebsd-questions/2018-October/283113.html> 
(2018) "… toying with the possibility that … a specific load/start order 
might help."

<https://github.com/FreeBSDDesktop/kms-drm/issues/101#issuecomment-450776731> 
(2019) I found drm-legacy-kmod better than drm-current-kmod with 
13.0-CURRENT

<https://lists.freebsd.org/pipermail/freebsd-current/2020-November/077693.html> 
(2020) kld_list="/boot/modules/drm.ko" worked for me, keyword:

     peculiar

Eventually I condensed the working peculiarity to kld_list="drm".

More accurately (in context – SDDM, KDE Plasma and so on): 
<https://pastebin.com/4XjNFaKk> line 17.