Re: [PATCH] ARM: da8xx: use platform data for CFGCHIP syscon regmap

2018-02-12 Thread Kishon Vijay Abraham I
On Monday 12 February 2018 01:26 PM, Sekhar Nori wrote: > On Thursday 25 January 2018 08:57 PM, Sekhar Nori wrote: >> + Arnd, Kishon and Lee for their information. >> >> On Wednesday 24 January 2018 05:06 AM, David Lechner wrote: >>> This converts from using a platform device for the CFGCHIP sysc

[PATCH v3 0/3] sched: Update blocked load

2018-02-12 Thread Vincent Guittot
This patchset applies on top of Peter's sched/esting branch minus the last 2 commit: 56eb46798b33 ("sched: Clean up nohz enter/exit") v3: - add memory barrier - add comments v2: - minor naming updates Vincent Guittot (3): sched: Stop nohz stats when decayed sched: reduce the periodic update

[PATCH v3 3/3] sched: update blocked load when newly idle

2018-02-12 Thread Vincent Guittot
When NEWLY_IDLE load balance is not triggered, we might need to update the blocked load anyway. We can kick an ilb so an idle CPU will take care of updating blocked load or we can try to update them locally before entering idle. In the latter case, we reuse part of the nohz_idle_balance. Signed-of

[PATCH v3 2/3] sched: reduce the periodic update duration

2018-02-12 Thread Vincent Guittot
Instead of using the cfs_rq_is_decayed() which monitors all *_avg and *_sum, we create a cfs_rq_has_blocked() which only takes care of util_avg and load_avg. We are only interested by these 2 values which are decaying faster than the *_sum so we can stop the periodic update earlier. Signed-off-by:

[PATCH v3 1/3] sched: Stop nohz stats when decayed

2018-02-12 Thread Vincent Guittot
Stopped the periodic update of blocked load when all idle CPUs have fully decayed. We introduce a new nohz.has_blocked that reflect if some idle CPUs has blocked load that have to be periodiccally updated. nohz.has_blocked is set everytime that a Idle CPU can have blocked load and it is then clear

Re: [PATCH] ALSA: usb-audio: Fix UAC2 get_ctl request with a RANGE attribute

2018-02-12 Thread Takashi Iwai
On Thu, 08 Feb 2018 07:21:36 +0100, Kirill Marinushkin wrote: > > On 02/07/18 06:45, Takashi Iwai wrote: > > On Mon, 29 Jan 2018 06:37:55 +0100, > > Kirill Marinushkin wrote: > >> The layout of the UAC2 Control request and response varies depending on > >> the request type. With the current implem

[PATCH] mm: Fix races between address_space dereference and free in page_evicatable

2018-02-12 Thread Huang, Ying
From: Huang Ying When page_mapping() is called and the mapping is dereferenced in page_evicatable() through shrink_active_list(), it is possible for the inode to be truncated and the embedded address space to be freed at the same time. This may lead to the following race. CPU1

Re: [PATCH net v4 01/13] net/8390: Remove redundant make dependencies

2018-02-12 Thread Geert Uytterhoeven
On Mon, Feb 12, 2018 at 4:08 AM, Finn Thain wrote: > The hydra, zorro8390 and mcf8390 drivers all #include "lib8390.c" and > have no need for 8390.o. modinfo confirms no dependency on 8390.ko. > Drop the redundant dependency from the Makefile. objdump confirms > that this has no effect on the modu

Re: [PATCH net v4 06/13] net/mac89x0: Convert to platform_driver

2018-02-12 Thread Geert Uytterhoeven
On Mon, Feb 12, 2018 at 4:08 AM, Finn Thain wrote: > Apparently these Dayna cards don't have a pseudoslot declaration ROM > which means they can't be probed like NuBus cards. > > Cc: Geert Uytterhoeven > Signed-off-by: Finn Thain > --- > arch/m68k/mac/config.c| 4 ++ > drivers/

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Peter Zijlstra
On Sun, Feb 11, 2018 at 10:13:44AM -0800, Linus Torvalds wrote: > That actually sounds like we could just > > (a) make gcc 4.5 be the minimum required version > > (b) actually error out if we find a bad compiler So the unofficial plan was to enforce asm-goto and -fentry support by hard failur

Re: [PATCH v2 0/6] Spectre v2 updates

2018-02-12 Thread Paolo Bonzini
On 11/02/2018 00:39, David Woodhouse wrote: > Using retpoline ensures the kernel is safe because it doesn't contain > any indirect branches, but firmware still can — and we make calls into > firmware at runtime. Where the IBRS microcode support is available, use > that before calling into firmware.

Re: [kmemleak] unreferenced object 0xcd9c1a80 (size 192):

2018-02-12 Thread Daniel Borkmann
On 02/12/2018 06:47 AM, Yonghong Song wrote: > On 2/11/18 11:18 AM, Mathieu Malaterre wrote: >> On Sun, Feb 11, 2018 at 5:54 PM, Alexei Starovoitov >> wrote: >>> On Sun, Feb 11, 2018 at 7:24 AM, Mathieu Malaterre wrote: Alexei, Could you please comment on why I am seeing those meml

Re: [PATCH net v4 09/13] net/mac8390: Convert to nubus_driver

2018-02-12 Thread Geert Uytterhoeven
On Mon, Feb 12, 2018 at 4:08 AM, Finn Thain wrote: > This resolves an old bug that constrained this driver to no more than > one card. > > Tested-by: Stan Johnson > Signed-off-by: Finn Thain > --- a/drivers/net/ethernet/8390/mac8390.c > +++ b/drivers/net/ethernet/8390/mac8390.c > @@ -390,86 +3

2% interest rate

2018-02-12 Thread marymckenzie2
INTERESTED IN A FAST AND EASY PERSONAL OR BUSINESS LOAN TODAY. EMAIL US NOW FOR MORE INFO raheemstevenloanh...@gmail.com . --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Re: [PATCH 4.4 20/87] ALSA: pcm: Allow aborting mutex lock at OSS read/write loops

2018-02-12 Thread Takashi Iwai
On Wed, 24 Jan 2018 00:35:48 +0100, Ben Hutchings wrote: > > On Mon, 2018-01-15 at 13:34 +0100, Greg Kroah-Hartman wrote: > > 4.4-stable review patch.  If anyone has any objections, please let me know. > > > > -- > > > > From: Takashi Iwai > > > > commit 900498a34a3ac9c611e9b42

Re: [PATCH 08/12] Drivers: hv: vmbus: Implement Direct Mode for stimer0

2018-02-12 Thread Dan Carpenter
On Sun, Feb 11, 2018 at 05:33:16PM -0700, k...@exchange.microsoft.com wrote: > @@ -116,9 +146,29 @@ static int hv_ce_set_oneshot(struct clock_event_device > *evt) > { > union hv_timer_config timer_cfg; > > + timer_cfg.as_uint64 = 0; > timer_cfg.enable = 1; > timer_cfg.auto

Re: [PATCH v2] usb: dwc3: core: Fix ULPI PHYs and prevent phy_get/ulpi_init during suspend/resume

2018-02-12 Thread Felipe Balbi
Roger Quadros writes: > In order for ULPI PHYs to work, dwc3_phy_setup() and dwc3_ulpi_init() > must be doene before dwc3_core_get_phy(). > > commit 541768b08a40 ("usb: dwc3: core: Call dwc3_core_get_phy() before > initializing phys") > broke this. > > The other issue is that dwc3_core_get_phy()

[PATCH] m68k/defconfig: Update defconfigs for v4.16-rc1

2018-02-12 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- arch/m68k/configs/amiga_defconfig| 13 - arch/m68k/configs/apollo_defconfig | 13 - arch/m68k/configs/atari_defconfig| 13 - arch/m68k/configs/bvme6000_defconfig | 13 - arch/m68k/configs/hp300_defconf

Re: [BUG]: A83T - AC100 gets the wrong number of parents

2018-02-12 Thread Chen-Yu Tsai
On Sun, Feb 11, 2018 at 10:43 AM, Philipp Rossak wrote: > Hey, > > When I boot my A83T I get the following bootlog [1]. > > After some debugging, I found out that the function call: > clk_hw_get_num_parents() returns 2. After a look in the devicetree I > found out that this value should be 1, sinc

Re: [PATCH 0/4] usb: gadget: fotg210-udc: Fixes and cleanup

2018-02-12 Thread Felipe Balbi
Hi, Christophe JAILLET writes: > This serie aims to fix 2 issues. (path 2 & 4) > > The 2nd patch fixes a memory leak. It uses devm_ function a simplify the > handling of the memory. > > The 4th patch fixes a potential invalid pointer dereference. > > The 2 other ones, are just clean-ups to remov

Re: [PATCH] irqchip: Remove hashed address printing

2018-02-12 Thread Marc Zyngier
On Mon, 12 Feb 2018 02:18:12 +, Jaedon Shin wrote: > > Since commit ad67b74d2469 ("printk: hash addresses printed with %p") > pointers are being hashed when printed. Displaying the virtual memory at > bootup time is not helpful. so delete the prints. > > Signed-off-by: Jaedon Shin > --- > d

Re: [PATCH 1/2] xen: xenbus_dev_frontend: Fix XS_TRANSACTION_END handling

2018-02-12 Thread Juergen Gross
On 07/02/18 23:22, Simon Gaiser wrote: > Commit fd8aa9095a95 ("xen: optimize xenbus driver for multiple > concurrent xenstore accesses") made a subtle change to the semantic of > xenbus_dev_request_and_reply() and xenbus_transaction_end(). > > Before on an error response to XS_TRANSACTION_END > xe

[PATCH v2 0/4] of: change overlay apply input data from unflattened

2018-02-12 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH v2 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply()

2018-02-12 Thread frowand . list
From: Frank Rowand Signed-off-by: Frank Rowand --- Changes from v1: - new patch Documentation/devicetree/overlay-notes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/overlay-notes.txt b/Documentation/devicetree/overlay-notes.txt index c

[PATCH v2 3/4] of: convert unittest overlay devicetree source to sugar syntax

2018-02-12 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can not be converted because t

[PATCH 3/3] extcon: gpio: Convert to fully use GPIO descriptor

2018-02-12 Thread Linus Walleij
Since we are not getting the GPIO from any platform data and global GPIO numberspace, we simply get the named "extcon" GPIO directly from the device. Cut away "active low" since GPIO descriptors already know if the line is active high or low. Simplify a bit with a struct device *dev helper variable

[PATCH 4/4] drm/pl111: Do not use deprecated drm_driver.{enable|disable)_vblank

2018-02-12 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Do not use deprecated drm_driver.{enable|disable)_vblank callbacks, but use drm_simple_kms_helpe's pipe callbacks instead. Signed-off-by: Oleksandr Andrushchenko Cc: Eric Anholt --- drivers/gpu/drm/pl111/pl111_display.c | 15 --- drivers/gpu/drm/pl111

[PATCH v2 1/4] of: change overlay apply input data from unflattened to FDT

2018-02-12 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH 1/3] extcon: gpio: Localize platform data

2018-02-12 Thread Linus Walleij
Nothing in the entire kernel #includes so move the platform data declaration inside of the driver. Signed-off-by: Linus Walleij --- drivers/extcon/extcon-gpio.c | 22 +- include/linux/extcon/extcon-gpio.h | 47 -- 2 files changed, 21 ins

[PATCH 2/3] extcon: gpio: Move platform data into state container

2018-02-12 Thread Linus Walleij
This moves the platform data settings from the platform data struct and into the state container, saving some unnecessary references and simplifying things a bit. Signed-off-by: Linus Walleij --- drivers/extcon/extcon-gpio.c | 56 1 file changed, 26 i

[PATCH 2/4] drm/mxsfb: Do not use deprecated drm_driver.{enable|disable)_vblank

2018-02-12 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Do not use deprecated drm_driver.{enable|disable)_vblank callbacks, but use drm_simple_kms_helpe's pipe callbacks instead. Signed-off-by: Oleksandr Andrushchenko Cc: Marek Vasut --- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 54 --- 1

Re: [PATCH] cpufreq: imx6q: support frequencies >528MHz for i.MX6UL/ULL

2018-02-12 Thread Viresh Kumar
On 19-01-18, 00:58, Stefan Agner wrote: > Depending on SKU i.MX6UL/i.MX6ULL support frequencies up to 900MHz. > Use PLL1 sys clock for all operating points higher than 528MHz. > > Note: For higher operating points VDD_SOC_IN needs to be 125mV > higher than the ARM set-point (see datasheet). Specif

[PATCH] m68k/mm: Stop printing the virtual memory layout

2018-02-12 Thread Geert Uytterhoeven
Since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), the virtual memory layout printed during boot up contains "ptrval" instead of actual addresses: Memory: 268040K/276480K available (2979K kernel code, 310K rwdata, 784K rodata, 144K init, 172K bss, 8440K reserved, 0K cma

Re: [PATCH 2/2] usb: dwc3: drd: Fix lock-up on ID change during system suspend/resume

2018-02-12 Thread Felipe Balbi
Hi, Roger Quadros writes: > Adding/removing host/gadget controller before .pm_complete() > causes a lock-up. Let's prevent any dual-role state change > between .pm_prepare() and .pm_complete() to fix this. > > Signed-off-by: Roger Quadros > --- > drivers/usb/dwc3/core.c | 31 ++

[PATCH 1/4] drm/simple_kms_helper: Add {enable|disable}_vblank callback support

2018-02-12 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko If simple_kms_helper based driver needs to work with vblanks, then it has to provide drm_driver.{enable|disable}_vblank callbacks, because drm_simple_kms_helper.drm_crtc_funcs does not provide any. At the same time drm_driver.{enable|disable}_vblank callbacks are mar

[PATCH 0/4] drm/simple_kms_helper: Add {enable|disable}_vblank callback support

2018-02-12 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko If simple_kms_helper based driver needs to work with vblanks, then it has to provide drm_driver.{enable|disable}_vblank callbacks, because drm_simple_kms_helper.drm_crtc_funcs does not provide any. At the same time drm_driver.{enable|disable}_vblank callbacks are mar

[PATCH 3/4] drm/tve200: Do not use deprecated drm_driver.{enable|disable)_vblank

2018-02-12 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Do not use deprecated drm_driver.{enable|disable)_vblank callbacks, but use drm_simple_kms_helpe's pipe callbacks instead. Signed-off-by: Oleksandr Andrushchenko Cc: Linus Walleij --- drivers/gpu/drm/tve200/tve200_display.c | 10 -- drivers/gpu/drm/tve200

[PATCH v2 4/4] of: improve reporting invalid overlay target path

2018-02-12 Thread frowand . list
From: Frank Rowand Errors while developing the patch to create of_overlay_fdt_apply() exposed inadequate error messages to debug problems when overlay devicetree fragment nodes contain an invalid target path. Improve the messages in find_target_node() to remedy this. Signed-off-by: Frank Rowand

Re: [PATCH] arm64: Add missing Falkor part number for branch predictor hardening

2018-02-12 Thread Marc Zyngier
On Mon, 12 Feb 2018 01:16:15 +, Shanker Donthineni wrote: > > References to CPU part number MIDR_QCOM_FALKOR were dropped from the > mailing list patch due to mainline/arm64 branch dependency. So this > patch adds the missing part number. > > Fixes: ec82b567a74f ("arm64: Implement branch pred

Re: [PATCH v3 0/5] x86/apic: Fix restoring boot irq mode in reboot and kexec/kdump

2018-02-12 Thread Dou Liyang
Hi Eric, At 02/12/2018 01:11 PM, Eric W. Biederman wrote: Dou Liyang writes: Hi all, One thing confused me. The disconnect_bsp_APIC() may restore the interrupt delivery mode into virtual wire mode. it uses the vector F as the spurious interrput, But, IMO, using the vector 0xFF(SPURIOUS_APIC

Re: [PATCH v2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-02-12 Thread Rasmus Villemoes
On 2018-02-12 07:27, frowand.l...@gmail.com wrote: > From: Frank Rowand > > Create a cache of the nodes that contain a phandle property. Use this > cache to find the node for a given phandle value instead of scanning > the devicetree to find the node. If the phandle value is not found > in the

Re: [PATCH v3 1/7] watchdog: sama5d4: make use of timeout-secs provided in devicetree

2018-02-12 Thread Nicolas Ferre
On 11/02/2018 at 21:08, Marcus Folkesson wrote: > watchdog_init_timeout() will allways pick timeout_param since it > defaults to a valid timeout. > > Following best practice described in > Documentation/watchdog/watchdog-kernel-api.txt to make use of > the parameter logic. > > Signed-off-by: Marc

[PATCH] powerpc/xmon: Dont register sysrq key when kernel param xmon=off

2018-02-12 Thread Vaibhav Jain
Presently sysrq key for xmon('x') is registered during kernel init irrespective of the value of kernel param 'xmon'. Thus xmon is enabled even if 'xmon=off' is passed on the kernel command line. This minor patch updates setup_xmon_sysrq() to register 'sysrq_xmon_op' only when variable 'xmon_on' is

Re: [PATCH v2 4/4] of: improve reporting invalid overlay target path

2018-02-12 Thread Geert Uytterhoeven
Hi Frank, On Mon, Feb 12, 2018 at 9:51 AM, wrote: > From: Frank Rowand > > Errors while developing the patch to create of_overlay_fdt_apply() > exposed inadequate error messages to debug problems when overlay > devicetree fragment nodes contain an invalid target path. Improve > the messages in

Re: [PATCH] tpm: migrate tpm2_do_selftest() to use struct tpm_buf

2018-02-12 Thread Nayna Jain
On 02/09/2018 06:48 PM, Jarkko Sakkinen wrote: As part of an ongoing effort to encapsulate TPM commands to struct tpm_buf instead of using clunky union of structs, migrated tpm2_do_selft_test() to use struct tpm_buf. Signed-off-by: Jarkko Sakkinen --- I wish this would be included as part of

Re: [PATCH 0/5] Fix deadlock on runtime suspend in DRM drivers

2018-02-12 Thread Mike Lothian
On 12 February 2018 at 03:39, Lukas Wunner wrote: > On Mon, Feb 12, 2018 at 12:35:51AM +, Mike Lothian wrote: >> I've not been able to reproduce the original problem you're trying to >> solve on amdgpu thats with or without your patch set and the above >> "trigger" too >> >> Is anything else r

Re: [PATCH 1/2] xen: xenbus_dev_frontend: Fix XS_TRANSACTION_END handling

2018-02-12 Thread Juergen Gross
On 12/02/18 09:49, Juergen Gross wrote: > On 07/02/18 23:22, Simon Gaiser wrote: >> Commit fd8aa9095a95 ("xen: optimize xenbus driver for multiple >> concurrent xenstore accesses") made a subtle change to the semantic of >> xenbus_dev_request_and_reply() and xenbus_transaction_end(). >> >> Before o

Re: [PATCH v2 06/11] watchdog/hpwdt: Modify to use watchdog core.

2018-02-12 Thread Marcus Folkesson
Hi Jerry, On Sun, Feb 11, 2018 at 10:21:06PM -0700, Jerry Hoemann wrote: > Follow Documentation/watchdog/convert_drivers_to_kernel_api.txt to > convert hpwdt from legacy watchdog driver to use the watchdog core. > > Removed functions: hpwdt_open, hpwdt_release, hpwdt_write, hpwdt_ioctl > Removed

Re: [PATCH v2 08/11] watchdog/hpwdt: Programable Pretimeout NMI

2018-02-12 Thread Marcus Folkesson
Hi Jerry, On Sun, Feb 11, 2018 at 10:21:08PM -0700, Jerry Hoemann wrote: > Make whether or not the hpwdt watchdog delivers a pretimeout NMI > programable by the user. > > The underlying iLO hardware is programmable as to whether or not > a pre-timeout NMI is delivered to the system before the iLO

Re: [linux-sunxi] [PATCH v2 5/6] arm64: allwinner: h6: add the basical Allwinner H6 DTSI file

2018-02-12 Thread Philippe Ombredanne
Icenowy, On Mon, Feb 12, 2018 at 12:26 AM, André Przywara wrote: > Hi, > > On 03/02/18 15:49, Icenowy Zheng wrote: >> Allwinner H6 is a new SoC with Cortex-A53 cores from Allwinner, with its >> memory map fully reworked and some high-speed peripherals (PCIe, USB >> 3.0) introduced. >> >> This com

Re: [PATCH 8/8] ASoC: samsung,tm2-audio DT binding documentation update

2018-02-12 Thread Krzysztof Kozlowski
On Wed, Feb 7, 2018 at 5:31 PM, Sylwester Nawrocki wrote: > On 02/06/2018 02:05 PM, Krzysztof Kozlowski wrote: >> On Mon, Feb 5, 2018 at 4:44 PM, Sylwester Nawrocki >> wrote: >>> This patch documents additional entries of the audio-codec and >>> i2s-controller properties required for the HDMI aud

[PATCH] PM: cpuidle: Fix cpuidle_poll_state_init() prototype

2018-02-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Commit f85942207516 (x86: PM: Make APM idle driver initialize polling state) made apm_init() call cpuidle_poll_state_init(), but that only is defined for CONFIG_CPU_IDLE set, so make the empty stub of it available for CONFIG_CPU_IDLE unset too to fix the resulting build is

Re: [PATCH] kthread: Export kthread_data()

2018-02-12 Thread Peter Zijlstra
On Fri, Feb 09, 2018 at 09:52:21AM -0500, Waiman Long wrote: > When multiple kernel threads are created to cooperatively work on > a common task, we may need a convenient way to access data that are > specific to each kthread. > > The kthread_data() function fits this need. However, it was not >

Re: [PATCH v5 01/11] scsi: ufs: sysfs: attribute group for existing sysfs entries.

2018-02-12 Thread Philippe Ombredanne
Dear Stanislav, On Mon, Feb 12, 2018 at 2:06 AM, Jaegeuk Kim wrote: > On 02/06, Stanislav Nijnikov wrote: >> This patch introduces attribute group to show existing sysfs entries. >> >> Signed-off-by: Stanislav Nijnikov >> --- /dev/null >> +++ b/drivers/scsi/ufs/ufs-sysfs.c >> @@ -0,0 +1,156 @

Re: update spectre v2 microcodes blacklist

2018-02-12 Thread David Woodhouse
On Sat, 2018-02-10 at 20:14 +0300, Alexander Sergeyev wrote: > > > > I didn't fully match the updated revision guidance and > > spectre_bad_microcodes > I compared these lists and it seems that the only difference is about > skylakes.  > Everything else is covered by less-or-equal criteria on

Re: [PATCH 2/4] drm/mxsfb: Do not use deprecated drm_driver.{enable|disable)_vblank

2018-02-12 Thread Marek Vasut
On 02/12/2018 09:52 AM, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > Do not use deprecated drm_driver.{enable|disable)_vblank callbacks, > but use drm_simple_kms_helpe's pipe callbacks instead. > > Signed-off-by: Oleksandr Andrushchenko > Cc: Marek Vasut Reviewed-by: Mar

Re: [PATCH v2 04/11] watchdog/hpwdt: white space changes

2018-02-12 Thread Philippe Ombredanne
Jerry, On Mon, Feb 12, 2018 at 6:21 AM, Jerry Hoemann wrote: > Minor white space changes and some name clean up. > > Signed-off-by: Jerry Hoemann > --- > drivers/watchdog/hpwdt.c | 49 > +++- > 1 file changed, 23 insertions(+), 26 deletions(-) > > di

Re: [PATCH v3 8/7] TESTING_ONLY x86/entry: reduce static footprint of idtentry

2018-02-12 Thread Ingo Molnar
* Dominik Brodowski wrote: > Play a little trick in the generic PUSH_AND_CLEAR_REGS macro > to insert the GP registers "above" the original return address. > This allows us to (re-)insert the macro in error_entry() and > paranoid_entry() and to remove it from the idtentry macro. This > reduces t

intel_pmc_core does not initialize intel 8th gen PMC

2018-02-12 Thread kitestramuort
Hi, don't know if this is intended. In 4.15.2 i have: dmesg: intel_pmc_core :00:1f.2: enabling device ( -> 0002) lspci: 00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21) Subsystem: Intel Corporation Sunrise Point-LP PMC Control: I/O- Mem+ BusMaster

Re: [PATCH v3 1/3] KVM: Introduce dedicated vCPUs hint KVM_HINTS_DEDICATED

2018-02-12 Thread Andrew Jones
On Sun, Feb 11, 2018 at 11:29:44AM +0800, Wanpeng Li wrote: > From: Wanpeng Li > > This patch introduces dedicated vCPUs hint KVM_HINTS_DEDICATED, > guest checks this feature bit to determine if they run on dedicated > vCPUs, allowing optimizations. > > Cc: Paolo Bonzini > Cc: Radim Krčmář >

Re: [PATCH] drm/edid: drop the dcc probe before drm_do_get_edid

2018-02-12 Thread Jani Nikula
On Sun, 11 Feb 2018, Lubomir Rintel wrote: > On Sat, 2018-02-10 at 19:03 +0100, Lubomir Rintel wrote: >> Now that drm_do_get_edid() handles override and firmware EDIDs it makes >> no sense to conditionalize it with a DCC probe. On the contrary -- the >> overrides are useful specifically when DCC i

Re: [PATCH v3 2/3] arm64: dts: sdm845: Add minimal dts files for sdm845 SoC/MTP

2018-02-12 Thread Philippe Ombredanne
On Mon, Feb 12, 2018 at 7:28 AM, Rajendra Nayak wrote: > Add a skeletal sdm845 SoC dtsi and MTP board dts/dtsi files > > Signed-off-by: Rajendra Nayak > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 13 ++ > arch/arm64/boot/dts/qcom/sdm845.dt

Re: [PATCH v3 1/3] sched: Stop nohz stats when decayed

2018-02-12 Thread Peter Zijlstra
On Mon, Feb 12, 2018 at 09:07:52AM +0100, Vincent Guittot wrote: > @@ -9222,6 +9259,20 @@ void nohz_balance_enter_idle(int cpu) > atomic_inc(&nohz.nr_cpus); > > set_cpu_sd_state_idle(cpu); > + > + /* > + * Ensures that if nohz_idle_balance() fails to observe our > +

Re: [PATCH] perf: Add support for creating offline events

2018-02-12 Thread Jiri Olsa
On Fri, Feb 09, 2018 at 03:07:00PM -0800, Raghavendra Rao Ananta wrote: > Perf framework doesn't allow creation of hardware events if > the requested CPU is offline. However, creation of an event > is achievable if the event is attached to the PMU as soon > as the CPU is online again. > > So, intr

Re: [PATCH] perf: Add support for creating offline events

2018-02-12 Thread Jiri Olsa
On Fri, Feb 09, 2018 at 03:07:00PM -0800, Raghavendra Rao Ananta wrote: SNIP > > if (!task) { > +#if defined CONFIG_HOTPLUG_CPU || defined CONFIG_KEXEC_CORE > + struct perf_cpu_context *cpuctx = > + container_of(ctx, struct perf_cpu_context, ctx); > + > +

Re: [PATCH 0/5] Fix deadlock on runtime suspend in DRM drivers

2018-02-12 Thread Lukas Wunner
On Mon, Feb 12, 2018 at 09:03:26AM +, Mike Lothian wrote: > On 12 February 2018 at 03:39, Lukas Wunner wrote: > > On Mon, Feb 12, 2018 at 12:35:51AM +, Mike Lothian wrote: > > > I've not been able to reproduce the original problem you're trying to > > > solve on amdgpu thats with or withou

Re: Regression after commit 19809c2da28a ("mm, vmalloc: use __GFP_HIGHMEM implicitly")

2018-02-12 Thread Michal Hocko
[I am crawling over a large backlog after vacation so I will get to other emails in this thread later. Let's just fix the regression first. The patch with the full changelog is at the end of this email. CC Andrew - the original report is http://lkml.kernel.org/r/627da40a-d0f6-41c1-bb5a-55830fbc

Re: [PATCH v2 1/6] x86/speculation: Update Speculation Control microcode blacklist

2018-02-12 Thread Darren Kenny
On Sat, Feb 10, 2018 at 11:39:22PM +, David Woodhouse wrote: Intel have retroactively blessed the 0xc2 microcode on Skylake mobile and desktop parts, and the Gemini Lake 0x22 microcode is apparently fine too. We blacklisted the latter purely because it was present with all the other problemat

Re: [PATCH v3 1/3] sched: Stop nohz stats when decayed

2018-02-12 Thread Vincent Guittot
On 12 February 2018 at 10:41, Peter Zijlstra wrote: > On Mon, Feb 12, 2018 at 09:07:52AM +0100, Vincent Guittot wrote: >> @@ -9222,6 +9259,20 @@ void nohz_balance_enter_idle(int cpu) >> atomic_inc(&nohz.nr_cpus); >> >> set_cpu_sd_state_idle(cpu); >> + >> + /* >> + * Ensures

Re: linux-4.16-rc1/drivers/misc/ocxl/file.c:320:broken error checking ?

2018-02-12 Thread Frederic Barrat
Le 12/02/2018 à 09:58, David Binderman a écrit : Hello there, linux-4.16-rc1/drivers/misc/ocxl/file.c:320]: (style) Checking if unsigned variable 'used' is less than zero. Source code is    used = append_xsl_error(ctx, &header, buf + sizeof(header));     if (used < 0)

Re: [kselftests] compaction_test is blocked

2018-02-12 Thread Li Zhijian
On 2018年02月12日 11:26, Li Zhijian wrote: On 2018年02月11日 13:44, Li Zhijian wrote: On 02/10/2018 05:11 AM, Dan Rue wrote: On Fri, Feb 09, 2018 at 03:53:59PM +0800, Li Zhijian wrote: Hi kselftests is integrated Intel 0Day project. Sometimes we found compaction_test is blocked for more than

Re: [PATCH 2/2] x86/mm/64: Add vsyscall page to /proc/kcore conditionally

2018-02-12 Thread Thomas Gleixner
On Fri, 9 Feb 2018, Jia Zhang wrote: > > Anybody else here who can give an attention on this review? Jiri gave you perfectly valid feedback. Please address that and repost a V2. Thanks, tglx

Re: [PATCH v3 0/5] x86/apic: Fix restoring boot irq mode in reboot and kexec/kdump

2018-02-12 Thread Baoquan He
On 02/11/18 at 11:11pm, Eric W. Biederman wrote: > Dou Liyang writes: > > > Hi all, > > > > One thing confused me. > > > > The disconnect_bsp_APIC() may restore the interrupt delivery mode into > > virtual wire mode. it uses the vector F as the spurious interrput, But, > > IMO, using the vector 0

Re: [PATCH 4/8] ASoC: samsung: i2s: Define the parameters list for SAMSUNG_I2S_OPCLK

2018-02-12 Thread Krzysztof Kozlowski
On Wed, Feb 7, 2018 at 5:23 PM, Sylwester Nawrocki wrote: > On 02/06/2018 01:26 PM, Krzysztof Kozlowski wrote: >> On Mon, Feb 5, 2018 at 4:43 PM, Sylwester Nawrocki >> wrote: > >>> diff --git a/sound/soc/samsung/i2s.h b/sound/soc/samsung/i2s.h >>> index 79781de2f247..a9832a9555cb 100644 >>> --- a

ext4 iomap SEEK broken [was: [GIT PULL] ext4 updates for 4.15]

2018-02-12 Thread Jiri Slaby
Hi, On 11/13/2017, 04:15 AM, Theodore Ts'o wrote: > The following changes since commit 9e66317d3c92ddaab330c125dfe9d06eee268aff: > > Linux 4.14-rc3 (2017-10-01 14:54:54 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git > tag

Re: [PATCH v3 2/5] x86/apic: Fix restoring boot irq mode in reboot and kexec/kdump

2018-02-12 Thread Baoquan He
On 02/11/18 at 09:08pm, Eric W. Biederman wrote: > Baoquan He writes: > > > This is a regression fix. > > > > Before, to fix erratum AVR31, commit 522e66464467 ("x86/apic: Disable > > I/O APIC before shutdown of the local APIC") moved lapic_shutdown() > > calling after disable_IO_APIC(). This int

Re: [PATCH v13 3/4] fw_cfg: write vmcoreinfo details

2018-02-12 Thread Marc-Andre Lureau
Hi On Mon, Feb 12, 2018 at 4:43 AM, Michael S. Tsirkin wrote: > On Wed, Feb 07, 2018 at 02:35:24AM +0100, Marc-André Lureau wrote: >> If the "etc/vmcoreinfo" fw_cfg file is present and we are not running >> the kdump kernel, write the addr/size of the vmcoreinfo ELF note. >> >> The DMA operation

Re: INFO: task hung in check_lifetime

2018-02-12 Thread Dmitry Vyukov
On Wed, Feb 7, 2018 at 4:02 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on net-next commit > 617aebe6a97efa539cc4b8a52adccd89596e6be0 (Sun Feb 4 00:25:42 2018 +) > Merge tag 'usercopy-v4.16-rc1' of > git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux > > Unfortunately,

Re: [PATCH] gpio: merrifield: Delete an error message for a failed memory allocation in mrfld_gpio_probe()

2018-02-12 Thread Andy Shevchenko
On Sun, 2018-02-11 at 13:42 +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 11 Feb 2018 13:30:14 +0100 > > Omit an extra message for a memory allocation failure in this > function. > > This issue was detected by using the Coccinelle software. > Linus, I have no strong opini

[PATCH 02/17] kexec_file: Remove checks in kexec_purgatory_load

2018-02-12 Thread Philipp Rudo
Before the purgatory is loaded several checks are done whether the ELF file in kexec_purgatory is valid or not. These checks are incomplete. For example they don't check for the total size of the sections defined in the section header table or if the entry point actually points into the purgatory.

[PATCH 14/17] s390/kexec_file: Add kexec_file_load system call

2018-02-12 Thread Philipp Rudo
This patch adds the kexec_file_load system call to s390 as well as the arch specific functions common code requires to work. Loaders for the different file types will be added later. Signed-off-by: Philipp Rudo --- arch/s390/Kconfig | 4 + arch/s390/kernel/Makefile

[PATCH 17/17] s390/kexec_file: Add ELF loader

2018-02-12 Thread Philipp Rudo
Add an ELF loader for kexec_file. The main task here is to do proper sanity checks on the ELF file. Basically all other functionality was already implemented for the image loader. Signed-off-by: Philipp Rudo --- arch/s390/include/asm/kexec.h | 1 + arch/s390/kernel/Makefile

[PATCH 09/17] kexec_file: Remove mis-use of sh_offset field

2018-02-12 Thread Philipp Rudo
The current code uses the sh_offset field in purgatory_info->sechdrs to store a pointer to the current load address of the section. Depending whether the section will be loaded or not this is either a pointer into purgatory_info->purgatory_buf or kexec_purgatory. This is not only a violation of the

[PATCH 16/17] s390/kexec_file: Add crash support to image loader

2018-02-12 Thread Philipp Rudo
Add support to load a crash kernel to the image loader. This requires extending the purgatory. Signed-off-by: Philipp Rudo Reviewed-by: Martin Schwidefsky --- arch/s390/kernel/kexec_image.c| 6 +- arch/s390/kernel/machine_kexec_file.c | 45 - arch/s390/purgatory/head.S

[PATCH 13/17] s390/kexec_file: Add purgatory

2018-02-12 Thread Philipp Rudo
The common code expects the architecture to have a purgatory that runs between the two kernels. Add it now. For simplicity first skip crash support. Signed-off-by: Philipp Rudo --- arch/s390/Kbuild | 1 + arch/s390/include/asm/purgatory.h | 17 +++ arch/s390/kernel/asm-offs

[PATCH] audit: session ID should not set arch quick field pointer

2018-02-12 Thread Richard Guy Briggs
A bug was introduced in 8fae47705685fcaa75a1fe4c8c3e18300a702979 ("audit: add support for session ID user filter") See: https://github.com/linux-audit/audit-kernel/issues/4 When setting a session ID filter, the session ID filter field overwrote the quick pointer reference to the arch field, potent

[PATCH 15/17] s390/kexec_file: Add image loader

2018-02-12 Thread Philipp Rudo
Add an image loader for kexec_file_load. For simplicity first skip crash support. The functions defined in machine_kexec_file will later be shared with the ELF loader. Signed-off-by: Philipp Rudo Reviewed-by: Martin Schwidefsky --- arch/s390/include/asm/kexec.h | 22 ++ arch/s39

[PATCH 11/17] kexec_file: Move purgatories sha256 to common code

2018-02-12 Thread Philipp Rudo
The code to verify the new kernels sha digest are applicable for all architectures. Move it to common code. Signed-off-by: Philipp Rudo --- arch/x86/purgatory/Makefile| 3 +++ arch/x86/purgatory/purgatory.c | 2 +- {arch/x86/purgatory => include/linux}/sha25

[PATCH 10/17] kexec_file: Allow archs to set purgatory load address

2018-02-12 Thread Philipp Rudo
For s390 new kernels are loaded to fixed addresses in memory before they are booted. With the current code this is a problem as it assumes the kernel will be loaded to an 'arbitrary' address. In particular, kexec_locate_mem_hole searches for a large enough memory region and sets the load address (k

Re: [PATCH 1/2] i2c: piix4: Use request_muxed_region

2018-02-12 Thread Jean Delvare
Hi Guneter, Sorry for the delay :( On Sat, 30 Dec 2017 08:50:57 -0800, Guenter Roeck wrote: > Accesses to SB800_PIIX4_SMB_IDX can occur from multiple drivers. > Use request_muxed_region() to ensure synchronization. Which ones? Documenting it, at least in the commit message, would seem useful. Ou

[PATCH 12/17] s390/kexec_file: Prepare setup.h for kexec_file_load

2018-02-12 Thread Philipp Rudo
kexec_file_load needs to prepare the new kernels before they are loaded. For that it has to know the offsets in head.S, e.g. to register the new command line. Unfortunately there are no macros right now defining those offsets. Define them now. Signed-off-by: Philipp Rudo --- arch/s390/include/as

[PATCH 07/17] kexec_file: Simplify kexec_purgatory_setup_sechdrs 1

2018-02-12 Thread Philipp Rudo
To update the entry point there is an extra loop over all section headers although this can be done in the main loop. So move it there and eliminate the extra loop and variable to store the 'entry section index'. Also, in the main loop, move the usual case, i.e. non-bss section, out of the extra i

[PATCH 08/17] kexec_file: Simplify kexec_purgatory_setup_sechdrs 2

2018-02-12 Thread Philipp Rudo
The main loop currently uses quite a lot of variables to update the section headers. Some of them are unnecessary. So clean them up a little. Signed-off-by: Philipp Rudo --- kernel/kexec_file.c | 34 -- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git

[PATCH 03/17] kexec_file: Make purgatory_info->ehdr const

2018-02-12 Thread Philipp Rudo
The kexec_purgatory buffer is read-only. Thus all pointers into kexec_purgatory are read-only, too. Point this out by explicitly marking purgatory_info->ehdr as 'const' and update the comments in purgatory_info. Signed-off-by: Philipp Rudo --- include/linux/kexec.h | 17 +++-- kernel

[PATCH 06/17] kexec_file: Split up __kexec_load_puragory

2018-02-12 Thread Philipp Rudo
When inspecting __kexec_load_purgatory you find that it has two tasks 1) setting up the kexec_buffer for the new kernel and, 2) setting up pi->sechdrs for the final load address. The two tasks are independent of each other. To improve readability split up __kexec_load_purgatory in

[PATCH 01/17] kexec_file: Silence compile warnings

2018-02-12 Thread Philipp Rudo
When building the kernel with CONFIG_KEXEC_FILE enabled gcc prints a compile warning multiple times. In file included from /linux/init/initramfs.c:526:0: /include/linux/kexec.h:120:9: warning: ‘struct kimage’ declared inside parameter list [enabled by default] unsigned long cmdline_len);

[PATCH 05/17] kexec_file: Use read-only sections in arch_kexec_apply_relocations*

2018-02-12 Thread Philipp Rudo
When the relocations are applied to the purgatory only the section the relocations are applied to is writable. The other sections, i.e. the symtab and .rel/.rela, are in read-only kexec_purgatory. Highlight this by marking the corresponding variables as 'const'. While at it also change the signatu

[PATCH 04/17] kexec_file: Search symbols in read-only kexec_purgatory

2018-02-12 Thread Philipp Rudo
The stripped purgatory does not contain a symtab. So when looking for symbols this is done in read-only kexec_purgatory. Highlight this by marking the corresponding variables as 'const'. Signed-off-by: Philipp Rudo --- kernel/kexec_file.c | 38 ++ 1 file chang

[PATCH 00/17] Add kexec_file_load support to s390

2018-02-12 Thread Philipp Rudo
Hi everybody resending the series as there was no reaction, yet. Furthermore i was told that Andrew and the x86 list should also be CCed, so welcome. No changes made to the patches since first time i sent them. The patches apply to the current master (v4.16-rc1). Thanks Philipp --- this series

[tip:x86/pti] x86/entry/64: Merge the POP_C_REGS and POP_EXTRA_REGS macros into a single POP_REGS macro

2018-02-12 Thread tip-bot for Dominik Brodowski
Commit-ID: a1490086a98e51e3358be8eaf2bc5743c73c6b6e Gitweb: https://git.kernel.org/tip/a1490086a98e51e3358be8eaf2bc5743c73c6b6e Author: Dominik Brodowski AuthorDate: Sun, 11 Feb 2018 11:49:43 +0100 Committer: Ingo Molnar CommitDate: Mon, 12 Feb 2018 08:06:35 +0100 x86/entry/64: Merge t

  1   2   3   4   5   6   7   8   9   10   >