[PATCH v3 1/4] dt-bindings: arm: Add bindings for Mediatek MT8183 SoC Platform

2018-05-16 Thread Erin Lo
This adds dt-binding documentation of cpu for Mediatek MT8183. Signed-off-by: Erin Lo --- Documentation/devicetree/bindings/arm/mediatek.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b/Documentation/devicetree/bindings/arm/mediate

Re: [PATCH] PCI: Clean up resource allocation in devm_of_pci_get_host_bridge_resources()

2018-05-16 Thread Vladimir Zapolskiy
On 05/16/2018 03:31 PM, Jan Kiszka wrote: > Instead of first allocating and then freeing memory for struct resource > in case we cannot parse a PCI resource from the device tree, work > against a local struct and kmemdup it when we decide to go with it. > > Suggested-by: Andy Shevchenko > Signed-

[PATCH v4 13/31] kconfig: support append assignment operator

2018-05-16 Thread Masahiro Yamada
Support += operator. This appends a space and the text on the righthand side to a variable. The timing of the evaluation of the righthand side depends on the flavor of the variable. If the lefthand side was originally defined as a simple variable, the righthand side is expanded immediately. Othe

[PATCH v4 18/31] kconfig: error out if a recursive variable references itself

2018-05-16 Thread Masahiro Yamada
When using a recursively expanded variable, it is a common mistake to make circular reference. For example, Make terminates the following code: X = $(X) Y := $(X) Let's detect the circular expansion in Kconfig, too. On the other hand, a function that recurses itself is a commonly-used progr

Re: [PATCH] mmc: block: propagate correct returned value in mmc_rpmb_ioctl

2018-05-16 Thread Shawn Lin
On 2018/5/17 14:16, Mathieu Malaterre wrote: On Thu, May 17, 2018 at 4:45 AM, Shawn Lin wrote: On 2018/5/17 3:20, Mathieu Malaterre wrote: In commit 97548575bef3 ("mmc: block: Convert RPMB to a character device") a new function `mmc_rpmb_ioctl` was added. The final return is simply returning

[PATCH v4 29/31] gcc-plugins: test plugin support in Kconfig and clean up Makefile

2018-05-16 Thread Masahiro Yamada
Run scripts/gcc-plugin.sh from Kconfig so that users can enable GCC_PLUGINS only when the compiler supports building plugins. Kconfig defines a new symbol, PLUGIN_HOSTCC. This will contain the compiler (g++ or gcc) used for building plugins, or empty if the plugin can not be supported at all. Th

Re: [PATCH v6] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-05-16 Thread Lee Jones
On Wed, 16 May 2018, Hoan Tran wrote: > Hi Phil, > > On 5/11/18, 1:31 AM, "Phil Edworthy" wrote: > > The DesignWare GPIO IP can be configured for either 1 interrupt or 1 > per GPIO in port A, but the driver currently only supports 1 interrupt. > See the DesignWare DW_apb_gpio Datab

[PATCH v4 17/31] kconfig: add 'filename' and 'lineno' built-in variables

2018-05-16 Thread Masahiro Yamada
The special variables, $(filename) and $(lineno), are expanded to a file name and its line number being parsed, respectively. Suggested-by: Randy Dunlap Signed-off-by: Masahiro Yamada --- Changes in v4: - Newly added Changes in v3: None Changes in v2: None scripts/kconfig/preprocess.c | 16

[PATCH v4 11/31] kconfig: support user-defined function and recursively expanded variable

2018-05-16 Thread Masahiro Yamada
Now, we got a basic ability to test compiler capability in Kconfig. config CC_HAS_STACKPROTECTOR def_bool $(shell, ($(CC) -Werror -fstack-protector -E -x c /dev/null -o /dev/null 2>/dev/null) && echo y || echo n) This works, but it is ugly to repeat this long boilerplate. We want to des

[PATCH v4 19/31] Documentation: kconfig: document a new Kconfig macro language

2018-05-16 Thread Masahiro Yamada
Add a document for the macro language introduced to Kconfig. The motivation of this work is to move the compiler option tests to Kconfig from Makefile. A number of kernel features require the compiler support. Enabling such features blindly in Kconfig ends up with a lot of nasty build-time testi

[PATCH v4 26/31] gcov: remove CONFIG_GCOV_FORMAT_AUTODETECT

2018-05-16 Thread Masahiro Yamada
CONFIG_GCOV_FORMAT_AUTODETECT compiles either gcc_3_4.c or gcc_4_7.c according to your GCC version. We can achieve the equivalent behavior by setting reasonable dependency with the knowledge of the compiler version. If GCC older than 4.7 is used, GCOV_FORMAT_3_4 is the default, but users are stil

[PATCH v4 15/31] kconfig: add 'info', 'warning', and 'error' built-in functions

2018-05-16 Thread Masahiro Yamada
Add 'info', 'warning', and 'error' functions as in Make. They print messages during parsing Kconfig files. 'error' will be useful to terminate the parsing immediately in fatal cases. Signed-off-by: Masahiro Yamada --- Changes in v4: - Add 'error' function Changes in v3: None Changes in v2: N

[PATCH v4 09/31] kconfig: replace $(UNAME_RELEASE) with function call

2018-05-16 Thread Masahiro Yamada
Now that 'shell' function is supported, this can be self-contained in Kconfig. Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook Reviewed-by: Ulf Magnusson --- Changes in v4: None Changes in v3: None Changes in v2: None Makefile | 3 +-- init/Kconfig | 4 ++-- 2 files changed, 3 inse

[PATCH v4 01/31] kbuild: remove kbuild cache

2018-05-16 Thread Masahiro Yamada
The kbuild cache was introduced to remember the result of shell commands, some of which are expensive to compute, such as $(call cc-option,...). However, this turned out not so clever as I had first expected. Actually, it is problematic. For example, "$(CC) -print-file-name" is cached. If the co

Re: [PATCH v4 23/31] stack-protector: test compiler capability in Kconfig and drop AUTO mode

2018-05-16 Thread Kees Cook
On Wed, May 16, 2018 at 11:17 PM, Masahiro Yamada wrote: > Move the test for -fstack-protector(-strong) option to Kconfig. > > If the compiler does not support the option, the corresponding menu > is automatically hidden. If STRONG is not supported, it will fall > back to REGULAR. If REGULAR is

[PATCH v4 03/31] kconfig: reference environment variables directly and remove 'option env='

2018-05-16 Thread Masahiro Yamada
To get access to environment variables, Kconfig needs to define a symbol using "option env=" syntax. It is tedious to add a symbol entry for each environment variable given that we need to define much more such as 'CC', 'AS', 'srctree' etc. to evaluate the compiler capability in Kconfig. Adding '

Re: [PATCH v3 4/6] ALSA: xen-front: Implement handling of shared buffers

2018-05-16 Thread Takashi Iwai
On Tue, 15 May 2018 08:02:08 +0200, Oleksandr Andrushchenko wrote: > > On 05/15/2018 09:01 AM, Takashi Iwai wrote: > > On Tue, 15 May 2018 07:46:38 +0200, > > Oleksandr Andrushchenko wrote: > >> On 05/14/2018 11:28 PM, Takashi Iwai wrote: > >>> On Mon, 14 May 2018 08:27:40 +0200, > >>> Oleksandr A

[PATCH v4 02/31] kbuild: remove CONFIG_CROSS_COMPILE support

2018-05-16 Thread Masahiro Yamada
Kbuild provides a couple of ways to specify CROSS_COMPILE: [1] Command line [2] Environment [3] arch/*/Makefile (only some architectures) [4] CONFIG_CROSS_COMPILE [4] is problematic for the compiler capability tests in Kconfig. CONFIG_CROSS_COMPILE allows users to change the compiler prefix from

[PATCH v4 07/31] kconfig: add built-in function support

2018-05-16 Thread Masahiro Yamada
This commit adds a new concept 'function' to do more text processing in Kconfig. A function call looks like this: $(function,arg1,arg2,arg3,...) This commit adds the basic infrastructure to expand functions. Change the text expansion helpers to take arguments. Signed-off-by: Masahiro Yamada

Re: [PATCH v4 30/31] gcc-plugins: allow to enable GCC_PLUGINS for COMPILE_TEST

2018-05-16 Thread Kees Cook
On Wed, May 16, 2018 at 11:17 PM, Masahiro Yamada wrote: > Now that the compiler's plugin support is checked in Kconfig, > all{yes,mod}config will not be bothered. > > Remove 'depends on !COMPILE_TEST' for GCC_PLUGINS. > > 'depends on !COMPILE_TEST' for the following three are still kept: > GCC_

[PATCH v4 10/31] kconfig: begin PARAM state only when seeing a command keyword

2018-05-16 Thread Masahiro Yamada
Currently, any statement line starts with a keyword with TF_COMMAND flag. So, the following three lines are dead code. alloc_string(yytext, yyleng); zconflval.string = text; return T_WORD; If a T_WORD token is returned in this context, it will cause syntax error in the pa

[PATCH v3 0/4] Add basic support for Mediatek MT8183 SoC

2018-05-16 Thread Erin Lo
MT8183 is a SoC based on 64bit ARMv8 architecture. It contains 4 CA53 and 4 CA73 cores. MT8183 share many HW IP with MT65xx series. This patchset was tested on MT8183 evaluation board, and boot to shell ok. This series contains document bindings, device tree including interrupt, uart. Change in v

[PATCH v4 04/31] kconfig: remove string expansion in file_lookup()

2018-05-16 Thread Masahiro Yamada
There are two callers of file_lookup(), but there is no more reason to expand the given path. [1] zconf_initscan() This is used to open the first Kconfig. sym_expand_string_value() has never been used in a useful way here; before opening the first Kconfig file, obviously there is no s

Re: [PATCH v4 06/31] kconfig: remove sym_expand_string_value()

2018-05-16 Thread Kees Cook
On Wed, May 16, 2018 at 11:16 PM, Masahiro Yamada wrote: > There is no more caller of sym_expand_string_value(). > > Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook Easy to review! :) -Kees -- Kees Cook Pixel Security

Re: [PATCH v3 2/2] dmaengine: sprd: Add Spreadtrum DMA configuration

2018-05-16 Thread Baolin Wang
On 17 May 2018 at 14:11, Vinod wrote: > On 17-05-18, 14:02, Baolin Wang wrote: >> Hi Vinod, >> >> On 17 May 2018 at 13:14, Vinod wrote: >> > On 11-05-18, 21:06, Baolin Wang wrote: >> >> +struct sprd_dma_config { >> >> + struct dma_slave_config cfg; >> >> + u32 block_len; >> >> + u32 t

[PATCH v4 06/31] kconfig: remove sym_expand_string_value()

2018-05-16 Thread Masahiro Yamada
There is no more caller of sym_expand_string_value(). Signed-off-by: Masahiro Yamada --- Changes in v4: None Changes in v3: - newly added Changes in v2: None scripts/kconfig/lkc_proto.h | 1 - scripts/kconfig/symbol.c| 53 - 2 files changed,

[PATCH v4 08/31] kconfig: add 'shell' built-in function

2018-05-16 Thread Masahiro Yamada
This accepts a single command to execute. It returns the standard output from it. [Example code] config HELLO string default "$(shell,echo hello world)" config Y def_bool $(shell,echo y) [Result] $ make -s alldefconfig && tail -n 2 .config CONFIG_HELLO="h

Re: [PATCH v4 28/31] gcc-plugins: move GCC version check for PowerPC to Kconfig

2018-05-16 Thread Kees Cook
On Wed, May 16, 2018 at 11:17 PM, Masahiro Yamada wrote: > For PowerPC, GCC 5.2 is the requirement for GCC plugins. Move the > version check to Kconfig so that the GCC plugin menus will be hidden > if an older compiler is in use. > > Signed-off-by: Masahiro Yamada > Acked-by: Andrew Donnellan

Re: [PATCH v4 29/31] gcc-plugins: test plugin support in Kconfig and clean up Makefile

2018-05-16 Thread Kees Cook
On Wed, May 16, 2018 at 11:17 PM, Masahiro Yamada wrote: > Run scripts/gcc-plugin.sh from Kconfig so that users can enable > GCC_PLUGINS only when the compiler supports building plugins. > > Kconfig defines a new symbol, PLUGIN_HOSTCC. This will contain > the compiler (g++ or gcc) used for buildi

[PATCH 2/2] perf script: Show symbol offsets by default

2018-05-16 Thread Sandipan Das
Since the ip shown for a symbol is now always a virtual address, it becomes difficult to correlate this with objdump output and determine the exact instruction address. So, we always show the offset from the start of the symbol. This can be verified on a powerpc64le system running Fedora 27 as fol

[PATCH 1/2] perf script: Show virtual addresses instead of offsets

2018-05-16 Thread Sandipan Das
When perf data is recorded with the call-graph option enabled, the callchain shown by perf script shows the binary offsets of the symbols as the ip. This is incorrect for kernel symbols as the ip values are always off by a fixed offset depending on the architecture. If the offsets from the start of

Re: [PATCH v4 27/31] kcov: test compiler capability in Kconfig and correct dependency

2018-05-16 Thread Kees Cook
On Wed, May 16, 2018 at 11:17 PM, Masahiro Yamada wrote: > As Documentation/kbuild/kconfig-language.txt notes, 'select' should be > be used with care - it forces a lower limit of another symbol, ignoring > the dependency. Currently, KCOV can select GCC_PLUGINS even if arch > does not select HAVE_

Re: [PATCH v3 4/6] ALSA: xen-front: Implement handling of shared buffers

2018-05-16 Thread Oleksandr Andrushchenko
On 05/17/2018 09:26 AM, Takashi Iwai wrote: On Tue, 15 May 2018 08:02:08 +0200, Oleksandr Andrushchenko wrote: On 05/15/2018 09:01 AM, Takashi Iwai wrote: On Tue, 15 May 2018 07:46:38 +0200, Oleksandr Andrushchenko wrote: On 05/14/2018 11:28 PM, Takashi Iwai wrote: On Mon, 14 May 2018 08:27:4

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

2018-05-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: mm/vmalloc.c between commits: fddda2b7b521 ("proc: introduce proc_create_seq{,_data}") 44414d82cfe0 ("proc: introduce proc_create_seq_private") from the vfs tree and patch: "mm: use octal not symbolic permiss

Re: [PATCH 1/5] dt-bindings: pinctrl: document the STMFX pinctrl bindings

2018-05-16 Thread Lee Jones
On Wed, 16 May 2018, Amelie DELAUNAY wrote: > > > On 05/16/2018 04:20 PM, Linus Walleij wrote: > > On Wed, May 9, 2018 at 9:56 AM, Amelie DELAUNAY > > wrote: > > > >> Indeed, stmfx has other functions than GPIO. But, after comments done > >> here: [1] and there: [2], it has been decided to mo

Re: linux-next: build warning after merge of the vfs tree

2018-05-16 Thread Christoph Hellwig
On Thu, May 17, 2018 at 10:39:32AM +1000, Stephen Rothwell wrote: > Hi Al, > > After merging the vfs tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > drivers/isdn/gigaset/capi.c:2344:14: warning: 'gigaset_procinfo' defined but > not used [-Wunused-function] > st

Re: [PATCH v4 19/31] Documentation: kconfig: document a new Kconfig macro language

2018-05-16 Thread Kees Cook
On Wed, May 16, 2018 at 11:16 PM, Masahiro Yamada wrote: > Add a document for the macro language introduced to Kconfig. > > The motivation of this work is to move the compiler option tests to > Kconfig from Makefile. A number of kernel features require the > compiler support. Enabling such featu

Re: [PATCH 11/40] ipv6/flowlabel: simplify pid namespace lookup

2018-05-16 Thread Christoph Hellwig
On Thu, May 17, 2018 at 12:28:01AM -0500, Eric W. Biederman wrote: > > struct pid_namespace *proc_pid_namespace(struct inode *inode) > > { > > // maybe warn on for s_magic not on procfs?? > > return inode->i_sb->s_fs_info; > > } > > That should work. Ideally out of line for the proc_fs.h

Re: [PATCH v4 15/31] kconfig: add 'info', 'warning', and 'error' built-in functions

2018-05-16 Thread Kees Cook
On Wed, May 16, 2018 at 11:16 PM, Masahiro Yamada wrote: > Add 'info', 'warning', and 'error' functions as in Make. > > They print messages during parsing Kconfig files. 'error' will be > useful to terminate the parsing immediately in fatal cases. > > Signed-off-by: Masahiro Yamada Reviewed-by:

RE: [RFC 2/6] dmaengine: xilinx_dma: Pass AXI4-Stream control words to netdev dma client

2018-05-16 Thread Radhey Shyam Pandey
Hi, > -Original Message- > From: Peter Ujfalusi [mailto:peter.ujfal...@ti.com] > Sent: Tuesday, April 24, 2018 3:21 PM > To: Vinod Koul > Cc: Lars-Peter Clausen ; Radhey Shyam Pandey > ; michal.si...@xilinx.com; linux- > ker...@vger.kernel.org; dmaeng...@vger.kernel.org; > dan.j.willi...@

Re: [PATCH v4 17/31] kconfig: add 'filename' and 'lineno' built-in variables

2018-05-16 Thread Kees Cook
On Wed, May 16, 2018 at 11:16 PM, Masahiro Yamada wrote: > The special variables, $(filename) and $(lineno), are expanded to a > file name and its line number being parsed, respectively. > > Suggested-by: Randy Dunlap > Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook -Kees > --- > > Ch

Re: [PATCH v2] mm: save two stranding bit in gfp_mask

2018-05-16 Thread Vlastimil Babka
On 05/16/2018 11:14 PM, Shakeel Butt wrote: > ___GFP_COLD and ___GFP_OTHER_NODE were removed but their bits were > stranded. Fill the gaps by moving the existing gfp masks around. > > Signed-off-by: Shakeel Butt > Suggested-by: Vlastimil Babka > Acked-by: Michal Hocko Yeah that's much smaller,

Re: [RFC PATCH] UAPI: Document auxvec AT_* namespace policy and note reservations

2018-05-16 Thread Michael Ellerman
Dave Martin writes: > There are constraints on defining AT_* auxvec tags that are not > obvious to the casual maintainer of either the global > or the arch-specific headers. This is likely > to lead to mistakes. (I certainly fell foul of it...) Thanks for cleaning this up. It looks like us (

Re: [PATCH v4 20/31] kconfig: test: add Kconfig macro language tests

2018-05-16 Thread Kees Cook
On Wed, May 16, 2018 at 11:16 PM, Masahiro Yamada wrote: > Here are the test cases I used for developing the text expansion > feature. > > Signed-off-by: Masahiro Yamada Should these be tied to the global Makefile or selftests in any way? -Kees -- Kees Cook Pixel Security

Re: [PATCH v5] xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE

2018-05-16 Thread Juergen Gross
On 09/05/18 15:16, Paul Durrant wrote: > My recent Xen patch series introduces a new HYPERVISOR_memory_op to > support direct priv-mapping of certain guest resources (such as ioreq > pages, used by emulators) by a tools domain, rather than having to access > such resources via the guest P2M. > > T

Re: linux-next: manual merge of the net-next tree with the vfs tree

2018-05-16 Thread Christoph Hellwig
> + /* Create a new file under /proc/net/ipconfig */ > + static int ipconfig_proc_net_create(const char *name, > + const struct file_operations *fops) > + { > + char *pname; > + struct proc_dir_entry *p; > + > + if (!ipconfig_dir) > + return

Re: [PATCH v2 2/3] xen/store: do not store local values in xen_start_info

2018-05-16 Thread Juergen Gross
On 09/05/18 12:21, Roger Pau Monne wrote: > There's no need to store the xenstore page or event channel in > xen_start_info if they are locally initialized. > > This also fixes PVH local xenstore initialization due to the lack of > xen_start_info in that case. > > Signed-off-by: Boris Ostrovsky

Re: [PATCH] xen-netfront: fix xennet_start_xmit()'s return type

2018-05-16 Thread Juergen Gross
On 24/04/18 15:18, Luc Van Oostenryck wrote: > The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', > which is a typedef for an enum type, but the implementation in this > driver returns an 'int'. > > Fix this by returning 'netdev_tx_t' in this driver too. > > Signed-off-by: Luc

Re: [PATCH v3 2/3] ioremap: Update pgtable free interfaces with addr

2018-05-16 Thread Michal Hocko
On Wed 16-05-18 17:32:06, Kani Toshimitsu wrote: > From: Chintan Pandya > > This patch ("mm/vmalloc: Add interfaces to free unmapped > page table") adds following 2 interfaces to free the page > table in case we implement huge mapping. > > pud_free_pmd_page() and pmd_free_pte_page() > > Some ar

Re: [PATCH v4 20/31] kconfig: test: add Kconfig macro language tests

2018-05-16 Thread Masahiro Yamada
2018-05-17 15:41 GMT+09:00 Kees Cook : > On Wed, May 16, 2018 at 11:16 PM, Masahiro Yamada > wrote: >> Here are the test cases I used for developing the text expansion >> feature. >> >> Signed-off-by: Masahiro Yamada > > Should these be tied to the global Makefile or selftests in any way? > > -Ke

Re: [PATCH 3/3] x86/MCE/AMD: Get address from already initialized block

2018-05-16 Thread Johannes Hirte
On 2018 Mai 17, Borislav Petkov wrote: > On Tue, May 15, 2018 at 11:39:54AM +0200, Johannes Hirte wrote: > > The out-of-bound access happens in get_block_address: > > > > if (bankp && bankp->blocks) { > > struct threshold_block *blockp blockp = &bankp->blocks[block]; > > > > with

linux-next: build warning after merge of the integrity tree

2018-05-16 Thread Stephen Rothwell
Hi all, After merging the integrity tree, today's linux-next build (powerpc allyesconfig) produced this warning: security/integrity/ima/ima_kexec.c:18:0: warning: "pr_fmt" redefined #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt In file included from include/linux/kernel.h:14:0, f

Re: [PATCH] usbip: vhci_sysfs: fix potential Spectre v1

2018-05-16 Thread Greg Kroah-Hartman
On Wed, May 16, 2018 at 05:22:00PM -0500, Gustavo A. R. Silva wrote: > pdev_nr and rhport can be controlled by user-space, hence leading to > a potential exploitation of the Spectre variant 1 vulnerability. > > This issue was detected with the help of Smatch: > drivers/usb/usbip/vhci_sysfs.c:238 d

Re: [PATCH v9 02/12] drivers: base: cacheinfo: setup DT cache properties early

2018-05-16 Thread Greg KH
On Tue, May 15, 2018 at 12:15:08PM -0500, Jeremy Linton wrote: > Hi Greg, > > Have you had a chance to look at the cachinfo parts of this patch? Nope :) I didn't write that, and while it is dumped in the driver core section of the kernel, I know nothing about it. If you get an ack from Sundeep

Re: [PATCH v4 19/31] Documentation: kconfig: document a new Kconfig macro language

2018-05-16 Thread Masahiro Yamada
2018-05-17 15:38 GMT+09:00 Kees Cook : > On Wed, May 16, 2018 at 11:16 PM, Masahiro Yamada > wrote: >> Add a document for the macro language introduced to Kconfig. >> >> The motivation of this work is to move the compiler option tests to >> Kconfig from Makefile. A number of kernel features requi

Re: [PATCH 0/3]nds32: Correct the cache operation for catch aliasing case

2018-05-16 Thread Greentime Hu
2018-05-15 16:46 GMT+08:00 Vincent Chen : > The following 3 issues are fixed in this patchset > > 1. In function flush_dacache_page and copy_user_highpage, the local irq is > enabled when the cache of the page at address page_address(page) is written > back to memory. It possibly causes data corrup

[PATCH 2/4] i2c: xlp9xx: Fix issue seen when updating receive length

2018-05-16 Thread George Cherian
The hardware does not handle updates to the length register gracefully if the new value is less than the number of bytes received so far. If this happens, the i2c controller will not stop the receive transaction properly. Fix this by ensuring that the updated length is ok. This is done by making s

Re: [PATCH 3/3] types: use fixed width types without double-underscore prefix

2018-05-16 Thread Masahiro Yamada
2018-05-16 15:26 GMT+09:00 Greg Kroah-Hartman : > On Wed, May 16, 2018 at 10:07:50AM +0900, Masahiro Yamada wrote: >> Hi Andrew, >> >> 2018-05-16 7:59 GMT+09:00 Andrew Morton : >> > On Tue, 15 May 2018 11:22:05 +0900 Masahiro Yamada >> > wrote: >> > >> >> This header file is not exported. It is

[PATCH 0/4] i2c-xlp9xx Add support for SMBAlert and minor fixes

2018-05-16 Thread George Cherian
This series adds the SMBAlert support for i2c-xlp9xx driver and the following fixes. Patch 2: Make sure we update the transfer length to a future length. Patch 3: Restrict the transfer size to I2C_SMBUS_BLOCK_SIZE for transfers with I2C_M_RECV_LEN is set. Patch 4: While at that update the MAINAT

Re: [PATCH -tip v2 0/5] kprobes: x86: Cleanup jprobe implementation on x86

2018-05-16 Thread Masami Hiramatsu
On Mon, 12 Mar 2018 23:40:55 +0900 Masami Hiramatsu wrote: > Hello, > > Since we decided to remove jprobe from kernel last year, > its APIs are disabled and we worked on moving in-kernel > jprobe users to kprobes or trace-events. And now no jprobe > users are here anymore. > > This series remov

[PATCH 4/4] i2c: xlp9xx: Add MAINTAINERS entry

2018-05-16 Thread George Cherian
The i2c XLP9xx driver is maintained by Cavium. Add George Cherian and Jan Glauber as the Maintainers. Signed-off-by: George Cherian --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index df6e9bb..68da265 100644 --- a/MAINTAINERS +++ b/MAINTAIN

[PATCH 3/4] i2c: xlp9xx: Make sure the transfer size is not more than I2C_SMBUS_BLOCK_SIZE

2018-05-16 Thread George Cherian
For SMBus transactions the max permissible transfer size is I2C_SMBUS_BLOCK_SIZE. It is possible that some clients might not follow it strictly occasionally. This would lead to stack corruption if the driver copies more than I2C_SMBUS_BLOCK_SIZE bytes. Add a check to avoid such conditions. Signed-

[PATCH 1/4] i2c: xlp9xx: Add support for SMBAlert

2018-05-16 Thread George Cherian
Add support for SMBus alert mechanism to i2c-xlp9xx driver. The second interrupt is parsed to use for SMBus alert. The first interrupt is the i2c controller main interrupt. Signed-off-by: Kamlakant Patel Signed-off-by: George Cherian Reviewed-by: Jan Glauber --- drivers/i2c/busses/i2c-xlp9xx.c

Re: [PATCH V2] mlx4_core: allocate ICM memory in page size chunks

2018-05-16 Thread Tariq Toukan
On 15/05/2018 9:53 PM, Qing Huang wrote: On 5/15/2018 2:19 AM, Tariq Toukan wrote: On 14/05/2018 7:41 PM, Qing Huang wrote: On 5/13/2018 2:00 AM, Tariq Toukan wrote: On 11/05/2018 10:23 PM, Qing Huang wrote: When a system is under memory presure (high usage with fragments), the orig

Re: [RFC] powerpc/emulate_step: Fix kernel crash when VSX is not present

2018-05-16 Thread Naveen N. Rao
[Adding Mikey] Ravi Bangoria wrote: emulate_step() is not checking runtime VSX feature flag before emulating an instruction. This can cause kernel oops when kernel is compiled with CONFIG_VSX=y but running on machine where VSX is not supported or disabled. Ex, while running emulate_step tests on

Re: [PATCH v2] powerpc: kvm: Change return type to vm_fault_t

2018-05-16 Thread Paul Mackerras
On Wed, May 16, 2018 at 10:11:11AM +0530, Souptick Joarder wrote: > On Thu, May 10, 2018 at 11:57 PM, Souptick Joarder > wrote: > > Use new return type vm_fault_t for fault handler > > in struct vm_operations_struct. For now, this is > > just documenting that the function returns a > > VM_FAULT v

Re: [PATCH v2 0/9] Input: support for latest Lenovo thinkpads (series 80)

2018-05-16 Thread Teika Kazura
From: Aaron Ma Date: Tue, 17 Apr 2018 19:42:27 +0800 > Could you apply my patch too? > > It add LEN0096 that Benjamin's patch doesn't include. > > + "LEN0096", /* X280 */ Aaron, in your original patch in last Oct [1], both *LEN0092 and* LEN0096 were aded. Which should be the case, both

Re: [RFC PATCH 00/10] Add persistent clock support

2018-05-16 Thread Baolin Wang
On 16 May 2018 at 10:20, Baolin Wang wrote: > Hi Daniel, > > On 15 May 2018 at 18:27, Daniel Lezcano wrote: >> On Mon, May 14, 2018 at 04:55:26PM +0800, Baolin Wang wrote: >>> Hi, >>> >>> We will meet below issues when compensating the suspend time for the >>> timekeeping. >>> >>> 1. We have too

Re: [PATCH 08/14] net: sched: account for temporary action reference

2018-05-16 Thread Jiri Pirko
Mon, May 14, 2018 at 04:27:09PM CEST, vla...@mellanox.com wrote: >tca_get_fill function has 'bind' and 'ref' arguments that get passed >down to action dump function. These arguments values are subtracted from >actual reference and bind counter values before writing them to skb. > >In order to preve

Re: [PATCH 3/3] sched/fair: schedutil: explicit update only when required

2018-05-16 Thread Vincent Guittot
On 15 May 2018 at 16:53, Patrick Bellasi wrote: > On 15-May 12:19, Vincent Guittot wrote: >> On 14 May 2018 at 18:32, Patrick Bellasi wrote: >> > On 12-May 23:25, Joel Fernandes wrote: >> >> On Sat, May 12, 2018 at 11:04:43PM -0700, Joel Fernandes wrote: >> >> > On Thu, May 10, 2018 at 04:05:53PM

Re: [PATCH 3/3] sched/fair: schedutil: explicit update only when required

2018-05-16 Thread Vincent Guittot
On 15 May 2018 at 18:53, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 03:53:43PM +0100, Patrick Bellasi wrote: >> On 15-May 12:19, Vincent Guittot wrote: >> > On 14 May 2018 at 18:32, Patrick Bellasi wrote: > >> > Yes se becomes NULL only when you reach root domain > > root group; domains are

Re: [RFC 5/8] x86: refcount: prevent gcc distortions

2018-05-16 Thread Jan Beulich
>>> On 15.05.18 at 16:11, wrote: > --- a/arch/x86/include/asm/refcount.h > +++ b/arch/x86/include/asm/refcount.h > @@ -14,34 +14,43 @@ > * central refcount exception. The fixup address for the exception points > * back to the regular execution flow in .text. > */ > -#define _REFCOUNT_EXCEPTI

Re: linux-next: Signed-off-by missing for commit in the pinctrl tree

2018-05-16 Thread Geert Uytterhoeven
On Tue, May 15, 2018 at 11:27 PM, Stephen Rothwell wrote: > Commit > > f18fab4bcb4f ("pinctrl: sh-pfc: Add r8a77470 PFC support") > > is missing a Signed-off-by from its comitter. Sorry, I forgot to add it. Linus, as the merge of sh-pfc is your top commit, shall I fix it up and send a new pul

Re: [RFC/RFT] [PATCH 02/10] cpufreq: intel_pstate: Conditional frequency invariant accounting

2018-05-16 Thread Peter Zijlstra
On Tue, May 15, 2018 at 09:49:03PM -0700, Srinivas Pandruvada wrote: > intel_pstate has two operating modes: active and passive. In "active" > mode, the in-built scaling governor is used and in "passive" mode, > the driver can be used with any governor like "schedutil". In "active" > mode the utili

[PATCH v2 1/2] i2c: algos: make use of i2c_8bit_addr_from_msg

2018-05-16 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/algos/i2c-algo-bit.c | 4 +--- drivers/i2c/algos/i2c-algo-pca.c | 5 + drivers/i2c/algos/i2c-algo-pcf.c | 8 ++-- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/algos/i2c-algo-bit.c b/drivers

Re: KMSAN: uninit-value in __sctp_v6_cmp_addr

2018-05-16 Thread Xin Long
On Wed, May 16, 2018 at 12:25 AM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:74ee2200b89f kmsan: bump .config.example to v4.17-rc3 > git tree: https://github.com/google/kmsan.git/master > console output: https://syzkaller.appspot.com/x/log.txt?x=169ef

[PATCH v2 0/2] i2c: make use of i2c_8bit_addr_from_msg

2018-05-16 Thread Peter Rosin
Hi! The nice little inline i2c_8bit_addr_from_msg is not getting enough use. This series improves the situation and drops a bunch of lines in the process. I have only compile-tested (that part fine, at least over here). Changes since v1 https://lkml.org/lkml/2018/5/14/919 - Squashed patches

[PATCH v2 2/2] i2c: busses: make use of i2c_8bit_addr_from_msg

2018-05-16 Thread Peter Rosin
Because it looks neater. For diolan, this allows factoring out some code that is now common between if and else. For eg20t, pch_i2c_writebytes is always called with a write in msgs->flags, and pch_i2c_readbytes with a read. For imx, i2c_imx_dma_write and i2c_imx_write are always called with a wr

Re: [PATCH 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel

2018-05-16 Thread Jagan Teki
On Wed, May 16, 2018 at 12:12 PM, Chen-Yu Tsai wrote: > On Mon, May 14, 2018 at 11:03 AM, Jagan Teki > wrote: >> On Thu, Apr 19, 2018 at 3:02 PM, Chen-Yu Tsai wrote: >>> This panel is marketed as Banana Pi 7" LCD display. On the back is >>> a sticker denoting the model name S070WV20-CT16. >>> >

Re: [RFC/RFT] [PATCH 03/10] cpufreq: intel_pstate: Utility functions to boost HWP performance limits

2018-05-16 Thread Peter Zijlstra
On Tue, May 15, 2018 at 09:49:04PM -0700, Srinivas Pandruvada wrote: > Setup necessary infrastructure to be able to boost HWP performance on a > remote CPU. First initialize data structure to be able to use > smp_call_function_single_async(). The boost up function simply set HWP > min to HWP max va

Re: [PATCH] ARM: dts: vf610-zii-dev: enable vf610 builtin temp sensor

2018-05-16 Thread Stefan Agner
On 16.05.2018 08:39, Nikita Yushchenko wrote: > Vybrid has single internal temperature sensor connected to both internal > ADC modules. > > vf610-zii-dev already has ADC0 enabled. Now, to get temperature sensor > captured by iio_hwmon driver, need to configure iio_hwmon node to use > that ADC. Th

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

2018-05-16 Thread Stephen Rothwell
Hi Masahiro, On Wed, 16 May 2018 15:01:38 +0900 Masahiro Yamada wrote: > > How should I handle your fix-up? > > May I squash into the original one if you ack to do it, > or is it better to keep it as a separate patch? Either way is fine by me, but the former reduces the bisection gap. So it d

Re: [RFC/RFT] [PATCH 02/10] cpufreq: intel_pstate: Conditional frequency invariant accounting

2018-05-16 Thread Peter Zijlstra
On Wed, May 16, 2018 at 09:16:40AM +0200, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 09:49:03PM -0700, Srinivas Pandruvada wrote: > > intel_pstate has two operating modes: active and passive. In "active" > > mode, the in-built scaling governor is used and in "passive" mode, > > the driver can

Re: [Intel-gfx] [PATCH v2 2/5] drm/i915: hdmi: add CEC notifier to intel_hdmi

2018-05-16 Thread Neil Armstrong
Hi Ville, On 15/05/2018 17:35, Ville Syrjälä wrote: > On Tue, May 15, 2018 at 04:42:19PM +0200, Neil Armstrong wrote: >> This patchs adds the cec_notifier feature to the intel_hdmi part >> of the i915 DRM driver. It uses the HDMI DRM connector name to differentiate >> between each HDMI ports. >> T

Re: [PATCH] f2fs: Fix deadlock in shutdown ioctl

2018-05-16 Thread Sahitya Tummala
On Wed, May 16, 2018 at 02:48:42PM +0800, Chao Yu wrote: > > > > Thanks, I thought about it too but then I checked that XFS shutdown ioctl is > > not taking any lock for this ioctl. Hence, I followed the same in F2FS. > > Do you know why XFS is not taking any lock? > > I don't know. :( No probl

Re: [PATCH v2] IB/umem: ib_ucontext already have tgid, remove pid from ib_umem structure

2018-05-16 Thread 858585 jemmy
On Wed, May 16, 2018 at 7:14 AM, Jason Gunthorpe wrote: > On Tue, May 08, 2018 at 04:50:16PM +0800, Lidong Chen wrote: >> The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. >> If when ibv_dereg_mr invoke and the thread which invoked ibv_reg_mr has >> exited, get_pid_task wi

Re: [PATCH v7] mtd: rawnand: use bit-wise majority to recover the contents of ONFI parameter

2018-05-16 Thread Chris Moore
Hi, Le 15/05/2018 à 09:34, Boris Brezillon a écrit : On Tue, 15 May 2018 06:45:51 +0200 Chris Moore wrote: Hi, Le 13/05/2018 à 06:30, Wan, Jane (Nokia - US/Sunnyvale) a écrit : Per ONFI specification (Rev. 4.0), if all parameter pages have invalid CRC values, the bit-wise majority may be u

Re: [PATCH V5 2/3] mmc: sdhci: Add support for O2 hardware tuning

2018-05-16 Thread Adrian Hunter
On 20/04/18 19:38, ernest.zhang wrote: > Add hardware tuning function instead of software tuning because O2/Bayhub > SD host controller support hardware tuning. > > Changes in V5: The change log goes below the --- line or in a separate cover email. > In function sdhci_o2_send_tuning, mrq.d

Re: [RESEND PATCH] clk: stm32: fix: stm32 clock drivers are not compiled by default

2018-05-16 Thread Alexandre Torgue
On 05/15/2018 11:48 PM, Stephen Boyd wrote: Quoting Alexandre Torgue (2018-05-14 05:45:57) On 05/05/2018 04:45 AM, Stephen Boyd wrote: Quoting Alexandre Torgue (2018-05-04 00:54:16) Stephen On 05/03/2018 08:40 AM, gabriel.fernan...@st.com wrote: From: Gabriel Fernandez Clock driver is

Re: [PATCH v2 2/2] i2c: busses: make use of i2c_8bit_addr_from_msg

2018-05-16 Thread Uwe Kleine-König
Hello Peter, On Wed, May 16, 2018 at 09:16:47AM +0200, Peter Rosin wrote: > Acked-by: Uwe Kleine-König [emf32 and imx] s/emf/efm/ Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.

[PATCH] pinctrl: berlin: switch to SPDX license identifier

2018-05-16 Thread Jisheng Zhang
Use the appropriate SPDX license identifier in the berlin pinctrl driver source file and drop the previous license text. Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/berlin-bg2.c | 5 + drivers/pinctrl/berlin/berlin-bg2cd.c | 5 + drivers/pinctrl/berlin/berlin-bg2q.c | 5

[RESEND PATCH v5 2/6] mfd: stm32-timers: add support for dmas

2018-05-16 Thread Fabrice Gasnier
STM32 Timers can support up to 7 DMA requests: - 4 channels, update, compare and trigger. Optionally request part, or all DMAs from stm32-timers MFD core. Also add routine to implement burst reads using DMA from timer registers. This is exported. So, it can be used by child drivers, PWM capture fo

[RESEND PATCH v5 3/6] pwm: stm32: add capture support

2018-05-16 Thread Fabrice Gasnier
Add support for PMW input mode on pwm-stm32. STM32 timers support period and duty cycle capture as long as they have at least two PWM channels. One capture channel is used for period (rising-edge), one for duty-cycle (falling-edge). When there's only one channel available, only period can be captur

[RESEND PATCH v5 1/6] dt-bindings: mfd: stm32-timers: add support for dmas

2018-05-16 Thread Fabrice Gasnier
Add support for DMAs to STM32 timers. STM32 Timers can support up to 7 dma requests: up to 4 channels, update, compare and trigger. DMAs may be used to transfer data from pwm capture for instance. DMA support is made optional, PWM capture support is also an option. This is much more wise system-wid

Re: [RFC/RFT] [PATCH 05/10] cpufreq: intel_pstate: HWP boost performance on IO Wake

2018-05-16 Thread Peter Zijlstra
On Tue, May 15, 2018 at 09:49:06PM -0700, Srinivas Pandruvada wrote: > When a task is woken up from IO wait, boost HWP prformance to max. This > helps IO workloads on servers with per core P-states. But changing limits > has extra over head of issuing new HWP Request MSR, which takes 1000+ > cycles

[RESEND PATCH v5 0/6] Add support for PWM input capture on STM32

2018-05-16 Thread Fabrice Gasnier
This series adds support for capture to stm32-pwm driver. Capture is based on DMAs. - First two patches add support for requesting DMAs to MFD core - Next three patches add support for capture to stm32-pwm driver - This has been tested on stm32429i-eval board. --- Changes in v5: - update patch 2 (

[RESEND PATCH v5 6/6] ARM: dts: stm32: Enable pwm3 input capture on stm32f429i-eval

2018-05-16 Thread Fabrice Gasnier
Enable pwm3 input capture on stm32f429i-eval, by using DMA. Signed-off-by: Fabrice Gasnier Reviewed-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32429i-eval.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts

[RESEND PATCH v5 4/6] pwm: stm32: improve capture by tuning counter prescaler

2018-05-16 Thread Fabrice Gasnier
Currently, capture is based on timeout window to configure prescaler. PWM capture framework provides 1s window at the time of writing. There's place for improvement, after input signal has been captured once: - Finer tune counter clock prescaler, by using 1st capture result (with arbitrary margin)

[RESEND PATCH v5 5/6] pwm: stm32: use input prescaler to improve period capture

2018-05-16 Thread Fabrice Gasnier
Using input prescaler, capture unit will trigger DMA once every configurable /2, /4 or /8 events (rising edge). This helps improve period (only) capture accuracy at high rates. Signed-off-by: Fabrice Gasnier Reviewed-by: Benjamin Gaignard Acked-by: Thierry Reding --- Changes in v2: - Adopt DMA

Re: [PATCH] MAINTAINERS: Add entry for STM32 timer and lptimer drivers

2018-05-16 Thread Alexandre Torgue
Hi Fabrice On 05/15/2018 05:33 PM, Fabrice Gasnier wrote: Add an entry to make myself a maintainer of STM32 timer and lptimer drivers. Signed-off-by: Fabrice Gasnier --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4b65225..94d8

<    1   2   3   4   5   6   7   8   9   10   >