1. 22 8月, 2012 1 次提交
  2. 22 5月, 2012 1 次提交
  3. 13 2月, 2012 3 次提交
  4. 30 1月, 2012 1 次提交
    • R
      vmwgfx: Fix assignment in vmw_framebuffer_create_handle · bf9c05d5
      Ryan Mallon 提交于
      The assignment of handle in vmw_framebuffer_create_handle doesn't actually do anything useful and is incorrectly assigning an integer value to a pointer argument. It appears that this is a typo and should be dereferencing handle rather than assigning to it directly. This fixes a bug where an undefined handle value is potentially returned to user-space.
      Signed-off-by: NRyan Mallon <rmallon@gmail.com>
      Reviewed-by: Jakob Bornecrantz<jakob@vmware.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      bf9c05d5
  5. 22 12月, 2011 1 次提交
    • X
      vmwgfx: fix incorrect VRAM size check in vmw_kms_fb_create() · 8a783896
      Xi Wang 提交于
      Commit e133e737 didn't correctly fix the integer overflow issue.
      
      -	unsigned int required_size;
      +	u64 required_size;
      	...
      	required_size = mode_cmd->pitch * mode_cmd->height;
      -	if (unlikely(required_size > dev_priv->vram_size)) {
      +	if (unlikely(required_size > (u64) dev_priv->vram_size)) {
      
      Note that both pitch and height are u32.  Their product is still u32 and
      would overflow before being assigned to required_size.  A correct way is
      to convert pitch and height to u64 before the multiplication.
      
      	required_size = (u64)mode_cmd->pitch * (u64)mode_cmd->height;
      
      This patch calls the existing vmw_kms_validate_mode_vram() for
      validation.
      Signed-off-by: NXi Wang <xi.wang@gmail.com>
      Reviewed-and-tested-by: NThomas Hellstrom <thellstrom@vmware.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      8a783896
  6. 20 12月, 2011 1 次提交
  7. 19 12月, 2011 4 次提交
  8. 02 12月, 2011 1 次提交
  9. 30 11月, 2011 1 次提交
  10. 16 11月, 2011 1 次提交
  11. 11 11月, 2011 3 次提交
  12. 07 11月, 2011 7 次提交
  13. 02 11月, 2011 1 次提交
    • T
      vmwgfx: Reinstate the update_layout ioctl · cd2b89e7
      Thomas Hellstrom 提交于
      We need to redefine a connector as "connected" if it matches a window
      in the host preferred GUI layout.
      Otherwise "smart" window managers would turn on Xorg outputs that we don't
      want to be on.
      
      This reinstates the update_layout and adds the following information to
      the modesetting system.
      a) Connection status <-> Equivalent to real hardware connection status
      b) Preferred mode <-> Equivalent to real hardware reading EDID
      c) Host window position <-> Equivalent to a real hardware scanout address
      dynamic register.
      
      It should be noted that there is no assumption here about what should be
      displayed and where. Only how to access the host windows.
      
      This also bumps minor to signal availability of the new IOCTL.
      
      Based on code originally written by Jakob Bornecrantz
      Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      cd2b89e7
  14. 23 10月, 2011 2 次提交
  15. 18 10月, 2011 1 次提交
  16. 10 10月, 2011 1 次提交
  17. 05 10月, 2011 10 次提交