From patchwork Tue Oct 27 20:59:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dinguyen@opensource.altera.com X-Patchwork-Id: 7502691 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2AE8E9F327 for ; Tue, 27 Oct 2015 21:08:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 23F1A20981 for ; Tue, 27 Oct 2015 21:08:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DC2BD2097E for ; Tue, 27 Oct 2015 21:08:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZrBSi-0005BD-VA; Tue, 27 Oct 2015 21:07:20 +0000 Received: from mail-bn1bon0058.outbound.protection.outlook.com ([157.56.111.58] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZrBSd-0004yA-DU for linux-arm-kernel@lists.infradead.org; Tue, 27 Oct 2015 21:07:16 +0000 Received: from CH1PR03CA009.namprd03.prod.outlook.com (10.255.156.154) by BY2PR03MB041.namprd03.prod.outlook.com (10.255.241.145) with Microsoft SMTP Server (TLS) id 15.1.306.13; Tue, 27 Oct 2015 21:06:52 +0000 Received: from BN1AFFO11OLC004.protection.gbl (10.255.156.132) by CH1PR03CA009.outlook.office365.com (10.255.156.154) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Tue, 27 Oct 2015 21:06:52 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; lixom.net; dkim=none (message not signed) header.d=none;lixom.net; dmarc=none action=none header.from=opensource.altera.com; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.236 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.236; helo=sj-itexedge04.altera.priv.altera.com; Received: from sj-itexedge04.altera.priv.altera.com (66.35.236.236) by BN1AFFO11OLC004.mail.protection.outlook.com (10.58.53.75) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Tue, 27 Oct 2015 21:06:51 +0000 Received: from na01-bn1-obe.outbound.protection.outlook.com (207.46.163.143) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 27 Oct 2015 14:06:15 -0700 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=dinguyen@opensource.altera.com; Received: from linux-builds1.altera.com (64.129.157.38) by BLUPR03MB1364.namprd03.prod.outlook.com (10.163.80.30) with Microsoft SMTP Server (TLS) id 15.1.306.13; Tue, 27 Oct 2015 21:06:38 +0000 From: To: Subject: [PATCHv7 1/2] ARM: socfpga: enable L2 cache ECC on startup Date: Tue, 27 Oct 2015 15:59:40 -0500 Message-ID: <1445979581-8080-1-git-send-email-dinguyen@opensource.altera.com> X-Mailer: git-send-email 2.4.5 MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: CY1PR13CA0019.namprd13.prod.outlook.com (25.162.30.157) To BLUPR03MB1364.namprd03.prod.outlook.com (25.163.80.30) X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1364; 2:C+IFL4dufdVydyPlzdGJDVw/alN3XpOJcV0XRhP3g8ArbOon9gGGChJtW5awOmIu0gjUaij20F2Io02A0aUgjuIOAbtYOG8AMPewMdQWzjWBT2IkxzqrU9nDhFPQyORMUmmU/6SbydH12GH/OfBtfwf4f2sUkXbiFlK1xvoov2s=; 3:hbMIk3Q6MOu2wr1yTzc4JzkfFEVUcsoL0Q8zY8G1qrV21DthCKtuQzo9LfnyIxMlli0Cfp2uIEA8DUlZDXeXwvoWrbSBYGW/n1LX830XBS+DA1oqa3Z2HFkAKg7YWvTkKZ+iKHQXfUB2UIu4zi3YLw==; 25:wwCt6xekKjDNSw8AAmTebLXNAGi6CCv2Shi6Uop/vVH7lUcr9yubAnqsYTJVECi0VEz3nhf58pwf/XsxiYTjy1+KrW0hXEo8DjZGjn7hpOgYX4wPD14yKihxceBwKz+u1RMz591wERsLlqvZjH/5wTPtTn/5lfG53lQt4Hn+uW/bp/q3ND795Muaqqkfzr7fHa2Os48hDDtlwgM5Hg3us8TGLxmw0kVMZCOljPthDM0xdWqW6tHzeHL265mED8+V0ia2WwOsYOmoKnYGHG9PLA==; 20:L82QLeBrBGp0j5vLJE9PgX6neK218hFaWWbN2ZGn5VLuJa5K7Zc25MH9RIeXNTk7XnZ9tUrOY9CN1QsPWlTclFX0iSrFI4ZxqhKC+VKwUMWDY9oQy7EqD/rywzcCPfAQr6VfbXYolEEl4U1mswW9rh25FIc5RGuRfjW0fYKDj0E= X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1364; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(80048183373757)(204874498639787); UriScan:(80048183373757)(204874498639787); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501036)(102215026); SRVR:BLUPR03MB1364; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1364; BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(10201501036)(3002001)(102215026); SRVR:BY2PR03MB041; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB041; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1364; 4:ZGA+LRw/m97Y4JuIAltl1Z36JxFoXHjf0RArz5fANP5PAk9Y/2SwTJ9rLwhZPVGEHb235qncMvTUtv+gg6Ug2yfhHqoUHjDTz3RPfNipL6E5E4q9Ya5y8piIf2d5wP8/0GoecWj0LnQ8YJXM6tq9pCYhyb5ctwRxyOfoe9LFMu0GAvdtH6gTR4GMR0Dal3shMWEznPxd4E8ci+pS4QQPCMVZflm0PoAzKXwtECX0SQdCl34Q2mT91L957rg71NWW0I2aDxBj7S/1bTQ+/msoWUacI6fM5t4i1KXM2sytZVkU+nLnHHQmeJn5NEoK5amk3twLWWS8ymar+fGb4bzh7gryLhw88lSfk4iQhr05waYPyqBUhNev7Niv4m9x/Z36VmjF1rDsncvgRjTsi8DwLg== X-Forefront-PRVS: 0742443479 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(2351001)(47776003)(110136002)(33646002)(19580395003)(5007970100001)(105586002)(107886002)(66066001)(106356001)(5003940100001)(69596002)(50986999)(5001960100002)(19580405001)(5004730100002)(48376002)(101416001)(50466002)(87976001)(15975445007)(575784001)(4001430100002)(229853001)(42186005)(92566002)(53416004)(50226001)(5008740100001)(86152002)(97736004)(122386002)(77096005)(189998001)(86362001)(81156007)(40100003)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB1364; H:linux-builds1.altera.com; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: opensource.altera.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1; BLUPR03MB1364; 23:efC7Pp67I7ABlYul/+ydOpRl9eHPtzwfcShrlAWTG?= =?us-ascii?Q?C+9qL2AyWvyOHv62TTiTHwlzG8++LMTIgt9Km06BvB7sVHCjUUk5Mbe/XL0H?= =?us-ascii?Q?uDy0r1Zd5Gq5ESPSX3HycwNfW4GyV/cz7qbXW9I8evd7ZqB52YqC1jzQcmeo?= =?us-ascii?Q?yhWiDWe3ClpVoCrR1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ii?Q?lmRpN8pKOvW8VaXviO79Sw5OcjmqcpL/BStYVHUjn7sPFQIMMFbA2WL1mDKG?= =?us-ascii?Q?SDIEoPCAUk=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1364; 5:hCEI0jQYWPxttO8mcNma9sNQjh/hOAW8Kf8p4Wbg4DbbHnQ20NBqCkAGgVC0XBT/CUvClXJLuLrEB/A4MMYwRlh+eJ0iW12gKva3TW1kmOIGx6XZRytVhBS7eJ1mPBwl+mq6ElauRpjWpMDN+TXZYg==; 24:5gGScEQMyLSfPRQffcyzAhgjVCEVOnlDoM1DNT2AR1JDhb6Vsf/MxXGFoIq0FOCeeSPUp0X8rzOG2GQ5ZFE1YNsQxMkW+p9JzpkOOQnUBbw=; 20:VVkfXsYUPpYiDbbhKdmbfacps5Wztqjeu8DUkel3U6VccLeCQeVKl8FDvupn42s2k/0mcHA6yYtRN95YlP1Psubx7TdOnWbKM5+/QkPOPJRFc4k37WQdEz6wI61QcM2MdPuCGaBbvIRmNrJm5MY5nZaB3lJUbGHKs8M7d4lp7fU= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1364 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11OLC004.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC004; 1:QWmk14COahiCNlboy97MIWuB12lsiBHaTREePS6CHpqyh/W6w1NWOqT4tmP1NZ6HUebL5UaCj8WUMLSC17SbBDIKn2Asc/EwlaO9SMiTC0RQfSHjg5iGtWXQgBvKiSpuASQfr0YJ81AE5uTGlzqPtQ5HYeO6cRFdb33Kpx+Fg+AQNJbTxnDOPdeToQbsKtFyIKkg0ypjRbrHflQnq9Qatt01mT6TwEPFY4zANPBg7708GP7Y3UI8lYWCKmsqUhXdPz/+x3agvWjO+83Bw4kCBxHEo1m48YZt8dOtW0Tufm+7gNUTVTEr7l02YkYKygqoVjNLUV+FAm4lyfwSB5QYT643P1P4+pn8C/TB2sJQj/kQD6ZCTk3qerdgv/4Wo5SG X-Forefront-Antispam-Report: CIP:66.35.236.236; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(11100500001)(87936001)(19580405001)(86152002)(19580395003)(53416004)(48376002)(47776003)(50466002)(92566002)(122386002)(15975445007)(5008740100001)(40100003)(77096005)(5007970100001)(33646002)(6806005)(66066001)(21840400001)(6070500001)(5001960100002)(16796002)(4001430100002)(575784001)(107886002)(189998001)(106466001)(105606002)(5004730100002)(86362001)(50226001)(50986999)(81156007)(5003940100001)(229853001)(85426001)(2351001)(110136002)(97736004)(7099028)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB041; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB041; 2:sLIxP3I+oh2e1em0bos+enkaz+Src0G3pXUuZTeS1/nRt3w2up3YSTZDc2w5PYSc+a+k5Dnc9bFtB9OYYJDBB0T9/eqMYRyGPXQ7Ha4WxFaVdSk+izYevLOq+5h3UjTKXHbCM9pn+cJvP4DcsIjME1s862Xgu+TjYvGIV2vDH1g=; 3:33zD2NB5WcKG7ZsHHvtmGFBLq4OYDx00KpMCf50ed0cFyUNMQm+Gtxt10fEJMEHM1HY843fe+yjx+KPryosCANknIoSHYIAg/DdCmbQF4kKf9Wgep+XCu3ucZfd8ei0mYa2QguK4mtiQ5RognJESCOv2aLIeLcG6ZanUz8HdX/XmUsl1ugD4y4Vn1s7gxHXT9v+eYqGAxVJ0sDtw4cG1JvB7cd3R1Z3rlpZ/d4D6IFk=; 25:lF6ohH46Aw/ny88wUMH60sABb7pcoUia+B7+91QmCwEBLMFvLhXHuB4nehiulZGIAQ6r+TteVY9MpEZ0E56j05mYnr3i7q7pTbxeRG3NE71AmMOxjThpkqrk55tMALTzypJzdoQYhgUvxPozEtBXxSDkdddTJnx6PPeFuJQLz8G5bHgglYQHSlCHRjdzii5XKBrNznOz7FXRStm21Wbr0T+U20lO6ja/bEDuKbKS0BN1/qG6EHmnubtJ1gnXvUNl0UufmWQromtg0643sYpCpA==; 20:uFhikpJ43iXgIoibVe00utI20s998OxRQaejGoWbp7eFbGXJjh8K2KkqBuuJNRaYnv3+u/svq2PehtOW7K1ojO9NuoR+wZ1bf8M5EaxHV8xXmQFCq0uyovXZBZYDOjVqZ2G4n1DKNxg+CxpG04S0JPIXvC6vnt4g2fC6LYIAqvc= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB041; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB041; 4:7SLCsrXuD0x6I73GCzHvlc8YU8cIHUkUUIOugK7o5ur1HhLi2XIlHj8YLKoEI2hGzacpP/4vC9i1GItm44Ptm8objKw3fSHfz42yMfw4uT+wmE/OLYuFmqeJ0XYfS5U0vZJLGXjTgJiFDL6EHv+zsuvdSm5GqIRTDPOLGtpUs1ga0QpPcyW+QfI2GJPWGWofG5uMlX6WHYcjlOm2Wdbe1xvNyec5dgz+NUiRPj0yjEXL3x6jaV+f5KBevKCTZ+5TJuM72q73szNyqnqNIvQ1Ugp8myOgFIgYUZOKckvbPxk0GcIojo4y76jCjQC4qSceZMGJVGUpXV3SWunPfNbldBW866tp3eYgKg9JF/QQf7wcRdmRBJ5UczjuNEyJCzQ+OUiX8ucCsWGDWsCWBPucbw== X-Forefront-PRVS: 0742443479 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB041; 23:z3KSacB6IQN83h8IgfOA74YSX02cFqJnpetM16w6lM?= =?us-ascii?Q?VzbBMoBEOP3nUjUZ/buEplTq5GtuatiAsrRGRx2ox6phKiMvzP9D+eWHcnuE?= =?us-ascii?Q?Hu/lBxsydq9ZXF8I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eT?= =?us-ascii?Q?/gedhDxavDgC/8Ev8cIJH9F6nUitltGn9QJNqG+84E5GqMkf3qkJj+/fxGy9?= =?us-ascii?Q?5ZmJIvRzYH+SnwaXVVSqACpRfK4uQw9o12rZLXEBjfanVU+rgQyiNKf3Z0+s?= =?us-ascii?Q?wfCEIAlWx09XFJcD1wCOezF4MmYEXNaF92HkJkiwCv6VoESfNty0tTSmNdY4?= =?us-ascii?Q?S8ExwS9bXJH7RyvdyBev0FJJTWfrtrexb250vNiN+Uike+zIW6mdXR1DCXkz?= =?us-ascii?Q?WRfE5gHrbrI8wmg1I/3xJw5UGg1/Nr7qTLTBBb2Y0ROdSCiFehOYi4EvPOgw?= =?us-ascii?Q?Gcz5zmjX+dfTkNty99g0w=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB041; 5:EmyR9WcwNfAE7oiKbhYBxHdjzxpcJkUDryAI5jUqWRbyRIMWP+mbH/dAycmW21vfda9u6IlcGFlV+WJRK26T+cabaBNZBZviuUK/EY7hxWDTikcX7juBJZowO5+k3+fSgeFJQyKKou5W5afWfijNMw==; 24:RbV0VWab4dAALwxviTQFa2yJjnmoyQFuqSvQEs7lh/0004kC1VYuAQ9iyZmWcMJUI9YuZE4leVX5OK/LlkWTYtUgE2ZgJ6JWW8I4QXnYtVA=; 20:jfMLamQJH5aS1zIiLbUNMNZQ7DmWCPOv2MegeSFLwPW3cFcT2wzYLbT2R01RbWVtwTh1TGVmjG/gTXWZpMsUW++uPsfv46hulqC6H9aO/1ARv+4rQgMSIX9CvKKdY37gB1Egvlnh1bHiZUn9JOsN9ik61hXSfu2nRWaUhnpPP0A= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2015 21:06:51.9841 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.236]; Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB041 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151027_140715_864133_353C902B X-CRM114-Status: GOOD ( 14.68 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, dinh.linux@gmail.com, arnd@arndb.de, Thor Thayer , olof@lixom.net, Dinh Nguyen , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dinh Nguyen This patch enables the ECC for L2 cache on machine startup. The ECC has to be enabled before data is stored in memory otherwise the ECC will fail on reads. Signed-off-by: Thor Thayer Signed-off-by: Dinh Nguyen --- v7: unmap locally scoped mapped_l2_edac_addr and add of_node_put(np) v6: Remove pr_debug() & update year in header. --- arch/arm/mach-socfpga/Makefile | 1 + arch/arm/mach-socfpga/core.h | 1 + arch/arm/mach-socfpga/l2_cache.c | 42 ++++++++++++++++++++++++++++++++++++++++ arch/arm/mach-socfpga/socfpga.c | 2 ++ 4 files changed, 46 insertions(+) create mode 100644 arch/arm/mach-socfpga/l2_cache.c diff --git a/arch/arm/mach-socfpga/Makefile b/arch/arm/mach-socfpga/Makefile index b8f9e23..e9ab7c9 100644 --- a/arch/arm/mach-socfpga/Makefile +++ b/arch/arm/mach-socfpga/Makefile @@ -5,3 +5,4 @@ obj-y := socfpga.o obj-$(CONFIG_SMP) += headsmp.o platsmp.o obj-$(CONFIG_SOCFPGA_SUSPEND) += pm.o self-refresh.o +obj-$(CONFIG_EDAC_ALTERA_L2C) += l2_cache.o diff --git a/arch/arm/mach-socfpga/core.h b/arch/arm/mach-socfpga/core.h index 5bc6ea8..eb55d66 100644 --- a/arch/arm/mach-socfpga/core.h +++ b/arch/arm/mach-socfpga/core.h @@ -36,6 +36,7 @@ extern void socfpga_init_clocks(void); extern void socfpga_sysmgr_init(void); +void socfpga_init_l2_ecc(void); extern void __iomem *sys_manager_base_addr; extern void __iomem *rst_manager_base_addr; diff --git a/arch/arm/mach-socfpga/l2_cache.c b/arch/arm/mach-socfpga/l2_cache.c new file mode 100644 index 0000000..7712e162 --- /dev/null +++ b/arch/arm/mach-socfpga/l2_cache.c @@ -0,0 +1,42 @@ +/* + * Copyright Altera Corporation (C) 2015. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ +#include +#include +#include + +void socfpga_init_l2_ecc(void) +{ + struct device_node *np; + void __iomem *mapped_l2_edac_addr; + + np = of_find_compatible_node(NULL, NULL, "altr,l2-edac"); + if (!np) { + pr_err("SOCFPGA: Unable to find altr,l2-edac in dtb\n"); + return; + } + + mapped_l2_edac_addr = of_iomap(np, 0); + if (!mapped_l2_edac_addr) { + pr_err("SOCFPGA: Unable to find L2 ECC mapping in dtb\n"); + return; + } + + /* Enable ECC */ + writel(0x01, mapped_l2_edac_addr); + iounmap(mapped_l2_edac_addr); + + of_node_put(np); +} diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index a1c0efa..dd1ff07 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -59,6 +59,8 @@ static void __init socfpga_init_irq(void) { irqchip_init(); socfpga_sysmgr_init(); + if (IS_ENABLED(CONFIG_EDAC_ALTERA_L2C)) + socfpga_init_l2_ecc(); } static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)