Re: [RFC v2] prctl: prctl(PR_SET_IDLE, PR_IDLE_MODE_KILLME), for stateless idle loops

2017-11-03 Thread Michal Hocko
On Thu 02-11-17 23:35:44, Shawn Landden wrote: > It is common for services to be stateless around their main event loop. > If a process sets PR_SET_IDLE to PR_IDLE_MODE_KILLME then it > signals to the kernel that epoll_wait() and friends may not complete, > and the kernel may send SIGKILL if

Re: [PATCH v4 3/3] KVM: MMU: consider host cache mode in MMIO page check

2017-11-03 Thread Xiao Guangrong
On 11/03/2017 04:51 PM, Haozhong Zhang wrote: On 11/03/17 14:54 +0800, Xiao Guangrong wrote: On 11/03/2017 01:53 PM, Haozhong Zhang wrote: Some reserved pages, such as those from NVDIMM DAX devices, are not for MMIO, and can be mapped with cached memory type for better performance.

Re: [PATCH] s390/mm: fix pud table accounting

2017-11-03 Thread Michal Hocko
On Fri 03-11-17 10:05:51, Heiko Carstens wrote: > With "mm: account pud page tables" and "mm: consolidate page table > accounting" pud page table accounting was introduced which now results > in tons of warnings like this one on s390: > > BUG: non-zero pgtables_bytes on freeing mm: -16384 > >

Re: [PATCH v3 14/17] PCI: dwc: artpec6: Add support for endpoint mode

2017-11-03 Thread Niklas Cassel
On 11/02/2017 10:13 AM, Arnd Bergmann wrote: > On Tue, Oct 31, 2017 at 11:39 PM, Niklas Cassel > wrote: >> Signed-off-by: Niklas Cassel > > It seems like you are missing a changelog text. Please explain what > your work is good for > in any patch

Re: [PATCH 11/17] coresight etr: Handle driver mode specific ETR buffers

2017-11-03 Thread Suzuki K Poulose
On 02/11/17 20:26, Mathieu Poirier wrote: On Thu, Oct 19, 2017 at 06:15:47PM +0100, Suzuki K Poulose wrote: Since the ETR could be driven either by SYSFS or by perf, it becomes complicated how we deal with the buffers used for each of these modes. The ETR driver cannot simply free the current

Re: next-20171102: ARM64 dies on boot

2017-11-03 Thread Sudeep Holla
On 03/11/17 04:18, Yury Norov wrote: > Hi all, > > I reproduce it with qemu. The exact reason of panic is the NULL-dereference > in memory_present: > (gdb) bt > #0 0x08dd8c6c in sparse_index_init (nid=, > section_nr=) > at mm/sparse.c:80 > #1 memory_present (nid=0,

Re: [PATCH v2 0/2] pinctrl: Allow indicating loss of state across suspend/resume

2017-11-03 Thread Charles Keepax
On Thu, Nov 02, 2017 at 04:15:49PM -0700, Florian Fainelli wrote: > Hello Linus, > > It's me again, so I have been thinking about the problem originally > reported in: [PATCH fixes v3] pinctrl: Really force states during > suspend/resume > > and other similar patches a while ago, and this new

Re: [PATCH 1/2] staging: greybus: remove unused kfifo_ts

2017-11-03 Thread Viresh Kumar
On 02-11-17, 15:32, Arnd Bergmann wrote: > As of commit 8e1d6c336d74 ("greybus: loopback: drop bus aggregate > calculation"), nothing ever reads from kfifo_ts, so there is no > reason to write to it or even allocate it any more. > > Signed-off-by: Arnd Bergmann > --- >

Re: [Patch v11 1/4] irqchip/qeic: merge qeic init code from platforms to a common function

2017-11-03 Thread Marc Zyngier
On 01/11/17 01:36, Zhao Qiang wrote: > The codes of qe_ic init from a variety of platforms are redundant, > merge them to a common function and put it to irqchip/irq-qeic.c > > For non-p1021_mds mpc85xx_mds boards, use "qe_ic_init(np, 0, > qe_ic_cascade_low_mpic, qe_ic_cascade_high_mpic);"

Re: [PATCH v2] printk: Add console owner and waiter logic to load balance console writes

2017-11-03 Thread Steven Rostedt
On Fri, 3 Nov 2017 11:19:53 +0100 Jan Kara wrote: > Hi, > > On Thu 02-11-17 13:06:05, Steven Rostedt wrote: > > + if (spin) { > > + /* We spin waiting for the owner to release us > > */ > > +

Re: [PATCH v2 1/3] Sony-laptop: Fix exception handling in sony_nc_setup_rfkill()

2017-11-03 Thread Andy Shevchenko
On Wed, Nov 1, 2017 at 8:46 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 1 Nov 2017 18:42:45 +0100 > > Source code review for a specific software refactoring showed the need > for another correction because the

Re: [PATCH 1/2] perf: arm_spe: Prevent module unload while the PMU is in use

2017-11-03 Thread Mark Rutland
On Fri, Nov 03, 2017 at 11:45:17AM +, Suzuki K Poulose wrote: > When the PMU driver is built as a module, the perf expects the > pmu->module to be valid, so that the driver is prevented from > being unloaded while it is in use. Fix the SPE pmu driver to > fill in this field. > > Cc: Will

Re: [PATCH 2/2] arm-ccn: perf: Prevent module unload while PMU is in use

2017-11-03 Thread Mark Rutland
On Fri, Nov 03, 2017 at 11:45:18AM +, Suzuki K Poulose wrote: > When the PMU driver is built as a module, the perf expects the > pmu->module to be valid, so that the driver is prevented from > being unloaded while it is in use. Fix the CCN pmu driver to > fill in this field. > > Fixes: commit

Re: [PATCH] platform/x86: hp-wmi: Fix tablet mode detection for convertibles

2017-11-03 Thread Andy Shevchenko
On Fri, Nov 3, 2017 at 4:01 AM, Stefan Brüns wrote: > Commit f9cf3b2880cc ("platform/x86: hp-wmi: Refactor dock and tablet > state fetchers") consolidated the methods for docking and laptop mode > detection, but omitted to apply the correct mask for the laptop mode >

[PATCH] dpaa_eth: avoid uninitialized variable false-positive warning

2017-11-03 Thread Arnd Bergmann
We can now build this driver on ARM, so I ran into a randconfig build warning that presumably had existed on powerpc already. drivers/net/ethernet/freescale/dpaa/dpaa_eth.c: In function 'sg_fd_to_skb': drivers/net/ethernet/freescale/dpaa/dpaa_eth.c:1712:18: error: 'skb' may be used uninitialized

Re: [PATCH 1/3] nvme: do not check for ns on rw path

2017-11-03 Thread Christoph Hellwig
> - if (ns && ns->ms && > + if (ns->ms && > (!ns->pi_type || ns->ms != sizeof(struct t10_pi_tuple)) && > !blk_integrity_rq(req) && !blk_rq_is_passthrough(req)) > return BLK_STS_NOTSUPP; blk_rq_is_passthrough also can't be true here. How about:

Re: KASAN: use-after-free Read in do_raw_spin_lock

2017-11-03 Thread Dmitry Vyukov
On Fri, Nov 3, 2017 at 11:59 AM, Dmitry Vyukov wrote: > On Fri, Nov 3, 2017 at 2:51 AM, Paul Moore wrote: >> On Thu, Nov 2, 2017 at 1:52 PM, syzbot >> >> wrote: >>> Hello, >>> >>>

[PATCH] s390/mm: fix pud table accounting

2017-11-03 Thread Heiko Carstens
With "mm: account pud page tables" and "mm: consolidate page table accounting" pud page table accounting was introduced which now results in tons of warnings like this one on s390: BUG: non-zero pgtables_bytes on freeing mm: -16384 Reason for this are our run-time folded page tables: by default

Re: [PATCH v4 3/3] KVM: MMU: consider host cache mode in MMIO page check

2017-11-03 Thread Xiao Guangrong
On 11/03/2017 05:02 PM, Haozhong Zhang wrote: On 11/03/17 16:51 +0800, Haozhong Zhang wrote: On 11/03/17 14:54 +0800, Xiao Guangrong wrote: On 11/03/2017 01:53 PM, Haozhong Zhang wrote: Some reserved pages, such as those from NVDIMM DAX devices, are not for MMIO, and can be mapped with

Re: [PATCH v3 14/17] PCI: dwc: artpec6: Add support for endpoint mode

2017-11-03 Thread Arnd Bergmann
On Fri, Nov 3, 2017 at 10:56 AM, Niklas Cassel wrote: > On 11/02/2017 10:13 AM, Arnd Bergmann wrote: >> >> >> Can you try replacing the #ifdef with >> >> >> if (!IS_ENABLED(CONFIG_PCIE_ARTPEC6_HOST)) >> return -ENODEV; >> >> at the start of

Re: [Patch v11 4/4] QE: remove PPCisms for QE

2017-11-03 Thread Marc Zyngier
On 01/11/17 01:36, Zhao Qiang wrote: > QE was supported on PowerPC, and dependent on PPC, > Now it is supported on other platforms. so remove PPCisms. > > Signed-off-by: Zhao Qiang > --- > drivers/net/ethernet/freescale/Kconfig | 11 ++--- > drivers/soc/fsl/qe/Kconfig

[RFT][PATCH v2 2/2] PM / QoS: Fix device resume latency framework

2017-11-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The special value of 0 for device resume latency PM QoS means "no restriction", but there are two problems with that. First, device resume latency PM QoS requests with 0 as the value are always put in front of requests with positive values in

[RFT][PATCH v2 0/2] PM / QoS: Device resume latency framework fix

2017-11-03 Thread Rafael J. Wysocki
On Thursday, November 2, 2017 12:00:27 AM CET Rafael J. Wysocki wrote: > Hi, > > This series is a replacement for commit 0cc2b4e5a020 (PM / QoS: Fix device > resume latency PM QoS) that had to be reverted due to problems introduced by > it. > > This time the genpd PM QoS governor is first

[RFT][PATCH v2 1/2] PM / domains: Rework governor code to be more consistent

2017-11-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The genpd governor currently uses negative PM QoS values to indicate the "no suspend" condition and 0 as "no restriction", but it doesn't use them consistently. Moreover, it tries to refresh QoS values for already suspended devices in a quite

Re: [PATCH] x86/mce/AMD: Fix mce_severity_amd_smca() signature

2017-11-03 Thread Borislav Petkov
On Wed, Nov 01, 2017 at 02:04:12PM -0500, Yazen Ghannam wrote: > From: Yazen Ghannam > > Change the err_ctx type to "enum context" to match the type passed in. > > Suggested-by: Borislav Petkov > Signed-off-by: Yazen Ghannam > --- >

Re: [PATCH] autofs: don't fail mount for transient error

2017-11-03 Thread Ian Kent
On 03/11/17 09:40, NeilBrown wrote: > Hi Neil, and thanks taking the time to post the patch. > Currently if the autofs kernel module gets an error when > writing to the pipe which links to the daemon, then it > marks the whole moutpoint as catatonic, and it will stop working. > > It is

Re: [PATCH] Support resetting WARN_ONCE for all architectures

2017-11-03 Thread Michael Ellerman
Hi Andi, Thanks for making it work with the flag, but ... Andi Kleen writes: > diff --git a/lib/bug.c b/lib/bug.c > index a6a1137d06db..7cb2d41845f7 100644 > --- a/lib/bug.c > +++ b/lib/bug.c > @@ -195,3 +195,24 @@ enum bug_trap_type report_bug(unsigned long bugaddr, >

[GIT PULL] Please pull powerpc/linux.git powerpc-4.14-6 tag

2017-11-03 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.14. This is bigger than I like to send at rc7, but that's at least partly because I didn't send any fixes last week. If it wasn't for the IMC driver, which is new and getting heavy testing, the diffstat would look a bit better. I've also added

Re: x86/module: Detect corrupt relocations against nonzero data

2017-11-03 Thread Jessica Yu
+++ Josh Poimboeuf [02/11/17 21:19 -0500]: On Thu, Nov 02, 2017 at 04:57:11PM -0500, Josh Poimboeuf wrote: There have been some cases where external tooling (e.g., kpatch-build) creates a corrupt relocation which targets the wrong address. This is a silent failure which can corrupt memory in

Re: [Part2 PATCH v7 14/38] crypto: ccp: Implement SEV_FACTORY_RESET ioctl command

2017-11-03 Thread Borislav Petkov
On Wed, Nov 01, 2017 at 04:15:59PM -0500, Brijesh Singh wrote: > The SEV_FACTORY_RESET command can be used by the platform owner to > reset the non-volatile SEV related data. The command is defined in > SEV spec section 5.4 > > Cc: Paolo Bonzini > Cc: "Radim Krčmář"

Re: [PATCH] pinctrl: armada-37xx: remove unused variable

2017-11-03 Thread Arnd Bergmann
On Fri, Nov 3, 2017 at 8:46 AM, Linus Walleij wrote: > On Thu, Nov 2, 2017 at 3:29 PM, Arnd Bergmann wrote: > >> A cleanup left behind a temporary variable that is now unused: >> >> drivers/pinctrl/mvebu/pinctrl-armada-37xx.c: In function >>

[PATCH] staging/media/davinci_vpfe: Use common error handling code in vpfe_attach_irq()

2017-11-03 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 3 Nov 2017 10:45:31 +0100 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring

Re: [PATCHv2 1/1] locking/qspinlock/x86: Avoid test-and-set when PV_DEDICATED is set

2017-11-03 Thread Paolo Bonzini
On 02/11/2017 19:43, Eduardo Valentin wrote: > On Thu, Nov 02, 2017 at 07:24:16PM +0100, Paolo Bonzini wrote: >> On 02/11/2017 19:08, Eduardo Valentin wrote: >>> On Thu, Nov 02, 2017 at 06:56:46PM +0100, Paolo Bonzini wrote: On 02/11/2017 18:45, Eduardo Valentin wrote: > Currently, the

[PATCH 7/9] rcutorture/kvm-build.sh: Skip build directory check

2017-11-03 Thread SeongJae Park
Check of existence and write permisison for build directory exists in 'kvm-test-1-run.sh' an 'kvm-build.sh'. Because the 'kvm-build.sh' is dependent to 'kvm-test-1-run.sh' ('kvm-build.sh' uses variables that defined from its caller.), it is an unnecessary duplicate. This commit removes, thus,

Re: [PATCH v10 02/13] x86/insn-eval: Compute linear address in several utility functions

2017-11-03 Thread Ingo Molnar
* Ricardo Neri wrote: > On Thu, Nov 02, 2017 at 09:51:08AM +0100, Ingo Molnar wrote: > > > > * Ricardo Neri wrote: > > > > > + /* > > > + * -EDOM means that we must ignore the address_offset. In such a case, > > >

[PATCH 5/9] rcutorture/kvm.sh: Support execution from any directory

2017-11-03 Thread SeongJae Park
'kvm.sh' for rcutorture is restricting user to execute it from top of linux source tree. It is just a subtle restriction, but users using it for the first time could forget the restriction and be confused. Moreover, it makes commands a little longer and the long commands could frustrate debugging

[PATCH 6/9] rcutorture/kvm-recheck-*: Improve result directory readability check

2017-11-03 Thread SeongJae Park
kvm-recheck-(lock|rcu|rcuperf).sh is checking whether user specified result directory exists or not. If not, it prints out error message that says the specified directory is not readable directory. To make the message more precise, this commit adds readability check of the directory. Fixes:

[PATCH 1/9] rcutorture/configinit: Fix build directory error message

2017-11-03 Thread SeongJae Park
'configinit.sh' checks format of optional argument for build directory and print error message if the format is not valid. However, the error message is broken so that it just says user entered empty string as build directory even though user entered wrong, but non-empty string as the argument.

[PATCH 4/9] rcutorture/kvm.sh: Use consistent usage for --qemu-args

2017-11-03 Thread SeongJae Park
'--qemu-args' option usage is wrongly copied from '--qemu-cmd' option and it's argument type description message format is inconsistent with other arguments. This commit fixes the usage and type messages to be consistent with others. Fixes: e9ce640001c6 ("rcutorture: Add --qemu-args argument to

[PATCH net-next 1/5] net: dsa: lan9303: Correct register names in comments

2017-11-03 Thread Egil Hjelmeland
Two comments refer to registers, but lack the LAN9303_ prefix. Fix that. Signed-off-by: Egil Hjelmeland --- include/linux/dsa/lan9303.h | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/linux/dsa/lan9303.h

[PATCH] lock/rwlock fix comment for rwlock

2017-11-03 Thread Cheng Jian
The kernel/locking/spinlock.c file contains the implementations of spinlock and rwlock. and __lock_function inlines are taken from other include files. the comment miss rwlock_api_smp.h about rwlock. also fix a little comment in rwlock_api_smp.h Signed-off-by: Cheng Jian

[PATCH net-next 5/5] net: dsa: lan9303: Adjust indenting

2017-11-03 Thread Egil Hjelmeland
Remove scripts/checkpatch.pl CHECKs by adjusting indenting. Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303_i2c.c | 2 +- drivers/net/dsa/lan9303_mdio.c | 2 +- net/dsa/tag_lan9303.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff

[PATCH net-next 3/5] net: dsa: lan9303: Replace msleep(1) with usleep_range()

2017-11-03 Thread Egil Hjelmeland
Remove scripts/checkpatch.pl WARNING by replacing msleep(1) with usleep_range() Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/lan9303-core.c

Re: [PATCH 3/8] QE: remove PPCisms for QE

2017-11-03 Thread Marc Zyngier
On 01/11/17 01:34, Zhao Qiang wrote: > QE was supported on PowerPC, and dependent on PPC, > Now it is supported on other platforms. so remove PPCisms. > > Signed-off-by: Zhao Qiang That's the same (wrong) patch. See my reply to 4/4 in your other series. M. -- Jazz

[PATCH][RFC] usb: hub: Cycle HUB power when initialization fails

2017-11-03 Thread Mike Looijmans
Sometimes the USB device gets confused about the state of the initialization and the connection fails. In particular, the device thinks that it's already set up and running while the host thinks the device still needs to be configured. To work around this issue, power-cycle the hub's output to

[PATCH] firewire-ohci: work around oversized DMA reads on JMicron controllers

2017-11-03 Thread Hector Martin
At least some JMicron controllers issue buggy oversized DMA reads when fetching context descriptors, always fetching 0x20 bytes at once for descriptors which are only 0x10 bytes long. This is often harmless, but can cause page faults on modern systems with IOMMUs: DMAR: [DMA Read] Request device

Wir bieten jedem ein GÜNSTIGES Darlehnen zu TOP Konditionen an

2017-11-03 Thread Martin Kelly
Sehr geehrte Damen und Herren, Sie brauchen Geld? Sie sind auf der suche nach einem Darlehnen? Seriös und unkompliziert? Dann sind Sie hier bei uns genau richtig. Durch unsere jahrelange Erfahrung und kompetente Beratung sind wir Europaweit tätig. Wir bieten jedem ein GÜNSTIGES Darlehnen zu

Re: [PATCH] scsi: hisi_sas: select CONFIG_RAS

2017-11-03 Thread John Garry
On 03/11/2017 10:19, Arnd Bergmann wrote: On Fri, Nov 3, 2017 at 11:14 AM, John Garry wrote: + Shiju, who authored the original patch index d42f29a5eb65..6ad8a6251d21 100644 --- a/drivers/scsi/hisi_sas/Kconfig +++ b/drivers/scsi/hisi_sas/Kconfig @@ -4,6 +4,7 @@

Re: [PATCH v2] x86/MCE/AMD: Always give PANIC severity for UC errors IN_KERNEL context

2017-11-03 Thread Borislav Petkov
On Wed, Nov 01, 2017 at 01:59:06PM -0500, Yazen Ghannam wrote: > From: Yazen Ghannam > > The AMD severity grading function was introduced in v4.1 and has remained > logically unchanged with the exception of a separate SMCA severity grading > function for SMCA systems. The

Re: [PATCH v2 0/3] Sony-laptop: Adjustments for sony_nc_setup_rfkill()

2017-11-03 Thread Andy Shevchenko
On Wed, Nov 1, 2017 at 8:45 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 1 Nov 2017 19:34:56 +0100 > > Three update suggestions were taken into account > from static source code analysis. I have applied first two,

Re: [PATCH V3 05/11] clk: sprd: add mux clock support

2017-11-03 Thread Chunyan Zhang
Hi Julien, On 3 November 2017 at 02:11, Julien Thierry wrote: > Hi, > > > On 02/11/17 06:56, Chunyan Zhang wrote: >> >> This patch adds clock multiplexor support for Spreadtrum platforms, >> the mux clocks also can be found in sprd composite clocks, so >> provides two

Re: [RFC v8 1/7] platform/x86: intel_punit_ipc: Fix resource ioremap warning

2017-11-03 Thread Andy Shevchenko
On Sun, Oct 29, 2017 at 11:49 AM, wrote: > From: Kuppuswamy Sathyanarayanan > > For PUNIT device, ISPDRIVER_IPC and GTDDRIVER_IPC resources are not > mandatory. So when PMC IPC driver creates a PUNIT device,

Re: [PATCH] platform: x86: dell-smo8800: remove redundant assignments to byte_data

2017-11-03 Thread Andy Shevchenko
On Tue, Oct 31, 2017 at 8:41 PM, Pali Rohár wrote: > On Tuesday 31 October 2017 20:08:45 Andy Shevchenko wrote: >> On Tue, Oct 31, 2017 at 4:13 PM, Pali Rohár wrote: >> > On Tuesday 31 October 2017 16:07:25 Andy Shevchenko wrote: >> >> On Tue, Oct 31,

Re: [PATCH net-next 0/6] net: hns3: support set_link_ksettings and for nway_reset ethtool command

2017-11-03 Thread David Miller
From: Lipeng Date: Fri, 3 Nov 2017 12:18:24 +0800 > This patch-set adds support for set_link_ksettings && for nway_resets > ethtool command and fixes some related ethtool bugs. > 1, patch[4/6] adds support for ethtool_ops.set_link_ksettings. > 2, patch[5/6] adds support

[PATCH] tools/hv: add install target to Makefile

2017-11-03 Thread Vitaly Kuznetsov
Makefiles usually come with 'install' target included so each distro doesn't need to implement the procedure from scratch. Add it to tools/hv. Signed-off-by: Vitaly Kuznetsov --- tools/hv/Makefile | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-)

Re: [PATCH v4 3/3] KVM: MMU: consider host cache mode in MMIO page check

2017-11-03 Thread Haozhong Zhang
On 11/03/17 16:51 +0800, Haozhong Zhang wrote: > On 11/03/17 14:54 +0800, Xiao Guangrong wrote: > > > > > > On 11/03/2017 01:53 PM, Haozhong Zhang wrote: > > > Some reserved pages, such as those from NVDIMM DAX devices, are > > > not for MMIO, and can be mapped with cached memory type for better

[PATCH] mm/hugetlb: Implement ASLR and topdown for hugetlb mappings

2017-11-03 Thread Shile Zhang
merge from arch/x86 Signed-off-by: Shile Zhang --- arch/arm/include/asm/page.h | 1 + arch/arm/mm/hugetlbpage.c | 85 + 2 files changed, 86 insertions(+) diff --git a/arch/arm/include/asm/page.h

linux-next: Tree for Nov 3

2017-11-03 Thread Stephen Rothwell
Hi all, Changes since 20171102: New tree: opp The SPDX license identifier addition commits in Linus' tree caused 81 new conflicts in linux-next today, but I did not report them as the resolutions are trivial and most of them are files that are removed in linux-next. The sunxi tree lost its

Re: [PATCH v2 1/1] mm: buddy page accessed before initialized

2017-11-03 Thread Michal Hocko
On Thu 02-11-17 13:02:21, Pavel Tatashin wrote: > This problem is seen when machine is rebooted after kexec: > A message like this is printed: > == > WARNING: CPU: 21 PID: 249 at linux/lib/list_debug.c:53__listd+0x83/0xa0 >

[PATCH 0/9] Trivial fixup for KVM-based rcutorture test framework

2017-11-03 Thread SeongJae Park
This patchset contains trivial fixup and enhancements for KVM-based rcutorture test framework. SeongJae Park (9): rcutorture/configinit: Fix build directory error message rcutorture: Remove unused script, config2frag.sh rcutorture/kvm.sh: Remove unused variable, `alldone`

[PATCH 3/9] rcutorture/kvm.sh: Remove unused variable, `alldone`

2017-11-03 Thread SeongJae Park
Variable `alldone` is defined but not used within an awk script. This commit removes it. Fixes:53954671033d ("rcutorture: Do better bin packing") Signed-off-by: SeongJae Park --- tools/testing/selftests/rcutorture/bin/kvm.sh | 1 - 1 file changed, 1 deletion(-) diff

[PATCH 8/9] rcutorture: Simplify logging

2017-11-03 Thread SeongJae Park
'kvm.sh' and 'kvm-test-1-run.sh' log messages by printing the message to 'stdout' then writing it into the log file. Generation of the message occurs twice once for 'stdout', and once for log file. It is redundant. Moreover, many of the messages are containing 'date' output inside the messages.

[PATCH 9/9] rcutorture: Simplify functions.sh include path

2017-11-03 Thread SeongJae Park
Inclusions of 'functions.sh' from 'kvm-test-1-run.sh' and 'kvm-recheck*.sh' are using its absolute path. Because directory for 'functions.sh' is already in PATH, however, it could be included without the full path. This commit simplifies the inclusions to use simple, short relative path.

RE: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-03 Thread Fan Li
> -Original Message- > From: Chao Yu [mailto:yuch...@huawei.com] > Sent: Friday, November 03, 2017 4:54 PM > To: Fan Li; 'Chao Yu'; 'Jaegeuk Kim' > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure

Re: [PATCH v3 2/3] usb: xhci: Add DbC support in xHCI driver

2017-11-03 Thread Felipe Balbi
Hi, Greg Kroah-Hartman writes: >> > >> Greg Kroah-Hartman writes: >> >>> > >> >> > xHCI compatible USB host controllers(i.e. super-speed USB3 >> >>> > >> >> > controllers) >> >>> > >> >> > can be implemented with the

Re: [PATCH v2] USB: add SPDX identifiers to all remaining files in drivers/usb/

2017-11-03 Thread Felipe Balbi
Greg Kroah-Hartman writes: > It's good to have SPDX identifiers in all files to make it easier to > audit the kernel tree for correct licenses. > > Update the drivers/usb/ and include/linux/usb* files with the correct > SPDX license identifier based on the license

Re: [PATCH v9 1/8] perf: Export perf_event_update_userpage

2017-11-03 Thread Mark Rutland
[+ Ingo] On Tue, Oct 31, 2017 at 05:23:11PM +, Suzuki K Poulose wrote: > Export perf_event_update_userpage() so that PMU driver using them, > can be built as modules. Peter, Ingo, are you happy with this? It would be useful if we could take this via the arm64 tree with the rest of the

[PATCH v5 2/2] watchdog: Add Spreadtrum watchdog driver

2017-11-03 Thread Eric Long
This patch adds the watchdog driver for Spreadtrum SC9860 platform. Signed-off-by: Eric Long --- Changes since v4: - Remove sprd_wdt_remove(). - Add devm_add_action() for sprd_wdt_disable(). Changes since v3: - Update Kconfig SPRD_WATCHDOG help messages. - Correct

[PATCH v5 1/2] dt-bindings: watchdog: Add Spreadtrum watchdog documentation

2017-11-03 Thread Eric Long
This patch adds the documentation for Spreadtrum watchdog driver. Signed-off-by: Eric Long Acked-by: Rob Herring --- Changes since v4: - No updates. Changes since v3: - No updates. Changes since v2: - Add acked tag from Rob. Changes since v1: - No

perf/x86/amd/power missing pmu::module initialisation

2017-11-03 Thread Mark Rutland
Hi, As a heads-up, I believe that arch/x86/events/amd/power.c is currently missing initialisation of pmu::module, which could result in problems when the module is unloaded. We've just spotted a similar problem in a couple of ARM PMUs, and AFAICT the AMD power PMU is the only other PMU affected.

Applied "regmap: Add a config option for hwspinlock" to the regmap tree

2017-11-03 Thread Mark Brown
The patch regmap: Add a config option for hwspinlock has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Re: [PATCH v2 2/3] Sony-laptop: Delete an unnecessary variable initialisation in sony_nc_setup_rfkill()

2017-11-03 Thread Andy Shevchenko
On Wed, Nov 1, 2017 at 8:47 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 1 Nov 2017 19:00:59 +0100 > > The local variable "err" will eventually be set to an appropriate value > a bit later. Thus omit the explicit

Re: [PATCH 1/3] printk: Introduce per-console loglevel setting

2017-11-03 Thread Petr Mladek
On Thu 2017-09-28 17:43:55, Calvin Owens wrote: > This patch introduces a new per-console loglevel setting, and changes > console_unlock() to use max(global_level, per_console_level) when > deciding whether or not to emit a given log message. > diff --git a/include/linux/console.h

Re: [PATCH] ARM: sun7i: Add Cubietech Einstein A20 board device-tree

2017-11-03 Thread Frank Kunz
Am Freitag, 3. November 2017, 09:44:27 CET schrieb Maxime Ripard: > Hi Frank, > > On Thu, Nov 02, 2017 at 07:59:04PM +0100, Frank Kunz wrote: > > > > + { > > > > + pinctrl-names = "default"; > > > > + pinctrl-0 = <_pins_a>; > > > > + vmmc-supply = <_vcc3v3>; > > > > > > What

Re: KASAN: stack-out-of-bounds Read in xfrm_state_find (2)

2017-11-03 Thread Steffen Klassert
On Thu, Nov 02, 2017 at 01:25:28PM +0100, Florian Westphal wrote: > Steffen Klassert wrote: > > > I'd propose to use the addresses from the template unconditionally, > > like the (untested) patch below does. > > > > Unfortunalely the reproducer does not work with

Re: [PATCH v9 8/8] perf: ARM DynamIQ Shared Unit PMU support

2017-11-03 Thread Mark Rutland
Hi Suzuki, This looks good, but there are a couple of edge cases I think that we need to handle, as noted below. On Tue, Oct 31, 2017 at 05:23:18PM +, Suzuki K Poulose wrote: > Changes since V8: > - Fill in the "module" field for the PMU to prevent the module unload >when the PMU is

Hello Beloved

2017-11-03 Thread Mariam Nassir
Hello Beloved, My name is Mrs. Mariam Nassir, a widow from Aleppo city of Syria. I was linked to you by a comrade who was killed in the war few weeks ago. I write to seek for your assistance to help me and move my family fortune valued $8.2 Million to your country out of Syria for

Re: [PATCH v4 3/3] KVM: MMU: consider host cache mode in MMIO page check

2017-11-03 Thread Haozhong Zhang
On 11/03/17 17:10 +0800, Xiao Guangrong wrote: > > > On 11/03/2017 04:51 PM, Haozhong Zhang wrote: > > On 11/03/17 14:54 +0800, Xiao Guangrong wrote: > > > > > > > > > On 11/03/2017 01:53 PM, Haozhong Zhang wrote: > > > > Some reserved pages, such as those from NVDIMM DAX devices, are > > > >

Re: [RFC] EPOLL_KILLME: New flag to epoll_wait() that subscribes process to death row (new syscall)

2017-11-03 Thread peter enderborg
On 11/01/2017 04:22 PM, Colin Walters wrote: > > On Wed, Nov 1, 2017, at 11:16 AM, Colin Walters wrote: >> as the maintainer of glib2 which is used by a *lot* of things; I'm not > (I meant to say "a" maintainer) > > Also, while I'm not an expert in Android, I think the "what to kill" logic > there

[PATCH 3/3] nvme: fix eui_show() print format

2017-11-03 Thread Javier González
Signed-off-by: Javier González --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index ae8ab0a1ef0d..f05c81774abf 100644 --- a/drivers/nvme/host/core.c +++

[PATCH 1/3] nvme: do not check for ns on rw path

2017-11-03 Thread Javier González
On the rw path, the ns is assumed to be set. However, a check is still done, inherited from the time the code resided at nvme_queue_rq(). Eliminate this check, which also eliminates a smatch complain for not doing proper NULL checks on ns. Signed-off-by: Javier González ---

[PATCH 0/3] nvme: small fixes reported by smatch

2017-11-03 Thread Javier González
Fix a number of small things reported by smatch on the nvme driver Javier González (3): nvme: do not check for ns on rw path nvme: compare NQN string with right size nvme: fix eui_show() print format drivers/nvme/host/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --

Re: [PATCH 10/17] coresight: etr: Track if the device is coherent

2017-11-03 Thread Suzuki K Poulose
On 02/11/17 19:40, Mathieu Poirier wrote: On Thu, Oct 19, 2017 at 06:15:46PM +0100, Suzuki K Poulose wrote: Track if the ETR is dma-coherent or not. This will be useful in deciding if we should use software buffering for perf. Cc: Mathieu Poirier Signed-off-by:

Re: [PATCH v17 4/6] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-11-03 Thread Tetsuo Handa
Wei Wang wrote: > @@ -164,6 +284,8 @@ static unsigned fill_balloon(struct virtio_balloon *vb, > size_t num) > break; > } > > + if (use_sg && xb_set_page(vb, page, _min, _max) < 0) Isn't this leaking "page" ? > + break; >

Re: [PATCH resend v5 3/3] platform/x86: intel_cht_int33fe: Update fusb302 type string, add properties

2017-11-03 Thread Andy Shevchenko
On Fri, Oct 27, 2017 at 6:24 PM, Hans de Goede wrote: > On 27-10-17 12:41, Wolfram Sang wrote: >> On Fri, Oct 27, 2017 at 12:31:01PM +0200, Hans de Goede wrote: >>> On 27-10-17 12:13, Hans de Goede wrote: On 26-10-17 22:33, Wolfram Sang wrote: > > On Wed, Oct 11,

RE: [PATCH] refcount: provide same memory ordering guarantees as in atomic_t

2017-11-03 Thread Reshetova, Elena
> On Thu, Nov 02, 2017 at 11:04:53AM +, Reshetova, Elena wrote: > > > Well refcount_dec_and_test() is not the only function that has different > > memory ordering specifics. So, the full answer then for any arbitrary case > > according to your points above would be smth like: > > > > for

Re: mptsas driver cannot detect hotplugging disk with the LSI SCSI SAS1068 controller in Ubuntu guest on VMware

2017-11-03 Thread Gavin Guo
On Fri, Nov 3, 2017 at 6:59 PM, Hannes Reinecke wrote: > On 11/03/2017 04:38 AM, Gavin Guo wrote: >> On Sat, Oct 28, 2017 at 11:35 AM, Gavin Guo wrote: >>> On Fri, Oct 27, 2017 at 10:53 PM, Hannes Reinecke wrote: On 10/27/2017 04:02 PM,

Re: [PATCH v3] printk: Add console owner and waiter logic to load balance console writes

2017-11-03 Thread Steven Rostedt
On Fri, 3 Nov 2017 07:21:21 -0400 Steven Rostedt wrote: > On Thu, 2 Nov 2017 21:09:32 -0700 > John Hubbard wrote: > > > > For example, if there are 3 or more threads, you can do the following: > > > > thread A: holds the console lock, is printing,

Re: [PATCH v3] printk: Add console owner and waiter logic to load balance console writes

2017-11-03 Thread Steven Rostedt
On Fri, 3 Nov 2017 07:54:04 -0400 Steven Rostedt wrote: > The new waiter gets set only if there isn't already a waiter *and* > there is an owner that is not current (and with the printk_safe_enter I > don't think that is even needed). > > + while

Re: [PATCH] intel_ips: Convert timers to use timer_setup()

2017-11-03 Thread Andy Shevchenko
On Thu, Nov 2, 2017 at 9:55 PM, Kees Cook wrote: > On Thu, Oct 5, 2017 at 1:41 AM, Andy Shevchenko > wrote: >> On Thu, Oct 5, 2017 at 3:54 AM, Kees Cook wrote: >>> In preparation for unconditionally passing the struct

Re: [PATCH V4 11/12] boot_constraint: Add support for IMX platform

2017-11-03 Thread Sascha Hauer
On Sun, Oct 29, 2017 at 07:18:59PM +0530, Viresh Kumar wrote: > This adds boot constraint support for IMX platforms. Currently only one > use case is supported: earlycon. Some of the UARTs are enabled by the > bootloader and are used for early console in the kernel. The boot > constraint core

[PATCH] xen/pvcalls: remove redundant check for irq >= 0

2017-11-03 Thread Colin King
From: Colin Ian King This is a moot point, but irq is always less than zero at the label out_error, so the check for irq >= 0 is redundant and can be removed. Detected by CoverityScan, CID#1460371 ("Logically dead code") Fixes: cb1c7d9bbc87 ("xen/pvcalls: implement

Re: [PATCH] s390/mm: fix pud table accounting

2017-11-03 Thread Kirill A. Shutemov
On Fri, Nov 03, 2017 at 09:05:51AM +, Heiko Carstens wrote: > With "mm: account pud page tables" and "mm: consolidate page table > accounting" pud page table accounting was introduced which now results > in tons of warnings like this one on s390: > > BUG: non-zero pgtables_bytes on freeing

Re: [PATCH] Support resetting WARN*_ONCE

2017-11-03 Thread Michael Ellerman
Andi Kleen writes: > diff --git a/kernel/panic.c b/kernel/panic.c > index bdd18afa19a4..b2d872fa16de 100644 > --- a/kernel/panic.c > +++ b/kernel/panic.c > @@ -587,6 +588,32 @@ void warn_slowpath_null(const char *file, int line) > EXPORT_SYMBOL(warn_slowpath_null); >

Re: [PATCH 07/17] coresight: tmc etr: Add transparent buffer management

2017-11-03 Thread Suzuki K Poulose
On 02/11/17 17:48, Mathieu Poirier wrote: On Thu, Oct 19, 2017 at 06:15:43PM +0100, Suzuki K Poulose wrote: At the moment we always use contiguous memory for TMC ETR tracing when used from sysfs. The size of the buffer is fixed at boot time and can only be changed by modifiying the DT. With the

Re: [PATCH] xen/pvcalls: remove redundant check for irq >= 0

2017-11-03 Thread Juergen Gross
On 03/11/17 10:20, Colin King wrote: > From: Colin Ian King > > This is a moot point, but irq is always less than zero at the label > out_error, so the check for irq >= 0 is redundant and can be removed. > > Detected by CoverityScan, CID#1460371 ("Logically dead code")

Re: [PATCH] scsi: hisi_sas: select CONFIG_RAS

2017-11-03 Thread John Garry
+ Shiju, who authored the original patch Hi Arnd, Thanks for this. On 02/11/2017 16:50, Arnd Bergmann wrote: The driver now uses the RAS infrastructure, and fails to link if that is disabled: drivers/scsi/hisi_sas/hisi_sas_v2_hw.o: In function `fatal_ecc_int_v2_hw':

Re: [PATCH 1/2] staging: greybus: remove unused kfifo_ts

2017-11-03 Thread Bryan O'Donoghue
On 02/11/17 14:32, Arnd Bergmann wrote: As of commit 8e1d6c336d74 ("greybus: loopback: drop bus aggregate calculation"), nothing ever reads from kfifo_ts, so there is no reason to write to it or even allocate it any more. Signed-off-by: Arnd Bergmann ---

Re: [RFT][PATCH 2/2] PM / QoS: Fix device resume latency framework

2017-11-03 Thread Rafael J. Wysocki
On Fri, Nov 3, 2017 at 8:58 AM, Rafael J. Wysocki wrote: > On Fri, Nov 3, 2017 at 8:43 AM, Ramesh Thomas > wrote: >> On 2017-11-02 at 00:03:54 +0100, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> The

Re: [PATCH v17 3/6] mm/balloon_compaction.c: split balloon page allocation and enqueue

2017-11-03 Thread Tetsuo Handa
Wei Wang wrote: > Here's a detailed analysis of the deadlock by Tetsuo Handa: > > In leak_balloon(), mutex_lock(>balloon_lock) is called in order to > serialize against fill_balloon(). But in fill_balloon(), > alloc_page(GFP_HIGHUSER[_MOVABLE] | __GFP_NOMEMALLOC | __GFP_NORETRY) is > called with

  1   2   3   4   5   6   7   8   9   10   >