From patchwork Fri May 20 13:48:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 68244 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp3788922qge; Fri, 20 May 2016 06:48:55 -0700 (PDT) X-Received: by 10.98.102.20 with SMTP id a20mr4925101pfc.137.1463752135375; Fri, 20 May 2016 06:48:55 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xm8si28134663pab.11.2016.05.20.06.48.55; Fri, 20 May 2016 06:48:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932281AbcETNsy (ORCPT + 4 others); Fri, 20 May 2016 09:48:54 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:45654 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755126AbcETNsx (ORCPT ); Fri, 20 May 2016 09:48:53 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O7H00JUXADC6920@mailout1.w1.samsung.com>; Fri, 20 May 2016 14:48:48 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-db-573f15c08495 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 10.2C.05254.0C51F375; Fri, 20 May 2016 14:48:48 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O7H00CVKAD9M840@eusync3.samsung.com>; Fri, 20 May 2016 14:48:48 +0100 (BST) From: Marek Szyprowski To: iommu@lists.linux-foundation.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Marek Szyprowski , Joerg Roedel , Inki Dae , Kukjin Kim , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , stable@vger.kernel.org Subject: [PATCH] iommu/exynos: Suppress unbinding to prevent system failure Date: Fri, 20 May 2016 15:48:21 +0200 Message-id: <1463752114-23653-1-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjluLIzCtJLcpLzFFi42I5/e/4Vd0DovbhBnf2y1hsnLGe1WLS/Qks Fgv2W1t0zt7AbvH6haFF/+PXzBabHl9jtZhxfh+Txdojd9ktFmx8xOjA5fHk4Dwmj02rOtk8 Ni+p95h8YzmjR9+WVYwenzfJBbBFcdmkpOZklqUW6dslcGX8n/+GuWAOe8XTBU+ZGxj/s3Yx cnJICJhI3PtxiB3CFpO4cG89WxcjF4eQwFJGiZYNuxghnCYmiW2bdrCAVLEJGEp0ve1iA7FF BPIlXuz9ywJSxCwwiUni4PoesISwgLfEtLeNTCA2i4CqRPPzfrB1vAIeEu83P2KGWCcn8f/l CqYJjNwLGBlWMYqmliYXFCel5xrqFSfmFpfmpesl5+duYoSE0pcdjIuPWR1iFOBgVOLhPeBg Fy7EmlhWXJl7iFGCg1lJhHefiH24EG9KYmVValF+fFFpTmrxIUZpDhYlcd65u96HCAmkJ5ak ZqemFqQWwWSZODilGhhXXjv552zaOqUlLTzMNW2blnz57JJ9pSKv5/KER3M8BOpuC2Q6Tl+e 72oxPdit+PRHB6sOhVtTmzLPl75ZW7pu0pM5L/e8mmMlJL6i7tPUv///c1T8+P4o+5P42+81 ExZsFvNJfrzr40RXO6mQ3JQLRs/txStEqz5snnXPNY8/f2mCTnTEnHuPlFiKMxINtZiLihMB HqprRyECAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Removal of IOMMU driver cannot be done reliably, so Exynos IOMMU driver doesn't support this operation. It is essential for system operation, so it makes sense to prevent unbinding by disabling bind/unbind sysfs feature for SYSMMU controller driver to avoid kernel ops or trashing memory caused by such operation. Signed-off-by: Marek Szyprowski CC: stable@vger.kernel.org # v4.2+ --- drivers/iommu/exynos-iommu.c | 1 + 1 file changed, 1 insertion(+) -- 1.9.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 558a40d3a6a0..d365c40a7b84 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -681,6 +681,7 @@ static struct platform_driver exynos_sysmmu_driver __refdata = { .name = "exynos-sysmmu", .of_match_table = sysmmu_of_match, .pm = &sysmmu_pm_ops, + .suppress_bind_attrs = true, } };