Re: [PATCH] remoteproc: Reset table_ptr in rproc_start() failure paths

2018-07-31 Thread Suman Anna
On 07/30/2018 11:15 PM, Bjorn Andersson wrote: > On Thu 26 Jul 18:15 PDT 2018, Suman Anna wrote: > >> Unwind the modified table_ptr and restore it to the local copy >> upon any subsequent failures in the rproc_start() function. This >> keeps the function to remain balanced on failures without the

Re: [PATCH] mm: make __paginginit based on CONFIG_MEMORY_HOTPLUG

2018-07-31 Thread Oscar Salvador
On Tue, Jul 31, 2018 at 10:45:45AM -0400, Pavel Tatashin wrote: > Here the patch would look like this: > > From e640b32dbd329bba5a785cc60050d5d7e1ca18ce Mon Sep 17 00:00:00 2001 > From: Pavel Tatashin > Date: Tue, 31 Jul 2018 10:37:44 -0400 > Subject: [PATCH] mm: remove __paginginit > > __paging

[PATCH v3 7/9] powerpc: Add stacktrace.h header

2018-07-31 Thread Murilo Opsfelder Araujo
Move show_instructions() declaration to arch/powerpc/include/asm/stacktrace.h and include asm/stracktrace.h in arch/powerpc/kernel/process.c, which contains the implementation. This allows show_instructions() to be called on, for example, show_signal_msg(). Signed-off-by: Murilo Opsfelder Araujo

[PATCH v3 5/9] powerpc/traps: Print signal name for unhandled signals

2018-07-31 Thread Murilo Opsfelder Araujo
This adds a human-readable name in the unhandled signal message. Before this patch, a page fault looked like: pandafault[6303]: unhandled signal 11 at 17d0 nip 161c lr 7fff93c55100 code 2 in pandafault[1000+1] After this patch, a page fault looks like: pandafault[6352]: seg

[PATCH v3 9/9] powerpc/traps: Add line prefix in show_instructions()

2018-07-31 Thread Murilo Opsfelder Araujo
Remove "Instruction dump:" line by adding a prefix to display current->comm and current->pid, along with the instructions dump. The prefix can serve as a glue that links the instructions dump to its originator, allowing messages to be interleaved in the logs. Before this patch, a page fault looke

Re: [PATCH v2 1/6] i2c: designware: use generic table matching

2018-07-31 Thread Andy Shevchenko
On Tue, 2018-07-31 at 16:30 +0200, Alexandre Belloni wrote: > On 31/07/2018 17:23:04+0300, Andy Shevchenko wrote: > > On Tue, 2018-07-31 at 17:02 +0300, Andy Shevchenko wrote: > > > On Tue, 2018-07-31 at 15:47 +0200, Alexandre Belloni wrote: > > > > + dev->flags |= (u32)device_get_match_dat

Re: [PATCH] mm: make __paginginit based on CONFIG_MEMORY_HOTPLUG

2018-07-31 Thread Pavel Tatashin
Thats correct on arches where no sparsemem setup_usemap() will not be freed up. It is a tiny function, just a few instructions. Not a big deal. Pavel On Tue, Jul 31, 2018 at 10:51 AM Oscar Salvador wrote: > > On Tue, Jul 31, 2018 at 10:45:45AM -0400, Pavel Tatashin wrote: > > Here the patch would

[PATCH v3] perf/x86/intel: Add support for MISPREDICT bit on Knights Landing cpus

2018-07-31 Thread Jacek Tomaka
From: Jacek Tomaka Problem: perf did not show branch predicted/mispredicted bit in brstack. Output of perf -F brstack for profile collected Before: 0x4fdbcd/0x4fdc03/-/-/-/0 0x45f4c1/0x4fdba0/-/-/-/0 0x45f544/0x45f4bb/-/-/-/0 0x45f555/0x45f53c/-/-/-/0 0x7f66901cc24b/0x45f555/-/-/-/0 0x7f66901cc

Re: Linux 4.18-rc7

2018-07-31 Thread Kirill A. Shutemov
On Tue, Jul 31, 2018 at 09:29:27AM +0300, Kirill A. Shutemov wrote: > On Mon, Jul 30, 2018 at 06:01:26PM -0700, Linus Torvalds wrote: > > On Mon, Jul 30, 2018 at 2:53 PM Hugh Dickins wrote: > > > > > > I have no problem with reverting -rc7's vma_is_anonymous() series. > > > > I don't think we nee

Re: [PATCH 1/3] mm: introduce mem_cgroup_put() helper

2018-07-31 Thread Shakeel Butt
On Tue, Jul 31, 2018 at 1:45 AM Michal Hocko wrote: > > On Mon 30-07-18 11:00:58, Roman Gushchin wrote: > > Introduce the mem_cgroup_put() helper, which helps to eliminate guarding > > memcg css release with "#ifdef CONFIG_MEMCG" in multiple places. > > Is there any reason for this to be a separat

Re: [PATCH] sched/fair: sync expires_seq in distribute_cfs_runtime()

2018-07-31 Thread Xunlei Pang
On 7/31/18 1:55 AM, Cong Wang wrote: > On Sun, Jul 29, 2018 at 10:29 PM Xunlei Pang wrote: >> >> Hi Cong, >> >> On 7/28/18 8:24 AM, Cong Wang wrote: >>> Each time we sync cfs_rq->runtime_expires with cfs_b->runtime_expires, >>> we should sync its ->expires_seq too. However it is missing >>> for di

Re: linux-next: build failure after merge of the block tree

2018-07-31 Thread Jens Axboe
On 7/30/18 9:07 PM, Stephen Rothwell wrote: > Hi Jens, > > After merging the block tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > drivers/scsi/sd.o: In function `sd_done': > sd.c:(.text+0x1050): undefined reference to `t10_pi_complete' > > Presuably caused by com

Re: [PATCH] mm: make __paginginit based on CONFIG_MEMORY_HOTPLUG

2018-07-31 Thread Oscar Salvador
On Tue, Jul 31, 2018 at 10:53:52AM -0400, Pavel Tatashin wrote: > Thats correct on arches where no sparsemem setup_usemap() will not be > freed up. It is a tiny function, just a few instructions. Not a big > deal. > > Pavel > On Tue, Jul 31, 2018 at 10:51 AM Oscar Salvador > wrote: > > > > On Tue

Re: [PATCH v4 1/2] fpga: fpga-mgr: Add readback support

2018-07-31 Thread Alan Tull
On Fri, Jul 27, 2018 at 1:22 AM, Appana Durga Kedareswara rao wrote: Hi Appana, There should be some documentation for the debugfs added under Documentation/driver-api/fpga/ Also there are a lot of #ifdefs that were added due to the CONFIG_FPGA_MGR_DEBUG_FS. This has caused a kernel robot comp

Re: [PATCH v2 11/11] mm,sched: conditionally skip lazy TLB mm refcounting

2018-07-31 Thread Rik van Riel
On Tue, 2018-07-31 at 07:29 -0700, Andy Lutomirski wrote: > > On Jul 31, 2018, at 2:12 AM, Peter Zijlstra > > wrote: > > > > > On Mon, Jul 30, 2018 at 09:05:55PM -0400, Rik van Riel wrote: > > > > On Mon, 2018-07-30 at 18:26 +0200, Peter Zijlstra wrote: > > > > > > > > So for ARCH_NO_ACTIVE_MM w

Re: [PATCH 4/4] cpufreq: intel_pstate: enable boost for Skylake Xeon

2018-07-31 Thread Peter Zijlstra
On Mon, Jul 30, 2018 at 07:06:21AM -0700, Srinivas Pandruvada wrote: > On Mon, 2018-07-30 at 14:16 +0300, Eero Tamminen wrote: > > Questions: > > > > * Does currently kernel CPU freq management have any idea which IO > >devices share TDP with the CPU cores? > No. The requests we do to hardwar

Re: [PATCH] mm: make __paginginit based on CONFIG_MEMORY_HOTPLUG

2018-07-31 Thread Pavel Tatashin
On Tue, Jul 31, 2018 at 11:01 AM Oscar Salvador wrote: > > On Tue, Jul 31, 2018 at 10:53:52AM -0400, Pavel Tatashin wrote: > > Thats correct on arches where no sparsemem setup_usemap() will not be > > freed up. It is a tiny function, just a few instructions. Not a big > > deal. > > > > Pavel > > O

Re: [PATCH v3 0/9] coresight: Update device tree bindings

2018-07-31 Thread Mathieu Poirier
[...] > > > > Suzuki K Poulose (9): > > coresight: Document error handling in coresight_register > > coresight: platform: Refactor graph endpoint parsing > > coresight: platform: Fix refcounting for graph nodes > > coresight: platform: Fix leaking device reference > > coresight: Fix remo

Re: [PATCH] perf vendor events arm64: Update ThunderX2 implementation defined pmu core events

2018-07-31 Thread Ganapatrao Kulkarni
Hi Arnaldo, On Tue, Jul 31, 2018 at 7:58 PM, Arnaldo Carvalho de Melo wrote: > Em Tue, Jul 31, 2018 at 03:32:51PM +0530, Ganapatrao Kulkarni escreveu: >> Signed-off-by: Ganapatrao Kulkarni > > Can you please consider to provide an example of such counters being > used, i.e. with a simple C synth

Re: [PATCH v5] PCI: Check for PCIe downtraining conditions

2018-07-31 Thread Alex G.
On 07/31/2018 01:40 AM, Tal Gilboa wrote: [snip] @@ -2240,6 +2258,9 @@ static void pci_init_capabilities(struct pci_dev *dev)   /* Advanced Error Reporting */   pci_aer_init(dev); +    /* Check link and detect downtrain errors */ +    pcie_check_upstream_link(dev); This is called for e

Re: [PATCH] platform/x86: touchscreen_dmi: Add info for the Cube KNote i1101 tablet

2018-07-31 Thread Andy Shevchenko
On Tue, Jul 31, 2018 at 2:53 PM, Hans de Goede wrote: > Hi, > > On 31-07-18 13:32, Andy Shevchenko wrote: >> >> On Tue, Jul 31, 2018 at 12:32 PM, youling257 wrote: >>> >>> Add touchscreen info for the Cube KNote i1101 tablet. >>> >> >> Thanks for the patch. >> Unfortunately I can't take it w/o So

Re: [PATCH v2 11/11] mm,sched: conditionally skip lazy TLB mm refcounting

2018-07-31 Thread Peter Zijlstra
On Tue, Jul 31, 2018 at 11:03:03AM -0400, Rik van Riel wrote: > On Tue, 2018-07-31 at 07:29 -0700, Andy Lutomirski wrote: > > > On Jul 31, 2018, at 2:12 AM, Peter Zijlstra > > > wrote: > > > > > > > On Mon, Jul 30, 2018 at 09:05:55PM -0400, Rik van Riel wrote: > > > > > On Mon, 2018-07-30 at 18:2

[PATCH v3 3/3] Input: atmel_mxt_ts: Document optional voltage regulators

2018-07-31 Thread Paweł Chmiel
Document new optional voltage regulators, which can be used to power down/up touchscreen. Signed-off-by: Paweł Chmiel Reviewed-by: Rob Herring --- Changes from v1: - Added reviewed-by --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 8 1 file changed, 8 insertions(+)

[PATCH v3 0/3] Input: atmel_mxt_ts: Add support for optional regulators

2018-07-31 Thread Paweł Chmiel
This patch series adds optional regulator support to atmel_mxt_ts. First patch adds regulators to driver. Second patch ensures that device is ready for communication. Third patch updates documentation. Changes from v2: - Add reviewed-by to one patch - Move code for enabling regulators into sep

[PATCH v3 2/3] Input: atmel_mxt_ts: Wait for device be ready for communication

2018-07-31 Thread Paweł Chmiel
According to documentation, device isn't ready for communication, until firmware asserts the CHG line. Add missing wait for this. Signed-off-by: Paweł Chmiel --- drivers/input/touchscreen/atmel_mxt_ts.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/input/touchscreen/at

[PATCH v3 1/3] Input: atmel_mxt_ts: Add support for optional regulators.

2018-07-31 Thread Paweł Chmiel
This patch adds optional regulators, which can be used to power up touchscreen. After enabling regulators, we need to wait 150msec. This value is taken from official driver. It was tested on Samsung Galaxy i9000 (based on Samsung S5PV210 SOC). Signed-off-by: Paweł Chmiel --- Changes from v2: -

Re: [RFC PATCH 2/2] fpga manager: Adding FPGA Manager support for Xilinx zynqmp

2018-07-31 Thread Alan Tull
On Tue, Jul 31, 2018 at 8:08 AM, Nava kishore Manne wrote: > > +Alan Tull, + linux-fpga mailing list Hi Nava, Thanks for submitting. This should be on the linux-fpga mailing list. The linux/scripts/get_maintainer.pl script would tell you that. Also, did you run checkpatch.pl on these? :) I

[PATCH] staging: gasket: sysfs: fix potential null dereference

2018-07-31 Thread Ivan Bornyakov
Add handling of possible allocation failure. Reported by smatch: drivers/staging/gasket/gasket_sysfs.c:105 put_mapping() error: potential null dereference 'files_to_remove'. (kcalloc returns null) Signed-off-by: Ivan Bornyakov --- drivers/staging/gasket/gasket_sysfs.c | 6 ++ 1 file cha

Re: [PATCH] mm: make __paginginit based on CONFIG_MEMORY_HOTPLUG

2018-07-31 Thread Pavel Tatashin
Yes we free meminit when no CONFIG_MEMORY_HOTPLUG See here: http://src.illumos.org/source/xref/linux-master/include/asm-generic/vmlinux.lds.h#107 Pavel On Tue, Jul 31, 2018 at 11:06 AM Pavel Tatashin wrote: > > On Tue, Jul 31, 2018 at 11:01 AM Oscar Salvador > wrote: > > > > On Tue, Jul 31, 2018

[PATCH] x86/microcode: Don't duplicate code to update ucode cpu info and cpu info

2018-07-31 Thread Filippo Sironi
... on late microcode loading when handling a CPU that's already been updated and a CPU that's yet to be updated. Signed-off-by: Filippo Sironi --- arch/x86/kernel/cpu/microcode/amd.c | 15 +-- arch/x86/kernel/cpu/microcode/intel.c | 10 ++ 2 files changed, 15 insertions(+)

Re: [PATCH v2] tracefs: Annotate tracefs_ops with __ro_after_init

2018-07-31 Thread Steven Rostedt
On Mon, 30 Jul 2018 17:25:06 -0700 Kees Cook wrote: > On Wed, Jul 25, 2018 at 11:00 AM, Kees Cook wrote: > > On Wed, Jul 25, 2018 at 10:19 AM, Zubin Mithra wrote: > >> tracefs_ops is initialized inside tracefs_create_instance_dir and not > >> modified after. tracefs_create_instance_dir allows

Re: [PATCH v2] arch/x86: Fix boot_cpu_data.microcode version output

2018-07-31 Thread Sironi, Filippo
> On 31. Jul 2018, at 15:00, Borislav Petkov wrote: > > On Tue, Jul 31, 2018 at 11:46:09AM +, Sironi, Filippo wrote: >> There may be a chance of skipping this code, I think. >> >> If the microcode is loaded on the hyperthread sibling of the boot cpu >> before being loaded on the boot cpu,

[PATCH] driver/hwtracing: use ERR_CAST instead of ERR_PTR

2018-07-31 Thread zhong jiang
Use ERR_CAT inlined function to replace the ERR_PTR(PTR_ERR). It make the code more concise. Signed-off-by: zhong jiang --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-tmc-etr.c b/drive

Re: [PATCH] timers: Clear must_forward_clk inside base lock

2018-07-31 Thread Thomas Gleixner
Gaurav, On Thu, 26 Jul 2018, Gaurav Kohli wrote: > While migrating timer to new base, there is a need > to update base clk by calling forward_timer_base to > avoid stale clock , but at the same time if run_timer > is exectuing in new core it may set must_forward_clk > to false and due to this for

Re: [PATCH] x86/microcode: Don't duplicate code to update ucode cpu info and cpu info

2018-07-31 Thread Greg KH
On Tue, Jul 31, 2018 at 05:29:30PM +0200, Filippo Sironi wrote: > ... on late microcode loading when handling a CPU that's already been > updated and a CPU that's yet to be updated. > > Signed-off-by: Filippo Sironi > --- > arch/x86/kernel/cpu/microcode/amd.c | 15 +-- > arch/x86/k

Re: [BUG BISECT] Ethernet fail on VF50 (OF: Don't set default coherent DMA mask)

2018-07-31 Thread Guenter Roeck
On Tue, Jul 31, 2018 at 03:09:34PM +0100, Robin Murphy wrote: > >Please note that sparc images still generate the warning (next-20180731). > > Ugh, OK, any ideas what sparc does to create these platform devices that > isn't of_platform_device_create_pdata() and has someh

Re: [PATCH 0/3] introduce memory.oom.group

2018-07-31 Thread Johannes Weiner
On Mon, Jul 30, 2018 at 06:49:31PM -0700, David Rientjes wrote: > On Mon, 30 Jul 2018, Roman Gushchin wrote: > > > This is a tiny implementation of cgroup-aware OOM killer, > > which adds an ability to kill a cgroup as a single unit > > and so guarantee the integrity of the workload. > > > > Alth

Re: [PATCH 6/6] arm64: enable RapidIO menu in Kconfig

2018-07-31 Thread Russell King - ARM Linux
On Tue, Jul 31, 2018 at 08:54:14AM -0400, Alex Bounine wrote: > On 2018-07-31 04:41 AM, Will Deacon wrote: > >On Mon, Jul 30, 2018 at 06:50:34PM -0400, Alexei Colin wrote: > >>Platforms with a PCI bus will be offered the RapidIO menu since they may > >>be want support for a RapidIO PCI device. Plat

Re: [BUG BISECT] Ethernet fail on VF50 (OF: Don't set default coherent DMA mask)

2018-07-31 Thread Stefan Agner
On 31.07.2018 14:32, Robin Murphy wrote: > On 31/07/18 09:19, Stefan Agner wrote: >> On 30.07.2018 16:38, Robin Murphy wrote: >>> On 28/07/18 17:58, Guenter Roeck wrote: On Fri, Jul 27, 2018 at 04:04:48PM +0200, Christoph Hellwig wrote: > On Fri, Jul 27, 2018 at 03:18:14PM +0200, Krzysztof

Re: [PATCH rebase/RFC 0/4] x86/kvm/nVMX: optimize MMU switch between L1 and L2

2018-07-31 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > This is a rebased version of Vitaly's RFC series. This isn't > quite ready for application as I haven't yet thought through > the interactions between the root_mmu/guest_mmu split and > the multi-root caching. > > Speaking of the multi-root caching, it is a bit of a dupli

Re: [BUG BISECT] Ethernet fail on VF50 (OF: Don't set default coherent DMA mask)

2018-07-31 Thread Robin Murphy
On 31/07/18 16:43, Guenter Roeck wrote: On Tue, Jul 31, 2018 at 03:09:34PM +0100, Robin Murphy wrote: Please note that sparc images still generate the warning (next-20180731). Ugh, OK, any ideas what sparc does to create these platform devices that isn't of_platform_device_create_pdata(

Re: [PATCH v10 7/7] Bluetooth: hci_qca: Add support for Qualcomm Bluetooth chip wcn3990

2018-07-31 Thread Matthias Kaehlcke
On Tue, Jul 31, 2018 at 08:08:40PM +0530, Balakrishna Godavarthi wrote: > Hi Matthias, > > On 2018-07-31 01:37, Matthias Kaehlcke wrote: > > On Fri, Jul 27, 2018 at 05:09:02PM +0530, Balakrishna Godavarthi wrote: > > > Hi Matthias, > > > > > > On 2018-07-27 01:21, Matthias Kaehlcke wrote: > > > >

[PATCH] lib/sg_pool,debugobjects: remove unnecessary null check when free the object

2018-07-31 Thread zhong jiang
kmem_cache_destroy/mempool_destroy has taken null check into account. so remove the redundant check. Signed-off-by: zhong jiang --- lib/debugobjects.c | 3 +-- lib/sg_pool.c | 7 +++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/debugobjects.c b/lib/debugobjects.c i

Re: [PATCH v2] prctl: add PR_[GS]ET_KILLABLE

2018-07-31 Thread Jürg Billeter
On Tue, 2018-07-31 at 16:39 +0200, Oleg Nesterov wrote: > On 07/31, Jürg Billeter wrote: > > SIGINT, SIGQUIT and SIGTSTP are used in job control for ^C, ^\, ^Z. > > While a task with the SIGNAL_UNKILLABLE flag could install handlers for > > these signals, this is not sufficient to implement a shell

Re: [PATCH v5 4/4] mm/page_alloc: Introduce free_area_init_core_hotplug

2018-07-31 Thread Pavel Tatashin
On Tue, Jul 31, 2018 at 6:17 AM Oscar Salvador wrote: > > On Mon, Jul 30, 2018 at 12:17:57PM +0200, osalva...@techadventures.net wrote: > > From: Oscar Salvador > ... > > Also, since free_area_init_core/free_area_init_node will now only get > > called during early init, let us replace > > __pagi

[PATCH v7 0/8] Introduce on-chip interconnect API

2018-07-31 Thread Georgi Djakov
Modern SoCs have multiple processors and various dedicated cores (video, gpu, graphics, modem). These cores are talking to each other and can generate a lot of data flowing through the on-chip interconnects. These interconnect buses could form different topologies such as crossbar, point to point b

[PATCH v7 4/8] interconnect: qcom: Add RPM communication

2018-07-31 Thread Georgi Djakov
On some Qualcomm SoCs, there is a remote processor, which controls some of the Network-On-Chip interconnect resources. Other CPUs express their needs by communicating with this processor. Add a driver to handle communication with this remote processor. Signed-off-by: Georgi Djakov --- .../bindin

[PATCH v7 3/8] interconnect: Add debugfs support

2018-07-31 Thread Georgi Djakov
Add a functionality to provide information about the current constraints per each node and provider. Signed-off-by: Georgi Djakov --- drivers/interconnect/core.c | 78 + 1 file changed, 78 insertions(+) diff --git a/drivers/interconnect/core.c b/drivers/inter

[PATCH v7 7/8] dt-bindings: Introduce interconnect consumers bindings

2018-07-31 Thread Georgi Djakov
Add documentation for the interconnect consumer bindings, that will allow to link a device node (consumer) to its interconnect controller hardware. Tha aim is to enable drivers to request a framework API to configure an interconnect path by providing their struct device pointer and a name. Signed

[PATCH v7 8/8] interconnect: Allow endpoints translation via DT

2018-07-31 Thread Georgi Djakov
Currently we support only platform data for specifying the interconnect endpoints. As now the endpoints are hard-coded into the consumer driver this may lead to complications when a single driver is used by multiple SoCs, which may have different interconnect topology. To avoid cluttering the consu

[PATCH v7 1/8] interconnect: Add generic on-chip interconnect API

2018-07-31 Thread Georgi Djakov
This patch introduces a new API to get requirements and configure the interconnect buses across the entire chipset to fit with the current demand. The API is using a consumer/provider-based model, where the providers are the interconnect buses and the consumers could be various drivers. The consum

[PATCH v7 6/8] interconnect: qcom: Add msm8916 interconnect provider driver

2018-07-31 Thread Georgi Djakov
Add driver for the Qualcomm interconnect buses found in msm8916 based platforms. Signed-off-by: Georgi Djakov --- drivers/interconnect/Kconfig| 5 + drivers/interconnect/Makefile | 1 + drivers/interconnect/qcom/Kconfig | 9 + drivers/interconnect/qcom/Makefile | 2 + dr

[PATCH v7 2/8] dt-bindings: Introduce interconnect provider bindings

2018-07-31 Thread Georgi Djakov
This binding is intended to represent the interconnect hardware present in some of the modern SoCs. Currently it consists only of a binding for the interconnect hardware devices (provider). Signed-off-by: Georgi Djakov --- .../bindings/interconnect/interconnect.txt| 33 +++ 1

[PATCH] nohz: Fix local_timer_softirq_pending()

2018-07-31 Thread Anna-Maria Gleixner
local_timer_softirq_pending() checks whether the timer softirq is pending with: local_softirq_pending() & TIMER_SOFTIRQ. This is wrong because TIMER_SOFTIRQ is the softirq number and not a bitmask. So the test checks for the wrong bit. Use BIT(TIMER_SOFTIRQ) instead. Fixes: 5d62c183f9e9 ("nohz:

[PATCH v7 5/8] dt-bindings: interconnect: Document qcom,msm8916 NoC bindings

2018-07-31 Thread Georgi Djakov
Document the device-tree bindings Network-On-Chip interconnect driver for Qualcomm msm8916 platforms. Signed-off-by: Georgi Djakov --- .../bindings/interconnect/qcom-msm8916.txt| 39 include/dt-bindings/interconnect/qcom.h | 187 ++ 2 files changed, 226 insertions

Re: [PATCH v5 1/3] thermal: qcom-spmi: Use PMIC thermal stage 2 for critical trip points

2018-07-31 Thread Matthias Kaehlcke
On Fri, Jul 27, 2018 at 03:40:52PM -0700, Eduardo Valentin wrote: > On Wed, Jul 25, 2018 at 06:12:28PM -0700, Matthias Kaehlcke wrote: > > Hi Doug, > > > > On Wed, Jul 25, 2018 at 04:19:56PM -0700, Doug Anderson wrote: > > > > > On Tue, Jul 24, 2018 at 4:46 PM, Matthias Kaehlcke > > > wrote: >

[PATCH] x86/platform/olpc: Use the PTR_ERR_OR_ZERO to simplify the code

2018-07-31 Thread zhong jiang
use PTR_ERR_OR_ZERO is better than the open code Signed-off-by: zhong jiang --- arch/x86/platform/olpc/olpc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/platform/olpc/olpc.c b/arch/x86/platform/olpc/olpc.c index 7c3077e..f0e920f 100644 --- a/arch/x86/platform

Re: [PATCH] lib/sg_pool,debugobjects: remove unnecessary null check when free the object

2018-07-31 Thread Thomas Gleixner
On Tue, 31 Jul 2018, zhong jiang wrote: > kmem_cache_destroy/mempool_destroy has taken null check into account. > so remove the redundant check. Please split the patch so they can be applied independently by the relevant maintainers. Thanks, tglx

Re: [PATCH v5 1/3] thermal: qcom-spmi: Use PMIC thermal stage 2 for critical trip points

2018-07-31 Thread Matthias Kaehlcke
On Fri, Jul 27, 2018 at 03:45:06PM -0700, Eduardo Valentin wrote: > On Fri, Jul 27, 2018 at 03:40:52PM -0700, Eduardo Valentin wrote: > > On Wed, Jul 25, 2018 at 06:12:28PM -0700, Matthias Kaehlcke wrote: > > > Hi Doug, > > > > > > On Wed, Jul 25, 2018 at 04:19:56PM -0700, Doug Anderson wrote: > >

Re: [PATCH] x86/microcode: Don't duplicate code to update ucode cpu info and cpu info

2018-07-31 Thread Sironi, Filippo
> On 31. Jul 2018, at 17:41, Greg KH wrote: > > On Tue, Jul 31, 2018 at 05:29:30PM +0200, Filippo Sironi wrote: >> ... on late microcode loading when handling a CPU that's already been >> updated and a CPU that's yet to be updated. >> >> Signed-off-by: Filippo Sironi >> --- >> arch/x86/kernel

Re: [PATCH] prctl: add PR_[GS]ET_KILLABLE

2018-07-31 Thread Jann Horn
On Mon, Jul 30, 2018 at 10:01 AM Jürg Billeter wrote: > > PR_SET_KILLABLE clears the SIGNAL_UNKILLABLE flag. This allows > CLONE_NEWPID tasks to restore normal signal behavior, opting out of the > special signal protection for init processes. > > This is required for job control in a shell that us

Re: [PATCH] lib/sg_pool,debugobjects: remove unnecessary null check when free the object

2018-07-31 Thread zhong jiang
On 2018/8/1 0:21, Thomas Gleixner wrote: > On Tue, 31 Jul 2018, zhong jiang wrote: > >> kmem_cache_destroy/mempool_destroy has taken null check into account. >> so remove the redundant check. > Please split the patch so they can be applied independently by the relevant > maintainers. > > Thanks, >

Re: Linux 4.18-rc7

2018-07-31 Thread Linus Torvalds
On Mon, Jul 30, 2018 at 11:40 PM Amit Pundir wrote: > > This ashmem change ^^ worked too. Ok, let's go for that one and hope it's the only one. John, can I get a proper commit message and sign-off for that ashmem change? Kirill - you mentioned that somebody reproduced a problem on x86-64 too. I

Re: [PATCH] perf/core: Fix possible Spectre-v1 for perf_swevent_enabled

2018-07-31 Thread kbuild test robot
/commits/Jinbum-Park/perf-core-Fix-possible-Spectre-v1-for-perf_swevent_enabled/20180731-235311 config: i386-randconfig-x077-201830 (attached as .config) compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 reproduce: # save the attached .config to linux build tree make ARCH=i386 All error

Re: [BUG BISECT] Ethernet fail on VF50 (OF: Don't set default coherent DMA mask)

2018-07-31 Thread Robin Murphy
On 31/07/18 16:53, Stefan Agner wrote: On 31.07.2018 14:32, Robin Murphy wrote: On 31/07/18 09:19, Stefan Agner wrote: On 30.07.2018 16:38, Robin Murphy wrote: On 28/07/18 17:58, Guenter Roeck wrote: On Fri, Jul 27, 2018 at 04:04:48PM +0200, Christoph Hellwig wrote: On Fri, Jul 27, 2018 at 0

Re: [PATCH 7/9] irqchip: add a RISC-V PLIC driver

2018-07-31 Thread Christoph Hellwig
On Fri, Jul 27, 2018 at 05:04:52PM -0700, Atish Patra wrote: >> +#define MAX_DEVICES 1024 >> +#define MAX_CONTEXTS15872 >> + > > Is there any way we can preserve some of the comments in the original patch > about memory-mapped control registers or at least a

[PATCH] lib/sg_pool: remove unnecessary null check when free the object

2018-07-31 Thread zhong jiang
kmem_cache_destroy/mempool_destroy has taken null check into account. so remove the redundant check. Signed-off-by: zhong jiang --- lib/sg_pool.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/sg_pool.c b/lib/sg_pool.c index 6dd3061..d1c1e63 100644 --- a/lib/sg_po

[PATCH] lib/debugobjects: remove redundant check when free the object

2018-07-31 Thread zhong jiang
kmem_cache_destroy has taken the null check into account. so just remove the unnecessary check. Signed-off-by: zhong jiang --- lib/debugobjects.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 994be48..7a6d80b 100644 --- a/lib/

[PATCH v3 0/4] Add the BQ25896 charger IC

2018-07-31 Thread Angus Ainslie (Purism)
Changes since v2: Remove additional un-used table entries. Use the exsisting compitble string for the new part. Voltage now doesn't depend on state "online". Angus Ainslie (Purism) (4): power: bq25890_charger.c: Add debugging output of failed initialization power: bq25890_charger.c: Remov

[PATCH v3 4/4] power: bq25890_charger.c: Read back the current battery voltage

2018-07-31 Thread Angus Ainslie (Purism)
The part has the capability of reading the current battery voltage. Signed-off-by: Angus Ainslie (Purism) --- drivers/power/supply/bq25890_charger.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c in

[PATCH v3 2/4] power: bq25890_charger.c: Remove unused table entries

2018-07-31 Thread Angus Ainslie (Purism)
There are a few table entries that aren't used. Drop them. Signed-off-by: Angus Ainslie (Purism) --- drivers/power/supply/bq25890_charger.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index 7f0b3a46c50c.

[PATCH v3 1/4] power: bq25890_charger.c: Add debugging output of failed initialization

2018-07-31 Thread Angus Ainslie (Purism)
To ease adding a new part variant some debugging is handy. Signed-off-by: Angus Ainslie (Purism) --- drivers/power/supply/bq25890_charger.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/

[PATCH v3 3/4] power: bq25890_charger.c: Add the BQ25896 part

2018-07-31 Thread Angus Ainslie (Purism)
The BQ25896 is almost identical the the BQ25890. Signed-off-by: Angus Ainslie (Purism) --- .../bindings/power/supply/bq25890.txt | 3 +++ drivers/power/supply/bq25890_charger.c| 24 +++ 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Documentation

Re: [PATCH] kernel.h: Disable -Wreturn-stack-address for _THIS_IP_

2018-07-31 Thread Nick Desaulniers
Nick-Desaulniers/kernel-h-Disable-Wreturn-stack-address-for-_THIS_IP_/20180731-135818 > config: i386-tinyconfig (attached as .config) > compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 > reproduce: > # save the attached .config to linux build tree > make ARCH=i386 > > A

Re: [PATCH v2 2/2] kernel.h: Disable -Wreturn-stack-address for _THIS_IP_

2018-07-31 Thread Nick Desaulniers
> url: > https://github.com/0day-ci/linux/commits/Nick-Desaulniers/compiler-clang-h-Add-CLANG_VERSION-and-__diag-macros/20180731-161932 > config: x86_64-fedora-25 (attached as .config) > compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 > reproduce: > # save the attached .con

Re: [PATCH] nohz: Fix local_timer_softirq_pending()

2018-07-31 Thread Paul E. McKenney
On Tue, Jul 31, 2018 at 06:13:58PM +0200, Anna-Maria Gleixner wrote: > local_timer_softirq_pending() checks whether the timer softirq is > pending with: local_softirq_pending() & TIMER_SOFTIRQ. > > This is wrong because TIMER_SOFTIRQ is the softirq number and not a > bitmask. So the test checks fo

Re: [PATCH rebase/RFC 0/4] x86/kvm/nVMX: optimize MMU switch between L1 and L2

2018-07-31 Thread Paolo Bonzini
On 31/07/2018 17:58, Vitaly Kuznetsov wrote: > Thank you for the rebase, > > it seems that with multi-root caching this series should just ignore CR3 > changes for both root_mmu and guest_mmu: we now have two separate > 'prev_roots' caches and these work well. However, we still can optimize > MMU

Re: [PATCH 7/9] irqchip: add a RISC-V PLIC driver

2018-07-31 Thread Christoph Hellwig
On Mon, Jul 30, 2018 at 08:21:33PM -0700, Atish Patra wrote: > I found the issue. As per PLIC documentation, a hart context is a given > privilege mode on a given hart. Thus, cpu context ID & cpu numbers are not > same. Here is the PLIC register Maps in U54 core: > > Ref: https://static.dev.sifiv

Re: [PATCH v2 2/2] kernel.h: Disable -Wreturn-stack-address for _THIS_IP_

2018-07-31 Thread Nick Desaulniers
-Add-CLANG_VERSION-and-__diag-macros/20180731-161932 > config: x86_64-randconfig-s1-07312048 (attached as .config) > compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 > reproduce: > # save the attached .config to linux build tree > make ARCH=x86_64 > > All error

Re: Linux 4.18-rc7

2018-07-31 Thread John Stultz
On Tue, Jul 31, 2018 at 9:29 AM, Linus Torvalds wrote: > On Mon, Jul 30, 2018 at 11:40 PM Amit Pundir wrote: >> >> This ashmem change ^^ worked too. > > Ok, let's go for that one and hope it's the only one. > > John, can I get a proper commit message and sign-off for that ashmem change? Will do.

Re: [PATCH v3 1/4] power: bq25890_charger.c: Add debugging output of failed initialization

2018-07-31 Thread Krzysztof Kozlowski
On 31 July 2018 at 18:43, Angus Ainslie (Purism) wrote: > To ease adding a new part variant some debugging is handy. > > Signed-off-by: Angus Ainslie (Purism) You missed my tag - I already reviewed it. Unless you change something, the tag should be added to commit msg: Reviewed-by: Krzysztof Koz

Re: [PATCH v3 2/4] power: bq25890_charger.c: Remove unused table entries

2018-07-31 Thread Krzysztof Kozlowski
On 31 July 2018 at 18:43, Angus Ainslie (Purism) wrote: > There are a few table entries that aren't used. Drop them. > > Signed-off-by: Angus Ainslie (Purism) > --- > drivers/power/supply/bq25890_charger.c | 5 - > 1 file changed, 5 deletions(-) Reviewed-by: Krzysztof Kozlowski Best regar

Re: [PATCH v3 3/4] power: bq25890_charger.c: Add the BQ25896 part

2018-07-31 Thread Krzysztof Kozlowski
On 31 July 2018 at 18:43, Angus Ainslie (Purism) wrote: > The BQ25896 is almost identical the the BQ25890. s/the the/to the/ > > Signed-off-by: Angus Ainslie (Purism) > --- > .../bindings/power/supply/bq25890.txt | 3 +++ > drivers/power/supply/bq25890_charger.c| 24 ++

Re: [PATCH v2 2/2] kernel.h: Disable -Wreturn-stack-address for _THIS_IP_

2018-07-31 Thread Kees Cook
On Tue, Jul 31, 2018 at 9:48 AM, Nick Desaulniers wrote: > Does anyone understand this error? The code looks just fine to me, > and the source file doesn't conflict with any of the macros I've added > (certainly not in any way that could cause an indentation error as > reported here). It does _u

Re: [PATCH v3 4/4] power: bq25890_charger.c: Read back the current battery voltage

2018-07-31 Thread Krzysztof Kozlowski
On 31 July 2018 at 18:43, Angus Ainslie (Purism) wrote: > The part has the capability of reading the current battery voltage. Instead of "part": BQ25890-family of chargers? Chip? Anyway, Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof > > Signed-off-by: Angus Ainslie (Purism) > ---

Re: [PATCH v2 2/2] kernel.h: Disable -Wreturn-stack-address for _THIS_IP_

2018-07-31 Thread Nathan Chancellor
test WARNING on v4.18-rc7 next-20180727] > > [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/Nick-Desaulniers/compiler-clang-h-Add-CLANG_VERSION-and-__

[PATCH 2/2] staging: fsl-dpaa2/eth: add SPDX license identifiers

2018-07-31 Thread Ioana Ciornei
The DPAA2 Ethernet driver files use a GPL-2.0+ OR BSD-3-Clause license. Add SPDX tags and delete the full license text, keeping the existing licenses for each file. Add a GPL-2.0 tag for the Makefile. Signed-off-by: Ioana Ciornei --- drivers/staging/fsl-dpaa2/ethernet/Makefile| 1 + ...

[PATCH 1/2] staging: fsl-dpaa2/eth: convert documentation to .rst format

2018-07-31 Thread Ioana Ciornei
Convert the DPAA2 Ethernet driver documentation to .rst format and rename the file accordingly. Also add a SPDX tag to the new rst file. Signed-off-by: Ioana Ciornei --- .../ethernet/{README => ethernet-driver.rst} | 39 +++--- 1 file changed, 19 insertions(+), 20 deletions

Re: Linux 4.18-rc7

2018-07-31 Thread Kirill A. Shutemov
On Tue, Jul 31, 2018 at 09:29:22AM -0700, Linus Torvalds wrote: > On Mon, Jul 30, 2018 at 11:40 PM Amit Pundir wrote: > > > > This ashmem change ^^ worked too. > > Ok, let's go for that one and hope it's the only one. > > John, can I get a proper commit message and sign-off for that ashmem chang

Re: [PATCH v2 05/10] ASoC: wcd9335: add CLASS-H Controller support

2018-07-31 Thread Mark Brown
On Fri, Jul 27, 2018 at 01:18:01PM +0100, Srinivas Kandagatla wrote: > + res_val = WCD9XXX_CLASSH_CTRL_VCL_VREF_FILT_R_0KOHM; > + switch (mode) { > + case CLS_H_NORMAL: > + res_val = WCD9XXX_CLASSH_CTRL_VCL_VREF_FILT_R_50KOHM; > + val = WCD9XXX_A_ANA_HPH_PWR_LEV

Re: [PATCH] nohz: Fix local_timer_softirq_pending()

2018-07-31 Thread Daniel Bristot de Oliveira
On 07/31/2018 06:13 PM, Anna-Maria Gleixner wrote: > local_timer_softirq_pending() checks whether the timer softirq is > pending with: local_softirq_pending() & TIMER_SOFTIRQ. > > This is wrong because TIMER_SOFTIRQ is the softirq number and not a > bitmask. So the test checks for the wrong bit. >

Re: [PATCH v3 02/13] coresight: etb10: Fix handling of perf mode

2018-07-31 Thread Mathieu Poirier
Hello, On Thu, Jul 26, 2018 at 01:54:40PM +0100, Suzuki K Poulose wrote: > If the ETB is already enabled in sysfs mode, the ETB reports > success even if a perf mode is requested. Fix this by checking > the requested mode. > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > drive

[PATCH] kernel/module: Use kmemdup to replace kmalloc+memcpy

2018-07-31 Thread zhong jiang
we prefer to the kmemdup rather than kmalloc+memcpy. so just replace them. Signed-off-by: zhong jiang --- kernel/module.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index 20344e4..6746c85 100644 --- a/kernel/module.c +++ b/kernel/m

Re: [PATCH v2 2/2] kernel.h: Disable -Wreturn-stack-address for _THIS_IP_

2018-07-31 Thread Nick Desaulniers
On Tue, Jul 31, 2018 at 10:02 AM Kees Cook wrote: > > On Tue, Jul 31, 2018 at 9:48 AM, Nick Desaulniers > wrote: > > Does anyone understand this error? The code looks just fine to me, > > and the source file doesn't conflict with any of the macros I've added > > (certainly not in any way that co

Re: [PATCH] sched/fair: sync expires_seq in distribute_cfs_runtime()

2018-07-31 Thread bsegall
Xunlei Pang writes: > On 7/31/18 1:55 AM, Cong Wang wrote: >> On Sun, Jul 29, 2018 at 10:29 PM Xunlei Pang >> wrote: >>> >>> Hi Cong, >>> >>> On 7/28/18 8:24 AM, Cong Wang wrote: Each time we sync cfs_rq->runtime_expires with cfs_b->runtime_expires, we should sync its ->expires_seq to

Re: [PATCH] nohz: Fix local_timer_softirq_pending()

2018-07-31 Thread Frederic Weisbecker
On Tue, Jul 31, 2018 at 06:13:58PM +0200, Anna-Maria Gleixner wrote: > local_timer_softirq_pending() checks whether the timer softirq is > pending with: local_softirq_pending() & TIMER_SOFTIRQ. > > This is wrong because TIMER_SOFTIRQ is the softirq number and not a > bitmask. So the test checks fo

[PATCH v7 2/3] Bluetooth: mediatek: Add protocol support for MediaTek serial devices

2018-07-31 Thread sean.wang
From: Sean Wang This adds a driver based on serdev driver for the MediaTek serial protocol based on running H:4, which can enable the built-in Bluetooth device inside MT7622 SoC. Signed-off-by: Sean Wang --- drivers/bluetooth/Kconfig | 11 + drivers/bluetooth/Makefile| 2 + drivers/

[PATCH v7 0/3] add support for Bluetooth on MT7622 SoC

2018-07-31 Thread sean.wang
From: Sean Wang v7 and changes since v6: - drop already applied patches - move clk_* and pm_* operation to ->open and ->close - label this driver as BT_MTKUART - make code style aligned with the other drivers and code better to read as these suggestions and fixes are mentioned in [1] [1]

[PATCH v7 1/3] dt-bindings: net: bluetooth: Add mediatek-bluetooth

2018-07-31 Thread sean.wang
From: Sean Wang Add binding document for a SoC built-in device using MediaTek protocol. Which could be found on MT7622 SoC or other similar MediaTek SoCs. Signed-off-by: Sean Wang Reviewed-by: Rob Herring --- .../devicetree/bindings/net/mediatek-bluetooth.txt | 35 ++ 1 fi

[PATCH v7 3/3] MAINTAINERS: add an entry for MediaTek Bluetooth driver

2018-07-31 Thread sean.wang
From: Sean Wang Add an entry for the MediaTek Bluetooth driver. Signed-off-by: Sean Wang --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0f2cce4..e983d9e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9144,6 +9144,14 @@ F: inclu

<    1   2   3   4   5   6   7   >