Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752547Ab0KBUIy (ORCPT ); Tue, 2 Nov 2010 16:08:54 -0400 Received: from e1.ny.us.ibm.com ([32.97.182.141]:34595 "EHLO e1.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751368Ab0KBUIv (ORCPT ); Tue, 2 Nov 2010 16:08:51 -0400 From: Vernon Mauery To: linux-kernel@vger.kernel.org Cc: Matthew Garrett , platform-driver-x86@vger.kernel.org, Vernon Mauery Subject: [PATCH 2/2] ibm_rtl: _RTL_ is not available in UEFI mode Date: Tue, 2 Nov 2010 13:08:11 -0700 Message-Id: <1288728491-2216-3-git-send-email-vernux@us.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1288728491-2216-1-git-send-email-vernux@us.ibm.com> References: <1288728491-2216-1-git-send-email-vernux@us.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1446 Lines: 42 Some of the IBM servers that are supported by ibm_rtl can run in both Legacy mode (BIOS) and in UEFI mode. When running in UEFI mode, it is possible that the EBDA table exists but cannot be mapped and reports errors. We need to make sure that by default we don't try to probe the machines if they are running in UEFI mode. Signed-off-by: Vernon Mauery --- drivers/platform/x86/ibm_rtl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/platform/x86/ibm_rtl.c b/drivers/platform/x86/ibm_rtl.c index c5a0061..3cff0e5 100644 --- a/drivers/platform/x86/ibm_rtl.c +++ b/drivers/platform/x86/ibm_rtl.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -238,7 +239,7 @@ static int __init ibm_rtl_init(void) { if (force) pr_warning("ibm-rtl: module loaded by force\n"); /* first ensure that we are running on IBM HW */ - else if (!dmi_check_system(ibm_rtl_dmi_table)) + else if (efi_enabled || !dmi_check_system(ibm_rtl_dmi_table)) return -ENODEV; /* Get the address for the Extended BIOS Data Area */ -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/