Re: [Nouveau] [PATCH 2/5] drm: mediatek: add CONFIG_OF dependency

2016-05-21 Thread Matthias Brugger
On 18/05/16 18:07, Arnd Bergmann wrote: The mediatek DRM driver can be configured for compile testing with CONFIG_OF disabled, but then fails to link: drivers/gpu/built-in.o: In function `mtk_drm_bind': analogix_dp_reg.c:(.text+0x52888): undefined reference to `of_find_device_by_node'

[Nouveau] [PATCH 4/5] drm: exynos: mark pm functions as __maybe_unused

2016-05-21 Thread Arnd Bergmann
The rework of the exynos DRM clock handling introduced warnings for configurations that have CONFIG_PM disabled: drivers/gpu/drm/exynos/exynos_hdmi.c:736:13: error: 'hdmi_clk_disable_gates' defined but not used [-Werror=unused-function] static void hdmi_clk_disable_gates(struct hdmi_context

[Nouveau] [PATCH 2/5] drm: mediatek: add CONFIG_OF dependency

2016-05-21 Thread Arnd Bergmann
The mediatek DRM driver can be configured for compile testing with CONFIG_OF disabled, but then fails to link: drivers/gpu/built-in.o: In function `mtk_drm_bind': analogix_dp_reg.c:(.text+0x52888): undefined reference to `of_find_device_by_node' analogix_dp_reg.c:(.text+0x52930): undefined

[Nouveau] [PATCH 5/5] drm: remove unused dev variables

2016-05-21 Thread Arnd Bergmann
After drm_gem_object_lookup() was changed along with all its callers, we have several drivers that have unused variables: drm/armada/armada_crtc.c: In function 'armada_drm_crtc_cursor_set': drm/armada/armada_crtc.c:900:21: error: unused variable 'dev' [-Werror=unused-variable]

Re: [Nouveau] [PATCH] gpu/nouveau/nouveau_acpi.c: Fix Type Mismatch ACPI warning

2016-05-21 Thread Marcos Souza
Hi Pierre, Em qui, 19 de mai de 2016 às 06:49, Pierre Moreau escreveu: > Hello Marcos, > > I sent a serie a year ago to fix some of the ACPI handling in Nouveau and > add > runtime pm support for laptops with an Apple GMUX (see [0], and especially > [1] > and [2]). I was

[Nouveau] [PATCH 0/5] drm: fixes for merge-window regressions

2016-05-21 Thread Arnd Bergmann
A couple of new warnings and build errors appeared through the DRM tree in linux-next after the merge window opened. The first patch here is for scripts/headers_check.pl, but as the bug is only present in drm-next at the moment, it would be good to add all five patches to that tree before they

[Nouveau] [PATCH 1/5] headers_check: don't warn about c++ guards

2016-05-21 Thread Arnd Bergmann
A recent addition to the DRM tree for 4.7 added 'extern "C"' guards for c++ to all the DRM headers, and that now causes warnings in 'make headers_check': usr/include/drm/amdgpu_drm.h:38: userspace cannot reference function or variable defined in the kernel usr/include/drm/drm.h:63: userspace

Re: [Nouveau] [PATCH 3/5] drm: mediatek: fixup drm_gem_object_lookup API change

2016-05-21 Thread Matthias Brugger
On 18/05/16 18:07, Arnd Bergmann wrote: The drm_gem_object_lookup() function prototype changed while this driver was added, so it fails to build now: drivers/gpu/drm/mediatek/mtk_drm_gem.c: In function 'mtk_drm_gem_dumb_map_offset': drivers/gpu/drm/mediatek/mtk_drm_gem.c:142:30: error:

[Nouveau] [PATCH 0/5] drm: fixes for merge-window regressions

2016-05-21 Thread Arnd Bergmann
A couple of new warnings and build errors appeared through the DRM tree in linux-next after the merge window opened. The first patch here is for scripts/headers_check.pl, but as the bug is only present in drm-next at the moment, it would be good to add all five patches to that tree before they

[Nouveau] [PATCH 3/5] drm: mediatek: fixup drm_gem_object_lookup API change

2016-05-21 Thread Arnd Bergmann
The drm_gem_object_lookup() function prototype changed while this driver was added, so it fails to build now: drivers/gpu/drm/mediatek/mtk_drm_gem.c: In function 'mtk_drm_gem_dumb_map_offset': drivers/gpu/drm/mediatek/mtk_drm_gem.c:142:30: error: passing argument 1 of 'drm_gem_object_lookup'

[Nouveau] [PATCH] drm/nouveau: add Maxwell to backlight initialization

2016-05-21 Thread Faris Alsalama
Signed-off-by: Faris Alsalama --- drivers/gpu/drm/nouveau/nouveau_backlight.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_backlight.c b/drivers/gpu/drm/nouveau/nouveau_backlight.c index 89eb460..dd1cc9b 100644 ---

Re: [Nouveau] [PATCH v4] vga_switcheroo: Add helper for deferred probing

2016-05-21 Thread Lukas Wunner
Hi Emil, On Fri, May 20, 2016 at 12:41:04AM +0100, Emil Velikov wrote: > On 19 May 2016 at 15:39, Lukas Wunner wrote: > > +bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev) > > +{ > > + if ((pdev->class >> 8) == PCI_CLASS_DISPLAY_VGA) { > Not sure if we

[Nouveau] [PATCH v5] vga_switcheroo: Add helper for deferred probing

2016-05-21 Thread Lukas Wunner
So far we've got one condition when DRM drivers need to defer probing on a dual GPU system and it's coded separately into each of the relevant drivers. As suggested by Daniel Vetter, deduplicate that code in the drivers and move it to a new vga_switcheroo helper. This yields better encapsulation