From owner-freebsd-questions@freebsd.org Wed Apr 22 08:23:51 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9F9982AB351; Wed, 22 Apr 2020 08:23:51 +0000 (UTC) (envelope-from chardon.frederic@gmail.com) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 496YP13C9Xz3Q0t; Wed, 22 Apr 2020 08:23:49 +0000 (UTC) (envelope-from chardon.frederic@gmail.com) Received: by mail-il1-x131.google.com with SMTP id c16so1048841ilr.3; Wed, 22 Apr 2020 01:23:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=8PowIReH41uWJFfudmlR5VMocuUW9hw81qgXGyrcZhk=; b=b5BHdB0Pd7qP1RsIBlhmy1Ub2+pTqaE6ZZi3SZ1RbiKSjJ3p7bOGonwsbzi8QIyj8I kfWawiW2yLLQy70IOVrS0gVKrn/EUCiJs8CnWj94+AFKAcXqxRFYvHoCsR4RXbFKBdt4 u4bk1MhWgFSSc+LBv9hBIzaHt62xIQACBwKF3fdZdeU0sMXC43M52GtwG1VMuIKFbT6F bOhDqNfk29fj/VcEMTEqhF1OE6J/rrxSslGHPIXB5kLFtKMArpuf0pXK5Hc0aiEcwwN4 2R8sxDpGnwljdLmP/Ud3ACAeXMZ5UF5LUam1fkLr8lYywh4BYCkf0r2yNw4eXaCwxJb7 umuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8PowIReH41uWJFfudmlR5VMocuUW9hw81qgXGyrcZhk=; b=oJoEwl/NvjQN2Ua734hYV8C1YeQmFqs5wfsre4SmHtCYHy8ic1c3cDi5twb73ra2oy hGBvdTw2HWaKxzioTenuo7zy68Z3yZr2t9C36t4xPeQYFb2f1JMGn5xPpoqkiYIUhV4Y /1wign/uGca/9I/xzw2hDYyWEZCwiDJgdQXruc6QnjiNePiWLeRVUWxAPbx37hrLTti6 5YrlEfYU36dbJfwvwNIHXDiAmNTEQOQ8n8oS8WeCVoAcrxTfW8hFoiRW25uRD7y2WobN jRlgv0jFqgQ1UajHRp8swYX3idQFkNwVfQTkFqNwC4dUxDTu8rOOLQlGQdGmhmmloAMr KjWA== X-Gm-Message-State: AGi0PuZZTkrSVnnBSpr2dxn6thhsKwOWGB3GT9f2Qi+JiMBnv6e/lKy0 CZ7Xsns2KyAtNSt3Fsomfuwtd7RYmXIVTORQE/8n/9kR X-Google-Smtp-Source: APiQypId2RsT37aaT2uws3fX9BAoy9eQc3dyOECO75aeb29ErE18W7ZxinpWqInuAJEcNIB6fCbbuOlTUGlf8vWS6+c= X-Received: by 2002:a92:ce08:: with SMTP id b8mr25779637ilo.69.1587543827173; Wed, 22 Apr 2020 01:23:47 -0700 (PDT) MIME-Version: 1.0 References: <6c7abdcf-aeef-4af4-b8f4-9d7fd0e45cf0@localhost> <7fba319c-c012-8893-3ce0-e2a166c38d2d@daemonic.se> In-Reply-To: From: Frederic Chardon Date: Wed, 22 Apr 2020 10:23:35 +0200 Message-ID: Subject: Re: Wayland on FreeBSD To: Jan Beich Cc: Niclas Zeising , freebsd-x11@freebsd.org, FreeBSD Questions Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 496YP13C9Xz3Q0t X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=b5BHdB0P; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of chardonfrederic@gmail.com designates 2607:f8b0:4864:20::131 as permitted sender) smtp.mailfrom=chardonfrederic@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-7.89), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.3.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2020 08:23:51 -0000 Le lun. 20 avr. 2020 =C3=A0 23:06, Jan Beich a =C3=A9c= rit : > > Frederic Chardon writes: > > > > > The trace shows usage of llvmpipe after the failed ioctl on > > /dev/dri/card0, so as I understand the lack of hardware acceleration > > concerns only Xwayland, whereas wayland itself is accelerated ? > > Yep. Check which ioctls fail then try to reproduce outside of Mesa or > hardcode the result. Overriding PCI ID via INTEL_DEVID_OVERRIDE is > unlikely to help e.g., All below failure occurs only in xwayland, X11 and wayland succeed. The first failure is with I915_PARAM_CHIPSET_ID. When I hardcode the correct ID I get a failure with I915_PARAM_HAS_RELAXED_DATA. When I force the result to be true (as with X11 and Wayland), the ioctl DRM_I915_GEM_EXECBUFFER2_WR fails with errno EPERM. Should I open an issue on drm-kms github? Or it is more likely a problem on mesa side? > https://lists.freebsd.org/pipermail/freebsd-x11/2019-January/022551.html > > If you still have no clue try playing with sysctls under compat.linuxkpi > via /boot/loader.conf. Any hints which ones are worth a try? How did you solve your issue (as it seems to be pretty similar). Thanks