Re: [RFC PATCH 0/3] UART slave device bus

2016-08-22 Thread One Thousand Gnomes
> When and how fast is the work queue scheduled? > And by which event? That depends upon the platform and how busy the machine is. The dumb uarts generally schedule it as soon as they've emptied the hardware. Some controllers it may be done off a timer, others off DMA completion events > > The

Re: ASoC: sun4i-codec: playback stall and I/O error with DAPM paths all disabled

2016-08-22 Thread Maxime Ripard
On Tue, Aug 16, 2016 at 12:45:39PM +0800, wens Tsai wrote: > On Mon, Aug 15, 2016 at 7:42 PM, Mark Brown wrote: > > On Mon, Aug 15, 2016 at 05:43:55PM +0800, wens Tsai wrote: > > > >> What is unexpected is any attempt to play anything under this state makes > >> the playback

[PATCH 1/2] x86/efi: Optimize away setup_gop32/64 if unused

2016-08-22 Thread Lukas Wunner
Eliminate the 64 bit code path when compiling for x86_32, and vice-versa the 32 bit code path when compiling for x86_64 with mixed mode disabled. Size of gop.o text section: CONFIG_X86_32: 1758 before, 1299 after CONFIG_X86_64 && !CONFIG_EFI_MIXED:2201 before, 1406

Re: [PATCH] MAINTAINERS: Add myself as SAMSUNG SOC CLOCK DRIVERS

2016-08-22 Thread Sylwester Nawrocki
Hi Chanwoo, On 08/18/2016 02:47 PM, Chanwoo Choi wrote: > Add the myself to the entry of SAMSUNG SOC CLOCK DRIVERS to review > and test the patches as supporter. I will help them. I can access the all > datasheet of Exynos SoC and test it on Exynos-based board. I was implemented > the

[PATCH 2/2] x86/efi: Allow invocation of arbitrary boot services

2016-08-22 Thread Lukas Wunner
We currently allow invocation of 8 boot services with efi_call_early(). Not included are LocateHandleBuffer and LocateProtocol in particular. For graphics output or to retrieve PCI ROMs and Apple device properties, we're thus forced to use the LocateHandle + AllocatePool + LocateHandle combo,

Re: [PATCH v1 0/7] tools: add linker table userspace sandbox

2016-08-22 Thread Vegard Nossum
(trimmed Ccs... jeez) On 19 August 2016 at 23:41, wrote: > From: "Luis R. Rodriguez" > > The original v3 series for linker tables made reference only to > an external repository userspace sandbox application, however > Boris noted it'd be difficult ot keep

Re: [PART2 PATCH v6 12/12] svm: Implements update_pi_irte hook to setup posted interrupt

2016-08-22 Thread Suravee Suthikulpanit
Hi Radim, On 08/22/2016 04:19 PM, Suravee Suthikulpanit wrote: he problem with wrappers is that we don't know what list we should remove the "struct amd_ir_data" from; we would need to add another tracking structure or go through all VCPUs. Having "struct list_head" in "struct amd_ir_data"

Re: [PATCH v6 2/8] power: add power sequence library

2016-08-22 Thread Sebastian Reichel
Hi Peter, On Mon, Aug 22, 2016 at 02:51:58PM +0800, Peter Chen wrote: > On Mon, Aug 15, 2016 at 05:13:12PM +0800, Peter Chen wrote: > > We have an well-known problem that the device needs to do some power > > sequence before it can be recognized by related host, the typical > > example like

Re: [PATCH 4/4] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-08-22 Thread Sergei Shtylyov
Hello. On 8/21/2016 3:19 PM, ayaka wrote: The "host1" port (AKA the dwc2 port that isn't the OTG port) on rk3288 has a hardware errata that causes everything to get confused when we get a remote wakeup. We'll use the reset that's in the CRU to reset the port when it's in a bad state. Note

Re: [PATCH 2/2] pci: call pci_intx when using legacy interrupts in pci_alloc_irq_vectors

2016-08-22 Thread Alexander Gordeev
On Thu, Aug 18, 2016 at 05:26:49PM +0200, Christoph Hellwig wrote: > It probably should be pci_intx_for_msi. For now I'm not touching > drivers that need the quirk, so how about getting the intx in > now so that the conversion can start, and I'll send a follow on > to convert to pci_intx_for_msi

Re: [PATCH 3.10 090/180] xfs: xfs_iflush_cluster fails to abort on error

2016-08-22 Thread Dave Chinner
On Mon, Aug 22, 2016 at 07:18:26AM +0200, Willy Tarreau wrote: > Hi Dave, > > On Mon, Aug 22, 2016 at 02:21:08PM +1000, Dave Chinner wrote: > > > - if (error || !bp) { > > > + if (error == -EAGAIN) { > > > > Wrong. Errors changed sign in XFS in 3.17. > > Ah my bad, sorry for this. > > > /rant

Re: OOM detection regressions since 4.7

2016-08-22 Thread Michal Hocko
On Mon 22-08-16 06:05:28, Greg KH wrote: > On Mon, Aug 22, 2016 at 11:37:07AM +0200, Michal Hocko wrote: [...] > > > From 899b738538de41295839dca2090a774bdd17acd2 Mon Sep 17 00:00:00 2001 > > > From: Michal Hocko > > > Date: Mon, 22 Aug 2016 10:52:06 +0200 > > > Subject: [PATCH]

Re: [PATCH v3 10/13] sched/fair: Compute task/cpu utilization at wake-up more correctly

2016-08-22 Thread Morten Rasmussen
On Mon, Aug 22, 2016 at 09:48:19AM +0800, Wanpeng Li wrote: > 2016-08-19 22:03 GMT+08:00 Morten Rasmussen : > > On Fri, Aug 19, 2016 at 09:43:00AM +0800, Wanpeng Li wrote: > >> 2016-08-18 21:45 GMT+08:00 Morten Rasmussen : > >> > I assume you are

[RFC 3/4] ZRAM: do not swap the page that compressed size bigger than non_swap

2016-08-22 Thread Hui Zhu
New option ZRAM_NON_SWAP add a interface "non_swap" to zram. User can set a unsigned int value to zram. If a page that compressed size is bigger than limit, mark it as non-swap. Then this page will add to unevictable lru list. This patch doesn't handle the shmem file pages. Signed-off-by: Hui

Re: [PATCH] serial: vt8500_serial: Fix a parameter of find_first_zero_bit.

2016-08-22 Thread Arnd Bergmann
On Sunday, August 21, 2016 11:20:25 PM CEST Christophe JAILLET wrote: > The 2nd parameter of 'find_first_zero_bit' is the number of bits to search. > In this case, we are passing 'sizeof(vt8500_ports_in_use)'. > 'vt8500_ports_in_use' is an 'unsigned long'. So the sizeof is likely to > return 4. >

[RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-22 Thread Hui Zhu
Current ZRAM just can store all pages even if the compression rate of a page is really low. So the compression rate of ZRAM is out of control when it is running. In my part, I did some test and record with ZRAM. The compression rate is about 40%. This series of patches make ZRAM can just store

[RFC 2/4] Add non-swap page flag to mark a page will not swap

2016-08-22 Thread Hui Zhu
After a page marked non-swap flag in swap driver, it will add to unevictable lru list. This page will be kept in this status before its data changed. Signed-off-by: Hui Zhu --- fs/proc/meminfo.c | 6 ++ include/linux/mm_inline.h | 20

Re: [PATCH 3/3] tracing: Histogram for missed timer offsets

2016-08-22 Thread kbuild test robot
Hi Binoy, [auto build test ERROR on tip/perf/core] [also build test ERROR on v4.8-rc3 next-20160819] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record

make[2]: *** No rule to make target 'net/netfilter//nft_hash.c', needed by 'net/netfilter//nft_hash.o'.

2016-08-22 Thread kbuild test robot
Hi Joe, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fa8410b355251fd30341662a40ac6b22d3e38468 commit: cb984d101b30eb7478d32df56a0023e4603cba7f compiler-gcc: integrate the various compiler-gcc[345].h files

Re: OOM detection regressions since 4.7

2016-08-22 Thread Michal Hocko
[ups, fixing up Greg's email] On Mon 22-08-16 11:32:49, Michal Hocko wrote: > Hi, > there have been multiple reports [1][2][3][4][5] about pre-mature OOM > killer invocations since 4.7 which contains oom detection rework. All of > them were for order-2 (kernel stack) alloaction requests failing

[PATCH 3/5] clk: samsung: exynos5260: Fix the checkpatch warnings

2016-08-22 Thread Chanwoo Choi
This patch removes the the prohibited space by using checkscript.pl script. - ERROR: space prohibited before that ',' Signed-off-by: Chanwoo Choi --- drivers/clk/samsung/clk-exynos5260.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 2/5] clk: samsung: exynos3250: Fix the checkpatch warnings

2016-08-22 Thread Chanwoo Choi
This patch fixes the following warnings by using checkpatch.pl script. - Fix line 80 over characters - Remove the space prohibited after that open parenthesis '(' Signed-off-by: Chanwoo Choi --- drivers/clk/samsung/clk-exynos3250.c | 97

[PATCH 5/5] clk: samsung: exynos4: Fix the checkpatch warnings

2016-08-22 Thread Chanwoo Choi
This patch fixes the following warnings by using checkpatch.pl script. - Remove the space prohibited after that open parenthesis '(' - Remove the unneeded blank line Signed-off-by: Chanwoo Choi --- drivers/clk/samsung/clk-exynos4.c | 51

[PATCH 4/5] clk: samsung: exynos5420: Fix the checkpatch warnings

2016-08-22 Thread Chanwoo Choi
This patch fixes the following warnings by using checkpatch.pl script. - WARNING: void function return statements are not generally useful - ERROR: space prohibited before that ',' - ERROR: Use of __initconst requires a separate use of const Signed-off-by: Chanwoo Choi ---

[PATCH 0/5] clk: samsung: exynos: Fix the checkpatch warnings

2016-08-22 Thread Chanwoo Choi
This patches just fix the checkpatch warnings for exynos5433/3250/5260/5420/4 series without the behavior changes. Chanwoo Choi (5): clk: samsung: exynos5433: Fix the checkpatch warnings clk: samsung: exynos3250: Fix the checkpatch warnings clk: samsung: exynos5260: Fix the checkpatch

[PATCH] MIPS: Use PRID_REV_LOONGSON1ABC instead of the legacy macro

2016-08-22 Thread Yang Ling
Signed-off-by: Yang Ling --- arch/mips/include/asm/cpu.h | 3 +-- arch/mips/kernel/cpu-probe.c| 8 +++- arch/mips/loongson32/common/setup.c | 6 -- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/arch/mips/include/asm/cpu.h

Re: [RFC PATCH v2 2/2] arm64 Kconfig: Select gigantic page

2016-08-22 Thread Catalin Marinas
On Mon, Aug 22, 2016 at 10:03:58AM +0200, Michal Hocko wrote: > On Mon 22-08-16 10:56:43, Xie Yisheng wrote: > > Arm64 supports gigantic page after > > commit 084bd29810a5 ("ARM64: mm: HugeTLB support.") > > however, it got broken by > > commit 944d9fec8d7a ("hugetlb: add support for gigantic

Re: [PATCH 6/8] arm64: Introduce raw_{d,i}cache_line_size

2016-08-22 Thread Will Deacon
On Thu, Aug 18, 2016 at 02:10:30PM +0100, Suzuki K Poulose wrote: > On systems with mismatched i/d cache min line sizes, we need to use > the smallest size possible across all CPUs. This will be done by fetching > the system wide safe value from CPU feature infrastructure. > However the some

Re: [PATCH] MAINTAINERS: Add myself as SAMSUNG SOC CLOCK DRIVERS

2016-08-22 Thread Chanwoo Choi
Hi Sylwester, On 2016년 08월 22일 19:01, Sylwester Nawrocki wrote: > Hi Chanwoo, > > On 08/18/2016 02:47 PM, Chanwoo Choi wrote: >> Add the myself to the entry of SAMSUNG SOC CLOCK DRIVERS to review >> and test the patches as supporter. I will help them. I can access the all >> datasheet of Exynos

Re: [PATCH v2 2/2] arm64: dts: Fix broken architected timer interrupt trigger

2016-08-22 Thread Marc Zyngier
Arnd, Olof, On 01/08/16 10:54, Marc Zyngier wrote: > The ARM architected timer specification mandates that the interrupt > associated with each timer is level triggered (which corresponds to > the "counter >= comparator" condition). > > A number of DTs are being remarkably creative, declaring

Re: [RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Rob Clark
On Mon, Aug 22, 2016 at 4:48 AM, Emil Velikov wrote: > On 20 August 2016 at 23:31, Rob Clark wrote: >> On Sat, Aug 20, 2016 at 1:58 PM, Mikko Rapeli wrote: >>> Cc'ing lkml too. >>> >>> On Fri, Aug 19, 2016 at 11:54:21PM +0100,

Re: [tip:perf/core] perf/core: Check return value of the perf_event_read() IPI

2016-08-22 Thread Jiri Olsa
On Mon, Aug 22, 2016 at 10:29:32AM +0200, Jiri Olsa wrote: > On Mon, Aug 22, 2016 at 09:17:37AM +0200, Jiri Olsa wrote: > > On Sun, Aug 21, 2016 at 02:10:07PM +0200, Vegard Nossum wrote: > > > > SNIP > > > > > [] ? __fget+0x47/0x270 > > > [] vfs_readv+0x8b/0xc0 > > > [] do_readv+0xde/0x230 > > >

Re: [PATCH 1/1 linux-next] iommu/amd: remove AMD_IOMMU_STATS

2016-08-22 Thread Joerg Roedel
On Fri, Aug 12, 2016 at 11:54:47PM +0200, Fabian Frederick wrote: > Commit e85e8f69cedb > ("iommu/amd: Remove statistics code") > removed that config. > > Signed-off-by: Fabian Frederick > --- > arch/x86/configs/x86_64_defconfig | 1 - > drivers/iommu/amd_iommu_proto.h | 4

Re: [PATCH 1/1] drm: avoid exposing kernel stack in compat_drm_getstats

2016-08-22 Thread Jani Nikula
On Mon, 22 Aug 2016, Daniel Vetter wrote: > On Sun, Aug 21, 2016 at 07:56:19PM +0200, Heinrich Schuchardt wrote: >> The C standard does not specify the size of the integer used >> to store an enum. Hence in structure drm_stats32_t alignment >> bytes may exist. >> >> To avoid

[GIT PULL] GPIO fixes for v4.8, take one

2016-08-22 Thread Linus Walleij
Hi Linus, here are a few GPIO fixes for v4.8. I was expecting some fallout from the new chardev rework but nothing like that turned up att all. Instead a Kconfig confusion that I think I have finally nailed, then some ordinary driver noise and trivia. Please pull these changes! Yours, Linus

Re: [PATCH v1 1/1] Revert "tty/serial/8250: use mctrl_gpio helpers"

2016-08-22 Thread Heikki Krogerus
Hi, On Tue, Aug 16, 2016 at 03:06:54PM +0300, Andy Shevchenko wrote: > Serial console is broken in v4.8-rcX. Mika and I independently bisected down > to > commit 4ef03d328769 ("tty/serial/8250: use mctrl_gpio helpers"). > > Since neither author nor anyone else didn't propose a solution we

Re: [PATCH v3] block: make sure big bio is splitted into at most 256 bvecs

2016-08-22 Thread Ming Lei
On Mon, Aug 22, 2016 at 1:58 AM, Kent Overstreet wrote: > On Sun, Aug 21, 2016 at 05:31:33PM +0800, Ming Lei wrote: >> This patch is definitely correct, and I don't see dealing with 'no_merge' >> should be removed. >> >> In this case, the bio is still possible to merge

Re: [RFC] Using C99 stdint vs kernel __uX types in kernel drmUAPI (was Re: [PATCH 1/2] Revert "include/uapi/drm/amdgpu_drm.h: use __u32 and __u64 from ")

2016-08-22 Thread Christian König
Am 22.08.2016 um 10:48 schrieb Emil Velikov: Although last time around people leaned towards the __uX types, if we have a consensus amongst drm (kernel) developers about using stdint ones everything should be fine. We just need a handful of acks from the different maintainers. For the record

Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached

2016-08-22 Thread kbuild test robot
Hi Johannes, [auto build test ERROR on scsi/for-next] [also build test ERROR on v4.8-rc3] [cannot apply to next-20160822] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=a

Re: [PATCH 2/4] arm64: defconfig: Set cma heap size to 128MB

2016-08-22 Thread Thierry Reding
On Fri, Aug 19, 2016 at 11:42:06PM +0800, Guodong Xu wrote: > From: Xinliang Liu > > For debian linux, cma heap is used to allocate graphic buffers. > The default size is 16 MB which is not enought. > So increase the size to 128 MB. > > Signed-off-by: Xinliang Liu

Re: How the EHCI HC driver make the decision to suspend some USB devices?

2016-08-22 Thread Oliver Neukum
On Fri, 2016-08-19 at 10:16 -0400, Alan Stern wrote: > On Fri, 19 Aug 2016, ludeng wrote: > > > Hi, > > How the EHCI HC driver make the decision to suspend some USB devices, > > but not to suspend some others? We notice that for some USB Video > > Cameras, when they are enumerated and there is no

Re: [PATCH] pinctrl: meson: get rid of unneeded domain structures

2016-08-22 Thread Linus Walleij
On Sat, Aug 13, 2016 at 7:41 PM, Beniamino Galvani wrote: > The driver originally supported more domains (register ranges) per > pinctrl device, but since commit 9dab1868ec0d ("pinctrl: amlogic: Make > driver independent from two-domain configuration") each device gets >

Re: [RFC PATCH] mfd: arizona: Add gating of external MCLKn clocks

2016-08-22 Thread Charles Keepax
On Fri, Aug 19, 2016 at 07:17:16PM +0200, Sylwester Nawrocki wrote: > This patch adds handling of the CODEC's external MCLK{1,2} clocks > needed for board configurations where these clocks are not always on > oscillators. > The 32k source MCLKn clock is basically kept permanently enabled while >

RE: [PATCH] megaraid_sas: Use memdup_user() rather than duplicating its implementation

2016-08-22 Thread Sumit Saxena
>-Original Message- >From: SF Markus Elfring [mailto:elfr...@users.sourceforge.net] >Sent: Sunday, August 21, 2016 2:19 PM >To: linux-s...@vger.kernel.org; megaraidlinux@avagotech.com; James E. >J. >Bottomley; Kashyap Desai; Martin K. Petersen; Sumit Saxena; Uday Lingala >Cc: LKML;

Re: Context switch latency in tickless isolated CPU

2016-08-22 Thread GeHao Kang
On Sun, Aug 21, 2016 at 10:53 PM, Paul E. McKenney wrote: > If latency is all you care about, one approach is to map the device > registers into userspace and do the I/O without assistance from the > kernel. In addition to the context switch latency, local interrupts

Re: OOM detection regressions since 4.7

2016-08-22 Thread Greg KH
On Mon, Aug 22, 2016 at 11:37:07AM +0200, Michal Hocko wrote: > [ups, fixing up Greg's email] > > On Mon 22-08-16 11:32:49, Michal Hocko wrote: > > Hi, > > there have been multiple reports [1][2][3][4][5] about pre-mature OOM > > killer invocations since 4.7 which contains oom detection rework.

Re: [PATCH] staging/lustre: avoid zero buf for the first time

2016-08-22 Thread Greg Kroah-Hartman
On Mon, Aug 22, 2016 at 04:46:04PM +0800, Shawn Lin wrote: > We only need to zero it when repeating in order to > avoid old garbage. Let's improve it by moving this > before we repeat the calculation to save some cpu > cycle. > > Signed-off-by: Shawn Lin Have you

Re: Fwd: Fwd: [PATCH 01/32] ver_linux: complete awk implementation

2016-08-22 Thread Greg KH
On Mon, Aug 22, 2016 at 07:14:10AM +0300, Alexander Kapshuk wrote: > -- Forwarded message -- > From: Alexander Kapshuk > Date: Sun, Aug 21, 2016 at 5:07 PM > Subject: Re: Fwd: [PATCH 01/32] ver_linux: complete awk implementation > To: Greg KH

Re: OOM detection regressions since 4.7

2016-08-22 Thread Markus Trippelsdorf
On 2016.08.22 at 11:32 +0200, Michal Hocko wrote: > there have been multiple reports [1][2][3][4][5] about pre-mature OOM > killer invocations since 4.7 which contains oom detection rework. All of > them were for order-2 (kernel stack) alloaction requests failing because > of a high fragmentation

[PATCH] bdev: fix NULL pointer dereference

2016-08-22 Thread Vegard Nossum
I got this: kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) CPU: 0 PID: 5505 Comm: syz-executor Not tainted 4.8.0-rc2+ #161 Hardware name: QEMU Standard

Re: [PATCH] dt-binding: correct the larb port offset defines for mt2701

2016-08-22 Thread Joerg Roedel
On Thu, Aug 11, 2016 at 04:07:08PM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > larb2 have 23 ports, the LARB3_PORT_OFFSET should be LARB2_PORT_OFFSET > plus larb2's port number, it should be 44 instead of 43. > > Signed-off-by: Honghui Zhang

Re: OOM detection regressions since 4.7

2016-08-22 Thread Markus Trippelsdorf
On 2016.08.22 at 12:56 +0200, Michal Hocko wrote: > On Mon 22-08-16 12:16:14, Markus Trippelsdorf wrote: > > On 2016.08.22 at 11:32 +0200, Michal Hocko wrote: > > > [1] http://lkml.kernel.org/r/20160731051121.GB307@x4 > > > > For the report [1] above: > > > > markus@x4 linux % cat .config | grep

Re: [PATCH 3.10 090/180] xfs: xfs_iflush_cluster fails to abort on error

2016-08-22 Thread Willy Tarreau
On Mon, Aug 22, 2016 at 08:55:37PM +1000, Dave Chinner wrote: > Ok, I didn't notice that the fix from 3.14 was further down the > queue. I put a procmail filter in to catch this patch on lkml > so i didn't see it in the context of the entire series (way too much > traffic on lkml to keep up with

[PATCH v05 69/72] uapi rose.h: glibc netrose/rose.h header file compatibility fixes

2016-08-22 Thread Mikko Rapeli
Fixes these userspace compile errors and warnings when glibc netrose/rose.h is included before linux/rose.h: linux/rose.h:25:0: warning: "SIOCRSGCAUSE" redefined linux/rose.h:26:0: warning: "SIOCRSSCAUSE" redefined linux/rose.h:27:0: warning: "SIOCRSL2CALL" redefined linux/rose.h:28:0: warning:

[PATCH v05 54/72] include/uapi/xen/privcmd.h: fix compilation in userspace

2016-08-22 Thread Mikko Rapeli
xen/interface/xen.h is not exported from kernel headers so remove the dependency and provide needed defines for domid_t and xen_pfn_t if they are not already defined by some other e.g. Xen specific headers. Suggested by Andrew Cooper on lkml message

[PATCH tip/core/rcu 4/5] rcuperf: Insert space between flag and message consistently

2016-08-22 Thread Paul E. McKenney
From: SeongJae Park Few output messages of rcuperf has no space between flag and start of message while every other messages keeps a space consistently. It makes output messages to be inconsistent and weird especially when it be read by dmesg with color option enabled.

[PATCH V2 linux-next] iommu/amd: remove AMD_IOMMU_STATS

2016-08-22 Thread Fabian Frederick
Commit e85e8f69cedb ("iommu/amd: Remove statistics code") removed that configuration. Also remove function definition (suggested by Joerg Roedel) Signed-off-by: Fabian Frederick --- V2: Remove function definition. arch/x86/configs/x86_64_defconfig | 1 -

[PATCH v05 19/72] include/uapi/linux/socket.h: include sys/socket.h in userspace

2016-08-22 Thread Mikko Rapeli
This libc header has sockaddr definition for userspace. Fixes userspace compilation errors like these from kernel headers including only linux/socket.h: error: field ‘ifru_addr’ has incomplete type struct sockaddr ifru_addr; Signed-off-by: Mikko Rapeli ---

[PATCH v05 52/72] include/linux/sdb.h: use linux/types.h types instead of stdint.h

2016-08-22 Thread Mikko Rapeli
Kernel headers should use linux/types.h types. Signed-off-by: Mikko Rapeli --- include/linux/sdb.h | 62 + 1 file changed, 29 insertions(+), 33 deletions(-) diff --git a/include/linux/sdb.h b/include/linux/sdb.h index

[PATCH v05 60/72] arch/arm/include/uapi/asm/signal.h: use __kernel_size_t instead of size_t

2016-08-22 Thread Mikko Rapeli
Fixes uapi header compilation error from userspace on ARCH=arm: asm/signal.h:112:2: error: unknown type name ‘size_t’ size_t ss_size; Signed-off-by: Mikko Rapeli --- arch/arm/include/uapi/asm/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v05 23/72] include/uapi/linux/ipv6_route.h: include linux/in6.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compile errors like: error: field ‘mf6cc_origin’ has incomplete type struct sockaddr_in6 mf6cc_origin; /* Origin of mcast */ Signed-off-by: Mikko Rapeli --- include/uapi/linux/mroute6.h | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v6 2/4] Add support for SCT Write Same

2016-08-22 Thread Tom Yan
On 22 August 2016 at 12:23, Shaun Tancheff wrote: > SATA drives may support write same via SCT. This is useful > for setting the drive contents to a specific pattern (0's). > > Translate a SCSI WRITE SAME 16 command to be either a DSM TRIM > command or an SCT Write Same

[PATCH v05 68/72] uapi ax25.h: glibc netax25/ax25.h header file compatibility fixes

2016-08-22 Thread Mikko Rapeli
Fixes these userspace compile error when glibc netax25/ax25.h is included before linux/ax25.h: linux/ax25.h:28:0: warning: "SIOCAX25GETUID" redefined linux/ax25.h:38:0: warning: "SIOCAX25GETINFO" redefined linux/ax25.h:47:3: error: conflicting types for ‘ax25_address’ linux/ax25.h:49:8: error:

Re: [PATCH v4] powerpc: Do not make the entire heap executable

2016-08-22 Thread Jason Gunthorpe
On Mon, Aug 22, 2016 at 08:37:05PM +0200, Denys Vlasenko wrote: > >Is this going to break any application ? I am asking because you > >mentioned the patch is lightly tested. > > I booted powerpc64 machine with RHEL7 installation, > it did not catch fire. When I authored the original patch my

[PATCH v05 20/72] include/uapi/linux/rds.h: include linux/socket.h and linux/types.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: unknown type name ‘__be32’ error: field ‘dest_addr’ has incomplete type struct sockaddr_storage dest_addr; Signed-off-by: Mikko Rapeli Acked-by: Sowmini Varadhan --- include/uapi/linux/rds.h |

[PATCH v05 64/72] include/uapi/linux/ipx.h: fix conflicting defitions with glibc netipx/ipx.h

2016-08-22 Thread Mikko Rapeli
Fixes these compiler warnings via libc-compat.h when glibc netipx/ipx.h is included before linux/ipx.h: ./linux/ipx.h:9:8: error: redefinition of ‘struct sockaddr_ipx’ ./linux/ipx.h:26:8: error: redefinition of ‘struct ipx_route_definition’ ./linux/ipx.h:32:8: error: redefinition of ‘struct

[PATCH] PCI: altera: Remove redundant platform_get_resource() return value check

2016-08-22 Thread Bjorn Helgaas
devm_ioremap_resource() fails gracefully when given a NULL resource pointer, so we don't need to check separately for failure from platform_get_resource_byname(). Remove the redundant check. Signed-off-by: Bjorn Helgaas --- drivers/pci/host/pcie-altera-msi.c | 10

[PATCH v05 63/72] include/uapi/sound/Kbuild: remove sound/asoc.h from userspace

2016-08-22 Thread Mikko Rapeli
Based on git commit messages and the #error macro messages it should not be used in userspace. Fixes userspace compile errors: sound/asoc.h:21:2: error: #error This API is an early revision and not enabled in the current #error This API is an early revision and not enabled in the current

Re: [PATCH v6 1/4] libata: Safely overwrite attached page in WRITE SAME xlat

2016-08-22 Thread Tom Yan
On 22 August 2016 at 12:23, Shaun Tancheff wrote: > Safely overwriting the attached page to ATA format from the SCSI formatted > variant. > > Signed-off-by: Shaun Tancheff > --- > v6: > - Fix bisect bug reported by Tom Yan >

[PATCH v05 70/72] uapi time.h: glibc time.h header file compatibility fixes

2016-08-22 Thread Mikko Rapeli
Fixes these userspace compile errors and warnings when glibc time.h is included before linux/time.h: linux/time.h:9:8: error: redefinition of ‘struct timespec’ linux/time.h:15:8: error: redefinition of ‘struct timeval’ linux/time.h:20:8: error: redefinition of ‘struct timezone’ linux/time.h:30:0:

Re: [RFC] arm64: Enforce gettimeofday vdso structure read ordering

2016-08-22 Thread bdegraaf
On 2016-08-22 14:56, Mark Rutland wrote: Hi Brent, Thanks for the thorough reply. Comments inline below. On Mon, Aug 22, 2016 at 01:32:47PM -0400, bdegr...@codeaurora.org wrote: On 2016-08-22 07:37, Mark Rutland wrote: >* What problem does this patch address? Initially, I set out to fix a

Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute

2016-08-22 Thread Cristina-Gabriela Moraru
2016-08-18 19:55 GMT+02:00 Luis R. Rodriguez : > On Wed, Aug 17, 2016 at 09:26:58PM +0200, Cristina Moraru wrote: > >> This patchset implements dynamic pegging of kconfig symbol >> into driver modinfo section > > First a little bit of motivation here helps, so let me try to >

[PATCH v05 53/72] include/linux/xz.h: use linux/types.h types instead of stdint.h

2016-08-22 Thread Mikko Rapeli
Kernel headers should use linux/types.h types. Signed-off-by: Mikko Rapeli --- include/linux/xz.h | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/include/linux/xz.h b/include/linux/xz.h index 64cffa6..7686511 100644 --- a/include/linux/xz.h

RE: [PATCH 1/7] aacraid: Use memdup_user() rather than duplicating its implementation

2016-08-22 Thread David Carroll
> From: Markus Elfring > Date: Sat, 20 Aug 2016 20:05:24 +0200 > > Reuse existing functionality from memdup_user() instead of keeping duplicate > source code. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring

[PATCH tip/core/rcu 3/5] rcutorture: Print out barrier error as document says

2016-08-22 Thread Paul E. McKenney
From: SeongJae Park Test for rcu_barrier() has introduced by commit fae4b54f28f0 ("rcu: Introduce rcutorture testing for rcu_barrier()"). Updated document says that `rtbe` field of output indicates failure of the test. However, the code has not updated as so. This commit

Re: [PATCH 4/8] pipe: fix limit checking in pipe_set_size()

2016-08-22 Thread Michael Kerrisk (man-pages)
Hi Willy, On 08/22/2016 09:35 AM, Willy Tarreau wrote: > Hi Michael, > > On Mon, Aug 22, 2016 at 09:15:35AM +1200, Michael Kerrisk (man-pages) wrote: >> Hi Willy, >> >> Might you have a chance to further review of this patch series? >> It would be great if you could, since much of it touches

[PATCH v05 59/72] include/uapi/linux/errqueue.h: include time.h in userspace

2016-08-22 Thread Mikko Rapeli
linux/time.h conflicts with userspace header time.h. Try to be compatible for kernel and userspace. Signed-off-by: Mikko Rapeli --- include/uapi/linux/errqueue.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/errqueue.h

Re: [PATCH 1/1] brcmfmac: fix pmksa->bssid usage

2016-08-22 Thread Arend Van Spriel
On 22-8-2016 15:03, Nicolas Iooss wrote: > Hello, > > After I sent the following patch a few weeks ago, I have not received > any feedback. Could you please review it and tell me what I may have > done wrong? Nothing. People went on vacation :-) > Thanks, > Nicolas > > On 05/08/16 22:34,

[PATCH v05 22/72] include/uapi/linux/if_tunnel.h: include linux/if.h, linux/ip.h and linux/in6.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compilation errors like: error: field ‘iph’ has incomplete type error: field ‘prefix’ has incomplete type Signed-off-by: Mikko Rapeli --- include/uapi/linux/if_tunnel.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/if_tunnel.h

Re: [PATCH] CodingStyle: add some more error handling guidelines

2016-08-22 Thread Michael S. Tsirkin
On Mon, Aug 22, 2016 at 09:50:06PM +0300, Dan Carpenter wrote: > On Mon, Aug 22, 2016 at 05:53:02PM +0300, Michael S. Tsirkin wrote: > > The point is really naming label for the part of init that failed > > (and so needs to be skipped), rather than the part that will run. > > Naming labels after

[PATCH v05 51/72] include/linux/ipmi-fru.h: use linux/types.h instead of stdint.h

2016-08-22 Thread Mikko Rapeli
Kernel headers should use linux/types.h types. Signed-off-by: Mikko Rapeli --- include/linux/ipmi-fru.h | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/include/linux/ipmi-fru.h b/include/linux/ipmi-fru.h index

Re: [PATCH -next] PCI/PCIe: make DPC explicitly non-modular

2016-08-22 Thread Bjorn Helgaas
Hi Paul, On Thu, Jul 28, 2016 at 05:28:02PM -0400, Paul Gortmaker wrote: > [Re: [PATCH -next] PCI/PCIe: make DPC explicitly non-modular] On 28/07/2016 > (Thu 16:29) Keith Busch wrote: > > > On Thu, Jul 28, 2016 at 03:33:03PM -0400, Paul Gortmaker wrote: > > > The Kconfig currently controlling

Re: [PATCH v6 2/4] Add support for SCT Write Same

2016-08-22 Thread Shaun Tancheff
On Mon, Aug 22, 2016 at 2:20 PM, Tom Yan wrote: > On 22 August 2016 at 12:23, Shaun Tancheff wrote: >> SATA drives may support write same via SCT. This is useful >> for setting the drive contents to a specific pattern (0's). >> >> Translate a SCSI WRITE

[PATCH -next] sound: rockchip: fix build when SPI is not enabled

2016-08-22 Thread Randy Dunlap
if you always want to have the SPI interface available in this driver, change the first "depends" to include "&& SPI_MASTER". --- linux-next-20160822.orig/sound/soc/rockchip/Kconfig +++ linux-next-20160822/sound/soc/rockchip/Kconfig @@ -49,7 +49,7 @@ config SND_SOC_RK3399_

Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute

2016-08-22 Thread Cristina-Gabriela Moraru
2016-08-19 11:07 GMT+02:00 Michal Marek : > On 2016-08-18 19:55, Luis R. Rodriguez wrote: >> On Wed, Aug 17, 2016 at 09:26:58PM +0200, Cristina Moraru wrote: >> >>> This patchset implements dynamic pegging of kconfig symbol >>> into driver modinfo section >> >> First a little bit

Re: [PATCH tip/core/rcu 2/2] documentation: Record reason for rcu_head two-byte alignment

2016-08-22 Thread Paul E. McKenney
On Mon, Aug 22, 2016 at 03:18:54PM -0400, Steven Rostedt wrote: > On Mon, 22 Aug 2016 20:56:09 +0200 > Peter Zijlstra wrote: > > > > Don't we have __alignof__(void *) to avoid #ifdef CONFIG_M68K and > > > other new macros ? Hmmm... Does __alignof__(void *) give two-byte

[PATCH tip/core/rcu 1/5] torture: Convert torture_shutdown() to hrtimer

2016-08-22 Thread Paul E. McKenney
Upcoming changes to the timer wheel introduce significant inaccuracy and possibly also an ultimate limit on timeout duration. This is a problem for the current implementation of torture_shutdown() because (1) shutdown times are user-specified, and can therefore be quite long, and (2) the torture

Re: [PATCH 04/11] sched,x86: Enable Turbo Boost Max Technology

2016-08-22 Thread Tim Chen
On Mon, Aug 22, 2016 at 05:01:15PM +0800, kbuild test robot wrote: > Hi Tim, > > [auto build test ERROR on pm/linux-next] > [also build test ERROR on v4.8-rc3 next-20160822] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system]

Re: [PATCH 10/16] cpuidle: pseries: Convert to hotplug state machine

2016-08-22 Thread Sebastian Andrzej Siewior
On 2016-08-22 18:09:47 [+0200], Daniel Lezcano wrote: > On 08/18/2016 02:57 PM, Sebastian Andrzej Siewior wrote: > > Install the callbacks via the state machine. > > > > Cc: "Rafael J. Wysocki" > > Cc: Daniel Lezcano > > Cc:

Re: [PATCH v2 3/6] arm/perf: Use multi instance instead of custom list

2016-08-22 Thread Sebastian Andrzej Siewior
On 2016-08-22 16:07:18 [+0100], Will Deacon wrote: > Looks good to me: > > Acked-by: Will Deacon Thanks. > I'm assuming you'll take this with the rest of the series, once the > core parts have been acked. I hope so, yes. > Will Sebastian

[PATCH] backlight: arcxcnn: devicetree bindings for ArticSand devices

2016-08-22 Thread Olimpiu Dejeu
This is the device tree bindings documentation file Signed-off-by: Olimpiu Dejeu --- .../bindings/video/backlight/arcxcnn.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644

Re: [PATCH v2 1/4] tracing: Added hardware latency tracer

2016-08-22 Thread Steven Rostedt
On Mon, 22 Aug 2016 12:27:58 -0500 Nilay Vaish wrote: > > +static void trace_hwlat_sample(struct hwlat_sample *sample) > > +{ > > + struct trace_array *tr = hwlat_trace; > > + struct trace_event_call *call = _hwlat; > > Steven, where is this variable

Re: [PATCH tip/core/rcu 2/2] documentation: Record reason for rcu_head two-byte alignment

2016-08-22 Thread Steven Rostedt
On Mon, 22 Aug 2016 20:56:09 +0200 Peter Zijlstra wrote: > > Don't we have __alignof__(void *) to avoid #ifdef CONFIG_M68K and > > other new macros ? > > Yes, but that 'hides' the m68k funny, while doing an explicit #ifdef has > documentation value... but I don't care

[PATCH] backlight: arcxcc: add support for ArcticSand devices

2016-08-22 Thread Olimpiu Dejeu
This is the driver for the Arctic Sand Technologies Inc. ARCXCNN LED backlight IC family Signed-off-by: Olimpiu Dejeu --- drivers/video/backlight/Kconfig | 7 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/arcxcnn_bl.c | 510

[PATCH v05 24/72] include/uapi/linux/ipv6_route.h: include linux/in6.h

2016-08-22 Thread Mikko Rapeli
Fixes userspace compile errors like: error: field ‘rtmsg_dst’ has incomplete type struct in6_addr rtmsg_dst; Signed-off-by: Mikko Rapeli --- include/uapi/linux/ipv6_route.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/ipv6_route.h

[PATCH v05 50/72] include/uapi/linux/fuse.h: use linux/types.h also in userspace

2016-08-22 Thread Mikko Rapeli
Kernel headers should not use stdint.h. Signed-off-by: Mikko Rapeli Cc: Arnd Bergmann Cc: Miklos Szeredi --- include/uapi/linux/fuse.h | 452 +++--- 1 file changed, 224 insertions(+), 228

[PATCH v05 56/72] include/uapi/xen/evtchn.h: include xen/privcmd.h

2016-08-22 Thread Mikko Rapeli
It has definition of domid_t. Fixes userspace compiler error when xen/privcmd.h is compiled alone: xen/evtchn.h:100:2: error: unknown type name ‘domid_t’ domid_t domid; ^~~ Signed-off-by: Mikko Rapeli --- include/uapi/xen/evtchn.h | 2 ++ 1 file changed, 2

[PATCH] PCI: rcar: Consolidate register space lookup and ioremap

2016-08-22 Thread Bjorn Helgaas
Move the devm_ioremap_resource() of R-Car register space next to the of_address_to_resource() that extracts the resource. No functional change intended. Signed-off-by: Bjorn Helgaas --- drivers/pci/host/pcie-rcar.c | 10 -- 1 file changed, 4 insertions(+), 6

[PATCH v05 67/72] uapi uio.h: glibc sys/uio.h header file compatibility fixes

2016-08-22 Thread Mikko Rapeli
Fixes this userspace compile error when glibc sys/uio.h is included before linux/uio.h: linux/uio.h:16:8: error: redefinition of ‘struct iovec’ Signed-off-by: Mikko Rapeli --- include/uapi/linux/libc-compat.h | 10 ++ include/uapi/linux/uio.h | 4 +++- 2

[PATCH v05 58/72] include/uapi/linux/elfcore.h: remove non-compiling userspace parts

2016-08-22 Thread Mikko Rapeli
Remove typedef elf_greg_t greg_t and friends from userspace. Remove struct elf_prstatus completely from userspace. elfcore.h as such does not compile in userspace. All userspace users of like gcc/gdb and linux-tools contain their own modified versions of the file. With these changes the file

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