From patchwork Mon Feb 24 13:41:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Shenhar, Talel" X-Patchwork-Id: 11400515 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 A03A7930 for ; Mon, 24 Feb 2020 13:42:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7EDAF20836 for ; Mon, 24 Feb 2020 13:42:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="FdiHJv9z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727108AbgBXNmG (ORCPT ); Mon, 24 Feb 2020 08:42:06 -0500 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:39819 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgBXNmF (ORCPT ); Mon, 24 Feb 2020 08:42:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1582551726; x=1614087726; h=from:to:cc:subject:date:message-id:mime-version; bh=dt2ZsR5KGBnBGqZxTpFYgfWI7bLFKN7JNRHXrQWWar8=; b=FdiHJv9zU/dI4BWZ9qIHxcVevi8Xu7ISu9fqOiIlhpZd9HWOSULh+lzU uW9WtLymUmg4SEgFwg2gCwVNbI4iNfYwoow9Tc7rPOzJrTLhPV7WPWm3N OzYCmY1wY12sAILJkgX1dhZe5F5m9pO93BrzRiubpGbRWW5ltmG86yNVr 4=; IronPort-SDR: UUgnZmmZaH3T6RjtT44dGzKyOZqtMUA7LJGNJkg87/77Bt1q/cca31zToLy2aOCCXOMLeVK+eO q0TntbULHd3Q== X-IronPort-AV: E=Sophos;i="5.70,480,1574121600"; d="scan'208";a="27088075" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-22cc717f.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 24 Feb 2020 13:42:04 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2a-22cc717f.us-west-2.amazon.com (Postfix) with ESMTPS id 4464AA255F; Mon, 24 Feb 2020 13:42:02 +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.1236.3; Mon, 24 Feb 2020 13:42:01 +0000 Received: from uf25486d27d2d5b.ant.amazon.com (10.43.161.8) by EX13D01EUB001.ant.amazon.com (10.43.166.194) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 24 Feb 2020 13:41:51 +0000 From: Talel Shenhar To: , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH v6 0/2] Amazon's Annapurna Labs Memory Controller EDAC Date: Mon, 24 Feb 2020 15:41:30 +0200 Message-ID: <20200224134132.23924-1-talel@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.43.161.8] X-ClientProxiedBy: EX13D35UWC002.ant.amazon.com (10.43.162.218) To EX13D01EUB001.ant.amazon.com (10.43.166.194) Sender: linux-edac-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org This series introduces support for Amazon's Annapurna Labs Memory Controller EDAC driver. 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 | 355 ++++++++++++++++++ 5 files changed, 422 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml create mode 100644 drivers/edac/al_mc_edac.c