Skip to content
  1. Aug 15, 2012
    • Dave Airlie's avatar
      Merge branch 'drm-nouveau-fixes' of git://git.freedesktop.org/git/nouveau/linux-2.6 into drm-fixes · 2e26c73a
      Dave Airlie authored
      * 'drm-nouveau-fixes' of git://git.freedesktop.org/git/nouveau/linux-2.6:
        drm/nv86/fifo: suspend fix
        drm/nouveau: disable copy engine on NVAF
        nouveau: fixup scanout enable in nvc0_pm
        drm/nouveau/aux: mask off higher bits of auxch index in i2c table entry
        drm/nvd0/disp: mask off high 16 bit of negative cursor x-coordinate
        drm/nve0/fifo: add support for the flip completion swmthd
      2e26c73a
    • Dave Airlie's avatar
      Merge branch 'drm-intel-fixes' of git://people.freedesktop.org/~danvet/drm-intel into drm-fixes · a389b6a1
      Dave Airlie authored
      Daniel Vetter writes:
      
      "A few important fixers:
      - fix various lvds backlight issues, regressed in 3.6 (Takashi Iwai)
      - make the retina mbp work (ignore bogus edp bpc value in vbt)
      - fix a gmbus regression introduced in (iirc) 3.4 (Jani Nikula)
      - fix an edp panel power sequence regression, fixes the new macbook air
      - apply the tlb invalidate w/a
      
      Otherwise we still have another gmbus regression (patches are awaiting
      tested-bys) and there's something odd going with some rare systems not
      entering rc6 often enough (and hence blowing through too much power).  It
      seems to be a timing-related issue and can be mitigated by frobbing the
      magic tuning parameters. We're still working on that one. Also, we still
      have some fallout from the hw context support, but you can only hit that
      with mesa master."
      
      * 'drm-intel-fixes' of git://people.freedesktop.org/~danvet/drm-intel:
        drm/i915: Apply post-sync write for pipe control invalidates
        drm/i915: reorder edp disabling to fix ivb MacBook Air
        drm/i915: ensure i2c adapter is all set before adding it
        drm/i915: ignore eDP bpc settings from vbt
        drm/i915: Fix blank panel at reopening lid
      a389b6a1
  2. Aug 14, 2012
    • Chris Wilson's avatar
      drm/i915: Apply post-sync write for pipe control invalidates · 7d54a904
      Chris Wilson authored
      When invalidating the TLBs it is documentated as requiring a post-sync
      write. Failure to do so seems to result in a GPU hang.
      
      Exposure to this hang on IVB seems to be a result of removing the extra
      stalls required for SNB pipecontrol workarounds:
      
      commit 6c6cf5aa
      
      
      Author: Chris Wilson <chris@chris-wilson.co.uk>
      Date:   Fri Jul 20 18:02:28 2012 +0100
      
          drm/i915: Only apply the SNB pipe control w/a to gen6
      
      Note: Manually switch the pipe_control cmd to 4 dwords to avoid a
      (silent) functional conflict with -next. This way will get a loud (but
      conflict with next (since the scratch_addr has been deleted there).
      
      Reported-and-tested-by: default avatar <yex.tian@intel.com>
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53322
      Acked-by: default avatarBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      [danvet: added note about merge conflict with -next.]
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      7d54a904
    • Daniel Vetter's avatar
      drm/i915: reorder edp disabling to fix ivb MacBook Air · 35a38556
      Daniel Vetter authored
      eDP is tons of fun. It turns out that at least the new MacBook Air 5,1
      model absolutely doesn't like the new force vdd dance we've introduced
      in
      
      commit 6cb49835
      
      
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Sun May 20 17:14:50 2012 +0200
      
          drm/i915: enable vdd when switching off the eDP panel
      
      But that patch also tried to fix some neat edp sequence issue with the
      force_vdd timings. Closer inspection reveals that we've raised
      force_vdd only to do the aux channel communication dp_sink_dpms. If we
      move the edp_panel_off below that, we don't need any force_vdd for the
      disable sequence, which makes the Air happy.
      
      Unfortunately the reporter of the original bug that the above commit
      fixed is travelling, so we can't test whether this regresses things.
      But my theory is that since we don't check for any power-off ->
      force_vdd-on delays in edp_panel_vdd_on, this was the actual
      root-cause of this failure. With that force_vdd dance completely
      eliminated, I'm hopeful the original bug stays fixed, too.
      
      For reference the old bug, which hopefully doesn't get broken by this:
      
      https://bugzilla.kernel.org/show_bug.cgi?id=43163
      
      In any case, regression fixers win over plain bugfixes, so this needs
      to go in asap.
      
      v2: The crucial pieces seems to be to clear the force_vdd flag
      uncoditionally, too, in edp_panel_off. Looks like this is left behind
      by the firmware somehow.
      
      v3: The Apple firmware seems to switch off the panel on it's own, hence
      we still need to keep force_vdd on, but properly clear it when switching
      the panel off.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=45671
      Tested-by: default avatarRoberto Romer <sildurin@gmail.com>
      Tested-by: default avatarDaniel Wagner <wagi@monom.org>
      Tested-by: default avatarKeith Packard <keithp@keithp.com>
      Cc: stable@vger.kernel.org
      Cc: Keith Packard <keithp@keithp.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      35a38556
    • Maxim Levitsky's avatar
      drm/nv86/fifo: suspend fix · 2064db72
      Maxim Levitsky authored
      
      
      This fix is a backport from the reworked nouveau driver.  It masks off the
      engines we're not expecting to use before attempting a channel kickoff.
      
      Signed-off-by: default avatarMaxim Levitsky <maximlevitsky@gmail.com>
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      2064db72
    • Henrik Rydberg's avatar
      drm/nouveau: disable copy engine on NVAF · fe0aac12
      Henrik Rydberg authored
      
      
      The copy engine exhibits random memory corruption in at least one case, the
      GeForce 320M (nv50, 0xaf) in the MacBookAir3,1.
      
      This patch omits creating the engine for the specific chipset, falling back
      to M2MF, which kills the symptoms.
      
      Signed-off-by: default avatarHenrik Rydberg <rydberg@euromail.se>
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      fe0aac12
    • Maarten Lankhorst's avatar
      nouveau: fixup scanout enable in nvc0_pm · 44b9f44e
      Maarten Lankhorst authored
      
      
      Fixes screen being black after changing performance level.
      
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@canonical.com>
      Cc: stable@vger.kernel.org [3.5+]
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      44b9f44e
    • Ben Skeggs's avatar
      drm/nouveau/aux: mask off higher bits of auxch index in i2c table entry · 3d7a1da2
      Ben Skeggs authored
      
      
      At least partially fixes DP output detection on W530.  Not sure if more
      issues remain, or if my adaptor is just behaving weirdly (it does that
      sometimes).
      
      In any case, this patch is necessary.
      
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      3d7a1da2
    • Christoph Bumiller's avatar
      af5e7d84
    • Dave Airlie's avatar
      Merge branch 'drm-fixes-3.6' of git://people.freedesktop.org/~agd5f/linux into drm-fixes · 7bac6b46
      Dave Airlie authored
      Alex Deucher writes:
      This is the current set of radeon fixes for 3.6.  Nothing too major.
      
      Highlights:
      - various display fixes
      - some SI fixes
      - new SI pci ids
      - major VM fix
      - CS checker support for MSAA
      
      I've tested on a number of cards across generations and noticed no problems.
      
      * 'drm-fixes-3.6' of git://people.freedesktop.org/~agd5f/linux:
        drm/radeon: fix typo in function header comment
        drm/radeon/kms: implement timestamp userspace query (v2)
        drm/radeon/kms: add MSAA texture support for r600-evergreen
        drm/radeon/kms: reorder code in r600_check_texture_resource
        drm/radeon: fence virtual address and free it once idle v4
        drm/radeon: fix some missing parens in asic macros
        drm/radeon: add some new SI pci ids
        drm/radeon: fix ordering in pll picking on dce4+
        drm/radeon: do not reenable crtc after moving vram start address
        drm/radeon: fix bank tiling parameters on cayman
        drm/radeon: fix bank tiling parameters on evergreen
        drm/radeon: fix bank tiling parameters on SI
        drm/radeon: properly handle crtc powergating
        drm/radeon: properly handle SS overrides on TN (v2)
        drm/radeon/dce4+: set a more reasonable cursor watermark
        drm/radeon: fix handling for ddc type 5 on combios
      7bac6b46
    • Jani Nikula's avatar
      drm/i915: ensure i2c adapter is all set before adding it · cee25168
      Jani Nikula authored
      
      
      i2c_add_adapter() may do i2c transfers on the bus to detect supported
      devices. Therefore the adapter needs to be all set before adding it. This
      was not the case for the bit-banging fallback, resulting in an oops if the
      device detection GMBUS transfers timed out. Fix the issue by calling
      i2c_add_adapter() only after intel_gpio_setup().
      
      LKML-Reference: <5021F00B.7000503@ionic.de>
      Tested-by: default avatarMihai Moldovan <ionic@ionic.de>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      cee25168
  3. Aug 13, 2012
  4. Aug 12, 2012
    • Daniel Vetter's avatar
      drm/i915: ignore eDP bpc settings from vbt · 4344b813
      Daniel Vetter authored
      This has originally been introduced to not oversubscribe the dp links
      in
      
      commit 885a5fb5
      
      
      Author: Zhenyu Wang <zhenyuw@linux.intel.com>
      Date:   Tue Jan 12 05:38:31 2010 +0800
      
          drm/i915: fix pixel color depth setting on eDP
      
      Since then we've fixed up the dp link bandwidth calculation code and
      should now automatically fall back to 6bpc dithering. So this is
      unnecessary.
      
      Furthermore it seems to break the new MacbookPro with retina display,
      hence let's just rip this out.
      
      Reported-by: default avatarBenoit Gschwind <gschwind@gnu-log.net>
      Cc: Benoit Gschwind <gschwind@gnu-log.net>
      Cc: Francois Rigaut <frigaut@gmail.com>
      Cc: Greg KH <gregkh@linuxfoundation.org>
      Cc: stable@vger.kernel.org
      Tested-by: default avatarBenoit Gschwind <gschwind@gnu-log.net>
      Tested-by: Bernhard Froemel <froemel at vmars tuwien.ac.at>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      
      --
      
      Testing feedback highgly welcome, and thanks for Benoit for finding
      out that the bpc computations are busted.
      -Daniel
      4344b813
    • Takashi Iwai's avatar
      drm/i915: Fix blank panel at reopening lid · 770c1231
      Takashi Iwai authored
      
      
      When you reopen the lid on a laptop with PCH, the panel suddenly goes
      blank sometimes.  It seems because BLC_PWM_CPU_CTL register is cleared
      to zero when BLC_PWM_CPU_CTL2 and BLC_PWM_PCH_CTL1 registers are
      enabled.
      
      This patch fixes the problem by moving the call of the function setting
      BLC_PWM_CPU_CTL after enabling other two registers.
      
      Reported-and-tested-by: default avatarHugh Dickins <hughd@google.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      770c1231
  5. Aug 10, 2012
  6. Aug 09, 2012
    • Thomas Meyer's avatar
      drm/udl: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(.. [1] · 959f7247
      Thomas Meyer authored
      
      
      The semantic patch that makes this change is available
      in scripts/coccinelle/api/err_cast.cocci.
      
      More information about semantic patching is available at
      http://coccinelle.lip6.fr/
      
      Signed-off-by: default avatarThomas Meyer <thomas@m3y3r.de>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      959f7247
    • Dave Airlie's avatar
      Merge branch 'drm-intel-fixes' of git://people.freedesktop.org/~danvet/drm-intel into drm-next · 41494cba
      Dave Airlie authored
      Daniel writes:
      
      "- Regression fixer for an OOPS at boot when i915.ko is built-in and
        CONFIG_PM=n, introduce in 3.5 (patch from Hunt Xu)
      - Regression fixer for occlusion query failures, the required w/a wasn't
        applied in all cases (thanks to Eric for tracking this on down).
      - dmar vs. dma_buf imprt fix (Dave Airlie)
      - 2 patches to fight down forcewake issues on snb. This is the stuff I've
        talked about 2 weeks ago already, it's a minefield. Investigation still
        going on, but afaict this is the best we have for now.
      - a few minor things to keep coverty&compiler happy (Alan, Davendra,
        Stéphane)
      - tons of hsw pci ids - this one is a bit late because internal approval
        sometimes takes a while, but ppl in charge finally agreed that world+dog
        already knows about ult and crw haswell variants ;-)
      
      Wrt regressions I'm aware of:
      - the power regression due to semaphores=1. Ben is running around with a
        killawatt, unfortunately we have a hard time reproducing this one. And
        this /shouldn't/ increase power usage. Ben has turned up a few odds bits
        though already.
      - the lvds fix in 3.6-rc1 broke a backlight after lid close/open (but can
        be resurrected with a modeset cycle). I guess we anger the bios - I'm
        still looking into this one.
      - gmbus broke edid reading on an odd-ball monitor, we need to fall-back.
        Due to vacation (both mine&the reporter's) this is stalling for a final
        patch and a tested-by on it. But issue is fully diagnosed."
      
      * 'drm-intel-fixes' of git://people.freedesktop.org/~danvet/drm-intel:
        drm/i915: correctly order the ring init sequence
        drm/i915: add more Haswell PCI IDs
        drm/i915: make rc6 in sysfs functions conditional
        drm/i915: Workaround hang with BSD and forcewake on SandyBridge
        drm/i915: Make intel_panel_get_backlight static.
        i915: don't map imported dma-bufs for dmar.
        drm/i915: remove unused variable
        drm/i915: Don't forget to apply SNB PIPE_CONTROL GTT workaround.
        drm/i915: fix forcewake related hangs on snb
        i915: Remove silly test
        i915: fix error path leak in intel_sdvo_write_cmd
        vlv: it might be wise if we initialised the flag value...
      41494cba
    • Marek Olšák's avatar
      drm/radeon/kms: allow "invalid" DB formats as a means to disable DB · 0f457e48
      Marek Olšák authored
      
      
      Signed-off-by: default avatarMarek Olšák <maraeo@gmail.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      0f457e48
  7. Aug 08, 2012
  8. Aug 07, 2012
  9. Aug 06, 2012