Hi,<div><br></div><div>I &#39;m trying to test KMS functionality of latest vmwgfx module.</div><div>I tried the code from</div><div> <a href="http://permalink.gmane.org/gmane.comp.video.dri.devel/42908">http://permalink.gmane.org/gmane.comp.video.dri.devel/42908</a></div>
<div><br></div><div>as a simple test case, but all I get is a black screen instead</div><div>of white as would be expected.</div><div><br></div><div>Setup:</div><div>VMWare Workstation 8.0.0</div><div>Host &amp; Guest distro: kubuntu oneiric (11.10)</div>
<div>libdrm: 2.4.26+git20111003.c82ef03e from xorg-edgers ppa</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">vmwgfx module: latest git version from <a href="http://freedesktop.org">freedesktop.org</a> </div>
<div><br></div><div>dmesg output (vmwgfx initialization / capabilities)</div><div><div>[    3.696893] vmwgfx 0000:00:0f.0: PCI INT A -&gt; GSI 16 (level, low) -&gt; IRQ 16</div><div>[    3.697188] [vmwgfx] Capabilities:</div>
<div>[    3.697191] [vmwgfx]   Rect copy.</div><div>[    3.697193] [vmwgfx]   Cursor.</div><div>[    3.697196] [vmwgfx]   Cursor bypass.</div><div>[    3.697198] [vmwgfx]   Cursor bypass 2.</div><div>[    3.697200] [vmwgfx]   8bit emulation.</div>
<div>[    3.697202] [vmwgfx]   Alpha cursor.</div><div>[    3.697204] [vmwgfx]   3D.</div><div>[    3.697206] [vmwgfx]   Extended Fifo.</div><div>[    3.697208] [vmwgfx]   Multimon.</div><div>[    3.697210] [vmwgfx]   Pitchlock.</div>
<div>[    3.697212] [vmwgfx]   Irq mask.</div><div>[    3.697214] [vmwgfx]   Display Topology.</div><div>[    3.697216] [vmwgfx]   GMR.</div><div>[    3.697218] [vmwgfx]   Traces.</div><div>[    3.697220] [vmwgfx]   GMR2.</div>
<div>[    3.697222] [vmwgfx]   Screen Object 2.</div><div>[    3.697224] [vmwgfx] Max GMR ids is 64</div><div>[    3.697226] [vmwgfx] Max GMR descriptors is 4096</div><div>[    3.697229] [vmwgfx] Max number of GMR pages is 196608</div>
<div>[    3.697231] [vmwgfx] Max dedicated hypervisor surface memory is 786432 kiB</div><div>[    3.697234] [vmwgfx] VRAM at 0xd0000000 size is 131072 kiB</div><div>[    3.697236] [vmwgfx] MMIO at 0xc8800000 size is 2048 kiB</div>
<div>[    3.697239] [vmwgfx] global init.</div><div>[    3.700262] [vmwgfx] width 640</div><div>[    3.700276] [vmwgfx] height 480</div><div>[    3.700289] [vmwgfx] bpp 32</div><div>[    3.704308] [vmwgfx] Fifo max 0x00200000 min 0x00001000 cap 0x0000077f</div>
<div>[    3.728297] [vmwgfx] Screen objects system initialized</div><div>[    3.728303] [vmwgfx] Detected device 3D availability.</div><div>[    3.728401] [vmwgfx] Initialized vmwgfx 2.1.0 20110927 for 0000:00:0f.0 on minor 0</div>
</div><div><br></div><div>I &#39;m trying with ./modeset -s 4@6:1024x768</div><div><br></div><div>Running the above under strace shows that all underlying ioctls succeed, so it looks like</div><div>this code should work.</div>
<div><br></div><div>It looks like the update command is not sent to the card because if I add the parameter</div><div>svga.forceTraces = &quot;TRUE&quot; to the .vmx file of the VM, I see a white rectangle as expected</div>
<div>(the mode still doesn&#39;t look right though, it looks like the size of the rectangle is 640x480</div><div>instead of 1024x768)</div><div><br></div><div>I also get in the vmware.log when I run the above:</div><div><div>
2011-10-18T19:21:30.849+02:00| vcpu-0| I120: MKS enabling SVGA</div><div>2011-10-18T19:21:30.909+02:00| vcpu-0| I120: Guest display topology changed: numDisplays 0</div><div>2011-10-18T19:21:30.910+02:00| vcpu-0| I120: Guest display topology changed: numDisplays 0</div>
<div>2011-10-18T19:21:30.934+02:00| vcpu-0| I120: Guest display topology changed: numDisplays 0</div><div>2011-10-18T19:21:30.935+02:00| vcpu-0| I120: Guest display topology changed: numDisplays 0</div><div>2011-10-18T19:21:30.957+02:00| vcpu-0| I120: Guest display topology changed: numDisplays 0</div>
<div>2011-10-18T19:21:30.974+02:00| mks| W110: MKS-EmuSVGA: Unsupported GMR image format 0x00002020</div><div>2011-10-18T19:21:38.837+02:00| vcpu-0| I120: Guest display topology changed: numDisplays 0</div><div>2011-10-18T19:21:38.940+02:00| mks| I120: MKS disabling SVGA</div>
</div><div><br></div><div>Any ideas on what may be going wrong? VMWare would make a pretty cool platform</div><div>to experiment with several features of the modern open graphics stack like wayland,</div><div>plymouth, flickerless boot, integrated kernel debugger, multiseat etc etc.</div>
<div><br></div><div>I &#39;ll be happy to provide more debugging information on this problem as needed.</div><div><br></div><div>Thanks in advance,</div><div>Aani</div><div><br></div><div><br></div><div><br></div><div> </div>
<div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8">