From nobody Tue Nov 09 09:32:30 2021 X-Original-To: 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 EC73E18450A8 for ; Tue, 9 Nov 2021 09:32:30 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HpN7256CVz4v1Z for ; Tue, 9 Nov 2021 09:32:30 +0000 (UTC) (envelope-from danfe@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1636450350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=SrmJ0Rbn4NPNahudf/sfGyu2Al83H/2b3/0SNzFPK4A=; b=Q1vWkzugZFulZDVr5aPGPrdPx52VnBe6VNRZ+z1MO9AXnr4ydYEUYPsi9AiQfsIiAMQ/wu vhjsZC4yVD7WXjnjfgA2unIWrkjOXHom4Gb08gOPVVQ12HPUC5wCm8bQ/RYh/2prF6EfX4 A0XBvSzgFrfM4Oq+Ef8U/++F19gAKg4tQnSZOTYur4lwCzXtS87JAO2B7X2PHmVw/H8BGR XiHSU2J9G8vNUbJk8kVhBkHAUhCsJoD2gNnxIf6at3hOuMrkoQ179OPFxfT/bodFHN0m7F MrWX5KOupyccvwyYoKTMtpl1FnZe53lmTsB9yErWHl8IvyWjkpFifhKsAydLGA== Received: by freefall.freebsd.org (Postfix, from userid 1033) id 853C51B18C; Tue, 9 Nov 2021 09:32:30 +0000 (UTC) Date: Tue, 9 Nov 2021 09:32:30 +0000 From: Alexey Dokuchaev To: x11@freebsd.org Subject: Problems with Xv and latest xf86-video-intel driver Message-ID: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1636450350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=SrmJ0Rbn4NPNahudf/sfGyu2Al83H/2b3/0SNzFPK4A=; b=MssYgXcIr3gzutr9y/JNsig/5IOmrRoG6vnWItJ9JdCmDldgFenzn0R0QZJiaziQmfTx4w LyZprW/iInWARn2spt1YeFNgRdB3oS4Ec7NdJCx8opcQbP3TvYvDtXGCJBBsChDBjIkvO3 tyESwzIwfRXUPBOXtoFxBD0zpvlu4FLj4kxuD88AZMaoy6r7qYCFP+J22XDQ+ERlOKbzWW 0btNMGxtKUtlG2x7GPETrG2scgnmlB7gfRbqaKcPoMBjRSe6zO3GCEaAl5PfFOL3TIAX8Z Be6HYLqmfb9XvcFfJAc40fQKBcSTXkDGJ3PxDhFRb++PB15UmjkreqSg2woQ9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1636450350; a=rsa-sha256; cv=none; b=EUD2YRPrZQ9NPa92HD69yL/55wn7e5AfV7QA/eR9g6HCL8D9glo1YfOivHFVfCJ7GQEDMZ frT5UWdULURMoL1mygPQXa/8Kkc74f732h8oitoihB5PSYVEa/BJixqVXxEEvF8pEYbfJP EqFzmiPyZRCnLSf7QleJTI2Fc8+aVWmpRrKfeqp6ivyvUWpB2fA9NaMZTC2yunoHTQ6eja 3l7hm5JCMD33kKA7mM6Ftwn6zq3thKFQwDrRH28LaSUrHK0w4vWCQdXVgoqYo4VRoBLhGo R59mSrD5HjQlJVwm1SLq3am0pjK3f2uvivBZ4ubbm2NEUSGQMIOPMrsNKZnUqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Hi there, Several days ago I've updated this L470 laptop I'm using to the latest -CURRENT and graphics ports. It only has iGPU which is Intel HD 620. What I ended up having installed after a few portupgrade(1) runs: xorg-server-1.20.7_1,1 mesa-dri-21.1.8 mesa-libs-21.1.8 libva-2.6.1 libva-intel-driver-2.4.1_1 <-- per the advice at [1] libvdpau-va-gl-0.4.2_5 The problem is that with xf86-video-intel-2.99.917.916_1,1 installed, xvinfo(1) gives me: X-Video Extension version 2.2 screen #0 no adaptors present That's all. In the /var/log/Xorg.0.log, I can see this line: (WW) intel(0): Disabling Xv because no adaptors could be initialized. Interestingly though, MPlayer consumes ~13% of CPU decoding some random H264 640x360 YouTube clip, which means that 2D gfx hw accell is working despite that evidently Xv support is missing or broken. If I ``pkg delete -x xf86-video-intel'' so that modesetting driver is used instead, zap and startx(1) again, xvinfo(1) would yield: Adaptor #0: "GLAMOR Textured Video" number of ports: 16 port base: 131 operations supported: PutImage ... (30 more lines) ... CPU utilization with MPlayer remains the same ~13%. Since I've got used to have the xf86-video-intel driver, I wanted to have normal xvinfo(1) output with it installed. So I've repeatedly tried every version mentioned in the ``git log .'' until I'd hit the commit 4b9c697c260c (xf86-video-intel-2.99.917.20181203_1) which did not fix xvinfo(1) with default UXA option, but with SNA it finally did, to much relief: Adaptor #0: "Intel(R) Textured Video" number of ports: 64 port base: 75 operations supported: PutImage ... (93 more lines) ... It had also produced considerably more output and now there are two adaptors: "Intel(R) Textured Video" and "Intel(R) Video Sprite". I guess with SNA, better performance should be expected [2], albeit UXA is still the default, so I'm wondering if non-working xvinfo(1) with UXA is a bug (that's question #1). It's also a bit odd that UXA is the port's default option while per their NEWS file, SNA is default upstream since snapshot 2.99.901 (2013-09-04). Bigger question #2 is why Xv/xvinfo(1) is botched with newish Intel drivers? Anything I can do to help fix this bug, or it is expected and documented anywhere? Thanks, ./danfe [1] https://wiki.freebsd.org/Graphics [2] http://cynic.cc/blog/posts/sna_acceleration_vs_uxa/