Re: [PATCH] KVM: s390: reset crypto attributes for all vcpus

2018-04-20 Thread Cornelia Huck
On Thu, 19 Apr 2018 17:13:52 -0400 Tony Krowiak wrote: > Introduces a new function to reset the crypto attributes for all > vcpus whether they are running or not. Each vcpu in KVM will > be removed from SIE prior to resetting the crypto attributes in its > SIE state description. After all vcpus h

Re: [RFC PATCH v2 3/6] sched: Add over-utilization/tipping point indicator

2018-04-20 Thread Juri Lelli
On 20/04/18 09:31, Quentin Perret wrote: > On Friday 20 Apr 2018 at 01:14:35 (-0700), Joel Fernandes wrote: > > On Fri, Apr 20, 2018 at 1:13 AM, Joel Fernandes wrote: > > > On Wed, Apr 18, 2018 at 4:17 AM, Quentin Perret > > > wrote: > > >> On Friday 13 Apr 2018 at 16:56:39 (-0700), Joel Fernand

Re: [RFC 0/2] dw_mmc: add multislot support

2018-04-20 Thread Ulf Hansson
On 20 April 2018 at 09:42, Alexey Brodkin wrote: > Hi Ulf, > > On Fri, 2018-04-20 at 09:35 +0200, Ulf Hansson wrote: >> [...] >> >> > >> > 2. Add missing stuff to support multislot mode in DesignWare MMC driver. >> > * Add missing slot switch to __dw_mci_start_request() function. >> > * Refactor

Re: [PATCH v3 01/17] y2038: asm-generic: Extend sysvipc data structures

2018-04-20 Thread Arnd Bergmann
On Fri, Apr 20, 2018 at 12:12 AM, Eric W. Biederman wrote: > Arnd Bergmann writes: > >> On Thu, Apr 19, 2018 at 5:20 PM, Arnd Bergmann wrote: >>> On Thu, Apr 19, 2018 at 4:59 PM, Eric W. Biederman >>> wrote: I suspect you want to use __kernel_ulong_t here instead of a raw unsigned lo

[PATCH 2/2] ubi: introduce ubi.nocheck parameter to skip CRC check when attaching ubi vol

2018-04-20 Thread Quentin Schulz
There's already ECC on NAND pages so there may be no need for one to check the CRC of a UBI volume. Let's introduce a ubi.nocheck parameter that let one skip the CRC check when attaching a UBI volume. This also drastically speeds kernel boot by removing a potentially useless check, e.g. I gained

[PATCH 1/2] ubi: move constants for ubi vol parsing from kernel param to ubi.h

2018-04-20 Thread Quentin Schulz
The constants used to parse ubi.block parameters from the kernel command line are not specific to UBI block devices but rather to UBI volumes (on which block devices are "based"). So let's rename UBIBLOCK_* constants used in parameter parsing to UBIVOL_*. Let's move the constants to ubi.h so that

Re: [PATCH 49/61] staging: nvec: simplify getting .drvdata

2018-04-20 Thread Marc Dietrich
Am Donnerstag, 19. April 2018, 16:06:19 CEST schrieb Wolfram Sang: > We should get drvdata from struct device directly. Going via > platform_device is an unneeded step back and forth. > > Signed-off-by: Wolfram Sang Acked-by: Marc Dietrich > --- > > Build tested only. buildbot is happy. Pleas

Re: [PATCH] ARM: tegra: fix ulpi regression on tegra20

2018-04-20 Thread Marc Dietrich
Hi Marcel, Am Montag, 19. Februar 2018, 16:12:52 CEST schrieb Marcel Ziswiler: > From: Marcel Ziswiler > > Since commit f8f8f1d04494 ("clk: Don't touch hardware when reparenting > during registration") ULPI has been broken on Tegra20 leading to the > following error message during boot: > > [

Re: [PATCH v3 0/7] Add tda998x (HDMI) support to atmel-hlcdc

2018-04-20 Thread jacopo mondi
Hi Peter, I've been a bit a pain in the arse for you recently, but please bear with me a bit more, and sorry for jumping late on the band wagon. On Thu, Apr 19, 2018 at 06:27:44PM +0200, Peter Rosin wrote: > Hi! > > I naively thought that since there was support for both nxp,tda19988 (in > the

Re: [PATCH v1 1/2] PCI/ASPM: Disable ASPM L1.2 Substate if we don't have LTR

2018-04-20 Thread Srinath Mannam
Hi Bjorn, I have verified this patch, it works fine for me. Thanks & Regards, Srinath. On Fri, Apr 20, 2018 at 2:35 AM, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > When in the ASPM L1.0 state (but not the PCI-PM L1.0 state), the most > recent LTR value and the LTR_L1.2_THRESHOLD determines

Re: [patch V2 7/8] dm verity fec: Check result of init_rs()

2018-04-20 Thread Thomas Gleixner
On Fri, 20 Apr 2018, NeilBrown wrote: > On Thu, Apr 19 2018, Thomas Gleixner wrote: > > The analysis above forgot to look at the mempool->alloc() callback. So yes, > > while the NOIO is good at the mempool level, but init_rs() uses GPF_KERNEL > > so there might be a different can of wurms lurking.

GREETINGS FROM HIMMED OMAR

2018-04-20 Thread HIMMED OMAR
I am Mr. Himmed Omar a banker in Bank of Africa Burkina Faso West Africa, Please i want to transfer an abandoned sum of 11.4 millions USD to your account.50% will be for you and 50% for me. No risk involved. Contact me for more details along with your personal information needed below. 1. Full n

Re: [PATCH 53/61] tty: serial: simplify getting .drvdata

2018-04-20 Thread Patrice CHOTARD
Hi Wolfram On 04/19/2018 04:06 PM, Wolfram Sang wrote: > We should get drvdata from struct device directly. Going via > platform_device is an unneeded step back and forth. > > Signed-off-by: Wolfram Sang > --- > > Build tested only. buildbot is happy. Please apply individually. > > drivers/t

Re: DOS by unprivileged user

2018-04-20 Thread Ferry Toth
Op vrijdag 20 april 2018 06:46:58 CEST schreef Mike Galbraith: > On Thu, 2018-04-19 at 21:13 +0200, Ferry Toth wrote: > > It appears any ordinary user can easily create a DOS on linux. > > > > One sure way to reproduce this is to open gitk on the linux kernel repo > > (SIC) on a machine with 8GB

Re: [PATCH v2 3/7] powerpc: use task_pid_nr() for TID allocation

2018-04-20 Thread Andrew Donnellan
[+ Sukadev, Christophe] On 18/04/18 11:08, Alastair D'Silva wrote: From: Alastair D'Silva The current implementation of TID allocation, using a global IDR, may result in an errant process starving the system of available TIDs. Instead, use task_pid_nr(), as mentioned by the original author. Th

Re: [PATCH] mfd: tps65911-comparator: Fix an off by one bug

2018-04-20 Thread Lee Jones
On Fri, 20 Apr 2018, Dan Carpenter wrote: > On Fri, Apr 20, 2018 at 09:09:43AM +0100, Lee Jones wrote: > > On Thu, 19 Apr 2018, Dan Carpenter wrote: > > > > > The tps_comparators[] array is used in two places. We only access the > > > COMP1 (1) and COMP2 (2) elements. Unfortunately, we're acces

Re: [RFC] perf/core: what is exclude_idle supposed to do

2018-04-20 Thread Peter Zijlstra
On Wed, Apr 18, 2018 at 11:10:20AM -0400, Vince Weaver wrote: > On Tue, 17 Apr 2018, Jiri Olsa wrote: > > > On Mon, Apr 16, 2018 at 10:04:53PM +, Stephane Eranian wrote: > > > Hi, > > > > > > I am trying to understand what the exclude_idle event attribute is > > > supposed > > > to accomplis

Re: [RFC] perf/core: what is exclude_idle supposed to do

2018-04-20 Thread Peter Zijlstra
On Mon, Apr 16, 2018 at 10:04:53PM +, Stephane Eranian wrote: > Hi, > > I am trying to understand what the exclude_idle event attribute is supposed > to accomplish. > As per the definition in the header file: > > exclude_idle : 1, /* don't count when idle */ > > Naively, I thought it

Re: [RFC PATCH v2 3/6] sched: Add over-utilization/tipping point indicator

2018-04-20 Thread Quentin Perret
On Friday 20 Apr 2018 at 01:14:35 (-0700), Joel Fernandes wrote: > On Fri, Apr 20, 2018 at 1:13 AM, Joel Fernandes wrote: > > On Wed, Apr 18, 2018 at 4:17 AM, Quentin Perret > > wrote: > >> On Friday 13 Apr 2018 at 16:56:39 (-0700), Joel Fernandes wrote: > >>> Hi, > >>> > >>> On Fri, Apr 6, 2018

Re: [PATCH] sh: mm: Fix unprotected access to struct device

2018-04-20 Thread Christoph Hellwig
On Wed, Apr 18, 2018 at 03:13:14PM +0200, jacopo mondi wrote: > As long as it goes for arch/sh, the only user of dma_alloc_coherent() > is platform_resource_setup_memory(), and it has been fixed by this > patch. Great! > > Unfortunately, as Thomas pointed out, there are drivers which calls > int

Re: [PATCH] sh: mm: Fix unprotected access to struct device

2018-04-20 Thread Christoph Hellwig
On Tue, Apr 17, 2018 at 03:54:07PM +0200, Thomas Petazzoni wrote: > > dma_alloc_coherent(&pdev->dev, memsize, &dma_handle, GFP_KERNEL); > > and one to switch to the WARN_ON + if(dev) model. But I don't really > care either way, so: > > Reviewed-by: Thomas Petazzoni Yes, these should be separ

[PATCH v2] x86/Centaur: show more HW features in /proc/cpuinfo

2018-04-20 Thread David Wang
Centaur CPU has some intel compatible capabilities,include PMC and some CPU virtualization capabilities. These capabilities should be initialized in the centaur init function. Signed-off-by: David Wang Changes from v1 to v2: *1, move some defines outside the centaur_detect_vmx_virtcap; *2, Delet

Re: [PATCH] kernel: event: core: Change return type to vm_fault_t

2018-04-20 Thread Peter Zijlstra
On Sun, Apr 15, 2018 at 01:58:31AM +0530, Souptick Joarder wrote: > Use new return type vm_fault_t for fault handler and > page_mkwrite handler in struct vm_operations_struct. > > Signed-off-by: Souptick Joarder > Reviewed-by: Matthew Wilcox > --- > kernel/events/core.c | 4 ++-- > 1 file chang

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

2018-04-20 Thread Ian W MORRISON
On 20 April 2018 at 17:50, Jani Nikula wrote: > On Fri, 20 Apr 2018, Ian W MORRISON wrote: >> I've performed backport testing and some additional analysis as follows: > > What testing did you do beyond booting? Did you run igt? > > BR, > Jani. I did some basic testing including running a 4K vide

Re: [PATCH] mfd: tps65911-comparator: Fix an off by one bug

2018-04-20 Thread Dan Carpenter
On Fri, Apr 20, 2018 at 11:21:50AM +0300, Dan Carpenter wrote: > On Fri, Apr 20, 2018 at 09:09:43AM +0100, Lee Jones wrote: > > On Thu, 19 Apr 2018, Dan Carpenter wrote: > > > > > The tps_comparators[] array is used in two places. We only access the > > > COMP1 (1) and COMP2 (2) elements. Unfort

[PULL 1/1] vfio: ccw: process ssch with interrupts disabled

2018-04-20 Thread Cornelia Huck
When we call ssch, an interrupt might already be pending once we return from the START SUBCHANNEL instruction. Therefore we need to make sure interrupts are disabled while holding the subchannel lock until after we're done with our processing. Cc: sta...@vger.kernel.org #v4.12+ Reviewed-by: Dong J

Re: [PATCH v7 0/5] cpuset: Enable cpuset controller in default hierarchy

2018-04-20 Thread Mike Galbraith
On Thu, 2018-04-19 at 09:46 -0400, Waiman Long wrote: > v7: > - Add a root-only cpuset.cpus.isolated control file for CPU isolation. > - Enforce that load_balancing can only be turned off on cpusets with >CPUs from the isolated list. > - Update sched domain generation to allow cpusets with C

[PULL 0/1] vfio-ccw: bug fix

2018-04-20 Thread Cornelia Huck
The following changes since commit fae764912153065ea55eda47f834e0764a54df94: s390/signal: cleanup uapi struct sigaction (2018-04-17 10:36:12 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw.git tags/vfio-ccw-20180420 for you to

Re: [patch v2] mm, oom: fix concurrent munlock and oom reaper unmap

2018-04-20 Thread Michal Hocko
On Thu 19-04-18 12:34:53, David Rientjes wrote: > On Thu, 19 Apr 2018, Michal Hocko wrote: > > > > exit_mmap() does not block before set_bit(MMF_OOM_SKIP) once it is > > > entered. > > > > Not true. munlock_vma_pages_all might take page_lock which can have > > unpredictable dependences. This is

Re: [PATCH] serial: imx: fix cached UCR2 read on software reset

2018-04-20 Thread Stefan Agner
On 20.04.2018 08:03, Uwe Kleine-König wrote: > Hello Stefan, > > On Thu, Apr 19, 2018 at 11:37:23PM +0200, Stefan Agner wrote: >> On 16.04.2018 17:35, Stefan Agner wrote: >> > To reset the UART the SRST needs be cleared (low active). According >> > to the documentation the bit will remain active f

Re: [PATCH] mfd: tps65911-comparator: Fix an off by one bug

2018-04-20 Thread Dan Carpenter
On Fri, Apr 20, 2018 at 09:09:43AM +0100, Lee Jones wrote: > On Thu, 19 Apr 2018, Dan Carpenter wrote: > > > The tps_comparators[] array is used in two places. We only access the > > COMP1 (1) and COMP2 (2) elements. Unfortunately, we're accessing the > > wrong elements and also one element beyo

Re: [PATCH v2] x86/cpufeature: guard asm_volatile_goto usage with NO_BPF_WORKAROUND

2018-04-20 Thread Peter Zijlstra
On Sat, Apr 14, 2018 at 09:27:38PM -0700, Yonghong Song wrote: > This patch adds a preprocessor guard NO_BPF_WORKAROUND around the > asm_volatile_goto based static_cpu_has(). NO_BPF_WORKAROUND is set > at toplevel Makefile when compiler supports asm-goto. That is, > if the compiler supports asm-go

Re: [v2] prctl: Deprecate non PR_SET_MM_MAP operations

2018-04-20 Thread Cyrill Gorcunov
On Fri, Apr 20, 2018 at 04:29:03PM +0900, Sergey Senozhatsky wrote: > > > > I don't mind. Could you please make the patch on top of linux-next? > > As far as I can see, it's not in linux-next yet. So the following is > against the mmots tree. I wouldn't mind it if we could just squash the > patch

Re: [PATCH 43/61] pwm: simplify getting .drvdata

2018-04-20 Thread Nicolas Ferre
On 19/04/2018 at 16:06, Wolfram Sang wrote: We should get drvdata from struct device directly. Going via platform_device is an unneeded step back and forth. Signed-off-by: Wolfram Sang Acked-by: Nicolas Ferre --- Build tested only. buildbot is happy. Please apply individually. drivers/

Re: [PATCHv2] printk: wake up klogd in vprintk_emit

2018-04-20 Thread Petr Mladek
On Fri 2018-04-20 10:52:21, Sergey Senozhatsky wrote: > On (04/19/18 12:02), Petr Mladek wrote: > > On Thu 2018-04-19 10:42:50, Sergey Senozhatsky wrote: > > > We wake up klogd very late - only when current console_sem owner > > > is done pushing pending kernel messages to the serial/net consoles.

Re: [PATCH] lockdep: fix fs_reclaim annotation

2018-04-20 Thread Peter Zijlstra
On Sun, Apr 15, 2018 at 12:42:25AM -0700, Omar Sandoval wrote: > From: Omar Sandoval > > While revisiting my Btrfs swapfile series [1], I introduced a situation > in which reclaim would lock i_rwsem, and even though the swapon() path > clearly made GFP_KERNEL allocations while holding i_rwsem, I

[PATCH 05/22] alpha: simplify get_arch_dma_ops

2018-04-20 Thread Christoph Hellwig
Remove the dma_ops indirection. Signed-off-by: Christoph Hellwig --- arch/alpha/include/asm/dma-mapping.h | 4 ++-- arch/alpha/kernel/pci_iommu.c| 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/alpha/include/asm/dma-mapping.h b/arch/alpha/include/asm/dma-map

Re: bq27000: directory/files exists even when hardware is not available

2018-04-20 Thread Pavel Machek
On Fri 2018-04-20 09:48:26, Pali Rohár wrote: > On Friday 20 April 2018 09:40:36 Pavel Machek wrote: > > Hi! > > > > On droid4 (4.17-rc1), /sys/class/power_supply/bq27000-battery exists > > even when hardware is not present (as on Droid 4). > > > > Any ideas? > >

[PATCH 04/22] alpha: use dma_direct_ops for jensen

2018-04-20 Thread Christoph Hellwig
The generic dma_direct implementation does the same thing as the alpha pci-noop implementation, just with more bells and whistles. And unlike the current code it at least has a theoretical chance to actually compile. Signed-off-by: Christoph Hellwig --- arch/alpha/Kconfig | 1

[PATCH 03/22] dma-mapping: provide a generic dma-noncoherent implementation

2018-04-20 Thread Christoph Hellwig
Add a new dma_map_ops implementation that uses dma-direct for the address mapping of streaming mappings, and which requires arch-specific implemenations of coherent allocate/free. Architectures have to provide flushing helpers to ownership trasnfers to the device and/or CPU, and can provide option

[PATCH 06/22] arc: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. Signed-off-by: Christoph Hellwig --- arch/arc/Kconfig | 4 + arch/arc/include/asm/Kbuild| 1 + arch/arc/include/asm/dma-mapping.h | 21 - arch/arc/mm/dma.c | 141 +++--

[PATCH 07/22] arm-nommu: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation for the nommu dma map implementation. Signed-off-by: Christoph Hellwig --- arch/arc/Kconfig| 1 + arch/arm/Kconfig| 4 + arch/arm/mm/dma-mapping-nommu.c | 139 +--- 3 f

[PATCH 08/22] c6x: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. Signed-off-by: Christoph Hellwig --- arch/c6x/Kconfig | 3 + arch/c6x/include/asm/Kbuild| 1 + arch/c6x/include/asm/dma-mapping.h | 28 -- arch/c6x/include/asm/setup.h | 2 + arch/c6x/kern

Re: [PATCH v2 4/4] qxl: drop dummy functions

2018-04-20 Thread Daniel Vetter
On Fri, Apr 20, 2018 at 09:19:04AM +0200, Gerd Hoffmann wrote: > These days drm core checks function pointers everywhere before calling > them. So we can drop a bunch of dummy functions now. > > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/qxl/qxl_display.c | 50 > -

Re: [RFC PATCH v2 3/6] sched: Add over-utilization/tipping point indicator

2018-04-20 Thread Joel Fernandes
On Fri, Apr 20, 2018 at 1:13 AM, Joel Fernandes wrote: > On Wed, Apr 18, 2018 at 4:17 AM, Quentin Perret > wrote: >> On Friday 13 Apr 2018 at 16:56:39 (-0700), Joel Fernandes wrote: >>> Hi, >>> >>> On Fri, Apr 6, 2018 at 8:36 AM, Dietmar Eggemann >>> wrote: >>> > From: Thara Gopinath >>> > >>>

Re: [PATCH] tty: Fix data race in tty_insert_flip_string_fixed_flag()

2018-04-20 Thread Greg KH
On Fri, Apr 20, 2018 at 04:40:56PM +0900, daelyong jeong wrote: > tty_insert_flip_string_fixed_flag() copies chars to the buffer indicated > by th->used and updates tb->used. > But it is possible that tty_insert_flip_string_fixed_flag() is executed > concurrently and tb->used is updated improperly.

[PATCH 10/22] m68k: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. Signed-off-by: Christoph Hellwig --- arch/m68k/Kconfig | 2 + arch/m68k/include/asm/Kbuild| 1 + arch/m68k/include/asm/dma-mapping.h | 12 - arch/m68k/kernel/dma.c | 68 -

Re: Clang arm64 build is broken

2018-04-20 Thread Marc Zyngier
Hi Andrey. On 19/04/18 18:06, Andrey Konovalov wrote: > Hi Marc! > > Your recent commit [1] broke clang build on arm64. Or rather, it has uncovered yet another missing feature in clang! ;-) > The issue is that > clang doesn't know about the "S" asm constraint. I reported this to > clang [2], an

Re: [RFC PATCH v2 3/6] sched: Add over-utilization/tipping point indicator

2018-04-20 Thread Joel Fernandes
On Wed, Apr 18, 2018 at 4:17 AM, Quentin Perret wrote: > On Friday 13 Apr 2018 at 16:56:39 (-0700), Joel Fernandes wrote: >> Hi, >> >> On Fri, Apr 6, 2018 at 8:36 AM, Dietmar Eggemann >> wrote: >> > From: Thara Gopinath >> > >> > Energy-aware scheduling should only operate when the system is not

Re: [PATCH] regulator: ab8500: tidy ab8500_regulator_get_mode()

2018-04-20 Thread Lee Jones
On Thu, 19 Apr 2018, Dan Carpenter wrote: > The indenting here is confusing. > > Also we don't check "ret". That isn't likely to cause a runtime issue > because if it fails here fails then we'd probably return -EINVAL at the > end anyway. But it does introduce a static checker warning since "va

[PATCH 12/22] microblaze: remove the consistent_sync and consistent_sync_page

2018-04-20 Thread Christoph Hellwig
Both unused. Signed-off-by: Christoph Hellwig --- arch/microblaze/include/asm/pgtable.h | 3 -- arch/microblaze/mm/consistent.c | 45 --- 2 files changed, 48 deletions(-) diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h i

[PATCH 09/22] hexagon: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. This removes the previous sync_single_for_cpu implementation, which looks bogus given that no syncing is happening in the similar but more important unmap_single case. This adds the previously missing sync_sg_for_device implementati

Re: [PATCH v3 0/4] regulator: bd9571mwv: Add support for DDR backup mode

2018-04-20 Thread Geert Uytterhoeven
Hi Lee, On Fri, Apr 20, 2018 at 9:49 AM, Lee Jones wrote: > On Wed, 18 Apr 2018, Geert Uytterhoeven wrote: >> The ROHM BD9571MWV PMIC on the Renesas Salvator-X(S) and ULCB >> development boards supports DDR Backup Power, which means that the DDR >> power rails can be kept powered while the main S

Re: [PATCHv3 3/8] drm/omap: add support for manually updated displays

2018-04-20 Thread Daniel Vetter
On Fri, Apr 20, 2018 at 10:09:38AM +0300, Tomi Valkeinen wrote: > Hi Sebastian, > > On 30/03/18 20:18, Sebastian Reichel wrote: > > This adds the required infrastructure for manually > > updated displays, such as DSI command mode panels. > > > > While those panels often support partial updates >

[PATCH 11/22] microblaze: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. This removes the direction-based optimizations in sync_{single,sg}_for_{cpu,device} which were marked untestested and do not match the usually very well tested {un,}map_{single,sg} implementations. Signed-off-by: Christoph Hellwig

Re: [PATCH] perf tools: set kernel end address properly

2018-04-20 Thread Ard Biesheuvel
On 20 April 2018 at 01:33, Kim Phillips wrote: > On Thu, 19 Apr 2018 11:54:24 +0900 > Namhyung Kim wrote: > >> On Wed, Apr 18, 2018 at 07:37:59PM -0500, Kim Phillips wrote: >> > diff --git a/tools/perf/arch/arm64/util/sym-handling.c >> > b/tools/perf/arch/arm64/util/sym-handling.c >> > index 005

[PATCH 14/22] nios2: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. Signed-off-by: Christoph Hellwig --- arch/nios2/Kconfig | 3 + arch/nios2/include/asm/Kbuild| 1 + arch/nios2/include/asm/dma-mapping.h | 20 arch/nios2/mm/dma-mapping.c | 139 +++---

Re: [PATCH] mfd: tps65911-comparator: Fix an off by one bug

2018-04-20 Thread Lee Jones
On Thu, 19 Apr 2018, Dan Carpenter wrote: > The tps_comparators[] array is used in two places. We only access the > COMP1 (1) and COMP2 (2) elements. Unfortunately, we're accessing the > wrong elements and also one element beyond the end of the array. There > was supposed to be a zero element a

Re: [PATCH] mm:memcg: add __GFP_NOWARN in __memcg_schedule_kmem_cache_create

2018-04-20 Thread Michal Hocko
On Fri 20-04-18 14:42:39, Minchan Kim wrote: [...] > When I see replies of this thread, it's arguble to add such one-line > warn so if you want it strongly, could you handle by yourself? I do not feel strongly about it to argue as well. So the patch Andrew added with a better explanation is suffic

[PATCH 15/22] openrisc: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. Fix sync_single_for_device to do the same cache coherency operations as the more tested map_single path, as both should transfer ownership to the device. Remove the sync_single_for_cpu implementation as no cache coherency operations

[PATCH 13/22] nds32: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. This makes sure kmap_atomic_pfn is consistently used for access to virtual addresses instead of either using the slower plain kmap or blindly expecting page_address() to work. This makes sure the cache_sync routines is called in the

[PATCH 17/22] sh: introduce a sh_cacheop_vaddr helper

2018-04-20 Thread Christoph Hellwig
And use it in the maple bus code to avoid a dma API dependency. Signed-off-by: Christoph Hellwig --- arch/sh/include/asm/cacheflush.h | 7 +++ arch/sh/mm/consistent.c | 5 + drivers/sh/maple/maple.c | 7 --- 3 files changed, 12 insertions(+), 7 deletions(-) diff --g

[PATCH 16/22] sh: simplify get_arch_dma_ops

2018-04-20 Thread Christoph Hellwig
Remove the indirection through the dma_ops variable, and just return nommu_dma_ops directly from get_arch_dma_ops. Signed-off-by: Christoph Hellwig --- arch/sh/include/asm/dma-mapping.h | 5 ++--- arch/sh/kernel/dma-nommu.c| 8 +--- arch/sh/mm/consistent.c | 3 --- arch/

Re: [PATCH 61/61] ASoC: atmel: simplify getting .drvdata

2018-04-20 Thread Nicolas Ferre
On 19/04/2018 at 16:06, Wolfram Sang wrote: We should get drvdata from struct device directly. Going via platform_device is an unneeded step back and forth. Signed-off-by: Wolfram Sang Acked-by: Nicolas Ferre --- Build tested only. buildbot is happy. Please apply individually. sound/so

[PATCH 21/22] sparc: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. This removes the previous sync_single_for_device implementation, which looks bogus given that no syncing is happening in the similar but more important map_single case. Signed-off-by: Christoph Hellwig --- arch/sparc/Kconfig

[PATCH 19/22] sh: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. Signed-off-by: Christoph Hellwig --- arch/sh/Kconfig | 3 +- arch/sh/include/asm/Kbuild| 1 + arch/sh/include/asm/dma-mapping.h | 26 --- arch/sh/kernel/Makefile | 1 - arch/sh/kernel/

Re: [PATCH 3/7] i2c: i2c-ocores: move header to platform_data

2018-04-20 Thread Lee Jones
On Thu, 19 Apr 2018, Wolfram Sang wrote: > This header only contains platform_data. Move it to the proper directory. > > Signed-off-by: Wolfram Sang > --- > Documentation/i2c/busses/i2c-ocores| 2 +- > drivers/i2c/busses/i2c-ocores.c| 2 +- > drivers/mfd/timberdale.c

Re: [PATCH] regulator: tps6586x: Add support for TPS658624

2018-04-20 Thread Lee Jones
On Thu, 19 Apr 2018, Mark Brown wrote: > On Thu, Apr 19, 2018 at 12:18:50PM -0400, ryang wrote: > > This version is exists in the Samsung Galaxy Tab 10.1 which is based on the > > Nvidia Tegra 2 board. The TPS658624 has the same SM2 voltage table as > > TPS658623. > > > Signed-off-by: ryang > >

Re: [PATCH 1/7] i2c: i2c-gpio: move header to platform_data

2018-04-20 Thread Lee Jones
On Thu, 19 Apr 2018, Wolfram Sang wrote: > This header only contains platform_data. Move it to the proper directory. > > Signed-off-by: Wolfram Sang > --- > MAINTAINERS | 2 +- > arch/arm/mach-ks8695/board-acs5k.c | 2 +- > arch/arm/mach-omap1/

Re: [PATCH 6/7] i2c: i2c-xiic: move header to platform_data

2018-04-20 Thread Lee Jones
On Thu, 19 Apr 2018, Wolfram Sang wrote: > This header only contains platform_data. Move it to the proper directory. > > Signed-off-by: Wolfram Sang > --- > drivers/i2c/busses/i2c-xiic.c| 2 +- > drivers/mfd/timberdale.c | 2 +- > include/linux/{ => platform_

[PATCH 22/22] parisc: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. Parisc previously had two different non-coherent dma ops implementation that just different in the way coherent allocations were handled or not handled. The different behavior is not selected at runtime in the arch_dma_alloc and arc

[PATCH 20/22] xtensa: use generic dma_noncoherent_ops

2018-04-20 Thread Christoph Hellwig
Switch to the generic noncoherent direct mapping implementation. Signed-off-by: Christoph Hellwig --- arch/xtensa/Kconfig | 3 + arch/xtensa/include/asm/Kbuild| 1 + arch/xtensa/include/asm/dma-mapping.h | 26 -- arch/xtensa/kernel/pci-dma.c | 130 +++-

[PATCH 18/22] sh: use dma_direct_ops for the CONFIG_DMA_COHERENT case

2018-04-20 Thread Christoph Hellwig
This is a slight change in behavior as we avoid the detour through the virtual mapping for the coherent allocator, but if this CPU really is coherent that should be the right thing to do. Signed-off-by: Christoph Hellwig --- arch/sh/Kconfig | 1 + arch/sh/include/asm/dma-mappin

[PATCH 01/22] dma-debug: move initialization to common code

2018-04-20 Thread Christoph Hellwig
Most mainstream architectures are using 65536 entries, so lets stick to that. If someone is really desperate to override it that can still be done through , but I'd rather see a really good rationale for that. Signed-off-by: Christoph Hellwig --- arch/arm/mm/dma-mapping-nommu.c | 9 -

[PATCH 02/22] dma-mapping: simplify Kconfig dependencies

2018-04-20 Thread Christoph Hellwig
ARCH_DMA_ADDR_T_64BIT is always true for 64-bit architectures now, so we can skip the clause requiring it. 'n' is the default default, so no need to explicitly state it. Signed-off-by: Christoph Hellwig --- lib/Kconfig | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/li

[no subject]

2018-04-20 Thread Christoph Hellwig
To: io...@lists.linux-foundation.org Cc: linux-a...@vger.kernel.org Cc: Michal Simek Cc: Greentime Hu Cc: Vincent Chen Cc: linux-al...@vger.kernel.org Cc: linux-snps-...@lists.infradead.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-c6x-...@linux-c6x.org Cc: linux-hexa...@vger.kernel.org

Re: [PATCH v3 04/17] y2038: s390: Remove unneeded ipc uapi header files

2018-04-20 Thread Arnd Bergmann
On Fri, Apr 20, 2018 at 9:54 AM, Heiko Carstens wrote: > On Thu, Apr 19, 2018 at 04:37:24PM +0200, Arnd Bergmann wrote: >> The s390 msgbuf/sembuf/shmbuf header files are all identical to the >> version from asm-generic. >> >> This patch removes the files and replaces them with 'generic-y' >> state

Re: [PATCH] treewide: use PHYS_ADDR_MAX to avoid type casting ULLONG_MAX

2018-04-20 Thread Ard Biesheuvel
On 19 April 2018 at 23:42, Stefan Agner wrote: > With PHYS_ADDR_MAX there is now a type safe variant for all > bits set. Make use of it. > > Patch created using a sematic patch as follows: > > // > @@ > typedef phys_addr_t; > @@ > -(phys_addr_t)ULLONG_MAX > +PHYS_ADDR_MAX > // > > Signed-off-by:

Re: [PATCH] sched/fair: Change sched_feat(x) in !CONFIG_SCHED_DEBUG case

2018-04-20 Thread Peter Zijlstra
On Mon, Apr 16, 2018 at 10:54:26AM +0200, Philipp Klocke wrote: > This patch is motivated by the clang warning Wconstant-logical-operand, > issued when logically comparing a variable to a constant integer that is > neither 1 nor 0. It happens for sched_feat(x) when sysctl_sched_features > is cons

Re: [PATCH v3 04/17] y2038: s390: Remove unneeded ipc uapi header files

2018-04-20 Thread Heiko Carstens
On Thu, Apr 19, 2018 at 04:37:24PM +0200, Arnd Bergmann wrote: > The s390 msgbuf/sembuf/shmbuf header files are all identical to the > version from asm-generic. > > This patch removes the files and replaces them with 'generic-y' > statements, to avoid having to modify each copy when we extend sysv

Re: [PATCH v3 0/4] regulator: bd9571mwv: Add support for DDR backup mode

2018-04-20 Thread Lee Jones
On Wed, 18 Apr 2018, Geert Uytterhoeven wrote: > Hi all, > > The ROHM BD9571MWV PMIC on the Renesas Salvator-X(S) and ULCB > development boards supports DDR Backup Power, which means that the DDR > power rails can be kept powered while the main SoC is powered down. Should this set be appli

Re: bq27000: directory/files exists even when hardware is not available

2018-04-20 Thread Pali Rohár
On Friday 20 April 2018 09:40:36 Pavel Machek wrote: > Hi! > > On droid4 (4.17-rc1), /sys/class/power_supply/bq27000-battery exists > even when hardware is not present (as on Droid 4). > > Any ideas? > Pavel Somebody must have

Re: [PATCH 1/2] qxl: fix qxl_release_{map,unmap}

2018-04-20 Thread Daniel Vetter
On Wed, Apr 18, 2018 at 07:42:56AM +0200, Gerd Hoffmann wrote: > s/PAGE_SIZE/PAGE_MASK/ > > Luckily release_offset is never larger than PAGE_SIZE, so the bug has no > bad side effects and managed to stay unnoticed for years that way ... > > Signed-off-by: Gerd Hoffmann Sweeet. Since the buggy c

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

2018-04-20 Thread Jani Nikula
On Fri, 20 Apr 2018, Ian W MORRISON wrote: > I've performed backport testing and some additional analysis as follows: What testing did you do beyond booting? Did you run igt? BR, Jani. -- Jani Nikula, Intel Open Source Technology Center

Re: [PATCH 55/61] usb: mtu3: simplify getting .drvdata

2018-04-20 Thread Chunfeng Yun
hi, On Thu, 2018-04-19 at 16:06 +0200, Wolfram Sang wrote: > We should get drvdata from struct device directly. Going via > platform_device is an unneeded step back and forth. > > Signed-off-by: Wolfram Sang > --- > > Build tested only. buildbot is happy. Please apply individually. > > driver

Re: [RFC PATCH] kernel/sched/core: busy wait before going idle

2018-04-20 Thread Peter Zijlstra
On Sun, Apr 15, 2018 at 11:31:49PM +1000, Nicholas Piggin wrote: > This is a quick hack for comments, but I've always wondered -- > if we have a short term polling idle states in cpuidle for performance > -- why not skip the context switch and entry into all the idle states, > and just wait for a b

[PATCH V3 1/2] clk: imx6sx: add missing lvds2 clock to the clock tree

2018-04-20 Thread Anson Huang
i.MX6SX has lvds2 (analog clock2), an I/O clock like lvds1. And this lvds2, along with lvds1, can be used to provide external clock source to the internal pll, such as pll4_audio and pll5_video. This patch mainly adds the lvds2 to the clock tree and fix its relationship with pll accordingly. Sign

[PATCH V3 2/2] ARM: dts: imx6sx-sabreauto: add external 24MHz clock source

2018-04-20 Thread Anson Huang
On i.MX6SX SabreAuto board, there is external 24MHz clock source for analog clock2, add this clock source to clock tree and remove "clocks" container for all input clocks. Signed-off-by: Anson Huang --- changes since V2: remove "clocks" container and use new way for all input clocks defi

Re: [RFC 0/2] dw_mmc: add multislot support

2018-04-20 Thread Alexey Brodkin
Hi Ulf, On Fri, 2018-04-20 at 09:35 +0200, Ulf Hansson wrote: > [...] > > > > > 2. Add missing stuff to support multislot mode in DesignWare MMC driver. > > * Add missing slot switch to __dw_mci_start_request() function. > > * Refactor set_ios function: > >a) Calculate common clock which i

bq27000: directory/files exists even when hardware is not available

2018-04-20 Thread Pavel Machek
Hi! On droid4 (4.17-rc1), /sys/class/power_supply/bq27000-battery exists even when hardware is not present (as on Droid 4). Any ideas? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atre

[PATCH] tty: Fix data race in tty_insert_flip_string_fixed_flag()

2018-04-20 Thread daelyong jeong
tty_insert_flip_string_fixed_flag() copies chars to the buffer indicated by th->used and updates tb->used. But it is possible that tty_insert_flip_string_fixed_flag() is executed concurrently and tb->used is updated improperly. It leads slab-out-of-bound write in tty_insert_flip_string_fixed_flag o

Re: [PATCH v2 02/10] media-request: Add a request complete operation to allow m2m scheduling

2018-04-20 Thread Alexandre Courbot
On Fri, Apr 20, 2018 at 12:43 AM Paul Kocialkowski < paul.kocialkow...@bootlin.com> wrote: > When using the request API in the context of a m2m driver, the > operations that come with a m2m run scheduling call in their > (m2m-specific) ioctl handler are delayed until the request is queued > (for i

Re: [PATCH v2 09/10] ARM: dts: sun7i-a20: Add Video Engine and reserved memory nodes

2018-04-20 Thread Maxime Ripard
On Thu, Apr 19, 2018 at 05:45:35PM +0200, Paul Kocialkowski wrote: > This adds nodes for the Video Engine and the associated reserved memory > for the Allwinner A20. Up to 96 MiB of memory are dedicated to the VPU. > > The VPU can only map the first 256 MiB of DRAM, so the reserved memory > pool h

Re: [PATCH v2] ARM: dts: qcom: Add apq8064 Dragon Board 600c support

2018-04-20 Thread Loic Poulain
Hi Srini, On 16 March 2018 at 22:54, wrote: > From: Srinivas Kandagatla > > This patch add support to DB600c board, which is another > 96boards based on Qualcomm APQ8064 SoC. > > Support for USB, HDMI, PCIe, I2C, SPI, eMMC, microSD card, LEDs > device tree nodes is added in this patch. > > Sign

Re: [RFC 0/2] dw_mmc: add multislot support

2018-04-20 Thread Ulf Hansson
[...] > > 2. Add missing stuff to support multislot mode in DesignWare MMC driver. > * Add missing slot switch to __dw_mci_start_request() function. > * Refactor set_ios function: >a) Calculate common clock which is > suitable for all slots instead of directly use clock value > p

Re: [PATCH] drm/sun4i: Add missing frontend compatibles for A10, A13, A20 and A31

2018-04-20 Thread Paul Kocialkowski
Hi, On Thu, 2018-04-19 at 17:07 +0200, Maxime Ripard wrote: > On Thu, Apr 19, 2018 at 02:56:38PM +0200, Paul Kocialkowski wrote: > > Although frontend nodes are defined in the device-trees of the > > aforementioned platforms, there are no matching compatibles defined > > in > > the driver. This ma

Re: [PATCH v1 4/4] drm/tegra: plane: Add custom CSC BLOB property

2018-04-20 Thread Daniel Vetter
On Tue, Apr 17, 2018 at 08:31:11PM +0300, Dmitry Osipenko wrote: > On 17.04.2018 12:01, Daniel Vetter wrote: > > On Mon, Apr 16, 2018 at 03:16:28PM +0300, Dmitry Osipenko wrote: > >> This new property allows userspace to apply custom color conversion > >> coefficients per plane, making possible to

Re: [PATCH v7 0/5] add compression algorithm zBeWalgo

2018-04-20 Thread Minchan Kim
Hi Benjamin, Today I tried your new patchset but I couldn't go further due to below problem. Unfortunately, I don't have the time to look into. Could you check on it? Thanks. [ 169.597064] zram0: detected capacity change from 1073741824 to 0 [ 177.523268] zram0: detected capacity change from 0

Re: [regression v4.17-rc0] Re: FORTIFY_SOURCE breaks ARM compilation in -next -- was Re: ARM compile failure in Re: linux-next: Tree for Apr 4

2018-04-20 Thread Pavel Machek
On Sun 2018-04-15 11:00:06, Kees Cook wrote: > On Sun, Apr 15, 2018 at 10:39 AM, Pavel Machek wrote: > > Hi! > > > >> Thanks. > >> > >> Ok, let me try to bisect it. Compile-problem should be easy... > >> > >> Hmm. And as it is compile-problem in single file, it should even be > >> reasonably fast.

Re: general protection fault in kernfs_kill_sb

2018-04-20 Thread Michal Hocko
On Fri 20-04-18 14:29:39, Tetsuo Handa wrote: > Eric Biggers wrote: > > But, there is still a related bug: when mounting sysfs, if > > register_shrinker() > > fails in sget_userns(), then kernfs_kill_sb() gets called, which frees the > > 'struct kernfs_super_info'. But, the 'struct kernfs_super_i

<    4   5   6   7   8   9   10   >