From patchwork Sun Aug 16 18:55:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Shenhar, Talel" X-Patchwork-Id: 11716173 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D09C2722 for ; Sun, 16 Aug 2020 18:58:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A358520708 for ; Sun, 16 Aug 2020 18:58:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qt0YMUHi"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="fd2bU8Je" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A358520708 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=eQ8Ci0x7lc9Mnuy+/f0DRdOvLCkAGNLiPkqEcN7tlrs=; b=qt0YMUHiKNQKuyvThwtw5A30RI ef5majSuVHUcTF62ij/elITR9FNWbb78+/UQSwNl7ZcmScIAyIWr9MCS24WSXK3Ml/NjmQFkupXdP Bf+5S62Ub0QVWyqj3zQD5stNmokMFEgDfOBe10O4PZh+hIS9AveExLDh9S6okuYHa8DyfzTlrXyVm iLbiFlFB7sqDvdzu1X097JiSTrcEUD+SlRQXYja6uzzl8jRRc2BUbT62wL02qdYWZ0aoo3INV8RP1 6vm5Cgsfn45ZWa/XCsv25yaM+9ERiZwaocDjZj3hoBG4eGXitZBfsMVkXdWDuePSluXTumhAJTwXA EmDNSHCQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7Npe-0007dY-AZ; Sun, 16 Aug 2020 18:56:38 +0000 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7NpY-0007c6-O7 for linux-arm-kernel@lists.infradead.org; Sun, 16 Aug 2020 18:56:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1597604193; x=1629140193; h=from:to:cc:subject:date:message-id:mime-version; bh=x3/qICUW/teuPHcfLSJhDg2x0Q03YGNqnoh8eoUDgzQ=; b=fd2bU8JepWvhAyXtsVvGJH6tH1cc7FFLzww3SEpejVOnx/Yov7AzF7dC 68yQ5BAW9pX9cUT935mcq7tWFK3Pe4k9b5OBsmPQ5wCOyqz6IA4+1c1pi 3u/1qRs2aRwtoZxhffI5SUFCBW7vwIDqx5/8S/Ocb2QUQRDsvwbH/4eew k=; X-IronPort-AV: E=Sophos;i="5.76,321,1592870400"; d="scan'208";a="60120973" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-119b4f96.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 16 Aug 2020 18:56:25 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-119b4f96.us-west-2.amazon.com (Postfix) with ESMTPS id 90C9E1A0760; Sun, 16 Aug 2020 18:56:23 +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, 16 Aug 2020 18:56:22 +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, 16 Aug 2020 18:56:14 +0000 From: Talel Shenhar To: , , , , , , , , , , , , , , Subject: [PATCH v10 0/2] Amazon's Annapurna Labs Memory Controller EDAC Date: Sun, 16 Aug 2020 21:55:49 +0300 Message-ID: <20200816185551.19108-1-talel@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.43.161.71] X-ClientProxiedBy: EX13D02UWC004.ant.amazon.com (10.43.162.236) To EX13D01EUB001.ant.amazon.com (10.43.166.194) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200816_145635_192516_E1AAF3D1 X-CRM114-Status: GOOD ( 12.67 ) X-Spam-Score: -12.7 (------------) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-12.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [207.171.184.25 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [207.171.184.25 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -7.5 USER_IN_DEF_SPF_WL From: address is in the default SPF white-list -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ronenk@amazon.com, jonnyc@amazon.com, eitan@amazon.com, hanochu@amazon.com, hhhawa@amazon.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This series introduces support for Amazon's Annapurna Labs Memory Controller EDAC driver. Changes since v9: ================ - remove prefix (al_mc_edac_get_scrub_mode -> get_scrub_mode) Changes since v8: ================ - added cells address and size description to dt-binding yaml doc 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 | 67 ++++ MAINTAINERS | 7 + drivers/edac/Kconfig | 7 + drivers/edac/Makefile | 1 + drivers/edac/al_mc_edac.c | 354 ++++++++++++++++++ 5 files changed, 436 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml create mode 100644 drivers/edac/al_mc_edac.c