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

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 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] 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

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 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

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 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] 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: 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 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: [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: [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 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: [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: [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 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: [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 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: 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 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

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 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

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_

[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 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

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

[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 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 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 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 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

[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 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

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 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

[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 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 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

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 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] 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 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

[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 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 v3 2/4] dt-bindings: mtk-sysirq: Add compatible for Mediatek MT8183

2018-05-16 Thread Erin Lo
This adds dt-binding documentation of SYSIRQ for Mediatek MT8183 SoC Platform. Signed-off-by: Erin Lo --- .../devicetree/bindings/interrupt-controller/mediatek,sysirq.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,

[PATCH v4 21/31] kconfig: show compiler version text in the top comment

2018-05-16 Thread Masahiro Yamada
The kernel configuration phase is now tightly coupled with the compiler in use. It will be nice to show the compiler information in Kconfig. The compiler information will be displayed like this: $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- config scripts/kconfig/conf --oldaskconfig Kc

[PATCH v3 3/4] dt-bindings: serial: Add compatible for Mediatek MT8183

2018-05-16 Thread Erin Lo
This adds dt-binding documentation of uart for Mediatek MT8183 SoC Platform. Signed-off-by: Erin Lo --- Documentation/devicetree/bindings/serial/mtk-uart.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/mtk-uart.txt b/Documentation/devicetree/bind

[PATCH v3 4/4] arm64: dts: Add Mediatek SoC MT8183 and evaluation board dts and Makefile

2018-05-16 Thread Erin Lo
From: Ben Ho Add basic chip support for Mediatek 8183 Signed-off-by: Ben Ho Signed-off-by: Erin Lo --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 31 + arch/arm64/boot/dts/mediatek/mt8183.dtsi| 182

[GIT PULL] s390 patches for 4.17-rc6

2018-05-16 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: A few more additional changes for 4.17: * A fix for the vfio ccw translation code * Update an incorrect email address in the

[PATCH v4 25/31] kconfig: add CC_IS_CLANG and CLANG_VERSION

2018-05-16 Thread Masahiro Yamada
This will be useful to describe the clang version dependency. Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook --- Changes in v4: None Changes in v3: None Changes in v2: None init/Kconfig | 7 +++ scripts/clang-version.sh | 18 -- 2 files changed, 11 inse

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

2018-05-16 Thread Masahiro Yamada
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 not supported, it will be disabled. This means, AUTO is implicitly

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

2018-05-16 Thread Masahiro Yamada
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_PLUGIN_CYC_COMPLEXITY GCC_PLUGIN_STRUCTLEAK_VERBOSE GCC_PLUGIN_RAN

[PATCH v4 22/31] kconfig: add basic helper macros to scripts/Kconfig.include

2018-05-16 Thread Masahiro Yamada
Kconfig got text processing tools like we see in Make. Add Kconfig helper macros to scripts/Kconfig.include like we collect Makefile macros in scripts/Kbuild.include. Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook Reviewed-by: Ulf Magnusson --- Changes in v4: - source scripts/Kconfig

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

2018-05-16 Thread Masahiro Yamada
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 --- Changes in v4: None Changes in v3: - Move comment to Kconfig as

[PATCH v4 31/31] arm64: move GCC version check for ARCH_SUPPORTS_INT128 to Kconfig

2018-05-16 Thread Masahiro Yamada
This becomes much neater in Kconfig. Signed-off-by: Masahiro Yamada Acked-by: Will Deacon Reviewed-by: Kees Cook --- Changes in v4: - Rebase Changes in v3: - Newly added Changes in v2: None arch/arm64/Kconfig | 1 + arch/arm64/Makefile | 6 -- 2 files changed, 1 insertion(+), 6 dele

[PATCH v4 24/31] kconfig: add CC_IS_GCC and GCC_VERSION

2018-05-16 Thread Masahiro Yamada
This will be useful to specify the required compiler version, like this: config FOO bool "Use Foo" depends on GCC_VERSION >= 40800 help This feature requires GCC 4.8 or newer. Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook --- Changes in v4: None Change

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

2018-05-16 Thread Masahiro Yamada
Here are the test cases I used for developing the text expansion feature. Signed-off-by: Masahiro Yamada --- Changes in v4: - Adjust for the change in function call syntax. - Remove unnecessarily tricky tests. Changes in v3: - newly added Changes in v2: None .../kconfig/tests/preproces

[PATCH v4 12/31] kconfig: support simply expanded variable

2018-05-16 Thread Masahiro Yamada
The previous commit added variable and user-defined function. They work similarly in the sense that the evaluation is deferred until they are used. This commit adds another type of variable, simply expanded variable, as we see in Make. The := operator defines a simply expanded variable, expandin

[PATCH v4 14/31] kconfig: expand lefthand side of assignment statement

2018-05-16 Thread Masahiro Yamada
Make expands the lefthand side of assignment statements. In fact, Kbuild relies on it since kernel makefiles mostly look like follows: obj-$(CONFIG_FOO) += foo.o Do likewise in Kconfig. Signed-off-by: Masahiro Yamada --- Changes in v4: None Changes in v3: None Changes in v2: None scripts/

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

2018-05-16 Thread Masahiro Yamada
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_GCC_PLUGINS. This could cause the unmet direct dependency. Now t

[PATCH v4 16/31] kconfig: add 'if' built-in function

2018-05-16 Thread Masahiro Yamada
The 'if' function is invoked in the form: $(if,condition,then-part,else-part) The behavior is slightly different from that of Make. In Make, the condition is true if the expansion contains any characters (even space). That is why we sometimes need $(strip ...) in the condition part. I though

[PATCH v4 05/31] kconfig: remove string expansion for mainmenu after yyparse()

2018-05-16 Thread Masahiro Yamada
Now that environments are expanded in the lexer, conf_parse() does not need to expand them explicitly. The hack introduced by commit 0724a7c32a54 ("kconfig: Don't leak main menus during parsing") can go away. Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook Reviewed-by: Ulf Magnusson ---

[PATCH v4 00/31] kconfig: move compiler capability tests to Kconfig

2018-05-16 Thread Masahiro Yamada
[Introduction] 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 testing in Makefiles. If a chosen feature turns o

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

2018-05-16 Thread Mathieu Malaterre
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 a value of `0` instead of propa

Re: [PATCH 1/2] x86/boot/KASLR: Add two functions for 1GB huge pages handling

2018-05-16 Thread Baoquan He
On 05/17/18 at 01:53pm, Chao Fan wrote: > On Thu, May 17, 2018 at 12:03:43PM +0800, Baoquan He wrote: > >Hi Chao, > > > >On 05/17/18 at 11:27am, Chao Fan wrote: > >> >+/* Store the number of 1GB huge pages which user specified.*/ > >> >+static unsigned long max_gb_huge_pages; > >> >+ > >> >+static

[PATCH] KVM: arm/arm64: add WARN_ON if size is not PAGE_SIZE aligned in unmap_stage2_range

2018-05-16 Thread Jia He
I ever met a panic under memory pressure tests(start 20 guests and run memhog in the host). -begin [35380.800950] BUG: Bad page state in process qemu-kvm pfn:dd0b6 [35380.805825] page:7fe003742d80 count:-4871 mapcount:-2126053375

[RFC] hexagon: Drop the unused variable zero_page_mask

2018-05-16 Thread Anshuman Khandual
Hexagon arch does not seem to have subscribed to _HAVE_COLOR_ZERO_PAGE framework. Hence zero_page_mask variable is not needed. Signed-off-by: Anshuman Khandual --- I will have to request some one with hexagon system to compile and test this patch. Dont have access to hardware. arch/hexagon/incl

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

2018-05-16 Thread Vinod
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 transcation_len; > > > > /s/transcation/transacti

Re: [PATCH 0/3] Add support to disable sensor groups in P9

2018-05-16 Thread Shilpasri G Bhat
On 05/15/2018 08:32 PM, Guenter Roeck wrote: > On Thu, Mar 22, 2018 at 04:24:32PM +0530, Shilpasri G Bhat wrote: >> This patch series adds support to enable/disable OCC based >> inband-sensor groups at runtime. The environmental sensor groups are >> managed in HWMON and the remaining platform spe

[PATCH] PM / devfreq: Add support for QCOM devfreq FW

2018-05-16 Thread Saravana Kannan
The firmware present in some QCOM chipsets offloads the steps necessary for changing the frequency of some devices (Eg: L3). This driver implements the devfreq interface for this firmware so that various governors could be used to scale the frequency of these devices. Signed-off-by: Saravana Kanna

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

2018-05-16 Thread Baolin Wang
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 transcation_len; > > /s/transcation/transaction OK. > > now in code I see block_len and this filled by

Re: [PATCH 1/5] random: fix crng_ready() test

2018-05-16 Thread Christophe LEROY
Le 13/04/2018 à 19:00, Theodore Y. Ts'o a écrit : On Fri, Apr 13, 2018 at 03:05:01PM +0200, Stephan Mueller wrote: What I would like to point out that more and more folks change to getrandom(2). As this call will now unblock much later in the boot cycle, these systems see a significant depart

Re: [PATCH v2 2/3] arm64: dts: renesas: draak: Describe CVBS input

2018-05-16 Thread kbuild test robot
Hi Jacopo, I love your patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [cannot apply to renesas/next v4.17-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/J

Re: [PATCH] cpuidle/powernv : init all present cpus for deep states

2018-05-16 Thread Akshay Adiga
Yes this needs to be sent to stable. Fixes: d405a98c ("powerpc/powernv: Move cpuidle related code from setup.c to new file")

Re: [PATCH 1/2] x86/boot/KASLR: Add two functions for 1GB huge pages handling

2018-05-16 Thread Chao Fan
On Thu, May 17, 2018 at 12:03:43PM +0800, Baoquan He wrote: >Hi Chao, > >On 05/17/18 at 11:27am, Chao Fan wrote: >> >+/* Store the number of 1GB huge pages which user specified.*/ >> >+static unsigned long max_gb_huge_pages; >> >+ >> >+static int parse_gb_huge_pages(char *param, char* val) >> >+{ >

[PATCH v7 0/6] provide power off support for iMX6 with external PMIC

2018-05-16 Thread Oleksij Rempel
2018.05.17: update patches to version v7 This patch series is providing power off support for Freescale/NXP iMX6 based boards with external power management integrated circuit (PMIC). As a first step the PMIC is configured to turn off the system if the standby pin is asserted. On second step we a

[PATCH v7 2/6] ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set

2018-05-16 Thread Oleksij Rempel
One of the Freescale recommended sequences for power off with external PMIC is the following: ... 3. SoC is programming PMIC for power off when standby is asserted. 4. In CCM STOP mode, Standby is asserted, PMIC gates SoC supplies. See: http://www.nxp.com/assets/documents/data/en/reference-manua

[PATCH v7 6/6] ARM: dts: imx6: RIoTboard provide standby on power off option

2018-05-16 Thread Oleksij Rempel
This board, as well as some other boards with i.MX6 and a PMIC, uses a "PMIC_STBY_REQ" line to notify the PMIC about a state change. The PMIC is programmed for a specific state change before triggering the line. In this case, PMIC_STBY_REQ can be used for stand by, sleep and power off modes. Signe

[PATCH v7 1/6] ARM: imx6q: provide documentation for new fsl,pmic-stby-poweroff property

2018-05-16 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/imx6q-clock.txt | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/imx6q-clock.txt b/Documentation/devicetree/bindings/clock/imx6q-clock.txt index a45

[PATCH v7 5/6] regulator: pfuze100-regulator: provide pm_power_off_prepare handler

2018-05-16 Thread Oleksij Rempel
On some boards the SoC can use one pin "PMIC_STBY_REQ" to notify th PMIC about state changes. In this case internal state of PMIC must be preconfigured for upcomming state change. It works fine with the current regulator framework, except with the power-off case. This patch is providing an optiona

[PATCH v7 4/6] regulator: pfuze100: add fsl,pmic-stby-poweroff property

2018-05-16 Thread Oleksij Rempel
Document the new optional "fsl,pmic-stby-poweroff" property. Signed-off-by: Oleksij Rempel Acked-by: Rob Herring --- Documentation/devicetree/bindings/regulator/pfuze100.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/pfuze100.txt b/Do

[PATCH v7 3/6] kernel/reboot.c: export pm_power_off_prepare

2018-05-16 Thread Oleksij Rempel
Export pm_power_off_prepare. It is needed to implement power off on Freescale/NXP iMX6 based boards with external power management integrated circuit (PMIC). Signed-off-by: Oleksij Rempel --- kernel/reboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/reboot.c b/kernel/reboot.c in

Re: [PATCH 2/4] pid: Export find_task_by_vpid for use in external modules

2018-05-16 Thread Eric W. Biederman
Russell King - ARM Linux writes: > On Thu, May 10, 2018 at 01:39:18PM -0600, Mathieu Poirier wrote: >> Hi Russell, >> >> On 10 May 2018 at 02:40, Russell King - ARM Linux >> wrote: >> > This does not leak information from other namespaces because of the >> > uniqueness of the global PID. Howe

Re: [PATCH 1/2] x86/boot/KASLR: Add two functions for 1GB huge pages handling

2018-05-16 Thread Baoquan He
On 05/17/18 at 07:12am, damian wrote: > On Wed, 16. May 18:05, Baoquan He wrote: > > Functions parse_gb_huge_pages() and process_gb_huge_page() are introduced to > > handle conflict between KASLR and huge pages, will be used in the next > > patch. > > > > Function parse_gb_huge_pages() is used to

Re: [PATCH v3 2/2] Input: xen-kbdfront - allow better run-time configuration

2018-05-16 Thread Oleksandr Andrushchenko
On 05/17/2018 12:08 AM, Dmitry Torokhov wrote: On Wed, May 16, 2018 at 08:47:30PM +0300, Oleksandr Andrushchenko wrote: On 05/16/2018 08:15 PM, Dmitry Torokhov wrote: Hi Oleksandr, On Mon, May 14, 2018 at 05:40:29PM +0300, Oleksandr Andrushchenko wrote: @@ -211,93 +220,114 @@ static int xenkb

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

2018-05-16 Thread Eric W. Biederman
Christoph Hellwig writes: > On Sat, May 05, 2018 at 07:37:33AM -0500, Eric W. Biederman wrote: >> Christoph Hellwig writes: >> >> > The shole seq_file sequence already operates under a single RCU lock pair, >> > so move the pid namespace lookup into it, and stop grabbing a reference >> > and re

Re: [linux-firmware] Version in WHENCE file

2018-05-16 Thread Luciano Coelho
On Mon, 2018-05-07 at 09:47 +0200, Sedat Dilek wrote: > On Sun, May 6, 2018 at 3:07 PM, Luciano Coelho com> wrote: > > On Sun, 2018-05-06 at 14:46 +0200, Sedat Dilek wrote: > > > Hi Luca, > > > > > > I hope I catched the correct MLs (not sure if linux-firmware has > > > a > > > ML, > > > I did no

Re: [PATCH] dmaengine: qcom: bam_dma: check if the runtime pm enabled

2018-05-16 Thread Vinod
On 14-05-18, 17:18, Srinivas Kandagatla wrote: > Disabling pm runtime at probe is not sufficient to get BAM working > on remotely controller instances. pm_runtime_get_sync() would return > -EACCES in such cases. > So check if runtime pm is enabled before returning error from bam functions. > > Fix

  1   2   3   4   5   6   7   8   9   10   >