1. 12 Jun, 2013 8 commits
  2. 11 Jun, 2013 4 commits
  3. 10 Jun, 2013 17 commits
  4. 07 Jun, 2013 8 commits
  5. 06 Jun, 2013 3 commits
    • Daniel Vetter's avatar
      drm/i915: pipe config quirk infrastructure plus sdvo mode.flags fix · bb760063
      Daniel Vetter authored
      For various reasons the hw state readout might not be able to
      faithfully match the hw state:
      - broken hw (like the case which motivated this patch here where the
        sdvo encoder does not implemented mandatory functionality
        correctly).
      - platforms which are not supported fully with the pipe config
        infrastructure
      - if our code doesn't support a given hw configuration natively, e.g.
        special restrictions on the per-pipe panel fitters when they're used
        in high-quality scaling modes.
      
      In all these cases both fastboot and the hw state cross checker need
      to be aware of these cases and act accordingly. To be able to do this
      add a new quirk flag to the pipe config structure.
      
      The specific case at hand is an sdvo encoder which doesn't implement
      the get_timings function, so adjusted_mode flags will be wrong. The
      strange thing though is that the encoder _does_ work, even though it
      doesn't implement any of the timings functions (so neither get nor
      set, neither for input nor output timings).
      
      Not that non-compliant sdvo encoder are any surprise at all ...
      
      v2:
      - Don't read random garbage from the dtd if the get_timings call
        failed (suggested by Chris).
      - Still check the interlaced flag, that's read out from someplace
        else. We want maximal paranoia, after all.
      Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      bb760063
    • Wang Xingchao's avatar
      i915/drm: Add private api for power well usage · a38911a3
      Wang Xingchao authored
      Haswell Display audio depends on power well in graphic side, it should
      request power well before use it and release power well after use.
      I915 will not shutdown power well if it detects audio is using.
      This patch protects display audio crash for Intel Haswell C3 stepping board.
      Signed-off-by: default avatarWang Xingchao <xingchao.wang@linux.intel.com>
      Reviewed-by: default avatarTakashi Iwai <tiwai@suse.de>
      Reviewed-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
      Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      a38911a3
    • Wang Xingchao's avatar
      ALSA: hda - Add power-welll support for haswell HDA · 99a2008d
      Wang Xingchao authored
      For Intel Haswell chip, HDA controller and codec have
      power well dependency from GPU side. This patch added support
      to request/release power well in audio driver. Power save
      feature should be enabled to get runtime power saving.
      
      There's deadlock when request_module(i915) in azx_probe.
      It looks like:
      device_lock(audio pci device) -> azx_probe -> module_request
      (or symbol_request) -> modprobe (userspace) -> i915 init ->
      drm_pci_init -> pci_register_driver -> bus_add_driver -> driver_attach ->
      which in turn tries all locks on pci bus, and when it tries the one on the
      audio device, it will deadlock.
      
      This patch introduce a work to store remaining probe stuff, and let
      request_module run in safe work context.
      Signed-off-by: default avatarWang Xingchao <xingchao.wang@linux.intel.com>
      Reviewed-by: default avatarTakashi Iwai <tiwai@suse.de>
      Reviewed-by: default avatarLiam Girdwood <liam.r.girdwood@intel.com>
      Reviewed-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      99a2008d