Re: [RFC PATCH] exec: Avoid recursive modprobe for binary format handlers

2017-08-07 Thread Matt Redfearn
Hi Luis, On 03/08/17 00:23, Luis R. Rodriguez wrote: On Tue, Aug 01, 2017 at 07:28:20PM -0700, Kees Cook wrote: On Tue, Aug 1, 2017 at 5:12 PM, Luis R. Rodriguez wrote: On Fri, Jul 21, 2017 at 03:05:20PM +0100, Matt Redfearn wrote: Commit 6d7964a722af ("kmod: throttle kmod thread limit") wh

[UPDATE PATCH v3 3/5] ACPI: Introduce DMA ranges parsing

2017-08-07 Thread Lorenzo Pieralisi
Some devices have limited addressing capabilities and cannot reference the whole memory address space while carrying out DMA operations (eg some devices with bus address bits range smaller than system bus - which prevents them from using bus addresses that are otherwise valid for the system). The

[UPDATE PATCH v3 4/5] ACPI: Make acpi_dma_configure() DMA regions aware

2017-08-07 Thread Lorenzo Pieralisi
Current ACPI DMA configuration set-up device DMA capabilities through kernel defaults that do not take into account platform specific DMA configurations reported by firmware. By leveraging the ACPI acpi_dev_get_dma_resources() API, add code in acpi_dma_configure() to retrieve the DMA regions to co

[PATCH] ata: make ata_port_operations const

2017-08-07 Thread Bhumika Goyal
Make ata_port_operations structures const as it is only stored in the inherits field of an ata_port_operations structure. Therefore make it const. Signed-off-by: Bhumika Goyal --- drivers/ata/pata_sis.c | 2 +- drivers/ata/sata_via.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

Re: [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Clemens Ladisch
Oleksandr Andrushchenko wrote: > Front sound driver has no real interrupts, so > playback/capture period passed interrupt needs to be emulated: > this is done via timer. Add required timer operations, > this is based on sound/drivers/dummy.c. A 'real' sound card use the interrupt to synchronize th

Re: [PATCH v8 11/14] lockdep: Apply crossrelease to PG_locked locks

2017-08-07 Thread kbuild test robot
Hi Byungchul, [auto build test WARNING on linus/master] [also build test WARNING on v4.13-rc4 next-20170807] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Byungchul-Park/lockdep-Implement

Re: [PATCH v1 15/15] perf, tools: Support duration_time

2017-08-07 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 04:40:15PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Some of the metrics formulas (like GFLOPs) need to know how long > the measurement period is. Support an internal event called duration_time, > which > reports time in second. It maps to the dummy event, but is >

Re: powerpc/mm: fix a hardcode on memory boundary checking

2017-08-07 Thread Michael Ellerman
On Thu, 2017-01-12 at 09:09:06 UTC, Rui Teng wrote: > The offset of hugepage block will not be 16G, if the expected > page is more than one. Calculate the totol size instead of the > hardcode value. > > Signed-off-by: Rui Teng > Tested-by: Anshuman Khandual Applied to powerpc next, thanks. htt

Re: powerpc/kernel: Avoid preemption check during iommu_range_alloc

2017-08-07 Thread Michael Ellerman
On Thu, 2017-07-20 at 17:26:06 UTC, victora wrote: > Replaced __this_cpu_read function call by raw_cpu_read in > iommu_range_alloc function. > Preemption doesn't need to be disabled since any CPU can safely > use IOMMU pool. > > Signed-off-by: Victor Aoqui Applied to powerpc next, thanks. https

Re: [v3, 1/2] powernv/powerpc:Save/Restore additional SPRs for stop4 cpuidle

2017-08-07 Thread Michael Ellerman
On Fri, 2017-07-21 at 10:41:37 UTC, "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > The stop4 idle state on POWER9 is a deep idle state which loses > hypervisor resources, but whose latency is low enough that it can be > exposed via cpuidle. > > Until now, the deep idle states which l

[PATCH] ASoC: pxa: don't select SSP for COMPILE_TESTing

2017-08-07 Thread Arnd Bergmann
When the audio driver selects CONFIG_PXA_SSP to be a loadable module on a platform other than PXA, and the PXA SPI driver is built-in, we get a link error in the SPI driver: drivers/spi/spi-pxa2xx.o: In function `pxa2xx_spi_remove': spi-pxa2xx.c:(.text+0x5f0): undefined reference to `pxa_ssp_free'

[PATCH] hns3: fix unused function warning

2017-08-07 Thread Arnd Bergmann
Without CONFIG_PCI_IOV, we get a harmless warning about an unused function: drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2273:13: error: 'hclge_disable_sriov' defined but not used [-Werror=unused-function] The #ifdefs in this driver are obviously wrong, so this just removes them and u

[PATCH] staging: lustre: mgc: fix potential use after free in error path

2017-08-07 Thread Cihangir Akturk
The config_log_add() function first calls config_log_put() with the variable 'cld' and then jumps to label 'out_cld', which will call the same function with the same 'cld' variable. However, at this point, 'cld' might have been already freed by the first invocation of config_log_put(). Even if we r

Re: [PATCH v8 13/14] lockdep: Move data of CONFIG_LOCKDEP_PAGELOCK from page to page_ext

2017-08-07 Thread kbuild test robot
Hi Byungchul, [auto build test ERROR on linus/master] [also build test ERROR on v4.13-rc4 next-20170807] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Byungchul-Park/lockdep-Implement

Re: [PATCH] irqchip: uniphier-aidet: add UniPhier AIDET irqchip driver

2017-08-07 Thread Marc Zyngier
On 03/08/17 12:15, Masahiro Yamada wrote: > UniPhier SoCs contain AIDET (ARM Interrupt Detector). This is intended > to provide additional features that are not covered by GIC. The main > purpose is to provide logic inverter to support low level and falling > edge trigger type for interrupt lines

Re: [PATCH 2/3] KVM: X86: implement the logic for spinlock optimization

2017-08-07 Thread Paolo Bonzini
On 07/08/2017 10:44, Longpeng(Mike) wrote: > + > + /* > + * Intel sdm vol3 ch-25.1.3 says: The “PAUSE-loop exiting” > + * VM-execution control is ignored if CPL > 0. So the vcpu > + * is always exiting with CPL=0 if it uses PLE. This is not true (how can it be?). What 25.1.3 sa

[PATCH] [media] staging/imx: always select VIDEOBUF2_DMA_CONTIG

2017-08-07 Thread Arnd Bergmann
I ran into a rare build error during randconfig testing: drivers/staging/media/imx/imx-media-capture.o: In function `capture_stop_streaming': imx-media-capture.c:(.text+0x224): undefined reference to `vb2_buffer_done' drivers/staging/media/imx/imx-media-capture.o: In function `imx_media_capture_

[PATCH] block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init()

2017-08-07 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 7 Aug 2017 12:37:01 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signe

[PATCH] [media] staging: atomisp: imx: remove dead code

2017-08-07 Thread Arnd Bergmann
Making some functions 'static' has uncovered a few functions that have no caller, through the gcc warnings: atomisp/i2c/imx/imx.c::12: error: 'imx_t_focus_vcm' defined but not used [-Werror=unused-function] atomisp/i2c/imx/imx.c:1103:12: error: 'imx_vcm_init' defined but not used [-Werror=un

[PATCH] ext4: fix clang build regression

2017-08-07 Thread Arnd Bergmann
As Stefan pointed out, I misremembered what clang can do specifically, and it turns out that the variable-length array at the end of the structure did not work (a flexible array would have worked here but not solved the problem): fs/ext4/mballoc.c:2303:17: error: fields must have a constant size:

Re: [PATCH] lib/mpi: fix build with clang

2017-08-07 Thread Herbert Xu
On Sat, Aug 05, 2017 at 08:31:11PM -0700, Stefan Agner wrote: > Hi Herbert, > > This still applies fine on 4.13-rc3, any chance to get it merged through > one of your trees? If you want it to go through cryptodev you need to post the patches to linux-cry...@vger.kernel.org. Thanks, -- Email: He

[PATCH 8/8] gpio: zynq: Fix driver function parameters alignment

2017-08-07 Thread Michal Simek
Fix function parameters alignment reported by checkpatch. Signed-off-by: Michal Simek --- drivers/gpio/gpio-zynq.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 26653bf89e58..97b53e557c15 100644 --

[PATCH 7/8] gpio: zynq: Fix warnings in the driver

2017-08-07 Thread Michal Simek
From: Nava kishore Manne This patch fixes the below warning -->Block comments should align the * on each line. -->suspect code indent for conditional statements. -->Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Nava kishore Manne Signed-off-by: Michal Si

[PATCH 0/8] Zynq GPIO driver changes

2017-08-07 Thread Michal Simek
Hi, the patchset contains several patches which adding new functionality to the driver (irq wakeup, suspend/resume) and fixing issue with DATA_RO reg. The rest of changes are fixing kernel-doc and checkpatch warnings. Thanks, Michal Borsodi Petr (1): gpio: zynq: Wakeup gpio controller when it

[PATCH 3/8] gpio: zynq: Shift zynq_gpio_init() to subsys_initcall level

2017-08-07 Thread Michal Simek
From: Nava kishore Manne In general situation on-SoC GPIO controller drivers should be probed after pinctrl/pinmux controller driver, because on-SoC GPIOs utilize a pin/pad as a resource provided and controlled by pinctrl subsystem. GPIO must come after pinctrl as gpios may need to mux pins...

[PATCH 6/8] gpio: zynq: Fix empty lines in driver

2017-08-07 Thread Michal Simek
Remove one additional line and add two new. All are reported by checkpatch. Signed-off-by: Michal Simek empty --- drivers/gpio/gpio-zynq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 573bd8303d5d..2d9f27e34d31

[PATCH 5/8] gpio: zynq: Fix kernel doc warnings

2017-08-07 Thread Michal Simek
From: Nava kishore Manne This patch fixes the kernel doc warnings in the driver. Signed-off-by: Nava kishore Manne Signed-off-by: Michal Simek --- drivers/gpio/gpio-zynq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zy

[PATCH 2/8] gpio: zynq: Wakeup gpio controller when it is used as IRQ controller

2017-08-07 Thread Michal Simek
From: Borsodi Petr There is a problem with GPIO driver when used as IRQ controller. It is not working because the module is sleeping (clock is disabled). The patch enables clocks when IP is used as IRQ controller. Signed-off-by: Borsodi Petr Signed-off-by: Michal Simek --- drivers/gpio/gpio-

[PATCH 4/8] gpio: zynq: Provided workaround for GPIO

2017-08-07 Thread Michal Simek
From: Swapna Manupati This patch provides workaround in the gpio driver for Zynq and ZynqMP Platforms by reading pin value of EMIO banks through DATA register as it was unable to read the value of it from DATA_RO register. Signed-off-by: Swapna Manupati Signed-off-by: Michal Simek --- driver

[PATCH 1/8] gpio: zynq: Add support for suspend resume

2017-08-07 Thread Michal Simek
From: Shubhrajyoti Datta Add support for suspend resume. Now that we can lose context across a suspend/ resume cycle. Add support for the context restore. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- drivers/gpio/gpio-zynq.c | 82 +

[PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Miles Chen
The commit f80fb3a3d508 ("arm64: add support for kernel ASLR") moved module virtual address to [module_alloc_base, module_alloc_base + MODULES_VSIZE). Display module information of the virtual kernel memory layout by using module_alloc_base. testing output: 1) Current implementation: Virtual kern

Re: [PATCH] media: i2c: OV5647: gate clock lane before stream on

2017-08-07 Thread Jacob Chen
Hi Philipp, 2017-08-07 16:17 GMT+08:00 Philipp Zabel : > Hi Jacob, > > On Mon, 2017-08-07 at 15:11 +0800, Jacob Chen wrote: >> Hi all, >> >> 2017-07-25 10:34 GMT+08:00 Jacob Chen : >> > According to datasheet, BIT5 in reg-0x4800 are used to >> > enable/disable clock lane gate. >> > >> > It's wrong

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-07 Thread Reshetova, Elena
> On Tue, 18 Jul 2017, Elena Reshetova wrote: > > > atomic_as_refcounter.cocci script allows detecting > > cases when refcount_t type and API should be used > > instead of atomic_t. > > > > Signed-off-by: Elena Reshetova > > --- > > scripts/coccinelle/api/atomic_as_refcounter.cocci | 102 > +

Re: [PATCH RFC] arm64: introduce mm_context_t flags

2017-08-07 Thread Catalin Marinas
On Sat, Aug 05, 2017 at 12:49:19AM +0300, Yury Norov wrote: > On Fri, Aug 04, 2017 at 06:38:10PM +0100, Catalin Marinas wrote: > > On Wed, Aug 02, 2017 at 08:29:40PM +0300, Yury Norov wrote: > > > On Wed, Aug 02, 2017 at 05:39:01PM +0100, Catalin Marinas wrote: > > > > On Mon, Jul 31, 2017 at 05:48

Re: Revert "[media] et8ek8: Export OF device ID as module aliases"

2017-08-07 Thread Pavel Machek
Hi! > Just hit this issue too. This seems not to have made it into v4.13 as of > today yet, any chance to get it still in? If Mauro does not react, I guess we can push the patche through akpm. Hmm. Or directly to the Linus. -rc really is about fixing regressions, such as this. Best regards,

Re: [PATCH 10/18] staging: typec: fusb302: Add support for fcs,vbus-regulator-name device-property

2017-08-07 Thread Mark Brown
On Sun, Aug 06, 2017 at 05:44:36PM +0200, Hans de Goede wrote: > On 06-08-17 16:30, Guenter Roeck wrote: > > On 08/06/2017 05:35 AM, Hans de Goede wrote: > > > On ACPI platforms, there are no phandles and we need to get the vbus by a > > > system wide unique name. Add support for a new "fcs,vbus-r

[PATCH] string.h: work around __builtin_constant_p quirk

2017-08-07 Thread Arnd Bergmann
The compile-time check in the hardened memcpy() triggered a build error in code that should not have: In function 'memcpy', inlined from '__adfs_dir_put' at fs/adfs/dir_f.c:318:2, inlined from 'adfs_f_update' at fs/adfs/dir_f.c:403:2: include/linux/string.h:305:4: error: call to '__read_ov

Re: [PATCH 1/2] acpi: arm64: add iort support for PMCG

2017-08-07 Thread Robin Murphy
Hi Neil, On 04/08/17 20:59, Neil Leeder wrote: > Add support for the SMMU Performance Monitor Counter Group > information from ACPI. This is in preparation for its use > in the SMMU v3 PMU driver. > > Signed-off-by: Neil Leeder > --- > drivers/acpi/arm64/iort.c | 54 > +

[PATCH] platform/chrome: cros_ec_dev - Use devm_mfd_add_devices

2017-08-07 Thread Jeffy Chen
Currently we are calling mfd_add_devices to add devices without matched mfd_remove_devices to remove them. That would cause warning when re-binding cros_ec_dev: [ 123.536192] sysfs: cannot create duplicate filename '/bus/platform/devices/cros- ec-accel.0' [ 123.536210] [ cut here ]

[MD] Crash with 4.12+ kernel and high disk load -- bisected to 4ad23a976413: MD: use per-cpu counter for writes_pending

2017-08-07 Thread Dominik Brodowski
Neil, Shaohua, following up on David R's bug message: I have observed something similar on v4.12.[345] and v4.13-rc4, but not on v4.11. This is a RAID1 (on bare metal partitions, /dev/sdaX and /dev/sdbY linked together). In case it matters: Further upwards are cryptsetup, a DM volume group, then l

Re: [PATCH] ASoC: pxa: don't select SSP for COMPILE_TESTing

2017-08-07 Thread Mark Brown
On Mon, Aug 07, 2017 at 12:40:44PM +0200, Arnd Bergmann wrote: > When the audio driver selects CONFIG_PXA_SSP to be a loadable > module on a platform other than PXA, and the PXA SPI driver > is built-in, we get a link error in the SPI driver: Why doesn't this cause problems on PXA? signature.asc

[PATCH 1/2] watchdog: of_xilinx_wdt: Add support for reading freq via CCF

2017-08-07 Thread Michal Simek
From: Maulik Jodhani Improve CLK handling in the code to read freq via CCF. Also disable CLK asap and add clk handling code to start and stop. Signed-off-by: Maulik Jodhani Signed-off-by: Michal Simek --- drivers/watchdog/of_xilinx_wdt.c | 45 1 file

[PATCH] x86: drop mflags-y

2017-08-07 Thread Cao jin
Since commit 6bda2c8b32, subarchitecture support(mflags-y) is totally removed for x86. So now mflags-y can be dropped safely for x86. Signed-off-by: Cao jin --- arch/x86/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index bf240b9..a3f66d6 10

[PATCH 2/2] watchdog: of_xilinx_wdt: Add suspend/resume support

2017-08-07 Thread Michal Simek
Add suspend/resume support to driver. Signed-off-by: Michal Simek --- drivers/watchdog/of_xilinx_wdt.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/watchdog/of_xilinx_wdt.c b/drivers/watchdog/of_xilinx_wdt.c index 41edeb93a327..1cf286945b7a

Re: [RESEND PATCH] bcache: Don't reinvent the wheel but use existing llist API

2017-08-07 Thread Coly Li
On 2017/8/7 下午4:38, Byungchul Park wrote: > Although llist provides proper APIs, they are not used. Make them used. > > Signed-off-by: Byungchul Park > --- > drivers/md/bcache/closure.c | 17 +++-- > 1 file changed, 3 insertions(+), 14 deletions(-) > > diff --git a/drivers/md/bcach

Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc allocator

2017-08-07 Thread Igor Stoppa
On 04/08/17 11:12, Michal Hocko wrote: > On Fri 04-08-17 11:02:46, Igor Stoppa wrote: [...] >> struct page { >> /* First double word block */ >> unsigned long flags; /* Atomic flags, some possibly >> * updated asynchronously */ >> union { >> st

Re: [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
Hi, Clemens! On 08/07/2017 01:27 PM, Clemens Ladisch wrote: Oleksandr Andrushchenko wrote: Front sound driver has no real interrupts, so playback/capture period passed interrupt needs to be emulated: this is done via timer. Add required timer operations, this is based on sound/drivers/dummy.c.

Re: [PATCH 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
Hi, On 08/07/2017 02:28 PM, Takashi Sakamoto wrote: Hi, On Aug 7 2017 16:43, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with t

Re: [PATCH 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Takashi Sakamoto
Hi, On Aug 7 2017 16:43, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the following limitations: - mute/unmute is not support

Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc allocator

2017-08-07 Thread Michal Hocko
On Mon 07-08-17 14:26:21, Igor Stoppa wrote: > On 04/08/17 11:12, Michal Hocko wrote: > > On Fri 04-08-17 11:02:46, Igor Stoppa wrote: > > [...] > > >> struct page { > >> /* First double word block */ > >> unsigned long flags; /* Atomic flags, some possibly > >>

Re: [PATCH] usb: quirks: Add no-lpm quirk for Moshi USB to Ethernet Adapter

2017-08-07 Thread Oliver Neukum
Am Montag, den 07.08.2017, 17:33 +0800 schrieb Kai-Heng Feng: > On Mon, Aug 7, 2017 at 5:08 PM, Oliver Neukum wrote: > > > > Am Freitag, den 04.08.2017, 17:34 +0800 schrieb Kai-Heng Feng: > > > > > > The Realtek r8153 ethernet does not work on Genesys Logic hub, no-lpm > > > quirk can make it wo

Re: [PATCH] ASoC: pxa: don't select SSP for COMPILE_TESTing

2017-08-07 Thread Arnd Bergmann
On Mon, Aug 7, 2017 at 1:20 PM, Mark Brown wrote: > On Mon, Aug 07, 2017 at 12:40:44PM +0200, Arnd Bergmann wrote: >> When the audio driver selects CONFIG_PXA_SSP to be a loadable >> module on a platform other than PXA, and the PXA SPI driver >> is built-in, we get a link error in the SPI driver:

Re: [PATCH] ASoC: rockchip: add bindings for i2s

2017-08-07 Thread Mark Brown
On Mon, Jul 31, 2017 at 09:47:51AM +0800, Sugar Zhang wrote: > This patch add bindings for rk3036/rk3228/rk3328/rk3366 i2s. Can we please also add these to the driver so that we'll match on those. signature.asc Description: PGP signature

[PATCH 2/2] mm, oom: fix potential data corruption when oom_reaper races with writer

2017-08-07 Thread Michal Hocko
From: Michal Hocko Wenwei Tao has noticed that our current assumption that the oom victim is dying and never doing any visible changes after it dies, and so the oom_reaper can tear it down, is not entirely true. __task_will_free_mem consider a task dying when SIGNAL_GROUP_EXIT is set but do_grou

[PATCH 1/2] mm: fix double mmap_sem unlock on MMF_UNSTABLE enforced SIGBUS

2017-08-07 Thread Michal Hocko
From: Michal Hocko Tetsuo Handa has noticed that MMF_UNSTABLE SIGBUS path in handle_mm_fault causes a lockdep splat [ 58.539455] Out of memory: Kill process 1056 (a.out) score 603 or sacrifice child [ 58.543943] Killed process 1056 (a.out) total-vm:4268108kB, anon-rss:2246048kB, file-rss:0k

[PATCH 0/2] mm, oom: fix oom_reaper fallouts

2017-08-07 Thread Michal Hocko
Hi, there are two issues this patch series attempts to fix. First one is something that has been broken since MMF_UNSTABLE flag introduction and I guess we should backport it stable trees (patch 1). The other issue has been brought up by Wenwei Tao and Tetsuo Handa has created a test case to trigge

Re: [PATCH] mm/vmalloc: reduce half comparison during pcpu_get_vm_areas()

2017-08-07 Thread Michal Hocko
[CC Tejun] On Thu 03-08-17 14:38:22, Wei Yang wrote: > In pcpu_get_vm_areas(), it checks each range is not overlapped. To make > sure it is, only (N^2)/2 comparison is necessary, while current code does > N^2 times. By starting from the next range, it achieves the goal and the > continue could be

[PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount

2017-08-07 Thread Nayna Jain
The TPM burstcount status indicates the number of bytes that can be sent to the TPM without causing bus wait states. Effectively, it is the number of empty bytes in the command FIFO. Further, some TPMs have a static burstcount, when the value remains zero until the entire FIFO is empty. This patc

Re: [PATCH] ASoC: pxa: don't select SSP for COMPILE_TESTing

2017-08-07 Thread Mark Brown
On Mon, Aug 07, 2017 at 01:36:09PM +0200, Arnd Bergmann wrote: > On Mon, Aug 7, 2017 at 1:20 PM, Mark Brown wrote: > > On Mon, Aug 07, 2017 at 12:40:44PM +0200, Arnd Bergmann wrote: > >> When the audio driver selects CONFIG_PXA_SSP to be a loadable > >> module on a platform other than PXA, and the

[PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible

2017-08-07 Thread Vignesh R
Add a new compatible string "ti,k2g-ecap" to support PWM ECAP IP of TI 66AK2G SoC. Signed-off-by: Vignesh R --- Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt b/Documentation/devicetre

[PATCH 4/4] ARM: configs: keystone: Enable TIECAP PWM driver

2017-08-07 Thread Vignesh R
Enable PWM_TIECAP driver to support ECAP IP present in 66AK2G SoC. Signed-off-by: Vignesh R --- arch/arm/configs/keystone_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/keystone_defconfig b/arch/arm/configs/keystone_defconfig index d47ea43d097e..445ad438b451 10

[PATCH 3/4] ARM: dts: keystone-k2g-evm: Enable PWM ECAP0

2017-08-07 Thread Vignesh R
Enable PWM ECAP0 which will be used for display backlight. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g-evm.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g-evm.dts b/arch/arm/boot/dts/keystone-k2g-evm.dts index 61883cb969d2..3c

[PATCH RESEND 04/11] ALSA: vsnd: Implement Xen event channel handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko 1. Create event channels for all configured streams and publish corresponding ring references and event channels in Xen store, so backend can connect. 2. Implement event channel interrupt handler. 3. Create and destroy event channels with respect to Xen bus state. S

[PATCH RESEND 11/11] ALSA: vsnd: Introduce Kconfig option to enable Xen PV sound

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Introduce Kconfig option to enable Xen para-virtualized sound frontend driver. Also add sound frontend to the Makefile. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/Kconfig | 12 sound/drivers/Makefile | 2 ++ 2 files changed, 14 inserti

[PATCH RESEND 06/11] ALSA: vsnd: Introduce ALSA virtual sound driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement essential initialization of the sound driver: - introduce required data structures - handle driver registration - handle sound card registration - register sound driver on backend connection - remove sound driver on backend disconnect Signed-off-by: Oleksa

[PATCH 2/4] ARM: dts: keystone-k2g: Add ECAP PWM DT nodes

2017-08-07 Thread Vignesh R
Add DT nodes for PWM ECAP IP present on 66AK2G SoC. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi index bf4d1fa30840..b35d29672f

[PATCH RESEND 07/11] ALSA: vsnd: Initialize virtul sound card

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Initialize virtual sound card with streams according to the Xen store configuration. Add stubs for stream PCM operations. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c | 232 ++ 1 file changed, 232

Applied "ASoC: rockchip: add bindings for i2s" to the asoc tree

2017-08-07 Thread Mark Brown
The patch ASoC: rockchip: add bindings for i2s has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus duri

[PATCH RESEND 10/11] ALSA: vsnd: Implement communication with backend

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement frontend to backend communication according to the para-virtualized sound protocol: xen/interface/io/sndif.h. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c | 302 +++--- 1 file changed, 288 i

[PATCH RESEND 09/11] ALSA: vsnd: Implement ALSA PCM operations

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement ALSA driver operations including: - start/stop period interrupt emulation - manage frontend/backend shraed buffers - manage Xen bus event channel state Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c | 175 +++

Applied "ASoC: sunxi: make snd_soc_codec_driver structures as const" to the asoc tree

2017-08-07 Thread Mark Brown
The patch ASoC: sunxi: make snd_soc_codec_driver structures as const has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "ASoC: mediatek: Fix an error checking code" to the asoc tree

2017-08-07 Thread Mark Brown
The patch ASoC: mediatek: Fix an error checking code has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linu

Re: [PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount

2017-08-07 Thread Peter Huewe
Am 7. August 2017 13:46:32 MESZ schrieb Nayna Jain : >The TPM burstcount status indicates the number of bytes that can >be sent to the TPM without causing bus wait states. Effectively, >it is the number of empty bytes in the command FIFO. Further, >some TPMs have a static burstcount, when the va

[PATCH RESEND 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Front sound driver has no real interrupts, so playback/capture period passed interrupt needs to be emulated: this is done via timer. Add required timer operations, this is based on sound/drivers/dummy.c. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen

[PATCH RESEND 01/11] ALSA: vsnd: Implement driver's probe/remove

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Add essential driver private info structure, initialize locks and implement probe/remove of the Xen frontend driver. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c | 27 +++ 1 file changed, 27 insertions(+) diff --git

[PATCH RESEND 03/11] ALSA: vsnd: Read sound driver configuration from Xen store

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Read configuration values from Xen store according to xen/interface/io/sndif.h protocol: - introduce configuration structures for different components, e.g. sound card, device, stream - read PCM HW parameters, e.g rate, format etc. - detect stream type (capture/pla

[PATCH RESEND 05/11] ALSA: vsnd: Implement handling of shared buffers

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement shared buffer handling according to the para-virtualized sound device protocol at xen/interface/io/sndif.h: - manage buffer memory - handle granted references - handle page directories Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c

[PATCH RESEND 02/11] ALSA: vsnd: Implement Xen bus state handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Initial handling for Xen bus states: implement Xen bus state machine for the front driver according to the state diagram and recovery flow from sound para-virtualized protocol: xen/interface/io/sndif.h. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-

Re: [PATCH 1/2] pinctrl: armada-37xx: Fix the pin 23 on south bridge

2017-08-07 Thread Linus Walleij
On Tue, Aug 1, 2017 at 5:57 PM, Gregory CLEMENT wrote: > Pin 23 on South bridge does not belong to the rgmii group. It belongs to > a separate group which can have 3 functions. > > Due to this the fix also have to update the way the functions are > managed. Until now each groups used NB_FUNCS(whi

[PATCH 0/4] K2G: Add support for PWM ECAP

2017-08-07 Thread Vignesh R
This series adds support for TI ECAP PWM IP present in 66AK2G SoC. Based on linux-next. Vignesh R (4): pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible ARM: dts: keystone-k2g: Add ECAP PWM DT nodes ARM: dts: keystone-k2g-evm: Enable PWM ECAP0 ARM: configs: keystone: Enable TIECAP PWM

[PATCH RESEND 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the following limitations: - mute/unmute is not supported - get/set volume is not supported Volume control is not

[PATCH] drm/panel: simple: Add missing panel_simple_unprepare calls

2017-08-07 Thread Jonathan Liu
During panel removal or system shutdown panel_simple_disable is called which disables the panel backlight but the panel is still powered due to missing calls to panel_simple_unprepare. Fixes: d02fd93e2cd8 ("drm/panel: simple - Disable panel on shutdown") Cc: sta...@vger.kernel.org # v3.16+ Signed-

Re: [PATCH 2/2] pinctrl: armada-37xx: Fix number of pin in south bridge

2017-08-07 Thread Linus Walleij
On Tue, Aug 1, 2017 at 5:57 PM, Gregory CLEMENT wrote: > On the south bridge we have pin from to 29, so it gives 30 pins (and not > 29). > > Without this patch the kernel complain with the following traces: > cat /sys/kernel/debug/pinctrl/d0018800.pinctrl/pingroups > [ 154.530205] armada-37xx-pi

Re: [PATCH 1/4] PM / s2idle: Rename PM_SUSPEND_FREEZE to PM_SUSPEND_S2IDLE

2017-08-07 Thread Rafael J. Wysocki
On Mon, Aug 7, 2017 at 10:49 AM, Peter Zijlstra wrote: > On Sat, Aug 05, 2017 at 02:56:43PM +0200, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> To make it clear that the symbol in question refers to >> suspend-to-idle, rename it from PM_SUSPEND_FREEZE to >> PM_SUSPEND_S2IDLE. >> >> S

Re: [PATCH 2/2] gpio: omap : Add missing clk_unprepare().

2017-08-07 Thread Linus Walleij
On Tue, Aug 1, 2017 at 8:44 AM, Arvind Yadav wrote: > omap_gpio_probe() can fail here and we must disable clock. > > Signed-off-by: Arvind Yadav Patch applied with Grygorii's ACK. yours, Linus Walleij

Re: [PATCH] ASoC: pxa: don't select SSP for COMPILE_TESTing

2017-08-07 Thread Arnd Bergmann
On Mon, Aug 7, 2017 at 1:48 PM, Mark Brown wrote: > On Mon, Aug 07, 2017 at 01:36:09PM +0200, Arnd Bergmann wrote: >> On Mon, Aug 7, 2017 at 1:20 PM, Mark Brown wrote: >> > On Mon, Aug 07, 2017 at 12:40:44PM +0200, Arnd Bergmann wrote: >> >> When the audio driver selects CONFIG_PXA_SSP to be a lo

Re: [PATCH] irqchip: uniphier-aidet: add UniPhier AIDET irqchip driver

2017-08-07 Thread Masahiro Yamada
Hi Marc, Thanks for your comments. 2017-08-07 19:43 GMT+09:00 Marc Zyngier : > On 03/08/17 12:15, Masahiro Yamada wrote: >> UniPhier SoCs contain AIDET (ARM Interrupt Detector). This is intended >> to provide additional features that are not covered by GIC. The main >> purpose is to provide lo

Re: [PATCH 1/4] PM / s2idle: Rename PM_SUSPEND_FREEZE to PM_SUSPEND_S2IDLE

2017-08-07 Thread Rafael J. Wysocki
On Mon, Aug 7, 2017 at 1:57 PM, Rafael J. Wysocki wrote: > On Mon, Aug 7, 2017 at 10:49 AM, Peter Zijlstra wrote: >> On Sat, Aug 05, 2017 at 02:56:43PM +0200, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> To make it clear that the symbol in question refers to >>> suspend-to-idle,

Re: [PATCH v3] [BUGFIX] gpio: reject invalid gpio before getting gpio_desc

2017-08-07 Thread Linus Walleij
On Wed, Aug 2, 2017 at 6:47 AM, Masami Hiramatsu wrote: > Check user-given gpio number and reject it before > calling gpio_to_desc() because gpio_to_desc() is > for kernel driver and it expects given gpio number > is valid (means 0 to 511). > If given number is invalid, gpio_to_desc() calls > WAR

Re: [PATCH] ASoC: pxa: don't select SSP for COMPILE_TESTing

2017-08-07 Thread Mark Brown
On Mon, Aug 07, 2017 at 01:58:29PM +0200, Arnd Bergmann wrote: > On Mon, Aug 7, 2017 at 1:48 PM, Mark Brown wrote: > > Still missing a few steps of reasoning here... > Sorry, I just realized that you were trying to point out the incomplete > changelog. I must have accidentally closed the editor

Re: [PATCH 1/3] dt-bindings: pinctrl: mt2712: add binding document

2017-08-07 Thread Linus Walleij
On Mon, Jul 31, 2017 at 10:22 AM, Zhiyong Tao wrote: > The commit adds mt2712 compatible node in binding document. > > Signed-off-by: Zhiyong Tao Patch applied with Rob's ACK Yours, Linus Walleij

Re: [PATCH 2/3] arm64: dts: mt2712: add pintcrl device node.

2017-08-07 Thread Linus Walleij
On Mon, Jul 31, 2017 at 10:22 AM, Zhiyong Tao wrote: > The commit includes two change: > 1)add pintcrl device node for mt2712. > 2)add pinfunc file for mt2712. > > Signed-off-by: Zhiyong Tao Acked-by: Linus Walleij Please take this through the ARM SoC tree. Yours, Linus Walleij

Re: [PATCH RESEND 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Takashi Sakamoto
Hi, On Aug 7 2017 20:50, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the following limitations: - mute/unmute is not support

Re: Increased memory usage with scsi-mq

2017-08-07 Thread Paolo Bonzini
On 05/08/2017 17:51, Richard W.M. Jones wrote: > On Sat, Aug 05, 2017 at 03:39:54PM +0200, Christoph Hellwig wrote: >> For now can you apply this testing patch to the guest kernel? >> >> diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c >> index 9be211d68b15..0cbe2c882e1c 100644

Re: [PATCH] gpio: mvebu: Fix cause computation in irq handler

2017-08-07 Thread Linus Walleij
On Wed, Jul 12, 2017 at 1:22 PM, Gregory CLEMENT wrote: > When switching to regmap, the way to compute the irq cause was > reorganized. However while doing it, a typo was introduced: a 'xor' > replaced a 'and'. > > This lead to wrong behavior in the interrupt handler ans one of the > symptom was

Re: [PATCH] perf/core: Avoid context switch overheads

2017-08-07 Thread Peter Zijlstra
On Fri, Aug 04, 2017 at 04:50:54PM +0800, 石祤 wrote: > From: "leilei.lin" > > A performance issue caused by less strickly check in task > sched when these tasks were once attached by per-task perf_event. > > A task will alloc task->perf_event_ctxp[ctxn] when it was called > by perf_event_open, an

Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-07 Thread Linus Walleij
On Wed, Aug 2, 2017 at 2:06 PM, Andy Shevchenko wrote: > On Tue, 2017-08-01 at 12:24 -0700, Dmitry Torokhov wrote: >> On Wed, Jul 26, 2017 at 01:21:37PM +0300, Andy Shevchenko wrote: >> > On Tue, 2017-07-25 at 13:58 -0700, Dmitry Torokhov wrote: >> > > When converting legacy board to use gpiod API

Re: [GIT PULL] workqueue fixes for v4.13-rc3

2017-08-07 Thread Geert Uytterhoeven
Hi Tejun, On Mon, Jul 31, 2017 at 5:38 PM, Tejun Heo wrote: > Two notable fixes. > * Workqueue assumes that CPU <-> NUMA node mapping remains static. > This is a general assumption - we don't have any synchronization > mechanism around CPU <-> node mapping. Unfortunately, powerpc may > ch

Re: [PATCH RESEND 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
On 08/07/2017 03:09 PM, Takashi Sakamoto wrote: Hi, On Aug 7 2017 20:50, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the fo

Re: [PATCH v4] serio: PS/2 gpio bit banging driver for serio bus

2017-08-07 Thread Linus Walleij
On Wed, Aug 2, 2017 at 2:12 PM, Danilo Krummrich wrote: > This driver provides PS/2 serio bus support by implementing bit banging > with the GPIO API. The GPIO pins, data and clock, can be configured with > a node in the device tree or by generic device properties (GDP). > > Writing to a device i

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