Re: [regression] Re: Linux 4.3-rc1

2015-09-23 Thread Shuah Khan
On 09/23/2015 02:56 AM, Daniel Vetter wrote: > Another regression for Jairo to track. > -Daniel Saw the same problem in 4.3-rc2 as well. Not a one time deal and easily reproducible. thanks, -- Shuah > > On Tue, Sep 15, 2015 at 03:26:13AM +0200, Sedat Dilek wrote: >> Hi, >> >> I have reported the

Re: [PATCH 4/4] sound/core/seq: make prioq_match return bool

2015-09-23 Thread Yaowei Bai
On Tue, Sep 22, 2015 at 03:28:12PM +0200, Johannes Berg wrote: > On Tue, 2015-09-22 at 21:22 +0800, Yaowei Bai wrote: > > On Mon, Sep 21, 2015 at 04:11:00PM +0200, Johannes Berg wrote: > > > > > > > -static inline int prioq_match(struct snd_seq_event_cell *cell, > > > > +static inline bool prioq_m

Re: [PATCH v5 2/2] iio: mcp4531: Driver for Microchip digital potentiometers

2015-09-23 Thread Lars-Peter Clausen
On 09/23/2015 01:57 PM, Peter Rosin wrote: [...] Looks pretty good. One thing I'm concerned about is that this array > +static const struct mcp4531_cfg mcp4531_cfg[] = { > + { /* MCP4531-502 */ .wipers = 1, .max_pos = 128, .kohms = 5, }, > + { /* MCP4531-103 */ .wipers = 1, .max_pos =

Re: [PATCH 1/3] iio:adc: add iio driver for Palmas (twl6035/7) gpadc

2015-09-23 Thread Peter Meerwald
> This driver code was found as: > > https://android.googlesource.com/kernel/tegra/+/aaabb2e045f31e5a970109ffdaae900dd403d17e/drivers/staging/iio/adc > > Fixed various compilation issues and test this driver on omap5 evm. several minor comments below probably the mfd part should be split out in

Re: [PATCH v11 3/4] add FPGA manager core

2015-09-23 Thread Pavel Machek
Hi! > > +++ b/drivers/fpga/fpga-mgr.c > > @@ -0,0 +1,382 @@ > [..] > > +int fpga_mgr_buf_load(struct fpga_manager *mgr, u32 flags, const char *buf, > > + size_t count) > > +{ > > + struct device *dev = &mgr->dev; > > + int ret; > > + > > + if (!mgr) > > + return -EN

Re: [linux-next] khugepaged inconsistent lock state

2015-09-23 Thread Kirill A. Shutemov
On Mon, Sep 21, 2015 at 04:57:05PM -0700, Hugh Dickins wrote: > On Mon, 21 Sep 2015, Kirill A. Shutemov wrote: > > On Mon, Sep 21, 2015 at 01:46:00PM +0900, Sergey Senozhatsky wrote: > > > Hi, > > > > > > 4.3.0-rc1-next-20150918 > > > > > > [18344.236625] = > > > [

Re: [RFC 0/3] sched/idle: run-time support for setting idle polling

2015-09-23 Thread Luiz Capitulino
On Wed, 23 Sep 2015 03:17:59 +0200 "Rafael J. Wysocki" wrote: > On Tuesday, September 22, 2015 04:34:19 PM Luiz Capitulino wrote: > > Hi, > > Hi, > > Please always CC patches related to power management to > linux...@vger.kernel.org. > > Also CCing Len Brown who's the maintainer of the intel_

Re: [RFC v7 25/41] richacl: Isolate the owner and group classes

2015-09-23 Thread J. Bruce Fields
On Wed, Sep 23, 2015 at 03:11:45PM +0200, Andreas Gruenbacher wrote: > 2015-09-22 18:06 GMT+02:00 J. Bruce Fields : > > On Sat, Sep 05, 2015 at 12:27:20PM +0200, Andreas Gruenbacher wrote: > >> When applying the file masks to an acl, we need to ensure that no > >> process gets more permissions than

Re: [PATCH v2 2/3] usb: gadget: f_midi: free usb request when done

2015-09-23 Thread Sergei Shtylyov
Hello. On 9/23/2015 3:01 PM, Felipe F. Tonello wrote: req->actual == req->length means that there is no data left to enqueue, so free the request. Signed-off-by: Felipe F. Tonello --- Changes in v2: * Re enqueue not fully completed requests, instead of read ALSA buffers. drivers/usb/gad

Re: [RFC v7 25/41] richacl: Isolate the owner and group classes

2015-09-23 Thread Andreas Gruenbacher
2015-09-22 18:06 GMT+02:00 J. Bruce Fields : > On Sat, Sep 05, 2015 at 12:27:20PM +0200, Andreas Gruenbacher wrote: >> When applying the file masks to an acl, we need to ensure that no >> process gets more permissions than allowed by its file mask. >> >> This may require inserting an owner@ deny ac

[RFC PATCH 2/2] usb: phy: Add platform driver support for ULPI PHYs

2015-09-23 Thread Subbaraya Sundeep Bhatta
Based on board design USB controller needs explicit software access to ULPI PHY for controlling VBUS. This patch adds platform driver support for generic ULPI PHYs and provides a USB2 PHY device to controllers. Signed-off-by: Subbaraya Sundeep Bhatta --- drivers/usb/phy/Kconfig | 1

[PATCH] serial: 8250: Add missing module license for 8250_base.ko

2015-09-23 Thread Peter Hurley
From: Jonathan McDowell The split of the 8250 driver into a 8250_base/8250.ko resulted in a lack of a license for the 8250_base.ko module. This caused the module to fail to load and the kernel to be tainted. Add the appropriate MODULE_LICENSE to 8250_port.c, which is always compiled into 8250_bas

Re: [PATCH 2/2] selftests/userfaultfd: improve syscall number definition

2015-09-23 Thread Andre Przywara
Hi Michael, On 23/09/15 10:55, Michael Ellerman wrote: > On Tue, 2015-09-22 at 18:15 +0100, Andre Przywara wrote: >> On 22/09/15 15:06, Andrea Arcangeli wrote: >>> Andre, could you see if linux-next (which includes -mm) works for you >>> by just running "cd tools/testing/selftests/vm/ && make"? If

Re: Multiple potential races on vma->vm_flags

2015-09-23 Thread Andrey Konovalov
On Wed, Sep 23, 2015 at 3:39 AM, Hugh Dickins wrote: > This is totally untested, and one of you may quickly prove me wrong; > but I went in to fix your "Bad page state (mlocked)" by holding pte > lock across the down_read_trylock of mmap_sem in try_to_unmap_one(), > then couldn't see why it would

[RFC PATCH 1/2] usb: doc: Add bindings for ULPI platform driver

2015-09-23 Thread Subbaraya Sundeep Bhatta
This patch adds binding doc info for generic ULPI PHYs platform driver. Signed-off-by: Subbaraya Sundeep Bhatta --- .../devicetree/bindings/usb/ulpi-platform-phy.txt | 34 1 files changed, 34 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindi

Re: [PATCH v2 1/2] btrfs: change num_items type from u64 to unsigned int

2015-09-23 Thread David Sterba
On Tue, Sep 22, 2015 at 08:59:15PM +, Alexandru Moise wrote: > The value of num_items that start_transaction() ultimately > always takes is a small one, so a 64 bit integer is overkill. > > Also change num_items for btrfs_start_transaction() and > btrfs_start_transaction_lflush() as well. > >

[PATCH v2] storvsc: get rid of bounce buffer

2015-09-23 Thread Vitaly Kuznetsov
Storvsc driver needs to ensure there are no 'holes' in the presented sg list (all segments in the middle of the list need to be of PAGE_SIZE). When a hole is detected storvsc driver creates a 'bounce sgl' without holes and copies data over with copy_{to,from}_bounce_buffer() functions. Setting virt

Re: [PATCH v2 2/2] btrfs: declare rsv_count as unsigned int instead of int

2015-09-23 Thread David Sterba
On Tue, Sep 22, 2015 at 09:00:07PM +, Alexandru Moise wrote: > rsv_count ultimately gets passed to start_transaction() which > now takes an unsigned int as its num_items parameter. > The value of rsv_count should always be positive so declare it > as being unsigned. > > Signed-off-by: Alexandr

Re: [PATCH v1 8/8] pwm-pca9685: enable ACPI device found on Galileo Gen2

2015-09-23 Thread Andy Shevchenko
On Wed, 2015-09-23 at 14:48 +0200, Thierry Reding wrote: > > > > > On Wed, Sep 23, 2015 at 11:41:26AM +0300, Andy Shevchenko wrote: > > On Tue, 2015-09-22 at 16:37 +0200, Thierry Reding wrote: > > > On Tue, Sep 22, 2015 at 01:10:19PM +0300, Andy Shevchenko wrote: > > > > > > > > >

RE: [PATCH v3 3/4] iio: bmc150: Split the driver into core and i2c

2015-09-23 Thread Tirdea, Irina
> -Original Message- > From: Markus Pargmann [mailto:m...@pengutronix.de] > Sent: 21 September, 2015 13:55 > To: Jonathan Cameron > Cc: Srinivas Pandruvada; Tirdea, Irina; Lars-Peter Clausen; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > ker...@pengutronix.de; Markus Pargm

[PATCH] lockd: create NSM handles per net namespace

2015-09-23 Thread Andrey Ryabinin
Commit cb7323fffa85 ("lockd: create and use per-net NSM RPC clients on MON/UNMON requests") introduced per-net NSM RPC clients. Unfortunately this doesn't make any sense without per-net nsm_handle. E.g. the following scenario could happen Two hosts (X and Y) in different namespaces (A and B) shar

Re: [PATCH] KVM: x86: fix bogus warning about reserved bits

2015-09-23 Thread Paolo Bonzini
On 23/09/2015 13:07, Borislav Petkov wrote: >> > + static bool first; >> > >> >best = kvm_find_cpuid_entry(vcpu, 0, 0); >> > + if (first && best) { >> > + printk("cpuid(0).ebx = %x\n", best->ebx); >> > + first = false; >> > + } else if (first) >> > + printk_rat

[PATCH 3/3] ARM: dts: omap5-uevm: enable iio gpadc for Palmas

2015-09-23 Thread H. Nikolaus Schaller
Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap5-uevm.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch/arm/boot/dts/omap5-uevm.dts index 3b16e8f..0d4c8ff 100644 --- a/arch/arm/boot/dts/omap5-uevm.dts +++ b/arch/ar

[PATCH 1/3] iio:adc: add iio driver for Palmas (twl6035/7) gpadc

2015-09-23 Thread H. Nikolaus Schaller
This driver code was found as: https://android.googlesource.com/kernel/tegra/+/aaabb2e045f31e5a970109ffdaae900dd403d17e/drivers/staging/iio/adc Fixed various compilation issues and test this driver on omap5 evm. Signed-off-by: Pradeep Goudagunta Signed-off-by: H. Nikolaus Schaller Signed-off-b

Re: [PATCH 2/2] ext4: implement cgroup writeback support

2015-09-23 Thread Artem Bityutskiy
On Tue, 2015-07-21 at 23:56 -0400, Theodore Ts'o wrote: > > v2: Updated for MS_CGROUPWB -> SB_I_CGROUPWB. > > > > Signed-off-by: Tejun Heo > > Cc: "Theodore Ts'o" > > Cc: Andreas Dilger > > Cc: linux-e...@vger.kernel.org > > Thanks, applied. Hi, this patch introduces a regression - a major on

[PATCH 2/3] iio:adc:palmas: add DT support

2015-09-23 Thread H. Nikolaus Schaller
From: Marek Belisko Code was found at: https://android.googlesource.com/kernel/tegra/+/a90856a6626d502d42c6e7abccbdf9d730b36270%5E%21/#F1 Signed-off-by: Laxman Dewangan [Fixed minor typos + add channels list to documentation] Signed-off-by: Marek Belisko --- .../devicetree/bindings/iio/adc/pal

[PATCH 0/3] Add Palmas iio gpadc

2015-09-23 Thread H. Nikolaus Schaller
Add iio driver for the TI Palmas (twl6035, 6037) including device tree bindings. It enables the gpadc for the OMAP5 uevm. This patch series is based on original code taken from Android Tegra kernels: (https://android.googlesource.com/kernel/tegra/+/aaabb2e045f31e5a970109ffdaae900dd403d17e/drivers/

Re: [PATCH v1 8/8] pwm-pca9685: enable ACPI device found on Galileo Gen2

2015-09-23 Thread Thierry Reding
On Wed, Sep 23, 2015 at 11:41:26AM +0300, Andy Shevchenko wrote: > On Tue, 2015-09-22 at 16:37 +0200, Thierry Reding wrote: > > On Tue, Sep 22, 2015 at 01:10:19PM +0300, Andy Shevchenko wrote: > > > > --- a/drivers/pwm/pwm-pca9685.c > > > +++ b/drivers/pwm/pwm-pca9685.c > > > @@ -26,6 +26,8 @@ > >

RE: [PATCH v3 1/4] iio: bmc150: Use i2c regmap

2015-09-23 Thread Tirdea, Irina
> -Original Message- > From: Markus Pargmann [mailto:m...@pengutronix.de] > Sent: 21 September, 2015 13:55 > To: Jonathan Cameron > Cc: Srinivas Pandruvada; Tirdea, Irina; Lars-Peter Clausen; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > ker...@pengutronix.de; Markus Pargm

RE: [PATCH v3 2/4] iio: bcm150: Remove i2c_client from private data

2015-09-23 Thread Tirdea, Irina
> -Original Message- > From: Markus Pargmann [mailto:m...@pengutronix.de] > Sent: 21 September, 2015 13:55 > To: Jonathan Cameron > Cc: Srinivas Pandruvada; Tirdea, Irina; Lars-Peter Clausen; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > ker...@pengutronix.de; Markus Pargm

RE: [PATCH v3 0/4] iio: bmc150 regmap and SPI

2015-09-23 Thread Tirdea, Irina
> -Original Message- > From: Markus Pargmann [mailto:m...@pengutronix.de] > Sent: 21 September, 2015 13:55 > To: Jonathan Cameron > Cc: Srinivas Pandruvada; Tirdea, Irina; Lars-Peter Clausen; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > ker...@pengutronix.de; Markus Pargm

RE: [PATCH v2 0/4] iio: bmc150 regmap and SPI

2015-09-23 Thread Tirdea, Irina
> -Original Message- > From: Markus Pargmann [mailto:m...@pengutronix.de] > Sent: 16 September, 2015 13:13 > To: Tirdea, Irina > Cc: Jonathan Cameron; Srinivas Pandruvada; Lars-Peter Clausen; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > ker...@pengutronix.de > Subject: Re

Re: [PATCH 1/3] mac80211: Deinline drv_switch_vif_chanctx()

2015-09-23 Thread Johannes Berg
On Wed, 2015-09-23 at 14:18 +0200, Denys Vlasenko wrote: > With this .config: http://busybox.net/~vda/kernel_config_ALLYES_Os, > after deinlining the function size is 821 bytes and there are > 2 callsites, reducing code size by about 800 bytes. > Thanks, all applied. johannes -- To unsubscribe fr

Re: [Xen-devel] [PATCH RFC] xen: if on Xen, "flatten" the scheduling domain hierarchy

2015-09-23 Thread Boris Ostrovsky
On 09/23/2015 03:35 AM, Juergen Gross wrote: Depends on the hardware. On some AMD processors one socket covers multiple NUMA nodes. This is the critical case. set_sched_topology() will be called on those machines possibly multiple times when bringing up additional cpus. I'm asking because tryi

[PATCH 1/3] mac80211: Deinline drv_switch_vif_chanctx()

2015-09-23 Thread Denys Vlasenko
With this .config: http://busybox.net/~vda/kernel_config_ALLYES_Os, after deinlining the function size is 821 bytes and there are 2 callsites, reducing code size by about 800 bytes. Signed-off-by: Denys Vlasenko CC: Johannes Berg CC: John Linville CC: Michal Kazior CC: linux-wirel...@vger.kern

[PATCH 3/3] mac80211: Deinline drv_get/set/reset_tsf()

2015-09-23 Thread Denys Vlasenko
With this .config: http://busybox.net/~vda/kernel_config_ALLYES_Os, after deinlining these functions have sizes and callsite counts as follows: drv_get_tsf: 634 bytes, 6 calls drv_set_tsf: 626 bytes, 2 calls drv_reset_tsf: 617 bytes, 2 calls Total size reduction is about 4.2 kbytes. Signed-off-b

[PATCH 2/3] mac80211: Deinline drv_ampdu_action()

2015-09-23 Thread Denys Vlasenko
With this .config: http://busybox.net/~vda/kernel_config_ALLYES_Os, after deinlining the function size is 755 bytes and there are 6 callsites. Total size reduction is about 3.3 kbytes. Signed-off-by: Denys Vlasenko CC: Johannes Berg CC: John Linville CC: Michal Kazior CC: linux-wirel...@vger.

Re: [PATCH] ARM: ls1021a: Add dma-coherent property for eTSEC nodes

2015-09-23 Thread Shawn Guo
On Mon, Sep 14, 2015 at 02:45:28PM +0800, Alison Wang wrote: > This patch adds dma-coherent property for eTSEC nodes, so > coherent DMA operations are supported. > > Signed-off-by: Alison Wang Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH 6/6] ARM: dts: set up trigger type for edt-ft5x06 interrupts

2015-09-23 Thread Shawn Guo
On Sat, Sep 12, 2015 at 10:45:51AM -0700, Dmitry Torokhov wrote: > Now that the driver respects IRQ trigger settings from device tree, let's > fix them up in individual DTSes (note that the driver is still compatible > with older DTSes). > > Signed-off-by: Dmitry Torokhov > --- ... > arch/arm/bo

EMPLOYEE Secret Shopping #: MS-284-GS

2015-09-23 Thread Mystery Shopper
Congratulation!!! You have been selected to participate in a paid Customer Research Program known as “Secret Shopping”. As one of the people selected to represent our firm, you will be acting as a Customer Service Evaluator of selected companies in your area. Get back for more Information. John

Re: [PATCH] hid-core: Avoid uninitialized buffer access

2015-09-23 Thread Jiri Kosina
On Fri, 18 Sep 2015, Darren Hart wrote: > From: Richard Purdie > > hid_connect adds various strings to the buffer but they're all > conditional. You can find circumstances where nothing would be written > to it but the kernel will still print the supposedly empty buffer with > printk. This leads

Re: How to ensure that different peripherals getting different IOVA address in kernel?

2015-09-23 Thread Robin Murphy
On 23/09/15 02:55, chenfeng wrote: Hi all, In IOMMU architecture , how to make two different peripherals share the same page table ? In other words , is there a mechanism or structure to make two peripherals get completely different address. eg: peri-A、peri-B and peri-C share the same iova

Re: 答复: Question about the sparse memory section size

2015-09-23 Thread Dave P Martin
On Wed, Sep 23, 2015 at 02:16:45AM +0100, Qijiwen wrote: > In fact the free_unused_memmap function is not invoked when > CONFIG_SPARSEMEM_VMEMMAP is enabled. > The reason is that the memmap region is mapped in unit of 2MB, not in unit of > 4KB. > > Below is the source code in arch/arm64/mm/init

Re: [PATCH 1/4] crypto: talitos: dma_map_sg can handle chained SG

2015-09-23 Thread Christophe Leroy
Le 23/09/2015 13:55, LABBE Corentin a écrit : The talitos driver use two dma_map_sg path according to SG are chained or not. Since dma_map_sg can handle both case, clean the code with all references to sg chained. Thus removing talitos_map_sg, talitos_unmap_sg_chain and sg_count functions. Sh

Re: [PATCH] mm/oom_kill.c: don't kill TASK_UNINTERRUPTIBLE tasks

2015-09-23 Thread Kyle Walker
On Tue, Sep 22, 2015 at 7:32 PM, David Rientjes wrote: > > I struggle to understand how the approach of randomly continuing to kill > more and more processes in the hope that it slows down usage of memory > reserves or that we get lucky is better. Thank you to one and all for the feedback. I agr

[PATCH v2 2/3] usb: gadget: f_midi: free usb request when done

2015-09-23 Thread Felipe F. Tonello
req->actual == req->length means that there is no data left to enqueue, so free the request. Signed-off-by: Felipe F. Tonello --- Changes in v2: * Re enqueue not fully completed requests, instead of read ALSA buffers. drivers/usb/gadget/function/f_midi.c | 10 ++ 1 file changed, 6 ins

[PATCH 2/2] kprobe: Use _do_fork() in samples to make them work again

2015-09-23 Thread Petr Mladek
The commit 3033f14ab78c32687 ("clone: support passing tls argument via C rather than pt_regs magic") introduced _do_fork() that allowed to pass @tls parameter. The old do_fork() is defined only for architectures that are not ready to use this way and do not define HAVE_COPY_THREAD_TLS. Let's use

[PATCH 0/2] clone/kprobe: Do not use do_fork() when not defined

2015-09-23 Thread Petr Mladek
The commit 3033f14ab78c32687 ("clone: support passing tls argument via C rather than pt_regs magic") introduced _do_fork() that allowed to pass @tls parameter. The old do_fork() is defined only for architectures that are not ready to use this way and do not define HAVE_COPY_THREAD_TLS. 1st patch

[PATCH 1/2] clone: Declare do_fork() only when available

2015-09-23 Thread Petr Mladek
The commit 3033f14ab78c32687 ("clone: support passing tls argument via C rather than pt_regs magic") introduced _do_fork() that allowed to pass @tls parameter. The old do_fork() is defined only for architectures that are not ready to use this way and do not define HAVE_COPY_THREAD_TLS. But the fun

[PATCH v5 0/2] Driver for Microchip digital potentiometers

2015-09-23 Thread Peter Rosin
From: Peter Rosin This is the fifth attempt for a driver for these chips. Thanks for review comments from Greg Kroah-Hartman, Crt Mori, Daniel Baluta, Lars-Peter Clauson, Andreas Dannenberg, Peter Meerwald and Jonathan Cameron. I think and hope I got it all sorted. Changes since v4: - Less conv

[PATCH v5 2/2] iio: mcp4531: Driver for Microchip digital potentiometers

2015-09-23 Thread Peter Rosin
From: Peter Rosin Add support for Microchip digital potentiometers and rheostats MCP4531, MCP4532, MCP4551, MCP4552 MCP4631, MCP4632, MCP4651, MCP4652 DEVICE Wipers Steps Resistor Opts (kOhm) i2c address MCP4531 1 1295, 10, 50, 100010111x MCP4532 1

[PATCH v5 1/2] iio: resistance: Document that resistance can be output

2015-09-23 Thread Peter Rosin
From: Peter Rosin Signed-off-by: Peter Rosin --- Documentation/ABI/testing/sysfs-bus-iio |2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index 9398484196c4..2eea468f704d 100644 --- a/Documentation/ABI/te

[PATCH v2 1/3] usb: chipidea: core: fix when building without CONFIG_PM support

2015-09-23 Thread Felipe F. Tonello
If CONFIG_PM or CONFIG_PM_SLEEP is not set, driver will not compile properly. Signed-off-by: Felipe F. Tonello --- Changes for v2: * removed unnecessary #ifdef CONFIG_PM_SLEEP. drivers/usb/chipidea/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipi

[PATCH 3/4] crypto: caam: dma_map_sg can handle chained SG

2015-09-23 Thread LABBE Corentin
The caam driver use two dma_map_sg path according to SG are chained or not. Since dma_map_sg can handle both case, clean the code with all references to sg chained. Thus removing dma_map_sg_chained, dma_unmap_sg_chained and __sg_count functions. Signed-off-by: LABBE Corentin --- drivers/crypto/

[PATCH 4/4] crypto: sahara: dma_map_sg can handle chained SG

2015-09-23 Thread LABBE Corentin
The sahara driver use two dma_map_sg path according to SG are chained or not. Since dma_map_sg can handle both case, clean the code with all references to sg chained. Thus removing the sahara_sha_unmap_sg function. Signed-off-by: LABBE Corentin --- drivers/crypto/sahara.c | 66 ++---

[PATCH 2/4] crypto: qce: dma_map_sg can handle chained SG

2015-09-23 Thread LABBE Corentin
The qce driver use two dma_map_sg path according to SG are chained or not. Since dma_map_sg can handle both case, clean the code with all references to sg chained. Thus removing qce_mapsg, qce_unmapsg and qce_countsg functions. Signed-off-by: LABBE Corentin --- drivers/crypto/qce/ablkcipher.c |

[PATCH 1/4] crypto: talitos: dma_map_sg can handle chained SG

2015-09-23 Thread LABBE Corentin
The talitos driver use two dma_map_sg path according to SG are chained or not. Since dma_map_sg can handle both case, clean the code with all references to sg chained. Thus removing talitos_map_sg, talitos_unmap_sg_chain and sg_count functions. Signed-off-by: LABBE Corentin --- drivers/crypto/t

[PATCH] crypto: dma_map_sg can handle chained SG

2015-09-23 Thread LABBE Corentin
Hello Some drivers use two dma_map_sg path according to SG are chained or not. Since dma_map_sg can handle both case, this patch series clean all code with references to sg chained. Note that I could only compile test sahara and caam patch. And none could be tested due to lack oh hardware. Rega

4.3-rc2 on radeon: new backtraces during resume

2015-09-23 Thread Pavel Machek
HI! I suspended T40p by mistake, and I got some lovely backtraces as a result: Any ideas? Pavel [0.00] Initializing cgroup subsys cpu [0.00] Linux version 4.3.0-rc2+ (pavel@hobit) (gcc version 4.9.2 (Debian 4.9.2-

Re: [PATCH 02/11] x86/mm/hotplug: Remove pgd_list use from the memory hotplug code

2015-09-23 Thread Oleg Nesterov
On 09/22, Linus Torvalds wrote: > > However, this now becomes a pattern for the series, and that just makes me > think > > "Why is this not a 'for_each_mm()' pattern helper?" And we already have other users. And note that oom_kill_process() does _not_ follow this pattern and that is why it is

Re: [PATCH 2/3] usb: gadget: f_midi: free usb request when done

2015-09-23 Thread Felipe Tonello
Hi Peter, On Wed, Sep 23, 2015 at 4:10 AM, Peter Chen wrote: > On Tue, Sep 22, 2015 at 07:59:09PM +0100, Felipe F. Tonello wrote: >> req->actual == req->length means that there is no data left to enqueue, >> so free the request. >> >> Signed-off-by: Felipe F. Tonello >> --- >> drivers/usb/gadge

[PATCH] ethtool: add new emac_regs struct from driver, add new chip types.

2015-09-23 Thread Ivan Mikhaylov
* add new version of emac_regs struct from driver structure perspective and passing size from actual struct size, not from memory area variable which set in dts file. * add three types of network chips for new struct : emac, emac4, emac4sync. * add emac4sync processing in print_emac_regs. * thi

Re: Multiple potential races on vma->vm_flags

2015-09-23 Thread Kirill A. Shutemov
On Tue, Sep 22, 2015 at 06:39:52PM -0700, Hugh Dickins wrote: > On Tue, 22 Sep 2015, Andrey Konovalov wrote: > > On Tue, Sep 22, 2015 at 8:54 PM, Hugh Dickins wrote: > > > On Tue, 22 Sep 2015, Andrey Konovalov wrote: > > >> If anybody comes up with a patch to fix the original issue I easily > > >>

Re: AMD-IOMMU and problem with __init(data)?

2015-09-23 Thread Joerg Roedel
Hey Alexander, On Wed, Sep 23, 2015 at 12:22:24PM +0200, Alexander Holler wrote: > [1.539496] AMD-Vi: Lazy IO/TLB flushing enabled > [1.545741] AHO: count_annotated 25 > [1.549259] AHO: build inventory > [1.552517] AHO: ac 81d400d8 ic (null) ID > 2177560225 deps 0

[PATCH] net/ibm/emac: bump version numbers for correct work with ethtool

2015-09-23 Thread Ivan Mikhaylov
Register dump out work preventing with old ethtool + new driver and new ethtool + old driver. --- drivers/net/ethernet/ibm/emac/core.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/ibm/emac/core.h b/drivers/net/ethernet/ibm/emac/core.h index 2

[PATCH 1/2] Documentation: DMA API: Be more explicit that nents is always the same

2015-09-23 Thread Sakari Ailus
From: Sakari Ailus The nents argument to the DMA API functions operating on scatterlists is always the same. The documentation used different argument names and the matter was not mentioned in Documentation/DMA-API-HOWTO.txt at all. Fix these. Signed-off-by: Sakari Ailus --- Documentation/DMA-

[PATCH 0/2] Improve DMA API sg_sync function documentation

2015-09-23 Thread Sakari Ailus
Hi, This set of two patches improves DMA API function documentation for cache sync functions operating on scatterlists and fixes related comments in the ARM implementation. -- Kind regards, Sakari -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messag

[PATCH 2/2] arm: mm: Fix comments in sg_sync functions

2015-09-23 Thread Sakari Ailus
The comment on the usage of arm_dma_sync_sg_for_cpu(), arm_dma_sync_sg_for_device(), arm_iommu_sync_sg_for_cpu() and arm_iommu_sync_sg_for_device() functions wrongly noted that the "nelems" parameter is the number of sglist entries returned by dma_map_sg(), while this must be the number of entiries

Re: [PATCH 3/3] usb: gadget: f_midi: free request when usb_ep_queue fails

2015-09-23 Thread Felipe Tonello
Hi Peter, On Wed, Sep 23, 2015 at 8:09 AM, Peter Chen wrote: > On Tue, Sep 22, 2015 at 07:59:10PM +0100, Felipe F. Tonello wrote: >> This fix a memory leak that will occur in this case. >> >> Signed-off-by: Felipe F. Tonello >> --- >> drivers/usb/gadget/function/f_midi.c | 4 +++- >> 1 file cha

Re: [PATCH v13 04/23] x86/stacktool: Compile-time stack metadata validation

2015-09-23 Thread Jiri Slaby
On 09/23/2015, 01:38 PM, Jiri Slaby wrote: > On 09/22/2015, 05:46 PM, Josh Poimboeuf wrote: > ... >> --- /dev/null >> +++ b/tools/stacktool/elf.c >> @@ -0,0 +1,403 @@ > ... >> +static struct section *find_section_by_index(struct elf *elf, >> + unsigned int in

Re: [PATCH v13 04/23] x86/stacktool: Compile-time stack metadata validation

2015-09-23 Thread Jiri Slaby
On 09/22/2015, 05:46 PM, Josh Poimboeuf wrote: ... > --- /dev/null > +++ b/tools/stacktool/elf.c > @@ -0,0 +1,403 @@ ... > +static struct section *find_section_by_index(struct elf *elf, > + unsigned int index) > +{ ... > +} > + > +static struct symbol *find_

Re: [PATCH] storvsc: get rid of homegrown copy_{to,from}_bounce_buffer()

2015-09-23 Thread Vitaly Kuznetsov
Christoph Hellwig writes: > On Tue, Sep 22, 2015 at 06:27:50PM +0200, Vitaly Kuznetsov wrote: >> Storvsc driver needs to ensure there are no 'holes' in the presented >> sg list (all segments in the middle of the list need to be of PAGE_SIZE). > > I think it should instead set a virt_boundary. Th

Re: [PATCH] clock: Remove unneeded return from void function

2015-09-23 Thread Thomas Gleixner
On Wed, 23 Sep 2015, Guillaume Gomez wrote: Your subject line is not really matching the subsystem. git log --oneline include/linux/clockchips.h should give you a hint. Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message t

[PATCH 08/22] perf tools: Compile scriptlets to BPF objects when passing '.c' to --event

2015-09-23 Thread Wang Nan
This patch provides infrastructure for passing source files to --event directly using: # perf record --event bpf-file.c command This patch does following works: 1) Allow passing '.c' file to '--event'. parse_events_load_bpf() is expanded to allow caller tell it whether the passed file is s

[PATCH 04/22] perf record: Load eBPF object into kernel

2015-09-23 Thread Wang Nan
This patch utilizes bpf_object__load() provided by libbpf to load all objects into kernel. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Daniel Borkmann Cc: David Ahern Cc: He Kuang Cc: Jiri Olsa Cc: Kaixu Xia Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Paul Mackerra

[PATCH 03/22] perf record, bpf: Create probe points for BPF programs

2015-09-23 Thread Wang Nan
This patch introduces bpf__{un,}probe() functions to enable callers to create kprobe points based on section names a BPF program. It parses the section names in the program and creates corresponding 'struct perf_probe_event' structures. The parse_perf_probe_command() function is used to do the main

[PATCH 15/22] perf tools: Add prologue for BPF programs for fetching arguments

2015-09-23 Thread Wang Nan
From: He Kuang This patch generates prologue for a BPF program which fetch arguments for it. With this patch, the program can have arguments as follow: SEC("lock_page=__lock_page page->flags") int lock_page(struct pt_regs *ctx, int err, unsigned long flags) { return 1; } This patch

[PATCH 21/22] perf test: Test BPF prologue

2015-09-23 Thread Wang Nan
This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is chosen because it is a function pointer, so we don't need to consider inlining and LTP. By extracting file->f_mode, bp

[PATCH 18/22] perf record: Support custom vmlinux path

2015-09-23 Thread Wang Nan
From: He Kuang Make perf-record command support --vmlinux option if BPF_PROLOGUE is on. 'perf record' needs vmlinux as the source of DWARF info to generate prologue for BPF programs, so path of vmlinux should be specified. Short name 'k' has been taken by 'clockid'. This patch skips the short o

[PATCH 01/22] perf ebpf: Add the libbpf glue

2015-09-23 Thread Wang Nan
The 'bpf-loader.[ch]' files are introduced in this patch. Which will be the interface between perf and libbpf. bpf__prepare_load() resides in bpf-loader.c. Following patches will enrich these two files. Signed-off-by: Wang Nan Signed-off-by: Arnaldo Carvalho de Melo Acked-by: Alexei Starovoitov

[PATCH 22/22] perf probe: Fix module probing with shortname

2015-09-23 Thread Wang Nan
After commit 3d39ac538629e4f00a6e1c38d46346f1b8e69505 ("perf machine: No need to have two DSOs lists"), perf probe with module short name doesn't work again. For example: # lsmod | grep e1000e e1000e233472 0 # cat /proc/modules | grep e1000e e1000e 233472 0 - Live 0xa

[PATCH 05/22] perf tools: Collect perf_evsel in BPF object files

2015-09-23 Thread Wang Nan
This patch collects 'struct perf_evsel' for every probing points in BPF object file(s) and fill 'struct evlist'. The previous introduced dummy event now removed. After this patch, following command: # perf record --event filter.o ls Can trace on each probing points defined in filter.o. The core

[PATCH 19/22] perf tools: Allow BPF program attach to uprobe events

2015-09-23 Thread Wang Nan
This patch appends new syntax to BPF object section name to support probing at uprobe event. Now we can use BPF program like this: SEC( "target=/lib64/libc.so.6\n" "libcwrite=__write" ) int libcwrite(void *ctx) { return 1; } Where, in section name of a program, before the main config

[PATCH 06/22] perf tools: Attach eBPF program to perf event

2015-09-23 Thread Wang Nan
This is the final patch which makes basic BPF filter work. After applying this patch, users are allowed to use BPF filter like: # perf record --event ./hello_world.o ls A bpf_fd field is appended to 'struct evsel', and setup during the callback function add_bpf_event() for each 'probe_trace_even

[PATCH 11/22] perf probe: Reset args and nargs for probe_trace_event when failure

2015-09-23 Thread Wang Nan
When failure occures in add_probe_trace_event(), args in probe_trace_event is incomplete. Since information in it may be used in futher, this patch frees the allocated memory and set it to NULL to avoid dangling pointer. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Danie

[PATCH 17/22] perf tools: Use same BPF program if arguments are identical

2015-09-23 Thread Wang Nan
This patch allows creating only one BPF program for different 'probe_trace_event'(tev) generated by one 'perf_probe_event'(pev), if their prologues are identical. This is done by comparing argument list of different tev, and maps type of prologue and tev using a mapping array. This patch utilizes

[PATCH 12/22] bpf tools: Load a program with different instances using preprocessor

2015-09-23 Thread Wang Nan
In this patch, caller of libbpf is able to control the loaded programs by installing a preprocessor callback for a BPF program. With preprocessor, different instances can be created from one BPF program. This patch will be used by perf to generate different prologue for different 'struct probe_tra

[PATCH 16/22] perf tools: Generate prologue for BPF programs

2015-09-23 Thread Wang Nan
This patch generates prologue for each 'struct probe_trace_event' for fetching arguments for BPF programs. After bpf__probe(), iterate over each programs to check whether prologue is required. If none of 'struct perf_probe_event' a program will attach to has at least one argument, simply skip prep

[PATCH 14/22] perf tools: Compile dwarf-regs.c if CONFIG_BPF_PROLOGUE is on

2015-09-23 Thread Wang Nan
regs_query_register_offset() in dwarf-regs.c is required by BPF prologue. Make it be compiled if CONFIG_BPF_PROLOGUE is on to avoid building failure when CONFIG_BPF_PROLOGUE is on but CONFIG_DWARF is not set. Signed-off-by: Wang Nan Signed-off-by: He Kuang Acked-by: Masami Hiramatsu Cc: Alexei

[PATCH 07/22] perf record: Add clang options for compiling BPF scripts

2015-09-23 Thread Wang Nan
Although previous patch allows setting BPF compiler related options in perfconfig, on some ad-hoc situation it still requires passing options through cmdline. This patch introduces 2 options to 'perf record' for this propose: --clang-path and --clang-opt. Signed-off-by: Wang Nan Cc: Alexei Starov

[PATCH 13/22] perf tools: Add BPF_PROLOGUE config options for further patches

2015-09-23 Thread Wang Nan
If both LIBBPF and DWARF are detected, it is possible to create prologue for eBPF programs to help them accessing kernel data. HAVE_BPF_PROLOGUE and CONFIG_BPF_PROLOGUE is added as flags for this feature. PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET indicates an architecture supports converting name

[PATCH 09/22] perf test: Enforce LLVM test for BPF test

2015-09-23 Thread Wang Nan
This patch replaces the original toy BPF program with previous introduced bpf-script-example.c. Dynamically embedded it into 'llvm-src.c'. The newly introduced BPF program attaches a BPF program at 'sys_epoll_pwait()', and collect half samples from it. perf itself never use that syscall, so furthe

[GIT PULL 00/22] perf tools: filtering events using eBPF programs

2015-09-23 Thread Wang Nan
s/perf-ebpf-for-acme-20150923 for you to fetch changes up to 1465cf7b201b8b21c61fa54ffe15094f66e73ab0: perf probe: Fix module probing with shortname (2015-09-23 10:44:58 +) Get rid of dummy events by utilizing new perf probe API.

[PATCH 02/22] perf tools: Enable passing bpf object file to --event

2015-09-23 Thread Wang Nan
By introducing new rules in tools/perf/util/parse-events.[ly], this patch enables 'perf record --event bpf_file.o' to select events by an eBPF object file. It calls parse_events_load_bpf() to load that file, which uses bpf__prepare_load() and finally calls bpf_object__open() for the object files.

[PATCH 20/22] perf test: Enforce LLVM test, add kbuild test

2015-09-23 Thread Wang Nan
This patch enforces existing LLVM test, makes it compile more than one BPF source file. The compiled results are stored, can be used for other testcases. Except the first testcase (named LLVM_TESTCASE_BASE), failures of other test cases are not considered as failure of the whole test. Adds a kbuil

[PATCH 10/22] perf test: Add 'perf test BPF'

2015-09-23 Thread Wang Nan
This patch adds BPF testcase for testing BPF event filtering. By utilizing the result of 'perf test LLVM', this patch compiles the eBPF sample program then test it ability. The BPF script in 'perf test LLVM' collects half of execution of epoll_pwait(). This patch runs 111 times of it, so the resul

[PATCH] clock: Remove unneeded return statement from void

2015-09-23 Thread Guillaume Gomez
Signed-off-by: Guillaume Gomez --- kernel/time/clocksource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 841b72f..5e83c38 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -595,12 +595,

[PATCH] kernel: Remove unneeded return statement from void function

2015-09-23 Thread Guillaume Gomez
Signed-off-by: Guillaume Gomez --- include/linux/timekeeping.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index ba0ae09..8f776cc 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -83,7 +

[no subject]

2015-09-23 Thread Tang, Ni
Be informed that you have been chosen, by Marie Holmes to receive a charity donation of $ 1,000,000.00 US dollars, Contact(morganad...@att.net)-- 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 ht

Re: [regression] [git pull] drm for 4.3

2015-09-23 Thread Lankhorst, Maarten
Hey, Dave Jones schreef op di 22-09-2015 om 21:49 [-0400]: > On Tue, Sep 22, 2015 at 09:15:58AM -0700, Matt Roper wrote: > > On Tue, Sep 22, 2015 at 05:13:55PM +0200, Daniel Vetter wrote: > > > On Tue, Sep 22, 2015 at 08:00:17AM -0700, Jesse Barnes wrote: > > > > Cc'ing Maarten and Matt; I'm gu

<    1   2   3   4   5   6   7   8   >