Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/vmwgfx: Add debug message for layout change ioctl

Add debug code to check user-space layout change request.

Signed-off-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>

authored by

Deepak Rawat and committed by
Thomas Hellstrom
745adc3f e7f7287b

+16
+8
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
··· 1334 1334 DRM_DEBUG_DRIVER(fmt, ##__VA_ARGS__) 1335 1335 1336 1336 /** 1337 + * VMW_DEBUG_KMS - Debug output for kernel mode-setting 1338 + * 1339 + * This macro is for debugging vmwgfx mode-setting code. 1340 + */ 1341 + #define VMW_DEBUG_KMS(fmt, ...) \ 1342 + DRM_DEBUG_DRIVER(fmt, ##__VA_ARGS__) 1343 + 1344 + /** 1337 1345 * Inline helper functions 1338 1346 */ 1339 1347
+8
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
··· 2339 2339 2340 2340 if (!arg->num_outputs) { 2341 2341 struct drm_rect def_rect = {0, 0, 800, 600}; 2342 + VMW_DEBUG_KMS("Default layout x1 = %d y1 = %d x2 = %d y2 = %d\n", 2343 + def_rect.x1, def_rect.y1, 2344 + def_rect.x2, def_rect.y2); 2342 2345 vmw_du_update_layout(dev_priv, 1, &def_rect); 2343 2346 return 0; 2344 2347 } ··· 2362 2359 2363 2360 drm_rects = (struct drm_rect *)rects; 2364 2361 2362 + VMW_DEBUG_KMS("Layout count = %u\n", arg->num_outputs); 2365 2363 for (i = 0; i < arg->num_outputs; i++) { 2366 2364 struct drm_vmw_rect curr_rect; 2367 2365 ··· 2378 2374 drm_rects[i].y1 = curr_rect.y; 2379 2375 drm_rects[i].x2 = curr_rect.x + curr_rect.w; 2380 2376 drm_rects[i].y2 = curr_rect.y + curr_rect.h; 2377 + 2378 + VMW_DEBUG_KMS(" x1 = %d y1 = %d x2 = %d y2 = %d\n", 2379 + drm_rects[i].x1, drm_rects[i].y1, 2380 + drm_rects[i].x2, drm_rects[i].y2); 2381 2381 2382 2382 /* 2383 2383 * Currently this check is limiting the topology within