Re: [PATCH v1 1/1] ipv4: Prevent malformed UFO fragments in ip_append_page

2016-06-14 Thread David Miller
From: Steven Caron Date: Mon, 13 Jun 2016 14:01:19 + > As the ip fragment offset field counts 8-byte chunks, non-final ip > fragments must be multiples of 8 bytes of payload. Depending on the > mtu and ip option sizes, ip_append_page wasn't respecting this, >

Re: [PATCH v1 1/1] ipv4: Prevent malformed UFO fragments in ip_append_page

2016-06-14 Thread David Miller
From: Steven Caron Date: Mon, 13 Jun 2016 14:01:19 + > As the ip fragment offset field counts 8-byte chunks, non-final ip > fragments must be multiples of 8 bytes of payload. Depending on the > mtu and ip option sizes, ip_append_page wasn't respecting this, > notably when running NFS under

[PATCH v2 2/3] serial: 8250_dma: Export serial8250_rx_dma_flush()

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" Export serial8250_rx_dma_flush() for use by SOC UART drivers. Signed-off-by: Chuah, Kim Tatt --- drivers/tty/serial/8250/8250_dma.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 1/3] dmaengine: hsu: Export hsu_dma_get_status()

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" To allow other code to safely read DMA Channel Status Register (where the register attribute for Channel Error, Descriptor Time Out & Descriptor Done fields are read-clear), export hsu_dma_get_status(). hsu_dma_irq() is renamed to

[PATCH v2 2/3] serial: 8250_dma: Export serial8250_rx_dma_flush()

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" Export serial8250_rx_dma_flush() for use by SOC UART drivers. Signed-off-by: Chuah, Kim Tatt --- drivers/tty/serial/8250/8250_dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c index

[PATCH v2 1/3] dmaengine: hsu: Export hsu_dma_get_status()

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" To allow other code to safely read DMA Channel Status Register (where the register attribute for Channel Error, Descriptor Time Out & Descriptor Done fields are read-clear), export hsu_dma_get_status(). hsu_dma_irq() is renamed to hsu_dma_do_irq() and requires Status

[PATCH v2 3/3] serial: 8250_mid: Read RX buffer on RX DMA timeout for DNV

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" In DNV, when RX DMA is used and number of bytes received is less than transfer size, only RX DMA timeout interrupt is sent. When this happens, read the RX buffer. Signed-off-by: Chuah, Kim Tatt ---

[PATCH v2 0/3] Fix DNV HSUART RX DMA timeout interrupt issue

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" These patches fix a DNV HSUART DMA issue with timeout interrupts, where RX data is stuck in buffer when RX DMA is used and the number of received bytes is less than 4096. These patches have been tested on Intel Denverton platform. Changes from

[PATCH v2 3/3] serial: 8250_mid: Read RX buffer on RX DMA timeout for DNV

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" In DNV, when RX DMA is used and number of bytes received is less than transfer size, only RX DMA timeout interrupt is sent. When this happens, read the RX buffer. Signed-off-by: Chuah, Kim Tatt --- drivers/tty/serial/8250/8250_mid.c | 6 -- 1 file changed, 4

[PATCH v2 0/3] Fix DNV HSUART RX DMA timeout interrupt issue

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" These patches fix a DNV HSUART DMA issue with timeout interrupts, where RX data is stuck in buffer when RX DMA is used and the number of received bytes is less than 4096. These patches have been tested on Intel Denverton platform. Changes from v1: - Added patch

Re: [patch net-next] net: hns: add skb_reset_mac_header() after skb being alloc

2016-06-14 Thread David Miller
From: Yisen Zhuang Date: Mon, 13 Jun 2016 20:41:22 +0800 > From: Kejian Yan > > HNS receives a packet without doing anything, but it should call > skb_reset_mac_header() to initialize the header before using > eth_hdr(). > > Fixes:

Re: [patch net-next] net: hns: add skb_reset_mac_header() after skb being alloc

2016-06-14 Thread David Miller
From: Yisen Zhuang Date: Mon, 13 Jun 2016 20:41:22 +0800 > From: Kejian Yan > > HNS receives a packet without doing anything, but it should call > skb_reset_mac_header() to initialize the header before using > eth_hdr(). > > Fixes: 0d6b425a3773c3445b0f51b2f333821beaacb619 > Signed-off-by:

Re: [v6, 07/11] powerpc/powernv: set power_save func after the idle states are initialized

2016-06-14 Thread Michael Ellerman
On Wed, 2016-08-06 at 16:54:27 UTC, "Shreyas B. Prabhu" wrote: > pnv_init_idle_states discovers supported idle states from the > device tree and does the required initialization. Set power_save > function pointer only after this initialization is done This looks like a bug fix? Or is this not a

Re: [v6, 07/11] powerpc/powernv: set power_save func after the idle states are initialized

2016-06-14 Thread Michael Ellerman
On Wed, 2016-08-06 at 16:54:27 UTC, "Shreyas B. Prabhu" wrote: > pnv_init_idle_states discovers supported idle states from the > device tree and does the required initialization. Set power_save > function pointer only after this initialization is done This looks like a bug fix? Or is this not a

[PATCH v2] staging: gdm724x: Replace semaphore netlink with mutex

2016-06-14 Thread Binoy Jayan
Replace semaphore netlink_mutex with mutex. Semaphores are going away in the future. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- drivers/staging/gdm724x/netlink_k.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff

[PATCH v2] staging: gdm724x: Replace semaphore netlink with mutex

2016-06-14 Thread Binoy Jayan
Replace semaphore netlink_mutex with mutex. Semaphores are going away in the future. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- drivers/staging/gdm724x/netlink_k.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/staging/gdm724x/netlink_k.c

Re: [PATCH] sound: aedsp16: Change structure initialisation to C99 style

2016-06-14 Thread Takashi Iwai
On Wed, 15 Jun 2016 05:53:23 +0200, Amitoj Kaur Chawla wrote: > > Replace the in order struct initialisation style with explicit field > style. > > The Coccinelle semantic patch used to make this change is as follows: > > @decl@ > identifier i1,fld; > type T; > field list[n] fs; > @@ > >

Re: [PATCH] sound: aedsp16: Change structure initialisation to C99 style

2016-06-14 Thread Takashi Iwai
On Wed, 15 Jun 2016 05:53:23 +0200, Amitoj Kaur Chawla wrote: > > Replace the in order struct initialisation style with explicit field > style. > > The Coccinelle semantic patch used to make this change is as follows: > > @decl@ > identifier i1,fld; > type T; > field list[n] fs; > @@ > >

Re: [PATCH net-next 0/3] r8152: code adjustment for PHY

2016-06-14 Thread David Miller
From: Hayes Wang Date: Mon, 13 Jun 2016 17:49:35 +0800 > These patches are for adjusting the code about PHY and setting speed. Series applied, thanks.

Re: [v6, 03/11] powerpc/powernv: Rename idle_power7.S to idle_power_common.S

2016-06-14 Thread Michael Ellerman
On Wed, 2016-08-06 at 16:54:23 UTC, "Shreyas B. Prabhu" wrote: > idle_power7.S handles idle entry/exit for POWER7, POWER8 and in next > patch for POWER9. Rename the file to a non-hardware specific > name. It's not common for all powerpc CPUs though. So can you call it something other than just

Re: [PATCH net-next 0/3] r8152: code adjustment for PHY

2016-06-14 Thread David Miller
From: Hayes Wang Date: Mon, 13 Jun 2016 17:49:35 +0800 > These patches are for adjusting the code about PHY and setting speed. Series applied, thanks.

Re: [v6, 03/11] powerpc/powernv: Rename idle_power7.S to idle_power_common.S

2016-06-14 Thread Michael Ellerman
On Wed, 2016-08-06 at 16:54:23 UTC, "Shreyas B. Prabhu" wrote: > idle_power7.S handles idle entry/exit for POWER7, POWER8 and in next > patch for POWER9. Rename the file to a non-hardware specific > name. It's not common for all powerpc CPUs though. So can you call it something other than just

[PATCH] RTC: Add functionality to read/write rtc scratch registers

2016-06-14 Thread Keerthy
From: Russ Dill Many RTCs provide scratch registers that are maintained so long as the RTC has power. Provide a generic method to access these registers. Signed-off-by: Russ Dill Signed-off-by: Keerthy --- drivers/rtc/interface.c | 50

[PATCH] RTC: Add functionality to read/write rtc scratch registers

2016-06-14 Thread Keerthy
From: Russ Dill Many RTCs provide scratch registers that are maintained so long as the RTC has power. Provide a generic method to access these registers. Signed-off-by: Russ Dill Signed-off-by: Keerthy --- drivers/rtc/interface.c | 50 +

[PATCH v3 2/5] staging: wilc1000: Replace semaphore txq_add_to_head_cs with mutex

2016-06-14 Thread Binoy Jayan
The semaphore 'txq_add_to_head_cs' is a simple mutex, so it should be written as one. Semaphores are going away in the future. Also, removing the timeout scenario as the error handling code does not propagate the timeout properly. Signed-off-by: Binoy Jayan Reviewed-by:

[PATCH v3 3/5] staging: wilc1000: Replace semaphore cfg_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'cfg_event' is used as completion, so convert it to a struct completion type. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2

[PATCH v3 4/5] staging: wilc1000: Replace semaphore sync_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'sync_event' is used as completion, so convert it to a struct completion type. Also, return -ETIME if the return value of wait_for_completion_timeout is 0. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann ---

[PATCH v3 1/5] staging: wilc1000: Replace semaphore txq_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'txq_event' is used as completion, so convert it to a struct completion type. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 8 drivers/staging/wilc1000/wilc_wfi_netdevice.h

[PATCH v3 5/5] staging: wilc1000: Remove semaphore close_exit_sync

2016-06-14 Thread Binoy Jayan
The semaphore 'close_exit_sync' does not serve any purpose other than delaying the deregistration of the device which it is trying to protect from shared access. 'up' is called only when a subdevice is closed and not when it is opened. So, the semaphore count only goes up when the device is used.

[PATCH v3 2/5] staging: wilc1000: Replace semaphore txq_add_to_head_cs with mutex

2016-06-14 Thread Binoy Jayan
The semaphore 'txq_add_to_head_cs' is a simple mutex, so it should be written as one. Semaphores are going away in the future. Also, removing the timeout scenario as the error handling code does not propagate the timeout properly. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann ---

[PATCH v3 3/5] staging: wilc1000: Replace semaphore cfg_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'cfg_event' is used as completion, so convert it to a struct completion type. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 +-

[PATCH v3 4/5] staging: wilc1000: Replace semaphore sync_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'sync_event' is used as completion, so convert it to a struct completion type. Also, return -ETIME if the return value of wait_for_completion_timeout is 0. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 10 +-

[PATCH v3 1/5] staging: wilc1000: Replace semaphore txq_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'txq_event' is used as completion, so convert it to a struct completion type. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 8 drivers/staging/wilc1000/wilc_wfi_netdevice.h | 3 ++-

[PATCH v3 5/5] staging: wilc1000: Remove semaphore close_exit_sync

2016-06-14 Thread Binoy Jayan
The semaphore 'close_exit_sync' does not serve any purpose other than delaying the deregistration of the device which it is trying to protect from shared access. 'up' is called only when a subdevice is closed and not when it is opened. So, the semaphore count only goes up when the device is used.

[PATCH v3 0/5] *** staging: wilc1000: Replace semaphores with mutexes or completions ***

2016-06-14 Thread Binoy Jayan
These are a set of patches [v3] which removes semaphores from: drivers/staging/wilc1000 These are part of a bigger effort to eliminate all semaphores from the linux kernel. They build correctly (individually and as a whole). NB: The changes are untested Changes w.r.t. review comments on v1

[PATCH v3 0/5] *** staging: wilc1000: Replace semaphores with mutexes or completions ***

2016-06-14 Thread Binoy Jayan
These are a set of patches [v3] which removes semaphores from: drivers/staging/wilc1000 These are part of a bigger effort to eliminate all semaphores from the linux kernel. They build correctly (individually and as a whole). NB: The changes are untested Changes w.r.t. review comments on v1

Re: [PATCH] net: hns: update the dependency

2016-06-14 Thread David Miller
From: Yisen Zhuang Date: Mon, 13 Jun 2016 19:56:27 +0800 > From: Kejian Yan > > After the patchset about adding support of ACPI (commit id is 6343488) > being applied, HNS does not depend on OF. It depends on OF or ACPI, so > the Kconfig file

Re: [PATCH] net: hns: update the dependency

2016-06-14 Thread David Miller
From: Yisen Zhuang Date: Mon, 13 Jun 2016 19:56:27 +0800 > From: Kejian Yan > > After the patchset about adding support of ACPI (commit id is 6343488) > being applied, HNS does not depend on OF. It depends on OF or ACPI, so > the Kconfig file needs to be updated. > > Signed-off-by: Kejian Yan

Re: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-06-14 Thread David Miller
From: Netanel Belgazal Date: Mon, 13 Jun 2016 11:46:13 +0300 > +#define ena_trc_dbg(format, arg...) \ > + pr_debug("[ENA_COM: %s] " format, __func__, ##arg) > +#define ena_trc_info(format, arg...) \ > + pr_info("[ENA_COM: %s] " format, __func__, ##arg) >

Re: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-06-14 Thread David Miller
From: Netanel Belgazal Date: Mon, 13 Jun 2016 11:46:13 +0300 > +#define ena_trc_dbg(format, arg...) \ > + pr_debug("[ENA_COM: %s] " format, __func__, ##arg) > +#define ena_trc_info(format, arg...) \ > + pr_info("[ENA_COM: %s] " format, __func__, ##arg) > +#define ena_trc_warn(format,

[PATCH v2 1/5] staging: wilc1000: Replace semaphore txq_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'txq_event' is used as completion, so convert it to a struct completion type. Signed-off-by: Binoy Jayan --- drivers/staging/wilc1000/linux_wlan.c | 8 drivers/staging/wilc1000/wilc_wfi_netdevice.h | 3 ++-

[PATCH v2 1/5] staging: wilc1000: Replace semaphore txq_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'txq_event' is used as completion, so convert it to a struct completion type. Signed-off-by: Binoy Jayan --- drivers/staging/wilc1000/linux_wlan.c | 8 drivers/staging/wilc1000/wilc_wfi_netdevice.h | 3 ++- drivers/staging/wilc1000/wilc_wlan.c | 8

[PATCH v2 0/5] *** staging: wilc1000: Replace semaphores with mutexes or completions ***

2016-06-14 Thread Binoy Jayan
These are a set of patches [v2] which removes semaphores from: drivers/staging/wilc1000 These are part of a bigger effort to eliminate all semaphores from the linux kernel. They build correctly (individually and as a whole). NB: The changes are untested Changes w.r.t. review comments on v1

[PATCH v2 0/5] *** staging: wilc1000: Replace semaphores with mutexes or completions ***

2016-06-14 Thread Binoy Jayan
These are a set of patches [v2] which removes semaphores from: drivers/staging/wilc1000 These are part of a bigger effort to eliminate all semaphores from the linux kernel. They build correctly (individually and as a whole). NB: The changes are untested Changes w.r.t. review comments on v1

linux-next: manual merge of the akpm-current tree with the tip tree

2016-06-14 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: ipc/sem.c between commit: 33ac279677dc ("locking/barriers: Introduce smp_acquire__after_ctrl_dep()") from the tip tree and commit: a1c58ea067cb ("ipc/sem.c: Fix complex_count vs. simple op race") from the

linux-next: manual merge of the akpm-current tree with the tip tree

2016-06-14 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: ipc/sem.c between commit: 33ac279677dc ("locking/barriers: Introduce smp_acquire__after_ctrl_dep()") from the tip tree and commit: a1c58ea067cb ("ipc/sem.c: Fix complex_count vs. simple op race") from the

Re: [PATCH v2 0/5] ipvs: fix backup sync daemon with IPv6, and minor updates

2016-06-14 Thread Julian Anastasov
Hello, On Tue, 14 Jun 2016, Quentin Armitage wrote: > This series of patches arise from discovering that: > ipvsadm --start-daemon backup --mcast-group IPv6_address ... > would always fail. > > The first patch resolves the problem. The second and third patches are > optimizations that

Re: [PATCH v2 0/5] ipvs: fix backup sync daemon with IPv6, and minor updates

2016-06-14 Thread Julian Anastasov
Hello, On Tue, 14 Jun 2016, Quentin Armitage wrote: > This series of patches arise from discovering that: > ipvsadm --start-daemon backup --mcast-group IPv6_address ... > would always fail. > > The first patch resolves the problem. The second and third patches are > optimizations that

Re: [PATCH v6 10/11] cpuidle/powernv: Add support for POWER ISA v3 idle states

2016-06-14 Thread Shreyas B Prabhu
On 06/14/2016 04:59 PM, Benjamin Herrenschmidt wrote: > On Tue, 2016-06-14 at 16:17 +0530, Shreyas B Prabhu wrote: > >> >> I ignored adding this check because this is part of initcall and we are >> unlikely to run out of memory at this state. But I'll add the check in >> next version. > > Why

Re: [PATCH v6 10/11] cpuidle/powernv: Add support for POWER ISA v3 idle states

2016-06-14 Thread Shreyas B Prabhu
On 06/14/2016 04:59 PM, Benjamin Herrenschmidt wrote: > On Tue, 2016-06-14 at 16:17 +0530, Shreyas B Prabhu wrote: > >> >> I ignored adding this check because this is part of initcall and we are >> unlikely to run out of memory at this state. But I'll add the check in >> next version. > > Why

Re: [PATCH v4 0/1] pstore/ram: add Device Tree bindings

2016-06-14 Thread Kees Cook
On Tue, Jun 14, 2016 at 2:59 PM, Rob Herring wrote: > On Fri, Jun 10, 2016 at 03:50:58PM -0700, Kees Cook wrote: >> This is a "v4" of Greg Hackmann's DT bindings for ramoops. This is >> what I'm going to land in the pstore tree unless there are strong and >> convincing arguments

Re: [PATCH v4 0/1] pstore/ram: add Device Tree bindings

2016-06-14 Thread Kees Cook
On Tue, Jun 14, 2016 at 2:59 PM, Rob Herring wrote: > On Fri, Jun 10, 2016 at 03:50:58PM -0700, Kees Cook wrote: >> This is a "v4" of Greg Hackmann's DT bindings for ramoops. This is >> what I'm going to land in the pstore tree unless there are strong and >> convincing arguments against it. :) >>

[PATCH 1/1] usb: core: of.c: fix defined but not declare warning

2016-06-14 Thread Peter Chen
The helper usb_of_get_child_node is defined at of.c, but missing its declare as a global function. Fix it by adding related header file as well as compile it on conditional of CONFIG_OF. Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Alan Stern

[PATCH 1/1] usb: core: of.c: fix defined but not declare warning

2016-06-14 Thread Peter Chen
The helper usb_of_get_child_node is defined at of.c, but missing its declare as a global function. Fix it by adding related header file as well as compile it on conditional of CONFIG_OF. Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Alan Stern Cc: linux-...@vger.kernel.org Cc:

Re: [PATCH v3 2/2] media: et8ek8: Add documentation

2016-06-14 Thread Sakari Ailus
Hi Rob, On Tue, Jun 14, 2016 at 05:05:17PM -0500, Rob Herring wrote: > On Sat, Jun 11, 2016 at 06:39:53PM +0300, Ivaylo Dimitrov wrote: > > Add DT bindings description > > Not exactly the best commit msg. > > > > > Signed-off-by: Ivaylo Dimitrov > > --- > >

Re: [PATCH v3 2/2] media: et8ek8: Add documentation

2016-06-14 Thread Sakari Ailus
Hi Rob, On Tue, Jun 14, 2016 at 05:05:17PM -0500, Rob Herring wrote: > On Sat, Jun 11, 2016 at 06:39:53PM +0300, Ivaylo Dimitrov wrote: > > Add DT bindings description > > Not exactly the best commit msg. > > > > > Signed-off-by: Ivaylo Dimitrov > > --- > >

Re: [PATCH 1/2] f2fs: detect host-managed SMR by feature flag

2016-06-14 Thread Damien Le Moal
Jaegeuk, On 6/15/16 03:45, Jaegeuk Kim wrote: > If mkfs.f2fs gives a feature flag for host-managed SMR, we can set mode=lfs > by default. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h | 21 + > fs/f2fs/super.c | 14 -- > 2 files

Re: [PATCH 1/2] f2fs: detect host-managed SMR by feature flag

2016-06-14 Thread Damien Le Moal
Jaegeuk, On 6/15/16 03:45, Jaegeuk Kim wrote: > If mkfs.f2fs gives a feature flag for host-managed SMR, we can set mode=lfs > by default. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h | 21 + > fs/f2fs/super.c | 14 -- > 2 files changed, 29

Re: [PATCH] rtc: ds1307: Fix relying on reset value for weekday

2016-06-14 Thread Keerthy
On Tuesday 14 June 2016 08:09 PM, Alexandre Belloni wrote: On 07/06/2016 at 14:59:05 +0530, Keerthy wrote : Hi Alexandre, On Wednesday 01 June 2016 06:06 PM, Keerthy wrote: On Wednesday 01 June 2016 05:48 PM, Alexandre Belloni wrote: Hi, On 01/06/2016 at 16:19:07 +0530, Keerthy wrote :

Re: [PATCH] rtc: ds1307: Fix relying on reset value for weekday

2016-06-14 Thread Keerthy
On Tuesday 14 June 2016 08:09 PM, Alexandre Belloni wrote: On 07/06/2016 at 14:59:05 +0530, Keerthy wrote : Hi Alexandre, On Wednesday 01 June 2016 06:06 PM, Keerthy wrote: On Wednesday 01 June 2016 05:48 PM, Alexandre Belloni wrote: Hi, On 01/06/2016 at 16:19:07 +0530, Keerthy wrote :

[PATCH -next] Revert "clocksource/drivers/timer-atmel-st: Add the COMPILE_TEST option"

2016-06-14 Thread Guenter Roeck
This reverts commit 7011a4947ca61cd28a8c025b39c98861687e4fb6. When trying to build parisc:allmodconfig: drivers/clocksource/timer-atmel-st.c: In function 'at91rm9200_timer_interrupt': drivers/clocksource/timer-atmel-st.c:76:3: error: invalid use of undefined type 'struct

[PATCH -next] Revert "clocksource/drivers/timer-atmel-st: Add the COMPILE_TEST option"

2016-06-14 Thread Guenter Roeck
This reverts commit 7011a4947ca61cd28a8c025b39c98861687e4fb6. When trying to build parisc:allmodconfig: drivers/clocksource/timer-atmel-st.c: In function 'at91rm9200_timer_interrupt': drivers/clocksource/timer-atmel-st.c:76:3: error: invalid use of undefined type 'struct

[PATCH -next] nios2: clocksource: Fix build error

2016-06-14 Thread Guenter Roeck
gcc has trouble parsing returen. Fixes: 3e23d81046936 ("clocksource/drivers/nios2: Convert init function to return error") Cc: Daniel Lezcano Signed-off-by: Guenter Roeck --- arch/nios2/kernel/time.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH -next] nios2: clocksource: Fix build error

2016-06-14 Thread Guenter Roeck
gcc has trouble parsing returen. Fixes: 3e23d81046936 ("clocksource/drivers/nios2: Convert init function to return error") Cc: Daniel Lezcano Signed-off-by: Guenter Roeck --- arch/nios2/kernel/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/nios2/kernel/time.c

[PATCH] sound: aedsp16: Change structure initialisation to C99 style

2016-06-14 Thread Amitoj Kaur Chawla
Replace the in order struct initialisation style with explicit field style. The Coccinelle semantic patch used to make this change is as follows: @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; ...}; @@ identifier decl.i1,i2,decl.fld; expression e; position

[PATCH] sound: aedsp16: Change structure initialisation to C99 style

2016-06-14 Thread Amitoj Kaur Chawla
Replace the in order struct initialisation style with explicit field style. The Coccinelle semantic patch used to make this change is as follows: @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; ...}; @@ identifier decl.i1,i2,decl.fld; expression e; position

Re: [PATCH] locking/qrwlock: fix write unlock issue in big endian

2016-06-14 Thread xinhui
On 2016年06月14日 18:40, Will Deacon wrote: On Tue, Jun 14, 2016 at 02:11:48PM +0800, xinhui wrote: On 2016年06月08日 17:22, Will Deacon wrote: On Thu, Jun 02, 2016 at 06:09:08PM +0800, Pan Xinhui wrote: strcut __qrwlock has different layout in big endian machine. we need set the

Re: [PATCH] locking/qrwlock: fix write unlock issue in big endian

2016-06-14 Thread xinhui
On 2016年06月14日 18:40, Will Deacon wrote: On Tue, Jun 14, 2016 at 02:11:48PM +0800, xinhui wrote: On 2016年06月08日 17:22, Will Deacon wrote: On Thu, Jun 02, 2016 at 06:09:08PM +0800, Pan Xinhui wrote: strcut __qrwlock has different layout in big endian machine. we need set the

[PATCH perf/core v11 09/23] perf probe: Show all cached probes

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf probe --list shows all cached probes when --cache is given. Each caches are shown with on which binary that probed. e.g. - # perf probe --cache vfs_read \$params # perf probe --cache -x /lib64/libc-2.17.so getaddrinfo

[PATCH perf/core v11 09/23] perf probe: Show all cached probes

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf probe --list shows all cached probes when --cache is given. Each caches are shown with on which binary that probed. e.g. - # perf probe --cache vfs_read \$params # perf probe --cache -x /lib64/libc-2.17.so getaddrinfo \$params # perf probe --cache --list

[PATCH perf/core v11 21/23] perf probe: Support a special SDT probe format

2016-06-14 Thread Masami Hiramatsu
Support a special SDT probe format which can omit the '%' prefix only if the SDT group name starts with "sdt_". So, for example both of "%sdt_libc:setjump" and "sdt_libc:setjump" are acceptable for perf probe --add. Suggested-by: Brendan Gregg Signed-off-by: Masami

[PATCH perf/core v11 19/23] perf probe: Search SDT/cached event from all probe caches

2016-06-14 Thread Masami Hiramatsu
Search SDT/cached event from all probe caches if user doesn't pass any binary. With this, we don't have to specify target binary for SDT and named cached events (which start with %). E.g. without this, a target binary must be passed with -x. # perf probe -x /usr/lib64/libc-2.20.so -a

[PATCH perf/core v11 18/23] perf probe: Allow wildcard for cached events

2016-06-14 Thread Masami Hiramatsu
Allo glob wildcard for reusing cached/SDT events. E.g. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\* This example adds probes for all SDT in libc. Note that the SDTs must have been scanned by perf buildid-cache. Signed-off-by: Masami Hiramatsu --- Changes in

[PATCH perf/core v11 23/23] perf-test: Add a test case for SDT event

2016-06-14 Thread Masami Hiramatsu
Add a basic test case for SDT event support. This test scans an SDT event in perftools and check whether the SDT event is correctly stored into the buildid cache. Signed-off-by: Masami Hiramatsu --- tools/perf/tests/Build |1 tools/perf/tests/builtin-test.c |

[PATCH perf/core v11 21/23] perf probe: Support a special SDT probe format

2016-06-14 Thread Masami Hiramatsu
Support a special SDT probe format which can omit the '%' prefix only if the SDT group name starts with "sdt_". So, for example both of "%sdt_libc:setjump" and "sdt_libc:setjump" are acceptable for perf probe --add. Suggested-by: Brendan Gregg Signed-off-by: Masami Hiramatsu ---

[PATCH perf/core v11 19/23] perf probe: Search SDT/cached event from all probe caches

2016-06-14 Thread Masami Hiramatsu
Search SDT/cached event from all probe caches if user doesn't pass any binary. With this, we don't have to specify target binary for SDT and named cached events (which start with %). E.g. without this, a target binary must be passed with -x. # perf probe -x /usr/lib64/libc-2.20.so -a

[PATCH perf/core v11 18/23] perf probe: Allow wildcard for cached events

2016-06-14 Thread Masami Hiramatsu
Allo glob wildcard for reusing cached/SDT events. E.g. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\* This example adds probes for all SDT in libc. Note that the SDTs must have been scanned by perf buildid-cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Split off

[PATCH perf/core v11 23/23] perf-test: Add a test case for SDT event

2016-06-14 Thread Masami Hiramatsu
Add a basic test case for SDT event support. This test scans an SDT event in perftools and check whether the SDT event is correctly stored into the buildid cache. Signed-off-by: Masami Hiramatsu --- tools/perf/tests/Build |1 tools/perf/tests/builtin-test.c |4 +

[PATCH perf/core v11 17/23] perf: probe-cache: Add for_each_probe_cache_entry() wrapper

2016-06-14 Thread Masami Hiramatsu
Add for_each_probe_cache_entry() wrapper macro for hiding list in probe_cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splitted from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-file.c |8

[PATCH perf/core v11 22/23] perf build: Add sdt feature detection

2016-06-14 Thread Masami Hiramatsu
Will be used to define SDT events in perf test code. Signed-off-by: Masami Hiramatsu --- tools/build/Makefile.feature |3 ++- tools/build/feature/Makefile |6 +- tools/build/feature/test-all.c |5 + tools/build/feature/test-sdt.c |7 +++

[PATCH perf/core v11 16/23] perf-list: Skip SDTs placed in invalid binaries

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Skip SDTs placed in invalid (non-exist, or older version) binaries. Note that perf-probe --cache --list and perf-probe --cache --del still handle all the caches including invalid binaries. Signed-off-by: Masami Hiramatsu

[PATCH perf/core v11 20/23] perf probe: Support @BUILDID or @FILE suffix for SDT events

2016-06-14 Thread Masami Hiramatsu
Support @BUILDID or @FILE suffix for SDT events. This allows perf to add probes on SDTs/pre-cached events on given FILE or the file which has given BUILDID (also, this complements BUILDID.) For example, both gcc and libstdc++ has same SDTs as below. If you would like to add a probe on

[PATCH perf/core v11 17/23] perf: probe-cache: Add for_each_probe_cache_entry() wrapper

2016-06-14 Thread Masami Hiramatsu
Add for_each_probe_cache_entry() wrapper macro for hiding list in probe_cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splitted from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-file.c |8 tools/perf/util/probe-file.h |2 ++ 2 files

[PATCH perf/core v11 22/23] perf build: Add sdt feature detection

2016-06-14 Thread Masami Hiramatsu
Will be used to define SDT events in perf test code. Signed-off-by: Masami Hiramatsu --- tools/build/Makefile.feature |3 ++- tools/build/feature/Makefile |6 +- tools/build/feature/test-all.c |5 + tools/build/feature/test-sdt.c |7 +++ tools/perf/Makefile.perf

[PATCH perf/core v11 16/23] perf-list: Skip SDTs placed in invalid binaries

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Skip SDTs placed in invalid (non-exist, or older version) binaries. Note that perf-probe --cache --list and perf-probe --cache --del still handle all the caches including invalid binaries. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in

[PATCH perf/core v11 20/23] perf probe: Support @BUILDID or @FILE suffix for SDT events

2016-06-14 Thread Masami Hiramatsu
Support @BUILDID or @FILE suffix for SDT events. This allows perf to add probes on SDTs/pre-cached events on given FILE or the file which has given BUILDID (also, this complements BUILDID.) For example, both gcc and libstdc++ has same SDTs as below. If you would like to add a probe on

[PATCH perf/core v11 11/23] perf/sdt: ELF support for SDT

2016-06-14 Thread Masami Hiramatsu
From: Hemant Kumar This patch serves the initial support to identify and list SDT events in binaries. When programs containing SDT markers are compiled, gcc with the help of assembler directives identifies them and places them in the section ".note.stapsdt". To find

[PATCH perf/core v11 11/23] perf/sdt: ELF support for SDT

2016-06-14 Thread Masami Hiramatsu
From: Hemant Kumar This patch serves the initial support to identify and list SDT events in binaries. When programs containing SDT markers are compiled, gcc with the help of assembler directives identifies them and places them in the section ".note.stapsdt". To find these markers from the

[PATCH perf/core v11 15/23] perf-list: Show SDT and pre-cached events

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Show SDT and pre-cached events by perf-list with "sdt". This also shows the binary and build-id where the events are placed only when there are same name events on different binaries. e.g. # perf list sdt List of pre-defined

[PATCH perf/core v11 13/23] perf buildid-cache: Scan and import user SDT events to probe cache

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf buildid-cache --add scans given binary and add the SDT events to probe cache. "sdt_" prefix is appended for all SDT providers to avoid event-name clash with other pre-defined events. It is possible to use the cached SDT events as

[PATCH perf/core v11 10/23] perf probe: Remove caches when --cache is given

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf-probe --del removes caches when --cache is given. Note that the delete pattern is not same as normal events. If you cached probes with event name, --del "eventname" works as expected. However, if you skipped it, the cached probes

[PATCH perf/core v11 15/23] perf-list: Show SDT and pre-cached events

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Show SDT and pre-cached events by perf-list with "sdt". This also shows the binary and build-id where the events are placed only when there are same name events on different binaries. e.g. # perf list sdt List of pre-defined events (to be used in -e):

[PATCH perf/core v11 13/23] perf buildid-cache: Scan and import user SDT events to probe cache

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf buildid-cache --add scans given binary and add the SDT events to probe cache. "sdt_" prefix is appended for all SDT providers to avoid event-name clash with other pre-defined events. It is possible to use the cached SDT events as other cached events, via perf probe

[PATCH perf/core v11 10/23] perf probe: Remove caches when --cache is given

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf-probe --del removes caches when --cache is given. Note that the delete pattern is not same as normal events. If you cached probes with event name, --del "eventname" works as expected. However, if you skipped it, the cached probes doesn't have actual event name. In

[PATCH perf/core v11 08/23] perf probe: Use cache entry if possible

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Before analyzing debuginfo, try to find a corresponding entry from probe cache always. This does not depend on --cache, the --cache enables to store/update cache, but looking up the cache is always enabled. Signed-off-by: Masami Hiramatsu

[PATCH perf/core v11 14/23] perf probe: Accept %sdt and %cached event name

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu To improbe usability, support %[PROVIDER:]SDTEVENT format to add new probes on SDT and cached events. e.g. # perf probe -x /lib/libc-2.17.so %lll_lock_wait_private Added new event: sdt_libc:lll_lock_wait_private (on

[PATCH perf/core v11 12/23] perf probe: Add group name support

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Allow user to set group name for adding new event. Note that user must ensure that the group name doesn't conflict with existing group name carefully. E.g. Existing group name can conflict with other events. Especially, using the group name

[PATCH perf/core v11 08/23] perf probe: Use cache entry if possible

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Before analyzing debuginfo, try to find a corresponding entry from probe cache always. This does not depend on --cache, the --cache enables to store/update cache, but looking up the cache is always enabled. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu

[PATCH perf/core v11 14/23] perf probe: Accept %sdt and %cached event name

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu To improbe usability, support %[PROVIDER:]SDTEVENT format to add new probes on SDT and cached events. e.g. # perf probe -x /lib/libc-2.17.so %lll_lock_wait_private Added new event: sdt_libc:lll_lock_wait_private (on %lll_lock_wait_private in

[PATCH perf/core v11 12/23] perf probe: Add group name support

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Allow user to set group name for adding new event. Note that user must ensure that the group name doesn't conflict with existing group name carefully. E.g. Existing group name can conflict with other events. Especially, using the group name reserved for kernel modules can

  1   2   3   4   5   6   7   8   9   10   >