Re: [PATCH v05 06/72] include/uapi/linux/hsi/cs-protocol.h: include linux/time.h

2016-08-28 Thread Mikko Rapeli
On Mon, Aug 22, 2016 at 10:52:20PM +0200, Sebastian Reichel wrote: > Hi, > > On Mon, Aug 22, 2016 at 08:32:23PM +0200, Mikko Rapeli wrote: > > Fixes userspace compilation errors due to missing timespec definition. > > > > Signed-off-by: Mikko Rapeli > > --- > > include/uapi/linux/hsi/cs-protoco

[PATCH v2] fix:iio:common:st_sensors:st_sensors_trigger:mark symbols static where possible

2016-08-28 Thread Baoyou Xie
We get 2 warnings when biuld kernel with W=1: drivers/iio/common/st_sensors/st_sensors_trigger.c:69:13: warning: no previous prototype for 'st_sensors_irq_handler' [-Wmissing-prototypes] drivers/iio/common/st_sensors/st_sensors_trigger.c:85:13: warning: no previous prototype for 'st_sensors_irq_t

Re: [PATCH] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions

2016-08-28 Thread kbuild test robot
hat (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information] url: https://github.com/0day-ci/linux/commits/chengang-emindsoft-com-cn/arch-all-include-asm-bitops-Use-bool-instead-of-int-for-all-bit-test-functions/20160

Re: [PATCH] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions

2016-08-28 Thread kbuild test robot
ons/20160828-134633 config: arm-at91_dt_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cr

[PATCH] fix:nv10_fence: mark symbols static where possible

2016-08-28 Thread Baoyou Xie
We get 1 warning about global functions without a declaration in the nouveau nv10_fence driver when building with W=1: drivers/gpu/drm/nouveau/nv10_fence.c:70:1: warning: no previous prototype for 'nv10_fence_context_new' [-Wmissing-prototypes] In fact, this function is only used in the file in w

Re: [PATCH 8/8] cris-cryptocop: Apply another recommendation from "checkpatch.pl"

2016-08-28 Thread SF Markus Elfring
>> @@ -2276,7 +2277,10 @@ static int cryptocop_job_setup(struct >> cryptocop_prio_job **pj, struct cryptocop_ >> (*pj)->iop->ctx_in.saved_data = operation->list_op.inlist; >> (*pj)->iop->ctx_in.saved_data_buf = >> operation->list_op.in_data_buf; >> } else { >> -

Re: [PATCH 5/8] cris-cryptocop: Move an assignment for the variable "nooutpages" in cryptocop_ioctl_process()

2016-08-28 Thread SF Markus Elfring
>> +++ b/arch/cris/arch-v32/drivers/cryptocop.c >> @@ -2469,7 +2469,7 @@ static int cryptocop_ioctl_process(struct inode >> *inode, struct file *filp, unsig >> struct page **inpages = NULL; >> struct page **outpages = NULL; >> int

[PATCH] fix:nouveau_display: mark symbols static where possible

2016-08-28 Thread Baoyou Xie
We get 1 warning about global functions without a declaration in the nouveau nouveau_display driver when building with W=1: drivers/gpu/drm/nouveau/nouveau_display.c:96:1: warning: no previous prototype for 'nouveau_display_scanoutpos_head' [-Wmissing-prototypes] In fact, this function is only us

Re: IA64-IRQ: Use kmalloc_array() in sn_irq_lh_init()

2016-08-28 Thread SF Markus Elfring
> While elimination of code duplication should be good, > what it means it you should avoid making changes that > are merely mechanical and strive to make changes that > improve code execution speed or reduce overall object > size while not impacting overall execution speed. Do other contributors

Re: [PATCH 1/2] mm/nobootmem.c: make CONFIG_NO_BOOTMEM depend on CONFIG_HAVE_MEMBLOCK

2016-08-28 Thread kbuild test robot
Hi zijun_hu, [auto build test ERROR on mmotm/master] [also build test ERROR on v4.8-rc3 next-20160825] [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 w

Re: [Ksummit-discuss] checkkpatch (in)sanity ?

2016-08-28 Thread Alexey Dobriyan
On Sat, Aug 27, 2016 at 09:06:13PM -0400, Levin, Alexander via Ksummit-discuss wrote: > 3. This one is somewhat subjective: scripts/checkpatch.pl is a massive blob of > perl code that a fair amount of people don't know how to deal with. In 4.8 > it's > 6142 lines, making it the 124th largest sour

[PATCH] scsi: ufs: add missing declaration in ufshcd.h

2016-08-28 Thread Baoyou Xie
We get 1 warning about global functions without a declaration in the scsi ufshcd driver when building with W=1: drivers/scsi/ufs/ufshcd.c:1991:5: warning: no previous prototype for 'ufshcd_query_descriptor_retry' [-Wmissing-prototypes] in fact, this function is implemented in ufshcd.c and exporte

Re: [PATCH 1/3] documentation/scsi: Remove nodisconnect parameter

2016-08-28 Thread Geert Uytterhoeven
On Sat, Aug 27, 2016 at 4:29 AM, Finn Thain wrote: > The driver that used the 'nodisconnect' parameter was removed in > commit 565bae6a4a8f ("[SCSI] 53c7xx: kill driver"). Related documentation > was cleaned up in commit f37a7238d379 ("[SCSI] 53c7xx: fix removal > fallout"), except for the remaini

Re: [PATCH 2/3] scsi/ncr5380: Avoid a compiler warning

2016-08-28 Thread Geert Uytterhoeven
On Sat, Aug 27, 2016 at 4:30 AM, Finn Thain wrote: > With commit 3a0f64bfa907 ("mac_scsi: Fix pseudo DMA implementation") > some versions of gcc now warn: > > In file included from drivers/scsi/mac_scsi.c:335: > drivers/scsi/NCR5380.h:295: warning: `NCR5380_poll_politely' declared inline > after

Re: [PATCH 3/3] scsi/ncr5380: Improve interrupt latency during PIO tranfers

2016-08-28 Thread Geert Uytterhoeven
Hi Finn, On Sat, Aug 27, 2016 at 4:30 AM, Finn Thain wrote: > Large PIO transfers are broken up into chunks to try to avoid disabling > local IRQs for long periods. But IRQs are still disabled for too long > and this causes SCC FIFO overruns during serial port transfers. This > patch fixes the pr

Re: [PATCH RFC UGLY] x86,mm,sched: make lazy TLB mode even lazier

2016-08-28 Thread Andy Lutomirski
On Aug 25, 2016 9:06 PM, "Rik van Riel" wrote: > > Subject: x86,mm,sched: make lazy TLB mode even lazier > > Lazy TLB mode can result in an idle CPU being woken up for a TLB > flush, when all it really needed to do was flush %cr3 before the > next context switch. > > This is mostly fine on bare me

Re: [RFC v2 09/10] landlock: Handle cgroups (performance)

2016-08-28 Thread Andy Lutomirski
On Aug 27, 2016 11:14 PM, "Mickaël Salaün" wrote: > > > On 27/08/2016 22:43, Alexei Starovoitov wrote: > > On Sat, Aug 27, 2016 at 09:35:14PM +0200, Mickaël Salaün wrote: > >> On 27/08/2016 20:06, Alexei Starovoitov wrote: > >>> On Sat, Aug 27, 2016 at 04:06:38PM +0200, Mickaël Salaün wrote: > >>>

Re: [RFC v2 09/10] landlock: Handle cgroups

2016-08-28 Thread Andy Lutomirski
On Aug 27, 2016 8:12 PM, "Alexei Starovoitov" wrote: > > On Sat, Aug 27, 2016 at 12:30:36AM -0700, Andy Lutomirski wrote: > > > cgroup is the common way to group multiple tasks. > > > Without cgroup only parent<->child relationship will be possible, > > > which will limit usability of such lsm to

Re: [PATCH][RFC v4] timekeeping: ignore the bogus sleep time if pm_trace is enabled

2016-08-28 Thread Chen Yu
On Sat, Aug 27, 2016 at 03:08:56PM +0800, Xunlei Pang wrote: > On 2016/08/18 at 18:43, Chen Yu wrote: > > Previously we encountered some memory overflow issues due to > > the bogus sleep time brought by inconsistent rtc, which is > > triggered when pm_trace is enabled, please refer to: > > https://

undefined reference to `dib3000mc_pid_parse'

2016-08-28 Thread kbuild test robot
Hi Joe, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: af56ff27eba54fceee5f5643e79bf6531f2e1739 commit: cb984d101b30eb7478d32df56a0023e4603cba7f compiler-gcc: integrate the various compiler-gcc[345]

Re: [PATCH v2] ARM: dts: sun8i: enable UART1 for iNet D978 Rev2 board

2016-08-28 Thread Rask Ingemann Lambertsen
On Sun, Aug 28, 2016 at 08:55:21AM +0800, Icenowy Zheng wrote: > + uart1_pins_cts_rts_a: uart1_cts_rts@0 { > + allwinner,pins = "PG8", "PG9"; > + allwinner,function = "uart1"; > + allwinner,drive

Re: [PATCH 3/5] rxrpc: fix last_call processing

2016-08-28 Thread David Howells
This is fixed by: commit 2266ffdef5737fdfa96005204fc5606dbd559956 subject: rxrpc: Fix conn-based retransmit which is in net-next. David

Re: [PATCH 1/5] IA64-IRQ: Use kmalloc_array() in sn_irq_lh_init()

2016-08-28 Thread Julia Lawall
On Sat, 27 Aug 2016, Joe Perches wrote: > On Sat, 2016-08-27 at 09:02 +0200, SF Markus Elfring wrote: > > > If you _really wanted to clear up this code and make it more > > > robust/better, it'd probably be nicer to convert the > > > struct list_head **sn_irq_lh to a single struct list_head * >

psmouse_disconnect lockdep splat

2016-08-28 Thread Borislav Petkov
Hi, just saw this while booting rc3+tip/master. Thought I should report it in case it hasn't been caught and fixed yet. --- ... [6.257924] snd_hda_codec_realtek hdaudioC0D0: Internal Mic=0x12 [6.280232] iTCO_vendor_support: vendor-support=0 [6.282063] snd_hda_intel :00:1b.0:

Re: constification and cocci / kernel build test robot ?

2016-08-28 Thread Julia Lawall
On Sat, 27 Aug 2016, Joe Perches wrote: > On Sat, 2016-08-27 at 20:59 +0200, Julia Lawall wrote: > >  Make sure (of/i2c/platform)_device_id tables are NULL terminated > > Generated by: scripts/coccinelle/misc/of_table.cocci > > Along the same lines, I submitted a manually generated > patch to ad

Re: [RFC v2 09/10] landlock: Handle cgroups (performance)

2016-08-28 Thread Mickaël Salaün
On 28/08/2016 10:13, Andy Lutomirski wrote: > On Aug 27, 2016 11:14 PM, "Mickaël Salaün" wrote: >> >> >> On 27/08/2016 22:43, Alexei Starovoitov wrote: >>> On Sat, Aug 27, 2016 at 09:35:14PM +0200, Mickaël Salaün wrote: On 27/08/2016 20:06, Alexei Starovoitov wrote: > On Sat, Aug 27, 20

[PATCH] PA-RISC-inventory: Use kmalloc_array() in add_system_map_addresses()

2016-08-28 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 28 Aug 2016 11:40:53 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected by using the Coccinelle s

Re: [lkp] [mm, page_alloc] e6cbd7f2ef: pixz.throughput -5.1% regression

2016-08-28 Thread Thorsten Leemhuis
Lo! On 08.08.2016 10:29, kernel test robot wrote: > > FYI, we noticed a -5.1% regression of pixz.throughput due to commit: > > commit e6cbd7f2efb433d717af72aa8510a9db6f7a7e05 ("mm, page_alloc: remove fair > zone allocation policy") > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux

Re: [Ksummit-discuss] checkkpatch (in)sanity ?

2016-08-28 Thread Julia Lawall
On Sun, 28 Aug 2016, Alexey Dobriyan wrote: > On Sat, Aug 27, 2016 at 09:06:13PM -0400, Levin, Alexander via > Ksummit-discuss wrote: > > 3. This one is somewhat subjective: scripts/checkpatch.pl is a massive blob > > of > > perl code that a fair amount of people don't know how to deal with. In

kcm: use-after-free in fput of kcm socket

2016-08-28 Thread Dmitry Vyukov
Hello, The following program triggers use-after-free: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include int main() { int fd = syscall(SYS_socket, 0x29ul, 0x5ul, 0x0ul, 0, 0, 0); syscall(SYS_ioctl, fd, 0x89e2ul, 0x20a98000ul, 0, 0, 0); return 0; } [ 3

Re: imx-drm: Possible regression after update to atomic

2016-08-28 Thread Thorsten Leemhuis
Lo! Dave, below report made it to the list of regression for 4.8, but afaics nothing happened after the initial report. Was it discussed (and maybe even fixed?) elsewhere? Or is there some reason why it shouldn't be on the list of regressions at all? Ciao, Thorsten On 13.08.2016 14:37, Peter Senn

Re: [PATCH 5/8] cris-cryptocop: Move an assignment for the variable "nooutpages" in cryptocop_ioctl_process()

2016-08-28 Thread Julia Lawall
On Sun, 28 Aug 2016, SF Markus Elfring wrote: > >> +++ b/arch/cris/arch-v32/drivers/cryptocop.c > >> @@ -2469,7 +2469,7 @@ static int cryptocop_ioctl_process(struct inode > >> *inode, struct file *filp, unsig > >>struct page **inpages = NULL; > >>struct page

Re: [PATCH 8/8] cris-cryptocop: Apply another recommendation from "checkpatch.pl"

2016-08-28 Thread Julia Lawall
On Sun, 28 Aug 2016, SF Markus Elfring wrote: > >> @@ -2276,7 +2277,10 @@ static int cryptocop_job_setup(struct > >> cryptocop_prio_job **pj, struct cryptocop_ > >>(*pj)->iop->ctx_in.saved_data = operation->list_op.inlist; > >>(*pj)->iop->ctx_in.saved_data_buf = > >> op

Re: [BISECTED REGRESSION] v4.8-rc: DT/OCTEON driver probing broken

2016-08-28 Thread Thorsten Leemhuis
Lo! Kefeng, below report made it to the list of regression for 4.8, but afaics nothing happened after the initial report. Is there maybe some reason why it shouldn't be on the list of regressions at all? Or was the problem discussed elsewhere? Or is it even fixed already? I noticed https://git.kern

[PATCH] wan/fsl_ucc_hdlc: fix spelling mistake "prameter" -> "parameter"

2016-08-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_err message. Signed-off-by: Colin Ian King --- drivers/net/wan/fsl_ucc_hdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 6f04445..5fbf83d 1

mm: use-after-free in collapse_huge_page

2016-08-28 Thread Dmitry Vyukov
Hello, I've git the following use-after-free in collapse_huge_page while running syzkaller fuzzer. It is in khugepaged, so not reproducible. On commit 61c04572de404e52a655a36752e696bbcb483cf5 (Aug 25). == BUG: KASAN: use-after-free i

[PATCH] selftests/x86: fix spelling mistake "preseve" -> "preserve"

2016-08-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistakes in printf messages. Signed-off-by: Colin Ian King --- tools/testing/selftests/x86/ptrace_syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/x86/ptrace_syscall.c b/tools/testing/selftes

[PATCH] net: ucc_geth: fix spelling mistake "propperty" -> "property"

2016-08-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_warn message. Signed-off-by: Colin Ian King --- drivers/net/ethernet/freescale/ucc_geth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/

[PATCH] f2fs: fix to do security initialization of encrypted inode with original filename

2016-08-28 Thread Chao Yu
From: Chao Yu When creating new inode, security_inode_init_security will be called for initializing security info related to the inode, and filename is passed to security module, it helps security module such as SElinux to know which rule or label could be applied for the inode with specified nam

[PATCH] cxgb4/cxgb4vf: fix spelling mistake "provissioned" -> "provisioned"

2016-08-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_warn message. Signed-off-by: Colin Ian King --- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net

arch/mips/vdso/elf.S:1:0: error: '-march=r3900' requires '-mfp32'

2016-08-28 Thread kbuild test robot
Hi Alex, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: af56ff27eba54fceee5f5643e79bf6531f2e1739 commit: ebb5e78cc63417a35254a791de66e1cc84f963cc MIPS: Initial implementation of a VDSO date: 10 months ago config:

[PATCH] powerpc/ps3: fix spelling mistake in function name

2016-08-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_warn message and remove extraneous trailing whitespace at end of the message. Signed-off-by: Colin Ian King --- arch/powerpc/platforms/ps3/device-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/

[PATCH] usb: phy: ab8500-usb: fix spelling mistake "regester" -> "register"

2016-08-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistakes in dev_err messages. Signed-off-by: Colin Ian King --- drivers/usb/phy/phy-ab8500-usb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/phy/phy-ab8500-usb.c b/drivers/usb/phy/phy-ab8500-usb.c index 0c

[PATCH 1/4] ARM: dts: Add TOPEET itop core board SCP package version

2016-08-28 Thread Randy Li
The TOPEET itop is a samsung exnynos 4412 core board, which have two package versions. This patch add the support for SCP version. Currently supported are USB3503A HSIC, USB OTG, eMMC, rtc and PMIC. The future features are in the based board. Also MFC and watchdog have been enabled. Signed-off-by

[PATCH 0/4 v3] Add a new board TOPEET iTOP for exynos 4412

2016-08-28 Thread Randy Li
The added the audio codec seems work now, but the audio sounds still a little different to the original. But I didn't hear the sound in the Android, I don't know whether it is qualified. Also it lacks of full pinctrl for the sleep state. Changelog: - v3: - fixing the rtc clock, using clock so

[PATCH 4/4] ARM: dts: samsung: add analog audio codec on TOPEET iTop 4412 Elite

2016-08-28 Thread Randy Li
Enable the WM8960 analog audio codec on TOPEET iTop 4412 Elite board. Signed-off-by: Randy Li --- arch/arm/boot/dts/exynos4412-itop-elite.dts | 77 + 1 file changed, 77 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts b/arch/arm/boot/dts/exynos

[PATCH 2/4] ARM: dts: add TOPEET itop elite based board

2016-08-28 Thread Randy Li
The TOPEET itop exynos 4412 have three versions base board. The Elite version is the cheap one without too much peripheral devices on it. Currently supported are serial console, wired networking(USB), USB OTG in peripheral mode, USB host, SD storage, GPIO buttons, PWM beeper, ADC and LEDs. Signed

[PATCH 3/4] ARM: dts: add fimc support in exynos4412 TOPEET iTop Elite board

2016-08-28 Thread Randy Li
The is not used for camera, I enabled it just for a colorspace convertor. Signed-off-by: Randy Li --- arch/arm/boot/dts/exynos4412-itop-elite.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-itop-elite.dts b/arch/arm/boot/dts/exynos4412-itop

[PATCH] staging: wilc1000: fix spelling mistake: "retyring" -> "retrying"

2016-08-28 Thread Colin King
From: Colin Ian King trivial fix to spelling mistake in dev_err message Signed-off-by: Colin Ian King --- drivers/staging/wilc1000/wilc_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c index 22c

drm: WARNING in drm_irq_by_busid

2016-08-28 Thread Dmitry Vyukov
Hello, I've got the following WARNING while running syzkaller fuzzer: [ cut here ] WARNING: CPU: 1 PID: 16092 at drivers/gpu/drm/drm_pci.c:182 drm_irq_by_busid+0x3c0/0x4a0 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 16092 Comm: syz-executor Not tainted 4.

arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3900' requires '-mfp32'

2016-08-28 Thread kbuild test robot
Hi Guenter, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: af56ff27eba54fceee5f5643e79bf6531f2e1739 commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier date

[PATCH] qla2xxx: fix spelling mistake "retyring" -> "retrying"

2016-08-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistakes in ql_dbg messages. Signed-off-by: Colin Ian King --- drivers/scsi/qla2xxx/qla_os.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 1dd8650..ace65

[PATCH 0/4] Clarify/standardize memory barriers for lock/unlock

2016-08-28 Thread Manfred Spraul
Hi, as discussed before: If a high-scalability locking scheme is built with multiple spinlocks, then often additional memory barriers are required. The documentation was not as clear as possible, and memory barriers were missing / superfluous in the implementation. Patch 1: Documentation, define

[PATCH 4/4] qspinlock for x86: smp_mb__after_spin_lock() is free

2016-08-28 Thread Manfred Spraul
For x86 qspinlocks, no additional memory barrier is required in smp_mb__after_spin_lock: Theoretically, for qspinlock we could define two barriers: - smp_mb__after_spin_lock: Free for x86, not free for powerpc - smp_mb__between_spin_lock_and_spin_unlock_wait(): Free for all archs, see queu

[PATCH 1/4] spinlock: Document memory barrier rules

2016-08-28 Thread Manfred Spraul
Right now, the spinlock machinery tries to guarantee barriers even for unorthodox locking cases, which ends up as a constant stream of updates as the architectures try to support new unorthodox ideas. The patch proposes to reverse that: spin_lock is ACQUIRE, spin_unlock is RELEASE. spin_unlock_wai

[PATCH 3/4] net/netfilter/nf_conntrack_core: update memory barriers.

2016-08-28 Thread Manfred Spraul
Change the locking for nf_conntrack_lock and nf_conntract_lock_all() to the approach used by ipc/sem.c: - use smp_store_mb() instead of a raw smp_mb() - use smp_mb__after_spin_lock(). - for nf_conntrack_lock, use spin_lock(&global_lock) instead of spin_unlock_wait(&global_lock) and loop backward

[PATCH 2/4] barrier.h: Move smp_mb__after_unlock_lock to barrier.h

2016-08-28 Thread Manfred Spraul
spin_unlock() + spin_lock() together do not form a full memory barrier: a=1; spin_unlock(&b); spin_lock(&c); + smp_mb__after_unlock_lock(); d=1; Without the smp_mb__after_unlock_lock(), other CPUs can observe the write to d without seeing the write to a. Signed-off-by: Manfred Spraul --

[GIT pull] timer fixes for 4.8

2016-08-28 Thread Thomas Gleixner
Linus, please pull the latest timers-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus A few updates for timers & co. - Prevent a livelock in the timekeeping code when debugging is enabled - Prevent out of bounds access in th

[GIT pull] irq fixes for 4.8

2016-08-28 Thread Thomas Gleixner
Linus, please pull the latest irq-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus This lot provides: - Plug a hotplug race in the new affinity infrastructure - A fix for the trigger type of chained interrupts - Plug a potenti

Re: [BISECTED REGRESSION] v4.8-rc: DT/OCTEON driver probing broken

2016-08-28 Thread Aaro Koskinen
Hi, On Sun, Aug 28, 2016 at 12:34:06PM +0200, Thorsten Leemhuis wrote: > Lo! Kefeng, below report made it to the list of regression for 4.8, but > afaics nothing happened after the initial report. Is there maybe some > reason why it shouldn't be on the list of regressions at all? Or was the > prob

[GIT pull] x86 fixes for 4.8

2016-08-28 Thread Thomas Gleixner
Linus, please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus A single bugfix to prevent irq remapping when the ioapic is disabled. Thanks, tglx --> Wanpeng Li (1): x86/apic: D

[GIT pull] perf fixes for 4.8

2016-08-28 Thread Thomas Gleixner
Linus, please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus A few fixes from the perf departement - Prevent a imbalanced preemption disable in the events teardown code - Prevent out of bound acces in perf

Re: [PATCH 3/6] rtl8188eu: declare internal function as static

2016-08-28 Thread Andy Shevchenko
On Sat, 2016-08-27 at 14:40 +0200, Luca Ceresoli wrote: Put here few words _why_ you are doing this. Perhaps, add output of sparse static analyzer. > Signed-off-by: Luca Ceresoli > Cc: Greg Kroah-Hartman > Cc: Bhaktipriya Shridhar > Cc: Andy Shevchenko > Cc: Geliang Tang > Cc: Jakub Sitnicki

Re: [PATCH v1] i2c: designware: save the preset value of DW_IC_SDA_HOLD

2016-08-28 Thread Andy Shevchenko
On Sat, 2016-08-27 at 15:39 +0800, Zhuo-hao Lee wrote: > There are several ways to set the SDA hold time for i2c controller, > including: Device Tree, built-in device properties and ACPI. However, > if the SDA hold time is not specified by above method, we should > read the value, where it is prese

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

2016-08-28 Thread walter harms
Am 28.08.2016 07:59, schrieb Mikko Rapeli: > On Fri, Aug 26, 2016 at 05:38:00PM +0200, walter harms wrote: >> perhaps this not tested snipped would make sure that >> you have included linux/rose.h ? >> >> #ifndef ROSE_KERNEL_H >> #include >> #endif >> >> #include > > Sorry, I did not quite get

Re: [PATCH][v6] PM / hibernate: Print the possible panic reason when resuming with inconsistent e820 map

2016-08-28 Thread Pavel Machek
On Sun 2016-08-28 10:07:10, Chen Yu wrote: > Hi, > On Fri, Aug 26, 2016 at 09:56:54PM +0200, Pavel Machek wrote: > > Hi! > > > > > > > > What's the progress of this patch? Looks already have experts > > > > > > review it. > > > > > > Why this patch didn't accept? > > > > > This patch is a little

Re: [PATCH v2] fix:infiniband:hw:cxgb4:qp:mark symbols static where possible

2016-08-28 Thread Leon Romanovsky
Except the fact that we have a little bit different format for title ==> "IB/cxgb4: Mark symbols static for _free_qp" Looks ok, Reviewed-by: Leon Romanovsky signature.asc Description: PGP signature

core.c:undefined reference to `fpu_save'

2016-08-28 Thread kbuild test robot
Hi Andrew, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: af56ff27eba54fceee5f5643e79bf6531f2e1739 commit: c60f169202c7643991a8b4bfeea60e06843d5b5a arch/mn10300/kernel/fpu-nofpu.c: needs asm/elf.h d

Linux 3.10.103

2016-08-28 Thread Willy Tarreau
Linux 3.10.103 was just released. The patch and changelog will appear soon at the following locations: https://www.kernel.org/pub/linux/kernel/v3.x/ https://www.kernel.org/pub/linux/kernel/v3.x/patch-3.10.103.xz https://www.kernel.org/pub/linux/kernel/v3.x/patch-3.10.103.gz https://www.ker

RE: [PATCH][v6] PM / hibernate: Print the possible panic reason when resuming with inconsistent e820 map

2016-08-28 Thread Chen, Yu C
> -Original Message- > From: Pavel Machek [mailto:pa...@ucw.cz] > Sent: Sunday, August 28, 2016 8:48 PM > To: Chen, Yu C > Cc: joeyli; Rafael J. Wysocki; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH][v6] PM / hibernate: Print the possible panic reason when

Hello Beautiful,

2016-08-28 Thread Jack
Good day dear, i hope this mail meets you well? my name is Jack, from the U.S. I know this may seem inappropriate so i ask for your forgiveness but i wish to get to know you better, if I may be so bold. I consider myself an easy-going man, adventurous, honest and fun loving person but I am curre

Re: constification and cocci / kernel build test robot ?

2016-08-28 Thread Julia Lawall
[Adding Kees, in case it's of interest] Below is the list of types of top-level initialized structures and the number that are const. For quicker reading, here are some that are sometimes const (numerator), but not always (denominator): file_operations: 2221/2233 attribute_group: 447/919 irq_chi

Re: [PATCH][v6] PM / hibernate: Print the possible panic reason when resuming with inconsistent e820 map

2016-08-28 Thread Pavel Machek
On Sun 2016-08-28 13:08:02, Chen, Yu C wrote: > > -Original Message- > > From: Pavel Machek [mailto:pa...@ucw.cz] > > Sent: Sunday, August 28, 2016 8:48 PM > > To: Chen, Yu C > > Cc: joeyli; Rafael J. Wysocki; linux...@vger.kernel.org; linux- > > ker...@vger.kernel.org > > Subject: Re: [PAT

[PATCH v2] f2fs: fix to set superblock dirty correctly

2016-08-28 Thread Chao Yu
From: Chao Yu tests/generic/251 of fstest suit complains us with below message: [ cut here ] invalid opcode: [#1] PREEMPT SMP CPU: 2 PID: 7698 Comm: fstrim Tainted: G O4.7.0+ #21 task: e9f4e000 task.stack: e7262000 EIP: 0060:[] EFLAGS: 00010202 CPU: 2 E

Re: cris-cryptocop: Apply another recommendation from "checkpatch.pl"

2016-08-28 Thread SF Markus Elfring
>>> There is plenty of room for at least &(*pj)->iop on the line before. >> >> This is true. - Do you prefer an other indentation approach here? > > Very much. Most of the kernel code puts as much information on a line as > possible, unless there is a reason to do otherwise. Then more of the cod

[PATCH] lib/rbtree.c: fix typo in comment of ____rb_erase_color

2016-08-28 Thread Jie Chen
From: cee1 In Case 3 of `sibling == parent->rb_right': Right rotation will not change color of sl and S in the diagram (i.e. should not change "sl" to "Sl", "S" to "s") In Case 3 of `sibling == parent->rb_left': (p) (p) / \ / \ S N--> sr N / \

RE: [PATCH][v6] PM / hibernate: Print the possible panic reason when resuming with inconsistent e820 map

2016-08-28 Thread Chen, Yu C
> -Original Message- > From: Pavel Machek [mailto:pa...@ucw.cz] > Sent: Sunday, August 28, 2016 9:15 PM > To: Chen, Yu C > Cc: joeyli; Rafael J. Wysocki; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH][v6] PM / hibernate: Print the possible panic reason whe

Re: [PATCH 2/4] barrier.h: Move smp_mb__after_unlock_lock to barrier.h

2016-08-28 Thread Paul E. McKenney
On Sun, Aug 28, 2016 at 01:56:14PM +0200, Manfred Spraul wrote: > spin_unlock() + spin_lock() together do not form a full memory barrier: > > a=1; > spin_unlock(&b); > spin_lock(&c); > + smp_mb__after_unlock_lock(); > d=1; Better would be s/d=1/r1=d/ above. Then another process doing thi

[PATCH] f2fs crypto: avoid unneeded memory allocation in ->readdir

2016-08-28 Thread Chao Yu
From: Chao Yu When decrypting dirents in ->readdir, fscrypt_fname_disk_to_usr won't change content of original encrypted dirent, we don't need to allocate additional buffer for storing mirror of it, so get rid of it. Signed-off-by: Chao Yu --- fs/f2fs/dir.c | 7 --- 1 file changed, 7 delet

Re: [PATCH V6 5/5] perf tools: adding sink configuration for cs_etm PMU

2016-08-28 Thread Jiri Olsa
On Thu, Aug 25, 2016 at 02:20:45PM -0600, Mathieu Poirier wrote: SNIP > return NULL; > } > + > +static FILE *cs_device__open_file(const char *name) > +{ > + struct stat st; > + char path[PATH_MAX]; > + const char *sysfs; > + > + sysfs = sysfs__mountpoint(); > + if (!sys

Re: [PATCH V6 1/5] perf tools: making coresight PMU listable

2016-08-28 Thread Jiri Olsa
On Thu, Aug 25, 2016 at 02:20:41PM -0600, Mathieu Poirier wrote: SNIP > ARM/CORGI MACHINE SUPPORT > M: Richard Purdie > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index 24803c58049a..72edf83d76b7 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefil

Re: [PATCH V6 0/5] perf: Driver specific configuration for PMU

2016-08-28 Thread Jiri Olsa
On Thu, Aug 25, 2016 at 02:20:40PM -0600, Mathieu Poirier wrote: SNIP > perf record -e some_event/@cfg1,@cfg2=config/ ... > > The above are all valid configuration and will see the strings 'cfg1' > and 'cfg2=config' sent to the PMU driver for parsing and interpretation > using the existing ioctl

dri: WARNING in idr_remove

2016-08-28 Thread Dmitry Vyukov
Hello, The following program causes a WARNING in idr_remove: [ cut here ] WARNING: CPU: 3 PID: 26766 at lib/idr.c:505 idr_remove called for id=1 which is not allocated. CPU: 3 PID: 26766 Comm: syz-executor Not tainted 4.8.0-rc3+ #33 Hardware name: QEMU Standard PC (i440FX

[PATCH 1/3] userfaultfd: selftest: introduce userfaultfd_open

2016-08-28 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- tools/testing/selftests/vm/userfaultfd.c | 41 +++- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c index a5e5808..75540e7 100644 --- a

[PATCH 0/3] userfaultfd: selftest: add event tests

2016-08-28 Thread Mike Rapoport
Hi, These patches add tests for userfaultfd events used in non-cooperative scenario. The tests verify that fork(), mremap() and madvise(MADV_DONTNEED) can be properly handled when the process that monitors userfaultfd is not the process that causes the pagefaults. Mike Rapoport (3): userfaultfd

[PATCH 2/3] userfaultfd: selftest: add ufd parameter to copy_page

2016-08-28 Thread Mike Rapoport
With future addition of event tests, copy_page will be called with different userfault file descriptors Signed-off-by: Mike Rapoport --- tools/testing/selftests/vm/userfaultfd.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/vm/userfaultfd.

[PATCH 3/3] userfaultfd: selftest: add test for FORK, MADVDONTNEED and REMAP events

2016-08-28 Thread Mike Rapoport
Add test for userfaultfd events used in non-cooperative scenario when the process that monitors the userfaultfd and handles user faults is not the same process that causes the page faults. Signed-off-by: Mike Rapoport --- tools/testing/selftests/vm/userfaultfd.c | 174 +++

Re: [PATCH 2/4] barrier.h: Move smp_mb__after_unlock_lock to barrier.h

2016-08-28 Thread kbuild test robot
tch --base= (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information] url: https://github.com/0day-ci/linux/commits/Manfred-Spraul/spinlock-Document-memory-barrier-rules/20160

[patch 1/2] i2c: add master driver for mellanox systems

2016-08-28 Thread vadimp
From: Vadim Pasternak Device driver for Mellanox I2C controller logic, implemented in Lattice CPLD device. Device supports: - Master mode - One physical bus - Polling mode The Kconfig currently controlling compilation of this code is: drivers/i2c/busses/Kconfig:config I2C_MLXCPLD Signed-off-

Re: [PATCH] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions

2016-08-28 Thread Chen Gang
bitops-Use-bool-instead-of-int-for-all-bit-test-functions/20160828-134633 > config: m68k-sun3_defconfig (attached as .config) > compiler: m68k-linux-gcc (GCC) 4.9.0 > reproduce: > wget > https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross > -O ~/bi

[patch 2/2] i2c: mux: mellanox: add driver

2016-08-28 Thread vadimp
From: Vadim Pasternak This driver allows I2C routing controlled through CPLD select registers on wide range of Mellanox systems (CPLD Lattice device). MUX selection is provided by digital and analog HW. Analog part is not under SW control. Digital part is under CPLD control (channel selection/de-

[PATCH v3] IB/cxgb4: Mark symbols static for _free_qp

2016-08-28 Thread Baoyou Xie
We get 1 warning when build kernel with W=1: drivers/infiniband/hw/cxgb4/qp.c:686:6: warning: no previous prototype for '_free_qp' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch mar

[PATCH v2] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions

2016-08-28 Thread chengang
From: Chen Gang Also use the same changing to asm-generic, and also use bool variable instead of int variable for mips, mn10300, parisc and tile related functions, and also avoid checkpatch.pl to report ERROR. Include linux/types.h for alpha, arm, arm64, m68k, and openrisc to pass building. Ori

Re: [PATCH 3/6] rtl8188eu: declare internal function as static

2016-08-28 Thread Luca Ceresoli
Dear Andy, thanks for your review. On 28/08/2016 14:28, Andy Shevchenko wrote: > On Sat, 2016-08-27 at 14:40 +0200, Luca Ceresoli wrote: > > Put here few words _why_ you are doing this. I'm doing it because this function is only used inside rtw_recv.c. Which is quite logical, since it's a timer

Re: [RFC PATCH] clk: rockchip: rk3399: support pll setting automatically

2016-08-28 Thread Heiko Stübner
Hi Xing, Elaine, Am Dienstag, 2. August 2016, 21:34:12 schrieb Xing Zheng: > From: Elaine Zhang > > The goal is that we can configure the most suitable pll params > automatically. > > If setting freq is not supported in rockchip_pll_rate_table > rk3399_pll_rates[], we can set pll params automat

Linux 4.8: Reported regressions as of Sunday, 2016-08-28

2016-08-28 Thread Thorsten Leemhuis
Hi! Here is my second regression report for Linux 4.8. It lists 11 regressions. 5 of them are new; 5 mentioned in the last report two weeks ago got fixed. FWIW: A small detail: I did not include "Regression - SATA disks behind USB ones on v4.8-rc1, breaking boot. [Re: Who reordered my disks]" (

Re: [PATCH v2] i2c: move locking operations to their own struct

2016-08-28 Thread Daniel Vetter
On Thu, Aug 25, 2016 at 11:07:01PM +0200, Peter Rosin wrote: > This makes it trivial to constify them, so do that. > > Signed-off-by: Peter Rosin Acked-by: Daniel Vetter Feel free to merge through i2c tree. -Daniel > --- > drivers/gpu/drm/drm_dp_helper.c | 10 +++--- > drivers/i2c/i2c-co

Re: [PATCH v06] uapi dm-log-userspace.h: use __u32, __s32, __u64 and __s64 from linux/types.h

2016-08-28 Thread Bart Van Assche
On 08/27/16 23:43, Mikko Rapeli wrote: > Fixes userspace compilation errors like: > > linux/dm-log-userspace.h:416:2: error: unknown type name ‘uint64_t’ Reviewed-by: Bart Van Assche

[PATCH -next] staging: fsl-mc: convert to use ATTRIBUTE_GROUPS macro

2016-08-28 Thread Wei Yongjun
From: Wei Yongjun Use ATTRIBUTE_GROUPS macro to reduce the number of lines of code. Generated by Coccinelle semantic patch. Signed-off-by: Wei Yongjun --- drivers/staging/fsl-mc/bus/mc-bus.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/

[PATCH][v8] PM / hibernate: Verify the consistent of e820 memory map by md5 value

2016-08-28 Thread Chen Yu
On some platforms, there is occasional panic triggered when trying to resume from hibernation, a typical panic looks like: "BUG: unable to handle kernel paging request at 880085894000 IP: [] load_image_lzo+0x8c2/0xe70" This is because e820 map has been changed by BIOS across hibernation, and

  1   2   3   4   >