1. 18 5月, 2010 6 次提交
    • D
      drm/fbdev: rework output polling to be back in the core. (v4) · eb1f8e4f
      Dave Airlie 提交于
      After thinking it over a lot it made more sense for the core to deal with
      the output polling especially so it can notify X.
      
      v2: drop plans for fake connector - per Michel's comments - fix X patch sent to xorg-devel, add intel polled/hpd setting, add initial nouveau polled/hpd settings.
      
      v3: add config lock take inside polling, add intel/nouveau poll init/fini calls
      
      v4: config lock was a bit agressive, only needed around connector list reading.
      otherwise it could re-enter.
      
      glisse: discard drm_helper_hpd_irq_event
      
      v3: Reviewed-by: Michel Dänzer <michel@daenzer.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      eb1f8e4f
    • M
      vga16fb, drm: vga16fb->drm handoff · 3b9676e7
      Marcin Slusarz 提交于
      let vga16fb claim 0xA0000+0x10000 region as its aperture;
      drm drivers don't use it, so we have to detect it and kick
      vga16fb manually - but only if drm is driving the primary card
      Signed-off-by: NMarcin Slusarz <marcin.slusarz@gmail.com>
      Cc: James Simmons <jsimmons@infradead.org>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      3b9676e7
    • M
      fbmem, drm/nouveau: kick firmware framebuffers as soon as possible · 06415c56
      Marcin Slusarz 提交于
      Currently vesafb/efifb/... is kicked when hardware driver is registering
      framebuffer. To do it hardware must be fully functional, so there's a short
      window between start of initialisation and framebuffer registration when
      two drivers touch the hardware. Unfortunately sometimes it breaks nouveau
      initialisation.
      
      Fix it by kicking firmware driver(s) before we start touching the hardware.
      Reported-by: NDidier Spaier <didier.spaier@epsm.fr>
      Tested-by: NDidier Spaier <didier.spaier@epsm.fr>
      Signed-off-by: NMarcin Slusarz <marcin.slusarz@gmail.com>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: Peter Jones <pjones@redhat.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      06415c56
    • M
      fbdev: allow passing more than one aperture for handoff · 1471ca9a
      Marcin Slusarz 提交于
      It removes a hack from nouveau code which had to detect which
      region to pass to kick vesafb/efifb.
      Signed-off-by: NMarcin Slusarz <marcin.slusarz@gmail.com>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: Thomas Hellstrom <thellstrom@vmware.com>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Peter Jones <pjones@redhat.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      1471ca9a
    • J
      drm/radeon/kms: add query for crtc hw id from crtc id to get info V2 · bc35afdb
      Jerome Glisse 提交于
      Userspace need to know the hw crtc id (0, 1, 2, ...) from the drm
      crtc id. Bump the minor version so userspace can enable conditionaly
      features depend on this.
      
      V2 use num_crtc and avoid DRM_ERROR
      Signed-off-by: NJerome Glisse <jglisse@redhat.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      bc35afdb
    • D
      drm_edid: There should be 6 Standard Timings · 96525a2f
      Dan Carpenter 提交于
      Smatch complained that we initialize 6 elements in add_detailed_modes()
      but the timings[] array is declared with 5 elements.  Adam Jackson
      verified that 6 is the correct number of timings.
      
      On Mon, May 10, 2010 at 12:08:24PM -0400, Adam Jackson wrote:
      > > >                 struct std_timing timings[5];
      > > >                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      >
      > This decl is wrong, should be 6.  From the 1.4 spec:
      >
      > "Six additional Standard Timings may be listed as a display descriptor
      > (tag #FAh)."
      >
      > The 1.3 spec is a little less explicit about it, but does show 6
      > standard timing codes in the 0xFA detailed subblock, terminated by 0x0A
      > in the 18th byte.  I don't have the docs for 1.2 or earlier, but we're
      > paranoid enough about not adding broken timings that we should be fine.
      
      This patch is basically a clean up, because timings[] is declared inside
      a union and increasing the number of elements here doesn't change the
      overall size of the union.
      Signed-off-by: NDan Carpenter <error27@gmail.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      96525a2f
  2. 20 4月, 2010 4 次提交
  3. 19 4月, 2010 2 次提交
  4. 15 4月, 2010 1 次提交
  5. 14 4月, 2010 2 次提交
    • D
      rcu: Better explain the condition parameter of rcu_dereference_check() · c08c68dd
      David Howells 提交于
      Better explain the condition parameter of
      rcu_dereference_check() that describes the conditions under
      which the dereference is permitted to take place (and
      incorporate Yong Zhang's suggestion).  This condition is only
      checked under lockdep proving.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: laijs@cn.fujitsu.com
      Cc: dipankar@in.ibm.com
      Cc: mathieu.desnoyers@polymtl.ca
      Cc: josh@joshtriplett.org
      Cc: dvhltc@us.ibm.com
      Cc: niv@us.ibm.com
      Cc: peterz@infradead.org
      Cc: rostedt@goodmis.org
      Cc: Valdis.Kletnieks@vt.edu
      Cc: eric.dumazet@gmail.com
      LKML-Reference: <1270852752-25278-2-git-send-email-paulmck@linux.vnet.ibm.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      c08c68dd
    • P
      rcu: Add rcu_access_pointer and rcu_dereference_protected · b62730ba
      Paul E. McKenney 提交于
      This patch adds variants of rcu_dereference() that handle
      situations where the RCU-protected data structure cannot change,
      perhaps due to our holding the update-side lock, or where the
      RCU-protected pointer is only to be fetched, not dereferenced.
      These are needed due to some performance concerns with using
      rcu_dereference() where it is not required, aside from the need
      for lockdep/sparse checking.
      
      The new rcu_access_pointer() primitive is for the case where the
      pointer is be fetch and not dereferenced.  This primitive may be
      used without protection, RCU or otherwise, due to the fact that
      it uses ACCESS_ONCE().
      
      The new rcu_dereference_protected() primitive is for the case
      where updates are prevented, for example, due to holding the
      update-side lock.  This primitive does neither ACCESS_ONCE() nor
      smp_read_barrier_depends(), so can only be used when updates are
      somehow prevented.
      Suggested-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: laijs@cn.fujitsu.com
      Cc: dipankar@in.ibm.com
      Cc: mathieu.desnoyers@polymtl.ca
      Cc: josh@joshtriplett.org
      Cc: dvhltc@us.ibm.com
      Cc: niv@us.ibm.com
      Cc: peterz@infradead.org
      Cc: rostedt@goodmis.org
      Cc: Valdis.Kletnieks@vt.edu
      Cc: dhowells@redhat.com
      Cc: eric.dumazet@gmail.com
      LKML-Reference: <1270852752-25278-1-git-send-email-paulmck@linux.vnet.ibm.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      b62730ba
  6. 12 4月, 2010 1 次提交
    • T
      NFSv4: fix delegated locking · 0df5dd4a
      Trond Myklebust 提交于
      Arnaud Giersch reports that NFSv4 locking is broken when we hold a
      delegation since commit 8e469ebd (NFSv4:
      Don't allow posix locking against servers that don't support it).
      
      According to Arnaud, the lock succeeds the first time he opens the file
      (since we cannot do a delegated open) but then fails after we start using
      delegated opens.
      
      The following patch fixes it by ensuring that locking behaviour is
      governed by a per-filesystem capability flag that is initially set, but
      gets cleared if the server ever returns an OPEN without the
      NFS4_OPEN_RESULT_LOCKTYPE_POSIX flag being set.
      Reported-by: NArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: stable@kernel.org
      0df5dd4a
  7. 10 4月, 2010 4 次提交
  8. 09 4月, 2010 1 次提交
  9. 08 4月, 2010 3 次提交
  10. 07 4月, 2010 12 次提交
  11. 06 4月, 2010 4 次提交