From patchwork Tue Apr 7 13:42:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 185236 Delivered-To: patch@linaro.org Received: by 2002:a92:de47:0:0:0:0:0 with SMTP id e7csp4878986ilr; Tue, 7 Apr 2020 06:43:26 -0700 (PDT) X-Google-Smtp-Source: APiQypLz8jjiwqVS3lScpUmC0E/j6nwChWId6jUZwOZSlYaCK1b0VfI09TUecYwXO2hmC/IAetL9 X-Received: by 2002:aa7:96c8:: with SMTP id h8mr2592887pfq.49.1586267006209; Tue, 07 Apr 2020 06:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586267006; cv=none; d=google.com; s=arc-20160816; b=kKKQaNInGFursqmq3wlxGsTDEHwXXyi2ChFv6IunlO6qNSTaOdtFalK3h4pUxwIUei IXp2r/YVHG5xdiKForHKm9OQT93HCeHMJiTAQhvD95TpJ6qZn3Gw81ODE/S5qwjyT3fa dibnIVNVX4IbcEPLWgHfd0uQkChSuEZam2yM5oUGJC/e9D3oMFHHbSjytJ9C1sQp7BAg Ra3nP7jPN/xUzjMln+ffiG9vK6iB50vlYWmAcVU1/l7Oue/pHl8FUOSCAvl5tJk1lTwO UnrksO7tOpwByF0e6hBTvMr3GOxyg0KId+ri0kbO5Yy7GBVeHI0MgasmZDKmWZDxMS/I 0ZAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:references:cms-type:mime-version:message-id:date:subject :to:from:dkim-signature:dkim-filter:delivered-to; bh=5fM8C2mdGbQq4gQtKfHZqUXMEaV9DaefJEFO1FyR0PE=; b=eXa7vaZyFj2sleo8wyiwe92bPJ3ClFI/pP5Uw9ix2NjPlwOqCV9PA/eWsiF2MYwDy6 M87jSuvZ2J+HnDUV2Z+jZnkISOmN1OmUf5gUw3rnj0QLT2DxjCzi0YsbDCY5/EaOBBEj uOuUqKZjQos7bN8OIca27yjosSGljH2k4wTdS10Cpi6XPHHbxF5VRJEJTXMyEOR8RfpD exE5cS7uROufE/4dSM49dniHTpYa4hafAmWVG91ybATEieV2rZHu7vYwaokClW5PjThm ShH0swLP1TmswlJPF9/0gada6suuuhEjueSjl4yJqtja8flGiz07wiDQaYAbFZMxPXe/ O5zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b="L5RM/cPW"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id l12si2312309pgc.294.2020.04.07.06.43.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2020 06:43:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b="L5RM/cPW"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ECA5A6E87E; Tue, 7 Apr 2020 13:43:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6A8BD6E0CF for ; Tue, 7 Apr 2020 13:43:16 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200407134314euoutp0234fda9757b31e72f3aeccec681801a1b~DjW08AW3T1136211362euoutp02Q for ; Tue, 7 Apr 2020 13:43:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200407134314euoutp0234fda9757b31e72f3aeccec681801a1b~DjW08AW3T1136211362euoutp02Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1586266994; bh=sZhEvnyjn1LLj7ChRwT2XLrexvdgfcq+CTsOxSFK1Ko=; h=From:To:Cc:Subject:Date:References:From; b=L5RM/cPWOqJHjGxAVUWEcChkF4lsYcjzWKgn5bDD+2D95EU1vPuGSvlKpmS8148Pe b2KwWjs4l83vVSfdEFTKLN58IT8zK+SImEhmNCCUuCTMMZ5oJ3YpVxxSoCBRvPjR6O gptTVzTZ2sOvWCg4Typ5nNq4BgdqVDY7/U24doyg= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200407134313eucas1p2eac497eabe8c7345a52ec50e03c90e7d~DjW0pTy3e0299802998eucas1p2N; Tue, 7 Apr 2020 13:43:13 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 5A.7D.61286.1738C8E5; Tue, 7 Apr 2020 14:43:13 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200407134313eucas1p1d55cc16cb66b11ee5e1e5fd94cf25473~DjW0WDLf-0333503335eucas1p1u; Tue, 7 Apr 2020 13:43:13 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200407134313eusmtrp14e553aafc5171090e82581d380ffbd22~DjW0VZoq32789027890eusmtrp1L; Tue, 7 Apr 2020 13:43:13 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-39-5e8c83713b0e Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id ED.1F.08375.1738C8E5; Tue, 7 Apr 2020 14:43:13 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200407134313eusmtip1856272ac566a2b65054279b837a16272~DjWz9D5Ht0251902519eusmtip1n; Tue, 7 Apr 2020 13:43:12 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 0/3] ExynosDRM - rework GEM internals Date: Tue, 7 Apr 2020 15:42:53 +0200 Message-Id: <20200407134256.9129-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKKsWRmVeSWpSXmKPExsWy7djP87qFzT1xBlfv6VjcWneO1WLjjPWs Fle+vmezmHR/AovFjPP7mCzWHrnLbjFj8ks2B3aP+93HmTz6tqxi9Pi8SS6AOYrLJiU1J7Ms tUjfLoErY+U7voKN7BXrnh1gaWBsZOti5OCQEDCRWD1HrIuRi0NIYAWjxPdLhxghnC+MEr9W foZyPjNK7P36mqmLkROs4+C3vVCJ5YwSCy53s8K1/DvWzgZSxSZgKNH1tgvMFhFwk2g6PBOs iFngOqPEtx+L2EESwgKmEp3bt4CNZRFQlTjzdBcziM0rYCNxfnYXI8Q6eYnVGw5AxQUlTs58 wgJiMwPFm7fOZgYZKiHwm03iwtYtUA0uEneW/2GDsIUlXh3fwg5hy0ic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zU4kOMpkAvTGSWEk3OB0ZmXkm8oamh uYWlobmxubGZhZI4b4fAwRghgfTEktTs1NSC1CKYPiYOTqkGRo7lMbfPH54j9PGH+eFC0/lP Z3Ttu9HR9mtDsU/w70+/bveKJv662Ldevb+vLdm/V2VmBPN+zt+9M7fwPN+oFz/71pXOvZa5 M66oHJi7bMkPlRMxXgE9XNvarAuVE15UPX23pj7/3apXETn2p76bs7Pn1W+9yOWwqlDhluuv YIejx4r5lJf5KymxFGckGmoxFxUnAgABgoE2lAIAAA== X-CMS-MailID: 20200407134313eucas1p1d55cc16cb66b11ee5e1e5fd94cf25473 X-Msg-Generator: CA X-RootMTR: 20200407134313eucas1p1d55cc16cb66b11ee5e1e5fd94cf25473 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200407134313eucas1p1d55cc16cb66b11ee5e1e5fd94cf25473 References: 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: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Seung-Woo Kim , Marek Szyprowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi The recent discussion under the 'drm/prime: fix extracting of the DMA addresses from a scatterlist' [1] patch inspired me to take a look again into the Exynos DRM GEM internals. I've made a little cleanup and reworked some parts to make them more error proof for the various corner-cases. [1] https://patchwork.freedesktop.org/patch/359081/ patch Best regards Marek Szyprowski Samsung R&D Institute Poland Patch summary: Marek Szyprowski (3): drm/exynos: gem: Remove dead-code drm/exynos: gem: Rework scatter-list contiguity check on Prime import drm/exynos: gem: Get rid of the internal 'pages' array drivers/gpu/drm/exynos/exynos_drm_drv.c | 1 - drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 28 +--- drivers/gpu/drm/exynos/exynos_drm_gem.c | 178 ++++++++-------------- drivers/gpu/drm/exynos/exynos_drm_gem.h | 16 +- 4 files changed, 66 insertions(+), 157 deletions(-) -- 2.17.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel