From nobody Sun May 8 17:20:27 2022 X-Original-To: freebsd-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 192C71ABB2B0 for ; Sun, 8 May 2022 17:20:41 +0000 (UTC) (envelope-from maurizio1018@gmail.com) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KxB081Lkfz3lmn for ; Sun, 8 May 2022 17:20:40 +0000 (UTC) (envelope-from maurizio1018@gmail.com) Received: by mail-ot1-x32a.google.com with SMTP id k25-20020a056830169900b00605f215e55dso8568799otr.13 for ; Sun, 08 May 2022 10:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M4DAaqye8Eu0F2/9N8gbor8WhGbQQ4PINp1sLbxwcRI=; b=n+b2k4/UnE8w435ZmJyDhkG4Ue55DlSkkgf9IcQVA5S9uulhyRvBS3iFdQwnuyhPsq l0jJflBnV8Bt5aUwM8/DfshmRiJp715CjiQjkatsxOca0qtcx8OvCBUto7G+FsnEcUxC TvfmgayTrZZOIotYpf+hhOHP2glLqIjQPYpTp+i6+A8oEXstKLMhEJQw/MQrzADKkfeq FFflTaqPvanlpxUIQVjysQ07Lz+CCq57Fl21D3QnQkktMOk3LpyTYY08aRBKitE9bBnl MrJUnYRyz5QyMkJ1tQTdH/3+qTxPyqoMu/v8BJrwJl03woJexcfCUgBg4J7O+gY3j2vJ zdbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M4DAaqye8Eu0F2/9N8gbor8WhGbQQ4PINp1sLbxwcRI=; b=FyUVKzqjLXGdcIdAmO0f+9zzyfkKxizo6yjN+EQuBEHfJd9vmbqzx59iEGADVL6sd/ o0OWWe/8nXtmlebrs+LZjLJEl7k1aX6JkjvrnCbW61O09ML93K8nWod0sWWWU08jPlRS hu7kdvqLe+hb9dW+nh/FtcXBQjkdBsedWL1Ctbn/yy9poJIvKWajLqoK+KhcvdLf/ga4 sy8c4EqToCWzgK3kOqXHqwx4b2jtv4Oex3MuSskBVhWP35wYZ6hOawnHyDFRK4KUpRyc EEagMWDjwOeK5GZq0YflT4f3rScyGRhjl/2m50fq782NTtyHoHJjBOrIx1JXe/CY/SHf 8ULA== X-Gm-Message-State: AOAM5310LOoVO5kKJ3VJg0RlOdzbjv9r0hqoa6pNW5ox028OZ4+MLitm nvCcAZAGcpa6xqN2N0cYUXou4mQ+ZKY3RbHcsQz0XwdaR5w= X-Google-Smtp-Source: ABdhPJzfhCnKnnK3fuWq52fgeGuKlVYB1RKwTf78Zyh4tk6OAODT1IGixJYfsdqD+qcs7jnbRYmen+no0PShB+VKwpY= X-Received: by 2002:a05:6830:2093:b0:605:6f01:1ed1 with SMTP id y19-20020a056830209300b006056f011ed1mr4639419otq.166.1652030439546; Sun, 08 May 2022 10:20:39 -0700 (PDT) List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 References: <20220508115909.07a9f93a317dc102da1d5179@bidouilliste.com> In-Reply-To: <20220508115909.07a9f93a317dc102da1d5179@bidouilliste.com> From: Maurizio Vairani Date: Sun, 8 May 2022 19:20:27 +0200 Message-ID: Subject: Re: Suspend/resume with graphics/drm-510-kmod on a Lenovo ThinkPad T450 minor issue To: Emmanuel Vadot Cc: freebsd-x11@freebsd.org Content-Type: multipart/alternative; boundary="00000000000081e3a305de834f2c" X-Rspamd-Queue-Id: 4KxB081Lkfz3lmn X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="n+b2k4/U"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of maurizio1018@gmail.com designates 2607:f8b0:4864:20::32a as permitted sender) smtp.mailfrom=maurizio1018@gmail.com X-Spamd-Result: default: False [-3.99 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32a:from]; MLMMJ_DEST(0.00)[freebsd-x11]; NEURAL_HAM_SHORT(-0.99)[-0.993]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --00000000000081e3a305de834f2c Content-Type: text/plain; charset="UTF-8" Il giorno dom 8 mag 2022 alle ore 11:59 Emmanuel Vadot < manu@bidouilliste.com> ha scritto: > > Hi Maurizio, > > On Sat, 7 May 2022 10:29:23 +0200 > Maurizio Vairani wrote: > > > Hi all, > > replacing the graphics/drm-fbsd13-kmod port with the > > graphics/drm-510-kmod-5.10.0, compiled from ports, the suspend/resume > cycle > > works on a Lenovo ThinkPad T450. I have found only a minor issue. Running > > mpv and vlc before and after the suspend/resume cycle I obtain some error > > messages on the console after resuming the laptop. > > Before suspending the laptop: > > > mpv Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ultra\)\ > > only\ video\ 1920x1080.webm > > (+) Video --vid=1 (*) (vp9 1920x1080 59.940fps) > > VO: [gpu] 1920x1080 yuv420p > > V: 00:00:10 / 00:02:38 (7%) Dropped: 20 > > > > Exiting... (Quit) > > > vlc Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ultra\)\ > > only\ video\ 1920x1080.webm > > VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2) > > [0000000800c5c060] main libvlc: Running vlc with the default interface. > Use > > 'cvlc' to use vlc without interface. > > libva info: VA-API version 1.14.0 > > libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so > > libva info: va_openDriver() returns -1 > > libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so > > libva info: Found init function __vaDriverInit_1_14 > > libva info: va_openDriver() returns 0 > > [000000080fc8f060] avcodec decoder: Using Intel i965 driver for Intel(R) > > Broadwell - 2.4.1 for hardware decoding > > [vp9 @ 0x80fc41e00] get_buffer() failed > > [vp9 @ 0x80fc41e00] thread_get_buffer() failed > > [vp9 @ 0x80fc42300] get_buffer() failed > > [vp9 @ 0x80fc42300] thread_get_buffer() failed > > QObject::~QObject: Timers cannot be stopped from another thread > > > > After the resume: > > > mpv Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ultra\)\ > > only\ video\ 1920x1080.webm > > 09:56:08 > > (+) Video --vid=1 (*) (vp9 1920x1080 59.940fps) > > libEGL warning: DRI2: failed to authenticate > > [vo/gpu/opengl] Suspected software renderer or indirect context. > > [vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device > > [vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be > > unavailable. > > WARNING: Kernel has no file descriptor comparison support: No such file > or > > directory > > VO: [gpu] 1920x1080 yuv420p > > V: 00:00:06 / 00:02:38 (4%) > > > > > vlc Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ultra\)\ > > only\ video\ 1920x1080.webm > > 09:56:19 > > VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2) > > [0000000800c5c060] main libvlc: Running vlc with the default interface. > Use > > 'cvlc' to use vlc without interface. > > libGL error: failed to authenticate magic 1 > > libGL error: failed to load driver: iris > > libEGL warning: DRI2: failed to authenticate > > libGL error: failed to authenticate magic 1 > > libGL error: failed to load driver: iris > > Failed to open VDPAU backend Shared object "libvdpau_va_gl.so" not found, > > required by "vlc" > > libEGL warning: DRI2: failed to authenticate > > [vp9 @ 0x82022ce00] get_buffer() failed > > [vp9 @ 0x82022ce00] thread_get_buffer() failed > > > > Note: after resuming the laptop mpv works only in full screen. > > -- > > Maurizio > > What hardware to do have ? (pciconf -lv vgapci0) > I can't reproduce here either on the console or from wayland, will try > xorg later. > > Cheers, > > -- > Emmanuel Vadot > Hi Emmanuel, thank you for the reply. The laptop runs Xorg and the hardware is: > pciconf -lv vgapci0 vgapci0@pci0:0:2:0: class=0x030000 rev=0x09 hdr=0x00 vendor=0x8086 device=0x1616 subvendor=0x17aa subdevice=0x5034 vendor = 'Intel Corporation' device = 'HD Graphics 5500' class = display subclass = VGA Regards -- Maurizio --00000000000081e3a305de834f2c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
Il giorno dom 8 mag 2022 alle ore 11:= 59 Emmanuel Vadot <manu@bidouil= liste.com> ha scritto:

=C2=A0Hi Maurizio,

On Sat, 7 May 2022 10:29:23 +0200
Maurizio Vairani <maurizio1018@gmail.com> wrote:

> Hi all,
> replacing the graphics/drm-fbsd13-kmod port with the
> graphics/drm-510-kmod-5.10.0, compiled from ports, the suspend/resume = cycle
> works on a Lenovo ThinkPad T450. I have found only a minor issue. Runn= ing
> mpv and vlc before and after the suspend/resume cycle I obtain some er= ror
> messages on the console after resuming the laptop.
> Before suspending the laptop:
> > mpv Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ul= tra\)\
> only\ video\ 1920x1080.webm
>=C2=A0 (+) Video --vid=3D1 (*) (vp9 1920x1080 59.940fps)
> VO: [gpu] 1920x1080 yuv420p
> V: 00:00:10 / 00:02:38 (7%) Dropped: 20
>
> Exiting... (Quit)
> > vlc Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ul= tra\)\
> only\ video\ 1920x1080.webm
> VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)
> [0000000800c5c060] main libvlc: Running vlc with the default interface= . Use
> 'cvlc' to use vlc without interface.
> libva info: VA-API version 1.14.0
> libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
> libva info: va_openDriver() returns -1
> libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
> libva info: Found init function __vaDriverInit_1_14
> libva info: va_openDriver() returns 0
> [000000080fc8f060] avcodec decoder: Using Intel i965 driver for Intel(= R)
> Broadwell - 2.4.1 for hardware decoding
> [vp9 @ 0x80fc41e00] get_buffer() failed
> [vp9 @ 0x80fc41e00] thread_get_buffer() failed
> [vp9 @ 0x80fc42300] get_buffer() failed
> [vp9 @ 0x80fc42300] thread_get_buffer() failed
> QObject::~QObject: Timers cannot be stopped from another thread
>
> After the resume:
> > mpv Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ul= tra\)\
> only\ video\ 1920x1080.webm
>=C2=A0 09:56:08
>=C2=A0 (+) Video --vid=3D1 (*) (vp9 1920x1080 59.940fps)
> libEGL warning: DRI2: failed to authenticate
> [vo/gpu/opengl] Suspected software renderer or indirect context.
> [vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
> [vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will = be
> unavailable.
> WARNING: Kernel has no file descriptor comparison support: No such fil= e or
> directory
> VO: [gpu] 1920x1080 yuv420p
> V: 00:00:06 / 00:02:38 (4%)
>
> > vlc Real\ 4K\ HDR\ 60fps\ -\ LG\ Jazz\ HDR\ UHD\ \(Chromecast\ Ul= tra\)\
> only\ video\ 1920x1080.webm
>=C2=A0 09:56:19
> VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)
> [0000000800c5c060] main libvlc: Running vlc with the default interface= . Use
> 'cvlc' to use vlc without interface.
> libGL error: failed to authenticate magic 1
> libGL error: failed to load driver: iris
> libEGL warning: DRI2: failed to authenticate
> libGL error: failed to authenticate magic 1
> libGL error: failed to load driver: iris
> Failed to open VDPAU backend Shared object "libvdpau_va_gl.so&quo= t; not found,
> required by "vlc"
> libEGL warning: DRI2: failed to authenticate
> [vp9 @ 0x82022ce00] get_buffer() failed
> [vp9 @ 0x82022ce00] thread_get_buffer() failed
>
> Note: after resuming the laptop mpv works only in full screen.
> --
> Maurizio

=C2=A0What hardware to do have ? (pciconf -lv vgapci0)
=C2=A0I can't reproduce here either on the console or from wayland, wil= l try
xorg later.

=C2=A0Cheers,

--
Emmanuel Vadot <manu@bidouilliste.com> <manu@FreeBSD.org>
<= div>Hi Emmanuel,
thank you for the reply. The laptop runs Xorg an= d the hardware is:
> pciconf -lv vgapci0
vgapci0@pci0:0:2:0= : class=3D0x030000 rev=3D0x09 hdr=3D0x00 vendor=3D0x8086 device=3D0x1616 su= bvendor=3D0x17aa subdevice=3D0x5034
=C2=A0 =C2=A0 vendor =C2=A0 =C2=A0 = =3D 'Intel Corporation'
=C2=A0 =C2=A0 device =C2=A0 =C2=A0 =3D &= #39;HD Graphics 5500'
=C2=A0 =C2=A0 class =C2=A0 =C2=A0 =C2=A0=3D di= splay
=C2=A0 =C2=A0 subclass =C2=A0 =3D VGA

Regards
--
Maurizio

--00000000000081e3a305de834f2c--