[PATCH v2 3/4] scripts/kernel-doc: Adding infrastructure for markdown support

2015-07-28 Thread Danilo Cesar Lemes de Paula
Markdown support is given by calling an external tool, pandoc, for all highlighted text on kernel-doc. Pandoc converts Markdown text to proper Docbook tags, which will be later translated to pdf, html or other targets. This adds the capability of adding human-readle text highlight (bold, underlin

[PATCH v2 2/4] scripts/kernel-doc: Replacing highlights hash by an array

2015-07-28 Thread Danilo Cesar Lemes de Paula
The "highlight" code is very sensible to the order of the hash keys, but the order of the keys cannot be predicted on Perl. It generates faulty DocBook entries like: - @device_for_each_child We should use an array for that job, so we can guarantee that the order of the regex execution on d

Re: [RFC PATCH 14/14] kthread_worker: Add set_kthread_worker_scheduler*()

2015-07-28 Thread Peter Zijlstra
On Tue, Jul 28, 2015 at 01:41:54PM -0400, Tejun Heo wrote: > On Tue, Jul 28, 2015 at 04:39:31PM +0200, Petr Mladek wrote: > > +/** > > + * set_kthread_worker_scheduler - change the scheduling policy and/or RT > > + * priority of a kthread worker. > > + * @worker: target kthread_worker > > + * @poli

[PATCH v5 1/6] vmstat: provide a function to quiet down the diff processing

2015-07-28 Thread Chris Metcalf
From: Christoph Lameter quiet_vmstat() can be called in anticipation of a OS "quiet" period where no tick processing should be triggered. quiet_vmstat() will fold all pending differentials into the global counters and disable the vmstat_worker processing. Note that the shepherd thread will conti

[PATCH v5 4/6] cpu_isolated: provide strict mode configurable signal

2015-07-28 Thread Chris Metcalf
Allow userspace to override the default SIGKILL delivered when a cpu_isolated process in STRICT mode does a syscall or otherwise synchronously enters the kernel. In addition to being able to set the signal, we now also pass whether or not the interruption was from a syscall in the si_code field of

[PATCH v5 2/6] cpu_isolated: add initial support

2015-07-28 Thread Chris Metcalf
The existing nohz_full mode is designed as a "soft" isolation mode that makes tradeoffs to minimize userspace interruptions while still attempting to avoid overheads in the kernel entry/exit path, to provide 100% kernel semantics, etc. However, some applications require a "hard" commitment from th

[PATCH v5 6/6] nohz: cpu_isolated: allow tick to be fully disabled

2015-07-28 Thread Chris Metcalf
While the current fallback to 1-second tick is still helpful for maintaining completely correct kernel semantics, processes using prctl(PR_SET_CPU_ISOLATED) semantics place a higher priority on running completely tickless, so don't bound the time_delta for such processes. In addition, due to the w

[PATCH v5 5/6] cpu_isolated: add debug boot flag

2015-07-28 Thread Chris Metcalf
The new "cpu_isolated_debug" flag simplifies debugging of CPU_ISOLATED kernels when processes are running in PR_CPU_ISOLATED_ENABLE mode. Such processes should get no interrupts from the kernel, and if they do, when this boot flag is specified a kernel stack dump on the console is generated. It's

[PATCH v5 0/6] support "cpu_isolated" mode for nohz_full

2015-07-28 Thread Chris Metcalf
This version of the patch series incorporates Christoph Lameter's change to add a quiet_vmstat() call, and restructures cpu_isolated as a "hard" isolation mode in contrast to nohz_full's "soft" isolation, breaking it out as a separate CONFIG_CPU_ISOLATED with its own include/linux/cpu_isolated.h an

[PATCH v5 3/6] cpu_isolated: support PR_CPU_ISOLATED_STRICT mode

2015-07-28 Thread Chris Metcalf
With cpu_isolated mode, the task is in principle guaranteed not to be interrupted by the kernel, but only if it behaves. In particular, if it enters the kernel via system call, page fault, or any of a number of other synchronous traps, it may be unexpectedly exposed to long latencies. Add a simpl

[PATCH 2/6] dmaengine: mxs: support i.MX7D and deep sleep mode

2015-07-28 Thread Han Xu
From: Huang Shijie The patch support i.MX7D platform by adding extra DMA clock. Deep Sleep Mode(dsm) turns off the power for APBH DMA module, add suspend/resume function and re-init the APBH DMA during resume. Signed-off-by: Huang Shijie Signed-off-by: Han Xu Signed-off-by: Adrian Alonso ---

Re: [PATCH] HID: i2c-hid: Only disable irq wake if it was successfully enabled during suspend

2015-07-28 Thread Andrew Duggan
On 07/28/2015 04:33 AM, Mika Westerberg wrote: On Mon, Jul 27, 2015 at 05:08:06PM -0700, Andrew Duggan wrote: On at least one platform the kernel prints a warning on resume saying "Unbalanced IRQ 37 wake disable". This is because enable_irq_wake in the suspend function is failing. This patch che

Re: [PATCH v2 5/6] power: bq27xxx_battery: Add support for additional bq27xxx family devices

2015-07-28 Thread Pali Rohár
On Tuesday 28 July 2015 21:39:12 Andrew F. Davis wrote: > Add support for additional devices and register equivalent family > devices including the bq27010, bq27210, bq272500, bq27510, bq27520, ^^ maybe inco

Re: [PATCH v2 1/3] ARM: dts: apq8064: remove temporary fixed regulator for mmc

2015-07-28 Thread Andy Gross
On Tue, Jul 28, 2015 at 09:12:51AM +0100, Srinivas Kandagatla wrote: > This patch removes temporary fixed regluator use for mmc. > Board files should use the regulators which are wiredup appropriately. > > Signed-off-by: Srinivas Kandagatla > --- Applied. Thanks! -- Qualcomm Innovation Center

Re: [PATCH v2 1/6] power: bq27x00_battery: Remove unneeded i2c MODULE_ALIAS

2015-07-28 Thread Pali Rohár
On Tuesday 28 July 2015 21:39:08 Andrew F. Davis wrote: > The MODULE_DEVICE_TABLE macro automatically adds all needed > i2c MODULE_ALIASes so remove the extra MODULE_ALIAS. > > Signed-off-by: Andrew F. Davis Acked-by: Pali Rohár -- Pali Rohár pali.ro...@gmail.com signature.asc Description:

Re: [PATCH v2 3/3] ARM: dts: qs600: Add real regulators to sdcc

2015-07-28 Thread Andy Gross
On Tue, Jul 28, 2015 at 09:13:05AM +0100, Srinivas Kandagatla wrote: > This patch adds real regulators to sdcc nodes. > > Signed-off-by: Srinivas Kandagatla > --- Applied. Thanks -- Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a L

Re: [PATCH v2 2/3] ARM: dts: ifc6410: add real regulators for sdcc nodes.

2015-07-28 Thread Andy Gross
On Tue, Jul 28, 2015 at 09:12:58AM +0100, Srinivas Kandagatla wrote: > This patch adds real regulators for all the three sdcc nodes. > > Signed-off-by: Srinivas Kandagatla > --- Applied. Thanks -- Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Au

[net-next PATCH] net: netcp: Fixes efuse mac addr swap on k2e and k2l

2015-07-28 Thread WingMan Kwok
On some of the K2E and K2L platforms, the two DWORDs in efuse occupied by the pre-programmed mac address for slave port 1 are swapped. To workaround this issue, this patch adds a new define NETCP_EFUSE_ADDR_SWAP (2) which signifies the occurrence of such swapping so that the driver can take proper

Re: [PATCH v2 2/6] power: bq27x00_battery: Renaming for consistency

2015-07-28 Thread Pali Rohár
On Tuesday 28 July 2015 21:39:09 Andrew F. Davis wrote: > Rename functions that are used by multiple devices. New devices > have been added and the function names and driver name are no longer > general enough for the functionality they provide. > > Signed-off-by: Andrew F. Davis I see that you

Re: [PATCH v5 4/4] x86/ldt: Make modify_ldt optional

2015-07-28 Thread Willy Tarreau
Hi Kees, On Tue, Jul 28, 2015 at 09:56:12AM -0700, Kees Cook wrote: > I look forward to the runtime disabling patch. :) Did you get my response to your comments regarding the proposed patch ? I can rebase it and update it if needed, I just want to make sure everyone's on the same line regarding

[PATCH v3 1/5] staging: lustre: fixed lines longer than 80 chars

2015-07-28 Thread Mario Bambagini
this set of patches fixes several code style problems: -patch 1: lines with more than 80 chars -patch 2: comments without */ on a separate line -patch 3: bad alignment of lines split on more than one line -patch 4: modified comparisons against NULL -patch 5: added spaces between concatenated string

[PATCH v3 4/5] staging: lustre: modified comparisons against NULL

2015-07-28 Thread Mario Bambagini
The explicit comparisons against NULL has been modified to be shorter. Signed-off-by: Mario Bambagini --- drivers/staging/lustre/lustre/llite/llite_capa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/llite_capa.c b/drivers/staging/l

[PATCH v3 2/5] staging: lustre: fixed comments without */ on a new line

2015-07-28 Thread Mario Bambagini
This patch fixes 4 comments without */ on a new line Signed-off-by: Mario Bambagini --- drivers/staging/lustre/lustre/llite/llite_capa.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/llite_capa.c b/drivers/staging/lustre/lus

[PATCH v3 5/5] staging: lustre: added a space between concatenated strings

2015-07-28 Thread Mario Bambagini
A space has been inserted between two concatenated strings as required from checkpatch.pl These two updates do not lead to any problem as DFID is defined as a string in ./drivers/staging/lustre/lustre/include/lustre/lustre_user.h The script checkpatch.pl does not return any other warning/error.

[PATCH v3 3/5] staging: lustre: fixed bad alignment

2015-07-28 Thread Mario Bambagini
This patch fixes 7 bad alignments. When a line is split on more than one line, the other lines must be aligned with paranthesis. Signed-off-by: Mario Bambagini --- drivers/staging/lustre/lustre/llite/llite_capa.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/

Re: [PATCH] virtio_mmio: add ACPI probing

2015-07-28 Thread Peter Maydell
On 28 July 2015 at 11:27, Michael S. Tsirkin wrote: > On Tue, Jul 28, 2015 at 11:12:33AM +0100, Peter Maydell wrote: >> On 28 July 2015 at 11:08, Michael S. Tsirkin wrote: >> > On Tue, Jul 28, 2015 at 10:44:02AM +0100, Graeme Gregory wrote: >> >> Added the match table and pointers for ACPI probin

Re: [PATCH v2 3/6] power: bq27xxx_battery: Platform initialization must declare a device

2015-07-28 Thread Pali Rohár
On Tuesday 28 July 2015 21:39:10 Andrew F. Davis wrote: > When initialized as a platform device the initializer must now specify > a device. An empty device name is no longer valid. > > Signed-off-by: Andrew F. Davis > --- > drivers/power/bq27xxx_battery.c | 9 ++--- > drivers/w1/slave

Re: [PATCH v2 4/6] power: bq27xxx_battery: Fix typos and change naming for state of charge functions

2015-07-28 Thread Pali Rohár
On Tuesday 28 July 2015 21:39:11 Andrew F. Davis wrote: > Fix typos and change "relative state of charge" to "state of charge" as not > all supported devices use relative state of charge. > > Signed-off-by: Andrew F. Davis Acked-by: Pali Rohár -- Pali Rohár pali.ro...@gmail.com signature.as

Re: [PATCH v2 6/6] power: bq27xxx_battery: Cleanup health checking

2015-07-28 Thread Pali Rohár
On Tuesday 28 July 2015 21:39:13 Andrew F. Davis wrote: > Reorganize the logic checking battery health and add under temperature > condition checking. > > Signed-off-by: Andrew F. Davis Acked-by: Pali Rohár -- Pali Rohár pali.ro...@gmail.com signature.asc Description: This is a digitally si

Re: [PATCH] input: twl4030-vibra: Fix ERROR: Bad of_node_put() warning

2015-07-28 Thread Belisko Marek
Hi Dmitry, On Thu, Jul 23, 2015 at 10:53 PM, Dmitry Torokhov wrote: > On Thu, Jul 23, 2015 at 10:38:34PM +0200, Marek Belisko wrote: >> Fix following: >> [8.862274] ERROR: Bad of_node_put() on /ocp/i2c@4807/twl@48/audio >> [8.869293] CPU: 0 PID: 1003 Comm: modprobe Not tainted 4.2.0-r

Re: Next round: revised futex(2) man page for review

2015-07-28 Thread Thomas Gleixner
On Mon, 27 Jul 2015, Michael Kerrisk (man-pages) wrote: >FUTEX_CLOCK_REALTIME (since Linux 2.6.28) > This option bit can be employed only with the > FUTEX_WAIT_BITSET and FUTEX_WAIT_REQUEUE_PI operations. > > If this option is set, the

Re: [PATCH] virtio_mmio: add ACPI probing

2015-07-28 Thread G Gregory
On 28 July 2015 at 21:12, Peter Maydell wrote: > On 28 July 2015 at 11:27, Michael S. Tsirkin wrote: >> On Tue, Jul 28, 2015 at 11:12:33AM +0100, Peter Maydell wrote: >>> On 28 July 2015 at 11:08, Michael S. Tsirkin wrote: >>> > On Tue, Jul 28, 2015 at 10:44:02AM +0100, Graeme Gregory wrote: >>>

Re

2015-07-28 Thread Mr Tan Wong
Please contact me urgently for a transaction. Kind Regards Tan Wong --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kern

Re: [PATCH v2 3/9] arm: twr-k70f120m: clock driver for Kinetis SoC

2015-07-28 Thread Paul Osmialowski
Hi Mike, My trouble is that now I'm dealing with two conradictory opinions on how this driver should be written. The one you presented in your previous post assumes that there will be a header file with defines shared between the clock driver and DTS, also with clock gating details hidden behin

Re: [PATCH 0/7] Initial support for user namespace owned mounts

2015-07-28 Thread Seth Forshee
On Wed, Jul 22, 2015 at 05:05:17PM -0700, Casey Schaufler wrote: > > This is what I currently think you want for user ns mounts: > > > > 1. smk_root and smk_default are assigned the label of the backing > > device. > > 2. s_root is assigned the transmute property. > > 3. For existing files:

Re: [PATCH char-misc-next 10/19] lib: convert iova.c into a library

2015-07-28 Thread Andrew Morton
On Mon, 27 Jul 2015 16:57:32 -0700 Ashutosh Dixit wrote: > From: Harish Chegondi > > This patch converts iova.c into a library, moving it from > drivers/iommu/ to lib/, and exports its virtual address allocation and > management functions so that other modules can reuse them. >From the follow

Re: [PATCH v5 4/4] x86/ldt: Make modify_ldt optional

2015-07-28 Thread Kees Cook
On Tue, Jul 28, 2015 at 1:03 PM, Willy Tarreau wrote: > Hi Kees, > > On Tue, Jul 28, 2015 at 09:56:12AM -0700, Kees Cook wrote: >> I look forward to the runtime disabling patch. :) > > Did you get my response to your comments regarding the proposed patch ? > > I can rebase it and update it if need

Re: Next round: revised futex(2) man page for review

2015-07-28 Thread Peter Zijlstra
On Tue, Jul 28, 2015 at 10:23:51PM +0200, Thomas Gleixner wrote: > >FUTEX_WAKE (since Linux 2.6.0) > > This operation wakes at most val of the waiters that are > > waiting (e.g., inside FUTEX_WAIT) on the futex word at the > > address uaddr. Mo

Build regressions/improvements in v4.2-rc4

2015-07-28 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.2-rc4[1] compared to v4.1[2]. Summarized: - build errors: +10/-51 - build warnings: +187/-237 JFYI, when comparing v4.2-rc4[1] to v4.2-rc3[3], the summaries are: - build errors: +8/-26 - build warnings: +151/-43 Note

Re: [PATCH] x86/mm, efi: Check for valid image type

2015-07-28 Thread Matt Fleming
(Pulling in Josh) On Wed, 22 Jul, at 05:32:44PM, Sebastian Andrzej Siewior wrote: > I usually see > |Ignoring BGRT: failed to allocate memory for image (wanted 264301314 bytes) > |Ignoring BGRT: failed to allocate memory for image (wanted 3925872891 bytes) > > sometimes I get > > |[

Re: [PATCH v5 4/4] x86/ldt: Make modify_ldt optional

2015-07-28 Thread Willy Tarreau
On Tue, Jul 28, 2015 at 01:42:20PM -0700, Kees Cook wrote: > On Tue, Jul 28, 2015 at 1:03 PM, Willy Tarreau wrote: > > Hi Kees, > > > > On Tue, Jul 28, 2015 at 09:56:12AM -0700, Kees Cook wrote: > >> I look forward to the runtime disabling patch. :) > > > > Did you get my response to your comments

Re: [PATCH] user_ns: use correct check for single-threadedness

2015-07-28 Thread Ricky Zhou
(apologies for the dup, forgot to reply all) userns_install in user_namespace.c (affects setns of a user namespace): cde1975bc242f3e1072bde623ef378e547b73f91. The check in check_unshare_flags is a little more complex. The incorrect check was added in cf2e340f4249b781b3d2beb41e891d08581f0e10 but I

Re: [PATCH] input: gpio_keys: Don't report events on gpio failure

2015-07-28 Thread Dmitry Torokhov
Hi Bjorn, On Mon, Jul 27, 2015 at 06:50:04PM -0700, Bjorn Andersson wrote: > In the cases where the gpio chip fails to acquire the current state an > error is reported back to gpio_keys. This is currently interpreted as if > the line went high, which just confuses the developer. > > This patch in

Re: [PATCH] user_ns: use correct check for single-threadedness

2015-07-28 Thread Kees Cook
On Tue, Jul 28, 2015 at 1:55 PM, Ricky Zhou wrote: > On Tue, Jul 28, 2015 at 11:17 AM, Eric W. Biederman > wrote: >> Kees Cook writes: >> >>> From: Ricky Zhou >>> >>> Checking mm_users > 1 does not mean a process is multithreaded. For >>> example, reading /proc/PID/maps temporarily increments m

Re: Next round: revised futex(2) man page for review

2015-07-28 Thread Thomas Gleixner
On Tue, 28 Jul 2015, Peter Zijlstra wrote: > On Tue, Jul 28, 2015 at 10:23:51PM +0200, Thomas Gleixner wrote: > > > >FUTEX_WAKE (since Linux 2.6.0) > > > This operation wakes at most val of the waiters that are > > > waiting (e.g., inside FUTEX_WAIT) on the f

Re: [PATCH -mm v2] sound: convert to parse_integer()

2015-07-28 Thread Andrew Morton
On Tue, 28 Jul 2015 00:03:01 +0300 Alexey Dobriyan wrote: > Convert away from deprecated simple_strto*() interfaces to > parse_integer() and kstrto*(). The patch does a lot more than this! It also adds lots of handling of previously-ignored errors. And it thereby introduces possible back-compa

Re: [PATCH] virtio_mmio: add ACPI probing

2015-07-28 Thread Peter Maydell
On 28 July 2015 at 21:28, G Gregory wrote: > On 28 July 2015 at 21:12, Peter Maydell wrote: >> Mmm. I'm not terribly happy about stuff being in QEMU before the >> ACPI spec for it has been finalised. We should not be picking >> stuff randomly on the fly... >> >> If we want to fix the ACPI IDs QEM

Re: [PATCH 0/8] Use correctly the Xen memory terminologies in Linux

2015-07-28 Thread H. Peter Anvin
On 07/28/2015 08:02 AM, Julien Grall wrote: > Hi all, > > This patch series aims to use the memory terminologies described in > include/linux/mm.h [1] for Linux xen code. > > Linux is using mistakenly MFN when GFN is meant, I suspect this is because the > first support of Xen was for PV. This has

Re: [Xen-devel] [PATCH 0/8] Use correctly the Xen memory terminologies in Linux

2015-07-28 Thread Andrew Cooper
On 28/07/15 22:06, H. Peter Anvin wrote: > On 07/28/2015 08:02 AM, Julien Grall wrote: >> Hi all, >> >> This patch series aims to use the memory terminologies described in >> include/linux/mm.h [1] for Linux xen code. >> >> Linux is using mistakenly MFN when GFN is meant, I suspect this is because

Re: [RFC/BUG] perf tools: static build fails

2015-07-28 Thread Adrian Hunter
On 28/07/2015 7:11 p.m., Arnaldo Carvalho de Melo wrote: Em Tue, Jul 28, 2015 at 05:13:47PM +0200, Jiri Olsa escreveu: hi, it's failing on perf-read-vdso32 tool.. attached patch fixes that for me To build it statically: make -C tools/perf O=/tmp/build/perf LDFLAGS=-static install-bin Adri

Re: hugetlb pages not accounted for in rss

2015-07-28 Thread Mike Kravetz
On 07/28/2015 11:32 AM, Jörn Engel wrote: On Mon, Jul 27, 2015 at 04:26:47PM -0700, Mike Kravetz wrote: I started looking at the hugetlb self tests. The test hugetlbfstest expects hugetlb pages to be accounted for in rss. However, there is no code in the kernel to do this accounting. It looks

[PATCH V2] perf: x86: Improve accuracy of perf/sched clock

2015-07-28 Thread Adrian Hunter
When TSC is stable perf/sched clock is based on it. However the conversion from cycles to nanoseconds is not as accurate as it could be. Because CYC2NS_SCALE_FACTOR is 10, the accuracy is +/- 1/2048 The change is to calculate the maximum shift that results in a multiplier that is still a 32-bit n

Re: [RFC/BUG] perf tools: static build fails

2015-07-28 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 29, 2015 at 12:14:41AM +0300, Adrian Hunter escreveu: > On 28/07/2015 7:11 p.m., Arnaldo Carvalho de Melo wrote: > >Em Tue, Jul 28, 2015 at 05:13:47PM +0200, Jiri Olsa escreveu: > >>it's failing on perf-read-vdso32 tool.. attached patch fixes that > >>for me > >To build it statically

Re: [PATCH RFC 1/1] Documentation: describe how to add a system call

2015-07-28 Thread Randy Dunlap
On 07/28/15 04:41, David Drysdale wrote: > Add a document describing the process of adding a new system call, > including the need for a flags argument for future compatibility, and > covering 32-bit/64-bit concerns (albeit in an x86-centric way). > > Signed-off-by: David Drysdale > Reviewed-by:

Re: [PATCH] lib: Make _find_next_bit helper function inline

2015-07-28 Thread Yury
On 28.07.2015 22:09, Cassidy Burden wrote: I've tested Yury Norov's find_bit reimplementation with the test_find_bit module (https://lkml.org/lkml/2015/3/8/141) and measured about 35-40% performance degradation on arm64 3.18 run with fixed CPU frequency. The performance degradation appears to be

Re: [PATCH] ubifs: Kill unneeded locking in ubifs_init_security

2015-07-28 Thread Richard Weinberger
Am 28.07.2015 um 13:21 schrieb Boris Brezillon: > Hi Richard, > > On Wed, 8 Jul 2015 11:46:36 +0200 > Richard Weinberger wrote: > >> Fixes the following lockdep splat: >> [1.244527] = >> [1.245193] [ INFO: possible recursive locking detected ]

Re: [PATCH v2] kthread: Export kthread functions

2015-07-28 Thread Andrew Morton
On Tue, 28 Jul 2015 11:59:01 -0400 David Kershner wrote: > The s-Par visornic driver, currently in staging, processes a queue > being serviced by the an s-Par service partition. We can get a message > that something has happened with the Service Partition, when that > happens, we must not access

Re: X-Gene: Unhandled fault: synchronous external abort in pci_generic_config_read32

2015-07-28 Thread Bjorn Helgaas
On Tue, Jul 28, 2015 at 10:45:26AM -0700, Duc Dang wrote: > On Tue, Jul 28, 2015 at 9:43 AM, Bjorn Helgaas wrote: > > On Fri, Jul 24, 2015 at 7:05 PM, Duc Dang wrote: > >> Hi Bjorn, > >> > >> On Fri, Jul 24, 2015 at 3:42 PM, Bjorn Helgaas wrote: > >>> > >>> I regularly see faults like this on an

[PATCH 00/11] staging: rtl8192e: More cleanups

2015-07-28 Thread Mateusz Kulikowski
Another cleanup series for 8192e driver. It should apply cleanly to current staging-next (6e64e224). Series was target tested as usual. Patches 1-5 are trivial. Patch 11 fixes possible resource leak (when probe fails). Mateusz Kulikowski (11): staging: rtl8192e: Remove rtl8192_phy_updateInitGa

[PATCH 11/11] staging: rtl8192e: probe: iounmap mmio when probe fails

2015-07-28 Thread Mateusz Kulikowski
In case of probe failure, io memory was not released properly. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl

[PATCH 09/11] staging: rtl8192e: Fix IW_IOCTL macro

2015-07-28 Thread Mateusz Kulikowski
Macro caused checkpatch complaints - replace [] braces with () and use [] braces as array initializers. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 68 +++--- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/drivers/st

[PATCH 10/11] staging: rtl8192e: Drop large switch in rtl92e_config_rf

2015-07-28 Thread Mateusz Kulikowski
The same steps were made for each RF path independently. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c | 69 +++--- 1 file changed, 9 insertions(+), 60 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c b/driv

[PATCH 08/11] staging: rtl8192e: Remove phy_RF8256_Config_ParaFile

2015-07-28 Thread Mateusz Kulikowski
Merge function into rtl92e_config_rf as having them separated gives no benefit. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8190

[PATCH 06/11] staging: rtl8192e: Simplify rtl92e_is_halfn_supported_by_ap

2015-07-28 Thread Mateusz Kulikowski
Function should return struct member - no extra logic is needed. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl81

[PATCH 01/11] staging: rtl8192e: Remove rtl8192_phy_updateInitGain

2015-07-28 Thread Mateusz Kulikowski
Function is empty and called only once. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 1 - drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 4 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h | 1 - 3 files changed, 6 deletions(-) diff --git a/drivers

[PATCH 07/11] staging: rtl8192e: Simplify rtl92e_set_bandwidth

2015-07-28 Thread Mateusz Kulikowski
Move phy version check outside of the loop. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c | 53 -- 1 file changed, 18 insertions(+), 35 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c b/drivers/staging/

[PATCH 05/11] staging: rtl8192e: MgntActSet_RF_State: remove ProtectOrNot parameter

2015-07-28 Thread Mateusz Kulikowski
It is set at the very beginning of function to a constant value. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 8 ++-- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 60 +++--- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 3 +-

[PATCH 02/11] staging: rtl8192e: Remove ActUpdateChannelAccessSetting

2015-07-28 Thread Mateusz Kulikowski
Function is empty and called only once. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 6 -- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 3 --- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 4 3 files changed, 13 deletions(-) diff --git a

[PATCH 04/11] staging: rtl8192e: Remove rtl8192_data_hard_resume

2015-07-28 Thread Mateusz Kulikowski
Function is empty; rtllib checks if handler is NULL. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 14

Re: [PATCH v2 04/25] mm: enhance region_is_ram() to distinguish 'unknown' vs 'mixed'

2015-07-28 Thread Toshi Kani
On Fri, 2015-07-24 at 22:38 -0400, Dan Williams wrote: > region_is_ram() is used to prevent the establishment of aliased mappings > to physical "System RAM" with incompatible cache settings. However, it > uses "-1" to indicate both "unknown" memory ranges (ranges not described > by platform firmwa

Re: [PATCH] user_ns: use correct check for single-threadedness

2015-07-28 Thread Andrew Morton
On Tue, 28 Jul 2015 10:15:00 -0700 Kees Cook wrote: > From: Ricky Zhou > > Checking mm_users > 1 does not mean a process is multithreaded. For > example, reading /proc/PID/maps temporarily increments mm_users, allowing > other processes to (accidentally) interfere with unshare() calls. > > Thi

[PATCH 03/11] staging: rtl8192e: Remove rtl8192_data_hard_stop

2015-07-28 Thread Mateusz Kulikowski
Function is empty; rtllib checks if handler is NULL. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 584b

Re: [PATCH] lib: Make _find_next_bit helper function inline

2015-07-28 Thread Yury
On 29.07.2015 00:23, Yury wrote: On 28.07.2015 22:09, Cassidy Burden wrote: I've tested Yury Norov's find_bit reimplementation with the test_find_bit module (https://lkml.org/lkml/2015/3/8/141) and measured about 35-40% performance degradation on arm64 3.18 run with fixed CPU frequency. The pe

Re: [PATCH v2] clk: exynos4: Fix wrong clock for Exynos4x12 ADC

2015-07-28 Thread Stephen Boyd
On 07/26, Sylwester Nawrocki wrote: > On 07/22/2015 08:41 AM, Krzysztof Kozlowski wrote: > >On 22.07.2015 07:42, Stephen Boyd wrote: > >>>On 06/12, Krzysztof Kozlowski wrote: > [...] > >Signed-off-by: Krzysztof Kozlowski > >Cc: > >Fixes: c63c57433003 ("ARM: dts: Add ADC's dt data to rea

Re: [PATCH] lib: Make _find_next_bit helper function inline

2015-07-28 Thread Andrew Morton
On Wed, 29 Jul 2015 00:23:18 +0300 Yury wrote: > But I think, before/after for x86 is needed as well. That would be nice. > And why don't you consider '__always_inline__'? Simple inline is only a > hint and > guarantees nothing. Yup. My x86_64 compiler just ignores the "inline". When I use

Re: [PATCH 1/3] net: mdio-octeon: Modify driver to work on both ThunderX and Octeon

2015-07-28 Thread Radha Mohan
On Tue, Jul 28, 2015 at 7:07 AM, David Daney wrote: > On 07/27/2015 07:14 PM, mohun...@gmail.com wrote: >> >> From: Radha Mohan Chintakuntla >> >> This patch modifies the mdio-octeon driver to work on both ThunderX and >> Octeon SoCs from Cavium Inc. >> >> Signed-off-by: Sunil Goutham >> Signed-

Re: [PATCH] user_ns: use correct check for single-threadedness

2015-07-28 Thread Kees Cook
On Tue, Jul 28, 2015 at 2:35 PM, Andrew Morton wrote: > On Tue, 28 Jul 2015 10:15:00 -0700 Kees Cook wrote: > >> From: Ricky Zhou >> >> Checking mm_users > 1 does not mean a process is multithreaded. For >> example, reading /proc/PID/maps temporarily increments mm_users, allowing >> other proces

Re: [PATCH RFC v2 0/2] hwspinlock: Introduce raw capability for hwspinlock_device

2015-07-28 Thread Lina Iyer
On Sat, Jul 18 2015 at 05:31 -0600, Ohad Ben-Cohen wrote: Hi Lina, On Thu, Jul 2, 2015 at 11:30 PM, Lina Iyer wrote: You are right, RAW capability is not lock specific. But we dont want to impose this on every lock in the bank either. I'm not sure I'm following your concern here: drivers sti

Re: X-Gene: Unhandled fault: synchronous external abort in pci_generic_config_read32

2015-07-28 Thread Duc Dang
On Tue, Jul 28, 2015 at 2:29 PM, Bjorn Helgaas wrote: > On Tue, Jul 28, 2015 at 10:45:26AM -0700, Duc Dang wrote: >> On Tue, Jul 28, 2015 at 9:43 AM, Bjorn Helgaas wrote: >> > On Fri, Jul 24, 2015 at 7:05 PM, Duc Dang wrote: >> >> Hi Bjorn, >> >> >> >> On Fri, Jul 24, 2015 at 3:42 PM, Bjorn Helg

Re: [PATCH -v2 7/8] jump_label: Add selftest

2015-07-28 Thread Jason Baron
On 07/28/2015 09:21 AM, Peter Zijlstra wrote: Hi, Funny-so I did something similar but its a modules self test so I think its complementary. I can re-post with a changelog and some more comments if you think its worthwhile. I have two modules in order to test actually updating the key during modu

Re: [PATCH v2 3/6] mailbox: Add support for ST's Mailbox IP

2015-07-28 Thread Paul Bolle
On ma, 2015-07-27 at 10:44 +0100, Lee Jones wrote: > --- /dev/null > +++ b/drivers/mailbox/mailbox-sti.c > +static int sti_mbox_probe(struct platform_device *pdev) > +{ > + [...] > + > + match = of_match_device(sti_mailbox_match, &pdev->dev); > + if (!match) { > + dev_err(&

Re: [PATCH 4/9] x86/intel_rdt: Add support for Cache Allocation detection

2015-07-28 Thread Vikas Shivappa
On Tue, 28 Jul 2015, Peter Zijlstra wrote: On Wed, Jul 01, 2015 at 03:21:05PM -0700, Vikas Shivappa wrote: +static int __init intel_rdt_late_init(void) +{ + struct cpuinfo_x86 *c = &boot_cpu_data; + + if (!cpu_has(c, X86_FEATURE_CAT_L3)) + return -ENODEV; + + p

Re: [PATCH 6/9] x86/intel_rdt: Add support for cache bit mask management

2015-07-28 Thread Vikas Shivappa
On Tue, 28 Jul 2015, Peter Zijlstra wrote: On Wed, Jul 01, 2015 at 03:21:07PM -0700, Vikas Shivappa wrote: +static inline bool cbm_is_contiguous(unsigned long var) +{ + unsigned long maxcbm = MAX_CBM_LENGTH; + unsigned long first_bit, zero_bit; + + if (!var) +

Re: [PATCH V3 RESEND 8/8] staging: rtl8712: change SupportedRates to rates

2015-07-28 Thread Dan Carpenter
On Tue, Jul 28, 2015 at 10:49:52AM -0700, Joshua Clayton wrote: > > Changing the line breaks here is a tiny change on the same line and so > > it's fine. It fits into the one thing per patch rule. > > This is the style I prefer (getting rid of the explicit == true) > > - if ((r8712_is_cckrat

Re: [PATCH] user_ns: use correct check for single-threadedness

2015-07-28 Thread Kirill A. Shutemov
On Tue, Jul 28, 2015 at 02:35:04PM -0700, Andrew Morton wrote: > On Tue, 28 Jul 2015 10:15:00 -0700 Kees Cook wrote: > > > From: Ricky Zhou > > > > Checking mm_users > 1 does not mean a process is multithreaded. For > > example, reading /proc/PID/maps temporarily increments mm_users, allowing >

[PATCH v2 1/3] net: mdio-octeon: Modify driver to work on both ThunderX and Octeon

2015-07-28 Thread mohun106
From: Radha Mohan Chintakuntla This patch modifies the mdio-octeon driver to work on both ThunderX and Octeon SoCs from Cavium Inc. Signed-off-by: Sunil Goutham Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: David Daney --- drivers/net/phy/Kconfig | 10 ++-- drivers/net/phy/m

[PATCH v2 2/3] net: mdio-octeon: Fix octeon_mdiobus_probe function for return values

2015-07-28 Thread mohun106
From: Radha Mohan Chintakuntla This patch fixes a possible crash in the octeon_mdiobus_probe function if the return values are not handled properly. Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: Tomasz Nowicki --- drivers/net/phy/mdio-octeon.c | 14 +- 1 files changed,

[PATCH v2 0/3] Add MDIO support to ThunderX NIC driver

2015-07-28 Thread mohun106
From: Radha Mohan Chintakuntla This patch series adds MDIO support to ThunderX NIC driver by making use of existing mdio-octeon driver. In the process modified the mdio-octeon driver to work on both Octeon and ThunderX platforms. * From v1: - Removed default selection in Kconfig for MDIO_OCTEO

[PATCH v2 3/3] net: thunderx: Select CONFIG_MDIO_OCTEON for ThunderX NIC

2015-07-28 Thread mohun106
From: Radha Mohan Chintakuntla The CONFIG_MDIO_OCTEON is required so that the ThunderX NIC driver can talk to the PHY drivers. Signed-off-by: Radha Mohan Chintakuntla --- drivers/net/ethernet/cavium/Kconfig |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/e

Re: hugetlb pages not accounted for in rss

2015-07-28 Thread David Rientjes
On Tue, 28 Jul 2015, Mike Kravetz wrote: > > > The easiest way to resolve this issue would be to remove the test and > > > perhaps document that hugetlb pages are not accounted for in rss. > > > However, it does seem like a big oversight that hugetlb pages are not > > > accounted for in rss. From

[PATCH 1/3] net: netcp: fix cleanup interface list in netcp_remove()

2015-07-28 Thread Murali Karicheri
Currently if user do rmmod keystone_netcp.ko following warning is seen :- [ 59.035891] [ cut here ] [ 59.040535] WARNING: CPU: 2 PID: 1619 at drivers/net/ethernet/ti/ netcp_core.c:2127 netcp_remove) This is because the interface list is not cleaned up in netcp_remove.

[PATCH 2/3] net: netcp: ethss: fix up incorrect use of list api

2015-07-28 Thread Murali Karicheri
The code seems to assume a null is returned when the list is empty from first_sec_slave() to break the loop which is incorrect. Fix the code by using list_empty(). Signed-off-by: Murali Karicheri --- drivers/net/ethernet/ti/netcp_ethss.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

[PATCH 0/3] net: netcp: bug fixes for dynamic module support

2015-07-28 Thread Murali Karicheri
This series fixes few bugs to allow keystone netcp modules to be dynamically loaded and removed. Currently it allows following sequence multiple times insmod cpsw_ale.ko insmod davinci_mdio.ko insmod keystone_netcp.ko insmod keystone_netcp_ethss.ko ifup eth0 ifup eth1 ping ping ifdown

[PATCH 3/3] net: netcp: ethss: cleanup gbe_probe() and gbe_remove() functions

2015-07-28 Thread Murali Karicheri
This patch clean up error handle code to use goto label properly. In some cases, the code unnecessarily use goto instead of just returning the error code. Code also make explicit calls to devm_* APIs on error which is not necessary. In the gbe_remove() also it makes similar calls which is also unn

Re: hugetlb pages not accounted for in rss

2015-07-28 Thread Jörn Engel
On Tue, Jul 28, 2015 at 03:15:17PM -0700, David Rientjes wrote: > > Starting to account hugetlb pages in rss may lead to breakage in userspace > and I would agree with your earlier suggestion that just removing any test > for rss would be appropriate. What would you propose for me then? I have

xHCI corruption after double URB submit

2015-07-28 Thread Laura Abbott
Hi, While debugging an issue with another driver, I've hit some corruption in xHCI. I'm not sure if the corruption is directly caused by the first warning or if the warning is exposing an issue with the driver. The issue I was actually trying to debug was a URB double submit: [ cut h

Re: [PATCHv7 0/2] Adding driver for Xilinx LogiCORE IP mailbox.

2015-07-28 Thread Moritz Fischer
Hi Jassi, just a ping to see if you're waiting on me to fix things or if this is good to go from your point of view, and you're just waiting some time to give people more time to review. Let me know if you want me to resend with Soeren's Acked-By Cheers, Moritz On Tue, Jul 14, 2015 at 6:00 PM,

Re: [PATCH v2 18/25] libnvdimm, pmem: switch from ioremap_cache to memremap

2015-07-28 Thread Ross Zwisler
On Fri, 2015-07-24 at 22:39 -0400, Dan Williams wrote: > In preparation for deprecating ioremap_cache() convert its usage in > libnvdimm and the PMEM API to memremap. > > Signed-off-by: Dan Williams > --- > arch/x86/include/asm/io.h |7 +-- > arch/x86/mm/ioremap.c |

Re: [RFCv2 1/3] docs: dts: Added documentation for Xilinx Zynq Reset Controller bindings.

2015-07-28 Thread Sören Brinkmann
On Mon, 2015-07-27 at 09:52PM -0700, Moritz Fischer wrote: > Hi Sören, > > thanks for your feedback. > > On Mon, Jul 27, 2015 at 7:58 PM, Sören Brinkmann > wrote: > > Hi Moritz, > > > > On Fri, 2015-07-24 at 05:21PM -0700, Moritz Fischer wrote: > >> Signed-off-by: Moritz Fischer > >> --- > >>

Re: [PATCH v4 2/2] dt: power: st: Provide bindings for ST's OPPs

2015-07-28 Thread Stephen Boyd
On 07/28, Viresh Kumar wrote: > Cc'ing few people (whom I cc'd last time as well :)). > > On 27-07-15, 16:20, Lee Jones wrote: > > These OPPs are used in ST's CPUFreq implementation. > > > > Signed-off-by: Lee Jones > > --- > > > > Changelog: > > - None, new patch > > > > Documentation/devic

<    1   2   3   4   5   6   7   8   9   10   >