[PATCH 02/32] fs: add new vfs_poll and file_can_poll helpers

2018-01-10 Thread Christoph Hellwig
These abstract out calls to the poll method in preparation for changes to those methods. Signed-off-by: Christoph Hellwig --- drivers/staging/comedi/drivers/serial2002.c | 4 ++-- drivers/vfio/virqfd.c | 2 +- drivers/vhost/vhost.c | 2 +- fs/eventp

[PATCH net-next v4 2/4] phy: cp110-comphy: 2.5G SGMII mode

2018-01-10 Thread Antoine Tenart
This patch allow the CP100 comphy to configure some lanes in the 2.5G SGMII mode. This mode is quite close to SGMII and uses nearly the same code path. Signed-off-by: Antoine Tenart --- drivers/phy/marvell/phy-mvebu-cp110-comphy.c | 17 ++--- 1 file changed, 14 insertions(+), 3 delet

[PATCH net-next v4 1/4] phy: add 2.5G SGMII mode to the phy_mode enum

2018-01-10 Thread Antoine Tenart
This patch adds one more generic PHY mode to the phy_mode enum, to allow configuring generic PHYs to the 2.5G SGMII mode by using the set_mode callback. Signed-off-by: Antoine Tenart --- include/linux/phy/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/phy/phy.h b/include

[PATCH 2/2] soc: imx: gpc: Do not pass static memory as platform data

2018-01-10 Thread Andrey Smirnov
Platform device core assumes the ownership of dev.platform_data as well as that it is dynamically allocated and it will try to kfree it as a part of platform_device_release(). Change the code to pass kzalloc'ed chunk of memory instead of a pointer to a static memory to avoid causing a BUG() when ca

[PATCH 1/2] soc: imx: gpcv2: Do not pass static memory as platform data

2018-01-10 Thread Andrey Smirnov
Platform device core assumes the ownership of dev.platform_data as well as that it is dynamically allocated and it will try to kfree it as a part of platform_device_release(). Change the code to pass kzalloc'ed chunk of memory instead of a pointer to a static memory to avoid causing a BUG() when ca

Re: [PATCH v6 00/11] Intel SGX Driver

2018-01-10 Thread Jarkko Sakkinen
On Tue, Jan 09, 2018 at 03:50:23PM -0600, Dr. Greg Wettstein wrote: > > Everything going out of L1 gets encrypted. This is done to defend > > against peripheral like adversaries and should work also against > > meltdown. > > I don't believe this is an architecturally correct assertion. The > encr

Re: [GIT PULL] tpmdd updates for v4.16

2018-01-10 Thread Jarkko Sakkinen
On Tue, Jan 09, 2018 at 11:42:16AM +1100, James Morris wrote: > On Mon, 8 Jan 2018, Jarkko Sakkinen wrote: > > > Hi James, > > > > Sorry for a late PR. > > > > Summary of the content: > > > > * Reduced polling delays in tpm_tis. > > * Support for retrieving TPM 2.0 Event Log through EFI before

Re: next/master build: 198 builds: 1 failed, 197 passed, 1 error, 148 warnings (next-20180110)

2018-01-10 Thread Arnd Bergmann
On Wed, Jan 10, 2018 at 4:54 PM, Christian König wrote: > Hi Arnd, > > Am 10.01.2018 um 16:45 schrieb Arnd Bergmann: >>> >>> 14 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c:1186:2: warning: ignoring >>> return value of 'register_shrinker', declared with attribute >>> warn_unused_result [-Wunused-resul

Re: [RFC PATCH v2 2/6] x86/arch_prctl: add ARCH_GET_NOPTI and ARCH_SET_NOPTI to enable/disable PTI

2018-01-10 Thread Willy Tarreau
On Wed, Jan 10, 2018 at 05:09:22PM +0100, Borislav Petkov wrote: > On Wed, Jan 10, 2018 at 04:39:46PM +0100, Willy Tarreau wrote: > > For production, disabling PTI system-wide when I'm supposed to know what > > performance critical processes should be exempted doesn't appeal me very > > much, espec

Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest

2018-01-10 Thread Liran Alon
- d...@amazon.co.uk wrote: > On Wed, 2018-01-10 at 10:41 -0500, Konrad Rzeszutek Wilk wrote: > > On Wed, Jan 10, 2018 at 03:28:43PM +0100, Paolo Bonzini wrote: > > > On 10/01/2018 15:06, Arjan van de Ven wrote: > > > > On 1/10/2018 5:20 AM, Paolo Bonzini wrote: > > > >> * a simple specificati

Re: [PATCH] kbuild: move cc-option and cc-disable-warning after incl. arch Makefile

2018-01-10 Thread Geert Uytterhoeven
Hi Yamada-san, On Sun, Dec 10, 2017 at 6:28 AM, Masahiro Yamada wrote: > 2017-11-27 21:25 GMT+09:00 Geert Uytterhoeven : >> On Mon, Nov 27, 2017 at 1:15 PM, Masahiro Yamada >> wrote: >>> Geert reported commit ae6b289a3789 ("kbuild: Set KBUILD_CFLAGS before >>> incl. arch Makefile") broke cross-c

[PATCH] ARM: lpc3250: fix uda1380 gpio numbers

2018-01-10 Thread Arnd Bergmann
dtc warns about obviously incorrect GPIO numbers for the audio codec on both lpc32xx boards: arch/arm/boot/dts/lpc3250-phy3250.dtb: Warning (gpios_property): reset-gpio property size (12) too small for cell size 3 in /ahb/apb/i2c@400A/uda1380@18 arch/arm/boot/dts/lpc3250-phy3250.dtb: Warning

Re: [PATCH] crypto: marvell/cesa - Fix DMA API misuse

2018-01-10 Thread Boris Brezillon
Hi Christoph, On Wed, 10 Jan 2018 16:48:17 +0100 Christoph Hellwig wrote: > On Wed, Jan 10, 2018 at 04:25:22PM +0100, Boris Brezillon wrote: > > On Wed, 10 Jan 2018 15:15:43 + > > Robin Murphy wrote: > > > > > phys_to_dma() is an internal helper for certain DMA API implementations, > > >

Re: general protection fault in cgroup_fd_array_put_ptr

2018-01-10 Thread Daniel Borkmann
On 01/10/2018 04:30 PM, Daniel Borkmann wrote: > On 01/10/2018 01:58 PM, syzbot wrote: >> Hello, >> >> syzkaller hit the following crash on b4464bcab38d3f7fe995a7cb960eeac6889bec08 >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master >> compiler: gcc (GCC) 7.1.1 20170620 >> .

[PATCH v8 7/8] drm/bridge/synopsys: dw-hdmi: Do not use device's drvdata

2018-01-10 Thread Thierry Escande
From: Jeffy Chen Let plat drivers own the drvdata, so that they could cleanup resources in their unbind(). Signed-off-by: Jeffy Chen Signed-off-by: Thierry Escande Reviewed-by: Neil Armstrong --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 43 ++--- drivers/gpu/drm/

[PATCH v8 8/8] drm/rockchip: dw_hdmi: Fix error handling path

2018-01-10 Thread Thierry Escande
From: Jeffy Chen Add missing clk_disable_unprepare() in bind()'s error handling path and unbind(). Also inline clk_prepare_enable() with bind(). Fixes: 12b9f204e804 ("drm: bridge/dw_hdmi: add rockchip rk3288 support") Signed-off-by: Jeffy Chen Signed-off-by: Thierry Escande --- drivers/gpu/d

[PATCH v8 0/8] rockchip: kevin: Enable edp display

2018-01-10 Thread Thierry Escande
Hi, This patchset makes edp display work on Chromebook kevin. This patchset has been originally posted by Jeffy Chen and the 2 first commits from a previous version (v6) are already merged in mainline. v8: Fixed compilation issue between patches #7 and #8 reported by Archit. v7: Rebased on top

[PATCH v8 5/8] drm/rockchip: inno_hdmi: Fix error handling path

2018-01-10 Thread Thierry Escande
From: Jeffy Chen Add missing error handling in bind(). Fixes: 412d4ae6b7a5 ("drm/rockchip: hdmi: add Innosilicon HDMI support") Signed-off-by: Jeffy Chen Signed-off-by: Thierry Escande --- drivers/gpu/drm/rockchip/inno_hdmi.c | 22 +- 1 file changed, 17 insertions(+), 5 de

[PATCH v8 6/8] drm/bridge/synopsys: dw-hdmi: Add missing bridge detach

2018-01-10 Thread Thierry Escande
From: Jeffy Chen We inited connector in attach(), so need a detach() to cleanup. Also fix wrong use of dw_hdmi_remove() in bind(). Signed-off-by: Jeffy Chen Signed-off-by: Thierry Escande --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 10 +- 1 file changed, 9 insertions(+), 1 deleti

[PATCH v8 2/8] drm/bridge: analogix_dp: Fix connector and encoder cleanup

2018-01-10 Thread Thierry Escande
From: Jeffy Chen Since we are initing connector in the core driver and encoder in the plat driver, let's clean them up in the right places. Signed-off-by: Jeffy Chen Signed-off-by: Thierry Escande Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 -- driv

[PATCH v8 1/8] drm/bridge: analogix: Do not use device's drvdata

2018-01-10 Thread Thierry Escande
From: Jeffy Chen The driver that instantiates the bridge should own the drvdata, as all driver model callbacks (probe, remove, shutdown, PM ops, etc.) are also owned by its driver struct. Moreover, storing two different pointer types in driver data depending on driver initialization status is bar

[PATCH v8 3/8] drm/rockchip: analogix_dp: Add a sanity check for rockchip_drm_psr_register()

2018-01-10 Thread Thierry Escande
From: Jeffy Chen The rockchip_drm_psr_register() can fail, so add a sanity check for that. Also reorder the calls in unbind() to match bind(). Signed-off-by: Jeffy Chen Signed-off-by: Thierry Escande --- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 15 +++ 1 file changed, 11

[PATCH v8 4/8] drm/rockchip: dw-mipi-dsi: Fix error handling path

2018-01-10 Thread Thierry Escande
From: Jeffy Chen Add missing pm_runtime_disable() in bind()'s error handling path. Also cleanup encoder & connector in unbind(). Fixes: 80a9a059d4e4 ("drm/rockchip/dsi: add dw-mipi power domain support") Signed-off-by: Jeffy Chen Signed-off-by: Thierry Escande --- drivers/gpu/drm/rockchip/dw

Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest

2018-01-10 Thread Paolo Bonzini
I can answer (2) only. On 10/01/2018 17:19, Liran Alon wrote: > (2) On VMExit, Intel recommends to always save guest SPEC_CTRL value, > set IBRS to 1 (even if it is already set by guest) and stuff RSB. What > exactly does this write of 1 to IBRS do? > * a) Does it keep all currently existing BTB/B

[PATCH] ARM: pxa/tosa-bt: add MODULE_LICENSE tag

2018-01-10 Thread Arnd Bergmann
Without this tag, we get a build warning: WARNING: modpost: missing MODULE_LICENSE() in arch/arm/mach-pxa/tosa-bt.o For completeness, I'm also adding author and description fields. Signed-off-by: Arnd Bergmann --- arch/arm/mach-pxa/tosa-bt.c | 4 1 file changed, 4 insertions(+) diff --gi

[PATCH] x86: kvm: propagate register_shrinker return code

2018-01-10 Thread Arnd Bergmann
Patch "mm,vmscan: mark register_shrinker() as __must_check" is queued for 4.16 in linux-mm and adds a warning about the unchecked call to register_shrinker: arch/x86/kvm/mmu.c:5485:2: warning: ignoring return value of 'register_shrinker', declared with attribute warn_unused_result [-Wunused-resu

Re: [PATCH v5 0/2] printk: Console owner and waiter logic cleanup

2018-01-10 Thread Petr Mladek
On Wed 2018-01-10 06:05:47, Tejun Heo wrote: > On Wed, Jan 10, 2018 at 02:24:16PM +0100, Petr Mladek wrote: > > This is the last version of Steven's console owner/waiter logic. > > Plus my proposal to hide it into 3 helper functions. It is supposed > > to keep the code maintenable. > > > > The han

[PATCH] ARM: bL_switcher: add MODULE_LICENSE tag

2018-01-10 Thread Arnd Bergmann
Without this tag, we get a build warning: WARNING: modpost: missing MODULE_LICENSE() in arch/arm/common/bL_switcher_dummy_if.o For completeness, I'm also adding author and description fields. Signed-off-by: Arnd Bergmann --- arch/arm/common/bL_switcher_dummy_if.c | 4 1 file changed, 4 i

Re: [PATCH 03/31] fs: introduce new ->get_poll_head and ->poll_mask methods

2018-01-10 Thread Al Viro
On Mon, Jan 08, 2018 at 11:45:13AM +0100, Christoph Hellwig wrote: > On Sat, Jan 06, 2018 at 07:12:42PM +, Al Viro wrote: > > On Thu, Jan 04, 2018 at 09:00:15AM +0100, Christoph Hellwig wrote: > > > ->get_poll_head returns the waitqueue that the poll operation is going > > > to sleep on. Note

[PATCH] net: cs89x0: add MODULE_LICENSE

2018-01-10 Thread Arnd Bergmann
This driver lacks a MODULE_LICENSE tag, leading to a Kbuild warning: WARNING: modpost: missing MODULE_LICENSE() in drivers/net/ethernet/cirrus/cs89x0.o This adds license, author, and description according to the comment block at the start of the file. Signed-off-by: Arnd Bergmann --- drivers/

[PATCH] input: of_touchscreen: add MODULE_LICENSE

2018-01-10 Thread Arnd Bergmann
The lack of the MODULE_LICENSE tag can lead to a warning here: WARNING: modpost: missing MODULE_LICENSE() in drivers/input/touchscreen/of_touchscreen.o I'm adding a license and description tag, but no MODULE_AUTHOR() as this file is a collection of standalone helper functions that were all added

Re: [PATCH 2/6] riscv/ftrace: Add dynamic function tracer support

2018-01-10 Thread Steven Rostedt
On Wed, 10 Jan 2018 15:38:10 +0800 Alan Kao wrote: > +static int ftrace_check_current_call(unsigned long hook_pos, > + unsigned int *expected) > +{ > + unsigned int replaced[2]; > + unsigned int nops[2] = {NOP4, NOP4}; > + > + /* we expect nops at the

[PATCH] ASoC: ux500: add MODULE_LICENSE tag

2018-01-10 Thread Arnd Bergmann
This adds MODULE_LICENSE/AUTHOR/DESCRIPTION tags to the ux500 platform drivers, to avoid these build warnings: WARNING: modpost: missing MODULE_LICENSE() in sound/soc/ux500/snd-soc-ux500-plat-dma.o WARNING: modpost: missing MODULE_LICENSE() in sound/soc/ux500/snd-soc-ux500-mach-mop500.o The com

[PATCH] media: v4l2-core: v4l2-mc: Add SPDX license identifier

2018-01-10 Thread Shuah Khan
Replace GPL license statement with SPDX GPL-2.0 license identifier. Signed-off-by: Shuah Khan --- drivers/media/v4l2-core/v4l2-mc.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-mc.c b/drivers/media/v4l2-core/v4l2-mc.c index 303980b

Re: [RFC] doc: fix code snippet build warnings

2018-01-10 Thread Paul E. McKenney
On Wed, Jan 10, 2018 at 03:04:53PM +1100, Tobin C. Harding wrote: > Posting as RFC in the hope that someone knows how to massage sphinx > correctly to fix this patch. I would welcome that. ;-) > Currently function kernel-doc contains a multi-line code snippet. This > is causing sphinx to emit 5

[PATCH] selftests: media_tests: Add SPDX license identifier

2018-01-10 Thread Shuah Khan
Replace GPL license statement with SPDX GPL-2.0 license identifier. Signed-off-by: Shuah Khan --- tools/testing/selftests/media_tests/media_device_open.c | 2 +- tools/testing/selftests/media_tests/media_device_test.c | 2 +- tools/testing/selftests/media_tests/video_device_test.c | 2 +- 3 file

Re: [PATCH] hwmon (pmbus): cffps: Add led class device for power supply fault led

2018-01-10 Thread Eddie James
On 01/09/2018 04:50 PM, Guenter Roeck wrote: On Tue, Jan 09, 2018 at 04:05:24PM -0600, Eddie James wrote: This power supply device doesn't correctly manage it's own fault led. Add an led class device and register it so that userspace can manage power supply fault led as necessary. Signed-off-

Re: [PATCH 2/6] riscv/ftrace: Add dynamic function tracer support

2018-01-10 Thread Steven Rostedt
On Wed, 10 Jan 2018 15:38:10 +0800 Alan Kao wrote: > +static int __ftrace_modify_call(unsigned long hook_pos, unsigned long target, > + bool enable) > +{ > + unsigned int offset = (unsigned int)(target - hook_pos); > + unsigned int auipc_call = to_auipc_insn(of

[PATCH] leds: ledtrig-transient: Add SPDX license identifiers

2018-01-10 Thread Shuah Khan
Replace GPL license statements with SPDX GPL-2.0 license identifiers and and correct the module license to GPLv2. Signed-off-by: Shuah Khan --- drivers/leds/trigger/ledtrig-transient.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/leds/trigger/ledtrig-transie

[PATCH] video: fbdev/mmp: add MODULE_LICENSE

2018-01-10 Thread Arnd Bergmann
Kbuild complains about the lack of a license tag in this driver: WARNING: modpost: missing MODULE_LICENSE() in drivers/video/fbdev/mmp/mmp_disp.o This adds the license, author and description tags. Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/mmp/core.c | 5 + 1 file changed, 5 ins

Re: [PATCH 2/3] dt-bindings: pinctrl: Add a ngpios-ranges property

2018-01-10 Thread Stephen Boyd
On 01/10, Linus Walleij wrote: > On Wed, Jan 10, 2018 at 2:58 AM, Stephen Boyd wrote: > > > +- ngpios-ranges: > > + Usage: optional > > + Value type: > > + Definition: Tuples of GPIO ranges (base, size) indicating > > + GPIOs available for use. > > + > > Plea

[PATCH] selftests: kselftest.h: Add SPDX license identifier

2018-01-10 Thread Shuah Khan
Replace GPL license statement with SPDX GPL-2.0 license identifier. Signed-off-by: Shuah Khan --- tools/testing/selftests/kselftest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h index 1ae565ed9bf0.

[PATCH] phy: qcom-ufs: add MODULE_LICENSE tag

2018-01-10 Thread Arnd Bergmann
While the specific UFS PHY drivers (14nm and 20nm) have a module license, the common base module does not, leading to a Kbuild failure: WARNING: modpost: missing MODULE_LICENSE() in drivers/phy/qualcomm/phy-qcom-ufs.o FATAL: modpost: GPL-incompatible module phy-qcom-ufs.ko uses GPL-only symbol '

[PATCH] selftests: kselftest_install.sh: Add SPDX license identifier

2018-01-10 Thread Shuah Khan
Replace GPL license statement with SPDX GPL-2.0 license identifier. Signed-off-by: Shuah Khan --- tools/testing/selftests/kselftest_install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/testing/selftests/kselftest_install.sh b/tools/testing/selftests/kselftest_

[PATCH] selftests: gen_kselftest_tar.h: Add SPDX license identifier

2018-01-10 Thread Shuah Khan
Replace GPL license statement with SPDX GPL-2.0 license identifier. Signed-off-by: Shuah Khan --- tools/testing/selftests/gen_kselftest_tar.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/testing/selftests/gen_kselftest_tar.sh b/tools/testing/selftests/gen_kselft

Re: [PATCH] kbuild: move cc-option and cc-disable-warning after incl. arch Makefile

2018-01-10 Thread Masahiro Yamada
2018-01-11 1:21 GMT+09:00 Geert Uytterhoeven : > Hi Yamada-san, > > On Sun, Dec 10, 2017 at 6:28 AM, Masahiro Yamada > wrote: >> 2017-11-27 21:25 GMT+09:00 Geert Uytterhoeven : >>> On Mon, Nov 27, 2017 at 1:15 PM, Masahiro Yamada >>> wrote: Geert reported commit ae6b289a3789 ("kbuild: Set KB

[PATCH] net/9p: trans_xen: add missing MODULE_AUTHOR/DESCRIPTION/LICENSE

2018-01-10 Thread Arnd Bergmann
From: Jesse Chan This change resolves a new compile-time warning when built as a loadable module: WARNING: modpost: missing MODULE_LICENSE() in net/9p/9pnet_xen.o see include/linux/module.h for more information This adds the license as "Dual MIT/GPL", which matches the header of the file. MODU

[PATCH] auxdisplay: img-ascii-lcd: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE

2018-01-10 Thread Arnd Bergmann
From: Jesse Chan This change resolves a new compile-time warning when built as a loadable module: WARNING: modpost: missing MODULE_LICENSE() in drivers/auxdisplay/img-ascii-lcd.o see include/linux/module.h for more information This adds the license as "GPL", which matches the header of the file

Applied "ASoC: ux500: add MODULE_LICENSE tag" to the asoc tree

2018-01-10 Thread Mark Brown
The patch ASoC: ux500: add MODULE_LICENSE tag has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus dur

[PATCH] uio_hv_generic: fix type mismatch warnings

2018-01-10 Thread Arnd Bergmann
I moved the virt_to_phys() conversion into hv_uio_probe() as part of a warning fix. Stephen's cleanup to remove the private mmap() function seems reasonable, but part of it reverted the change that I did to hide the warnings, so they are back now: drivers/uio/uio_hv_generic.c: In function 'hv_uio_

Re: [PATCH v7 0/6] V4L2 Explicit Synchronization

2018-01-10 Thread Nicolas Dufresne
Le mercredi 10 janvier 2018 à 14:07 -0200, Gustavo Padovan a écrit : > v7 bring a fix for a crash when not using fences and a uAPI fix. > I've done a bit more of testing on it and also measured some > performance. On a intel laptop a DRM<->V4L2 pipeline with fences is > runnning twice as faster tha

Re: [PATCH] ARM: bL_switcher: add MODULE_LICENSE tag

2018-01-10 Thread Nicolas Pitre
On Wed, 10 Jan 2018, Arnd Bergmann wrote: > Without this tag, we get a build warning: > > WARNING: modpost: missing MODULE_LICENSE() in > arch/arm/common/bL_switcher_dummy_if.o > > For completeness, I'm also adding author and description fields. > > Signed-off-by: Arnd Bergmann Acked-by: Nic

[PATCH v2 0/2] drivers: remove incorrect usage/dependency on topology_physical_package_id

2018-01-10 Thread Sudeep Holla
Hi all, There has been ongoing attempt to add ACPI topology support on ARM/ARM64 platform using PPTT. However it was discovered that the physical package id is mapped to the so called clusters on ARM platforms and they don't map to the physical socket as in other architectures. In order to add th

[PATCH v2 1/2] drivers: psci: remove cluster terminology and dependency on physical_package_id

2018-01-10 Thread Sudeep Holla
Since the definition of the term "cluster" is not well defined in the architecture, we should avoid using it. Also the physical package id is currently mapped to so called "clusters" in ARM/ARM64 platforms which is already argumentative. Currently PSCI checker uses the physical package id assuming

[PATCH v2 2/2] cpufreq: scpi: remove arm_big_little dependency

2018-01-10 Thread Sudeep Holla
The dependency on physical_package_id from the topology to get the cluster identifier is wrong. The concept of cluster used in ARM topology is unfortunately not well defined in the architecture, we should avoid using it. Further the frequency domain need not be mapped to so called "clusters" one to

Re: [PATCH 2/2] cpufreq: scpi: remove arm_big_little dependency

2018-01-10 Thread Sudeep Holla
On 10/01/18 14:46, Viresh Kumar wrote: > On 09-01-18, 16:49, Sudeep Holla wrote: >> The dependency on physical_package_id from the topology to get the >> cluster identifier is wrong. The concept of cluster used in ARM topology >> is unfortunately not well defined in the architecture, we should av

[PATCH] usb: mtu3: fix ssusb_wakeup_set dummy

2018-01-10 Thread Arnd Bergmann
Changing from ssusb_wakeup_enable/disable to ssusb_wakeup_set was done in only one of two places in the kernel, the other one now causes a build failure: drivers/usb/mtu3/mtu3_plat.c: In function 'mtu3_suspend': drivers/usb/mtu3/mtu3_plat.c:462:2: error: implicit declaration of function 'ssusb_wa

Re: [PATCH 4.4 00/37] 4.4.110-stable review

2018-01-10 Thread Serge E. Hallyn
Quoting Greg Kroah-Hartman (gre...@linuxfoundation.org): > On Tue, Jan 09, 2018 at 01:49:48PM -0600, Serge E. Hallyn wrote: > > Quoting Greg Kroah-Hartman (gre...@linuxfoundation.org): > > > On Sat, Jan 06, 2018 at 02:20:16AM +0900, Alice Ferrazzi wrote: > > > > On Thu, Jan 4, 2018 at 5:11 AM, Greg

Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest

2018-01-10 Thread David Woodhouse
On Wed, 2018-01-10 at 08:19 -0800, Liran Alon wrote: > > (1) On VMEntry, Intel recommends to just restore SPEC_CTRL to guest > value (using WRMSR or MSR save/load list) and that's it. As I > previously said to Jim, I am missing here a mechanism which should be > responsible for hiding host's BHB &

[PATCH] x86: mce: fix type mismatch warning

2018-01-10 Thread Arnd Bergmann
The printed symbol is a 64-bit address, so we get a warning when building this code for 32-bit kernels: arch/x86/kernel/cpu/mcheck/mce.c: In function '__print_mce': arch/x86/kernel/cpu/mcheck/mce.c:237:21: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] This u

Re: [PATCH 27/33] dma-direct: use node local allocations for coherent memory

2018-01-10 Thread Robin Murphy
On 10/01/18 15:30, Christoph Hellwig wrote: On Wed, Jan 10, 2018 at 12:06:22PM +, Robin Murphy wrote: On 10/01/18 08:00, Christoph Hellwig wrote: To preserve the x86 behavior. And combined with patch 10/22 of the SWIOTLB refactoring, this means SWIOTLB allocations will also end up NUMA-aw

Re: [PATCH v5 1/2] printk: Add console owner and waiter logic to load balance console writes

2018-01-10 Thread Steven Rostedt
On Wed, 10 Jan 2018 14:24:17 +0100 Petr Mladek wrote: > From: Steven Rostedt Please remove the above From:, it will overwrite the one below which I would prefer to have. Thanks! -- Steve > > From: Steven Rostedt (VMware) > > This patch implements what I discussed in Kernel Summit. I added

[PATCH v2 2/2] staging: rtl8723bs: Fix trailing semicolon

2018-01-10 Thread Luis de Bethencourt
The trailing semicolon is an empty statement that does nothing. Removing it since it has no purpose. Signed-off-by: Luis de Bethencourt --- drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_p

Re: [PATCH 2/3] ARM: imx: Update imx_v6_v7_defconfig for mag3110 support

2018-01-10 Thread Fabio Estevam
On Tue, Jan 9, 2018 at 9:46 AM, Marco Franchi wrote: > The i.MX 6UL EVK has support for the MAG3110 Magnetometer sensor, included > in its base board by default. > > So add support for this Magnetometer in the imx_v6_v7_defconfig. > > Signed-off-by: Marco Franchi Reviewed-by: Fabio Estevam

[PATCH v2 0/2] staging: rtl8723bs: Fix multiple trailing semicolons

2018-01-10 Thread Luis de Bethencourt
Hi, Removing the last patch from the original series after Dan's comment. Tomorrow, I will send a new patch that removes the commented out code. This will replace that last patch. Thanks for the review, Luis Luis de Bethencourt (2): staging: rtl8723bs: Fix trailing semicolon staging: rtl87

[PATCH v2 1/2] staging: rtl8723bs: Fix trailing semicolon

2018-01-10 Thread Luis de Bethencourt
The trailing semicolon is an empty statement that does no operation. Removing it since it doesn't do anything. Signed-off-by: Luis de Bethencourt --- drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/H

Re: [PATCH 1/3] ARM: dts: imx6ul-evk: Add support for mag3110 sensor

2018-01-10 Thread Fabio Estevam
On Tue, Jan 9, 2018 at 9:46 AM, Marco Franchi wrote: > The i.MX 6UL EVK has a MAG3110 Magnetometer sensor in its base board. > Add support for this sensor, which is included in the trivial i2c devices > and according to the bindings documentation, just need a compatible field > and an address. > >

Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest

2018-01-10 Thread Liran Alon
- dw...@infradead.org wrote: > On Wed, 2018-01-10 at 08:19 -0800, Liran Alon wrote: > > > > (1) On VMEntry, Intel recommends to just restore SPEC_CTRL to guest > > value (using WRMSR or MSR save/load list) and that's it. As I > > previously said to Jim, I am missing here a mechanism which sh

Re: [PATCH 3/3] ARM: dts: imx7d-sdb: Add support for mpl3115 sensor

2018-01-10 Thread Fabio Estevam
On Tue, Jan 9, 2018 at 9:46 AM, Marco Franchi wrote: > The i.MX 7D SDB has a MPL3115 Pressure sensor. > Add support for this sensor, which is included in the trivial i2c devices > and according to the bindings documentation, just need a compatible field > and an address. > > Signed-off-by: Marco F

Re: [PATCH v2] block: silently forbid sending any ioctl to a partition

2018-01-10 Thread Christoph Hellwig
On Wed, Jan 10, 2018 at 04:54:52PM +0100, Paolo Bonzini wrote: > After the first few months, the message has not led to many bug reports. > It's been almost five years now, and in practice the main source of > it seems to be MTIOCGET that someone is using to detect tape devices. > While we could wh

Re: [PATCH] uio_hv_generic: fix type mismatch warnings

2018-01-10 Thread Stephen Hemminger
On Wed, 10 Jan 2018 17:42:38 +0100 Arnd Bergmann wrote: > I moved the virt_to_phys() conversion into hv_uio_probe() as part of > a warning fix. Stephen's cleanup to remove the private mmap() function > seems reasonable, but part of it reverted the change that I did to > hide the warnings, so they

Re: [PATCH 31/33] dma-direct: reject too small dma masks

2018-01-10 Thread Robin Murphy
On 10/01/18 15:32, Christoph Hellwig wrote: On Wed, Jan 10, 2018 at 11:49:34AM +, Robin Murphy wrote: +#ifdef CONFIG_ZONE_DMA + if (mask < DMA_BIT_MASK(ARCH_ZONE_DMA_BITS)) + return 0; +#else + /* +* Because 32-bit DMA masks are so common we expect every a

Re: [PATCH v2 0/2] staging: rtl8723bs: Fix multiple trailing semicolons

2018-01-10 Thread Luis de Bethencourt
On 01/10/2018 04:51 PM, Luis de Bethencourt wrote: > Hi, > > Removing the last patch from the original series after Dan's comment. > > Tomorrow, I will send a new patch that removes the commented out code. This > will > replace that last patch. > > Thanks for the review, > Luis > > > Luis de

Re: [PATCH v5 0/2] printk: Console owner and waiter logic cleanup

2018-01-10 Thread Tejun Heo
Hello, Linus, Andrew. On Wed, Jan 10, 2018 at 05:29:00PM +0100, Petr Mladek wrote: > Where is the acceptable compromise? I am not sure. So far, the most > forceful people (Linus) did not see softlockups as a big problem. > They rather wanted to see the messages. Can you please chime in? Would yo

Re: [PATCH v6 2/5] iommu/vt-d: Add debugfs support to show context internals

2018-01-10 Thread Gary R Hook
On 01/09/2018 09:48 PM, Sohil Mehta wrote: From: Gayatri Kammela IOMMU internals states such as root and context can be exported to the userspace. Example of such dump in Kabylake: root@OTC-KBLH-01:~# cat /sys/kernel/debug/intel_iommu/dmar_translation_struct IOMMU dmar0: Extended Root Table

Re: [PATCH 10/22] swiotlb: refactor coherent buffer allocation

2018-01-10 Thread Robin Murphy
On 10/01/18 15:46, Christoph Hellwig wrote: On Wed, Jan 10, 2018 at 12:22:18PM +, Robin Murphy wrote: + if (phys_addr == SWIOTLB_MAP_ERROR) + goto out_warn; -/* Confirm address can be DMA'd by device */ - if (dev_addr + size - 1 > dma_mask) {

Re: [PATCH] kselftest: fix OOM in memory compaction test

2018-01-10 Thread Shuah Khan
On 01/09/2018 09:47 AM, Shuah Khan wrote: > On 01/09/2018 09:26 AM, Arnd Bergmann wrote: >> Running the compaction_test sometimes results in out-of-memory >> failures. When I debugged this, it turned out that the code to >> reset the number of hugepages to the initial value is simply >> broken sinc

Re: [PATCH] selftests: seccomp: fix compile error seccomp_bpf

2018-01-10 Thread Shuah Khan
On 01/09/2018 04:46 PM, Kees Cook wrote: > On Tue, Jan 9, 2018 at 3:37 PM, Shuah Khan wrote: >> On 01/09/2018 04:25 PM, Kees Cook wrote: >>> On Tue, Jan 9, 2018 at 3:24 PM, Kees Cook wrote: On Tue, Jan 9, 2018 at 3:07 PM, Kees Cook wrote: > On Fri, Jan 5, 2018 at 6:29 PM, Naresh Kamboju

Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest

2018-01-10 Thread David Woodhouse
On Wed, 2018-01-10 at 08:51 -0800, Liran Alon wrote: > > Hmm... This is exactly how Google Project-Zero PoC leaks kvm- > intel.ko, kvm.ko & vmlinux... > See section "Locating the host kernel" here: > https://googleprojectzero.blogspot.co.il/2018/01/reading-privileged-m > emory-with-side.html > >

Re: [PATCH 21/22] arm64: replace ZONE_DMA with ZONE_DMA32

2018-01-10 Thread Robin Murphy
On 10/01/18 15:55, Christoph Hellwig wrote: On Wed, Jan 10, 2018 at 04:55:17PM +0100, Christoph Hellwig wrote: On Wed, Jan 10, 2018 at 12:58:14PM +, Robin Murphy wrote: On 10/01/18 08:09, Christoph Hellwig wrote: arm64 uses ZONE_DMA for allocations below 32-bits. These days we name the zo

[PATCH net-next] netfilter: improve flow table Kconfig dependencies

2018-01-10 Thread Arnd Bergmann
The newly added NF_FLOW_TABLE options cause some build failures in randconfig kernels: - when CONFIG_NF_CONNTRACK is disabled, or is a loadable module but NF_FLOW_TABLE is built-in: In file included from net/netfilter/nf_flow_table.c:8:0: include/net/netfilter/nf_conntrack.h:59:22: error: f

Re: [PATCH v7 0/6] V4L2 Explicit Synchronization

2018-01-10 Thread Gustavo Padovan
2018-01-10 Nicolas Dufresne : > Le mercredi 10 janvier 2018 à 14:07 -0200, Gustavo Padovan a écrit : > > v7 bring a fix for a crash when not using fences and a uAPI fix. > > I've done a bit more of testing on it and also measured some > > performance. On a intel laptop a DRM<->V4L2 pipeline with f

Re: [PATCH] uio_hv_generic: fix type mismatch warnings

2018-01-10 Thread Arnd Bergmann
On Wed, Jan 10, 2018 at 5:57 PM, Stephen Hemminger wrote: > On Wed, 10 Jan 2018 17:42:38 +0100 > Arnd Bergmann wrote: > >> I moved the virt_to_phys() conversion into hv_uio_probe() as part of >> a warning fix. Stephen's cleanup to remove the private mmap() function >> seems reasonable, but part o

[PATCH] drm/amdkfd: Fix potential NULL pointer dereferences

2018-01-10 Thread Gustavo A. R. Silva
In case kfd_get_process_device_data returns null, there are some null pointer dereferences in functions kfd_bind_processes_to_device and kfd_unbind_processes_from_device. Fix this by null checking pdd before dereferencing it. Addresses-Coverity-ID: 1463794 ("Dereference null return value") Addres

Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest

2018-01-10 Thread Jim Mattson
On Wed, Jan 10, 2018 at 8:27 AM, Paolo Bonzini wrote: > I can answer (2) only. > > On 10/01/2018 17:19, Liran Alon wrote: >> (2) On VMExit, Intel recommends to always save guest SPEC_CTRL value, >> set IBRS to 1 (even if it is already set by guest) and stuff RSB. What >> exactly does this write of

Re: objtool segfault with ORC unwinder enabled

2018-01-10 Thread Markus
On Thursday, 4 January 2018 19:25:12 CET Markus wrote: > On Thursday, 4 January 2018 18:32:03 CET Josh Poimboeuf wrote: > > On Thu, Jan 04, 2018 at 05:56:30PM +0100, Markus wrote: > > > On Thursday, 4 January 2018 16:46:13 CET Josh Poimboeuf wrote: > > > > I don't see anything unusual there. Are t

Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest

2018-01-10 Thread Paolo Bonzini
On 10/01/2018 18:14, Jim Mattson wrote: >>> If (a) is true, does "IBRS ALL THE TIME" usage is basically a CPU >>> change to just create all BTB/BHB entries to be tagged with >>> prediction-mode at creation-time and that tag to be compared to current >>> prediction-mode when CPU attempts to use BTB/

Re: [PATCH 0/7] ARM: dts: STi: Fix DT dtc warnings

2018-01-10 Thread Patrice CHOTARD
Hi Arnd On 01/10/2018 04:52 PM, Arnd Bergmann wrote: > On Wed, Jan 10, 2018 at 9:21 AM, wrote: >> From: Patrice Chotard >> >> This series fixes all dtc warnings related to STi platforms dt files. >> It has been triggered by Rob Herring [1] >> >> [1] https://www.spinics.net/lists/devicetree/msg2

Re: [PATCH net-next] netfilter: improve flow table Kconfig dependencies

2018-01-10 Thread Pablo Neira Ayuso
On Wed, Jan 10, 2018 at 06:10:59PM +0100, Arnd Bergmann wrote: > The newly added NF_FLOW_TABLE options cause some build failures in > randconfig kernels: Applied, thanks Arnd.

Re: [RESEND PATCH v11 1/2] sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq()

2018-01-10 Thread kbuild test robot
Hi Byungchul, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/sched/core] [also build test WARNING on v4.15-rc7 next-20180110] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

Re: [PATCH 08/22] swiotlb: wire up ->dma_supported in swiotlb_dma_ops

2018-01-10 Thread Robin Murphy
On 10/01/18 15:35, Christoph Hellwig wrote: On Wed, Jan 10, 2018 at 12:16:15PM +, Robin Murphy wrote: On 10/01/18 08:09, Christoph Hellwig wrote: To properly reject too small DMA masks based on the addressability of the bounce buffer. I reckon this is self-evident enough that it should si

Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest

2018-01-10 Thread Nadav Amit
Paolo Bonzini wrote: > On 10/01/2018 18:14, Jim Mattson wrote: If (a) is true, does "IBRS ALL THE TIME" usage is basically a CPU change to just create all BTB/BHB entries to be tagged with prediction-mode at creation-time and that tag to be compared to current prediction-mode

Re: [PATCH 04/18] arm: implement nospec_ptr()

2018-01-10 Thread Laura Abbott
On 01/09/2018 11:40 PM, Hanjun Guo wrote: On 2018/1/10 10:04, Laura Abbott wrote: On 01/05/2018 05:10 PM, Dan Williams wrote: From: Mark Rutland This patch implements nospec_ptr() for arm, following the recommended architectural sequences for the arm and thumb instruction sets. Fedora picke

Re: [RFC PATCH v2 2/6] x86/arch_prctl: add ARCH_GET_NOPTI and ARCH_SET_NOPTI to enable/disable PTI

2018-01-10 Thread Borislav Petkov
On Wed, Jan 10, 2018 at 05:19:29PM +0100, Willy Tarreau wrote: > Well, indeed. It will never be 100% equivalent to pti=off however since > the alternative code will remain in place, but why not. Or maybe we have > a way to change the alternatives at run time by changing a sysctl, Not yet. We need

[PATCH v2] hwmon (pmbus): cffps: Add led class device for power supply fault led

2018-01-10 Thread Eddie James
This power supply device doesn't correctly manage it's own fault led. Add an led class device and register it so that userspace can manage power supply fault led as necessary. Signed-off-by: Eddie James --- Changes since v1: - move led registration into a separate function. - improve comments

[PATCH v2] drivers/fbtft: Fix indentation

2018-01-10 Thread Jonny Schaefer
From: Luis Gerhorst This fixes the checkpatch message: CHECK: Alignment should match open parenthesis #1380: FILE: drivers/staging/fbtft/fbtft-core.c:1380: + dev_warn(dev, + "no default functions for regwidth=%d and buswidth=%d\n", Signed-off-by: Lui

Re: [PATCH 1/7] pipe, sysctl: drop 'min' parameter from pipe-max-size converter

2018-01-10 Thread Kees Cook
On Tue, Jan 9, 2018 at 6:29 PM, Eric Biggers wrote: > On Tue, Jan 09, 2018 at 02:20:45PM -0800, Kees Cook wrote: >> On Sun, Jan 7, 2018 at 9:35 PM, Eric Biggers wrote: >> > From: Eric Biggers >> > >> > Before validating the given value against pipe_min_size, >> > do_proc_dopipe_max_size_conv() c

Re: cgroups(7): documenting /sys/kernel/cgroup files

2018-01-10 Thread Michael Kerrisk (man-pages)
Hello Tejun, On 10 January 2018 at 15:02, Tejun Heo wrote: > Hello, > > On Wed, Jan 10, 2018 at 04:44:14AM -0800, Roman Gushchin wrote: >> cgroup.threads is not listed because it's not delegatable (doesn't have >> CFTYPE_NS_DELEGATABLE flag set). I don't know if it was intended or just >> an acci

Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest

2018-01-10 Thread Jim Mattson
Right. For future CPUs with a well-engineered fix, no extra work should be necessary on VM-entry. However, for current CPUs, we have to ensure that host kernel addresses can't be deduced from by the guest. IBPB may be sufficient, but Intel's slide deck doesn't make that clear. On Wed, Jan 10, 2018

Re: cgroups(7): documenting /sys/kernel/cgroup files

2018-01-10 Thread Tejun Heo
Hello, Michael. On Wed, Jan 10, 2018 at 06:31:20PM +0100, Michael Kerrisk (man-pages) wrote: > So, I am confused. According to Documentation/cgroup-v2.txt, > cgoup.threads is delegated: > > [[ > Model of Delegation > ~~~ > > A cgroup can be delegated in two ways. First, to a les

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