summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
diff options
context:
space:
mode:
authorCharmaine Lee <charmainel@vmware.com>2014-02-12 12:07:38 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2014-02-12 12:17:00 +0100
commit857aea1c5769386b1905bb38fbb4464c800b2df6 (patch)
treebc8647e127ab98a1ea818d40a7a7c2a1b7cddc3d /drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
parent8e67bbbc51dbeaba480e83fe2162eb08083a0459 (diff)
downloadop-kernel-dev-857aea1c5769386b1905bb38fbb4464c800b2df6.zip
op-kernel-dev-857aea1c5769386b1905bb38fbb4464c800b2df6.tar.gz
drm/vmwgfx: Get maximum mob size from register SVGA_REG_MOB_MAX_SIZE
This patch queries the register SVGA_REG_MOB_MAX_SIZE for the maximum size of a single mob. Signed-off-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
index f9881f9..47b7094 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
@@ -102,6 +102,9 @@ int vmw_getparam_ioctl(struct drm_device *dev, void *data,
vmw_fp->gb_aware = true;
param->value = dev_priv->max_mob_pages * PAGE_SIZE;
break;
+ case DRM_VMW_PARAM_MAX_MOB_SIZE:
+ param->value = dev_priv->max_mob_size;
+ break;
default:
DRM_ERROR("Illegal vmwgfx get param request: %d\n",
param->param);
OpenPOWER on IntegriCloud