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: 9129543 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 204DF6048B for ; Fri, 20 May 2016 13:48:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AE9C21BED for ; Fri, 20 May 2016 13:48:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F390A27BF1; Fri, 20 May 2016 13:48:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3467821BED for ; Fri, 20 May 2016 13:48:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932281AbcETNsy (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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+ Reviewed-by: Krzysztof Kozlowski --- drivers/iommu/exynos-iommu.c | 1 + 1 file changed, 1 insertion(+) 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, } };