Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp631792ybl; Wed, 11 Dec 2019 05:12:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzH3RAWEDIWryuJhn8OtdCRFWhBZvMG3Lq6iLfGVsJJMcunDUsv2vdCwmEXtWMyKTx+yU8p X-Received: by 2002:aca:4e87:: with SMTP id c129mr2495971oib.153.1576069937905; Wed, 11 Dec 2019 05:12:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576069937; cv=none; d=google.com; s=arc-20160816; b=qDMoyjt1krPEBgaC+WRUSP9fa5g/vz4497iHFXarH/8K0OyYpeIdDuWCKaGC/9G6Xh 5wmzOY77PFqi4st2givjKzTeTMInB66+cZFKGfCcktTQQHtcmkiMnqVGFW+bmuCXQCtG G8rgoAKczRfAV+znaWsD6EyQNg1iTH2nAxyCF7u9z73+hITAioj1rT6xuOpO6ZrHw/JR HsAW6JW6uXKbwYu/Xhs2m2dq5QdP8KwJOEomLGzlnLqQ2aXI7NmEWKCoIFdb4HzAkbqF 0pe04znkszFfFqMWfaV6B+usKUYJ2iOqY2mKVu44N1lcxTi5L/uQNni8oqn1JfAwdLNg WXNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:to:subject; bh=zoGVBA1Hj7jqxu8YzK/yg6N5KewUFUz08G3fApTjWCk=; b=TTpNyztLVKPfnB/EJzmFlKykXWQoPOFwF7jd1yP0VtR6r6isM8DbytdRav9Yz2aT97 ifHXN1c6Z4OdT68aqxTNoQOt53ATu3ZtOmGvp1OB/s2re293IwrJEG/JfM41c/2gw7CR Ky3RCcgbOmNmCKWsKwUZmQDwoJOAURydWEl372dRP5YfTRny9zaK8VqZ62XEt7FCdd5S cJ1hmfOt2ZtDLw9b4iRNNkDb8vZfP+tyLEFEVJNikGEphqNIjCbxZ8aVbBrDK2N0Job7 XNbUoJtpwcs7qxVz94kya1eCCy315M6QWVFLKBrhSx7a7XsY6pTXoCRcGuCUOLAt75ov 5CXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 10si1030208oin.212.2019.12.11.05.12.04; Wed, 11 Dec 2019 05:12:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729653AbfLKNKO (ORCPT + 99 others); Wed, 11 Dec 2019 08:10:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:59324 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729475AbfLKNKF (ORCPT ); Wed, 11 Dec 2019 08:10:05 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0A480B188; Wed, 11 Dec 2019 13:10:04 +0000 (UTC) Subject: Re: [PATCH v2 1/2] drm/shmem: add support for per object caching attributes To: Gerd Hoffmann , dri-devel@lists.freedesktop.org, David Airlie , open list , gurchetansingh@chromium.org References: <20191211081810.20079-1-kraxel@redhat.com> <20191211081810.20079-2-kraxel@redhat.com> <0b64e917-48f7-487e-9335-2838b6c62808@suse.de> <20191211123635.GY624164@phenom.ffwll.local> From: Thomas Zimmermann Autocrypt: addr=tzimmermann@suse.de; keydata= mQENBFs50uABCADEHPidWt974CaxBVbrIBwqcq/WURinJ3+2WlIrKWsp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8UxZKvbaxq0zb ehDda8lvhFXodNFMAgTLJlLuDYOGLK2AwbrS3Sp0AEbkpdJBb44qVlGm5bApZouHeJ/+n+7r 12+lqdsAEQEAAYkBPAQYAQgAJhYhBHIX+6yM6c9jRKFo5WgNwR1TC3ojBQJbOdLgAhsMBQkD wmcAAAoJEGgNwR1TC3ojpfcIAInwP5OlcEKokTnHCiDTz4Ony4GnHRP2fXATQZCKxmu4AJY2 h9ifw9Nf2TjCZ6AMvC3thAN0rFDj55N9l4s1CpaDo4J+0fkrHuyNacnT206CeJV1E7NYntxU n+LSiRrOdywn6erjxRi9EYTVLCHcDhBEjKmFZfg4AM4GZMWX1lg0+eHbd5oL1as28WvvI/uI aMyV8RbyXot1r/8QLlWldU3NrTF5p7TMU2y3ZH2mf5suSKHAMtbE4jKJ8ZHFOo3GhLgjVrBW HE9JXO08xKkgD+w6v83+nomsEuf6C6LYrqY/tsZvyEX6zN8CtirPdPWu/VXNRYAl/lat7lSI 3H26qrE= Message-ID: <7554edf6-ff53-b00f-8abb-dfeb80bfacbe@suse.de> Date: Wed, 11 Dec 2019 14:09:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20191211123635.GY624164@phenom.ffwll.local> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CBwKnaRxmLU0TFwDIfYhb3p7aGBERXNVD" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CBwKnaRxmLU0TFwDIfYhb3p7aGBERXNVD Content-Type: multipart/mixed; boundary="ejTXnzi7o17JEhc1I7A6Jfnq27MpLyFWg"; protected-headers="v1" From: Thomas Zimmermann To: Gerd Hoffmann , dri-devel@lists.freedesktop.org, David Airlie , open list , gurchetansingh@chromium.org Message-ID: <7554edf6-ff53-b00f-8abb-dfeb80bfacbe@suse.de> Subject: Re: [PATCH v2 1/2] drm/shmem: add support for per object caching attributes References: <20191211081810.20079-1-kraxel@redhat.com> <20191211081810.20079-2-kraxel@redhat.com> <0b64e917-48f7-487e-9335-2838b6c62808@suse.de> <20191211123635.GY624164@phenom.ffwll.local> In-Reply-To: <20191211123635.GY624164@phenom.ffwll.local> --ejTXnzi7o17JEhc1I7A6Jfnq27MpLyFWg Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Am 11.12.19 um 13:36 schrieb Daniel Vetter: >=20 > The udl use-case should be covered already, simply set the flag correct= ly > at create/import time? It's per-object ... The original udl gem code did this. It was additional state for something that was detectable from the value of import_attach. So udl now overrides vmap and mmap. > btw on why udl does this: Imported bo are usually rendered by real hw, = and > reading it uncached/wc is the more defensive setting. It would be kinda= > nice if dma-buf would expose this, but I fear dma-api maintainers would= > murder us if we even just propose that ... so it's a mess right now. Yeah, in some way it's a variation of the discussion around fbdev memory access that we had before. Best regards Thomas >=20 > btw the issue extends to dma access by devices too, e.g. both i915 and > amdgpu can select the coherency mode at runtime (using e.g. the pcie > no-snoop transaction mode), and we have similar uncoordinated hacks in > there too, like in udl. > -Daniel >=20 >> >> Acked-by: Thomas Zimmermann >> >> if you prefer to merge v1. >> >>> >>> Best regards >>> Thomas >>> >>>> >>> >> >> --=20 >> Thomas Zimmermann >> Graphics Driver Developer >> SUSE Software Solutions Germany GmbH >> Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany >> (HRB 36809, AG N=C3=BCrnberg) >> Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer >> >=20 >=20 >=20 >=20 >> _______________________________________________ >> dri-devel mailing list >> dri-devel@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/dri-devel >=20 >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --ejTXnzi7o17JEhc1I7A6Jfnq27MpLyFWg-- --CBwKnaRxmLU0TFwDIfYhb3p7aGBERXNVD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl3w6qcACgkQaA3BHVML eiNU/wf8CyBkP8OlV5JVi0gEs3zbEqTfnaf3lfuufKawUjzGWvwwLDwt0A30yStP odxnzXWntR3vp7ZYlO8A9ynyXKespM97DwbXVG1Z7jP2NHFCggW5xXtVC7eOSXRN pF8yAe3q4hf8Cd2Bp7FHRUR+o5dbbT6kVpNrAERFZmIZXOe1UkG1EVDx8w4VbR73 PfCHjbwE3yVOGKCu5cDDRTRQZ9k3RSYKOF3syN6Jt5KsDHgMXOzOpBk4e703MvMd H39cfCP2fAXrL+TJZHOtixP7IDh3cOL42qQPgjbGm5oxTjr+yilyXb6whtlblnX5 8iGI49gs36/uLOQ43UoCCsfby568pA== =YDL9 -----END PGP SIGNATURE----- --CBwKnaRxmLU0TFwDIfYhb3p7aGBERXNVD--