From: Ben Hutchings Subject: [PATCH] nouveau: ACPI support depends on X86 and X86_PLATFORM_DEVICES Date: Wed, 20 Feb 2013 02:57:32 +0000 Message-ID: <20130220025732.GF9079@decadent.org.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0740564802==" Return-path: Received: from shadbolt.e.decadent.org.uk (shadbolt.e.decadent.org.uk [88.96.1.126]) by gabe.freedesktop.org (Postfix) with ESMTP id 45CF4E5EE5 for ; Tue, 19 Feb 2013 18:57:43 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: David Airlie Cc: Ben Skeggs , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0740564802== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable If I build nouveau on ia64, Kconfig warns: warning: (DRM_NOUVEAU) selects ACPI_WMI which has unmet direct dependencies= (X86 && X86_PLATFORM_DEVICES && ACPI) warning: (DRM_NOUVEAU) selects MXM_WMI which has unmet direct dependencies = (X86 && X86_PLATFORM_DEVICES && ACPI_WMI) Make all the ACPI support depend on X86 and select X86_PLATFORM_DEVICES. Signed-off-by: Ben Hutchings --- Debian has had this patch (or earlier versions of it) for the last 20 months. I submitted it previously but didn't receive any response. Please apply or explain what's wrong with it. Ben. --- --- a/drivers/gpu/drm/nouveau/Kconfig +++ b/drivers/gpu/drm/nouveau/Kconfig @@ -11,8 +11,9 @@ config DRM_NOUVEAU select FRAMEBUFFER_CONSOLE if !EXPERT select FB_BACKLIGHT if DRM_NOUVEAU_BACKLIGHT select ACPI_VIDEO if ACPI && X86 && BACKLIGHT_CLASS_DEVICE && VIDEO_OUTPU= T_CONTROL && INPUT - select ACPI_WMI if ACPI - select MXM_WMI if ACPI + select X86_PLATFORM_DEVICES if ACPI && X86 + select ACPI_WMI if ACPI && X86 + select MXM_WMI if ACPI && X86 select POWER_SUPPLY help Choose this option for open-source nVidia support. --- a/drivers/gpu/drm/nouveau/Makefile +++ b/drivers/gpu/drm/nouveau/Makefile @@ -216,7 +216,9 @@ nouveau-y +=3D nouveau_mem.o =20 # other random bits nouveau-$(CONFIG_COMPAT) +=3D nouveau_ioc32.o +ifdef CONFIG_X86 nouveau-$(CONFIG_ACPI) +=3D nouveau_acpi.o +endif nouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) +=3D nouveau_backlight.o =20 obj-$(CONFIG_DRM_NOUVEAU)+=3D nouveau.o --- a/drivers/gpu/drm/nouveau/nouveau_acpi.h +++ b/drivers/gpu/drm/nouveau/nouveau_acpi.h @@ -3,7 +3,7 @@ =20 #define ROM_BIOS_PAGE 4096 =20 -#if defined(CONFIG_ACPI) +#if defined(CONFIG_ACPI) && defined(CONFIG_X86) bool nouveau_is_optimus(void); bool nouveau_is_v1_dsm(void); void nouveau_register_dsm_handler(void); --- a/drivers/gpu/drm/nouveau/core/subdev/bios/base.c +++ b/drivers/gpu/drm/nouveau/core/subdev/bios/base.c @@ -172,7 +172,7 @@ out: nv_wr32(bios, pcireg, access); } =20 -#if defined(CONFIG_ACPI) +#if defined(CONFIG_ACPI) && defined(CONFIG_X86) int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len); bool nouveau_acpi_rom_supported(struct pci_dev *pdev); #else --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIVAwUBUSQ7mue/yOyVhhEJAQqz/w//Y2RDwt+1kqFm5rBNUUvn6NBKIb9NnbGt kpnFdVFmtoYsgQ3L5LyTrxdar4t3w4Rvcp1O0/pjJY6gwsHa09M6+rAMEZpriIfu ipTgx9J1gf5d3SWz4DI7Ef9H/hTln7xpPvgkOi+lCC4SGrB/lucupHgmlri2j9K9 DvTIR77xTthS2eeCUvujWzStXkL211wETOwI5ZoJOAW5lP80odiPxoU12mK/NgSw 7XQvLIPqTN7wKuoMh0ikyQ8sQzH+lLIVUO3mxFMleuAAiaDB/GzJu6ik6/NRdNP3 NyZjuGcGioZ3bIRpWgCmiecD9NykvG9DUBlUJLQDv2oqjKMyq26BgrROfuBKFfwF jSigrhVw4rn/0jqjcMb6nofS82dw3QOwQ7YGx4OR2Ftvo7n5qTle0ZGmnoPiRLsS MKb+hQFjCZIlREnYlJbTQ6sNUuUD0nfbftRy05+ht8dqvi3NdWTeeVUOOTfWr5A0 3Rsk0akO+mPZ2RT3dQadxyBo4xZOK70xoasZcn9eB2XLLMmJgwMzesCoNQOVIZdW 9U9SHjTE6nN67v25124F3zQH1btVUbufzWPY4i6EmObDcGQBGnB4H7QHWnWXXNW+ xCD1ggcx347KLZtFm2PKFaufu/keH9vbPeokK3wnnGTsezOfKIkGKAqA0whulGDm Th5voUd6tZw= =surx -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N-- --===============0740564802== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0740564802==--