From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54075C433E3 for ; Sun, 26 Jul 2020 19:16:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 342F920738 for ; Sun, 26 Jul 2020 19:16:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="PNM3pXcZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726106AbgGZTQk (ORCPT ); Sun, 26 Jul 2020 15:16:40 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:17168 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbgGZTQk (ORCPT ); Sun, 26 Jul 2020 15:16:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1595791000; x=1627327000; h=from:to:cc:subject:date:message-id:mime-version; bh=cagFj0TCeqeVSqHAz7QMf0ZKCt9DRUu1ZqptfiQt1ts=; b=PNM3pXcZXdsllstqbGdsqs2Nz6nSlFqqGiab+cCvbwhyHSvMRHx1QJP0 5A/6MaiHepKIdpEdTMKAfC1jfG1TrBsASoP4qXcOEdvQAylALoaEcTxnU x0us4DqTWsiAJJ4N2VdziatwN90jJRiV79bUDLb5GtxUSXgu48h6GzGCC E=; IronPort-SDR: jNpza2XW413xsiQM3sT5eVNdGy5g1NDsgANwlGupQBUTwEQJzMySV8CviM7V1pccGwGI56cAF6 kGhYhN8NQ04g== X-IronPort-AV: E=Sophos;i="5.75,399,1589241600"; d="scan'208";a="61692531" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2c-c6afef2e.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 26 Jul 2020 19:16:38 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2c-c6afef2e.us-west-2.amazon.com (Postfix) with ESMTPS id BC885A2330; Sun, 26 Jul 2020 19:16:36 +0000 (UTC) Received: from EX13D01EUB001.ant.amazon.com (10.43.166.194) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 26 Jul 2020 19:16:36 +0000 Received: from uf25486d27d2d5b.ant.amazon.com (10.43.161.71) by EX13D01EUB001.ant.amazon.com (10.43.166.194) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 26 Jul 2020 19:16:27 +0000 From: Talel Shenhar To: , , , , , , , , , , , , , , CC: , , , , Subject: [PATCH v8 0/2] Amazon's Annapurna Labs Memory Controller EDAC Date: Sun, 26 Jul 2020 22:15:53 +0300 Message-ID: <20200726191555.5210-1-talel@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.71] X-ClientProxiedBy: EX13D05UWC001.ant.amazon.com (10.43.162.82) To EX13D01EUB001.ant.amazon.com (10.43.166.194) Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This series introduces support for Amazon's Annapurna Labs Memory Controller EDAC driver. Changes since v7: ================= - rebased and retested for tag Linux 5.8-rc1 Changes since v6: ================= - removed unused defines - user-visible strings changed to capital - removed static function names prefix from internal functions (external used function, such as devm/interrupts-handlers/probe, left with the prefix to allow stack trace visibility) - sorted function local variables declaration in a reverse Christmas tree order - fixed use of wrong syndrome defines - added a comment to interrupts handling (polling mode with interrupt mode) - added grain definition - appended "or BSD-2-Clause" to dt binding SPDX Changes since v5: ================= - rebased and retested for tag Linux 5.6-rc2 - added Reviewed-By for dt-binding (Rob Herring ) - added Reviewed-By for driver (James Morse ) Changes since v4: ================= - fixed dt-binding interrupt to have min of 1 - updated dt-binding GPL-2.0 to GPL-2.0-only - changed writel to relaxed flavor - added managed device driver unwind Changes since v3: ================= - removed quotation marks and hyphen from compatible dt-binding - added interrupts and interrupt-names description to dt-binding - added missing include to dt-binding Changes since v2: ================= - added missing includes - aggregated variables to same line - removed ranks read - added spinlock to mc reporting - made irq handler clearer - freed irq before freeing device memory - changed Kconfig to tristate - added COMPILE_TEST to Kconfig - converted dt binding to new scheme - used devm_platform_ioremap_resource instead of get&ioremap Changes since v1: ================= - updated dt binding node name and added Rob Reviewed-By - removed auto selecting of this driver Talel Shenhar (2): dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC EDAC: al-mc-edac: Introduce Amazon's Annapurna Labs Memory Controller EDAC .../bindings/edac/amazon,al-mc-edac.yaml | 52 +++ MAINTAINERS | 7 + drivers/edac/Kconfig | 7 + drivers/edac/Makefile | 1 + drivers/edac/al_mc_edac.c | 354 ++++++++++++++++++ 5 files changed, 421 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml create mode 100644 drivers/edac/al_mc_edac.c -- 2.17.1