[v2] wlcore: add missing nvs file name info for wilink8

2017-07-03 Thread Reizer, Eyal
When working with wl18xx the nvs file is used for defining an alternate mac address and override the default mac address that is stored inside the wl18xx chip. The following commits: c815fde wlcore: spi: Populate config firmware data d776fc8 wlcore: sdio: Populate config firmware data Populated t

Re: [PATCH v6 06/18] xen/pvcalls: handle commands from the frontend

2017-07-03 Thread Juergen Gross
On 03/07/17 23:08, Stefano Stabellini wrote: > When the other end notifies us that there are commands to be read > (pvcalls_back_event), wake up the backend thread to parse the command. > > The command ring works like most other Xen rings, so use the usual > ring macros to read and write to it. Th

Re: [PATCH 08/14] qcom: mtd: nand: Add support for additional CSRs

2017-07-03 Thread Archit Taneja
On 06/29/2017 12:46 PM, Abhishek Sahu wrote: 1. NAND_READ_LOCATION: provides the offset in page for reading in BAM DMA mode 2. NAND_ERASED_CW_DETECT_CFG: contains the status for erased code words 3. NAND_BUFFER_STATUS: contains the status for ECC Signed-off-by: Abhishek Sahu --- d

Re: [RFC][PATCHv3 2/5] printk: introduce printing kernel thread

2017-07-03 Thread Sergey Senozhatsky
On (07/04/17 14:26), Sergey Senozhatsky wrote: [..] > not sure if we can properly throttle printk in all of the cases. > we know that console_sem is locked, but we don't know what for. > is CPU that owns the console_sem is now in console_unlock() or > somewhere in fbcon, or anywhere else. we probab

Re: [PATCH mm] introduce reverse buddy concept to reduce buddy fragment

2017-07-03 Thread Michal Hocko
On Tue 04-07-17 09:21:00, zhouxianrong wrote: > the test was done as follows: > > 1. the environment is android 7.0 and kernel is 4.1 and managed memory is > 3.5GB There have been many changes in the compaction proper since than. Do you see the same problem with the current upstream kernel? > 2

Re: "mm: use early_pfn_to_nid in page_ext_init" broken on some configurations?

2017-07-03 Thread Michal Hocko
On Tue 04-07-17 14:11:41, Joonsoo Kim wrote: > On Fri, Jun 30, 2017 at 05:44:16PM +0200, Michal Hocko wrote: > > On Fri 30-06-17 17:42:24, Michal Hocko wrote: > > [...] > > > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > > > index 16532fa0bb64..894697c1e6f5 100644 > > > --- a/inclu

Re: [PATCH 07/14] qcom: mtd: nand: support for passing flags in transfer functions

2017-07-03 Thread Archit Taneja
On 06/29/2017 12:45 PM, Abhishek Sahu wrote: The BAM has multiple flags to control the transfer. This patch adds flags parameter in register and data transfer functions and modifies all these function call with appropriate flags. Signed-off-by: Abhishek Sahu --- drivers/mtd/nand/qcom_nandc.

Re: [PATCH 3/5] pwm: rockchip: Move the configuration of polarity from rockchip_pwm_set_enable() to rockchip_pwm_config()

2017-07-03 Thread David.Wu
Hi Boris, 在 2017/7/4 2:36, Boris Brezillon 写道: Hm, maybe it's time to drop these custom hooks and implement pwm_apply_v1 and pwm_apply_v2 instead. Okay, drop the enable and config hooks, only use the apply hook to instead them.

Re: [RFC 0/5] drivers: Add boot constraints core

2017-07-03 Thread Viresh Kumar
On 03-07-17, 16:07, Mark Brown wrote: > On Mon, Jul 03, 2017 at 11:45:52AM +0530, Viresh Kumar wrote: > > The above regulator-min/max-microvolt values I mentioned were for the > > regulator > > device and not what the consumers would request. Yes, DMA will request > > something > > If you're put

Re: centos 7.2,I got some oops form my production line

2017-07-03 Thread Xishi Qiu
On 2017/6/29 16:22, Xishi Qiu wrote: > centos 7.2,I got some oops form my production line, > Anybody has seen these errors before? > Here is another one [ 703.025737] BUG: unable to handle kernel NULL pointer dereference at 0d68 [ 703.026008] IP: [] mlx4_en_QUERY_PORT+0xa2/0x190

[PATCH 4/4] selftests: ftrace: Output only to console with "--logdir -"

2017-07-03 Thread Masami Hiramatsu
Output logs only to console if "-" is given to --logdir option. In this case, ftracetest doesn't record any log on the disk, and all logs immediately shown (including all command logs.) Since there is no "tee" in the middle of command and console, it outputs the log really soon. This option is use

[PATCH 3/4] selftests: ftrace: Add more verbosity for immediate log

2017-07-03 Thread Masami Hiramatsu
Add 3-level verbosity for showing traced command log on console immediately. Since some test cases can cause kernel pacic if there is a probrem (like regression etc.), we can not know which command caused the problem without traced command log. This verbosity (-vvv) solves that because it shows the

Re: [PATCH v4 2/3] arm64: kvm: route synchronous external abort exceptions to el2

2017-07-03 Thread gengdongjiu
Hi Christoffer, On 2017/7/3 16:23, Christoffer Dall wrote: > On Tue, Jun 27, 2017 at 08:15:49PM +0800, gengdongjiu wrote: >> correct the commit message: >> >> In the firmware-first RAS solution, OS receives an synchronous >> external abort, then trapped to EL3 by SCR_EL3.EA. Firmware inspects >>

[PATCH 3/9] net, ipv6: convert inet6_ifaddr.refcnt from atomic_t to refcount_t

2017-07-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 2/4] selftests: ftrace: Add --fail-unsupported option

2017-07-03 Thread Masami Hiramatsu
Add --fail-unsupported option to fail the test result if ftracetest gets UNSUPPORTED result. UNSUPPORTED usually happens when the kernel is old (e.g. stable tree) or some kernel feature is disabled. However, if newer kernel has any bug or regression, it can make test results in UNSUPPORTED too. Th

[PATCH 4/9] net, ipv6: convert ifmcaddr6.mca_refcnt from atomic_t to refcount_t

2017-07-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 8/9] net, ipv4: convert cipso_v4_doi.refcount from atomic_t to refcount_t

2017-07-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 0/4] selftests: ftrace: ftracetest improvements

2017-07-03 Thread Masami Hiramatsu
Hello, Here is v2 of ftracetest improvements, including test return code change and immediate logging features. The first version is here. https://patchwork.kernel.org/patch/9821943/ https://patchwork.kernel.org/patch/9821945/ This version adds 2 patches according discussions on previous version

[PATCH 1/4] selftests: ftrace: Do not failure if there is unsupported tests

2017-07-03 Thread Masami Hiramatsu
Do not return failure exit code (1) for unsupported testcases, since it is expected for stable kernels. Previously, ftracetest is expected to run only on current release for avoiding regressions. However, nowadays we run it on stable kernels. This means some test cases must return unsupported resu

[PATCH 7/9] net, ipv6: convert ip6addrlbl_entry.refcnt from atomic_t to refcount_t

2017-07-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 9/9] net, ipv4: convert fib_info.fib_clntref from atomic_t to refcount_t

2017-07-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 6/9] net, ipv6: convert xfrm6_tunnel_spi.refcnt from atomic_t to refcount_t

2017-07-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 0/9] v2 ipv4/ipv6 refcount conversions

2017-07-03 Thread Elena Reshetova
Changes in v2: * rebase on top of net-next * currently by default refcount_t = atomic_t (*) and uses all atomic standard operations unless CONFIG_REFCOUNT_FULL is enabled. This is a compromise for the systems that are critical on performance (such as net) and cannot accept even slight d

[PATCH 5/9] net, ipv6: convert ifacaddr6.aca_refcnt from atomic_t to refcount_t

2017-07-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 1/9] net, ipv6: convert ipv6_txoptions.refcnt from atomic_t to refcount_t

2017-07-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 2/9] net, ipv6: convert inet6_dev.refcnt from atomic_t to refcount_t

2017-07-03 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: [PATCH v3] acpi: configfs: Unload SSDT on configfs entry removal

2017-07-03 Thread Jan Kiszka
On 2017-06-09 20:36, Jan Kiszka wrote: > Call directly into acpica to load a table to obtain its index on return. > We choose the direct call of acpica internal functions to avoid having > to modify its API which is used outside of Linux as well. > > Use that index to unload the table again when t

Re: [PATCH 06/14] qcom: mtd: nand: add bam dma descriptor handling

2017-07-03 Thread Archit Taneja
On 06/29/2017 12:45 PM, Abhishek Sahu wrote: 1. prepare_bam_async_desc is the function which will call all the DMA API’s. It will fetch the outstanding scatter gather list for passed channel and will do the DMA descriptor formation. The DMA flag is dependent upon the type of channel

[PATCH 2/6] Staging: rtl8712 : os_intfs.c: use octal permission representation

2017-07-03 Thread Jaya Durga
Fix checkpatch.pl Warning: Symbolic permissions 'S_IRUGO | S_IWUSR' are not preferred. Consider using octal permissions '0644'. Signed-off-by: Jaya Durga --- drivers/staging/rtl8712/os_intfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/os_intfs.c

[PATCH] drm/i915: Fix an error hanfling path in 'i915_gem_do_execbuffer'

2017-07-03 Thread Christophe JAILLET
if 'eb_create()' fails, we must release some resources as done in all other error handling paths of this function. Signed-off-by: Christophe JAILLET --- This patch is just a guess based on surrounding gotos and function names. (i.e. 'get_unused_fd_flags()' and 'put_unused_fd()') --- drivers/gpu/

[PATCH] mux: remove the Kconfig question for the subsystem

2017-07-03 Thread Peter Rosin
The MULTIPLEXER question in the Kconfig might be confusing and is of dubious value. Remove it. This makes consumers responsible for selecting MULTIPLEXER, which they already do. Signed-off-by: Peter Rosin --- drivers/mux/Kconfig | 15 +++ 1 file changed, 3 insertions(+), 12 deletions

Re: [PATCH v2] ext4: have ext4_xattr_set_handle() allocate journal credits

2017-07-03 Thread Theodore Ts'o
On Fri, Jun 30, 2017 at 12:36:51PM -0700, Tahsin Erdogan wrote: > > One problem with this approach is that restarting the transaction handle > > will > > make the xattr update non-atomic, which could be a real problem for some > > workloads. For example, ACLs or SELinux or fscrypt xattrs being ad

linux-next: Tree for Jul 4

2017-07-03 Thread Stephen Rothwell
Hi all, Please do not add any v4.14 material to you linux-next included branches until after v4.13-rc1 has been released. Changes since 20170703: The sound-asoc tree lost its build failure. The spi tree lost its build failure. Non-merge commits (relative to Linus' tree): 10374 9398

Re: [PATCH v2 09/19] media: camms: Add core files

2017-07-03 Thread Sakari Ailus
Hi Todor, On Mon, Jul 03, 2017 at 05:03:40PM +0300, Todor Tomov wrote: > >> + unsigned int i; > >> + > >> + v4l2_of_parse_endpoint(node, &vep); > >> + > >> + csd->interface.csiphy_id = vep.base.port; > >> + > >> + mipi_csi2 = &vep.bus.mipi_csi2; > >> + lncfg->clk.pos = mipi_csi2->clock_lane;

Re: [Xen-devel] [PATCH] xen/balloon: don't online new memory initially

2017-07-03 Thread Juergen Gross
On 03/07/17 20:44, Igor Druzhinin wrote: > On 03/07/17 16:40, Juergen Gross wrote: >> When setting up the Xenstore watch for the memory target size the new >> watch will fire at once. Don't try to reach the configured target size >> by onlining new memory in this case, as the current memory size wi

Re: 'skb' buffer address information leakage

2017-07-03 Thread Jakub Kicinski
On Tue, 4 Jul 2017 13:12:18 +0800, Dison River wrote: > drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c:167 > seq_printf(file, " frag=%p", skb); FWIW that's actually not a skb pointer. The structure is defined like this: struct nfp_net_tx_buf { union { stru

Re: [RFC][PATCHv3 2/5] printk: introduce printing kernel thread

2017-07-03 Thread Sergey Senozhatsky
On (07/03/17 15:34), Steven Rostedt wrote: > > +#define PRINTK_FLOOD_DEFAULT_DELAY 10 > > + > > int printk_delay_msec __read_mostly; > > > > +static inline void __printk_delay(int m) > > +{ > > + while (m--) { > > + mdelay(1); > > + touch_nmi_watchdog(); > > + } > > +} >

Re: [PATCH] media: vb2 dma-sg: Constify dma_buf_ops structures.

2017-07-03 Thread Marek Szyprowski
Hi Arvind, On 2017-07-01 14:18, Arvind Yadav wrote: dma_buf_ops are not supposed to change at runtime. All functions working with dma_buf_ops provided by work with const dma_buf_ops. So mark the non-const structs as const. File size before: text data bss dec hex filen

Re: "mm: use early_pfn_to_nid in page_ext_init" broken on some configurations?

2017-07-03 Thread Joonsoo Kim
On Mon, Jul 03, 2017 at 04:18:01PM +0200, Vlastimil Babka wrote: > On 07/03/2017 01:48 PM, Vlastimil Babka wrote: > > On 06/30/2017 04:18 PM, Michal Hocko wrote: > >> fe53ca54270a ("mm: use early_pfn_to_nid in page_ext_init") seem > >> to silently depend on CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID resp. >

Re: [PATCH] media: vb2 vmalloc: Constify dma_buf_ops structures.

2017-07-03 Thread Marek Szyprowski
Hi Arvind, On 2017-07-01 13:37, Arvind Yadav wrote: dma_buf_ops are not supposed to change at runtime. All functions working with dma_buf_ops provided by work with const dma_buf_ops. So mark the non-const structs as const. File size before: text data bss dec hex filen

Re: [PATCH] media: vb2 dma-contig: Constify dma_buf_ops structures.

2017-07-03 Thread Marek Szyprowski
Hi Arvind, On 2017-07-01 13:27, Arvind Yadav wrote: dma_buf_ops are not supposed to change at runtime. All functions working with dma_buf_ops provided by work with const dma_buf_ops. So mark the non-const structs as const. File size before: text data bss dec hex filen

Re: "mm: use early_pfn_to_nid in page_ext_init" broken on some configurations?

2017-07-03 Thread Joonsoo Kim
On Mon, Jul 03, 2017 at 01:48:05PM +0200, Vlastimil Babka wrote: > On 06/30/2017 04:18 PM, Michal Hocko wrote: > > fe53ca54270a ("mm: use early_pfn_to_nid in page_ext_init") seem > > to silently depend on CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID resp. > > CONFIG_HAVE_MEMBLOCK_NODE_MAP. early_pfn_to_nid is

Re: "mm: use early_pfn_to_nid in page_ext_init" broken on some configurations?

2017-07-03 Thread Joonsoo Kim
On Fri, Jun 30, 2017 at 05:44:16PM +0200, Michal Hocko wrote: > On Fri 30-06-17 17:42:24, Michal Hocko wrote: > [...] > > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > > index 16532fa0bb64..894697c1e6f5 100644 > > --- a/include/linux/mmzone.h > > +++ b/include/linux/mmzone.h > > @@

'skb' buffer address information leakage

2017-07-03 Thread Dison River
Hi all: I'd found several address leaks of "skb" buffer.When i have a arbitrary address write vulnerability in kernel(enabled kASLR),I can use skb's address find sk_destruct's address and overwrite it. And then,invoke close(sock_fd) function can trigger the shellcode(sk_destruct func). In kernel 4

Re: [GIT PULL] Char/Misc driver patches for 4.13-rc1

2017-07-03 Thread Linus Torvalds
On Mon, Jul 3, 2017 at 8:00 AM, Greg KH wrote: > > Peter Rosin (11): > mux: minimal mux subsystem Hmm. The MULTIPLEXER question in the Kconfig strikes me as confusing and of dubious value. Can we please get rid of questions that people have basically an impossible time answering, and inste

Re: [PATCH v4 3/3] arm64: kvm: inject SError with user space specified syndrome

2017-07-03 Thread gengdongjiu
Hi Christoffer, thanks for the review. On 2017/7/3 16:39, Christoffer Dall wrote: > Hi Dongjiu, > > On Mon, Jun 26, 2017 at 08:46:39PM +0800, Dongjiu Geng wrote: >> when SError happen, kvm notifies user space to record the CPER, >> user space specifies and passes the contents of ESR_EL1 on tak

Re: [PULL] Docs for 4.13

2017-07-03 Thread Linus Torvalds
On Mon, Jul 3, 2017 at 6:20 AM, Jonathan Corbet wrote: >You'll also encounter more than the usual number of conflicts, which >is saying something. Hmm. I fixed the ones that were actual data conflicts, but I think there ends up being several things that are just stale or didn't ge

Commit edf064e7c (btrfs: nowait aio support) breaks shells

2017-07-03 Thread Markus Trippelsdorf
commit edf064e7c6fec3646b06c944a8e35d1a3de5c2c3 (HEAD, refs/bisect/bad) Author: Goldwyn Rodrigues Date: Tue Jun 20 07:05:49 2017 -0500 btrfs: nowait aio support apparently breaks several shell related features on my system. In zsh history stopped working, because no new entries are added a

Re: [PATCH] ext4: fix __ext4_xattr_set_credits()

2017-07-03 Thread Theodore Ts'o
On Wed, Jun 28, 2017 at 02:47:50PM -0700, Tahsin Erdogan wrote: > __ext4_xattr_set_credits() calculates journal credits needed for a > set xattr operation. Currently, credits needed for quota updates are > added only if ea_inode feature is enabled which is wrong. Fix this by > moving quota related

[PATCH] char: ipmi: eliminate misleading print info when being probed via ACPI

2017-07-03 Thread Hanjun Guo
From: Hanjun Guo When ipmi is probed via ACPI, the boot log shows [ 17.945139] ipmi_si IPI0001:00: probing via device tree [ 17.950369] ipmi_si IPI0001:00: ipmi_si: probing via ACPI [ 17.955795] ipmi_si IPI0001:00: [io 0x00e4-0x3fff] regsize 1 spacing 1 irq 0 [ 17.962932] ipmi_si: Addin

Re: [PATCH] ext4: fast symlink test should not rely on i_blocks

2017-07-03 Thread Theodore Ts'o
On Wed, Jun 28, 2017 at 10:53:31AM -0600, Andreas Dilger wrote: > > > On Jun 27, 2017, at 6:34 PM, Tahsin Erdogan wrote: > > > > ext4_inode_info->i_data is the storage area for 4 types of data: > > > > a) Extents data > > b) Inline data > > c) Block map > > d) Fast symlink data (symlink len

Re: [PATCH] fs: ext4: inode->i_generation not assigned 0.

2017-07-03 Thread Darrick J. Wong
On Thu, Jun 29, 2017 at 02:50:22PM -0400, J. Bruce Fields wrote: > On Thu, Jun 29, 2017 at 02:30:53PM -0400, J. Bruce Fields wrote: > > On Thu, Jun 29, 2017 at 10:25:28AM -0700, Darrick J. Wong wrote: > > > Was there ever a version of NFS (or more generally callers of the > > > exportfs code) that

[PATCH] gpio: drop unnecessary includes from include/linux/gpio/driver.h

2017-07-03 Thread Masahiro Yamada
Some of include directives in include/linux/gpio/driver.h are unneeded because the header does not need to know the content of struct device, irq_chip, etc. Just declare they are structures. On the other hand, and turned out to be necessary for irq_flow_handler_t and spinlock_t, respectively.

[PATCH] gpio: add COMPILE_TEST to several drivers

2017-07-03 Thread Masahiro Yamada
These drivers are actually platform-agnostic. Add COMPILE_TEST for the compilation test coverage. Signed-off-by: Masahiro Yamada --- drivers/gpio/Kconfig | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig ind

Re: [PATCH] x86/platform/uv/BAU: minor cleanup, make some local functions static

2017-07-03 Thread Dou Liyang
Hi Colin, At 07/03/2017 10:22 PM, Colin King wrote: From: Colin Ian King Functions normal_busy, handle_uv2_busy, uv_flush_send_and_wait and find_another_by_swack are local to the source, so make them static Fixes various smatch warnings, such as: "symbol 'find_another_by_swack' was not declar

Re: [PATCH v1 1/1] usb:xhci: update condition to select bus->sysdev from parent device

2017-07-03 Thread Thang Q. Nguyen
On Tue, Jun 6, 2017 at 2:11 PM, Thang Q. Nguyen wrote: > For commit 4c39d4b949d3 ("usb: xhci: use bus->sysdev for DMA > configuration"), sysdev points to devices known to the system firmware > or hardware for DMA parameters. > However, the parent of the system firmware/hardware device checking > l

Re: [PATCH v5 3/5] mtd: handle partitioning on devices with 0 erasesize

2017-07-03 Thread Chris Packham
Hi, On 02/06/17 15:21, Chris Packham wrote: > erasesize is meaningful for flash devices but for SRAM there is no > concept of an erase block so erasesize is set to 0. When partitioning > these devices instead of ensuring partitions fall on erasesize > boundaries we ensure they fall on writesize bo

Re: [PATCH v2 0/7] KVM: MMU: fast write protect

2017-07-03 Thread Xiao Guangrong
On 07/03/2017 11:47 PM, Paolo Bonzini wrote: On 03/07/2017 16:39, Xiao Guangrong wrote: On 06/20/2017 05:15 PM, guangrong.x...@gmail.com wrote: From: Xiao Guangrong Changelog in v2: thanks to Paolo's review, this version disables write-protect-all if PML is supported Hi Paolo, Do you

[PATCH] net: ethernet: mediatek: fixed deadlock captured by lockdep

2017-07-03 Thread sean.wang
From: Sean Wang Lockdep found an inconsistent lock state when mtk_get_stats64 is called in user context while NAPI updates MAC statistics in softirq. Use spin_trylock_bh/spin_unlock_bh fix following lockdep warning. [ 81.321030] WARNING: inconsistent lock state [ 81.325266] 4.12.0-rc1-00035

Re: [1/3] cpuidle: powerpc: cpuidle set polling before enabling irqs

2017-07-03 Thread Michael Ellerman
"Rafael J. Wysocki" writes: > On Fri, Jun 30, 2017 at 5:45 AM, Michael Ellerman wrote: >> "Rafael J. Wysocki" writes: >> >>> On Thu, Jun 29, 2017 at 2:21 PM, Michael Ellerman >>> wrote: On Wed, 2017-06-14 at 13:02:39 UTC, Nicholas Piggin wrote: > local_irq_enable can cause interrupts

Re: [PATCH 2/2] x86/idle: use dynamic halt poll

2017-07-03 Thread Yang Zhang
On 2017/7/3 18:06, Thomas Gleixner wrote: On Mon, 3 Jul 2017, Yang Zhang wrote: The background is that we(Alibaba Cloud) do get more and more complaints from our customers in both KVM and Xen compare to bare-mental.After investigations, the root cause is known to us: big cost in message passing

[PATCH] MAINTAINERS:add maintainer for kirin pcie

2017-07-03 Thread Xiaowei Song
Kirin PCIe Driver does not have a maintainer at present, Add maintainers for kirin pcie driver and Doc, the two fellowing files. Documentation/devicetree/bindings/pci/pcie-kirin.txt drivers/pci/dwc/pcie-kirin.c Signed-off-by: Xiaowei Song Cc: Guodong Xu --- MAINTAINERS | 8 1 file cha

[PATCH] MAINTAINERS:add maintainer for kirin pcie

2017-07-03 Thread Xiaowei Song
Kirin PCIe Driver does not have a maintainer at present, Add maintainers for kirin pcie driver and Doc, the two fellowing files. Documentation/devicetree/bindings/pci/pcie-kirin.txt drivers/pci/dwc/pcie-kirin.c Signed-off-by: Xiaowei Song Cc: Guodong Xu --- MAINTAINERS | 8 1 file cha

Re: [PATCH v11 0/3]add PCIe driver for Kirin PCIe

2017-07-03 Thread Guodong Xu
On Mon, Jul 3, 2017 at 9:32 PM, Wei Xu wrote: > Hi Guodong, > > On 2017/7/3 14:04, Guodong Xu wrote: >> Hi, Xu Wei >> >> >> >> On Mon, Jul 3, 2017 at 6:47 PM, Will Deacon wrote: >>> On Sun, Jul 02, 2017 at 06:36:57PM -0500, Bjorn Helgaas wrote: [+cc Catalin, Will, linux-arm-kernel]

Re: [PATCH v4] PCI: Workaround wrong flags completions for IDT switch

2017-07-03 Thread Ethan Zhao
James, On Tue, Jul 4, 2017 at 2:17 AM, james puthukattukaran wrote: > > Ethan - > > > On 7/2/2017 9:55 PM, Ethan Zhao wrote: >> >> James, >> >> On Wed, Jun 28, 2017 at 5:42 AM, James Puthukattukaran >> wrote: >>> >>> From: James Puthukattukaran >>> >>> The IDT switch incorrectly flags an ACS so

Re: [PATCH v3 1/2] acpi: thermal: initialize tz_enabled to 1

2017-07-03 Thread Zhang Rui
On Mon, 2017-07-03 at 23:08 +0200, Rafael J. Wysocki wrote: > On Mon, Jul 3, 2017 at 10:00 AM, Enric Balletbo i Serra > wrote: > > > > From: Sameer Nanda > > > > In the acpi_thermal_add path, acpi_thermal_get_info gets called > > before > > acpi_thermal_register_thermal_zone.  Since tz_enabled

Re: [GIT PULL] Char/Misc driver patches for 4.13-rc1

2017-07-03 Thread Stephen Rothwell
Hi all, On Mon, 3 Jul 2017 17:00:30 +0200 Greg KH wrote: > > All of these have been in linux-next for a while with the only reported > issue being a merge problem with this tree and the jc-docs tree in the > w1 documentation area. The fix should be obvious for what to do when it > happens, if no

Re: [GIT PULL] USB/PHY patches for 4.13-rc1

2017-07-03 Thread Stephen Rothwell
Hi all, On Mon, 3 Jul 2017 16:58:47 +0200 Greg KH wrote: > > All of these have been in linux-next for a while with no reported > issues. I have been carrying the following merge fix patch for the merge against the uuid tree (now in Linus' tree): From: Stephen Rothwell Date: Thu, 29 Jun 2017 14

RE: [PATCH v1] vfio: ABI for mdev display dma-buf operation

2017-07-03 Thread Zhang, Tina
> -Original Message- > From: Zhang, Tina > Sent: Tuesday, July 4, 2017 9:04 AM > To: alex.william...@redhat.com; kra...@redhat.com; ch...@chris-wilson.co.uk; > zhen...@linux.intel.com; Lv, Zhiyuan ; Wang, Zhi A > ; Tian, Kevin ; dan...@ffwll.ch; > kwankh...@nvidia.com > Cc: Zhang, Tina ;

Re: [PATCH mm] introduce reverse buddy concept to reduce buddy fragment

2017-07-03 Thread zhouxianrong
the test was done as follows: 1. the environment is android 7.0 and kernel is 4.1 and managed memory is 3.5GB 2. every 4s startup one apk, total 100 more apks need to startup 3. after finishing step 2, sample buddyinfo once and get the result On 2017/7/3 23:33, Michal Hocko wrote: On Mon 03-07-

[PATCH v1] vfio: ABI for mdev display dma-buf operation

2017-07-03 Thread Tina Zhang
Add VFIO_DEVICE_QUERY_GFX_PLANE ioctl command to let user mode query and get the plan and its related information. The dma-buf's life cycle is handled by user mode and tracked by kernel. The returned fd in struct vfio_device_query_gfx_plane can be a new fd or an old fd of a re-exported dma-buf. Ho

Re: [GIT pull] x86/timers updates for 4.13

2017-07-03 Thread Linus Torvalds
On Mon, Jul 3, 2017 at 1:20 AM, Thomas Gleixner wrote: > > This update contains: > >- The final solution for the TSC deadline timer borkage, which is caused > by a hardware problem in the TSC_ADJUST/TSC_DEADLINE_TIMER logic. > > The problem is documented now fixed with a microcode up

Re: [PATCH RFC 08/26] locking: Remove spin_unlock_wait() generic definitions

2017-07-03 Thread Paul E. McKenney
On Mon, Jul 03, 2017 at 05:39:36PM -0700, Paul E. McKenney wrote: > On Mon, Jul 03, 2017 at 03:49:42PM -0700, Linus Torvalds wrote: > > On Mon, Jul 3, 2017 at 3:30 PM, Paul E. McKenney > > wrote: > > > > > > That certainly is one interesting function, isn't it? I wonder what > > > happens if you

Re: [PATCH v2 2/2] thermal: uniphier: add UniPhier thermal driver

2017-07-03 Thread Kunihiko Hayashi
Hi Eduardo, Thank you for your comment. On Fri, 30 Jun 2017 20:16:33 -0700 wrote: > Hey, > > On Wed, Jun 28, 2017 at 07:11:59PM +0900, Kunihiko Hayashi wrote: > > Add a thermal driver for on-chip PVT (Process, Voltage and Temperature) > > monitoring unit implemented on UniPhier SoCs. This drive

RE: [Intel-gfx] [PATCH v9 5/7] vfio: Define vfio based dma-buf operations

2017-07-03 Thread Zhang, Tina
> -Original Message- > From: intel-gvt-dev [mailto:intel-gvt-dev-boun...@lists.freedesktop.org] On > Behalf Of Daniel Vetter > Sent: Thursday, June 29, 2017 4:39 PM > To: Gerd Hoffmann > Cc: Wang, Zhenyu Z ; intel- > g...@lists.freedesktop.org; linux-kernel@vger.kernel.org; Chen, Xiaoguan

Re: [PATCH 2/3] mtd: spi-nor: core code for the Altera Quadspi Flash Controller v2

2017-07-03 Thread Cyrille Pitchen
Hi Matthew, Le 26/06/2017 à 18:13, matthew.gerl...@linux.intel.com a écrit : > From: Matthew Gerlach > > Signed-off-by: Matthew Gerlach > --- > MAINTAINERS | 7 + > drivers/mtd/spi-nor/Kconfig | 5 + > drivers/mtd/spi-nor/Makefile | 4 +- > driv

Re: [PATCH RFC 08/26] locking: Remove spin_unlock_wait() generic definitions

2017-07-03 Thread Paul E. McKenney
On Mon, Jul 03, 2017 at 03:49:42PM -0700, Linus Torvalds wrote: > On Mon, Jul 3, 2017 at 3:30 PM, Paul E. McKenney > wrote: > > > > That certainly is one interesting function, isn't it? I wonder what > > happens if you replace the raw_spin_is_locked() calls with an > > unlock under a trylock chec

Re: [PATCH 1/2] selftests: ftrace: Do not failure if there is unsupported tests

2017-07-03 Thread Masami Hiramatsu
On Mon, 3 Jul 2017 11:59:06 -0400 Steven Rostedt wrote: > On Tue, 4 Jul 2017 00:52:32 +0900 > Masami Hiramatsu wrote: > > > > > > > > Can we add an option in kselftest, or to ftracetest that decides if > > > unsupported is a failure or not? Otherwise I can not ack this patch. > > > > I woul

Re: [PATCH] aic7xxx: fix firmware build with O=path

2017-07-03 Thread Jakub Kicinski
On Wed, 28 Jun 2017 21:17:16 -0700, Jakub Kicinski wrote: > Building firmware with O=path was apparently broken in aic7 for ever. > Message of the previous commit to the Makefile (from 2008) mentions > this unfortunate state of affairs already. Fix this, mostly to make > randconfig builds more rel

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-07-03 Thread Andy Lutomirski
On Mon, Jul 3, 2017 at 4:55 PM, Ben Hutchings wrote: > On Wed, 2017-06-21 at 11:47 +0100, Ben Hutchings wrote: >> On Wed, 2017-06-21 at 11:24 +0200, Michal Hocko wrote: >> > On Wed 21-06-17 02:38:21, Ben Hutchings wrote: >> > > On Mon, 2017-06-19 at 16:23 +0200, Willy Tarreau wrote: >> > > > On Mo

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-07-03 Thread Linus Torvalds
On Mon, Jul 3, 2017 at 4:55 PM, Ben Hutchings wrote: > > Firstly, some Rust programs are crashing on ppc64el with 64 KiB pages. > Apparently Rust maps its own guard page at the lower limit of the stack > (determined using pthread_getattr_np() and pthread_attr_getstack()). I > don't think this eve

Re: [GIT pull] irq updates for 4.13

2017-07-03 Thread Linus Torvalds
On Mon, Jul 3, 2017 at 12:42 AM, Thomas Gleixner wrote: > > please pull the latest irq-core-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > irq-core-for-linus Ugh, this caused conflicts with the block tree, with commits - fe631457ff3e: "blk-mq: map a

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-07-03 Thread Ben Hutchings
On Wed, 2017-06-21 at 11:47 +0100, Ben Hutchings wrote: > On Wed, 2017-06-21 at 11:24 +0200, Michal Hocko wrote: > > On Wed 21-06-17 02:38:21, Ben Hutchings wrote: > > > On Mon, 2017-06-19 at 16:23 +0200, Willy Tarreau wrote: > > > > On Mon, Jun 19, 2017 at 08:44:24PM +0800, Linus Torvalds wrote: >

Re: [PATCH 1/5] mm/persistent-memory: match IORES_DESC name and enum memory_type one

2017-07-03 Thread Dan Williams
On Mon, Jul 3, 2017 at 2:14 PM, Jérôme Glisse wrote: > Use consistent name between IORES_DESC and enum memory_type, rename > MEMORY_DEVICE_PUBLIC to MEMORY_DEVICE_PERSISTENT. This is to free up > the public name for CDM (cache coherent device memory) for which the > term public is a better match.

linux-next: btrfs merge resolution

2017-07-03 Thread Stephen Rothwell
Hi all, Since the block tree has been merged into Linus' tree, here is the merge resolution from my merge of the btrfs-kdave tree today: 36c639d65d6a6e596d73ccf285adf9fffc9097b8 diff --cc fs/btrfs/disk-io.c index 6036d15b47b8,b6758892874f..7065201bedcf --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk

Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-03 Thread Andrea Arcangeli
Hello, On Mon, Jul 03, 2017 at 10:48:03AM +0200, Alexander Graf wrote: > On 07/03/2017 10:03 AM, Christoffer Dall wrote: > > Hi Alex, > > > > On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: > >> If we want to age an HVA while the VM is getting destroyed, we have a > >> tiny race wi

[GIT PULL] security subsystem updates for v4.13

2017-07-03 Thread James Morris
Hi Linus, - This update includes a major update for AppArmor. From JJ: " * several bug fixes and cleanups * the patch to add symlink support to securityfs that was floated on the list earlier and the apparmorfs changes that make use of securityfs symlinks * it introduces the domain l

[PATCH] staging: comedi: Use offset_in_page macro

2017-07-03 Thread Amitoj Kaur Chawla
Use offset_in_page macro instead of (var & ~PAGE_MASK) The Coccinelle semantic patch used to make this change is as follows: // @@ unsigned long p; @@ - p & ~PAGE_MASK + offset_in_page(p) // Signed-off-by: Amitoj Kaur Chawla --- drivers/staging/comedi/comedi_buf.c | 2 +- 1 file changed, 1 in

[PATCH] f2fs: avoid migratepage for atomic written page

2017-07-03 Thread Jaegeuk Kim
In order to avoid lock contention for atomic written pages, we'd better give EAGAIN in f2fs_migrate_page. We expect it will be released soon as transaction commits. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 35 ++- 1 file changed, 10 insertions(+), 25 deleti

Re: [PATCH 8/9] RISC-V: User-facing API

2017-07-03 Thread James Hogan
On Thu, Jun 29, 2017 at 02:42:38PM -0700, Palmer Dabbelt wrote: > On Wed, 28 Jun 2017 15:42:37 PDT (-0700), james.ho...@imgtec.com wrote: > > On Wed, Jun 28, 2017 at 11:55:37AM -0700, Palmer Dabbelt wrote: > >> diff --git a/arch/riscv/include/uapi/asm/ucontext.h > >> b/arch/riscv/include/uapi/asm/

Re: [PATCH] vmalloc: respect the GFP_NOIO and GFP_NOFS flags

2017-07-03 Thread Mikulas Patocka
On Mon, 3 Jul 2017, Michal Hocko wrote: > We can add a warning (or move it from kvmalloc) and hope that the > respective maintainers will fix those places properly. The reason I > didn't add the warning to vmalloc and kept it in kvmalloc was to catch > only new users rather than suddenly splat o

Re: [PATCH BUGFIX] block, bfq: fix bug causing crashes

2017-07-03 Thread Jens Axboe
On 07/03/2017 02:00 AM, Paolo Valente wrote: > Hi Jens, > I'm writing this short cover letter to hopefully help you decide what > to do with this patch, in this late phase of the development > cycle. This patch fixes a bug causing kernel crashes for at least > one year. Crashes apparently affect on

Re: [PATCH RFC 08/26] locking: Remove spin_unlock_wait() generic definitions

2017-07-03 Thread Linus Torvalds
On Mon, Jul 3, 2017 at 3:30 PM, Paul E. McKenney wrote: > > That certainly is one interesting function, isn't it? I wonder what > happens if you replace the raw_spin_is_locked() calls with an > unlock under a trylock check? ;-) Deadlock due to interrupts again? Didn't your spin_unlock_wait() p

Re: [GIT PULL] s390 patches for 4.13 merge window

2017-07-03 Thread Linus Torvalds
On Mon, Jul 3, 2017 at 2:01 AM, Martin Schwidefsky wrote: > > please pull from the 'for-linus' branch of > > git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus So my conflict resolution looks different from the one Stephen posted, which may be due to various reasons, r

Dear Beloved

2017-07-03 Thread Mrs marios
-- Dear Beloved Friend, I am Mrs Nicole Benoite Marois and I have been suffering from ovarian cancer disease and the doctor says that i have just few weeks to leave. I am from (Paris) France but based in Benin republic since eleven years ago as a business woman dealing with gold exportation

Re: [PATCH RFC 08/26] locking: Remove spin_unlock_wait() generic definitions

2017-07-03 Thread Paul E. McKenney
On Mon, Jul 03, 2017 at 06:13:38PM +0100, Will Deacon wrote: > On Mon, Jul 03, 2017 at 09:40:22AM -0700, Linus Torvalds wrote: > > On Mon, Jul 3, 2017 at 9:18 AM, Paul E. McKenney > > wrote: > > > > > > Agreed, and my next step is to look at spin_lock() followed by > > > spin_is_locked(), not nece

[GIT PULL] Audit patches for v4.13

2017-07-03 Thread Paul Moore
Hi Linus, Things are relatively quiet on the audit front for v4.13, just five patches for a total diffstat of 102 lines. There are two patches from Richard to consistently record the POSIX capabilities and add the ambient capability information as well. I also chipped in two patches to fix a rac

Re: [RFC/RFT PATCH 2/4] net: ethernat: ti: cpts: enable irq

2017-07-03 Thread Ivan Khoronzhuk
On Mon, Jul 03, 2017 at 02:31:06PM -0500, Grygorii Strashko wrote: > > > On 06/30/2017 08:31 PM, Ivan Khoronzhuk wrote: > > On Tue, Jun 13, 2017 at 06:16:21PM -0500, Grygorii Strashko wrote: > >> There are two reasons for this change: > >> 1) enabling of HW_TS_PUSH events as suggested by Richard

Re: [GIT PULL] x86/asm changes for v4.13

2017-07-03 Thread Ingo Molnar
* Linus Torvalds wrote: > On Mon, Jul 3, 2017 at 1:50 AM, Ingo Molnar wrote: > > > > A single commit micro-optimizing short string copies on certain Intel CPUs. > > That's slightly misleading - it's not string copies, it's just regular > user copies using the "fast string" interface. Indeed!

[GIT PULL] ACPI updates for v4.13-rc1

2017-07-03 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.13-rc1 with top-most commit 03471c06d02f80f9338a5df45f2a92ef38ca1233 Merge branches 'acpi-ec' and 'acpi-video' on top of commit c0bc126f97fb929b3ae02c1c62322645d70eb408 Linux 4.12

  1   2   3   4   5   6   7   8   9   10   >