1. 15 11月, 2012 4 次提交
    • L
      ACPICA: Fix divergences of definition conflicts. · 78e25fef
      Lv Zheng 提交于
      There are conflicts in the "acpi_device_id*" definitions between the
      Linux and the ACPICA.  The definitions of acpi_device_id* in ACPICA
      have been changed to the "acpi_pnp_device_id*".  This patch changes
      the corresponding "acpica_device_id*" definitiions in the Linux.
      
      This patch will not affect the generated vmlinx binary.
      This will decrease 298 lines of 20120913 divergence.diff.
      Signed-off-by: NLv Zheng <lv.zheng@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      78e25fef
    • L
      ACPICA: Fix unmerged debugger divergences. · f540fadf
      Lv Zheng 提交于
      Debugger improvements in ACPICA are always ignored by ACPICA Linux
      release.  This will lead to divergences between Linux and ACPICA.
      This patch fixes such unmerged debugger updates.
      
      Following patches are included:
      1. Fixed a couple compiler warnings for extra extern
         Wed, 14 Mar 2007 21:12:19 +0000
      2. Cleanup for internal Reference Object.
         Wed, 27 Aug 2008 10:11:30 -0700
      3. Debugger: Lock method args for multithread command.
         Fri, 24 Apr 2009 12:28:49 -0700
      4. Debugger: Add max count argument for Batch command.
         Tue, 29 Sep 2009 12:31:58 -0700
      5. Add new host interfaces for _OSI support.
         Thu, 5 Aug 2010 14:18:28 -0700
      6. Increase debugger buffer size for method return objects.
         Wed, 17 Nov 2010 13:48:30 -0800
      7. Debugger: Add command to display status of global handlers.
         Tue, 25 Jan 2011 13:47:58 -0800
      8. Debugger: Split large dbcmds.c file.
         Wed, 26 Jan 2011 13:03:41 -0800
      9. Debugger/AcpiExec: Add support to pass complex args to methods.
         Tue, 17 May 2011 13:33:39 -0700
      10.Debugger: Add Template command to dump resource templates.
         Fri, 28 Oct 2011 14:18:51 -0700
      11.Support for custom ACPICA build for ACPI 5.0 reduced hardware.
         Wed, 1 Feb 2012 13:18:17 -0800
      12.Debugger: Improve command help support.
         Wed, 15 Feb 2012 07:59:26 -0800
      13.Update ACPI_HW_DEPENDENT* macro invocations.
         Wed, 15 Feb 2012 08:14:08 -0800
      14.Debugger: Rename function to simplify source code conversion.
         Wed, 13 Jun 2012 14:23:06 -0700
      15.Debugger: Enhance "Tables" and "Unload" commands.
         Fri, 29 Jun 2012 13:10:58 -0700
      16.Debugger: update prototype for AcpiDbSleep function.
         Fri, 17 Aug 2012 13:43:02 -0700
      
      This patch will not affect the generated vmlinx binary.
      This will decrease 264 lines of 20120913 divergence.diff.
      Signed-off-by: NRobert Moore <robert.moore@intel.com>
      Signed-off-by: NLv Zheng <lv.zheng@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      f540fadf
    • L
      ACPICA: Fix unmerged utility divergences. · 6d33b6be
      Lv Zheng 提交于
      Utility improvements in ACPICA are partial ignored by ACPICA Linux
      release.  This will lead to divergences between Linux and ACPICA.
      This patch ports the entire "utility" into Linux and makes them
      igored in the compilation stage by "ACPI_FUTURE_USAGE".
      The following "Utility" files have been ported into the Linux:
        drivers/acpi/uttrack.c
        drivers/acpi/utcache.c
        drivers/acpi/utids.c
      
      This patch will not affect the generated vmlinx binary.
      This will decrease 274 lines of 20120913 divergence.diff.
      Signed-off-by: NRobert Moore <robert.moore@intel.com>
      Signed-off-by: NLv Zheng <lv.zheng@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      6d33b6be
    • B
      Cleanup of invalid ACPI name handling and repair · 45dcd315
      Bob Moore 提交于
       Implemented a change/cleanup for the handling of invalid ACPI names.
       Names are now validated and repaired only when
       1) entering a new name into the namespace and
       2) disassembling a named AML opcode. A warning is only displayed in
          debug mode or when the interpreter is in "strict" mode, since some
          working machines do in fact contain invalid ACPI names.
      Signed-off-by: NLv Zheng <lv.zheng@intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      45dcd315
  2. 10 11月, 2012 3 次提交
  3. 09 11月, 2012 8 次提交
  4. 08 11月, 2012 23 次提交
  5. 07 11月, 2012 2 次提交
    • K
      xen/generic: Disable fallback build on ARM. · 6bf926dd
      Konrad Rzeszutek Wilk 提交于
      As there is no need for it (the fallback code is for older
      hypervisors and they only run under x86), and also b/c
      we get:
      
      drivers/xen/fallback.c: In function 'xen_event_channel_op_compat':
      drivers/xen/fallback.c:10:19: error: storage size of 'op' isn't known
      drivers/xen/fallback.c:15:2: error: implicit declaration of function '_hypercall1' [-Werror=implicit-function-declaration]
      drivers/xen/fallback.c:15:19: error: expected expression before 'int'
      drivers/xen/fallback.c:18:7: error: 'EVTCHNOP_close' undeclared (first use in this function)
      drivers/xen/fallback.c:18:7: note: each undeclared identifier is reported only once for each function it appears in
      .. and more
      
      [v1: Moved the enablement to be covered by CONFIG_X86 per Ian's suggestion]
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      6bf926dd
    • M
      xen/events: fix RCU warning, or Call idle notifier after irq_enter() · 772aebce
      Mojiong Qiu 提交于
      exit_idle() should be called after irq_enter(), otherwise it throws:
      
      [ INFO: suspicious RCU usage. ]
      3.6.5 #1 Not tainted
      -------------------------------
      include/linux/rcupdate.h:725 rcu_read_lock() used illegally while idle!
      
      other info that might help us debug this:
      
      RCU used illegally from idle CPU!
      rcu_scheduler_active = 1, debug_locks = 1
      RCU used illegally from extended quiescent state!
      1 lock held by swapper/0/0:
       #0:  (rcu_read_lock){......}, at: [<ffffffff810e9fe0>] __atomic_notifier_call_chain+0x0/0x140
      
      stack backtrace:
      Pid: 0, comm: swapper/0 Not tainted 3.6.5 #1
      Call Trace:
       <IRQ>  [<ffffffff811259a2>] lockdep_rcu_suspicious+0xe2/0x130
       [<ffffffff810ea10c>] __atomic_notifier_call_chain+0x12c/0x140
       [<ffffffff810e9fe0>] ? atomic_notifier_chain_unregister+0x90/0x90
       [<ffffffff811216cd>] ? trace_hardirqs_off+0xd/0x10
       [<ffffffff810ea136>] atomic_notifier_call_chain+0x16/0x20
       [<ffffffff810777c3>] exit_idle+0x43/0x50
       [<ffffffff81568865>] xen_evtchn_do_upcall+0x25/0x50
       [<ffffffff81aa690e>] xen_do_hypervisor_callback+0x1e/0x30
       <EOI>  [<ffffffff810013aa>] ? hypercall_page+0x3aa/0x1000
       [<ffffffff810013aa>] ? hypercall_page+0x3aa/0x1000
       [<ffffffff81061540>] ? xen_safe_halt+0x10/0x20
       [<ffffffff81075cfa>] ? default_idle+0xba/0x570
       [<ffffffff810778af>] ? cpu_idle+0xdf/0x140
       [<ffffffff81a4d881>] ? rest_init+0x135/0x144
       [<ffffffff81a4d74c>] ? csum_partial_copy_generic+0x16c/0x16c
       [<ffffffff82520c45>] ? start_kernel+0x3db/0x3e8
       [<ffffffff8252066a>] ? repair_env_string+0x5a/0x5a
       [<ffffffff82520356>] ? x86_64_start_reservations+0x131/0x135
       [<ffffffff82524aca>] ? xen_start_kernel+0x465/0x46
      
      Git commit 98ad1cc1
      Author: Frederic Weisbecker <fweisbec@gmail.com>
      Date:   Fri Oct 7 18:22:09 2011 +0200
      
          x86: Call idle notifier after irq_enter()
      
      did this, but it missed the Xen code.
      Signed-off-by: NMojiong Qiu <mjqiu@tencent.com>
      Cc: stable@vger.kernel.org # from 3.3 and newer.
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      772aebce