Skip to content
  1. Jan 12, 2018
  2. Jan 10, 2018
    • Dan Carpenter's avatar
      drm/vmwgfx: Potential off by one in vmw_view_add() · 0d9cac0c
      Dan Carpenter authored
      The vmw_view_cmd_to_type() function returns vmw_view_max (3) on error.
      It's one element beyond the end of the vmw_view_cotables[] table.
      
      My read on this is that it's possible to hit this failure.  header->id
      comes from vmw_cmd_check() and it's a user controlled number between
      1040 and 1225 so we can hit that error.  But I don't have the hardware
      to test this code.
      
      Fixes: d80efd5c
      
       ("drm/vmwgfx: Initial DX support")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      Cc: <stable@vger.kernel.org>
      0d9cac0c
    • Thierry Reding's avatar
      drm/tegra: sor: Fix hang on Tegra124 eDP · d780537f
      Thierry Reding authored
      The SOR0 found on Tegra124 and Tegra210 only supports eDP and LVDS and
      therefore has a slightly different clock tree than the SOR1 which does
      not support eDP, but HDMI and DP instead.
      
      Commit e1335e2f ("drm/tegra: sor: Reimplement pad clock") breaks
      setups with eDP because the sor->clk_out clock is uninitialized and
      therefore setting the parent clock (either the safe clock or either of
      the display PLLs) fails, which can cause hangs later on since there is
      no clock driving the module.
      
      Fix this by falling back to the module clock for sor->clk_out on those
      setups. This guarantees that the module will always be clocked by an
      enabled clock and hence prevents those hangs.
      
      Fixes: e1335e2f
      
       ("drm/tegra: sor: Reimplement pad clock")
      Reported-by: default avatarGuillaume Tucker <guillaume.tucker@collabora.com>
      Tested-by: default avatarJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
      d780537f
  3. Jan 09, 2018
  4. Jan 08, 2018
  5. Jan 07, 2018
  6. Jan 06, 2018
  7. Jan 05, 2018