Skip to content
  1. Aug 17, 2010
  2. Aug 09, 2010
  3. Aug 06, 2010
  4. Aug 05, 2010
    • Kulikov Vasiliy's avatar
      agp: intel-agp: do not use PCI resources before pci_enable_device() · 96576a9e
      Kulikov Vasiliy authored
      
      
      IRQ and resource[] may not have correct values until
      after PCI hotplug setup occurs at pci_enable_device() time.
      
      The semantic match that finds this problem is as follows:
      
      // <smpl>
      @@
      identifier x;
      identifier request ~= "pci_request.*|pci_resource.*";
      @@
      
      (
      * x->irq
      |
      * x->resource
      |
      * request(x, ...)
      )
       ...
      *pci_enable_device(x)
      // </smpl>
      
      Signed-off-by: default avatarKulikov Vasiliy <segooon@gmail.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      96576a9e
    • Kulikov Vasiliy's avatar
      agp: efficeon-agp: do not use PCI resources before pci_enable_device() · 46cfc58a
      Kulikov Vasiliy authored
      
      
      IRQ and resource[] may not have correct values until
      after PCI hotplug setup occurs at pci_enable_device() time.
      
      The semantic match that finds this problem is as follows:
      
      // <smpl>
      @@
      identifier x;
      identifier request ~= "pci_request.*|pci_resource.*";
      @@
      
      (
      * x->irq
      |
      * x->resource
      |
      * request(x, ...)
      )
       ...
      *pci_enable_device(x)
      // </smpl>
      
      Signed-off-by: default avatarKulikov Vasiliy <segooon@gmail.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      46cfc58a
    • Arnd Bergmann's avatar
      drm: kill BKL from common code · 58374713
      Arnd Bergmann authored
      
      
      This restricts the use of the big kernel lock to the i830 and i810
      device drivers. The three remaining users in common code (open, ioctl
      and release) get converted to a new mutex, the drm_global_mutex,
      making the locking stricter than the big kernel lock.
      
      This may have a performance impact, but only in those cases that
      currently don't use DRM_UNLOCKED flag in the ioctl list and would
      benefit from that anyway.
      
      The reason why i810 and i830 cannot use drm_global_mutex in their
      mmap functions is a lock-order inversion problem between the current
      use of the BKL and mmap_sem in these drivers. Since the BKL has
      release-on-sleep semantics, it's harmless but it would cause trouble
      if we replace the BKL with a mutex.
      
      Instead, these drivers get their own ioctl wrappers that take the
      BKL around every ioctl call and then set their own handlers as
      DRM_UNLOCKED.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: David Airlie <airlied@linux.ie>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      58374713
    • Francisco Jerez's avatar
      drm/kms: Simplify setup of the initial I2C encoder config. · a1e09b62
      Francisco Jerez authored
      
      
      In most use cases the driver will be using the same static config all
      the time: interpreting i2c_board_info::platform_data as the default
      config we can can save the GPU driver a redundant set_config() call.
      
      Signed-off-by: default avatarFrancisco Jerez <currojerez@riseup.net>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      a1e09b62