From patchwork Tue Jun 9 09:08:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 11594943 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 77DDD90 for ; Tue, 9 Jun 2020 09:08:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F513207C3 for ; Tue, 9 Jun 2020 09:08:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5F513207C3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9522D89842; Tue, 9 Jun 2020 09:08:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id E945E89842 for ; Tue, 9 Jun 2020 09:08:26 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id CD4E4B00D; Tue, 9 Jun 2020 09:08:28 +0000 (UTC) From: Thomas Zimmermann To: maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@linux.ie, daniel@ffwll.ch, sean@poorly.run, kraxel@redhat.com, emil.l.velikov@gmail.com, sam@ravnborg.org, noralf@tronnes.org Subject: [PATCH v3 0/2] drm/udl: Map pages with SHMEM helpers Date: Tue, 9 Jun 2020 11:08:18 +0200 Message-Id: <20200609090820.20256-1-tzimmermann@suse.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Zimmermann , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Udl implments cached mappings. Convert it to SHMEM's default helpers. This version contains only style fixes. I'm posting v3 mostly for reference before merging. v3: * rebased onto Daniel's shmem untangle series * style fixes v2: * keep writecombine mappings as the default * add SHMEM helper for creating BOs with cached mappings * update udl on the new helper Thomas Zimmermann (2): drm/shmem-helper: Add .gem_create_object helper that sets map_cached flag drm/udl: Use GEM vmap/mmap function from SHMEM helpers drivers/gpu/drm/drm_gem_shmem_helper.c | 27 +++++++ drivers/gpu/drm/udl/Makefile | 2 +- drivers/gpu/drm/udl/udl_drv.c | 4 +- drivers/gpu/drm/udl/udl_drv.h | 3 - drivers/gpu/drm/udl/udl_gem.c | 108 ------------------------- include/drm/drm_gem_shmem_helper.h | 4 + 6 files changed, 34 insertions(+), 114 deletions(-) delete mode 100644 drivers/gpu/drm/udl/udl_gem.c --- 2.26.2