From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: Re: [PATCH v3 1/2] drm/gem: drm_gem_dumb_map_offset(): reject dma-buf Date: Mon, 21 Aug 2017 07:26:17 +0200 Message-ID: <20170821052617.GA18479@ulmo.fritz.box> References: <1502986891-36764-1-git-send-email-noralf@tronnes.org> <1502986891-36764-2-git-send-email-noralf@tronnes.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0481443475==" Return-path: Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6C0156E010 for ; Mon, 21 Aug 2017 05:26:21 +0000 (UTC) Received: by mail-wr0-x241.google.com with SMTP id z91so15963567wrc.4 for ; Sun, 20 Aug 2017 22:26:21 -0700 (PDT) In-Reply-To: <1502986891-36764-2-git-send-email-noralf@tronnes.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Noralf =?utf-8?Q?Tr=C3=B8nnes?= Cc: daniel.vetter@ffwll.ch, linux@armlinux.org.uk, dri-devel@lists.freedesktop.org, laurent.pinchart@ideasonboard.com List-Id: dri-devel@lists.freedesktop.org --===============0481443475== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc" Content-Disposition: inline --C7zPtVaVf+AK4Oqc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 17, 2017 at 06:21:30PM +0200, Noralf Tr=C3=B8nnes wrote: > Reject mapping an imported dma-buf since is's an invalid use-case. >=20 > Cc: Philipp Zabel > Cc: Laurent Pinchart > Cc: Sean Paul > Cc: Daniel Vetter > Signed-off-by: Noralf Tr=C3=B8nnes > --- > drivers/gpu/drm/drm_gem.c | 6 ++++++ > 1 file changed, 6 insertions(+) I'm not sure we've documented exactly why this is an invalid use-case. Perhaps that's something we should do along with this patch, or maybe as a follow-up. Either way, I think this is a good idea, so: Acked-by: Thierry Reding --C7zPtVaVf+AK4Oqc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlmabvYACgkQ3SOs138+ s6FsBRAAjcGKipkXGvlNL7CIU1qkwKDx289KCHSN+XJ5QXpS4SvCUKd26XEx3HyB utFKKbNW4+A+9Mb7nMD+9KaVRVID8CDYIAQjFcJRd55rxg95JWpLPf1QvgY5lCRt cf+ojzbxR1Qo6naBjcfN7kfx7o9TscPApIwydA7rCCuTXtYV+m7N+MvSaVF06FGc ZmDvRtPOGlrvM1VSyObnCkzK4szXNiPrNXpxyY/CSsiy4OGn1fKoYa8aqo9XBIDZ PlyLkNNx7Bfxvs/7bpnGIhm/xLpLJGyhkfKuikFcRE/mZxlhJ9qwSj9DOYNqvfyM KnfZ5zenZr/QyOmgOichPvjDPu7bafgpkI8QtzDWFIuGHyyxwo+8fAeVCYSphHd/ HUmwBn/BSuqIUOvG054JSEapp3+EuQPSQ7btaB4pVXShDDu9Z2MADBJ10MJ1Ef7i BpZjt4bG8Elo9yAJCull2G1T4WzqOiBg9Yek6LJDyhNN22N6RKUe5+HpUT5ZXbCy ZOvnKnWRZGmEe9ZyOLAgs5ucdxRINtsa5eHfNKzW8fQzV/ihM+1iYKvBjopmqyNX e0raiGHjs9Xm2J1F5hHUsGtCdDQb6DsvVuCnec9wTgYZgWEWx//NuFVk5mlEggbB 7nBaY/e4LZ80cTiLF1U03AXPkmDzYod+/xdW2tQOOwNY0jdOYZE= =YBsG -----END PGP SIGNATURE----- --C7zPtVaVf+AK4Oqc-- --===============0481443475== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0481443475==--