Re: [PATCH] Input: add bu21029 touch driver

2018-03-26 Thread Jonas Mark (BT-FIR/ENG1)
Hello Dmitry, > > +++ b/drivers/input/touchscreen/bu21029_ts.c > > @@ -0,0 +1,456 @@ > > Please add SPDX tag for the driver. We will do. > Please use GPIOD API (and include linux/gpio/consumer.h instead of > of_gpio.h). We will do the change. > > +/* HW_ID1 Register (PAGE=0, ADDR=0x0E, Reset

[PATCH v2] ata: ahci-platform: add reset control support

2018-03-26 Thread Kunihiko Hayashi
Add support to get and control a list of resets for the device as optional and shared. These resets must be kept de-asserted until the device is enabled. This is specified as shared because some SoCs like UniPhier series have common reset controls with all ahci controller instances. Signed-off-by

Re: [PATCH v3 1/6] phy: qcom-qmp: Enable pipe_clk before checking USB3 PHY_STATUS

2018-03-26 Thread Vivek Gautam
On 3/27/2018 10:37 AM, Manu Gautam wrote: Hi Doug, On 3/27/2018 9:56 AM, Doug Anderson wrote: Manu On Thu, Mar 22, 2018 at 11:11 PM, Manu Gautam wrote: QMP PHY for USB mode requires pipe_clk for calibration and PLL lock to take place. This clock is output from PHY to GCC clock_ctl and the

Re: [dm-devel] [PATCH 2/2] md: dm-verity: allow parallel processing of bio blocks

2018-03-26 Thread Eric Biggers
[+Cc linux-crypto] Hi Yael, On Sun, Mar 25, 2018 at 07:41:30PM +0100, Yael Chemla wrote: > Allow parallel processing of bio blocks by moving to async. completion > handling. This allows for better resource utilization of both HW and > software based hash tfm and therefore better performance in

Re: [PATCH v6 2/2] cpuset: Add cpuset.sched_load_balance to v2

2018-03-26 Thread Mike Galbraith
On Mon, 2018-03-26 at 16:28 -0400, Waiman Long wrote: > > The sched_load_balance flag isn't something that is passed to the > scheduler. It only only affects the CPU topology of the system. So I > suspect that a process in the root cgroup will be load balanced among > the CPUs in the one of the ch

Re: Periodic Null pointer access with 4.14.29-30 (while using minidlna) in sendfile system call

2018-03-26 Thread Eric Valette
On 3/25/18 11:39 PM, Eric Valette wrote: On 3/25/18 11:07 PM, Eric Valette wrote: Since a few kernels I get this error when streaming video to TV via minidlna: Checked it started with at least 4.14.25. My older kern.log.2.gz file says before first march I did not get this error. But I removed

Re: [PATCH] Input: add bu21029 touch driver

2018-03-26 Thread Jonas Mark (BT-FIR/ENG1)
Hello Rob, > > +* Rohm BU21029 Touch Screen Controller > > + > > +Required properties: > > + - compatible : must be "rohm,bu21029" > > + - reg : i2c device address of the chip > > What the valid value(s)? The chip itself can be wired to 0x40 or 0x41. The driver c

Re: [PATCH 0/2] x86/CPU/AMD: Add support for Extended Topology Enumeration

2018-03-26 Thread David Rientjes
On Tue, 27 Mar 2018, Ingo Molnar wrote: > > Linux currently provides function detect_extended_topology() > > for parsing CPUID Fn0xB and derive CPU topology information. > > Therefore, also call this function in AMD code path. > > > > Thanks, > > Suravee > > > > Suravee Suthikulpanit (2): > >

Re: [PATCH 2/2] md: dm-verity: allow parallel processing of bio blocks

2018-03-26 Thread Gilad Ben-Yossef
On Tue, Mar 27, 2018 at 4:06 AM, Mike Snitzer wrote: > On Sun, Mar 25 2018 at 2:41pm -0400, > Yael Chemla wrote: > >> Allow parallel processing of bio blocks by moving to async. completion >> handling. This allows for better resource utilization of both HW and >> software based hash tfm and t

Re: [PATCH script] hwmon: Use octal not symbolic permissions

2018-03-26 Thread Joe Perches
On Mon, 2018-03-26 at 23:33 -0700, Guenter Roeck wrote: > On 03/26/2018 01:28 PM, Joe Perches wrote: > > drivers/hwmon is the most frequent user of symbolic permissions > > like S_IRUGO in the kernel tree. [] > I have something similar using coccinelle, Please post the script. I expect it doesn't

Re: [PATCH v3 1/6] phy: qcom-qmp: Enable pipe_clk before checking USB3 PHY_STATUS

2018-03-26 Thread Vivek Gautam
Hi Manu, On 3/23/2018 11:41 AM, Manu Gautam wrote: QMP PHY for USB mode requires pipe_clk for calibration and PLL lock to take place. AFAIK, that's not true. The pipe clock is the *output* of the PLL, and it's should not be needed for PLL calibration and locking. The PLL locking happens when

[PATCH v2 1/4] zram: correct flag name of ZRAM_ACCESS

2018-03-26 Thread Minchan Kim
ZRAM_ACCESS is used for locking a slot of zram so correct the name. It is also not a common flag to indicate status of the block so move the declare position on top of the flag. Lastly, let's move the function to the top of source code to be able to use it easily without forward declaration. Signe

[PATCH v2 3/4] zram: record accessed second

2018-03-26 Thread Minchan Kim
zRam as swap is useful for small memory device. However, swap means those pages on zram are mostly cold pages due to VM's LRU algorithm. Especially, once init data for application are touched for launching, they tend to be not accessed any more and finally swapped out. zRAM can store such cold page

[PATCH v2 4/4] zram: introduce zram memory tracking

2018-03-26 Thread Minchan Kim
zRam as swap is useful for small memory device. However, swap means those pages on zram are mostly cold pages due to VM's LRU algorithm. Especially, once init data for application are touched for launching, they tend to be not accessed any more and finally swapped out. zRAM can store such cold page

[PATCH v2 0/4] zram memory tracking

2018-03-26 Thread Minchan Kim
zRam as swap is useful for small memory device. However, swap means those pages on zram are mostly cold pages due to VM's LRU algorithm. Especially, once init data for application are touched for launching, they tend to be not accessed any more and finally swapped out. zRAM can store such cold page

[PATCH v2 2/4] zram: mark incompressible page as ZRAM_HUGE

2018-03-26 Thread Minchan Kim
Mark incompressible pages so that we could investigate who is the owner of the incompressible pages once the page is swapped out via using upcoming zram memory tracker feature. With it, we could prevent such pages to be swapped out by using mlock. Otherwise we might remove them. This patch expose

Re: [PATCH 0/2] x86/CPU/AMD: Add support for Extended Topology Enumeration

2018-03-26 Thread Ingo Molnar
* Suravee Suthikulpanit wrote: > Linux currently provides function detect_extended_topology() > for parsing CPUID Fn0xB and derive CPU topology information. > Therefore, also call this function in AMD code path. > > Thanks, > Suravee > > Suravee Suthikulpanit (2): > x86/CPU: Modify detect_ex

Re: [PATCH 4.14 000/109] 4.14.28-stable review

2018-03-26 Thread Guenter Roeck
On 03/26/2018 11:28 PM, Greg Kroah-Hartman wrote: On Mon, Mar 26, 2018 at 01:54:18PM -0400, Kash Pande wrote: On 2018-03-19 02:20 PM, Guenter Roeck wrote: Ryzen and Threadripper are only supported in v4.15+. Nope, the offset for 1900X is not available in 4.15, I've had to manually patch all

Re: [PATCH script] hwmon: Use octal not symbolic permissions

2018-03-26 Thread Guenter Roeck
On 03/26/2018 01:28 PM, Joe Perches wrote: drivers/hwmon is the most frequent user of symbolic permissions like S_IRUGO in the kernel tree. $ git grep -w -P "S_[A-Z]{5,5}" | \ cut -f1 -d: | cut -f1-2 -d"/" | sed -r 's/[A-Za-z0-9_-]+\.[ch]$//' | \ sort | uniq -c | sort -rn | head 3862 d

Re: [PATCH v29 1/4] mm: support reporting free page blocks

2018-03-26 Thread Michal Hocko
On Tue 27-03-18 14:23:51, Wei Wang wrote: > On 03/27/2018 05:22 AM, Andrew Morton wrote: > > On Mon, 26 Mar 2018 10:39:51 +0800 Wei Wang wrote: > > > > > This patch adds support to walk through the free page blocks in the > > > system and report them via a callback function. Some page blocks may

Re: [v2 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-03-26 Thread Michal Hocko
On Tue 27-03-18 02:20:39, Yang Shi wrote: [...] The patch looks reasonable to me. Maybe it would be better to be more explicit about the purpose of the patch. As others noticed, this alone wouldn't solve the mmap_sem contention issues. I _think_ that if you were more explicit about the mmap_sem abu

Re: [PATCH v3 1/2] staging: media: davinci_vpfe: add error handling on kmalloc failure

2018-03-26 Thread Greg KH
On Tue, Mar 27, 2018 at 08:20:59AM +0300, Dan Carpenter wrote: > On Tue, Mar 27, 2018 at 02:00:45PM +0900, Ji-Hun Kim wrote: > > > > Are there any opinions? I'd like to know how this patch is going. > > > > > Looks good. Thanks! > > Greg just hasn't gotten to it yet. Greg does not take drive

Re: [PATCH 4.14 000/109] 4.14.28-stable review

2018-03-26 Thread Greg Kroah-Hartman
On Mon, Mar 26, 2018 at 01:54:18PM -0400, Kash Pande wrote: > On 2018-03-19 02:20 PM, Guenter Roeck wrote: > > Ryzen and Threadripper are only supported in v4.15+. > > > Nope, the offset for 1900X is not available in 4.15, I've had to > manually patch all systems otherwise monitoring complains th

Re: [PATCH v6 3/3] arm64: dts: renesas: Add LVDS decoder to R-Car V3M Eagle

2018-03-26 Thread Vladimir Zapolskiy
Hi Jacopo, On 03/20/2018 03:01 PM, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Friday, 16 March 2018 17:16:39 EET Jacopo Mondi wrote: >> The R-Car V3M Eagle board includes a transparent THC63LVD1024 LVDS >> decoder, connected to the on-chip LVDS encoder output on one

[patch] x86/mm/32: Remove unused node_memmap_size_bytes

2018-03-26 Thread David Rientjes
node_memmap_size_bytes() has been unused since the 3.9 kernel, so remove it. Fixes: f03574f2d5b2 ("x86-32, mm: Rip out x86_32 NUMA remapping code") Signed-off-by: David Rientjes --- arch/x86/Kconfig | 4 arch/x86/mm/numa_32.c | 11 --- include/linux/mmzone.h | 5 - mm/s

Re: [PATCH v6 2/3] drm: bridge: Add thc63lvd1024 LVDS decoder driver

2018-03-26 Thread Vladimir Zapolskiy
Hi Jacopo, On 03/16/2018 05:16 PM, Jacopo Mondi wrote: > Add DRM bridge driver for Thine THC63LVD1024 LVDS to digital parallel > output converter. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Andrzej Hajda > Reviewed-by: Niklas Söderlund > --- > drivers/gpu/drm/bridge/Kconfig| 6 +

Persoonlijke en beleggingslening.

2018-03-26 Thread Funding Trusts Finance
-- Goede dag, We zijn Funding Trusts Finance verstrekt leningen per postadvertentie. Wij bieden verschillende soorten leningen of projectleningen (korte en lange termijnleningen, persoonlijke leningen, leningen aan bedrijven enz.) Met een rentetarief van 3%. We verstrekken leningen

Persoonlijke en beleggingslening.

2018-03-26 Thread Funding Trusts Finance
-- Goede dag, We zijn Funding Trusts Finance verstrekt leningen per postadvertentie. Wij bieden verschillende soorten leningen of projectleningen (korte en lange termijnleningen, persoonlijke leningen, leningen aan bedrijven enz.) Met een rentetarief van 3%. We verstrekken leningen

Re: [PATCH v29 1/4] mm: support reporting free page blocks

2018-03-26 Thread Wei Wang
On 03/27/2018 05:22 AM, Andrew Morton wrote: On Mon, 26 Mar 2018 10:39:51 +0800 Wei Wang wrote: This patch adds support to walk through the free page blocks in the system and report them via a callback function. Some page blocks may leave the free list after zone->lock is released, so it is th

Persoonlijke en beleggingslening.

2018-03-26 Thread Funding Trusts Finance
-- Goede dag, We zijn Funding Trusts Finance verstrekt leningen per postadvertentie. Wij bieden verschillende soorten leningen of projectleningen (korte en lange termijnleningen, persoonlijke leningen, leningen aan bedrijven enz.) Met een rentetarief van 3%. We verstrekken leningen

Re: [PATCH v6 2/2] cpuset: Add cpuset.sched_load_balance to v2

2018-03-26 Thread Juri Lelli
On 26/03/18 16:28, Waiman Long wrote: > On 03/26/2018 08:47 AM, Juri Lelli wrote: > > On 23/03/18 14:44, Waiman Long wrote: > >> On 03/23/2018 03:59 AM, Juri Lelli wrote: > > [...] > > > >>> OK, thanks for confirming. Can you tell again however why do you think > >>> we need to remove sched_load_ba

答复: 答复: 答复: [PATCH v8 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs

2018-03-26 Thread liwei (CM)
Hi, Arnd At present our ufs module mainly has four clocks from the outside: hclk_ufs: main clock of ufs controller ,freq is 207.5MHz cfg_phy_clk: configuration clock of MPHY, freq is 51.875MHz ref_phy_clk: reference clock of MPHY from PMU, freq is 19.2MHz ref_io_clk:reference clock for

Re: [PATCH v6 1/3] dt-bindings: display: bridge: Document THC63LVD1024 LVDS decoder

2018-03-26 Thread Vladimir Zapolskiy
Hi Jacopo, On 03/27/2018 01:22 AM, Rob Herring wrote: > On Tue, Mar 20, 2018 at 02:43:33PM +0200, Laurent Pinchart wrote: >> Hi Jacopo, >> >> (CC'ing Rob) >> >> Thank you for the patch. >> >> On Friday, 16 March 2018 17:16:37 EET Jacopo Mondi wrote: >>> Document Thine THC63LVD1024 LVDS decoder dev

Re: [PATCH v1 3/3] perf: Support perf -vv

2018-03-26 Thread Jin, Yao
On 3/27/2018 2:03 PM, Ingo Molnar wrote: * Jin Yao wrote: +++ b/tools/perf/perf.c @@ -64,6 +64,7 @@ static struct cmd_struct commands[] = { { "top", cmd_top,0 }, { "annotate", cmd_annotate, 0 }, { "version", cmd_version,0 }, + { "version2",

Re: [PATCH v4 0/8] ARM: davinci: complete the conversion to using the reset framework

2018-03-26 Thread Sekhar Nori
Hi Bart, On Friday 23 March 2018 10:46 PM, Bartosz Golaszewski wrote: > 2018-03-23 18:08 GMT+01:00 Stephen Boyd : >> Quoting Bartosz Golaszewski (2018-03-23 09:55:47) >>> 2018-03-23 17:49 GMT+01:00 Stephen Boyd : Quoting Bartosz Golaszewski (2018-03-23 06:04:47) > From: Bartosz Golaszewsk

Re: [PATCH v2,10/10] kbuild: mark $(targets) as .SECONDARY and remove .PRECIOUS markers

2018-03-26 Thread Ingo Molnar
* Masahiro Yamada wrote: > GNU Make automatically deletes intermediate files that are updated > in a chain of pattern rules. > > Example 1) %.dtb.o <- %.dtb.S <- %.dtb <- %.dts > Example 2) %.o <- %.c <- %.c_shipped > > A couple of makefiles mark such targets as .PRECIOUS to prevent Make > fro

Re: [PATCH 08/10] kbuild: rename *-asn1.[ch] to *.asn.[ch]

2018-03-26 Thread Masahiro Yamada
+CC linux-cry...@vger.kernel.org No functional change, though. (I fixed up the subject.) 2018-03-23 22:04 GMT+09:00 Masahiro Yamada : > Our convention is to distinguish file types by suffixes with a period > as a separator. > > *-asn1.[ch] is a different pattern from other generated sources suc

Re: [PATCH v2] locking/rwsem: Add DEBUG_RWSEMS to look for lock/unlock mismatches

2018-03-26 Thread Ingo Molnar
* Waiman Long wrote: > For a rwsem, locking can either be exclusive or shared. The corresponding > exclusive or shared unlock must be used. Otherwise, the protected data > structures may get corrupted or the lock may be in an inconsistent state. > > In order to detect such anomaly, a new config

Re: [PATCH v1 2/3] perf version: Print the status of compiled-in libraries

2018-03-26 Thread Jin, Yao
On 3/27/2018 1:58 PM, Ingo Molnar wrote: * Jin Yao wrote: +#ifdef HAVE_DWARF_SUPPORT +#ifdef HAVE_DWARF_GETLOCATIONS +#ifdef NO_GLIBC +#ifdef HAVE_GTK2_SUPPORT +#ifdef HAVE_LIBAUDIT_SUPPORT +#ifdef HAVE_LIBBFD_SUPPORT +#ifdef HAVE_LIBELF_SUPPORT +#ifdef HAVE_LIBNUMA_SUPPORT +#ifdef NO_LIBPE

Re: [PATCH 06/10] .gitignore: move *-asn1.[ch] patterns to the top-level .gitignore

2018-03-26 Thread Masahiro Yamada
+CC linux-cry...@vger.kernel.org No functional change, though. 2018-03-23 22:04 GMT+09:00 Masahiro Yamada : > These are common patterns where source files are parsed by the > asn1_compiler. > > Signed-off-by: Masahiro Yamada > --- > > .gitignore | 5 + > crypt

Re: [PATCH 07/10] kbuild: clean up *-asn1.[ch] patterns from top-level Makefile

2018-03-26 Thread Masahiro Yamada
+CC linux-cry...@vger.kernel.org No functional change, though. 2018-03-23 22:04 GMT+09:00 Masahiro Yamada : > Clean up these patterns from the top Makefile to omit 'clean-files' > in each Makefile. > > Signed-off-by: Masahiro Yamada > --- > > Makefile| 1 + > crypto/Make

Re: [PATCH v1 3/3] perf: Support perf -vv

2018-03-26 Thread Ingo Molnar
* Jin Yao wrote: > +++ b/tools/perf/perf.c > @@ -64,6 +64,7 @@ static struct cmd_struct commands[] = { > { "top",cmd_top,0 }, > { "annotate", cmd_annotate, 0 }, > { "version",cmd_version,0 }, > + { "version2", cmd_version2, 0 }, > { "sc

Re: [PATCH] ALSA: aloop: Mark paused device as inactive

2018-03-26 Thread Takashi Iwai
On Tue, 27 Mar 2018 07:41:44 +0200, Robert Rosengren wrote: > > On 03/26/2018 04:43 PM, Takashi Iwai wrote: > > On Mon, 26 Mar 2018 07:24:49 +0200, > > Robert Rosengren wrote: > >> > >> Show paused ALSA aloop device as inactive, i.e. the control > >> "PCM Slave Active" set as false. Notification s

Re: [PATCH v1 2/3] perf version: Print the status of compiled-in libraries

2018-03-26 Thread Ingo Molnar
* Jin Yao wrote: > +#ifdef HAVE_DWARF_SUPPORT > +#ifdef HAVE_DWARF_GETLOCATIONS > +#ifdef NO_GLIBC > +#ifdef HAVE_GTK2_SUPPORT > +#ifdef HAVE_LIBAUDIT_SUPPORT > +#ifdef HAVE_LIBBFD_SUPPORT > +#ifdef HAVE_LIBELF_SUPPORT > +#ifdef HAVE_LIBNUMA_SUPPORT > +#ifdef NO_LIBPERL > +#ifdef NO_LIBPYTHON >

Re: [PATCH v6] kernel.h: Retain constant expression output for max()/min()

2018-03-26 Thread Ingo Molnar
* Kees Cook wrote: > In the effort to remove all VLAs from the kernel[1], it is desirable to > build with -Wvla. However, this warning is overly pessimistic, in that > it is only happy with stack array sizes that are declared as constant > expressions, and not constant values. One case of this i

Re: [PATCH] objtool: fix build with future Make

2018-03-26 Thread Masahiro Yamada
2018-03-26 7:32 GMT+09:00 Rasmus Villemoes : > I tried building using a freshly built Make (4.2.1-69-g8a731d1), but the > objtool build broke with > > orc_dump.c: In function ‘orc_dump’: > orc_dump.c:106:2: error: ‘elf_getshnum’ is deprecated > [-Werror=deprecated-declarations] > if (elf_getshdr

Re: [PATCH] ALSA: aloop: Mark paused device as inactive

2018-03-26 Thread Robert Rosengren
On 03/26/2018 04:43 PM, Takashi Iwai wrote: > On Mon, 26 Mar 2018 07:24:49 +0200, > Robert Rosengren wrote: >> >> Show paused ALSA aloop device as inactive, i.e. the control >> "PCM Slave Active" set as false. Notification sent upon state change. >> >> This makes it possible for client capturing fr

[PATCH v2 06/21] kconfig: remove string expansion for mainmenu after yyparse()

2018-03-26 Thread Masahiro Yamada
Now that environments are expanded in the lexer, conf_parse() does not need to explicitly expand $ARCH and $KERNELVERSION in the mainmenu. The hack introduced by commit 0724a7c32a54 ("kconfig: Don't leak main menus during parsing") can go away. Signed-off-by: Masahiro Yamada --- Changes in v2:

[PATCH v2 08/21] kconfig: replace $UNAME_RELEASE with function call

2018-03-26 Thread Masahiro Yamada
Now that 'shell' function is supported, this can be self-contained in Kconfig. Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 3 +-- init/Kconfig | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4ae1486..5c395ed 100644 --

[PATCH v2 15/21] gcov: remove CONFIG_GCOV_FORMAT_AUTODETECT

2018-03-26 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 v2 13/21] kconfig: add CC_IS_GCC and GCC_VERSION

2018-03-26 Thread Masahiro Yamada
This will be useful to specify the required compiler version, like this: config FOO bool "Use Foo" depends on GCC_VERSION >= 408000 help This feature requires GCC 4.8 or newer. Signed-off-by: Masahiro Yamada --- Changes in v2: None init/Kconfig | 8

[PATCH v2 03/21] kconfig: move and rename sym_expand_string_value()

2018-03-26 Thread Masahiro Yamada
This helper expands symbols contained in a string. I am about to change it to expand environments instead of symbols. Also, I will add function expansion later. Rename it to expand_string_value(), and move it to util.c, which is a more suitable place. Signed-off-by: Masahiro Yamada --- Change

[PATCH v2 01/21] kbuild: remove kbuild cache

2018-03-26 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 v2 07/21] kconfig: add function support and implement 'shell' function

2018-03-26 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, ...) (Actually, this syntax was inspired by make.) Real examples will look like this: $(shell echo hello world) $(cc-option -fstackprotector) Th

[PATCH v2 05/21] kconfig: remove string expansion in file_lookup()

2018-03-26 Thread Masahiro Yamada
There are two callers of file_lookup(). [1] zconf_initscan() This is used to open the first Kconfig. However, it cannot contain environments in the file path because zconf_fopen() is called before file_lookup(). By swapping the call order, KBUILD_KCONFIG would be able to contain

[PATCH v2 02/21] kbuild: remove CONFIG_CROSS_COMPILE support

2018-03-26 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 v2 12/21] kconfig: show compiler version text in the top comment

2018-03-26 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 v2 09/21] kconfig: add 'macro' keyword to support user-defined function

2018-03-26 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 -c -x c /dev/null -o /dev/null) && echo y) || echo n) This works, but it is ugly to repeat this long boilerplate. We want to describe like th

[PATCH v2 16/21] kcov: imply GCC_PLUGINS and GCC_PLUGIN_SANCOV instead of select'ing them

2018-03-26 Thread Masahiro Yamada
As Documentation/kbuild/kconfig-language.txt notes, 'select' should be used with care - it forces a lower limit of another symbol, ignoring the dependency. In this case, KCOV can select GCC_PLUGINS even if 'depends on HAVE_GCC_PLUGINS' is unmet. 'imply' is modest enough to observe the dependency,

[PATCH v2 10/21] kconfig: add 'success' and 'cc-option' macros

2018-03-26 Thread Masahiro Yamada
'cc-option' will be the most frequently used macro. It evaluates to 'y' if the given argument is supported by the compiler, or 'n' otherwise. Signed-off-by: Masahiro Yamada --- Changes in v2: - Implement 'success' as a macro init/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --g

[PATCH v2 14/21] kconfig: add CC_IS_CLANG and CLANG_VERSION

2018-03-26 Thread Masahiro Yamada
This will be useful to describe the clang version dependency. Signed-off-by: Masahiro Yamada --- Changes in v2: None init/Kconfig | 7 +++ scripts/clang-version.sh | 24 +++- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/init/Kconfig b/in

[PATCH v2 19/21] gcc-plugins: test GCC plugin support in Kconfig

2018-03-26 Thread Masahiro Yamada
Run scripts/gcc-plugin.sh from Kconfig. Users can enable GCC_PLUGINS only when it is supported. Signed-off-by: Masahiro Yamada --- Changes in v2: None arch/Kconfig | 4 +++ scripts/Makefile.gcc-plugins | 82 scripts/gcc-plugin.sh

[PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-26 Thread Masahiro Yamada
To get an environment value, Kconfig needs to define a symbol using "option env=" syntax. It is tedious to add a config entry for each environment given that we need more environments such as 'CC', 'AS', 'srctree' etc. to evaluate the compiler capability in Kconfig. Adding '$' to symbols is weird

[PATCH v2 21/21] arm64: move GCC version check for ARCH_SUPPORTS_INT128 to Kconfig

2018-03-26 Thread Masahiro Yamada
This becomes much neater in Kconfig. Signed-off-by: Masahiro Yamada --- Changes in v2: - Newly added arch/arm64/Kconfig | 1 + arch/arm64/Makefile | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7381eeb..0c97f40 100644 ---

[PATCH v2 18/21] gcc-plugins: move GCC version check for PowerPC to Kconfig

2018-03-26 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 v2: None arch/powerpc/Kconfig | 2 +- script

[PATCH v2 17/21] gcc-plugins: always build plugins with C++

2018-03-26 Thread Masahiro Yamada
If the target compiler is GCC 4.8 or newer, plugins are compiled with HOSTCXX. Otherwise, gcc-plugin.sh will select HOSTCC or HOSTCXX. To simplify things, drop the HOSTCC support for plugins. If you use GCC plugins, the requirement for the target compiler is GCC 4.8 (or older compiler with neces

[PATCH v2 11/21] stack-protector: test compiler capability in Kconfig and drop AUTO mode

2018-03-26 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 implici

[PATCH v2 00/21] kconfig: move compiler capability tests to Kconfig

2018-03-26 Thread Masahiro Yamada
Here is v2 to start to move compiler capability tests to Kconfig. V1: https://lkml.org/lkml/2018/2/16/610 I brushed up the implementation even more. Major changes for v2: [1] Environments and functions are expanded in the lexer (zconf.l) The parser (zconf.y) receives expanded tokens. This

[PATCH v2 20/21] gcc-plugins: enable GCC_PLUGINS for COMPILE_TEST

2018-03-26 Thread Masahiro Yamada
The plugin availability is checked in Kconfig, so all{yes,mod}config will not be bothered. Remove 'depends on !COMPILE_TEST'. Signed-off-by: Masahiro Yamada --- Changes in v2: - Remove more 'depends on' arch/Kconfig | 4 1 file changed, 4 deletions(-) diff --git a/arch/Kconfig b/arch/

[PATCH v5 3/3] arm64: allwinner: a64: bananapi-m64: add usb otg

2018-03-26 Thread Jagan Teki
Add usb otg support for bananapi-m64 board, - USB-ID connected with PH9 - USB-DRVVBUS controlled by N_VBUSEN pin from PMIC Signed-off-by: Jagan Teki Reviewed-by: Chen-Yu Tsai --- Changes for v5: - Kept reg_drivevbus node in alphabetical order. - Collect Chen-Yu reviewed-by tag Changes for v4: -

[PATCH v5 1/3] regulator: axp20x: add drivevbus support for axp803

2018-03-26 Thread Jagan Teki
Like axp221, axp223, axp813 the axp803 is also supporting external regulator to drive the OTG VBus through N_VBUSEN PMIC pin. Add support for it. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring Reviewed-by: Chen-Yu Tsai --- Changes for v5: - Collect Chen-Yu reviewed-by tag Changes for v4:

[PATCH v5 2/3] arm64: allwinner: axp803: Add drivevbus regulator

2018-03-26 Thread Jagan Teki
Add reg_drivevbus regualtor for boards which are using external regulator to drive the OTG VBus through N_VBUSEN PMIC pin. Signed-off-by: Jagan Teki Reviewed-by: Chen-Yu Tsai --- Changes for v5: - Collect Chen-Yu reviewed-by tag Changes for v4: - rebase on master Changes for v3: - none arch/ar

Re: [tip:irq/core 12/13] drivers/irqchip/irq-vic.c:295:2: error: implicit declaration of function 'set_handle_irq'; did you mean 'vic_handle_irq'?

2018-03-26 Thread Thomas Gleixner
On Mon, 26 Mar 2018, Palmer Dabbelt wrote: > On Mon, 26 Mar 2018 01:07:54 PDT (-0700), Arnd Bergmann wrote: > > On Tue, Mar 20, 2018 at 6:52 PM, Palmer Dabbelt wrote: > > > On Tue, 20 Mar 2018 00:53:21 PDT (-0700), t...@linutronix.de wrote: > > > > > > > > On Tue, 20 Mar 2018, kbuild test robot w

Re: [PATCH v4 0/8] ARM: davinci: complete the conversion to using the reset framework

2018-03-26 Thread Sekhar Nori
Hi Suman, On Tuesday 27 March 2018 06:12 AM, Suman Anna wrote: > I tried booting your tree [3] on the OMAPL138-LCDK board. I am using > NFS, and I am unable to get to the console. I don't have any issues > booting latest -next branch (next-20180326) which only has the reset and

Re: [PATCH v3 1/2] staging: media: davinci_vpfe: add error handling on kmalloc failure

2018-03-26 Thread Dan Carpenter
On Tue, Mar 27, 2018 at 02:00:45PM +0900, Ji-Hun Kim wrote: > > Are there any opinions? I'd like to know how this patch is going. > Looks good. Thanks! Greg just hasn't gotten to it yet. regards, dan carpenter

Re: [PATCH 2/2] KVM: VMX: Add Force Emulation Prefix for "emulate the next instruction"

2018-03-26 Thread Konrad Rzeszutek Wilk
On Tue, Mar 27, 2018 at 01:03:15PM +0800, Wanpeng Li wrote: > 2018-03-27 12:55 GMT+08:00 Konrad Rzeszutek Wilk : > > On Tue, Mar 27, 2018 at 12:40:20AM -0400, Konrad Rzeszutek Wilk wrote: > >> On Mon, Mar 26, 2018 at 07:12:15PM -0700, Wanpeng Li wrote: > >> > From: Wanpeng Li > >> > > >> > This pa

[PATCH] checkpatch: Test SYMBOLIC_PERMS multiple times per line

2018-03-26 Thread Joe Perches
There are occasions where symbolic perms are used in a ternary like return (channel == 0) ? S_IRUGO | S_IWUSR : S_IRUGO; The current test will find the first use "S_IRUGO | S_IWUSR" but not the second use "S_IRUGO" on the same line. Improve the test to look for all instances on a

Re: [PATCH] staging: wilc1000: replace kmalloc + memcpy with kmemdup

2018-03-26 Thread Ajay Singh
On Mon, 26 Mar 2018 18:16:29 +0100 Colin King wrote: > From: Colin Ian King > > Replace several allocation and memcpys with kmemdup and add in some > missing memory allocation failure checks. Also fix an incorrect > -EFAULT return with -ENOMEM. > > Signed-off-by: Colin Ian King > --- > dri

Re: [PATCH 2/2] KVM: VMX: Add Force Emulation Prefix for "emulate the next instruction"

2018-03-26 Thread Wanpeng Li
2018-03-27 12:40 GMT+08:00 Konrad Rzeszutek Wilk : > On Mon, Mar 26, 2018 at 07:12:15PM -0700, Wanpeng Li wrote: >> From: Wanpeng Li >> >> This patch introduces a Force Emulation Prefix (ud2a; .ascii "kvm") for >> "emulate the next instruction", the codes will be executed by emulator >> instead of

Re: [PATCH v3 1/6] phy: qcom-qmp: Enable pipe_clk before checking USB3 PHY_STATUS

2018-03-26 Thread Manu Gautam
Hi Doug, On 3/27/2018 9:56 AM, Doug Anderson wrote: > Manu > > On Thu, Mar 22, 2018 at 11:11 PM, Manu Gautam wrote: >> QMP PHY for USB mode requires pipe_clk for calibration and PLL lock >> to take place. This clock is output from PHY to GCC clock_ctl and then >> fed back to QMP PHY and is avail

Re: [PATCH 2/2] KVM: VMX: Add Force Emulation Prefix for "emulate the next instruction"

2018-03-26 Thread Wanpeng Li
2018-03-27 12:55 GMT+08:00 Konrad Rzeszutek Wilk : > On Tue, Mar 27, 2018 at 12:40:20AM -0400, Konrad Rzeszutek Wilk wrote: >> On Mon, Mar 26, 2018 at 07:12:15PM -0700, Wanpeng Li wrote: >> > From: Wanpeng Li >> > >> > This patch introduces a Force Emulation Prefix (ud2a; .ascii "kvm") for >> > "e

Re: [PATCH v3 1/2] staging: media: davinci_vpfe: add error handling on kmalloc failure

2018-03-26 Thread Ji-Hun Kim
On Wed, Mar 21, 2018 at 01:39:09PM +0900, Ji-Hun Kim wrote: > There is no failure checking on the param value which will be allocated > memory by kmalloc. Add a null pointer checking statement. Then goto error: > and return -ENOMEM error code when kmalloc is failed. > > Signed-off-by: Ji-Hun Kim

Re: [RFC] new SYSCALL_DEFINE/COMPAT_SYSCALL_DEFINE wrappers

2018-03-26 Thread John Paul Adrian Glaubitz
On 03/27/2018 12:40 PM, Linus Torvalds wrote: > On Mon, Mar 26, 2018 at 4:37 PM, John Paul Adrian Glaubitz > wrote: >> >> What about a tarball with a minimal Debian x32 chroot? Then you can >> install interesting packages you would like to test yourself. > > That probably works fine. I just crea

Re: [PATCH 2/2] KVM: VMX: Add Force Emulation Prefix for "emulate the next instruction"

2018-03-26 Thread Konrad Rzeszutek Wilk
On Tue, Mar 27, 2018 at 12:40:20AM -0400, Konrad Rzeszutek Wilk wrote: > On Mon, Mar 26, 2018 at 07:12:15PM -0700, Wanpeng Li wrote: > > From: Wanpeng Li > > > > This patch introduces a Force Emulation Prefix (ud2a; .ascii "kvm") for > > "emulate the next instruction", the codes will be executed

Re: linux-next: manual merge of the powerpc tree with the powerpc-fixes tree

2018-03-26 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > Today's linux-next merge of the powerpc tree got a conflict in: > > arch/powerpc/include/asm/cputable.h > arch/powerpc/kernel/dt_cpu_ftrs.c > > between commit: > > a5d4b5891c2f ("powerpc/mm: Fixup tlbie vs store ordering issue on POWER9") > > from the

Re: [PATCH 1/1] aio: make sure the input "timeout" value is valid

2018-03-26 Thread Deepa Dinamani
On Mon, Mar 26, 2018 at 2:55 PM, Matthew Wilcox wrote: > On Mon, Mar 26, 2018 at 10:01:30PM +0200, Arnd Bergmann wrote: >> I had suggested a more complete helper function at some point, >> to take care of all combinations of checking/non-checking, 32/64 >> bit, microsecond/nanosecond, and zeroing/

Re: [PATCH 2/2] KVM: VMX: Add Force Emulation Prefix for "emulate the next instruction"

2018-03-26 Thread Konrad Rzeszutek Wilk
On Mon, Mar 26, 2018 at 07:12:15PM -0700, Wanpeng Li wrote: > From: Wanpeng Li > > This patch introduces a Force Emulation Prefix (ud2a; .ascii "kvm") for > "emulate the next instruction", the codes will be executed by emulator > instead of processor, for testing purposes. Can you expand a bit

Re: [PATCH 1/2] KVM: VMX: Introduce handle_ud()

2018-03-26 Thread Konrad Rzeszutek Wilk
On Mon, Mar 26, 2018 at 07:12:14PM -0700, Wanpeng Li wrote: > From: Wanpeng Li > > Introduce handle_ud() to handle invalid opcode, this function will be > used by later patches. > Reviewed-by: Konrad Rzeszutek Wilk Thank you! > Cc: Paolo Bonzini > Cc: Radim Krčmář > Cc: Andrew Cooper > Sig

[PATCH] nvme-multipath: implement active-active round-robin path selector

2018-03-26 Thread Baegjae Sung
Some storage environments (e.g., dual-port NVMe SSD) provide higher performance when using multiple paths simultaneously. Choosing a path from multiple paths in a round-robin fashion is a simple and efficient way to meet these requirements. We implement the active-active round-robin path selector

Re: [PATCH v4 2/3] arm64: Implement page table free interfaces

2018-03-26 Thread Chintan Pandya
On 3/26/2018 3:25 PM, Mark Rutland wrote: On Tue, Mar 20, 2018 at 05:15:13PM +0530, Chintan Pandya wrote: +static int __pmd_free_pte_page(pmd_t *pmd, unsigned long addr, bool tlb_inv) +{ + pmd_t *table; + + if (pmd_val(*pmd)) { + table = __va(pmd_val(*pmd)); +

RE: [PATCH] Input: ALPS - fix DualPoint flag for 74 03 28 devices

2018-03-26 Thread Masaki Ota
Hi, We can get OTP page 0 value by EA EA E9 commands, but we cannot get it by EA EA EA E9. As far as I remember, Device initialization finish at EA command, then sends EA EA E9 commands. In this case we cannot get correct OTP page 0 value. So I changed this order. (We can get OTP page 1 value b

Re: [PATCH v3 1/6] phy: qcom-qmp: Enable pipe_clk before checking USB3 PHY_STATUS

2018-03-26 Thread Doug Anderson
Manu On Thu, Mar 22, 2018 at 11:11 PM, Manu Gautam wrote: > QMP PHY for USB mode requires pipe_clk for calibration and PLL lock > to take place. This clock is output from PHY to GCC clock_ctl and then > fed back to QMP PHY and is available from PHY only after PHY is reset > and initialized, hence

Re: [PATCH v4] mm, pkey: treat pkey-0 special

2018-03-26 Thread Balbir Singh
On Tue, Mar 27, 2018 at 2:48 PM, Michael Ellerman wrote: > Ram Pai writes: > >> On Fri, Mar 16, 2018 at 10:02:22PM +1100, Balbir Singh wrote: >>> On Fri, Mar 16, 2018 at 9:33 PM, Ram Pai wrote: >>> > Applications need the ability to associate an address-range with some >>> > key and latter rever

Re: [PATCH 1/9] x86, pkeys: do not special case protection key 0

2018-03-26 Thread Dave Hansen
On 03/26/2018 07:27 PM, Ram Pai wrote: >> This is a bit nicer than what Ram proposed because it is simpler >> and removes special-casing for pkey 0. On the other hand, it does >> allow applciations to pkey_free() pkey-0, but that's just a silly >> thing to do, so we are not going to protect agains

Re: [PATCH 08/10] kbuild: rename *-asn1.[ch] to *.asn.[ch]

2018-03-26 Thread Masahiro Yamada
2018-03-27 0:45 GMT+09:00 David Howells : > The subject isn't consistent with the patch. I presume you mean: > > kbuild: rename *-asn1.[ch] to *.asn1.[ch] > > David > -- I noticed this after submitting it. I fixed it up locally, and testing with 0-day bot. Thanks! -- Best Regards Ma

RE: [LINUX PATCH v8 2/2] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2018-03-26 Thread Naga Sureshkumar Relli
Hi Miquel, Thanks for clarifying the queries. I will send next version by addressing all the comments given. Thanks, Naga Sureshkumar Relli. > -Original Message- > From: Miquel Raynal [mailto:miquel.ray...@bootlin.com] > Sent: Tuesday, March 27, 2018 3:24 AM > To: Naga Sureshkumar Relli

Re: [PATCH] Fixes in TI QSPI driver to allow more than one flash chip

2018-03-26 Thread Vignesh R
On Thursday 22 March 2018 06:03 PM, Kwiatkowski, Arkadiusz wrote: > Add checking for which SPI device was memory-mapped to allow more than > one flash device being used on QSPI bus. Fix parameters order in > regmap_update_bits calls. > > Signed-off-by: Arkadiusz Kwiatkowski > --- Thanks for th

[no subject]

2018-03-26 Thread anderslindgaard
hi LINUX https://goo.gl/5vMFnmanderslindgaard

Re: [PATCH v9 21/24] perf tools: Add support for the SPF perf event

2018-03-26 Thread Andi Kleen
On Mon, Mar 26, 2018 at 02:44:48PM -0700, David Rientjes wrote: > On Tue, 13 Mar 2018, Laurent Dufour wrote: > > > Add support for the new speculative faults event. > > > > Signed-off-by: Laurent Dufour > > Acked-by: David Rientjes > > Aside: should there be a new spec_flt field for struct ta

Re: [PATCH v4] mm, pkey: treat pkey-0 special

2018-03-26 Thread Michael Ellerman
Ram Pai writes: > On Fri, Mar 16, 2018 at 10:02:22PM +1100, Balbir Singh wrote: >> On Fri, Mar 16, 2018 at 9:33 PM, Ram Pai wrote: >> > Applications need the ability to associate an address-range with some >> > key and latter revert to its initial default key. Pkey-0 comes close to >> > providin

  1   2   3   4   5   6   7   8   9   >