[PATCH v7 4/7] arm64: kprobes instruction simulation support

2015-06-15 Thread David Long
From: Sandeepa Prabhu Kprobes needs simulation of instructions that cannot be stepped from different memory location, e.g.: those instructions that uses PC-relative addressing. In simulation, the behaviour of the instruction is implemented using a copy of pt_regs. Following instruction

[PATCH v7 7/7] kprobes: Add arm64 case in kprobe example module

2015-06-15 Thread David Long
From: Sandeepa Prabhu Add info prints in sample kprobe handlers for ARM64 Signed-off-by: Sandeepa Prabhu --- samples/kprobes/kprobe_example.c | 8 1 file changed, 8 insertions(+) diff --git a/samples/kprobes/kprobe_example.c b/samples/kprobes/kprobe_example.c index 366db1a..51d459c

[PATCH v7 5/7] arm64: Add trampoline code for kretprobes

2015-06-15 Thread David Long
From: William Cohen The trampoline code is used by kretprobes to capture a return from a probed function. This is done by saving the registers, calling the handler, and restoring the registers. The code then returns to the roginal saved caller return address. It is necessary to do this

[PATCH v7 6/7] arm64: Add kernel return probes support (kretprobes)

2015-06-15 Thread David Long
From: Sandeepa Prabhu The pre-handler of this special 'trampoline' kprobe executes the return probe handler functions and restores original return address in ELR_EL1. This way the saved pt_regs still hold the original register context to be carried back to the probed kernel function.

[PATCH v2 12/15] staging: rtl8192e: Remove rt_pwr_save_ctrl members

2015-06-15 Thread Mateusz Kulikowski
Following members were removed: - tmpJoinAction - tmpSuppRateBuf - bTmpIbpm As a consequence several unused defines/enums/structs were also removed from rtllib.h Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 36 1 file changed,

[PATCH v7 0/7] arm64: Add kernel probes (kprobes) support

2015-06-15 Thread David Long
From: "David A. Long" This patchset is heavily based on Sandeepa Prabhu's ARM v8 kprobes patches, first seen in October 2013. This version attempts to address concerns raised by reviewers and also fixes problems discovered during testing. This patchset adds support for kernel probes(kprobes),

Re: [PATCH v6 0/2] kconfig: add xenconfig

2015-06-15 Thread Luis R. Rodriguez
On Tue, Jun 9, 2015 at 6:44 AM, Konrad Rzeszutek Wilk wrote: > On Mon, Jun 08, 2015 at 04:35:35PM -0700, Luis R. Rodriguez wrote: >> On Thu, May 28, 2015 at 2:50 PM, Luis R. Rodriguez >> wrote: >> > On Thu, May 21, 2015 at 11:32 AM, Luis R. Rodriguez >> > wrote: >> >> On Thu, May 21, 2015 at

[PATCH v7 2/7] arm64: Add more test functions to insn.c

2015-06-15 Thread David Long
From: "David A. Long" Certain instructions are hard to execute correctly out-of-line (as in kprobes). Test functions are added to insn.[hc] to identify these. The instructions include any that use PC-relative addressing, change the PC, or change interrupt masking. For efficiency and simplicity

Re: [PATCH ljones-mfd] mfd: cros_ec:: ec_p can be static

2015-06-15 Thread Javier Martinez Canillas
Hello Fengguang, Thanks a lot for your patch. On 06/15/2015 03:39 PM, kbuild test robot wrote: > > Signed-off-by: Fengguang Wu > --- > cros_ec.c |6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/mfd/cros_ec.c b/drivers/mfd/cros_ec.c > index

[PATCH v2 04/15] staging: rtl8192e: Remove ENABLE_LOCK_DEBUG reference

2015-06-15 Thread Mateusz Kulikowski
ENABLE_LOCK_DEBUG macro was never set, so condition that used it can be resolved manually. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index

[PATCH v7 1/7] arm64: Add HAVE_REGS_AND_STACK_ACCESS_API feature

2015-06-15 Thread David Long
From: "David A. Long" Add HAVE_REGS_AND_STACK_ACCESS_API feature for arm64. Signed-off-by: David A. Long --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/ptrace.h | 25 + arch/arm64/kernel/ptrace.c | 77 + 3 files

[PATCH v2 02/15] staging: rtl8192e: Remove unused code in rtllib.h

2015-06-15 Thread Mateusz Kulikowski
Delete macros, structure members and declarations etc. that are not referenced anywhere in code. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 448 -- 1 file changed, 448 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h

[PATCH v2 10/15] staging: rtl8192e: Remove WIRELESS_EXT checks

2015-06-15 Thread Mateusz Kulikowski
Current WIRELESS_EXT version is at least 22. Resolve ifdefs and delete dead code. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 12 1 file changed, 12 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index

[PATCH v2 06/15] staging: rtl8192e: Remove rtllib_wake_queue()

2015-06-15 Thread Mateusz Kulikowski
This function was declared but never unused. Also remove dequeue_mgmt() and rtllib_resume_tx() that are no longer used. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 1 - drivers/staging/rtl8192e/rtllib_softmac.c | 80 --- 2 files

[PATCH v2 09/15] staging: rtl8192e: Remove rtllib_device::get_nic_desc_num()

2015-06-15 Thread Mateusz Kulikowski
This function/callback was initialized and never called. rtl8192_get_nic_desc_num() function that was default implementation was also removed. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 17 - drivers/staging/rtl8192e/rtllib.h

[PATCH v2 05/15] staging: rtl8192e: Remove rtllib_stop_queue()

2015-06-15 Thread Mateusz Kulikowski
This function was declared but never unused. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 1 - drivers/staging/rtl8192e/rtllib_softmac.c | 12 2 files changed, 13 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h

[PATCH v2 08/15] staging: rtl8192e: Remove rtllib_wx_get_encode_ext()

2015-06-15 Thread Mateusz Kulikowski
This function was declared but never unused. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h| 3 -- drivers/staging/rtl8192e/rtllib_wx.c | 57 2 files changed, 60 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h

[PATCH v2 07/15] staging: rtl8192e: Remove rtllib_is_shortslot()

2015-06-15 Thread Mateusz Kulikowski
This function was declared but never unused. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib.h | 1 - drivers/staging/rtl8192e/rtllib_softmac.c | 5 - 2 files changed, 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h

[PATCH v2 03/15] staging: rtl8192e: Remove rt_hi_throughput::ChnkOp

2015-06-15 Thread Mateusz Kulikowski
Field was initialized and never used. This patch also removes chnl_op enum that was only referenced by ChnkOp init code. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_HT.h | 8 drivers/staging/rtl8192e/rtl819x_HTProc.c | 1 - 2 files changed, 9 deletions(-)

[PATCH v2 01/15] staging: rtl8192e: Remove unused code in rtl819x_HT.h

2015-06-15 Thread Mateusz Kulikowski
Delete unused enums, structures and macros. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_HT.h | 128 -- 1 file changed, 128 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h index

[PATCH v2 00/15] staging: rtl8192e: Remove unused code

2015-06-15 Thread Mateusz Kulikowski
Changes: - Squashed patches 6 and 7 from V1 as suggested by Sudip Notes from V1: Another cleanup series. Most patches are pretty simple (fragmented a bit to make review easier). Series should apply cleanly into staging-next (5c1043984) and staging-testing (f996bd10). Target tested

Re: [PATCH 03/30] perf tools: Change thread_map::map into struct

2015-06-15 Thread Arnaldo Carvalho de Melo
Em Sun, Jun 14, 2015 at 10:19:18AM +0200, Jiri Olsa escreveu: > We need to store command names with the pid. Changing > map to be struct holding pid. Process name is coming > in shortly. > +++ b/tools/perf/util/thread_map.h > @@ -4,11 +4,17 @@ > #include > #include > > +struct

[char-misc-next 02/15 V2] mei: bus: rename nfc.c to bus-fixup.c

2015-06-15 Thread Tomas Winkler
The bus-fixup.c will be a place for fixups and quirks for all types of me client devices. As for now it contians only the fixup for setting the nfc device name on the me client bus. Signed-off-by: Tomas Winkler --- drivers/misc/mei/Makefile | 2 +- drivers/misc/mei/{nfc.c =>

[char-misc-next 06/15 V2] mei: bus: report if event registration failed

2015-06-15 Thread Tomas Winkler
If event registeration has failed, the caller should know about it. Signed-off-by: Tomas Winkler --- V2: fix the commit message drivers/misc/mei/bus.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index

[char-misc-next 04/15] mei: bus: rename uevent handler to mei_cl_device_uevent

2015-06-15 Thread Tomas Winkler
Rename mei_cl_uevent to mei_cl_device_uevent to match the naming convention of mei_cl_bus_type functions Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c

[char-misc-next 08/15 V2] mei: bus: revamp probe and remove functions

2015-06-15 Thread Tomas Winkler
Instead of generating device id on the fly during probing we find the matching id entry on the device id table. Get bus the module reference counter so it cannot be unloaded after the driver has bounded to the client device Signed-off-by: Tomas Winkler --- V2: Resend drivers/misc/mei/bus.c | 41

[char-misc-next 03/15 V2] mei: bus: move driver api functions at the start of the file

2015-06-15 Thread Tomas Winkler
To make the file more organize move mei client driver api to the start of the file and add Kdoc. There are no functional changes in this patch. Signed-off-by: Tomas Winkler --- V2: Resend drivers/misc/mei/bus.c | 798 +++-- 1 file changed, 443

[char-misc-next 07/15 V2] mei: bus: revamp device matching

2015-06-15 Thread Tomas Winkler
mei_cl_device_match now calls mei_cl_device_find that returns the matching device id in the device id table. We will utilize the mei_cl_device_find during probing to locate the matching entry. Signed-off-by: Tomas Winkler --- V2: fix the commit message drivers/misc/mei/bus.c | 63

[char-misc-next 10/15 V2] mei: bus: add me client device list infrastructure

2015-06-15 Thread Tomas Winkler
Instead of holding the list of host clients (me_cl) we want to keep the list me client devices (mei_cl_device) This way we can create host to me client connection only when needed. Add list head to mei_cl_device and cl_bus_lock Add bus_added flag to the me client (mei_me_client) to track if the

[char-misc-next 11/15 V2] mei: bus: enable running fixup routines before device registration

2015-06-15 Thread Tomas Winkler
Split the device registration into allocation and device struct initialization, device setup, and the final device registration. This why it is possible to run fixups and quirks during the setup stage on an initialized device. Each fixup routine effects do_match flag. If the flag is set to false

[char-misc-next 00/15 V2] revamp mei bus

2015-06-15 Thread Tomas Winkler
MEI bus was designed around nfc and was hard to extend. Instead of hard coded way of adding the devices on the mei bus we scan whole me client list and create a device for each eligible me client V2: Rephrase the commit message of most of the patches Remove few patches that didn't bring

[char-misc-next 13/15] mei: bus: blacklist clients by number of connections

2015-06-15 Thread Tomas Winkler
Currently we support only clients with single connection and fixed address clients so all other clients are blacklisted Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus-fixup.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/misc/mei/bus-fixup.c

[char-misc-next 01/15 V2] mei: bus: fix drivers and devices names confusion

2015-06-15 Thread Tomas Winkler
In the mei bus layer there is use of different variables of driver and device types with no clear naming convention. There are generic struct device and struct driver, then mei_cl_{device, driver}, and finally mei_device which in this context serves as a bus device. The patch sets following

[char-misc-next 15/15 V2] mei: bus: link client devices instead of host clients

2015-06-15 Thread Tomas Winkler
MEI bus was designed around nfc and was hard to extend. Instead of the hard coded way of adding the devices on the mei bus we scan the whole me client list and create a device for each eligible me client (mei_cl_bus_rescan); currently we support only clients with single connection and fixed

[char-misc-next 05/15 V2] mei: bus: don't enable events implicitly in device enable

2015-06-15 Thread Tomas Winkler
Do not enable events implicitly in mei_cl_enable_device, it should be done explicitly using mei_cl_register_event_cb so the events are enabled only when needed. The NFC drivers has been already using it that way so no need for further changes just remove the code from mei_cl_enable_device.

[char-misc-next 09/15 V2] mei: bus: add reference to bus device in struct mei_cl_client

2015-06-15 Thread Tomas Winkler
Add reference to the bus device (mei_device) for easier access. To ensures that referencing cldev->bus is valid during cldev life time we increase the bus ref counter on a client device creation and drop it on the device release. Signed-off-by: Tomas Winkler --- V2: resend

[char-misc-next 14/15 V2] mei: bus: simplify how we build nfc bus name

2015-06-15 Thread Tomas Winkler
Remove the dependency on struct ndev from the nfc device name creation function so it is possible to use it in a fixup routine Signed-off-by: Tomas Winkler --- V2: Fix the commit message drivers/misc/mei/bus-fixup.c | 115 --- drivers/misc/mei/bus.c

[char-misc-next 12/15] mei: bus: blacklist the nfc info client

2015-06-15 Thread Tomas Winkler
Blacklist nfc info client which is only used for retrieval of the NFC radio version Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus-fixup.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/misc/mei/bus-fixup.c

Re: [PATCH perf/core v2 2/3] [BUGFIX] perf probe: Check non-probe-able symbols when using symbol map

2015-06-15 Thread Arnaldo Carvalho de Melo
Em Sat, Jun 13, 2015 at 10:31:18AM +0900, Masami Hiramatsu escreveu: > Fix to check both of non-exist symbols and kprobe blacklist symbols at > symbol-map based converting too. > > E.g. without this fix, perf-probe failes to write the event. > > # perf probe vfs_caches_init_early >

Re: [PATCH 0/5 v2] Fixes for leapsecond expiring early ABS_TIME CLOCK_REALTIME timers

2015-06-15 Thread John Stultz
On Mon, Jun 15, 2015 at 6:46 AM, Prarit Bhargava wrote: > On 06/15/2015 09:10 AM, Prarit Bhargava wrote: >> I'm testing this on a few more large CPU count systems. So far, so good ... >> > > John, unfortunately I'm seeing failures across a lot of the large systems > dev/early-leap-timer as of

[PATCH v2] ARM: tegra124: pmu support

2015-06-15 Thread Kyle Huey
This patch modifies the device tree for tegra124 based devices to enable the Cortex A15 PMU. The interrupt numbers are taken from NVIDIA TRM DP-06905-001_v03p. This patch was tested on a Jetson TK1. Signed-off-by: Kyle Huey --- arch/arm/boot/dts/tegra124.dtsi | 8 1 file changed, 8

Re: [RFC v4 PATCH 6/9] mm/hugetlb: alloc_huge_page handle areas hole punched by fallocate

2015-06-15 Thread Mike Kravetz
On 06/14/2015 11:34 PM, Naoya Horiguchi wrote: > On Thu, Jun 11, 2015 at 02:01:37PM -0700, Mike Kravetz wrote: >> Areas hole punched by fallocate will not have entries in the >> region/reserve map. However, shared mappings with min_size subpool >> reservations may still have reserved pages.

Re: [alsa-devel] [PATCH] mips/ad1843: convert time to jiffies HZ independent

2015-06-15 Thread Takashi Iwai
At Mon, 15 Jun 2015 18:27:27 +0200, Nicholas Mc Guire wrote: > > On Mon, 15 Jun 2015, Takashi Iwai wrote: > > > At Sun, 14 Jun 2015 19:16:59 +0200, > > Nicholas Mc Guire wrote: > > > > > > On Sun, 14 Jun 2015, Takashi Iwai wrote: > > > > > > > At Sun, 14 Jun 2015 10:20:59 +0200, > > > >

Re: [PATCH v2 00/14] ARM: shmobile: Add CPG Clock Domains

2015-06-15 Thread Kevin Hilman
Geert Uytterhoeven writes: > On Thu, May 28, 2015 at 8:53 PM, Geert Uytterhoeven > wrote: >> Hi all, >> >> This patch series adds Clock Domain support to the Clock Pulse Generator >> (CPG) Module Stop (MSTP) Clocks driver using the generic PM Domain, to >> be used on shmobile SoCs

Re: [PATCH 2/4] locking/rtmutex: Use cmp-cmpxchg

2015-06-15 Thread Jason Low
Hi David, On Sat, Jun 6, 2015 at 8:27 AM, Davidlohr Bueso wrote: > On Fri, 2015-06-05 at 14:38 +0200, Thomas Gleixner wrote: >> On Tue, 19 May 2015, Davidlohr Bueso wrote: >> >> > Avoid unnecessary cmpxchg calls, all of our other locks >> > use it as well. >> > >> > Signed-off-by: Davidlohr

Re: [PATCH] TCO watchdog pretimeout handler

2015-06-15 Thread Guenter Roeck
On Mon, Jun 15, 2015 at 05:00:29PM +0200, Francois-Nicolas Muller wrote: > Use TCO watchdog first timeout (pretimeout) to dump CPU backtraces and ease > debug of watchdog expiration causes. > TCO logic generates a SCI interrupt, then its handler dumps all CPU backtraces > and calls panic (in order

Re: [PATCH] wireless: ipw2100: fix timeout bug - always evaluated to 0

2015-06-15 Thread Stanislav Yakovlev
to msecs_to_jiffies(50). > > Signed-off-by: Nicholas Mc Guire > --- > > Patch was compile tested with x86_64_defconfig + CONFIG_IPW2100=m > (with a few buildwarnings in ipw2100.c though not related to this patch) > > Patch is against 4.1-rc7 (localversion-next is -next-20150

Re: [PATCH 3/3] writeback, blkio: add documentation for cgroup writeback support

2015-06-15 Thread Tejun Heo
Hey, Vivek. On Mon, Jun 15, 2015 at 01:28:23PM -0400, Vivek Goyal wrote: > IIRC, I had run into the issues with two fsync running into two cgroups. > One cgroup was of really small limit and other was unlimited. At that > point of time I think conclusion was that multiple transactions could > not

[PATCH] MAINTAINERS: Add quotation marks around names with commas

2015-06-15 Thread Joe Perches
This makes it easier to copy/paste names with periods to email clients. All the other names with commas already have quotation marks. Signed-off-by: Joe Perches --- MAINTAINERS | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [lkp] [flow_dissector] 6a74fcf426f: RIP: 0010:[] [] __skb_flow_dissect+0x659/0x830

2015-06-15 Thread Eric Dumazet
On Mon, 2015-06-15 at 14:12 +0800, Huang Ying wrote: > FYI, we noticed the below changes on > > git://flatbed.openfabrics.org/~amirv/linux.git for-upstream > commit 6a74fcf426f51aaa569f0b973d10ac20468df238 ("flow_dissector: add support > for dst, hop-by-hop and routing ext hdrs") This was fixed

Re: [lkp] [flow_dissector] 6a74fcf426f: RIP: 0010:[] [] __skb_flow_dissect+0x659/0x830

2015-06-15 Thread Tom Herbert
On Sun, Jun 14, 2015 at 11:12 PM, Huang Ying wrote: > FYI, we noticed the below changes on > > git://flatbed.openfabrics.org/~amirv/linux.git for-upstream > commit 6a74fcf426f51aaa569f0b973d10ac20468df238 ("flow_dissector: add support > for dst, hop-by-hop and routing ext hdrs") > Fix was pushed

[PATCH] MAINTAINERS: add quotation marks around names with periods

2015-06-15 Thread Joe Perches
This makes it easier to copy/paste names with periods to email clients. All the other names with periods already have quotation marks. Signed-off-by: Joe Perches --- MAINTAINERS | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/MAINTAINERS

Re: [lkp] [x86/MSI] 52f518a3a7c: -30.5% netperf.Throughput_tps

2015-06-15 Thread Thomas Gleixner
On Mon, 15 Jun 2015, Huang Ying wrote: > FYI, we noticed the below changes on > > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > commit 52f518a3a7c2f80551a38d38be28bc9f335e713c ("x86/MSI: Use hierarchical > irqdomains to manage MSI interrupts") > I really

Re: [alsa-devel][PATCH] ASoC: wm8960: add two kcontrols to select ADC left/right channel source

2015-06-15 Thread Charles Keepax
On Mon, Jun 15, 2015 at 01:17:24PM +0200, Lars-Peter Clausen wrote: > On 06/15/2015 12:34 PM, Zidan Wang wrote: >> Add two kcontrols to select ADC left/right channel source, one to select >> the left channel source and one for the right channel source. >> >> Signed-off-by: Zidan Wang >> --- >>

Re: [PATCH linux-next 2/2] mfd: flexcom: add a driver for Atmel Flexible Serial Communication Unit

2015-06-15 Thread Alexandre Belloni
Hi, On 15/06/2015 at 18:38:05 +0200, Cyrille Pitchen wrote : > + err = of_property_read_string(pdev->dev.of_node, > + "atmel,flexcom-mode", ); > + if (err) > + return err; > + > + if (!strcmp(mode, "usart")) > + mr =

[PATCH] cpufreq, Fix overflow in busy_scaled due to long delay [v2]

2015-06-15 Thread Prarit Bhargava
The kernel may delay interrupts for a long time which can result in timers being delayed. If this occurs the intel_pstate driver will crash with a divide by zero error: divide error: [#1] SMP Modules linked in: btrfs zlib_deflate raid6_pq xor msdos ext4 mbcache jbd2 binfmt_misc arc4 md4

Re: [BUG ?] delay always evaluates to 0

2015-06-15 Thread Nicholas Mc Guire
On Mon, 15 Jun 2015, Stanislav Yakovlev wrote: > Hi Nicholas, > > On 12 June 2015 at 20:58, Nicholas Mc Guire wrote: > > Hi ! > > > > commit 2c86c275015c ("Add ipw2100 wireless driver.") introduced > > > > drivers/net/wireless/ipw2100.c - line-numbers are from next-20150511 > > 1410 static int

Re: [PATCH linux-next 2/2] mfd: flexcom: add a driver for Atmel Flexible Serial Communication Unit

2015-06-15 Thread Boris Brezillon
On Mon, 15 Jun 2015 18:38:05 +0200 Cyrille Pitchen wrote: > This driver supports the new Atmel Flexcom. The Flexcom is a wrapper which > integrates one SPI controller, one I2C controller and one USART. Only one > function can be enabled at a time. This driver selects the function once > for all,

[PATCH] wireless: ipw2100: fix timeout bug - always evaluated to 0

2015-06-15 Thread Nicholas Mc Guire
--- Patch was compile tested with x86_64_defconfig + CONFIG_IPW2100=m (with a few buildwarnings in ipw2100.c though not related to this patch) Patch is against 4.1-rc7 (localversion-next is -next-20150615) drivers/net/wireless/ipw2x00/ipw2100.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 3/3] writeback, blkio: add documentation for cgroup writeback support

2015-06-15 Thread Vivek Goyal
On Fri, Jun 12, 2015 at 04:57:34PM -0500, Tejun Heo wrote: > Update Documentation/cgroups/blkio-controller.txt to reflect the > recently added cgroup writeback support. > > Signed-off-by: Tejun Heo > Cc: Li Zefan > Cc: Vivek Goyal > Cc: cgro...@vger.kernel.org > Cc:

Re: [PATCH linux-next 1/2] mfd: devicetree: add bindings for Atmel Flexcom

2015-06-15 Thread Boris Brezillon
Hi Cyrille, On Mon, 15 Jun 2015 18:38:04 +0200 Cyrille Pitchen wrote: > Signed-off-by: Cyrille Pitchen > --- > .../devicetree/bindings/mfd/atmel-flexcom.txt | 28 > ++ > 1 file changed, 28 insertions(+) > create mode 100644

Re: [PATCH v3] perf/rapl: support per domain energy unit

2015-06-15 Thread Vince Weaver
On Thu, 26 Mar 2015, Jacob Pan wrote: > RAPL energy hardware unit can vary within a single CPU package, e.g. > HSW server DRAM has a fixed energy unit of 15.3 uJ (2^-16) whereas > the unit on other domains can be enumerated from power unit MSR. > There might be other variations in the future,

[PATCH 5/7] userfaultfd: switch to exclusive wakeup for blocking reads

2015-06-15 Thread Andrea Arcangeli
Blocking reads can easily use exclusive wakeups. Poll in theory could too but there's no poll_wait_exclusive in common code yet. If a poll() non-exclusive waitqueue is encountered before the exclusive readblocking waitqueue, then everything will be waken. If a read exclusive waitqueue is

[PATCH 2/7] userfaultfd: propagate the full address in THP faults

2015-06-15 Thread Andrea Arcangeli
The THP faults were not propagating the original fault address. The latest version of the API with uffd.arg.pagefault.address is supposed to propagate the full address through THP faults. This was not a kernel crashing bug and it wouldn't risk to corrupt user memory, but it would cause a SIGBUS

[PATCH 6/7] userfaultfd: Revert "userfaultfd: waitqueue: add nr wake parameter to __wake_up_locked_key"

2015-06-15 Thread Andrea Arcangeli
This reverts commit 855c5a9026b0fce58c8de5382ef8ce00f74c1331 and adapts fs/userfaultfd.c to use the old version of that function. It didn't look robust to call __wake_up_common with "nr == 1" when we absolutely require wakeall semantics, but we've full control of what we insert in the two

[PATCH 7/7] userfaultfd: selftest

2015-06-15 Thread Andrea Arcangeli
This test allocates two virtual areas and bounces the physical memory across the two virtual areas using only userfaultfd. This exposed a race condition in the refile of the userfault in userfaultfd_read and an alignment issue with the address returned to userland with THP enabled. It also

[PATCH 4/7] userfaultfd: avoid missing wakeups during refile in userfaultfd_read

2015-06-15 Thread Andrea Arcangeli
During the refile in userfaultfd_read both waitqueues could look empty to the lockless wake_userfault(). Use a seqcount to prevent this false negative that could leave an userfault blocked. Signed-off-by: Andrea Arcangeli --- fs/userfaultfd.c | 26 -- 1 file changed, 24

[Patch v2] driver/clk/clk-si5338: Add common clock framework driver for si5338

2015-06-15 Thread York Sun
SI5338 is a programmable clock generator. It has 4 sets of inputs, PLL, multisynth and dividers to make 4 outputs. This driver splits them into multiple clocks to comply with common clock framework. See Documentation/devicetree/bindings/clock/silabs,si5338.txt for details. Signed-off-by: York

[PATCH 1/7] userfaultfd: require UFFDIO_API before other ioctls

2015-06-15 Thread Andrea Arcangeli
UFFDIO_API was already forced before read/poll could work. This makes the code more strict to force it also for all other ioctls. All users would already have been required to call UFFDIO_API before invoking other ioctls but this makes it more explicit. This will ensure we can change all ioctls

[PATCH 3/7] userfaultfd: allow signals to interrupt a userfault

2015-06-15 Thread Andrea Arcangeli
This is only simple to achieve if the userfault is going to return to userland (not to the kernel) because we can avoid returning VM_FAULT_RETRY despite we temporarily released the mmap_sem. The fault would just be retried by userland then. This is safe at least on x86 and powerpc (the two archs

[PATCH 0/7] userfault21 update

2015-06-15 Thread Andrea Arcangeli
This is an incremental update to the userfaultfd code in -mm. This fixes two bugs that could cause some malfunction (but nothing that could cause memory corruption or kernel crashes of any sort, neither in kernel nor userland). This also introduces some enhancement: gdb now runs fine, signals

Re: [RFC PATCH 10/12] mm: add the buddy system interface

2015-06-15 Thread Luck, Tony
On Mon, Jun 15, 2015 at 05:47:27PM +0900, Kamezawa Hiroyuki wrote: > So, there are 3 ideas. > > (1) kernel only from MIRROR / user only from MOVABLE (Tony) > (2) kernel only from MIRROR / user from MOVABLE + MIRROR(ASAP) (AKPM > suggested) > This makes use of the fact MOVABLE memory is

Re: [BUG?] crypto: caam: little/big endianness on ARM vs PPC

2015-06-15 Thread Russell King - ARM Linux
On Mon, Jun 15, 2015 at 06:33:17PM +0200, Jon Nettleton wrote: > Funny enough I tackled this problem over the weekend as well. My > approach was to switch the driver over to use the *_relaxed() io > functions and then special case the bits missing from the various > ARCHs. Basically adding

Re: X86 GIT GCC 5 compilation warning

2015-06-15 Thread Borislav Petkov
On Mon, Jun 15, 2015 at 01:30:11PM +0200, Michael Matz wrote: > This warning is in gas since 2009 (commit d85733c8). In this case > it only happens when the internal type to represent values is 32 > bit, which happens only when binutils is compiled for only non-64bit > architectures, _on_ a

[PATCH v3] selinux: reduce locking overhead in inode_free_security()

2015-06-15 Thread Waiman Long
The inode_free_security() function just took the superblock's isec_lock before checking and trying to remove the inode security struct from the linked list. In many cases, the list was empty and so the lock taking is wasteful as no useful work is done. On multi-socket systems with a large number

[PATCH 1/1 net-next] net: rds: use for_each_sg() for scatterlist parsing

2015-06-15 Thread Fabian Frederick
This patch also renames sg to sglist and aligns function parameters. See Documentation/DMA-API.txt - Part Id for scatterlist details Signed-off-by: Fabian Frederick --- This is untested. net/rds/ib.h | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git

Re: [PATCH V4 1/4] efi: x86: rearrange efi_mem_attributes()

2015-06-15 Thread Matt Fleming
On Fri, 12 Jun, at 06:01:44PM, Jonathan (Zhixiong) Zhang wrote: > From: "Jonathan (Zhixiong) Zhang" > > x86 and ia64 implement efi_mem_attributes() differently. This > function needs to be available for other arch (such as arm64) > as well, such as for the purpose of ACPI/APEI. > > ia64 efi

[PATCH v2 2/6] drivers:hv: Move MMIO range picking from hyper_fb.mod to hv_vmbus.mod

2015-06-15 Thread jakeo
From: Jake Oshins Currently, hv_vmbus finds the ranges of memory-mapped I/O space that are designated for paravirtual (and fully virtual) devices by the virtual firmware (BIOS or UEFI) and exports the answer. The hyperv_fb video driver then takes that information and uses it to claim a range of

[PATCH v2 3/6] arch:x86:hv: Add mechanism for Hyper-V paravirt drivers to hook msi message creation

2015-06-15 Thread jakeo
From: Jake Oshins This patch, when the kernel is built with CONFIG_HYPERV, exposes functions that would allow a paravirtual PCI front-end driver to hook MSI (message- signaled interrupt) message creation. Signed-off-by: Jake Oshins --- arch/x86/include/asm/mshyperv.h | 2 ++

[PATCH v2 1/6] drivers:hv: Modify vmbus to search for all MMIO ranges available

2015-06-15 Thread jakeo
From: Jake Oshins Before this patch, hv_vmbus would search the ACPI namespace above its device looking for a _CRS (current resources) object, and hunt through the list of resources in there looking for one that described memory- mapped I/O space above the 4GB line. It then exported the result

[PATCH v2 6/6] drivers:pci:hv: New paravirtual PCI front-end for Hyper-V VMs

2015-06-15 Thread jakeo
From: Jake Oshins This patch supplies a new driver, hv_pcifront, which exposes new root PCI buses. When a Hyper-V VM running Linux is offered a paravirtual PCI bus in order to expose a device passed through on that bus, this drver registers a new bus with the PCI driver. This new bus is bus

[PATCH v2 0/6] hv: Front-end driver for PCIe Pass-through on Hyper-V

2015-06-15 Thread jakeo
From: Jake Oshins This patch does some slight refactoring on the hv_vmbus driver and its dependents and then introduces a new paravirtual front-end driver for PCI which supports PCI Express devices passed through to a Linux guest running in a Hyper-V VM. To support this front-end, several new

[PATCH v2 4/6] drivers:hv: Export a function that maps Linux proc num onto Hyper-V proc num

2015-06-15 Thread jakeo
From: Jake Oshins This patch exports a function which maps Linux processor number onto Hyper-V virtual processor number. This is necessary in order to map message- signaled interrupts (MSIs) into a VM, as the hypervisor needs to know the right target VP. Signed-off-by: Jake Oshins ---

[PATCH v2 5/6] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-06-15 Thread jakeo
From: Jake Oshins This patch updates the list of VMBus channel GUIDs, defining the one for PCI Express pass-through. Signed-off-by: Jake Oshins --- include/linux/hyperv.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index

Re: [PATCH 05/10] x86/intel_rdt: Add support for Cache Allocation detection

2015-06-15 Thread Vikas Shivappa
On Mon, 15 Jun 2015, Peter Zijlstra wrote: On Fri, Jun 12, 2015 at 11:17:12AM -0700, Vikas Shivappa wrote: + /* Additional Intel-defined flags: level 0x0010 */ + if (c->cpuid_level >= 0x0010) { + u32 eax, ebx, ecx, edx; + +

Re: [PATCH] net: fix search limit handling in skb_find_text()

2015-06-15 Thread Pablo Neira Ayuso
Cc'ing Thomas. On Mon, Jun 15, 2015 at 12:11:58PM +0300, Roman I Khimov wrote: > Suppose that we're trying to use an xt_string netfilter module to match a > string in a specially crafted packet that has "a nice string" starting at > offset 28. > > It could be done in iptables like this: > > -A

Re: [PATCH] ethernet/sfc: mark state UNINIT after unregister

2015-06-15 Thread Jarod Wilson
On 6/15/2015 9:49 AM, Edward Cree wrote: On 12/06/15 19:51, Jarod Wilson wrote: Without this change, modprobe -r sfc hits the BUG_ON() in efx_pci_remove_main(). Best as I can tell, this was just an oversight, efx->state gets set to STATE_UNINIT in the error path of efx_register_netdev() just

Re: [PATCH v2] selinux: reduce locking overhead in inode_free_security()

2015-06-15 Thread Waiman Long
On 06/13/2015 03:35 AM, Yury wrote: On 13.06.2015 01:35, Waiman Long wrote: On 06/12/2015 08:31 AM, Stephen Smalley wrote: On 06/12/2015 02:26 AM, Raghavendra K T wrote: On 06/12/2015 03:01 AM, Waiman Long wrote: The inode_free_security() function just took the superblock's isec_lock

Re: [Semaphore API] down_interruptible_timeout

2015-06-15 Thread Thomas Gleixner
On Mon, 15 Jun 2015, Mason wrote: > A) process-context kernel thread fills a FIFO and calls down(_empty); > B) ISR handles the FIFO-empty interrupt with up(_empty); > > However, in case something goes wrong and the interrupt never fires, > I don't want the process to be stuck in an

Re: [PATCH 02/10] x86/intel_cqm: Modify hot cpu notification handling

2015-06-15 Thread Vikas Shivappa
On Mon, 15 Jun 2015, Peter Zijlstra wrote: On Fri, Jun 12, 2015 at 11:17:09AM -0700, Vikas Shivappa wrote: static inline void cqm_pick_event_reader(int cpu) { - int phys_id = topology_physical_package_id(cpu); - int i; + struct cpumask tmp; No cpumasks on stacks. ok

Re: [PATCH 01/10] cpumask: Introduce cpumask_any_online_but

2015-06-15 Thread Vikas Shivappa
On Mon, 15 Jun 2015, Peter Zijlstra wrote: On Fri, Jun 12, 2015 at 11:17:08AM -0700, Vikas Shivappa wrote: There is currently no cpumask helper function to pick a "random" cpu from a mask which is also online. cpumask_any_online_but() does that which is similar to cpumask_any_but() but also

RE: Build error -in -next due to 'Bluetooth: hci_uart: Support operational speed during setup'

2015-06-15 Thread Ilya Faenson
Hi Marcel, -Original Message- From: Marcel Holtmann [mailto:mar...@holtmann.org] Sent: Monday, June 15, 2015 10:43 AM To: Ilya Faenson Cc: Guenter Roeck; linux-kernel@vger.kernel.org; Frederic Danis; BlueZ development; linux-ser...@vger.kernel.org Subject: Re: Build error -in -next due

Re: [PATCH 2/2] drivercore: Fix unregistration path of platform devices

2015-06-15 Thread Wolfram Sang
On Sun, Jun 07, 2015 at 03:20:11PM +0100, Grant Likely wrote: > The unregister path of platform_device is broken. On registration, it > will register all resources with either a parent already set, or > type==IORESOURCE_{IO,MEM}. However, on unregister it will release > everything with

Re: [PATCH 1/2] of/unittest: Show broken behaviour in the platform bus

2015-06-15 Thread Wolfram Sang
On Sun, Jun 07, 2015 at 03:20:10PM +0100, Grant Likely wrote: > Add a single resource to the test bus device to exercise the platform > bus code a little more. This isn't strictly a devicetree test, but it is > a corner case that the devicetree runs into. Until we've got platform > device

Re: [v4 08/16] KVM: kvm-vfio: User API for IRQ forwarding

2015-06-15 Thread Alex Williamson
On Mon, 2015-06-15 at 18:17 +0200, Eric Auger wrote: > Hi Alex, all, > On 06/12/2015 09:03 PM, Alex Williamson wrote: > > On Fri, 2015-06-12 at 21:48 +0300, Avi Kivity wrote: > >> On 06/12/2015 06:41 PM, Alex Williamson wrote: > >>> On Fri, 2015-06-12 at 00:23 +, Wu, Feng wrote: > >

[PATCH 0/2] Consolidate redundant register/stack access code

2015-06-15 Thread David Long
From: "David A. Long" Move duplicate and functionally equivalent code for accessing registers and stack (CONFIG_HAVE_REGS_AND_STACK_ACCESS_API) from arch subdirs into common kernel files. Note: Help regression testing s390, hexagon, and sh would be appreciated. Powerpc builds but I have

[PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-15 Thread David Long
From: "David A. Long" The pt_regs_offset structure is used for HAVE_REGS_AND_STACK_ACCESS_API feature and has identical definitions in four different arch ptrace.h include files. It seems unlikely that definition would ever need to be changed regardless of architecture so lets move it into

[PATCH 2/2] Consolidate redundant register/stack access code

2015-06-15 Thread David Long
From: "David A. Long" Several architectures have identical or functionally equivalent code implementing parts of the HAVE_REGS_AND_STACK_ACCESS_API feature. Move that code out of the architecture directories. Signed-off-by: David A. Long --- arch/arm/include/asm/ptrace.h | 6 ---

[PATCH linux-next 0/2] mfd: flexcom: add a driver for Flexcom

2015-06-15 Thread Cyrille Pitchen
ChangeLog v1: This series of patches a support to the Atmel Flexcom, a wrapper which integrates an USART, a SPI controller and a TWI controller. Only one peripheral can be used at a time. The active function is selected though the Flexcom Mode Register. Cyrille Pitchen (2): mfd: devicetree:

[PATCH linux-next 2/2] mfd: flexcom: add a driver for Atmel Flexible Serial Communication Unit

2015-06-15 Thread Cyrille Pitchen
This driver supports the new Atmel Flexcom. The Flexcom is a wrapper which integrates one SPI controller, one I2C controller and one USART. Only one function can be enabled at a time. This driver selects the function once for all, when the Flexcom is probed, according to the value of the new

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