1. 27 7月, 2010 38 次提交
    • J
      drm/i915: make sure we shut off the panel in eDP configs · 5620ae29
      Jesse Barnes 提交于
      Fix error from the last pull request.  Making sure we shut the panel off
      is more correct and saves power.
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5620ae29
    • X
      [CPUFREQ] fix memory leak in cpufreq_add_dev · 6f90388a
      Xiaotian Feng 提交于
      We didn't free policy->related_cpus in error path err_unlock_policy.
      This is catched by following kmemleak report:
      
      unreferenced object 0xffff88022a0b96d0 (size 512):
        comm "modprobe", pid 886, jiffies 4294689177 (age 780.694s)
        hex dump (first 32 bytes):
          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
        backtrace:
          [<ffffffff8111ebe5>] create_object+0x186/0x281
          [<ffffffff814fad4f>] kmemleak_alloc+0x60/0xa7
          [<ffffffff8111127a>] kmem_cache_alloc_node_notrace+0x120/0x142
          [<ffffffff81262e4f>] alloc_cpumask_var_node+0x2c/0xd7
          [<ffffffff81262f0b>] alloc_cpumask_var+0x11/0x13
          [<ffffffff81262f1c>] zalloc_cpumask_var+0xf/0x11
          [<ffffffff8140fac0>] cpufreq_add_dev+0x11f/0x547
          [<ffffffff81334bda>] sysdev_driver_register+0xc2/0x11d
          [<ffffffff8140e334>] cpufreq_register_driver+0xcb/0x1b8
          [<ffffffffa032e040>] 0xffffffffa032e040
          [<ffffffff810021ba>] do_one_initcall+0x5e/0x15c
          [<ffffffff81087f94>] sys_init_module+0xa6/0x1e6
          [<ffffffff81009bc2>] system_call_fastpath+0x16/0x1b
          [<ffffffffffffffff>] 0xffffffffffffffff
      Signed-off-by: NXiaotian Feng <dfeng@redhat.com>
      Cc: Thomas Renninger <trenn@suse.de>
      Cc: Prarit Bhargava <prarit@redhat.com>
      Signed-off-by: NDave Jones <davej@redhat.com>
      6f90388a
    • A
      [CPUFREQ] revert "[CPUFREQ] remove rwsem lock from CPUFREQ_GOV_STOP call (second call site)" · accd8466
      Andrej Gelenberg 提交于
      395913d0 ("[CPUFREQ] remove rwsem lock
      from CPUFREQ_GOV_STOP call (second call site)") is not needed, because
      there is no rwsem lock in cpufreq_ondemand and cpufreq_conservative
      anymore.  Lock should not be released until the work done.
      
      Addresses https://bugzilla.kernel.org/show_bug.cgi?id=1594Signed-off-by: NAndrej Gelenberg <andrej.gelenberg@udo.edu>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Acked-by: NMathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Signed-off-by: NDave Jones <davej@redhat.com>
      accd8466
    • F
      USB: musb: tusb6010: fix compile error with n8x0_defconfig · 2b795ea0
      Felipe Balbi 提交于
      Drop the unnecessary empty stubs in tusb6010.c and avoid
      a compile error when building kernel for n8x0.
      Signed-off-by: NFelipe Balbi <felipe.balbi@nokia.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      2b795ea0
    • C
      USB: FTDI: Add support for the RT System VX-7 radio programming cable · fcc6cb78
      Corey Minyard 提交于
      RT Systems has put out bunch of ham radio cables based on the FT232RL
      chip.  Each cable type has a unique PID, this adds one for the Yaesu VX-7
      radios.
      Signed-off-by: NCorey Minyard <minyard@acm.org>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      fcc6cb78
    • O
      USB: add quirk for Broadcom BT dongle · 63ab71de
      Oliver Neukum 提交于
      This device needs to be reset when resuming
      Signed-off-by: NOliver Neukum <oneukum@suse.de>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      63ab71de
    • B
      USB: usb-storage: fix initializations of urb fields · c222fb2e
      Bob Copeland 提交于
      Commit 0ede76fc, "USB: remove uses of
      URB_NO_SETUP_DMA_MAP" introduced a regression by inadvertantly removing
      initialization of the transfer flags.  This caused initialization
      failures in the ums-karma driver.  Fix the regression by zeroing it.
      
      While at it, as Alan Stern points out, the initializers for
      actual_length and status are handled by the core and error_count
      only matters for isochronous urbs, so they don't need to be set here.
      Remove them.
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      c222fb2e
    • S
      USB: xhci: Set Mult field in endpoint context correctly. · c30c791c
      Sarah Sharp 提交于
      The bmAttributes field of the SuperSpeed Endpoint Companion Descriptor has
      different meanings, depending on the endpoint type.  If the endpoint is
      isochronous, the bmAttributes field is the maximum number of packets
      within a service interval that this endpoint supports.  If the endpoint is
      bulk, it's the number of stream IDs this endpoint supports.
      
      Only set the Mult field of the xHCI endpoint context using the
      bmAttributes field if the endpoint is isochronous, and the device is a
      SuperSpeed device.
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      c30c791c
    • O
      USB: sisusbvga: Fix for USB 3.0 · 20a12f00
      Oliver Neukum 提交于
      Super speed is also fast enough to let sisusbvga operate.
      Therefor expand the checks.
      Signed-off-by: NOliver Neukum <oneukum@suse.de>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      20a12f00
    • P
      USB: adds Artisman USB dongle to list of quirky devices · 47f19c0e
      Paul Mortier 提交于
      When an attempt is made to read the interface strings of the Artisman
      Watchdog USB dongle (idVendor:idProduct 04b4:0526) an error is written
      to the dmesg log (uhci_result_common: failed with status 440000) and the
      dongle resets itself, resulting in a disconnect/reconnect loop.
      
      Adding the dongle to the list of devices in quirks.c, with the same
      quirk Alan Stern's previous patch for the Saitek Cyborg Gold 3D
      joystick, stops the device from resetting and allows it to be used with
      no problems.
      Signed-off-by: NPaul Mortier <mortier@btinternet.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      47f19c0e
    • S
      USB: xhci: Set EP0 dequeue ptr after reset of configured device. · 2d1ee590
      Sarah Sharp 提交于
      When a configured device is reset, the control endpoint's ring is reused.
      If control transfers to the device were issued before the device is reset,
      the dequeue pointer will be somewhere in the middle of the ring.  If the
      device is then issued an address with the set address command, the xHCI
      driver must provide a valid input context for control endpoint zero.
      
      The original code would give the hardware the original input context,
      which had a dequeue pointer set to the top of the ring.  This would cause
      the host to re-execute any control transfers until it reached the ring's
      enqueue pointer.  When issuing a set address command for a device that has
      just been configured and then reset, use the control endpoint's enqueue
      pointer as the hardware's dequeue pointer.
      
      Assumption:  All control transfers will be completed or cancelled before
      the set address command is issued to the device.  If there are any
      outstanding control transfers, this code will not work.
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      2d1ee590
    • S
      USB: Fix USB3.0 Port Speed Downgrade after port reset · 809cd1cb
      Sarah Sharp 提交于
      Without this fix, a USB 3.0 port is downgraded to full speed after a port
      reset of a configured device.  The USB 3.0 terminations will be disabled
      permanently, and USB 3.0 devices will always enumerate as full speed
      devices, until the host controller is unplugged (if it is an ExpressCard)
      or the computer is rebooted.
      
      Fajun Chen traced this traced the speed downgrade issue to the port reset
      and the interpretation of port status in USB hub driver code.  The hub
      code was not testing for the port being a SuperSpeed port, and it fell
      through to the else case of Full Speed.
      
      The following patch adds SuperSpeed mapping from the port status, and
      fixes the speed downgrade issue.
      Reported-by: NFajun Chen <fajun.chen@seagate.com>
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      809cd1cb
    • S
      USB: xHCI: Fix another bug in link TRB activation change. · d1dc908a
      Sarah Sharp 提交于
      Commit 6c12db90 also seems to have
      introduced a bug that is triggered when the command ring is about to wrap.
      The inc_enq() function will not have moved the enqueue pointer past the
      link TRB.  It is supposed to be moved past the link TRB in prepare_ring(),
      which should be called before a TD is enqueued.  However, the
      queue_command() function never calls the prepare_ring() function because
      prepare_ring() is only supposed to be used for endpoint rings.  That means
      the enqueue pointer will not be moved past the link TRB, and will get
      overwritten.
      
      The fix is to make queue_command() call prepare_ring() with a fake
      endpoint status (set to running).  Then the enqueue pointer will get moved
      past the link TRB.
      Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d1dc908a
    • D
      USB: option: Add support for AMOI Skypephone S2 · 7595931c
      Dennis Jansen 提交于
      usbserial: Add AMOI Skypephone S2 support.
      
      This patch adds support for the AMOI Skypephone S2 to the usbserial module.
      Tested-by: NDennis Jansen <Dennis.Jansen@web.de>
      Signed-off-by: NDennis Jansen <Dennis.Jansen@web.de>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7595931c
    • A
      USB: New PIDs for Qualcomm gobi 2000 (qcserial) · bec25b89
      Andrew Bird 提交于
      Adds support for the Generic Qualcomm Gobi 2000 WWAN UMTS/CDMA modem
      Signed-off-by: NAndrew Bird <ajb@spheresytems.co.uk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      bec25b89
    • C
      USB: ftdi_sio: support for Signalyzer tools based on FTDI chips · 77dbd74e
      Colin Leitner 提交于
      ftdi_sio: support for Signalyzer tools based on FTDI chips
      
      This patch adds support for the Xverve Signalyzers.
      Signed-off-by: NColin Leitner <colin.leitner@googlemail.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      77dbd74e
    • V
      USB: s3c2410_udc: be aware of connected gadget driver · 00c05aab
      Vladimir Zapolskiy 提交于
      To escape from data abort in interrupt handler, it is required to
      check for a connected gadget before delivering control requests.
      
      The change fixes the following panic, which occurs with no loaded
      gadget driver and input USB_REQ_GET_DESCRIPTOR request:
      
      Kernel panic - not syncing: Fatal exception in interrupt
      [<c0025874>] (unwind_backtrace+0x0/0xd8) from [<c0253f14>] (panic+0x40/0x110)
      [<c0253f14>] (panic+0x40/0x110) from [<c002470c>] (die+0x154/0x180)
      [<c002470c>] (die+0x154/0x180) from [<c0026448>] (__do_kernel_fault+0x64/0x74)
      [<c0026448>] (__do_kernel_fault+0x64/0x74) from [<c0026610>] (do_page_fault+0x1b8/0x1cc)
      [<c0026610>] (do_page_fault+0x1b8/0x1cc) from [<c00202d4>] (do_DataAbort+0x34/0x94)
      [<c00202d4>] (do_DataAbort+0x34/0x94) from [<c0020a60>] (__dabt_svc+0x40/0x60)
      Exception stack(0xc0327ea8 to 0xc0327ef0)
      7ea0:                   bf0026b0 c0327ef0 c0327ee4 00000000 bf002590 00000093
      7ec0: 00000001 bf0026b0 bf002990 00000000 00000008 0000143d 00003f00 c0327ef0
      7ee0: bf001364 bf001360 20000093 ffffffff
      [<c0020a60>] (__dabt_svc+0x40/0x60) from [<bf001360>] (s3c2410_udc_irq+0x5b8/0x778 [s3c2410_udc])
      [<bf001360>] (s3c2410_udc_irq+0x5b8/0x778 [s3c2410_udc]) from [<c0058aa0>] (handle_IRQ_event+0x3c/0x104)
      [<c0058aa0>] (handle_IRQ_event+0x3c/0x104) from [<c005a428>] (handle_edge_irq+0x12c/0x164)
      [<c005a428>] (handle_edge_irq+0x12c/0x164) from [<c0020068>] (asm_do_IRQ+0x68/0x88)
      [<c0020068>] (asm_do_IRQ+0x68/0x88) from [<c0020aa4>] (__irq_svc+0x24/0xa0)
      Signed-off-by: NVladimir Zapolskiy <vzapolskiy@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      00c05aab
    • P
      USB: Expose vendor-specific ACM channel on Nokia 5230 · 83a4eae9
      Przemo Firszt 提交于
      Nokia S60 phones expose two ACM channels. The first is
      a modem, the second is 'vendor-specific' but is treated
      as a serial device at the S60 end, so we want to expose
      it on Linux too.
      Signed-off-by: NPrzemo Firszt <przemo@firszt.eu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      83a4eae9
    • A
      USB: Add PID for Sierra 250U to drivers/usb/serial/sierra.c · 9d72c81d
      august huber 提交于
      Add VID/PID for Sierra Wireless 250U USB dongle to sierra.c
      Allows use of 3G radio only
      Signed-off-by: NAugust Huber <gus@pbx.org>
      Cc: Elina Pasheva <epasheva@sierrawireless.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      9d72c81d
    • Ö
      USB: option: add support for 1da5:4518 · 646d90e2
      Ömer Sezgin Ugurlu 提交于
      Signed-off-by: NOmer Sezgin Ugurlu <omer.ugurlu@a-kent.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      646d90e2
    • J
      drm/i915: add pipe A force quirks to i915 driver · b690e96c
      Jesse Barnes 提交于
      Ported over from the old UMS list.  Unfortunately they're still
      necessary especially on older laptop platforms.
      
      Fixes https://bugs.freedesktop.org/show_bug.cgi?id=22126.
      Tested-by: NXavier <shiningxc@gmail.com>
      Tested-by: NDiego Escalante Urrelo <diegoe@gnome.org>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      b690e96c
    • C
      drm/i915: Fix panel fitting regression since 734b4157 · 0cc4d430
      Chris Wilson 提交于
      The crtc mode fixup is run after the encoders adjust the mode to fit on
      their output, so don't reset the mode!
      
      Fixes:
      
        Bug 29057 - display corruption under 800x600 on netbook
                    (1024x600) with 'Full Aspect' scaling
        https://bugs.freedesktop.org/show_bug.cgi?id=29057Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Tested-by: NXun Fang <xunx.fang@intel.com>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      0cc4d430
    • P
      serial: fix rs485 for atmel_serial on avr32 · f7512e7c
      Peter Huewe 提交于
      This patch fixes a build failure [1-4] in the atmel_serial code introduced by
      patch the patch ARM: 6092/1: atmel_serial: support for RS485
      communications (e8faff73)
      
      The build failure was caused by missing struct field and missing defines
      for the avr32 board - the patch fixes this.
      
      [1] http://kisskb.ellerman.id.au/kisskb/buildresult/2575242/ - first failure in linux-next, may 11th
      [2] http://kisskb.ellerman.id.au/kisskb/buildresult/2816418/ - still exists as of today
      [3] http://kisskb.ellerman.id.au/kisskb/buildresult/2617511/ - first failure in Linus' tree - May 20th - did really no one notice this?!
      [4] http://kisskb.ellerman.id.au/kisskb/buildresult/2813956/ - still exists in Linus' tree as of today
      Signed-off-by: NPeter Huewe <peterhuewe@gmx.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f7512e7c
    • J
      drm/i915: fix deadlock in fb teardown · fbd41a7e
      Jesse Barnes 提交于
      At module unload time we'll tear down the fbdev state.  We do so under
      the struct mutex, so we shouldn't try to use the unlocked variant of
      the GEM object unreference function or we may deadlock.
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      fbd41a7e
    • J
      drm/i915: don't free non-existent compressed llb on ILK+ · aebf0daf
      Jesse Barnes 提交于
      We should only free the compressed llb if we allocated it in the first
      place otherwise we'll panic at unload time.
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      aebf0daf
    • T
      agp/intel: Use the correct mask to detect i830 aperture size. · e7b96f28
      Tim Gardner 提交于
      BugLink: https://bugs.launchpad.net/bugs/597075
      
      commit f1befe71 introduced a
      regression when detecting aperture size of some i915 adapters, e.g.,
      those on the Intel Q35 chipset.
      
      The original report: https://bugzilla.kernel.org/show_bug.cgi?id=15733
      The regression report: https://bugzilla.kernel.org/show_bug.cgi?id=16294
      
      According to the specification found at
      http://intellinuxgraphics.org/VOL_1_graphics_core.pdf, the PCI config
      space register I830_GMCH_CTRL is a mirror of GMCH Graphics
      Control. The correct macro for isolating the aperture size bits is
      therefore I830_GMCH_GMS_MASK along with the attendant changes to the
      case statement.
      Signed-off-by: NTim Gardner <tim.gardner@canonical.com>
      Tested-by: NKees Cook <kees.cook@canonical.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      e7b96f28
    • J
      drm/i915: disable FBC when more than one pipe is active · 9c928d16
      Jesse Barnes 提交于
      We're really supposed to do this to avoid trouble with underflows when
      multiple planes are active.
      
      Fixes https://bugs.freedesktop.org/show_bug.cgi?id=26987.
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Tested-by: Nfangxun <xunx.fang@intel.com>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      9c928d16
    • C
      drm/i915: Use the correct scanout alignment for fbcon. · 127bd2ac
      Chris Wilson 提交于
      This fixes a potential modesetting error during boot with plymouth on
      Broadwater and Crestline introduced with 9df47c. The framebuffer was
      hard-coding an alignment of 64K, but the modesetting code required the
      documented alignment of 128K. The result was that we would attempt to
      unbind the pinned fbcon buffer, triggering an ERROR and ultimately
      failing the mode change.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      127bd2ac
    • J
      drm/i915: make sure eDP panel is turned on · 9934c132
      Jesse Barnes 提交于
      When enabling the eDP port, we need to make sure the panel is turned on
      after training the link.  If we don't, it likely won't come back after
      suspend or may not come up at all.
      
      For unknown reasons, unlocking the panel regs before initiating a power
      on sequence is necessary.  There are known bugs in the PCH panel
      sequencing logic, apparently this is one possible workaround.
      
      Fixes https://bugs.freedesktop.org/show_bug.cgi?id=28739.
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Tested-by: N"Paulo J. S. Silva" <pjssilva@gmail.com>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      9934c132
    • J
      drm/i915: add PANEL_UNLOCK_REGS definition · 4a655f04
      Jesse Barnes 提交于
      In some cases, unlocking the panel regs is safe and can help us avoid a
      flickery, full mode set sequence.  So define the unlock key and use it.
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      4a655f04
    • A
      drm/i915: Make G4X-style PLL search more permissive · 6ba770dc
      Adam Jackson 提交于
      Fixes an Ironlake laptop with a 68.940MHz 1280x800 panel and 120MHz SSC
      reference clock.
      
      More generally, the 0.488% tolerance used before is just too tight to
      reliably find a PLL setting.  I extracted the search algorithm and
      modified it to find the dot clocks with maximum error over the valid
      range for the given output type:
      
      http://people.freedesktop.org/~ajax/intel_g4x_find_best_pll.c
      
      This gave:
      
      Worst dotclock for Ironlake DAC refclk is 350000kHz (error 0.00571)
      Worst dotclock for Ironlake SL-LVDS refclk is 102321kHz (error 0.00524)
      Worst dotclock for Ironlake DL-LVDS refclk is 219642kHz (error 0.00488)
      Worst dotclock for Ironlake SL-LVDS SSC refclk is 84374kHz (error 0.00529)
      Worst dotclock for Ironlake DL-LVDS SSC refclk is 183035kHz (error 0.00488)
      Worst dotclock for G4X SDVO refclk is 267600kHz (error 0.00448)
      Worst dotclock for G4X HDMI refclk is 334400kHz (error 0.00478)
      Worst dotclock for G4X SL-LVDS refclk is 95571kHz (error 0.00449)
      Worst dotclock for G4X DL-LVDS refclk is 224000kHz (error 0.00510)
      Signed-off-by: NAdam Jackson <ajax@redhat.com>
      Cc: stable@kernel.org
      Signed-off-by: NEric Anholt <eric@anholt.net>
      6ba770dc
    • R
      VIDEO: Au1100fb: Fix section mismatch · 362992b1
      Ralf Baechle 提交于
      WARNING: drivers/video/built-in.o(.data+0x360): Section mismatch in reference from the variable au1100fb_driver to the function .init.text:au1100fb_drv_probe()
      The variable au1100fb_driver references
      the function __init au1100fb_drv_probe()
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      Fixing which triggers of a slew of further mismatches:
      
      WARNING: drivers/video/built-in.o(.devinit.text+0xc0): Section mismatch in reference from the function au1100fb_drv_probe() to the variable .init.data:au1100fb_fix
      The function __devinit au1100fb_drv_probe() references
      a variable __initdata au1100fb_fix.
      If au1100fb_fix is only used by au1100fb_drv_probe then
      annotate au1100fb_fix with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x21c): Section mismatch in reference from the function au1100fb_drv_probe() to the variable .init.data:au1100fb_var
      The function __devinit au1100fb_drv_probe() references
      a variable __initdata au1100fb_var.
      If au1100fb_var is only used by au1100fb_drv_probe then
      annotate au1100fb_var with a matching annotation.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      362992b1
    • R
      VIDEO: PMAGB-B: Fix section mismatch · 5b1638d9
      Ralf Baechle 提交于
      WARNING: drivers/built-in.o(.devinit.text+0xc0): Section mismatch in reference from the function pmagbafb_probe() to the variable .init.data:pmagbafb_fix
      The function __devinit pmagbafb_probe() references
      a variable __initdata pmagbafb_fix.
      If pmagbafb_fix is only used by pmagbafb_probe then
      annotate pmagbafb_fix with a matching annotation.
      
      Fixing this one triggers a few more mismatches in order:
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x414): Section mismatch in reference from the function pmagbbfb_probe() to the variable .init.data:pmagbbfb_fix
      The function __devinit pmagbbfb_probe() references
      a variable __initdata pmagbbfb_fix.
      If pmagbbfb_fix is only used by pmagbbfb_probe then
      annotate pmagbbfb_fix with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x45c): Section mismatch in reference from the function pmagbbfb_probe() to the variable .init.data:pmagbbfb_defined
      The function __devinit pmagbbfb_probe() references
      a variable __initdata pmagbbfb_defined.
      If pmagbbfb_defined is only used by pmagbbfb_probe then
      annotate pmagbbfb_defined with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x5fc): Section mismatch in reference from the function pmagbbfb_probe() to the function .init.text:pmagbbfb_screen_setup()
      The function __devinit pmagbbfb_probe() references
      a function __init pmagbbfb_screen_setup().
      If pmagbbfb_screen_setup is only used by pmagbbfb_probe then
      annotate pmagbbfb_screen_setup with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x6f4): Section mismatch in reference from the function pmagbbfb_probe() to the function .init.text:pmagbbfb_osc_setup()
      The function __devinit pmagbbfb_probe() references
      a function __init pmagbbfb_osc_setup().
      If pmagbbfb_osc_setup is only used by pmagbbfb_probe then
      annotate pmagbbfb_osc_setup with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x5f8): Section mismatch in reference from the function pmagbbfb_osc_setup() to the variable .init.data:pmagbbfb_freqs.15993
      The function __devinit pmagbbfb_osc_setup() references
      a variable __initdata pmagbbfb_freqs.15993.
      If pmagbbfb_freqs.15993 is only used by pmagbbfb_osc_setup then
      annotate pmagbbfb_freqs.15993 with a matching annotation.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      5b1638d9
    • R
      VIDEO: PMAG-BA: Fix section mismatch · 9625b513
      Ralf Baechle 提交于
      WARNING: drivers/video/built-in.o(.data+0x1e0): Section mismatch in reference fr
      om the variable pmagbafb_driver to the function .init.text:pmagbafb_probe()
      The variable pmagbafb_driver references
      the function __init pmagbafb_probe()
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      Fixing this one triggers 2 more:
      
      WARNING: drivers/video/built-in.o(.devinit.text+0xc0): Section mismatch in reference from the function pmagbafb_probe() to the variable .init.data:pmagbafb_fix
      The function __devinit pmagbafb_probe() references
      a variable __initdata pmagbafb_fix.
      If pmagbafb_fix is only used by pmagbafb_probe then
      annotate pmagbafb_fix with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x108): Section mismatch in reference from the function pmagbafb_probe() to the variable .init.data:pmagbafb_defined
      The function __devinit pmagbafb_probe() references
      a variable __initdata pmagbafb_defined.
      If pmagbafb_defined is only used by pmagbafb_probe then
      annotate pmagbafb_defined with a matching annotation.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      9625b513
    • R
      NET: declance: Fix section mismatches · 3852cc33
      Ralf Baechle 提交于
      WARNING: drivers/net/built-in.o(.data+0x24): Section mismatch in reference from
      the variable dec_lance_tc_driver to the function .init.text:dec_lance_tc_probe()
      The variable dec_lance_tc_driver references
      the function __init dec_lance_tc_probe()
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      Fixing this one results in a new mismatch:
      
      WARNING: drivers/net/built-in.o(.devinit.text+0x14): Section mismatch in reference from the function dec_lance_tc_probe() to the function .init.text:dec_lance_probe()
      The function __devinit dec_lance_tc_probe() references
      a function __init dec_lance_probe().
      If dec_lance_probe is only used by dec_lance_tc_probe then
      annotate dec_lance_probe with a matching annotation.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      3852cc33
    • R
      VIDEO. gbefb: Fix section mismatches. · 18f9f11a
      Ralf Baechle 提交于
      WARNING: drivers/video/built-in.o(.devinit.text+0x54): Section mismatch in reference from the function gbefb_probe() to the function .init.text:gbefb_setup()
      The function __devinit gbefb_probe() references
      a function __init gbefb_setup().
      If gbefb_setup is only used by gbefb_probe then
      annotate gbefb_setup with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x208): Section mismatch in reference from the function gbefb_probe() to the variable .init.data:mode_option
      The function __devinit gbefb_probe() references
      a variable __initdata mode_option.
      If mode_option is only used by gbefb_probe then
      annotate mode_option with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x214): Section mismatch in reference from the function gbefb_probe() to the variable .init.data:default_mode
      The function __devinit gbefb_probe() references
      a variable __initdata default_mode.
      If default_mode is only used by gbefb_probe then
      annotate default_mode with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x23c): Section mismatch in reference from the function gbefb_probe() to the variable .init.data:default_var
      The function __devinit gbefb_probe() references
      a variable __initdata default_var.
      If default_var is only used by gbefb_probe then
      annotate default_var with a matching annotation.
      
      Fixing these results in more mismatches:
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x3c): Section mismatch in reference from the function gbefb_setup() to the variable .init.data:default_var_LCD
      The function __devinit gbefb_setup() references
      a variable __initdata default_var_LCD.
      If default_var_LCD is only used by gbefb_setup then
      annotate default_var_LCD with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x14c): Section mismatch in reference from the function gbefb_setup() to the variable .init.data:default_mode_LCD
      The function __devinit gbefb_setup() references
      a variable __initdata default_mode_LCD.
      If default_mode_LCD is only used by gbefb_setup then
      annotate default_mode_LCD with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x150): Section mismatch in reference from the function gbefb_setup() to the variable .init.data:default_var_CRT
      The function __devinit gbefb_setup() references
      a variable __initdata default_var_CRT.
      If default_var_CRT is only used by gbefb_setup then
      annotate default_var_CRT with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x154): Section mismatch in reference from the function gbefb_setup() to the variable .init.data:default_mode_CRT
      The function __devinit gbefb_setup() references
      a variable __initdata default_mode_CRT.
      If default_mode_CRT is only used by gbefb_setup then
      annotate default_mode_CRT with a matching annotation.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      18f9f11a
    • C
      drm/i915: Clear any existing dither mode prior to enabling spatial dithering · a392a103
      Chris Wilson 提交于
      We cannot the initial configuration set by the BIOS not to have a dither
      mode enabled which conflicts with our enabling the Spatial Temporal 1
      dither mode for PCH. In particular, the BIOS may either enable temporal
      dithering or the Spatial Temporal 2 with the result that we enable pure
      temporal dithering. Temporal dithering looks bad and is perceived as a
      flicker.
      
      Fixes:
      
        Bug 29248 - [Arrandale] Annoying flicker on internal panel, goes away
                    after suspend to RAM
        https://bugs.freedesktop.org/show_bug.cgi?id=29248Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      a392a103
    • J
      drm/i915: handle shared framebuffers when flipping · be9a3dbf
      Jesse Barnes 提交于
      If a framebuffer is shared across CRTCs, the x,y position of one of them
      is likely to be something other than the origin (e.g. for extended
      desktop configs).  So calculate the offset at flip time so such
      configurations can work.
      
      Fixes https://bugs.freedesktop.org/show_bug.cgi?id=28518.
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Tested-by: NThomas M. <tmezzadra@gmail.com>
      Tested-by: Nfangxun <xunx.fang@intel.com>
      Cc: stable@kernel.org
      Signed-off-by: NEric Anholt <eric@anholt.net>
      be9a3dbf
  2. 26 7月, 2010 2 次提交
    • D
      quiesce EDAC initialisation on desktop/mobile i7 · ab089374
      Daniel J Blueman 提交于
      Don't print failure to detect Core i7 EDAC facilities to the console at
      boot time, most often occurring on Core i7 desktops and laptops.
      Signed-off-by: NDaniel J Blueman <daniel.blueman@gmail.com>
      Acked-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ab089374
    • E
      Driver-core: Always create class directories for classses that support namespaces. · 24b1442d
      Eric W. Biederman 提交于
      This fixes the regression in 2.6.35-rcX where bluetooth network devices
      would fail to be deleted from sysfs, causing their destruction and
      recreation to fail.  In addition this fixes the mac80211_hwsim driver
      where it would leave around sysfs files when the driver was removed.
      
      This problem is discussed at
        https://bugzilla.kernel.org/show_bug.cgi?id=16257
      
      The reason for the regression is that the network namespace support
      added to sysfs expects and requires that network devices be put in
      directories that can contain only network devices.
      
      Today get_device_parent almost provides that guarantee for all class
      devices, except for a specific exception when the parent of a class
      devices is a class device.  It would be nice to simply remove that
      arguably incorrect special case, but apparently the input devices depend
      on it being there.  So I have only removed it for class devices with
      network namespace support.  Which today are the network devices.
      
      It has been suggested that a better fix would be to change the parent
      device from a class device to a bus device, which in the case of the
      bluetooth driver would change /sys/class/bluetooth to /sys/bus/bluetoth,
      I can not see how we would avoid significant userspace breakage if we
      were to make that change.
      
      Adding an extra directory in the path to the device will also be
      userspace visible but it is much less likely to break things.
      Everything is still accessible from /sys/class (for example), and it
      fixes two bugs.  Adding an extra directory fixes a 3 year old regression
      introduced with the new sysfs layout that makes it impossible to rename
      bnep0 network devices to names that conflict with hci device attributes
      like hci_revsion.  Adding an additional directory removes the new
      failure modes introduced by the network namespace code.
      
      If it weren't for the regession in the renaming of network devices I
      would figure out how to just make the sysfs code deal with this
      configuration of devices.
      
      In summary this patch fixes regressions by changing:
      "/sys/class/bluetooth/hci0/bnep0" to "/sys/class/bluetooth/hci0/net/bnep0".
      Reported-by: NJohannes Berg <johannes@sipsolutions.net>
      Reported-by: NJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      24b1442d