[PATCH v3] ksm: fix conflict between mmput and scan_get_next_rmap_item

2016-05-08 Thread Zhou Chengming
A concurrency issue about KSM in the function scan_get_next_rmap_item. task A (ksmd): |task B (the mm's task): | mm = slot->mm; | down_read(&mm->mmap_sem); |

RE: [PATCH] debugobjects: insulate non-fixup logic related to static obj from fixup callbacks

2016-05-08 Thread Du, Changbin
> From: Thomas Gleixner [mailto:t...@linutronix.de] > Can you please fix your mail client. Every mail you send has: > > Cc: . > "Du, Changbin" , > Du > > And that stray 'Du' is just broken. > Yes, I should add "" around my name or fix the git-sendemail perl script. The script may add

Re: sched: tweak select_idle_sibling to look for idle threads

2016-05-08 Thread Mike Galbraith
On Sat, 2016-05-07 at 09:24 +0800, Yuyang Du wrote: > On Sun, May 01, 2016 at 11:20:25AM +0200, Mike Galbraith wrote: > > Playing with Chris' benchmark, seems the biggest problem is that we > > don't buddy up waker of many and it's wakees in a node.. ie the wake > > wide thing isn't necessarily ou

Re: [PATCH] target: need_to_release is always false, remove redundant check and kfree

2016-05-08 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH 1/6] statx: Add a system call to make enhanced file info available

2016-05-08 Thread Christoph Hellwig
> int ret = statx(int dfd, > const char *filename, > unsigned int flags, > unsigned int mask, > struct statx *buffer); Please move the flags and mask after the buffer, similar to how all the AT_ flags wer

Re: [PATCH 3/6] statx: Ext4: Return enhanced file attributes

2016-05-08 Thread Christoph Hellwig
On Fri, Apr 29, 2016 at 01:57:59PM +0100, David Howells wrote: > (3) FS_xxx_FL flags are returned as for ioctl(FS_IOC_GETFLAGS), setting > STATX_IOC_FLAGS. Doesn't look like it is. Which actually is a good thing given how much of a mess FS_IOC_GETFLAGS is.

Re: [PATCH 5/6] statx: Make windows attributes available for CIFS, NTFS and FAT to use

2016-05-08 Thread Christoph Hellwig
On Fri, Apr 29, 2016 at 01:58:14PM +0100, David Howells wrote: > Make windows attributes available for CIFS, NTFS and FAT to use in the > statx struct. The attribute flags map directly by value to those in the > CIFS PDU flags. Some of these bits can also be used by JFS, UFS and HPFS. Err, no wa

Re: [PATCH v5 3/5] dax: use sb_issue_zerout instead of calling dax_clear_sectors

2016-05-08 Thread Christoph Hellwig
On Fri, May 06, 2016 at 03:53:09PM -0600, Vishal Verma wrote: > From: Matthew Wilcox > > dax_clear_sectors() cannot handle poisoned blocks. These must be > zeroed using the BIO interface instead. Convert ext2 and XFS to use > only sb_issue_zerout(). > > Signed-off-by: Matthew Wilcox > [vishal

Re: [PATCH v5 0/5] dax: handling media errors (clear-on-zero only)

2016-05-08 Thread Christoph Hellwig
This series looks fine to me: Reviewed-by: Christoph Hellwig

Re: [PATCH v3 1/5] block: Add vfs_msg() interface

2016-05-08 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH v3 2/5] block: Add bdev_supports_dax() for dax mount checks

2016-05-08 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH v3 5/5] xfs: Add alignment check for DAX mount

2016-05-08 Thread Christoph Hellwig
Looks fine for now. In the long run we'll need to check it for the RT subvolume as well, or prohibit DAX if there is an active RT subvolume. Reviewed-by: Christoph Hellwig

Re: [PATCH v3 4/5] ext2: Add alignment check for DAX mount

2016-05-08 Thread Christoph Hellwig
Not really for the patch, but given that we have the right people on CC: Do we really want to keep DAX support in ext2 in the long run? ext2 is missing a lot of the useful features for a modern FS, shouldn't we direct people to use ext4 (in non-journal mode if needed) if they want to use DAX? ex

Re: [PATCH v4 5/7] fs: prioritize and separate direct_io from dax_io

2016-05-08 Thread h...@infradead.org
On Thu, May 05, 2016 at 09:45:07PM +, Verma, Vishal L wrote: > I'm not sure I completely understand how this will work? Can you explain > a bit? Would we have to export rw_bytes up to layers above the pmem > driver? Where does get_user_pages come in? A DAX filesystem can directly use the nvdim

Re: [PATCH v4 5/7] fs: prioritize and separate direct_io from dax_io

2016-05-08 Thread h...@infradead.org
On Thu, May 05, 2016 at 09:39:14PM +, Verma, Vishal L wrote: > How is it any 'less direct'? All it does now is follow the blockdev > O_DIRECT path. There still isn't any page cache involved.. It's still more overhead than the play DAX I/O path.

Re: sound: deadlock involving snd_hrtimer_callback

2016-05-08 Thread Takashi Iwai
On Wed, 04 May 2016 10:34:33 +0200, Dmitry Vyukov wrote: > > On Mon, May 2, 2016 at 1:54 PM, Dmitry Vyukov wrote: > > On Sun, Apr 24, 2016 at 11:31 PM, Takashi Iwai wrote: > >> On Sun, 24 Apr 2016 19:09:48 +0200, > >> Dmitry Vyukov wrote: > >>> > >>> On Sun, Apr 24, 2016 at 6:16 PM, Takashi Iwai

Re: [PATCH v6 10/11] x86/KASLR: Add physical address randomization >4G

2016-05-08 Thread Baoquan He
On 05/06/16 at 08:31am, Kees Cook wrote: > On Fri, May 6, 2016 at 1:27 AM, Baoquan He wrote: > > Hi Kees, > > > > On 05/05/16 at 03:13pm, Kees Cook wrote: > >> From: Baoquan He > >> > >> This patch exchanges the prior slots[] array for the new slot_areas[] > >> array, and lifts the limitation of

Re: [PATCH v2 1/2] mm, kasan: improve double-free detection

2016-05-08 Thread Yury Norov
On Sat, May 07, 2016 at 03:15:59PM +, Luruo, Kuthonuzo wrote: > Thank you for the review! > > > > + switch (alloc_data.state) { > > > + case KASAN_STATE_QUARANTINE: > > > + case KASAN_STATE_FREE: > > > + kasan_report((unsigned long)object, 0, false, > > > + (uns

[PATCH] clk: samsung: exynos5420: Remove useless check for return value of samsung_clk_init

2016-05-08 Thread Krzysztof Kozlowski
The samsung_clk_init() cannot return NULL. Either it returns allocated memory or it panics. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos5420.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.

Re: [PATCH v5 0/8] block: prepare for multipage bvecs

2016-05-08 Thread Christoph Hellwig
On Tue, May 03, 2016 at 09:03:58AM +0800, Ming Lei wrote: > Any possibility to make v5 into v4.7 so that we can move on about > multipage bvecs? > > BTW, even though not considering mp bvecs, this patchset is still a > good cleanup. Agreed. I'm fine with the series and it looks harmless enough f

Re: [PATCH] infoleak fix1 in timer

2016-05-08 Thread Takashi Iwai
On Tue, 03 May 2016 22:44:07 +0200, Kangjie Lu wrote: > > The stack object “tread” has a total size of 32 bytes. Its field > “event” and “val” both contain 4 bytes padding. These 8 bytes > padding bytes are sent to user without being initialized. > > Signed-off-by: Kangjie Lu Thanks, I applied

Re: [patch] ALSA: isa/wavefront: prevent some out of bound writes

2016-05-08 Thread Takashi Iwai
On Wed, 04 May 2016 08:27:37 +0200, Dan Carpenter wrote: > > "header->number" can be up to USHRT_MAX and it comes from the ioctl so > it needs to be capped. > > Signed-off-by: Dan Carpenter Applied, thanks. Takashi > > diff --git a/sound/isa/wavefront/wavefront_synth.c > b/sound/isa/wavefr

Re: [PATCH 0/6] Intel Secure Guard Extensions

2016-05-08 Thread Dr. Greg Wettstein
Hi, I hope the weekend is going well for everyone. On Fri, May 06, 2016 at 02:39:44PM +0300, Jarkko Sakkinen wrote: > On Tue, May 03, 2016 at 04:06:27AM -0500, Dr. Greg Wettstein wrote: > > It would be helpful and instructive for anyone involved in this debate > > to review the following URL which

Re: Regression of v4.6-rc vs. v4.5 bisected: a98ee79317b4 "drm/i915/fbc: enable FBC by default on HSW and BDW"

2016-05-08 Thread Stefan Richter
On May 05 Zanoni, Paulo R wrote: > If you don't want to keep carrying a manual revert, you can just boot > with i915.enable_fbc=0 for now (or write a /etc/modprobe.d file). Also, > it would be good to know in case you still somehow see the machine > hangs even with FBC disabled. As expected, i915.

Re: [PATCH] fix infoleak in fcntl

2016-05-08 Thread Christoph Hellwig
On Tue, May 03, 2016 at 04:34:09PM -0400, Kangjie Lu wrote: > The stack object ???si??? has a total size of 128 bytes; however, only > 16 bytes are initialized. The remaining uninitialized bytes are > sent to userland via send_signal. > > Signed-off-by: Kangjie Lu Looks fine, Reviewed-by: Chris

Re: [PATCH 1/2] Staging: android: ion: fixes use of typedef

2016-05-08 Thread Thimo Braker
On 8-5-2016 4:46, Greg KH wrote: You just broke userspace :( [..] (hint, they have uapi in the path) I see I need to get used to some names ( now you say it, Uapi is quite logical ). Thanks for the feedback. Thimo B.

[PATCH 2/2] iommu/io-pgtable-arm: use __dma_sync_single_for_device()

2016-05-08 Thread Niklas Söderlund
The call to dma_sync_single_for_device() can be reached from dma_map_single(). If CONFIG_DMA_API_DEBUG is enabled this would result in a check that the mapping being synced is valid. Since the call to dma_map_single is not yet completed the mapping is not recorded in dma-debug and the check fails a

[PATCH 1/2] dma-mapping: add __dma_sync_single_for_device()

2016-05-08 Thread Niklas Söderlund
Some users of the DMA mapping API calls dma_sync_single_for_device() from the dma_map_single() call path. This will cause false warning printouts if CONFIG_DMA_API_DEBUG are enabled. The reason for the warning are that debug_dma_sync_single_for_device() will be called before debug_dma_map_page() s

[PATCH 0/2] Fix incorrect warning from dma-debug

2016-05-08 Thread Niklas Söderlund
Hi, While using CONFIG_DMA_API_DEBUG i came across this warning which I think is a false positive. As shown dma_sync_single_for_device() are called from the dma_map_single() call path. This triggers the warning since the dma-debug code have not yet been made aware of the mapping. I try to solve t

Re: Regression of v4.6-rc vs. v4.5 bisected: a98ee79317b4 "drm/i915/fbc: enable FBC by default on HSW and BDW"

2016-05-08 Thread Stefan Richter
On May 08 Stefan Richter wrote: > On May 05 Zanoni, Paulo R wrote: > > If you don't want to keep carrying a manual revert, you can just boot > > with i915.enable_fbc=0 for now (or write a /etc/modprobe.d file). Also, > > it would be good to know in case you still somehow see the machine > > hangs e

[PATCH v2 1/1] Staging: android: uapi: ion: Fixes indentation

2016-05-08 Thread Thimo Braker
Fixes the indentation before variable names. Signed-off-by: Thimo Braker --- drivers/staging/android/uapi/ion.h | 20 ++-- drivers/staging/android/uapi/ion_test.h | 10 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/android/uapi/i

Re: usb: dwc2: regression on MyBook Live Duo / Canyonlands since 4.3.0-rc4

2016-05-08 Thread Christian Lamparter
On Sunday, May 08, 2016 08:40:55 PM Benjamin Herrenschmidt wrote: > On Sun, 2016-05-08 at 00:54 +0200, Christian Lamparter via Linuxppc-dev > wrote: > > I've been looking in getting the MyBook Live Duo's USB OTG port > > to function. The SoC is a APM82181. Which has a PowerPC 464 core > > and rela

Re: Regression of v4.6-rc vs. v4.5 bisected: a98ee79317b4 "drm/i915/fbc: enable FBC by default on HSW and BDW"

2016-05-08 Thread Stefan Richter
On May 06 Daniel Vetter wrote: > On Thu, May 05, 2016 at 10:45:31PM +0200, Stefan Richter wrote: [...] > > Subtest fbc-1p-primscrn-spr-indfb-fullscreen: FAIL (5.876s) > > This one failed in both runs. Can you please retest with just that using > > # kms_frontbuffer_tracking --run-subtest fbc-1p

Re: [PATCH 2/3] net/mlx5e: make VXLAN support conditional

2016-05-08 Thread Saeed Mahameed
On Fri, May 6, 2016 at 10:35 PM, David Miller wrote: > From: Arnd Bergmann > Date: Thu, 05 May 2016 20:09:19 +0200 > >> For reference, I've tried it out on the MLX4 driver, and it does >> seem nicer that way, see below. > > Is it possible to wind down this conversation and have someone submit > w

[PATCH v4] ksm: fix conflict between mmput and scan_get_next_rmap_item

2016-05-08 Thread Zhou Chengming
A concurrency issue about KSM in the function scan_get_next_rmap_item. task A (ksmd): |task B (the mm's task): | mm = slot->mm; | down_read(&mm->mmap_sem); |

Re: [PATCH v3] ksm: fix conflict between mmput and scan_get_next_rmap_item

2016-05-08 Thread zhouchengming
Please ignore this patch v3. I forgot to change the function unmerge_and_remove_all_rmap_items(). Patch v4 will be the final version, I think.. Sorry for my carelessness. Thanks! On 2016/5/8 14:56, Zhou Chengming wrote: A concurrency issue about KSM in the function scan_get_next_rmap_item. tas

Re: [PATCH V4 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-08 Thread Jon Hunter
On 06/05/16 16:32, Laxman Dewangan wrote: > > On Friday 06 May 2016 08:07 PM, Jon Hunter wrote: >> On 06/05/16 11:45, Laxman Dewangan wrote: >> + >> +/* Last entry */ >> +TEGRA_IO_PAD_MAX, >> Nit should these be TEGRA_IO_PADS_xxx? > > Because this was name of single pad and hence I said

Re: [PATCH V2 13/14] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-05-08 Thread Jon Hunter
Hi Geert, On 07/05/16 15:10, Geert Uytterhoeven wrote: > Hi Jon, > > On Fri, May 6, 2016 at 10:32 AM, Jon Hunter wrote: >>> The "nvidia,tegra210-agic" string can be taken as describing any >>> Tegra-210 specific integration quirks, though I agree that's also not >>> fantastic for extending PM su

Re: [PATCH 1/3] dt-bindings: bus: Add documentation for Tegra210 ACONNECT

2016-05-08 Thread Jon Hunter
On 05/05/16 17:48, Rob Herring wrote: > On Thu, May 5, 2016 at 9:39 AM, Jon Hunter wrote: >> >> On 03/05/16 19:22, Rob Herring wrote: >>> On Fri, Apr 29, 2016 at 02:53:45PM +0100, Jon Hunter wrote: Add binding documentation for the Tegra ACONNECT bus that is part of the Audio Processing

[PATCH 1/2] checkpatch: Reduce number of `git log` calls with --git

2016-05-08 Thread Joe Perches
checkpatch currently calls git log multiple times to first get the sha1 values and again to get the subject for each individual sha1 commit. Always get the sha1 and subject at the same time instead. Store the subject in a sha1 hash to avoid the second git log exec. Signed-off-by: Joe Perches --

[PATCH 2/2] checkpatch: Improve --git shortcut

2016-05-08 Thread Joe Perches
The --git shortcut can be confused by a tag with a dash like v4.4-rc1. Improve the test to verify the expression ends with a dash followed by a numeric value. Improve the git log result to verify the " " output as well. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 10 -- 1

Re: [PATCH] fix infoleak in fcntl

2016-05-08 Thread Richard Weinberger
On Tue, May 3, 2016 at 10:34 PM, Kangjie Lu wrote: > The stack object “si” has a total size of 128 bytes; however, only > 16 bytes are initialized. The remaining uninitialized bytes are > sent to userland via send_signal. How did you find all these leaks? Since you sent more than one patch I gues

[PATCH v8 2/3] gpio: mmio: add DT support for memory-mapped GPIOs

2016-05-08 Thread Christian Lamparter
From: Álvaro Fernández Rojas This patch adds support for defining memory-mapped GPIOs which are compatible with the existing gpio-mmio interface. The generic library provides support for many memory-mapped GPIO controllers that are found in various on-board FPGA and ASIC solutions that are used t

[PATCH v8 3/3] gpio: move clps711x, moxart, ts4800 and gpio-ge into gpio-mmio

2016-05-08 Thread Christian Lamparter
This patch integrates the GPIO drivers for the following boards, SoCs, etc. into gpio-mmio: - CLPS711X SoCs - MOXA ART SoC - TS-4800 FPGA DIO blocks and compatibles - GPIO controllers found on some GE Single Board Computers Cc: Alexander Shiyan Cc: Julien Grossholtz Cc: Martyn Welch Cc: Jon

[PATCH v8 1/3] gpio: dt-bindings: add wd,mbl-gpio bindings

2016-05-08 Thread Christian Lamparter
This patch adds the device tree bindings for the Western Digital's MyBook Live memory-mapped GPIO controllers. The gpios will be supported by gpio-mmio code of the GPIO generic library. Acked-by: Rob Herring Signed-off-by: Christian Lamparter --- .../devicetree/bindings/gpio/wd,mbl-gpio.txt

[PATCH v8 0/3] gpio: add DT support for memory-mapped GPIOs

2016-05-08 Thread Christian Lamparter
This patch series adds device tree support for generic memory-mapped GPIOs. The GPIO library already allows drivers and architecture support code to reuse generic code for managing a GPIO chip. Currently, a developer has to create a platform device "basic-mmio-gpio" and attach a bgpio_pdata platfor

[PATCH] tmpfs: don't undo fallocate past its last page

2016-05-08 Thread Anthony Romano
When fallocate is interrupted it will undo a range that extends one byte past its range of allocated pages. This can corrupt an in-use page by zeroing out its first byte. Instead, undo using the inclusive byte range. Signed-off-by: Anthony Romano --- mm/shmem.c | 2 +- 1 file changed, 1 insertio

Re: [patch V4] lib: GCD: Use binary GCD algorithm instead of Euclidean

2016-05-08 Thread Zhaoxiu Zeng
在 2016/5/7 16:41, George Spelvin 写道: > Nothing critical, but a bit of kibitzing. > (That is slang in the Yiddish language for a person > who offers annoying and unwanted advice.) > >> The binary GCD algorithm is based on the following facts: >> 1. If a and b are all evens, then gcd(a,b) = 2 *

Re: [PATCH v8 0/3] gpio: add DT support for memory-mapped GPIOs

2016-05-08 Thread Andy Shevchenko
On Sun, May 8, 2016 at 4:08 PM, Christian Lamparter wrote: > This patch series adds device tree support for generic memory-mapped GPIOs. > The GPIO library already allows drivers and architecture support code to > reuse generic code for managing a GPIO chip. Currently, a developer has > to create

Re: [PATCH V4 0/4] Code refine for Intel IOMMU

2016-05-08 Thread Wei Yang
Ping~ On Thu, Apr 14, 2016 at 02:55:06PM +, Wei Yang wrote: >These four patches try to refine the Intel IOMMU. > > >

[PATCH] md: make the code more readable in the for-loop

2016-05-08 Thread Tiezhu Yang
This patch modifies raid1.c, raid10.c and raid5.c to make the code more readable in the for-loop and also fixes the scripts/checkpatch.pl error: ERROR: trailing statements should be on next line. Signed-off-by: Tiezhu Yang --- drivers/md/raid1.c | 6 +++--- drivers/md/raid10.c | 2 +- drivers

RE: [PATCH v2 1/2] net: nps_enet: Sync access to packet sent flag

2016-05-08 Thread Elad Kanfi
Hi Lino, > Please see sections "SMP BARRIER PAIRING" and "EXAMPLES OF MEMORY BARRIER > SEQUENCES" in > memory-barriers.txt for a description why smp barriers have to be paired and > a smp write barrier on CPU A without a read barrier on CPU B is _not_ > sufficient. > > Furthermore after having

[PATCH] Staging: wlan-ng: fix comments style

2016-05-08 Thread YU Bo
The patch fixed warning reported by checkpatch.pl: Block comments use a trailing */ on a separate line. Signed-off-by: YU Bo --- drivers/staging/wlan-ng/prism2mgmt.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2mgmt.h b/drivers/stagin

[PATCH] fix a kernel infoleak in x25 module

2016-05-08 Thread Kangjie Lu
Stack object "dte_facilities" is allocated in x25_rx_call_request(), which is supposed to be initialized in x25_negotiate_facilities. However, 5 fields (8 bytes in total) are not initialized. This object is then copied to userland via copy_to_user, thus infoleak occurs. Signed-off-by: Kangjie Lu

RE: [PATCH] debugobjects: insulate non-fixup logic related to static obj from fixup callbacks

2016-05-08 Thread Thomas Gleixner
On Sun, 8 May 2016, Du, Changbin wrote: > > From: Thomas Gleixner [mailto:t...@linutronix.de] > > > raw_spin_unlock_irqrestore(&db->lock, flags); > > > /* > > > - * Maybe the object is static. Let the type specific > > > + * Maybe the object is static. Let the

Re: [PATCH v7 2/2] memory: atmel-ebi: add DT bindings documentation

2016-05-08 Thread Boris Brezillon
Hi Rob, On Tue, 3 May 2016 14:11:04 -0500 Rob Herring wrote: > On Tue, May 3, 2016 at 11:51 AM, Boris Brezillon > wrote: > > Hi Rob, > > > > On Tue, 3 May 2016 11:40:19 -0500 > > Rob Herring wrote: > > > >> On Thu, Apr 28, 2016 at 02:03:27PM +0200, Boris Brezillon wrote: > >> > The EBI (Extern

Re: [PATCH] irqchip/gicv3-its: Implement two-level(indirect) device table support

2016-05-08 Thread Shanker Donthineni
Hi Marc, On 05/06/2016 09:22 AM, Marc Zyngier wrote: > Hi Shanker, > > Thanks for putting this together. Comments below: > > On Fri, 6 May 2016 08:43:36 -0500 > Shanker Donthineni wrote: > >> Since device IDs are extremely sparse, the single, a.k.a flat table is >> not sufficient for the followi

Re: [lkp] [string_helpers] 726ecfc321: test_string_helpers: Test 'test_string_get_size_one' failed!

2016-05-08 Thread Greg Kroah-Hartman
On Fri, May 06, 2016 at 10:30:14AM +0200, Vitaly Kuznetsov wrote: > kernel test robot writes: > > > FYI, we noticed the following commit: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git > > linux-4.4.y > > commit 726ecfc321994ec6ab044c1e3e5886408de991ac ("string_h

Re: [PATCH v8 2/3] gpio: mmio: add DT support for memory-mapped GPIOs

2016-05-08 Thread Joachim Eastwood
Hi Christian, On 8 May 2016 at 15:08, Christian Lamparter wrote: > From: Álvaro Fernández Rojas > > This patch adds support for defining memory-mapped GPIOs which > are compatible with the existing gpio-mmio interface. The generic > library provides support for many memory-mapped GPIO controller

Re: [PATCH v9 net-next 1/2] hv_sock: introduce Hyper-V Sockets

2016-05-08 Thread David Miller
From: Dexuan Cui Date: Sun, 8 May 2016 06:11:04 + > Thanks for pointing this out! > I understand, so I think I should add a module parameter, e.g., > "hv_sock.max_socket_number" with a default value, say, 1024? No, you should get rid of the huge multi-page buffers.

Re: [PATCH] drm: sun4i: fix probe error handling

2016-05-08 Thread Maxime Ripard
On Thu, May 05, 2016 at 10:10:52PM +0200, Arnd Bergmann wrote: > gcc points out a possible uninitialized variable use in > sun4i_dclk_create(): > > drivers/gpu/drm/sun4i/sun4i_dotclock.c: In function 'sun4i_dclk_create': > drivers/gpu/drm/sun4i/sun4i_dotclock.c:139:12: error: 'clk_name' may be use

Re: [PATCHv4] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-08 Thread Maxime Ripard
On Thu, May 05, 2016 at 11:08:52AM +0200, Olliver Schinagl wrote: > There are 3 kinds of OLinuXino Lime2 boards. > One without any on board storage, one with NAND storage and one with > eMMC storage. This patch adds the eMMC variant of boards. > > eMMC storage is different from a regular SD card i

Re: [PATCH 1/2] net: phy: add ethtool_phy_{get|set}_link_ksettings

2016-05-08 Thread Florian Fainelli
On May 7, 2016 3:56:34 PM PDT, Philippe Reynes wrote: >On 07/05/16 13:59, Ben Hutchings wrote: >> On Sat, 2016-05-07 at 01:18 +0200, Philippe Reynes wrote: >>> The callback {get|set}_link_ksettings are often defined >>> in a very close way. There are mainly two differences in >>> those callback: >

Re: [PATCH v8 2/3] gpio: mmio: add DT support for memory-mapped GPIOs

2016-05-08 Thread Christian Lamparter
On Sunday, May 08, 2016 07:17:13 PM Joachim Eastwood wrote: > > +#define ADD(_name, _func) { .compatible = _name, .data = _func } > > I don't see the point in having a macro for such a simple data > structure, but since this v8 and Linus hasn't complained I guess it's > fine. > > Using a macro her

[PATCH] mount -o noexdev

2016-05-08 Thread Alexey Dobriyan
Searching for "rename bint mount exdev" shows that failure with EXDEV seems somewhat unintuitive behaviour. Allow users to bypass this restriction with "-o noexdev" flag if the source of operation is on such mount. Keep old semantics default so "mount --bind /tmp /tmp" works. "mount --bind" will

Re: [PATCH v4 5/7] fs: prioritize and separate direct_io from dax_io

2016-05-08 Thread Verma, Vishal L
On Sun, 2016-05-08 at 02:01 -0700, h...@infradead.org wrote: > On Thu, May 05, 2016 at 09:45:07PM +, Verma, Vishal L wrote: > > > > I'm not sure I completely understand how this will work? Can you > > explain > > a bit? Would we have to export rw_bytes up to layers above the pmem > > driver? W

Re: [PATCH v5 3/5] dax: use sb_issue_zerout instead of calling dax_clear_sectors

2016-05-08 Thread Verma, Vishal L
On Sun, 2016-05-08 at 01:52 -0700, Christoph Hellwig wrote: > On Fri, May 06, 2016 at 03:53:09PM -0600, Vishal Verma wrote: > > > > From: Matthew Wilcox > > > > dax_clear_sectors() cannot handle poisoned blocks.  These must be > > zeroed using the BIO interface instead.  Convert ext2 and XFS to

[PATCH] x86/cpu: Correct small issues in P4 erratum 037 code

2016-05-08 Thread Borislav Petkov
From: Borislav Petkov Remove the linebreak in the conditional and s/errata/erratum/ as the singular is "erratum". No functionality change. Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/intel.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/

[PATCH v2 06/22] ARM: dts: exynos: Remove old fixed-clock provider on SMDK5410

2016-05-08 Thread Krzysztof Kozlowski
All "fin_pll" clock users are switched to the new one, provided by Exynos5410 clock driver. Remove old DT node. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410-smdk5410.dts | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/arm/boot/dts/exynos5410-smdk5410.dts b/

[PATCH v2 03/22] ARM: dts: exynos: Add fin_pll node for clock driver

2016-05-08 Thread Krzysztof Kozlowski
For consistency between Exynos5410 and Exynos542x/5800 switch to similar way of defining fin_pll/oscclk. Add a node early, before implementing this in driver to preserve bisectability. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410-smdk5410.dts | 7 +++ 1 file changed, 7

[PATCH v2 01/22] dt-bindings: clock: Add license and reformat Exynos5410 clock IDs

2016-05-08 Thread Krzysztof Kozlowski
Add license and copyrights (file introduced in 2014) to header with Exynos5410 clock IDs. Additionally reformat it to improve readability. Signed-off-by: Krzysztof Kozlowski --- include/dt-bindings/clock/exynos5410.h | 54 -- 1 file changed, 32 insertions(+), 22 d

[PATCH v2 00/22] ARM: dts: exynos: Add initial support for Odroid XU

2016-05-08 Thread Krzysztof Kozlowski
Hi, Patchset adds necessary clocks, reorganizes existing stuff and finally adds Odroid XU support. Merging strategy Complicated! The clock dt-bindings and driver changes can go to clock tree. However there are three DTS patches in the middle. a. This has to go in before adding "

[PATCH v2 05/22] ARM: dts: exynos: Switch MCT node to a new fin_pll clock

2016-05-08 Thread Krzysztof Kozlowski
The clk-exynos5410 driver now provides the "fin_pll" external fixed clock. Switch the Multi-Core Timer to this clock. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/

[PATCH v2 07/22] clk: samsung: exynos5410: Rename fin_pll from temporary to regular name

2016-05-08 Thread Krzysztof Kozlowski
For smooth transition of fin_pll to clk-exynos5410.c from fixed-clock driver, initially it was named "fin_pll_new". Fix this here. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos5410.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) dif

[PATCH v2 12/22] ARM: dts: exynos: Split Odroid XU3 LEDs to separate DTSI

2016-05-08 Thread Krzysztof Kozlowski
The LED nodes can be shared between Odroid XU3, XU3-Lite and XU (not yet added) thus removing duplication. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts | 35 + arch/arm/boot/dts/exynos5422-odroidxu3.dts | 35 + arch/a

[PATCH v2 15/22] ARM: dts: exynos: Use phandle to get parent node in exynos5250-snow

2016-05-08 Thread Krzysztof Kozlowski
The i2c-arbitrator node in exynos5250-snow-common used absolute path to reference other node (the i2c parent). Use phandle instead, because the depth of the other node may be changed (like moving it under 'soc' node). Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5250-snow-commo

[PATCH v2 10/22] ARM: dts: exynos: Use lowercase for Exynos5410 CPU node labels

2016-05-08 Thread Krzysztof Kozlowski
Fro consistency lowercase node labels are used. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi index 233149abfb62..58d3844e

[PATCH v2 18/22] ARM: dts: exynos: Enable UART3 on Exynos5410

2016-05-08 Thread Krzysztof Kozlowski
Just like other Exynos5 family SoCs, this one has four UARTs. Configure clocks for UART3 and enable it. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boo

[PATCH v2 08/22] clk: samsung: exynos5410: Add serial3, USB and PWM clocks

2016-05-08 Thread Krzysztof Kozlowski
Just like other Exynos5 family SoCs, this one has four UARTs. Add missing UART3 clocks to the Exynso5410 clock driver. Add clocks for USB and PWM. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos5410.c | 36 1 file changed, 36 insertions

[PATCH v2 13/22] ARM: dts: exynos: Move common nodes to exynos5.dtsi

2016-05-08 Thread Krzysztof Kozlowski
Exynos5420 and Exynos5250 share some nodes: the PWM and syscon (sysreg_system_controller). Move them to parent DTSI to avoid duplication. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5.dtsi| 12 arch/arm/boot/dts/exynos5250.dtsi | 19 +-- arch/a

[PATCH v2 21/22] ARM: dts: exynos: Add USB to Exynos5410

2016-05-08 Thread Krzysztof Kozlowski
Move USB 3.0 DWC and 2.0 EHCI/OHCI nodes from exynos5420.dtsi to exynos54xx.dtsi common for entire family. For Exynos542x/5800 this should not have functional impact but for Exynos5410 this effectively adds USB support. Signed-off-by: Krzysztof Kozlowski --- TODO: lack of regulator causes error

[PATCH v2 22/22] ARM: dts: exynos: Add initial support for Odroid XU board

2016-05-08 Thread Krzysztof Kozlowski
The Hardkernel's Odroid XU board was first design with big.LITTLE SoC from Samsung: the Exynos5410. Comparing now to more popular Odroid XU3 the differences are: 1. Exynos5410 instead of 5422, 2. DisplayPort, 3. Main PMIC: Maxim 77802 instead of S2MPS11, 4. USB3503+LAN9730 instead of integrated LAN

[PATCH v2 20/22] ARM: dts: exynos: Move common Exynos5410/542x/5800 nodes to new DTSI

2016-05-08 Thread Krzysztof Kozlowski
The Exynos5410/542x/5800 are very similar designs. Create new new DTSI with common nodes to remove DTS duplication. Although currently only MCT and SysRAM are shared but in future more nodes will be added to common file. The patch should not have functional impact. Signed-off-by: Krzysztof Kozlow

Re: [PATCH v2] ARM: sun7i: dt: Add pll3 and pll7 clocks

2016-05-08 Thread Maxime Ripard
On Thu, May 05, 2016 at 08:39:04PM +0300, Priit Laes wrote: > Enable pll3 and pll7 clocks that are needed by display clocks. > > Signed-off-by: Priit Laes Applied, thanks Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signatu

[PATCH v2 17/22] ARM: dts: exynos: Include common exynos5 in exynos5410.dtsi

2016-05-08 Thread Krzysztof Kozlowski
The exynos5.dtsi is used for common nodes shared between Exynos5250 and Exynos542x. Since Exynos5410 is very similar to Exynos5420 it can include the common file as well to remove duplication and make everything more consistent. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410

[PATCH v2 16/22] ARM: dts: exynos: Move Exynos5250 and Exynos5420 nodes under soc

2016-05-08 Thread Krzysztof Kozlowski
The conventions it to put SoC devices under 'soc' node. In fact other our DTSes (like exynos3250.dtsi or exynos5410.dtsi) already follows it. Adjust exynos5250 and exynos5420 DTSI to follow this convention. This is also necessary for the upcoming change in exynos5410.dtsi to inherit from common exy

[PATCH v2 19/22] ARM: dts: exynos: MCT is not an interrupt controller and extend length of iomap

2016-05-08 Thread Krzysztof Kozlowski
Multi-Core Timer generates interrupts but it is not really an interrupt controller so remove the "interrupt-controller" and "interrupt-cells" properties. Additionally extend the length of mapped memory to cover all registers (last SFR is at 0x0A40). Signed-off-by: Krzysztof Kozlowski --- arch/ar

[PATCH v2 14/22] ARM: dts: exynos: Prepare for inclusion of exynos5.dtsi in exynos5410.dtsi

2016-05-08 Thread Krzysztof Kozlowski
Add 'sromc' label to SROM memory controller in common exynos5.dtsi so it can be referenced by inheriting DTSI. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos5.dtsi b/arch/arm/boot/

[PATCH v2 09/22] ARM: dts: exynos: Re-order alphabetically Exynos5420 SD0/SD1 pinctrl nodes

2016-05-08 Thread Krzysztof Kozlowski
The 'sd0_rclk' was put in the middle of SD1 nodes. Remove the confusion. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi b/arch/arm/boot/dt

[PATCH v2 11/22] ARM: dts: exynos: Configure Exynos5410 pinctrl for eMMC and SD card

2016-05-08 Thread Krzysztof Kozlowski
Configure the pinctrl for MMC0 (eMMC) and MMC2 (microSD card). Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410-pinctrl.dtsi | 77 +++ 1 file changed, 77 insertions(+) diff --git a/arch/arm/boot/dts/exynos5410-pinctrl.dtsi b/arch/arm/boot/dts/exyn

[PATCH v2 04/22] clk: samsung: exynos5410: Provide fin_pll external fixed clock

2016-05-08 Thread Krzysztof Kozlowski
Just like clock driver for Exynos542x/5800, provide the fixed clock here so the clock bindings and their consumers would be consistent and similar. However a clock named "fin_pll" is already provided by generic fixed-clock and it is both referenced in the clock driver (by name) and in DT (by phand

[PATCH v2 02/22] dt-bindings: clock: Add PWM and USB clock IDs to Exynos5410

2016-05-08 Thread Krzysztof Kozlowski
Add IDs for PWM and USB clocks to Exynos5410. Use the same number as for Exynos5420 just in case in future these drivers were merged. Signed-off-by: Krzysztof Kozlowski --- include/dt-bindings/clock/exynos5410.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/dt-bindings/

Re: [PATCH v3] sunxi-irq: Fix Kconfig dependency on GENERIC_IRQ_CHIP

2016-05-08 Thread Maxime Ripard
On Thu, May 05, 2016 at 03:16:44PM +0100, Andre Przywara wrote: > Hi Maxime, > > On 05/05/16 14:21, Maxime Ripard wrote: > > On Wed, May 04, 2016 at 11:44:48AM +0100, Andre Przywara wrote: > >> Hi Maxime, > >> > >> On 02/05/16 07:48, Maxime Ripard wrote: > >>> Hi, > >>> > >>> On Mon, Apr 25, 2016

Re: [PATCH v3 2/5] block: Add bdev_supports_dax() for dax mount checks

2016-05-08 Thread Dan Williams
On Thu, May 5, 2016 at 5:29 PM, Toshi Kani wrote: > DAX imposes additional requirements to a device. Add > bdev_supports_dax() which performs all the precondition checks > necessary for filesystem to mount the device with dax option. > > Also add a new check to verify if a partition is aligned by

[PATCH] usb/host/fotg210: remove dead code in create_sysfs_files

2016-05-08 Thread Colin King
From: Colin Ian King The goto in create_sysfs_files is never executed, so remove it and clean up the code. Signed-off-by: Colin Ian King --- drivers/usb/host/fotg210-hcd.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/ho

[PATCH] Use pid_t instead of int

2016-05-08 Thread René Nyffenegger
Use pid_t instead of int in the declarations of sys_kill, sys_tgkill, sys_tkill and sys_rt_sigqueueinfo in include/linux/syscalls.h Signed-off-by: René Nyffenegger --- include/linux/syscalls.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/syscalls.h b/

Re: [PATCH v2 03/23] ata: sata_dwc_460ex: set dma_boundary to 0x1fff

2016-05-08 Thread Tejun Heo
On Tue, Apr 26, 2016 at 12:03:04PM +0300, Andy Shevchenko wrote: > diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c > index 7f95389..aee8873 100644 > --- a/drivers/ata/sata_dwc_460ex.c > +++ b/drivers/ata/sata_dwc_460ex.c > @@ -1151,7 +1151,13 @@ static struct scsi_host_temp

Re: [PATCH] mount -o noexdev

2016-05-08 Thread Al Viro
On Sun, May 08, 2016 at 09:35:42PM +0300, Alexey Dobriyan wrote: > Searching for "rename bint mount exdev" shows that failure with EXDEV > seems somewhat unintuitive behaviour. Allow users to bypass > this restriction with "-o noexdev" flag if the source of operation is on > such mount. > > Keep o

Re: [PATCH v2 00/23] ata: sata_dwc_460ex: make it working again

2016-05-08 Thread Tejun Heo
Hello, Andy. On Wed, May 04, 2016 at 03:22:51PM +0300, Andy Shevchenko wrote: > Tejun, since Vinod applied all necessary patches into his tree, the > series now has just a dependency to whatever branch / tag he marks for > it. > Do we have a chance to see the SATA series be applied in your tree?

Re: [PATCH v4 01/11] clk: sunxi: Add display and TCON0 clocks driver

2016-05-08 Thread Maxime Ripard
Hi Stephen, On Fri, May 06, 2016 at 03:30:02PM -0700, Stephen Boyd wrote: > On 04/25, Maxime Ripard wrote: > > The A10 SoCs and its relatives has a special clock controller to drive the > > display engines (both frontend and backend), that have a lot in common with > > the clock to drive the first

  1   2   3   >