From patchwork Tue Aug 5 10:47:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 34925 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 12AE820523 for ; Tue, 5 Aug 2014 10:50:09 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp18sf3226993obc.1 for ; Tue, 05 Aug 2014 03:50:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=lS1GvFRM3nylC2hbHz1L66NCvJXHFurSBYW15LqL66c=; b=kXynwuyBwsG7uid5oN4Ws0S+3MPxAiZmoBMKku6fahndqZU4y2dGmoDrom7lHkfID/ kANMH/qCkGjCnWgChRFK2pSIPE9bXsP7CTCfywoyzgCDpgDn62Q1p1ZZqwld9EEjkbND OiHzya4BdV2nLhjps+E2GWQkQxP8I4om4qHAHqpfdL7bApMJFVfZ5XZWphOl65WOWNH8 6h/+cYWVRtZKpUadmaGlHLk+i1dck+NuwGG7SMd/FJZ7boY4nVEwK2Gpyz4K0Rn4zQF9 BtVB9XvATU/rswBT8Xc9NX4qh5C+bmOGeyhD2qKZ0hncL8uvOp6Uy69PESADJWpZCz4u B1Nw== X-Gm-Message-State: ALoCoQnpOyznQ1SIParmnlQsNekCHdQuQhTMgzAcg/cfaPWcwTIuWQ/1S6Kt8pKOCvhVtuNdyjSQ X-Received: by 10.182.142.135 with SMTP id rw7mr637901obb.46.1407235808712; Tue, 05 Aug 2014 03:50:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.101 with SMTP id e92ls212866qge.37.gmail; Tue, 05 Aug 2014 03:50:08 -0700 (PDT) X-Received: by 10.52.35.81 with SMTP id f17mr1944164vdj.13.1407235808621; Tue, 05 Aug 2014 03:50:08 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id o5si786500vcj.31.2014.08.05.03.50.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Aug 2014 03:50:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id hy4so1093710vcb.41 for ; Tue, 05 Aug 2014 03:50:08 -0700 (PDT) X-Received: by 10.220.163.69 with SMTP id z5mr2450176vcx.10.1407235808542; Tue, 05 Aug 2014 03:50:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp374619vcb; Tue, 5 Aug 2014 03:50:08 -0700 (PDT) X-Received: by 10.224.61.144 with SMTP id t16mr4515562qah.2.1407235807984; Tue, 05 Aug 2014 03:50:07 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id y10si2107507qce.49.2014.08.05.03.50.07 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 05 Aug 2014 03:50:07 -0700 (PDT) Received-SPF: none (google.com: linaro-mm-sig-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XEcJi-0005Od-Ol; Tue, 05 Aug 2014 10:50:06 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XEcIh-0005F4-L4 for linaro-mm-sig@lists.linaro.org; Tue, 05 Aug 2014 10:49:03 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N9T006ISY1M6200@mailout3.w1.samsung.com> for linaro-mm-sig@lists.linaro.org; Tue, 05 Aug 2014 11:48:58 +0100 (BST) X-AuditID: cbfec7f5-b7f776d000003e54-91-53e0b69a4be9 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id F5.DC.15956.A96B0E35; Tue, 05 Aug 2014 11:48:58 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N9T0057MY17SE80@eusync3.samsung.com>; Tue, 05 Aug 2014 11:48:58 +0100 (BST) From: Marek Szyprowski To: iommu@lists.linux-foundation.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 05 Aug 2014 12:47:39 +0200 Message-id: <1407235677-26324-12-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1407235677-26324-1-git-send-email-m.szyprowski@samsung.com> References: <1407235677-26324-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsVy+t/xq7qztj0INuh5o2Dxd9IxdovmxevZ LCbdn8BisWC/tUXn7A3sFr0LrrJZnG16w27ROXEJu8WXKw+ZLDY9vsZqcXnXHDaLGef3MVms PXKX3eLU9c9sFv96DzJanDl9idXi/54d7BaH37SzWhx5uJvdYtWuP4wWt3/zOYh6PDk4j8nj 969JjB47Z91l95jdMZPVY9OqTjaP/XPXsHtsXlLvcfvfY2aPyTeWM3pcOdHE6tHb/I7NY8vV dhaPvi2rGD0+b5IL4IvisklJzcksSy3St0vgyjh29wlTwS7JimlT9rE2MF4X7WLk5JAQMJHY OGcSO4QtJnHh3nq2LkYuDiGBpYwSWx7OZoRw+pgktpx8B1bFJmAo0fW2C6xKRKCXUaK/6QcT iMMssI5VYn/vdRaQKmGBOInv69ezgtgsAqoSJ+/dZASxeQU8JabcvcAMsU9O4v/LFUwgNidQ /PDNA2D1QgIeEj83rGGfwMi7gJFhFaNoamlyQXFSeq6RXnFibnFpXrpecn7uJkZI7Hzdwbj0 mNUhRgEORiUeXoW9d4OFWBPLiitzDzFKcDArifBKrHkQLMSbklhZlVqUH19UmpNafIiRiYNT qoHRU9mS18BnxYvrc2d6beOb0/8nMvxYJNuux1v1WH/snf+Qwyzv4KdY/9O2HBxJv6b8nFIs UPHDlVWppdTf6vfHr+clnxad9ju8M7u3Wb7Z9EUa49xNS323Jf4uLbgVKX3pxg9d5ZT31Vd5 7vIyHWLvjnTZM4d3bm5THufdawc/z3wi8nvTqefzlFiKMxINtZiLihMBgq/ud3sCAAA= Cc: Rob Herring , Thierry Reding , Shaik Ameer Basha , Arnd Bergmann , Inki Dae , Greg Kroah-Hartman , Joerg Roedel , "Rafael J. Wysocki" , Tomasz Figa , linaro-mm-sig@lists.linaro.org, Kyungmin Park , Kukjin Kim , Laurent Pinchart , Sylwester Nawrocki , Olof Johansson , Cho KyongHo Subject: [Linaro-mm-sig] [PATCH 11/29] DRM: exynos: add DRIVER_HAS_OWN_IOMMU_MANAGER flag to all sub-drivers X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-mm-sig-bounces@lists.linaro.org Sender: linaro-mm-sig-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m.szyprowski@samsung.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Exynos DRM drivers do their own management of IO address space of all controlled devices, so set DRIVER_HAS_OWN_IOMMU_MANAGER flag to instruct IOMMU subsystem not to create any defaults for them. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_fimc.c | 1 + drivers/gpu/drm/exynos/exynos_drm_fimd.c | 1 + drivers/gpu/drm/exynos/exynos_drm_g2d.c | 1 + drivers/gpu/drm/exynos/exynos_drm_gsc.c | 1 + drivers/gpu/drm/exynos/exynos_drm_rotator.c | 1 + drivers/gpu/drm/exynos/exynos_mixer.c | 1 + 6 files changed, 6 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimc.c b/drivers/gpu/drm/exynos/exynos_drm_fimc.c index 831dde9..fe84215 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimc.c @@ -1896,6 +1896,7 @@ struct platform_driver fimc_driver = { .name = "exynos-drm-fimc", .owner = THIS_MODULE, .pm = &fimc_pm_ops, + .flags = DRIVER_HAS_OWN_IOMMU_MANAGER, }, }; diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 33161ad..41904df 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -1031,5 +1031,6 @@ struct platform_driver fimd_driver = { .name = "exynos4-fb", .owner = THIS_MODULE, .of_match_table = fimd_driver_dt_match, + .flags = DRIVER_HAS_OWN_IOMMU_MANAGER, }, }; diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c index 8001587..dddeae3 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c @@ -1555,5 +1555,6 @@ struct platform_driver g2d_driver = { .owner = THIS_MODULE, .pm = &g2d_pm_ops, .of_match_table = exynos_g2d_match, + .flags = DRIVER_HAS_OWN_IOMMU_MANAGER, }, }; diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c index 9e3ff16..76e8b1e 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c @@ -1797,6 +1797,7 @@ struct platform_driver gsc_driver = { .name = "exynos-drm-gsc", .owner = THIS_MODULE, .pm = &gsc_pm_ops, + .flags = DRIVER_HAS_OWN_IOMMU_MANAGER, }, }; diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/exynos/exynos_drm_rotator.c index f01fbb6..2da91c4 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c +++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c @@ -852,5 +852,6 @@ struct platform_driver rotator_driver = { .owner = THIS_MODULE, .pm = &rotator_pm_ops, .of_match_table = exynos_rotator_match, + .flags = DRIVER_HAS_OWN_IOMMU_MANAGER, }, }; diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c index 7529946..79b1309a 100644 --- a/drivers/gpu/drm/exynos/exynos_mixer.c +++ b/drivers/gpu/drm/exynos/exynos_mixer.c @@ -1320,6 +1320,7 @@ struct platform_driver mixer_driver = { .name = "exynos-mixer", .owner = THIS_MODULE, .of_match_table = mixer_match_types, + .flags = DRIVER_HAS_OWN_IOMMU_MANAGER, }, .probe = mixer_probe, .remove = mixer_remove,