Skip to content

Commit 4cf7312

Browse files
committed
Merge remote-tracking branch 'pfdo/drm-fixes' into drm-core-next
-next reported a messy merge, so I've merged my upstream pull into my -next tree. Conflicts: drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
2 parents 3e54f5b + 6abff3c commit 4cf7312

41 files changed

Lines changed: 1943 additions & 411 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎MAINTAINERS‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3101,6 +3101,7 @@ F: include/linux/hid*
31013101

31023102
HIGH-RESOLUTION TIMERS, CLOCKEVENTS, DYNTICKS
31033103
M: Thomas Gleixner <tglx@linutronix.de>
3104+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core
31043105
S: Maintained
31053106
F: Documentation/timers/
31063107
F: kernel/hrtimer.c
@@ -3610,7 +3611,7 @@ F: net/irda/
36103611
IRQ SUBSYSTEM
36113612
M: Thomas Gleixner <tglx@linutronix.de>
36123613
S: Maintained
3613-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git irq/core
3614+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core
36143615
F: kernel/irq/
36153616

36163617
ISAPNP
@@ -4098,7 +4099,7 @@ F: drivers/hwmon/lm90.c
40984099
LOCKDEP AND LOCKSTAT
40994100
M: Peter Zijlstra <peterz@infradead.org>
41004101
M: Ingo Molnar <mingo@redhat.com>
4101-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/peterz/linux-2.6-lockdep.git
4102+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core/locking
41024103
S: Maintained
41034104
F: Documentation/lockdep*.txt
41044105
F: Documentation/lockstat.txt
@@ -5086,6 +5087,7 @@ M: Peter Zijlstra <a.p.zijlstra@chello.nl>
50865087
M: Paul Mackerras <paulus@samba.org>
50875088
M: Ingo Molnar <mingo@elte.hu>
50885089
M: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
5090+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/core
50895091
S: Supported
50905092
F: kernel/events/*
50915093
F: include/linux/perf_event.h
@@ -5165,6 +5167,7 @@ F: drivers/scsi/pm8001/
51655167

51665168
POSIX CLOCKS and TIMERS
51675169
M: Thomas Gleixner <tglx@linutronix.de>
5170+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core
51685171
S: Supported
51695172
F: fs/timerfd.c
51705173
F: include/linux/timer*
@@ -5680,6 +5683,7 @@ F: drivers/dma/dw_dmac.c
56805683
TIMEKEEPING, NTP
56815684
M: John Stultz <johnstul@us.ibm.com>
56825685
M: Thomas Gleixner <tglx@linutronix.de>
5686+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core
56835687
S: Supported
56845688
F: include/linux/clocksource.h
56855689
F: include/linux/time.h
@@ -5704,6 +5708,7 @@ F: drivers/watchdog/sc1200wdt.c
57045708
SCHEDULER
57055709
M: Ingo Molnar <mingo@elte.hu>
57065710
M: Peter Zijlstra <peterz@infradead.org>
5711+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
57075712
S: Maintained
57085713
F: kernel/sched*
57095714
F: include/linux/sched.h
@@ -6631,7 +6636,7 @@ TRACING
66316636
M: Steven Rostedt <rostedt@goodmis.org>
66326637
M: Frederic Weisbecker <fweisbec@gmail.com>
66336638
M: Ingo Molnar <mingo@redhat.com>
6634-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git perf/core
6639+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/core
66356640
S: Maintained
66366641
F: Documentation/trace/ftrace.txt
66376642
F: arch/*/*/*/ftrace.h
@@ -7381,7 +7386,7 @@ M: Thomas Gleixner <tglx@linutronix.de>
73817386
M: Ingo Molnar <mingo@redhat.com>
73827387
M: "H. Peter Anvin" <hpa@zytor.com>
73837388
M: x86@kernel.org
7384-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86.git
7389+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/core
73857390
S: Maintained
73867391
F: Documentation/x86/
73877392
F: arch/x86/

‎drivers/gpu/drm/vmwgfx/vmwgfx_drv.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,11 @@ extern int vmw_context_check(struct vmw_private *dev_priv,
390390
struct ttm_object_file *tfile,
391391
int id,
392392
struct vmw_resource **p_res);
393+
extern int vmw_user_lookup_handle(struct vmw_private *dev_priv,
394+
struct ttm_object_file *tfile,
395+
uint32_t handle,
396+
struct vmw_surface **out_surf,
397+
struct vmw_dma_buffer **out_buf);
393398
extern void vmw_surface_res_free(struct vmw_resource *res);
394399
extern int vmw_surface_init(struct vmw_private *dev_priv,
395400
struct vmw_surface *srf,

‎drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ bool vmw_fifo_have_3d(struct vmw_private *dev_priv)
3333
{
3434
__le32 __iomem *fifo_mem = dev_priv->mmio_virt;
3535
uint32_t fifo_min, hwversion;
36+
const struct vmw_fifo_state *fifo = &dev_priv->fifo;
3637

3738
if (!(dev_priv->capabilities & SVGA_CAP_EXTENDED_FIFO))
3839
return false;
@@ -41,7 +42,12 @@ bool vmw_fifo_have_3d(struct vmw_private *dev_priv)
4142
if (fifo_min <= SVGA_FIFO_3D_HWVERSION * sizeof(unsigned int))
4243
return false;
4344

44-
hwversion = ioread32(fifo_mem + SVGA_FIFO_3D_HWVERSION);
45+
hwversion = ioread32(fifo_mem +
46+
((fifo->capabilities &
47+
SVGA_FIFO_CAP_3D_HWVERSION_REVISED) ?
48+
SVGA_FIFO_3D_HWVERSION_REVISED :
49+
SVGA_FIFO_3D_HWVERSION));
50+
4551
if (hwversion == 0)
4652
return false;
4753

‎drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,14 @@ int vmw_getparam_ioctl(struct drm_device *dev, void *data,
5858
case DRM_VMW_PARAM_FIFO_HW_VERSION:
5959
{
6060
__le32 __iomem *fifo_mem = dev_priv->mmio_virt;
61-
62-
param->value = ioread32(fifo_mem + SVGA_FIFO_3D_HWVERSION);
61+
const struct vmw_fifo_state *fifo = &dev_priv->fifo;
62+
63+
param->value =
64+
ioread32(fifo_mem +
65+
((fifo->capabilities &
66+
SVGA_FIFO_CAP_3D_HWVERSION_REVISED) ?
67+
SVGA_FIFO_3D_HWVERSION_REVISED :
68+
SVGA_FIFO_3D_HWVERSION));
6369
break;
6470
}
6571
default:
@@ -166,13 +172,7 @@ int vmw_present_ioctl(struct drm_device *dev, void *data,
166172
ret = -EINVAL;
167173
goto out_no_fb;
168174
}
169-
170175
vfb = vmw_framebuffer_to_vfb(obj_to_fb(obj));
171-
if (!vfb->dmabuf) {
172-
DRM_ERROR("Framebuffer not dmabuf backed.\n");
173-
ret = -EINVAL;
174-
goto out_no_fb;
175-
}
176176

177177
ret = ttm_read_lock(&vmaster->lock, true);
178178
if (unlikely(ret != 0))

0 commit comments

Comments
 (0)