Linux 2.6.27.15
Subsystems (17)
We (the -stable team) are announcing the release of the 2.6.27.15 kernel.
It contains a wide range of bugfixes, and all users of the 2.6.27 kernel series are strongly encouraged to upgrade.
I'll also be replying to this message with a copy of the patch between 2.6.27.14 and 2.6.27.15
The updated 2.6.27.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.27.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.27.y.git;a=summarythanks,
greg k-h
------------
Makefile | 2 arch/ia64/sn/kernel/io_acpi_init.c | 8 +-- arch/m68knommu/Kconfig | 4 + arch/x86/Kconfig | 3 + arch/x86/kernel/acpi/cstate.c | 4 + arch/x86/lib/usercopy_32.c | 4 - arch/x86/lib/usercopy_64.c | 4 - arch/x86/mm/pageattr.c | 49 ++++++++++++------ arch/x86/pci/irq.c | 1 drivers/acpi/ac.c | 2 drivers/acpi/acpi_memhotplug.c | 5 - drivers/acpi/asus_acpi.c | 4 + drivers/acpi/battery.c | 5 + drivers/acpi/bay.c | 2 drivers/acpi/bus.c | 4 - drivers/acpi/button.c | 4 - drivers/acpi/container.c | 2 drivers/acpi/dispatcher/dsmethod.c | 3 + drivers/acpi/dock.c | 6 +- drivers/acpi/ec.c | 8 ++- drivers/acpi/namespace/nsutils.c | 8 ++- drivers/acpi/namespace/nsxfname.c | 1 drivers/acpi/numa.c | 2 drivers/acpi/osl.c | 5 - drivers/acpi/parser/psparse.c | 4 + drivers/acpi/pci_link.c | 4 - drivers/acpi/pci_root.c | 2 drivers/acpi/pci_slot.c | 10 +-- drivers/acpi/power.c | 2 drivers/acpi/processor_core.c | 4 - drivers/acpi/processor_idle.c | 1 drivers/acpi/processor_perflib.c | 2 drivers/acpi/processor_throttling.c | 2 drivers/acpi/sbshc.c | 2 drivers/acpi/scan.c | 12 +++- drivers/acpi/sleep/main.c | 10 +++ drivers/acpi/thermal.c | 43 ++++++++++------ drivers/acpi/utils.c | 4 - drivers/acpi/video.c | 47 +++++++++-------- drivers/ata/libata-acpi.c | 2 drivers/ata/sata_mv.c | 6 +- drivers/ata/sata_nv.c | 77 ++++++++++++++++++---------- drivers/char/selection.c | 2 drivers/cpuidle/cpuidle.c | 9 +++ drivers/cpuidle/governors/menu.c | 10 +++ drivers/input/keyboard/atkbd.c | 34 ++++++++++++ drivers/misc/asus-laptop.c | 15 +++-- drivers/misc/eeepc-laptop.c | 2 drivers/misc/fujitsu-laptop.c | 8 +-- drivers/misc/intel_menlow.c | 29 +++++----- drivers/net/ixgb/ixgb_main.c | 8 +-- drivers/pci/hotplug/acpiphp_glue.c | 14 ++--- drivers/pci/hotplug/acpiphp_ibm.c | 4 - drivers/pci/hotplug/sgi_hotplug.c | 4 - drivers/serial/jsm/jsm_tty.c | 6 ++ drivers/usb/host/isp1760-if.c | 96 ++++++++++++++++++++---------------- drivers/video/aty/mach64_ct.c | 11 ++++ fs/cifs/connect.c | 18 +++--- fs/dlm/plock.c | 2 fs/nfsd/nfs4state.c | 31 +++++++---- include/acpi/acpi_bus.h | 2 include/acpi/actypes.h | 2 include/linux/if_vlan.h | 7 ++ include/linux/pci_ids.h | 1 net/8021q/vlan_core.c | 46 ++++++++++++----- net/core/dev.c | 3 + 66 files changed, 480 insertions(+), 258 deletions(-)
Adrian Bunk (1):
m68knommu: set NO_DMA
Alexey Starikovskiy (2):
ACPI EC: Fix regression due to use of uninitialized variable
Newly inserted battery might differ from one just removed, so update of battery info fields is required.
Andi Kleen (1):
x86: use early clobbers in usercopy*.c
Bob Moore (1):
ACPICA: Fix wrong resource descriptor length for 64-bit build
Brandeburg, Jesse (1):
ixgb: fix bug when freeing resources
Corentin Chary (1):
asus-laptop: Fix the led behavior with value > 1
Fiodor Suietov (1):
ACPICA: Add check for invalid handle in acpi_get_object_info
Greg Kroah-Hartman (1):
Linux 2.6.27.15
J. Bruce Fields (1):
nfsd: Ensure nfsv4 calls the underlying filesystem on LOCKT
Jeff Layton (3):
cifs: make sure we allocate enough storage for socket address
nfsd: only set file_lock.fl_lmops in nfsd4_lockt if a stateowner is found
dlm: initialize file_lock struct in GETLK before copying conflicting lock
Karl Bongers (1):
USB: isp1760: Fix probe in PCI glue code
Lin Ming (2):
ACPICA: Fixed a couple memory leaks associated with "implicit return"
ACPICA: Allow multiple backslash prefix in namepaths
Mark Lord (2):
sata_mv: fix 8-port timeouts on 508x/6081 chips
sata_mv: Fix chip type for Hightpoint RocketRaid 1740/1742
Matthew Garrett (1):
Input: atkbd - broaden the Dell DMI signatures
Matthew Wilcox (1):
ACPI: Change acpi_evaluate_integer to support 64-bit on 32-bit kernels
Mikulas Patocka (1):
Fix memory corruption in console selection
Patrick McHardy (1):
net: fix packet socket delivery in rx irq handler
Paul Larson (1):
Add enable_ms to jsm driver
Rafael J. Wysocki (2):
ACPI: Do not modify SCI_EN directly
ACPI suspend: Blacklist HP xw4600 Workstation for old code ordering
Risto Suominen (1):
fbdev/atyfb: Fix DSP config on some PowerMacs & PowerBooks
Seth Heasley (1):
PCI: irq and pci_ids patch for Intel Tigerpoint DeviceIDs
Stuart Hopkins (1):
Input: atkbd - Samsung NC10 key repeat fix
Suresh Siddha (1):
x86: fix page attribute corruption with cpa()
Tejun Heo (3):
sata_nv: rename nv_nf2_hardreset()
sata_nv: fix MCP5x reset
sata_nv: ck804 has borked hardreset too
Thomas Renninger (1):
ACPI: Fix compiler warnings introduced by 32 to 64 bit acpi conversions
Torsten Krah (1):
asus-laptop: Add support for P30/P35
Venkatesh Pallipadi (4):
cpuidle: update the last_state acpi cpuidle reflecting actual state entered
cpuidle: upon BIOS bug, default to default_idle rather than polling
cpuidle: use last_state which can reflect the actual state entered
cpuidle: Add decaying history logic to menu idle predictor
Zhang Rui (2):
video: always update the brightness when poking "brightness" don't load asus-acpi if model is not supported
Zhao Yakui (2):
ACPI: Avoid array address overflow when _CST MWAIT hint bits are set
ACPI: Attach the ACPI device to the ACPI handle as early as possible
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 27 -EXTRAVERSION = .14 +EXTRAVERSION = .15 NAME = Trembling Tortoise # *DOCUMENTATION*
arch/ia64/sn/kernel/io_acpi_init.c +4 -4
@@ -232,7 +232,7 @@ exit:static unsigned int get_host_devfn (acpi_handle device_handle,acpi_handle rootbus_handle) { -unsigned long adr; +unsigned long long adr;acpi_handle child;unsigned int devfn;int function;
@@ -292,8 +292,8 @@ get_host_devfn(acpi_handle device_handle, acpi_handle rootbus_handle)static acpi_status find_matching_device (acpi_handle handle,u32 lvl,void *context,void **rv) { -unsigned long bbn =-1 ; -unsigned long adr; +unsigned long long bbn =-1 ; +unsigned long long adr;acpi_handle parent =NULL ;acpi_status status;unsigned int devfn;
@@ -348,7 +348,7 @@ sn_acpi_get_pcidev_info(struct pci_dev *dev, struct pcidev_info **pcidev_info,unsigned int host_devfn;struct sn_pcidev_match pcidev_match;acpi_handle rootbus_handle; -unsigned long segment; +unsigned long long segment;acpi_status status; rootbus_handle =PCI_CONTROLLER (dev)->acpi_handle;
arch/m68knommu/Kconfig +4 -0
@@ -14,6 +14,10 @@ config MMU bool default n +config NO_DMA + bool + default y + config FPU bool default n
arch/x86/Kconfig +3 -0
@@ -123,6 +123,9 @@ config GENERIC_TIME_VSYSCALL config ARCH_HAS_CPU_RELAX def_bool y +config ARCH_HAS_DEFAULT_IDLE + def_bool y + config ARCH_HAS_CACHE_LINE_SIZE def_bool y
arch/x86/kernel/acpi/cstate.c +3 -1
@@ -56,6 +56,7 @@ static struct cstate_entry *cpu_cstate_entry; /* per CPU ptr */static short mwait_supported[ACPI_PROCESSOR_MAX_POWER ];#define MWAIT_SUBSTATE_MASK (0xf) +#define MWAIT_CSTATE_MASK (0xf)#define MWAIT_SUBSTATE_SIZE (4)#define CPUID_MWAIT_LEAF (5)
@@ -98,7 +99,8 @@ int acpi_processor_ffh_cstate_probe(unsigned int cpu,cpuid (CPUID_MWAIT_LEAF , &eax, &ebx, &ecx, &edx);/* Check whether this particular cx_type (in CST) is supported or not */ - cstate_type = (cx->address >>MWAIT_SUBSTATE_SIZE ) +1 ; + cstate_type = ((cx->address >>MWAIT_SUBSTATE_SIZE ) & +MWAIT_CSTATE_MASK ) +1 ; edx_part = edx >> (cstate_type *MWAIT_SUBSTATE_SIZE ); num_cstate_subtype = edx_part &MWAIT_SUBSTATE_MASK ;
arch/x86/lib/usercopy_32.c +2 -2
@@ -49,7 +49,7 @@ do { \" jmp 2b\n" \".previous\n" \ _ASM_EXTABLE(0b ,3b ) \ - : "=d"(res), "=c"(count), "=&a" (__d0), "=&S" (__d1), \ + : "=&d"(res), "=&c"(count), "=&a" (__d0), "=&S" (__d1), \" =&D " (__d2) \ : "i"(-EFAULT), "0"(count), "1"(count), "3"(src), "4"(dst) \: " memory"); \
@@ -211,7 +211,7 @@ long strnlen_user(const char __user *s, long n)" .align 4\n" " .long 0b,2b\n" ".previous" - :"=r" (n), "=D" (s), "=a" (res), "=c" (tmp) + :"=&r" (n), "=&D" (s), "=&a" (res), "=&c" (tmp) :"0" (n), "1" (s), "2" (0), "3" (mask) :"cc"); return res & mask;
arch/x86/lib/usercopy_64.c +2 -2
@@ -32,7 +32,7 @@ do { \" jmp 2b\n" \".previous\n" \ _ASM_EXTABLE(0b ,3b ) \ - : "=r"(res), "=c"(count), "=&a" (__d0), "=&S" (__d1), \ + : "=&r"(res), "=&c"(count), "=&a" (__d0), "=&S" (__d1), \" =&D " (__d2) \ : "i"(-EFAULT), "0"(count), "1"(count), "3"(src), "4"(dst) \: " memory"); \
@@ -86,7 +86,7 @@ unsigned long __clear_user(void __user *addr, unsigned long size)".previous\n" _ASM_EXTABLE(0b,3b)_ASM_EXTABLE (1b ,2b ) - : [size8] "=c"(size), [dst] "=&D" (__d0) + : [size8] "=&c"(size), [dst] "=&D" (__d0) : [size1] "r"(size & 7), "[size8]" (size / 8), "[dst]"(addr), [zero] "r" (0UL), [eight] "r" (8UL)); return size;
arch/x86/mm/pageattr.c +34 -15
69 lines not on this page · raw message
arch/x86/pci/irq.c +1 -0
@@ -573,6 +573,7 @@ static __init int intel_router_probe(struct irq_router *r, struct pci_dev *routecase PCI_DEVICE_ID_INTEL_ICH7_1 :case PCI_DEVICE_ID_INTEL_ICH7_30 :case PCI_DEVICE_ID_INTEL_ICH7_31 : +case PCI_DEVICE_ID_INTEL_TGP_LPC :case PCI_DEVICE_ID_INTEL_ESB2_0 :case PCI_DEVICE_ID_INTEL_ICH8_0 :case PCI_DEVICE_ID_INTEL_ICH8_1 :
drivers/acpi/ac.c +1 -1
@@ -85,7 +85,7 @@ struct acpi_ac {struct power_supply charger;#endif struct acpi_device * device; -unsigned long state; +unsigned long long state; };#define to_acpi_ac (x) container_of(x, struct acpi_ac, charger);
drivers/acpi/acpi_memhotplug.c +2 -3
@@ -194,8 +194,7 @@ acpi_memory_get_device(acpi_handle handle,static int acpi_memory_check_device (struct acpi_memory_device *mem_device) { -unsigned long current_status; - +unsigned long long current_status;/* Get device present/absent information from the _STA */ if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, "_STA",
@@ -264,7 +263,7 @@ static int acpi_memory_powerdown_device(struct acpi_memory_device *mem_device)acpi_status status;struct acpi_object_list arg_list;union acpi_object arg; -unsigned long current_status; +unsigned long long current_status;/* Issue the _EJ0 command */
drivers/acpi/asus_acpi.c +3 -1
@@ -753,7 +753,7 @@ static int get_lcd_state(void)/* That's what the AML code does */ lcd = out_obj.integer.value >>8 ; }else if (hotk->model == F3Sa) { -unsigned long tmp; +unsigned long long tmp;union acpi_object param;struct acpi_object_list input;acpi_status status;
@@ -1244,6 +1244,8 @@ static int asus_hotk_get_info(void) "default values\n", string);printk (KERN_NOTICE " send /proc/acpi/dsdt to the developers\n" ); +kfree (model); +return -ENODEV ; } hotk->methods = &model_conf[hotk->model];return AE_OK ;
drivers/acpi/battery.c +3 -2
@@ -472,7 +472,7 @@ static void sysfs_remove_battery(struct acpi_battery *battery)static int acpi_battery_update (struct acpi_battery *battery) { -int result; +int result, old_present =acpi_battery_present (battery); result =acpi_battery_get_status (battery);if (result)return result;
@@ -483,7 +483,8 @@ static int acpi_battery_update(struct acpi_battery *battery) return 0; }#endif -if (!battery->update_time) { +if (!battery->update_time || + old_present !=acpi_battery_present (battery)) { result =acpi_battery_get_info (battery);if (result)return result;
drivers/acpi/bay.c +1 -1
@@ -90,7 +90,7 @@ static int is_ejectable(acpi_handle handle)*/ static int bay_present (struct bay *bay) { -unsigned long sta; +unsigned long long sta;acpi_status status;if (bay) {
drivers/acpi/bus.c +2 -2
@@ -77,7 +77,7 @@ EXPORT_SYMBOL(acpi_bus_get_device);int acpi_bus_get_status (struct acpi_device *device) {acpi_status status =AE_OK ; -unsigned long sta =0 ; +unsigned long long sta =0 ;if (!device)
@@ -155,7 +155,7 @@ int acpi_bus_get_power(acpi_handle handle, int *state)int result =0 ;acpi_status status =0 ;struct acpi_device *device =NULL ; -unsigned long psc =0 ; +unsigned long long psc =0 ; result =acpi_bus_get_device (handle, &device);
drivers/acpi/button.c +2 -2
@@ -145,7 +145,7 @@ static int acpi_button_state_seq_show(struct seq_file *seq, void *offset) {struct acpi_button *button = seq->private;acpi_status status; -unsigned long state; +unsigned long long state;if (!button || !button->device)return 0 ;
@@ -253,7 +253,7 @@ static int acpi_button_remove_fs(struct acpi_device *device)-------------------------------------------------------------------------- */ static int acpi_lid_send_state (struct acpi_button *button) { -unsigned long state; +unsigned long long state;acpi_status status; status = acpi_evaluate_integer(button->device->handle, "_LID", NULL,
drivers/acpi/container.c +1 -1
@@ -76,7 +76,7 @@ static int is_device_present(acpi_handle handle) {acpi_handle temp;acpi_status status; -unsigned long sta; +unsigned long long sta; status =acpi_get_handle (handle,"_STA" , &temp);
drivers/acpi/dispatcher/dsmethod.c +3 -0
@@ -103,6 +103,9 @@ acpi_ds_method_error(acpi_status status, struct acpi_walk_state *walk_state) NULL);acpi_ex_enter_interpreter (); } + +acpi_ds_clear_implicit_return (walk_state); +#ifdef ACPI_DISASSEMBLER if (ACPI_FAILURE (status)) {
drivers/acpi/dock.c +3 -3
@@ -229,7 +229,7 @@ EXPORT_SYMBOL_GPL(is_dock_device);*/ static int dock_present (struct dock_station *ds) { -unsigned long sta; +unsigned long long sta;acpi_status status;if (ds) {
@@ -730,13 +730,13 @@ static DEVICE_ATTR(undock, S_IWUSR, NULL, write_undock);static ssize_t show_dock_uid (struct device *dev,struct device_attribute *attr,char *buf) { -unsigned long lbuf; +unsigned long long lbuf;acpi_status status =acpi_evaluate_integer (dock_station->handle,"_UID" ,NULL , &lbuf);if (ACPI_FAILURE (status))return 0 ; -return snprintf (buf,PAGE_SIZE ,"%lx\n" , lbuf); +return snprintf (buf,PAGE_SIZE ,"%llx\n" , lbuf); } static DEVICE_ATTR(uid, S_IRUGO, show_dock_uid, NULL);
drivers/acpi/ec.c +6 -2
@@ -769,6 +769,7 @@ static acpi_status ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval) { acpi_status status; +unsigned long long tmp =0 ;struct acpi_ec *ec = context; status = acpi_walk_resources(handle, METHOD_NAME__CRS,
@@ -778,11 +779,14 @@ ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval)/* Get GPE bit assignment (EC events). */ /* TODO: Add support for _GPE returning a package */ - status =acpi_evaluate_integer (handle,"_GPE" ,NULL , &ec->gpe); + status =acpi_evaluate_integer (handle,"_GPE" ,NULL , &tmp);if (ACPI_FAILURE (status))return status; + ec->gpe = tmp;/* Use the global lock for all EC transactions? */ -acpi_evaluate_integer (handle,"_GLK" ,NULL , &ec->global_lock); + tmp =0 ; +acpi_evaluate_integer (handle,"_GLK" ,NULL , &tmp); + ec->global_lock = tmp; ec->handle = handle;return AE_CTRL_TERMINATE ; }
drivers/acpi/namespace/nsutils.c +7 -1
@@ -314,9 +314,15 @@ void acpi_ns_get_internal_name_length(struct acpi_namestring_info *info)* * strlen() + 1 covers the first name_seg, which has no path separator */ -if (acpi_ns_valid_root_prefix (next_external_char[0 ])) { +if (acpi_ns_valid_root_prefix (*next_external_char)) { info->fully_qualified = TRUE; next_external_char++; + +/* Skip redundant root_prefix, like \\_SB.PCI0.SBRG.EC0 */ + +while (acpi_ns_valid_root_prefix (*next_external_char)) { + next_external_char++; + } }else {/* * Handle Carat prefixes
drivers/acpi/namespace/nsxfname.c +1 -0
@@ -253,6 +253,7 @@ acpi_get_object_info(acpi_handle handle, struct acpi_buffer * buffer) node =acpi_ns_map_handle_to_node (handle);if (!node) { (void )acpi_ut_release_mutex (ACPI_MTX_NAMESPACE ); + status =AE_BAD_PARAMETER ; goto cleanup; }
drivers/acpi/numa.c +1 -1
@@ -258,7 +258,7 @@ int __init acpi_numa_init(void)int acpi_get_pxm (acpi_handle h) { -unsigned long pxm; +unsigned long long pxm;acpi_status status;acpi_handle handle;acpi_handle phandle = h;
drivers/acpi/osl.c +2 -3
@@ -608,7 +608,7 @@ static void acpi_os_derive_pci_id_2(acpi_handle rhandle, /* upper bound */acpi_handle handle;struct acpi_pci_id *pci_id = *id;acpi_status status; -unsigned long temp; +unsigned long long temp;acpi_object_type type;acpi_get_parent (chandle, &handle);
@@ -620,8 +620,7 @@ static void acpi_os_derive_pci_id_2(acpi_handle rhandle, /* upper bound */if ((ACPI_FAILURE (status)) || (type !=ACPI_TYPE_DEVICE ))return ; - status = -acpi_evaluate_integer (handle,METHOD_NAME__ADR ,NULL , + status =acpi_evaluate_integer (handle,METHOD_NAME__ADR ,NULL , &temp);if (ACPI_SUCCESS (status)) {u32 val;
drivers/acpi/parser/psparse.c +3 -1
@@ -641,10 +641,12 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state)ACPI_WALK_METHOD_RESTART ; } }else { -/* On error, delete any return object */ +/* On error, delete any return object or implicit return */ acpi_ut_remove_reference (previous_walk_state-> return_desc); +acpi_ds_clear_implicit_return + (previous_walk_state); } }
drivers/acpi/pci_link.c +0 -4
@@ -796,10 +796,6 @@ static int irqrouter_resume(struct sys_device *dev)struct list_head *node =NULL ;struct acpi_pci_link *link =NULL ; - -/* Make sure SCI is enabled again (Apple firmware bug?) */ -acpi_set_register (ACPI_BITREG_SCI_ENABLE ,1 ); -list_for_each (node, &acpi_link.entries) { link = list_entry(node, struct acpi_pci_link, node);if (!link) {
drivers/acpi/pci_root.c +1 -1
@@ -190,7 +190,7 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device)struct acpi_pci_root *root =NULL ;struct acpi_pci_root *tmp;acpi_status status =AE_OK ; -unsigned long value =0 ; +unsigned long long value =0 ;acpi_handle handle =NULL ;struct acpi_device *child;
drivers/acpi/pci_slot.c +5 -5
@@ -76,10 +76,10 @@ static struct acpi_pci_driver acpi_pci_slot_driver = { };static int -check_slot (acpi_handle handle,unsigned long *sun) +check_slot (acpi_handle handle,unsigned long long *sun) {int device =-1 ; -unsigned long adr, sta; +unsigned long long adr, sta;acpi_status status;struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER ,NULL };
@@ -132,7 +132,7 @@ static acpi_status register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) { int device; -unsigned long sun; +unsigned long long sun;char name[SLOT_NAME_SIZE ];struct acpi_pci_slot *slot;struct pci_slot *pci_slot;
@@ -182,7 +182,7 @@ static acpi_status walk_p2p_bridge(acpi_handle handle, u32 lvl, void *context, void **rv) { int device, function; -unsigned long adr; +unsigned long long adr;acpi_status status;acpi_handle dummy_handle;acpi_walk_callback user_function;
@@ -239,7 +239,7 @@ static int walk_root_bridge(acpi_handle handle, acpi_walk_callback user_function) { int seg, bus; -unsigned long tmp; +unsigned long long tmp;acpi_status status;acpi_handle dummy_handle;struct pci_bus *pci_bus;
drivers/acpi/power.c +1 -1
@@ -131,7 +131,7 @@ acpi_power_get_context(acpi_handle handle,static int acpi_power_get_state (struct acpi_power_resource *resource,int *state) {acpi_status status =AE_OK ; -unsigned long sta =0 ; +unsigned long long sta =0 ;if (!resource || !state)
drivers/acpi/processor_core.c +2 -2
@@ -563,7 +563,7 @@ static int acpi_processor_get_info(struct acpi_processor *pr, unsigned has_uid)/* Check if it is a Device with HID and UID */ if (has_uid) { -unsigned long value; +unsigned long long value; status =acpi_evaluate_integer (pr->handle,METHOD_NAME__UID ,NULL , &value);if (ACPI_FAILURE (status)) {
@@ -875,7 +875,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type)static int is_processor_present (acpi_handle handle) {acpi_status status; -unsigned long sta =0 ; +unsigned long long sta =0 ; status =acpi_evaluate_integer (handle,"_STA" ,NULL , &sta);
drivers/acpi/processor_idle.c +1 -0
@@ -1587,6 +1587,7 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev,if (acpi_idle_bm_check ()) {if (dev->safe_state) { + dev->last_state = dev->safe_state;return dev->safe_state->enter (dev, dev->safe_state); }else {local_irq_disable ();
drivers/acpi/processor_perflib.c +1 -1
@@ -126,7 +126,7 @@ static struct notifier_block acpi_ppc_notifier_block = {static int acpi_processor_get_platform_limit (struct acpi_processor *pr) {acpi_status status =0 ; -unsigned long ppc =0 ; +unsigned long long ppc =0 ;if (!pr)
drivers/acpi/processor_throttling.c +1 -1
@@ -274,7 +274,7 @@ static int acpi_processor_throttling_notifier(unsigned long event, void *data)static int acpi_processor_get_platform_limit (struct acpi_processor *pr) {acpi_status status =0 ; -unsigned long tpc =0 ; +unsigned long long tpc =0 ;if (!pr)return -EINVAL ;
drivers/acpi/sbshc.c +1 -1
@@ -258,7 +258,7 @@ extern int acpi_ec_add_query_handler(struct acpi_ec *ec, u8 query_bit,static int acpi_smbus_hc_add (struct acpi_device *device) {int status; -unsigned long val; +unsigned long long val;struct acpi_smb_hc *hc;if (!device)
drivers/acpi/scan.c +10 -2
@@ -1262,6 +1262,16 @@ acpi_add_single_object(struct acpi_device **child,acpi_device_set_id (device, parent, handle, type);/* +* The ACPI device is attached to acpi handle before getting +* the power/wakeup/peformance flags. Otherwise OS can't get +* the corresponding ACPI device by the acpi handle in the course +* of getting the power/wakeup/performance flags. +*/ + result =acpi_device_set_context (device, type); +if (result) + goto end; + +/* * Power Management * ---------------- */
@@ -1291,8 +1301,6 @@ acpi_add_single_object(struct acpi_device **child, goto end; } -if ((result =acpi_device_set_context (device, type))) - goto end; result =acpi_device_register (device, parent);
drivers/acpi/sleep/main.c +9 -1
@@ -344,6 +344,14 @@ static struct dmi_system_id __initdata acpisleep_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Macmini1,1"), }, }, + { + .callback = init_old_suspend_ordering, + .ident = "HP xw4600 Workstation", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Hewlett-Packard" ), + DMI_MATCH(DMI_PRODUCT_NAME, "HP xw4600 Workstation"), + }, + }, {}, };#endif /* CONFIG_SUSPEND */
@@ -492,7 +500,7 @@ int acpi_pm_device_sleep_state(struct device *dev, int *d_min_p)acpi_handle handle =DEVICE_ACPI_HANDLE (dev);struct acpi_device *adev;char acpi_method[] ="_SxD" ; -unsigned long d_min, d_max; +unsigned long long d_min, d_max;if (!handle ||ACPI_FAILURE (acpi_bus_get_device (handle, &adev))) {printk (KERN_DEBUG "ACPI handle has no context!\n" );
drivers/acpi/thermal.c +27 -16
135 lines not on this page · raw message
drivers/acpi/utils.c +2 -2
@@ -256,7 +256,7 @@ EXPORT_SYMBOL(acpi_extract_package);acpi_status acpi_evaluate_integer (acpi_handle handle,acpi_string pathname, -struct acpi_object_list *arguments,unsigned long *data) +struct acpi_object_list *arguments,unsigned long long *data) {acpi_status status =AE_OK ;union acpi_object *element;
@@ -288,7 +288,7 @@ acpi_evaluate_integer(acpi_handle handle, *data = element->integer.value;kfree (element); -ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"Return value [%lu]\n" , *data)); +ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"Return value [%llu]\n" , *data));return AE_OK ; }
drivers/acpi/video.c +26 -21
183 lines not on this page · raw message
drivers/ata/libata-acpi.c +1 -1
@@ -180,7 +180,7 @@ static void ata_acpi_handle_hotplug(struct ata_port *ap, struct ata_device *dev,int wait =0 ;unsigned long flags;acpi_handle handle, tmphandle; -unsigned long sta; +unsigned long long sta;acpi_status status;if (dev) {
drivers/ata/sata_mv.c +3 -3
@@ -669,8 +669,8 @@ static const struct pci_device_id mv_pci_tbl[] = { { PCI_VDEVICE(MARVELL, 0x5081), chip_508x },/* RocketRAID 1720/174x have different identifiers */ { PCI_VDEVICE(TTI, 0x1720), chip_6042 }, - { PCI_VDEVICE(TTI, 0x1740), chip_508x }, - { PCI_VDEVICE(TTI, 0x1742), chip_508x }, + { PCI_VDEVICE(TTI, 0x1740), chip_6042 }, + { PCI_VDEVICE(TTI, 0x1742), chip_6042 }, { PCI_VDEVICE(MARVELL, 0x6040), chip_604x }, { PCI_VDEVICE(MARVELL, 0x6041), chip_604x },
@@ -883,7 +883,7 @@ static void mv_start_dma(struct ata_port *ap, void __iomem *port_mmio,struct mv_host_priv *hpriv = ap->host->private_data;int hardport =mv_hardport_from_port (ap->port_no);void __iomem *hc_mmio =mv_hc_base_from_port ( -mv_host_base (ap->host), hardport); +mv_host_base (ap->host), ap->port_no);u32 hc_irq_cause, ipending;/* clear EDMA event indicators, if any */
drivers/ata/sata_nv.c +49 -28
140 lines not on this page · raw message
drivers/char/selection.c +1 -1
@@ -268,7 +268,7 @@ int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *t/* Allocate a new buffer before freeing the old one ... */ multiplier = use_unicode ?3 :1 ;/* chars can take up to 3 bytes */ - bp =kmalloc ((sel_end-sel_start)/2 *multiplier+1 ,GFP_KERNEL ); + bp =kmalloc (((sel_end-sel_start)/2 +1 )*multiplier,GFP_KERNEL );if (!bp) {printk (KERN_WARNING "selection: kmalloc() failed\n" );clear_selection ();
drivers/cpuidle/cpuidle.c +8 -1
@@ -56,7 +56,11 @@ static void cpuidle_idle_call(void)if (pm_idle_old)pm_idle_old (); else +#if defined(CONFIG_ARCH_HAS_DEFAULT_IDLE ) +default_idle (); +#else local_irq_enable (); +#endif return ; }
@@ -67,8 +71,11 @@ static void cpuidle_idle_call(void) target_state = &dev->states[next_state];/* enter the state and update stats */ - dev->last_residency = target_state->enter (dev, target_state); dev->last_state = target_state; + dev->last_residency = target_state->enter (dev, target_state); +if (dev->last_state) + target_state = dev->last_state; + target_state->time += (unsigned long long )dev->last_residency; target_state->usage++;
drivers/cpuidle/governors/menu.c +9 -1
@@ -15,12 +15,14 @@#include <linux/tick.h> #define BREAK_FUZZ 4/* 4 us */ +#define PRED_HISTORY_PCT 50struct menu_device {int last_state_idx;unsigned int expected_us;unsigned int predicted_us; +unsigned int current_predicted_us;unsigned int last_measured_us;unsigned int elapsed_us; };
@@ -47,6 +49,12 @@ static int menu_select(struct cpuidle_device *dev) data->expected_us = (u32 )ktime_to_ns (tick_nohz_get_sleep_length ()) /1000 ; +/* Recalculate predicted_us based on prediction_history_pct */ + data->predicted_us *=PRED_HISTORY_PCT ; + data->predicted_us += (100 -PRED_HISTORY_PCT ) * + data->current_predicted_us; + data->predicted_us /=100 ; +/* find the deepest idle state that satisfies our constraints */ for (i =CPUIDLE_DRIVER_STATE_START +1 ; i < dev->state_count; i++) {struct cpuidle_state *s = &dev->states[i];
@@ -97,7 +105,7 @@ static void menu_reflect(struct cpuidle_device *dev) measured_us =-1 ;/* Predict time until next break event */ - data->predicted_us =max (measured_us, data->last_measured_us); + data->current_predicted_us =max (measured_us, data->last_measured_us);if (last_idle_us +BREAK_FUZZ < data->expected_us - target->exit_latency) {
drivers/input/keyboard/atkbd.c +34 -0
@@ -884,6 +884,22 @@ static void atkbd_inventec_keymap_fixup(struct atkbd *atkbd) }/* +* Samsung NC10 with Fn+F? key release not working +*/ +static void atkbd_samsung_keymap_fixup (struct atkbd *atkbd) +{ +const unsigned int forced_release_keys[] = { +0x82 ,0x83 ,0x84 ,0x86 ,0x88 ,0x89 ,0xb3 ,0xf7 ,0xf9 , + }; +int i; + +if (atkbd->set ==2 ) +for (i =0 ; i <ARRAY_SIZE (forced_release_keys); i++) +__set_bit (forced_release_keys[i], + atkbd->force_release_mask); +} + +/* * atkbd_set_keycode_table() initializes keyboard's keycode table * according to the selected scancode set */
@@ -1486,6 +1502,15 @@ static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = { .driver_data = atkbd_dell_laptop_keymap_fixup, }, { + .ident = "Dell Laptop", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Dell Computer Corporation" ), +DMI_MATCH (DMI_CHASSIS_TYPE ,"8" ),/* Portable */ + }, + .callback = atkbd_setup_fixup, + .driver_data = atkbd_dell_laptop_keymap_fixup, + }, + { .ident ="HP 2133" , .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
@@ -1503,6 +1528,15 @@ static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = { .callback = atkbd_setup_fixup, .driver_data = atkbd_inventec_keymap_fixup, }, + { + .ident = "Samsung NC10", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."), + DMI_MATCH(DMI_PRODUCT_NAME, "NC10"), + }, + .callback = atkbd_setup_fixup, + .driver_data = atkbd_samsung_keymap_fixup, + }, { } };
drivers/misc/asus-laptop.c +8 -7
@@ -139,6 +139,7 @@ ASUS_HANDLE(lcd_switch, "\\_SB.PCI0.SBRG.EC0._Q10", /* All new models */"\\_SB.PCI0.PX40.ECD0._Q10" ,/* L3C */ "\\_SB.PCI0.PX40.EC0.Q10" ,/* M1A */ "\\_SB.PCI0.LPCB.EC0._Q10" ,/* P30 */ +"\\_SB.PCI0.LPCB.EC0._Q0E" ,/* P30/P35 */ "\\_SB.PCI0.PX40.Q10" ,/* S1x */ "\\Q10"); /* A2x, L2D, L3D, M2E */
@@ -280,7 +281,7 @@ static int write_acpi_int(acpi_handle handle, const char *method, int val,static int read_wireless_status (int mask) { -ulong status; +unsigned long long status;acpi_status rv =AE_OK ;if (!wireless_status_handle)
@@ -297,7 +298,7 @@ static int read_wireless_status(int mask)static int read_gps_status (void ) { -ulong status; +unsigned long long status;acpi_status rv =AE_OK ; rv =acpi_evaluate_integer (gps_status_handle,NULL ,NULL , &status);
@@ -350,7 +351,7 @@ static void write_status(acpi_handle handle, int out, int mask) static void object##_led_set(struct led_classdev *led_cdev, \enum led_brightness value) \ { \ - object##_led_wk = value; \ + object##_led_wk = (value > 0) ? 1 : 0; \ queue_work(led_workqueue, &object##_led_work); \ } \ static void object##_led_update(struct work_struct *ignored) \
@@ -404,7 +405,7 @@ static void lcd_blank(int blank)static int read_brightness (struct backlight_device *bd) { -ulong value; +unsigned long long value;acpi_status rv =AE_OK ; rv =acpi_evaluate_integer (brightness_get_handle,NULL ,NULL , &value);
@@ -455,7 +456,7 @@ static ssize_t show_infos(struct device *dev, struct device_attribute *attr, char *page) { int len = 0; -ulong temp; +unsigned long long temp;char buf[16 ];//enough for all info acpi_status rv =AE_OK ;
@@ -603,7 +604,7 @@ static void set_display(int value)static int read_display (void ) { -ulong value =0 ; +unsigned long long value =0 ;acpi_status rv =AE_OK ;/* In most of the case, we know how to set the display, but sometime
@@ -849,7 +850,7 @@ static int asus_hotk_get_info(void) {struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER ,NULL };union acpi_object *model =NULL ; -ulong bsts_result, hwrs_result; +unsigned long long bsts_result, hwrs_result;char *string =NULL ;acpi_status status;
drivers/misc/eeepc-laptop.c +1 -1
@@ -204,7 +204,7 @@ static int write_acpi_int(acpi_handle handle, const char *method, int val,static int read_acpi_int (acpi_handle handle,const char *method,int *val) {acpi_status status; -ulong result; +unsigned long long result; status =acpi_evaluate_integer (handle, (char *)method,NULL , &result);if (ACPI_FAILURE (status)) {
drivers/misc/fujitsu-laptop.c +4 -4
@@ -224,7 +224,7 @@ static int set_lcd_level_alt(int level)static int get_lcd_level (void ) { -unsigned long state =0 ; +unsigned long long state =0 ;acpi_status status =AE_OK ;vdbg_printk (FUJLAPTOP_DBG_TRACE ,"get lcd level via GBLL\n" );
@@ -246,7 +246,7 @@ static int get_lcd_level(void)static int get_max_brightness (void ) { -unsigned long state =0 ; +unsigned long long state =0 ;acpi_status status =AE_OK ;vdbg_printk (FUJLAPTOP_DBG_TRACE ,"get max lcd level via RBLL\n" );
@@ -263,7 +263,7 @@ static int get_max_brightness(void)static int get_lcd_level_alt (void ) { -unsigned long state =0 ; +unsigned long long state =0 ;acpi_status status =AE_OK ;vdbg_printk (FUJLAPTOP_DBG_TRACE ,"get lcd level via GBLS\n" );
@@ -384,7 +384,7 @@ static ssize_t store_lcd_level(struct device *dev,static int get_irb (void ) { -unsigned long state =0 ; +unsigned long long state =0 ;acpi_status status =AE_OK ;vdbg_printk (FUJLAPTOP_DBG_TRACE ,"Get irb\n" );
drivers/misc/intel_menlow.c +15 -14
@@ -57,7 +57,7 @@ static int memory_get_int_max_bandwidth(struct thermal_cooling_device *cdev, {struct acpi_device *device = cdev->devdata;acpi_handle handle = device->handle; -unsigned long value; +unsigned long long value;struct acpi_object_list arg_list;union acpi_object arg;acpi_status status =AE_OK ;
@@ -90,7 +90,7 @@ static int memory_get_cur_bandwidth(struct thermal_cooling_device *cdev, {struct acpi_device *device = cdev->devdata;acpi_handle handle = device->handle; -unsigned long value; +unsigned long long value;struct acpi_object_list arg_list;union acpi_object arg;acpi_status status =AE_OK ;
@@ -104,7 +104,7 @@ static int memory_get_cur_bandwidth(struct thermal_cooling_device *cdev,if (ACPI_FAILURE (status))return -EFAULT ; -return sprintf (buf,"%ld\n" , value); +return sprintf (buf,"%lld\n" , value); } static int memory_set_cur_bandwidth(struct thermal_cooling_device *cdev,
@@ -115,7 +115,7 @@ static int memory_set_cur_bandwidth(struct thermal_cooling_device *cdev,struct acpi_object_list arg_list;union acpi_object arg;acpi_status status; -int temp; +unsigned long long temp;unsigned long max_state;if (memory_get_int_max_bandwidth (cdev, &max_state))
@@ -131,7 +131,7 @@ static int memory_set_cur_bandwidth(struct thermal_cooling_device *cdev, status =acpi_evaluate_integer (handle,MEMORY_SET_BANDWIDTH , &arg_list, - (unsigned long *)&temp); + &temp);printk (KERN_INFO "Bandwidth value was %d: status is %d\n" , state, status);
@@ -252,7 +252,8 @@ static DEFINE_MUTEX(intel_menlow_attr_lock);* @auxtype : AUX0/AUX1 * @buf: syfs buffer */ -static int sensor_get_auxtrip (acpi_handle handle,int index,int *value) +static int sensor_get_auxtrip (acpi_handle handle,int index, +unsigned long long *value) {acpi_status status;
@@ -260,7 +261,7 @@ static int sensor_get_auxtrip(acpi_handle handle, int index, int *value)return -EINVAL ; status =acpi_evaluate_integer (handle, index ?GET_AUX1 :GET_AUX0 , -NULL , (unsigned long *)value); +NULL , value);if (ACPI_FAILURE (status))return -EIO ;
@@ -282,13 +283,13 @@ static int sensor_set_auxtrip(acpi_handle handle, int index, int value)struct acpi_object_list args = {1 , &arg }; -int temp; +unsigned long long temp;if (index !=0 && index !=1 )return -EINVAL ; status =acpi_evaluate_integer (handle, index ?GET_AUX0 :GET_AUX1 , -NULL , (unsigned long *)&temp); +NULL , &temp);if (ACPI_FAILURE (status))return -EIO ;if ((index && value < temp) || (!index && value > temp))
@@ -296,7 +297,7 @@ static int sensor_set_auxtrip(acpi_handle handle, int index, int value) arg.integer.value = value; status =acpi_evaluate_integer (handle, index ?SET_AUX1 :SET_AUX0 , - &args, (unsigned long *)&temp); + &args, &temp);if (ACPI_FAILURE (status))return -EIO ;
@@ -312,7 +313,7 @@ static ssize_t aux0_show(struct device *dev, struct device_attribute *dev_attr, char *buf) { struct intel_menlow_attribute *attr = to_intel_menlow_attr(dev_attr); -int value; +unsigned long long value;int result; result =sensor_get_auxtrip (attr->handle,0 , &value);
@@ -324,7 +325,7 @@ static ssize_t aux1_show(struct device *dev, struct device_attribute *dev_attr, char *buf) { struct intel_menlow_attribute *attr = to_intel_menlow_attr(dev_attr); -int value; +unsigned long long value;int result; result =sensor_get_auxtrip (attr->handle,1 , &value);
@@ -376,7 +377,7 @@ static ssize_t bios_enabled_show(struct device *dev, struct device_attribute *attr, char *buf) { acpi_status status; -unsigned long bios_enabled; +unsigned long long bios_enabled; status =acpi_evaluate_integer (NULL ,BIOS_ENABLED ,NULL , &bios_enabled);if (ACPI_FAILURE (status))
@@ -492,7 +493,7 @@ static int __init intel_menlow_module_init(void) {int result = -ENODEV ;acpi_status status; -unsigned long enable; +unsigned long long enable;if (acpi_disabled)return result;
drivers/net/ixgb/ixgb_main.c +5 -3
@@ -977,15 +977,17 @@ ixgb_clean_rx_ring(struct ixgb_adapter *adapter)for (i =0 ; i < rx_ring->count; i++) { buffer_info = &rx_ring->buffer_info[i]; -if (buffer_info->skb) { - +if (buffer_info->dma) {pci_unmap_single (pdev, buffer_info->dma, buffer_info->length,PCI_DMA_FROMDEVICE ); + buffer_info->dma =0 ; + buffer_info->length =0 ; + } +if (buffer_info->skb) {dev_kfree_skb (buffer_info->skb); - buffer_info->skb =NULL ; } }
drivers/pci/hotplug/acpiphp_glue.c +7 -7
@@ -180,7 +180,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv)struct acpiphp_func *newfunc;acpi_handle tmp;acpi_status status =AE_OK ; -unsigned long adr, sun; +unsigned long long adr, sun;int device, function, retval; status =acpi_evaluate_integer (handle,"_ADR" ,NULL , &adr);
@@ -528,7 +528,7 @@ find_p2p_bridge(acpi_handle handle, u32 lvl, void *context, void **rv) {acpi_status status;acpi_handle dummy_handle; -unsigned long tmp; +unsigned long long tmp;int device, function;struct pci_dev *dev;struct pci_bus *pci_bus = context;
@@ -573,7 +573,7 @@ find_p2p_bridge(acpi_handle handle, u32 lvl, void *context, void **rv)static int add_bridge (acpi_handle handle) {acpi_status status; -unsigned long tmp; +unsigned long long tmp;int seg, bus;acpi_handle dummy_handle;struct pci_bus *pci_bus;
@@ -767,7 +767,7 @@ static int get_gsi_base(acpi_handle handle, u32 *gsi_base) {acpi_status status;int result =-1 ; -unsigned long gsb; +unsigned long long gsb;struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER ,NULL };union acpi_object *obj;void *table;
@@ -808,7 +808,7 @@ static acpi_status ioapic_add(acpi_handle handle, u32 lvl, void *context, void **rv) { acpi_status status; -unsigned long sta; +unsigned long long sta;acpi_handle tmp;struct pci_dev *pdev;u32 gsi_base;
@@ -872,7 +872,7 @@ static acpi_status ioapic_remove(acpi_handle handle, u32 lvl, void *context, void **rv) { acpi_status status; -unsigned long sta; +unsigned long long sta;acpi_handle tmp;u32 gsi_base;struct acpiphp_ioapic *pos, *n, *ioapic =NULL ;
@@ -1264,7 +1264,7 @@ static int disable_device(struct acpiphp_slot *slot)static unsigned int get_slot_status (struct acpiphp_slot *slot) {acpi_status status; -unsigned long sta =0 ; +unsigned long long sta =0 ;u32 dvid;struct list_head *l;struct acpiphp_func *func;
drivers/pci/hotplug/acpiphp_ibm.c +2 -2
@@ -183,7 +183,7 @@ static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status)union acpi_object args[2 ];struct acpi_object_list params = { .pointer = args, .count =2 };acpi_status stat; -unsigned long rc; +unsigned long long rc;union apci_descriptor *ibm_slot; ibm_slot =ibm_slot_from_id (hpslot_to_sun (slot));
@@ -204,7 +204,7 @@ static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status)err ("APLS evaluation failed: 0x%08x\n" , stat);return -ENODEV ; }else if (!rc) { -err ("APLS method failed: 0x%08lx\n" , rc); +err ("APLS method failed: 0x%08llx\n" , rc);return -ERANGE ; }return 0 ;
drivers/pci/hotplug/sgi_hotplug.c +2 -2
@@ -413,7 +413,7 @@ static int enable_slot(struct hotplug_slot *bss_hotplug_slot)/* * Add the slot's devices to the ACPI infrastructure */ if (SN_ACPI_BASE_SUPPORT () && ssdt) { -unsigned long adr; +unsigned long long adr;struct acpi_device *pdevice;struct acpi_device *device;acpi_handle phandle;
@@ -505,7 +505,7 @@ static int disable_slot(struct hotplug_slot *bss_hotplug_slot)/* free the ACPI resources for the slot */ if (SN_ACPI_BASE_SUPPORT () &&PCI_CONTROLLER (slot->pci_bus)->acpi_handle) { -unsigned long adr; +unsigned long long adr;struct acpi_device *device;acpi_handle phandle;acpi_handle chandle =NULL ;
drivers/serial/jsm/jsm_tty.c +6 -0
@@ -161,6 +161,11 @@ static void jsm_tty_stop_rx(struct uart_port *port) channel->ch_bd->bd_ops->disable_receiver (channel); } +static void jsm_tty_enable_ms (struct uart_port *port) +{ +/* Nothing needed */ +} +static void jsm_tty_break (struct uart_port *port,int break_state) {unsigned long lock_flags;
@@ -345,6 +350,7 @@ static struct uart_ops jsm_ops = { .start_tx = jsm_tty_start_tx, .send_xchar = jsm_tty_send_xchar, .stop_rx = jsm_tty_stop_rx, + .enable_ms = jsm_tty_enable_ms, .break_ctl = jsm_tty_break, .startup = jsm_tty_open, .shutdown = jsm_tty_close,
drivers/usb/host/isp1760-if.c +55 -41
154 lines not on this page · raw message
drivers/video/aty/mach64_ct.c +11 -0
@@ -8,6 +8,9 @@#include <asm/io.h> #include <video/mach64.h> #include "atyfb.h" +#ifdef CONFIG_PPC +#include <asm/machdep.h> +#endif #undef DEBUG
@@ -536,6 +539,14 @@ static int __devinit aty_init_pll_ct(const struct fb_info *info, pll->ct.xclk_post_div_real = postdividers[xpost_div]; pll->ct.mclk_fb_div = q * pll->ct.xclk_post_div_real /8 ; +#ifdef CONFIG_PPC +if (machine_is (powermac)) { +/* Override PLL_EXT_CNTL & 0x07. */ + pll->ct.xclk_post_div = xpost_div; + pll->ct.xclk_ref_div =1 ; + } +#endif +#ifdef DEBUG pllmclk = (1000000 * pll->ct.mclk_fb_mult * pll->ct.mclk_fb_div) / (par->ref_clk_per * pll->ct.pll_ref_div);
fs/cifs/connect.c +9 -9
@@ -1349,7 +1349,7 @@ cifs_parse_mount_options(char *options, const char *devname, }static struct TCP_Server_Info * -cifs_find_tcp_session (struct sockaddr *addr) +cifs_find_tcp_session (struct sockaddr_storage *addr) {struct list_head *tmp;struct TCP_Server_Info *server;
@@ -1369,11 +1369,11 @@ cifs_find_tcp_session(struct sockaddr *addr)if (server->tcpStatus == CifsNew)continue ; -if (addr->sa_family ==AF_INET && +if (addr->ss_family ==AF_INET && (addr4->sin_addr.s_addr != server->addr.sockAddr.sin_addr.s_addr))continue ; -else if (addr->sa_family ==AF_INET6 && +else if (addr->ss_family ==AF_INET6 &&memcmp (&server->addr.sockAddr6.sin6_addr, &addr6->sin6_addr,sizeof (addr6->sin6_addr)))continue ;
@@ -2027,7 +2027,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,int rc =0 ;int xid;struct socket *csocket =NULL ; -struct sockaddr addr; +struct sockaddr_storage addr;struct sockaddr_in *sin_server = (struct sockaddr_in *) &addr;struct sockaddr_in6 *sin_server6 = (struct sockaddr_in6 *) &addr;struct smb_vol volume_info;
@@ -2039,7 +2039,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,/* cFYI(1, ("Entering cifs_mount. Xid: %d with: %s", xid, mount_data)); */ -memset (&addr,0 ,sizeof (struct sockaddr )); +memset (&addr,0 ,sizeof (struct sockaddr_storage ));memset (&volume_info,0 ,sizeof (struct smb_vol ));if (cifs_parse_mount_options (mount_data, devname, &volume_info)) { rc = -EINVAL ;
@@ -2069,9 +2069,9 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, rc =cifs_inet_pton (AF_INET6 , volume_info.UNCip, &sin_server6->sin6_addr.in6_u);if (rc >0 ) - addr.sa_family =AF_INET6 ; + addr.ss_family =AF_INET6 ; }else { - addr.sa_family =AF_INET ; + addr.ss_family =AF_INET ; }if (rc <=0 ) {
@@ -2113,7 +2113,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, srvTcp =cifs_find_tcp_session (&addr);if (!srvTcp) {/* create socket */ -if (addr.sa_family ==AF_INET6 ) { +if (addr.ss_family ==AF_INET6 ) {cFYI (1 , ("attempting ipv6 connect" ));/* BB should we allow ipv6 on port 139? */ /* other OS never observed in Wild doing 139 with v6 */
@@ -2144,7 +2144,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, }else { srvTcp->noblocksnd = volume_info.noblocksnd; srvTcp->noautotune = volume_info.noautotune; -if (addr.sa_family ==AF_INET6 ) +if (addr.ss_family ==AF_INET6 )memcpy (&srvTcp->addr.sockAddr6, sin_server6,sizeof (struct sockaddr_in6 ));else
fs/dlm/plock.c +2 -0
@@ -304,7 +304,9 @@ int dlm_posix_get(dlm_lockspace_t *lockspace, u64 number, struct file *file,if (rv == -ENOENT ) rv =0 ;else if (rv >0 ) { +locks_init_lock (fl); fl->fl_type = (op->info.ex) ?F_WRLCK :F_RDLCK ; + fl->fl_flags =FL_POSIX ; fl->fl_pid = op->info.pid; fl->fl_start = op->info.start; fl->fl_end = op->info.end;
fs/nfsd/nfs4state.c +20 -11
@@ -2767,6 +2767,25 @@ out: }/* +* The NFSv4 spec allows a client to do a LOCKT without holding an OPEN, +* so we do a temporary open here just to get an open file to pass to +* vfs_test_lock. (Arguably perhaps test_lock should be done with an +* inode operation.) +*/ +static int nfsd_test_lock (struct svc_rqst *rqstp,struct svc_fh *fhp,struct file_lock *lock) +{ +struct file *file; +int err; + + err =nfsd_open (rqstp, fhp,S_IFREG ,NFSD_MAY_READ , &file); +if (err) +return err; + err =vfs_test_lock (file, lock); +nfsd_close (file); +return err; +} + +/* * LOCKT operation */ __be32
@@ -2774,7 +2793,6 @@ nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_lockt *lockt) {struct inode *inode; -struct file file;struct file_lock file_lock;int error;__be32 status;
@@ -2822,7 +2840,6 @@ nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, file_lock.fl_owner = (fl_owner_t )lockt->lt_stateowner; file_lock.fl_pid = current->tgid; file_lock.fl_flags =FL_POSIX ; - file_lock.fl_lmops = &nfsd_posix_mng_ops; file_lock.fl_start = lockt->lt_offset;if ((lockt->lt_length == ~(u64 )0 ) ||LOFF_OVERFLOW (lockt->lt_offset, lockt->lt_length))
@@ -2832,16 +2849,8 @@ nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,nfs4_transform_lock_offset (&file_lock); -/* vfs_test_lock uses the struct file _only_ to resolve the inode. -* since LOCKT doesn't require an OPEN, and therefore a struct -* file may not exist, pass vfs_test_lock a struct file with -* only the dentry:inode set. -*/ -memset (&file,0 ,sizeof (struct file )); - file.f_path.dentry = cstate->current_fh.fh_dentry; - status = nfs_ok; - error =vfs_test_lock (&file, &file_lock); + error =nfsd_test_lock (rqstp, &cstate->current_fh, &file_lock);if (error) { status =nfserrno (error); goto out;
include/acpi/acpi_bus.h +1 -1
@@ -46,7 +46,7 @@ acpi_extract_package(union acpi_object *package,acpi_status acpi_evaluate_integer (acpi_handle handle,acpi_string pathname, -struct acpi_object_list *arguments,unsigned long *data); +struct acpi_object_list *arguments,unsigned long long *data); acpi_status acpi_evaluate_reference(acpi_handle handle, acpi_string pathname,
include/acpi/actypes.h +1 -1
@@ -1225,8 +1225,8 @@ struct acpi_resource {#pragma pack() -#define ACPI_RS_SIZE_MIN 12#define ACPI_RS_SIZE_NO_DATA 8/* Id + Length fields */ +#define ACPI_RS_SIZE_MIN (u32) ACPI_ROUND_UP_TO_NATIVE_WORD (12)#define ACPI_RS_SIZE (type) (u32) (ACPI_RS_SIZE_NO_DATA + sizeof (type))#define ACPI_NEXT_RESOURCE (res) (struct acpi_resource *)((u8 *) res + res->length)
include/linux/if_vlan.h +7 -0
@@ -114,6 +114,8 @@ extern u16 vlan_dev_vlan_id(const struct net_device *dev);extern int __vlan_hwaccel_rx (struct sk_buff *skb,struct vlan_group *grp,u16 vlan_tci,int polling); +extern int vlan_hwaccel_do_receive (struct sk_buff *skb); +#else static inline struct net_device *vlan_dev_real_dev (const struct net_device *dev) {
@@ -133,6 +135,11 @@ static inline int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp,BUG (); return NET_XMIT_SUCCESS; } + +static inline int vlan_hwaccel_do_receive (struct sk_buff *skb) +{ +return 0 ; +}#endif /**
include/linux/pci_ids.h +1 -0
@@ -2384,6 +2384,7 @@#define PCI_DEVICE_ID_INTEL_ICH7_0 0x27b8#define PCI_DEVICE_ID_INTEL_ICH7_1 0x27b9#define PCI_DEVICE_ID_INTEL_ICH7_30 0x27b0 +#define PCI_DEVICE_ID_INTEL_TGP_LPC 0x27bc#define PCI_DEVICE_ID_INTEL_ICH7_31 0x27bd#define PCI_DEVICE_ID_INTEL_ICH7_17 0x27da#define PCI_DEVICE_ID_INTEL_ICH7_19 0x27dd
net/8021q/vlan_core.c +33 -13
80 lines not on this page · raw message
net/core/dev.c +3 -0
@@ -2187,6 +2187,9 @@ int netif_receive_skb(struct sk_buff *skb)int ret =NET_RX_DROP ;__be16 type; +if (skb->vlan_tci &&vlan_hwaccel_do_receive (skb)) +return NET_RX_SUCCESS ; +/* if we've gotten here through NAPI, check netpoll */ if (netpoll_receive_skb (skb))return NET_RX_DROP ;