From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Kai_Wasserb=c3=a4ch?= Subject: Re: [PATCH 1/5] drm: add interface to get drm devices on the system v2 Date: Fri, 14 Aug 2015 09:59:23 +0200 Message-ID: <55CD9FDB.2010809@dev.carbon-project.org> References: <1439436825-16908-1-git-send-email-Jammy.Zhou@amd.com> <1439436825-16908-2-git-send-email-Jammy.Zhou@amd.com> <20150813150755.GD17734@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1285067478==" Return-path: Received: from blackmesa.kw-serverwartung.de (blackmesa.kw-serverwartung.de [78.46.90.79]) by gabe.freedesktop.org (Postfix) with ESMTPS id B003E6E466 for ; Fri, 14 Aug 2015 01:06:42 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: "Zhou, Jammy" , Emil Velikov , Daniel Vetter Cc: ML dri-devel List-Id: dri-devel@lists.freedesktop.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============1285067478== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="R1HNjcQCJnNkhQ3NthupFfxp8iop2D2Mf" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --R1HNjcQCJnNkhQ3NthupFfxp8iop2D2Mf Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Zhou, Jammy wrote on 14.08.2015 07:59: > We tried several different ways already for the enumeration interface (= libpciaccess, libudev, etc). But we ran into some problems with these opt= ions for example when run Steam games which ships 32bit libraries (includ= ing libudev) in the steam runtime, so finally we decided to use sysfs dir= ectly to avoid introducing some additional dependencies into libdrm. The reason sounds wrong. There was a similar discussion over at Mesa. I t= hink you (as in hardware/driver vendors like AMD/Intel/Nvidia) need to push Va= lve (or the game devs through Valve or directly) to fix their setup. Steam runtim= e is fine and all, but please only pre-load it, if needed (ie. library foo is = missing on the system and can't be installed through the package manager). IIRC t= he VMWare guys said in the Mesa discussion, they have a script in place for = their virtualisation products, that checks whether a library needs to be loaded= from their "baseline directory" or from the system. Working around a bug/design flaw in Steam's Linux version doesn't sound l= ike a supportable solution in the long run. As long as you let them get away wi= th that, you will face this problem over and over with different libraries. = (For me it's usually libstdc++ (needed by LLVM), libncurses and a few X(CB) libra= ries I need to remove from Steam, before anything works. Though I do have script= for that, that I can run after every upgrade, this is not a solution for ever= yone.) Cheers, Kai --R1HNjcQCJnNkhQ3NthupFfxp8iop2D2Mf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQGcBAEBCgAGBQJVzZ/gAAoJEKMJ12zh3lnShxEL/j1Npry4n2rrnvFSHRgAtweA jPLYT6vVnNJohQkb/QQRKZljkNhz8ReI2blyMGrpGAc9VY5drRpXOzWMoaw6QnLN 41f2Ed82N+Yurd3KkM6Ule7Yr4UvCumOS/Kb113rfhxI+He+XpNaxgYLmW/jRj2b cuoA+6e8TlY7PE8Qdd6EouzGc1MUG5yE1leH/WG9+Kd07oIZh6JnesdtB7YOFiZY elZtcEztrwvls7pfK68cTcYp2vvZ0hoN5Vy40agO7C8f9iBkIgTPwK5xq2IsvfQI N1zjgAnYvrUfrFIp4Poq/CrRym54LqWP80zcPMnO12MdaO+f6taknLA2LCMBvAFm r0ruawWJtntNcpXA964VWYkYLRRyMWYwnfRYvcpd5kTHu1wRepVcnXfTYCkc3q1h QGBI/QTnnvfIEvaPIkpjV8jHa3nt1crU/pYDoBTpLWAaXc3yO5XTzYxVPd7W5Wie gR8VRD6cu/bx94S4XNnJEB5Znws5/4mvBBbXgCHFsg== =NF6d -----END PGP SIGNATURE----- --R1HNjcQCJnNkhQ3NthupFfxp8iop2D2Mf-- --===============1285067478== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1285067478==--