[PATCH v3 5/5] selftests: ftrace: Check given string is not zero-length

2017-07-06 Thread Masami Hiramatsu
Use [ ! -z "$VAR" ] instead of [ "$VAR" ] to check whether the given string variable is not zero-length since it obviously shows what it means. Signed-off-by: Masami Hiramatsu --- tools/testing/selftests/ftrace/ftracetest |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

Re: [PATCH v2 2/4] pwm-backlight: add support for pwm-delay-us property

2017-07-06 Thread Pavel Machek
On Thu 2017-07-06 10:01:32, Thierry Reding wrote: > On Fri, Jun 30, 2017 at 01:21:07PM +0200, Enric Balletbo i Serra wrote: > > From: huang lin > > > > Some panels (i.e. N116BGE-L41), in their power sequence specifications, > > request a delay between set the PWM signal and enable the backlight

[git pull] vfs.git pile 11

2017-07-06 Thread Al Viro
iov_iter/uaccess/hardening pile. For one thing, it trims the inline part of copy_to_user/copy_from_user to the minimum that *does* need to be inlined - object size checks, basically. For another, it sanitizes the checks for iov_iter primitives. There are 4 groups of checks: access_ok(),

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >Hi Baoquan, everyone, > >I'm also interested in KASLR/EFI related issue (but not the same issue >with yours, so I separated the thread.) > >This patch is based on Baoquan's recent patches[1], adding more code >on the new function

Re: [RFC] pwm: Add Xilinx AXI Timer in PWM mode support

2017-07-06 Thread Thierry Reding
On Tue, Jun 27, 2017 at 12:05:22PM +0200, Alvaro Gamez Machado wrote: > This patch adds support for the IP core provided by Xilinx. > This IP core can function as a two independent timers, but can also use > both counters as values for period and duty cycle of a PWM output. > > Signed-off-by:

Re: [PATCH v4 2/2] i2c: Add Spreadtrum I2C controller driver

2017-07-06 Thread Baolin Wang
Hi Andy, On 四, 7月 06, 2017 at 12:00:29下午 +0300, Andy Shevchenko wrote: > On Thu, Jul 6, 2017 at 11:47 AM, Baolin Wang > wrote: > > This patch adds the I2C controller driver for Spreadtrum SC9860 platform. > > > > Reviewed-by: Andy Shevchenko > > P.S. There is still room for improvement,

[PATCH] input: coresight: Fix redefinition error on compilation.

2017-07-06 Thread Arvind Yadav
If CONFIG_CORESIGHT is disable, it'll through compilation error. drivers/hwtracing/coresight/coresight-etm-perf.c:462:5: error: redefinition of ‘etm_perf_symlink’ int etm_perf_symlink(struct coresight_device *csdev, bool link) ^ In file included from

Re: [PATCH net-next] skbuff: optimize the pull_pages code in __pskb_pull_tail()

2017-07-06 Thread Eric Dumazet
On Thu, 2017-07-06 at 17:01 +0800, Lin Zhang wrote: > In the pull_pages code block, if the first frags size > eat, > we can end the loop in advance to avoid extra copy. > > Signed-off-by: Lin Zhang > --- > net/core/skbuff.c | 4 > 1 file changed, 4 insertions(+) > > diff --git

Re: [PATCH v2 2/4] pwm-backlight: add support for pwm-delay-us property

2017-07-06 Thread Daniel Thompson
On 06/07/17 10:12, Pavel Machek wrote: On Thu 2017-07-06 10:01:32, Thierry Reding wrote: On Fri, Jun 30, 2017 at 01:21:07PM +0200, Enric Balletbo i Serra wrote: From: huang lin Some panels (i.e. N116BGE-L41), in their power sequence specifications, request a delay between set the PWM signal

Re: [PATCH v2 0/3] pwm: add pwm AO on meson gx

2017-07-06 Thread Thierry Reding
On Thu, Jul 06, 2017 at 11:02:20AM +0200, Jerome Brunet wrote: > On Thu, 2017-07-06 at 08:59 +0200, Thierry Reding wrote: > > On Thu, Jun 08, 2017 at 02:24:13PM +0200, Jerome Brunet wrote: > > > The pwms found in the AO domain of the meson gx family have different > > > clock sources than the ones

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Baoquan He
Hi Naoya Horiguchi, Thanks for making this! On 07/06/17 at 08:31am, Naoya Horiguchi wrote: > Hi Baoquan, everyone, > > I'm also interested in KASLR/EFI related issue (but not the same issue > with yours, so I separated the thread.) > > This patch is based on Baoquan's recent patches[1], adding

Re: [PATCH v2 2/6] Documentation: devicetree: add bindings to support ARM MHU doorbells

2017-07-06 Thread Sudeep Holla
Hi Jassi, On 06/07/17 07:28, Jassi Brar wrote: > On Wed, Jul 5, 2017 at 11:32 PM, Sudeep Holla wrote: > >> >> I have posted the SCMI patches now[1], >> > I wish I was CC'ed on that. Now LKML seems too busy to forward it. > Yes, my mistake, I should have cc-ed you. >> please let me know how

[PATCH v2] irqchip/mips-gic: Add missing shared interrupt handler

2017-07-06 Thread jrjang
From: Jun-Ru Chang Commit b87281e7f205 ("irqchip/mips-gic: Remove device IRQ domain") removes the device IRQ domain and uses gic_irq_domain_alloc() to allocate the shared/local domain. However, the shared interrupt handler is not set after allocating. It causes that the system hangs with

Re: [PATCH 2/2] Staging: dgnc: I have fixed the changes in dgnc_neo.c This is a patch to the dgnc_neo.c warning udealy to usleep range Signed-off-by: Yash Omer

2017-07-06 Thread Dan Carpenter
On Thu, Jul 06, 2017 at 07:29:32AM +0530, yash007 wrote: > From: Yash Omer > Send your patch to yourself until you figure out the right format then send it to the list. regards, dan carpenter

Re: [PATCH net-next] skbuff: optimize the pull_pages code in __pskb_pull_tail()

2017-07-06 Thread Eric Dumazet
On Thu, 2017-07-06 at 02:16 -0700, Eric Dumazet wrote: > On Thu, 2017-07-06 at 17:01 +0800, Lin Zhang wrote: > > In the pull_pages code block, if the first frags size > eat, > > we can end the loop in advance to avoid extra copy. > > > > Signed-off-by: Lin Zhang > > --- > > net/core/skbuff.c |

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Naoya Horiguchi
On Thu, Jul 06, 2017 at 05:13:32PM +0800, Chao Fan wrote: > On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: > >Hi Baoquan, everyone, > > > >I'm also interested in KASLR/EFI related issue (but not the same issue > >with yours, so I separated the thread.) > > > >This patch is based

Re: [PATCH v2 2/4] pwm-backlight: add support for pwm-delay-us property

2017-07-06 Thread Thierry Reding
On Thu, Jul 06, 2017 at 10:17:18AM +0100, Daniel Thompson wrote: > On 06/07/17 10:12, Pavel Machek wrote: > > On Thu 2017-07-06 10:01:32, Thierry Reding wrote: > > > On Fri, Jun 30, 2017 at 01:21:07PM +0200, Enric Balletbo i Serra wrote: > > > > From: huang lin > > > > > > > > Some panels (i.e.

Re: [PATCH v2 2/6] Documentation: devicetree: add bindings to support ARM MHU doorbells

2017-07-06 Thread Jassi Brar
On Thu, Jul 6, 2017 at 2:48 PM, Sudeep Holla wrote: > Hi Jassi, > > On 06/07/17 07:28, Jassi Brar wrote: >> On Wed, Jul 5, 2017 at 11:32 PM, Sudeep Holla wrote: >> >>> >>> I have posted the SCMI patches now[1], >>> >> I wish I was CC'ed on that. Now LKML seems too busy to forward it. >> > > Yes,

Re: [PATCH v2] zswap: Zero-filled pages handling

2017-07-06 Thread Srividya Desireddy
On Wed, Jul 6, 2017 at 10:49 AM, Sergey Senozhatsky wrote: > On (07/02/17 20:28), Seth Jennings wrote: >> On Sun, Jul 2, 2017 at 9:19 AM, Srividya Desireddy >> > Zswap is a cache which compresses the pages that are being swapped out >> > and stores them into a dynamically allocated RAM-based

Re: [PATCH v2] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-06 Thread Andrea Arcangeli
Hello, On Thu, Jul 06, 2017 at 09:45:13AM +0200, Christoffer Dall wrote: > Let's look at the callers to stage2_get_pmd, which is the only caller of > stage2_get_pud, where the problem was observed: > > user_mem_abort >-> stage2_set_pmd_huge > -> stage2_get_pmd > > user_mem_abort

Re: [PATCH v2 2/6] Documentation: devicetree: add bindings to support ARM MHU doorbells

2017-07-06 Thread Sudeep Holla
On 06/07/17 10:27, Jassi Brar wrote: > On Thu, Jul 6, 2017 at 2:48 PM, Sudeep Holla wrote: >> Hi Jassi, >> >> On 06/07/17 07:28, Jassi Brar wrote: >>> On Wed, Jul 5, 2017 at 11:32 PM, Sudeep Holla wrote: >>> I have posted the SCMI patches now[1], >>> I wish I was CC'ed on that.

Re: [PATCH] video: backlight: pwm_bl.c: make of_device_id structure to const

2017-07-06 Thread Thierry Reding
On Wed, Jul 05, 2017 at 11:55:09PM +0800, Lynn Lei wrote: > Fixed a of_device_id structure normally be const warning issue which > checked by scripts/checkpatch.pl: > WARNING: struct of_device_id should normally be const > > Signed-off-by: Lynn Lei > --- > drivers/video/backlight/pwm_bl.c | 2

Re: [PATCH v2] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-06 Thread Suzuki K Poulose
On 06/07/17 08:45, Christoffer Dall wrote: On Thu, Jul 06, 2017 at 09:07:49AM +0200, Alexander Graf wrote: On 05.07.17 10:57, Suzuki K Poulose wrote: Hi Alex, On Wed, Jul 05, 2017 at 08:20:31AM +0200, Alexander Graf wrote: The kvm_age_hva callback may be called all the way concurrently

Re: [PATCH net-next] skbuff: optimize the pull_pages code in __pskb_pull_tail()

2017-07-06 Thread lin zhang
2017-07-06 17:23 GMT+08:00 Eric Dumazet : > On Thu, 2017-07-06 at 02:16 -0700, Eric Dumazet wrote: >> On Thu, 2017-07-06 at 17:01 +0800, Lin Zhang wrote: >> > In the pull_pages code block, if the first frags size > eat, >> > we can end the loop in advance to avoid extra copy. >> > >> >

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Naoya Horiguchi
On Thu, Jul 06, 2017 at 05:18:09PM +0800, Baoquan He wrote: > Hi Naoya Horiguchi, > > Thanks for making this! > > On 07/06/17 at 08:31am, Naoya Horiguchi wrote: > > Hi Baoquan, everyone, > > > > I'm also interested in KASLR/EFI related issue (but not the same issue > > with yours, so I

[PATCH V4 4/6] iommu/arm-smmu: Add the device_link between masters and smmu

2017-07-06 Thread Vivek Gautam
From: Sricharan R Finally add the device link between the master device and smmu, so that the smmu gets runtime enabled/disabled only when the master needs it. This is done from add_device callback which gets called once when the master is added to the smmu. Signed-off-by: Sricharan R ---

[PATCH V4 1/6] iommu/arm-smmu: Fix the error path in arm_smmu_add_device

2017-07-06 Thread Vivek Gautam
fwspec->iommu_priv is available only after arm_smmu_master_cfg instance has been allocated. We shouldn't free it before that. Also it's logical to free the master cfg itself without checking for fwspec. Signed-off-by: Vivek Gautam --- drivers/iommu/arm-smmu.c | 6 +++--- 1 file changed, 3

[PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-06 Thread Vivek Gautam
From: Sricharan R The smmu device probe/remove and add/remove master device callbacks gets called when the smmu is not linked to its master, that is without the context of the master device. So calling runtime apis in those places separately. Signed-off-by: Sricharan R [stanimir: added runtime

[PATCH V4 0/6] iommu/arm-smmu: Add runtime pm/sleep support

2017-07-06 Thread Vivek Gautam
This series provides the support for turning on the arm-smmu's clocks/power domains using runtime pm. This is done using the recently introduced device links patches, which lets the symmu's runtime to follow the master's runtime pm, so the smmu remains powered only when the masters use it. Took

[PATCH V4 2/6] iommu/arm-smmu: Add pm_runtime/sleep ops

2017-07-06 Thread Vivek Gautam
From: Sricharan R The smmu needs to be functional only when the respective master's using it are active. The device_link feature helps to track such functional dependencies, so that the iommu gets powered when the master device enables itself using pm_runtime. So by adapting the smmu driver for

[PATCH V4 6/6] iommu/arm-smmu: Add support for qcom,msm8996-smmu-v2 clocks

2017-07-06 Thread Vivek Gautam
qcom,msm8996-smmu-v2 is an arm,smmu-v2 implementation with specific clock and power requirements. This smmu core is used with multiple masters on msm8996, viz. mdss, video, etc. Add bindings for the same. Signed-off-by: Vivek Gautam --- Documentation/devicetree/bindings/iommu/arm,smmu.txt | 18

[PATCH V4 5/6] iommu/arm-smmu: Add support for MMU40x/500 clocks

2017-07-06 Thread Vivek Gautam
From: Sricharan R The MMU400x/500 is the implementation of the SMMUv2 arch specification. It is split in to two blocks TBU, TCU. TBU caches the page table, instantiated for each master locally, clocked by the TBUn_clk. TCU manages the address translation with PTW and has the programming

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 09:22:38AM +, Naoya Horiguchi wrote: >On Thu, Jul 06, 2017 at 05:13:32PM +0800, Chao Fan wrote: >> On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >> >Hi Baoquan, everyone, >> > >> >I'm also interested in KASLR/EFI related issue (but not the same issue

Re: [PATCH v2] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-06 Thread Christoffer Dall
On Thu, Jul 06, 2017 at 10:34:58AM +0100, Suzuki K Poulose wrote: > On 06/07/17 08:45, Christoffer Dall wrote: > >On Thu, Jul 06, 2017 at 09:07:49AM +0200, Alexander Graf wrote: > >> > >> > >>On 05.07.17 10:57, Suzuki K Poulose wrote: > >>>Hi Alex, > >>> > >>>On Wed, Jul 05, 2017 at 08:20:31AM

[PATCH 10/11] rtc: ds1307: use generic nvmem

2017-07-06 Thread Alexandre Belloni
Instead of adding a binary sysfs attribute from the driver (which suffers from a race condition as the attribute appears after the device), use the core to register an nvmem device. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 88

[PATCH 09/11] rtc: ds1307: switch to rtc_register_device

2017-07-06 Thread Alexandre Belloni
This removes a possible race condition and crash and allows for further improvement of the driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index

[PATCH 01/11] rtc: class separate device allocation from registration

2017-07-06 Thread Alexandre Belloni
Create rtc_allocate_device to allocate memory for a struct rtc_device and initialize it. Signed-off-by: Alexandre Belloni --- drivers/rtc/class.c | 63 +++-- 1 file changed, 37 insertions(+), 26 deletions(-) diff --git a/drivers/rtc/class.c

[PATCH 05/11] rtc: add generic nvmem support

2017-07-06 Thread Alexandre Belloni
Many RTCs have an on board non volatile storage. It can be battery backed RAM or an EEPROM. Use the nvmem subsystem to export it to both userspace and in-kernel consumers. This stays compatible with the previous (non documented) ABI that was using /sys/class/rtc/rtcx/device/nvram to export that

[PATCH 11/11] rtc: ds1307: remove ds1307_remove

2017-07-06 Thread Alexandre Belloni
ds1307_remove() is now empty, remove it Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 6f91c11a5f03..ea83ddc5a513 100644 --- a/drivers/rtc/rtc-ds1307.c +++

[PATCH 08/11] rtc: rv8803: remove rv8803_remove

2017-07-06 Thread Alexandre Belloni
rv8803_remove() is now empty, remove it. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv8803.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/rtc/rtc-rv8803.c b/drivers/rtc/rtc-rv8803.c index 10474ab7887d..aae2576741a6 100644 --- a/drivers/rtc/rtc-rv8803.c +++

Re: [PATCH] input: coresight: Fix redefinition error on compilation.

2017-07-06 Thread Arvind Yadav
Sorry for noise. Please ignore this patch. On Thursday 06 July 2017 02:45 PM, Arvind Yadav wrote: If CONFIG_CORESIGHT is disable, it'll through compilation error. drivers/hwtracing/coresight/coresight-etm-perf.c:462:5: error: redefinition of ‘etm_perf_symlink’ int etm_perf_symlink(struct

[PATCH 00/11] RTC: rework registration

2017-07-06 Thread Alexandre Belloni
There are multiple race condition issues in the RTC drivers. It is especially apparent in the IRQ handling and additionnal sysfs attributes registration. To solve most of those and allow to extend the framework more easily, introduce a new registration method that allows to first allocate an

Re: [PATCH v2] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-06 Thread Christoffer Dall
Hi Andrea, On Thu, Jul 06, 2017 at 11:31:26AM +0200, Andrea Arcangeli wrote: > Hello, > > On Thu, Jul 06, 2017 at 09:45:13AM +0200, Christoffer Dall wrote: > > Let's look at the callers to stage2_get_pmd, which is the only caller of > > stage2_get_pud, where the problem was observed: > > > >

[PATCH 07/11] rtc: rv8803: use generic nvmem support

2017-07-06 Thread Alexandre Belloni
Instead of adding a binary sysfs attribute from the driver (which suffers from a race condition as the attribute appears after the device), use the core to register an nvmem device. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv8803.c | 51

[PATCH 06/11] rtc: rv8803: switch to rtc_register_device

2017-07-06 Thread Alexandre Belloni
This removes a possible race condition and allows for further improvement of the driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv8803.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-rv8803.c b/drivers/rtc/rtc-rv8803.c index

Re: [PATCH] input: rmi4: Fix redefinition error on compilation.

2017-07-06 Thread Arvind Yadav
Sorry for noise. Please ignore this patch Thanks ~arvind On Thursday 06 July 2017 02:35 PM, Arvind Yadav wrote: If CONFIG_RMI4_F34 is disable, it'll through compilation error. drivers/input/rmi4/rmi_f34.c:594:5: error: redefinition of ‘rmi_f34_create_sysfs’ int rmi_f34_create_sysfs(struct

[PATCH 02/11] rtc: class separate id allocation from registration

2017-07-06 Thread Alexandre Belloni
Create rtc_device_get_id to allocate the id for an RTC. Signed-off-by: Alexandre Belloni --- drivers/rtc/class.c | 44 +--- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index

[PATCH 04/11] rtc: at91rm9200: remove race condition

2017-07-06 Thread Alexandre Belloni
While highly unlikely, it is possible to get an interrupt as soon as it is requested. In that case, at91_rtc_interrupt() will be called with rtc == NULL. Solve that by using devm_rtc_allocate_device/rtc_register_device. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-at91rm9200.c | 14

Re: [PATCH 6/6] net: stmmac: revert "support future possible different internal phy mode"

2017-07-06 Thread David Miller
From: Corentin Labbe Date: Thu, 6 Jul 2017 10:51:47 +0200 > On Sun, Jul 02, 2017 at 02:31:59PM +0200, Corentin Labbe wrote: >> Since internal phy-mode is reserved for non-xMII protocol we cannot use >> it with dwmac-sun8i >> This reverts commit 1c2fa5f84683 ("net: stmmac: support future possible

[PATCH 03/11] rtc: introduce new registration method

2017-07-06 Thread Alexandre Belloni
Introduce rtc_register_device() to register an already allocated and initialized struct rtc_device. It automatically sets up the owner and the two steps allocation/registration will allow to remove race conditions in the IRQ handling of some driver. It also allows to properly extend the core

Re: [PATCH 2/7] rwsem-spinlock: Add killable versions of rwsem_down_read_failed()

2017-07-06 Thread Kirill Tkhai
On 06.07.2017 11:04, Peter Zijlstra wrote: > On Mon, Jun 19, 2017 at 09:02:26PM +0300, Kirill Tkhai wrote: > >> Subject: [PATCH 2/7] rwsem-spinlock: Add killable versions of >> rwsem_down_read_failed() > >> kernel/locking/rwsem-xadd.c | 33 ++--- > > Fixed that

Re: [PATCH net-next] skbuff: optimize the pull_pages code in __pskb_pull_tail()

2017-07-06 Thread Eric Dumazet
On Thu, 2017-07-06 at 17:35 +0800, lin zhang wrote: > thanks, i am a newer, "net-next is closed" it means i need repost it > after net-next reopened? Yes, please read Documentation/networking/netdev-FAQ.txt for details.

[PATCH 1/2] usb: gadget: udc: USB_RENESAS_USB3 should depend on HAS_DMA

2017-07-06 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "usb_gadget_map_request" [drivers/usb/gadget/udc/renesas_usb3.ko] undefined! ERROR: "usb_gadget_unmap_request" [drivers/usb/gadget/udc/renesas_usb3.ko] undefined! ERROR: "bad_dma_ops" [drivers/usb/gadget/udc/renesas_usb3.ko] undefined! Add a dependency on

[PATCH 2/2] usb: gadget: udc: USB_SNP_CORE should depend on HAS_DMA

2017-07-06 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "usb_gadget_map_request" [drivers/usb/gadget/udc/snps_udc_core.ko] undefined! ERROR: "dma_pool_destroy" [drivers/usb/gadget/udc/snps_udc_core.ko] undefined! ERROR: "usb_gadget_unmap_request" [drivers/usb/gadget/udc/snps_udc_core.ko] undefined! ERROR:

[PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-06 Thread Dietmar Eggemann
A frequency-invariant load-tracking solution based on cpufreq transition notifier will not work for future fast frequency switching policies. That is why a different solution is presented with this patch. Let cpufreq call the function arch_set_freq_scale() to pass the current frequency, the max

[PATCH v2 01/10] drivers base/arch_topology: free cpumask cpus_to_visit

2017-07-06 Thread Dietmar Eggemann
Free cpumask cpus_to_visit in case registering init_cpu_capacity_notifier has failed or the parsing of the cpu capacity-dmips-mhz property is done. The cpumask cpus_to_visit is only used inside the notifier call init_cpu_capacity_callback. Cc: Greg Kroah-Hartman Cc: Juri Lelli Reported-by:

[PATCH v2 04/10] arm: wire cpufreq input data for frequency-invariant accounting up to the arch

2017-07-06 Thread Dietmar Eggemann
Define arch_set_freq_scale to be the arch_topology "driver" function topology_set_freq_scale() to let FIE work correctly. Cc: Russell King Cc: Juri Lelli Signed-off-by: Dietmar Eggemann --- arch/arm/include/asm/topology.h | 5 + arch/arm/kernel/topology.c | 1 - 2 files changed, 5

[PATCH v2 05/10] arm: wire frequency-invariant accounting support up to the task scheduler

2017-07-06 Thread Dietmar Eggemann
Commit dfbca41f3479 ("sched: Optimize freq invariant accounting") changed the wiring which now has to be done by associating arch_scale_freq_capacity with the actual implementation provided by the architecture. Define arch_scale_freq_capacity to use the arch_topology "driver" function

[PATCH v2 10/10] drivers base/arch_topology: inline cpu- and frequency-invariant accounting

2017-07-06 Thread Dietmar Eggemann
To speed up the cpu- and frequency-invariant accounting of the task scheduler make sure that the CIE (topology_get_cpu_scale()) and FIE (topology_get_freq_scale() get completely inlined into the task scheduler consumer functions (e.g. __update_load_avg_se()). This patch-set changes the interface

[PATCH v2 06/10] arm: wire cpu-invariant accounting support up to the task scheduler

2017-07-06 Thread Dietmar Eggemann
Commit 8cd5601c5060 ("sched/fair: Convert arch_scale_cpu_capacity() from weak function to #define") changed the wiring which now has to be done by associating arch_scale_cpu_capacity with the actual implementation provided by the architecture. Define arch_scale_cpu_capacity to use the

[PATCH v2 09/10] arm64: wire cpu-invariant accounting support up to the task scheduler

2017-07-06 Thread Dietmar Eggemann
Commit 8cd5601c5060 ("sched/fair: Convert arch_scale_cpu_capacity() from weak function to #define") changed the wiring which now has to be done by associating arch_scale_cpu_capacity with the actual implementation provided by the architecture. Define arch_scale_cpu_capacity to use the

[PATCH v2 08/10] arm64: wire frequency-invariant accounting support up to the task scheduler

2017-07-06 Thread Dietmar Eggemann
Commit dfbca41f3479 ("sched: Optimize freq invariant accounting") changed the wiring which now has to be done by associating arch_scale_freq_capacity with the actual implementation provided by the architecture. Define arch_scale_freq_capacity to use the arch_topology "driver" function

[PATCH v2 07/10] arm64: wire cpufreq input data for frequency-invariant accounting up to the arch

2017-07-06 Thread Dietmar Eggemann
Define arch_set_freq_scale to be the arch_topology "driver" function topology_set_freq_scale() to let FIE work correctly. Cc: Catalin Marinas Cc: Will Deacon Cc: Juri Lelli Signed-off-by: Dietmar Eggemann --- arch/arm64/include/asm/topology.h | 5 + arch/arm64/kernel/topology.c | 1

[PATCH v2 00/10] arm, arm64: frequency- and cpu-invariant accounting support for task scheduler

2017-07-06 Thread Dietmar Eggemann
For a more accurate (i.e. frequency- and cpu-invariant) load-tracking the task scheduler needs a frequency-scaling and on a heterogeneous system a cpu-scaling correction factor. This patch-set implements a Frequency Invariance Engine (FIE) (topology_get_freq_scale()) in

[PATCH v2 03/10] drivers base/arch_topology: frequency-invariant load-tracking support

2017-07-06 Thread Dietmar Eggemann
Implements an arch-specific frequency-scaling function topology_get_freq_scale() which provides the following frequency scaling factor: current_freq(cpu) << SCHED_CAPACITY_SHIFT / max_supported_freq(cpu) One possible consumer of this is the Per-Entity Load Tracking (PELT) mechanism of the task

Re: [PATCH] clk: qcom: clk-smd-rpm: Fix the initial rate of branches

2017-07-06 Thread Archit Taneja
On 07/04/2017 06:04 PM, Georgi Djakov wrote: As there is no way to actually query the hardware for the current clock rate, now racalc_rate() just returns the last rate that was previously set. But if the rate was not set yet, we return the bogus rate of 1KHz. Knowing what the rate of XO is

Re: [PATCH 0/5] Make PDF builds work again

2017-07-06 Thread Mauro Carvalho Chehab
Em Wed, 5 Jul 2017 14:22:35 -0700 Jim Davis escreveu: > On Mon, Jul 3, 2017 at 5:44 AM, Jonathan Corbet wrote: > > On Mon, 3 Jul 2017 10:25:38 +0200 > > Daniel Vetter wrote: > > > >> Only now stumbled over the full thread, but the drm patch is already > >> queued up for at least 4.13 (Dave

Re: OOPS from cciss_ioctl in 4.12+git

2017-07-06 Thread Meelis Roos
> Hi Meelis, > > can you try the patch below? Yes, the OOPS is gone and everything seems to be working. > Also we're trying to move people away from the cciss driver, can you > check if the hpsa SCSI driver works for you as well? I have older adapter: Compaq Computer Corporation Smart Array

Re: [PATCH v2 2/4] pwm-backlight: add support for pwm-delay-us property

2017-07-06 Thread Pavel Machek
Hi! On Thu 2017-07-06 11:24:48, Thierry Reding wrote: > On Thu, Jul 06, 2017 at 10:17:18AM +0100, Daniel Thompson wrote: > > On 06/07/17 10:12, Pavel Machek wrote: > > > On Thu 2017-07-06 10:01:32, Thierry Reding wrote: > > > > On Fri, Jun 30, 2017 at 01:21:07PM +0200, Enric Balletbo i Serra

Re: [RFC PATCH linus] tcp: md5: tcp_md5_do_lookup_exact() can be static

2017-07-06 Thread David Miller
From: Stephen Rothwell Date: Thu, 6 Jul 2017 10:27:12 +1000 > Hi, > > Not sure why you sent this to me ... it fixes a commit in the net-next > tree (now in Linus' tree) ... > > On Thu, 6 Jul 2017 07:58:53 +0800 kbuild test robot > wrote: >> >> Fixes: 0c5f0311f690 ("Add linux-next specific

Re: [PATCH v2 2/4] pwm-backlight: add support for pwm-delay-us property

2017-07-06 Thread Daniel Thompson
On 06/07/17 10:24, Thierry Reding wrote: On Thu, Jul 06, 2017 at 10:17:18AM +0100, Daniel Thompson wrote: On 06/07/17 10:12, Pavel Machek wrote: On Thu 2017-07-06 10:01:32, Thierry Reding wrote: On Fri, Jun 30, 2017 at 01:21:07PM +0200, Enric Balletbo i Serra wrote: From: huang lin Some

[PATCH][drm-next] drm/amdgpu: make arrays pctl0_data and pctl1_data static

2017-07-06 Thread Colin King
From: Colin Ian King The arrays pctl0_data and pctl1_data do not need to be in global scope, so them both static. Cleans up sparse warnings: symbol 'pctl0_data' was not declared. Should it be static? symbol 'pctl1_data' was not declared. Should it be static? Signed-off-by: Colin Ian King ---

[PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-07-06 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 298

[PATCH v5 0/2] Lattice MachXO2 Slave SPI FPGA Manager support

2017-07-06 Thread Paolo Pisati
Hi all,

Re: [PATCH v1] clk: fractional-divider: fix up the fractional clk's jitter

2017-07-06 Thread Heiko Stübner
Hi Elaine, Am Donnerstag, 6. Juli 2017, 16:28:34 CEST schrieb Elaine Zhang: > fractional divider must set that denominator is 20 times larger than > numerator to generate precise clock frequency. > Otherwise the CLK jitter is very big, poor quality of the clock signal. > > RK document

[PATCH 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2017-07-06 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644

Re: [PATCH v2 1/6] serial: imx: only set DMA rx-ing when DMA starts

2017-07-06 Thread Uwe Kleine-König
On Thu, Jul 06, 2017 at 10:31:38AM +0200, Romain Perier wrote: > Hello, > > > Le 05/07/2017 à 15:29, Uwe Kleine-König a écrit : > > Hello, > > > > On Wed, Jul 05, 2017 at 03:07:01PM +0200, Romain Perier wrote: > >> From: Nandor Han > >> > >> Avoid the situation when `dma_is_rxing` could

Re: [PATCH v2] zswap: Zero-filled pages handling

2017-07-06 Thread Dan Streetman
On Thu, Jul 6, 2017 at 5:29 AM, Srividya Desireddy wrote: > On Wed, Jul 6, 2017 at 10:49 AM, Sergey Senozhatsky wrote: >> On (07/02/17 20:28), Seth Jennings wrote: >>> On Sun, Jul 2, 2017 at 9:19 AM, Srividya Desireddy >>> > Zswap is a cache which compresses the pages that are being swapped out

Re: [PATCH] jprobes: Ensure that the probepoint is at function entry

2017-07-06 Thread Masami Hiramatsu
On Wed, 5 Jul 2017 12:42:16 +0200 Ingo Molnar wrote: > > * Naveen N. Rao wrote: > > > Similar to commit 90ec5e89e393c ("kretprobes: Ensure probe location is > > at function entry"), ensure that the jprobe probepoint is at function > > entry. Sorry I missed it. > > > > Signed-off-by: Naveen

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >Hi Baoquan, everyone, > >I'm also interested in KASLR/EFI related issue (but not the same issue >with yours, so I separated the thread.) > >This patch is based on Baoquan's recent patches[1], adding more code >on the new function

[PATCH] usb: storage: return on error to avoid a null pointer dereference

2017-07-06 Thread Colin King
From: Colin Ian King When us->extra is null the driver is not initialized, however, a later call to osd200_scsi_to_ata is made that dereferences us->extra, causing a null pointer dereference. The code currently detects and reports that the driver is not initialized; add a return to avoid the

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-07-06 Thread Willy Tarreau
On Thu, Jul 06, 2017 at 10:24:06AM +0200, Willy Tarreau wrote: > On Wed, Jul 05, 2017 at 04:51:06PM -0700, Linus Torvalds wrote: > > On Wed, Jul 5, 2017 at 4:35 PM, Ben Hutchings wrote: > > >> > > >> And I think your second patch breaks that "use a really large value to > > >> approximate

Re: [PATCH] clk: qcom: clk-smd-rpm: Fix the initial rate of branches

2017-07-06 Thread Hans Verkuil
On 07/06/17 11:53, Archit Taneja wrote: > > > On 07/04/2017 06:04 PM, Georgi Djakov wrote: >> As there is no way to actually query the hardware for the current clock >> rate, now racalc_rate() just returns the last rate that was previously >> set. But if the rate was not set yet, we return the

Re: [PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls

2017-07-06 Thread Ville Syrjälä
On Thu, Jul 06, 2017 at 09:53:13AM +0200, Daniel Vetter wrote: > On Wed, Jul 05, 2017 at 03:10:13PM -0700, Keith Packard wrote: > > These provide crtc-id based functions instead of pipe-number, while > > also offering higher resolution time (ns) and wider frame count (64) > > as required by the

[PATCH 3/3] dt-bindings: i2c: eeprom: document "mac-offset" binding

2017-07-06 Thread Claudiu Beznea
Document "mac-offset" binding that will be used by at24 EEPROM driver. Signed-off-by: Claudiu Beznea --- Documentation/devicetree/bindings/eeprom/eeprom.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/eeprom/eeprom.txt

[PATCH 2/3] drivers: misc: eeprom: at24: support reading mac eeprom from different addresses

2017-07-06 Thread Claudiu Beznea
Add support for reading MAC address from different offsets of EEPROM. The offset is initialized via device tree. If nothing is given as input the old value, 0x90, is used. In this way the driver could be used as generic driver for different vendor memories by only changing the reading offset via

[PATCH 0/3] Add at24 functionality to read MAC form different EEPROM offsets

2017-07-06 Thread Claudiu Beznea
Hi all, Please give feedback on the following approach to extends at24 EEPROM driver to support reading MAC from different addresses in EEPROM. This will allow the at24 driver to be used as a generic driver by different hardwares. Thank you, Claudiu Beznea Claudiu Beznea (3): dt-bindings:

[PATCH 1/3] dt-bindings: i2c: eeprom: document all at24 bindings

2017-07-06 Thread Claudiu Beznea
Document all at24 memories specific bindings. Signed-off-by: Claudiu Beznea --- Documentation/devicetree/bindings/eeprom/eeprom.txt | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/eeprom/eeprom.txt

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 06:04:46PM +0800, Chao Fan wrote: >On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >>Hi Baoquan, everyone, >> >>I'm also interested in KASLR/EFI related issue (but not the same issue >>with yours, so I separated the thread.) >> >>This patch is based on

Re: [PATCH V1 4/4] spmi: pmic-arb: Remove checking opc value not less than 0

2017-07-06 Thread kgunda
On 2017-07-06 12:23, Stephen Boyd wrote: On 07/03, Kiran Gunda wrote: From: Fenglin Wu The opc parameter in pmic_arb_write_cmd() function is defined with type u8 and it's always greater than or equal to 0. Checking that it's not less than 0 is redundant and it can cause a forbidden warning

Re: [PATCH v2 01/10] drivers base/arch_topology: free cpumask cpus_to_visit

2017-07-06 Thread Viresh Kumar
On 06-07-17, 10:49, Dietmar Eggemann wrote: > Free cpumask cpus_to_visit in case registering > init_cpu_capacity_notifier has failed or the parsing of the cpu > capacity-dmips-mhz property is done. The cpumask cpus_to_visit is > only used inside the notifier call init_cpu_capacity_callback. > >

[PATCH 3/3] dt-bindings: clock: amlogic,gxbb-aoclkc: Update bindings

2017-07-06 Thread Neil Armstrong
On the first revision of the bindings, only the gates + resets were known in the AO Clock HW, but more registers used to configures AO clock are known to be spread among the AO register space. This patch adds these registers to the Ao Clock bindings with direct access and shared extcon access.

[PATCH 1/3] dt-bindings: clock: gxbb-aoclk: Add CEC 32k clock

2017-07-06 Thread Neil Armstrong
This patch adds the clock binding entry for the CEC 32K AO Clock. Signed-off-by: Neil Armstrong --- include/dt-bindings/clock/gxbb-aoclkc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/gxbb-aoclkc.h b/include/dt-bindings/clock/gxbb-aoclkc.h index

Re: [PATCH v6 4/4] dt-bindings: media: Document Synopsys Designware HDMI RX

2017-07-06 Thread Jose Abreu
Hi Sylwester, On 05-07-2017 21:52, Sylwester Nawrocki wrote: > On 07/04/2017 04:11 PM, Jose Abreu wrote: >> Document the bindings for the Synopsys Designware HDMI RX. >> >> Signed-off-by: Jose Abreu >> --- >> .../devicetree/bindings/media/snps,dw-hdmi-rx.txt | 70 >> ++

[PATCH 2/3] clk: meson: gxbb-aoclk: Add CEC 32k clock

2017-07-06 Thread Neil Armstrong
The CEC 32K AO Clock is a dual divider with dual counter to provide a more precise 32768Hz clock for the CEC subsystem from the external xtal. The AO clocks management registers are spread among the AO register space, so this patch also adds management of these registers mappings then uses them

[PATCH 0/3] clk: meson: gxbb-aoclk: Add CEC 32k clock

2017-07-06 Thread Neil Armstrong
In order to support the standalone CEC Controller on the Amlogic SoCs, a specific CEC 32K clock must be handled in the AO domain. The CEC 32K AO Clock is a dual divider with dual counter to provide a more precise 32768Hz clock for the CEC subsystem from the external xtal. The AO clocks

[PATCH 0/2] media: Add Amlogic Meson AO CEC Controller support

2017-07-06 Thread Neil Armstrong
The Amlogic SoC embeds a standalone CEC controller, this patch adds a driver for such controller. The controller does not need HPD to be active, and could support up to max 5 logical addresses, but only 1 is handled since the Suspend firmware can make use of this unique logical address to wake up

[PATCH 2/2] dt-bindings: media: Add Amlogic Meson AO-CEC bindings

2017-07-06 Thread Neil Armstrong
The Amlogic SoCs embeds a standalone CEC Controller, this patch adds this device bindings. Signed-off-by: Neil Armstrong --- .../devicetree/bindings/media/meson-ao-cec.txt | 28 ++ 1 file changed, 28 insertions(+) create mode 100644

[PATCH 1/2] platform: Add Amlogic Meson AO CEC Controller driver

2017-07-06 Thread Neil Armstrong
The Amlogic SoC embeds a standalone CEC controller, this patch adds a driver for such controller. The controller does not need HPD to be active, and could support up to max 5 logical addresses, but only 1 is handled since the Suspend firmware can make use of this unique logical address to wake up

Re: [PATCH 12/18] drivers: s390: Move static and inline before return type

2017-07-06 Thread Heiko Carstens
On Wed, Jul 05, 2017 at 01:02:21PM -0700, Joe Perches wrote: > Make the code like the rest of the kernel. > > Signed-off-by: Joe Perches > --- > drivers/s390/net/ctcm_main.c| 2 +- > drivers/s390/net/qeth_l3_main.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > diff --git

<    7   8   9   10   11   12   13   14   15   16   >