Re: 143e1e28 sched: Rework sched_domain topology definition

2014-07-19 Thread Peter Zijlstra
On Sun, Jul 20, 2014 at 08:43:36AM +0200, Mike Galbraith wrote: > Hi, > > +/* > + * Topology list, bottom-up. > + */ > +static struct sched_domain_topology_level default_topology[] = { > +#ifdef CONFIG_SCHED_SMT > + { cpu_smt_mask, cpu_smt_flags, SD_INIT_NAME(SMT) }, > +#endif > +#ifdef CONFIG

143e1e28 sched: Rework sched_domain topology definition

2014-07-19 Thread Mike Galbraith
Hi, +/* + * Topology list, bottom-up. + */ +static struct sched_domain_topology_level default_topology[] = { +#ifdef CONFIG_SCHED_SMT + { cpu_smt_mask, cpu_smt_flags, SD_INIT_NAME(SMT) }, +#endif +#ifdef CONFIG_SCHED_MC + { cpu_coregroup_mask, cpu_core_flags, SD_INIT_NAME(MC) }, +#endi

Re: [PATCH 2/4] staging: sep: No else is necessary after a break (reported by checkpatch)

2014-07-19 Thread Corentin LABBE
Le 19/07/2014 20:00, Joe Perches a écrit : > (Adding Mark Allyn and Jayant Mangalampalli) > > Is this still project still active? I do not know > > On Sat, 2014-07-19 at 19:34 +0200, LABBE Corentin wrote: >> Signed-off-by: LABBE Corentin >> --- >> drivers/staging/sep/sep_main.c | 5 ++--- >>

[PATCH v2] usb:serial:pl2303: add GPIOs interface on PL2303

2014-07-19 Thread Wang YanQing
PL2303HX has two GPIOs, this patch add interface for it. Signed-off-by: Wang YanQing --- Changes v1-v2: 1:drop gpio-pl2303.c and relation stuff 2:hang gpio stuff off of pl2303.c drivers/usb/serial/Kconfig | 7 ++ drivers/usb/serial/pl2303.c | 153 ++

RE: [char-misc-next 4/5] mei: nfc: clean nfc internal struct on host exit

2014-07-19 Thread Winkler, Tomas
> > @@ -553,6 +553,7 @@ void mei_nfc_host_exit(struct mei_device *dev) > > { > > struct mei_nfc_dev *ndev = &nfc_dev; > > cancel_work_sync(&ndev->init_work); > > + memset(ndev, 0, sizeof(struct mei_nfc_dev)); > > This implies that something is using a "static" device structure, which >

Re: [PATCH] ARM: Don't oops when userspace executes kgdb break instructions.

2014-07-19 Thread Omar Sandoval
On Fri, Jul 18, 2014 at 03:51:31PM -0700, Omar Sandoval wrote: > Don't break into kgdb when userspace executes the kernel break instructions > (KGDB_BREAKINST and KGDB_COMPILED_BREAK). The kernel will oops in > kgdb_handle_exception. > > Signed-off-by: Omar Sandoval > --- > The following program

[patch] fs: umount on symlinlk leaks mnt count

2014-07-19 Thread Vasily Averin
Currently umount on symlink blocks following umount: /vz is separate mount # ls /vz/ -al | grep test drwxr-xr-x. 2 root root 4096 Jul 19 01:14 testdir lrwxrwxrwx. 1 root root 11 Jul 19 01:16 testlink -> /vz/testdir # umount -l /vz/testlink umount: /vz/testlink: not mounted (expec

[PATCH] xen/pciback: Fix error return code in xen_pcibk_attach()

2014-07-19 Thread weiyj_lk
From: Wei Yongjun Fix to return -EFAULT from the error handling case instead of 0 when version mismatch with pcifront. Signed-off-by: Wei Yongjun --- drivers/xen/xen-pciback/xenbus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/xen/xen-pciback/xenbus.c b/drivers/xen/xen-pciback/

Re: [PATCH 0/2 v4] sched: Rewrite per entity runnable load average tracking

2014-07-19 Thread Mike Galbraith
On Fri, 2014-07-18 at 07:26 +0800, Yuyang Du wrote: > Thanks to Morten, Ben, and Fengguang. > > v4 changes: > > - Insert memory barrier before writing cfs_rq->load_last_update_copy. > - Fix typos. My little desktop box says lovely minus signs have had their usual effect on the general case (cgr

[PATCH] Staging: vt6655: remove redundant comments

2014-07-19 Thread Igor Bezukh
Clean redundant comments in the code. Since I perform single fix type per patch, I've ignored the 80 line warning when checking the patch against checkpatch. I will fix the 80 line warnings on further patches. Signed-off-by: Igor Bezukh --- drivers/staging/vt6655/wcmd.c | 46 --

[PATCH -next] power_supply: Fix sparse non static symbol warning

2014-07-19 Thread weiyj_lk
From: Wei Yongjun Fixes the following sparse warnings: drivers/power/power_supply_core.c:540:5: warning: symbol '__power_supply_register' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/power/power_supply_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deleti

[PATCH -next] misc: vexpress: Fix sparse non static symbol warnings

2014-07-19 Thread weiyj_lk
From: Wei Yongjun Fixes the following sparse warnings: drivers/misc/vexpress-syscfg.c:133:22: warning: symbol 'vexpress_syscfg_regmap_config' was not declared. Should it be static? drivers/misc/vexpress-syscfg.c:279:5: warning: symbol 'vexpress_syscfg_probe' was not declared. Should it be stat

[PATCH -next] HSI: ssi_protocol: Fix sparse non static symbol warning

2014-07-19 Thread weiyj_lk
From: Wei Yongjun Fixes the following sparse warning: drivers/hsi/clients/ssi_protocol.c:904:6: warning: symbol 'ssip_port_event' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/hsi/clients/ssi_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

solos-pci.c: Fix me

2014-07-19 Thread Nick Krause
Hey Chas, There seems to be a fix me in this file in the function, solos_bh. Is the default statement correct and I remove the fix me or does it need to be rewritten. Cheers Nick -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ke

Re: [PATCH 1/3] staging: lustre/lustre/lov: Remove unneeded 'if' statement in lov_request.c/lov_check_set()

2014-07-19 Thread Dan Carpenter
On Sat, Jul 19, 2014 at 09:34:56PM +0200, Riccardo Lucchese wrote: > It is silly to go through an if statement to set a single boolean > value in function of a single boolean expression. In the function > lov_check_set, assign the return value directly. > > Signed-off-by: Riccardo Lucchese > ---

cciss_scsi.c: Fix me

2014-07-19 Thread Nick Krause
Hey Mike, I seem to be hitting a fix me message in this file in function,cciss_scsi_queue_command_lck. I am wondering what you want to do when C is Null? Cheers Nick -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

[PATCH -next] ALSA: bebob: Fix missing unlock on error in special_clk_ctl_put()

2014-07-19 Thread weiyj_lk
From: Wei Yongjun Add the missing unlock before return from function special_clk_ctl_put() in the error handling case. Signed-off-by: Wei Yongjun --- sound/firewire/bebob/bebob_maudio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/firewire/bebob/bebob_maudio.c

[PATCH 1/1] Staging: comedi: adv_pci1710: a line over 80 fixed

2014-07-19 Thread Sam Asadi
a line over 80 issue fixed by removing the cross-lined comment to the previous line. Signed-off-by: Sam Asadi --- drivers/staging/comedi/drivers/adv_pci1710.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/adv_pci1710.c b/drivers/stagi

processor.c: Fix me to rewrite init_percpu_pro

2014-07-19 Thread Nick Krause
Hey James I am wondering how you would like this function.init_percpu_pro in processor.c. Cheers Nick -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html P

Edma.c: Fix Mes

2014-07-19 Thread Nick Krause
Hey Russell and others, Sorry to bug you again but I have a fix questions before I clean up the fix mes in this file. Is edma_clean_channel needed or is edma_stop good enough? And do we CCERR.BIT(16) need to write this bit or not? Cheers Nick -- To unsubscribe from this list: send the line "unsub

Re: Arm Build Failing

2014-07-19 Thread Nick Krause
On Sun, Jul 20, 2014 at 12:10 AM, Roberto J. Dohnert wrote: > It looks like its trying to invoke the native (x86) compiler, but passing it > options that only make sense to an ARM compiler. > > Cheers > > Roberto J. Dohnert > Roberto J. Dohnert > Lead Developer > Black Lab Software Inc. > PO Box 6

[PATCH] staging: android: ion: ion_cma_heap.c: Fix checkpatch warning

2014-07-19 Thread Phong Tran
This patch fix coding style: - Remove "fail memory allocation" waring - Remove return of void function Tested by compilation only Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_cma_heap.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/stagin

Re: Arm Build Failing

2014-07-19 Thread Roberto J. Dohnert
It looks like its trying to invoke the native (x86) compiler, but passing it options that only make sense to an ARM compiler. Cheers Roberto J. Dohnert Roberto J. Dohnert Lead Developer Black Lab Software Inc. PO Box 698 Franklinton NC 27525 http://www.pc-opensystems.com http://www.blacklablinu

Re: [PATCH 2/2] Staging: comedi: adv_pci1710.c line over 80 fixed

2014-07-19 Thread Greg KH
On Sun, Jul 20, 2014 at 04:15:50AM +0300, Sam Asadi wrote: > A line over 80 issue fixed, which is a comment. > > Signed-off-by: Sam Asadi > --- > drivers/staging/comedi/drivers/adv_pci1710.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/comedi/driver

[PATCH] arm: Fix me in bios32.c

2014-07-19 Thread Nicholas Krause
This fixs a fix me in bios32.c for pci_fixup_it8152 as this if statement is incorrect needs to be checked against the class bits not the whole address for the two or conditions and since they don't have define statements outside of their numeratical value. Signed-off-by: Nicholas Krause --- arch

Arm Build Failing

2014-07-19 Thread Nick Krause
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-m64’ arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-mno-mmx’ arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-mno-sse’ arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-mno-red-

Re: Re: [PATCH ftrace/core v3 2/3] ftrace, kprobes: Support IPMODIFY flag to find IP modify conflict

2014-07-19 Thread Masami Hiramatsu
(2014/07/18 22:51), Steven Rostedt wrote: > On Fri, 18 Jul 2014 16:09:07 +0900 > Masami Hiramatsu wrote: > > >>> "The ops can modify the IP register. This can only be set along with >>> SAVE_REGS. If another ops is already registered for any of the >>> functions that this ops will be registered

Re: [PATCH v2 1/3] perf/sdt : Listing of SDT markers by perf

2014-07-19 Thread Masami Hiramatsu
(2014/07/19 2:50), Andi Kleen wrote: > Hemant Kumar writes: > > First I should say supporting these probes is very useful. Thanks for > working on this. > >> + >> +#define SDT_CACHE_DIR "/var/cache/perf/" > > This requires running perf as root, right? > > It would be better to use the $HOME ca

Re: Re: [PATCH v2 0/3] perf/sdt : Support for SDT markers

2014-07-19 Thread Masami Hiramatsu
(2014/07/20 2:32), Hemant Kumar wrote: >>> We have lots of applications which use SDT markers today, like: >>> Postgresql, MySql, Mozilla, Perl, Python, Java, Ruby, libvirt, QEMU, glib >>> >>> To add SDT markers into user applications: >>> We need to have this header sys/sdt.h present. >>> sys/sdt.

Re: Intel Graphics Drivers

2014-07-19 Thread Nick Krause
On Sat, Jul 19, 2014 at 8:45 PM, Roberto J. Dohnert wrote: > This would probably be a better question for the Intel developers than the > kernel developers per say, but a great question nonetheless. The Intel > video drivers are perhaps the best supported on Linux. Most of the hardware > I ship d

Re: [PATCH 5/7] firmware_class: extract start loading logic

2014-07-19 Thread Ming Lei
On Tue, Jul 15, 2014 at 5:38 AM, Kees Cook wrote: > Extract the logic performed when starting a new firmware load. > > Signed-off-by: Kees Cook Acked-by: Ming Lei > --- > drivers/base/firmware_class.c | 29 ++--- > 1 file changed, 18 insertions(+), 11 deletions(-) >

Re: [PATCH 6/7] firmware_class: add "fd" input file

2014-07-19 Thread Ming Lei
On Tue, Jul 15, 2014 at 5:38 AM, Kees Cook wrote: > As an alternative to loading bytes from the "data" blob when reading > firmware, let kernel read from an fd, so that the LSM can reason about > the origin of firmware contents during userspace on-demand loading. >From user space view, maybe it i

Re: [PATCH V3] netxen: fix ethtool rx_dropped information in ethtool get_ethtool_stats()

2014-07-19 Thread Ethan Zhao
hi, Regarding the r8169 chip, there is no other data fields exported to user via ethtool except for those dumped from hardware statistic counters in 8169 driver. But for Intel 82598 NIC and its driver ixgbe, it exports not only those fields dumped from hardware statistic counters, like:

Re: [PATCH 1/7] doc: fix minor typos in firmware_class README

2014-07-19 Thread Ming Lei
On Tue, Jul 15, 2014 at 5:38 AM, Kees Cook wrote: > This is a tiny clean up for typos in the firmware_class README. > > Signed-off-by: Kees Cook Acked-by: Ming Lei Thanks, -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kern

[PATCH 2/2] Staging: comedi: adv_pci1710.c line over 80 fixed

2014-07-19 Thread Sam Asadi
A line over 80 issue fixed, which is a comment. Signed-off-by: Sam Asadi --- drivers/staging/comedi/drivers/adv_pci1710.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/adv_pci1710.c b/drivers/staging/comedi/drivers/adv_pci1710.c index 602b7

Re: [PATCH 1/1] Staging: comedi: 8255.c Missing a blank line fixed

2014-07-19 Thread Joe Perches
On Sun, 2014-07-20 at 03:43 +0300, Sam Asadi wrote: > A 'Missing a blank line after declarations' issue fixed and also tested > by 'make M=...'. It seems that after 'unsigned long iobase' declaration > a blank line is desperately needed. [] > diff --git a/drivers/staging/comedi/drivers/8255.c > b/

Re: [PATCH 07/10] nohz: Enforce timekeeping on CPU 0

2014-07-19 Thread Frederic Weisbecker
On Sat, Jul 19, 2014 at 01:31:25PM -0400, Nicolas Pitre wrote: > On Sat, 19 Jul 2014, Frederic Weisbecker wrote: > > > The timekeeper gets initialized to the value of the CPU where the > > first clockevent device is setup. This works well because the timekeeper > > can be any online CPU in most co

[PATCH v4 3/6] thermal: Added Bang-bang thermal governor

2014-07-19 Thread Peter Feuerer
The bang-bang thermal governor uses a hysteresis to switch abruptly on or off a cooling device. It is intended to control fans, which can not be throttled but just switched on or off. Bang-bang cannot be set as default governor as it is intended for special devices only. For those special devices

[PATCH v4 5/6] acerhdf: added critical trip point

2014-07-19 Thread Peter Feuerer
added critical trip point which represents the temperature limit. Added return -EINVAL in case wrong trip point is provided. Cc: Andrew Morton Cc: Andreas Mohr Cc: Borislav Petkov Cc: Javi Merino Signed-off-by: Peter Feuerer --- drivers/platform/x86/acerhdf.c | 10 +- 1 file changed,

[PATCH v4 0/6] acerhdf/thermal: adding new models, appropriate governor and minor clean up

2014-07-19 Thread Peter Feuerer
Hi, This patch series is intended to: * Introduce "manual mode" support (Patch 1 & 2), which is needed to control the fan of a few new models. * Add an appropriate thermal governor (Patch 3 & 4). Manipulating and fiddling around with the step-wise governor has been a very fragile th

[PATCH v4 6/6] acerhdf: minor clean up

2014-07-19 Thread Peter Feuerer
* renamed bios_settings_t to bios_settings, as it is no typedef * replaced "unsigned char" by u8 in bios_settings struct for better readability. Cc: Andrew Morton Cc: Andreas Mohr Acked-by: Borislav Petkov Signed-off-by: Peter Feuerer --- drivers/platform/x86/acerhdf.c | 12 ++

[PATCH v4 4/6] acerhdf: Use bang-bang thermal governor

2014-07-19 Thread Peter Feuerer
acerhdf has been doing an on-off fan control using hysteresis by post-manipulating the outcome of thermal subsystem trip point handling. This patch enables acerhdf to use the bang-bang governor, which is intended for on-off controlled fans. Cc: Andrew Morton CC: Zhang Rui Cc: Andreas Mohr Cc: B

[PATCH v4 1/6] acerhdf: Adding support for "manual mode"

2014-07-19 Thread Peter Feuerer
Some Acer models require an additional command to turn off the fan after bios mode has been enabled. Adding new section in bios table to allow support for those models, by writing an extra "manual mode" register. Cc: Andrew Morton Cc: Andreas Mohr Acked-by: Borislav Petkov Signed-off-by: Peter

[PATCH v4 2/6] acerhdf: Adding support for new models

2014-07-19 Thread Peter Feuerer
added following new models: * Aspire 5755G * AO521 * AO751h * Aspire One 753 * Extensa 5420 * Aspire 5315 * Aspire 5739G * TravelMate TM8573T Cc: Andrew Morton Cc: Andreas Mohr Acked-by: Borislav Petkov Signed-off-by: Peter Feuerer --- drivers/platform/x86/acerhdf.c |

Re: Intel Graphics Drivers

2014-07-19 Thread Roberto J. Dohnert
This would probably be a better question for the Intel developers than the kernel developers per say, but a great question nonetheless. The Intel video drivers are perhaps the best supported on Linux. Most of the hardware I ship does ship with Intel cards so in regards to performance, this wou

[PATCH 1/1] Staging: comedi: 8255.c Missing a blank line fixed

2014-07-19 Thread Sam Asadi
A 'Missing a blank line after declarations' issue fixed and also tested by 'make M=...'. It seems that after 'unsigned long iobase' declaration a blank line is desperately needed. Signed-off-by: Sam Asadi --- drivers/staging/comedi/drivers/8255.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH V3] netxen: fix ethtool rx_dropped information in ethtool get_ethtool_stats()

2014-07-19 Thread Ethan Zhao
> 在 2014年7月20日,上午12:28,Francois Romieu 写道: > > Ethan Zhao : >>> On Sat, Jul 19, 2014 at 6:19 PM, Francois Romieu >>> wrote: >>> Ethan Zhao : > [...] >>> I'd rather see ethtool stats provides one of those: >>> 1. hardware stats only >> Sounds very clear, is it done clear, if so we need othe

Re: [PATCH tip/core/rcu] Do not keep timekeeping CPU tick running for non-nohz_full= CPUs

2014-07-19 Thread Frederic Weisbecker
2014-07-19 20:28 GMT+02:00 Peter Zijlstra : > On Sat, Jul 19, 2014 at 08:01:24PM +0200, Frederic Weisbecker wrote: >> This can be changed by allowing timekeeping duty from all non-nohz_full >> CPUs, that's >> the initial direction I took, but it involved a lot of complications and >> scalability

Re: [PATCH] xen/setup: Remap Xen Identity Mapped RAM

2014-07-19 Thread Matthew Rushton
On 07/08/14 08:57, Konrad Rzeszutek Wilk wrote: Responding :-) @@ -797,10 +794,9 @@ unsigned long __init set_phys_range_identity(unsigned long pfn_s, if (!__set_phys_to_machine(pfn, IDENTITY_FRAME(pfn))) break; - if (!WARN((pfn - pfn_s) != (pfn_e -

Re: [PATCH] gpio:gpio-pl2303: add gpio driver for GPIOs on PL2303

2014-07-19 Thread Greg KH
On Sun, Jul 20, 2014 at 08:01:31AM +0800, Wang YanQing wrote: > PL2303HX has two GPIOs, this patch add driver for it. > > Signed-off-by: Wang YanQing > --- > MAINTAINERS | 5 + > drivers/gpio/Kconfig| 7 ++ > drivers/gpio/Makefile | 1 + > drivers/gpio/gpio-pl

[PATCH v2 2/2] xen/setup: Remap Xen Identity Mapped RAM

2014-07-19 Thread Matt Rushton
Instead of ballooning up and down dom0 memory this remaps the existing mfns that were replaced by the identity map. The reason for this is that the existing implementation ballooned memory up and and down which caused dom0 to have discontiguous pages. In some cases this resulted in the use of bounc

[PATCH v2 1/2] xen/setup: Remove Identity Map Debug Message

2014-07-19 Thread Matt Rushton
Removing a debug message for setting the identity map since it becomes rather noisy after rework of the identity map code. Signed-off-by: Matthew Rushton --- arch/x86/xen/p2m.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c ind

[PATCHv2] block: Add support for Sony SxS cards

2014-07-19 Thread Kieran Kunhya
Signed-off-by: Kieran Kunhya --- drivers/block/Kconfig |9 + drivers/block/Makefile |1 + drivers/block/sxs.c| 491 3 files changed, 501 insertions(+) create mode 100644 drivers/block/sxs.c diff --git a/drivers/block/Kconfig b/driv

[PATCH] gpio:gpio-pl2303: add gpio driver for GPIOs on PL2303

2014-07-19 Thread Wang YanQing
PL2303HX has two GPIOs, this patch add driver for it. Signed-off-by: Wang YanQing --- MAINTAINERS | 5 + drivers/gpio/Kconfig| 7 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-pl2303.c | 238 drivers/usb/serial

[PATCH v2 1/2] xen/setup: Remove Identity Map Debug Message

2014-07-19 Thread Matt Rushton
Removing a debug message for setting the identity map since it becomes rather noisy after rework of the identity map code. Signed-off-by: Matthew Rushton --- arch/x86/xen/p2m.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c ind

[PATCH] Input: fix defuzzing logic

2014-07-19 Thread Dmitry Torokhov
We attempt to remove noise from coordinates reported by devices in input_handle_abs_event(), unfortunately, unless we were dropping the event altogether, we were ignoring the adjusted value and were passing on the original value instead. Reviewed-by: Andrew de los Reyes Reviewed-by: Benson Leung

Re: [PATCH 0/2] shmem: fix faulting into a hole while it's punched, take 3

2014-07-19 Thread Hugh Dickins
On Fri, 18 Jul 2014, Sasha Levin wrote: > On 07/17/2014 12:12 PM, Sasha Levin wrote: > > On 07/17/2014 12:10 PM, Vlastimil Babka wrote: > >> > On 07/15/2014 12:28 PM, Hugh Dickins wrote: > >>> >> In the end I decided that we had better look at it as two problems, > >>> >> the trinity faulting starv

Re: [PATCH v3 2/7] ACPICA: Linux: Add stub implementation of ACPICA 64-bit mathematics.

2014-07-19 Thread Rafael J. Wysocki
On Wednesday, July 16, 2014 04:58:00 PM Lv Zheng wrote: > This patch adds default 64-bit mathematics in aclinux.h using do_div(). As > do_div() can be used for all Linux architectures, this can also be used as > stub macros for ACPICA 64-bit mathematics. > > But this is not a performance friendly

Re: [PATCH v6 4/4] iio: hid-sensor-magn-3d: Add support for rotation from north

2014-07-19 Thread Srinivas Pandruvada
On 07/17/2014 11:18 AM, Reyad Attiyat wrote: Add the HID usage attribute ID's and IIO channel info for rotation from north support. Signed-off-by: Reyad Attiyat Acked-by: Srinivas Pandruvada --- drivers/iio/magnetometer/hid-sensor-magn-3d.c | 53 ++- 1 file change

Re: [PATCH v6 3/4] iio: hid-sensor-magn-3d: Scan for usage attributes before setting up iio channels

2014-07-19 Thread Srinivas Pandruvada
On 07/17/2014 11:18 AM, Reyad Attiyat wrote: Scan for and count the HID usage attributes supported by the driver. This allows for the driver to only setup the IIO channels for the sensor usages present in the HID USB reports. Changes from v5 -Fixed kernel panic from invalid pointer dereference

Re: [PATCH v3 0/3] Clean up ACPI core to prepare for running ACPI on ARM64

2014-07-19 Thread Rafael J. Wysocki
On Friday, July 18, 2014 06:02:51 PM Hanjun Guo wrote: > This patch set have no function change for x86 and ia64 and > just do some clean up to prepare for running ACPI on ARM64. > > This patch set is splited out from the patch set [1] > "[PATCH v4 00/13] Enable ACPI on ARM64 in Kconfig" and hope

Re: mm: swap: hang in lru_add_drain_all

2014-07-19 Thread Hugh Dickins
On Fri, 18 Jul 2014, Sasha Levin wrote: > Hi all, > > While fuzzing with trinity inside a KVM tools guest running the latest -next > kernel I've stumbled on the following spew: > > [ 729.682257] INFO: task trinity-c158:13508 blocked for more than 120 > seconds. > [ 729.683191] Not taint

Re: [PATCH v6 1/4] iio: Documentation: Add documentation for rotation from north sensor usage attributes

2014-07-19 Thread Srinivas Pandruvada
On 07/17/2014 11:18 AM, Reyad Attiyat wrote: Added documentation for the sysfs attributes supported by the rotation from north sensor. Signed-off-by: Reyad Attiyat Acked-by: Srinivas Pandruvada --- Documentation/ABI/testing/sysfs-bus-iio | 82 + 1 file ch

Re: [PATCH v6 2/4] iio: types: Added support for rotation from north usage attributes

2014-07-19 Thread Srinivas Pandruvada
On 07/17/2014 11:18 AM, Reyad Attiyat wrote: Added the rotation from north usage attributes to the iio modifier enum and to the iio modifier names array. Signed-off-by: Reyad Attiyat Acked-by: Srinivas Pandruvada --- drivers/iio/industrialio-core.c | 4 include/linux/iio/types.h

Re: [PATCH] Input: max7359 - Introduce the use of managed interfaces

2014-07-19 Thread Dmitry Torokhov
On Sat, Jul 19, 2014 at 03:36:54PM +0530, Himangi Saraogi wrote: > This patch introduces the use of managed interfaces like devm_kzalloc, > devm_input_allocate_device, devm_request_threaded_irq etc. and does away > with the calls to free the allocated memory. The remove function is no > longer requ

Re: [PATCH 3/5] net/netfilter/ipvs/ip_vs_ctl.c: drop argument range check just before the check for equality

2014-07-19 Thread Andrey Utkin
2014-07-20 1:59 GMT+03:00 Andrey Utkin : > This approach doesn't work, looks because sizeof() values are not > calculated at preprocessing stage. What about adding equivalent BUG_ON() statement to __init ip_vs_register_nl_ioctl(), which "registers" do_ip_vs_set_ctl() callback? -- Andrey Utkin --

Re: bios32.c: Fix me in pci_fixup_it8152

2014-07-19 Thread Russell King - ARM Linux
On Sat, Jul 19, 2014 at 06:47:37PM -0400, Nick Krause wrote: > Hey Russell and others, > Before I clean this fix me up I wanted to known how to define the values > as stated in the fix me in this function or if this is invalid as of the > latest kernel trees. If you would like to fix it properly,

Re: [PATCH 3/5] net/netfilter/ipvs/ip_vs_ctl.c: drop argument range check just before the check for equality

2014-07-19 Thread Andrey Utkin
2014-07-19 0:06 GMT+03:00 Andrey Utkin : > What about static check at compilation time? > > #if (DAEMON_ARG_LEN > MAX_ARG_LEN) \ > || (SERVICE_ARG_LEN > MAX_ARG_LEN) \ > || (SVCDEST_ARG_LEN > MAX_ARG_LEN) > #error MAX_ARG_LEN exceeded in set_arglen table > #endif This approach doesn't work, look

Re: Intel Graphics Drivers

2014-07-19 Thread Nick Krause
On Sat, Jul 19, 2014 at 6:32 PM, Nick Krause wrote: Hey Daniel and others , If I am correct after asking around on the mailing list then the windows Intel graphics drivers are faster then their Linux counterparts. In addition , I am wondering if we can improve this and try to remove regressi

bios32.c: Fix me in pci_fixup_it8152

2014-07-19 Thread Nick Krause
Hey Russell and others, Before I clean this fix me up I wanted to known how to define the values as stated in the fix me in this function or if this is invalid as of the latest kernel trees. Cheers Nick -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mess

Intel Graphics Drivers

2014-07-19 Thread Nick Krause
Hey Daniel and others , I am correct after asking around on the mailing list that the intel graphics drivers are faster. I am wondering if we can improve this and try to remove regressions in this area of graphics support. I don't have the hardware but if people help doing the testing and maybe a b

[PATCH] ACPI / PNP: Use ACPI_COMPANION() instead of ACPI_HANDLE()

2014-07-19 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The ACPI_HANDLE() macro evaluates ACPI_COMPANION() internally to return the handle of the device's ACPI companion, so it is much more straightforward and efficient to use ACPI_COMPANION() directly to obtain the device's ACPI companion object instead of using ACPI_HANDLE()

Re: [PATCH 2/4] ARM: add IPI tracepoints

2014-07-19 Thread Nicolas Pitre
On Sat, 19 Jul 2014, Ard Biesheuvel wrote: > On 18 July 2014 23:22, Steven Rostedt wrote: > > On Fri, 18 Jul 2014 16:55:42 -0400 (EDT) > > Nicolas Pitre wrote: > > > >> > >> Here's the patch I have at the head of the series now, with the above > >> ugliness changed to an unconditional __tracepoi

Re: [PATCH 2/4] ARM: add IPI tracepoints

2014-07-19 Thread Steven Rostedt
On Sat, 19 Jul 2014 22:50:16 +0200 Ard Biesheuvel wrote: > OK, so if the general case has been fixed, perhaps we should ask Paul > to drop my patch? > No, for a few reasons. One, this patch still needs to get in to fix the problem for RCU. Two, RCU basically open codes the creation of the str

[RESEND PATCH] powerpc/mpic_msgr: Use kcalloc and correct the argument to sizeof

2014-07-19 Thread Himangi Saraogi
mpic_msgrs has type struct mpic_msgr **, not struct mpic_msgr *, so the elements of the array should have pointer type, not structure type. The advantage of kcalloc is, that will prevent integer overflows which could result from the multiplication of number of elements and size and it is also a bit

linux-kernel@vger.kernel.org

2014-07-19 Thread Himangi Saraogi
In commit ae91d60ba88ef0bdb1b5e9b2363bd52fc45d2af7, a bug was fixed that involved converting !x & y to !(x & y). The code below shows the same pattern, and thus should perhaps be fixed in the same way. The Coccinelle semantic patch that makes this change is as follows: // @@ expression E1,E2; @

Re: [PULL] seccomp update (3.17)

2014-07-19 Thread Theodore Ts'o
On Sat, Jul 19, 2014 at 07:49:55AM -0700, Kees Cook wrote: > > No worries -- the only user of the seccomp syscall that I know of is > the seccomp regression testing suite, and that'd be trivially to fix. > > I would note that the seccomp series includes adding the syscall also > to ARM and MIPS,

linux-kernel@vger.kernel.org

2014-07-19 Thread Himangi Saraogi
In commit ae91d60ba88ef0bdb1b5e9b2363bd52fc45d2af7, a bug was fixed that involved converting !x & y to !(x & y). The code below shows the same pattern, and thus should perhaps be fixed in the same way. This is not tested and clearly changes the semantics, so it is only something to consider. The

[PATCH] ACPI / PM: Use ACPI_COMPANION() instead of ACPI_HANDLE()

2014-07-19 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The ACPI_HANDLE() macro evaluates ACPI_COMPANION() internally to return the handle of the device's ACPI companion, so it is much more straightforward and efficient to use ACPI_COMPANION() directly to obtain the device's ACPI companion object instead of using ACPI_HANDLE()

[git pull] drm intel fixes

2014-07-19 Thread Dave Airlie
Hi Linus, Intel fixes came in late, but since I debugged one of them I'll send them on, two reverts, a quirk and one warn regression. Dave. The following changes since commit b579fcca32b7eaef7c346dff55adc953b56bb1a8: Merge tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/

Re: [PATCH] mips: Remove uneeded line in cmp_smp_finish

2014-07-19 Thread Nick Krause
On Sat, Jul 19, 2014 at 8:05 AM, Paul Bolle wrote: > On Sat, 2014-07-19 at 01:10 -0400, Nicholas Krause wrote: >> This patch removes a unneeded line from this file as stated by the >> fix me in this file. >> >> Signed-off-by: Nicholas Krause >> --- >> arch/mips/kernel/smp-cmp.c | 2 -- >> 1 file

Re: [PATCH 0/5] Input - wacom: battery enhancements and unifying hid-wacom and wacom

2014-07-19 Thread Przemo Firszt
Dnia 2014-07-10, czw o godzinie 14:44 -0400, Benjamin Tissoires pisze: > Hi guys, > > Continuing on the Wacom cleanup, here are 5 patches. > > The first two enhance the battery reporting for the Wireless receiver by > adding the status of the battery (discharging, full, charging) - inspired by >

Re: [PATCH] staging:iio:ad7280a: Use managed interfaces

2014-07-19 Thread Julia Lawall
On Sat, 19 Jul 2014, Jonathan Cameron wrote: > On 19/07/14 21:46, Julia Lawall wrote: > > > > > > On Sat, 19 Jul 2014, Jonathan Cameron wrote: > > > > > On 19/07/14 11:33, Himangi Saraogi wrote: > > > > This patch moves data allocated using unmanaged interfaces to managed > > > > interfaces l

Re: [PATCH] staging:iio:ad7280a: Use managed interfaces

2014-07-19 Thread Jonathan Cameron
On 19/07/14 21:46, Julia Lawall wrote: On Sat, 19 Jul 2014, Jonathan Cameron wrote: On 19/07/14 11:33, Himangi Saraogi wrote: This patch moves data allocated using unmanaged interfaces to managed interfaces like devm_kzalloc, devm_iio_device_register, devm_kasprintf, devm_request_threaded_ir

Re: [PATCH 2/4] ARM: add IPI tracepoints

2014-07-19 Thread Ard Biesheuvel
On 19 July 2014 22:28, Steven Rostedt wrote: > On Sat, 19 Jul 2014 21:10:37 +0200 > Ard Biesheuvel wrote: > >> On 18 July 2014 23:22, Steven Rostedt wrote: >> > On Fri, 18 Jul 2014 16:55:42 -0400 (EDT) >> > Nicolas Pitre wrote: >> > >> >> >> >> Here's the patch I have at the head of the series

Re: [PATCH] staging:iio:ad7280a: Use managed interfaces

2014-07-19 Thread Julia Lawall
On Sat, 19 Jul 2014, Jonathan Cameron wrote: > On 19/07/14 11:33, Himangi Saraogi wrote: > > This patch moves data allocated using unmanaged interfaces to managed > > interfaces like devm_kzalloc, devm_iio_device_register, devm_kasprintf, > > devm_request_threaded_irq and does away with the call

Re: [PATCH] staging:iio:ad7280a: Use managed interfaces

2014-07-19 Thread Jonathan Cameron
On 19/07/14 11:33, Himangi Saraogi wrote: This patch moves data allocated using unmanaged interfaces to managed interfaces like devm_kzalloc, devm_iio_device_register, devm_kasprintf, devm_request_threaded_irq and does away with the calls to free the allocated memory in the probe and remove funct

Re: [PATCH 2/4] ARM: add IPI tracepoints

2014-07-19 Thread Steven Rostedt
On Sat, 19 Jul 2014 21:10:37 +0200 Ard Biesheuvel wrote: > On 18 July 2014 23:22, Steven Rostedt wrote: > > On Fri, 18 Jul 2014 16:55:42 -0400 (EDT) > > Nicolas Pitre wrote: > > > >> > >> Here's the patch I have at the head of the series now, with the above > >> ugliness changed to an unconditi

Re: ls -l /proc/1/exe -> Permission denied

2014-07-19 Thread Andreas Schwab
Joakim Tjernlund writes: > Trying to real /proc//exe I noticed I could not read links not > belonging to my user such as: > jocke > ls -l /proc/1/exe > ls: cannot read symbolic link /proc/1/exe: Permission denied > > Is this expected? Yes. This information is considered private.

[PATCH 0/2] ACPI / PM: Make ACPI-based PCI wakeup work for the "freeze" sleep state

2014-07-19 Thread Rafael J. Wysocki
Hi, As per the subject, this is to make ACPI-based PCI wakeup (such as WoL on some systems among other things) work with the "freeze" sleep state. For this purpose ACPI wakeup GPEs need to be enabled for wakeup devices before freeze_enter() is called and it is best to do that when configuring dev

[PATCH 1/2] ACPI / PM: Always enable wakeup GPEs when enabling device wakeup

2014-07-19 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Wakeup GPEs are currently only enabled when setting up devices for remote wakeup at run time. During system-wide transitions they are enabled by ACPICA at the very last stage of suspend (before asking the BIOS to take over). Of course, that only works for system sleep st

[PATCH 2/2] ACPI / PM: Rename acpi_wakeup_device() to acpi_device_pm_event()

2014-07-19 Thread Rafael J. Wysocki
From: Rafael J. Wysocki To avoid confusion with acpi_device_wakeup(), rename the default ACPI device PM notify handler from acpi_wakeup_device() to acpi_device_pm_event(). No functional changes. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/device_pm.c | 10 +- 1 file changed, 5

Re: [PATCH 1/5] tools/power/cpupower/utils/helpers/sysfs.c: drop negativity check on unsigned value

2014-07-19 Thread Rafael J. Wysocki
On Saturday, July 19, 2014 10:14:04 PM Andrey Utkin wrote: > Resubmitting to send also to linux...@vger.kernel.org as requested by > Rafael J. Wysocki > > ---8<--- > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80621 > Reported-by: David Binderman > Signed-off-by: Andrey Utkin Queu

[GIT PULL] Please pull NFS client changes

2014-07-19 Thread Trond Myklebust
Hi Linus, Apologies for the relative lateness of this pull request, however the commits fix some issues with the NFS read/write code updates in 3.16-rc1 that can cause serious Oopsing when using small r/wsize. The delay was mainly due to extra testing to make sure that the fixes behave correctly.

Re: ls -l /proc/1/exe -> Permission denied

2014-07-19 Thread Richard Weinberger
Am 18.07.2014 17:05, schrieb Joakim Tjernlund: > Joakim Tjernlund/Transmode wrote on 2014/07/18 15:49:17: >> >> Richard Weinberger wrote on 2014/07/18 > 14:58:30: >>> >>> On Thu, Jul 17, 2014 at 1:18 PM, Joakim Tjernlund >>> wrote: Trying to real /proc//exe I noticed I could not read link

Re: Power-managing devices that are not of interest at some point in time

2014-07-19 Thread Rafael J. Wysocki
On Saturday, July 19, 2014 11:21:52 AM Dmitry Torokhov wrote: > On Saturday, July 19, 2014 01:59:01 PM Alan Stern wrote: > > On Sat, 19 Jul 2014, Benson Leung wrote: > > > > This raises an interesting question. Suppose the system gets suspended > > > > while the lid is closed. At that point, shou

Re: [PATCH 1/3] staging: lustre/lustre/lov: Remove unneeded 'if' statement in lov_request.c/lov_check_set()

2014-07-19 Thread Joe Perches
On Sat, 2014-07-19 at 21:34 +0200, Riccardo Lucchese wrote: > It is silly to go through an if statement to set a single boolean > value in function of a single boolean expression. In the function > lov_check_set, assign the return value directly. [] > diff --git a/drivers/staging/lustre/lustre/lov/

Re: [PATCH 07/10] nohz: Enforce timekeeping on CPU 0

2014-07-19 Thread Peter Zijlstra
On Sat, Jul 19, 2014 at 02:46:56PM -0400, Nicolas Pitre wrote: > People think all sorts of things. And it becomes very irritating when > thoughtful assumptions get burned into ROM for example. We should be > able to do better in the kernel. Agreed. There used to be an x86 subarch where the boo

[PATCH 3/3] staging: lustre/lustre/lov: Add a space before open braces '{' in lov_request.c

2014-07-19 Thread Riccardo Lucchese
Fix the following checkpatch.pl issue in lov_request.c: ERROR: space required before the open brace '{' Signed-off-by: Riccardo Lucchese --- drivers/staging/lustre/lustre/lov/lov_request.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/lustre/lustre/lov

[PATCH 2/3] staging: lustre/lustre/lov: Add a blank line after declarations in lov_request.c

2014-07-19 Thread Riccardo Lucchese
Fix the following checkpatch.pl issue in lov_request.c: WARNING: Missing a blank line after declarations Signed-off-by: Riccardo Lucchese --- drivers/staging/lustre/lustre/lov/lov_request.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/l

  1   2   3   >