From owner-freebsd-questions@freebsd.org Sat May 8 06:10:27 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 6F02962A252 for ; Sat, 8 May 2021 06:10:27 +0000 (UTC) (envelope-from kilikmatej@gmail.com) Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) (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 4FccPG3PYKz4YBy for ; Sat, 8 May 2021 06:10:25 +0000 (UTC) (envelope-from kilikmatej@gmail.com) Received: by mail-yb1-xb31.google.com with SMTP id h202so14722080ybg.11 for ; Fri, 07 May 2021 23:10:25 -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=h2aYulkYZXf775IFQrqFuihU7ouEv8MsT7LeRcLbanI=; b=LbLFg3lsqiu3YX3r77UkDFMu1Lh3a/ar2Wak8GSDd6xTFhvYCB0oS3nehdHPBBt4m7 zhrCzRQwwS/TBqjLDWZbeIk/owHzoKQFEbKr8d1kDaWf/ns9vvL2nqe83Lc1bu8YKIXE LEYJ+mVyWDIwXtzN9ttimMi5/jouZXCzoANu60+UI32DGWX4KIwwKdzI4rj9pFSTlfEM W9uePFvefqSWhC6dkb3tNT5Cp8YOK4GJ6bZ2Lx2AHeTHLAOrEXZJijrtBBWF7zmWIaFi jvGWuFCjAuhfMSINNFpi95AE4fTffW3QRhsFElx2g47lXBCxkyvo99MTXDyPbE96U7qA cPug== 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=h2aYulkYZXf775IFQrqFuihU7ouEv8MsT7LeRcLbanI=; b=noyuu+YInvWeeqG2/RzrG8ivKDJvIiTd4mANJEiYaO6MHKNwkIRYnx8VmUIwXp2mlw N1ASCF516jXghJaQmLk6CItoNjUl9ubL3rmlNH1tPwlwshoVmcZrdIhFNajVTlmz4vLY tO4aVLdNXQzaj0zB/SEW2alzARYUSMylBjhppnGBX71d3e544Adj7tU5tQ3GRT0G3Eoo WhBxhZsSjgNzmHA+kSIZKAcXBcp54KdDiM6RcpO9ku/bhLobgZF+xtX2wjQwK4Ypw2AN 65DjCGLCCYEXcEx3nkig1BYyCc5jVm33fdEy9SO6RsxVwsfgcSvyurmS2saT7kk/gLyC gW7A== X-Gm-Message-State: AOAM533Je9dDLxvlo+irsgKTqti/SuqykSuVZGujjRTZ7D3Vg3OTxzCu EeX14QuLUnqwaK5GHx0HGuQnpK8uzqR1r1o2tJ0= X-Google-Smtp-Source: ABdhPJwIqv8GKG7u3jMU4ufXV97+hB9MwLMXu4WGMNcekyTo3viGVgbSsFjckfyuWqSWdLO7t3rGgkpyPjxtot2N9XQ= X-Received: by 2002:a05:6902:120a:: with SMTP id s10mr18431220ybu.91.1620454225311; Fri, 07 May 2021 23:10:25 -0700 (PDT) MIME-Version: 1.0 References: <68023ace-7338-5e39-28f9-22bf1ff78365@gmail.com> In-Reply-To: From: Matt K Date: Sat, 8 May 2021 08:10:14 +0200 Message-ID: Subject: Re: i915kms kernel module causing freezes on FreeBSD 13.0-RELEASE To: Chris Hill Cc: Graham Perrin , freebsd-questions@freebsd.org X-Rspamd-Queue-Id: 4FccPG3PYKz4YBy X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=LbLFg3ls; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kilikmatej@gmail.com designates 2607:f8b0:4864:20::b31 as permitted sender) smtp.mailfrom=kilikmatej@gmail.com X-Spamd-Result: default: False [-3.95 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.95)[-0.955]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::b31:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; 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]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; 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)[2607:f8b0:4864:20::b31:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b31:from]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_COUNT_TWO(0.00)[2] 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: Sat, 08 May 2021 06:10:27 -0000 On Sat, May 8, 2021 at 1:08 AM Graham Perrin 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? How did you know about this solution? 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. On Sat, May 8, 2021 at 3:46 AM Chris Hill wrote: > > I had a similar problem with X appearing to hang. In my case, I had to > specify the full path: > > $ grep kms /etc/rc.conf > kld_list="/boot/modules/i915kms.ko" > > ...in order to load the i915kms from the port graphics/drm-fbsd12.0-kmod > rather than the one from the kernel. Yes, I had to build the port, not > just install the pkg. > > Caveat: Matt just upgraded to 13.0; I'm still on 12.2-RELEASE-p4 on > account of sloth. I'm guessing Matt probably needs > graphics/drm-fbsd13-kmod. > > This is no longer the case, Chris. i915kms got removed from base in FreeBSD 13, so only /boot/modules/i915kms.ko from ports remains and that's what gets loaded with kld_list="i915kms". I tried and checked with kldstat -h -v -n. -- MK On Sat, May 8, 2021 at 3:46 AM Chris Hill wrote: > > On Sat, 8 May 2021, Graham Perrin wrote: > > > On 07/05/2021 19:09, Matt K wrote: > >> - These are the possibilities to have a stable usable system with X: > >> 1. not mentioning i915kms in rc.conf is a must. Then I can load X with > XDM > >> and it automatically pulls i915kms by specifying "Driver" "intel" in > >> xorg.conf. > >> 2. not mentioning i915kms in rc.conf is a must. Then I have to "kldload > >> i915kms" and then I can "startx" and it works. In this case It does not > >> matter if I have "modesetting" or "intel" in xorg.conf, both work. > > > > Try a third approach: > > > > kld_list="drm" > > I had a similar problem with X appearing to hang. In my case, I had to > specify the full path: > > $ grep kms /etc/rc.conf > kld_list="/boot/modules/i915kms.ko" > > ...in order to load the i915kms from the port graphics/drm-fbsd12.0-kmod > rather than the one from the kernel. Yes, I had to build the port, not > just install the pkg. > > Caveat: Matt just upgraded to 13.0; I'm still on 12.2-RELEASE-p4 on > account of sloth. I'm guessing Matt probably needs > graphics/drm-fbsd13-kmod. > > -- > Chris Hill chris@monochrome.org > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- MK