1. 22 4月, 2013 11 次提交
  2. 18 4月, 2013 1 次提交
  3. 17 4月, 2013 4 次提交
    • D
      Merge branch 'gma500-next' of git://github.com/patjak/drm-gma500 into drm-next · 9f7bc6ac
      Dave Airlie 提交于
      Patrik writes:
      
      I haven't had much review or testing on other platforms than Poulsbo but
      at least the following Cedarview bug has been squashed and no
      regressions reported: https://bugs.freedesktop.org/show_bug.cgi?id=58527
      
      * 'gma500-next' of git://github.com/patjak/drm-gma500:
        drm/gma500: Add debugging info to psb_gtt_restore()
        drm/gma500: Check connector status before restoring sdvo
        gma500:fix build failure for 3.9-rc5
        drm/gma500: Fix hibernation problems on sdvo encoders
        drm/gma500: Add hooks for hibernation
        drm/gma500: Activate the gtt rebuild on suspend/resume
        drm/gma500: Add support for rebuilding the gtt
        drm/gma500: Change fb name so pm-utils doesn't apply quirks
        gma500: Make VGA and HDMI connector hotpluggable
        drm/gma500: Clean up various defines
        drm/gma500: Remove unnecessary function exposure
        drm/gma500: Type clock limits directly into array and remove defines
        drm/gma500: Calculate clock in one function instead of three identical
        drm/gma500: Remove unused i8xx clock limits
        gma500: medfield: Fix possible NULL pointer dereference
        drivers: gpu: drm: gma500: Replaced calls kzalloc & memcpy with kmemdup
        gma500: remove unused drm_psb_no_fb
      9f7bc6ac
    • D
      Merge branch 'drm-next-3.10' of git://people.freedesktop.org/~agd5f/linux into drm-next · f18353ee
      Dave Airlie 提交于
      Alex writes:
      This is the initial 3.10 pull request for radeon.  The big changes here
      are UVD support and proper tiling support for SI.  The rest is
      bug fixes.  I hope to have another pull request later in the week with
      some new things we've been working on internally.
      
      * 'drm-next-3.10' of git://people.freedesktop.org/~agd5f/linux: (28 commits)
        drm/radeon: Always flush the VM
        drm/radeon: re-enable PTE/PDE packet for set_page on cayman/TN
        drm/radeon: cleanup properly if mmio mapping fails
        drm/radeon/evergreen+: don't enable HPD interrupts on eDP/LVDS
        drm/radeon: add si tile mode array query v3
        drm/radeon: add ring working query
        drm/radeon: handle broken disabled rb mask gracefully
        drm/radeon: add pcie set/get lanes callbacks for newer asics
        drm/radeon: update r600 set/get pcie lane config
        drm/radeon/kms: replace *REG32_PCIE_P with *REG32_PCIE_PORT
        drm/radeon: remove unused blit remnants from si.c
        drm/radeon: add UVD tiling addr config v2
        drm/radeon: init UVD clocks to sane defaults
        drm/radeon: add set_uvd_clocks callback for r7xx v3
        drm/radeon: add set_uvd_clocks callback for SI
        drm/radeon: add set_uvd_clocks callback for evergreen
        drm/radeon: add set_uvd_clocks callback for ON/LN/TN (v4)
        drm/radeon: add radeon_atom_get_clock_dividers helper
        drm/radeon: add pm callback for setting uvd clocks
        drm/radeon: UVD bringup v8
        ...
      f18353ee
    • J
      drm/radeon: Always flush the VM · 466476df
      Jerome Glisse 提交于
      This is slightly cleaned up version of Jerome's patch.
      There seems to be an issue tracking the last flush of
      the VM which results in hangs in certain cases when
      VM is used.  For now just flush the VM for every IB.
      
      Fixes:
      https://bugs.freedesktop.org/show_bug.cgi?id=62959
      https://bugs.freedesktop.org/show_bug.cgi?id=62997Signed-off-by: NJerome Glisse <jglisse@redhat.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      466476df
    • A
      drm/radeon: re-enable PTE/PDE packet for set_page on cayman/TN · 2ab91ada
      Alex Deucher 提交于
      PTE/PDE doesn't support a single update (count = 1).  We had
      previously disabled it since it we were hitting that case which
      let to hangs.  The PTE/PDE packet is much more efficient for VM
      updates where it can be used.
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      2ab91ada
  4. 16 4月, 2013 10 次提交
    • D
      drm/qxl: fix smatch warnings · 62c8ba7c
      Dave Airlie 提交于
      drivers/gpu/drm/qxl/qxl_display.c:99 qxl_alloc_client_monitors_config() error: dereferencing freed memory 'qdev->client_monitors_config'
      drivers/gpu/drm/qxl/qxl_object.c:66 qxl_ttm_placement_from_domain() warn: bitwise AND condition is false here
      drivers/gpu/drm/qxl/qxl_ioctl.c:353 qxl_clientcap_ioctl() warn: buffer overflow 'qdev->rom->client_capabilities' 58 <= 58
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      62c8ba7c
    • D
      drm/qxl: make lots of things static. · 6d01f1f5
      Dave Airlie 提交于
      /usr/lib/gcc/x86_64-linux-gnu/4.7/include/stddef.h:414:9: sparse: preprocessor token offsetof redefined
      include/linux/stddef.h:17:9: this was the original definition
      >> drivers/gpu/drm/qxl/qxl_drv.c:49:5: sparse: symbol 'qxl_modeset' was not declared. Should it be static?
      
      Reported-by: kbuild test robot.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      6d01f1f5
    • D
      Merge tag 'omapdss-for-3.10' of git://gitorious.org/linux-omap-dss2/linux into drm-next · dea14dfa
      Dave Airlie 提交于
      Omapdss patches for 3.10 merge window
      
      The biggest changes are:
      
      * DSI video mode: automatic clock and timing calculation
      * Lots of platform data related panel driver cleanups, to prepare for DT
      
      * tag 'omapdss-for-3.10' of git://gitorious.org/linux-omap-dss2/linux: (69 commits)
        drm/omap: add statics to a few structs
        drm/omap: Fix and improve crtc and overlay manager correlation
        drm/omap: Take a fb reference in omap_plane_update()
        drm/omap: Make fixed resolution panels work
        drm/omap: fix modeset_init if a panel doesn't satisfy omapdrm requirements
        OMAPDSS: DPI: widen the pck search when using dss fck
        OMAPDSS: fix dss_fck clock rate rounding
        omapdss: use devm_clk_get()
        OMAPDSS: nec-nl8048 panel: Use dev_pm_ops
        OMAPDSS: DISPC: Revert to older DISPC Smart Standby mechanism for OMAP5
        OMAPDSS: DISPC: Configure doublestride for NV12 when using 2D Tiler buffers
        omapdss: Features: Fix some parameter ranges
        omapdss: DISPC: add max pixel clock limits for LCD and TV managers
        OMAPDSS: DSI: Use devm_clk_get()
        drivers: video: omap2: dss: Use PTR_RET function
        OMAPDSS: VENC: remove platform_enable/disable calls
        OMAPDSS: n8x0 panel: remove use of platform_enable/disable
        OMAPDSS: n8x0 panel: handle gpio data in panel driver
        OMAPDSS: picodlp panel: remove platform_enable/disable callbacks
        OMAPDSS: picodlp panel: handle gpio data in panel driver
        ...
      dea14dfa
    • C
      drm: Perform ioctl command validation on the stored kernel values · e4fda9f2
      Chris Wilson 提交于
      Userspace is free to pass in any command bits it feels like through the
      ioctl cmd, and for example trinity likes to fuzz those bits to create
      conflicting commands. So instead of relying upon userspace to pass along
      the correct IN/OUT flags for the ioctl, use the flags as expected by the
      kernel.
      
      This does have a side-effect that NULL pointers can not be substituted
      by userspace in place of a struct. This feature was not being used by
      any driver, but instead exposed all of the command handlers to a user
      triggerable OOPS.
      Reported-by: NTommi Rantala <tt.rantala@gmail.com>
      Link: http://lkml.kernel.org/r/CA+ydwtpuBvbwxbt-tdgPUvj1EU7itmCHo_2B3w13HkD5+jWKow@mail.gmail.comSigned-off-by: NTommi Rantala <tt.rantala@gmail.com>
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      e4fda9f2
    • P
      drm.h: Fix DRM compilation with bare-metal toolchain. · b6330548
      Paul Sokolovsky 提交于
      An ifdef in drm.h expects to be compiled with full-fledged Linux
      toolchain, but it's common to compile kernel with just bare-metal
      toolchain which doesn't define __linux__. So, also add __KERNEL__
      check.
      
      [nm@ti.com: port forward to 3.9-rc6 and post to dri devel for feedback as RFC]
      Signed-off-by: NPaul Sokolovsky <paul.sokolovsky@linaro.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      b6330548
    • L
      drm: use vma_pages() to replace (vm_end - vm_start) >> PAGE_SHIFT · 025df775
      Libin 提交于
      (*->vm_end - *->vm_start) >> PAGE_SHIFT operation is implemented
      as a inline funcion vma_pages() in linux/mm.h, so using it.
      Signed-off-by: NLibin <huawei.libin@huawei.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      025df775
    • L
      drm: Destroy property blobs at mode config cleanup time · 87d24fc3
      Laurent Pinchart 提交于
      Property blob objects need to be destroyed when cleaning up to avoid
      memory leaks. Go through the list of all blobs in the
      drm_mode_config_cleanup() function and destroy them.
      
      The drm_mode_config_cleanup() function needs to be moved after the
      drm_property_destroy_blob() declaration. Move drm_mode_config_init() as
      well to keep the functions together.
      Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      87d24fc3
    • D
      Merge tag 'drm-intel-next-2013-04-06' of... · 28184f22
      Dave Airlie 提交于
      Merge tag 'drm-intel-next-2013-04-06' of git://people.freedesktop.org/~danvet/drm-intel into drm-next
      
      Daniel writes:
      Since I expect Linus to open the merge window in about a week I guess this
      is the last i915 feature pull for 3.10. Highlights:
      Updated testing tree for -next. Highlights:
      - Corner case fixes discovered with static analyzers (Damien).
      - More fixes to combat unclaimed register errors on Haswell (Paulo).
      - Some small fixes to the gpu turbo code (Rodrigo+Ben), Ben has more
        fixes for overclocking support pending.
      - More prep work for fastboot from Chris.
      - VT-switchless suspend/resume from Jesse.
      - The prep work of Egbert Eich's hpd irq storm handling. Hopefully we can
        squeeze in the actual storm handling code for 3.10 ...
      - More convenience helpers for Imre's sg iterator. Core parts acked by
        Andrew Morton.
      - A bit of backlight code cleanup from Jani.
      - Fixed ilk gpu reset (Jesse).
      - Reduced color range handling fixes for VLV (Ville).
      
      The big item here is though the introduction of pipe_config to properly
      pre-compute the desired modeset state before touching the hw. Together
      with some very basic support to read out the current config from the hw
      and compare the state with the sw tracking. This is all prep work for more
      reliable fastboot, atomic modesets and other cool features. Stuff
      converted to the new world includes:
      - Most simple pipe attributes (reduce color range, pixel multiplier).
      - Pipe bpp/dither handling.
      - Some convenience flags like ->has_pch_encoder to simplify the code flow.
      - (Almost) DP clock handling, had to be reverted since part of a prep
        patch was lost in rebasing ...
      Expect a lot of patches for this throughout 3.11, there's tons of work
      till we have all state properly tracked for fastbooting to woExpect a lot
      of patches for this throughout 3.11, there's tons of work till we have all
      state properly tracked for fastbooting to work.
      
      For 3.10 I have a bunch of fixes queued up and I plan to send them all out
      at the end of this week. I need to shuffle patches in my -next queue a bit
      so that we don't but feature-y stuff in there, too. The main thing I'd
      like to sneak in is Egbert's hpd irq storm handling, which should be
      pretty low-risk since all the infrastructure work has landed already. I
      also have the oops fix pending, but that only mustered review before the
      w/e and giving how hairy that part of our modeset code is, I want to give
      it some more testing before forwarding.
      
      Note: annarchy.fd.o seems to run out of disk space, so couldn't push the
      usual for-airlied branch. Tag should work though.
      
      Note 2: I've had to do a backmerge since conflicts grew too ugly, but the
      upstream -rc I've backmerged is already in your drm-next.
      
      * tag 'drm-intel-next-2013-04-06' of git://people.freedesktop.org/~danvet/drm-intel: (75 commits)
        drm/i915: info level for simulated gpu hang dmesg notice
        drm/i915: revert eDP bpp clamping code changes
        Revert "drm/i915: fix DP get_hw_state return value"
        drm/i915: Don't use the HDMI port color range bit on Valleyview
        drm/i915: Set PIPECONF color range bit on Valleyview
        drm/i915: extract i9xx_set_pipeconf
        drm/i915: Add no-lvds quirk for Fujitsu Esprimo Q900
        drm/i915: create pipe_config->dpll for clock state
        drm/i915: hw readout support for ->has_pch_encoders
        drm/i915: add hw state readout/checking for pipe_config
        drm/i915: rip out superflous is_dp&is_cpu_edp tracking
        drm/i915: remove leaky eDP functions
        drm/i915: track dp target_clock in pipe_config
        drm/i915: move dp_m_n computation to dp_encoder->compute_config
        drm/i915: clear up the fdi/dp set_m_n confusion
        drm/i915: Fix sdvo connector get_hw_state function
        drm/i915: drop DPFLIPSTAT enables on VLV v3
        drm/i915: add Punit read/write routines for VLV v2
        drm/i915: panel power sequencing for VLV eDP v2
        drm/i915/dp: fix up VLV DP handling v2
        ...
      28184f22
    • P
      drm/gma500: Add debugging info to psb_gtt_restore() · 1611f845
      Patrik Jakobsson 提交于
      This makes it easier to see what's going on during resume/restore.
      Signed-off-by: NPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
      1611f845
    • P
      drm/gma500: Check connector status before restoring sdvo · 4dd6a897
      Patrik Jakobsson 提交于
      This patch fixes a bug introduced by:
      
      commit 749387dc
      Author: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
      Date:   Sun Apr 7 16:35:50 2013 +0200
      drm/gma500: Fix hibernation problems on sdvo encoders
      
      The bug is triggered when we do a mode set on a sdvo encoder with all
      connectors in the disconnected state. A crtc is considered enabled by
      drm even though all of its connectors are disconnected. Work around
      this by adding a check in our sdvo restore function.
      
      Also remove the unneeded dpms on. Prepare and Commit will take care of
      that.
      Signed-off-by: NPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
      4dd6a897
  5. 15 4月, 2013 3 次提交
  6. 12 4月, 2013 8 次提交
  7. 11 4月, 2013 3 次提交