Skip to contentSkip to conversation

drm-nouveau-make-vga_switcheroo-code-depend-on-vga_switcheroo-fix.patch removed from -mm tree

folded-merged [email protected] 1 participant 1 message Nov 15, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Subject: [folded-merged] drm-nouveau-make-vga_switcheroo-code-depend-on-vga_switcheroo-fix.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 15 Nov 2013 14:14:17 -0800

The patch titled
Subject: nouveau: fix build eror when VGA_SWITCHEROO is not enabled
has been removed from the -mm tree. Its filename was
drm-nouveau-make-vga_switcheroo-code-depend-on-vga_switcheroo-fix.patch

This patch was dropped because it was folded into drm-nouveau-make-vga_switcheroo-code-depend-on-vga_switcheroo.patch

------------------------------------------------------
From: Randy Dunlap <[email protected]>
Subject: nouveau: fix build eror when VGA_SWITCHEROO is not enabled

Fix nouveau build error on x86, when ACPI is enabled but VGA_SWITCHEROO is not enabled, by providing a stub function.

drivers/built-in.o: In function `nouveau_pmops_runtime_suspend':
nouveau_drm.c:(.text+0x3aac89): undefined reference to `nouveau_switcheroo_optimus_dsm'

Cc Ben Skeggs <[email protected]>
Cc Jeff Mahoney <[email protected]>
Cc Jiri Slaby <[email protected]>
Cc David Airlie <[email protected]>

---

 drivers/gpu/drm/nouveau/nouveau_acpi.c |    1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/nouveau/nouveau_acpi.c renamed from drivers/gpu/drm/nouveau/nouveau_acpi.c~drm-nouveau-make-vga_switcheroo-code-depend-on-vga_switcheroo-fix +1 -0
diff -puN drivers/gpu/drm/nouveau/nouveau_acpi.c~drm-nouveau-make-vga_switcheroo-code-depend-on-vga_switcheroo-fix drivers/gpu/drm/nouveau/nouveau_acpi.c
@@ -380,6 +380,7 @@ void nouveau_unregister_dsm_handler(void
 #else
 void nouveau_register_dsm_handler(void) {}
 void nouveau_unregister_dsm_handler(void) {}
+void nouveau_switcheroo_optimus_dsm(void) {}
 #endif
 
 /* retrieve the ROM in 4k blocks */

_

Patches currently in -mm which might be from [email protected] are

origin.patch drm-nouveau-make-vga_switcheroo-code-depend-on-vga_switcheroo.patch mtd-cmdlinepart-use-cmdline-partition-parser-lib-fix.patch linux-next.patch debugging-keep-track-of-page-owners-fix-2.patch