From: Thomas Zimmermann Subject: Re: [PATCH 0/3] drm/udl: Convert to SHMEM Date: Mon, 28 Oct 2019 09:48:57 +0100 Message-ID: <7332d2e6-790f-aa53-e257-210652111b5b@suse.de> References: <20191028084549.30243-1-tzimmermann@suse.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2023428052==" Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2ED006E4DD for ; Mon, 28 Oct 2019 08:49:04 +0000 (UTC) In-Reply-To: <20191028084549.30243-1-tzimmermann@suse.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: airlied@redhat.com, sean@poorly.run, daniel@ffwll.ch, noralf@tronnes.org, sam@ravnborg.org, emil.velikov@collabora.com Cc: Gerd Hoffmann , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============2023428052== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iX55OGB6V5AUUgC4H1zbezkqXArplTg9u" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --iX55OGB6V5AUUgC4H1zbezkqXArplTg9u Content-Type: multipart/mixed; boundary="H2F3cwpPFWesbyfQdnt3r7p7o61Y3xXDc"; protected-headers="v1" From: Thomas Zimmermann To: airlied@redhat.com, sean@poorly.run, daniel@ffwll.ch, noralf@tronnes.org, sam@ravnborg.org, emil.velikov@collabora.com Cc: dri-devel@lists.freedesktop.org, Gerd Hoffmann Message-ID: <7332d2e6-790f-aa53-e257-210652111b5b@suse.de> Subject: Re: [PATCH 0/3] drm/udl: Convert to SHMEM References: <20191028084549.30243-1-tzimmermann@suse.de> In-Reply-To: <20191028084549.30243-1-tzimmermann@suse.de> --H2F3cwpPFWesbyfQdnt3r7p7o61Y3xXDc Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable (cc: Gerd) Am 28.10.19 um 09:45 schrieb Thomas Zimmermann: > Udl's GEM implementation is mostly SHMEM and we should attempt to > replace it with the latter. >=20 > Patches #1 and #2 update udl to simplify the conversion. In patch #3 > the udl code is being replaced by SHMEM. The GEM object's mmap() and > free_object() functions are wrappers around their SHMEM counterparts. > For mmap() we fix-up the page-caching flags to distinguish between > write-combined and cached access. For free(), we have to unmap the > buffer's mapping that has been established by udl's fbdev code. >=20 > The patchset has been tested by running the fbdev console, X11 and > Weston on a DisplayLink adapter. >=20 > Thomas Zimmermann (3): > drm/udl: Remove flags field from struct udl_gem_object > drm/udl: Allocate GEM object via struct drm_driver.gem_create_object > drm/udl: Switch to SHMEM >=20 > drivers/gpu/drm/udl/Kconfig | 1 + > drivers/gpu/drm/udl/Makefile | 2 +- > drivers/gpu/drm/udl/udl_dmabuf.c | 255 -------------------------------= > drivers/gpu/drm/udl/udl_drv.c | 30 +--- > drivers/gpu/drm/udl/udl_drv.h | 36 +---- > drivers/gpu/drm/udl/udl_fb.c | 65 ++++---- > drivers/gpu/drm/udl/udl_gem.c | 245 ++++++----------------------- > 7 files changed, 93 insertions(+), 541 deletions(-) > delete mode 100644 drivers/gpu/drm/udl/udl_dmabuf.c >=20 > -- > 2.23.0 >=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 --H2F3cwpPFWesbyfQdnt3r7p7o61Y3xXDc-- --iX55OGB6V5AUUgC4H1zbezkqXArplTg9u Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl22q3kACgkQaA3BHVML eiPE0Qf/ect6N0itRYVh3crneFfQM6td8v2cMcmholX1bVZdhDCY8N0+9Rgor+6D 1CdVKfr32ZbDOTORPsfcFefnmYSuqFwJTkewDaiXsrxUKElCIyriQ4rDVkJkCO0+ lm7raV270+FcEqLLnkNaEItYVZ4yKJ588lQEQbPsZI7LR32Cyxwngt8YPam1Qgd7 5E23zg9yT8WxOkf6sQvw4Z+fJn3Cl/Tzu1kEXHdFKkvw4oBQBDT8w/UY4O/Zw62H 8fIa5E0QQPA97t0RGmeN2xe/uzHp2qpIcztYcngSz7QId5zHKIz0vBTyguM35i3n xQjnEASDQhwaXjjRqdLEyA0b1dJ8mw== =t9xI -----END PGP SIGNATURE----- --iX55OGB6V5AUUgC4H1zbezkqXArplTg9u-- --===============2023428052== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============2023428052==--