From owner-freebsd-x11@freebsd.org Wed Dec 25 07:10:06 2019 Return-Path: Delivered-To: freebsd-x11@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 CB6CE1D4921 for ; Wed, 25 Dec 2019 07:10:06 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 47jPNs5rp3z4cWS for ; Wed, 25 Dec 2019 07:10:05 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: by mail-il1-x141.google.com with SMTP id t8so18062307iln.4 for ; Tue, 24 Dec 2019 23:10:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=dxqPsyIxkAo6dbV5R9Cz4L1+9lTa1oXy0ia6WjHYMT8=; b=t8bIa+GwXobVCTrRJUQcEu6s0PFN38qA8GWH0tnNgmZS5bAqgBqx3Nvkq9nu6BBqQ2 si7iVy8D5o8t/dXK7ExHCeOynf8skKIH7CkP5wKccfeEfBWgCDWPlO58+Ar8DX6H4/T0 IbTK3LWC2BjH/pSsWJjKjsOPr35MapvBaQC3+TKMyudwYP+obv9n4szW4gKvTcdUQ49L aUcc0sNJKFg3p3xPaBfM9m66Oq8fP0t/BR3slDmv4jHRIE8iKRrhXfmXIziW0E2Y5pkm sGLtbiNC0TOgck9Ap3w+uMRgVIMmZkH0FpfuoUuz86xjszqZXhU1LIrzGjiLqwGa5rPN l2CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dxqPsyIxkAo6dbV5R9Cz4L1+9lTa1oXy0ia6WjHYMT8=; b=pHraAunE7eLDiXSxwlA6655/b4nf4P/pzK2yLqZUlPxQGQPG/dHJq2UsRQKq0CDprA JR9hyuwBFk6JHXa3pA7lLXFYmZfgpWFNhaCCyLbYsOmJxxCKjgX/8hc11d6lppvC/oiM wy9HGSiK7S99YuaEnsOuEC27czF0EDFChbXTcmZvjcE+fL/Hb2QRa9zT36L8USjeNw9U OuFxId1t+2Kt9egPfs6e1aiNFa3EbYkqbtfJcm/u9fg4T9GouFM6GmK/LGXeBE0wA7f6 JKaeut1nOp7w9fsMwaK2bvOkIyoOYE00+S9PqeiBjTwPAKIJur3AOMH8Tq99HfVKwyJB GroQ== X-Gm-Message-State: APjAAAUmPe2MpCH0/K7sh7Hrdr2vi7uribsXkZvj36DwKSIch8jK4s2z LX5/WhPV+LocMsSe3r2bBKELHI98Kkdosr70HKsYhag7 X-Google-Smtp-Source: APXvYqyfWRICgJ4OZnlttyhd7G1nryyF8Lvw4zkn6OBoNjGXbjC+wA4pRD+0pXGqNfimdBvw6kV50u8P3Hza5lHKD3g= X-Received: by 2002:a92:91d8:: with SMTP id e85mr34058548ill.146.1577257804040; Tue, 24 Dec 2019 23:10:04 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6638:210:0:0:0:0 with HTTP; Tue, 24 Dec 2019 23:10:03 -0800 (PST) From: grarpamp Date: Wed, 25 Dec 2019 02:10:03 -0500 Message-ID: Subject: i915kms load locks up Haswell 4.16.g20191120 STABLE_12 To: freebsd-x11@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47jPNs5rp3z4cWS X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=t8bIa+Gw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of grarpamp@gmail.com designates 2607:f8b0:4864:20::141 as permitted sender) smtp.mailfrom=grarpamp@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; TO_DN_NONE(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(0.00)[ip: (1.73), ipnet: 2607:f8b0::/32(-2.16), asn: 15169(-1.88), country: US(-0.05)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[1.4.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Dec 2019 07:10:06 -0000 Christian Weisgerber wrote: >> grarpamp wrote: >> Is i915kms supposed to work on this plaform? >> Intel Haswell HD Graphics "Gen7" GT2 [P]4x00 >> drm-fbsd12.0-kmod-4.16.g20191120-88dc2c4884.txz >> I think wiki/Graphics said yes, but the wiki is down. "For haswell based systems, if the drm-kmod port does not work" This implies that it is supposed to work. Same with table on... wiki/Graphics/Intel-GPU-Matrix There are some lists here that can help users identify... https://en.wikipedia.org/wiki/List_of_Intel_graphics_processing_units https://en.wikipedia.org/wiki/Intel_Graphics_Technology https://en.wikipedia.org/wiki/Haswell_(microarchitecture) >> These load fine in top to bottom order... >> linuxkpi.ko >> linuxkpi_gplv2.ko >> debugfs.ko >> drm.ko >> Then attempting to load i915kms locks the system, does >> not print anything to the console, and requires a hard reset. >> Straight from the tarball, thus no version conflicts... >> kern.module_path='' >> kldload -v $(pwd)/.ko >> Both of the below load fine... >> - drm-legacy-kmod-g20191217-913dabbc41.txz >> - the set in /boot/kernel of the latest snapshot, >> FreeBSD-12.1-STABLE-amd64-20191219-r355880 > Maybe you ran afoul of the API change 12.0->12.1 issue that > has caused numerous reports here...? Btw, no blurb is in src or ports UPDATING, relnotes, or errata. Though yes now I see a downrev buldbox issue that maybe you are refer to (they seem to panic, not lock)... https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241101 https://github.com/FreeBSDDesktop/kms-drm/issues/183 If this is the case, adding some logic to the [meta] pkg, and making a 12.1 pkg would seem to solve. That way none of the release train and progress are held back. It might be possible to bundle and autoselect based on base rev from multiple module KBI/ABI/API revs in one package. Or to point with logic to another pkg repo that is building just kern mods from a set of light VMs. Or some combination. Maybe even put some checks or logic in kld mechanism. Should also see if other kernel modules in ports have this compatibility problem scheme, so to solve all uniformly. NO_PACKAGE seems questionable if the result is that hardware that does work, doesn't, requiring beginner users to build. No worries. > [i915kms] does. > The Xeon E3-1225 v3 machine I'm typing this on attests to it. What is your base revision? It may be different than the above snapshot. If different, users could try that snapshot, or build the revision. > Built from the graphics/drm-fbsd12.0-kmod port on 12.1-STABLE What is your ports revision? It may be different than the above tarball that the pkg tool is downloading. If different, users could fetch and confirm the contents of the tarball, or build the revision. What is your output from kldstat -v | egrep '/.*/' ? Looks like ports head is coming from FreeBSDDesktop, will put a build on todo. There are even much newer iGPU uarch's under fbsd now so looks like something is happening for users :) (Corrected subject to be stable, not releng.)