1. 21 1月, 2013 2 次提交
  2. 18 1月, 2013 11 次提交
  3. 17 1月, 2013 4 次提交
    • J
      drm/i915: fix FORCEWAKE posting reads · b5144075
      Jani Nikula 提交于
      We stopped reading FORCEWAKE for posting reads in
      
      commit 8dee3eea
      Author: Ben Widawsky <ben@bwidawsk.net>
      Date:   Sat Sep 1 22:59:50 2012 -0700
      
          drm/i915: Never read FORCEWAKE
      
      and started using something from the same cacheline instead. On the
      bug reporter's machine this broke entering rc6 states after a
      suspend/resume cycle. It turns out reading ECOBUS as posting read
      worked fine, while GTFIFODBG did not, preventing RC6 states after
      suspend/resume per the bug report referenced below. It's not entirely
      clear why, but clearly GTFIFODBG was nowhere near the same cacheline
      or address range as FORCEWAKE.
      
      Trying out various registers for posting reads showed that all tested
      registers for which NEEDS_FORCE_WAKE() (in i915_drv.c) returns true
      work. Conversely, most (but not quite all) registers for which
      NEEDS_FORCE_WAKE() returns false do not work. Details in the referenced
      bug.
      
      Based on the above, add posting reads on ECOBUS where GTFIFODBG was
      previously relied on.
      
      In true cargo cult spirit, add posting reads for FORCEWAKE_VLV writes as
      well, but instead of ECOBUS, use FORCEWAKE_ACK_VLV which is in the same
      address range as FORCEWAKE_VLV.
      
      v2: Add more details to the commit message. No functional changes.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=52411Reported-and-tested-by: NAlexander Bersenev <bay@hackerdom.ru>
      CC: Ben Widawsky <ben@bwidawsk.net>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: stable@vger.kernel.org
      [danvet: add cc: stable and make the commit message a bit clearer that
      this is a regression fix and what exactly broke.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      b5144075
    • C
      mfd, TWL4030: TWL4030 need select REGMAP_I2C · fbfc23ef
      Chuansheng Liu 提交于
      Fix the build error:
      
        drivers/built-in.o: In function `twl_probe':
        drivers/mfd/twl-core.c:1256: undefined reference to `devm_regmap_init_i2c'
        make: *** [vmlinux] Error 1
      Signed-off-by: Nliu chuansheng <chuansheng.liu@intel.com>
      Acked-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      [ Samuel is busy, taking it directly  - Linus ]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      fbfc23ef
    • R
      drivers/base/cpu.c: Fix typo in comment · 30a4840a
      Ralf Baechle 提交于
      [ We should make fun of people who can't speel too, but then we'd have
        no time for any real work at all  - Linus ]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      30a4840a
    • L
      firmware: make sure the fw file size is not 0 · 4adf07fb
      Luciano Coelho 提交于
      If the requested firmware file size is 0 bytes in the filesytem, we
      will try to vmalloc(0), which causes a warning:
      
        vmalloc: allocation failure: 0 bytes
        kworker/1:1: page allocation failure: order:0, mode:0xd2
          __vmalloc_node_range+0x164/0x208
          __vmalloc_node+0x4c/0x58
          vmalloc+0x38/0x44
          _request_firmware_load+0x220/0x6b0
          request_firmware+0x64/0xc8
          wl18xx_setup+0xb4/0x570 [wl18xx]
          wlcore_nvs_cb+0x64/0x9f8 [wlcore]
          request_firmware_work_func+0x94/0x100
          process_one_work+0x1d0/0x750
          worker_thread+0x184/0x4ac
          kthread+0xb4/0xc0
      
      To fix this, check whether the file size is less than or equal to zero
      in fw_read_file_contents().
      
      Cc: stable <stable@vger.kernel.org> [3.7]
      Signed-off-by: NLuciano Coelho <coelho@ti.com>
      Acked-by: NMing Lei <ming.lei@canonical.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4adf07fb
  4. 16 1月, 2013 19 次提交
  5. 15 1月, 2013 4 次提交