From nobody Tue Dec 6 07:48:06 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NRCFm6fqGz4k8t7 for ; Tue, 6 Dec 2022 07:48:12 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NRCFm3FZmz46P5 for ; Tue, 6 Dec 2022 07:48:12 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1670312890; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T4LLdsoMBjj+O9uOl5jkV5zTKVWQ5lIbrNQGG8+egg4=; b=Srsy9sjAuaByn22oLQf0LAbFhlBBi2ceAiAN6van1Rd+LOfDvSA+bdOGf/lZiUN9yeAF5I KJVtz0c+BoYp53GNA2qFwtY7uxZfbjHPSnUzqOAq9z7isob+cT1SdHK7c1x0F1AThrkRGK Gyw0pmIm/PCa4/h6Wht+OQlx+Ic4BuY= Received: from skull.home.blih.net (lfbn-lyo-1-2174-135.w90-66.abo.wanadoo.fr [90.66.97.135]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 6fedb759 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 6 Dec 2022 07:48:10 +0000 (UTC) Date: Tue, 6 Dec 2022 08:48:06 +0100 From: Emmanuel Vadot To: "Pat Maddox" Cc: "Takanori Watanabe" , freebsd-hackers@freebsd.org Subject: Re: kldload i915kms screen goes black Message-Id: <20221206084806.ce2f32457cc27eed15f09648@bidouilliste.com> In-Reply-To: <553FF6AA-4786-4DEA-9C4B-B2F28914BF72@patmaddox.com> References: <2CFF7511-C45A-4986-8881-2A68DC52F555@patmaddox.com> <3EE88B08-395F-47A1-B25B-E89C2B076654@patmaddox.com> <19286A43-0F72-4DA3-AF92-60E8BD11F7D7@patmaddox.com> <553FF6AA-4786-4DEA-9C4B-B2F28914BF72@patmaddox.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4NRCFm3FZmz46P5 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mon, 05 Dec 2022 23:08:40 -0800 "Pat Maddox" wrote: > On 5 Dec 2022, at 22:18, Pat Maddox wrote: >=20 > > On 5 Dec 2022, at 21:18, Takanori Watanabe wrote: > > > >> On Mon, Dec 05, 2022 at 09:43:17PM -0800, Pat Maddox wrote: > >>> On 5 Dec 2022, at 20:55, Chen, Alvin W wrote: > >>> > >>>>> > >>>>> I have a newly-built system with an ASUS Prime Z590M-Plus and=20 > >>>>> Intel > >>>>> 10900k > >>>>> with onboard graphics (UHD 630, according to intel). > >>>>> > >>>>> I specifically chose a 10th gen processor because I believed it=20 > >>>>> was > >>>>> well- > >>>>> supported by 13.1+. Unfortunately I can?t even install 13.1 > >>>>> (https://urldefense.com/v3/__https://forums.freebsd.org/threads/can= t- > >>>>> install-i-just-get-a-little-white-box-and-a-mouse- > >>>>> cursor.87334/__;!!LpKI!iRRMC3ef9hbS1NKXTBUoIDxlVz9pU_m1Jocnzh2Tlxfd > >>>>> s5SnkbHHXEM4iKqU7weuEiObV8rfJXfY$ [forums[.]freebsd[.]org]) > >>>>> > >>>>> I have successfully installed > >>>>> FreeBSD-14.0-CURRENT-amd64-20221201-d1f3abc89250-259495. > >>>>> > >>>>> When I run `kldload i915kms`, the screen just goes black. > >>>>> > >>>>> I have never used graphics before on FreeBSD, so I?m not sure=20 > >>>>> where > >>>>> to > >>>>> begin diagnosing. I did as much research as I could upfront, but=20 > >>>>> have > >>>>> run into > >>>>> this obstacle. > >>>>> > >>>>> I?ll be content to run 14.0-CURRENT because I can still create=20 > >>>>> 13.1 > >>>>> jails. > >> > >> How about logging in from remote and load kernel module? > >> This is my example. > >> https://github.com/freebsd/drm-kmod/issues/159 > > > > When I do that, the screen still goes black, but kldload does return=20 > > in my remote terminal. This is in /var/log/messages:=20 > > https://gist.github.com/patmaddox/1a2b7bb8769cf1251beb514a9646a69e >=20 > Well, I don?t know if this has anything to do with anything, but when=20 > I run `pkg install drm-kmod` it lists all of these intel bits: >=20 > gpu-firmware-intel-kmod-broxton: 20220511 > gpu-firmware-intel-kmod-coffeelake: 20220511 > gpu-firmware-intel-kmod-elkhartlake: 20220511 > gpu-firmware-intel-kmod-geminilake: 20220511 > gpu-firmware-intel-kmod-icelake: 20220511 > gpu-firmware-intel-kmod-kabylake: 20220511 > gpu-firmware-intel-kmod-rocketlake: 20220511 > gpu-firmware-intel-kmod-skylake: 20220511 > gpu-firmware-intel-kmod-tigerlake: 20220511 >=20 > My 10th gen i9 is a ?comet lake? - not in the list. I?m not sure=20 > if it should be covered by a different one, but it is interesting that=20 > it?s absent. It's because Comet Lake uses the same GPU as the previous generation so you need to install gpu-firmware-intel-kmod-kabylake as noted in : Dec 5 22:14:30 beastie14 kernel: drmn0: could not load firmware image 'i915/kbl_dmc_ver1_04.bin' ^^^ > drm-kmod has a bunch of references to cometlake:=20 > https://github.com/freebsd/drm-kmod/search?q=3Dcometlake >=20 > But drm-kmod-firmware does not:=20 > https://github.com/freebsd/drm-kmod-firmware/search?q=3Dcometlake >=20 > I did make an effort to support a cometlake flavor:=20 > https://github.com/patmaddox/drm-kmod-firmware/commit/20570f61ee927e19d5f= d6303f94eac00aa2f3bfd >=20 > But it didn?t work, which is no surprise, because I have no idea what=20 > I?m doing when it comes to kernel drivers. >=20 > Does the fact that cometlake is absent from the list mean 1) it was an=20 > oversight 2) it?s not supported 3) nothing at all? >=20 > Pat >=20 --=20 Emmanuel Vadot