[git pull] vmwgfx-next-5.9

2020-08-11 Thread Roland Scheidegger (VMware)
Dave, Daniel,

vmwgfx fixes pull for 5.9.
The drm_mode_config_reset patches are very important fixing a recently
introduced kernel crash, the others fix various older issues which are
a bit less serious in practice.
(Although still pending a solution for the other crash introduced by
2ddef17678bc2ea1d20517dd2b4ed4aa967ffa8b.)

The following changes since commit dc100bc8fae59aafd2ea2e1a1a43ef1f65f8a8bc:

  Merge tag 'drm-msm-next-2020-07-30' of https://gitlab.freedesktop.org/drm/msm 
into drm-next (2020-08-05 08:05:31 +1000)

are available in the Git repository at:

  git://people.freedesktop.org/~sroland/linux vmwgfx-next-5.9

for you to fetch changes up to e97644ebcdc83854e6e29e96285b25042445c28c:

  drm/vmwgfx: fix spelling mistake "Cant" -> "Can't" (2020-08-11 03:16:03 +0200)


Colin Ian King (2):
  drm/vmwgfx: fix spelling mistake "Cound" -> "Could"
  drm/vmwgfx: fix spelling mistake "Cant" -> "Can't"

Dan Carpenter (2):
  drm/vmwgfx: Use correct vmw_legacy_display_unit pointer
  drm/vmwgfx: Fix two list_for_each loop exit tests

Daniel Vetter (1):
  drm/vmwgfx/stdu: Use drm_mode_config_reset

Gustavo A. R. Silva (1):
  drm/vmwgfx: Use struct_size() helper

Roland Scheidegger (2):
  drm/vmwgfx/sou: Use drm_mode_config_reset
  drm/vmwgfx/ldu: Use drm_mode_config_reset

 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c |  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 10 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | 13 -
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c|  9 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c|  9 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c |  2 +-
 6 files changed, 15 insertions(+), 30 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git-pull] vmwgfx-next

2020-03-16 Thread Thomas Hellstrom (VMware)
Dave, Daniel,

The first vmwgfx-next pull for 5.7. Roland Scheidegger will follow up with
a larger pull request for functionality needed for GL4 support.

- Disable DMA when using SEV encryption
- An -RT fix
- Code cleanups

Thanks,
Thomas

The following changes since commit d3bd37f587b4438d47751d0f1d5aaae3d39bd416:

  Merge v5.6-rc5 into drm-next (2020-03-11 07:27:21 +1000)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux vmwgfx-next

for you to fetch changes up to 6b656755428dc0c96d21d7af697dc2a10c7ff175:

  drm/vmwgfx: Replace zero-length array with flexible-array member (2020-03-16 
10:42:01 +0100)


Gustavo A. R. Silva (1):
  drm/vmwgfx: Replace zero-length array with flexible-array member

Sebastian Andrzej Siewior (2):
  drm/vmwgfx: Drop preempt_disable() in vmw_fifo_ping_host()
  drm/vmwgfx: Remove a few unused functions

Thomas Hellstrom (2):
  drm/vmwgfx: Fix the refuse_dma mode when using guest-backed objects
  drm/vmwgfx: Refuse DMA operation when SEV encryption is active

 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c |  3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c| 11 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h| 28 ---
 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c   |  2 -
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c| 81 --
 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c| 31 
 drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c |  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c   |  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c|  2 +-
 9 files changed, 14 insertions(+), 148 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [git pull] vmwgfx-next

2020-01-21 Thread VMware

On 1/20/20 10:09 PM, Dave Airlie wrote:

On Thu, 16 Jan 2020 at 19:30, Thomas Hellström (VMware)
 wrote:

Dave, Daniel

The main 5.6 -next pull from vmwgfx. Minor things here and there, as well
as an added ioctl for host messaging and a corresponding api version bump.

Is there userspace for this ioctl somewhere? I need a pointer to some
reviewed userspace MR for Mesa or other thing to add new uAPI to
drivers.

Dave.


Hi, Dave,

Mesa patch posted:

https://lists.freedesktop.org/archives/mesa-dev/2020-January/224018.html

Thanks,
Thomas



___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [git pull] vmwgfx-next

2020-01-20 Thread VMware

On 1/20/20 10:09 PM, Dave Airlie wrote:

On Thu, 16 Jan 2020 at 19:30, Thomas Hellström (VMware)
 wrote:

Dave, Daniel

The main 5.6 -next pull from vmwgfx. Minor things here and there, as well
as an added ioctl for host messaging and a corresponding api version bump.

Is there userspace for this ioctl somewhere? I need a pointer to some
reviewed userspace MR for Mesa or other thing to add new uAPI to
drivers.

Dave.


It's still in our internal repo. I'll post a mesa patch tomorrow and 
send you a pointer.


Thanks,
Thomas


___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [git pull] vmwgfx-next

2020-01-20 Thread Dave Airlie
On Thu, 16 Jan 2020 at 19:30, Thomas Hellström (VMware)
 wrote:
>
> Dave, Daniel
>
> The main 5.6 -next pull from vmwgfx. Minor things here and there, as well
> as an added ioctl for host messaging and a corresponding api version bump.

Is there userspace for this ioctl somewhere? I need a pointer to some
reviewed userspace MR for Mesa or other thing to add new uAPI to
drivers.

Dave.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next

2020-01-16 Thread VMware
Dave, Daniel

The main 5.6 -next pull from vmwgfx. Minor things here and there, as well
as an added ioctl for host messaging and a corresponding api version bump.

Thanks,
Thomas

The following changes since commit 71e7274066c646bb3d9da39d2f4db0a6404c0a2d:

  Merge tag 'drm-intel-next-2020-01-14' of 
git://anongit.freedesktop.org/drm/drm-intel into drm-next (2020-01-15 16:57:54 
+1000)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux vmwgfx-next

for you to fetch changes up to b20414252068263c736d008e536658f9ce13d74a:

  drm/vmwgfx: Use VM_PFNMAP instead of VM_MIXEDMAP when possible (2020-01-15 
14:34:49 +0100)


Emil Velikov (3):
  drm/vmwgfx: move the require_exist handling together
  drm/vmwgfx: check master authentication in surface_ref ioctls
  drm/vmwgfx: drop DRM_AUTH for render ioctls

Lukas Bulwahn (1):
  drm/vmwgfx: Replace deprecated PTR_RET

Navid Emamdoost (1):
  drm/vmwgfx: prevent memory leak in vmw_cmdbuf_res_add

Roland Scheidegger (1):
  drm/vmwgfx: add ioctl for messaging from/to guest userspace to/from host

Thomas Hellstrom (3):
  drm/vmwgfx: Don't use the HB port if memory encryption is active
  drm/vmwgfx: Bump driver minor version
  drm/vmwgfx: Use VM_PFNMAP instead of VM_MIXEDMAP when possible

Thomas Zimmermann (1):
  drm/vmwgfx: Call vmw_driver_{load,unload}() before registering device

 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c |  4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c| 76 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h|  6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c| 21 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c| 90 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c| 16 --
 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c   |  4 ++
 include/uapi/drm/vmwgfx_drm.h  | 17 ++
 8 files changed, 200 insertions(+), 34 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next

2019-11-14 Thread VMware
Dave, Daniel

Two minor cleanups / fixes for -next.

The following changes since commit 3ca3a9eab7085b3c938b5d088c3020269cfecdc8:

  Merge tag 'drm-misc-next-fixes-2019-11-06' of 
git://anongit.freedesktop.org/drm/drm-misc into drm-next (2019-11-08 16:48:22 
+1000)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux vmwgfx-next

for you to fetch changes up to b4011644b03c04b1a42068313c5b894da41d0698:

  drm/vmwgfx: remove set but not used variable 'srf' (2019-11-14 08:41:36 +0100)


Thomas Hellstrom (1):
  drm/ttm, drm/vmwgfx: Use a configuration option for the TTM dma page pool

YueHaibing (1):
  drm/vmwgfx: remove set but not used variable 'srf'

 drivers/gpu/drm/Kconfig  | 7 +++
 drivers/gpu/drm/ttm/Makefile | 4 ++--
 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 3 ---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c  | 3 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c  | 2 --
 include/drm/ttm/ttm_page_alloc.h | 2 +-
 6 files changed, 11 insertions(+), 10 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[git pull] vmwgfx-next

2019-08-15 Thread VMware
From: Thomas Hellstrom (VMware) 

Dave, Daniel

A couple of independent patches extracted from the 5.3 pull request, fixed for
merge conflicts and a single unused variable warning.

And the drmP.h removal from Sam.

/Thomas

The following changes since commit e7f7287bf5f746d29f3607178851246a005dd398:

  Merge tag 'drm-next-5.4-2019-08-09' of 
git://people.freedesktop.org/~agd5f/linux into drm-next (2019-08-12 14:20:21 
+1000)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux/ vmwgfx-next

for you to fetch changes up to a0a63940b0c9ebc6d3156bbfe0c2cf7560b580cd:

  drm/vmwgfx: Assign eviction priorities to resources (2019-08-15 08:40:05 
+0200)


Deepak Rawat (2):
  drm/vmwgfx: Add debug message for layout change ioctl
  drm/vmwgfx: Use VMW_DEBUG_KMS for vmwgfx mode-setting user errors

Sam Ravnborg (2):
  drm/vmwgfx: drop use of drmP.h in header files
  drm/vmwgfx: drop reminaing users of drmP.h

Thomas Hellstrom (2):
  drm/vmwgfx: Kill unneeded legacy security features
  drm/vmwgfx: Assign eviction priorities to resources

 drivers/gpu/drm/vmwgfx/ttm_lock.c | 100 --
 drivers/gpu/drm/vmwgfx/ttm_lock.h |  32 +
 drivers/gpu/drm/vmwgfx/ttm_object.h   |   7 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_binding.h   |   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c|   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c|   3 +
 drivers/gpu/drm/vmwgfx/vmwgfx_context.c   |   4 +
 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c   |  13 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c   | 180 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h   | 126 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c|   8 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c |   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.h |   5 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c  |   6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c   |   4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_irq.c   |   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c   |  33 +++--
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h   |   2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c   |   6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c   |   2 +
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c   |  11 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c   |   6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c  |  60 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h |   2 +
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c  |   6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c|   8 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c  |   9 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c   |  10 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c  |   1 -
 drivers/gpu/drm/vmwgfx/vmwgfx_validation.h|   3 +-
 30 files changed, 264 insertions(+), 395 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [git pull] vmwgfx-next

2019-08-14 Thread VMware

On 8/14/19 9:31 AM, Thomas Hellström (VMware) wrote:

From: Thomas Hellstrom (VMware) 

Dave, Daniel

A couple of independent patches extracted from the 5.3 pull request, fixed for
merge conflicts.

Hmm. Just noted an unused variable resulting from one of the commits. 
Please ignore this for now, and I'll do a quick respin.


/Thomas


___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[git pull] vmwgfx-next

2019-08-14 Thread VMware
From: Thomas Hellstrom (VMware) 

Dave, Daniel

A couple of independent patches extracted from the 5.3 pull request, fixed for
merge conflicts.

And the drmP.h removal from Sam.

/Thomas

The following changes since commit e7f7287bf5f746d29f3607178851246a005dd398:

  Merge tag 'drm-next-5.4-2019-08-09' of 
git://people.freedesktop.org/~agd5f/linux into drm-next (2019-08-12 14:20:21 
+1000)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux/ vmwgfx-next

for you to fetch changes up to a4513daaab5c5c1e6bc7c1fda932a88c62ebda43:

  drm/vmwgfx: Assign eviction priorities to resources (2019-08-14 09:18:41 
+0200)


Deepak Rawat (2):
  drm/vmwgfx: Add debug message for layout change ioctl
  drm/vmwgfx: Use VMW_DEBUG_KMS for vmwgfx mode-setting user errors

Sam Ravnborg (2):
  drm/vmwgfx: drop use of drmP.h in header files
  drm/vmwgfx: drop reminaing users of drmP.h

Thomas Hellstrom (2):
  drm/vmwgfx: Kill unneeded legacy security features
  drm/vmwgfx: Assign eviction priorities to resources

 drivers/gpu/drm/vmwgfx/ttm_lock.c | 100 --
 drivers/gpu/drm/vmwgfx/ttm_lock.h |  32 +
 drivers/gpu/drm/vmwgfx/ttm_object.h   |   7 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_binding.h   |   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c|   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c|   3 +
 drivers/gpu/drm/vmwgfx/vmwgfx_context.c   |   4 +
 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c   |  13 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c   | 179 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h   | 126 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c|   8 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c |   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.h |   5 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c  |   6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c   |   4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_irq.c   |   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c   |  33 +++--
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h   |   2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c   |   6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c   |   2 +
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c   |  11 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c   |   6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c  |  60 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h |   2 +
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c  |   6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c|   8 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c  |   9 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c   |  10 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c  |   1 -
 drivers/gpu/drm/vmwgfx/vmwgfx_validation.h|   3 +-
 30 files changed, 264 insertions(+), 394 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[git pull] vmwgfx-next

2019-06-19 Thread VMware
Dave, Daniel

- The coherent memory changes including mm changes.
- Some vmwgfx debug fixes.
- Removal of vmwgfx legacy security checks.

The following changes since commit 561564bea3248293398dc32ec36da40fb71faed0:

  Merge tag 'omapdrm-5.3' of 
git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into drm-next 
(2019-06-11 13:29:33 +0200)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux/ vmwgfx-next

for you to fetch changes up to 9bbfda544ed79e8e9abde27bfe2c85428d582e7b:

  drm/vmwgfx: Kill unneeded legacy security features (2019-06-18 15:22:48 +0200)


Deepak Rawat (2):
  drm/vmwgfx: Add debug message for layout change ioctl
  drm/vmwgfx: Use VMW_DEBUG_KMS for vmwgfx mode-setting user errors

Thomas Hellstrom (11):
  drm/vmwgfx: Assign eviction priorities to resources
  mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem
  mm: Add an apply_to_pfn_range interface
  mm: Add write-protect and clean utilities for address space ranges
  drm/ttm: Allow the driver to provide the ttm struct vm_operations_struct
  drm/ttm: TTM fault handler helpers
  drm/vmwgfx: Implement an infrastructure for write-coherent resources
  drm/vmwgfx: Use an RBtree instead of linked list for MOB resources
  drm/vmwgfx: Implement an infrastructure for read-coherent resources
  drm/vmwgfx: Add surface dirty-tracking callbacks
  drm/vmwgfx: Kill unneeded legacy security features

 MAINTAINERS|   1 +
 drivers/gpu/drm/ttm/ttm_bo.c   |   1 +
 drivers/gpu/drm/ttm/ttm_bo_vm.c| 169 +---
 drivers/gpu/drm/vmwgfx/Kconfig |   1 +
 drivers/gpu/drm/vmwgfx/Makefile|   2 +-
 .../drm/vmwgfx/device_include/svga3d_surfacedefs.h | 233 +-
 drivers/gpu/drm/vmwgfx/ttm_lock.c  | 100 -
 drivers/gpu/drm/vmwgfx/ttm_lock.h  |  30 --
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c |  12 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_context.c|   4 +
 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c|  13 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c| 167 +---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h| 139 --
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c|   1 -
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c|  23 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c | 472 +
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c   | 245 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h  |  15 +
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c |   8 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c| 405 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c |  74 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_validation.h |  16 +-
 include/drm/ttm/ttm_bo_api.h   |  10 +
 include/drm/ttm/ttm_bo_driver.h|   6 +
 include/linux/mm.h |  19 +-
 include/uapi/drm/vmwgfx_drm.h  |   4 +-
 mm/Kconfig |   3 +
 mm/Makefile|   1 +
 mm/as_dirty_helpers.c  | 300 +
 mm/memory.c| 145 +--
 30 files changed, 2136 insertions(+), 483 deletions(-)
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
 create mode 100644 mm/as_dirty_helpers.c
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [git pull] vmwgfx-next-2018-12-13

2019-02-06 Thread Thomas Hellstrom
Old pull message. Please ignore. The correct one coming up.

/Thomas



On Wed, 2019-02-06 at 20:42 +0100, Thomas Hellstrom wrote:
> Hi, Dave
> 
> Two minor fixes for the previous vmwgfx-next pull:
> 
> The following changes since commit
> 9a01135b98b9d5a7033c544245da7aad0d886758:
> 
>   drm/vmwgfx: Use the standard atomic helpers for page-flip (2018-12-
> 05 10:09:55 +0100)
> 
> are available in the Git repository at:
> 
>   git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-2018-
> 12-13
> 
> for you to fetch changes up to
> 0660d8cd83938ef5cc91582fe6f951e8935f2d0f:
> 
>   drm: Fix docs warning in drm_damage_helper.c (2018-12-11 15:20:13
> +0100)
> 
> 
> Pull request of 2018-12-13
> 
> 
> Colin Ian King (1):
>   drm/selftest: fix spelling mistake "dimention" -> "dimension"
> 
> Deepak Rawat (1):
>   drm: Fix docs warning in drm_damage_helper.c
> 
>  drivers/gpu/drm/drm_damage_helper.c| 2 +-
>  drivers/gpu/drm/selftests/test-drm_damage_helper.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next-2018-12-13

2019-02-06 Thread Thomas Hellstrom
Hi, Dave

Two minor fixes for the previous vmwgfx-next pull:

The following changes since commit 9a01135b98b9d5a7033c544245da7aad0d886758:

  drm/vmwgfx: Use the standard atomic helpers for page-flip (2018-12-05 
10:09:55 +0100)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-2018-12-13

for you to fetch changes up to 0660d8cd83938ef5cc91582fe6f951e8935f2d0f:

  drm: Fix docs warning in drm_damage_helper.c (2018-12-11 15:20:13 +0100)


Pull request of 2018-12-13


Colin Ian King (1):
  drm/selftest: fix spelling mistake "dimention" -> "dimension"

Deepak Rawat (1):
  drm: Fix docs warning in drm_damage_helper.c

 drivers/gpu/drm/drm_damage_helper.c| 2 +-
 drivers/gpu/drm/selftests/test-drm_damage_helper.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next-2018-12-13

2018-12-13 Thread Thomas Hellstrom
Hi, Dave

Two minor fixes for the previous vmwgfx-next pull:

The following changes since commit 9a01135b98b9d5a7033c544245da7aad0d886758:

  drm/vmwgfx: Use the standard atomic helpers for page-flip (2018-12-05 
10:09:55 +0100)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-2018-12-13

for you to fetch changes up to 0660d8cd83938ef5cc91582fe6f951e8935f2d0f:

  drm: Fix docs warning in drm_damage_helper.c (2018-12-11 15:20:13 +0100)


Pull request of 2018-12-13


Colin Ian King (1):
  drm/selftest: fix spelling mistake "dimention" -> "dimension"

Deepak Rawat (1):
  drm: Fix docs warning in drm_damage_helper.c

 drivers/gpu/drm/drm_damage_helper.c| 2 +-
 drivers/gpu/drm/selftests/test-drm_damage_helper.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next

2018-12-05 Thread Thomas Hellstrom
Hi Dave,

The vmwgfx -next changes for 4.21:
Page flip with damage by Deepak and others,
Various vmwgfx minor fixes anc cleanups.

The following changes since commit 818182dd1097fdc492aaef9b08755ea13274352d:

  Merge tag 'imx-drm-next-2018-12-03' of git://git.pengutronix.de/git/pza/linux 
into drm-next (2018-12-05 15:00:14 +1000)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-2018-12-05

for you to fetch changes up to 9a01135b98b9d5a7033c544245da7aad0d886758:

  drm/vmwgfx: Use the standard atomic helpers for page-flip (2018-12-05 
10:09:55 +0100)


Pull request of 2018-12-05


Colin Ian King (1):
  drm/vmwgfx: remove redundant return ret statement

Deepak Rawat (16):
  drm: Add a new helper to validate damage during atomic_check
  drm: Add helper iterator functions for plane fb_damage_clips blob
  drm/selftest: Add drm damage helper selftest
  drm/vmwgfx: Add a new interface for plane update on a display unit
  drm/vmwgfx: Implement STDU plane update for surface backed fb
  drm/vmwgfx: Implement STDU plane update for BO backed fb
  drm/vmwgfx: Use the new interface for STDU plane update
  drm/vmwgfx: Update comments for stdu plane update
  drm/vmwgfx: Enable FB_DAMAGE_CLIPS property for STDU primary plane
  drm/vmwgfx: Implement SOU plane update for surface backed fb
  drm/vmwgfx: Implement SOU plane update for BO backed fb
  drm/vmwgfx: Use the new interface for SOU plane update
  drm/vmwgfx: Update comments for sou plane update function
  drm/vmwgfx: Enable FB_DAMAGE_CLIPS property for SOU primary plane
  drm/vmwgfx: Use atomic helper function for dirty fb IOCTL
  drm/vmwgfx: Don't clear mode::type anymore

Lukasz Spintzyk (1):
  drm: Add a new plane property to send damage during plane update

Rob Clark (1):
  drm: Add helper to implement legacy dirtyfb

Sinclair Yeh (1):
  MAINTAINERS: Update vmwgfx maintainers

Thomas Hellstrom (3):
  drm/vmwgfx: Fix up the implicit display unit handling
  drm/vmwgfx: Fix a layout race condition
  drm/vmwgfx: Use the standard atomic helpers for page-flip

YueHaibing (1):
  drm/vmwgfx: Remove set but not used variable 'file_priv'

 Documentation/gpu/drm-kms.rst  |  12 +
 MAINTAINERS|   2 -
 drivers/gpu/drm/Makefile   |   2 +-
 drivers/gpu/drm/drm_atomic.c   |  22 +
 drivers/gpu/drm/drm_atomic_helper.c|   3 +
 drivers/gpu/drm/drm_atomic_uapi.c  |  13 +
 drivers/gpu/drm/drm_damage_helper.c| 334 +
 drivers/gpu/drm/drm_mode_config.c  |   6 +
 drivers/gpu/drm/selftests/Makefile |   3 +-
 drivers/gpu/drm/selftests/drm_modeset_selftests.h  |  21 +
 drivers/gpu/drm/selftests/test-drm_damage_helper.c | 811 +
 .../gpu/drm/selftests/test-drm_modeset_common.h|  21 +
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c|   1 -
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h|  11 -
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c|   2 -
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c  |   3 -
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c| 569 +++
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h| 150 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c|  11 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c   | 359 +++--
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c   | 561 ++
 include/drm/drm_damage_helper.h|  99 +++
 include/drm/drm_mode_config.h  |   9 +
 include/drm/drm_plane.h|  42 ++
 include/uapi/drm/drm_mode.h|  19 +
 25 files changed, 2521 insertions(+), 565 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_damage_helper.c
 create mode 100644 drivers/gpu/drm/selftests/test-drm_damage_helper.c
 create mode 100644 include/drm/drm_damage_helper.h
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next

2018-09-28 Thread Thomas Hellstrom
Hi, Dave

I realize this is probably too late for the next merge window. If that's the 
case, then
we can just postpone it for 4.21.

Mostly code reorganizations and optimizations for vmwgfx.
- Move TTM code that's only used by vmwgfx to vmwgfx
- Break out the vmwgfx buffer- and resource validation code to a separate 
source file
- Get rid of a number of atomic operations during command buffer validation.

The following changes since commit 36c9c3c91128e2b892c9be0dd9ee9bd82cbe82ad:

  Merge branch 'drm-next-4.20' of git://people.freedesktop.org/~agd5f/linux 
into drm-next (2018-09-21 09:52:53 +1000)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux vmwgfx-next

for you to fetch changes up to e8c66efbfe3a2e3cbc573f2474a3d51690f1b857:

  drm/vmwgfx: Make user resource lookups reference-free during validation 
(2018-09-28 08:57:09 +0200)


Thomas Hellstrom (19):
  drm/ttm, drm/vmwgfx: Move the lock- and object functionality to the 
vmwgfx driver
  drm/vmwgfx: Add a validation module v2
  drm/vmwgfx: Modify the resource validation interface
  drm/vmwgfx: Adapt execbuf to the new validation api
  drm/vmwgfx: Use new validation interface for the modesetting code v2
  drm/vmwgfx: Use a validation context allocator for relocations and 
validations
  drm/vmwgfx: Reduce the size of buffer object relocations
  drm/vmwgfx: Replace unconditional mutex unlocked warnings with lockdep 
counterpart
  drm/vmwgfx: Remove the resource avail field
  drm/vmwgfx: Remove the user resource destructor check
  drm/vmwgfx: Make the object handles idr-generated
  drm/vmwgfx: Look up objects without taking a reference
  drm/ttm: Export ttm_bo_get_unless_zero()
  drm/vmwgfx: Adapt validation code for reference-free lookups
  drm/vmwgfx: Look up user buffer objects without taking a reference
  drm/vmwgfx: Make buffer object lookups reference-free during validation
  drm/vmwgfx: Don't refcount command-buffer managed resource lookups during 
command buffer validation
  drm/vmwgfx: Don't refcount cotable lookups during command buffer 
validation
  drm/vmwgfx: Make user resource lookups reference-free during validation

 drivers/gpu/drm/ttm/Makefile   |4 +-
 drivers/gpu/drm/ttm/ttm_bo_vm.c|3 +-
 drivers/gpu/drm/vmwgfx/Makefile|4 +-
 drivers/gpu/drm/{ttm => vmwgfx}/ttm_lock.c |   15 +-
 .../drm/ttm => drivers/gpu/drm/vmwgfx}/ttm_lock.h  |0
 drivers/gpu/drm/{ttm => vmwgfx}/ttm_object.c   |   97 +-
 .../ttm => drivers/gpu/drm/vmwgfx}/ttm_object.h|   31 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c |   50 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c |4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c |3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_context.c|   23 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c|2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c|4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h|  147 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c| 1288 
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c  |7 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c|  199 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h|   24 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_prime.c  |2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c   |  124 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h  |7 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c   |   48 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c |   25 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c|7 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_so.c |   11 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c   |   31 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c|   20 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c |  770 
 drivers/gpu/drm/vmwgfx/vmwgfx_validation.h |  227 
 include/drm/ttm/ttm_bo_api.h   |   18 +
 30 files changed, 1966 insertions(+), 1229 deletions(-)
 rename drivers/gpu/drm/{ttm => vmwgfx}/ttm_lock.c (94%)
 rename {include/drm/ttm => drivers/gpu/drm/vmwgfx}/ttm_lock.h (100%)
 rename drivers/gpu/drm/{ttm => vmwgfx}/ttm_object.c (90%)
 rename {include/drm/ttm => drivers/gpu/drm/vmwgfx}/ttm_object.h (94%)
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_validation.h
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next-4.19-3

2018-07-07 Thread Thomas Hellstrom

Dave,

This introduces a header update and support for multisample surfaces.

The following changes since commit 812a954b787ab5a91d62e597a36351628b08d079:

  drm/vmwgfx: Remove an obsolete __le32 conversion (2018-07-03 20:41:23 
+0200)


are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-4.19-3

for you to fetch changes up to 9b07b287aa3ef49695bfad59c1870cd942f579a8:

  drm/vmwgfx: Expose SM4_1 param to user space (2018-07-06 20:16:09 +0200)


Deepak Rawat (7):
  drm/vmwgfx: Update the device headers
  drm/vmwgfx: Add SM4_1 flag
  drm/vmwgfx: Add support for SVGA3dCmdDefineGBSurface_v3
  drm/vmwgfx: Support for SVGA3dSurfaceAllFlags in vmwgfx
  drm/vmwgfx: Add new ioctl for GB surface create and reference
  drm/vmwgfx: Add support for multisampling
  drm/vmwgfx: Expose SM4_1 param to user space

Neha Bhende (2):
  drm/vmwgfx: Add CAP2 support in vmwgfx
  drm/vmwgfx: Add support for SVGA3dCmdIntraSurfaceCopy command

 drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h |  230 +++--
 .../gpu/drm/vmwgfx/device_include/svga3d_devcaps.h |   83 +-
 drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h  |  297 --
 .../gpu/drm/vmwgfx/device_include/svga3d_limits.h  |4 +-
 .../drm/vmwgfx/device_include/svga3d_surfacedefs.h | 1090 
+++-

 .../gpu/drm/vmwgfx/device_include/svga3d_types.h   |  331 --
 drivers/gpu/drm/vmwgfx/device_include/svga_reg.h   |  177 +++-
 drivers/gpu/drm/vmwgfx/device_include/svga_types.h |3 +
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c|   49 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h|   24 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c|   32 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c  |   21 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c|   20 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c   |5 +
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c|  528 ++
 include/uapi/drm/vmwgfx_drm.h  |  107 ++
 16 files changed, 2032 insertions(+), 969 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next-4.19-2

2018-07-07 Thread Thomas Hellstrom

Dave,

A series of cleanups / reorganizations and modesetting changes that
mostly target atomic state validation.

The following changes since commit 07c13bb78c8b8a9cb6ee169659528945038d5e85:

  drm: Change deadlock-avoidance algorithm for the modeset locks. 
(2018-07-03 09:46:05 +0200)


are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-4.19-2

for you to fetch changes up to 812a954b787ab5a91d62e597a36351628b08d079:

  drm/vmwgfx: Remove an obsolete __le32 conversion (2018-07-03 20:41:23 
+0200)



Deepak Rawat (6):
  drm/vmwgfx: Perform topology validation during atomic modeset.
  drm/vmwgfx: Use modeset display memory validation for layout ioctl
  drm/vmwgfx: Perform memory validations only when need full modeset.
  drm/vmwgfx: Remove primary memory validation against mode while 
creating fb
  drm/vmwgfx: Use a mutex to protect gui positioning in 
vmw_display_unit

  drm/vmwgfx: Add gui_x/y to vmw_connector_state

Sinclair Yeh (1):
  drm/vmwgfx: Fix atomic mode set check

Thomas Hellstrom (8):
  drm/vmwgfx: Replace vmw_dma_buffer with vmw_buffer_object
  drm/vmwgfx: Move buffer object related code to vmwgfx_bo.c
  drm/vmwgfx: Optimize the buffer object swap_notify callback somewhat.
  drm/vmwgfx: Use blocking buffer object reserves when evicting 
resources

  drm/vmwgfx: Improve on host message error messages
  drm/vmwgfx: Reorganize the fence wait loop
  drm/vmwgfx: Fix host message module function declarations
  drm/vmwgfx: Remove an obsolete __le32 conversion

 drivers/gpu/drm/vmwgfx/Makefile|4 +-
 drivers/gpu/drm/vmwgfx/device_include/svga_reg.h   |   31 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 1122 


 drivers/gpu/drm/vmwgfx/vmwgfx_context.c|   14 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c|   14 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c |  376 ---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c|   19 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h|  158 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c|   86 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c |   16 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c  |   38 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c  |4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c|  568 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h|   76 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c|   10 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c|6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c|   14 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c|   24 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c   |  705 +---
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c   |  138 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c |   26 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c   |   93 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c|   45 +-
 .../{vmwgfx_buffer.c => vmwgfx_ttm_buffer.c}   |6 +-
 include/uapi/drm/vmwgfx_drm.h  |   61 +-
 25 files changed, 2010 insertions(+), 1644 deletions(-)
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
 delete mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
 rename drivers/gpu/drm/vmwgfx/{vmwgfx_buffer.c => vmwgfx_ttm_buffer.c} 
(99%)

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next WW mutex update

2018-07-03 Thread Thomas Hellstrom
Hi, Dave.

A patchset worked out together with Peter Zijlstra. Ingo is OK with taking
it through the DRM tree:

This is a small fallout from a work to allow batching WW mutex locks and
unlocks.

Our Wound-Wait mutexes actually don't use the Wound-Wait algorithm but
the Wait-Die algorithm. One could perhaps rename those mutexes tree-wide to
"Wait-Die mutexes" or "Deadlock Avoidance mutexes". Another approach suggested
here is to implement also the "Wound-Wait" algorithm as a per-WW-class
choice, as it has advantages in some cases. See for example

http://www.mathcs.emory.edu/~cheung/Courses/554/Syllabus/8-recv+serial/deadlock-compare.html

Now Wound-Wait is a preemptive algorithm, and the preemption is implemented
using a lazy scheme: If a wounded transaction is about to go to sleep on
a contended WW mutex, we return -EDEADLK. That is sufficient for deadlock
prevention. Since with WW mutexes we also require the aborted transaction to
sleep waiting to lock the WW mutex it was aborted on, this choice also provides
a suitable WW mutex to sleep on. If we were to return -EDEADLK on the first
WW mutex lock after the transaction was wounded whether the WW mutex was
contended or not, the transaction might frequently be restarted without a wait,
which is far from optimal. Note also that with the lazy preemption scheme,
contrary to Wait-Die there will be no rollbacks on lock contention of locks
held by a transaction that has completed its locking sequence.

The modeset locks are then changed from Wait-Die to Wound-Wait since the
typical locking pattern of those locks very well matches the criterion for
a substantial reduction in the number of rollbacks. For reservation objects,
the benefit is more unclear at this point and they remain using Wait-Die.

The following changes since commit eab976693153b9854bfa83d131374748f6ca4280:

  Merge tag 'drm-misc-next-2018-06-27' of 
git://anongit.freedesktop.org/drm/drm-misc into drm-next (2018-06-28 13:29:07 
+1000)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux vmwgfx-next

for you to fetch changes up to 07c13bb78c8b8a9cb6ee169659528945038d5e85:

  drm: Change deadlock-avoidance algorithm for the modeset locks. (2018-07-03 
09:46:05 +0200)


Peter Ziljstra (1):
  locking: WW mutex cleanup

Thomas Hellstrom (2):
  locking: Implement an algorithm choice for Wound-Wait mutexes
  drm: Change deadlock-avoidance algorithm for the modeset locks.

 Documentation/locking/ww-mutex-design.txt |  65 --
 drivers/dma-buf/reservation.c |   2 +-
 include/linux/ww_mutex.h  |  45 ++--
 kernel/locking/locktorture.c  |   2 +-
 kernel/locking/mutex.c| 345 +++---
 kernel/locking/test-ww_mutex.c|   2 +-
 lib/locking-selftest.c|   2 +-
 7 files changed, 344 insertions(+), 119 deletions(-)
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[GIT PULL] vmwgfx-next for 4.17

2018-03-22 Thread Thomas Hellstrom
Hi, Dave.

A relative large set of various improvements for vmwgfx. Some of them
have been around for a while, some are relatively new, but functionality
should have been tested in our standalone repo.

There was a kbuild test robot compilation failure on Debian for
"drm/vmwgfx: Add a cpu blit utility that can be used for page-backed bos",
but that should've been fixed now, both v1 and v2 of the patch have been
sent to dri-devel.

The following changes since commit 78230c46ec0a91dd4256c9e54934b3c7095a7ee3:

  Merge tag 'omapdrm-4.17' of 
git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into drm-next 
(2018-03-21 14:07:03 +1000)

are available in the Git repository at:

  git://people.freedesktop.org/~thomash/linux vmwgfx-next

for you to fetch changes up to 43bfefedd0281ef476f8154397cd283a710d8baf:

  drm/vmwgfx: Bump version patchlevel and date (2018-03-22 12:08:24 +0100)


Arnd Bergmann (1):
  drm/vmwgfx: use monotonic event timestamps

Deepak Rawat (6):
  drm/vmwgfx: Avoid iterating over display unit if crtc is available
  drm/vmwgfx: Move surface copy cmd to atomic function
  drm/vmwgfx: Remove drm_crtc_arm_vblank_event from atomic flush
  drm/vmwgfx: Move screen object page flip to atomic function
  drm/vmwgfx: Move the stdu vblank event to atomic function
  drm/vmwgfx: Send the correct nonblock option for atomic_commit

Himanshu Jha (1):
  drm/vmwgfx: Use kasprintf

Thomas Hellstrom (12):
  drm/vmwgfx: Cursor update fixes
  drm/ttm: Clean up kmap_atomic_prot selection code
  drm/ttm: Export the ttm_k[un]map_atomic_prot API.
  drm/vmwgfx: Add a cpu blit utility that can be used for page-backed bos
  drm/vmwgfx: Use the cpu blit utility for framebuffer to screen target 
blits
  drm/vmwgfx: Fix multiple command buffer context use
  drm/vmwgfx: Avoid pinning fbdev framebuffers
  drm/vmwgfx: Improve on hibernation
  drm/vmwgfx: Get rid of the device-private suspended member
  drm/vmwgfx: Stricter count of legacy surface device resources
  drm/vmwgfx: Unpin the screen object backup buffer when not used
  drm/vmwgfx: Bump version patchlevel and date

 drivers/gpu/drm/ttm/ttm_bo_util.c|  85 ++--
 drivers/gpu/drm/vmwgfx/Makefile  |   2 +-
 drivers/gpu/drm/vmwgfx/device_include/svga_reg.h |  12 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 506 +++
 drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c   |  24 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c   |  57 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c   |  51 +++
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c  |  80 ++--
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h  |  64 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c   | 104 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c|   9 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c  | 177 +---
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h  |  21 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c  |  13 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c |  23 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | 163 +---
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 280 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c  |   8 +-
 include/drm/ttm/ttm_bo_api.h |   4 +
 19 files changed, 1227 insertions(+), 456 deletions(-)
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Git PULL] vmwgfx-next

2017-08-28 Thread Sinclair Yeh
Hi Dave,

The following changes since commit 7c0059dd832cc686bf0febefdcf8295cdd93007f:

  Merge branch 'linux-4.14' of git://github.com/skeggsb/linux into drm-next 
(2017-08-23 05:32:26 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~syeh/repos_linux drm-vmwgfx-next

for you to fetch changes up to d78acfe934e3b9f533f72ee3dde0982935fc2b32:

  drm/vmwgfx: Bump the version for fence FD support (2017-08-28 17:53:32 +0200)


Sinclair Yeh (4):
  drm/vmwgfx: Prepare to support fence fd
  drm/vmwgfx: Add support for imported Fence File Descriptor
  drm/vmwgfx: Add export fence to file descriptor support
  drm/vmwgfx: Bump the version for fence FD support

Thomas Hellstrom (5):
  drm/vmwgfx: Don't use drm_irq_[un]install
  drm/vmwgfx: Move irq bottom half processing to threads
  drm/vmwgfx: Restart command buffers after errors
  drm/vmwgfx: Support the NOP_ERROR command
  drm/vmwgfx: Fix incorrect command header offset at restart

 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c  | 242 

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |  11 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |  39 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 148 
+
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c   | 104 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.h   |   4 +
 drivers/gpu/drm/vmwgfx/vmwgfx_irq.c | 111 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c |   2 +-
 include/uapi/drm/vmwgfx_drm.h   |  11 ++-
 9 files changed, 511 insertions(+), 161 deletions(-)

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [Git PULL] vmwgfx-next

2017-08-28 Thread Sinclair Yeh
On Tue, Aug 29, 2017 at 06:35:38AM +1000, Dave Airlie wrote:
> On 29 August 2017 at 06:22, Sinclair Yeh  wrote:
> > Hi Dave,
> >
> > The following changes since commit 7c0059dd832cc686bf0febefdcf8295cdd93007f:
> 
> Just a reminder, -next branches need to be sent before rc6 if you want
> them in the next kernel.

Sorry about this.  We were finalizing a few patches.

> 
> I'll take a look at this branch later since it's pretty late in the
> day, but I'm merging some other stuff that was stuck so I'll see if
> this has much impact.

Ok, if it doesn't work, then we'll just get onto the next train.

thanks,

Sinclair

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [Git PULL] vmwgfx-next

2017-08-28 Thread Dave Airlie
On 29 August 2017 at 06:22, Sinclair Yeh  wrote:
> Hi Dave,
>
> The following changes since commit 7c0059dd832cc686bf0febefdcf8295cdd93007f:

Just a reminder, -next branches need to be sent before rc6 if you want
them in the next kernel.

I'll take a look at this branch later since it's pretty late in the
day, but I'm merging some other stuff that was stuck so I'll see if
this has much impact.

Dave.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next

2017-04-21 Thread Sinclair Yeh
Hi Dave,

The following changes since commit 6b1462700b4a6a1244c018cdd2fa97ded43090a0:

  Merge tag 'drm-misc-next-fixes-2017-04-20' of 
git://anongit.freedesktop.org/git/drm-misc into drm-next (2017-04-21 13:51:59 
+1000)

are available in the git repository at:

  git://people.freedesktop.org/~syeh/repos_linux drm-vmwgfx-next

for you to fetch changes up to 7a9d2001a16f11d30a1e128a067cf1aef2a99a70:

  drm/vmwgfx: Convert macro to octal representation (2017-04-21 09:25:47 -0700)


Øyvind A. Holm (1):
  drm/vmwgfx: Convert macro to octal representation

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [git pull] vmwgfx-next

2017-04-03 Thread Sinclair Yeh
On Sun, Apr 02, 2017 at 08:11:12PM +0200, Daniel Vetter wrote:
> On Fri, Mar 31, 2017 at 04:32:55PM -0700, Sinclair Yeh wrote:
> > Hi Dave,
> > 
> > This series enables atomic mode set for vmwgfx.  A number of features and
> > larger fixes are also included.
> > 
> > The following changes since commit 8cd3ac52963f2e99f4c21d1c9ce89531ce66c2d6:
> > 
> >   Merge branch 'drm-next-4.12' of git://people.freedesktop.org/~agd5f/linux 
> > into drm-next (2017-03-31 11:47:18 +1000)
> > 
> > are available in the git repository at:
> > 
> >   git://people.freedesktop.org/~syeh/repos_linux drm-vmwgfx-next
> > 
> > for you to fetch changes up to 28c954299cd2b5cb5411816c9eeaf3f51ed4638e:
> > 
> >   drm/vmwgfx: Properly check display/scanout surface size (2017-03-31 
> > 15:21:20 -0700)
> > 
> > 
> > Sinclair Yeh (18):
> >   drm/vmwgfx: Removed unused snooper.crtc field
> >   drm/vmwgfx: Add universal plane support
> >   drm/vmwgfx: CRTC atomic state
> >   drm/vmwgfx: Plane atomic state
> >   drm/vmwgfx: Connector atomic state
> >   drm/vmwgfx: Add and connect CRTC helper functions
> >   drm/vmwgfx: Add and connect plane helper functions
> >   drm/vmwgfx: Add and connect connector helper function
> >   drm/vmwgfx: Add and connect atomic state object check/commit
> >   drm/vmwgfx: Fixes to vmwgfx_fb
> >   drm/vmwgfx: Switch over to internal atomic API for STDU
> >   drm/vmwgfx: Switch over to internal atomic API for SOU and LDU
> >   drm/vmwgfx: Turn on DRIVER_ATOMIC flag
> >   drm/vmwgfx: Explicityly track screen target width and height
> >   drm/vmwgfx: Skipping fbdev fb pinning for ldu
> >   drm/vmwgfx: Fix LDU X blank screen until mode change issue
> >   drm/vmwgfx: Support topology greater than texture size
> >   drm/vmwgfx: Properly check display/scanout surface size
> > 
> > Thomas Hellstrom (3):
> >   drm/vmwgfx: Introduce a simple resource type
> >   drm/vmwgfx: Re-implement the stream resource as a simple resource.
> >   drm/vmwgfx: Define an overlaid handle_close ioctl.
> > 
> > Øyvind A. Holm (1):
> >   drm/vmwgfx: Revert "drm/vmwgfx: Replace numeric parameter like 0444 
> > with macro"
> 
> Quite a pile of conflicts of this against the drm-misc-next pull. Nothing
> too hairy, but just more reasons to remove all the vmwgfx special cases
> again :-)
> Also noticed that you've forgotten to garabge collect the legacy cursor
> functions. Probably a good reason for having vfunc implementations in the
> same file as the vtable so that they can all be static and the compiler
> will tell you when you forget to remove stuff. vmwgfx and radeon/amdgpu
> are anti-pattern drivers in this regard imo. On top it's annoying when you
> always have to change a prototype in 2 places when doing a subsystem-wide
> change :-)

Thanks, I'll clean this up.
 
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [git pull] vmwgfx-next

2017-04-02 Thread Daniel Vetter
On Fri, Mar 31, 2017 at 04:32:55PM -0700, Sinclair Yeh wrote:
> Hi Dave,
> 
> This series enables atomic mode set for vmwgfx.  A number of features and
> larger fixes are also included.
> 
> The following changes since commit 8cd3ac52963f2e99f4c21d1c9ce89531ce66c2d6:
> 
>   Merge branch 'drm-next-4.12' of git://people.freedesktop.org/~agd5f/linux 
> into drm-next (2017-03-31 11:47:18 +1000)
> 
> are available in the git repository at:
> 
>   git://people.freedesktop.org/~syeh/repos_linux drm-vmwgfx-next
> 
> for you to fetch changes up to 28c954299cd2b5cb5411816c9eeaf3f51ed4638e:
> 
>   drm/vmwgfx: Properly check display/scanout surface size (2017-03-31 
> 15:21:20 -0700)
> 
> 
> Sinclair Yeh (18):
>   drm/vmwgfx: Removed unused snooper.crtc field
>   drm/vmwgfx: Add universal plane support
>   drm/vmwgfx: CRTC atomic state
>   drm/vmwgfx: Plane atomic state
>   drm/vmwgfx: Connector atomic state
>   drm/vmwgfx: Add and connect CRTC helper functions
>   drm/vmwgfx: Add and connect plane helper functions
>   drm/vmwgfx: Add and connect connector helper function
>   drm/vmwgfx: Add and connect atomic state object check/commit
>   drm/vmwgfx: Fixes to vmwgfx_fb
>   drm/vmwgfx: Switch over to internal atomic API for STDU
>   drm/vmwgfx: Switch over to internal atomic API for SOU and LDU
>   drm/vmwgfx: Turn on DRIVER_ATOMIC flag
>   drm/vmwgfx: Explicityly track screen target width and height
>   drm/vmwgfx: Skipping fbdev fb pinning for ldu
>   drm/vmwgfx: Fix LDU X blank screen until mode change issue
>   drm/vmwgfx: Support topology greater than texture size
>   drm/vmwgfx: Properly check display/scanout surface size
> 
> Thomas Hellstrom (3):
>   drm/vmwgfx: Introduce a simple resource type
>   drm/vmwgfx: Re-implement the stream resource as a simple resource.
>   drm/vmwgfx: Define an overlaid handle_close ioctl.
> 
> Øyvind A. Holm (1):
>   drm/vmwgfx: Revert "drm/vmwgfx: Replace numeric parameter like 0444 
> with macro"

Quite a pile of conflicts of this against the drm-misc-next pull. Nothing
too hairy, but just more reasons to remove all the vmwgfx special cases
again :-)

Also noticed that you've forgotten to garabge collect the legacy cursor
functions. Probably a good reason for having vfunc implementations in the
same file as the vtable so that they can all be static and the compiler
will tell you when you forget to remove stuff. vmwgfx and radeon/amdgpu
are anti-pattern drivers in this regard imo. On top it's annoying when you
always have to change a prototype in 2 places when doing a subsystem-wide
change :-)

Cheers, Daniel

>  drivers/gpu/drm/vmwgfx/Makefile |3 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |   13 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |2 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_fb.c  |   27 ++-
>  drivers/gpu/drm/vmwgfx/vmwgfx_kms.c |  
> +++--
>  drivers/gpu/drm/vmwgfx/vmwgfx_kms.h |  143 --
>  drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c |  373 
> ---
>  drivers/gpu/drm/vmwgfx/vmwgfx_resource.c|  254 
> 
>  drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h   |   40 
>  drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c|  510 
> +++-
>  drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c |  256 
> 
>  drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c|  937 
> 
>  drivers/gpu/drm/vmwgfx/vmwgfx_surface.c |   15 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_va.c  |  168 
>  include/uapi/drm/vmwgfx_drm.h   |   24 +++
>  15 files changed, 2856 insertions(+), 1020 deletions(-)
>  create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c
>  create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_va.c
> 
> ___
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next

2017-03-31 Thread Sinclair Yeh
Hi Dave,

This series enables atomic mode set for vmwgfx.  A number of features and
larger fixes are also included.

The following changes since commit 8cd3ac52963f2e99f4c21d1c9ce89531ce66c2d6:

  Merge branch 'drm-next-4.12' of git://people.freedesktop.org/~agd5f/linux 
into drm-next (2017-03-31 11:47:18 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~syeh/repos_linux drm-vmwgfx-next

for you to fetch changes up to 28c954299cd2b5cb5411816c9eeaf3f51ed4638e:

  drm/vmwgfx: Properly check display/scanout surface size (2017-03-31 15:21:20 
-0700)


Sinclair Yeh (18):
  drm/vmwgfx: Removed unused snooper.crtc field
  drm/vmwgfx: Add universal plane support
  drm/vmwgfx: CRTC atomic state
  drm/vmwgfx: Plane atomic state
  drm/vmwgfx: Connector atomic state
  drm/vmwgfx: Add and connect CRTC helper functions
  drm/vmwgfx: Add and connect plane helper functions
  drm/vmwgfx: Add and connect connector helper function
  drm/vmwgfx: Add and connect atomic state object check/commit
  drm/vmwgfx: Fixes to vmwgfx_fb
  drm/vmwgfx: Switch over to internal atomic API for STDU
  drm/vmwgfx: Switch over to internal atomic API for SOU and LDU
  drm/vmwgfx: Turn on DRIVER_ATOMIC flag
  drm/vmwgfx: Explicityly track screen target width and height
  drm/vmwgfx: Skipping fbdev fb pinning for ldu
  drm/vmwgfx: Fix LDU X blank screen until mode change issue
  drm/vmwgfx: Support topology greater than texture size
  drm/vmwgfx: Properly check display/scanout surface size

Thomas Hellstrom (3):
  drm/vmwgfx: Introduce a simple resource type
  drm/vmwgfx: Re-implement the stream resource as a simple resource.
  drm/vmwgfx: Define an overlaid handle_close ioctl.

Øyvind A. Holm (1):
  drm/vmwgfx: Revert "drm/vmwgfx: Replace numeric parameter like 0444 with 
macro"

 drivers/gpu/drm/vmwgfx/Makefile |3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |   13 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c  |   27 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c |  
+++--
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h |  143 --
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c |  373 
---
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c|  254 
 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h   |   40 
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c|  510 
+++-
 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c |  256 
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c|  937 

 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c |   15 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_va.c  |  168 
 include/uapi/drm/vmwgfx_drm.h   |   24 +++
 15 files changed, 2856 insertions(+), 1020 deletions(-)
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_va.c

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[git pull] vmwgfx-next

2017-01-30 Thread Sinclair Yeh
Hi Dave,

This is to address what we've discussed, moving some of the minor changes
into a drm-next request.

-

The following changes since commit f0493e653f9679114d1dfd54ab88b54ce95576e1:

  drm/mgag200: Added support for the new device G200eH3 (2017-01-23 11:57:08 
+1000)

are available in the git repository at:

  git://people.freedesktop.org/~syeh/repos_linux drm-vmwgfx-next

for you to fetch changes up to 5d25fde23b3176c7f94d2a992cb9762707d7c2a0:

  drm/vmwgfx: Use kmemdup instead of kmalloc and memcpy (2017-01-26 21:26:17 
-0800)


Shyam Saini (1):
  drm/vmwgfx: Use kmemdup instead of kmalloc and memcpy

Sinclair Yeh (1):
  drm/vmwgfx: Fix depth input into drm_mode_legacy_fb_format

Thomas Hellstrom (4):
  drm/vmwgfx: Clear uninitialized fields of a parameter
  drm/vmwgfx: Annotate ignored return values
  drm/vmwgfx: Clear an uninitialized struct member
  drm/vmwgfx: Fix a potential integer overflow

 drivers/gpu/drm/vmwgfx/device_include/svga3d_surfacedefs.h | 2 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | 2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c| 2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 3 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c| 4 ++--
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c| 7 +++
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c   | 4 ++--
 7 files changed, 12 insertions(+), 12 deletions(-)


___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[PULL] vmwgfx-next-160520

2016-05-20 Thread Thomas Hellstrom
From: "Thomas Hellstrom" 

Dave,

Small changes, One lockdep warning fix for 4.6,
and a host logging infrastructure.

The following changes since commit 7c10ddf87472c07eabc206e273dc59f77c700858:

  Merge branch 'drm-uapi-extern-c-fixes' of https://github.com/evelikov/linux 
into drm-next (2016-05-17 16:34:43 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-160520

for you to fetch changes up to f921791314811afa00bb7fbbd40f51bd3b8eff01:

  drm/vmwgfx: Report vmwgfx version to vmware.log (2016-05-20 17:40:07 +0200)


Pull request of 2016-05-20


Sinclair Yeh (2):
  drm/vmwgfx: Add VMWare host messaging capability
  drm/vmwgfx: Report vmwgfx version to vmware.log

Thomas Hellstrom (1):
  drm/vmwgfx: Kill some lockdep warnings

 drivers/gpu/drm/vmwgfx/Makefile  |   2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c  |  20 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h  |   7 +
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c  |  27 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c  | 416 +++
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.h  | 191 
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c |   3 +
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c |   3 +
 8 files changed, 653 insertions(+), 16 deletions(-)
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_msg.h


[PULL] vmwgfx-next-160316

2016-03-16 Thread Thomas Hellstrom
The following changes since commit f2c488212b511f7eadef78c564f1bff8f64db231:

  Merge branch 'linux-4.6' of git://github.com/skeggsb/linux into drm-next 
(2016-03-14 10:49:40 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-160316

for you to fetch changes up to 5476aa46ff0377229f780c42e77b7e7e756040c7:

  drm/vmwgfx: Bump driver minor (2016-03-16 08:00:31 +0100)


Pull request of 2016-03-16


Charmaine Lee (1):
  drm/vmwgfx: Add DXGenMips support

Thomas Hellstrom (12):
  drm/vmwgfx: Fix a screen object framebuffer dirty corner case
  drm/vmwgfx: Fix screen object page flips for large framebuffers
  drm/vmwgfx: Rework screen target page flips v2
  drm/vmwgfx: Break out implicit fb code
  drm/vmwgfx: Add implicit framebuffer checks to the screen target code
  drm/vmwgfx: Add suggested screen x and y connector properties
  drm/vmwgfx: Add connector properties to switch between explicit and 
implicit placement
  drm/vmwgfx: Calculate the cursor position based on the crtc gui origin
  drm/vmwgfx: Default to explicit crtc placement for screen targets and 
screen objects
  drm/vmwgfx: Send a hotplug event at master_set
  drm/vmwgfx: Allow the UPDATE_LAYOUT ioctl from control nodes
  drm/vmwgfx: Bump driver minor

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |   9 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c |  22 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 163 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h |  16 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c |  19 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c| 179 -
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c| 453 +++-
 8 files changed, 496 insertions(+), 368 deletions(-)


[git pull] vmwgfx-next

2015-11-06 Thread Thomas Hellstrom
Dave,

One is fix for a regression in 4.3, One irq locking rework.


The following changes since commit b76ff5ea1cf6fe648e7ce2b84e636f8a95849a0b:

  drm/vmwgfx: Replace iowrite/ioread with volatile memory accesses (2015-11-02 
00:16:05 -0800)

are available in the git repository at:

  git://people.freedesktop.org/~thomash/linux vmwgfx-next

for you to fetch changes up to d2e8851a909c76c6f0b34553f2c9993808bc1d58:

  drm/vmwgfx: Relax irq locking somewhat (2015-11-06 16:15:40 +0100)


Thomas Hellstrom (2):
  drm/vmwgfx: Properly flush cursor updates and page-flips
  drm/vmwgfx: Relax irq locking somewhat

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c  |   2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h  |   9 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c |  23 ++--
 drivers/gpu/drm/vmwgfx/vmwgfx_irq.c  | 104 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c  |   2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c |   2 +
 6 files changed, 42 insertions(+), 100 deletions(-)


[git pull] vmwgfx-next

2015-11-02 Thread Thomas Hellstrom
Dave,

Changes for vmwgfx for 4.4. If there is time, I'll follow up with a series
to move to threaded irqs.

The following changes since commit a76edb8cec0cc864c8b72fa7e84a72336e033e23:

  Merge tag 'topic/drm-misc-2015-10-22' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2015-10-30 09:49:06 
+1000)

are available in the git repository at:

  git://people.freedesktop.org/git/~thomash/linux vmwgfx-next

for you to fetch changes up to b76ff5ea1cf6fe648e7ce2b84e636f8a95849a0b:

  drm/vmwgfx: Replace iowrite/ioread with volatile memory accesses (2015-11-02 
00:16:05 -0800)


Dan Williams (1):
  drm/vmwgfx: switch from ioremap_cache to memremap

Thomas Hellstrom (2):
  drm/vmwgfx: Turn off support for multisample count != 0 v2
  drm/vmwgfx: Replace iowrite/ioread with volatile memory accesses

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |   8 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |  28 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c   |  24 +++
 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c| 109 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c   |  38 ---
 drivers/gpu/drm/vmwgfx/vmwgfx_irq.c |   9 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c |  23 +++
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c |   2 +
 8 files changed, 140 insertions(+), 101 deletions(-)


[git pull] vmwgfx-next-15-09-01

2015-09-01 Thread Thomas Hellstrom
Dave,

A single commit. Workaround for
https://bugzilla.redhat.com/show_bug.cgi?id=1227193

The following changes since commit 36d4e87b497d9cb3bf8e1bb2f803c7aa41dfb463:

  drm/vmwgfx: Remove duplicate ttm_bo_device_release (2015-08-21 00:38:23 -0700)

are available in the git repository at:

  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-15-09-01

for you to fetch changes up to aa3469ce7afd86a670d22375a64f1b5a06707725:

  drm/vmwgfx: Allow dropped masters render-node like access on legacy nodes v2 
(2015-09-01 02:06:02 -0700)


Pull request of 2015-09-01


Thomas Hellstrom (1):
  drm/vmwgfx: Allow dropped masters render-node like access on legacy nodes 
v2

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 7 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c | 6 ++
 2 files changed, 12 insertions(+), 1 deletion(-)


[git pull] vmwgfx-next-15-08-21

2015-08-21 Thread Thomas Hellstrom
Dave,

The third pull request for 4.3. Contains two fixes for regressions introduced
with previous pull requests.

The following changes since commit 294947a5c7f6d228b70fcc51a89527e74a38a2c5:

  Merge branch 'vmwgfx-next' of git://people.freedesktop.org/~thomash/linux 
into drm-next (2015-08-17 16:03:48 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~thomash/linux.git tags/vmwgfx-next-15-08-21

for you to fetch changes up to 36d4e87b497d9cb3bf8e1bb2f803c7aa41dfb463:

  drm/vmwgfx: Remove duplicate ttm_bo_device_release (2015-08-21 00:38:23 -0700)


Pull request of 15-08-21


Thomas Hellstrom (2):
  drm/vmwgfx: Fix a circular locking dependency in the fbdev code
  drm/vmwgfx: Remove duplicate ttm_bo_device_release

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |  1 -
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c  | 29 +
 2 files changed, 17 insertions(+), 13 deletions(-)


[git pull] vmwgfx-next gl3 support

2015-08-14 Thread Thomas Hellstrom
Hi, Dave.
This pull request is on top of the earlier vmwgfx pull request
(sent out 15-08-06)

A couple of fixes from the previous pull request as well as gl3 support.
There is one drm core change, an export of a previously private function.

The following changes since commit 6a5278ee34e7fd4b051fd107a94a099778458d8c:

  drm/vmwgfx: Fix an uninitialized value (2015-08-05 14:01:12 +0200)

are available in the git repository at:

  git://people.freedesktop.org/~thomash/linux 

for you to fetch changes up to 54fbde8a94a8a78547597215c9e4be590d075ee0:

  drm/vmwgfx: Fix copyright headers (2015-08-12 10:06:56 -0700)


Charmaine Lee (1):
  drm/vmwgfx: Command parser fixes for DX

Neha Bhende (1):
  drm/vmwgfx: Add command parser support for a couple of DX commands

Sinclair Yeh (5):
  drm/vmwgfx: Fixed topology boundary checking for Screen Targets
  drm/vmwgfx: Fix crash when unloading vmwgfx v2
  drm/vmwgfx: Update device includes for DX device functionality
  drm/vmwgfx: Add DX query support. Various fixes.
  drm/vmwgfx: Fix copyright headers

Thomas Hellstrom (3):
  drm/vmwgfx: Fix framebuffer creation on older hardware
  drm: export the DRM permission check code
  drm/vmwgfx: Initial DX support

 drivers/gpu/drm/drm_ioctl.c|3 +-
 drivers/gpu/drm/vmwgfx/Makefile|1 +
 .../gpu/drm/vmwgfx/device_include/includeCheck.h   |3 +
 .../gpu/drm/vmwgfx/device_include/svga3d_caps.h|  110 +
 drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h | 2071 +++
 .../gpu/drm/vmwgfx/device_include/svga3d_devcaps.h |  457 
 drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h  | 1487 +++
 .../gpu/drm/vmwgfx/device_include/svga3d_limits.h  |   99 +
 drivers/gpu/drm/vmwgfx/device_include/svga3d_reg.h |   50 +
 .../drm/vmwgfx/device_include/svga3d_surfacedefs.h | 1204 +
 .../gpu/drm/vmwgfx/device_include/svga3d_types.h   | 1633 
 .../drm/vmwgfx/{ => device_include}/svga_escape.h  |2 +-
 .../drm/vmwgfx/{ => device_include}/svga_overlay.h |   10 +-
 .../gpu/drm/vmwgfx/{ => device_include}/svga_reg.h |  499 ++--
 drivers/gpu/drm/vmwgfx/device_include/svga_types.h |   46 +
 .../gpu/drm/vmwgfx/device_include/vm_basic_types.h |   21 +
 .../drm/vmwgfx/device_include/vmware_pack_begin.h  |   25 +
 .../drm/vmwgfx/device_include/vmware_pack_end.h|   25 +
 drivers/gpu/drm/vmwgfx/svga3d_reg.h| 2675 
 drivers/gpu/drm/vmwgfx/svga3d_surfacedefs.h|  973 ---
 drivers/gpu/drm/vmwgfx/svga_types.h|   48 -
 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c| 1294 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_binding.h|  209 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c |   11 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c |7 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c |   26 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_context.c|  764 +++---
 drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c|  662 +
 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c |2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c|   76 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h|  191 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c| 1955 --
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c |2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c  |2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.h  |2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c   |   33 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c|2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c  |6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_irq.c|2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c|   92 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h|2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c|2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c|  171 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c|6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_reg.h|6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c   |  151 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h  |   14 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c   |2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c |  486 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_so.c |  555 
 drivers/gpu/drm/vmwgfx/vmwgfx_so.h |  160 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c   |5 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c|  114 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c   |2 +-
 include/drm/drmP.h |1 +
 include/uapi/drm/vmwgfx_drm.h  |   37 +-
 56 files changed, 13631 insertions(+), 4863 deletions(-)
 create mode 100644 

[git pull] vmwgfx-next

2015-08-06 Thread Thomas Hellstrom
Dave,

Take 2 implementing screen targets, this time with the fbdev code adjusted
accordingly.

Also there is an implementation of register-driven command buffers, that
overrides the FIFO ring for command processing. It's needed for our upcoming
hardware revision.

The following changes since commit dcd14dd957f02ef679c61325a2221a0574bdcab3:

  Merge tag 'topic/connector-locking-2015-07-23' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2015-07-24 14:30:29 
+1000)

are available in the git repository at:

  git://people.freedesktop.org/~thomash/linux vmwgfx-next

for you to fetch changes up to 6a5278ee34e7fd4b051fd107a94a099778458d8c:

  drm/vmwgfx: Fix an uninitialized value (2015-08-05 14:01:12 +0200)


Sinclair Yeh (5):
  drm/vmwgfx: SVGA device definition update
  drm/vmwgfx: Refactor vmw_gb_surface_define_ioctl()
  vmwgfx: Major KMS refactoring / cleanup in preparation of screen targets
  drm/vmwgfx: Implement screen targets
  drm/vmwgfx: Replace SurfaceDMA usage with SurfaceCopy in 2D VMs

Thomas Hellstrom (20):
  drm/vmwgfx: Fix an fb unlocking bug
  vmwgfx: Rework device initialization
  drm/vmwgfx: Fix OTABLE takedown
  vmwgfx: Update device headers for command buffers.
  drm/vmwgfx: Add command buffer support v3
  drm/vmwgfx: Fix an overlay lockdep error
  drm/vmwgfx: Add an interface to pin a resource v3
  drm/vmwgfx: Add "quirk" to handling command verification exceptions
  drm/vmwgfx: Introduce a pin count to allow for recursive pinning v2
  drm/vmwgfx: Add kms helpers for dirty- and readback functions
  drm/vmwgfx: Convert screen objects to the new helpers
  drm/vmwgfx: Convert screen targets to new helpers v3
  drm/vmwgfx: Avoid cmdbuf alloc sleeping if !TASK_RUNNING
  drm/vmwgfx: Add a kernel interface to create a framebuffer v2
  drm/vmwgfx: Implement fbdev on kms v2
  drm/vmwgfx: Reinstate the legacy display system dirty callback
  drm/vmwgfx: Fix kms preferred mode sorting
  drm/vmwgfx: Kill a bunch of sparse warnings
  drm/vmwgfx: Fix compiler warning with 32-bit dma_addr_t
  drm/vmwgfx: Fix an uninitialized value

 drivers/gpu/drm/vmwgfx/Makefile |2 +-
 drivers/gpu/drm/vmwgfx/svga3d_reg.h |   60 +-
 drivers/gpu/drm/vmwgfx/svga3d_surfacedefs.h |   67 +-
 drivers/gpu/drm/vmwgfx/svga_reg.h   |  187 
 drivers/gpu/drm/vmwgfx/svga_types.h |3 +
 drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c  |   13 +
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c  | 1304 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_context.c |   20 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c  |  182 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |  440 
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |  162 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c |  292 +++--
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c  |  558 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c   |8 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c|  122 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c   |   12 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_irq.c |   45 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 1593 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h |  192 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c |   47 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c |   43 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c |   10 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_reg.h |6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c|  130 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c|  556 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c  |   14 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c| 1265 +
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c |  215 ++--
 include/uapi/drm/vmwgfx_drm.h   |1 +
 29 files changed, 5892 insertions(+), 1657 deletions(-)
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c


[PULL] vmwgfx-next

2015-04-01 Thread Thomas Hellstrom
Dave,

I see you haven't pulled this one yet. Please don't do that as there is
a problem with fbdev and screen targets.
I'll resend a pull request when the code is fixed.

Thanks,
Thomas


On 03/11/2015 08:02 PM, Thomas Hellstrom wrote:
> Dave,
>
> The first pull request for 4.1. Mainly Sinclair's screen target work.
>
> The following changes since commit 03be70050c85768e9ce7c0d0887110d1b629e127:
>
>   Merge tag 'topic/drm-misc-2015-03-10' of 
> git://anongit.freedesktop.org/drm-intel into drm-next (2015-03-11 12:15:06 
> +1000)
>
> are available in the git repository at:
>
>   git://people.freedesktop.org/~thomash 
>
> for you to fetch changes up to 51850be6365084dc3ff6516bb9d89c6d7e3a98f1:
>
>   drm/ttm: Add lockdep annotation to the TTM lock (2015-03-11 11:57:40 -0700)
>
> 
> Sinclair Yeh (4):
>   drm/vmwgfx: SVGA device definition update
>   drm/vmwgfx: Refactor vmw_gb_surface_define_ioctl()
>   drm/vmwgfx: Major KMS refactoring / cleanup in preparation of screen 
> targets
>   drm/vmwgfx: Implement screen targets
>
> Thomas Hellstrom (3):
>   drm/vmwgfx: Add an interface to pin a resource v3
>   drm/vmwgfx: Add "quirk" to handling command verification exceptions
>   drm/ttm: Add lockdep annotation to the TTM lock
>
>  drivers/gpu/drm/ttm/ttm_lock.c  |   73 +-
>  drivers/gpu/drm/vmwgfx/Makefile |2 +-
>  drivers/gpu/drm/vmwgfx/svga3d_reg.h |   56 +-
>  drivers/gpu/drm/vmwgfx/svga3d_surfacedefs.h |   67 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |   21 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |   52 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c |   10 +
>  drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c|4 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c   |4 +
>  drivers/gpu/drm/vmwgfx/vmwgfx_kms.c |  608 +++-
>  drivers/gpu/drm/vmwgfx/vmwgfx_kms.h |   97 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c |   45 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_mob.c |3 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c |6 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_resource.c|   91 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c|  433 -
>  drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c| 1360 
> +++
>  drivers/gpu/drm/vmwgfx/vmwgfx_surface.c |  199 ++--
>  include/drm/ttm/ttm_lock.h  |   13 +-
>  include/uapi/drm/vmwgfx_drm.h   |1 +
>  20 files changed, 2470 insertions(+), 675 deletions(-)
>  create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
> ___
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel



[PULL] vmwgfx-next

2015-03-11 Thread Thomas Hellstrom
Dave,

The first pull request for 4.1. Mainly Sinclair's screen target work.

The following changes since commit 03be70050c85768e9ce7c0d0887110d1b629e127:

  Merge tag 'topic/drm-misc-2015-03-10' of 
git://anongit.freedesktop.org/drm-intel into drm-next (2015-03-11 12:15:06 
+1000)

are available in the git repository at:

  git://people.freedesktop.org/~thomash 

for you to fetch changes up to 51850be6365084dc3ff6516bb9d89c6d7e3a98f1:

  drm/ttm: Add lockdep annotation to the TTM lock (2015-03-11 11:57:40 -0700)


Sinclair Yeh (4):
  drm/vmwgfx: SVGA device definition update
  drm/vmwgfx: Refactor vmw_gb_surface_define_ioctl()
  drm/vmwgfx: Major KMS refactoring / cleanup in preparation of screen 
targets
  drm/vmwgfx: Implement screen targets

Thomas Hellstrom (3):
  drm/vmwgfx: Add an interface to pin a resource v3
  drm/vmwgfx: Add "quirk" to handling command verification exceptions
  drm/ttm: Add lockdep annotation to the TTM lock

 drivers/gpu/drm/ttm/ttm_lock.c  |   73 +-
 drivers/gpu/drm/vmwgfx/Makefile |2 +-
 drivers/gpu/drm/vmwgfx/svga3d_reg.h |   56 +-
 drivers/gpu/drm/vmwgfx/svga3d_surfacedefs.h |   67 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |   21 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |   52 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c |   10 +
 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c|4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c   |4 +
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c |  608 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h |   97 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c |   45 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c |3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c |6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c|   91 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c|  433 -
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c| 1360 +++
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c |  199 ++--
 include/drm/ttm/ttm_lock.h  |   13 +-
 include/uapi/drm/vmwgfx_drm.h   |1 +
 20 files changed, 2470 insertions(+), 675 deletions(-)
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c


[PULL] vmwgfx-next

2014-12-03 Thread Thomas Hellstrom
Dave,

A number of bug fixes.

The following changes since commit 4fcd01d0f34645710ac92d5523e26019428b0806:

  drm: rcar-du: Fix NULL encoder pointer dereference (2014-12-03 08:28:48 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~thomash/linux 

for you to fetch changes up to b8ccd1e490de8d9b9a968f859c003a10882ad8c8:

  drm/vmwgfx: (Re)bind shaders to MOBs with the correct offset (2014-12-03 
00:48:14 -0800)


Thomas Hellstrom (4):
  drm/vmwgfx: Fix error printout on signals pending
  drm/vmwgfx: Don't use memory accounting for kernel-side fence objects
  drm/vmwgfx: Fix fence event code
  drm/vmwgfx: (Re)bind shaders to MOBs with the correct offset

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c|  8 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c  | 39 +++---
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c |  2 +-
 3 files changed, 15 insertions(+), 34 deletions(-)


[PULL] vmwgfx-next

2014-07-04 Thread Thomas Hellstrom
Dave, A compat shader namespace fix that at the same tame makes much of the
code more generic in preparation for future use.

The following changes since commit bc1dfff04a5d4064ba0db1fab13f84ab4f333d2b:

  Merge branch 'drm-nouveau-next' of 
git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next (2014-06-11 
16:28:10 +1000)

are available in the git repository at:


  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-2014-07-04

for you to fetch changes up to 18e4a4669c5023eb1157f2a3f1bf6ca2b8535572:

  drm/vmwgfx: Fix compat shader namespace (2014-07-04 12:12:09 +0200)


Pull request of 2014-07-04


Thomas Hellstrom (1):
  drm/vmwgfx: Fix compat shader namespace

 drivers/gpu/drm/vmwgfx/Makefile|   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c | 341 +
 drivers/gpu/drm/vmwgfx/vmwgfx_context.c|  38 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c|   7 -
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h|  74 --
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c| 227 +
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c | 396 +
 7 files changed, 673 insertions(+), 413 deletions(-)
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c


[PULL] vmwgfx-next

2014-04-04 Thread Thomas Hellstrom
Dave,
The second vmwgfx pull request for the 3.15 merge window.
Contains a fbdev fix by Christopher Friedt, one fix for a locking order
violation introduced in 3.14 (hit when using queries) and finally a
removal of the DRM_AUTH requirement around some vmwgfx IOCTLS where the
caller is already required to have an open handle to the object.

The following changes since commit 2844ea3f252331cc0ecf3ae74f6226db2f580f8a:

  Merge branch 'primary-plane' of git://people.freedesktop.org/~robclark/linux 
into drm-next (2014-04-02 12:09:09 +1000)

are available in the git repository at:


  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-2014-04-04

for you to fetch changes up to aa6de142c901cd2d90ef08db30ae87da214bedcc:

  drm/vmwgfx: correct fb_fix_screeninfo.line_length (2014-04-03 09:34:06 +0200)


Pull request of 2014-04-04


Christopher Friedt (1):
  drm/vmwgfx: correct fb_fix_screeninfo.line_length

Thomas Hellstrom (2):
  drm/vmwgfx: Fix query buffer locking order violation
  drm/vmwgfx: Remove authorization requirements around some more ioctls

 drivers/gpu/drm/vmwgfx/vmwgfx_context.c |2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |6 +++---
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c  |5 -
 3 files changed, 8 insertions(+), 5 deletions(-)


[PULL] vmwgfx-next

2014-03-28 Thread Thomas Hellstrom
Dave,
vmwgfx render-node support and drm + ttm changes it depends upon.


The following changes since commit 60f2b4af1258c05e6b037af866be81abc24438f7:

  drm/i915: fix build warning on 32-bit (v2) (2014-03-28 13:40:48 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-2014-03-28

for you to fetch changes up to 03c5b8f077218bec50f1355b76dea405a7112878:

  drm/vmwgfx: Bump driver minor and date (2014-03-28 14:19:05 +0100)


Pull request of 2014-03-28


Thomas Hellstrom (16):
  drm: Have the crtc code only reference master from legacy nodes v2
  drm: Break out ioctl permission check to a separate function v2
  drm: Make control nodes master-less v3
  drm: Improve on minor type helpers v3
  drm: Remove the minor master list
  drm: Protect the master management with a drm_device::master_mutex v3
  drm: Add a function to get the ioctl flags
  drm/vmwgfx: Use a per-device semaphore for reservation protection
  drm/vmwgfx: Reinstate and tighten security around legacy master model
  drm/vmwgfx: Drop authentication requirement on UNREF ioctls
  drm/vmwgfx: Allow prime fds in the surface reference ioctls
  drm/vmwgfx: Tighten security around surface sharing v2
  drm/ttm: Add a ttm_ref_object_exists function
  drm/vmwgfx: Tighten the security around buffer maps
  drm/vmwgfx: Enable render nodes
  drm/vmwgfx: Bump driver minor and date

 drivers/gpu/drm/drm_crtc.c   |   14 +--
 drivers/gpu/drm/drm_drv.c|  132 +++
 drivers/gpu/drm/drm_fops.c   |   26 +++---
 drivers/gpu/drm/drm_stub.c   |   48 +-
 drivers/gpu/drm/ttm/ttm_object.c |   46 ++
 drivers/gpu/drm/vmwgfx/vmwgfx_context.c  |5 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c   |   15 ++--
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c  |  143 +++---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h  |9 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c  |5 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c   |9 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c|   10 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c  |   15 ++--
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c |   24 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c   |5 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c  |  143 +-
 include/drm/drmP.h   |   61 -
 include/drm/ttm/ttm_object.h |4 +
 include/uapi/drm/vmwgfx_drm.h|   12 ++-
 19 files changed, 500 insertions(+), 226 deletions(-)


[PULL] vmwgfx-next request 3

2014-01-21 Thread Thomas Hellstrom
Dave,

Just a single fix for sparse/smatch warnings introduced by the previous
vmwgfx-next pull.

Please feel free to defer this to the first -fixes pull. In that case I
will include this patch in the first -fixes pull request.

/Thomas

The following changes since commit cfd72a4c2089aa3938f37281a34d6eb3306d5fd8:

  Merge branch 'drm-intel-next' of 
git://people.freedesktop.org/~danvet/drm-intel into drm-next (2014-01-20 
10:21:54 +1000)

are available in the git repository at:


  git://people.freedesktop.org/~thomash/linux vmwgfx-next

for you to fetch changes up to 3e894a6259964618e29809b844bffaaf9849067b:

  drm/vmwgfx: Fix recently introduced sparse / smatch warnings and errors 
(2014-01-21 13:22:18 +0100)


vmwgfx-next 2014-01-21 pull request


Thomas Hellstrom (1):
  drm/vmwgfx: Fix recently introduced sparse / smatch warnings and errors

 drivers/gpu/drm/vmwgfx/vmwgfx_context.c |2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |4 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c |   45 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c  |1 +
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c |1 +
 5 files changed, 25 insertions(+), 28 deletions(-)


[PULL] vmwgfx-next request 2

2014-01-17 Thread Thomas Hellstrom
Dave,

Pull request for 3.14. One not so urgent fix, One huge device update.

The pull request corresponds to the patches sent out on dri-devel, except:
[PATCH 02/33], review tag typo pointed out by Matt Turner.
[PATCH 04/33], dropped. The new surface formats are never used.

The upcoming vmware svga2 hardware version 11 will introduce the concept
of "guest backed objects" or -resources. The device will in principle
get all
of its memory from the guest, which has big advantages from the device
point of view.

This means that vmwgfx contexts, shaders and surfaces need to be backed
by guest memory in the form of buffer objects called MOBs, presumably
short for MemoryOBjects, which are bound to the device in a special way.

This patch series introduces guest backed object support. Some new IOCTLs
are added to allocate these new guest backed object, and to optionally
provide
them with a backing MOB.

There is an update to the gallium driver that comes with this update, and
it will be pushed in the near timeframe presumably to a separate mesa branch
before merged to master.

The following changes since commit c5416d661daa9ccef4f42259ad0d48e28b5f950f:

  gpu: fix qxl missing crc32_le (2014-01-14 13:08:37 +1000)

are available in the git repository at:

  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-2014-01-17

for you to fetch changes up to 1985f99987ff04e1bb0405101dd8e25cf1b6b037:

  drm/vmwgfx: Invalidate surface on non-readback unbind (2014-01-17
09:12:26 +0100)


Pull request of 2014-01-17


Jakob Bornecrantz (1):
  drm/vmwgfx: Invalidate surface on non-readback unbind

Thomas Hellstrom (31):
  drm/vmwgfx: Fix the driver for large dma addresses
  drm/vmwgfx: Update the svga3d register header file for new device
version
  drm/vmwgfx: Update the driver user-space interface for
guest-backed objects
  drm/vmwgfx: Replace vram_size with prim_bb_mem for calculation of
max resolution
  drm/vmwgfx: Update the svga register definition
  drm/vmwgfx: Adapt capability reporting to new hardware version
  drm/vmwgfx: Add MOB management
  drm/vmwgfx: Hook up MOBs to TTM as a separate memory type
  drm/vmwgfx: Read bounding box memory from the appropriate register
  drm/vmwgfx: Add the possibility to validate a buffer as a MOB
  drm/vmwgfx: Hook up guest-backed queries
  drm/vmwgfx: Detach backing store from its resources when it is evicted
  drm/vmwgfx: Hook up guest-backed contexts
  drm/vmwgfx: Hook up guest-backed surfaces
  drm/vmwgfx: Add guest-backed shaders
  drm/vmwgfx: Validate guest-backed shader const commands
  drm/vmwgfx: Add new unused (by user-space) commands to the verifier
  drm/vmwgfx: Enable 3D for new hardware version
  drm/vmwgfx: Fix up the vmwgfx_drv.h header for new files
  drm/vmwgfx: Extend the command verifier to handle guest-backed on
/ off
  drm/vmwgfx: Implement a buffer object synccpu ioctl.
  drm/vmwgfx: Add a parameter to get max MOB memory size
  drm/vmwgfx: Block the BIND_SHADERCONSTS command
  drm/vmwgfx: Track context bindings and scrub them upon exiting execbuf
  drm/vmwgfx: Persistent tracking of context bindings
  drm/vmwgfx: Ditch the vmw_dummy_query_bo_prepare function
  drm/vmwgfx: Use the linux DMA api also for MOBs
  drm/vmwgfx: Update otable definitions
  drm/vmwgfx: Fix surface framebuffer check for guest-backed surfaces
  drm/vmwgfx: Implement 64-bit Otable- and MOB binding v2
  drm/vmwgfx: Silence the device command verifier

Zack Rusin (1):
  drm/vmwgfx: Make sure that the multisampling is off

 drivers/gpu/drm/vmwgfx/Makefile   |   2 +-
 drivers/gpu/drm/vmwgfx/svga3d_reg.h   | 718 -
 drivers/gpu/drm/vmwgfx/svga_reg.h |  10 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c| 174 -
 drivers/gpu/drm/vmwgfx/vmwgfx_context.c   | 531 
 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c|   8 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c   | 209 --
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h   | 211 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c   | 872
+++---
 drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c  | 107 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c   | 160 +
 drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c |  15 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c |  42 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c   |   8 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c   | 659 +++
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c  | 195 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c| 440 +
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c   | 467 +-
 include/uapi/drm/vmwgfx_drm.h | 261 
 19 files changed, 4716 insertions(+), 373 

[PULL] vmwgfx-next request 1

2014-01-13 Thread Thomas Hellstrom
Dave,

First 3.14 pull request for vmwgfx,

I hope to be able squeeze in one more with a huge device update,
but lets see what happens.

Anyway, nothing big here, Three more code cleanup patches from Rashika
Kheria, and one TTM/vmwgfx patch from me that tightens security around TTM
objects enough for them to opened using prime objects from render nodes:

Previously any client could access a shared buffer using the "name", also
without actually opening it. Now a reference is required, and for render nodes
such a reference is intended to only be obtainable using a prime fd.

/Thomas 

The following changes since commit 859ae233cd0ee76b6143f948ba1cb6b0b4c342f8:

  Merge tag 'drm-intel-next-2013-12-13' of 
git://people.freedesktop.org/~danvet/drm-intel into drm-next (2013-12-23 
10:46:07 +1000)

are available in the git repository at:


  git://people.freedesktop.org/~thomash/linux tags/vmwgfx-next-2014-01-13

for you to fetch changes up to 94844cf06568d9592f985e4bd0b9d759a56043c6:

  drivers: gpu: Mark functions as static in vmwgfx_fence.c (2014-01-08 13:45:56 
+0100)


vmwgfx-next 2014-01-13 pull request


Rashika Kheria (3):
  drivers: gpu: Mark functions as static in vmwgfx_kms.c
  drivers: gpu: Mark functions as static in vmwgfx_buffer.c
  drivers: gpu: Mark functions as static in vmwgfx_fence.c

Thomas Hellstrom (1):
  drm/ttm: ttm object security fixes for render nodes

 drivers/gpu/drm/ttm/ttm_object.c|   90 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c  |8 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c   |9 ++--
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c |   12 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_surface.c |3 +-
 include/drm/ttm/ttm_object.h|   18 ++-
 6 files changed, 87 insertions(+), 53 deletions(-)


[PULL] vmwgfx-next-3.13

2013-11-12 Thread Thomas Hellstrom
Hi, Dave!

A resource eviction fix, and a fix for compilation / sparse problems
from the previous pull.

The following changes since commit d92d985177c495aab53c7167f310a7efb1853918:

  drm/vmwgfx: Use the linux DMA api to get valid device addresses of pages 
(2013-11-06 03:57:16 -0800)

are available in the git repository at:

  git://people.freedesktop.org/~thomash/linux vmwgfx-next-3.13

for you to fetch changes up to e14cd9536bd11b174a849da91c7a26bbc980330d:

  drm/vmwgfx: Fix a couple of compile / sparse warnings and errors (2013-11-12 
23:47:32 -0800)


Thomas Hellstrom (2):
  drm/vmwgfx: Resource evict fixes
  drm/vmwgfx: Fix a couple of compile / sparse warnings and errors

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c  |9 ++-
 drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c  |7 +++--
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c |   42 +-
 3 files changed, 49 insertions(+), 9 deletions(-)