Re: [PATCH] KVM: VMX: Enable MSR-BASED TPR shadow even if w/o APICv

2016-09-17 Thread Wanpeng Li
2016-09-18 14:53 GMT+08:00 Wanpeng Li : > 2016-09-15 23:58 GMT+08:00 Radim Krčmář : >> 2016-09-15 15:05+0800, Wanpeng Li: >>> 2016-09-14 20:03 GMT+08:00 Radim Krčmář : 2016-09-14 11:40+0200, Paolo Bonzini: > On 14/09/2016 09:58, Wanpeng Li wrote: >> From: Wanpeng Li >> >> I ob

Re: [PATCH] KVM: VMX: Enable MSR-BASED TPR shadow even if w/o APICv

2016-09-17 Thread Wanpeng Li
2016-09-15 23:58 GMT+08:00 Radim Krčmář : > 2016-09-15 15:05+0800, Wanpeng Li: >> 2016-09-14 20:03 GMT+08:00 Radim Krčmář : >>> 2016-09-14 11:40+0200, Paolo Bonzini: On 14/09/2016 09:58, Wanpeng Li wrote: > From: Wanpeng Li > > I observed that kvmvapic(to optimize flexpriority=N o

Re: [PATCH linux-firmware 06/12] WHENCE: Remove references to two nvidia firmware files that were never added

2016-09-17 Thread Alexandre Courbot
On 09/18/2016 11:02 AM, Ben Hutchings wrote: > * PGP Signed by an unknown key > > Signed-off-by: Ben Hutchings Stupid copy-paste. Thanks for catching this! Reviewed-by: Alexandre Courbot > --- > WHENCE | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/WHENCE b/WHENCE > index 6002834

[PATCH 10/10] firewire-net: Adjust checks for null pointers in five functions

2016-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 18 Sep 2016 07:48:56 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" can point information out like the following. Comparison to NULL could be written !… Thus fix the affected source code

[PATCH 09/10] firewire-net: Rename jump labels in fwnet_pd_new()

2016-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 22:48:46 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firewire/net.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/firewire/net.

[PATCH 08/10] firewire-net: Rename a jump label in fwnet_finish_incoming_packet()

2016-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 22:40:05 +0200 Adjust a jump label according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firewire/net.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/firewire/net.c b/driv

[PATCH 07/10] firewire-net: Rename a jump label in fwnet_incoming_packet()

2016-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 22:32:14 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firewire/net.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/firewire/net.c b

[PATCH 06/10] firewire-net: Rename a jump label in fwnet_send_packet()

2016-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 22:27:52 +0200 Adjust a jump label according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firewire/net.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/firewire/net.c b/driv

[PATCH 05/10] firewire-net: Rename a jump label in fwnet_tx()

2016-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 22:22:58 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firewire/net.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/firewire/net.c

[PATCH 04/10] firewire-net: Rename jump labels in fwnet_probe()

2016-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 22:17:12 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firewire/net.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/firewire/net.c b

[PATCH 03/10] firewire-net: Rename jump labels in fwnet_init()

2016-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 22:11:25 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firewire/net.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/firewire/net.c b/dr

[PATCH 02/10] firewire-net: Rename a jump label in fwnet_broadcast_start()

2016-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 22:02:44 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firewire/net.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/firewire/net.

[PATCH 01/] firewire-net: Use kmalloc_array() in fwnet_broadcast_start()

2016-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 21:55:42 +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: [tip regression] efi: Allow drivers to reserve boot services forever == toxic

2016-09-17 Thread Mike Galbraith
On Sat, 2016-09-17 at 20:58 +0100, Matt Fleming wrote: > These addresses are pretty low. Can you try the hacky patch plus > Ricardo's change in commit 3dad6f7f6975 ("x86/efi: Defer efi_esrt_init > until after memblock_x86_fill"). He fixed a bug where it's possible to > run out of memblock regions.

[PATCH 00/10] firewire-net: Fine-tuning for several function implementations

2016-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 18 Sep 2016 08:04:02 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (10): Use kmalloc_array() in fwnet_broadcast_start() Rename a jump label in fwnet_broadcast_start() Rename jump labels in fwnet_init()

[PATCH 1/2] rtc: Add some dummy static inline functions

2016-09-17 Thread Baolin Wang
The patch 2 in this patchset adding tracepoints for alarmtimers will build failed on S390 platform, due to S390 defconfig did not define CONFIG_RTC_LIB macro to define the rtc_ktime_to_tm() function which is used in this patch. Thus we should add some ummy static inline functions in case CONFIG_RTC

[PATCH 2/2] time: alarmtimer: Add the trcepoints for alarmtimer

2016-09-17 Thread Baolin Wang
For system debugging, we sometimes want to know who sets one alarm timer, the time of the timer, when the timer started and fired and so on. Thus adding tracepoints can help us trace the alarmtimer information. For example, when we debug the system supend/resume, if the system is always resumed by

drivers/gpio/gpiolib.c:3215: undefined reference to `of_get_named_gpiod_flags'

2016-09-17 Thread kbuild test robot
Hi Linus, 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: d4690f1e1cdabb4d61207b6787b1605a0dc0aeab commit: 2527ecc9195e9c66252af24c4689e8a67cd4ccb9 gpio: Fix OF build problem on UM date: 4 weeks ag

Re: [PATCH 4/5] ipc/msg: Lockless security checks for msgsnd

2016-09-17 Thread Manfred Spraul
Hi Davidlohr, Just as with msgrcv (along with the rest of sysvipc since a few years ago), perform the security checks without holding the ipc object lock. Thinking about it: isn't this wrong? CPU1: * msgrcv() * ipcperms() CPU2: * msgctl(), change permissions ** msgctl() returns, new perm

Re: Possible code defects: macros and precedence

2016-09-17 Thread Julia Lawall
On Sat, 17 Sep 2016, Joe Perches wrote: > On Sat, 2016-09-17 at 22:24 +0200, Julia Lawall wrote: > > diff -u -p a/lib/sha1.c b/lib/sha1.c > [] > > @@ -49,18 +49,18 @@ > >   * the input data, the next mix it from the 512-bit array. > >   */ > >  #define SHA_SRC(t) get_unaligned_be32((__u32 *)data

Re: [PATCH v2 2/2] usb: dwc3: Wait for control tranfer completed when stopping gadget

2016-09-17 Thread Baolin Wang
Hi Felipe, On 9 September 2016 at 19:03, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c >> index 057739d..22787b6 100644 >> --- a/drivers/usb/dwc3/core.c >> +++ b/drivers/usb/dwc3/core.c >> @@ -999,6 +999,7 @@ static int dwc3

Re: Possible code defects: macros and precedence

2016-09-17 Thread Julia Lawall
On Sat, 17 Sep 2016, Joe Perches wrote: > On Sat, 2016-09-17 at 22:24 +0200, Julia Lawall wrote: > > (A 2.2MB message that (perhaps thankfully) didn't get through to lkml) > > > Below is the Coccinelle output for the case where the definition of the > > macro is a single expression.  There is al

Re: [PATCH v2 1/2] usb: dwc3: gadget: Add disconnect checking when changing function dynamically

2016-09-17 Thread Baolin Wang
Hi Felipe, Sorry for late reply due to my holiday. On 9 September 2016 at 18:47, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> When system has stpped the gadget, we should avoid queuing any requests >> which will cause tranfer failed. Thus adding some disconnect checking to >> avoid th

Re: Runtime failure running sh:qemu in -next due to 'sh: fix copy_from_user()'

2016-09-17 Thread Rob Landley
On 09/16/2016 09:23 PM, Guenter Roeck wrote: > On 09/16/2016 04:32 PM, Rich Felker wrote: >>> 4.6.3 from kernel.org. >> >> That is utterly ancient and probaby very buggy. I would recommend 5.x+ >> or at the very least 4.7 or 4.8. >> > Unfortunately that is the latest one available from kernel.org

Re: [PATCH 2/8] drm/rockchip: Get rid of some unnecessary code

2016-09-17 Thread Tomasz Figa
Hi Mark, On Sun, Sep 18, 2016 at 10:50 AM, Mark yao wrote: > On 2016年09月14日 20:54, Tomasz Figa wrote: >> >> Current code implements prepare_fb and cleanup_fb callbacks only to >> grab/release fb references, which is already done by atomic framework >> when creating/destryoing plane state. Let's r

Re: [PATCH V3 1/4] ARM64 LPC: Indirect ISA port IO introduced

2016-09-17 Thread zhichang
Hi, Arnd, On 2016年09月14日 22:23, Arnd Bergmann wrote: > On Wednesday, September 14, 2016 10:16:28 PM CEST zhichang.yuan wrote: >>> >>> No need to guard includes with an #ifdef. >> If remove #ifdef here, extio.h should not contain any function external >> declarations whose definitions are in >> e

RE: [PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-17 Thread Po Liu
Hi Shawn, > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Sunday, September 18, 2016 8:52 AM > To: Po Liu > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.org; Roy Zang; Arnd >

Re: [PATCH] jbd2: move more common code into journal_init_common()

2016-09-17 Thread Geliang Tang
On Thu, Sep 15, 2016 at 03:58:18PM -0400, Theodore Ts'o wrote: > On Thu, Sep 15, 2016 at 12:03:09PM -0400, Theodore Ts'o wrote: > > On Wed, Sep 07, 2016 at 03:16:24PM +0200, Jan Kara wrote: > > > On Wed 07-09-16 20:41:13, Geliang Tang wrote: > > > > There are some repetitive code in jbd2_journal_in

Hello

2016-09-17 Thread Hasher Al Maktoum
Dear Friend, Your contact details came to me by recommendation, I am interested in investing in your country and I believe you have the capabilities of providing the needed assistance, solutions and advise in actualizing this, Let me know if you are willing to understake this task for me so we

Your payment Released

2016-09-17 Thread First Mile Consulting Inc.
Hello We want to let you know that record available to us states that sometime ago, you were contacted by some people who said they wanted to wire some money into your account and you people share at an agreed ratio. You opened communication with the consulting company then but after sometime,

Re: [PATCH linux-firmware 10/12] WHENCE: List new radeon CI and SI smc firmware

2016-09-17 Thread Ben Hutchings
On Sun, Sep 18, 2016 at 03:03:43AM +0100, Ben Hutchings wrote: [...] > @@ -2957,6 +2964,7 @@ File: qat_c3xxx.bin > File: qat_c3xxx_mmp.bin > File: qat_c62x.bin > File: qat_c62x_mmp.bin > +Link: qat_mmp.bin -> qat_895xcc_mmp.bin > > Licence: Redistributable. See LICENCE.qat_firmware for detail

Re: [PATCH v4] stop_machine: Avoid a sleep and wakeup in the stop_one_cpu()

2016-09-17 Thread Cheng Chao
Hi Peter, What should I do next? Thanks. Cheng on 09/14/2016 10:01 AM, Cheng Chao wrote: > In case @cpu == smp_proccessor_id(), we can avoid a sleep+wakeup > by doing a preemption. > > the caller such as sched_exec can benefit from this change. > > Signed-off-by: Cheng Chao > Cc: Oleg Neste

[PATCH linux-firmware 12/12] README: Say that files must be listed in WHENCE, and how to check it

2016-09-17 Thread Ben Hutchings
- Say that new files must, not 'should', be listed in WHENCE - State the expected form of a reference to a separate licence file - Mention 'make check' Signed-off-by: Ben Hutchings --- README | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README b/README index cdaec

[PATCH linux-firmware 11/12] WHENCE: Add reference to 'qca/NOTICE.txt'

2016-09-17 Thread Ben Hutchings
Signed-off-by: Ben Hutchings --- WHENCE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WHENCE b/WHENCE index 64fea97a20dc..aafd503f9447 100644 --- a/WHENCE +++ b/WHENCE @@ -3144,7 +3144,7 @@ File: qca/rampatch_usb_0302.bin File: qca/rampatch_00130300.bin File: qca/rampa

[PATCH linux-firmware 08/12] WHENCE: Adjust some licence file references to satisfy check_whence.py

2016-09-17 Thread Ben Hutchings
Signed-off-by: Ben Hutchings --- WHENCE | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WHENCE b/WHENCE index 93927fcfe627..17dda3bfb16f 100644 --- a/WHENCE +++ b/WHENCE @@ -469,8 +469,7 @@ Version: 1.4.0 File: ath9k_htc/htc_9271-1.4.0.fw Version: 1.4.0 -Licence: Red

[PATCH linux-firmware 09/12] WHENCE: Fix metadata for snd-soc-skl firmware

2016-09-17 Thread Ben Hutchings
Fix filename 'intel/dsp_fw_bxtn.bin'. List all the files and their versions, not just the symlinks. Delete the non-standard 'md5sum' fields. Signed-off-by: Ben Hutchings --- WHENCE | 30 -- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/WHENCE b/WHEN

[PATCH linux-firmware 10/12] WHENCE: List new radeon CI and SI smc firmware

2016-09-17 Thread Ben Hutchings
These were added in commits 406964300821, 9693ff6d749d. Signed-off-by: Ben Hutchings --- WHENCE | 8 1 file changed, 8 insertions(+) diff --git a/WHENCE b/WHENCE index df69dd8cbc75..64fea97a20dc 100644 --- a/WHENCE +++ b/WHENCE @@ -1743,36 +1743,42 @@ File: radeon/MULLINS_pfp.bin File

[PATCH linux-firmware 07/12] Remove unused 'LICENCE.mwl8335'

2016-09-17 Thread Ben Hutchings
This was the licence text for mwl8335_duplex.fw which has already been removed. Signed-off-by: Ben Hutchings --- LICENCE.mwl8335 | 52 1 file changed, 52 deletions(-) delete mode 100644 LICENCE.mwl8335 diff --git a/LICENCE.mwl8335 b/LICENCE.

[PATCH linux-firmware 06/12] WHENCE: Remove references to two nvidia firmware files that were never added

2016-09-17 Thread Ben Hutchings
Signed-off-by: Ben Hutchings --- WHENCE | 2 -- 1 file changed, 2 deletions(-) diff --git a/WHENCE b/WHENCE index 60028347b443..93927fcfe627 100644 --- a/WHENCE +++ b/WHENCE @@ -3227,10 +3227,8 @@ File: nvidia/gm20b/gr/fecs_bl.bin File: nvidia/gm20b/gr/fecs_data.bin File: nvidia/gm20b/gr/fecs_

[PATCH linux-firmware 03/12] Add copy of GPL v2 and references to the GPL-2 and GPL-3 files

2016-09-17 Thread Ben Hutchings
Signed-off-by: Ben Hutchings --- GPL-2 | 339 + WHENCE | 16 ++-- 2 files changed, 347 insertions(+), 8 deletions(-) create mode 100644 GPL-2 diff --git a/GPL-2 b/GPL-2 new file mode 100644 index ..d159169d1050 --- /d

[PATCH linux-firmware 05/12] WHENCE: Remove references to source for emi62 firmware

2016-09-17 Thread Ben Hutchings
The 'sources' appear to be the names of ihex files, not actual source code, and in any case those files are not included in this repository. Signed-off-by: Ben Hutchings --- WHENCE | 3 --- 1 file changed, 3 deletions(-) diff --git a/WHENCE b/WHENCE index 372f111c1b01..60028347b443 100644 --- a

[PATCH linux-firmware 04/12] WHENCE: Specify source directories for cis, isci, and usbdux firmware

2016-09-17 Thread Ben Hutchings
This stops check_whence.py complaining about Makefiles etc. Signed-off-by: Ben Hutchings --- WHENCE | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/WHENCE b/WHENCE index 6ca42394eeb7..372f111c1b01 100644 --- a/WHENCE +++ b/WHENCE @@ -1074,13 +1074,7 @@ Fil

[PATCH linux-firmware 02/12] WHENCE: Correct filename of LICENCE.moxa

2016-09-17 Thread Ben Hutchings
Signed-off-by: Ben Hutchings --- WHENCE | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WHENCE b/WHENCE index d7feede2b4da..5abdd8d3f49f 100644 --- a/WHENCE +++ b/WHENCE @@ -2889,7 +2889,7 @@ File: moxa/moxa-1131.fw File: moxa/moxa-1150.fw File: moxa/moxa-1151.fw -Lice

Re: [PATCH v2] sched/core: remove unnecessary initialization in sched_init()

2016-09-17 Thread Cheng Chao
Hi Peter, Would you please review this patch? thanks. Cheng on 09/14/2016 10:23 AM, Cheng Chao wrote: > init_idle() is called immediately after current->sched_class > = &fair_sched_class, init_idle() sets current->sched_class > = &idle_sched_class. > > Signed-off-by: Cheng Chao > Cc: sta...@

[PATCH linux-firmware 01/12] Add a metadata consistency check script

2016-09-17 Thread Ben Hutchings
The script compares the files listed in WHENCE (or otherwise expected) and the files known to git, and reports all differences as errors. Add a 'check' rule to the Makefile that runs this. Signed-off-by: Ben Hutchings --- Makefile| 3 +++ check_whence.py | 56 ++

[PATCH linux-firmware 00/12] Fix metadata for linux-firmware

2016-09-17 Thread Ben Hutchings
This series adds a metadata consistency check script, fixes all the errors it found, and adds a reference to it in README. If I don't hear any objections, I'll apply these changes next week. Ben. Ben Hutchings (12):   Add a metadata consistency check script   WHENCE: Correct filename of LICENCE.

Re: [PATCH -v3 00/10] THP swap: Delay splitting THP during swapping out

2016-09-17 Thread Huang, Ying
Minchan Kim writes: > On Tue, Sep 13, 2016 at 04:53:49PM +0800, Huang, Ying wrote: >> Minchan Kim writes: >> > On Tue, Sep 13, 2016 at 02:40:00PM +0800, Huang, Ying wrote: >> >> Minchan Kim writes: >> >> >> >> > Hi Huang, >> >> > >> >> > On Fri, Sep 09, 2016 at 01:35:12PM -0700, Huang, Ying wr

Re: [PATCH 2/8] drm/rockchip: Get rid of some unnecessary code

2016-09-17 Thread Mark yao
On 2016年09月14日 20:54, Tomasz Figa wrote: Current code implements prepare_fb and cleanup_fb callbacks only to grab/release fb references, which is already done by atomic framework when creating/destryoing plane state. Let's remove these unused bits. Signed-off-by: Tomasz Figa --- drivers/gpu/d

Re: [PATCH] clk: hisilicon: add CRG driver for Hi3798CV200 SoC

2016-09-17 Thread Jiancheng Xue
On 2016/9/15 5:01, Stephen Boyd wrote: > On 09/12, Jiancheng Xue wrote: >> Add CRG driver for Hi3798CV200 SoC. CRG(Clock and Reset >> Generator) module generates clock and reset signals used >> by other module blocks on SoC. >> >> Signed-off-by: Jiancheng Xue > > Overall looks fine. Just a few ni

Re: Cannot load linux after recent efi-related changes

2016-09-17 Thread Mike Krinkin
On Sat, Sep 17, 2016 at 07:23:57PM +0300, Mike Krinkin wrote: > Hello, > > after commit 3dad6f7f6975 ("x86/efi: Defer efi_esrt_init until after > memblock_x86_fill") kernel hits BUG_ON __efi_enter_virtual_mode because > efi.systab is NULL. With older kernel versions i face the problem with > efi_m

[PATCH] perf, tools: Handle events including .c and .o

2016-09-17 Thread Andi Kleen
From: Andi Kleen This is a generic bug fix, but it helps with Sukadev's JSON event tree where such events can happen. Any event inclduing a .c/.o/.bpf currently triggers BPF compilation or loading and then an error. This can happen for some Intel JSON events, which cannot be used. Fix the scan

Re: Crashing 'kzm' target in next-20160913 due to 'gpio: mxc: shift gpio_mxc_init() to subsys_initcall level'

2016-09-17 Thread Guenter Roeck
On 09/17/2016 05:08 PM, Shawn Guo wrote: Hi Guenter, On Thu, Sep 15, 2016 at 04:35:04PM +0300, Vladimir Zapolskiy wrote: The proper fix in this particular case should be like this one: Does Vladimir's patch below fix your problem? Yes, it does. Feel free to add Tested-by: Guenter Roeck t

Re: [PATCH v5 3/3] pci:aer: add support aer interrupt with none MSI/MSI-X/INTx mode

2016-09-17 Thread Shawn Guo
On Tue, Sep 13, 2016 at 12:40:59PM +0800, Po Liu wrote: > On some platforms, root port doesn't support MSI/MSI-X/INTx in RC mode. > When chip support the aer interrupt with none MSI/MSI-X/INTx mode, > maybe there is interrupt line for aer pme etc. Search the interrupt > number in the fdt file. Then

Re: [PATCH 1/1] ARM: imx5: Add clocks configuration

2016-09-17 Thread Shawn Guo
On Sun, Sep 18, 2016 at 08:21:59AM +0800, Shawn Guo wrote: > On Thu, Sep 15, 2016 at 08:42:33PM +0300, Alexander Shiyan wrote: > > >Четверг, 15 сентября 2016, 13:13 +03:00 от Fabien Lahoudere > > >: > > > > > >From: Kalle Kankare < kalle.kank...@vincit.fi > > > > > > >Add clocks configuration for

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

2016-09-17 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: d4690f1e1cdabb4d61207b6787b1605a0dc0aeab commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier date

Re: [PATCH 1/1] ARM: imx5: Add clocks configuration

2016-09-17 Thread Shawn Guo
On Thu, Sep 15, 2016 at 08:42:33PM +0300, Alexander Shiyan wrote: > >Четверг, 15 сентября 2016, 13:13 +03:00 от Fabien Lahoudere > >: > > > >From: Kalle Kankare < kalle.kank...@vincit.fi > > > > >Add clocks configuration for CSI, FIRI and IEEE1588. > > > >Signed-off-by: Fabien Lahoudere < fabien.l

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

2016-09-17 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: d4690f1e1cdabb4d61207b6787b1605a0dc0aeab commit: ebb5e78cc63417a35254a791de66e1cc84f963cc MIPS: Initial implementation of a VDSO date: 10 months ago config:

Re: Crashing 'kzm' target in next-20160913 due to 'gpio: mxc: shift gpio_mxc_init() to subsys_initcall level'

2016-09-17 Thread Shawn Guo
Hi Guenter, On Thu, Sep 15, 2016 at 04:35:04PM +0300, Vladimir Zapolskiy wrote: > The proper fix in this particular case should be like this one: > Does Vladimir's patch below fix your problem? Shawn > diff --git a/arch/arm/mach-imx/mach-kzm_arm11_01.c > b/arch/arm/mach-imx/mach-kzm_arm11_01.

Re: [PATCH] sched: Fix SCHED_HRTICK bug leading to late preemption of tasks

2016-09-17 Thread Wanpeng Li
2016-09-17 9:28 GMT+08:00 Joonwoo Park : > From: Srivatsa Vaddagiri > > SCHED_HRTICK feature is useful to preempt SCHED_FAIR tasks on-the-dot > (just when they would have exceeded their ideal_runtime). It makes use > of a per-cpu hrtimer resource and hence alarming that hrtimer should > be based o

[PATCH net-next 00/11] rxrpc: Tracepoint addition and improvement

2016-09-17 Thread David Howells
/dhowells/linux-fs.git rxrpc-rewrite-20160917-2 David --- David Howells (11): rxrpc: Print the packet type name in the Rx packet trace rxrpc: Add some additional call tracing rxrpc: Add connection tracepoint and client conn state tracepoint rxrpc: Add a tracepoint to

[PATCH net-next 01/11] rxrpc: Print the packet type name in the Rx packet trace

2016-09-17 Thread David Howells
Print a symbolic packet type name for each valid received packet in the trace output, not just a number. Signed-off-by: David Howells --- include/trace/events/rxrpc.h |5 +++-- net/rxrpc/ar-internal.h |6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include

[PATCH net-next 04/11] rxrpc: Add a tracepoint to follow the life of a packet in the Tx buffer

2016-09-17 Thread David Howells
Add a tracepoint to follow the insertion of a packet into the transmit buffer, its transmission and its rotation out of the buffer. Signed-off-by: David Howells --- include/trace/events/rxrpc.h | 26 ++ net/rxrpc/ar-internal.h | 12 net/rxrpc/input.

[PATCH net-next 03/11] rxrpc: Add connection tracepoint and client conn state tracepoint

2016-09-17 Thread David Howells
Add a pair of tracepoints, one to track rxrpc_connection struct ref counting and the other to track the client connection cache state. Signed-off-by: David Howells --- include/trace/events/rxrpc.h | 60 +++ net/rxrpc/ar-internal.h | 76 ++

[PATCH net-next 09/11] rxrpc: Remove printks from rxrpc_recvmsg_data() to fix uninit var

2016-09-17 Thread David Howells
Remove _enter/_debug/_leave calls from rxrpc_recvmsg_data() of which one uses an uninitialised variable. Signed-off-by: David Howells --- net/rxrpc/recvmsg.c |8 1 file changed, 8 deletions(-) diff --git a/net/rxrpc/recvmsg.c b/net/rxrpc/recvmsg.c index b62a08151895..79e65668bc58

[PATCH net-next 11/11] rxrpc: Add config to inject packet loss

2016-09-17 Thread David Howells
Add a configuration option to inject packet loss by discarding approximately every 8th packet received and approximately every 8th DATA packet transmitted. Note that no locking is used, but it shouldn't really matter. Signed-off-by: David Howells --- net/rxrpc/Kconfig |7 +++ net/rxrp

[PATCH net-next 08/11] rxrpc: Add a tracepoint to follow what recvmsg does

2016-09-17 Thread David Howells
Add a tracepoint to follow what recvmsg does within AF_RXRPC. Signed-off-by: David Howells --- include/trace/events/rxrpc.h | 34 ++ net/rxrpc/ar-internal.h | 17 + net/rxrpc/misc.c | 14 ++ net/rxrpc/recvmsg.c

[PATCH net-next 10/11] rxrpc: Improve skb tracing

2016-09-17 Thread David Howells
Improve sk_buff tracing within AF_RXRPC by the following means: (1) Use an enum to note the event type rather than plain integers and use an array of event names rather than a big multi ?: list. (2) Distinguish Rx from Tx packets and account them separately. This requires the call ph

[PATCH net-next 05/11] rxrpc: Add a tracepoint to log received ACK packets

2016-09-17 Thread David Howells
Add a tracepoint to log information from received ACK packets. Signed-off-by: David Howells --- include/trace/events/rxrpc.h | 26 ++ net/rxrpc/input.c|2 ++ 2 files changed, 28 insertions(+) diff --git a/include/trace/events/rxrpc.h b/include/trace/ev

[PATCH net-next 06/11] rxrpc: Add a tracepoint to log ACK transmission

2016-09-17 Thread David Howells
Add a tracepoint to log information about ACK transmission. Signed-off-by: David Howels --- include/trace/events/rxrpc.h | 30 ++ net/rxrpc/conn_event.c |3 +++ net/rxrpc/output.c |7 ++- 3 files changed, 39 insertions(+), 1 deletion(-)

[PATCH net-next 07/11] rxrpc: Add a tracepoint to follow packets in the Rx buffer

2016-09-17 Thread David Howells
Add a tracepoint to follow the life of packets that get added to a call's receive buffer. Signed-off-by: David Howells --- include/trace/events/rxrpc.h | 33 + net/rxrpc/ar-internal.h | 12 net/rxrpc/call_accept.c |3 +++ net/rxrpc/

[PATCH net-next 02/11] rxrpc: Add some additional call tracing

2016-09-17 Thread David Howells
Add additional call tracepoint points for noting call-connected, call-released and connection-failed events. Also fix one tracepoint that was using an integer instead of the corresponding enum value as the point type. Signed-off-by: David Howells --- net/rxrpc/ar-internal.h |3 +++ net/rxr

[PATCH net-next 05/14] rxrpc: Record calls that need to be accepted

2016-09-17 Thread David Howells
Record calls that need to be accepted using sk_acceptq_added() otherwise the backlog counter goes negative because sk_acceptq_removed() is called. This causes the preallocator to malfunction. Calls that are preaccepted by AFS within the kernel aren't affected by this. Signed-off-by: David Howells

[PATCH net-next 10/14] rxrpc: Fix the parsing of soft-ACKs

2016-09-17 Thread David Howells
The soft-ACK parser doesn't increment the pointer into the soft-ACK list, resulting in the first ACK/NACK value being applied to all the relevant packets in the Tx queue. This has the potential to miss retransmissions and cause excessive retransmissions. Fix this by incrementing the pointer. Sig

[PATCH net-next 02/14] rxrpc: Move the check of rx_pkt_offset from rxrpc_locate_data() to caller

2016-09-17 Thread David Howells
Move the check of rx_pkt_offset from rxrpc_locate_data() to the caller, rxrpc_recvmsg_data(), so that it's more clear what's going on there. Signed-off-by: David Howells --- net/rxrpc/recvmsg.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/net/rxrpc/recvmsg.c b

[PATCH net-next 11/14] rxrpc: Fix retransmission algorithm

2016-09-17 Thread David Howells
Make the retransmission algorithm use for-loops instead of do-loops and move the counter increments into the for-statement increment slots. Though the do-loops are slighly more efficient since there will be at least one pass through the each loop, the counter increments are harder to get right as

[PATCH net-next 12/14] rxrpc: Don't transmit an ACK if there's no reason set

2016-09-17 Thread David Howells
Don't transmit an ACK if call->ackr_reason in unset. There's the possibility of a race between recvmsg() sending an ACK and the background processing thread trying to send the same one. Signed-off-by: David Howells --- net/rxrpc/output.c |5 + 1 file changed, 5 insertions(+) diff --gi

[PATCH net-next 07/14] rxrpc: Fix the putting of client connections

2016-09-17 Thread David Howells
In rxrpc_put_one_client_conn(), if a connection has RXRPC_CONN_COUNTED set on it, then it's accounted for in rxrpc_nr_client_conns and may be on various lists - and this is cleaned up correctly. However, if the connection doesn't have RXRPC_CONN_COUNTED set on it, then the put routine returns rath

[PATCH net-next 06/14] rxrpc: Purge the to_be_accepted queue on socket release

2016-09-17 Thread David Howells
Purge the queue of to_be_accepted calls on socket release. Note that purging sock_calls doesn't release the ref owned by to_be_accepted. Probably the sock_calls list is redundant given a purges of the recvmsg_q, the to_be_accepted queue and the calls tree. Signed-off-by: David Howells --- net

[PATCH net-next 04/14] rxrpc: Fix handling of the last packet in rxrpc_recvmsg_data()

2016-09-17 Thread David Howells
The code for determining the last packet in rxrpc_recvmsg_data() has been using the RXRPC_CALL_RX_LAST flag to determine if the rx_top pointer points to the last packet or not. This isn't a good idea, however, as the input code may be running simultaneously on another CPU and that sets the flag *b

[PATCH net-next 09/14] rxrpc: Fix unexposed client conn release

2016-09-17 Thread David Howells
If the last call on a client connection is release after the connection has had a bunch of calls allocated but before any DATA packets are sent (so that it's not yet marked RXRPC_CONN_EXPOSED), an assertion will happen in rxrpc_disconnect_client_call(). af_rxrpc: Assertion failed - 1(0x1)

[PATCH net-next 13/14] rxrpc: Be consistent about switch value in rxrpc_send_call_packet()

2016-09-17 Thread David Howells
rxrpc_send_call_packet() should use type in both its switch-statements rather than using pkt->whdr.type. This might give the compiler an easier job of uninitialised variable checking. Signed-off-by: David Howells --- net/rxrpc/output.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH net-next 14/14] rxrpc: Fix the basic transmit DATA packet content size at 1412 bytes

2016-09-17 Thread David Howells
Fix the basic transmit DATA packet content size at 1412 bytes so that they can be arbitrarily assembled into jumbo packets. In the future, I'm thinking of moving to keeping a jumbo packet header at the beginning of each packet in the Tx queue and creating the packet header on the spot when kernel_

[PATCH net-next 08/14] rxrpc: Call rxrpc_release_call() on error in rxrpc_new_client_call()

2016-09-17 Thread David Howells
Call rxrpc_release_call() on getting an error in rxrpc_new_client_call() rather than trying to do the cleanup ourselves. This isn't a problem, provided we set RXRPC_CALL_HAS_USERID only if we actually add the call to the calls tree as cleanup code fragments that would otherwise cause problems are

[PATCH net-next 01/14] rxrpc: Remove some whitespace.

2016-09-17 Thread David Howells
Remove a tab that's on a line that should otherwise be blank. Signed-off-by: David Howells --- net/rxrpc/call_event.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rxrpc/call_event.c b/net/rxrpc/call_event.c index 61432049869b..9367c3be31eb 100644 --- a/net/rxrpc/ca

[PATCH net-next 03/14] rxrpc: Check the return value of rxrpc_locate_data()

2016-09-17 Thread David Howells
Check the return value of rxrpc_locate_data() in rxrpc_recvmsg_data(). Signed-off-by: David Howells --- net/rxrpc/recvmsg.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/rxrpc/recvmsg.c b/net/rxrpc/recvmsg.c index 0d085f5cf1bf..1edf2cf62cc5 100644 --- a/net/rxrp

[PATCH net-next 00/14] rxrpc: Fixes & miscellany

2016-09-17 Thread David Howells
write-20160917-1 David --- David Howells (14): rxrpc: Remove some whitespace. rxrpc: Move the check of rx_pkt_offset from rxrpc_locate_data() to caller rxrpc: Check the return value of rxrpc_locate_data() rxrpc: Fix handling of the last packet in rxrpc_recvmsg_data()

[PATCH] Staging: octeon: ethernet-rx: fixed three redundant blank line style issues

2016-09-17 Thread Cathal Mullaney
Fixed three minor coding style issues. Signed-off-by: Cathal Mullaney --- drivers/staging/octeon/ethernet-rx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c index ce1e2a3..f0900d1 100644 --- a/drivers/staging/oc

Re: [PATCH 3/3] x86/e820: Use much less memory for e820/e820_saved, save up to 120k

2016-09-17 Thread kbuild test robot
Hi Denys, [auto build test WARNING on tip/auto-latest] [also build test WARNING on v4.8-rc6 next-20160916] [cannot apply to tip/x86/core] [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

[PATCH 2/2] net: ethernet: broadcom: b44: use new api ethtool_{get|set}_link_ksettings

2016-09-17 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/broadcom/b44.c | 98 +++ 1 files changed, 54 insertions(+), 44 deletions(-) diff --git a/drivers/n

[PATCH 1/2] net: ethernet: broadcom: b44: use phydev from struct net_device

2016-09-17 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet

Re: Possible code defects: macros and precedence

2016-09-17 Thread Joe Perches
On Sat, 2016-09-17 at 22:24 +0200, Julia Lawall wrote: (A 2.2MB message that (perhaps thankfully) didn't get through to lkml) > Below is the Coccinelle output for the case where the definition of the > macro is a single expression.  There is also the case where it is a > sequence of statements, b

Re: [REGRESSION] RLIMIT_DATA crashes named

2016-09-17 Thread Joe Perches
On Sun, 2016-09-18 at 00:40 +0300, Konstantin Khlebnikov wrote: > #define printk_periodic(period, fmt, ...) > ({ >   static unsigned long __prev __read_mostly = INITIAL_JIFFIES - > (period); >   unsigned long __now = jiffies; >   bool __print = !time_in_range_open(__now, __prev,

Re: [PATCH 2/4] carl9170: fix debugfs crashes

2016-09-17 Thread Greg KH
On Sat, Sep 17, 2016 at 09:43:02PM +0200, Christian Lamparter wrote: > Ben Greear reported: > > I see lots of instability as soon as I load up the carl9710 NIC. > > My application is going to be poking at it's debugfs files... > > > > BUG: KASAN: slab-out-of-bounds in carl9170_debugfs_read+0xd5/0x2

Re: [REGRESSION] RLIMIT_DATA crashes named

2016-09-17 Thread Konstantin Khlebnikov
On Sat, Sep 17, 2016 at 3:20 PM, Cyrill Gorcunov wrote: > On Sat, Sep 17, 2016 at 03:09:09PM +0300, Konstantin Khlebnikov wrote: >> > >> > Seems I don't understand the bottom unlikely... >> >> This is gcc extrension: >> https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html >> Here macro works

[PATCH 3/3] x86/e820: Use much less memory for e820/e820_saved, save up to 120k

2016-09-17 Thread Denys Vlasenko
The maximum size of e820 map array for EFI systems is defined as E820_X_MAX (E820MAX + 3 * MAX_NUMNODES). In x86_64 defconfig, this ends up with E820_X_MAX = 320, e820 and e820_saved are 6404 bytes each. With larger configs, for example Fedora kernels, E820_X_MAX = 3200, e820 and e820_saved are 6

[PATCH 1/3] x86/e820: Mark some static functions __init

2016-09-17 Thread Denys Vlasenko
They are all called only from other __init functions in e820.c Signed-off-by: Denys Vlasenko CC: Ingo Molnar CC: Andy Lutomirski CC: "H. Peter Anvin" CC: Borislav Petkov CC: Brian Gerst CC: x...@kernel.org CC: linux-kernel@vger.kernel.org --- arch/x86/kernel/e820.c | 12 ++-- 1 file

[PATCH 2/3] x86/e820: Prepare e280 code for switch to dynamic storage

2016-09-17 Thread Denys Vlasenko
This patch turns e820 and e820_saved into pointers to e820 tables, of the same size as before. Signed-off-by: Denys Vlasenko CC: Ingo Molnar CC: Andy Lutomirski CC: "H. Peter Anvin" CC: Borislav Petkov CC: Brian Gerst CC: x...@kernel.org CC: linux-kernel@vger.kernel.org Signed-off-by: Denys

Re: Possible code defects: macros and precedence

2016-09-17 Thread Joe Perches
On Sat, 2016-09-17 at 22:24 +0200, Julia Lawall wrote: > diff -u -p a/lib/sha1.c b/lib/sha1.c [] > @@ -49,18 +49,18 @@ >   * the input data, the next mix it from the 512-bit array. >   */ >  #define SHA_SRC(t) get_unaligned_be32((__u32 *)data + t) > -#define SHA_MIX(t) rol32(W(t+13) ^ W(t+8) ^ W(t+

Re: [PATCH 2/2 v2] x86/e820: Use much less memory for e820/e820_saved, save up to 120k

2016-09-17 Thread Denys Vlasenko
On 09/15/2016 09:04 AM, Ingo Molnar wrote: * Denys Vlasenko wrote: The maximum size of e820 map array for EFI systems is defined as E820_X_MAX (E820MAX + 3 * MAX_NUMNODES). In x86_64 defconfig, this ends up with E820_X_MAX = 320, e820 and e820_saved are 6404 bytes each. With larger configs,

Re: [ANNOUNCE] 4.8-rc5-rt1 beta

2016-09-17 Thread Paul Gortmaker
[Re: [ANNOUNCE] 4.8-rc5-rt1 beta] On 08/09/2016 (Thu 07:47) Mike Galbraith wrote: > On Tue, 2016-09-06 at 14:25 -0400, Paul Gortmaker wrote: > > > Patch conflicts/issues of interest 4.6 --> 4.7 > > -- > > > > -v4.7 introduced a lot of users of dow

  1   2   3   >