[PATCH 4/13] scsi: arcmsr: replace constant ARCMSR_MAX_FREECCB_NUM by variable acb->maxFreeCCB that was got from firmware

2017-11-08 Thread Ching Huang
From: Ching Huang replace constant ARCMSR_MAX_FREECCB_NUM by variable acb->maxFreeCCB that was got from firmware Signed-off-by: Ching Huang --- diff -uprN a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h --- a/drivers/scsi/arcmsr/arcmsr.h 2017-08-04 11:19:22.0 +0800

Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Yonghong Song
On 11/8/17 10:53 PM, Thomas Gleixner wrote: On Wed, 8 Nov 2017, Yonghong Song wrote: On 11/8/17 4:06 PM, David Miller wrote: From: Yonghong Song Date: Wed, 8 Nov 2017 13:37:12 -0800 Uprobe is a tracing mechanism for userspace programs. Typical uprobe will incur overhead of two traps. First

[PATCH v4 1/5] perf/core: add PERF_RECORD_SAMPLE_SKID_IP record type

2017-11-08 Thread Stephane Eranian
This patchs adds a new sample record type. The goal is to record the interrupted instruction pointer (IP) as seen by the kernel and reflected in the machine state (pt_regs). On some architectures, it is possible to avoid the IP skid using hardware support. For instance, on Intel x86, the use of PE

[PATCH v4 3/5] perf/tools: add support for PERF_SAMPLE_SKID_IP

2017-11-08 Thread Stephane Eranian
This patch adds the support code to handle the PERF_SAMPLE_SKID_IP record type. This is done as an event term and as such can be enabled per event: cpu/event=xxx,skid-ip=1/. This is a boolean term which is false by default. Signed-off-by: Stephane Eranian --- tools/include/uapi/linux/perf_event.

[PATCH v4 4/5] perf/record: add documentation for using PERF_SAMPLE_SKID_IP

2017-11-08 Thread Stephane Eranian
This patch adds documentation to describe how to use the skid ip support with perf record. The sample type can be provided per event as follows: pmu_instance/...,skid-ip=1/ For instance on Intel X86: $ perf record -e cpu/event=0xc5,skid-ip=1/pp does record the precise address of retired branches

[PATCH v4 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-11-08 Thread Stephane Eranian
This atch adds support for SKID_IP to Intel x86 processors in PEBS mode. Signed-off-by: Stephane Eranian --- arch/x86/events/intel/ds.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/events/intel/ds.c b/arch/x86/events/intel/ds.c index 3674a4b6f8bd..dd248ceda452 100644 --- a

[PATCH v4 5/5] perf/script: add support for PERF_SAMPLE_SKID_IP

2017-11-08 Thread Stephane Eranian
This patch adds a skid_ip field to perf script to dump the raw value of the PERF_SAMPLE_SKID_IP field in each sample. $ perf script -F +ip,+skid_ip .. The field is not enabled by default. Signed-off-by: Stephane Eranian --- tools/perf/Documentation/perf-script.txt | 2 +- tools/perf/built

[PATCH v4 0/5] perf: add support for capturing skid IP

2017-11-08 Thread Stephane Eranian
This patchs adds a new sample record type called PERF_SAMPLE_SKID_IP. The goal is to record the unmodified interrupted instruction pointer (IP) as seen by the kernel and reflected in the machine state. On some architectures, it is possible to avoid the IP skid using hardware support. For instance,

Re: [PATCH] mm: page_ext: check if page_ext is not prepared

2017-11-08 Thread Michal Hocko
Andrew, On Thu 09-11-17 13:35:53, Joonsoo Kim wrote: > On Wed, Nov 08, 2017 at 03:21:06PM +0100, Michal Hocko wrote: > > On Wed 08-11-17 16:59:56, Joonsoo Kim wrote: > > > On Tue, Nov 07, 2017 at 10:47:30AM +0100, Michal Hocko wrote: [...] > > > > I suspec this goes all the way down to when page_e

Re: [PATCH V13 08/10] mmc: block: blk-mq: Separate card polling from recovery

2017-11-08 Thread Adrian Hunter
On 08/11/17 11:30, Linus Walleij wrote: > On Fri, Nov 3, 2017 at 2:20 PM, Adrian Hunter wrote: > >> Recovery is simpler to understand if it is only used for errors. Create a >> separate function for card polling. >> >> Signed-off-by: Adrian Hunter > > This looks good but I can't see why it's no

Re: [PATCH] perf/core: fast breakpoint modification via _IOC_MODIFY_BREAKPOINT

2017-11-08 Thread Jiri Olsa
On Wed, Nov 08, 2017 at 08:59:22AM -0800, Milind Chabbi wrote: > On Wed, Nov 8, 2017 at 7:57 AM, Jiri Olsa wrote: > > On Wed, Nov 08, 2017 at 07:51:10AM -0800, Milind Chabbi wrote: > >> On Wed, Nov 8, 2017 at 7:12 AM, Jiri Olsa wrote: > >> > >> > > I am not able to fully understand your concern.

[PATCH 3/13] scsi: arcmsr: add codes for ACB_ADAPTER_TYPE_E to support new adapter ARC-1884

2017-11-08 Thread Ching Huang
From: Ching Huang add codes for ACB_ADAPTER_TYPE_E to support new adapter ARC-1884 Signed-off-by: Ching Huang --- diff -uprN a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h --- a/drivers/scsi/arcmsr/arcmsr.h 2017-08-03 18:54:46.0 +0800 +++ b/drivers/scsi/arcmsr/arcms

[PATCH] qlge: remove duplicated assignment to mbcp

2017-11-08 Thread Colin King
From: Colin Ian King The assignment to mbcp is identical to the initiatialized value assigned to mbcp at declaration time a few lines earlier, hence we can remove the second redundant assignment. Cleans up clang warning: drivers/net/ethernet/qlogic/qlge/qlge_mpi.c:209:22: warning: Value stored

Re: [PATCH] cpuidle: Add "cpuidle.use_deepest" to bypass governor and allow HW to go deep

2017-11-08 Thread Vincent Guittot
Hi Len On 9 November 2017 at 08:38, Len Brown wrote: > From: Len Brown > > While there are several mechanisms (cmdline, sysfs, PM_QOS) to limit > cpuidle to shallow idle states, there is no simple mechanism > to give the hardware permission to enter the deeptest state permitted by > PM_QOS. an

[PATCH 0/3] VFS: name lookup improvements.

2017-11-08 Thread NeilBrown
These three patches address two issues: d_weak_revalidate and path_mountpoint lookups. The former is poorly defined and doesn't actually do the one thing that it would be useful for it to do. So the nfs implemention is improved, the 9p one discarded, and the documentation clarified. Given this c

[PATCH 1/3] VFS/nfs/9p: revise meaning of d_weak_invalidate.

2017-11-08 Thread NeilBrown
d_weak_invalidate() is called when a path lookup ends with something other than a simple name. This happen when it: - ends "." or "..", - ends at a mountpoint (including "/"), or - ends at a procfs symlink. In these cases, revalidating the name of the dentry is inappropriate as the name wasn

[PATCH 3/3] VFS / autofs4: remove kern_path_mountpoint()

2017-11-08 Thread NeilBrown
kern_path_mountpoint() is only called from autofs4 to perform lookups which need to identify autofs4 mount points. Many of the differences between kern_path() and kern_path_mountpoint() are related to the fact that we will never use O_CREAT with the latter, and don't need to "open" the target. The

[PATCH 2/3] VFS: remove user_path_mountpoint_at()

2017-11-08 Thread NeilBrown
Now that d_weak_revalidate doesn't revalidate the inode (unless LOOKUP_OPEN is set), we don't need any extra care when umounting. A simple user_path_at() will find the desired dentry without performing any access on the mounted filesystems. So we don't need user_path_mountpoint_at(). By switching

Re: [PATCH] mm, vmstat: Make sure mutex is a global static

2017-11-08 Thread Michal Hocko
On Wed 08-11-17 07:21:20, Kees Cook wrote: > On Tue, Nov 7, 2017 at 11:43 PM, Vlastimil Babka wrote: > > On 11/07/2017 10:38 PM, Kees Cook wrote: [...] > >> +static DEFINE_MUTEX(vm_numa_stat_lock); > >> + > >> int sysctl_vm_numa_stat_handler(struct ctl_table *table, int write, > >>

Re: [PATCH 01/11] Initialize the mapping of KASan shadow memory

2017-11-08 Thread Liuwenliang (Abbott Liu)
On 12/10/17 15:59, Marc Zyngier [mailto:marc.zyng...@arm.com] wrote: > On 11/10/17 09:22, Abbott Liu wrote: >> diff --git a/arch/arm/include/asm/proc-fns.h >> b/arch/arm/include/asm/proc-fns.h >> index f2e1af4..6e26714 100644 >> --- a/arch/arm/include/asm/proc-fns.h >> +++ b/arch/arm/include/asm/p

Re: [PATCH 23/31] nds32: Device tree support

2017-11-08 Thread Greentime Hu
2017-11-08 17:53 GMT+08:00 Arnd Bergmann : > On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >> From: Greentime Hu >> >> Signed-off-by: Vincent Chen >> Signed-off-by: Greentime Hu >> --- >> arch/nds32/boot/dts/Makefile |8 ++ >> arch/nds32/boot/dts/ae3xx.dts | 55 +

Re: [PATCH 2/3] watchdog: jz4780: Allow selection of jz4740-wdt driver

2017-11-08 Thread James Hogan
Hi Wim, On Fri, Sep 08, 2017 at 08:35:54PM +0200, Mathieu Malaterre wrote: > This driver works for jz4740 & jz4780 > > Suggested-by: Maarten ter Huurne > Signed-off-by: Mathieu Malaterre I just noticed that though Ralf applied the other two patches in this series (defconfig + dt), he hadn't ap

[PATCH 2/13] scsi: arcmsr: simplify arcmsr_iop_init function

2017-11-08 Thread Ching Huang
From: Ching Huang simplify arcmsr_iop_init function Signed-off-by: Ching Huang --- diff -uprN a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c --- a/drivers/scsi/arcmsr/arcmsr_hba.c 2017-11-08 18:46:42.0 +0800 +++ b/drivers/scsi/arcmsr/arcmsr_hba.c 2017-11-08 18:

Re: [PATCH V13 10/10] mmc: block: blk-mq: Stop using legacy recovery

2017-11-08 Thread Adrian Hunter
On 08/11/17 11:38, Linus Walleij wrote: > On Fri, Nov 3, 2017 at 2:20 PM, Adrian Hunter wrote: > >> There are only a few things the recovery needs to do. Primarily, it just >> needs to: >> Determine the number of bytes transferred >> Get the card back to transfer state >>

Re: [vlan_device_event] BUG: unable to handle kernel paging request at 6b6b6ccf

2017-11-08 Thread Fengguang Wu
On Thu, Nov 09, 2017 at 02:55:10PM +0800, Fengguang Wu wrote: On Wed, Nov 08, 2017 at 10:34:10PM -0800, Cong Wang wrote: On Wed, Nov 8, 2017 at 7:12 PM, Fengguang Wu wrote: Hi Alex, So looking over the trace the panic seems to be happening after a decnet interface is getting deleted. Is ther

Re: linux-next: build warnings after merge of the gpio tree

2017-11-08 Thread Linus Walleij
On Thu, Nov 9, 2017 at 4:51 AM, Stephen Rothwell wrote: > On Fri, 3 Nov 2017 16:37:24 +1100 Stephen Rothwell > wrote: >> >> After merging the gpio tree, yesterday's linux-next build (arm >> multi_v7_defconfig) produced these warnings: >> >> arch/arm/boot/dts/bcm2835-rpi-b.dtb: Warning (phys_prop

Re: [PATCH v2] locking/lockdep: Revise Documentation/locking/crossrelease.txt

2017-11-08 Thread Byungchul Park
On Thu, Nov 09, 2017 at 04:20:36PM +0900, Byungchul Park wrote: > Changes from v1 > - Run several tools checking english spell and grammar over the text. > - Simplify the document more. Checker tools also reported other words e.g. crosslock, crossrelease, lockdep, mutex, lockless, and so on, but I

[PATCH] cpuidle: Add "cpuidle.use_deepest" to bypass governor and allow HW to go deep

2017-11-08 Thread Len Brown
From: Len Brown While there are several mechanisms (cmdline, sysfs, PM_QOS) to limit cpuidle to shallow idle states, there is no simple mechanism to give the hardware permission to enter the deeptest state permitted by PM_QOS. Here we create the "cpuidle.use_deepest" modparam to provide this cap

[PATCH 0/13] scsi: arcmsr: add some driver options and support new adapter ARC-1884

2017-11-08 Thread Ching Huang
From: Ching Huang Hi all, The following patches apply to Martin's 4.15/scsi-queue. Patch 1: redefine ACB_ADAPTER_TYPE_A, _B, _C, _D and subsequent changes. Patch 2: simplify arcmsr_iop_init function. Patch 3: add codes for ACB_ADAPTER_TYPE_E to support new adapter ARC-1884 Patch 4: replace c

Re: [PATCH 2/3] perf tools: Fix build for hardened environments

2017-11-08 Thread Jiri Olsa
On Wed, Nov 08, 2017 at 01:03:21PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Nov 08, 2017 at 11:27:38AM +0100, Jiri Olsa escreveu: > > From: Jiri Olsa > > > > On Fedora systems the perl and python CFLAGS/LDFLAGS include the > > hardened specs from redhat-rpm-config package. We apply them o

Re: [RFC -mm] mm, userfaultfd, THP: Avoid waiting when PMD under THP migration

2017-11-08 Thread Huang, Ying
Andrea Arcangeli writes: > Hello, > > On Sun, Nov 05, 2017 at 11:01:05AM +0800, huang ying wrote: >> On Fri, Nov 3, 2017 at 11:00 PM, Zi Yan wrote: >> > On 3 Nov 2017, at 3:52, Huang, Ying wrote: >> > >> >> From: Huang Ying >> >> >> >> If THP migration is enabled, the following situation is pos

Re: [PATCH V13 07/10] mmc: block: blk-mq: Add support for direct completion

2017-11-08 Thread Adrian Hunter
On 08/11/17 11:28, Linus Walleij wrote: > On Fri, Nov 3, 2017 at 2:20 PM, Adrian Hunter wrote: > >> For blk-mq, add support for completing requests directly in the ->done >> callback. That means that error handling and urgent background operations >> must be handled by recovery_work in that case.

Re: [PATCH 3/3] perf tools: Removing FLAGS_PYTHON_EMBED/FLAGS_PERL_EMBED variables

2017-11-08 Thread Jiri Olsa
On Wed, Nov 08, 2017 at 01:06:40PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Nov 08, 2017 at 11:27:39AM +0100, Jiri Olsa escreveu: > > There's no user of those. > > [acme@jouet linux]$ find tools/ -type f | xargs grep FLAGS_PYTHON_EMBED > tools/perf/Makefile.config: FLAGS_PYTHON_EMBED := $

Re: [PATCH v5 0/9] mtd: sharpslpart partition parser

2017-11-08 Thread Robert Jarzmik
Boris Brezillon writes: >> Hi Boris, >> >> So what's the status about the sync, should I pick the patches, and have the >> others make it to your for-next branch ? > > It's been merged in l2-mtd/master (our -next branch) which is > targeting 4.15. Unfortunately we didn't create a topic branch, w

[PATCH 1/13] scsi: arcmsr: redefine ACB_ADAPTER_TYPE_A, _B, _C, _D and subsequent changes.

2017-11-08 Thread Ching Huang
From: Ching Huang redefine ACB_ADAPTER_TYPE_A, _B, _C, _D and subsequent changes. Signed-off-by: Ching Huang --- diff -uprN a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h --- a/drivers/scsi/arcmsr/arcmsr.h 2017-07-31 11:50:44.0 +0800 +++ b/drivers/scsi/arcmsr/arcmsr

Re: [PATCH 20/31] nds32: L2 cache support

2017-11-08 Thread Greentime Hu
2017-11-08 17:48 GMT+08:00 Arnd Bergmann : > On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >> From: Greentime Hu >> >> Signed-off-by: Vincent Chen >> Signed-off-by: Greentime Hu > >> + >> +/* This is defined for head.S to use due to device tree is not yet built. */ >> +#define L2CC_PA_BAS

Re: [vlan_device_event] BUG: unable to handle kernel paging request at 6b6b6ccf

2017-11-08 Thread Fengguang Wu
sts in Zone order, mobility grouping on. Total pages: 81146 [0.00] Kernel command line: ip=vm-lkp-wsx03-openwrt-i386-18::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-lkp-wsx03-openwrt-i386-18/trinity-300s-openwrt-i386-2016-03-16.cgz-8d5e72dfdf0fa29a21143fd72746c6f43295ce9f-2017

[PATCH v2] locking/lockdep: Revise Documentation/locking/crossrelease.txt

2017-11-08 Thread Byungchul Park
Changes from v1 - Run several tools checking english spell and grammar over the text. - Simplify the document more. -8<- >From 412bc9eb0d22791f70f7364bda189feb41899ff9 Mon Sep 17 00:00:00 2001 From: Byungchul Park Date: Thu, 9 Nov 2017 16:12:23 +0900 Subject: [PATCH v2] locking/lockdep: R

Re: [PATCH 03/31] nds32: Support early_printk

2017-11-08 Thread Greentime Hu
2017-11-08 17:47 GMT+08:00 Tobias Klauser : > On 2017-11-08 at 06:54:51 +0100, Greentime Hu wrote: >> From: Greentime Hu >> >> Signed-off-by: Rick Chen >> Signed-off-by: Greentime Hu >> --- >> arch/nds32/kernel/early_printk.c | 124 >> ++ >> 1 file changed

[PATCH 1/1] intel_idle: Graceful probe failure when MWAIT is disabled

2017-11-08 Thread Len Brown
From: Len Brown When MWAIT is disabled, intel_idle refuses to probe. But it may mis-lead the user by blaming this on the model number: intel_idle: does not run on family 6 modesl 79 So defer the check for MWAIT until after the model# white-list check succeeds, and if the MWAIT check fails, tell

Re: [kernel-hardening] Re: [PATCH resend 2/2] userns: control capabilities of some user namespaces

2017-11-08 Thread महेश बंडेवार
[resend response as earlier one failed because of formatting issues] On Thu, Nov 9, 2017 at 12:21 PM, Serge E. Hallyn wrote: > > On Thu, Nov 09, 2017 at 09:55:41AM +0900, Mahesh Bandewar (महेश बंडेवार) > wrote: > > On Thu, Nov 9, 2017 at 4:02 AM, Christian Brauner > > wrote: > > > On Wed, Nov 0

[PATCH 0/13] scsi: arcmsr: add some driver options and support new adapter ARC-1884

2017-11-08 Thread Ching Huang
From: Ching Huang Hi all, The following patches apply to Martin's 4.15/scsi-queue. Patch 1: redefine ACB_ADAPTER_TYPE_A, _B, _C, _D and subsequent changes. Patch 2: simplify arcmsr_iop_init function. Patch 3: add codes for ACB_ADAPTER_TYPE_E to support new adapter ARC-1884 Patch 4: replace c

Re: [PATCH V13 06/10] mmc: sdhci-pci: Add CQHCI support for Intel GLK

2017-11-08 Thread Adrian Hunter
On 08/11/17 11:24, Linus Walleij wrote: > On Fri, Nov 3, 2017 at 2:20 PM, Adrian Hunter wrote: > >> Add CQHCI initialization and implement CQHCI operations for Intel GLK. >> >> Signed-off-by: Adrian Hunter > > This patch seems OK in context, but it merely illustrates the > weirdness of .[runtim

Re: [PATCH 13/31] nds32: DMA mapping API

2017-11-08 Thread Greentime Hu
2017-11-08 17:09 GMT+08:00 Arnd Bergmann : > On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: > >> +static void consistent_sync(void *vaddr, size_t size, int direction) >> +{ >> + unsigned long start = (unsigned long)vaddr; >> + unsigned long end = start + size; >> + >> + swit

[PATCH v3 2/3] drivers: hwmon: Add W83773G driver

2017-11-08 Thread Lei YU
Nuvoton W83773G is a hardware monitor IC providing one local temperature and two remote temperature sensors. Signed-off-by: Lei YU --- v2: - Rewrite the driver using regmap - Add offset and update_interval v3: - Use devm_hwmon_device_register_with_info() with is_visible/read/write functions

[PATCH] rtc: Use time64_t variables to set time/alarm from sysfs

2017-11-08 Thread Baolin Wang
Use time64_t variables and related APIs for sysfs interfaces to support setting time or alarm after the year 2038 on 32-bit system. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sysfs.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/rtc

[PATCH v3 0/3] Add W83773G hwmon sensor driver and doc

2017-11-08 Thread Lei YU
Nuvoton W83773G is a hardware monitoring chip, which integrates two remote and one local temperature sensors. --- v2: - The driver is re-written as v1's comment, so the author is changed to me. - Added the device to trivial-devices.txt v3: - Update the driver to use new API devm_hwmon_device_reg

[PATCH v3 3/3] hwmon: (w83773g) Add documentation

2017-11-08 Thread Lei YU
Add documentation for the w83773g driver. Signed-off-by: Lei YU --- v2: - Add notes for offset and update_interval --- Documentation/hwmon/w83773g | 33 + 1 file changed, 33 insertions(+) create mode 100644 Documentation/hwmon/w83773g diff --git a/Documentation

[PATCH v3 1/3] DT: i2c: W83773G is a trivial device

2017-11-08 Thread Lei YU
Signed-off-by: Lei YU --- Documentation/devicetree/bindings/trivial-devices.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/trivial-devices.txt b/Documentation/devicetree/bindings/trivial-devices.txt index af284fb..63ad2f1 100644 --- a/Documentation/devi

Re: [PATCH 12/31] nds32: Device specific operations

2017-11-08 Thread Greentime Hu
2017-11-08 17:04 GMT+08:00 Arnd Bergmann : > On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: > >> + >> +#define ioremap(cookie,size) __ioremap(cookie,size,0,1) >> +#define ioremap_nocache(cookie,size) __ioremap(cookie,size,0,1) >> +#define iounmap(cookie)__i

[PATCH v2] coccinelle: fix parallel build with CHECK=scripts/coccicheck

2017-11-08 Thread Masahiro Yamada
The command "make -j8 C=1 CHECK=scripts/coccicheck" produces lots of "coccicheck failed" error messages. I do not know the coccinelle internals, but I guess --jobs does not work well if spatch is invoked from Make running in parallel. Disable --jobs in this case. Signed-off-by: Masahiro Yamada -

Re: [vlan_device_event] BUG: unable to handle kernel paging request at 6b6b6ccf

2017-11-08 Thread Fengguang Wu
On Wed, Nov 08, 2017 at 10:34:10PM -0800, Cong Wang wrote: On Wed, Nov 8, 2017 at 7:12 PM, Fengguang Wu wrote: Hi Alex, So looking over the trace the panic seems to be happening after a decnet interface is getting deleted. Is there any chance we could try compiling the kernel without decnet s

Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Thomas Gleixner
On Wed, 8 Nov 2017, Yonghong Song wrote: > On 11/8/17 4:06 PM, David Miller wrote: > > From: Yonghong Song > > Date: Wed, 8 Nov 2017 13:37:12 -0800 > > > > > Uprobe is a tracing mechanism for userspace programs. > > > Typical uprobe will incur overhead of two traps. > > > First trap is caused by

Re: [PATCH] net/tcp: introduce TRACE_EVENT for TCP/IPv4 state transition

2017-11-08 Thread Yafang Shao
2017-11-09 14:43 GMT+08:00 Alexei Starovoitov : > On Thu, Nov 09, 2017 at 02:01:38PM +0800, Yafang Shao wrote: >> With this newly introduced TRACE_EVENT, it will be very easy to minotor >> TCP/IPv4 state transition. >> >> A new TRACE_SYSTEM named tcp is added, in which we can trace other TCP >> eve

Re: [PATCH 1/4] omapdrm: fix compatible string for td028ttec1

2017-11-08 Thread H. Nikolaus Schaller
Hi Laurent, > Am 09.11.2017 um 07:35 schrieb Laurent Pinchart > : > > Hi Nikolaus, > > On Thursday, 9 November 2017 08:05:15 EET H. Nikolaus Schaller wrote: >>> Am 09.11.2017 um 04:33 schrieb Laurent Pinchart: >>> On Wednesday, 8 November 2017 23:09:29 EET H. Nikolaus Schaller wrote: The v

Re: [vlan_device_event] BUG: unable to handle kernel paging request at 6b6b6ccf

2017-11-08 Thread Fengguang Wu
On Thu, Nov 09, 2017 at 10:43:08AM +0800, Fengguang Wu wrote: Of course, if it's bisectable, that would be great too. Yes, bisect is on the way. So far it's bisecting in the 4.12 commits. The bisect was unsuccessful due to an unrelated DRM_BOCHS oops in 4.11. Disabling the buggy driver, I man

[PATCH] compiler, clang: handle randomizable anonymous structs

2017-11-08 Thread Sandipan Das
The GCC randomize layout plugin can randomize the member offsets of sensitive kernel data structures. To use this feature, certain annotations and members are added to the structures which affect the member offsets even if this plugin is not used. All of these structures are completely randomized,

linux-next: Tree for Nov 9

2017-11-08 Thread Stephen Rothwell
Hi all, Changes since 20171108: The powerpc tree still had its build failure for which I applied a patch. It also gained a conflict against Linus' tree. The vfs tree gained conflicts against the btrfs-kdave, ext3, f2fs and overlayfs trees. The devicetree tree gained conflicts against th

Re: [PATCH] net/tcp: introduce TRACE_EVENT for TCP/IPv4 state transition

2017-11-08 Thread Alexei Starovoitov
On Thu, Nov 09, 2017 at 02:01:38PM +0800, Yafang Shao wrote: > With this newly introduced TRACE_EVENT, it will be very easy to minotor > TCP/IPv4 state transition. > > A new TRACE_SYSTEM named tcp is added, in which we can trace other TCP > event as well. > > Two helpers are added, > static inlin

Re: [PATCH] iio: mma8452: add power_mode sysfs configuration

2017-11-08 Thread Martin Kepplinger
Am 09.11.2017 04:19 schrieb harinath Nampally: Hi Martin, Thanks for publishing the patch. I will work on it, but unfortunately I can't promise anything before 11/27. perfectly fine, this patch has been lying around here for at least a year, so there's no rush.

Re: [PATCH 1/4] omapdrm: fix compatible string for td028ttec1

2017-11-08 Thread Laurent Pinchart
Hi Nikolaus, On Thursday, 9 November 2017 08:05:15 EET H. Nikolaus Schaller wrote: > > Am 09.11.2017 um 04:33 schrieb Laurent Pinchart: > > On Wednesday, 8 November 2017 23:09:29 EET H. Nikolaus Schaller wrote: > >> The vendor name was "toppoly" but other panels and the vendor list > >> have defin

Re: [vlan_device_event] BUG: unable to handle kernel paging request at 6b6b6ccf

2017-11-08 Thread Cong Wang
On Wed, Nov 8, 2017 at 7:12 PM, Fengguang Wu wrote: > Hi Alex, > >> So looking over the trace the panic seems to be happening after a >> decnet interface is getting deleted. Is there any chance we could try >> compiling the kernel without decnet support to see if that is the >> source of these iss

[PATCH] ACPI / utils: Fix memory leak on an error return path in acpi_evaluate_reference()

2017-11-08 Thread Xiongfeng Wang
When package.count is larger than ACPI_MAS_HANDLES, buffer.pointer is not freed before the function returns AE_NO_MEMORY. Fix this possible memory leak by kfree'ing it. Signed-off-by: Xiongfeng Wang --- drivers/acpi/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/utils.c

Re: x86: CR4 update when IRQs are enabled

2017-11-08 Thread Nadav Amit
CC’ing more people, and adding a patch to clarify... Nadav Amit wrote: > I am puzzled by the comment in tlb_state.cr4 , which says: > >/* > * Access to this CR4 shadow and to H/W CR4 is protected by > * disabling interrupts when modifying either one. > */ > > Th

Re: [PATCH v3] sparc: Provide cmpxchg64 for 32-bit builds

2017-11-08 Thread David Miller
From: Guenter Roeck Date: Mon, 6 Nov 2017 06:41:45 -0800 > Fix the following build error, seen when building sparc32:allmodconfig. > > drivers/net/ethernet/intel/i40e/i40e_ethtool.c: > In function 'i40e_set_priv_flags': > drivers/net/ethernet/intel/i40e/i40e_ethtool.c:4150:2: error: >

Re: [PATCH 6/8] staging: ccree: simplify pm manager using local var

2017-11-08 Thread Gilad Ben-Yossef
On Tue, Nov 7, 2017 at 12:43 PM, Dan Carpenter wrote: > On Tue, Nov 07, 2017 at 09:40:02AM +, Gilad Ben-Yossef wrote: >> --- a/drivers/staging/ccree/ssi_pm.c >> +++ b/drivers/staging/ccree/ssi_pm.c >> @@ -90,20 +90,24 @@ int cc_pm_resume(struct device *dev) >> int cc_pm_get(struct device *dev

Re: [PATCH 2/8] staging: ccree: use more readable func names

2017-11-08 Thread Gilad Ben-Yossef
Hi Dan, Thank you for reviewing the patch set. On Tue, Nov 7, 2017 at 12:30 PM, Dan Carpenter wrote: > > On Tue, Nov 07, 2017 at 09:39:58AM +, Gilad Ben-Yossef wrote: > > @@ -780,11 +766,10 @@ static inline int ssi_buffer_mgr_aead_chain_iv( > > unsigned int iv_size_to_authenc =

Re: [tip:x86/asm] x86/umip: Add emulation code for UMIP instructions

2017-11-08 Thread Ricardo Neri
On Wed, Nov 08, 2017 at 06:14:12PM +0100, Paolo Bonzini wrote: > On 08/11/2017 18:09, Denys Vlasenko wrote: > > On 11/08/2017 05:57 PM, Linus Torvalds wrote: > >> On Wed, Nov 8, 2017 at 8:53 AM, Denys Vlasenko > >> wrote: > >>> We can postpone enabling UMIP by default by a year or so. > >>> By thi

Re: linux-next: build failure after merge of the tip tree

2017-11-08 Thread Ingo Molnar
* Stephen Rothwell wrote: > Hi Ingo, > > On Wed, 8 Nov 2017 10:18:28 +0100 Ingo Molnar wrote: > > > > Note, I created a commit out of this fix, with your SOB - let me know if > > you have > > any objections. > > Only a small nit - I didn't bisect it, I just figured it out by > inspection.

[PATCH v2 1/2] sparc: use a common CHECKFLAGS entry for common flags

2017-11-08 Thread Luc Van Oostenryck
--- arch/sparc/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile index 8496a074b..a42aa114e 100644 --- a/arch/sparc/Makefile +++ b/arch/sparc/Makefile @@ -14,12 +14,13 @@ else KBUILD_DEFCONFIG := sparc64_defconfig

[PATCH v2 0/2] sparc: pass endianness info to sparse

2017-11-08 Thread Luc Van Oostenryck
The goal of these two patches is to ass endianness and machine size info to sparse so that sparse can emit correct diagnostics even when the endianness or machine size doesn't correspond to sparse's defaults. Change since v1: - move sparse options common to sparc32 & sparc64 at the same place.

[PATCH v2 2/2] sparc: pass endianness info to sparse

2017-11-08 Thread Luc Van Oostenryck
sparc is big-endian only but sparse assumes the same endianness as the building machine. This is problematic for code which expect __BYTE_ORDER__ being correctly predefined by the compiler which sparse can then pre-process differently from what gcc would, depending on the building machine endiannes

[PATCH v2] x86, build: Make genimage.sh little more quite

2017-11-08 Thread changbin . du
From: Changbin Du This change suppresses the 'dd' output and adds '-quite' parameter to mkisofs tool. Also it removes 'Using ...' messages. None of the messages matter to the user. If user wants to be more verbose, he/she can use "make V=1" to debug this script. Now: $ make isoimage ... Kernel:

Re: [tip:x86/asm] x86/umip: Add emulation code for UMIP instructions

2017-11-08 Thread Ricardo Neri
On Wed, Nov 08, 2017 at 08:34:45AM -0800, Linus Torvalds wrote: > On Wed, Nov 8, 2017 at 8:14 AM, Denys Vlasenko wrote: > > > > Can we avoid maintain emulation of these isns, by asking Wine to remove > > their use instead? > > If we ask the Wine people to remove the instruction use, that may mean

Re: [tip:x86/asm] x86/umip: Add emulation code for UMIP instructions

2017-11-08 Thread Ricardo Neri
On Wed, Nov 08, 2017 at 05:14:33PM +0100, Denys Vlasenko wrote: > On 11/08/2017 12:00 PM, tip-bot for Ricardo Neri wrote: > >Commit-ID: 1e5db223696afa55e6a038fac638f759e1fdcc01 > >Gitweb: > >https://git.kernel.org/tip/1e5db223696afa55e6a038fac638f759e1fdcc01 > >Author: Ricardo Neri > >Au

Re: [PATCH 4/4] omapdss: fix problem enabling VDDS_DSI on OMAP3530 (OpenPandora)

2017-11-08 Thread H. Nikolaus Schaller
Hi Laurent, > Am 09.11.2017 um 04:45 schrieb Laurent Pinchart > : > > Hi Nikolaus, > > Thank you for the patch. > > On Wednesday, 8 November 2017 23:09:32 EET H. Nikolaus Schaller wrote: >> commit d178e034d565 ("drm: omapdrm: Move FEAT_DPI_USES_VDDS_DSI feature to >> dpi code") >> >> introduc

[PATCH] nvme-pci: disable APST on Samsung SSD 960 EVO + ASUS PRIME B350M-A

2017-11-08 Thread Kai-Heng Feng
The NVMe device in question drops off the PCIe bus after system suspend. I've tried several approaches to workaround this issue, but none of them works: - NVME_QUIRK_DELAY_BEFORE_CHK_RDY - NVME_QUIRK_NO_DEEPEST_PS - Disable APST before controller shutdown - Delay between controller shutdown and sys

Re: [PATCH] x86, build: Make genimage.sh little more quite

2017-11-08 Thread Du, Changbin
On Wed, Nov 08, 2017 at 10:01:37AM +0100, Ingo Molnar wrote: > > * changbin...@intel.com wrote: > > > From: Changbin Du > > > > This change suppresses the 'dd' output and adds '-quite' parameter > > to mkisofs tool. None of the messages matter to the user. Now: > > > > $ make isoimage > > ...

Re: [PATCH 3/4] DTS: Pandora: fix panel compatibility string

2017-11-08 Thread H. Nikolaus Schaller
> Am 09.11.2017 um 04:36 schrieb Laurent Pinchart > : > > Hi Nikolaus, > > Thank you for the patch. > > On Wednesday, 8 November 2017 23:09:31 EET H. Nikolaus Schaller wrote: >> We can remove the "omapdss," prefix. > > I agree but you should explain why. I can add a sentence if someone helps

Re: [PATCH 1/4] omapdrm: fix compatible string for td028ttec1

2017-11-08 Thread H. Nikolaus Schaller
Hi Laurent, > Am 09.11.2017 um 04:33 schrieb Laurent Pinchart > : > > Hi Nikolaus, > > Thank you for the patch. > > On Wednesday, 8 November 2017 23:09:29 EET H. Nikolaus Schaller wrote: >> The vendor name was "toppoly" but other panels and the vendor list >> have defined it as "tpo". So let's

[PATCH] net/tcp: introduce TRACE_EVENT for TCP/IPv4 state transition

2017-11-08 Thread Yafang Shao
With this newly introduced TRACE_EVENT, it will be very easy to minotor TCP/IPv4 state transition. A new TRACE_SYSTEM named tcp is added, in which we can trace other TCP event as well. Two helpers are added, static inline void __tcp_set_state(struct sock *sk, int state) static inline void __sk_st

Re: [PATCH] MAINTAINERS: Add Lorenzo Pieralisi for PCI host bridge drivers

2017-11-08 Thread Kishon Vijay Abraham I
Hi Bjorn, On Thursday 09 November 2017 01:56 AM, Bjorn Helgaas wrote: > On Wed, Nov 08, 2017 at 02:15:10PM -0600, Bjorn Helgaas wrote: >> From: Bjorn Helgaas >> >> Add Lorenzo Pieralisi as maintainer for PCI native host bridge drivers and >> the endpoint driver framework. >> >> Signed-off-by: Bjo

[PATCH 2/2] riscv: pass machine size to sparse

2017-11-08 Thread Luc Van Oostenryck
By default, sparse assumes a 64bit machine when compiled on x86-64 and 32bit when compiled on anything else. This can of course create all sort of problems when this doesn't correspond to the target's machine size, like issuing false warnings like: 'constant ... is so big it is unsigned long long'

[PATCH 1/2] riscv: pass endianness info to sparse

2017-11-08 Thread Luc Van Oostenryck
RISC-V is little-endian only but sparse assumes the same endianness as the building machine. This is problematic for code which expect __BYTE_ORDER__ being correctly predefined by the compiler which sparse can then pre-process differently from what gcc would, depending on the building machine endia

[PATCH 0/2] riscv: pass endianness and machine size to sparse

2017-11-08 Thread Luc Van Oostenryck
The goal of these two patches is to ass endianness and machine size info to sparse so that sparse can emit correct diagnostics even when the endianness and machine size doesn't correspond to sparse's defaults. Luc Van Oostenryck (2): riscv: pass endianness info to sparse riscv: pass machine si

Re: [PATCH 1/2] kbuild: create built-in.o automatically if parent directory wants it

2017-11-08 Thread Masahiro Yamada
Hi Sam, Thanks for your review. 2017-11-09 14:35 GMT+09:00 Sam Ravnborg : > Hi Masahiro. > > Thanks for picking this up. > >> A key point is, the parent Makefile knows whether built-in.o is needed >> or not. If a subdirectory needs to create built-in.o, its parent can >> tell the fact when Kbuil

linux-next: manual merge of the akpm tree with the pci tree

2017-11-08 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in: init/Kconfig between commit: 03ea2263c2ef ("PCI: Move PCI_QUIRKS to the PCI bus menu") from the pci tree and patch: "EXPERT Kconfig menu: fix broken EXPERT menu" from the akpm tree. I fixed it up (see below) and c

Re: [PATCH v11 09/12] x86: Enable User-Mode Instruction Prevention at runtime

2017-11-08 Thread Ricardo Neri
On Wed, Nov 08, 2017 at 10:52:59AM +0100, Ingo Molnar wrote: > > * Ricardo Neri wrote: > > > User-Mode Instruction Prevention (UMIP) is enabled by setting/clearing a > > bit in %cr4. > > > > It makes sense to enable UMIP at some point while booting, before user > > spaces come up. Like SMAP and

[RFC PATHC 2/2] f2fs: apply write hints to select the type of segment for direct write

2017-11-08 Thread Hyunchul Lee
From: Hyunchul Lee Select the type of the segment using write hints, when blocks are allocated for direct write. There are unhandled corner cases. Hints are not applied in in-place update. And if the blocks of a file is not pre-allocated because of the invalid user buffer, CURSEG_WARM_DATA segm

[RFC PATHC 1/2] f2fs: apply write hints to select the type of segments for buffered write

2017-11-08 Thread Hyunchul Lee
From: Hyunchul Lee Write hints helps F2FS to determine which type of segments would be selected for buffered write. This patch implements the mapping from write hints to segment types as shown below. hints segment type - WRITE_LIFE_SHORTCUR

[RFC PATCH 0/2] apply write hints to select the type of segments

2017-11-08 Thread Hyunchul Lee
From: Hyunchul Lee Using write hints[1], applications can inform the life time of the data written to devices. and this[2] reported that the write hints patch decreased writes in NAND by 25%. This hints help F2FS to determine the followings. 1) the segment types where the data will be written.

[RFT] [media] em28xx: Fix use-after-free in v4l2_fh_init

2017-11-08 Thread Arvind Yadav
Here, em28xx_free_v4l2 is release "v4l2->dev->v4l2" Which is allready release by em28xx_v4l2_init. Signed-off-by: Arvind Yadav --- This bug report by Andrey Konovalov "net/media/em28xx: use-after-free in v4l2_fh_init" drivers/media/usb/em28xx/em28xx-video.c | 2 +- 1 file changed, 1 insertion(

Re: [PATCH v11 00/12] x86: Enable User-Mode Instruction Prevention

2017-11-08 Thread Ricardo Neri
On Wed, Nov 08, 2017 at 11:00:13AM +0100, Thomas Gleixner wrote: > On Sun, 5 Nov 2017, Ricardo Neri wrote: > > Changes since V10: > > *Patch 1 ("x86/insn-eval: Extend get_seg_base_addr() to also obtain segment > > limit") of v10 has been dropped has it has been merged in the tip tree. > > *Removed

Re: [PATCH v3] KVM: X86: Fix softlockup when get the current kvmclock

2017-11-08 Thread Wanpeng Li
2017-11-09 12:39 GMT+08:00 Konrad Rzeszutek Wilk : > On Wed, Nov 08, 2017 at 06:52:12PM -0800, Wanpeng Li wrote: >> From: Wanpeng Li >> >> watchdog: BUG: soft lockup - CPU#6 stuck for 22s! [qemu-system-x86:10185] >> CPU: 6 PID: 10185 Comm: qemu-system-x86 Tainted: G OE >> 4.14.0-rc4

Re: [PATCH] kallsyms: don't leak address when printing symbol

2017-11-08 Thread Tobin C. Harding
On Wed, Nov 08, 2017 at 10:35:55PM -0500, Steven Rostedt wrote: > On Thu, 9 Nov 2017 12:50:29 +1100 > "Tobin C. Harding" wrote: > > > Currently if a pointer is printed using %p[ssB] and the symbol is not > > found (kallsyms_lookup() fails) then we print the actual address. This > > leaks kernel

Re: [PATCH] Kernel debugging: omap: print warning if CONFIG_DEBUG_LL is enabled

2017-11-08 Thread H. Nikolaus Schaller
Hi Russel, > Am 08.11.2017 um 23:38 schrieb Russell King - ARM Linux > : > > On Wed, Nov 08, 2017 at 10:36:04PM +, Russell King - ARM Linux wrote: >> We don't need a compiler warning there, we probably need better help >> text against DEBUG_LL and against EARLY_PRINTK. > > Actually, this is

Re: [PATCH] scsi/eh: fix hang adding ehandler wakeups after decrementing host_busy

2017-11-08 Thread Stuart Hayes
Are there any issues with this patch (https://patchwork.kernel.org/patch/9938919/) that Pavel Tikhomirov submitted back in September? I am willing to help if there's anything I can do to help get it accepted. The failing case I'm working on involves lots of servers with disk read/write activ

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

2017-11-08 Thread Sergey Senozhatsky
On (11/09/17 00:06), Steven Rostedt wrote: > What does safe context mean? "safe" means that we don't cause lockups, stalls, sched throttlings, etc. by doing console_unlock() from that context [task]. > Do we really want to allow the printk thread to sleep when there's more > to print? What happe

Re: [PATCH 1/2] kbuild: create built-in.o automatically if parent directory wants it

2017-11-08 Thread Sam Ravnborg
Hi Masahiro. Thanks for picking this up. > A key point is, the parent Makefile knows whether built-in.o is needed > or not. If a subdirectory needs to create built-in.o, its parent can > tell the fact when Kbuild descends into it. Good observation! > > diff --git a/Makefile b/Makefile > index 0

[PATCH v2 2/8] scripts/leaking_addresses: remove dead code

2017-11-08 Thread Tobin C. Harding
debug_arrays is not called. Also, %seen hash is not used. We should remove unused code. Remove dead code. Signed-off-by: Tobin C. Harding --- scripts/leaking_addresses.pl | 9 - 1 file changed, 9 deletions(-) diff --git a/scripts/leaking_addresses.pl b/scripts/leaking_addresses.pl inde

  1   2   3   4   5   6   7   8   9   10   >