Re: [PATCH 2/3] drivers: phy: broadcom: Add driver for Cygnus USB phy controller

2017-10-29 Thread Chanwoo Choi
Hi, On 2017년 10월 30일 14:02, Raveendra Padasalagi wrote: > Hi Chanwoo, > > On Mon, Oct 30, 2017 at 5:32 AM, Chanwoo Choi wrote: >> Hi, >> >> On 2017년 10월 27일 17:35, Kishon Vijay Abraham I wrote: >>> +Chanwoo, for reviewing extcon >>> >>> Hi. >>> >>> On Tuesday 24 October 2017 10:07 AM, Raveendra

Re: [PATCH v2 1/2] media: i2c: Add the ov7740 image sensor driver

2017-10-29 Thread kbuild test robot
Hi Wenyou, I love your patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.14-rc7 next-20171018] [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-

Re: [PATCH] hw_random: Include device.h instead of declaring struct device

2017-10-29 Thread Herbert Xu
On Thu, Oct 26, 2017 at 07:12:08PM +0530, PrasannaKumar Muralidharan wrote: > Include linux/device.h instead of declaring struct device. > > Signed-off-by: PrasannaKumar Muralidharan Nack. We should not include a header file when a simple forward declaration is enough. -- Email: Herbert Xu Ho

Re: [PATCH v2] kbuild: fix linker feature test macros when cross compiling with Clang

2017-10-29 Thread Masahiro Yamada
2017-10-29 0:00 GMT+09:00 Masahiro Yamada : > 2017-10-28 5:13 GMT+09:00 Nick Desaulniers : >> I was not seeing my linker flags getting added when using ld-option when >> cross compiling with Clang. Upon investigation, this seems to be due to >> a difference in how GCC vs Clang handle cross compilat

Re: [PATCH v5 24/26] KVM: arm/arm64: GICv4: Prevent userspace from changing doorbell affinity

2017-10-29 Thread Christoffer Dall
On Fri, Oct 27, 2017 at 03:28:53PM +0100, Marc Zyngier wrote: > We so far allocate the doorbell interrupts without taking any > special measure regarding the affinity of these interrupts. We > simply move them around as required when the vcpu gets scheduled > on a different CPU. > > But that's cou

Re: [PATCH v5 02/26] KVM: arm/arm64: register irq bypass consumer on ARM/ARM64

2017-10-29 Thread Christoffer Dall
On Fri, Oct 27, 2017 at 03:28:31PM +0100, Marc Zyngier wrote: > From: Eric Auger > > This patch selects IRQ_BYPASS_MANAGER and HAVE_KVM_IRQ_BYPASS > configs for ARM/ARM64. > > kvm_arch_has_irq_bypass() now is implemented and returns true. > As a consequence the irq bypass consumer will be regist

Re: [PATCH v5 01/26] irqchip/gic-v3-its: Setup VLPI properties at map time

2017-10-29 Thread Christoffer Dall
On Fri, Oct 27, 2017 at 03:28:30PM +0100, Marc Zyngier wrote: > So far, we require the hypervisor to update the VLPI properties > once the the VLPI mapping has been established. While this > makes it easy for the ITS driver, it creates a window where > an incoming interrupt can be delivered with an

[migration_cpu_stop] WARNING: CPU: 0 PID: 11 at arch/x86/kernel/smp.c:128 native_smp_send_reschedule+0x69/0x9e

2017-10-29 Thread Fengguang Wu
On Sun, Oct 29, 2017 at 11:51:55PM +0100, Fengguang Wu wrote: Hi Linus, Up to now we see the below boot error/warnings when testing v4.14-rc6. They hit the RC release mainly due to various imperfections in 0day's auto bisection. So I manually list them here and CC the likely easy to debug ones

[RFC] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-10-29 Thread Oleksandr Andrushchenko
Hi, all! This is an attempt to summarize previous discussions on Xen para-virtual sound driver. A first attempt has been made to upstream the driver [1] which brought number of fundamental questions, one of the biggest ones was that the frontend driver has no means to synchronize its period e

Re: [PATCH v4 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-29 Thread Juergen Gross
On 30/10/17 06:26, Dongli Zhang wrote: > After guest live migration on xen, steal time in /proc/stat > (cpustat[CPUTIME_STEAL]) might decrease because steal returned by > xen_steal_lock() might be less than this_rq()->prev_steal_time which is > derived from previous return value of xen_steal_clock(

Linux 4.14-rc6: WARNING: CPU: 9 PID: 5377 at arch/x86/events/intel/core.c:2228 intel_pmu_handle_irq+0x4a8/0x4c0

2017-10-29 Thread Fengguang Wu
CC perf maintainers. On Sun, Oct 29, 2017 at 11:51:55PM +0100, Fengguang Wu wrote: Hi Linus, Up to now we see the below boot error/warnings when testing v4.14-rc6. They hit the RC release mainly due to various imperfections in 0day's auto bisection. So I manually list them here and CC the like

[PATCH v2 0/2] gpio: Generalise state persistence (was: Expose reset tolerance capability)

2017-10-29 Thread Andrew Jeffery
Hello, This series provides an API to configure general GPIO state persistence in gpiolib. Previously, only sleep persistence was considered, but controllers like one found in Aspeed BMCs also support persistence of state across controller resets. There is some prior discussion on v1[1] and the in

[PATCH v2 1/2] gpio: gpiolib: Generalise state persistence beyond sleep

2017-10-29 Thread Andrew Jeffery
General support for state persistence is added to gpiolib with the introduction of a new pinconf parameter to propagate the request to hardware. The existing persistence support for sleep is adapted to include hardware support if the GPIO driver provides it. Persistence continues to be enabled by d

[PATCH v2 2/2] gpio: aspeed: Add support for reset tolerance

2017-10-29 Thread Andrew Jeffery
Use the new pinconf parameter for state persistence to expose the associated capability of the Aspeed GPIO controller. Signed-off-by: Andrew Jeffery --- drivers/gpio/gpio-aspeed.c | 39 +-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/drivers

Re: [PATCH v6 0/9] vITS Migration fixes and reset

2017-10-29 Thread Christoffer Dall
Hi Eric, On Thu, Oct 26, 2017 at 05:23:02PM +0200, Eric Auger wrote: > This series fixes various bugs observed when saving/restoring the > ITS state before the guest writes the ITS registers (on first boot or > after reset/reboot). > > This is a follow up of Wanghaibin's series [1] plus additiona

[ANNOUNCE] Git v2.15.0

2017-10-29 Thread Junio C Hamano
The latest feature release Git v2.15.0 is now available at the usual places. It is comprised of 769 non-merge commits since v2.14.0, contributed by 91 people, 28 of which are new faces. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories

[PATCH] locking/lockdep: Revise Documentation/locking/crossrelease.txt

2017-10-29 Thread Byungchul Park
I'm afraid the revision is not perfect yet. Of course, the document can have got much better english by others than me. But, I think I should enhance it as much as I can, before they can help it starting with a better one. In addition, I removed verboseness as much as possible. ->8- >Fr

[lkp-robot] [x86/topology] 45d87f5bb7: WARNING:at_kernel/locking/lockdep.c:#lockdep_trace_alloc

2017-10-29 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-6): commit: 45d87f5bb794a19baa7f92fdf2fabdcb0575c66d ("x86/topology: Avoid wasting 128k for package id array") url: https://github.com/0day-ci/linux/commits/Prarit-Bhargava/perf-x86-intel-uncore-Cache-logical-pkg-id-in-uncore-driver/20171027-

[lkp-robot] [proc] eb948c71f7: WARNING:at_mm/hugetlb.c:#hugetlb_add_hstate

2017-10-29 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-5): commit: eb948c71f790f4fd27440895ca19180a78fd3016 ("proc: mm: export PTE sizes directly in smaps") url: https://github.com/0day-ci/linux/commits/Fan-Du/proc-mm-export-PTE-sizes-directly-in-smaps/20171027-233355 in testcase: trinity with

[lkp-robot] [locking/lockdep] 2dcd5adfb7: WARNING:possible_circular_locking_dependency_detected

2017-10-29 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-5): commit: 2dcd5adfb7401b762ddbe4b86dcacc2f3de6b97b ("locking/lockdep: Remove the BROKEN flag from CONFIG_LOCKDEP_CROSSRELEASE and CONFIG_LOCKDEP_COMPLETIONS") https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git locking/core in testcase

Re: [PATCH v4 05/13] irqchip: add initial support for ompic

2017-10-29 Thread Marc Zyngier
On Mon, Oct 30 2017 at 1:18:06 pm GMT, Stafford Horne wrote: > On Mon, Oct 30, 2017 at 02:29:18AM +, Marc Zyngier wrote: >> On Mon, Oct 30 2017 at 8:11:15 am GMT, Stafford Horne >> wrote: >> > From: Stefan Kristiansson >> > >> > IPI driver for the Open Multi-Processor Interrupt Controller

Re: [PATCH v6 9/9] KVM: arm/arm64: vgic-its: Implement KVM_DEV_ARM_ITS_CTRL_RESET

2017-10-29 Thread Christoffer Dall
On Thu, Oct 26, 2017 at 05:23:11PM +0200, Eric Auger wrote: > On reset we clear the valid bits of GITS_CBASER and GITS_BASER. > We also clear command queue registers and free the cache (device, > collection, and lpi lists). > > As we need to take the same locks as save/restore functions, we > crea

RE: [PATCH] hp_accel: Add accelerometer quirk for HP ProBook 440 G4

2017-10-29 Thread Osama Khan
Thanks for reviewing the patch. I'll keep your feedback in mind for future submissions. -Original Message- From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver-x86-ow...@vger.kernel.org] On Behalf Of Andy Shevchenko Sent: Friday, October 27, 2017 9:31 PM To: Osama Khan

Re: [PATCH v6 8/9] KVM: arm/arm64: Document KVM_DEV_ARM_ITS_CTRL_RESET

2017-10-29 Thread Christoffer Dall
On Thu, Oct 26, 2017 at 05:23:10PM +0200, Eric Auger wrote: > At the moment, the in-kernel emulated ITS is not properly reset. > On guest restart/reset some registers keep their old values and > internal structures like device, ITE, and collection lists are not > freed. > > This may lead to variou

Re: [PATCH v6 7/9] KVM: arm/arm64: vgic-its: Free caches when GITS_BASER Valid bit is cleared

2017-10-29 Thread Christoffer Dall
On Mon, Oct 30, 2017 at 03:19:54AM +, Marc Zyngier wrote: > On Thu, Oct 26 2017 at 6:23:09 pm BST, Eric Auger > wrote: > > When the GITS_BASER.Valid gets cleared, the data structures in > > guest RAM are not valid anymore. The device, collection > > and LPI lists stored in the in-kernel ITS

[PATCH v5 5/5] clk: aspeed: Add reset controller

2017-10-29 Thread Joel Stanley
There are some resets that are not associated with gates. These are represented by a reset controller. Reviewed-by: Andrew Jeffery Signed-off-by: Joel Stanley --- v5: - Add Andrew's Reviewed-by v3: - Add named initalisers for the reset defines - Add define for ADC --- drivers/clk/clk-aspe

[PATCH v5 4/5] clk: aspeed: Register gated clocks

2017-10-29 Thread Joel Stanley
The majority of the clocks in the system are gates paired with a reset controller that holds the IP in reset. This borrows from clk_hw_register_gate, but registers two 'gates', one to control the clock enable register and the other to control the reset IP. This allows us to enforce the ordering:

[PATCH v5 2/5] clk: aspeed: Register core clocks

2017-10-29 Thread Joel Stanley
This registers the core clocks; those which are required to calculate the rate of the timer peripheral so the system can load a clocksource driver. Signed-off-by: Joel Stanley --- v5: - Add Andrew's Reviewed-by v4: - Add defines to document the BIT() macros v3: - Fix ast2400 ahb calculatio

[PATCH v5 3/5] clk: aspeed: Add platform driver and register PLLs

2017-10-29 Thread Joel Stanley
This registers a platform driver to set up all of the non-core clocks. The clocks that have configurable rates are now registered. Signed-off-by: Joel Stanley -- v5: - Remove eclk configuration. We do not have enough information to correctly implement the mux and divisor, so it will have to be

[PATCH v5 1/5] clk: Add clock driver for ASPEED BMC SoCs

2017-10-29 Thread Joel Stanley
This adds the stub of a driver for the ASPEED SoCs. The clocks are defined and the static registration is set up. Reviewed-by: Andrew Jeffery Signed-off-by: Joel Stanley --- v5: - Add Andrew's reviewed-by - Make aspeed_gates not initconst to avoid section mismatch warning v3: - use named init

[PATCH v5 0/5] clk: Add Aspeed clock driver

2017-10-29 Thread Joel Stanley
This driver supports the ast2500, ast2400 (and derivative) BMC SoCs from Aspeed. This is v5. See patches for detailed changelogs. v5: Address review from Andrew v4: Address review from Andrew and Stephen. v3: Address review from Andrew and has seen more testing on hardware v2: split the driver o

[PATCH v2 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2017-10-29 Thread Rick Chen
ATCPIT100 is often used on the Andes architecture, This timer provide 4 PIT channels. Each PIT channel is a multi-function timer, can be configured as 32,16,8 bit timers or PWM as well. For system timer it will set 32-bit timer0 as clock source and count downwards until underflow and restart again

[PATCH v2 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-10-29 Thread Rick Chen
Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Greentime Hu Signed-off-by: Rick Chen --- .../bindings/timer/andestech,atcpit100-timer.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/b

[PATCH v2 2/3] clocksource/drivers/Kconfig: Support andestech atcpit100 timer

2017-10-29 Thread Rick Chen
Add CLKSRC_ATCPIT100 for Andestech atcpit100 timer selection. It often be used in Andestech AE3XX platform. Signed-off-by: Greentime Hu Signed-off-by: Rick Chen --- drivers/clocksource/Kconfig | 6 ++ drivers/clocksource/Makefile | 1 + 2 files changed, 7 insertions(+) diff --git a/driver

[PATCH V1] rpmsg: glink: Initialize the "intent_req_comp" completion variable

2017-10-29 Thread Arun Kumar Neelakantam
The "intent_req_comp" variable is used without initialization which results in NULL pointer dereference in qcom_glink_request_intent(). we need to initialize the completion variable before using it. Fixes: 27b9c5b66b23 ("rpmsg: glink: Request for intents when unavailable") Signed-off-by: Arun Kum

[PATCH v4] KVM: arm/arm64: fix the incompatible matching for external abort

2017-10-29 Thread Dongjiu Geng
kvm_vcpu_dabt_isextabt() tries to match a full fault syndrome, but calls kvm_vcpu_trap_get_fault_type() that only returns the fault class, thus reducing the scope of the check. This doesn't cause any observable bug yet as we end-up matching a closely related syndrome for which we return the same va

[PATCH v4 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-29 Thread Dongli Zhang
After guest live migration on xen, steal time in /proc/stat (cpustat[CPUTIME_STEAL]) might decrease because steal returned by xen_steal_lock() might be less than this_rq()->prev_steal_time which is derived from previous return value of xen_steal_clock(). For instance, steal time of each vcpu is 33

Re: [PATCH 2/3] drivers: phy: broadcom: Add driver for Cygnus USB phy controller

2017-10-29 Thread Raveendra Padasalagi
Hi Chanwoo, On Mon, Oct 30, 2017 at 5:32 AM, Chanwoo Choi wrote: > Hi, > > On 2017년 10월 27일 17:35, Kishon Vijay Abraham I wrote: >> +Chanwoo, for reviewing extcon >> >> Hi. >> >> On Tuesday 24 October 2017 10:07 AM, Raveendra Padasalagi wrote: >>> Add driver for Broadcom's USB phy controller's us

Re: [lkp-robot] [perf/x86] a5df70c354: perf-sanity-tests.Parse_event_definition_strings.fail

2017-10-29 Thread Li Zhijian
attached to full output: root@lkp-hsw-ep5 /usr/src/linux-perf-x86_64-rhel-7.2-bb176f67090ca54869fc1262c913aa69d2ede070/tools/perf# ./perf test -F 6 -v 6: Parse event definition strings: --- start --- running test 0 'syscalls:sys_enter_openat' Using CPUID GenuineIntel-6

[PATCH 08/10] staging: lustre: lov: use list_for_each_entry in lov_obd.c

2017-10-29 Thread NeilBrown
Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/lov/lov_obd.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/lov/lov_obd.c b/drivers/staging/lustre/lustre/lov/lov_obd.c index fefd3c588681..7e013229d7b5 100644 --- a/drivers/st

[PATCH 10/10] staging: lustre: obdclass: simplify cl_lock_fini()

2017-10-29 Thread NeilBrown
Using list_first_entry_or_null() makes this (slightly) simpler. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/obdclass/cl_lock.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/cl_lock.c b/drivers/staging/lustre

[PATCH 09/10] staging: lustre: simplfy lov_finish_set()

2017-10-29 Thread NeilBrown
When deleting everything from a list, a while loop is cleaner than list_for_each_safe(). Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/lov/lov_request.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/staging/lustre/lustre/lov/lov_request.c

[PATCH 05/10] staging: lustre: ldlm: use list_first_entry in ldlm_lockd.c

2017-10-29 Thread NeilBrown
Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c b/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c index e2707336586c..2aaa5e91c66c 100644

[PATCH 06/10] staging: lustre: ldlm: minor list_entry improvements in ldlm_request.c

2017-10-29 Thread NeilBrown
Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ldlm/ldlm_request.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_request.c b/drivers/staging/lustre/lustre/ldlm/ldlm_request.c index f5e791a92f62..1e7b8fc4dd00

[PATCH 07/10] staging: lustre: ldlm: use list_for_each_entry in ldlm_resource.c

2017-10-29 Thread NeilBrown
Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c b/drivers/staging/lustre/lustre/ldlm/ldlm_resource.c index c2ddf7312571..

[PATCH 04/10] staging: lustre: ldlm: use list_for_each_entry in ldlm_lock.c

2017-10-29 Thread NeilBrown
This makes some slightly-confusing code a bit clearer, and avoids the need for 'tmp'. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ldlm/ldlm_lock.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c b/dri

[PATCH 03/10] staging: lustre: ldlm: use list_first_entry in ldlm_lock

2017-10-29 Thread NeilBrown
This make the code (slightly) more readable. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ldlm/ldlm_lock.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c b/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c

[PATCH 00/10] staging: lustre: assorted code improvements for list manipulations.

2017-10-29 Thread NeilBrown
There are mostly conversions of list_for_each() to list_for_each_entry() and similar. list_first_entry() also makes a few appearances. Thanks, NeilBrown --- NeilBrown (10): staging: lustre: use list_last_entry to simplify fld_cache_shrink staging: lustre: ldlm: use list_for_each_en

[PATCH 02/10] staging: lustre: ldlm: use list_for_each_entry in ldlm_extent_shift_kms()

2017-10-29 Thread NeilBrown
Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ldlm/ldlm_extent.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_extent.c b/drivers/staging/lustre/lustre/ldlm/ldlm_extent.c index 2cc6dc2b281f..c9bf9ae40f7d 100644 ---

[PATCH 01/10] staging: lustre: use list_last_entry to simplify fld_cache_shrink

2017-10-29 Thread NeilBrown
Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/fld/fld_cache.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/staging/lustre/lustre/fld/fld_cache.c b/drivers/staging/lustre/lustre/fld/fld_cache.c index b723ece02eff..c01709cd22a1 100644 ---

Re: [PATCH v2 2/3] mailbox: Add support for Hi3660 mailbox

2017-10-29 Thread Leo Yan
Hi Mark, On Fri, Oct 27, 2017 at 11:46:00AM +0100, Mark Rutland wrote: > On Fri, Oct 27, 2017 at 02:15:03PM +0800, Kaihua Zhong wrote: > > Hi3660 mailbox controller is used to send message within multiple > > processors, MCU, HIFI, etc. It supports 32 mailbox channels and every > > channel can on

Re: [PATCH] kernel/kprobes: add check to avoid memory leaks

2017-10-29 Thread Masami Hiramatsu
On Mon, 30 Oct 2017 09:10:57 +0800 Bixuan Cui wrote: > On 2017/10/25 20:29, Bixuan Cui wrote: > And test again with this patch: > > insmod testRegKretprobes_004.ko > [ 163.853281] register_kretprobe failed, returned -22 > insmod: can't insert 'testRegKretprobes_004.ko': Operation not permitted

Re: [PATCH 2/3] drivers: phy: broadcom: Add driver for Cygnus USB phy controller

2017-10-29 Thread Raveendra Padasalagi
Hi Kishon, On Fri, Oct 27, 2017 at 2:05 PM, Kishon Vijay Abraham I wrote: > +Chanwoo, for reviewing extcon > > Hi. > > On Tuesday 24 October 2017 10:07 AM, Raveendra Padasalagi wrote: >> Add driver for Broadcom's USB phy controller's used in Cygnus >> familyof SoC. Cygnus has three USB phy contro

[PATCH] Fix writing mtdoops to nand flash.

2017-10-29 Thread motobud
From: Brent Taylor When mtdoops calls mtd_panic_write, it eventually calls panic_nand_write in nand_base.c. In order to properly wait for the nand chip to be ready in panic_nand_wait, the chip must first be selected. When using the atmel nand flash controller, a panic would occur due to a NULL

Re: [PATCH v4 05/13] irqchip: add initial support for ompic

2017-10-29 Thread Stafford Horne
On Mon, Oct 30, 2017 at 02:29:18AM +, Marc Zyngier wrote: > On Mon, Oct 30 2017 at 8:11:15 am GMT, Stafford Horne > wrote: > > From: Stefan Kristiansson > > > > IPI driver for the Open Multi-Processor Interrupt Controller (ompic) as > > described in the Multi-core support section of the Ope

[PATCH] st-hva: hva-h264: use swap macro in hva_h264_encode

2017-10-29 Thread Gustavo A. R. Silva
Make use of the swap macro and remove unnecessary variable tmp_frame. This makes the code easier to read and maintain. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/media/platform/sti/hva/hva-h264.c | 5 + 1 file changed, 1 insertion(+),

Re: [PATCH] Coccinelle: use false positive annotation

2017-10-29 Thread Julia Lawall
On Mon, 30 Oct 2017, Masahiro Yamada wrote: > Hi Julia, > > > 2017-10-29 8:43 GMT+09:00 Julia Lawall : > > /// is to describe the semantic patch, while //# indicates reasons > > for false positives. > > > > Signed-off-by: Julia Lawall > > > > --- > > scripts/coccinelle/misc/ifcol.cocci |6

Re: [PATCH] Coccinelle: use false positive annotation

2017-10-29 Thread Masahiro Yamada
Hi Julia, 2017-10-29 8:43 GMT+09:00 Julia Lawall : > /// is to describe the semantic patch, while //# indicates reasons > for false positives. > > Signed-off-by: Julia Lawall > > --- > scripts/coccinelle/misc/ifcol.cocci |6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff

[PATCH v3] i2c: aspeed: Deassert reset in probe

2017-10-29 Thread Joel Stanley
In order to use i2c from a cold boot, the i2c peripheral must be taken out of reset. We request a shared reset controller each time a bus driver is loaded, as the reset is shared between the 14 i2c buses. On remove the reset is asserted, which only touches the hardware once the last i2c bus is rem

Re: [PATCH V4 07/12] boot_constraint: Add debugfs support

2017-10-29 Thread Randy Dunlap
On 10/29/17 20:37, Viresh Kumar wrote: > On 29-10-17, 08:09, Randy Dunlap wrote: >> On 10/29/17 06:48, Viresh Kumar wrote: >>> This patch adds debugfs support for boot constraints. This is how it >>> looks for a "vmmc-supply" constraint for the MMC device. >>> >>> Tested-by: Rajendra Nayak >>> Sig

Re: [PATCH] Check all .c files for bad kernel-doc comments

2017-10-29 Thread Masahiro Yamada
Hi Matthew, 2017-10-28 4:41 GMT+09:00 Matthew Wilcox : > From: Matthew Wilcox > > Implement a '-none' output mode for kernel-doc which will only output > warning messages, and suppresses the warning message about there being > no kernel-doc in the file. Add it to the rule to build .o files from

Re: [PATCH v2 RESEND] Revert "f2fs: handle dirty segments inside refresh_sit_entry"

2017-10-29 Thread Chao Yu
On 2017/10/30 9:33, Yunlong Song wrote: > This reverts commit 5e443818fa0b2a2845561ee25bec181424fb2889 > > The commit should be reverted because call sequence of below two parts > of code must be kept: > a. update sit information, it needs to be updated before segment > allocation since latter all

Re: [PATCH V4 07/12] boot_constraint: Add debugfs support

2017-10-29 Thread Viresh Kumar
On 29-10-17, 08:09, Randy Dunlap wrote: > On 10/29/17 06:48, Viresh Kumar wrote: > > This patch adds debugfs support for boot constraints. This is how it > > looks for a "vmmc-supply" constraint for the MMC device. > > > > Tested-by: Rajendra Nayak > > Signed-off-by: Viresh Kumar > > --- > > dr

[Part2 PATCH v6.2 18/38] crypto: ccp: Implement SEV_PEK_CSR ioctl command

2017-10-29 Thread Brijesh Singh
The SEV_PEK_CSR command can be used to generate a PEK certificate signing request. The command is defined in SEV spec section 5.7. Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Borislav Petkov Cc: Herbert Xu Cc: Gary Hook Cc: Tom Lendacky Cc: linux-cry...@vger.kernel.org Cc: k...@vger.kernel.org

Re: [PATCH v6 9/9] KVM: arm/arm64: vgic-its: Implement KVM_DEV_ARM_ITS_CTRL_RESET

2017-10-29 Thread Marc Zyngier
On Thu, Oct 26 2017 at 6:23:11 pm BST, Eric Auger wrote: > On reset we clear the valid bits of GITS_CBASER and GITS_BASER. > We also clear command queue registers and free the cache (device, > collection, and lpi lists). > > As we need to take the same locks as save/restore functions, we > creat

Re: [PATCH v6 8/9] KVM: arm/arm64: Document KVM_DEV_ARM_ITS_CTRL_RESET

2017-10-29 Thread Marc Zyngier
On Thu, Oct 26 2017 at 6:23:10 pm BST, Eric Auger wrote: > At the moment, the in-kernel emulated ITS is not properly reset. > On guest restart/reset some registers keep their old values and > internal structures like device, ITE, and collection lists are not > freed. > > This may lead to various

Re: [PATCH v6 6/9] KVM: arm/arm64: vgic-its: New helper functions to free the caches

2017-10-29 Thread Marc Zyngier
On Thu, Oct 26 2017 at 6:23:08 pm BST, Eric Auger wrote: > From: wanghaibin > > We create two new functions that free the device and > collection lists. They are currently called by vgic_its_destroy() > and other callers will be added in subsequent patches. > > We also remove the check on its->

Re: [PATCH v6 7/9] KVM: arm/arm64: vgic-its: Free caches when GITS_BASER Valid bit is cleared

2017-10-29 Thread Marc Zyngier
On Thu, Oct 26 2017 at 6:23:09 pm BST, Eric Auger wrote: > When the GITS_BASER.Valid gets cleared, the data structures in > guest RAM are not valid anymore. The device, collection > and LPI lists stored in the in-kernel ITS represent the same > information in some form of cache. So let's void th

[PATCH] selftests/vm: Add tests validating mremap mirror functionality

2017-10-29 Thread Anshuman Khandual
This adds two tests to validate mirror functionality with mremap() system call on shared and private anon mappings. After the commit dba58d3b8c5 ("mm/mremap: fail map duplication attempts for private mappings"), any attempt to mirror private anon mapping will fail. Suggested-by: Mike Kravetz Sign

Re: [PATCH v2] i2c: aspeed: Deassert reset in probe

2017-10-29 Thread Joel Stanley
On Fri, Oct 27, 2017 at 7:23 AM, Wolfram Sang wrote: >> > + bus->rst = devm_reset_control_get_optional_shared(&pdev->dev, >> > NULL); >> >> This could return error values in case of broken device trees, so you >> may want to check IS_ERR(bus->rst) and handle the error here. >From my unders

[Part2 PATCH v6.1 15/38] crypto: ccp: Implement SEV_PEK_GEN ioctl command

2017-10-29 Thread Brijesh Singh
The SEV_PEK_GEN command is used to generate a new Platform Endorsement Key (PEK). The command is defined in SEV spec section 5.6. Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Borislav Petkov Cc: Herbert Xu Cc: Gary Hook Cc: Tom Lendacky Cc: linux-cry...@vger.kernel.org Cc: k...@vger.kernel.org C

Re: [PATCH stable-4.1.y] tools include: Add a __fallthrough statement

2017-10-29 Thread Levin, Alexander (Sasha Levin)
On Fri, Oct 27, 2017 at 12:05:58PM -0700, Florian Fainelli wrote: >From: Arnaldo Carvalho de Melo > >commit b5bf1733d6a391c4e90ea8f8468d83023be74a2a upstream. > >For cases where implicit fall through case labels are intended, >to let us inform that to gcc >= 7: > >CC /tmp/build/perf/util

[PATCH] HID: i2c-hid: add reset gpio property

2017-10-29 Thread Lin Huang
some i2c hid devices have reset gpio, need to control it in the driver. Change-Id: I87bca954bffc7eb7b35711406f522cb3d0fc2ded Signed-off-by: Lin Huang --- drivers/hid/i2c-hid/i2c-hid.c | 63 +++ include/linux/platform_data/i2c-hid.h | 4 +++ 2 files change

Re: [PATCH v6 5/9] KVM: arm/arm64: vgic-its: Remove kvm_its_unmap_device

2017-10-29 Thread Marc Zyngier
On Thu, Oct 26 2017 at 6:23:07 pm BST, Eric Auger wrote: > Let's remove kvm_its_unmap_device and use kvm_its_free_device > as both functions are identical. > > Signed-off-by: Eric Auger > Acked-by: Christoffer Dall Acked-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny

[PATCH V1] regulator: da9211: update for supporting da9223/4/5

2017-10-29 Thread James Bans
From: James Ban This is update for supporting additional devices da9223/4/5. Only device strings is added because only package type is different. Signed-off-by: James Ban --- This patch applies against linux-next and next-20171018 .../devicetree/bindings/regulator/da9211.txt | 82

Re: [PATCH v4 05/13] irqchip: add initial support for ompic

2017-10-29 Thread Marc Zyngier
On Mon, Oct 30 2017 at 8:11:15 am GMT, Stafford Horne wrote: > From: Stefan Kristiansson > > IPI driver for the Open Multi-Processor Interrupt Controller (ompic) as > described in the Multi-core support section of the OpenRISC 1.2 > architecture specification: > > https://github.com/openrisc/d

Re: [RFC PATCH v10 0/7] PCI: rockchip: Move PCIe WAKE# handling into pci core

2017-10-29 Thread jeffy
Hi Rafael, thanks for your reply. On 10/28/2017 05:07 PM, Rafael J. Wysocki wrote: Overall, I don't quite like the direction this is going into, but I need to have a deeper look. Which may take some time, so please bear with me. ok, i'll wait for your comments, thanks :) Thanks, Rafael

[PATCH] irqdomain: Update the comments of fwnode field of irq_domain structure

2017-10-29 Thread Dou Liyang
Commit: f110711a6053 ("irqdomain: Convert irqdomain-%3Eof_node to fwnode") converted of_node field to fwnode, but didn't update its comments. Update it. Signed-off-by: Dou Liyang --- include/linux/irqdomain.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linu

Re: [RFC PATCH v8 4/7] of/irq: Adjust of pci irq parsing for multiple interrupts

2017-10-29 Thread jeffy
Hi Rob, On 10/27/2017 10:38 PM, Rob Herring wrote: + prop = of_find_property(dn, "interrupt-names", NULL); >+ for (name = of_prop_next_string(prop, NULL); name; >+name = of_prop_next_string(prop, name), index++) { >+ if (!strcmp(name, "pc

Re: [PATCH v3 00/13] dax: fix dma vs truncate and remove 'page-less' support

2017-10-29 Thread Dave Chinner
On Sun, Oct 29, 2017 at 04:46:44PM -0700, Dan Williams wrote: > On Thu, Oct 26, 2017 at 3:58 AM, Jan Kara wrote: > > On Fri 20-10-17 11:31:48, Christoph Hellwig wrote: > >> On Fri, Oct 20, 2017 at 09:47:50AM +0200, Christoph Hellwig wrote: > >> > I'd like to brainstorm how we can do something bett

[PATCH v3 3/3] MAINTAINERS: Add a new entry of the ov7740 driver

2017-10-29 Thread Wenyou Yang
Add a new entry of the ov7740 sensor driver to the MAINTAINERS file. Signed-off-by: Wenyou Yang --- Changes in v3: - Put the MAINTAINERS change to a separate patch. Changes in v2: - Split off the bindings into a separate patch. - Add a new entry to the MAINTAINERS file. MAINTAINERS | 8 +++

[PATCH v3 2/3] media: ov7740: Document device tree bindings

2017-10-29 Thread Wenyou Yang
Add the device tree binding documentation for the ov7740 sensor driver. Signed-off-by: Wenyou Yang --- Changes in v3: - Explicitly document the "remote-endpoint" property. Changes in v2: None .../devicetree/bindings/media/i2c/ov7740.txt | 47 ++ 1 file changed, 47 i

[PATCH v3 0/3] media: ov7740: Add a V4L2 sensor-level driver

2017-10-29 Thread Wenyou Yang
Add a Video4Linux2 sensor-level driver for the OmniVision OV7740 VGA camera image sensor. Changes in v3: - Explicitly document the "remote-endpoint" property. - Put the MAINTAINERS change to a separate patch. Changes in v2: - Split off the bindings into a separate patch. - Add a new entry to

[PATCH v3 1/3] media: i2c: Add the ov7740 image sensor driver

2017-10-29 Thread Wenyou Yang
The ov7740 (color) image sensor is a high performance VGA CMOS image snesor, which supports for output formats: RAW RGB and YUV and image sizes: VGA, and QVGA, CIF and any size smaller. Signed-off-by: Songjun Wu Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None drivers/me

Re: [PATCH v2 2/2] media: ov7740: Document device tree bindings

2017-10-29 Thread Yang, Wenyou
Hi Sakari, Thank you very much for your review and advice. I will send a new version to fix it. On 2017/10/27 18:59, Sakari Ailus wrote: Hi Wenyou, On Fri, Oct 27, 2017 at 03:42:20PM +0800, Wenyou Yang wrote: Add the device tree binding documentation for ov7740 driver and add a new entry of

[PATCH v2 RESEND] Revert "f2fs: handle dirty segments inside refresh_sit_entry"

2017-10-29 Thread Yunlong Song
This reverts commit 5e443818fa0b2a2845561ee25bec181424fb2889 The commit should be reverted because call sequence of below two parts of code must be kept: a. update sit information, it needs to be updated before segment allocation since latter allocation may trigger SSR, and SSR allocation needs la

Re: [PATCH v3] KVM: arm/arm64: fix the incompatible matching for external abort

2017-10-29 Thread gengdongjiu
On 2017/10/29 9:12, Marc Zyngier wrote: > I'm sorry, but I can't manage to parse this commit message. How about > something like this? > > "kvm_vcpu_dabt_isextabt() tries to match a full fault syndrome, but > calls kvm_vcpu_trap_get_fault_type() that only returns the fault class, > thus reducin

Re: [PATCH] kernel/kprobes: add check to avoid memory leaks

2017-10-29 Thread Bixuan Cui
On 2017/10/25 20:29, Bixuan Cui wrote: And test again with this patch: insmod testRegKretprobes_004.ko [ 163.853281] register_kretprobe failed, returned -22 insmod: can't insert 'testRegKretprobes_004.ko': Operation not permitted Thanks, Bixuan Cui > The register_kretprobe(struct kretprobe *rp)

Re: [PATCH] pci: Add a acs_disable option for pci kernel parameter

2017-10-29 Thread Stephen Bates
>> This patch adds a new boot option to the pci kernel parameter called >> "acs_disable" that will disable ACS. This is useful for PCI peer to >> peer communication but can cause problems when IOVA isolation is >> required and an IOMMU is enabled. Use with care. > Eww. Thanks for the feedback Chr

Re: [PATCH v2] genalloc: Make the avail variable an atomic_long_t

2017-10-29 Thread Stephen Bates
> Do we still need #include ? For me, it compiles without it. Yes we do. Kbuild reported a failure when I tried omitting it (arm-multi_v7_defconfig). > Reviewed-by: Daniel Mentz danielme...@google.com Thanks for the review Andrew can you look at picking this up or do you want me to respin wi

[PATCH] media: atmel-isc: Fix clock ID for clk_prepare/unprepare

2017-10-29 Thread Wenyou Yang
Fix the clock ID to do the runtime pm should be ISC_ISPCK, instead of ISC_MCK in clk_prepare(), clk_unprepare() and isc_clk_is_enabled(). Signed-off-by: Wenyou Yang --- drivers/media/platform/atmel/atmel-isc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/m

Re: [PATCH net-next] hv_netvsc: Set tx_table to equal weight after subchannels open

2017-10-29 Thread David Miller
From: Haiyang Zhang Date: Sun, 29 Oct 2017 20:38:59 + > Could you please also queue it for net 4.14 and stable? This is not how you are supposed to handle things. When you have a bug fix you submit the fix for 'net' and then ask for it to be queued up for -stable. And then it will automati

[PATCH] Bug fix: Clear ack of GHES table which contain wrong Error status block, let new error can fill GHES table.

2017-10-29 Thread Qiang Zheng
Current Error status block processing flow, if wrong format is checked, GHES table ack is not cleared. It will cause new error can not be filled GHES table, because UEFI need check ack to know if error was handled by OS. This patch solved issue, no matter Error status block format is wrong, But GH

Re: [PATCH v5 0/5] media: atmel-isc: Rework the format list and clock provider

2017-10-29 Thread Yang, Wenyou
Hi Hans, On 2017/10/27 20:41, Hans Verkuil wrote: Hi Wenyou, Unfortunately the v4 patch series was just merged instead of v5. Can you make a new patch applying just the v4 -> v5 changes? Thank you for your merging. Of course, I will send a patch to fix it. Thanks! Hans On 10/27

[PATCH] ASoC: fix build warning in soc-core.c

2017-10-29 Thread Randy Dunlap
From: Randy Dunlap Fix kernel-doc build error. A symbol that ends with an underscore character ('_') has special meaning in reST (reStructuredText), so add a '*' to prevent this error and to indicate that there are several of these values to choose from. ../sound/soc/soc-core.c:2799: ERROR: Unkn

[PATCH] sound: fix kernel-doc build warning

2017-10-29 Thread Randy Dunlap
From: Randy Dunlap Fix kernel-doc build error. A symbol that ends with an underscore character ('_') has special meaning in reST (reStructuredText), so add a '*' to prevent this error and to indicate that there are several of these values to choose from. ../sound/core/jack.c:312: ERROR: Unknown

[PATCH] pci: fix kernel-doc build warning

2017-10-29 Thread Randy Dunlap
From: Randy Dunlap Fix build error in kernel-doc notation: ../drivers/pci/pci.c:3479: ERROR: Unexpected indentation. Signed-off-by: Randy Dunlap Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org --- drivers/pci/pci.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- lnx-414

[PATCH] iio: fix kernel-doc build errors

2017-10-29 Thread Randy Dunlap
From: Randy Dunlap Fix build errors in kernel-doc notation. Symbols that end in '_' have a special meaning, but adding a '*' makes them OK. ../drivers/iio/industrialio-core.c:635: ERROR: Unknown target name: "iio_val". ../drivers/iio/industrialio-core.c:642: ERROR: Unknown target name: "iio_val"

Re: [PATCH 2/3] drivers: phy: broadcom: Add driver for Cygnus USB phy controller

2017-10-29 Thread Chanwoo Choi
Hi, On 2017년 10월 27일 17:35, Kishon Vijay Abraham I wrote: > +Chanwoo, for reviewing extcon > > Hi. > > On Tuesday 24 October 2017 10:07 AM, Raveendra Padasalagi wrote: >> Add driver for Broadcom's USB phy controller's used in Cygnus >> familyof SoC. Cygnus has three USB phy controller's, port 0,

Re: [PATCH -mm -V2] mm, swap: Fix false error message in __swp_swapcount()

2017-10-29 Thread Minchan Kim
Hi Huang, On Fri, Oct 27, 2017 at 01:53:27PM +0800, Huang, Ying wrote: > From: Huang Ying > > When a page fault occurs for a swap entry, the physical swap readahead > (not the VMA base swap readahead) may readahead several swap entries > after the fault swap entry. The readahead algorithm calcu

  1   2   3   4   >