Re: objtool warning "uses BP as a scratch register" with clang-9

2019-08-27 Thread Ilie Halip
> > $ clang-9 -c crc32.i -O2 ; objtool check crc32.o > > crc32.o: warning: objtool: fn1 uses BP as a scratch register Yes, I see it too. https://godbolt.org/z/N56HW1 > Do you still see this warning with -fno-omit-frame-pointer (assuming > clang has that option)? Using this makes the

Re: [alsa-devel] [PATCH 0/6] Small fixes

2019-08-27 Thread Pierre-Louis Bossart
On 8/27/19 9:17 AM, Amadeusz Sławiński wrote: Series of small fixes: * fixes few issues found during checking code with static checkers * fix few prints * define function in header, like it should be * release topology when done with it Amadeusz Sławiński (6): ASoC: Intel: Skylake: Use

Re: kernel/bpf/core.o: warning: objtool: ___bpf_prog_run.cold()+0x7: call without frame pointer save/setup

2019-08-27 Thread Josh Poimboeuf
On Tue, Aug 27, 2019 at 10:43:27AM +0800, He Zhe wrote: > > > On 8/26/19 11:18 PM, Josh Poimboeuf wrote: > > On Mon, Aug 26, 2019 at 10:42:53PM +0800, He Zhe wrote: > >> Hi All, > >> > >> Since 3193c0836f20 ("bpf: Disable GCC -fgcse optimization for > >> ___bpf_prog_run()"), > >> We have got

[PATCH] scripts/dtc: Simplify condition in get_node_by_path

2019-08-27 Thread Denis Efremov
The strlen && strprefixeq check in get_node_by_path is excessive, since strlen is checked in strprefixeq macro internally. Thus, 'strlen(child->name) == p-path' conjunct duplicates after macro expansion and could be removed. Signed-off-by: Denis Efremov --- scripts/dtc/livetree.c | 3 +-- 1

Re: [PATCH 3/3] KVM: x86: always stop emulation on page fault

2019-08-27 Thread Sean Christopherson
Actually adding Peng Hao and Yi Wang... On Tue, Aug 27, 2019 at 07:50:30AM -0700, Sean Christopherson wrote: > +Cc Peng Hao and Yi Wang > > On Tue, Aug 27, 2019 at 01:07:09PM +, Jan Dakinevich wrote: > > inject_emulated_exception() returns true if and only if nested page > > fault happens.

Re: [PATCH 2/3] KVM: x86: set ctxt->have_exception in x86_decode_insn()

2019-08-27 Thread Sean Christopherson
On Tue, Aug 27, 2019 at 01:07:08PM +, Jan Dakinevich wrote: > x86_emulate_instruction() takes into account ctxt->have_exception flag > during instruction decoding, but in practice this flag is never set in > x86_decode_insn(). > > Fixes: 6ea6e84 ("KVM: x86: inject exceptions produced by

Re: [PATCH v6 11/11] arm/arm64: defconfig: Update configs to use the new CROS_EC options

2019-08-27 Thread Enric Balletbo i Serra
Hi, On 23/8/19 14:53, Enric Balletbo i Serra wrote: > Recently we refactored the CrOS EC drivers moving part of the code from > the MFD subsystem to the platform chrome subsystem. During this change > we needed to rename some config options, so, update the defconfigs > accordingly. > >

Re: Continuous SD IO causes hung task messages

2019-08-27 Thread Russell King - ARM Linux admin
On Tue, Aug 27, 2019 at 03:36:34PM +0100, Russell King - ARM Linux admin wrote: > On Tue, Aug 27, 2019 at 03:55:23PM +0200, Ulf Hansson wrote: > > On Tue, 27 Aug 2019 at 15:43, Russell King - ARM Linux admin > > wrote: > > > > > > Hi, > > > > > > While dd'ing the contents of a SD card, I get hung

[GIT PULL] PHY: For 5.4

2019-08-27 Thread Kishon Vijay Abraham I
Hi Greg, Please find the pull request for 5.4 merge window below. Most of the updates here are in Marvell's Armada CP110 COMPHY. It also adds a new PHY driver for Lantiq (now Intel) VRX200/ARX300 PCIe PHY. Please see the tag message for all the changes. Let me know If I have to change something.

Re: objtool warning "uses BP as a scratch register" with clang-9

2019-08-27 Thread Josh Poimboeuf
On Tue, Aug 27, 2019 at 02:30:06PM +0200, Arnd Bergmann wrote: > I upgraded to the latest clang-9 snapshot from http://apt.llvm.org/ today. > Many problems are fixed, but I still get tons of warnings like > > arch/x86/kernel/cpu/mtrr/generic.o: warning: objtool: > mtrr_type_lookup_variable uses

Re: [PATCH 3/3] KVM: x86: always stop emulation on page fault

2019-08-27 Thread Sean Christopherson
+Cc Peng Hao and Yi Wang On Tue, Aug 27, 2019 at 01:07:09PM +, Jan Dakinevich wrote: > inject_emulated_exception() returns true if and only if nested page > fault happens. However, page fault can come from guest page tables > walk, either nested or not nested. In both cases we should stop an

Re: [PATCH 2/2] ALSA: hda: Allow HDA to be runtime suspended when dGPU is not bound

2019-08-27 Thread Kai-Heng Feng
at 21:47, Kai-Heng Feng wrote: It's a common practice to let dGPU unbound and use PCI port PM to disable its power through _PR3. When the dGPU comes with an HDA function, the HDA won't be suspended if the dGPU is unbound, so the dGPU power can't be disabled. Commit 37a3a98ef601 ("ALSA: hda -

Re: [PATCH 5/7] bcm-vk: add bcm_vk UAPI

2019-08-27 Thread Kieran Bingham
Hi Scott, On 22/08/2019 20:24, Scott Branden wrote: > Add user space api for bcm-vk driver. > > Signed-off-by: Scott Branden > --- > include/uapi/linux/misc/bcm_vk.h | 88 > 1 file changed, 88 insertions(+) > create mode 100644 include/uapi/linux/misc/bcm_vk.h

Re: [PATCH v2 08/10] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2019-08-27 Thread Andrew Murray
On Sun, Aug 25, 2019 at 03:07:32AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: christophe leroy > > Sent: 2019年8月24日 14:45 > > To: Xiaowei Bao ; Andrew Murray > > > > Cc: mark.rutl...@arm.com; Roy Zang ; > > lorenzo.pieral...@arm.co; a...@arndb.de;

Re: [RFC PATCH 0/2] Add support for SBI version to 0.2

2019-08-27 Thread Christoph Hellwig
On Mon, Aug 26, 2019 at 04:32:54PM -0700, Atish Patra wrote: > This patch series aims to add support for SBI specification version > v0.2. It doesn't break compatibility with any v0.1 implementation. > Internally, all the v0.1 calls are just renamed to legacy to be in > sync with specification

Re: [PATCH 3/4] nvme: pci: pass IRQF_RESCURE_THREAD to request_threaded_irq

2019-08-27 Thread Keith Busch
On Tue, Aug 27, 2019 at 08:34:21AM -0600, Keith Busch wrote: > I think you should probably just have pci_irq_get_affinity() take a flags > argument, or make a new function like __pci_irq_get_affinity() that > pci_irq_get_affinity() can call with a default flag. Sorry, copied the wrong function

[PATCH] wil6210: Delete an unnecessary kfree() call in wil_tid_ampdu_rx_alloc()

2019-08-27 Thread Markus Elfring
From: Markus Elfring Date: Tue, 27 Aug 2019 16:39:02 +0200 A null pointer would be passed to a call of the function “kfree” directly after a call of the function “kcalloc” failed at one place. Remove this superfluous function call. This issue was detected by using the Coccinelle software.

Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-08-27 Thread Thomas Gleixner
On Tue, 27 Aug 2019, Ming Lei wrote: > +/* > + * Update average irq interval with the Exponential Weighted Moving > + * Average(EWMA) > + */ > +static void irq_update_interval(void) > +{ > +#define IRQ_INTERVAL_EWMA_WEIGHT 128 > +#define IRQ_INTERVAL_EWMA_PREV_FACTOR127 > +#define

[PATCH] thermal: make thermal_zone_of_sensor_register return -ENODEV if a sensor OF node is missing

2019-08-27 Thread Peter Mamonov
When devm_thermal_zone_of_sensor_register() is called from hwmon_thermal_add_sensor() it is possible that the relevant sensor is missing an OF node. In this case thermal_zone_of_sensor_register() returns -EINVAL which causes hwmon_thermal_add_sensor() to fail as well. This patch changes relevant

Re: [PATCH] gpiolib: acpi: Add gpiolib_acpi_run_edge_events_on_boot option and blacklist

2019-08-27 Thread Hans de Goede
Hi Andy, On 26-08-19 11:11, Andy Shevchenko wrote: On Fri, Aug 23, 2019 at 11:52:55PM +0200, Hans de Goede wrote: Another day; another DSDT bug we need to workaround... Since commit ca876c7483b6 ("gpiolib-acpi: make sure we trigger edge events at least once on boot") we call _AEI edge

Re: [PATCH v3 04/11] modpost: add support for symbol namespaces

2019-08-27 Thread Matthias Maennich
On Mon, Aug 26, 2019 at 06:21:38PM +0200, Jessica Yu wrote: +++ Matthias Maennich [21/08/19 12:49 +0100]: Add support for symbols that are exported into namespaces. For that, extract any namespace suffix from the symbol name. In addition, emit a warning whenever a module refers to an exported

Re: [PATCH v7 6/6] arm64: dts: marvell: Add cpu clock node on Armada 7K/8K

2019-08-27 Thread Gregory CLEMENT
> Add cpu clock node on AP > > Signed-off-by: Gregory CLEMENT Applied on mvebu/dt64 Gregory > --- > arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi | 4 > arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 7 +++ > 2 files changed, 11 insertions(+) > > diff --git

Re: [PATCH 00/13] Modernize Loongson64 Machine

2019-08-27 Thread Jiaxun Yang
On 2019/8/27 下午9:25, 陈华才 wrote: Hi, Jiaxun, Hi Huacai Thanks for your response. 1, To describe CPU I prefer "loongson" to "ls" because "ls" is confusing, and in future we will use ls2h/ls7a to describe Loongson's bridge. "Loongson" seems too long in some cases, for DeviceTree

Re: [PATCH 0/9] staging: move greybus core out of staging

2019-08-27 Thread Dan Carpenter
On Tue, Aug 27, 2019 at 03:45:57PM +0200, Greg Kroah-Hartman wrote: > Why can't you compile the code? > Now that I try to investigate the compile errors, it starts to compile perfectly... > > drivers/staging/greybus/operation.c:379 gb_operation_message_alloc() warn: > > check 'message_size'

[PATCH] rtc: pcf2127: bugfix: watchdog build dependency

2019-08-27 Thread Bruno Thomsen
Disable watchdog registation when kernel is build without watchdog functionality, and enable watchdog core otherwise. This removes compile errors like the one below: drivers/rtc/rtc-pcf2127.o: in function `pcf2127_probe.constprop.3': rtc-pcf2127.c:(.text.unlikely+0x2c8): undefined reference to

[tip: irq/core] genirq/affinity: Spread vectors on node according to nr_cpu ratio

2019-08-27 Thread tip-bot2 for Ming Lei
The following commit has been merged into the irq/core branch of tip: Commit-ID: b1a5a73e64e99faa5f4deef2ae96d7371a0fb5d0 Gitweb: https://git.kernel.org/tip/b1a5a73e64e99faa5f4deef2ae96d7371a0fb5d0 Author:Ming Lei AuthorDate:Fri, 16 Aug 2019 10:28:49 +08:00 Committer:

Re: Continuous SD IO causes hung task messages

2019-08-27 Thread Russell King - ARM Linux admin
On Tue, Aug 27, 2019 at 03:55:23PM +0200, Ulf Hansson wrote: > On Tue, 27 Aug 2019 at 15:43, Russell King - ARM Linux admin > wrote: > > > > Hi, > > > > While dd'ing the contents of a SD card, I get hung task timeout > > messages as per below. However, the dd is making progress. Any > > ideas?

Re: [PATCH 4/4] genirq: use irq's affinity for threaded irq with IRQF_RESCUE_THREAD

2019-08-27 Thread Keith Busch
On Tue, Aug 27, 2019 at 04:53:44PM +0800, Ming Lei wrote: > In case of IRQF_RESCUE_THREAD, the threaded handler is only used to > handle interrupt when IRQ flood comes, use irq's affinity for this thread > so that scheduler may select other not too busy CPUs for handling the > interrupt. > > Cc:

[tip: irq/core] genirq/affinity: Improve __irq_build_affinity_masks()

2019-08-27 Thread tip-bot2 for Ming Lei
The following commit has been merged into the irq/core branch of tip: Commit-ID: 53c1788b7d7720565214a466afffdc818d8c6e5f Gitweb: https://git.kernel.org/tip/53c1788b7d7720565214a466afffdc818d8c6e5f Author:Ming Lei AuthorDate:Fri, 16 Aug 2019 10:28:48 +08:00 Committer:

Re: dataring_push() barriers Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-27 Thread Petr Mladek
On Sun 2019-08-25 04:42:37, John Ogness wrote: > On 2019-08-20, Petr Mladek wrote: > >> +/** > >> + * dataring_push() - Reserve a data block in the data array. > >> + * > >> + * @dr: The data ringbuffer to reserve data in. > >> + * > >> + * @size: The size to reserve. > >> + * > >> + * @desc: A

Re: [PATCH] sched/fair: update_curr changed sum_exec_runtime to 1 when sum_exec_runtime is 0 beacuse some kernel code use sum_exec_runtime==0 to test task just be forked.

2019-08-27 Thread Peter Zijlstra
On Mon, Aug 26, 2019 at 07:46:50PM +0800, QiaoChong wrote: > From: Chong Qiao > > Such as: > cpu_cgroup_attach> > sched_move_task> > task_change_group_fair> >task_move_group_fair> > detach_task_cfs_rq> > vruntime_normalized> > > /* >* When !on_rq, vruntime of the

Re: [PATCH 3/4] nvme: pci: pass IRQF_RESCURE_THREAD to request_threaded_irq

2019-08-27 Thread Keith Busch
On Tue, Aug 27, 2019 at 05:09:27PM +0800, Ming Lei wrote: > On Tue, Aug 27, 2019 at 11:06:20AM +0200, Johannes Thumshirn wrote: > > On 27/08/2019 10:53, Ming Lei wrote: > > [...] > > > + char *devname; > > > + const struct cpumask *mask; > > > + unsigned long irqflags =

Re: [RFC PATCH 5/7] arm64: smp: use generic SMP stop common code

2019-08-27 Thread Cristian Marussi
Hi On 26/08/2019 23:26, Thomas Gleixner wrote: > On Mon, 26 Aug 2019, Cristian Marussi wrote: >> On 8/26/19 4:32 PM, Christoph Hellwig wrote: +config ARCH_USE_COMMON_SMP_STOP + def_bool y if SMP >>> >>> The option belongs into common code and the arch code shoud only >>> select it. >>>

Re: [PATCH v2 3/3] dwc: PCI: intel: Intel PCIe RC controller driver

2019-08-27 Thread Andy Shevchenko
On Mon, Aug 26, 2019 at 11:15:48PM +0200, Martin Blumenstingl wrote: > On Mon, Aug 26, 2019 at 5:31 AM Chuan Hua, Lei > wrote: > > As I mentioned, VRX200 was a very old PCIe Gen1.1 product. In our latest > > SoC Lightning > > > > Mountain, we are using synopsys controller 5.20/5.50a. We support

Re: numlist_push() barriers Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-27 Thread John Ogness
On 2019-08-27, Petr Mladek wrote: >> On 2019-08-23, Petr Mladek wrote: --- /dev/null +++ b/kernel/printk/numlist.c +void numlist_push(struct numlist *nl, struct nl_node *n, unsigned long id) +{ > [...] + + /* bB: #1 */ + head_id = atomic_long_read(>head_id);

Re: [PATCH v1 1/1] ARM: dts: rockchip: set crypto default disabled on rk3288

2019-08-27 Thread Heiko Stuebner
Hi, Am Dienstag, 27. August 2019, 09:14:39 CEST schrieb Elon Zhang: > Not every board needs to enable crypto node, so the node should > be set default disabled in rk3288.dtsi and enabled in specific > board dts file. Can you give a bit more rationale here? There would need to be a very specific

Re: [PATCH 2/2] powerpc/pseries: Delete an error message for a failed string duplication in dlpar_store()

2019-08-27 Thread Nathan Lynch
Markus Elfring writes: > From: Markus Elfring > Date: Tue, 27 Aug 2019 13:37:56 +0200 > > Omit an extra message for a memory allocation failure in this function. > > Signed-off-by: Markus Elfring Acked-by: Nathan Lynch

Re: [PATCH 1/2] powerpc/pseries: Delete an unnecessary kfree() call in dlpar_store()

2019-08-27 Thread Nathan Lynch
Markus Elfring writes: > From: Markus Elfring > Date: Tue, 27 Aug 2019 13:34:02 +0200 > > A null pointer would be passed to a call of the function “kfree” > immediately after a call of the function “kstrdup” failed at one place. > Remove this superfluous function call. > > This issue was

Re: [ANNOUNCE] v5.2.10-rt5

2019-08-27 Thread Alexander Dahl
Hello Sebastian, Am Dienstag, 27. August 2019, 15:22:01 CEST schrieb Sebastian Andrzej Siewior: > of course, !SMP. What about this: > > diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c > --- a/kernel/time/hrtimer.c > +++ b/kernel/time/hrtimer.c > @@ -934,7 +934,11 @@ void

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-27 Thread Michal Hocko
Dan, isn't this something we have discussed recently? On Mon 26-08-19 08:43:36, Waiman Long wrote: > It was found that on a dual-socket x86-64 system with nvdimm, reading > /proc/kpagecount may cause the system to panic: > > === > [ 79.917682] BUG: unable to handle page fault

Re: [PATCHv6] drivers/amba: add reset control to amba bus probe

2019-08-27 Thread Philipp Zabel
On Tue, 2019-08-27 at 09:11 -0500, Dinh Nguyen wrote: > The primecell controller on some SoCs, i.e. SoCFPGA, is held in reset by > default. Until recently, the DMA controller was brought out of reset by the > bootloader(i.e. U-Boot). But a recent change in U-Boot, the peripherals > that are not

Re: [PATCH 11/13] dt-bindings: mips: Add loongson cpus & boards

2019-08-27 Thread Jiaxun Yang
On 2019/8/27 下午8:45, Rob Herring wrote: On Tue, Aug 27, 2019 at 3:55 AM Jiaxun Yang wrote: Prepare for later dts. Signed-off-by: Jiaxun Yang --- .../bindings/mips/loongson/cpus.yaml | 38 +++ .../bindings/mips/loongson/devices.yaml | 64 +++ 2

RE: [PATCH] RDMA/siw: Fix compiler warnings on 32-bit due to u64/pointer abuse

2019-08-27 Thread David Laight
From: Geert Uytterhoeven > Sent: 19 August 2019 18:15 ... > > I think a cast to unsigned long is rather more common. > > > > uintptr_t is used ~1300 times in the kernel. > > I believe a cast to unsigned long is much more common. > > That is true, as uintptr_t was introduced in C99. > Similarly,

[PATCHv6] drivers/amba: add reset control to amba bus probe

2019-08-27 Thread Dinh Nguyen
The primecell controller on some SoCs, i.e. SoCFPGA, is held in reset by default. Until recently, the DMA controller was brought out of reset by the bootloader(i.e. U-Boot). But a recent change in U-Boot, the peripherals that are not used are held in reset and are left to Linux to bring them out

[PATCH 6/6] ASoC: Intel: NHLT: Fix debug print format

2019-08-27 Thread Amadeusz Sławiński
From: Amadeusz Sławiński oem_table_id is 8 chars long, so we need to limit it, otherwise it may print some unprintable characters into dmesg. Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/skylake/skl-nhlt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/6] Small fixes

2019-08-27 Thread Amadeusz Sławiński
Series of small fixes: * fixes few issues found during checking code with static checkers * fix few prints * define function in header, like it should be * release topology when done with it Amadeusz Sławiński (6): ASoC: Intel: Skylake: Use correct function to access iomem space ASoC: Intel:

[PATCH 3/6] ASoC: dapm: Expose snd_soc_dapm_new_control_unlocked properly

2019-08-27 Thread Amadeusz Sławiński
From: Amadeusz Sławiński We use snd_soc_dapm_new_control_unlocked for topology and have local declaration, instead declare it properly in header like already declared snd_soc_dapm_new_control. Signed-off-by: Amadeusz Sławiński --- include/sound/soc-dapm.h | 3 +++ sound/soc/soc-topology.c | 6

[PATCH 2/6] ASoC: Intel: Fix use of potentially uninitialized variable

2019-08-27 Thread Amadeusz Sławiński
From: Amadeusz Sławiński If ipc->ops.reply_msg_match is NULL, we may end up using uninitialized mask value. reported by smatch: sound/soc/intel/common/sst-ipc.c:266 sst_ipc_reply_find_msg() error: uninitialized symbol 'mask'. Signed-off-by: Amadeusz Sławiński ---

[PATCH 5/6] ASoC: Intel: Skylake: Release topology when we are done with it

2019-08-27 Thread Amadeusz Sławiński
Currently topology is kept in memory while driver is running. It's unnecessary, as it's only needed during parsing. Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/skylake/skl-topology.c | 20 ++-- sound/soc/intel/skylake/skl.h | 1 - 2 files changed, 10

[PATCH 1/6] ASoC: Intel: Skylake: Use correct function to access iomem space

2019-08-27 Thread Amadeusz Sławiński
From: Amadeusz Sławiński For copying from __iomem, we should use __ioread32_copy. reported by sparse: sound/soc/intel/skylake/skl-debug.c:437:34: warning: incorrect type in argument 1 (different address spaces) sound/soc/intel/skylake/skl-debug.c:437:34:expected void [noderef] *to

[PATCH 4/6] ASoC: Intel: Skylake: Print module type instead of id

2019-08-27 Thread Amadeusz Sławiński
From: Amadeusz Sławiński When we are printing module params, we were actually printing module id instead of type, but debug message was saying that number we get is type. So print module type, as it is useful when debugging paths, but also keep printing module id, as it is used in all other

Re: [PATCH v5.2 1/2] locking/rwsem: Add missing ACQUIRE to read_slowpath exit when queue is empty

2019-08-27 Thread Jan Stancek
- Original Message - > From: Jan Stancek > > [ Upstream commit e1b98fa316648420d0434d9ff5b92ad6609ba6c3 ] > > LTP mtest06 has been observed to occasionally hit "still mapped when > deleted" and following BUG_ON on arm64. > > The extra mapcount originated from pagefault handler, which

Re: [RFC PATCH 2/2] RISC-V: Add basic support for SBI v0.2

2019-08-27 Thread Christoph Hellwig
> +#define SBI_EXT_BASE 0x10 I think you want an enum enumerating the extensions. > +#define SBI_CALL_LEGACY(ext, fid, arg0, arg1, arg2, arg3) ({ \ > register uintptr_t a0 asm ("a0") = (uintptr_t)(arg0); \ > register uintptr_t a1 asm ("a1") = (uintptr_t)(arg1); \ > register

Re: [PATCH] uuid: Add helpers for finding UUID from an array

2019-08-27 Thread Andy Shevchenko
On Tue, Aug 27, 2019 at 02:49:18PM +0300, Heikki Krogerus wrote: > Matching function that compares every UUID in an array to a > given UUID with guid_equal(). > I don't have a user for these helpers, but since they are pretty > trivial, I figured that might as well propose them in any case. >

Re: [PATCH] Partially revert "mm/memcontrol.c: keep local VM counters in sync with the hierarchical ones"

2019-08-27 Thread Michal Hocko
On Sat 24-08-19 23:23:07, Thomas Backlund wrote: > Den 24-08-2019 kl. 22:57, skrev Andrew Morton: > > On Sat, 17 Aug 2019 19:15:23 + Roman Gushchin wrote: > > > > > > > Fixes: 766a4c19d880 ("mm/memcontrol.c: keep local VM counters in sync > > > > > with the hierarchical ones") > > > > >

[PATCH] media: stm32-dcmi: Delete an unnecessary of_node_put() call in dcmi_probe()

2019-08-27 Thread Markus Elfring
From: Markus Elfring Date: Tue, 27 Aug 2019 16:00:13 +0200 A null pointer would be passed to a call of the function “of_node_put” immediately after a call of the function “of_graph_get_next_endpoint” failed at one place. Remove this superfluous function call. This issue was detected by using

Re: [PATCH 07/13] dt-bindings: interrupt-controller: Add Loongson-3 HTINTC

2019-08-27 Thread Jiaxun Yang
On 2019/8/27 下午8:49, Rob Herring wrote: On Tue, Aug 27, 2019 at 3:59 AM Jiaxun Yang wrote: Document Loongson-3 HyperTransport Interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls3-htintc.yaml | 53 +++ 1 file changed, 53 insertions(+)

Re: powerpc asm-prototypes.h seems odd

2019-08-27 Thread Daniel Axtens
Masahiro Yamada writes: > Hi. > > Lots of powerpc files include , > and powerpc is the only architecture that does this. > > exists to support modversion for asm. > So, it is supposed to be parsed by genksysms, not to be > included from other files. Right? It exists to support sparse,

Re: [PATCH v2 1/2] dt-bindings: reset: Add YAML schemas for the Intel Reset controller

2019-08-27 Thread Dilip Kota
Hi Rob, On 8/26/2019 7:23 PM, Rob Herring wrote: On Mon, Aug 26, 2019 at 4:52 AM Dilip Kota wrote: Hi Rob, On 8/23/2019 8:25 PM, Rob Herring wrote: On Fri, Aug 23, 2019 at 12:28 AM Dilip Kota wrote: Add YAML schemas for the reset controller on Intel Lightening Mountain (LGM) SoC.

Re: [RFC PATCH 1/2] RISC-V: Mark existing SBI as legacy SBI.

2019-08-27 Thread Christoph Hellwig
On Tue, Aug 27, 2019 at 07:03:04AM -0700, Christoph Hellwig wrote: > > +#define SBI_EXT_LEGACY_SET_TIMER 0x0 > > +#define SBI_EXT_LEGACY_CONSOLE_PUTCHAR 0x1 > > +#define SBI_EXT_LEGACY_CONSOLE_GETCHAR 0x2 > > +#define SBI_EXT_LEGACY_CLEAR_IPI 0x3 > > +#define SBI_EXT_LEGACY_SEND_IPI 0x4 > >

Re: [RFC PATCH 1/2] RISC-V: Mark existing SBI as legacy SBI.

2019-08-27 Thread Christoph Hellwig
> +#define SBI_EXT_LEGACY_SET_TIMER 0x0 > +#define SBI_EXT_LEGACY_CONSOLE_PUTCHAR 0x1 > +#define SBI_EXT_LEGACY_CONSOLE_GETCHAR 0x2 > +#define SBI_EXT_LEGACY_CLEAR_IPI 0x3 > +#define SBI_EXT_LEGACY_SEND_IPI 0x4 > +#define SBI_EXT_LEGACY_REMOTE_FENCE_I 0x5 > +#define

get_unmapped_area && in_ia32_syscall (Was: [PATCH] uprobes/x86: fix detection of 32-bit user mode)

2019-08-27 Thread Oleg Nesterov
Sorry for delay, vacation. On 08/24, Thomas Gleixner wrote: > > And sadly this was already mentioned here: > >8faaed1b9f50 ("uprobes/x86: Introduce sizeof_long(), cleanup > adjust_ret_addr() and arch_uretprobe_hijack_return_addr()") Yes, and I even posted a similar fix but forgot to send it

Re: [PATCH v2] rpmsg: add a description field

2019-08-27 Thread Arnaud Pouliquen
Hi Suman, On 8/16/19 1:14 AM, Suman Anna wrote: From: Ohad Ben-Cohen Add a new description field to the rpmsg bus infrastructure that can be passed onto the rpmsg client drivers for additional information. The current rpmsg bus client drivers need to have a fixed id_table for proper matching,

Re: Continuous SD IO causes hung task messages

2019-08-27 Thread Ulf Hansson
On Tue, 27 Aug 2019 at 15:43, Russell King - ARM Linux admin wrote: > > Hi, > > While dd'ing the contents of a SD card, I get hung task timeout > messages as per below. However, the dd is making progress. Any > ideas? > > Presumably, mmc_rescan doesn't get a look-in while IO is progressing >

[RESEND PATCH v4] checkpatch: add several Kconfig default value tests

2019-08-27 Thread Miles Chen
This change adds 3 Kconfig default value tests. 1. Discourage default n cases: e.g., default n 2. Discourage default "[ynm]" cases: e.g., arch/powerpc/Kconfig: default "y" if PPC_POWERNV arch/powerpc/Kconfig: default "y" if PPC_POWERNV arch/powerpc/Kconfig: default "n"

Re: [PATCH 5/7] bcm-vk: add bcm_vk UAPI

2019-08-27 Thread Arnd Bergmann
On Thu, Aug 22, 2019 at 9:25 PM Scott Branden wrote: > > Add user space api for bcm-vk driver. > + > +struct vk_metadata { > + /* struct version, always backwards compatible */ > + __u32 version; > + > + /* Version 0 fields */ > + __u32 card_status; > +#define

Re: WARNINGs in set_task_reclaim_state with memory cgroupandfullmemory usage

2019-08-27 Thread Michal Hocko
On Tue 27-08-19 21:29:24, Hillf Danton wrote: > > >> No preference seems in either way except for retaining > >> nr_to_reclaim == SWAP_CLUSTER_MAX and target_mem_cgroup == memcg. > > > > Setting target_mem_cgroup here may be a very subtle change for > > subsequent processing. > > Regarding

[PATCH net-next] phy: mdio-sun4i: use devm_platform_ioremap_resource() to simplify code

2019-08-27 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/phy/mdio-sun4i.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/phy/mdio-sun4i.c

Re: [PATCH v1 2/2] mmc: sdhci-of-arasan: Add Support for Intel LGM eMMC

2019-08-27 Thread Ulf Hansson
On Mon, 26 Aug 2019 at 09:28, Ramuthevar,Vadivel MuruganX wrote: > > From: Ramuthevar Vadivel Muruganx > > > The current arasan sdhci PHY configuration isn't compatible > with the PHY on Intel's LGM(Lightning Mountain) SoC devices. > > Therefore, add a new compatible, to adapt the Intel's LGM >

Re: [PATCH v1 1/2] dt-bindings: mmc: sdhci-of-arasan: Add new compatible for Intel LGM eMMC

2019-08-27 Thread Ulf Hansson
On Mon, 26 Aug 2019 at 09:28, Ramuthevar,Vadivel MuruganX wrote: > > From: Ramuthevar Vadivel Murugan > > Add a new compatible to use the sdhc-arasan host controller driver > with the eMMC PHY on Intel's Lightning Mountain SoC. > > Signed-off-by: Ramuthevar Vadivel Murugan > Applied for next,

Re: [PATCH] dt-bindings: mmc: aspeed: Update example ranges property

2019-08-27 Thread Ulf Hansson
On Mon, 26 Aug 2019 at 04:15, Andrew Jeffery wrote: > > The example node in the binding uses the AST2500 compatible string for > the SD controller with a 64kiB ranges property, but the SD controller is > allocated 128kiB of MMIO space according to the AST2500 datasheet. Fix > the example to

[PATCH net-next] phy: mdio-mux-meson-g12a: use devm_platform_ioremap_resource() to simplify code

2019-08-27 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/phy/mdio-mux-meson-g12a.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH v5 1/4] dt-bindings: EDAC: Add Amazon's Annapurna Labs L1 EDAC

2019-08-27 Thread Rob Herring
On Mon, Aug 26, 2019 at 9:49 AM Hawa, Hanna wrote: > > > > On 8/21/2019 10:17 PM, Rob Herring wrote: > > Why is this even in DT? AFAICT, this is all just CortexA57 core features > > (i.e. nothing Amazon specific). The core type and the ECC capabilities > > are discoverable. > > Added to the DT in

[PATCH net-next] phy: mdio-moxart: use devm_platform_ioremap_resource() to simplify code

2019-08-27 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/phy/mdio-moxart.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/phy/mdio-moxart.c

Re: [PATCH] arm64: dts: allwinner: a64: pine64-plus: Add PHY regulator delay

2019-08-27 Thread Ondřej Jirman
Hi, On Tue, Aug 27, 2019 at 03:34:43PM +0200, Maxime Ripard wrote: > On Sun, Aug 25, 2019 at 03:03:36PM +0200, Jernej Skrabec wrote: > > Depending on kernel and bootloader configuration, it's possible that > > Realtek ethernet PHY isn't powered on properly. It needs some time > > before it can be

[PATCH 1/2] PCI: Add a helper to check Power Resource Requirements _PR3 existence

2019-08-27 Thread Kai-Heng Feng
A driver may want to know the existence of _PR3, to choose different runtime suspend behavior. A user will be add in next patch. This is mostly the same as nouveau_pr3_present(). Signed-off-by: Kai-Heng Feng --- drivers/pci/pci.c | 20 include/linux/pci.h | 2 ++ 2

[PATCH 2/2] ALSA: hda: Allow HDA to be runtime suspended when dGPU is not bound

2019-08-27 Thread Kai-Heng Feng
It's a common practice to let dGPU unbound and use PCI port PM to disable its power through _PR3. When the dGPU comes with an HDA function, the HDA won't be suspended if the dGPU is unbound, so the dGPU power can't be disabled. Commit 37a3a98ef601 ("ALSA: hda - Enable runtime PM only for discrete

[PATCH net-next] phy: mdio-hisi-femac: use devm_platform_ioremap_resource() to simplify code

2019-08-27 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/phy/mdio-hisi-femac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/phy/mdio-hisi-femac.c

Re: [PATCH 0/5] a few fixes for sprd's sd host controller

2019-08-27 Thread Ulf Hansson
On Mon, 26 Aug 2019 at 05:18, Chunyan Zhang wrote: > > From: Chunyan Zhang > > With this patch-set, both sd card and mmc can be setup. This patch-set was > verified on Unisoc's Whale2 and another mobile phone platform SC9863A. > > Chunyan Zhang (5): > mmc: sdhci-sprd: fixed incorrect clock

[PATCH net-next] phy: mdio-bcm-iproc: use devm_platform_ioremap_resource() to simplify code

2019-08-27 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/phy/mdio-bcm-iproc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/phy/mdio-bcm-iproc.c

Re: [patch V2 38/38] posix-cpu-timers: Utilize timerqueue for storage

2019-08-27 Thread Thomas Gleixner
On Tue, 27 Aug 2019, Frederic Weisbecker wrote: > On Tue, Aug 27, 2019 at 08:08:06AM +0200, Thomas Gleixner wrote: > > On Tue, 27 Aug 2019, Frederic Weisbecker wrote: > > > > > On Wed, Aug 21, 2019 at 09:09:25PM +0200, Thomas Gleixner wrote: > > > > /** > > > > @@ -92,14 +130,10 @@ struct

Re: [PATCH 0/9] staging: move greybus core out of staging

2019-08-27 Thread Greg Kroah-Hartman
On Tue, Aug 27, 2019 at 04:36:11PM +0300, Dan Carpenter wrote: > I can't compile greybus so it's hard to run Smatch on it... I have a > Smatch thing which ignores missing includes and just tries its best. > It mostly generates garbage output but a couple of these look like > potential issues:

Re: [PATCH 02/19] dax: Pass dax_dev to dax_writeback_mapping_range()

2019-08-27 Thread Jan Kara
On Mon 26-08-19 16:33:26, Vivek Goyal wrote: > On Mon, Aug 26, 2019 at 04:53:16AM -0700, Christoph Hellwig wrote: > > On Wed, Aug 21, 2019 at 01:57:03PM -0400, Vivek Goyal wrote: > > > Right now dax_writeback_mapping_range() is passed a bdev and dax_dev > > > is searched from that bdev name. > > >

[PATCH] mt76: mt7603: use devm_platform_ioremap_resource() to simplify code

2019-08-27 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/wireless/mediatek/mt76/mt7603/soc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [PATCH 0/6 V2] CCIX Protocol error reporting.

2019-08-27 Thread Thomas Gleixner
Jonathan, On Tue, 20 Aug 2019, Jonathan Cameron wrote: Cc+ linux-s...@vger.kernel.org > The following boilerplate is granting rights to the kernel. > Note that I haven't applied the CCIX copyright notice anywhere in this > series because we aren't quoting from the specification. That is > much

Re: [PATCH 3/5] perf util: kernel profiling is disallowed only when perf_event_paranoid > 1

2019-08-27 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 26, 2019 at 09:39:14PM -0400, Igor Lubashev escreveu: > Perf was too restrictive about sysctl kernel.perf_event_paranoid. The > kernel only disallows profiling when perf_event_paranoid > 1. Make perf do > the same. Thanks for following up on this, I added these notes to this cset

Continuous SD IO causes hung task messages

2019-08-27 Thread Russell King - ARM Linux admin
Hi, While dd'ing the contents of a SD card, I get hung task timeout messages as per below. However, the dd is making progress. Any ideas? Presumably, mmc_rescan doesn't get a look-in while IO is progressing for the card? ARM64 host, Macchiatobin, uSD card. Thanks. root@arm-d063:~#

Re: [PATCH 1/3] KVM: x86: fix wrong return code

2019-08-27 Thread Sean Christopherson
On Tue, Aug 27, 2019 at 01:07:04PM +, Jan Dakinevich wrote: > x86_emulate_instruction(), the caller of x86_decode_insn(), expects > that x86_decode_insn()'s returning value belongs to EMULATION_* name > space. However, this function may return value from X86EMUL_* name > space. > > Although,

Re: [PATCH v2] udf: augment UDF permissions on new inodes

2019-08-27 Thread Jan Kara
On Tue 27-08-19 07:13:59, Steven J. Magnani wrote: > Windows presents files created within Linux as read-only, even when > permissions in Linux indicate the file should be writable. > > > UDF defines a slightly different set of basic file permissions than Linux. > Specifically, UDF has

Re: [PATCH] leds: ti-lmu-common: Fix coccinelle issue in TI LMU

2019-08-27 Thread Dan Murphy
Jacek On 8/26/19 2:34 PM, Jacek Anaszewski wrote: Dan, On 8/26/19 4:53 PM, Dan Murphy wrote: Jacek On 8/24/19 10:18 AM, Jacek Anaszewski wrote: Hi Dan, Thank you for the patch. On 8/23/19 9:55 PM, Dan Murphy wrote: Fix the coccinelle issues found in the TI LMU common code

Re: [PATCH v2 02/20] dt-bindings: arm: Convert Marvell MMP board/soc bindings to json-schema

2019-08-27 Thread Rob Herring
On Tue, Aug 27, 2019 at 8:24 AM Lubomir Rintel wrote: > > On Tue, 2019-08-27 at 06:59 -0500, Rob Herring wrote: > > On Thu, Aug 22, 2019 at 4:27 AM Lubomir Rintel wrote: > > > Convert Marvell MMP SoC bindings to DT schema format using json-schema. > > > > > > Signed-off-by: Lubomir Rintel > > >

Re: [PATCH 0/9] staging: move greybus core out of staging

2019-08-27 Thread Dan Carpenter
I can't compile greybus so it's hard to run Smatch on it... I have a Smatch thing which ignores missing includes and just tries its best. It mostly generates garbage output but a couple of these look like potential issues: drivers/staging/greybus/operation.c:379 gb_operation_message_alloc()

Re: [PATCH 1/4] mdev: Introduce sha1 based mdev alias

2019-08-27 Thread Cornelia Huck
On Tue, 27 Aug 2019 11:57:07 + Parav Pandit wrote: > > -Original Message- > > From: Cornelia Huck > > Sent: Tuesday, August 27, 2019 5:11 PM > > To: Parav Pandit > > Cc: alex.william...@redhat.com; Jiri Pirko ; > > kwankh...@nvidia.com; da...@davemloft.net; k...@vger.kernel.org;

Re: [PATCH] arm64: dts: allwinner: a64: pine64-plus: Add PHY regulator delay

2019-08-27 Thread Maxime Ripard
On Sun, Aug 25, 2019 at 03:03:36PM +0200, Jernej Skrabec wrote: > Depending on kernel and bootloader configuration, it's possible that > Realtek ethernet PHY isn't powered on properly. It needs some time > before it can be used. > > Fix that by adding 100ms ramp delay to regulator responsible for

Re: [PATCH v2 08/10] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2019-08-27 Thread Andrew Murray
On Mon, Aug 26, 2019 at 09:49:35AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年8月23日 22:28 > > To: Xiaowei Bao > > Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > > shawn...@kernel.org; Leo Li ; kis...@ti.com; > >

Re: [PATCH] mmc: sunxi: fix unusuable eMMC on some H6 boards by disabling DDR

2019-08-27 Thread Maxime Ripard
On Sun, Aug 25, 2019 at 05:05:58PM +0200, Alejandro González wrote: > Some Allwinner H6 boards have timing problems when dealing with > DDR-capable eMMC cards. These boards include the Pine H64 and Tanix TX6. > > These timing problems result in out of sync communication between the > driver and

Re: [PATCH 0/4] Introduce variable length mdev alias

2019-08-27 Thread Cornelia Huck
On Tue, 27 Aug 2019 13:11:17 + Parav Pandit wrote: > Hi Alex, Cornelia, > > > -Original Message- > > From: kvm-ow...@vger.kernel.org On Behalf > > Of Parav Pandit > > Sent: Tuesday, August 27, 2019 2:11 AM > > To: alex.william...@redhat.com; Jiri Pirko ; > > kwankh...@nvidia.com;

Re: [PATCH] clk: renesas: mstp: Delete an unnecessary kfree() call in cpg_mstp_clocks_init()

2019-08-27 Thread Geert Uytterhoeven
On Tue, Aug 27, 2019 at 3:27 PM Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 27 Aug 2019 15:22:12 +0200 > > A null pointer would be passed to a call of the function “kfree” > directly after a call of the function “kzalloc” failed at one place. > Remove this superfluous function

Re: [PATCH 01/10] mm/oom_debug: Add Debug base code

2019-08-27 Thread kbuild test robot
Hi Edward, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.3-rc6 next-20190827] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

[PATCH] clk: renesas: mstp: Delete an unnecessary kfree() call in cpg_mstp_clocks_init()

2019-08-27 Thread Markus Elfring
From: Markus Elfring Date: Tue, 27 Aug 2019 15:22:12 +0200 A null pointer would be passed to a call of the function “kfree” directly after a call of the function “kzalloc” failed at one place. Remove this superfluous function call. This issue was detected by using the Coccinelle software.

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