NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: minidisplay-port on T440s working?




01/25/19, 11:32, Robert Elz:
>     Date:        Fri, 25 Jan 2019 09:10:31 +0000
>     From:        David Brownlee <abs%absd.org@localhost>
>     Message-ID:  <CAGN_6paG3vs+4tw3fJB6adgdajpS95t_YRMrTGO_zXs6zoCSqQ%mail.gmail.com@localhost>
>
>   | Interestingly when I boot Windows with the BIOS locked to Intel only, VGA
>   | is also the only port that works. my
A few notes, to add to the clutter...

On my HP Envy 17 (Intel 530, NVidia GeForce 950M) xrandr says
...
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis
y axis) 382mm x 215mm
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis)
1060mm x 626mm
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
...

whn I connect it to my old(ish) Samsung TV; on boot, the TV starts to
mirror the panel after the framebuffer fonts get loaded, X also works
fine (I suppose the second monitor can be made as desktop extension
rather than a mirror, but as I do not intend to actually use it, I
didn't bother to find out how for now, probably another 'Xorg
-configure' with the second monitor and then some tweak).
>
> Perhaps the hardware is built with the Intel GPU only connected to the VGA
> port, and it is expected that the nvidia GPU will be used when you're 
> connecting to anything else?
>
> For comparison I have a no-name (but not cheap, it is a well configured
> laptop) with both Intel (Kaby-Lake) and Nvidia chips, and in it, using only
> intel, xrandr says ...
>
> eDP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
> DP1 disconnected (normal left inverted right x axis y axis)
> DP2 disconnected (normal left inverted right x axis y axis)
> HDMI1 disconnected (normal left inverted right x axis y axis)
> HDMI2 disconnected (normal left inverted right x axis y axis)
> VIRTUAL1 disconnected (normal left inverted right x axis y axis)
>
> I deleted lines about the available resolutions on the eDP1 (which is
> the display).   There is no VGA, but the NetBSD current kernel
> finds all the rest - though one of the HDMI's has no (visible)
> external connector....   I had the HDMI connected to a 4K
> resolution display a few months ago, and that worked fine.
> I have not yet tried the external DP ports (two apparent sockets
> for those exist).   I have no idea what VIRTUAL1 represents!
>
> Unfortunately (or perhaps not) the nvidia is just ...
> [   1.0045648] vendor 10de product 1c8d (3D display, revision 0xa1) at pci1 dev 0 function 0 not configuredn
Mine is recognized, but not served:
...
nouveau0 at pci1 dev 0 function 0: vendor 10de product 139a (rev. 0xa2)
nouveau0: info: NVIDIA GM107 (1171a0a2)
nouveau0: autoconfiguration error: error: bios: unable to locate usable
image
nouveau0: autoconfiguration error: error: bios ctor failed, -22
nouveau0: autoconfiguration error: unable to create nouveau device: 22
...

(at least now, since perhaps 8.99.29, I don't have to disable nouveau*;
earlier it used to lead to panic).

>
> The point of this is that I believe that the Intel driver in current
> handles most of this OK, or at least seems to for me.   That is,
> except I have no clue what to do to make it load firmware.
> I do have what I believe are the correct files, installed in
> what ought to be the right place...    So DRM is not working.
>
> [   5.4026955] kern error: [drm:(/readonly/release/testing/src/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c:636)i915_firmware_load_error_print] *ERROR* failed to load firmware i915/kbl_dmc_ver1.bin (0)
> [   5.4026955] kern error: [drm:(/readonly/release/testing/src/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c:651)i915_firmware_load_error_print] *ERROR* The driver is built-in, so to load the firmware you need to
> [   5.4026955] kern error: [drm:(/readonly/release/testing/src/sys/external/bsd/drm2/dist/drm/i915/intel_guc_loader.c:560)guc_fw_fetch] *ERROR* Failed to fetch GuC firmware from i915/kbl_guc_ver9_14.bin (error -2)
> [   5.4085285] kern error: [drm:(/readonly/release/testing/src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:5417)i915_gem_init_hw] *ERROR* Failed to initialize GuC, error -5 (ignored)
>
>
> ls -la /libdata/firmware/i915
> total 560
> drwxr-xr-x   2 root  wheel     512 Sep 15 13:46 .
> drwxr-xr-x  20 root  wheel     512 Sep 15 13:33 ..
> -rw-r--r--   2 kre   wheel    8616 Sep 15 13:32 kbl_dmc_ver1.bin
> -rw-r--r--   2 kre   wheel    8616 Sep 15 13:32 kbl_dmc_ver1_01.bin
> -rw-r--r--   1 kre   wheel    8840 Sep 15 13:34 kbl_dmc_ver1_04.bin
> -rw-r--r--   1 kre   wheel  142656 Sep 15 13:37 kbl_guc_ver9_14.bin
> -rw-r--r--   1 kre   wheel  147776 Sep 15 13:45 kbl_guc_ver9_39.bin
> -rw-r--r--   1 kre   wheel  218688 Sep 15 13:46 kbl_huc_ver02_00_1810.bin
>
> hw.firmware.path = /libdata/firmware:/usr/libdata/firmware:/usr/pkg/libdata/firmware:/usr/pkg/libdata

I am in the same place:
...
i915drmkms0 at pci0 dev 2 function 0: vendor 8086 product 191b (rev. 0x06)
kern info: [drm] Memory usable by graphics device = 4096M
kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
kern info: [drm] Driver supports precise vblank timestamp query.
i915drmkms0: interrupting at ioapic0 pin 16 (i915drmkms0)
kern error:
[drm:(/home/sysbuild/src/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c:636)i915_firmware_load_error_print]
*ERROR* failed to load firmware i915/skl_dmc_ver1.bin (0)
kern error:
[drm:(/home/sysbuild/src/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c:651)i915_firmware_load_error_print]
*ERROR* The driver is built-in, so to load the firmware you need to
kern error:
[drm:(/home/sysbuild/src/sys/external/bsd/drm2/dist/drm/i915/intel_guc_loader.c:560)guc_fw_fetch]
*ERROR* Failed to fetch GuC firmware from i915/skl_guc_ver4.bin (error -2)
kern error:
[drm:(/home/sysbuild/src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:5417)i915_gem_init_hw]
*ERROR* Failed to initialize GuC, error -5 (ignored)
intelfb0 at i915drmkms0
kern info: [drm] RC6 on

~ ls -l /libdata/firmware/i915
total 136
-rw-r--r-- 1 root wheel   8928 Jan 25 12:48 skl_dmc_ver1.bin
-rw-r--r-- 1 root wheel 128320 Jan 25 12:48 skl_guc_ver4.bin

Mind you, the message after the skl_dmc_ver1.bin indicates that the file
has been found and opened, but not loaded for some reason. It does not
show if the files are missing. I tried to run with some of the drm debug
options enabled, but didn't get anything interesting. glxinfo then tells me:
...
pci id for fd 4: 8086:191b, driver (null)
i965_dri.so does not support the 0x191b PCI ID.
libGL error: failed to create dri screen
libGL error: failed to load driver: i965
...

which I guess is expected. Otherwise the system behaves well.


Where should I get the microcode from? I copied the two files shown as
missing from
https://github.com/wkennington/linux-firmware/tree/master/i915, wasn't
sure if there is other canonical place to get them from (apparently they
are not in src/sys/dev/microcode).


>
> kre
>
Chavdar



Home | Main Index | Thread Index | Old Index