Hello all, this series includes a wide range of fixes - from a few
month's old one-liners from Andreas Heider regarding vga_switcheroo, via a
null pointer dereference and double memory allocation, to a buffer overflow.
Please review and comment
---
drivers/gpu/drm/nouveau/nouveau_acpi.c |
From: Andreas Heider andr...@meetr.de
Currently vga_switcheroo_unregister_handler is called unconditionally when
nouveau is unloaded, even when nouveau never registered a handler. This
interferes with other switcheroo handlers, as vga_switcheroo doesn't check who
called unregister_handler, but
From: Andreas Heider andr...@meetr.de
Currently nouveau only registers as a vga_switcheroo client, but never
unregisters. This patch adds the necessary unregister calls.
Signed-off-by: Andreas Heider andr...@meetr.de
---
v2: Rebased on top of master
drivers/gpu/drm/nouveau/nouveau_state.c |
Removes unnecessary goto statement
fini subdevices before destroying them
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
drivers/gpu/drm/nouveau/nouveau_device.c | 26 +++---
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
drivers/gpu/drm/nouveau/nouveau_fb.h |1 -
drivers/gpu/drm/nouveau/nouveau_gpio.h |3 ---
2 files changed, 4 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_fb.h
b/drivers/gpu/drm/nouveau/nouveau_fb.h
index
This approach is already handled by the subdev system. Remove
unneeded variable in the process
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
drivers/gpu/drm/nouveau/nouveau_gpuobj.c | 12
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git
This approach is already handled by the subdev system. Remove
unneeded variable in the process
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
drivers/gpu/drm/nouveau/nv50_instmem.c | 10 +++---
drivers/gpu/drm/nouveau/nvc0_instmem.c | 10 +++---
2 files changed, 6
Both functions are constantly present if the volt subdev is created
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
drivers/gpu/drm/nouveau/nouveau_pm.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_pm.c
Both variables are already set in nouveau_subdev_create()
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
drivers/gpu/drm/nouveau/nv50_bar.c |2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nv50_bar.c
b/drivers/gpu/drm/nouveau/nv50_bar.c
index
The variable is already set in nouveau_subdev_create()
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
drivers/gpu/drm/nouveau/nv04_instmem.c |1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/nouveau/nv04_instmem.c
b/drivers/gpu/drm/nouveau/nv04_instmem.c
index
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
drivers/gpu/drm/nouveau/nv30_fb.c |3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nv30_fb.c
b/drivers/gpu/drm/nouveau/nv30_fb.c
index ce08f08..bc1c65b 100644
---
No functional change, just bike-shedding
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
drivers/gpu/drm/nouveau/nv40_fb.c | 11 ---
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nv40_fb.c
b/drivers/gpu/drm/nouveau/nv40_fb.c
index
Appropriate memory is allocated in nouveau_subdev_create()
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
drivers/gpu/drm/nouveau/nv10_fb.c |4
1 file changed, 4 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nv10_fb.c
b/drivers/gpu/drm/nouveau/nv10_fb.c
index
If the vbios is corrupted it can indicate more performance entries than the
ones statically allocated, causing overwriting of kernel memory
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
drivers/gpu/drm/nouveau/nouveau_perf.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
It contains a few changes mainly targeting the following
* Therm table is present in BIT vbios
* Parse the vbios table before hooking temp_get(), as it contains the therm
sensor calibration data
* Add dummy_therm_temp_get() function to prevent multiple null dereff's
Signed-off-by: Emil Velikov
15 matches
Mail list logo