1. 24 1月, 2008 6 次提交
    • L
      ACPI: make _OSI(Linux) console messages smarter · d4b7dc49
      Len Brown 提交于
      If BIOS invokes _OSI(Linux), the kernel response
      depends on what the ACPI DMI list knows about the system,
      and that is reflectd in dmesg:
      
      1) System unknown to DMI:
      
      ACPI: BIOS _OSI(Linux) query ignored
      ACPI: DMI System Vendor: LENOVO
      ACPI: DMI Product Name: 7661W1P
      ACPI: DMI Product Version: ThinkPad T61
      ACPI: DMI Board Name: 7661W1P
      ACPI: DMI BIOS Vendor: LENOVO
      ACPI: DMI BIOS Date: 10/18/2007
      ACPI: Please send DMI info above to linux-acpi@vger.kernel.org
      ACPI: If "acpi_osi=Linux" works better, please notify linux-acpi@vger.kernel.org
      
      2) System known to DMI, but effect of OSI(Linux) unknown:
      
      ACPI: DMI detected: Lenovo ThinkPad T61
      ...
      ACPI: BIOS _OSI(Linux) query ignored via DMI
      ACPI: If "acpi_osi=Linux" works better, please notify linux-acpi@vger.kernel.org
      
      3) System known to DMI, which disables _OSI(Linux):
      
      ACPI: DMI detected: Lenovo ThinkPad T61
      ...
      ACPI: BIOS _OSI(Linux) query ignored via DMI
      
      4) System known to DMI, which enable _OSI(Linux):
      
      ACPI: DMI detected: Lenovo ThinkPad T61
      ACPI: Added _OSI(Linux)
      ...
      ACPI: BIOS _OSI(Linux) query honored via DMI
      
      cmdline overrides take precidence over the built-in
      default and the DMI prescribed default.
      cmdline "acpi_osi=Linux" results in:
      
      ACPI: BIOS _OSI(Linux) query honored via cmdline
      Signed-off-by: NLen Brown <len.brown@intel.com>
      d4b7dc49
    • L
      ACPI: Delete Intel Customer Reference Board (CRB) from OSI(Linux) DMI list · 7ce95ce5
      Len Brown 提交于
      Linux does not want BIOS writers to invoke _OSI(Linux) -
      for in the field it causes more Windows incompatibility problems
      than it solves.
      
      So when it is seen in the BIOS for an Intel Customer Reference Board,
      Linux should ignore its effect by default, and should complain loudly.
      Otherwise, the reference BIOS will go unfixed, and the bad BIOS
      will spread to the field.
      
      Users of this board can get the old behavior with "acpi_osi=Linux"
      
      As this was the only entry, delete acpi_osl_dmi_table[].
      Signed-off-by: NLen Brown <len.brown@intel.com>
      7ce95ce5
    • L
    • L
      ACPI: create acpi_dmi_dump() · 5a4e1432
      Len Brown 提交于
      A utility routine to print common entries used
      for ACPI-related DMI blacklist entries.
      Signed-off-by: NLen Brown <len.brown@intel.com>
      5a4e1432
    • L
      DMI: create dmi_get_slot() · f89e3b06
      Len Brown 提交于
      This simply allows other sub-systems (such as ACPI)
      to access and print out slots in static dmi_ident[].
      Signed-off-by: NLen Brown <len.brown@intel.com>
      f89e3b06
    • L
      DMI: move dmi_available declaration to linux/dmi.h · 81b4e1f6
      Len Brown 提交于
      Signed-off-by: NLen Brown <len.brown@intel.com>
      81b4e1f6
  2. 23 1月, 2008 3 次提交
  3. 22 1月, 2008 4 次提交
  4. 21 1月, 2008 4 次提交
    • P
      [NET]: rtnl_link: fix use-after-free · 68365458
      Patrick McHardy 提交于
      When unregistering the rtnl_link_ops, all existing devices using
      the ops are destroyed. With nested devices this may lead to a
      use-after-free despite the use of for_each_netdev_safe() in case
      the upper device is next in the device list and is destroyed
      by the NETDEV_UNREGISTER notifier.
      
      The easy fix is to restart scanning the device list after removing
      a device. Alternatively we could add new devices to the front of
      the list to avoid having dependant devices follow the device they
      depend on. A third option would be to only restart scanning if
      dev->iflink of the next device matches dev->ifindex of the current
      one. For now this seems like the safest solution.
      
      With this patch, the veth rtnl_link_ops unregistration can use
      rtnl_link_unregister() directly since it now also handles destruction
      of multiple devices at once.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      68365458
    • A
      [ATM] atm/suni.c: Fix section mismatch. · 421c9914
      Adrian Bunk 提交于
      EXPORT_SYMBOL'ed code mustn't be __*init.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Acked-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      421c9914
    • A
      [ATM] atm/idt77105.c: Fix section mismatch. · 799fa677
      Adrian Bunk 提交于
      EXPORT_SYMBOL'ed code mustn't be __*init.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Acked-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      799fa677
    • D
      [NET]: Fix interrupt semaphore corruption in Intel drivers. · 49d85c50
      David S. Miller 提交于
      Several of the Intel ethernet drivers keep an atomic counter used to
      manage when to actually hit the hardware with a disable or an enable.
      
      The way the net_rx_work() breakout logic works during a pending
      napi_disable() is that it simply unschedules the poll even if it
      still has work.
      
      This can potentially leave interrupts disabled, but that is OK
      because all of the drivers are about to disable interrupts
      anyways in all such code paths that do a napi_disable().
      
      Unfortunately, this trips up the semaphore used here in the Intel
      drivers.  If you hit this case, when you try to bring the interface
      back up it won't enable interrupts.  A reload of the driver module
      fixes it of course.
      
      So what we do is make sure all the sequences now go:
      
      	napi_disable();
      	atomic_set(&adapter->irq_sem, 0);
      	*_irq_disable();
      
      which makes sure the counter is always in the correct state.
      
      Reported by Robert Olsson.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      49d85c50
  5. 20 1月, 2008 2 次提交
  6. 19 1月, 2008 21 次提交