From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756460AbbCDB5W (ORCPT ); Tue, 3 Mar 2015 20:57:22 -0500 Received: from mail-pd0-f172.google.com ([209.85.192.172]:38508 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754487AbbCDB5U (ORCPT ); Tue, 3 Mar 2015 20:57:20 -0500 Date: Wed, 4 Mar 2015 09:55:55 +0800 From: Aaron Lu To: Chris Wilson Cc: intel-gfx@lists.freedesktop.org, Daniel Vetter , Jani Nikula , Zhang Rui , "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] acpi/video: Load the module even if ACPI is disabled Message-ID: <20150304015443.GA6943@aaronlu.sh.intel.com> References: <1425206498-1615-1-git-send-email-chris@chris-wilson.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425206498-1615-1-git-send-email-chris@chris-wilson.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 01, 2015 at 10:41:37AM +0000, Chris Wilson wrote: > i915.ko depends upon the acpi/video.ko module and so refuses to load if > ACPI is disabled at runtime if for example the BIOS is broken beyond > repair. acpi/video provides an optional service for i915.ko and so we > should just allow the modules to load, but do no nothing in order to let > the machines boot correctly. > > Reported-by: Bill Augur > Signed-off-by: Chris Wilson > Cc: Daniel Vetter > Cc: Jani Nikula > Cc: Zhang Rui > Cc: "Rafael J. Wysocki" > Cc: Len Brown > Cc: linux-acpi@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: stable@vger.kernel.org For both patches: Acked-by: Aaron Lu Thanks, Aaron > --- > drivers/acpi/video.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c > index debd30917010..3b76aef79a1c 100644 > --- a/drivers/acpi/video.c > +++ b/drivers/acpi/video.c > @@ -2176,6 +2176,16 @@ EXPORT_SYMBOL(acpi_video_unregister_backlight); > > static int __init acpi_video_init(void) > { > + /* Let the module load even if ACPI is disabled (e.g. due to > + * a broken BIOS) so that i915.ko can still be loaded on such > + * old systems without an AcpiOpRegion. > + * > + * acpi_video_register() will report -ENODEV later as well due > + * to acpi_disabled when i915.ko tries to register itself afterwards. > + */ > + if (acpi_disabled) > + return 0; > + > dmi_check_system(video_dmi_table); > > if (intel_opregion_present()) > -- > 2.1.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html