On Mon, Jan 30, 2023 at 09:32:08PM +1100, Jonathan Gray wrote: > The current generation of Intel Arc branded graphics cards are part of > what drm and Mesa refers to as DG2. > > https://ark.intel.com/content/www/us/en/ark/products/codename/226095/products-formerly-alchemist.html > > In -current we now have Mesa 22.3 which has support for DG2. > There is support in inteldrm but DG2 is not matched by default. > > The following diff matches it by default, as do versions of linux > after 6.1. > d2eae8e98d59 ("drm/i915/dg2: Drop force_probe requirement") > > I'm not sure if all the intel discrete gpu paths work. I don't have > hardware to test.
I have tested this with Intel Arc A750. It recognizes the device, but fails to initialize it. diff of dmesg before vs. after your diff attached. > > Index: sys/dev/pci/drm/i915/i915_pci.c > =================================================================== > RCS file: /cvs/src/sys/dev/pci/drm/i915/i915_pci.c,v > retrieving revision 1.15 > diff -u -p -U5 -r1.15 i915_pci.c > --- sys/dev/pci/drm/i915/i915_pci.c 25 Jan 2023 01:51:59 -0000 1.15 > +++ sys/dev/pci/drm/i915/i915_pci.c 29 Jan 2023 23:15:09 -0000 > @@ -1076,11 +1076,10 @@ static const struct intel_device_info xe > static const struct intel_device_info dg2_info = { > DG2_FEATURES, > XE_LPD_FEATURES, > .__runtime.cpu_transcoder_mask = BIT(TRANSCODER_A) | BIT(TRANSCODER_B) | > BIT(TRANSCODER_C) | BIT(TRANSCODER_D), > - .require_force_probe = 1, > }; > > static const struct intel_device_info ats_m_info = { > DG2_FEATURES, > NO_DISPLAY, >
--- dmesg-20230202-preDG2patch.txt Thu Feb 2 15:50:30 2023 +++ dmesg-20230202-postDG2patch.txt Thu Feb 2 15:50:46 2023 @@ -1,7 +1,7 @@ -OpenBSD 7.2-current (GENERIC.MP) #1015: Thu Feb 2 06:25:57 MST 2023 - dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP +OpenBSD 7.2-current (GENERIC.MP) #0: Thu Feb 2 15:38:20 EST 2023 + t...@thfr-hdd320g.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 34226315264 (32640MB) -avail mem = 33169625088 (31633MB) +avail mem = 33169633280 (31633MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets @@ -29,22 +29,22 @@ cpu0: apic clock running at 24MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE cpu1 at mainbus0: apid 2 (application processor) -cpu1: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, 4589.31 MHz, 06-a5-05 +cpu1: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, 4589.32 MHz, 06-a5-05 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,PKU,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu1: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 4-way L2 cache, 16MB 64b/line 16-way L3 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 4 (application processor) -cpu2: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, 4589.31 MHz, 06-a5-05 +cpu2: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, 4589.33 MHz, 06-a5-05 cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,PKU,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu2: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 4-way L2 cache, 16MB 64b/line 16-way L3 cache cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 6 (application processor) -cpu3: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, 4589.31 MHz, 06-a5-05 +cpu3: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, 4589.32 MHz, 06-a5-05 cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,PKU,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu3: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 4-way L2 cache, 16MB 64b/line 16-way L3 cache cpu3: smt 0, core 3, package 0 cpu4 at mainbus0: apid 8 (application processor) -cpu4: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, 4589.31 MHz, 06-a5-05 +cpu4: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, 4589.32 MHz, 06-a5-05 cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,PKU,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu4: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 4-way L2 cache, 16MB 64b/line 16-way L3 cache cpu4: smt 0, core 4, package 0 @@ -59,7 +59,7 @@ cpu6: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 4-way L2 cache, 16MB 64b/line 16-way L3 cache cpu6: smt 0, core 6, package 0 cpu7 at mainbus0: apid 14 (application processor) -cpu7: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, 4589.31 MHz, 06-a5-05 +cpu7: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, 4589.32 MHz, 06-a5-05 cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,PKU,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu7: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 4-way L2 cache, 16MB 64b/line 16-way L3 cache cpu7: smt 0, core 7, package 0 @@ -192,7 +192,9 @@ pci2 at ppb1 bus 2 ppb2 at pci2 dev 1 function 0 vendor "Intel", unknown product 0x4fa4 rev 0x00 pci3 at ppb2 bus 3 -"Intel Arc A750" rev 0x08 at pci3 dev 0 function 0 not configured +inteldrm0 at pci3 dev 0 function 0 "Intel Arc A750" rev 0x08 +drm0 at inteldrm0 +inteldrm0: msi, DG2, gen 12 ppb3 at pci2 dev 4 function 0 vendor "Intel", unknown product 0x4fa4 rev 0x00 pci4 at ppb3 bus 4 azalia0 at pci4 dev 0 function 0 vendor "Intel", unknown product 0x4f90 rev 0x00: msi @@ -232,7 +234,7 @@ audio0 at azalia1 ichiic0 at pci0 dev 31 function 4 "Intel 400 Series SMBus" rev 0x00: apic 2 int 16 iic2 at ichiic0 -iic2: addr 0x20 0b=22 0c=22 0d=99 0e=99 0f=43 10=44 13=73 15=ab 16=4d 17=ab 19=8a 1a=50 1b=68 1c=22 1d=0f 1e=0c 20=50 21=80 22=45 23=44 2a=2a 2d=33 2e=ee 2f=44 31=73 33=ab 37=8a 38=51 39=0f 3a=0c 3b=47 3c=44 44=28 48=07 92=0b b2=29 words 00=00ff 01=00ff 02=00ff 03=00ff 04=00ff 05=00ff 06=00ff 07=00ff +iic2: addr 0x20 0b=22 0c=22 0d=99 0e=99 0f=43 10=44 13=73 15=ab 16=4f 17=ab 19=8a 1a=50 1b=68 1c=22 1d=0f 1e=0c 20=50 21=80 22=45 23=44 2a=2a 2d=33 2e=ee 2f=44 31=73 33=ab 37=8a 38=51 39=0f 3a=0c 3b=47 3c=44 44=2b 48=07 92=0b b2=29 words 00=00ff 01=00ff 02=00ff 03=00ff 04=00ff 05=00ff 06=00ff 07=00ff spdmem0 at iic2 addr 0x51: 16GB DDR4 SDRAM PC4-17000 spdmem1 at iic2 addr 0x53: 16GB DDR4 SDRAM PC4-17000 "Intel 400 Series SPI" rev 0x00 at pci0 dev 31 function 5 not configured @@ -244,23 +246,18 @@ wskbd0 at pckbd0: console keyboard pcppi0 at isa0 port 0x61 spkr0 at pcppi0 -efifb0 at mainbus0: 2560x1440, 32bpp -wsdisplay0 at efifb0 mux 1: console (std, vt100 emulation), using wskbd0 -wsdisplay0: screen 1-5 added (std, vt100 emulation) +efifb at mainbus0 not configured uhidev0 at uhub0 port 9 configuration 1 interface 0 "Holtek USB Keyboard" rev 2.00/1.05 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 -wskbd1: connecting to wsdisplay0 uhidev1 at uhub0 port 9 configuration 1 interface 1 "Holtek USB Keyboard" rev 2.00/1.05 addr 2 uhidev1: iclass 3/0, 7 report ids uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0 ucc0 at uhidev1 reportid 3: 768 usages, 20 keys, array wskbd2 at ucc0 mux 1 -wskbd2: connecting to wsdisplay0 ukbd1 at uhidev1 reportid 5: 112 variable keys, 0 key codes wskbd3 at ukbd1 mux 1 -wskbd3: connecting to wsdisplay0 uhid1 at uhidev1 reportid 6: input=2, output=0, feature=0 uhid2 at uhidev1 reportid 7: input=0, output=0, feature=7 uhidev2 at uhub0 port 9 configuration 1 interface 2 "Holtek USB Keyboard" rev 2.00/1.05 addr 2 @@ -271,17 +268,14 @@ uhidev3: iclass 3/1 ukbd2 at uhidev3: 8 variable keys, 6 key codes wskbd4 at ukbd2 mux 1 -wskbd4: connecting to wsdisplay0 uhidev4 at uhub1 port 1 configuration 1 interface 1 "TrulyErgonomic.com Truly Ergonomic CLEAVE Keyboard" rev 2.00/0.01 addr 4 uhidev4: iclass 3/0, 7 report ids uhid4 at uhidev4 reportid 1: input=1, output=0, feature=0 ucc1 at uhidev4 reportid 2: 768 usages, 20 keys, array wskbd5 at ucc1 mux 1 -wskbd5: connecting to wsdisplay0 uhid5 at uhidev4 reportid 3: input=3, output=0, feature=0 ukbd3 at uhidev4 reportid 4: 112 variable keys, 0 key codes wskbd6 at ukbd3 mux 1 -wskbd6: connecting to wsdisplay0 uhid6 at uhidev4 reportid 5: input=0, output=0, feature=5 uhid7 at uhidev4 reportid 6: input=0, output=0, feature=255 ums0 at uhidev4 reportid 7: 5 buttons, Z and W dir @@ -300,7 +294,6 @@ uhidev7: iclass 3/1 ukbd4 at uhidev7: 8 variable keys, 6 key codes wskbd7 at ukbd4 mux 1 -wskbd7: connecting to wsdisplay0 ugen1 at uhub1 port 5 "VIA Labs, Inc. USB Billboard Device" rev 2.01/0.01 addr 10 uhidev8 at uhub0 port 13 configuration 1 interface 2 "AsusTek Computer Inc. AURA LED Controller" rev 2.00/1.00 addr 11 uhidev8: iclass 3/0, 236 report ids @@ -312,4 +305,21 @@ softraid0 at root scsibus3 at softraid0: 256 targets root on sd3a (63be178fb97e4ead.a) swap on sd3b dump on sd3b +xehp_load_dss_mask: stub +xehp_load_dss_mask: stub +intel_slicemask_from_xehp_dssmask: stub +intel_slicemask_from_xehp_dssmask: stub +i915_gem_stolen_lmem_setup: stub +drm:pid0:intel_memory_regions_hw_probe *ERROR* [drm] *ERROR* Failed to setup region(-78) type=3 +Device initialization failed (-78) +efifb0 at mainbus0: 2560x1440, 32bpp +wsdisplay0 at efifb0 mux 1: console (std, vt100 emulation), using wskbd0 +wskbd1: connecting to wsdisplay0 +wskbd2: connecting to wsdisplay0 +wskbd3: connecting to wsdisplay0 +wskbd4: connecting to wsdisplay0 +wskbd5: connecting to wsdisplay0 +wskbd6: connecting to wsdisplay0 +wskbd7: connecting to wsdisplay0 +wsdisplay0: screen 1-5 added (std, vt100 emulation) iwx0: hw rev 0x350, fw 67.8f59b80b.0, address 54:8d:5a:20:20:e2