From patchwork Thu Jun 27 11:55:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 167930 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2241032ilk; Thu, 27 Jun 2019 04:56:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDKICtXOMtinAeiWLuPIW/F/0n2ubfSDO0LbWVWRnQl7XIt49tzdpsrSSHP35E6M8dcqw7 X-Received: by 2002:a65:5304:: with SMTP id m4mr3445371pgq.126.1561636574841; Thu, 27 Jun 2019 04:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561636574; cv=none; d=google.com; s=arc-20160816; b=OO5fU30JoLpEFLosJgzuTdX1I3cc1AKx6j9BM6cMcCsR6I2Wq4HJUi0edcUxScABok Jqt34U/nMO6ofgsLRHHb28NvhPf6P6LrA4pnbvjY5q8hlmqrx6+nOBBYe2X+Bep7YUuP lRD2WTIJpchWKpQ8pVwisDR6Id+fz+wAiB9351K+u0jV2tc2yUjUOrqhcCnUBCQhfu0U zw7cGlR6Mwi+zmHdXT44QOwyVC+c2WUEDUTotBDeBVttkIXCJUxlmFSwsWkJvMiycrG2 gBV52qFmXrl46DAaTvFLGDT6zjGcJPJCpSJN6RoPWQ3p6PZ3ZVUGU0ykV1wSvGKuGH04 hFHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=bE/VlrZLAxBMgBl05LgJ8tALX1n4la4rZt1pZKOt6vY=; b=wAUO0LrSes1MaE+R7Bb7je9e11Pf68JWXQTE07RaCMku0tkXoQYpxX2uRfhVGaHwxn Jsz0J2/ilDhmaIZ4OVn9HGXDziSTBegdKrPrh5imxx9/dTn950x8DFiY94ATGvaU99GP b2kLVfiAtg9EuhlElx27fPWA27B0mQWxzXQXV++bwda5cYOGoMlyg3iGreBSz/VafHPT cwa21onc77hZYek/MWKFo6D6psMg9O3YTLzp684stkXDSdyWd96siS3OzHFvqBpWwTrK mZp0QlPutwGOEBDfhVNvJ5Vh3RLSLu6noYm6mmw2VbutbuWK1KigZ2K9pVXeimkxZt25 Fmvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=PM53scPu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j7si2675622pfi.10.2019.06.27.04.56.14; Thu, 27 Jun 2019 04:56:14 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=PM53scPu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726431AbfF0L4O (ORCPT + 3 others); Thu, 27 Jun 2019 07:56:14 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:46728 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726429AbfF0L4O (ORCPT ); Thu, 27 Jun 2019 07:56:14 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190627115611euoutp01b83f38d601f78e6e4474765620a2627f~sDDAI8Bjg1395813958euoutp01z; Thu, 27 Jun 2019 11:56:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190627115611euoutp01b83f38d601f78e6e4474765620a2627f~sDDAI8Bjg1395813958euoutp01z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1561636571; bh=bE/VlrZLAxBMgBl05LgJ8tALX1n4la4rZt1pZKOt6vY=; h=From:To:Cc:Subject:Date:References:From; b=PM53scPuvQnnZHnBZlvIvh9DYQ3SOOWGygNaxCLJ3mYhknE/aiSWLHe3HEFkzdoAN mJjEKvT6tYdL0zhI16EZGonFlFae3G7b6AZjyoV7vYh0EYX2tJJ/f/1JFj8LGyYZLr zWhUVn36sK7EIR0LdqE5T0nTZxUgo8VbVKduHQtw= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190627115610eucas1p1c17318ef9b7cf89f79839ad7b0476d3b~sDC-pYGTE0487204872eucas1p1Z; Thu, 27 Jun 2019 11:56:10 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 43.C1.04377.ADEA41D5; Thu, 27 Jun 2019 12:56:10 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190627115610eucas1p2973086ecaa3b2c3b7c802c7c8ac5e6bc~sDC-BVekw0574705747eucas1p2c; Thu, 27 Jun 2019 11:56:10 +0000 (GMT) X-AuditID: cbfec7f4-5632c9c000001119-3e-5d14aeda348e Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id C2.0B.04140.9DEA41D5; Thu, 27 Jun 2019 12:56:09 +0100 (BST) Received: from AMDC2765.DIGITAL.local ([106.120.51.73]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PTR008XZAHGTW00@eusync1.samsung.com>; Thu, 27 Jun 2019 12:56:09 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH] ARM: dts: exynos: Remove PMU interrupt from MALI400 GPU on Exynos4210 Date: Thu, 27 Jun 2019 13:55:53 +0200 Message-id: <20190627115553.32426-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsWy7djPc7q31onEGpyYImWxccZ6Vovz5zew W8w4v4/JYu2Ru+wOLB6bVnWyefRtWcXo8XmTXABzFJdNSmpOZllqkb5dAlfG48OrWAvO6Fes W7+ZqYFxuloXIyeHhICJxN7+bUwgtpDACkaJLVd9IOzPjBIdX3JhajZPPsTYxcgFFF/GKHFm 62YmCOc/o8T82cdZQKrYBAwlut52sYHYIgKqEp/bFrCDFDEL9DFKXN87lxkkISwQIfH74yR2 EJsFqOhryyywBl4BW4mrF3YxQqyTl1i94QAzSLOEwElWiY0Pm5kgEi4S67fuhrJlJC5P7maB KGpmlHh4bi07hNPDKHG5aQbUKGuJw8cvsoLYzAJ8EpO2TQcaywEU55XoaBOCKPGQWPdnKTPE 07ESO1/uYZrAKL6AkWEVo3hqaXFuemqxUV5quV5xYm5xaV66XnJ+7iZGYHyc/nf8yw7GXX+S DjEKcDAq8fAy7BGOFWJNLCuuzD3EKMHBrCTCmx8mEivEm5JYWZValB9fVJqTWnyIUZqDRUmc t5rhQbSQQHpiSWp2ampBahFMlomDU6qBUelepOnBdbzPbMXKA9s3Xv0+oTKeRyqROSzviszv xf9lV294GjfpR8e2P+ej+Yv575o+KHHJk1RWOPpp9tTeZ0e/2R20COPtr3026afH4QdbXgbe 1tGLWbLgvMDKo29m5TqzuOSUff6e6rBAZO6DfvWIyHc8mcFTWv13XNGec5f35HSN2cy5x5RY ijMSDbWYi4oTAeaBeDqLAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOJMWRmVeSWpSXmKPExsVy+t/xy7o314nEGmzq07XYOGM9q8X58xvY LWac38dksfbIXXYHFo9NqzrZPPq2rGL0+LxJLoA5issmJTUnsyy1SN8ugSvj8eFVrAVn9CvW rd/M1MA4Xa2LkZNDQsBEYvPkQ4xdjFwcQgJLGCW6D31kgXAamSSuzFrIAlLFJmAo0fW2iw3E FhFQlfjctoAdpIhZYAKjxOqFs1hBEsICERK/P05iB7FZgIq+tswCa+AVsJW4emEXI8Q6eYnV Gw4wT2DkWsDIsIpRJLW0ODc9t9hIrzgxt7g0L10vOT93EyPQu9uO/dyyg7HrXfAhRgEORiUe 3hU7hWOFWBPLiitzDzFKcDArifDmh4nECvGmJFZWpRblxxeV5qQWH2KU5mBREuftEDgYIySQ nliSmp2aWpBaBJNl4uCUamDcdc9I4+bXAoZ1ytUMn5LX2N2bbHmoTk8sPjlIzlsz7s3kE5ki Sb8r6v2NWa+5dz/94RvE9kJ6y6MFPK6pZy3fH2dYHLX3y02Vm14tjA6Xv61cpam3WqnJR9+e 8admaMIfjx8v+E8nrToSfE9GI0b4rsHpNucfAQlBZfwfwuo/xXnOWWYX6azEUpyRaKjFXFSc CADKtaOD6gEAAA== X-CMS-MailID: 20190627115610eucas1p2973086ecaa3b2c3b7c802c7c8ac5e6bc CMS-TYPE: 201P X-CMS-RootMailID: 20190627115610eucas1p2973086ecaa3b2c3b7c802c7c8ac5e6bc References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The PMU module of MALI400 GPU is optional and it looks that it is not present on Exynos4210, because any access to its registers causes external abort. This patch removes "pmu" interrupt for Exynos4210 SoCs, so the driver will skip the PMU module. This fixes following fault during kernel boot: 8<--- cut here --- Unhandled fault: imprecise external abort (0x1406) at 0x00000000 pgd = (ptrval) [00000000] *pgd=00000000 Internal error: : 1406 [#1] PREEMPT SMP ARM Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.2.0-rc6-next-20190625-00005-g6fc2b61c64ab #6241 Hardware name: SAMSUNG EXYNOS (Flattened Device Tree) PC is at lima_pmu_init+0x38/0x108 LR is at arm_heavy_mb+0x1c/0x38 pc : [] lr : [] psr: 60000013 sp : d94c9da0 ip : d9000200 fp : d94bd070 r10: 00000001 r9 : 00000000 r8 : c1065aec r7 : 00000000 r6 : 00000000 r5 : 00000000 r4 : d94bd070 r3 : e0932000 r2 : 0000ffff r1 : 00000000 r0 : d94bd070 Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none Control: 10c5387d Table: 4000404a DAC: 00000051 Process swapper/0 (pid: 1, stack limit = 0x(ptrval)) ... [] (lima_pmu_init) from [] (lima_device_init+0x244/0x5a0) [] (lima_device_init) from [] (lima_pdev_probe+0x7c/0xd8) [] (lima_pdev_probe) from [] (platform_drv_probe+0x48/0x9c) [] (platform_drv_probe) from [] (really_probe+0x1c4/0x400) [] (really_probe) from [] (driver_probe_device+0x78/0x1b8) [] (driver_probe_device) from [] (device_driver_attach+0x58/0x60) [] (device_driver_attach) from [] (__driver_attach+0xfc/0x160) [] (__driver_attach) from [] (bus_for_each_dev+0x68/0xb4) [] (bus_for_each_dev) from [] (bus_add_driver+0x104/0x20c) [] (bus_add_driver) from [] (driver_register+0x78/0x10c) [] (driver_register) from [] (do_one_initcall+0x8c/0x430) [] (do_one_initcall) from [] (kernel_init_freeable+0x3c8/0x4d0) [] (kernel_init_freeable) from [] (kernel_init+0x8/0x10c) [] (kernel_init) from [] (ret_from_fork+0x14/0x20) Exception stack(0xd94c9fb0 to 0xd94c9ff8) ... ---[ end trace 96ddc2a2879732ab ]--- The PMU module seems to work fine on Exynos4412 SoCs, so the patch also moves the interrupt definitions to exynos4210.dtsi and exynos4412.dtsi respectively, to keep only the common part in exynos4.dtsi. Fixes: 13efd80acaa4 ("ARM: dts: exynos: Add GPU/Mali 400 node to Exynos4") Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4.dtsi | 22 ---------------------- arch/arm/boot/dts/exynos4210.dtsi | 20 ++++++++++++++++++++ arch/arm/boot/dts/exynos4412.dtsi | 22 ++++++++++++++++++++++ 3 files changed, 42 insertions(+), 22 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index 6005cfbbed89..7863a21a7a64 100644 --- a/arch/arm/boot/dts/exynos4.dtsi +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -54,28 +54,6 @@ gpu: gpu@13000000 { compatible = "samsung,exynos4210-mali", "arm,mali-400"; reg = <0x13000000 0x10000>; - interrupts = , - , - , - , - , - , - , - , - , - , - ; - interrupt-names = "gp", - "gpmmu", - "pp0", - "ppmmu0", - "pp1", - "ppmmu1", - "pp2", - "ppmmu2", - "pp3", - "ppmmu3", - "pmu"; /* * CLK_G3D is not actually bus clock but a IP-level clock. * The bus clock is not described in hardware manual. diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi index 6122da368092..f220716239db 100644 --- a/arch/arm/boot/dts/exynos4210.dtsi +++ b/arch/arm/boot/dts/exynos4210.dtsi @@ -450,6 +450,26 @@ }; &gpu { + interrupts = , + , + , + , + , + , + , + , + , + ; + interrupt-names = "gp", + "gpmmu", + "pp0", + "ppmmu0", + "pp1", + "ppmmu1", + "pp2", + "ppmmu2", + "pp3", + "ppmmu3"; operating-points-v2 = <&gpu_opp_table>; gpu_opp_table: opp_table { diff --git a/arch/arm/boot/dts/exynos4412.dtsi b/arch/arm/boot/dts/exynos4412.dtsi index 7bed6842575a..d20db2dfe8e2 100644 --- a/arch/arm/boot/dts/exynos4412.dtsi +++ b/arch/arm/boot/dts/exynos4412.dtsi @@ -717,6 +717,28 @@ }; &gpu { + interrupts = , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "gp", + "gpmmu", + "pp0", + "ppmmu0", + "pp1", + "ppmmu1", + "pp2", + "ppmmu2", + "pp3", + "ppmmu3", + "pmu"; operating-points-v2 = <&gpu_opp_table>; gpu_opp_table: opp_table {