Re: [greybus-dev] [PATCH] staging: greybus: mark PM functions as __maybe_unused

2017-05-19 Thread Arnd Bergmann
On Fri, May 19, 2017 at 5:40 AM, Viresh Kumar wrote: > On 18-05-17, 16:51, Arnd Bergmann wrote: >> I find that a lot of users get the #ifdef wrong, either using the wrong >> macro (CONFIG_PM vs CONFIG_PM_SLEEP) or not using the right >> set of functions (e.g. calling a function only from the

[PATCH v2 3/9] crypto: ixp4xx - Use IPAD/OPAD constant

2017-05-19 Thread Corentin Labbe
This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe --- drivers/crypto/ixp4xx_crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index

Re: [PATCH 21/30] men-chameleon-bus.txt: standardize document format

2017-05-19 Thread Johannes Thumshirn
On 05/19/2017 03:24 AM, Mauro Carvalho Chehab wrote: > Each text file under Documentation follows a different > format. Some doesn't even have titles! > > Change its representation to follow the adopted standard, > using ReST markups for it to be parseable by Sphinx: > > - Adjust identations; > -

[PATCH v2] staging: iio: light: Replace symbolic permissions as per coding style

2017-05-19 Thread surenderpolsani
From: Surender Polsani Fixed the following checkpatch.pl warnings: octal permissions are more preferable than symbolic permissions Replaced DEVICE_ATTR family macros with DEVICE_ATTR_RW family as suggested by Greg K-H. Changed attributes and function names where ever required to satisfy

[PATCH 0/4] net-next: stmmac: rework the speed selection

2017-05-19 Thread Corentin Labbe
Hello The current stmmac_adjust_link() part which handle speed have some if (has_platform) code and my dwmac-sun8i will add more of them. So we need to handle better speed selection. Moreover the struct link member speed and port are hard to guess their purpose. And their unique usage are to be

[PATCH 1/4] net-next: stmmac: Convert new_state to bool

2017-05-19 Thread Corentin Labbe
This patch convert new_state from int to bool since it store only 1 or 0 Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

[PATCH v4 4/6] ARM: sun8i: a83t: Add CCU device nodes

2017-05-19 Thread Chen-Yu Tsai
Now that we have support for the A83T CCU, add a device node for it, and replace any existing placeholder clock phandles with the correct ones. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git

[PATCH v4 0/6] clk: sunxi-ng: Add support for A83T CCU

2017-05-19 Thread Chen-Yu Tsai
Hi everyone, This is v4 of my A83T CCU series. This is for 4.13. Changes since v3: - Dropped predivider for new timing mode on mmc2 clock. Replaced with a TODO note for new timing mode support. This is the last trace of new timing mode code. - Simplified PLL_CPUx clocks into

[PATCH v4 2/6] clk: sunxi-ng: Support multiple variable pre-dividers

2017-05-19 Thread Chen-Yu Tsai
On the A83T, the AHB1 clock has a shared pre-divider on the two PLL-PERIPH clock parents. To support such instances of shared pre-dividers, this patch extends the mux clock type to support multiple variable pre-dividers. As the pre-dividers are only used to calculate the rate, but do not

[PATCH v2 0/3] ACPI / EC: Add quirk modes for boot EC support

2017-05-19 Thread Lv Zheng
It's reported that Asus laptop X580VD/X550VXK/FX502VD/FX502VE have a BIOS bug where the ECDT correctly states that EC events trigger GPE 0x23, but the DSDT _GPE method incorrectly returns GPE 0x33. This patchset fixes this issue. Link: https://www.spinics.net/lists/linux-acpi/msg73763.html

[PATCH v2 1/3] ACPI / EC: Enhance boot EC sanity check

2017-05-19 Thread Lv Zheng
It's reported that some buggy BIOS tables can contain 2 DSDT ECs and one of them is invalid. As we shouldn't evaluate _STA from acpi_ec_dsdt_probe() due to the unknown Windows enumeration order, this patch simply enhances sanity checks in ec_parse_device() as a workaround to skip probing wrong

[PATCH v4 1/6] dt-bindings: clock: sunxi-ccu: Add compatible string for A83T CCU

2017-05-19 Thread Chen-Yu Tsai
The A83T clock control unit is a hybrid of some new style clock designs from the A80, and old style layout from the other Allwinner SoCs. Like the A80, the SoC does not have a low speed 32.768 kHz oscillator. Unlike the A80, there is no clock input either. The only low speed clock available is

Re: [dm-devel] [PATCH v7 0/2] dm: boot a mapped device without an initramfs

2017-05-19 Thread Enric Balletbo Serra
Hi, 2017-05-18 18:29 GMT+02:00 Enric Balletbo i Serra : > Dear all, > > So here is a new version of the patches to be reviewed, this time as > suggested by Alasdair the patches are reworked to match with the new > dmsetup bootformat feature [1]. These patches are not reviewed yet but > the format

[PATCH] mm/vmstat: add oom_kill counter

2017-05-19 Thread Konstantin Khlebnikov
Show count of global oom killer invocations in /proc/vmstat Signed-off-by: Konstantin Khlebnikov --- include/linux/vm_event_item.h |1 + mm/oom_kill.c |1 + mm/vmstat.c |1 + 3 files changed, 3 insertions(+) diff --git

[PATCH v2 3/3] ACPI / EC: Fix media keys not working problem on some Asus laptops

2017-05-19 Thread Lv Zheng
From: Chris Chiu Some Asus laptops (verified on X550VXK/FX502VD/FX502VE) get no interrupts when pressing media keys thus the corresponding functions are not invoked. It's due to the _GPE defines in DSDT for EC returns differnt value compared to the GPE Number in ECDT. Confirmed with Asus that

[PATCH v2 2/3] ACPI / EC: Add support to skip boot stage DSDT probe

2017-05-19 Thread Lv Zheng
Long time ago, Linux EC driver won't probe DSDT EC during boot. It was added by the following commit (see link #1 for bug report): Commit: c5279dee26c0e8d7c4200993bfc4b540d2469598 Subject: ACPI: EC: Add some basic check for ECDT data This is wrong as the only way to know if the DSDT EC is

[PATCH v4 6/6] ARM: sun8i: a83t: Switch to CCU device tree binding macros

2017-05-19 Thread Chen-Yu Tsai
Now that the CCU device tree binding headers have been merged, we can use the properly named macros in the device tree, instead of raw numbers. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCH] lockdep: do not count lock class operations without CONFIG_DEBUG_LOCKDEP

2017-05-19 Thread Konstantin Khlebnikov
Currently this counter shown in /proc/lockdep if CONFIG_DEBUG_LOCKDEP=y This patch disables it completely if this option is disabled. This counter might be useful for debugging lockdep itself, but for normal debugging it seems useless. Lockstat provides more detailed statistics. This atomic_inc

[PATCH v4 5/6] ARM: sun8i: a83t: Set clock accuracy for 24MHz oscillator

2017-05-19 Thread Chen-Yu Tsai
The datasheets for Allwinner SoCs set strict requirements on the stability of the external crystal oscillators. Add the accuracy for the main 24MHz oscillator to the device tree. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 3/6] clk: sunxi-ng: Add driver for A83T CCU

2017-05-19 Thread Chen-Yu Tsai
The A83T clock control unit is a hybrid of some new style clock designs from the A80, and old style layout from the other Allwinner SoCs. Like the A80, the SoC does not have a low speed 32.768 kHz oscillator. Unlike the A80, there is no clock input either. The only low speed clock available is

Re: [lkp-robot] [sched/cfs] 625ed2bf04: unixbench.score -7.4% regression

2017-05-19 Thread Vincent Guittot
On 19 May 2017 at 08:07, kernel test robot wrote: > > Greeting, > > FYI, we noticed a -7.4% regression of unixbench.score due to commit: That's interesting because it's just the opposite of what I received 4 days ago for unixbench shell1 test. I'm going to have a look: >From kernel test robot

[PATCH 4/4] net-next: stmmac: rework the speed selection

2017-05-19 Thread Corentin Labbe
The current stmmac_adjust_link() part which handle speed have some if (has_platform) code and my dwmac-sun8i will add more of them. So we need to handle better speed selection. Moreover the struct link member speed and port are hard to guess their purpose. And their unique usage are to be

[PATCH 3/4] net-next: stmmac: use SPEED_xxx instead of raw value

2017-05-19 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index e008cded388e..a1ab52e29359

[PATCH] kbuild: add GNU Make version check

2017-05-19 Thread Masahiro Yamada
As Documentation/process/changes.rst says, Kbuild now depends on GNU Make 3.81 or later. If invoked with older versions, it fails with an unclear error message. $ make defconfig HOSTCC scripts/basic/fixdep scripts/Makefile.host:135: *** missing separator. Stop. make: *** [defconfig] Error 2

[PATCH] ext4: handle the rest of ext4_mb_load_buddy() ENOMEM errors

2017-05-19 Thread Konstantin Khlebnikov
I've got another report about breaking ext4 by ENOMEM error returned from ext4_mb_load_buddy() caused by memory shortage in memory cgroup. This time inside ext4_discard_preallocations(). This patch replaces ext4_error() with ext4_warning() where errors returned from ext4_mb_load_buddy() are not

[PATCH v2] kbuild: simplify silent build (-s) detection

2017-05-19 Thread Masahiro Yamada
This allows to detect -s (--silent) option without checking GNU Make version. As commit e36aaea28972 ("kbuild: Fix silent builds with make-4") pointed out, GNU Make 4.x changed the way/order it presents the command line options into MAKEFLAGS. In Make 3.8x, 's' is always be the first in a group

[PATCH 2/4] net-next: stmmac: Remove unnecessary parenthesis

2017-05-19 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 2b778f63d1d5..e008cded388e 100644

[PATCH v8 1/2] init: add support to directly boot to a mapped device

2017-05-19 Thread Enric Balletbo i Serra
From: Will Drewry Add a dm= kernel parameter modeled after the md= parameter from do_mounts_md. It allows for device-mapper targets to be configured at boot time for use early in the boot process (as the root device or otherwise). Signed-off-by: Will Drewry Signed-off-by: Kees Cook [rework to

[PATCH v8 0/2] dm: boot a mapped device without an initramfs

2017-05-19 Thread Enric Balletbo i Serra
Dear all, So here is a new version of the patches to be reviewed, this time as suggested by Alasdair the patches are reworked to match with the new dmsetup bootformat feature [1]. These patches are not reviewed yet but the format was discussed in the IRC and was suggested to send the kernel

[PATCH] rcu: mark debug_lockdep_rcu_enabled() as pure

2017-05-19 Thread Konstantin Khlebnikov
This allows to get rid of unneeded invocations. Function debug_lockdep_rcu_enabled() becomes really hot if several debug options are enabled together with CONFIG_PROVE_RCU. Hottest path ends with: debug_lockdep_rcu_enabled is_ftrace_trampoline __kernel_text_address Here

[PATCH v8 2/2] dm ioctl: add a device mapper ioctl function.

2017-05-19 Thread Enric Balletbo i Serra
Add a dm_ioctl_cmd to issue the equivalent of a DM ioctl call in kernel. Signed-off-by: Enric Balletbo i Serra --- drivers/md/dm-ioctl.c | 50 +++ include/linux/device-mapper.h | 6 ++ 2 files changed, 56 insertions(+) diff --git

Re: [PATCH v2 00/10] rt2x00: rt2x00: improve calling conventions for register accessors

2017-05-19 Thread Kalle Valo
Arnd Bergmann writes: > On Fri, May 19, 2017 at 8:44 AM, Tom Psyborg > wrote: >> warning: 'rt2800_bbp_read' used but never defined >> static u8 rt2800_bbp_read(struct rt2x00_dev *rt2x00dev, >>^ >>

Re: [PATCH v5 15/17] dt-bindings: qca7000: append UART interface to binding

2017-05-19 Thread Stefan Wahren
Hi Rob, Am 12.05.2017 um 08:43 schrieb Jakub Kicinski: > On Fri, 12 May 2017 06:15:52 +, Michael Heimpold wrote: >> Hi, >> >> Zitat von Jakub Kicinski : >> >>> On Thu, 11 May 2017 21:12:22 +0200, Michael Heimpold wrote: Am Mittwoch, 10. Mai 2017, 10:53:26 CEST schrieb Stefan Wahren:

Re: [PATCH v2 00/10] rt2x00: rt2x00: improve calling conventions for register accessors

2017-05-19 Thread Kalle Valo
Arnd Bergmann writes: > On Fri, May 19, 2017 at 7:18 AM, Kalle Valo wrote: >> Arnd Bergmann writes: >> >>> I've managed to split up my long patch into a series of reasonble >>> steps now. >>> >>> The first two are required to fix a regression from commit 41977e86c984 >>> ("rt2x00: add support

Re: [PATCH 3/5] mmc: cavium: Prevent crash with incomplete DT

2017-05-19 Thread Ulf Hansson
On 16 May 2017 at 11:36, Jan Glauber wrote: > In case the DT specifies neither a regulator nor a gpio > for the shared power the driver will crash accessing the regulator. > Prevent the crash by checking the regulator before use. > > As the MMC devices would likely not be usable without power >

Re: [PATCH v2] staging: iio: light: Replace symbolic permissions as per coding style

2017-05-19 Thread Greg KH
On Fri, May 19, 2017 at 12:33:11PM +0530, surenderpols...@gmail.com wrote: > From: Surender Polsani > > Fixed the following checkpatch.pl warnings: > octal permissions are more preferable than symbolic permissions > > Replaced DEVICE_ATTR family macros with DEVICE_ATTR_RW family > as suggested

Re: [linux-sunxi] [PATCH v6 9/9] arm64: allwinner: a64: enable Wi-Fi for Pine64

2017-05-19 Thread Maxime Ripard
On Fri, May 19, 2017 at 11:03:33AM +0800, Icenowy Zheng wrote: > >The patch looks OK, but given the module is removable, I think it > >should be > >an overlay. The overlay would enable WiFi + Bluetooth, and all the > >peripherals needed to connect them. > > > >That way, if the module is not

[PATCH] ext4: keep existing extra fields when inode expands

2017-05-19 Thread Konstantin Khlebnikov
ext4_expand_extra_isize() should clear only space between old and new size. Signed-off-by: Konstantin Khlebnikov --- fs/ext4/inode.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 5834c4d76be8..7204e1a2801a 100644 ---

Re: [PATCH v2 00/10] rt2x00: rt2x00: improve calling conventions for register accessors

2017-05-19 Thread Arnd Bergmann
On Fri, May 19, 2017 at 9:15 AM, Kalle Valo wrote: > Arnd Bergmann writes: > >> On Fri, May 19, 2017 at 7:18 AM, Kalle Valo wrote: >>> Arnd Bergmann writes: >>> I've managed to split up my long patch into a series of reasonble steps now. The first two are required to fix a

Re: [PATCH 07/14] mm: consider zone which is not fully populated to have holes

2017-05-19 Thread Vlastimil Babka
On 05/18/2017 06:42 PM, Michal Hocko wrote: > On Thu 18-05-17 18:14:39, Vlastimil Babka wrote: >> On 05/15/2017 10:58 AM, Michal Hocko wrote: > [...] >>> #ifdef CONFIG_MEMORY_HOTPLUG >>> +/* >>> + * Return page for the valid pfn only if the page is online. All pfn >>> + * walkers which rely on

Re: [linux-sunxi] [PATCH v6 9/9] arm64: allwinner: a64: enable Wi-Fi for Pine64

2017-05-19 Thread icenowy
在 2017-05-19 15:19,Maxime Ripard 写道: On Fri, May 19, 2017 at 11:03:33AM +0800, Icenowy Zheng wrote: >The patch looks OK, but given the module is removable, I think it >should be >an overlay. The overlay would enable WiFi + Bluetooth, and all the >peripherals needed to connect them. > >That way,

Re: [PATCH 08/14] mm, compaction: skip over holes in __reset_isolation_suitable

2017-05-19 Thread Vlastimil Babka
On 05/15/2017 10:58 AM, Michal Hocko wrote: > From: Michal Hocko > > __reset_isolation_suitable walks the whole zone pfn range and it tries > to jump over holes by checking the zone for each page. It might still > stumble over offline pages, though. Skip those by checking > pfn_to_online_page()

[PATCH v3] pci-sysfs: Make PCI bridge attribute visible in sysfs

2017-05-19 Thread Wong Vee Khee
From: vwong In this commit, we are exposing PCIe bridges attributes such as secondary bus number, subordinate bus number, max link speed and link width, current link speed and link width to sysfs located in /sys/bus/pci/devices/... Part of the reasons we are doing this rather than getting

Re: [PATCH v3 00/21] drm: sun4i: Add support for the HDMI controller

2017-05-19 Thread Chen-Yu Tsai
On Wed, May 17, 2017 at 3:40 PM, Maxime Ripard wrote: > Hi, > > Here is an attempt at getting the HDMI controller running. > > This HDMI controller is found on a number of old Allwinner SoCs (A10, A10s, > A20, A31). > > This driver only supports for now the A10s because it was an easy target, >

Re: [PATCH v2] staging: iio: light: Replace symbolic permissions as per coding style

2017-05-19 Thread suri
On Friday 19 May 2017 12:45 PM, Greg KH wrote: On Fri, May 19, 2017 at 12:33:11PM +0530, surenderpols...@gmail.com wrote: From: Surender Polsani Fixed the following checkpatch.pl warnings: octal permissions are more preferable than symbolic permissions Replaced DEVICE_ATTR family macros with

Re: [RFC 1/6] mm, page_alloc: fix more premature OOM due to race with cpuset update

2017-05-19 Thread Michal Hocko
On Thu 18-05-17 14:07:45, Cristopher Lameter wrote: > On Thu, 18 May 2017, Michal Hocko wrote: > > > > See above. OOM Kill in a cpuset does not kill an innocent task but a task > > > that does an allocation in that specific context meaning a task in that > > > cpuset that also has a memory

Re: [PATCH -next] drm/i915: Fix return value check in kfence selftests

2017-05-19 Thread Chris Wilson
On Fri, May 19, 2017 at 12:26:05AM +, Wei Yongjun wrote: > From: Wei Yongjun > > Fix the return value check which testing the wrong variable. Already fixed up yesterday: commit ac0a73fb526100adc521ec2069623e47ca3997a8 Author: Colin Ian King Date: Thu May 18 14:39:42 2017 +0100

Re: [PATCH] mmc: block: use memdup_user

2017-05-19 Thread Ulf Hansson
On 13 May 2017 at 05:15, Geliang Tang wrote: > Use memdup_user() helper instead of open-coding to simplify the code. > > Signed-off-by: Geliang Tang > --- > drivers/mmc/core/block.c | 14 -- > 1 file changed, 4 insertions(+), 10 deletions(-) > > diff --git a/drivers/mmc/core/block.c

[PATCH v2 0/8] fujitsu-laptop: use device-specific data instead of module-wide globals

2017-05-19 Thread Michał Kępień
fujitsu-laptop registers two ACPI drivers that access each other's module-wide structures. To improve data encapsulation and lay the groundwork for separating the two aforementioned ACPI drivers into separate modules, move away from module-wide global data structures by using device-specific data

[PATCH v2 4/8] platform/x86: fujitsu-laptop: allocate struct fujitsu_laptop in acpi_fujitsu_laptop_add()

2017-05-19 Thread Michał Kępień
Only allocate memory for struct fujitsu_laptop when the FUJ02E3 ACPI device is present. Use devm_kzalloc() for allocating memory to simplify cleanup. Signed-off-by: Michał Kępień --- drivers/platform/x86/fujitsu-laptop.c | 20 1 file changed, 8 insertions(+), 12

[PATCH v2 8/8] platform/x86: fujitsu-laptop: use device-specific data in remaining module code

2017-05-19 Thread Michał Kępień
To avoid using module-wide data in remaining module code, employ acpi_driver_data() and dev_get_drvdata() to fetch device-specific data to work on in each function. This makes the input local variables in hotkey-related callbacks and the module-wide struct fujitsu_laptop redundant, so remove

[PATCH v2 3/8] platform/x86: fujitsu-laptop: use device-specific data in backlight code

2017-05-19 Thread Michał Kępień
To prevent using module-wide data in backlight-related code, employ acpi_driver_data() and bl_get_data() where possible to fetch device-specific data to work on in each function. This makes the input local variable in acpi_fujitsu_bl_notify() and the acpi_handle field of struct fujitsu_bl

[PATCH v2 7/8] platform/x86: fujitsu-laptop: use device-specific data in LED-related code

2017-05-19 Thread Michał Kępień
In order to perform their duties, all LED callbacks need a pointer to the struct acpi_device representing the FUJ02E3 ACPI device. To limit the use of the module-wide pointer, the same pointer should be extracted from data that gets passed to LED callbacks as arguments. However, LED core does

[PATCH v2 2/8] platform/x86: fujitsu-laptop: allocate struct fujitsu_bl in acpi_fujitsu_bl_add()

2017-05-19 Thread Michał Kępień
Only allocate memory for struct fujitsu_bl when the FUJ02B1 ACPI device is present. Use devm_kzalloc() for allocating memory to simplify cleanup. Due to the fact that the power property of the backlight device created by the backlight driver is accessed from acpi_fujitsu_laptop_add(), pointer to

[PATCH v2 6/8] platform/x86: fujitsu-laptop: explicitly pass ACPI device to call_fext_func()

2017-05-19 Thread Michał Kępień
Prepare for not using module-wide data in call_fext_func() by explicitly passing it a pointer to struct acpi_device while still using a module-wide pointer in each call. Doing this enables call_fext_func() to fetch the ACPI handle from its argument, making the acpi_handle field of struct

[PATCH v2 5/8] platform/x86: fujitsu-laptop: track the last instantiated FUJ02E3 ACPI device

2017-05-19 Thread Michał Kępień
fujitsu-laptop registers two ACPI drivers: one for ACPI device FUJ02B1 enabling backlight control and another for ACPI device FUJ02E3 which handles various other stuff (hotkeys, LEDs, etc.) In a perfect world, private data used by each of these drivers would be neatly encapsulated in a structure

Re: [PATCH] dm ioctl: Restore __GFP_HIGH in copy_params()

2017-05-19 Thread Michal Hocko
On Thu 18-05-17 19:50:46, Junaid Shahid wrote: > (Adding back the correct linux-mm email address and also adding linux-kernel.) > > On Thursday, May 18, 2017 01:41:33 PM David Rientjes wrote: [...] > > Let's ask Mikulas, who changed this from PF_MEMALLOC to __GFP_HIGH, > > assuming there was a

[PATCH v2 1/8] platform/x86: fujitsu-laptop: distinguish current uses of device-specific data

2017-05-19 Thread Michał Kępień
In portions of the driver which use device-specific data, rename local variables from fujitsu_bl and fujitsu_laptop to priv in order to clearly distinguish these parts from code that uses module-wide data. Signed-off-by: Michał Kępień --- drivers/platform/x86/fujitsu-laptop.c | 48

Re: [PATCH] drm/stm: add COMPILE_TEST to Kconfig (fwd)

2017-05-19 Thread Julia Lawall
] url: https://github.com/0day-ci/linux/commits/Masahiro-Yamada/drm-stm-add-COMPILE_TEST-to-Kconfig/20170519-131342 base: git://people.freedesktop.org/~airlied/linux.git drm-next :: branch date: 3 hours ago :: commit date: 3 hours ago >> drivers/gpu/drm/stm/ltdc.c:466:7-15

Re: net: ath: tx99: fixed a spelling issue

2017-05-19 Thread Kalle Valo
ammly wrote: > Fixed a spelling issue. > > Signed-off-by: Ammly Fredrick Patch applied to ath-next branch of ath.git, thanks. c46e2a848f29 ath9k: fix spelling in ath9k_tx99_init() -- https://patchwork.kernel.org/patch/9703211/

Re: [PATCH] mmc: core: Delete an error message for a failed memory allocation in three functions

2017-05-19 Thread Ulf Hansson
On 13 May 2017 at 14:54, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 13 May 2017 14:40:08 +0200 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Link: >

Re: [PATCH 2/3] livepatch: send a fake signal to all blocking tasks

2017-05-19 Thread Miroslav Benes
> > If not, we get back to exit_to_usermode_loop() and TIF_PATCH_PENDING is > > cleared. Yes, it is true that TIF_SIGPENDING is still set and we get to > > do_signal() once more. But for the last time. > > Yes, slightly sub-optimal but not really wrong and you can swap > do_signal() and

[PATCH resend] smp: avoid sending needless IPI in smp_call_function_many()

2017-05-19 Thread Aaron Lu
Inter-Processor-Interrupt(IPI) is needed when a page is unmapped and the process' mm_cpumask() shows the process has ever run on other CPUs. page migration, page reclaim all need IPIs. The number of IPI needed to send to different CPUs is especially large for multi-threaded workload since

Re: [PATCH] mfd: intel_quark_i2c_gpio: Add support for SIMATIC IOT2000 platform

2017-05-19 Thread Jan Kiszka
On 2017-05-12 10:12, Lee Jones wrote: > On Tue, 09 May 2017, Andy Shevchenko wrote: > >> On Tue, 2017-05-09 at 06:40 +0200, Jan Kiszka wrote: >>> The SIMATIC IOT2000 is derived from the Galileo Gen2 board and shares >>> its I2C frequency. >>> >>> Signed-off-by: Jan Kiszka >> >>> Signed-off-by:

Re: wil6210: use memdup_user

2017-05-19 Thread Kalle Valo
Geliang Tang wrote: > Use memdup_user() helper instead of open-coding to simplify the code. > > Signed-off-by: Geliang Tang Patch applied to ath-next branch of ath.git, thanks. 9a49290919e1 wil6210: use memdup_user -- https://patchwork.kernel.org/patch/9715009/

[PATCH] x86/insn: perf tools: Add new ptwrite instruction

2017-05-19 Thread Adrian Hunter
Add ptwrite to the op code map and the perf tools new instructions test. To run the test: $ tools/perf/perf test "x86 ins" 39: Test x86 instruction decoder - new instructions : Ok Or to see the details: $ tools/perf/perf test -v "x86 ins" 2>&1 | grep ptwrite For information

Re: [v2] ath9k: remove unnecessary code

2017-05-19 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > The array field eeprom_data in struct th9k_platform_data > is a fixed size array so it can never be NULL. > > Addresses-Coverity-ID: 1364903 > Cc: Arend Van Spriel > Cc: Kalle Valo > Signed-off-by: Gustavo A. R. Silva Patch applied to ath-next branch of

Re: [PATCH 7/8] clocksource/drivers/fttmr010: Merge Moxa into FTTMR010

2017-05-19 Thread Cédric Le Goater
On 05/18/2017 11:09 PM, Cédric Le Goater wrote: > On 05/18/2017 10:20 PM, Linus Walleij wrote: >> On Thu, May 18, 2017 at 2:43 PM, Linus Walleij >> wrote: >>> On Thu, May 18, 2017 at 9:22 AM, Joel Stanley wrote: On Wed, May 17, 2017 at 10:05 PM, Linus Walleij wrote: > This merges

Re: [RFC PATCH] mm, oom: cgroup-aware OOM-killer

2017-05-19 Thread Michal Hocko
On Thu 18-05-17 14:11:17, Johannes Weiner wrote: > On Thu, May 18, 2017 at 07:30:04PM +0200, Michal Hocko wrote: > > On Thu 18-05-17 17:28:04, Roman Gushchin wrote: > > > Traditionally, the OOM killer is operating on a process level. > > > Under oom conditions, it finds a process with the highest

[PATCH] staging: ccree: add CRYPTO dependency

2017-05-19 Thread Arnd Bergmann
A rare randconfig build error shows up when we have CONFIG_CRYPTO=m in combination with a built-in CCREE driver: crypto/hmac.o: In function `hmac_update': hmac.c:(.text.hmac_update+0x28): undefined reference to `crypto_shash_update' crypto/hmac.o: In function `hmac_setkey':

Re: [RFC PATCH 6/6] drm/i915/gvt: support QEMU getting the dmabuf

2017-05-19 Thread Gerd Hoffmann
Hi, > > User space need to check whether there's a dmabuf for the plane(user space > > usually cached two or three dmabuf to handle double buffer or triple buffer > > situation) only there's no dmabuf for the plane we will create a dmabuf for > > it(another ioctl). > > If our ioctls are

[PATCH] lpfc: nvmet_fc: fix format string

2017-05-19 Thread Arnd Bergmann
The lpfc_nvmeio_data() tracing helper always takes a format string and three additional arguments. The latest caller has a format string with only two integer arguments, causing this harmless warning: drivers/scsi/lpfc/lpfc_nvmet.c: In function 'lpfc_nvmet_xmt_fcp_release':

Re: [PATCH 09/14] mm: __first_valid_page skip over offline pages

2017-05-19 Thread Vlastimil Babka
On 05/15/2017 10:58 AM, Michal Hocko wrote: > From: Michal Hocko > > __first_valid_page skips over invalid pfns in the range but it might > still stumble over offline pages. At least start_isolate_page_range > will mark those set_migratetype_isolate. This doesn't represent > any immediate AFAICS

Re: [PATCH v6 05/15] lockdep: Implement crossrelease feature

2017-05-19 Thread Byungchul Park
On Tue, Mar 14, 2017 at 05:18:52PM +0900, Byungchul Park wrote: > Lockdep is a runtime locking correctness validator that detects and > reports a deadlock or its possibility by checking dependencies between > locks. It's useful since it does not report just an actual deadlock but > also the

Re: [PATCH 05/24] thunderbolt: Rework capability handling

2017-05-19 Thread Mika Westerberg
On Thu, May 18, 2017 at 07:38:29PM +0300, Andy Shevchenko wrote: > On Thu, May 18, 2017 at 5:38 PM, Mika Westerberg > wrote: > > Organization of the capabilities in switches and ports is not so random > > after all. Rework the capability handling functionality so that it > > follows how

[PATCH v2] staging: iio: light: Replace symbolic permissions as per coding style

2017-05-19 Thread surenderpolsani
From: Surender Polsani Fixed the following checkpatch.pl warnings: octal permissions are more preferable than symbolic permissions Replaced DEVICE_ATTR family macros with DEVICE_ATTR_RW family as suggested by Greg K-H. Changed attributes and function names where ever required to satisfy

Re: [uwb-i1480] question about value overwrite

2017-05-19 Thread Gustavo A. R. Silva
Hi Greg, Quoting Greg KH : On Thu, May 18, 2017 at 06:00:06PM -0500, Gustavo A. R. Silva wrote: Hello everybody, While looking into Coverity ID 1226913 I ran into the following piece of code at drivers/uwb/i1480/dfu/phy.c:99: 99static 100int i1480_mpi_read(struct i1480 *i1480, u8 *data,

Re: [PATCH] ARM: remove duplicate 'const' annotations'

2017-05-19 Thread Arnd Bergmann
On Thu, May 11, 2017 at 1:50 PM, Arnd Bergmann wrote: > gcc-7 warns about some declarations that are more 'const' than necessary: > > arch/arm/mach-at91/pm.c:338:34: error: duplicate 'const' declaration > specifier [-Werror=duplicate-decl-specifier] > static const struct of_device_id const

Re: [PATCH] usb: chipidea: debug: check before accessing ci_role

2017-05-19 Thread Michael Thalmeier
On Fri, May 19, 2017 at 09:15:40AM +0800, Peter Chen wrote: > On Thu, May 18, 2017 at 04:14:14PM +0200, Michael Thalmeier wrote: > > ci_role BUGs when the role is >= CI_ROLE_END. > > > > Signed-off-by: Michael Thalmeier > > --- > > drivers/usb/chipidea/debug.c | 3 ++- > > 1 file changed, 2

[PATCH 02/41] mmc: host: omap_hsmmc: Separate setting voltage capabilities from bus power

2017-05-19 Thread Kishon Vijay Abraham I
Add a separate function to set the voltage capabilities of the host controller. Voltage capabilities should be set only once during controller initialization but bus power can be changed every time there is a voltage switch and whenever a different card is inserted. This allows

[PATCH 04/41] mmc: host: omap_hsmmc: Add voltage switch support for UHS SD card

2017-05-19 Thread Kishon Vijay Abraham I
From: Balaji T K UHS SD card i/o data line operates at 1.8V when in UHS speed mode. Add support for signal voltage switch to support UHS cards. Also, enable CIRQ before checking for CLEV/DLEV. MMC module can sense when the clock lines and data lines are driven high by the card, if MMC is

[PATCH 05/41] mmc: host: omap_hsmmc: Set clk rate to the max frequency

2017-05-19 Thread Kishon Vijay Abraham I
Set the clock rate of the functional clock to the max frequency that is passed to the driver either using pdata or dt. Also remove unnecessary setting of host->fclk to NULL. This is in preparation for supporting high frequency modes of operation. Signed-off-by: Kishon Vijay Abraham I

[PATCH 08/41] mmc: host: omap_hsmmc: Remove incorrect voltage switch sequence

2017-05-19 Thread Kishon Vijay Abraham I
ios->vdd is set only in mmc_power_up and mmc_power_off and not in mmc_select_voltage() as mentioned in the code comment. This seems to be legacy code that has been carried for a long time without being tested. This will be replaced with the correct voltage switch sequence and populated in

Re: [PATCH 10/14] mm, vmstat: skip reporting offline pages in pagetypeinfo

2017-05-19 Thread Vlastimil Babka
On 05/15/2017 10:58 AM, Michal Hocko wrote: > From: Michal Hocko > > pagetypeinfo_showblockcount_print skips over invalid pfns but it would > report pages which are offline because those have a valid pfn. Their > migrate type is misleading at best. Now that we have pfn_to_online_page() > we can

[PATCH 11/41] mmc: host: omap_hsmmc: Add new compatible string to support dra7

2017-05-19 Thread Kishon Vijay Abraham I
Add a new compatible string "ti,dra7-hsmmc" to support dra7 and dra72 controllers. Also create a new controller flag "OMAP_HSMMC_REQUIRE_IODELAY" to specify all controllers that use "ti,dra7-hsmmc" require iodealy configuration to be set. Signed-off-by: Kishon Vijay Abraham I Signed-off-by:

[PATCH 18/41] ARM: dts: dra72-evm-revc: Add vmmc_aux supply to mmc1

2017-05-19 Thread Kishon Vijay Abraham I
Add vmmc_aux-supply property to mmc1 dt node and populate it with ldo1_reg to reflect ldo1_out is connected to mmc1 IO lines. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72-evm-revc.dts | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 26/41] ARM: dts: am57xx-beagle-x15: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra74x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra74 SoC and use it in the pinctrl properties of MMC devicetree nodes present in am57xx-beagle-x15/am57xx-beagle-x15-revb1. Signed-off-by: Kishon Vijay Abraham I ---

[PATCH 22/41] ARM: dts: Add dra7 iodelay configuration

2017-05-19 Thread Kishon Vijay Abraham I
From: Tony Lindgren Add dra7 iodelay configuration. Signed-off-by: Tony Lindgren Signed-off-by: Nishanth Menon --- arch/arm/boot/dts/dra7.dtsi | 8 include/dt-bindings/pinctrl/dra.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi

[PATCH 19/41] ARM: dts: am57xx-beagle-x15-revb1: Fix supply name used for MMC1 IO lines

2017-05-19 Thread Kishon Vijay Abraham I
The dt binding documentation of omap-hsmmc recommends using "vmmc_aux" for IO supply lines. However commit 0af28cc92690d8c ("ARM: dts: am57xx-beagle-x15: Add support for rev B1") added it as "vmmc-aux". Fix it here. Fixes: commit 0af28cc92690d8c ("ARM: dts: am57xx-beagle-x15: Add support for rev

[PATCH 06/41] mmc: host: omap_hsmmc: Add tuning support

2017-05-19 Thread Kishon Vijay Abraham I
MMC tuning procedure is required to support SD card UHS1-SDR104 mode and EMMC HS200 mode. The tuning function omap_execute_tuning() will only be called by the MMC/SD core if the corresponding speed modes are supported by the OMAP silicon which is set in the mmc host "caps" field. Add a separate

[PATCH 32/41] ARM: dts: dra71-evm: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra72x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra72 SoC and use it in the pinctrl properties of MMC devicetree nodes present in dra71-evm.dts. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra71-evm.dts | 14

[PATCH 28/41] ARM: dts: am571x-idk: Add pinmux configuration for MMC

2017-05-19 Thread Kishon Vijay Abraham I
Include dra72x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for dra72 SoC and use it in the pinctrl properties of MMC devicetree nodes present in am571x-idk.dts. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am571x-idk.dts | 19

[PATCH 33/41] ARM: dts: dra7: Add "max-frequency" property to MMC dt nodes

2017-05-19 Thread Kishon Vijay Abraham I
Add "max-frequency" property to MMC dt nodes and set the maximum frequency to 192MHz for MMC1/MMC2, 64MHz for MMC3 and 192MHz for MMC4. pdata quirks must be utilized to detect presence of rev 1.1/1.0 of silicon and adjust maximum frequencies as per restrictions documented in i843. Signed-off-by:

[PATCH 38/41] ARM: OMAP2+: Add pdata-quirks for MMC/SD on DRA74x EVM

2017-05-19 Thread Kishon Vijay Abraham I
From: Sekhar Nori DRA74x EVM Rev H EVM comes with revision 2.0 silicon. However, earlier versions of EVM can come with either revision 1.1 or revision 1.0 of silicon. The device-tree file is written to support rev 2.0 of silicon. pdata quirks are used to then override the settings needed for PG

[PATCH 27/41] ARM: dts: am57xx-idk: Move common MMC/SD properties to common file

2017-05-19 Thread Kishon Vijay Abraham I
From: Sekhar Nori AM572x IDK and AM571x IDK boards have equivalent design of how SD card and eMMC are connected. The two EVMs mainly differ in IOdelay configuration needed (because of difference in SoC used). Move the common properties to am57xx-idk-common.dtsi file which is common for both

[PATCH 20/41] ARM: dts: dra7-evm: Correct the vmmc-supply for mmc2

2017-05-19 Thread Kishon Vijay Abraham I
From: Ravikumar Kattekola On DRA75x EVM, MMC2 vdd/ios are connected to a common supply fixed at 1.8V not 3.3V Fixes: 6cf02dbb4b71 ("ARM: dts: dra7-evm: Add mmc2 node for eMMC support") Signed-off-by: Ravikumar Kattekola Signed-off-by: Sekhar Nori Signed-off-by: Kishon Vijay Abraham I ---

[PATCH 24/41] ARM: dts: dra74x: Create a common file with MMC/SD IOdelay data

2017-05-19 Thread Kishon Vijay Abraham I
From: Sekhar Nori Add pinmux configuration for MMC module including IODELAY values suggested in the data manual for the various supported modes. IOdelay data for both silicon revision 1.1 and 2.0 is added here. The datamanual revisions used are: * AM572x Silicon Revision 2.0: SPRS953B, Revised

[PATCH 36/41] ARM: dts: am57xx-idk: Set MMC2 IO voltage to 3.3V

2017-05-19 Thread Kishon Vijay Abraham I
From: Sekhar Nori MMC2 interface on AM57xx IDK, connected to onboard eMMC, has IO voltage fixed to 3.3V. Add no-1-8-v device-tree property to mmc2 node in the board's device-tree file to reflect this. Note that the AM57xx SoC itself supports dual-voltage on MMC2. The limitation above is due to

Re: [PATCH 07/24] thunderbolt: Convert switch to a device

2017-05-19 Thread Mika Westerberg
On Thu, May 18, 2017 at 07:49:21PM +0300, Andy Shevchenko wrote: > On Thu, May 18, 2017 at 5:38 PM, Mika Westerberg > wrote: > > Thunderbolt domain consists of switches that are connected to each > > other, forming a bus. This will convert each switch into a real Linux > > device structure and

Re: [PATCH] perf: libdw support for powerpc

2017-05-19 Thread Paolo Bonzini
On 18/05/2017 20:48, Paolo Bonzini wrote: > > > On 18/05/2017 20:19, Naveen N. Rao wrote: >> Paolo Bonzini wrote: >>> The ARM and x86 architectures already use libdw, and it is useful to >>> have as much common code for the unwinder as possible. Porting PPC >>> to libdw only needs an

<    5   6   7   8   9   10   11   12   13   14   >