From nobody Thu Jun 27 22:56:48 2024 X-Original-To: x11@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 4W9DTx03Bvz5QZKK for ; Thu, 27 Jun 2024 22:57:09 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W9DTv1xvdz55bN for ; Thu, 27 Jun 2024 22:57:07 +0000 (UTC) (envelope-from kob6558@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=W0ElZw77; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::1133 as permitted sender) smtp.mailfrom=kob6558@gmail.com Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-632597a42b8so80643957b3.3 for ; Thu, 27 Jun 2024 15:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719529026; x=1720133826; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=aGtcqF7Z4Gya3Yf5KZ3DZrNWiDw0qx/i1C19V1SohpQ=; b=W0ElZw77nfWlV7NvZHJjXUcG0vUyIQ+YRjowHroSaQbEDzpaW9NFMWlLdoAHk2irzv el1lxQJXOgRSbOfbxQn2J7sgbxl19/A1ZSwzJ+2RBu0bGvbexKBuY4kMW/+P58y79QqC xkAC5LQzSzW/J39yu3cxWDlGhEn8L4QIAlgYAjuUKqHshxmTQsIfPf8cdraUBKUGyS5f GUPlLoHd/T+Kqm011JXp+jBZNkfmFKiQjmLzZaZOBeof0PQBJIBkj3Lm+OSszkqHPfFS h6LhKGpDbhN+/pbZwEW+e8JxZDw31mRd9vSX3r1lMui5bjPApDlc+RhnOAlzeUWdVljw m4kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719529026; x=1720133826; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aGtcqF7Z4Gya3Yf5KZ3DZrNWiDw0qx/i1C19V1SohpQ=; b=kapsnWnuW7uocxEW3dcqQW6xVjqiVxAHppxnn4Dyt00EAnj2O5d/gfcQcqalwVGc1k UlerBrMc3BkcBl19+R2O6NKwt6MN62jgDiQ3xl0/s0pVrfdq0LtVpGyHnjicRwkebjjs d5YzDyE0dcVOqpj2qvatYFnT+f4KJzpVgXs70wPpfJO0/Yo7rsMUYY1sNy6VN23hbyLA Q8ionjungNy68E+voERBUKwN/Ryfn6swd6qwqdvMmWjxbEcvzwZRZMZW4gVbCO1CMiIR TWYdJxAx+JClJ1aAztbW2lWtRDGqh+FYIUVdMqCCfq14X/DS373HUA/sFym+9YQ9Imzu 2daw== X-Gm-Message-State: AOJu0YybAH3Z9183SMtIImY3CT42VzjqbXvdgncgCZ+/S0m/6rWcY191 JkVQoT2y0MBzkxlduBMVWiI0iwRj8k7ySzKlQy2iruN60/KCHFD1Eo7K6jvDf69xV43yLpaO5mr KKkCaS1VjskXgBn/a8TWnhDjTFnOWqBxWTF4= X-Google-Smtp-Source: AGHT+IG9fknuByj+Q19dla3relgFH2WWKnO7qc/VLTOV1LnummItbXgW/XlZmvwbY2NagD6S6XpabHjjbZ6ezYsxXB4= X-Received: by 2002:a0d:e602:0:b0:615:800d:67b2 with SMTP id 00721157ae682-643aac7c21cmr156217017b3.29.1719529025843; Thu, 27 Jun 2024 15:57:05 -0700 (PDT) List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-x11@freebsd.org Sender: owner-freebsd-x11@FreeBSD.org MIME-Version: 1.0 From: Kevin Oberman Date: Thu, 27 Jun 2024 15:56:48 -0700 Message-ID: Subject: Documentation for modern Intel graphics. Use default modesetting! To: "freebsd-x11@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000c43f24061be70c46" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.70 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; SUBJECT_ENDS_EXCLAIM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1133:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[x11@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[x11@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~] X-Rspamd-Queue-Id: 4W9DTv1xvdz55bN --000000000000c43f24061be70c46 Content-Type: text/plain; charset="UTF-8" For some time I have seen great confusion as to the proper setup for Intel graphics. This applies to Sandy Lake and newer, which goes back at least 12 years. I should note that I am not a graphics expert. I last worked in graphics back in the mid-late 70s and base this on experience and advice from others, primarily Jan Beich. I'd love to see the handbook updated with modern information, but I lack familiarity with writing FreeBSD documents. Should I contact the doc people about this and possibly provide text that will at least provide a starting point? The best website I have found to figure out how to best set up graphics is the gentoo linux wiki. It has many Linux details such as installation, that are not applicable to FreeBSD, but the issues of which software to use is clear. Note that our i915 driver actually supports almost all Intel chips through Gen 12. (Not sure about Alchemist. drm-61-kmod should work.) Support for Gen. 4 is fairly limited. The big issue is that x11-drivers/xf86-video-intel is obsolete and has been for Gen 4 and newer. Last I checked, Intel has the driver in maintenance mode and only fixed bugs. New device capabilities in more modern devices were ignored. This resulted in graphics that worked, but ran like a very old device. I learned about this on my then new Sandy beach system. Playing videos worked, but ate CPU. If I was using much CPU on anything else, the video hesitated a lot. Jan pointed out that using the old Intel driver was a bad idea. By removing the Intel driver, the built-in modesetting driver takes over and, in combination with Mesa and multimedia/libva-intel-media-driver, provides very efficient CPU utilization graphics. It supports graphics acceleration on all but Gen. 4. The gentoo wiki indicates that Mesa is a part of the default software, but, last time I tried removing it, I lost all acceleration. You might want to enable TearFree. It takes more GPU power, but newer generations should handle it without problems. It may be default in modesetting. Since modesetting is built into X11 these days, it will automatically use it as long as the Intel driver is not present. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --000000000000c43f24061be70c46 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
For some time I have seen great confusion as to = the proper setup for Intel graphics. This applies to Sandy Lake and newer, = which goes back at least 12 years. I should note that I am not a graphics e= xpert. I last worked in graphics back in the mid-late 70s and base this on = experience and advice from others, primarily Jan Beich.
=
I'd love to see the handbook updated with modern in= formation, but I lack familiarity with writing FreeBSD documents.=C2=A0 Should I contact the doc= =20 people about this and possibly provide text that will at least provide a starting point?

The best website I have= found to figure out how to best set up graphics is the gentoo linux wiki. It has many Linux detail= s such as installation, that are not applicable to FreeBSD, but the issues = of which software to use is clear. Note that our i915 driver actually suppo= rts almost all Intel chips through Gen 12. (Not sure about Alchemist. drm-6= 1-kmod should work.) Support for Gen. 4 is fairly limited.

The big issue is that x11-drivers/xf86-video-intel i= s obsolete and has been for Gen 4 and newer. Last I checked, Intel has the = driver in maintenance mode and only fixed bugs. New device capabilities in = more modern devices were ignored. This resulted in graphics that worked, bu= t ran like a very old device. I learned about this on my then new Sandy bea= ch system. Playing videos worked, but ate CPU. If I was using much CPU on a= nything else, the video hesitated a lot. Jan pointed out that using the old= Intel driver was a bad idea.

By removin= g the Intel driver, the built-in modesetting driver takes over and, in comb= ination with Mesa and multimedia/libva-intel-media-driver, provides very ef= ficient CPU utilization graphics. It supports graphics acceleration on all = but Gen. 4. The gentoo wiki indicates that Mesa is a part of the default so= ftware, but, last time I tried removing it, I lost all acceleration. You mi= ght want to enable TearFree. It takes more GPU power, but newer generations= should handle it without problems. It may be default in modesetting.

Since modesetting is built into X11 these= days, it will automatically use it as long as the Intel driver is not pres= ent.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-m= ail: rkoberman@gma= il.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1= B055683
--000000000000c43f24061be70c46--