From patchwork Fri Nov 4 07:58:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 80783 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1023723qge; Fri, 4 Nov 2016 00:58:30 -0700 (PDT) X-Received: by 10.98.69.79 with SMTP id s76mr24315024pfa.178.1478246310442; Fri, 04 Nov 2016 00:58:30 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tl4si12464278pac.41.2016.11.04.00.58.30; Fri, 04 Nov 2016 00:58:30 -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 S1760199AbcKDH6X (ORCPT + 4 others); Fri, 4 Nov 2016 03:58:23 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:52826 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760190AbcKDH6W (ORCPT ); Fri, 4 Nov 2016 03:58:22 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OG300FT0Y56MT70@mailout3.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Fri, 04 Nov 2016 07:58:18 +0000 (GMT) Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20161104075818eucas1p291af223546ae7220343ae0589a480902~DyS0jSb__2904029040eucas1p2G; Fri, 4 Nov 2016 07:58:18 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges5.samsung.com (EUCPMTA) with SMTP id FD.3F.19540.A9F3C185; Fri, 4 Nov 2016 07:58:18 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20161104075817eucas1p2fe178b13386ff0e03592d2a2094c0ac0~DySzveWQt2870928709eucas1p24; Fri, 4 Nov 2016 07:58:17 +0000 (GMT) X-AuditID: cbfec7f5-f79ce6d000004c54-61-581c3f9a1073 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 8B.4A.07726.59F3C185; Fri, 4 Nov 2016 07:58:13 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OG300MNXY522Z50@eusync1.samsung.com>; Fri, 04 Nov 2016 07:58:17 +0000 (GMT) From: Marek Szyprowski To: iommu@lists.linux-foundation.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski Subject: [PATCH RESEND] iommu/exynos: Improve page fault debug message Date: Fri, 04 Nov 2016 08:58:09 +0100 Message-id: <1478246289-21525-1-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDIsWRmVeSWpSXmKPExsWy7djP87qz7GUiDJ585bRYsN/aYsb5fUwW a4/cZXdg9ph8YzmjR9+WVYwenzfJBTBHcdmkpOZklqUW6dslcGX8PP+OveAmd8X5TVtYGhg/ cHYxcnJICJhIrH+0iwXCFpO4cG89G4gtJLCUUWJvu14XIxeQ/ZlRYtL8f0wwDRuO3WeDSCxj lHi9bzEThNPAJNH58y1YFZuAoUTX2y6wUSIC7hLX/zwHW8EsoC+xbuFWsBphATeJfweXg9Ww CKhKTL7byAhi8wp4SCw41Qx1kpzE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ZjYa9tW9KG7ZUJp0+Jf9QtOA q6e9jE+dWLvpXpLD7LdPDLsKq0wbks2NEkRWHPFbucXLyHvDzFuKjTXO/Gyi//qmN6leDstY z32LWaj3fO3q+Truz/X+TRdQfyaZ6B68jHP7EqmFZxU9PF4+Y9u1its1tcgt2Dv837XfQY9D qs33ascpsRRnJBpqMRcVJwIA9pGTnkQCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161104075817eucas1p2fe178b13386ff0e03592d2a2094c0ac0 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRs=?= =?UTF-8?B?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRtT?= =?UTF-8?B?YW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20161104075817eucas1p2fe178b13386ff0e03592d2a2094c0ac0 X-RootMTR: 20161104075817eucas1p2fe178b13386ff0e03592d2a2094c0ac0 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add master device name to default IOMMU fault message to make easier to find which device triggered the fault. While at it, move printing some information (like page table base and first level entry addresses) to dev_dbg(), because those are typically not very useful for typical device driver user/developer not equipped with hardware debugging tools. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) -- 1.9.1 -- 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 Reviewed-by: Javier Martinez Canillas diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 30808e9..47f0d67 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -368,13 +368,14 @@ static void show_fault_information(struct sysmmu_drvdata *data, { sysmmu_pte_t *ent; - dev_err(data->sysmmu, "%s FAULT occurred at %#x (page table base: %pa)\n", - finfo->name, fault_addr, &data->pgtable); + dev_err(data->sysmmu, "%s: %s FAULT occurred at %#x\n", + dev_name(data->master), finfo->name, fault_addr); + dev_dbg(data->sysmmu, "Page table base: %pa\n", &data->pgtable); ent = section_entry(phys_to_virt(data->pgtable), fault_addr); - dev_err(data->sysmmu, "\tLv1 entry: %#x\n", *ent); + dev_dbg(data->sysmmu, "\tLv1 entry: %#x\n", *ent); if (lv1ent_page(ent)) { ent = page_entry(ent, fault_addr); - dev_err(data->sysmmu, "\t Lv2 entry: %#x\n", *ent); + dev_dbg(data->sysmmu, "\t Lv2 entry: %#x\n", *ent); } }