1. 27 5月, 2010 5 次提交
    • Z
      drm/i915: convert some gem structures to per-ring V2 · 852835f3
      Zou Nan hai 提交于
      The active list and request list move into the ringbuffer structure,
      so each can track its active objects in the order they are in that
      ring.  The flushing list does not, as it doesn't matter which ring
      caused data to end up in the render cache.  Objects gain a pointer to
      the ring they are active on (if any).
      Signed-off-by: NZou Nan hai <nanhai.zou@intel.com>
      Signed-off-by: NXiang Hai hao <haihao.xiang@intel.com>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      852835f3
    • Z
      drm/i915: introduce intel_ring_buffer structure (V2) · 8187a2b7
      Zou Nan hai 提交于
      Introduces a more complete intel_ring_buffer structure with callbacks
      for setup and management of a particular ringbuffer, and converts the
      render ring buffer consumers to use it.
      Signed-off-by: NZou Nan hai <nanhai.zou@intel.com>
      Signed-off-by: NXiang Hai hao <haihao.xiang@intel.com>
      [anholt: Fixed up whitespace fail and rebased against prep patches]
      Signed-off-by: NEric Anholt <eric@anholt.net>
      8187a2b7
    • E
      drm/i915: Rename dev_priv->ring to dev_priv->render_ring. · d3301d86
      Eric Anholt 提交于
      With the advent of the BSD ring, be clear about which ring this is.
      The docs are pretty consistent with calling this the Render engine at
      this point.
      d3301d86
    • E
      drm/i915: Move ringbuffer-related code to intel_ringbuffer.c. · 62fdfeaf
      Eric Anholt 提交于
      This is preparation for supporting multiple ringbuffers on Ironlake.
      The non-copy-and-paste changes are:
      - de-staticing functions
      - I915_GEM_GPU_DOMAINS moving to i915_drv.h to be used by both files.
      - i915_gem_add_request had only half its implementation
        copy-and-pasted out of the middle of it.
      62fdfeaf
    • C
      drm/i915: Fail to load driver if KMS request without GEM · 79a78dd6
      Chris Wilson 提交于
      The i915's implementation of KMS requires GEM in order to manage the
      memory and execution domains of the framebuffer and associated
      resources. By the point at which we detect broken a BIOS and need to
      disable GEM, we have already registered ourselves as a KMS driver with
      several subsystems. Rather than introducing a fragile unwind and attempt
      to continue with UMS, spit out an error and unload the driver.
      
      References:
      
        [Bug 15754] IP: [<ffffffffa0207589>] drm_mm_search_free+0x49/0x90 [drm]
                    BUG: unable to handle kernel NULL pointer dereference at (null)
        https://bugzilla.kernel.org/show_bug.cgi?id=15754
      
      [drm:i915_driver_load] *ERROR* Detected broken video BIOS with
      262140/262144kB of video memory stolen.
      [drm:i915_driver_load] *ERROR* Disabling GEM. (try reducing stolen
      memory or updating the BIOS to fix).
      i915 0000:00:02.0: irq 30 for MSI/MSI-X
      [drm] set up 255M of stolen space
      BUG: unable to handle kernel NULL pointer dereference at (null)
      IP: [<ffffffffa0207589>] drm_mm_search_free+0x49/0x90 [drm]
      PGD 69719067 PUD 69dda067 PMD 0
      Oops: 0000 [#1] PREEMPT SMP
      last sysfs file: /sys/module/snd_seq_oss/initstate
      CPU 1
      Pid: 867, comm: modprobe Not tainted 2.6.33-ARCH #1 G43Twins-FullHD/To
      Be Filled By O.E.M.
      RIP: 0010:[<ffffffffa0207589>]  [<ffffffffa0207589>] drm_mm_search_free+0x49/0x90 [drm]
      RSP: 0018:ffff8800699f3af8  EFLAGS: 00010246
      RAX: 0000000000000000 RBX: ffffffffffffffff RCX: 0000000000000000
      RDX: 0000000000001000 RSI: 0000000000001000 RDI: ffff8800693d0f78
      RBP: ffff8800699f3b18 R08: 0000000000001000 R09: 0000000000000000
      R10: 2222222222222222 R11: 0000000000000000 R12: ffff880068de70c0
      R13: 0000000000001000 R14: 0000000000000000 R15: ffff8800689cb000
      FS:  00007fa93f4e5700(0000) GS:ffff880001880000(0000)
      knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: 0000000000000000 CR3: 00000000695a0000 CR4: 00000000000406e0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
      Process modprobe (pid: 867, threadinfo ffff8800699f2000, task ffff8800694f4740)
      Stack:
       ffff880068de73c0 ffff880068de70c0 ffff8800689cb000 0000000000001000
      <0> ffff8800699f3b68 ffffffffa0299f63 ffff8800693d0f78 0000120068de70c0
      <0> ffff8800689cb000 ffff880068de73c0 ffff880068de70c0 ffff8800689cb000
      Call Trace:
       [<ffffffffa0299f63>] i915_gem_object_bind_to_gtt+0x83/0x360 [i915]
       [<ffffffffa029a2e5>] i915_gem_object_pin+0xa5/0xb0 [i915]
       [<ffffffffa029a3c5>] i915_gem_init_ringbuffer+0xd5/0x510 [i915]
       [<ffffffffa028dbee>] i915_driver_load+0x4ce/0xd00 [i915]
       [<ffffffffa0205d37>] ? drm_sysfs_device_add+0x87/0xb0 [drm]
       [<ffffffffa0203363>] ? drm_get_minor+0x1d3/0x330 [drm]
       [<ffffffffa02037e6>] drm_get_dev+0x326/0x580 [drm]
       [<ffffffffa02bc0a5>] i915_pci_probe+0x10/0xd0 [i915]
       [<ffffffff811e98a2>] local_pci_probe+0x12/0x20
       [<ffffffff811ea8e0>] pci_device_probe+0x80/0xb0
       [<ffffffff8127b12a>] ? driver_sysfs_add+0x5a/0x90
       [<ffffffff8127b273>] driver_probe_device+0x93/0x1a0
       [<ffffffff8127b413>] __driver_attach+0x93/0xa0
       [<ffffffff8127b380>] ? __driver_attach+0x0/0xa0
       [<ffffffff8127a8f8>] bus_for_each_dev+0x68/0x90
       [<ffffffff8127b0c9>] driver_attach+0x19/0x20
       [<ffffffff8127a0ad>] bus_add_driver+0xcd/0x2d0
       [<ffffffff8127b718>] driver_register+0x78/0x140
       [<ffffffff811eab91>] __pci_register_driver+0x51/0xd0
       [<ffffffffa02d6000>] ? i915_init+0x0/0x52 [i915]
       [<ffffffffa01fdc31>] drm_init+0x111/0x120 [drm]
       [<ffffffff810eb0cd>] ? register_shrinker+0x4d/0x60
       [<ffffffffa02d6000>] ? i915_init+0x0/0x52 [i915]
       [<ffffffffa02d6050>] i915_init+0x50/0x52 [i915]
       [<ffffffff81002047>] do_one_initcall+0x37/0x1a0
       [<ffffffff8108ed17>] sys_init_module+0xd7/0x250
       [<ffffffff81009fc2>] system_call_fastpath+0x16/0x1b
      Code: eb 29 49 8b 41 28 31 d2 49 f7 f5 85 d2 74 39 44 89 c0 29 d0 48 89 c2 48 01 f2 49 39 d2 73 29 0f 1f 00 49 89 da 4c 89 d3 4d 89 d9 <4d> 8b 19 49 39 f9 41 0f 18 0b 74 2b 4d 8b 51 30 4d 89 cc 49 39
      RIP  [<ffffffffa0207589>] drm_mm_search_free+0x49/0x90 [drm]
       RSP <ffff8800699f3af8>
      CR2: 0000000000000000
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      79a78dd6
  2. 26 5月, 2010 5 次提交
    • D
      drivers/net/usb/asix.c: Fix pointer cast. · f925b130
      David S. Miller 提交于
      Stephen Rothwell reports the following new warning:
      
      drivers/net/usb/asix.c: In function 'asix_rx_fixup':
      drivers/net/usb/asix.c:325: warning: cast from pointer to integer of different size
      drivers/net/usb/asix.c:354: warning: cast from pointer to integer of different size
      
      The code just cares about the low alignment bits, so use
      an "unsigned long" cast instead of one to "u32".
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f925b130
    • S
      be2net: Bug fix to avoid disabling bottom half during firmware upgrade. · dd131e76
      Sarveshwar Bandi 提交于
      Certain firmware commands/operations to upgrade firmware could take several
      seconds to complete. The code presently disables bottom half during these
      operations which could lead to unpredictable behaviour in certain cases. This
      patch now does all firmware upgrade operations asynchronously using a
      completion variable.
      Signed-off-by: NSarveshwar Bandi <sarveshwarb@serverengines.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dd131e76
    • F
      hso: add support for new products · dd7496f2
      Filip Aben 提交于
      This patch adds a few new product id's for the hso driver.
      Signed-off-by: NFilip Aben <f.aben@option.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dd7496f2
    • K
      driver core: add devname module aliases to allow module on-demand auto-loading · 578454ff
      Kay Sievers 提交于
      This adds:
        alias: devname:<name>
      to some common kernel modules, which will allow the on-demand loading
      of the kernel module when the device node is accessed.
      
      Ideally all these modules would be compiled-in, but distros seems too
      much in love with their modularization that we need to cover the common
      cases with this new facility. It will allow us to remove a bunch of pretty
      useless init scripts and modprobes from init scripts.
      
      The static device node aliases will be carried in the module itself. The
      program depmod will extract this information to a file in the module directory:
        $ cat /lib/modules/2.6.34-00650-g537b60d1-dirty/modules.devname
        # Device nodes to trigger on-demand module loading.
        microcode cpu/microcode c10:184
        fuse fuse c10:229
        ppp_generic ppp c108:0
        tun net/tun c10:200
        dm_mod mapper/control c10:235
      
      Udev will pick up the depmod created file on startup and create all the
      static device nodes which the kernel modules specify, so that these modules
      get automatically loaded when the device node is accessed:
        $ /sbin/udevd --debug
        ...
        static_dev_create_from_modules: mknod '/dev/cpu/microcode' c10:184
        static_dev_create_from_modules: mknod '/dev/fuse' c10:229
        static_dev_create_from_modules: mknod '/dev/ppp' c108:0
        static_dev_create_from_modules: mknod '/dev/net/tun' c10:200
        static_dev_create_from_modules: mknod '/dev/mapper/control' c10:235
        udev_rules_apply_static_dev_perms: chmod '/dev/net/tun' 0666
        udev_rules_apply_static_dev_perms: chmod '/dev/fuse' 0666
      
      A few device nodes are switched to statically allocated numbers, to allow
      the static nodes to work. This might also useful for systems which still run
      a plain static /dev, which is completely unsafe to use with any dynamic minor
      numbers.
      
      Note:
      The devname aliases must be limited to the *common* and *single*instance*
      device nodes, like the misc devices, and never be used for conceptually limited
      systems like the loop devices, which should rather get fixed properly and get a
      control node for losetup to talk to, instead of creating a random number of
      device nodes in advance, regardless if they are ever used.
      
      This facility is to hide the mess distros are creating with too modualized
      kernels, and just to hide that these modules are not compiled-in, and not to
      paper-over broken concepts. Thanks! :)
      
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Miklos Szeredi <miklos@szeredi.hu>
      Cc: Chris Mason <chris.mason@oracle.com>
      Cc: Alasdair G Kergon <agk@redhat.com>
      Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
      Cc: Ian Kent <raven@themaw.net>
      Signed-Off-By: NKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      578454ff
    • C
      RDMA/nes: Fix incorrect unlock in nes_process_mac_intr() · b17e0969
      Chien Tung 提交于
      Commit ce6e74f2 ("RDMA/nes: Make nesadapter->phy_lock usage
      consistent") introduced a problem where phy_lock was only unlocked
      within an if statement and so nes_process_mac_intr() could return with
      phy_lock still held.  Fix this.
      
      This was discovered because of the sparse warning:
      
          drivers/infiniband/hw/nes/nes_hw.c:2643:9: warning: context imbalance in 'nes_process_mac_intr' - different lock contexts for basic block
      Reported-by: NRoland Dreier <rdreier@cisco.com>
      Signed-off-by: NChien Tung <chien.tin.tung@intel.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      b17e0969
  3. 25 5月, 2010 30 次提交