Re: [PATCH v2] x86/xen/efi: Initialize UEFI secure boot state during dom0 boot

2018-04-11 Thread Daniel Kiper
On Wed, Apr 04, 2018 at 12:38:24PM +0200, Daniel Kiper wrote: > On Tue, Apr 03, 2018 at 10:00:52AM -0700, James Bottomley wrote: > > On Tue, 2018-04-03 at 18:07 +0200, Daniel Kiper wrote: > > > On Tue, Apr 03, 2018 at 08:44:41AM -0700, James Bottomley wrote: > > [...] > > > > > This looks like a ba

[PATCH v2 08/12] arm: dts: mediatek: modify audio related nodes for both MT2701 and MT7623

2018-04-11 Thread sean.wang
From: Ryder Lee Modify audio related nodes to reflect the actual usage in binding documents. Signed-off-by: Ryder Lee Signed-off-by: Sean Wang --- arch/arm/boot/dts/mt2701.dtsi | 188 - arch/arm/boot/dts/mt7623.dtsi | 190 ---

Re: [PATCH v3 1/7] thermal/drivers/cpu_cooling: Fixup the header and copyright

2018-04-11 Thread Daniel Lezcano
On 11/04/2018 08:15, Viresh Kumar wrote: > On 05-04-18, 18:16, Daniel Lezcano wrote: >> The copyright format does not conform to the format requested by >> Linaro: https://wiki.linaro.org/Copyright >> >> Fix it. >> >> Signed-off-by: Daniel Lezcano > > You forgot to include my Ack ? Yes :) --

Re: [PATCH v3 4/7] thermal/drivers/Kconfig: Convert the CPU cooling device to a choice

2018-04-11 Thread Daniel Lezcano
On 11/04/2018 08:18, Viresh Kumar wrote: > On 05-04-18, 18:16, Daniel Lezcano wrote: >> The next changes will add new way to cool down a CPU. In order to >> sanitize and make the overall cpu cooling code consistent and robust >> we must prevent the cpu cooling devices to co-exists with the same >>

Re: [PATCH v3 2/2] mm: remove odd HAVE_PTE_SPECIAL

2018-04-11 Thread Christophe LEROY
Le 11/04/2018 à 10:03, Laurent Dufour a écrit : Remove the additional define HAVE_PTE_SPECIAL and rely directly on CONFIG_ARCH_HAS_PTE_SPECIAL. There is no functional change introduced by this patch Signed-off-by: Laurent Dufour --- mm/memory.c | 19 --- 1 file changed, 8

[PATCH] Input: i8042 - Fix KBD port cannot wake up system from suspend-to-idle

2018-04-11 Thread Kai-Heng Feng
Commit f13b2065de81 ("Input: i8042 - allow KBD and AUX ports to wake up from suspend-to-idle") make system in s2idle can be woken up by i8042 keyboard, but it's disabled by default. In commit 3e6e15a862a0 ("Input: enable remote wakeup for PNP i8042 keyboard ports") states that "Keyboard ports are

Re: [PATCH v3 2/2] mm: remove odd HAVE_PTE_SPECIAL

2018-04-11 Thread Christophe LEROY
Le 11/04/2018 à 10:41, Laurent Dufour a écrit : On 11/04/2018 10:33, Michal Hocko wrote: On Wed 11-04-18 10:03:36, Laurent Dufour wrote: @@ -881,7 +876,8 @@ struct page *_vm_normal_page(struct vm_area_struct *vma, unsigned long addr, if (is_zero_pfn(pfn)) return NULL;

Re: [RFC 1/6] dt-bindings: dma: xilinx_dma: Add optional property has_axieth_connected

2018-04-11 Thread Vinod Koul
On Mon, Apr 02, 2018 at 04:09:01PM +0530, Radhey Shyam Pandey wrote: > Add an optional AXI DMA property 'has_axieth_connected'. This can be > specified to indicate that AXI DMA is connected to AXI Ethernet in > hardware design and dma driver needs to do some additional handling. 1. why are DT peop

[PATCH v2 03/12] arm: dts: mt7623: fix invalid memory node being generated

2018-04-11 Thread sean.wang
From: Sean Wang Below two wrong nodes in existing DTS files would cause a fail boot since in fact the address 0 is not the correct place the memory device locates at. memory { device_type = "memory"; reg = <0x0 0x0 0x0 0x0>; }; memory@8000 { reg = <0x0 0x8000 0x0

Re: [PATCH v3 2/2] mm: remove odd HAVE_PTE_SPECIAL

2018-04-11 Thread Laurent Dufour
On 11/04/2018 10:58, Christophe LEROY wrote: > > > Le 11/04/2018 à 10:03, Laurent Dufour a écrit : >> Remove the additional define HAVE_PTE_SPECIAL and rely directly on >> CONFIG_ARCH_HAS_PTE_SPECIAL. >> >> There is no functional change introduced by this patch >> >> Signed-off-by: Laurent Dufo

[PATCH v2 11/12] arm: dts: mt7623: add MT7623A reference boards

2018-04-11 Thread sean.wang
From: Sean Wang Add MT7623A reference board with eMMC and NAND, respectively. The both boards compared against MT7623N BPI-R2, we could see there are UART[0-1] and USB2 being removed, I2C2 and SPI1 being added, I2C1, UART2 owning distinct pin usage and an extra WM8960 codec chip plugged into the

[PATCH v2 05/12] arm: dts: mt7623: fix all Warnings (unit_address_vs_reg)

2018-04-11 Thread sean.wang
From: Sean Wang Fix below a lot of Warnings (unit_address_vs_reg) that dtc complains so much for Node /oscillator@1 has a unit name, but no reg property Node /oscillator@0 has a unit name, but no reg property Node /pinctrl@10005000/cir@0 has a unit name, but no reg property Node /pinctrl@1000500

Re: [RFC 4/6] dmaengine: xilinx_dma: Freeup active list based on descriptor completion bit

2018-04-11 Thread Vinod Koul
On Mon, Apr 02, 2018 at 04:09:04PM +0530, Radhey Shyam Pandey wrote: > AXIDMA IP sets completion bit to 1 when the transfer is completed. Read > this bit to move descriptor from active list to the done list. This feature > is needed when interrupt delay timeout and IRQThreshold is enabled i.e > Dly

[PATCH v2 10/12] arm: dts: mt7623: add MT7623A SoC level DTS

2018-04-11 Thread sean.wang
From: Sean Wang Add a common file for MT7623A SoC level DTS, indicating MT7623A only has a specific definition for power domain. That causes we need to change related consumers devices such as audio, ethernet, crypto, NAND, and USB controller to grasp its own power domain it should belong to. Si

Re: [PATCH] drm/vc4: Add some missing HVS register definitions.

2018-04-11 Thread Stefan Schake
On Sat, Mar 3, 2018 at 12:03 AM, Eric Anholt wrote: > At least the RGBA expand field we should have been setting, because we > aren't expanding correctly for 565 -> . Other registers are ones > that may be interesting for various projects that have been discussed. > > Signed-off-by: Eric Anho

[PATCH v2 06/12] arm: dts: mt7623: add BTIF, HSDMA and SPI-NOR device nodes

2018-04-11 Thread sean.wang
From: Sean Wang add BTIF, HSDMA and SPI-NOR device nodes and enable it on relevant boards Signed-off-by: Sean Wang --- arch/arm/boot/dts/mt7623.dtsi | 36 ++- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 6 - 2 files changed, 40 insertions(+), 2

[PATCH v2 04/12] arm: dts: mt7623: fix available memory size on bananapi-r2

2018-04-11 Thread sean.wang
From: Sean Wang There is 2GB DDR3 available on bananapi-r2 board as [1] specified. [1] http://www.banana-pi.org/r2.html Signed-off-by: Sean Wang Cc: Rob Herring --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot

Re: [RFC 2/6] dmaengine: xilinx_dma: Pass AXI4-Stream control words to netdev dma client

2018-04-11 Thread Vinod Koul
On Mon, Apr 02, 2018 at 04:09:02PM +0530, Radhey Shyam Pandey wrote: > + > + if (chan->xdev->has_axieth_connected) { > + seg = list_first_entry(&desc->segments, > + struct xilinx_axidma_tx_segment, node); > + i

Re: [RFC 5/6] dmaengine: xilinx_dma: Program interrupt delay timeout

2018-04-11 Thread Vinod Koul
On Mon, Apr 02, 2018 at 04:09:05PM +0530, Radhey Shyam Pandey wrote: > Program IRQDelay for AXI DMA. The interrupt timeout mechanism causes > the DMA engine to generate an interrupt after the delay time period > has expired. It enables dmaengine to respond in real-time even though > interrupt coale

Re: [PATCH v3 2/2] mm: remove odd HAVE_PTE_SPECIAL

2018-04-11 Thread Christophe LEROY
Le 11/04/2018 à 11:03, Laurent Dufour a écrit : On 11/04/2018 10:58, Christophe LEROY wrote: Le 11/04/2018 à 10:03, Laurent Dufour a écrit : Remove the additional define HAVE_PTE_SPECIAL and rely directly on CONFIG_ARCH_HAS_PTE_SPECIAL. There is no functional change introduced by this pa

Re: [PATCH v2 4/5] soc/tegra: pmc: Use of_clk_get_parent_count() instead of open coding

2018-04-11 Thread Jon Hunter
On 10/04/18 13:51, Geert Uytterhoeven wrote: > As of_clk_get_parent_count() returns zero on failure, while > of_count_phandle_with_args() might return a negative error code, this > also fixes the issue of possibly using a very big number in the > allocation below. > > Signed-off-by: Geert Uytterh

Re: [PATCH net-next] netns: filter uevents correctly

2018-04-11 Thread Christian Brauner
On Tue, Apr 10, 2018 at 10:04:46AM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > On Mon, Apr 09, 2018 at 06:21:31PM -0500, Eric W. Biederman wrote: > >> Christian Brauner writes: > >> > >> > On Thu, Apr 05, 2018 at 10:59:49PM -0500, Eric W. Biederman wrote: > >> >> Christian

Re: [Letux-kernel] [Bug]: mtd: onenand: omap2plus: kernel panic with OneNAND on OMAP3 (DM3730) device GTA04A5

2018-04-11 Thread Ladislav Michl
On Wed, Apr 11, 2018 at 10:52:01AM +0200, Boris Brezillon wrote: > On Wed, 11 Apr 2018 10:27:46 +0200 > Ladislav Michl wrote: > > > On Wed, Apr 11, 2018 at 10:08:06AM +0200, Boris Brezillon wrote: > > > On Wed, 11 Apr 2018 09:36:56 +0200 > > > Ladislav Michl wrote: > > > > > > > Hi Boris, > >

[PATCH v3 0/2] vfio: platform: Improve reset support

2018-04-11 Thread Geert Uytterhoeven
Hi all, This patch series improves reset support for vfio-platform: - The first patch fixes a bug I ran into while working on this. - The second patch implements generic DT reset controller support, for devices that are connected to an SoC-internal reset controller and can be r

Re: [PATCH] staging: comedi: cb_pcidas64: fix alignment of function parameters

2018-04-11 Thread Ian Abbott
On 11/04/18 06:07, Julia Lawall wrote: On Tue, 10 Apr 2018, Gabriel Francisco Mandaji wrote: [snip] diff --git a/drivers/staging/comedi/drivers/cb_pcidas64.c b/drivers/staging/comedi/drivers/cb_pcidas64.c index fdd81c3..631a703 100644 --- a/drivers/staging/comedi/drivers/cb_pcidas64.c +++ b/dr

[PATCH v3 2/2] vfio: platform: Add generic DT reset support

2018-04-11 Thread Geert Uytterhoeven
Vfio-platform requires reset support, provided either by ACPI, or, on DT platforms, by a device-specific reset driver matching against the device's compatible value. On many SoCs, devices are connected to an SoC-internal reset controller. If the reset hierarchy is described in DT using "resets" pr

[PATCH] vfio: platform: Fix using devices in PM Domains

2018-04-11 Thread Geert Uytterhoeven
If a device is part of a PM Domain (e.g. power and/or clock domain), its power state is managed using Runtime PM. Without Runtime PM, the device may not be powered up, causing subtle failures, crashes, or system lock-ups when the device is accessed by the guest. Fix this by adding Runtime PM supp

Re: [PATCH V2] drm/amdgpu: limit DMA size to PAGE_SIZE for scatter-gather buffers

2018-04-11 Thread Christian König
Am 11.04.2018 um 08:26 schrieb Huang Rui: On Tue, Apr 10, 2018 at 04:59:55PM -0400, Sinan Kaya wrote: Code is expecing to observe the same number of buffers returned from dma_map_sg() function compared to sg_alloc_table_from_pages(). This doesn't hold true universally especially for systems with

[PATCH v3 1/2] vfio: platform: Fix reset module leak in error path

2018-04-11 Thread Geert Uytterhoeven
If the IOMMU group setup fails, the reset module is not released. Fixes: b5add544d677d363 ("vfio, platform: make reset driver a requirement by default") Signed-off-by: Geert Uytterhoeven Reviewed-by: Eric Auger Reviewed-by: Simon Horman --- v3: - Add Reviewed-by, v2: - Add Reviewed-by. --

Re: [PATCH 1/5] dmaengine: sprd: Define the DMA transfer step type

2018-04-11 Thread Vinod Koul
On Tue, Apr 10, 2018 at 03:46:03PM +0800, Baolin Wang wrote: > From: Eric Long > > Define the DMA transfer step type to make code more readable. > > Signed-off-by: Eric Long > Signed-off-by: Baolin Wang > --- > drivers/dma/sprd-dma.c | 28 ++-- > 1 file changed, 22 i

Re: [PATCH] staging: comedi: cb_pcidas64: fix alignment of function parameters

2018-04-11 Thread Ian Abbott
On 10/04/18 23:50, Gabriel Francisco Mandaji wrote: Fix most checkpatch.pl issues of type: CHECK: Alignment should match open parenthesis Signed-off-by: Gabriel Francisco Mandaji --- drivers/staging/comedi/drivers/cb_pcidas64.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) di

Re: [PATCH] vfio: platform: Fix using devices in PM Domains

2018-04-11 Thread Geert Uytterhoeven
On Wed, Apr 11, 2018 at 11:15 AM, Geert Uytterhoeven wrote: > If a device is part of a PM Domain (e.g. power and/or clock domain), its > power state is managed using Runtime PM. Without Runtime PM, the device > may not be powered up, causing subtle failures, crashes, or system > lock-ups when the

[PATCH] X86/KVM: Do not allow DISABLE_EXITS_MWAIT when LAPIC ARAT is not available

2018-04-11 Thread KarimAllah Ahmed
If the processor does not have an "Always Running APIC Timer" (aka ARAT), we should not give guests direct access to MWAIT. The LAPIC timer would stop ticking in deep C-states, so any host deadlines would not wakeup the host kernel. The host kernel intel_idle driver handles this by switching to br

Re: [RESEND PATCH 1/1] drm/i915/glk: Add MODULE_FIRMWARE for Geminilake

2018-04-11 Thread Jani Nikula
On Wed, 11 Apr 2018, ianwmorri...@gmail.com wrote: > From: Ian W MORRISON > > As the Geminilake firmware is now merged to linux-firmware.git > use MODUE_FIRMWARE to load the firmware. > > This removes the error message in the dmesg log: > > i915 :00:02.0: Direct firmware load for >

Re: [PATCH] MAINTAINERS: Update ASPEED entry with details

2018-04-11 Thread Joel Stanley
On 11 April 2018 at 18:21, Arnd Bergmann wrote: > On Wed, Apr 11, 2018 at 6:06 AM, Joel Stanley wrote: >> Hey Arnd, >> >> On 22 February 2018 at 15:33, Joel Stanley wrote: >>> I am interested in all ASPEED drivers, and the previous match wasn't >>> grabbing files in nested directories. Use N ins

[PATCH] vfio: platform: Fix using devices in PM Domains

2018-04-11 Thread Geert Uytterhoeven
If a device is part of a PM Domain (e.g. power and/or clock domain), its power state is managed using Runtime PM. Without Runtime PM, the device may not be powered up, causing subtle failures, crashes, or system lock-ups when the device is accessed by the guest. Fix this by adding Runtime PM supp

Re: [PATCH] mm: shmem: enable thp migration (Re: [PATCH v1] mm: consider non-anonymous thp as unmovable page)

2018-04-11 Thread Michal Hocko
On Fri 06-04-18 03:07:11, Naoya Horiguchi wrote: > >From e31ec037701d1cc76b26226e4b66d8c783d40889 Mon Sep 17 00:00:00 2001 > From: Naoya Horiguchi > Date: Fri, 6 Apr 2018 10:58:35 +0900 > Subject: [PATCH] mm: enable thp migration for shmem thp > > My testing for the latest kernel supporting thp m

Re: [PATCH] X86/KVM: Do not allow DISABLE_EXITS_MWAIT when LAPIC ARAT is not available

2018-04-11 Thread Paolo Bonzini
On 11/04/2018 11:16, KarimAllah Ahmed wrote: > If the processor does not have an "Always Running APIC Timer" (aka ARAT), > we should not give guests direct access to MWAIT. The LAPIC timer would > stop ticking in deep C-states, so any host deadlines would not wakeup the > host kernel. > > The host

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Patrick Bellasi
On 11-Apr 09:57, Vincent Guittot wrote: > On 6 April 2018 at 19:28, Patrick Bellasi wrote: > > > } > > @@ -5454,8 +5441,11 @@ static void dequeue_task_fair(struct rq *rq, struct > > task_struct *p, int flags) > > update_cfs_group(se); > > } > > > > - if (!se) > > +

Re: [PATCH][v2] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-11 Thread Artem Bityutskiy
On Tue, 2018-04-10 at 22:51 +0800, Yu Chen wrote: > + case 't': > + { > + int loops = strtod(optarg, NULL); > + > + if (loops <= 0) { > + fprintf(outf, "loops %d should be >

Re: [PATCHv2] drm/amdkfd: Remove vla

2018-04-11 Thread Christian König
Am 11.04.2018 um 03:02 schrieb Laura Abbott: There's an ongoing effort to remove VLAs[1] from the kernel to eventually turn on -Wvla. Switch to a constant value that covers all hardware. [1] https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Laura Abbott It would be nicer to have a define for

Re: [PATCH v2 1/2] livepatch: Initialize shadow variables safely by a custom callback

2018-04-11 Thread Miroslav Benes
On Thu, 5 Apr 2018, Petr Mladek wrote: > The existing API allows to pass a sample data to initialize the shadow > data. It works well when the data are position independent. But it fails > miserably when we need to set a pointer to the shadow structure itself. > > Unfortunately, we might need to

Re: [PATCH v3 6/7] thermal/drivers/cpu_cooling: Introduce the cpu idle cooling driver

2018-04-11 Thread Daniel Lezcano
Hi Viresh, thanks for the review. On 11/04/2018 10:51, Viresh Kumar wrote: [ ... ] >> +void __init cpuidle_cooling_register(void) >> +{ >> +struct cpuidle_cooling_device *idle_cdev = NULL; >> +struct thermal_cooling_device *cdev; >> +struct device_node *np; >> +cpumask_var_t c

Re: [PATCH 4/5] dmaengine: sprd: Add Spreadtrum DMA configuration

2018-04-11 Thread Vinod Koul
On Tue, Apr 10, 2018 at 03:46:06PM +0800, Baolin Wang wrote: > +/* > + * struct sprd_dma_config - DMA configuration structure > + * @config: dma slave channel config > + * @fragment_len: specify one fragment transfer length > + * @block_len: specify one block transfer length > + * @transcation_len

Re: [PATCH v3] X86/VMX: Disable VMX preemption timer if MWAIT is not intercepted

2018-04-11 Thread Raslan, KarimAllah
On Wed, 2018-04-11 at 09:24 +0800, Wanpeng Li wrote: > 2018-04-10 20:15 GMT+08:00 KarimAllah Ahmed : > > > > The VMX-preemption timer is used by KVM as a way to set deadlines for the > > guest (i.e. timer emulation). That was safe till very recently when > > capability KVM_X86_DISABLE_EXITS_MWAIT

[RFC] linux 3.4 BUG on lib/prio_tree.c:280!

2018-04-11 Thread Yisheng Xie
Hi all, We meet a problem with linux 3.4, which trigger BUG on lib/prio_tree.c:280! kernel BUG at /usr/src/packages/BUILD/kernel-default-3.4.24.25/linux-3.4/lib/prio_tree.c:280! [...] Process: grep (pid: 64867, threadinfo: 88000501, task: 8800022d5c80) on CPU: 2 Pid: 64867, comm: gr

Re: [PATCH] x86/xen: zero MSR_IA32_SPEC_CTRL before suspend

2018-04-11 Thread Jan Beulich
>>> On 11.04.18 at 09:08, wrote: > On 14/03/18 09:48, Jan Beulich wrote: > On 26.02.18 at 15:08, wrote: >>> @@ -35,6 +40,9 @@ void xen_arch_post_suspend(int cancelled) >>> >>> static void xen_vcpu_notify_restore(void *data) >>> { >>> + if (xen_pv_domain() && boot_cpu_has(X86_FEATURE_SPE

Re: [PATCH 5/5] dmaengine: sprd: Add 'device_config' and 'device_prep_slave_sg' interfaces

2018-04-11 Thread Vinod Koul
On Tue, Apr 10, 2018 at 03:46:07PM +0800, Baolin Wang wrote: > This patch adds the 'device_config' and 'device_prep_slave_sg' interfaces > for users to configure DMA. > > Signed-off-by: Baolin Wang > --- > drivers/dma/sprd-dma.c | 48 > > 1 fil

Re: [PATCH linux dev-4.16 v2] i2c: muxes: pca9641: new driver

2018-04-11 Thread Peter Rosin
Hi Ken, It's been a couple of weeks and I wondered if you are making any progress? Simple lack of time perhaps, or are you stuck and need help? Cheers, Peter On 2018-03-20 10:31, Peter Rosin wrote: > On 2018-03-20 07:19, Ken Chen wrote: >> Signed-off-by: Ken Chen > > Ok, now that you are not a

Re: AMD graphics performance regression in 4.15 and later

2018-04-11 Thread Christian König
Am 11.04.2018 um 06:00 schrieb Gabriel C: 2018-04-09 11:42 GMT+02:00 Christian König : Am 07.04.2018 um 00:00 schrieb Jean-Marc Valin: Hi Christian, Thanks for the info. FYI, I've also opened a Firefox bug for that at: https://bugzilla.mozilla.org/show_bug.cgi?id=1448778 Feel free to comment s

Re: [PATCH v2 1/9] lib/test_printf: Mark big constant with ULL

2018-04-11 Thread Petr Mladek
On Mon 2018-02-19 17:24:22, Andy Shevchenko wrote: > On Sun, 2018-02-18 at 13:58 +0100, Luc Van Oostenryck wrote: > > On Fri, Feb 16, 2018 at 11:07:03PM +0200, Andy Shevchenko wrote: > > > Sparse complains that constant is so bit for unsigned long on 64-bit > > > architecture. > > > > > > lib/test

Re: [PATCH v2 2/9] lib/vsprintf: Make dec_spec global

2018-04-11 Thread Petr Mladek
On Fri 2018-02-16 23:07:04, Andy Shevchenko wrote: > There are places where default specification to print decimal numbers > is in use. > > Make it global and convert existing users. > > Signed-off-by: Andy Shevchenko Reviewed-by: Petr Mladek I have pushed it into printk.git, branch for-4.18-

Re: [Letux-kernel] [Bug]: mtd: onenand: omap2plus: kernel panic with OneNAND on OMAP3 (DM3730) device GTA04A5

2018-04-11 Thread H. Nikolaus Schaller
> Am 11.04.2018 um 11:12 schrieb Ladislav Michl : > > On Wed, Apr 11, 2018 at 10:52:01AM +0200, Boris Brezillon wrote: >> On Wed, 11 Apr 2018 10:27:46 +0200 >> Ladislav Michl wrote: >> >>> On Wed, Apr 11, 2018 at 10:08:06AM +0200, Boris Brezillon wrote: On Wed, 11 Apr 2018 09:36:56 +0200 >

Re: [PATCH v2 3/9] lib/vsprintf: Make strspec global

2018-04-11 Thread Petr Mladek
On Fri 2018-02-16 23:07:05, Andy Shevchenko wrote: > There are places where default specification to print strings > is in use. > > Make it global and convert existing users. > > Signed-off-by: Andy Shevchenko Reviewed-by: Petr Mladek I have pushed it into printk.git, branch for-4.18-vsprintf

Re: [PATCH v2 4/9] lib/vsprintf: Make flag_spec global

2018-04-11 Thread Petr Mladek
On Fri 2018-02-16 23:07:06, Andy Shevchenko wrote: > There are places where default specification to print flags as number > is in use. > > Make it global and convert existing users. > > Signed-off-by: Andy Shevchenko Reviewed-by: Petr Mladek I have pushed it into printk.git, branch for-4.18-

Re: [PATCH v4] xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE

2018-04-11 Thread Julien Grall
Hi, On 10/04/18 08:58, Paul Durrant wrote: +static long privcmd_ioctl_mmap_resource(struct file *file, void __user *udata) +{ + struct privcmd_data *data = file->private_data; + struct mm_struct *mm = current->mm; + struct vm_area_struct *vma; + struct privcmd_mmap_resour

Re: [PATCH v2 5/9] lib/vsprintf: Move pointer_string() upper

2018-04-11 Thread Petr Mladek
On Fri 2018-02-16 23:07:07, Andy Shevchenko wrote: > As preparatory patch to further clean up. > > No functional change. > > Signed-off-by: Andy Shevchenko Reviewed-by: Petr Mladek I have pushed it into printk.git, branch for-4.18-vsprintf-cleanup. Best Regards, Petr

Re: [PATCH v2 6/9] lib/vsprintf: Deduplicate pointer_string()

2018-04-11 Thread Petr Mladek
On Fri 2018-02-16 23:07:08, Andy Shevchenko wrote: > There is an exact code at the end of ptr_to_id(). > Replace it by calling pointer_string() directly. > > This is followup to the commit > ad67b74d2469 ("printk: hash addresses printed with %p"). > > Cc: Tobin C. Harding > Signed-off-by: Andy

Re: [PATCH v2 7/9] lib/vsprintf: Replace space with '_' before crng is ready

2018-04-11 Thread Petr Mladek
On Fri 2018-02-16 23:07:09, Andy Shevchenko wrote: > From: Shunyong Yang > > Before crng is ready, output of "%p" composes of "(ptrval)" and > left padding spaces for alignment as no random address can be > generated. This seems a little strange when default string width > is larger than strlen("

Re: [PATCH v2 9/9] lib/vsprintf: Mark expected switch fall-through

2018-04-11 Thread Petr Mladek
On Fri 2018-02-16 23:07:11, Andy Shevchenko wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Andy Shevchenko Reviewed-by: Petr Mladek I have pushed it into printk.git, branch for-4.18-vsprintf-cleanup. B

Re: [PATCH v1] x86/PCI: Make pci=earlydump output neat

2018-04-11 Thread Mika Westerberg
On Thu, Apr 05, 2018 at 03:11:59PM +0300, Andy Shevchenko wrote: > Currently the early dump of PCI configuration space looks quite unhelpful, > e.g. > > [0.00] 60: > [0.00] 00 > [0.00] 00 > [0.00] 00 > [0.00] 00 > [0.00] 00 > [0.00]

[PATCH 5/5] ARM: dts: stm32: add joystick support on stm32746g-eval

2018-04-11 Thread Amelie Delaunay
The joystick (B3) on stm32746g-eval uses gpios on STMFX gpio expander. These gpios need a pin configuration (push-pull and bias-pull-up), described under stmfxpinctrl node. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32746g-eval.dts | 44 1 file c

[PATCH 0/5] Introduce STMFX I2C GPIO expander

2018-04-11 Thread Amelie Delaunay
This series adds support for STMicroelectronics Multi-Function eXpander (STMFX) GPIO expander, used on some STM32 discovery and evaluation boards. STMFX is an STM32L152 based I2C slave controller, whose firmware embeds an I/O expansion feature, offering 24 GPIOs. STMFX pinctrl/GPIO driver provide

[PATCH 2/5] pinctrl: Add STMFX GPIO expander Pinctrl/GPIO driver

2018-04-11 Thread Amelie Delaunay
This patch adds pinctrl/GPIO driver for STMicroelectronics Multi-Function eXpander (STMFX) GPIO expander. STMFX is an I2C slave controller, offering up to 24 GPIOs. The driver relies on generic pin config interface to configure the GPIOs. Signed-off-by: Amelie Delaunay --- drivers/pinctrl/Kconfi

[PATCH 1/5] dt-bindings: pinctrl: document the STMFX pinctrl bindings

2018-04-11 Thread Amelie Delaunay
This patch adds documentation of device tree bindings for the STMicroelectronics Multi-Function eXpander (STMFX) GPIO expander. Signed-off-by: Amelie Delaunay --- .../devicetree/bindings/pinctrl/pinctrl-stmfx.txt | 118 + 1 file changed, 118 insertions(+) create mode 100644

[PATCH 4/5] ARM: dts: stm32: add orange and blue leds on stm32746g-eval

2018-04-11 Thread Amelie Delaunay
Orange (LD2) and blue (LD4) leds on stm32746g-eval are connected on STMFX gpio expander, offset 17 and 19. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32746g-eval.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stm32746g-eval.dts b/arch/arm/boot/dts/s

[PATCH 3/5] ARM: dts: stm32: add STMFX pinctrl/gpio expander support on stm32746g-eval

2018-04-11 Thread Amelie Delaunay
This patch adds support for STMicroelectronics Multi-Function eXpander pinctrl/gpio expander on stm32746g-eval. It is connected on I2C1. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32746g-eval.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH v5] Fix modifier keys for Redragon Asura Keyboard

2018-04-11 Thread Robert Munteanu
Changelog: - v2: modifier keys work, some combinations are still troublesome - v3: style cleanup, rebase on top of 4.14 - v4: remove most debugging calls, make init info useful for user, rebased on top of 4.15 - v5: fix the HID descriptor as suggested by Benjamin Tissoires, use existing USB ve

RE: [PATCH v4] xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE

2018-04-11 Thread Paul Durrant
> -Original Message- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 11 April 2018 10:46 > To: Paul Durrant ; xen-de...@lists.xenproject.org; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org > Cc: Juergen Gross ; Thomas Gleixner > ; Stefano Stabellini ; Ingo >

Re: [PATCH v4 4/9] vsprintf: Consolidate handling of unknown pointer specifiers

2018-04-11 Thread Petr Mladek
On Tue 2018-04-10 14:41:55, Andy Shevchenko wrote: > On Mon, 2018-04-09 at 15:50 +0200, Petr Mladek wrote: > > On Sat 2018-04-07 17:26:40, Andy Shevchenko wrote: > > > On Wed, 2018-04-04 at 10:58 +0200, Petr Mladek wrote: > > > > This change collides with my patch series. Can you elaborate what >

Re: [PATCH] pinctrl/samsung: Correct EINTG banks order

2018-04-11 Thread Krzysztof Kozlowski
On Wed, Apr 11, 2018 at 10:36 AM, Tomasz Figa wrote: > 2018-04-10 17:38 GMT+09:00 Tomasz Figa : >> 2018-04-10 16:06 GMT+09:00 Krzysztof Kozlowski : >>> On Sun, Apr 8, 2018 at 8:07 PM, Paweł Chmiel >>> wrote: All banks with GPIO interrupts should be at beginning of bank array and without

Re: [PATCH v2 3/4] arm64: dts: renesas: r8a77970: add LVDS support

2018-04-11 Thread jacopo mondi
Hi Sergei, Niklas On Tue, Apr 10, 2018 at 08:12:36PM +0300, Sergei Shtylyov wrote: > On 04/10/2018 03:13 PM, jacopo mondi wrote: > > >>> From: Niklas Söderlund > >>> > >>> Add the LVDS device to r8a77970.dtsi in a disabled state. Also connect > >>> the it to the LVDS output of the DU. > >>> > >>>

Re: [PATCH] bug.h: Work around GCC PR82365 in BUG()

2018-04-11 Thread James Hogan
On Wed, Apr 11, 2018 at 09:30:56AM +0200, Arnd Bergmann wrote: > On Wed, Apr 11, 2018 at 12:48 AM, James Hogan wrote: > > Before I forward port those patches to add .insn for MIPS, is that sort > > of approach (an arch specific asm/compiler-gcc.h to allow MIPS to > > override barrier_before_unreac

Re: [PATCH 1/4] eeprom: at24: don't assign the i2c ID table to at24_driver

2018-04-11 Thread Peter Rosin
On 2018-04-10 15:12, Bartosz Golaszewski wrote: > We switched to using probe_new(), so this is no longer used > by i2c core. It seems to be used in i2c_device_match() ??? This could easily be me not understanding something... Cheers, Peter > Signed-off-by: Bartosz Golaszewski > --- > drivers/

[PATCH] Revert mm/vmstat.c: fix vmstat_update() preemption BUG

2018-04-11 Thread Sebastian Andrzej Siewior
This patch reverts commit c7f26ccfb2c3 ("mm/vmstat.c: fix vmstat_update() preemption BUG"). Steven saw a "using smp_processor_id() in preemptible" message and added a preempt_disable() section around it to keep it quiet. This is not the right thing to do it does not fix the real problem. vmstat_up

[PATCH] lan78xx: Correctly indicate invalid OTP

2018-04-11 Thread Phil Elwell
lan78xx_read_otp tries to return -EINVAL in the event of invalid OTP content, but the value gets overwritten before it is returned and the read goes ahead anyway. Make the read conditional as it should be and preserve the error code. Signed-off-by: Phil Elwell --- drivers/net/usb/lan78xx.c | 3 +

Re: 3 version of MKDEV: kernel, uapi, libc, why?

2018-04-11 Thread gre...@linuxfoundation.org
On Wed, Apr 11, 2018 at 08:51:03AM +, Zhang, Ning A wrote: > Hi, Greg, Thomas > > I find 3 version of MKDEV (actually 2 + makedev) > > in include/linux/kdev_t.h > > #define MINORBITS 20 > #define MKDEV(ma,mi) (((ma) << MINORBITS) | (mi)) > > in inlcude/uapi/linu

Re: INFO: task hung in perf_trace_event_unreg

2018-04-11 Thread Dmitry Vyukov
On Tue, Apr 10, 2018 at 7:02 PM, Paul E. McKenney wrote: >> >> >> On Mon, Apr 2, 2018 at 7:23 PM, Paul E. McKenney >> >> >> wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> > Hello, >> >> >> >> >> >> >> > >> >> >> >> >> >> >> > syzbot hit the following crash on upstream commit >> >> >> >> >> >> >

Re: [PATCH 1/4] eeprom: at24: don't assign the i2c ID table to at24_driver

2018-04-11 Thread Bartosz Golaszewski
2018-04-11 11:56 GMT+02:00 Peter Rosin : > On 2018-04-10 15:12, Bartosz Golaszewski wrote: >> We switched to using probe_new(), so this is no longer used >> by i2c core. > > It seems to be used in i2c_device_match() ??? > > This could easily be me not understanding something... > Yes, but i2c core

Re: [PATCH] bug.h: Work around GCC PR82365 in BUG()

2018-04-11 Thread Arnd Bergmann
On Wed, Apr 11, 2018 at 11:54 AM, James Hogan wrote: > On Wed, Apr 11, 2018 at 09:30:56AM +0200, Arnd Bergmann wrote: >> On Wed, Apr 11, 2018 at 12:48 AM, James Hogan wrote: >> > Before I forward port those patches to add .insn for MIPS, is that sort >> > of approach (an arch specific asm/compile

Re: WARNING in kill_block_super

2018-04-11 Thread Tetsuo Handa
Al Viro wrote: > On Wed, Apr 11, 2018 at 10:28:06AM +0900, Tetsuo Handa wrote: > > Al Viro wrote: > > > On Wed, Apr 04, 2018 at 07:53:07PM +0900, Tetsuo Handa wrote: > > > > Al and Michal, are you OK with this patch? > > > > > > First of all, it does *NOT* fix the problems with careless ->kill_sb(

Re: [PATCH][v2] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-11 Thread Yu Chen
On Wed, Apr 11, 2018 at 12:29:04PM +0300, Artem Bityutskiy wrote: > On Tue, 2018-04-10 at 22:51 +0800, Yu Chen wrote: > > + case 't': > > + { > > + int loops = strtod(optarg, NULL); > > + > > + if (loops <= 0) { > > +

Re: [PATCH v2] blk-cgroup: remove entries in blkg_tree before queue release

2018-04-11 Thread Alexandru Moise
On Mon, Apr 09, 2018 at 03:09:38PM -0700, Tejun Heo wrote: > (cc'ing Joseph as he worked on the area recently, hi!) > > Hello, > > On Sat, Apr 07, 2018 at 12:21:48PM +0200, Alexandru Moise wrote: > > The q->id is used as an index within the blkg_tree radix tree. > > > > If the entry is not relea

Re: [PATCH 1/4] eeprom: at24: don't assign the i2c ID table to at24_driver

2018-04-11 Thread Peter Rosin
On 2018-04-11 12:09, Bartosz Golaszewski wrote: > 2018-04-11 11:56 GMT+02:00 Peter Rosin : >> On 2018-04-10 15:12, Bartosz Golaszewski wrote: >>> We switched to using probe_new(), so this is no longer used >>> by i2c core. >> >> It seems to be used in i2c_device_match() ??? >> >> This could easily

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Patrick Bellasi
On 11-Apr 08:57, Vincent Guittot wrote: > On 10 April 2018 at 13:04, Patrick Bellasi wrote: > > On 09-Apr 10:51, Vincent Guittot wrote: > >> On 6 April 2018 at 19:28, Patrick Bellasi wrote: > >> Peter, > >> what was your goal with adding the condition "if > >> (rq->cfs.h_nr_running)" for the aggr

RE: [PATCH] gpio: dwapb: Add support for 32 interrupts

2018-04-11 Thread Phil Edworthy
Hi Andy, On 05 April 2018 10:43, Phil Edworthy wrote: > On 30 March 2018 22:26 Andy Shevchenko wrote: > > On Wed, Mar 28, 2018 at 5:22 PM, Phil Edworthy wrote: > > > The DesignWare GPIO IP can be configured for either 1 or 32 > > > interrupts, > > > > 1 to 32, or just a choice between two? > Just

Re: [PATCH] bug.h: Work around GCC PR82365 in BUG()

2018-04-11 Thread James Hogan
On Wed, Apr 11, 2018 at 12:08:51PM +0200, Arnd Bergmann wrote: > On Wed, Apr 11, 2018 at 11:54 AM, James Hogan wrote: > > On Wed, Apr 11, 2018 at 09:30:56AM +0200, Arnd Bergmann wrote: > >> On Wed, Apr 11, 2018 at 12:48 AM, James Hogan wrote: > >> > Before I forward port those patches to add .ins

Re: [PATCH v2] net: tipc: Replace GFP_ATOMIC with GFP_KERNEL in tipc_mon_create

2018-04-11 Thread Jia-Ju Bai
On 2018/4/11 18:11, Ying Xue wrote: On 04/10/2018 09:17 AM, Jia-Ju Bai wrote: tipc_mon_create() is never called in atomic context. The call chain ending up at dn_route_init() is: Sorry, I don't think there is any relationship between the following call chain with dn_route_init(). [1] tipc_

Re: [PATCH 00/10] kernel/locking: qspinlock improvements

2018-04-11 Thread Catalin Marinas
On Fri, Apr 06, 2018 at 03:22:49PM +0200, Andrea Parri wrote: > On Thu, Apr 05, 2018 at 05:58:57PM +0100, Will Deacon wrote: > > I've been kicking the tyres further on qspinlock and with this set of > > patches > > I'm happy with the performance and fairness properties. In particular, the > > lock

Re: [PATCH v4] sparse: add -Wpointer-arith flag to toggle sizeof(void) warnings

2018-04-11 Thread Luc Van Oostenryck
On Tue, Apr 10, 2018 at 12:46:24PM -1000, Joey Pabalinas wrote: > Recent changes to the min()/max() macros in include/linux/kernel.h > have added a lot of noise when compiling the kernel with Sparse checking > enabled. This mostly is due to the *huge* increase in the number of > sizeof(void) warnin

[PATCH v3] net: tipc: Replace GFP_ATOMIC with GFP_KERNEL in tipc_mon_create

2018-04-11 Thread Jia-Ju Bai
tipc_mon_create() is never called in atomic context. The call chain ending up at tipc_mon_create() is: [1] tipc_mon_create() <- tipc_enable_bearer() <- tipc_nl_bearer_enable() tipc_nl_bearer_enable() calls rtnl_lock(), which indicates this function is not called in atomic context. Despite never g

Re: [PATCH] sched/rt.c: pick and check task if double_lock_balance() unlock the rq

2018-04-11 Thread Peter Zijlstra
On Tue, Apr 10, 2018 at 06:05:46PM -0400, Steven Rostedt wrote: > > Peter, > > Going through my inbox, I stumbled across this one. And it doesn't > appear to be addressed. > > I think this patch is a reasonable solution. Urgh, yeah, also seem to have forgotten about it. The proposed solution is

[PATCH][v3] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-11 Thread Yu Chen
From: Chen Yu There's a use case during test to only print specific round of loops if --iterations is specified, for example, with this patch applied: turbostat -i 5 -t 4 will capture 4 samples with 5 seconds interval. Cc: Len Brown Cc: Rafael J Wysocki Cc: Artem Bityutskiy Cc: linux...@vger

Re: [PATCH v3] net: tipc: Replace GFP_ATOMIC with GFP_KERNEL in tipc_mon_create

2018-04-11 Thread Ying Xue
On 04/11/2018 06:24 PM, Jia-Ju Bai wrote: > tipc_mon_create() is never called in atomic context. > > The call chain ending up at tipc_mon_create() is: > [1] tipc_mon_create() <- tipc_enable_bearer() <- tipc_nl_bearer_enable() > tipc_nl_bearer_enable() calls rtnl_lock(), which indicates this functi

Re: [PATCH] irqchip/gic-v3: Support v2m frame backwards compatibility mode

2018-04-11 Thread Srinivas Kandagatla
On 10/04/18 19:17, Stephen Boyd wrote: Anyway, this is mostly an FYI that I don't have the hardware to test with anymore and I'm not going to keep sending patches on this topic. Srini should have some hardware to test whatever solution you come up with. Yep, I can test PCI MSI side of it with

Re: [PATCH v3 2/2] mm: remove odd HAVE_PTE_SPECIAL

2018-04-11 Thread Laurent Dufour
On 11/04/2018 11:09, Christophe LEROY wrote: > > > Le 11/04/2018 à 11:03, Laurent Dufour a écrit : >> >> >> On 11/04/2018 10:58, Christophe LEROY wrote: >>> >>> >>> Le 11/04/2018 à 10:03, Laurent Dufour a écrit : Remove the additional define HAVE_PTE_SPECIAL and rely directly on CONFIG_

Re: [PATCH v2 3/4] arm64: dts: renesas: r8a77970: add LVDS support

2018-04-11 Thread niklas soderlund
Hi Jacopo, Sergei, On 2018-04-11 11:53:28 +0200, Jacopo Mondi wrote: > Hi Sergei, Niklas > > On Tue, Apr 10, 2018 at 08:12:36PM +0300, Sergei Shtylyov wrote: > > On 04/10/2018 03:13 PM, jacopo mondi wrote: > > > > >>> From: Niklas Söderlund > > >>> > > >>> Add the LVDS device to r8a77970.dtsi in

Re: [PATCH 4.15/4.16 150/168] net_sched: fix a missing idr_remove() in u32_delete_key()

2018-04-11 Thread admin
W dniu 2018-04-11 00:24, Greg Kroah-Hartman napisał(a): 4.15-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit f12c643209db0626f2f54780d86bb93bfa7a9c2d ] When we delete a u32 key via u32_delete_key(), we forget to c

Re: [RESEND PATCH 1/1] drm/i915/glk: Add MODULE_FIRMWARE for Geminilake

2018-04-11 Thread Ian W MORRISON
> > NAK on indiscriminate Cc: stable. There are zero guarantees that older > kernels will work with whatever firmware you throw at them. > I included 'Cc: stable' so the patch would get added to the v4.16 and v4.15 kernels which I have tested with the patch. I found that earlier kernels didn't s

Re: [PATCH v2] cpufreq/schedutil: Cleanup, document and fix iowait boost

2018-04-11 Thread Patrick Bellasi
On 10-Apr 21:37, Peter Zijlstra wrote: > On Tue, Apr 10, 2018 at 04:59:31PM +0100, Patrick Bellasi wrote: > > The iowait boosting code has been recently updated to add a progressive > > boosting behavior which allows to be less aggressive in boosting tasks > > doing only sporadic IO operations, thu

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