From patchwork Thu Oct 11 21:12:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Luck X-Patchwork-Id: 10637461 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1F317933 for ; Thu, 11 Oct 2018 21:12:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C7832C17F for ; Thu, 11 Oct 2018 21:12:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 010432C181; Thu, 11 Oct 2018 21:12:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96E5F2C17F for ; Thu, 11 Oct 2018 21:12:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726218AbeJLElk (ORCPT ); Fri, 12 Oct 2018 00:41:40 -0400 Received: from mga11.intel.com ([192.55.52.93]:6385 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725819AbeJLElk (ORCPT ); Fri, 12 Oct 2018 00:41:40 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Oct 2018 14:12:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,370,1534834800"; d="scan'208";a="99506932" Received: from agluck-desk.sc.intel.com ([10.3.52.160]) by orsmga002.jf.intel.com with ESMTP; 11 Oct 2018 14:12:36 -0700 From: Tony Luck To: "Rafael J. Wysocki" Cc: Tony Luck , Borislav Petkov , Qiuxu Zhuo , Aristeu Rozanski , Mauro Carvalho Chehab , linux-edac@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH v2 0/3] ACPI ADXL and associated EDAC driver change Date: Thu, 11 Oct 2018 14:12:33 -0700 Message-Id: <20181011211236.23525-1-tony.luck@intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Part 1: Add code to ACPI to make the DSM calls and export interface functions Part 2: Some EDAC cleanup (used to be part 3 of the earlier 5 part series) Part 3: Update skx_edac.c to use (if we have some NVDIMMs present) Changes since last version. Part 1 Rafael Fix Kconfig so that ACPI_ADXL is not user selectable. Update error message when DSM call fails to be more useful Part 2 No changes Part 3 Tony Luck Just allocate the array for the values once when setting up, not on each decode (its not very big, and avoids risk of not having memory available at decode time). Add an enum to define names for the offsets in the component_indices[] array Ignore unused fields returned by adxl_decode() (those with value 0xffffffffffffffff. Qiuxu Zhuo Avoid memory leak. kfree(adxl_values) on module removal. Qiuxu Zhuo (2): EDAC, skx_edac: Clean up debugfs EDAC, skx_edac: Add address translation for non-volatile DIMMs Tony Luck (1): ACPI / adxl: Address translation interface using ACPI DSM drivers/acpi/Kconfig | 3 + drivers/acpi/Makefile | 3 + drivers/acpi/acpi_adxl.c | 199 +++++++++++++++++++++++++++++ drivers/edac/Kconfig | 1 + drivers/edac/skx_edac.c | 262 +++++++++++++++++++++++++++++++-------- include/linux/adxl.h | 25 ++++ 6 files changed, 443 insertions(+), 50 deletions(-) create mode 100644 drivers/acpi/acpi_adxl.c create mode 100644 include/linux/adxl.h