1. 20 11月, 2012 13 次提交
    • S
      drm/udl: Add missing static storage class specifiers in udl_connector.c · b27b6d32
      Sachin Kamat 提交于
      Fixes the following sparse warnings:
      drivers/gpu/drm/udl/udl_connector.c:80:20: warning:
      symbol 'udl_best_single_encoder' was not declared. Should it be static?
      drivers/gpu/drm/udl/udl_connector.c:93:5: warning:
      symbol 'udl_connector_set_property' was not declared. Should it be static?
      drivers/gpu/drm/udl/udl_connector.c:106:35: warning:
      symbol 'udl_connector_helper_funcs' was not declared. Should it be static?
      drivers/gpu/drm/udl/udl_connector.c:112:28: warning:
      symbol 'udl_connector_funcs' was not declared. Should it be static?
      Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      b27b6d32
    • S
      drm/drm_stub: Remove unnecessary null check before kfree. · 66141d3d
      Sachin Kamat 提交于
      kfree on a null argument is a no-op.
      Silences the following smatch warning:
      drivers/gpu/drm/drm_stub.c:496 drm_put_dev() info:
      redundant null check on dev->devname calling kfree()
      Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      66141d3d
    • S
      drm/fb_helper: Fix potential NULL pointer dereference · 8c5eaca0
      Sachin Kamat 提交于
      kcalloc returns NULL on failure. Hence check for the return value
      and exit on error to avoid NULL pointer dereference.
      
      Fixes the following smatch errors:
      drivers/gpu/drm/drm_fb_helper.c:1271 drm_setup_crtcs() error:
      potential null dereference 'modes'.  (kcalloc returns null)
      drivers/gpu/drm/drm_fb_helper.c:1272 drm_setup_crtcs() error:
      potential null dereference 'crtcs'.  (kcalloc returns null)
      Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      8c5eaca0
    • S
      drm/crtc: Fix potential NULL pointer dereference · e655d122
      Sachin Kamat 提交于
      drm_property_create_blob() could return NULL in which case NULL pointer
      dereference error (on connector->edid_blob_ptr) is possible. Return if
      connector->edid_blob_ptr is NULL.
      
      Fixes the following smatch error:
      drivers/gpu/drm/drm_crtc.c:3186 drm_mode_connector_update_edid_property()
      error: potential null dereference 'connector->edid_blob_ptr'.
      (drm_property_create_blob returns null)
      Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      e655d122
    • S
      drm/crtc: Remove redundant NULL check before kfree · 9e1c156f
      Sachin Kamat 提交于
      kfree() on a NULL input is a no-op. Hence remove the check.
      Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      9e1c156f
    • V
    • A
      drm: fix documentation for drm_crtc_set_mode() · 4c9287c6
      Alex Deucher 提交于
      x and y parameters are offsets, not width/height
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      4c9287c6
    • S
      drm: get cea video id code for a given display mode · a4799037
      Stephane Marchesin 提交于
      This patch adds support for getting CEA Video ID Code for a given
      display mode after matching with edid_cea_modes list. Its index in
      the list added with one, gives the desired code.
      
      This exported function will be used by hdmi drivers for composing
      AVI info frame data.
      Signed-off-by: NStephane Marchesin <marcheu@chromium.org>
      Signed-off-by: NRahul Sharma <rahul.sharma@samsung.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      a4799037
    • S
      drm/drm_fb_helper: Remove unnecessary braces · 96081cdf
      Sachin Kamat 提交于
      Remove unnecessary braces to silence the following type of
      checkpatch warnings:
      WARNING: braces {} are not necessary for single statement blocks
      WARNING: braces {} are not necessary for any arm of this statement
      Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      96081cdf
    • S
      drm/fb_helper: Convert printk to pr_* and dev_* · d56b1b9d
      Sachin Kamat 提交于
      Converted printks to pr_* and dev_* to silence checkpatch warnings.
      Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      d56b1b9d
    • S
      drm/fb_helper: Fix checkpatch errors · 6c91083f
      Sachin Kamat 提交于
      Fixes the following checkpatch errors:
      ERROR: trailing statements should be on next line
      98: FILE: gpu/drm/drm_fb_helper.c:98:
      	case DRM_FORCE_OFF: s = "OFF"; break;
      ERROR: trailing statements should be on next line
      99: FILE: gpu/drm/drm_fb_helper.c:99:
      	case DRM_FORCE_ON_DIGITAL: s = "ON - dig"; break;
      ERROR: trailing statements should be on next line
      101: FILE: gpu/drm/drm_fb_helper.c:101:
      	case DRM_FORCE_ON: s = "ON"; break;
      Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      6c91083f
    • D
      drm: fix returning -EINVAL on setmaster if another master is active · 08bec5b4
      David Herrmann 提交于
      We link every DRM "file_priv" to a "drm_master" structure. Currently, the
      drmSetMaster() call returns 0 when there is _any_ active master associated
      with the "drm_master" structure of the calling "file_priv". This means,
      that after drmSetMaster() we are not guaranteed to be DRM-Master and might
      not be able to perform mode-setting.
      
      A way to reproduce this is by starting weston with the DRM backend from
      within an X-console (eg., xterm). Because the xserver's "drm_master" is
      currently active, weston is assigned to the same master but is inactive
      because its VT is inactive and the xserver is still active. But when
      "fake-activating" weston, it calls drmSetMaster(). With current behavior
      this returns "0/success" and weston thinks that it is DRM-Master, even
      though it is not (as the xserver is still DRM-Master).
      Expected behavior would be drmSetMaster() to return -EINVAL, because the
      xserver is still DRM-Master. This patch changes exactly that.
      
      The only way this bogus behavior would be useful is for clients to check
      whether their associated "drm_master" is currently the active DRM-Master.
      But this logic fails if no DRM-Master is currently active at all. Because
      then the client itself would become DRM-Master (if it is root) and this
      makes this whole thing useles.
      
      Also note that the second "if-condition":
        file_priv->minor->master != file_priv->master
      is always true and can be skipped.
      Signed-off-by: NDavid Herrmann <dh.herrmann@googlemail.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      08bec5b4
    • D
      Merge branch 'for-airlied' of git://people.freedesktop.org/~danvet/drm-intel into drm-next · 9fabd4ee
      Dave Airlie 提交于
      Daniel writes:
      Highlights of this -next round:
      - ivb fdi B/C fixes
      - hsw sprite/plane offset fixes from Damien
      - unified dp/hdmi encoder for hsw, finally external dp support on hsw
        (Paulo)
      - kill-agp and some other prep work in the gtt code from Ben
      - some fb handling fixes from Ville
      - massive pile of patches to align hsw VGA with the spec and make it
        actually work (Paulo)
      - pile of workarounds from Jesse, mostly for vlv, but also some other
        related platforms
      - start of a dev_priv reorg, that thing grew out of bounds and chaotic
      - small bits&pieces all over the place, down to better error handling for
        load-detect on gen2 (Chris, Jani, Mika, Zhenyu, ...)
      
      On top of the previous pile (just copypasta):
      - tons of hsw dp prep patches form Paulo
      - round scheduled work items and timers to nearest second (Chris)
      - some hw workarounds (Jesse&Damien)
      - vlv dp support and related fixups (Vijay et al.)
      - basic haswell dp support, not yet wired up for external ports (Paulo)
      - edp support (Paulo)
      - tons of refactorings to prepare for the above (Paulo)
      - panel rework, unifiying code between lvds and edp panels (Jani)
      - panel fitter scaling modes (Jani + Yuly Novikov)
      - panel power improvements, should now work without the BIOS setting it up
      - extracting some dp helpers from radeon/i915 and move them to
        drm_dp_helper.c
      - randome pile of workarounds (Damien, Ben, ...)
      - some cleanups for the register restore code for suspend/resume
      - secure batchbuffer support, should enable tear-free blits on gen6+
        Chris)
      - random smaller fixlets and cleanups.
      
      * 'for-airlied' of git://people.freedesktop.org/~danvet/drm-intel: (231 commits)
        drm/i915: Restore physical HWS_PGA after resume
        drm/i915: Report amount of usable graphics memory in MiB
        drm/i915/i2c: Track users of GMBUS force-bit
        drm/i915: Allocate the proper size for contexts.
        drm/i915: Update load-detect failure paths for modeset-rework
        drm/i915: Clear unused fields of mode for framebuffer creation
        drm/i915: Always calculate 8xx WM values based on a 32-bpp framebuffer
        drm/i915: Fix sparse warnings in from AGP kill code
        drm/i915: Missed lock change with rps lock
        drm/i915: Move the remaining gtt code
        drm/i915: flush system agent TLBs on SNB
        drm/i915: Kill off now unused gen6+ AGP code
        drm/i915: Calculate correct stolen size for GEN7+
        drm/i915: Stop using AGP layer for GEN6+
        drm/i915: drop the double-OP_STOREDW usage in blt_ring_flush
        drm/i915: don't rewrite the GTT on resume v4
        drm/i915: protect RPS/RC6 related accesses (including PCU) with a new mutex
        drm/i915: put ring frequency and turbo setup into a work queue v5
        drm/i915: don't block resume on fb console resume v2
        drm/i915: extract l3_parity substruct from dev_priv
        ...
      9fabd4ee
  2. 16 11月, 2012 1 次提交
  3. 13 11月, 2012 2 次提交
  4. 12 11月, 2012 24 次提交