9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Lorenzo Bivens <izaki@belaska.us>
To: "9front@9front.org" <9front@9front.org>
Subject: [9front] [PATCH] Support for igfx on Celeron(R) 2957U
Date: Sat, 31 Jul 2021 04:40:35 +0000	[thread overview]
Message-ID: <CO1PR17MB517766016FDC107F2B17B083B6ED9@CO1PR17MB5177.namprd17.prod.outlook.com> (raw)

Hi,

After some tinkering I managed to get igfx working on this device.  hw cursor works.
The only caveat is that I can only get video over hdmi... will revisit displayport later

3 files patched, patches ahead.

--- //.git/fs/object/84b77568cda98a21dd4f3403a94c56724fbd5b37/tree//lib/vgadb
+++ /lib/vgadb
@@ -437,6 +437,8 @@
 	vid=0x8086 did=0x2a42	# Intel 4 Series Mobile
 	vid=0x8086 did=0x0a16	# Intel 4th Gen Core (HD 4400)
 	vid=0x8086 did=0x0412	# Intel 4th Gen Core (HD 4600)
+	vid=0x8086 did=0x3185	# Intel 9.5th Gen Core (UHD 600)
+	vid=0x8086 did=0x0a06
 	link=vga
 	hwgc=igfxhwgc
 	ctlr=igfx linear=1
@@ -653,6 +655,7 @@
 	include=1280x1024i
 multisync=1376x1024
 	include=1376x1024
+
 
 
 #
--- //.git/fs/object/84b77568cda98a21dd4f3403a94c56724fbd5b37/tree//sys/src/9/pc/vgaigfx.c
+++ /sys/src/9/pc/vgaigfx.c
@@ -149,6 +149,7 @@
 	switch(scr->pci->did){
 	case 0x0412:	/* Haswell HD Graphics 4600 */
 	case 0x0a16:	/* Haswell HD Graphics 4400 */
+	case 0x0a06:
 		if(pipe > 3)
 			return nil;
 		if(pipe == 3)
--- //.git/fs/object/84b77568cda98a21dd4f3403a94c56724fbd5b37/tree//sys/src/cmd/aux/vga/igfx.c
+++ /sys/src/cmd/aux/vga/igfx.c
@@ -366,6 +366,8 @@
 	case 0x0a16:	/* HD 4400 - 4th Gen Core (ULT) */
 		igfx->isult = 1;
 		/* wet floor */
+	case 0x0a06:
+	case 0x3185:    /* UHD 600 - 9.5 Gen Core */
 	case 0x0412:	/* HD 4600 - 4th Gen Core */
 		return TypeHSW;
 	case 0x0166:	/* 3rd Gen Core - ThinkPad X230 */


Thanks!


             reply	other threads:[~2021-07-31 10:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-31  4:40 Lorenzo Bivens [this message]
2021-07-31 11:51 ` cinap_lenrek
2021-07-31 19:48 ` Stuart Morrow
2021-08-02  5:23   ` Lorenzo Bivens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CO1PR17MB517766016FDC107F2B17B083B6ED9@CO1PR17MB5177.namprd17.prod.outlook.com \
    --to=izaki@belaska.us \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).