From patchwork Thu Oct 24 10:03:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Shenhar, Talel" X-Patchwork-Id: 11208775 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 9B6201747 for ; Thu, 24 Oct 2019 10:03:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 79EC621906 for ; Thu, 24 Oct 2019 10:03:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="EF/m7Ap2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393151AbfJXKD6 (ORCPT ); Thu, 24 Oct 2019 06:03:58 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:23136 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbfJXKD6 (ORCPT ); Thu, 24 Oct 2019 06:03:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1571911436; x=1603447436; h=from:to:cc:subject:date:message-id:mime-version; bh=KiF6W7KJ3T1oc7lm2yMt2OSSBA6K6fxfRkfGU2xVQqQ=; b=EF/m7Ap2XrsZsYTZL0xwHfEjE3wminFOntrwl9nQW/UGnn+q+BmDGI0P Fhrq0UGchOsih1ilMd2V4qQ3s7m3+UiQy5BUcxWs8ingwdc2wINycIIxf RNwOb/zA8FdMMl/ScASC2mQ4Q3M5NdeFS5I0Nkz+oO/OMWrX0upKxIfeQ k=; X-IronPort-AV: E=Sophos;i="5.68,224,1569283200"; d="scan'208";a="762728866" Received: from iad6-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1e-27fb8269.us-east-1.amazon.com) ([10.124.125.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 24 Oct 2019 10:03:54 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1e-27fb8269.us-east-1.amazon.com (Postfix) with ESMTPS id 7EA50A17D8; Thu, 24 Oct 2019 10:03:51 +0000 (UTC) Received: from EX13D01EUB001.ant.amazon.com (10.43.166.194) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 24 Oct 2019 10:03:50 +0000 Received: from udc4a3e82dbc15a031435.hfa15.amazon.com (10.43.162.31) by EX13D01EUB001.ant.amazon.com (10.43.166.194) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 24 Oct 2019 10:03:41 +0000 From: Talel Shenhar To: , , , , , , , , , , , CC: , , , , , , , Subject: [PATCH v5 0/2] Amazon's Annapurna Labs Memory Controller EDAC Date: Thu, 24 Oct 2019 13:03:25 +0300 Message-ID: <1571911407-29379-1-git-send-email-talel@amazon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.43.162.31] X-ClientProxiedBy: EX13D17UWB001.ant.amazon.com (10.43.161.252) 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 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