Re: [PATCH] ARM: dts: mvebu: add ethernet to the cm-a510 board

2015-02-05 Thread Jean-Francois Moine
On Thu, 05 Feb 2015 23:13:58 +0100 Sebastian Hesselbarth wrote: > > At this moment, I am trying to configure the framebuffer, but as Moine > > told me,it seems there is not video driver support for this board in > > DT... :( . > > Not quite true. Video is made up of at least 4 different device

Re: [Linaro-acpi] [PATCH v8 11/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init

2015-02-05 Thread Hanjun Guo
Hi Lorenzo, Al, On 2015年02月06日 03:03, Al Stone wrote: On 02/05/2015 10:49 AM, Lorenzo Pieralisi wrote: Hi Al, Howdy, Lorenzo. On Thu, Feb 05, 2015 at 05:11:31PM +, Al Stone wrote: On 02/04/2015 09:43 AM, Lorenzo Pieralisi wrote: On Mon, Feb 02, 2015 at 12:45:39PM +, Hanjun Guo wro

Re: [PATCH V6 1/3] bfin_can: rewrite the blackfin style of read/write to common ones

2015-02-05 Thread Marc Kleine-Budde
On 02/06/2015 07:25 AM, Aaron Wu wrote: > Replace the blackfin arch dependent style of bfin_read/bfin_write with > common readw/writew Patch 1 & 2 are fine, 3 needs some whitespace improvements (see my reply for more details). regards, Marc -- Pengutronix e.K. | Marc Kleine-Bud

Re: [PATCH V6 3/3] bfin_can: move and merge the content of header file into driver body

2015-02-05 Thread Marc Kleine-Budde
On 02/06/2015 07:25 AM, Aaron Wu wrote: > Header file was in arch dependent location > arch/blackfin/include/asm/bfin_can.h, > Now move and merge the useful contents of header file into driver code, note > the original header file is reserved for full register sets access test by > other > code s

Re: [PATCH -next] drm/nouveau/clk: Use plain "/" for 32-bit division

2015-02-05 Thread Geert Uytterhoeven
Hi Alexandre, On Fri, Feb 6, 2015 at 7:50 AM, Alexandre Courbot wrote: > On 02/05/2015 01:02 AM, Geert Uytterhoeven wrote: >> On 32-bit platforms using asm-generic/div64.h: >> drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c: In function >> 'gk20a_pllg_calc_rate': >> drivers/gpu/drm/nouveau/nvkm/s

Re: [PATCH RFC] kvm: x86: add halt_poll module parameter

2015-02-05 Thread Paolo Bonzini
On 06/02/2015 00:34, Marcelo Tosatti wrote: > You want at least a basic procedure to estimate a value > (its a function of the device after all). I will add a tracepoint. > Rather than halt_successful_poll's, i suppose the optimum > can be estimated from a dataset containing entries > in the f

Re: [PATCH 2/3] clk: hi6220: Clock driver support for Hisilicon hi6220 SoC

2015-02-05 Thread Brent Wang
Hi Mark, 2015-02-06 3:25 GMT+08:00 Mark Rutland : > On Thu, Feb 05, 2015 at 09:24:36AM +, Bintian Wang wrote: >> Add clock drivers for hi6220 SoC, this driver controls the SoC >> registers to supply different clocks to different IPs in the SoC. >> >> We add one divider clock for hi6220 because

Re: [PATCH RFC] video: fbdev: sis: condition with no effect

2015-02-05 Thread Thomas Winischhofer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tormod Volden wrote: > On Thu, Feb 5, 2015 at 9:45 PM, Scot Doyle wrote: >> On Wed, 4 Feb 2015, Nicholas Mc Guire wrote: >>> The if and the else branch code are identical - so the condition has no >>> effect on the effective code - this patch removes t

[RFC 1/2] tracing: add additional IO tracepoints

2015-02-05 Thread He Kuang
Add tracepoints according to IO data stream to trace data propagate in vfs, fs, block layers. Signed-off-by: He Kuang --- block/bio.c| 1 + block/blk-core.c | 4 +++ drivers/scsi/virtio_scsi.c | 3 ++ fs/ext4/page-io.c | 4 +++ include/trace

[RFC 2/2] samples: bpf: IO profiling example

2015-02-05 Thread He Kuang
For the first node, we sample and record its characteristic (eg. address), and add the result to a global hash table. For other nodes, they'll be traced when their context matches the characteristics in previous tables. Signed-off-by: He Kuang --- samples/bpf/Makefile | 4 + samples/bpf

[RFC 0/2] Experience on full stack profiling using eBPF.

2015-02-05 Thread He Kuang
Hi Alexei, We are working on full stack system profiling tools and found your eBPF is an amazing start point for us. However, during our prototype designing and implementing we also found some limitations on it. I'd like to share our experience with you in this mailing list, and I hope you and oth

RE: [PATCH V5 2/3] bfin_can: rewrite the driver into common style with MMU

2015-02-05 Thread Wu, Aaron
Hi Marc, Thanks for your quick review and comments, I've made 3 changes accordingly in V6. Patches have passed function verification on blackfin board and scripts/checkpach.pl with 0 error/warning. Best regards, Aaron > -Original Message- > From: Marc Kleine-Budde [mailto:m...@pengu

[RFT/PATCH] Input: bfin_rotary - introduce open and close methods

2015-02-05 Thread Dmitry Torokhov
Introduce open and close methods for the input device to postpone enabling the device until it is needed. Signed-off-by: Dmitry Torokhov --- Hi Sonic, Could you please tell me if the driver still works with this parch? Thanks! drivers/input/misc/bfin_rotary.c | 70 ---

Re: [PATCH] af_packet: don't pass empty blocks for PACKET_V3

2015-02-05 Thread Alexander Drozdov
On 05.02.2015 23:01:38 +0300 Willem de Bruijn wrote: On Wed, Feb 4, 2015 at 9:58 PM, Alexander Drozdov wrote: Don't close an empty block on timeout. Its meaningless to pass it to the user. Moreover, passing empty blocks wastes CPU & buffer space increasing probability of packets dropping on sma

Re: brcm80211: Delete unnecessary checks before two function calls

2015-02-05 Thread Kalle Valo
> From: Markus Elfring > Date: Wed, 4 Feb 2015 20:28:49 +0100 > > The functions brcmu_pkt_buf_free_skb() and usb_free_urb() test whether > their argument is NULL and then return immediately. Thus the test around > the call is not needed. > > Signed-off-by: Markus Elfring Thanks, applied to wi

Re: hostap: Delete an unnecessary check before the function call "kfree"

2015-02-05 Thread Kalle Valo
> From: Markus Elfring > Date: Wed, 4 Feb 2015 20:06:39 +0100 > > The kfree() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring

Re: orinoco: Delete an unnecessary check before the function call "kfree"

2015-02-05 Thread Kalle Valo
> From: Markus Elfring > Date: Wed, 4 Feb 2015 19:53:11 +0100 > > The kfree() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring

Re: [PATCH -next] drm/nouveau/clk: Use plain "/" for 32-bit division

2015-02-05 Thread Alexandre Courbot
Hi Geert, On 02/05/2015 01:02 AM, Geert Uytterhoeven wrote: On 32-bit platforms using asm-generic/div64.h: drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c: In function 'gk20a_pllg_calc_rate': drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c:147:79: warning: comparison of distinct pointer types

Re: ath9k: Delete an unnecessary check before the function call"relay_close"

2015-02-05 Thread Kalle Valo
> From: Markus Elfring > Date: Wed, 4 Feb 2015 18:48:28 +0100 > > The relay_close() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus E

Re: [1/2] cw1200: Delete an unnecessary check before the function call "release_firmware"

2015-02-05 Thread Kalle Valo
> From: Markus Elfring > Date: Wed, 4 Feb 2015 16:32:15 +0100 > > The release_firmware() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Mar

Re: [1/3] orinoco: orinoco_plx use msecs_to_jiffies for conversion

2015-02-05 Thread Kalle Valo
> This is only an API consolidation and should make things more readable > it replaces var * HZ / 1000 by msecs_to_jiffies(var). > > Signed-off-by: Nicholas Mc Guire Thanks, 3 patches applied to wireless-drivers-next.git: ab458cc85fa2 orinoco: orinoco_plx use msecs_to_jiffies for conversion 34

Re: sched: memory corruption on completing completions

2015-02-05 Thread Raghavendra K T
On 02/06/2015 04:27 AM, Linus Torvalds wrote: On Thu, Feb 5, 2015 at 2:37 PM, Davidlohr Bueso wrote: It is possible that the paravirt spinlocks could be saved by: - moving the clearing of TICKET_SLOWPATH_FLAG into the fastpath locking code. Ouch, to avoid deadlocks they explicitly need th

Re: cw1200: use msecs_to_jiffies for conversion

2015-02-05 Thread Kalle Valo
> This is only an API consolidation to make things more readable. > Instances of HZ / CONST are replaced by appropriate msecs_to_jiffies(). > > Signed-off-by: Nicholas Mc Guire Thanks, applied to wireless-drivers-next.git. Kalle Valo -- To unsubscribe from this list: send the line "unsubscri

Re: [PATCH 0/3] arm64,hi6220: Enable Hisilicon Hi6220 SoC

2015-02-05 Thread Brent Wang
Hello Olof, 2015-02-06 14:18 GMT+08:00 Olof Johansson : > > On Thu, Feb 5, 2015 at 8:21 PM, Brent Wang wrote: > > Hello Olof and Tyler, > > > > 2015-02-06 7:52 GMT+08:00 Tyler Baker : > >> > >> On 5 February 2015 at 11:02, Olof Johansson wrote: > >> > On Thu, Feb 5, 2015 at 10:46 AM, Tyler Baker

[PATCH V6 3/3] bfin_can: move and merge the content of header file into driver body

2015-02-05 Thread Aaron Wu
Header file was in arch dependent location arch/blackfin/include/asm/bfin_can.h, Now move and merge the useful contents of header file into driver code, note the original header file is reserved for full register sets access test by other code so it survives. Signed-off-by: Aaron Wu --- drive

[PATCH V6 1/3] bfin_can: rewrite the blackfin style of read/write to common ones

2015-02-05 Thread Aaron Wu
Replace the blackfin arch dependent style of bfin_read/bfin_write with common readw/writew Signed-off-by: Aaron Wu --- drivers/net/can/bfin_can.c | 126 +--- 1 file changed, 60 insertions(+), 66 deletions(-) diff --git a/drivers/net/can/bfin_can.c b/driv

[PATCH V6 2/3] bfin_can: introduce ioremap to comply to the arch with MMU

2015-02-05 Thread Aaron Wu
Blackfin was built without MMU, old driver code access the IO space by physical address, introduce the ioremap approach to be compitable with the common style supporting MMU enabled arch. Signed-off-by: Aaron Wu --- drivers/net/can/bfin_can.c | 22 -- 1 file changed, 8 inse

Re: [PATCH 2/2] f2fs: don't discard next free dnode page for an umount checkpoint

2015-02-05 Thread Jaegeuk Kim
Hi Chao, On Thu, Feb 05, 2015 at 04:16:04PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Tuesday, February 03, 2015 7:38 AM > > To: Chao Yu > > Cc: Changman Lee; linux-f2fs-de...@lists.sourceforge.net; > > linux-

Re: [PATCH 0/3] arm64,hi6220: Enable Hisilicon Hi6220 SoC

2015-02-05 Thread Olof Johansson
On Thu, Feb 5, 2015 at 8:21 PM, Brent Wang wrote: > Hello Olof and Tyler, > > 2015-02-06 7:52 GMT+08:00 Tyler Baker : >> >> On 5 February 2015 at 11:02, Olof Johansson wrote: >> > On Thu, Feb 5, 2015 at 10:46 AM, Tyler Baker >> > wrote: >> >> Hi Bintian, >> >> >> >> On 5 February 2015 at 01:24,

Re: [f2fs-dev] [PATCH 5/5 v4] f2fs: introduce a batched trim

2015-02-05 Thread Jaegeuk Kim
Hi Chao, Something like this? Change log from v3: o align to section size This patch introduces a batched trimming feature, which submits split discard commands. This is to avoid long latency due to huge trim commands. If fstrim was triggered ranging from 0 to the end of device, we should lock

[PATCH] edac: fix memory leaks on failure path in edac_init()

2015-02-05 Thread Alexey Khoroshilov
edac_init() does not deallocate already allocated resources on failure path. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/edac/edac_module.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/edac/

[PATCH] Input: bfin_rotary - mark suspend and resume code as __maybe_unused

2015-02-05 Thread Dmitry Torokhov
Instead of using #ifdef to guard potentially unused suspend and resume code let's mark them as __maybe_unused so they still get discarded if they are not used but we do not get warning. This allows for better compile coverage. Signed-off-by: Dmitry Torokhov --- drivers/input/misc/bfin_rotary.c |

Re: [PATCH] cifs: smb2_clone_range() - exit on unhandled error

2015-02-05 Thread Steve French
Merged into cifs-2.6.git On Wed, Feb 4, 2015 at 7:10 AM, Sachin Prabhu wrote: > While attempting to clone a file on a samba server, we receive a > STATUS_INVALID_DEVICE_REQUEST. This is mapped to -EOPNOTSUPP which > isn't handled in smb2_clone_range(). We end up looping in the while loop > making

Re: [PATCH v2] efi, x86: Add a "debug" option to the efi= cmdline

2015-02-05 Thread Parmeshwr Prasad
On Thu, Feb 05, 2015 at 08:28:58AM -0600, Borislav Petkov wrote: > On Thu, Feb 05, 2015 at 07:45:10AM -0500, Parmeshwr Prasad wrote: > > It is better if we add some printk from efifb messages. > > Please review the below patch. > > First of all, we saw you patch. > > Then, > > > From 7fbac896ab8

Re: [PATCH v17 1/7] mm: support madvise(MADV_FREE)

2015-02-05 Thread Minchan Kim
Hi Shaohua, On Thu, Feb 05, 2015 at 04:33:11PM -0800, Shaohua Li wrote: > > Hi Minchan, > > Sorry to jump in this thread so later, and if some issues are discussed > before. > I'm interesting in this patch, so tried it here. I use a simple test with No problem at all. Interest is always win ov

Re: [PATCH] dma: mmp-pdma: fix irq handler overwrite physical chan issue

2015-02-05 Thread Zhangfei Gao
On 4 February 2015 at 14:16, Qiao Zhou wrote: > Some dma channels may be reserved for other purpose in other layer, > like secure driver in EL2/EL3. PDMA driver can see the interrupt > status, but it should not try to handle related interrupt, since it > doesn't belong to PDMA driver in kernel. Th

Re: [RFC PATCH 0/3] Fix power domains handling on exynos542x

2015-02-05 Thread Joonyoung Shim
Hi, On 02/05/2015 11:45 PM, Javier Martinez Canillas wrote: > Hello Andrzej, > > Thanks a lot for finally finding what was causing the HDMI issue. > > On 02/05/2015 01:35 PM, Andrzej Hajda wrote: >> Hi, >> >> Exynos chipsets since 542x have asynchronous bridges connecting different >> IPs. >> T

[PATCH 01/29] lguest: have --rng read from /dev/urandom not /dev/random.

2015-02-05 Thread Rusty Russell
Theoretical debates aside, now it boots. Signed-off-by: Rusty Russell --- tools/lguest/lguest.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/lguest/lguest.c b/tools/lguest/lguest.c index 32cf2ce15d69..3f7f2326cd9a 100644 --- a/tools/lguest/lguest.c +++ b/t

[PATCH 03/29] lguest: write more information to userspace about pending traps.

2015-02-05 Thread Rusty Russell
This is preparation for userspace handling MMIO and ioport accesses. Signed-off-by: Rusty Russell --- drivers/lguest/core.c | 7 --- drivers/lguest/hypercalls.c | 7 --- drivers/lguest/lg.h | 3 ++- drivers/lguest/lguest_user.c| 14 +- include

[PATCH 02/29] lguest: add operations to get/set a register from the Launcher.

2015-02-05 Thread Rusty Russell
We use the ptrace API struct, and we currently don't let them set anything but the normal registers (we'd have to filter the others). Signed-off-by: Rusty Russell --- drivers/lguest/core.c | 8 +++ drivers/lguest/lg.h | 3 +++ drivers/lguest/lguest_user.c| 49

[PATCH 07/29] lguest: suppress PS/2 keyboard polling.

2015-02-05 Thread Rusty Russell
While hacking on getting I/O out to the lguest launcher, I noticed that returning 0xFF for the PS/2 keyboard status made it spin for a while thinking there was a key pending. Fix this by returning 1 instead of 0xFF. Signed-off-by: Rusty Russell --- tools/lguest/lguest.c | 4 1 file changed

[PATCH 06/29] lguest: send trap 13 through to userspace.

2015-02-05 Thread Rusty Russell
We copy 7 bytes at eip for userspace's instruction decode; we have to carefully handle the case where eip is at the end of a page. We can't leave this to userspace since kernel has all the page table decode logic. The decode logic moves to userspace, basically unchanged. Signed-off-by: Rusty Rus

[PATCH 05/29] lguest: add infrastructure to check mappings.

2015-02-05 Thread Rusty Russell
We normally abort the guest unconditionally when it gives us a bad address, but in the next patch we want to copy some bytes which may not be mapped. Signed-off-by: Rusty Russell --- drivers/lguest/lg.h | 1 + drivers/lguest/page_tables.c | 42 +-

[PATCH 04/29] lguest: add infrastructure for userspace to deliver a trap to the guest.

2015-02-05 Thread Rusty Russell
This is required for instruction emulation to move to userspace. Signed-off-by: Rusty Russell --- drivers/lguest/lguest_user.c| 19 +++ include/linux/lguest_launcher.h | 1 + 2 files changed, 20 insertions(+) diff --git a/drivers/lguest/lguest_user.c b/drivers/lguest/lguest

[PATCH 09/29] lguest: add iomem region, where guest page faults get sent to userspace.

2015-02-05 Thread Rusty Russell
This lets us implement PCI. Signed-off-by: Rusty Russell --- drivers/lguest/lg.h | 7 ++- drivers/lguest/lguest_user.c | 3 ++- drivers/lguest/page_tables.c | 33 ++--- drivers/lguest/x86/core.c| 19 ++- tools/lguest/lguest.c

[PATCH 00/29] lguest virtio PCI 1.0 adaptation.

2015-02-05 Thread Rusty Russell
Hi all! I've just spent a week changing lguest from its own custom virtio bus to PCI, and from legacy virtio to modern (1.0). I did this mainly to test the Linux implementation. The first 11 patches set up the framework for routing more traps to the Lguest launcher, so we can intercept i

[PATCH 08/29] lguest: don't disable iospace.

2015-02-05 Thread Rusty Russell
This no longer speeds up boot (IDE got better, I guess), but it does stop us probing for a PCI bus. Signed-off-by: Rusty Russell --- arch/x86/lguest/boot.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c index c1c1544b8485..47ec7f201d27

Re: [PATCH] dma: mmp-tdma: refine dma disable and dma-pos update

2015-02-05 Thread Zhangfei Gao
On 5 February 2015 at 20:54, Qiao Zhou wrote: > Below are the refinements. > 1. Set DMA abort bit when disabling dma channel. This will clear > the remaining data in dma FIFO, to fix channel-swap issue. > 2. Read DMA HW pointer when updating DMA status. Previously dma > position is calculated by a

[PATCH 2/5] virtio: Don't expose legacy block features when VIRTIO_BLK_NO_LEGACY defined.

2015-02-05 Thread Rusty Russell
This allows modern implementations to ensure they don't use legacy feature bits or SCSI commands (which are not used in v1.0 non-legacy). Signed-off-by: Rusty Russell --- include/uapi/linux/virtio_blk.h | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/includ

[PATCH 3/5] virtio: Don't expose legacy net features when VIRTIO_NET_NO_LEGACY defined.

2015-02-05 Thread Rusty Russell
In particular, the virtio header always has the u16 num_buffers field. We define a new 'struct virtio_net_modern_hdr' for this (rather than simply calling it 'struct virtio_net_hdr', to avoid nasty type errors if some parts of a project define VIRTIO_NET_NO_LEGACY and some don't. Signed-off-by: Ru

[PATCH 5/5] virtio: don't require a config space on the console device.

2015-02-05 Thread Rusty Russell
Strictly, it's only needed when we have features (size or multiport). Signed-off-by: Rusty Russell --- drivers/char/virtio_console.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 26afb56a8073..

[PATCH 4/5] virtio: Don't expose legacy config features when VIRTIO_CONFIG_NO_LEGACY defined.

2015-02-05 Thread Rusty Russell
The VIRTIO_F_ANY_LAYOUT and VIRTIO_F_NOTIFY_ON_EMPTY features are pre-1.0 only. Signed-off-by: Rusty Russell --- include/uapi/linux/virtio_config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/virtio_config.h b/include/uapi/linux/virtio_config.h index a6d0cdeaacd4..c

[PATCH 1/5] virtio: define VIRTIO_PCI_CAP_PCI_CFG in header.

2015-02-05 Thread Rusty Russell
This provides backdoor access to the device MMIOs, and every device should have one. From the virtio 1.0 spec (CS03): 4.1.4.7.1 Device Requirements: PCI configuration access capability The device MUST present at least one VIRTIO_PCI_CAP_PCI_CFG capability. Signed-off-by: Rusty Russell ---

[PATCH 0/5] virtio 1.0 cleanups and one fix.

2015-02-05 Thread Rusty Russell
Hi all, Some minor fixes for my virtio-next tree. Michael, does QEMU implement the (compuslory!) VIRTIO_PCI_CAP_PCI_CFG field? I'm guessing not, since it wasn't defined in the Linux header :( Rusty Russell (5): virtio: define VIRTIO_PCI_CAP_PCI_CFG in header. virtio: Don't expose le

Re: [PATCH] af_packet: don't pass empty blocks for PACKET_V3

2015-02-05 Thread Alexander Drozdov
On 06.02.2015 00:16:30 +0300 Guy Harris wrote: On Feb 5, 2015, at 12:01 PM, Willem de Bruijn wrote: On Wed, Feb 4, 2015 at 9:58 PM, Alexander Drozdov wrote: Don't close an empty block on timeout. Its meaningless to pass it to the user. Moreover, passing empty blocks wastes CPU & buffer spac

Re: [PATCH] mtd: update ops->oobretlen in concat_write_oob

2015-02-05 Thread Brian Norris
On Tue, Jan 20, 2015 at 10:35:32AM +0100, Niklas Cassel wrote: > In concat_read_oob both retlen and oobretlen is updated. > concat_write_oob previously only updated retlen. > > Signed-off-by: Niklas Cassel Pushed to l2-mtd.git. Thanks. Brian -- To unsubscribe from this list: send the line "unsu

RE: [PATCH v9 4/11] xfsprogs: xfs_io: add finsert command for insert range

2015-02-05 Thread Namjae Jeon
> Hi Namjae, Hi Dave, > > On Fri, Feb 06, 2015 at 10:40:33AM +1100, Dave Chinner wrote: > > On Thu, Jan 22, 2015 at 12:11:59AM +0900, Namjae Jeon wrote: > > > From: Namjae Jeon > > > > > > Add finsert command for fallocate FALLOC_FL_INSERT_RANGE flag. > > > > > > Signed-off-by: Namjae Jeon > > >

Re: [PATCH v4 02/10] mtd: st_spi_fsm: Fetch boot device locations from DT match tables

2015-02-05 Thread Brian Norris
On Wed, Jan 21, 2015 at 03:24:20PM +, Lee Jones wrote: > To trim down on the amount of properties used by this driver and to conform > to the newly agreed method of acquiring syscfg registers/offsets, we now > obtain this information using match tables. Where did this agreement happen? Are you

Re: [PATCH] mtd: denali: remove unnecessary stubs

2015-02-05 Thread Brian Norris
On Tue, Jan 13, 2015 at 01:29:17PM +0900, Masahiro Yamada wrote: > This driver uses NAND_ECC_HW_SYNDROME mode. The nand_scan_tail() > function would not complain about missing ecc->calculate, > ecc->correct, ecc->hwctl handlers. > > Signed-off-by: Masahiro Yamada Pushed to l2-mtd.git. Thanks.

Re: [PATCH v2] mtd: nand: omap: drop condition with no effect

2015-02-05 Thread Brian Norris
On Wed, Feb 04, 2015 at 12:24:06PM -0500, Nicholas Mc Guire wrote: > The if and the else branch code are identical - so the condition has no > effect on the effective code. This patch removes the condition and the > duplicated code and updates the documentation as suggested by > Roger Quadros . >

[RFC][PATCH v2 1/7] trace: fix the glob match in __unregister_ftrace_function_probe()

2015-02-05 Thread Al Viro
From: Al Viro For patterns starting with '*' we need to match against 'search', not 'glob'. Signed-off-by: Al Viro --- kernel/trace/ftrace.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 224e768..67ecd14 10064

[RFC][PATCH v2 6/7] trace: constify filter_parse_regex(), match_records(), ftrace_match() and ftrace_match_record()

2015-02-05 Thread Al Viro
From: Al Viro Stop modifying the glob in filter_parse_regex(); the only reason for doing that is one strlen() call done right after we'd stored that NUL and we can find the length of substring directly - we know where it starts and we know which byte were we trying to replace with NUL. With that

[RFC][PATCH v2 4/7] ftrace: switch matching to memcmp() and memmem()

2015-02-05 Thread Al Viro
From: Al Viro now we don't need the glob substring being matched to get NUL-terminated by filter_parse_regex() Signed-off-by: Al Viro --- kernel/trace/ftrace.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index

[RFC][PATCH v2 2/7] implement memmem()

2015-02-05 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- include/linux/string.h | 1 + lib/string.c | 34 ++ 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/include/linux/string.h b/include/linux/string.h index 2e22a2e..87f9fba 100644 --- a/include/li

[RFC][PATCH v2 5/7] trace: make filter_parse_regex() provide the length of substring to compare with

2015-02-05 Thread Al Viro
From: Al Viro By this point the only thing that cares about NUL-termination of substring found by filter_parse_regex() is strlen() done immediately by all its callers. Once we have found the length, that's it - we won't be looking at more than that many bytes in the substring in question

[RFC][PATCH v2 3/7] trace_events_filter.c: switch to memcmp() and memmem() for matching

2015-02-05 Thread Al Viro
From: Al Viro we know the lengths in advance... Signed-off-by: Al Viro --- kernel/trace/trace_events_filter.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c index ced69da..6c4a96b 100644 --

[RFC][PATCH v2 7/7] trace: constify glob arguments all way up to ftrace_function_set_regexp()

2015-02-05 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- include/linux/ftrace.h | 8 kernel/trace/ftrace.c | 14 +++--- kernel/trace/trace_events_filter.c | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/linux/ftrace.h b/include/linux/

Re: [PATCH] llist: Fix missing memory barrier

2015-02-05 Thread Pranith Kumar
Hi Mathieu, On Thu, Feb 5, 2015 at 10:06 PM, Mathieu Desnoyers wrote: > A smp_read_barrier_depends() appears to be missing in llist_del_first(). > It should only matter for Alpha in practice. Adding it after the check > of entry against NULL allows skipping the barrier in a common case. We recen

[PATCH net-next v2 1/7] r8152: adjust rx_bottom

2015-02-05 Thread Hayes Wang
If a error occurs when submitting rx, skip the remaining submissions and try to submit them again next time. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.

[PATCH net-next v2 0/7] r8152: adjust the code

2015-02-05 Thread Hayes Wang
V2: Correct the subject of patch #5. Replace "link feed" with "line feed". v1: Code adjustment. Hayes Wang (7): r8152: adjust rx_bottom r8152: adjust lpm timer r8152: check linking status with netif_carrier_ok r8152: check RTL8152_UNPLUG for rtl8152_close r8152: adjust the line feed for

[PATCH net-next v2 2/7] r8152: adjust lpm timer

2015-02-05 Thread Hayes Wang
Set LPM timer to 500us, except for RTL_VER_04 which doesn't link at USB 3.0. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 41a1cbc..ff122fa 100644 --- a/drive

[PATCH net-next v2 4/7] r8152: check RTL8152_UNPLUG for rtl8152_close

2015-02-05 Thread Hayes Wang
It is unnecessary to accress the hw register if the device is unplugged. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 6667809..aade7b5 100644 --- a/drivers/net/usb

[PATCH net-next v2 5/7] r8152: adjust the line feed for hw_features

2015-02-05 Thread Hayes Wang
Keep NETIF_F_HW_VLAN_CTAG_RX and NETIF_F_HW_VLAN_CTAG_TX at the same line. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index aade7b5..8bdd477 100644 --- a/drivers/net

[PATCH net-next v2 7/7] r8152: use BIT macro

2015-02-05 Thread Hayes Wang
Use BIT macro to replace (1 << bits). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 24e6aef9..5980ac6 100644 --- a/drivers/net/

[PATCH net-next v2 3/7] r8152: check linking status with netif_carrier_ok

2015-02-05 Thread Hayes Wang
Replace (tp->speed & LINK_STATUS) with netif_carrier_ok(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index ff122fa..6667809 100644 --- a/driv

[PATCH net-next v2 6/7] r8152: replace get_protocol with vlan_get_protocol

2015-02-05 Thread Hayes Wang
vlan_get_protocol() has been defined and use it to replace get_protocol(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 8bdd477..24e6aef9 100644

[Question] should we export set_suspend_voltage()?

2015-02-05 Thread Yi Zhang
Hi, Liam & Mark: seems at present, the set_suspend_voltage() is designed to cover the suspend voltage handling from board level, when the system enters into the suspend; but the behavior of my chip is as following: a) there are two sets of registers to configure one regulator's voltage separat

[PATCH] llist: Fix missing memory barrier

2015-02-05 Thread Mathieu Desnoyers
A smp_read_barrier_depends() appears to be missing in llist_del_first(). It should only matter for Alpha in practice. Adding it after the check of entry against NULL allows skipping the barrier in a common case. Signed-off-by: Mathieu Desnoyers CC: Huang Ying CC: Paul McKenney CC: David Howells

Re: [PATCH v9 4/11] xfsprogs: xfs_io: add finsert command for insert range

2015-02-05 Thread Dave Chinner
Hi Namjae, On Fri, Feb 06, 2015 at 10:40:33AM +1100, Dave Chinner wrote: > On Thu, Jan 22, 2015 at 12:11:59AM +0900, Namjae Jeon wrote: > > From: Namjae Jeon > > > > Add finsert command for fallocate FALLOC_FL_INSERT_RANGE flag. > > > > Signed-off-by: Namjae Jeon > > Signed-off-by: Ashish Sang

[RFC][PATCH] perf: Implement read_group() PMU operation

2015-02-05 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu Date: Thu Feb 5 20:56:20 EST 2015 -0300 Subject: [RFC][PATCH] perf: Implement read_group() PMU operation This is a lightly tested, exploratory patch to allow PMUs to return several counters at once. Appreciate any comments :-) Unlike normal hardware PMCs, the 24x7 coun

Re: [PATCH v8 2/2] drivers/gpio: Altera soft IP GPIO driver

2015-02-05 Thread Tien Hock Loh
On Wed, 2015-01-14 at 10:58 +0100, Linus Walleij wrote: > On Wed, Dec 24, 2014 at 9:22 AM, wrote: > > > From: Tien Hock Loh > > > > Adds a new driver for Altera soft GPIO IP. The driver is able to > > do read/write and allows GPIO to be a interrupt controller. > > > > Tested on Altera GHRD on i

Re: [PATCH v5 3/5] x86: Split syscall_trace_enter into two phases

2015-02-05 Thread Andy Lutomirski
On Thu, Feb 5, 2015 at 6:32 PM, Dmitry V. Levin wrote: > On Thu, Feb 05, 2015 at 04:09:06PM -0800, Andy Lutomirski wrote: >> On Thu, Feb 5, 2015 at 3:49 PM, Kees Cook wrote: >> > On Thu, Feb 5, 2015 at 3:39 PM, Dmitry V. Levin wrote: > [...] >> >> There is a clear difference: before these change

Re: [alsa-devel] [PATCH baohua] ASoC: sirf: atlas7: atlas7_iacc_dai_ops can be static

2015-02-05 Thread Barry Song
2015-02-06 1:11 GMT+08:00 Mark Brown : > On Fri, Feb 06, 2015 at 01:03:52AM +0800, kbuild test robot wrote: >> sound/soc/sirf/atlas7-iacc.c:168:24: sparse: symbol 'atlas7_iacc_dai_ops' >> was not declared. Should it be static? > > This file isn't in an upstream tree, should this patch have been se

Re: [PATCH v5 3/5] x86: Split syscall_trace_enter into two phases

2015-02-05 Thread Dmitry V. Levin
On Thu, Feb 05, 2015 at 04:09:06PM -0800, Andy Lutomirski wrote: > On Thu, Feb 5, 2015 at 3:49 PM, Kees Cook wrote: > > On Thu, Feb 5, 2015 at 3:39 PM, Dmitry V. Levin wrote: [...] > >> There is a clear difference: before these changes, SECCOMP_RET_ERRNO used > >> to keep the syscall number uncha

[PATCH v2] modify the IO_TLB_SEGSIZE to io_tlb_segsize configurable as flexible requirement about SW-IOMMU.

2015-02-05 Thread Wang Xiaoming
The maximum of SW-IOMMU is limited to 2^11*128 = 256K. While in different platform and different requirements this seems improper. So modifing the IO_TLB_SEGSIZE to io_tlb_segsize which can configure by kernel cmdline. Signed-off-by: Chuansheng Liu Signed-off-by: Zhang Dongxing Signed-off-by: Wa

Re: [RFC] Input - synaptics: re-route tracksticks buttons on the Lenovo 2015 series

2015-02-05 Thread Benjamin Tissoires
On Thu, Feb 5, 2015 at 8:49 PM, Dmitry Torokhov wrote: > On Thu, Feb 05, 2015 at 05:33:07PM -0800, Andrew Duggan wrote: >> On 02/05/2015 12:38 PM, Benjamin Tissoires wrote: >> >Lenovos 2015 series has the physical tracktick buttons wired >> >through the touchpad. The kernel should re-route them th

Re: [Cocci] [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-05 Thread Stephen Boyd
On 02/05/15 07:45, Quentin Lambert wrote: > > On 05/02/2015 00:26, Stephen Boyd wrote: >>> If you want me to I can enlarge the search to other directories. >> Yes please do. And if you could share the coccinelle patch that would be >> great. Thanks. >> > structclk.cocci is the coccinelle patch > st

Re: [PATCH v3 08/13] mtd: st_spi_fsm: Update the JEDEC probe to handle extended READIDs

2015-02-05 Thread Brian Norris
On Wed, Jan 21, 2015 at 01:02:04PM +, Lee Jones wrote: > On Mon, 12 Jan 2015, Brian Norris wrote: > > On Mon, Dec 15, 2014 at 11:59:15AM +, Lee Jones wrote: > > > The previous code was based on 3-byte JEDEC IDs, with a possible 2-byte > > > extension. However, devices are now emerging that

Re: [PATCH v3 00/13] mtd: st_spi_fsm: Align with ST's internal development

2015-02-05 Thread Brian Norris
On Wed, Jan 21, 2015 at 12:49:30PM +, Lee Jones wrote: > On Mon, 12 Jan 2015, Brian Norris wrote: > > Typically "simpler" and "reducing the cost of having lots of extra DT > > properties" aren't good enough reasons for immediately breaking an > > existing DT binding. We usually expect to suppor

Re: [PATCH 2/4] Input - synaptics: do not release extra buttons once they are pressed

2015-02-05 Thread Andrew Duggan
On 02/04/2015 01:29 PM, Benjamin Tissoires wrote: On Feb 02 2015 or thereabouts, Benjamin Tissoires wrote: On Mon, Feb 2, 2015 at 4:46 PM, Dmitry Torokhov wrote: On Wed, Jan 28, 2015 at 03:10:05PM -0500, Benjamin Tissoires wrote: The current code releases the extra buttons right after they ar

Re: [PATCH] i40e: fix sparse warning

2015-02-05 Thread Jeff Kirsher
On Thu, 2015-02-05 at 15:13 +, Lad Prabhakar wrote: > From: "Lad, Prabhakar" > > this patch fixes following sparse warning: > > i40e_lan_hmc.c:911:24: warning: constant 0x is so big > it is unsigned long > > Signed-off-by: Lad, Prabhakar > --- > Found this issue on linux-n

Re: [RFC] Input - synaptics: re-route tracksticks buttons on the Lenovo 2015 series

2015-02-05 Thread Dmitry Torokhov
On Thu, Feb 05, 2015 at 05:33:07PM -0800, Andrew Duggan wrote: > On 02/05/2015 12:38 PM, Benjamin Tissoires wrote: > >Lenovos 2015 series has the physical tracktick buttons wired > >through the touchpad. The kernel should re-route them through > >the pass-through interface. > > > >Signed-off-by: Be

Re: [Cocci] [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-05 Thread Stephen Boyd
On 02/05/15 08:02, Quentin Lambert wrote: > Sorry let me do that properly. > > On 05/02/2015 16:45, Quentin Lambert wrote: >> >> On 05/02/2015 00:26, Stephen Boyd wrote: If you want me to I can enlarge the search to other directories. >>> Yes please do. And if you could share the coccinelle pa

Re: [RFC PATCH 5/8] KEYS: exec request-key within the requesting task's init namespace

2015-02-05 Thread Ian Kent
On Thu, 2015-02-05 at 15:14 +, David Howells wrote: > > > + /* If running within a container use the container namespace */ > > + if (current->nsproxy->net_ns != &init_net) > > Is that a viable check? Is it possible to have a container that shares > networking details? That's up for dis

Re: [PATCH v2] inotify: update documentation to reflect code changes

2015-02-05 Thread Zhang Zhen
Hi Andrew Morton, I noticed there is no a git tree about notify, and i don't know which tree this patch should be included in. Can you include this patch in your git tree? Best regards! On 2015/2/5 22:49, Jan Kara wrote: > On Wed 04-02-15 11:01:56, Zhang Zhen wrote: >> The inotify interface has c

[PATCH v2] clkdev: Always allocate a struct clk and call __clk_get() w/ CCF

2015-02-05 Thread Stephen Boyd
of_clk_get_by_clkspec() returns a struct clk pointer but it doesn't create a new handle for the consumers when we're using the common clock framework. Instead it just returns whatever the clk provider hands out. When the consumers go to call clk_put() we get an Oops. Unable to handle kernel paging

Re: [RFC] Input - synaptics: re-route tracksticks buttons on the Lenovo 2015 series

2015-02-05 Thread Andrew Duggan
On 02/05/2015 12:38 PM, Benjamin Tissoires wrote: Lenovos 2015 series has the physical tracktick buttons wired through the touchpad. The kernel should re-route them through the pass-through interface. Signed-off-by: Benjamin Tissoires --- Hi Dmitry, Well, in one of your replies regarding the

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-05 Thread Stephen Boyd
On 02/05/15 16:42, Russell King - ARM Linux wrote: > On Thu, Feb 05, 2015 at 02:14:01PM -0800, Stephen Boyd wrote: >> Actually we can bury the __clk_create_clk() inside >> __of_clk_get_from_provider(). We should also move __clk_get() into there >> because right now we have a hole where whoever call

Re: [PATCH] ixgbe: fix sparse warnings

2015-02-05 Thread Jeff Kirsher
On Thu, 2015-02-05 at 14:27 +, Lad Prabhakar wrote: > From: "Lad, Prabhakar" > > this patch fixes following sparse warnings: > > ixgbe_x550.c:83:5: warning: symbol 'ixgbe_init_eeprom_params_X550' was > not declared. Should it be static? > ixgbe_x550.c:113:5: warning: symbol 'ixgbe_read_iosf_

Re: [PATCH] sched, autogroup: Fix failure when writing to cpu.rt_runtime_us

2015-02-05 Thread Zefan Li
On 2015/2/5 22:25, Peter Zijlstra wrote: > On Thu, Feb 05, 2015 at 04:33:24PM +0800, Zefan Li wrote: >> This is how to reproduce the bug: >> >> int main() { >> struct sched_param param = {.sched_priority=1}; >> >> if (fork() > 0) >> exit(0); >> >> setsid(); >> >> if (sched_s

  1   2   3   4   5   6   7   8   >