From nobody Fri Nov 01 16:32:07 2024 X-Original-To: freebsd-drivers@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 4Xg5xK0ttZz5c3wj for ; Fri, 01 Nov 2024 16:32:21 +0000 (UTC) (envelope-from peter.garshtja@ambient-md.com) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (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 4Xg5xH67Smz41q7 for ; Fri, 1 Nov 2024 16:32:19 +0000 (UTC) (envelope-from peter.garshtja@ambient-md.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ambient-md-com.20230601.gappssmtp.com header.s=20230601 header.b=xu+qoXyx; spf=none (mx1.freebsd.org: domain of peter.garshtja@ambient-md.com has no SPF policy when checking 2607:f8b0:4864:20::833) smtp.mailfrom=peter.garshtja@ambient-md.com; dmarc=none Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-460b16d4534so13002351cf.3 for ; Fri, 01 Nov 2024 09:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ambient-md-com.20230601.gappssmtp.com; s=20230601; t=1730478739; x=1731083539; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=JdEO1LPMWOrFOOvLa9ZYTxIH67tBd+qC3TGFVxz2XU8=; b=xu+qoXyxHWKgizwXVIDnXY1GDhbooAXG2rJEbtpiL5k/chM+GcriDLjQ8/mjcQIzgG CbNd1TO/CenIpkiNEoqSWEKUEdMWe6SPkOJOlYfBeEj8MYa5NO3YbhUz6W5DyKW1w8ae 5Lr2ZUR9s5vXcopjkIRH7xXyjuC2/xsPYsudRJJd2SDmCbCMxje+GRnQA2xAfh44Mgey 48mELpoRz5x7EYpjKwLyQIh8ACiIET6wbr6QxTLWZfb6q6AvXk78VFmQ8+iRKG3meRUK FG+HkHOryIkbgTh88z0nrc1Ei8q+n0NCmakVBZSwmqPth8cByPea0jxPxty/auIRDNsj 3IdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730478739; x=1731083539; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JdEO1LPMWOrFOOvLa9ZYTxIH67tBd+qC3TGFVxz2XU8=; b=N+/2U9alsxy0yo3QZ3YrKN/UF5mCccIV2XoNmoQ96bE2rTY5NRAvL5UzuXFRSc8YGa aUhTP92cyV2Ki3/XtTOdifRHhkO9v24LT03OTSetDAE8blYlGKX5sjjApBMsAepec1VN LQqJTp2csxlWKd18ggLlCS4kEdHdjiSHclULnfXJuX/E+eduoKAHcJbTa5d2F6bHoaK1 Wv7aYaU1EE4c9fl8lp8fDFUzUdrKeO3eEDYQRZLrlFR5TJljcouJrS9TH86Z8+5fgmdB H9jIXYtbYzWCOv8+zcGJHoOpXphqeNZRVY/HqJidvcwH1O2qCsovglEAT5V8P7nYGfLu tnSQ== X-Gm-Message-State: AOJu0YxoLNfWPvP1+GARbJqXZEqb0TAG4/20jzWpk5QnG5kB9rcQw3ad HT9WFm2Dk7tdE1JqcToWkCRbjHvlwZ8SDVp3QKUs+JuLObtJe/UhB2JlqbZhPS8K1vNplEkBdBC fuxM= X-Google-Smtp-Source: AGHT+IHX5s+bDR7yytE/7l8t0EysjBNCsldlC6DltzcmgmvYx83k12h/9oCEq3tWxHUTBPMMWp6jLA== X-Received: by 2002:ac8:7f94:0:b0:458:3884:9aef with SMTP id d75a77b69052e-4613c0531a0mr387086061cf.27.1730478738426; Fri, 01 Nov 2024 09:32:18 -0700 (PDT) Received: from [10.0.0.76] ([70.30.204.113]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-462ad1b54e3sm19681071cf.90.2024.11.01.09.32.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Nov 2024 09:32:17 -0700 (PDT) Message-ID: <7f3701c6-fc51-46c8-996d-3558a2056a7b@ambient-md.com> Date: Fri, 1 Nov 2024 12:32:07 -0400 List-Id: Writing device drivers for FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-drivers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-drivers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: drm kmod driver on lenovo thinkpad t490 From: Petru Garstea To: freebsd-drivers@freebsd.org References: <7e4c16bb-c279-45c1-8bd0-0935d4524d05@ambient-md.com> Content-Language: en-US In-Reply-To: <7e4c16bb-c279-45c1-8bd0-0935d4524d05@ambient-md.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-3.29 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[ambient-md-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DMARC_NA(0.00)[ambient-md.com]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-drivers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::833:from]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-drivers@freebsd.org]; DKIM_TRACE(0.00)[ambient-md-com.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4Xg5xH67Smz41q7 X-Spamd-Bar: --- could anyone keep me honest with VAAPI + iHD driver support For full iHD support, FreeBSD lacks the iHD driver stack and relies more on workarounds and patches. Does anyone have an idea when iHD driver will be released ? Trying display: x11 libva info: VA-API version 1.22.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_22 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.22 (libva 2.22.0) vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.1 thx On 10/31/24 09:33, Petru Garstea wrote: > Greetings, > > I notice significant CPU spike during video decoding. > Thinkpad t490 has an intel uhd 620 graphic card and I expect the > driver should use hardware acceleration and offload that kind of work. > > installed packages > > drm-kmod-20220907_3 > Name           : drm-kmod > Version        : 20220907_3 > Installed on   : Mon Oct 21 16:15:33 2024 EDT > Origin         : graphics/drm-kmod > Architecture   : FreeBSD:14:* > Prefix         : /usr/local > Categories     : graphics > Licenses       : NA > Maintainer     : x11@FreeBSD.org > WWW            : https://github.com/freebsd/drm-kmod > Comment        : Metaport of DRM modules for the linuxkpi-based KMS > components > Annotations    : >         build_timestamp: 2024-10-02T19:09:01+0000 >         built_by       : poudriere-git-3.4.2 >         port_checkout_unclean: no >         port_git_hash  : 854c13714 >         ports_top_checkout_unclean: no >         ports_top_git_hash: 2f11ca479 >         repo_type      : binary >         repository     : FreeBSD > > > --- > > libva-intel-driver-2.4.1_3 > Name           : libva-intel-driver > Version        : 2.4.1_3 > Installed on   : Thu Oct 24 11:15:31 2024 EDT > Origin         : multimedia/libva-intel-driver > Architecture   : FreeBSD:14:amd64 > Prefix         : /usr/local > Categories     : multimedia > Licenses       : MIT > Maintainer     : jbeich@FreeBSD.org > WWW            : https://01.org/linuxmedia > Comment        : VAAPI legacy driver for Intel GMA 4500 (Gen4) to UHD > 630 (Gen9.5) > Options        : >         HYBRID         : on >         WAYLAND        : on >         X11            : on > Shared Libs required: >         libdrm_intel.so.1 >         libdrm.so.2 > Annotations    : >         FreeBSD_version: 1401000 >         build_timestamp: 2024-10-09T11:37:51+0000 >         built_by       : poudriere-git-3.4.2 >         port_checkout_unclean: no >         port_git_hash  : 19fbadfb9 >         ports_top_checkout_unclean: no >         ports_top_git_hash: 19fbadfb9 >         repo_type      : binary >         repository     : FreeBSD > > > Please advise > > > Thanks, > > Petru >