RE: [PATCH 1/5] Tools: hv: Fix a bug in the key delete code

2018-08-13 Thread Michael Kelley (EOSG)
From: k...@linuxonhyperv.com Sent: Friday, August 10, 2018 4:06 PM > > Fix a bug in the key delete code - the num_records range > from 0 to num_records-1. > > Signed-off-by: K. Y. Srinivasan > Reported-by: David Binderman > Cc: > --- Reviewed-by: Michael Kelley

Re: [PATCH] io_submit.2: Add IOCB_FLAG_IOPRIO

2018-08-13 Thread Michael Kerrisk (man-opages)
Hello Adam, On 07/13/2018 10:58 PM, adam.manzana...@wdc.com wrote: From: Adam Manzanares The newly added IOCB_FLAG_IOPRIO aio_flag introduces new behaviors and return values. The details of this new feature are posted here: https://lkml.org/lkml/2018/5/22/809 Thanks for this patch. I've app

Re: [PATCH v3][manpages 1/2] perf_event_open.2: Document PERF_EVENT_IOC_PAUSE_OUTPUT

2018-08-13 Thread Michael Kerrisk (man-opages)
Hello Wangnan, On 10/24/2016 08:52 AM, Wang Nan wrote: Linux 4.7 (86e7972f690c1017fd086cdfe53d8524e68c661c) introduces PERF_EVENT_IOC_PAUSE_OUTPUT feature. Document it. Just to confirm, I presume this patch has been superseded by the one from Vince that I just applied. Cheers, Michael Sign

[PATCH] perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3 Cache perf events

2018-08-13 Thread Janakarajan Natarajan
In Family 17h, some L3 Cache Performance events require the ThreadMask and SliceMask to be set. For other events, these fields do not affect the count either way. Set ThreadMask and SliceMask to 0xFF and 0xF respectively. Signed-off-by: Janakarajan Natarajan --- arch/x86/events/amd/uncore.c

Re: [PATCH v8 5/6] trace_uprobe/sdt: Prevent multiple reference counter for same uprobe

2018-08-13 Thread Song Liu
On Mon, Aug 13, 2018 at 1:49 AM, Srikar Dronamraju wrote: > * Ravi Bangoria [2018-08-13 13:49:44]: > >> Hi Song, >> >> On 08/11/2018 01:42 PM, Song Liu wrote: >> > Do we really need this given we already have PATCH 4/6? >> > uprobe_regsiter() can be called >> > out of trace_uprobe, this patch won

[PATCH] Staging: octeon-usb: Replaces CVMX_WAIT_FOR_FIELD32 macro with a function

2018-08-13 Thread Georgios Tsotsos
Replaces CVMX_WAIT_FOR_FIELD32 macro with equivalent function. Signed-off-by: Georgios Tsotsos --- drivers/staging/octeon-usb/octeon-hcd.c | 56 + 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/st

Re: [PATCH v3 15/17] driver/cpufreq: enable Hygon support to cpufreq driver

2018-08-13 Thread Pu Wen
On 2018/8/12 17:55, Rafael J. Wysocki wrote: On Sat, Aug 11, 2018 at 3:36 PM Pu Wen wrote: Enable ACPI cpufreq driver support for Hygon by adding family ID check along with AMD. As Hygon platforms have SMBus device(PCI device ID 0x790b), enable Hygon support to function amd_freq_sensitivity_i

Re: [PATCH v3 16/17] driver/edac: enable Hygon support to AMD64 EDAC driver

2018-08-13 Thread Pu Wen
On 2018/8/12 4:10, Michael Jin wrote: On Sat, Aug 11, 2018 at 3:56 PM, Michael Jin wrote: On Sat, Aug 11, 2018 at 9:30 AM, Pu Wen wrote: @@ -1051,6 +1065,16 @@ static void determine_memory_type(struct amd64_pvt *pvt) else pvt->dram_type = MEM_DDR4;

Re: [PATCH v3 16/17] driver/edac: enable Hygon support to AMD64 EDAC driver

2018-08-13 Thread Pu Wen
On 2018/8/12 3:56, Michael Jin wrote: On Sat, Aug 11, 2018 at 9:30 AM, Pu Wen wrote: diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 18aeabb..fb81354 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -211,7 +211,7 @@ static int __set_scrub_rate(s

Re: [PATCH v3 16/17] driver/edac: enable Hygon support to AMD64 EDAC driver

2018-08-13 Thread Pu Wen
On 2018/8/12 3:56, Michael Jin wrote: On Sat, Aug 11, 2018 at 9:30 AM, Pu Wen wrote: diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 18aeabb..fb81354 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -211,7 +211,7 @@ static int __set_scrub_rate(s

[GIT PULL] XArray for 4.19

2018-08-13 Thread Matthew Wilcox
Hi Linus, Please consider pulling the XArray patch set. The XArray provides an improved interface to the radix tree data structure, providing locking as part of the API, specifying GFP flags at allocation time, eliminating preloading, less re-walking the tree, more efficient iterations and not ex

Re: [PATCH] uapi: fix linux/usb/audio.h userspace compilation error

2018-08-13 Thread Takashi Iwai
On Mon, 13 Aug 2018 18:01:06 +0200, Dmitry V. Levin wrote: > > On Mon, Aug 13, 2018 at 05:55:25PM +0200, Takashi Iwai wrote: > > On Mon, 13 Aug 2018 17:46:51 +0200, Dmitry V. Levin wrote: > > > > > > Replace NULL with 0 in uac_mixer_unit_bmControls() to fix the following > > > linux/usb/audio.h u

Re: [PATCH] uapi: fix linux/usb/audio.h userspace compilation error

2018-08-13 Thread Dmitry V. Levin
On Mon, Aug 13, 2018 at 05:55:25PM +0200, Takashi Iwai wrote: > On Mon, 13 Aug 2018 17:46:51 +0200, Dmitry V. Levin wrote: > > > > Replace NULL with 0 in uac_mixer_unit_bmControls() to fix the following > > linux/usb/audio.h userspace compilation error: > > > > /usr/include/linux/usb/audio.h: In

Re: [PATCH] uapi: fix linux/usb/audio.h userspace compilation error

2018-08-13 Thread Takashi Iwai
On Mon, 13 Aug 2018 17:46:51 +0200, Dmitry V. Levin wrote: > > Replace NULL with 0 in uac_mixer_unit_bmControls() to fix the following > linux/usb/audio.h userspace compilation error: > > /usr/include/linux/usb/audio.h: In function 'uac_mixer_unit_bmControls': > /usr/include/linux/usb/audio.h:304

[PATCH] uapi: fix linux/usb/audio.h userspace compilation error

2018-08-13 Thread Dmitry V. Levin
Replace NULL with 0 in uac_mixer_unit_bmControls() to fix the following linux/usb/audio.h userspace compilation error: /usr/include/linux/usb/audio.h: In function 'uac_mixer_unit_bmControls': /usr/include/linux/usb/audio.h:304:10: error: 'NULL' undeclared (first use in this function) return NU

[PATCH] uapi: fix sound/skl-tplg-interface.h userspace compilation errors

2018-08-13 Thread Dmitry V. Levin
Include and consistently use types it provides to fix the following sound/skl-tplg-interface.h userspace compilation errors: /usr/include/sound/skl-tplg-interface.h:146:2: error: unknown type name 'u32' u32 set_params:2; /usr/include/sound/skl-tplg-interface.h:147:2: error: unknown type name 'u

[RFC] perf/x86/intel: Export mem events only if there's PEBs support

2018-08-13 Thread Jiri Olsa
hi, we had some reports that we show mem* events on KVM servers where they are not available, this patch hides them if there's no PEBs available currently on those servers we fail to open mem* events, because we can't access LDLAT msr however that's not so easy/straight forward to check, so I tho

[PATCH v2 1/3] mm/memory-hotplug: Drop unused args from remove_memory_section

2018-08-13 Thread osalvador
From: Oscar Salvador unregister_memory_section() calls remove_memory_section() with three arguments: * node_id * section * phys_device Neither node_id nor phys_device are used. Let us drop them from the function. Signed-off-by: Oscar Salvador --- drivers/base/memory.c | 5 ++--- 1 file chang

[PATCH v2 0/3] Refactoring for remove_memory_section/unregister_mem_sect_under_nodes

2018-08-13 Thread osalvador
From: Oscar Salvador This patchset does some cleanups and refactoring in the memory-hotplug code. The first and the second patch are pretty straightforward, as they only remove unused arguments/checks. The third one refactors unregister_mem_sect_under_nodes. This is needed to have a proper fall

[PATCH v2 3/3] mm/memory_hotplug: Refactor unregister_mem_sect_under_nodes

2018-08-13 Thread osalvador
From: Oscar Salvador unregister_mem_sect_under_nodes() tries to allocate a nodemask_t in order to check whithin the loop which nodes have already been unlinked, so we do not repeat the operation on them. NODEMASK_ALLOC calls kmalloc() if NODES_SHIFT > 8, otherwise it just declares a nodemask_t v

[PATCH v2 2/3] mm/memory_hotplug: Drop mem_blk check from unregister_mem_sect_under_nodes

2018-08-13 Thread osalvador
From: Oscar Salvador Before calling to unregister_mem_sect_under_nodes(), remove_memory_section() already checks if we got a valid memory_block. No need to check that again in unregister_mem_sect_under_nodes(). Signed-off-by: Oscar Salvador --- drivers/base/node.c | 4 1 file changed, 4

Re: [PATCH v3] mailbox: arm_mhu: add support for mhuv2

2018-08-13 Thread Jassi Brar
On Tue, May 29, 2018 at 2:12 AM, Samarth Parikh wrote: > diff --git a/Documentation/devicetree/bindings/mailbox/arm-mhu.txt > b/Documentation/devicetree/bindings/mailbox/arm-mhu.txt > index 4971f03..1633535 100644 > --- a/Documentation/devicetree/bindings/mailbox/arm-mhu.txt > +++ b/Documentati

Re: [PATCH v4 1/3] dt-bindings: interrupt-controller: RISC-V local interrupt controller

2018-08-13 Thread Rob Herring
On Thu, Aug 09, 2018 at 09:56:00AM +0200, Christoph Hellwig wrote: > From: Palmer Dabbelt > > Add documentation on the RISC-V local interrupt controller, which is a > per-hart interrupt controller that manages all interrupts entering a > RISC-V hart. This interrupt controller is present on all R

Re: [PATCH v6 0/2] Input: Add Cypress Gen5 Touchscreen driver

2018-08-13 Thread Dmitry Torokhov
Hi Mylène, On Mon, Aug 13, 2018 at 8:24 AM Mylène Josserand wrote: > > Hi Dmitry, > > On Tue, 24 Jul 2018 10:40:53 -0700 > Dmitry Torokhov wrote: > > > Hi Mylène, > > > > On Tue, Jul 24, 2018 at 03:00:46PM +0200, Mylène Josserand wrote: > > > Hello Dmitry, > > > > > > On Wed, 4 Jul 2018 16:21:58

Re: [PATCH v3 0/4] clk: clk: Add functions to save/restore clock context en-masse

2018-08-13 Thread Tero Kristo
On 10/07/18 08:56, Tony Lindgren wrote: * Keerthy [180621 01:18]: Deep enough power saving mode can result into losing context of the clock registers also, and they need to be restored once coming back from the power saving mode. Hence add functions to save/restore clock context. Patches 1 to

Re: [PATCH v6 0/2] Input: Add Cypress Gen5 Touchscreen driver

2018-08-13 Thread Mylène Josserand
Hi Dmitry, On Tue, 24 Jul 2018 10:40:53 -0700 Dmitry Torokhov wrote: > Hi Mylène, > > On Tue, Jul 24, 2018 at 03:00:46PM +0200, Mylène Josserand wrote: > > Hello Dmitry, > > > > On Wed, 4 Jul 2018 16:21:58 + > > Dmitry Torokhov wrote: > > > > > Hi Mylène, > > > > > > On Tue, Jul 03, 2

Re: [PATCH] irqchip/stm32: fix init error handling

2018-08-13 Thread Marc Zyngier
On 08/08/18 13:03, Dan Carpenter wrote: > If there are any errors in stm32_exti_host_init() then it leads to a > NULL dereference in the callers. The function should clean up after > itself. > > Fixes: f9fc1745501e ("irqchip/stm32: Add host and driver data structures") > Signed-off-by: Dan Carpen

Re: [PATCH] irqchip/bcm7038-l1: hide cpu offline callback when building for !SMP

2018-08-13 Thread Marc Zyngier
On 09/08/18 09:59, Jonas Gorski wrote: > When compiling bmips with SMP disabled, the build fails with: > > drivers/irqchip/irq-bcm7038-l1.o: In function `bcm7038_l1_cpu_offline': > drivers/irqchip/irq-bcm7038-l1.c:242: undefined reference to > `irq_set_affinity_locked' > make[5]: *** [vmlinux] Er

Re: [PATCH] irqchip/s3c24xx: Remove unneeded comparison of unsigned long to 0

2018-08-13 Thread Marc Zyngier
On 13/08/18 16:11, Krzysztof Kozlowski wrote: > irq_data->hwirq is unsigned long. This fixes GCC warning: > > drivers/irqchip/irq-s3c24xx.c: In function 's3c_irqext0_type': > drivers/irqchip/irq-s3c24xx.c:253:19: warning: comparison of unsigned > expression >= 0 is always true [-Wtype-li

[PATCH RFC] scripts/tags.sh: Incremental tags file update

2018-08-13 Thread Kirill Tkhai
;make tags" we waste: real3m7,833s user2m57,787s sys 0m10,789s The patch reduces this time. Update of next-20180810 tags up to next-20180813 tags takes: real0m32,665s (almost 6 times faster) user0m20,136s sys 0m11,341s To

[PATCH] ARM: s3c24xx: Remove empty gta02_pmu children probe

2018-08-13 Thread Krzysztof Kozlowski
Since commit 67e67df8da72 ("gta02: Use pcf50633 backlight driver instead of platform backlight driver.") the list of gta02 pmu children is empty therefore looping through it and adding devices is a no-op. This also fixes the GCC v8.1 W=1 warning: arch/arm/mach-s3c24xx/mach-gta02.c: In functio

[PATCH] irqchip/s3c24xx: Remove unneeded comparison of unsigned long to 0

2018-08-13 Thread Krzysztof Kozlowski
irq_data->hwirq is unsigned long. This fixes GCC warning: drivers/irqchip/irq-s3c24xx.c: In function 's3c_irqext0_type': drivers/irqchip/irq-s3c24xx.c:253:19: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] if ((data->hwirq >= 0) && (data->hwirq <= 3)

Re: [PATCH] remoteproc/davinci: Mark error recovery as disabled

2018-08-13 Thread Suman Anna
Hi Bjorn, On 07/23/2018 06:27 PM, Suman Anna wrote: > The Davinci remoteproc driver does not support error recovery at > present, so mark the corresponding remoteproc flag appropriately > so that the debugfs flag shows the value as 'disabled' by default. > > Signed-off-by: Suman Anna Can you pi

Re: [PATCH v2] docs: provide more details about security bug reporting

2018-08-13 Thread Randy Dunlap
On 08/13/2018 12:38 AM, Willy Tarreau wrote: > Hi Randy, > > On Sun, Aug 12, 2018 at 09:14:29AM -0700, Randy Dunlap wrote: >> I have a few corrections/comments below. > > Thanks a lot, I've addressed them in the attached version. Linus, > please take this one instead. > > (...) >> +Analysing a r

Re: [PATCH v3 06/14] sched/cpufreq: uclamp: add utilization clamping for RT tasks

2018-08-13 Thread Patrick Bellasi
On 13-Aug 16:06, Vincent Guittot wrote: > On Mon, 13 Aug 2018 at 14:49, Patrick Bellasi wrote: > > On 13-Aug 14:07, Vincent Guittot wrote: > > > On Mon, 13 Aug 2018 at 12:12, Patrick Bellasi > > > wrote: [...] > > Yes I agree that the current behavior is not completely clean... still > > the q

Re: [PATCH] hid: microsoft: Add rumble support for Xbox One S controller

2018-08-13 Thread Bastien Nocera
On Mon, 2018-08-13 at 07:37 -0700, Andrey Smirnov wrote: > On Fri, Aug 10, 2018 at 4:38 AM Bastien Nocera > wrote: > > > > On Thu, 2018-08-09 at 17:17 -0700, Andrey Smirnov wrote: > > > Add HID quirk driver for Xbox One S controller over bluetooth. > > > > > > This driver only adds support for r

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-13 Thread Oleg Nesterov
On 08/13, Oleg Nesterov wrote: > > On 08/13, Ravi Bangoria wrote: > > > > > But damn, process creation (exec) is trivial. We could add a new > > > uprobe_exec() > > > hook and avoid delayed_uprobe_install() in uprobe_mmap(). > > > > I'm sorry. I didn't get this. > > Sorry for confusion... > > I me

[GIT PULL] xfs: 4.19 merge, part 1

2018-08-13 Thread Darrick J. Wong
Hi Linus, This is the first part of the XFS changes for 4.19. Christoph and Andreas coordinated some refactoring work on the iomap code in preparation for removing buffer heads from XFS and porting gfs2 to iomap. I'm sending this small pull request ahead of the main XFS merge to avoid holding up

Re: [PATCH] hid: microsoft: Add rumble support for Xbox One S controller

2018-08-13 Thread Andrey Smirnov
On Fri, Aug 10, 2018 at 4:38 AM Bastien Nocera wrote: > > On Thu, 2018-08-09 at 17:17 -0700, Andrey Smirnov wrote: > > Add HID quirk driver for Xbox One S controller over bluetooth. > > > > This driver only adds support for rumble. Standard controller > > functionality is exposed by default HID dr

[GIT PULL] bulk pin control changes for v4.19

2018-08-13 Thread Linus Walleij
Hi Linus, this is the bulk of pin control changes for v4.19, nothing much special to say about it, mainly linear development. The most exciting might be the support for Intel's Ice Lake PCH from Andy. The details are in the signed tag as usual. Please pull it in! Yours, Linus Walleij The follo

Re: [PATCH] soc/tegra: pmc: fix child-node lookup

2018-08-13 Thread Johan Hovold
Hi Thierry, On Thu, Mar 22, 2018 at 03:24:32PM +0100, Thierry Reding wrote: > On Wed, Nov 15, 2017 at 10:44:58AM +0100, Johan Hovold wrote: > > Fix child-node lookup during probe, which ended up searching the whole > > device tree depth-first starting at the parent rather than just matching > > on

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-13 Thread Ravi Bangoria
On 08/13/2018 06:47 PM, Oleg Nesterov wrote: > On 08/13, Ravi Bangoria wrote: >> >>> But damn, process creation (exec) is trivial. We could add a new >>> uprobe_exec() >>> hook and avoid delayed_uprobe_install() in uprobe_mmap(). >> >> I'm sorry. I didn't get this. > > Sorry for confusion... >

Re: [PATCH] hid: microsoft: Add rumble support for Xbox One S controller

2018-08-13 Thread Andrey Smirnov
On Fri, Aug 10, 2018 at 2:37 AM Benjamin Tissoires wrote: > > Hi Andrew, > > On Fri, Aug 10, 2018 at 2:17 AM Andrey Smirnov > wrote: > > > > Add HID quirk driver for Xbox One S controller over bluetooth. > > > > This driver only adds support for rumble. Standard controller > > functionality is e

RE: [PATCH v2] scsi: Use vmemdup_user to replace the open code

2018-08-13 Thread Don.Brace
> -Original Message- > From: zhong jiang [mailto:zhongji...@huawei.com] > Sent: Monday, August 13, 2018 7:43 AM > To: don.br...@microsemi.com; j...@linux.vnet.ibm.com; > martin.peter...@oracle.com > Cc: linux-kernel@vger.kernel.org > Subject: [PATCH v2] scsi: Use vmemdup_user to replace the

Re: [PATCH 03/11] dt-bindings: interrupt-controller: RISC-V PLIC documentation

2018-08-13 Thread Rob Herring
On Fri, Aug 10, 2018 at 2:09 PM Palmer Dabbelt wrote: > > On Fri, 10 Aug 2018 09:57:03 PDT (-0700), robh...@kernel.org wrote: > > On Thu, Aug 9, 2018 at 12:29 AM Palmer Dabbelt wrote: > >> > >> On Wed, 08 Aug 2018 16:32:07 PDT (-0700), robh...@kernel.org wrote: > >> > On Wed, Aug 8, 2018 at 1:38

Re: [PATCH v3 06/14] sched/cpufreq: uclamp: add utilization clamping for RT tasks

2018-08-13 Thread Vincent Guittot
On Mon, 13 Aug 2018 at 14:49, Patrick Bellasi wrote: > > On 13-Aug 14:07, Vincent Guittot wrote: > > On Mon, 13 Aug 2018 at 12:12, Patrick Bellasi > > wrote: > > > > > > Hi Vincent! > > > > > > On 09-Aug 18:03, Vincent Guittot wrote: > > > > > On 07-Aug 15:26, Juri Lelli wrote: > > > > > > [...]

[PATCH] x86/platform/uv/BAU: gracefully disable BAU during panic

2018-08-13 Thread Andrew Banman
When we panic while the BAU is active, outstanding broadcasts may go un-acknowledged by the kernel. These broadcasts cause timeouts in the UV ASIC that tie up BAU resources, which may cause a fatal error that brings down the system, thereby crashing the kdump kexec. Add uv_bau_crash_shutdown() to

[PATCH] drivers: gpio: gpio-adp5588: Fix sleep-in-atomic-context bug

2018-08-13 Thread michael.hennerich
From: Michael Hennerich This fixes: [BUG] gpio: gpio-adp5588: A possible sleep-in-atomic-context bug in adp5588_gpio_write() [BUG] gpio: gpio-adp5588: A possible sleep-in-atomic-context bug in adp5588_gpio_direction_input() Reported-by: Jia-Ju

[GIT PULL] regulator updates for v4.19

2018-08-13 Thread Mark Brown
The following changes since commit 1ffaddd029c867d134a1dde39f540dcc8c52e274: Linux 4.18-rc8 (2018-08-05 12:37:41 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git tags/regulator-v4.19 for you to fetch changes up to d22d5936

Re: [PATCH] kernfs: update comment about kernfs_path() return value

2018-08-13 Thread Tejun Heo
On Mon, Aug 13, 2018 at 09:52:09AM +0300, Konstantin Khlebnikov wrote: > Now it returns the length of the full path or error code. > > Signed-off-by: Konstantin Khlebnikov > Fixes: 3abb1d90f5d9 ("kernfs: make kernfs_path*() behave in the style of > strlcpy()") Acked-by: Tejun Heo Thanks. --

Re: [PATCH RFC 1/3] cgroup: list all subsystem states in debugfs files

2018-08-13 Thread Tejun Heo
Hello, Konstantin. On Mon, Aug 13, 2018 at 09:58:05AM +0300, Konstantin Khlebnikov wrote: > After removing cgroup subsystem state could leak or live in background > forever because it is pinned by some reference. For example memory cgroup > could be pinned by pages in cache or tmpfs. > > This pat

[PATCH 13/14] cpufreq: qcom: Re-organise kryo cpufreq to use it for other nvmem based qcom socs

2018-08-13 Thread Sricharan R
The kryo cpufreq driver reads the nvmem cell and uses that data to populate the opps. There are other qcom cpufreq socs like krait which does similar thing. Except for the interpretation of the read data, rest of the driver is same for both the cases. So pull the common things out for reuse. Signe

[PATCH 14/14] cpufreq: qcom: Add support for krait based socs

2018-08-13 Thread Sricharan R
In Certain QCOM SoCs like ipq8064, apq8064, msm8960, msm8974 that has KRAIT processors the voltage/current value of each OPP varies based on the silicon variant in use. The required OPP related data is determined based on the efuse value. This is similar to the existing code for kryo cores. So add

[PATCH 12/14] clk: qcom: Add safe switch hook for krait mux clocks

2018-08-13 Thread Sricharan R
When the Hfplls are reprogrammed during the rate change, the primary muxes which are sourced from the same hfpll for higher frequencies, needs to be switched to the 'safe secondary mux' as the parent for that small window. This is done by registering a clk notifier for the muxes and switching to th

[PATCH 11/14] dt-bindings: clock: Document qcom,krait-cc

2018-08-13 Thread Sricharan R
From: Stephen Boyd The Krait clock controller controls the krait CPU and the L2 clocks consisting a primary mux and secondary mux. Add document for that. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- .../devicetree/bindings/clock/qcom,krait-cc.txt| 34 ++ 1

[PATCH 10/14] clk: qcom: Add Krait clock controller driver

2018-08-13 Thread Sricharan R
From: Stephen Boyd The Krait CPU clocks are made up of a primary mux and secondary mux for each CPU and the L2, controlled via cp15 accessors. For Kraits within KPSSv1 each secondary mux accepts a different aux source, but on KPSSv2 each secondary mux accepts the same aux source. Cc: Signed-off

[PATCH 04/14] dt-bindings: clock: Document qcom,hfpll

2018-08-13 Thread Sricharan R
From: Stephen Boyd Adds bindings document for qcom,hfpll instantiated within the Krait processor subsystem as separate register region. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- .../devicetree/bindings/clock/qcom,hfpll.txt | 60 ++ 1 file changed, 60 i

[PATCH 05/14] clk: qcom: Add MSM8960/APQ8064's HFPLLs

2018-08-13 Thread Sricharan R
From: Stephen Boyd Describe the HFPLLs present on MSM8960 and APQ8064 devices. Acked-by: Rob Herring (bindings) Signed-off-by: Stephen Boyd --- drivers/clk/qcom/gcc-msm8960.c | 172 +++ include/dt-bindings/clock/qcom,gcc-msm8960.h | 2 + 2 files changed

[PATCH 08/14] clk: qcom: Add KPSS ACC/GCC driver

2018-08-13 Thread Sricharan R
From: Stephen Boyd The ACC and GCC regions present in KPSSv1 contain registers to control clocks and power to each Krait CPU and L2. For CPUfreq purposes probe these devices and expose a mux clock that chooses between PXO and PLL8. Cc: Signed-off-by: Stephen Boyd --- drivers/clk/qcom/Kconfig

[PATCH 07/14] clk: qcom: Add support for Krait clocks

2018-08-13 Thread Sricharan R
From: Stephen Boyd The Krait clocks are made up of a series of muxes and a divider that choose between a fixed rate clock and dedicated HFPLLs for each CPU. Instead of using mmio accesses to remux parents, the Krait implementation exposes the remux control via cp15 registers. Support these clocks

Re: [PATCH v1 1/2] Bluetooth: mediatek: Add protocol support for MediaTek MT7668U USB devices

2018-08-13 Thread Marcel Holtmann
Hi Sean, >>> This adds the support of enabling MT7668U Bluetooth function running >>> on the top of btusb driver. The patch also adds a newly created file >>> mtkbt.c able to be reused independently from the transport type such >>> as UART, USB and SDIO. >> >> Include /sys/kernel/debug/usb/device

[PATCH 06/14] clk: qcom: Add IPQ806X's HFPLLs

2018-08-13 Thread Sricharan R
From: Stephen Boyd Describe the HFPLLs present on IPQ806X devices. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/gcc-ipq806x.c | 82 ++ 1 file changed, 82 insertions(+) diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc-ipq806x.c inde

[PATCH 09/14] dt-bindings: arm: Document qcom,kpss-gcc

2018-08-13 Thread Sricharan R
From: Stephen Boyd The ACC and GCC regions present in KPSSv1 contain registers to control clocks and power to each Krait CPU and L2. Documenting the bindings here. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- .../devicetree/bindings/arm/msm/qcom,kpss-acc.txt | 19 ++ .../

[PATCH 03/14] clk: qcom: Add HFPLL driver

2018-08-13 Thread Sricharan R
From: Stephen Boyd On some devices (MSM8974 for example), the HFPLLs are instantiated within the Krait processor subsystem as separate register regions. Add a driver for these PLLs so that we can provide HFPLL clocks for use by the system. Cc: Signed-off-by: Stephen Boyd --- drivers/clk/qcom/

[PATCH 01/14] ARM: Add Krait L2 register accessor functions

2018-08-13 Thread Sricharan R
From: Stephen Boyd Krait CPUs have a handful of L2 cache controller registers that live behind a cp15 based indirection register. First you program the indirection register (l2cpselr) to point the L2 'window' register (l2cpdr) at what you want to read/write. Then you read/write the 'window' regi

[PATCH 02/14] clk: qcom: Add support for High-Frequency PLLs (HFPLLs)

2018-08-13 Thread Sricharan R
From: Stephen Boyd HFPLLs are the main frequency source for Krait CPU clocks. Add support for changing the rate of these PLLs. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clk-hfpll.c | 244 +++ drivers/clk/qcom/

[PATCH V11 00/14] Krait clocks + Krait CPUfreq

2018-08-13 Thread Sricharan R
[v11] * Dropped patch 13 and 14 from v10 and merged the qcom-cpufreq-krait driver to the existing qcom-cpufreq-kryo.c * Rebased on top of clk-next * Fixed a bug while populating the pvs version for krait. [v10] * Addressed Stephen's comments to add clocks bindings properties to the

Re: general protection fault in send_sigurg_to_task

2018-08-13 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:5ed5da74de9e Add linux-next specific files for 20180813 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1078702840 kernel config: https://syzkaller.appspot.com/x/.config?x

JAB: [linux-kernel@vger.kernel.org] 13-08-2018 03:59:08 ƴou can easily get off

2018-08-13 Thread Marina Player
ţicкet Detаils: JAB-398-40749 Email: linux-kernel@vger.kernel.org Camera ready,Notification: 13-08-2018 03:59:08 Śtatus: 𝕨aiting for Reply 19xuCaTy9A8f70wKnFmFkB8LrH3Dy88Ru8_Priority: Normal ȟel

Re: linux-next: Tree for Aug 13

2018-08-13 Thread Guenter Roeck
On Mon, Aug 13, 2018 at 07:32:01PM +1000, Stephen Rothwell wrote: > Hi all, > > Changes since 20180810: > > The ida tree lost its build failure. > > The akpm-current tree gained conflicts against the block tree and a > build failure due to an interaction with the userns tree for which I > applie

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-13 Thread Oleg Nesterov
On 08/13, Ravi Bangoria wrote: > > > But damn, process creation (exec) is trivial. We could add a new > > uprobe_exec() > > hook and avoid delayed_uprobe_install() in uprobe_mmap(). > > I'm sorry. I didn't get this. Sorry for confusion... I meant, if only exec*( could race with _register(), we c

[PATCH] ubifs: Add comment on c->commit_sem

2018-08-13 Thread Richard Weinberger
Every single time I come across that code, I get confused because it looks like a possible dead lock. Help myself by adding a comment. Signed-off-by: Richard Weinberger --- fs/ubifs/journal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ubifs/journal.c b/fs/ubifs/journal.c index 95665e

Re: [PATCH] arm:pm: Use kmemdup to replace duplicating its implementation

2018-08-13 Thread zhong jiang
On 2018/8/13 20:28, Vladimir Zapolskiy wrote: > Hi zhong jiang, > > On 08/10/2018 05:40 AM, zhong jiang wrote: >> kmemdup is better than kmalloc() + memcpy(), and we do not like >> open code. So just use kmemdup instead. >> >> Signed-off-by: zhong jiang >> --- >> arch/arm/mach-lpc32xx/pm.c | 7 ++

[PATCH] perf tools: Add struct ordered_events_buffer layer

2018-08-13 Thread Jiri Olsa
On Fri, Aug 10, 2018 at 01:54:31PM +0200, Jiri Olsa wrote: > On Fri, Aug 10, 2018 at 01:21:18AM -0700, Stephane Eranian wrote: > > On Thu, Aug 9, 2018 at 1:07 AM Jiri Olsa wrote: > > > > > > On Wed, Aug 08, 2018 at 03:33:20PM -0700, Stephane Eranian wrote: > > > > This patch fixes a bug in ordered

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-13 Thread Ravi Bangoria
Hi Oleg, On 08/13/2018 05:20 PM, Oleg Nesterov wrote: > On 08/13, Ravi Bangoria wrote: >> >> On 08/11/2018 01:27 PM, Song Liu wrote: + +static void delayed_uprobe_delete(struct delayed_uprobe *du) +{ + if (!du) + return; >>> Do we really need this check

[PATCH v2] scsi: Use vmemdup_user to replace the open code

2018-08-13 Thread zhong jiang
vmemdup_user is better than duplicating its implementation, So just replace the open code. The issue is detected with the help of Coccinelle. Signed-off-by: zhong jiang --- drivers/scsi/hpsa.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/hpsa.c b

general protection fault in send_sigurg_to_task

2018-08-13 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:5ed5da74de9e Add linux-next specific files for 20180813 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16c2a63c40 kernel config: https://syzkaller.appspot.com/x/.config?x=18edf0289d1b5ab

Re: [PATCH] scsi: Use vmemdup_user to replace the open code

2018-08-13 Thread zhong jiang
Please ignore the patch, will repost . Thanks On 2018/8/13 20:22, zhong jiang wrote: > vmemdup_user is better than duplicating its implementation, So just > replace the open code. > > Signed-off-by: zhong jiang > --- > drivers/scsi/hpsa.c | 10 +++--- > 1 file changed, 3 insertions(+), 7 dele

Re: [PATCH v3 06/14] sched/cpufreq: uclamp: add utilization clamping for RT tasks

2018-08-13 Thread Patrick Bellasi
On 13-Aug 14:07, Vincent Guittot wrote: > On Mon, 13 Aug 2018 at 12:12, Patrick Bellasi wrote: > > > > Hi Vincent! > > > > On 09-Aug 18:03, Vincent Guittot wrote: > > > > On 07-Aug 15:26, Juri Lelli wrote: > > > > [...] > > > > > > > > + util_cfs = cpu_util_cfs(rq); > > > > > > + util_rt = cp

Re: [BUG] kernel: rcu: a possible sleep-in-atomic-context bug in srcu_read_delay()

2018-08-13 Thread Paul E. McKenney
On Mon, Aug 13, 2018 at 05:26:49PM +0800, Jia-Ju Bai wrote: > > > On 2018/8/13 12:18, Paul E. McKenney wrote: > >On Mon, Aug 13, 2018 at 11:04:10AM +0800, Jia-Ju Bai wrote: > >>The kernel may sleep with holding a spinlock. > >> > >>The function call paths (from bottom to top) in Linux-4.16 are: >

general protection fault in send_sigio_to_task

2018-08-13 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:5ed5da74de9e Add linux-next specific files for 20180813 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=164fecc440 kernel config: https://syzkaller.appspot.com/x/.config?x=18edf0289d1b5ab

[PATCH] scsi: Use vmemdup_user to replace the open code

2018-08-13 Thread zhong jiang
vmemdup_user is better than duplicating its implementation, So just replace the open code. Signed-off-by: zhong jiang --- drivers/scsi/hpsa.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 58bb70b..948576a 100644 ---

Re: [PATCH] arm:pm: Use kmemdup to replace duplicating its implementation

2018-08-13 Thread Vladimir Zapolskiy
Hi zhong jiang, On 08/10/2018 05:40 AM, zhong jiang wrote: > kmemdup is better than kmalloc() + memcpy(), and we do not like > open code. So just use kmemdup instead. > > Signed-off-by: zhong jiang > --- > arch/arm/mach-lpc32xx/pm.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-)

Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping

2018-08-13 Thread Juri Lelli
On 13/08/18 13:14, Patrick Bellasi wrote: > On 07-Aug 11:59, Juri Lelli wrote: > > Hi, > > > > Minor comments below. > > > > On 06/08/18 17:39, Patrick Bellasi wrote: > > > > [...] > > > > > + * > > > + * Task Utilization Attributes > > > + * === > > > + * > > > + * A su

Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping

2018-08-13 Thread Patrick Bellasi
On 07-Aug 11:59, Juri Lelli wrote: > Hi, > > Minor comments below. > > On 06/08/18 17:39, Patrick Bellasi wrote: > > [...] > > > + * > > + * Task Utilization Attributes > > + * === > > + * > > + * A subset of sched_attr attributes allows to specify the utilization > > w

Re: [PATCH v3 06/14] sched/cpufreq: uclamp: add utilization clamping for RT tasks

2018-08-13 Thread Vincent Guittot
On Mon, 13 Aug 2018 at 14:07, Vincent Guittot wrote: > > On Mon, 13 Aug 2018 at 12:12, Patrick Bellasi wrote: > > > > Hi Vincent! > > > > On 09-Aug 18:03, Vincent Guittot wrote: > > > > On 07-Aug 15:26, Juri Lelli wrote: > > > > [...] > > > > > > > > + util_cfs = cpu_util_cfs(rq); > > > > > > +

Re: [PATCH v3 06/14] sched/cpufreq: uclamp: add utilization clamping for RT tasks

2018-08-13 Thread Vincent Guittot
On Mon, 13 Aug 2018 at 12:12, Patrick Bellasi wrote: > > Hi Vincent! > > On 09-Aug 18:03, Vincent Guittot wrote: > > > On 07-Aug 15:26, Juri Lelli wrote: > > [...] > > > > > > + util_cfs = cpu_util_cfs(rq); > > > > > + util_rt = cpu_util_rt(rq); > > > > > + if (sched_feat(UCLAMP_SCHED_CLASS

Re: [PATCH v2 2/2] arm64: dts: meson-g12a: add initial g12a s905d2 SoC DT support

2018-08-13 Thread Jianxin Pan
On 8/13/2018 7:52 PM, Jerome Brunet wrote: > On Mon, 2018-08-13 at 19:48 +0800, Jianxin Pan wrote: >> Try to add basic DT support for the Amlogic's Meson-G12A S905D2 SoC, >> which describe components as follows: Reserve Memory, CPU, GIC, IRQ, >> Timer, UART. It's capable of booting up into the seri

Re: [PATCH v2 2/2] arm64: dts: meson-g12a: add initial g12a s905d2 SoC DT support

2018-08-13 Thread Jerome Brunet
On Mon, 2018-08-13 at 19:48 +0800, Jianxin Pan wrote: > Try to add basic DT support for the Amlogic's Meson-G12A S905D2 SoC, > which describe components as follows: Reserve Memory, CPU, GIC, IRQ, > Timer, UART. It's capable of booting up into the serial console. > > Signed-off-by: Jianxin Pan > -

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-13 Thread Oleg Nesterov
On 08/13, Ravi Bangoria wrote: > > On 08/11/2018 01:27 PM, Song Liu wrote: > >> + > >> +static void delayed_uprobe_delete(struct delayed_uprobe *du) > >> +{ > >> + if (!du) > >> + return; > > Do we really need this check? > > Not necessary though, but I would still like to keep

Please confirm receipt!!!ivt

2018-08-13 Thread mariamchombo
My Dear Please I write you in trust and confidence of my interest to invest in Real Estates/Oil and Gas. I am Ex-wife of Ousted Zimbabwe finance minister Ignatius Chombo Seeking your Partnership to transfer the Sum of $120m in your country for investment plan. Ignatus Chombo is presently held

[PATCH v2 0/2] arm64: dts: meson-g12a: Introduce new DT files for Meson-G12A SoC

2018-08-13 Thread Jianxin Pan
This attempt will try to add new DT files to support Meson-G12A SoC. 1) first, Please notice that, in this patch series, the DT node about 16M reserved memory for hwrom is removed, since it's not needed by G12A SoC. 2) second, the pclk for uart_AO need to be fixed once G12A clock_ao driver is mer

[PATCH v2 1/2] dt-bindings: arm: amlogic: Add Meson G12A binding

2018-08-13 Thread Jianxin Pan
Introduce new bindings for the Meson G12A SoC Signed-off-by: Jianxin Pan --- Documentation/devicetree/bindings/arm/amlogic.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.txt b/Documentation/devicetree/bindings/arm/amlogic.txt index b5

[PATCH v2 2/2] arm64: dts: meson-g12a: add initial g12a s905d2 SoC DT support

2018-08-13 Thread Jianxin Pan
Try to add basic DT support for the Amlogic's Meson-G12A S905D2 SoC, which describe components as follows: Reserve Memory, CPU, GIC, IRQ, Timer, UART. It's capable of booting up into the serial console. Signed-off-by: Jianxin Pan --- arch/arm64/boot/dts/amlogic/Makefile| 1 + arch/

Re: [PATCH v2 1/2] media: davinci: vpif_display: Mix memory leak on probe error path

2018-08-13 Thread Lad, Prabhakar
Hi, Thanks for the patch. On Mon, Aug 6, 2018 at 4:50 PM Anton Vasilyev wrote: > > If vpif_probe() fails on v4l2_device_register() then memory allocated > at initialize_vpif() for global vpif_obj.dev[i] become unreleased. > > The patch adds deallocation of vpif_obj.dev[i] on the probe error path

Re: [PATCH v2 2/3] drivers/irqchip: Add Actions external interrupts support

2018-08-13 Thread Marc Zyngier
On 12/08/18 13:22, Parthiban Nallathambi wrote: > Actions Semi Owl family SoC's S500, S700 and S900 provides support > for 3 external interrupt controllers through SIRQ pins. > > Each line can be independently configured as interrupt and triggers > on either of the edges (raising or falling) or ei

Re: [PATCH 3/8] staging: erofs: add error handling for xattr submodule

2018-08-13 Thread Dan Carpenter
> -static void xattr_iter_fixup(struct xattr_iter *it) > +static inline int xattr_iter_fixup(struct xattr_iter *it) > { > - if (unlikely(it->ofs >= EROFS_BLKSIZ)) { > - xattr_iter_end(it, true); > + if (likely(it->ofs < EROFS_BLKSIZ)) > + return 0; > > -

[PATCH 1/2] rtc:rtc-digicolor: Use PTR_ERR_OR_ZERO to replace the open code

2018-08-13 Thread zhong jiang
PTR_ERR_OR_ZERO has implemented the if(IS_ERR(...)) + PTR_ERR, So just replace them rather than duplicating its implement. Signed-off-by: zhong jiang --- drivers/rtc/rtc-digicolor.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-digicolor.c b/drivers/rtc/r

[PATCH 2/2] rtc:rtc-ds1347: Use PTR_ERR_OR_ZERO to replace the open code

2018-08-13 Thread zhong jiang
PTR_ERR_OR_ZERO has implemented the if(IS_ERR(...)) + PTR_ERR, So just replace them rather than duplicating its implement. Signed-off-by: zhong jiang --- drivers/rtc/rtc-ds1347.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/rtc/rtc-ds1347.c b/drivers/rtc/rtc-ds

[PATCH 0/2] rtc: Use PTR_ERR_OR_ZERO to replace the open code

2018-08-13 Thread zhong jiang
The issue is detected with the help of Coccinelle. zhong jiang (2): rtc:rtc-digicolor: Use PTR_ERR_OR_ZERO to replace the open code rtc:rtc-ds1347: Use PTR_ERR_OR_ZERO to replace the open code drivers/rtc/rtc-digicolor.c | 4 +--- drivers/rtc/rtc-ds1347.c| 5 + 2 files changed, 2 ins

<    1   2   3   4   >