[RFC][PATCH 08/10] x86/mm/cpa: Fold cpa_flush_range() and cpa_flush_array()

2018-12-03 Thread Peter Zijlstra
Note that the cache flush loop in cpa_flush_*() is identical when we use __cpa_addr(); further observe that flush_tlb_kernel_range() is a special case of to the cpa_flush_array() TLB invalidation code. This then means the two functions are virtually identical. Fold these two functions into a singl

[RFC][PATCH 09/10] x86/mm/cpa: Better use clflushopt

2018-12-03 Thread Peter Zijlstra
Currently we issue an MFENCE before and after flushing a range. This means that if we flush a bunch of single page ranges -- like with the cpa array, we issue a whole bunch of superfluous MFENCEs. Reorgainze the code a little to avoid this. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/mm/

[RFC][PATCH 02/10] x86/mm/cpa: Add ARRAY and PAGES_ARRAY selftests

2018-12-03 Thread Peter Zijlstra
The current pageattr-test code only uses the regular range interface, add code that also tests the array and pages interface. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/mm/pageattr-test.c | 28 1 file changed, 24 insertions(+), 4 deletions(-) --- a/arch/x8

[RFC][PATCH 03/10] x86/mm/cpa: Add __cpa_addr() helper

2018-12-03 Thread Peter Zijlstra
The code to compute the virtual address of a cpa_data is duplicated; introduce a helper before more copies happen. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/mm/pageattr.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) --- a/arch/x86/mm/

[RFC][PATCH 06/10] x86/mm/cpa: Optimize cpa_flush_array() TLB invalidation

2018-12-03 Thread Peter Zijlstra
Instead of punting and doing tlb_flush_all(), do the same as flush_tlb_kernel_range() does and use single page invalidations. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/mm/mm_internal.h |2 ++ arch/x86/mm/pageattr.c| 42 -- arch/x86/mm/tl

[RFC][PATCH 07/10] x86/mm/cpa: Make cpa_data::numpages invariant

2018-12-03 Thread Peter Zijlstra
Make sure __change_page_attr_set_clr() doesn't modify cpa->numpages. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/mm/pageattr.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c @@ -1623,14 +1623,15 @@

[RFC][PATCH 00/10] x86/mm/cpa: Various fixes and improvements

2018-12-03 Thread Peter Zijlstra
With exception of the very first patch, this whole series is probablt RFC at this point. (and thanks to sending that earlier email saying that I was stumped by this crap, I instantly spotted my problem) Dave, I didn't address that tlbinv(0) point you made, mostly because I didn't have a good a

[RFC][PATCH 05/10] x86/mm/cpa: Cleanup...

2018-12-03 Thread Peter Zijlstra
Since cpa->vaddr is invariant, this means we can remove all workarounds that deal with it changing. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/mm/pageattr-test.c |7 ++- arch/x86/mm/pageattr.c | 13 - 2 files changed, 6 insertions(+), 14 deletions(-) --- a/arc

[PATCH 01/10] x86/mm/cpa: Fix cpa_flush_array() TLB invalidation

2018-12-03 Thread Peter Zijlstra
In commit: a7295fd53c39 ("x86/mm/cpa: Use flush_tlb_kernel_range()") I misread the cpa array code and incorrectly used tlb_flush_kernel_range(), resulting in missing TLB flushes and consequent failures. Instead do a full invalidate in this case -- for now. Fixes: a7295fd53c39 ("x86/mm/cpa: Us

[RFC][PATCH 04/10] x86/mm/cpa: Make cpa_data::vaddr invariant

2018-12-03 Thread Peter Zijlstra
Currently __change_page_attr_set_clr() will modify cpa->vaddr when !(CPA_ARRAY | CPA_PAGES_ARRAY), whereas in the array cases it will increment cpa->curpage. Change __cpa_addr() such that its @idx argument also works in the !array case and use cpa->curpage increments for all cases. NOTE: since cp

[RFC][PATCH 10/10] x86/mm/cpa: Rename @addrinarray

2018-12-03 Thread Peter Zijlstra
The CPA_ARRAY interface works in single pages, and everything, except in these 'few' locations is this variable called 'numpages'. Remove this abberation. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/mm/pageattr.c | 52 - 1 file changed, 26

[PATCH v3 2/2] mm: rid swapoff of quadratic complexity

2018-12-03 Thread Vineeth Remanan Pillai
This patch was initially posted by Kelley(kelley...@gmail.com). Reposting the patch with all review comments addressed and with minor modifications and optimizations. Tests were rerun and commit message updated with new results. The function try_to_unuse() is of quadratic complexity, with a lot of

Re: [PATCH v2 3/4] x86/kvm/hyper-v: direct mode for synthetic timers

2018-12-03 Thread Roman Kagan
On Mon, Nov 26, 2018 at 04:47:31PM +0100, Vitaly Kuznetsov wrote: > @@ -379,6 +398,14 @@ void kvm_hv_synic_send_eoi(struct kvm_vcpu *vcpu, int > vector) > for (i = 0; i < ARRAY_SIZE(synic->sint); i++) > if (synic_get_sint_vector(synic_read_sint(synic, i)) == vector) >

[PATCH v3 1/2] mm: Refactor swap-in logic out of shmem_getpage_gfp

2018-12-03 Thread Vineeth Remanan Pillai
swap-in logic could be reused independently without rest of the logic in shmem_getpage_gfp. So lets refactor it out as an independent function. Signed-off-by: Vineeth Remanan Pillai --- mm/shmem.c | 449 + 1 file changed, 244 insertions(+), 205

Re: [RFT PATCH v1 3/4] cpu-topology: Move cpu topology code to common code.

2018-12-03 Thread Sudeep Holla
(Fixed Juri Lelli's email) On Mon, Dec 03, 2018 at 04:58:34PM +, Will Deacon wrote: > On Thu, Nov 29, 2018 at 03:28:19PM -0800, Atish Patra wrote: > > Both RISC-V & ARM64 are using cpu-map device tree to describe > > their cpu topology. It's better to move the relevant code to > > a common pla

Re: [PATCH] fpga: stratix10-soc: fix wrong of_node_put() in init function

2018-12-03 Thread Moritz Fischer
Hi Nicolas, good catch. On Mon, Dec 3, 2018 at 8:13 AM Alan Tull wrote: > > On Mon, Dec 3, 2018 at 6:22 AM Nicolas Saenz Julienne > wrote: > > Hi Nicolas, > > Thanks for catching this! I'll fix up one formatting thing (below). > > > > > After finding a "firmware" dt node stratix10 tries to mat

Re: [PATCH v2 06/15] arm: dts: Add devicetree for OrangePi 2G IoT board

2018-12-03 Thread Olof Johansson
On Mon, Dec 3, 2018 at 7:54 AM Rob Herring wrote: > > On Tue, Nov 20, 2018 at 9:38 PM Manivannan Sadhasivam > wrote: > > > > Add initial devicetree support for OrangePi 2G IoT board from Xunlong. > > > > Signed-off-by: Andreas Färber > > Signed-off-by: Manivannan Sadhasivam > > --- > > arch/ar

Re: [PATCH 25/27] locking/lockdep: Add support for dynamic keys

2018-12-03 Thread Bart Van Assche
On Thu, 2018-11-29 at 11:10 +0100, Peter Zijlstra wrote: > On Wed, Nov 28, 2018 at 03:43:23PM -0800, Bart Van Assche wrote: > > +/* hash_entry is used to keep track of dynamically allocated keys. */ > > struct lock_class_key { > > + struct hlist_node hash_entry; > > struct lock

Re: [PATCH] Revert "exec: make de_thread() freezable (was: Re: Linux 4.20-rc4)

2018-12-03 Thread Linus Torvalds
On Mon, Dec 3, 2018 at 6:17 AM Michal Hocko wrote: > > This argument just doesn't make any sense. Rare bugs are maybe even more > annoying because you do not expect them to happen. Absolutely. And valid lockdep complaints are a real issue too. So I don't think there's any question that this sho

Re: [PATCH v2 2/3] clk: ti: check clock type before doing autoidle ops

2018-12-03 Thread Stephen Boyd
Quoting Tony Lindgren (2018-12-03 07:39:10) > * Stephen Boyd [181130 23:52]: > > Quoting Tony Lindgren (2018-11-30 07:37:29) > > > * Tero Kristo [181130 09:21]: > > > > On 30/11/2018 09:57, Stephen Boyd wrote: > > > ... > > > > > > And that way it would just propagate to the parent clock > > > d

Re: [PATCH] clk: qcom: Fix MSM8998 resets

2018-12-03 Thread Stephen Boyd
Quoting Jeffrey Hugo (2018-12-03 08:08:46) > On 12/3/2018 8:55 AM, Bjorn Andersson wrote: > > On Mon 03 Dec 07:34 PST 2018, Jeffrey Hugo wrote: > > > >> The offsets for the defined BCR reset registers does not match the hardware > >> documentation. Update the values to match the hardware document

Re: [RFT PATCH v1 4/4] RISC-V: Parse cpu topology during boot.

2018-12-03 Thread Sudeep Holla
On Thu, Nov 29, 2018 at 03:28:20PM -0800, Atish Patra wrote: > Currently, there are no topology defined for RISC-V. > Parse the cpu-map node from device tree and setup the > cpu topology. > > CPU topology after applying the patch. > $cat /sys/devices/system/cpu/cpu2/topology/core_siblings_list > 0-

Re: [PATCH] KVM/nVMX: Stop mapping the "APIC-access address" page into the kernel

2018-12-03 Thread Raslan, KarimAllah
On Mon, 2018-12-03 at 14:59 +0100, KarimAllah Ahmed wrote: > The "APIC-access address" is simply a token that the hypervisor puts into > the PFN of a 4K EPTE (or PTE if using shadow paging) that triggers APIC > virtualization whenever a page walk terminates with that PFN. This address > has to be a

Re: [RFT PATCH v1 3/4] cpu-topology: Move cpu topology code to common code.

2018-12-03 Thread Will Deacon
On Thu, Nov 29, 2018 at 03:28:19PM -0800, Atish Patra wrote: > Both RISC-V & ARM64 are using cpu-map device tree to describe > their cpu topology. It's better to move the relevant code to > a common place instead of duplicate code. > > Signed-off-by: Atish Patra > --- > arch/arm64/include/asm/to

Re: [PATCH v2] signal: add procfd_signal() syscall

2018-12-03 Thread Florian Weimer
* Christian Brauner: > Ok, I finally have access to source code again. Scratch what I said above! > I looked at the code and tested it. If the process has exited but not > yet waited upon aka is a zombie procfd_send_signal() will return 0. This > is identical to kill(2) behavior. It should've been

Re: [PATCH v11 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-03 Thread Stephen Boyd
Quoting Taniya Das (2018-12-01 19:55:03) > The CPUfreq HW present in some QCOM chipsets offloads the steps necessary > for changing the frequency of CPUs. The driver implements the cpufreq > driver interface for this hardware engine. > > Signed-off-by: Saravana Kannan > Signed-off-by: Stephen Boy

Re: [PATCH v3 03/10] sched/topology: Provide cfs_overload_cpus bitmap

2018-12-03 Thread Valentin Schneider
Hi Steve, On 26/11/2018 19:06, Steven Sistare wrote: > [...] >> Mmm I was thinking we could abuse the wrap() and start at >> (fls(prev_span) + 1), but we're not guaranteed to have contiguous spans - >> the Arm Juno for instance has [0, 3, 4], [1, 2] as MC-level domains, so >> that goes down the dr

Re: XFS patches for stable

2018-12-03 Thread Sasha Levin
On Mon, Dec 03, 2018 at 03:41:27PM +0100, Richard Weinberger wrote: On Sun, Dec 2, 2018 at 9:09 PM Greg KH wrote: On Sun, Dec 02, 2018 at 08:10:16AM -0800, Christoph Hellwig wrote: > As someone who has done xfs stable backports for a while I really don't > think the autoselection is helpful at

Re: [RFT PATCH v1 2/4] dt-binding: cpu-topology: Move cpu-map to a common binding.

2018-12-03 Thread Sudeep Holla
On Thu, Nov 29, 2018 at 03:28:18PM -0800, Atish Patra wrote: > cpu-map binding can be used to described cpu topology for both > RISC-V & ARM. It makes more sense to move the binding to document > to a common place. > > The relevant discussion can be found here. > https://lkml.org/lkml/2018/11/6/19

Re: [PATCH v11 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-12-03 Thread Stephen Boyd
Quoting Taniya Das (2018-12-01 19:55:02) > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > SoCs. This is required for managing the cpu frequency transitions which are > controlled by the hardware engine. > > Signed-off-by: Taniya Das > --- Reviewed-by: Stephen Boyd

Re: [RFT PATCH v1 1/4] Documentation: DT: arm: add support for sockets defining package boundaries

2018-12-03 Thread Sudeep Holla
On Thu, Nov 29, 2018 at 03:28:17PM -0800, Atish Patra wrote: > From: Sudeep Holla > > The current ARM DT topology description provides the operating system > with a topological view of the system that is based on leaf nodes > representing either cores or threads (in an SMT system) and a > hierarc

[PATCH] kref/kobject: Improve documentation

2018-12-03 Thread Ezequiel Garcia
The current kref and kobject documentation may be insufficient to understand these common pitfalls regarding object lifetime and object releasing. Add a bit more documentation and improve the warnings seen by the user, pointing to the right piece of documentation. Also, it's important to understa

[PATCH] proc: slightly faster /proc/*/limits

2018-12-03 Thread Alexey Dobriyan
Header of /proc/*/limits is a fixed string, so print it directly without formatting specifiers. Signed-off-by: Alexey Dobriyan --- fs/proc/base.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -581,8 +581,10 @@ static int proc_pid_li

Re: [PATCH v6 2/2] PCI: amlogic: Add the Amlogic Meson PCIe controller driver

2018-12-03 Thread Lorenzo Pieralisi
On Thu, Nov 22, 2018 at 04:53:54PM +0800, Hanjie Lin wrote: [...] > +static int meson_pcie_rd_own_conf(struct pcie_port *pp, int where, int size, > + u32 *val) > +{ > + struct dw_pcie *pci = to_dw_pcie_from_pp(pp); > + > + /* > + * there is a bug of MESO

Re: [PATCH 22/27] locking/lockdep: Reuse list entries that are no longer in use

2018-12-03 Thread Bart Van Assche
On Sat, 2018-12-01 at 21:24 +0100, Peter Zijlstra wrote: > On Thu, Nov 29, 2018 at 08:48:50AM -0800, Bart Van Assche wrote: > > On Thu, 2018-11-29 at 13:01 +0100, Peter Zijlstra wrote: > > > On Thu, Nov 29, 2018 at 11:49:02AM +0100, Peter Zijlstra wrote: > > > > On Wed, Nov 28, 2018 at 03:43:20PM -

[PATCH] proc: delete unnecessary variable in proc_alloc_inode()

2018-12-03 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan --- fs/proc/inode.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -59,7 +59,6 @@ static struct kmem_cache *pde_opener_cache __ro_after_init; static struct inode *proc_alloc_inode(struct super_block *sb)

Re: [PATCH v10 18/27] drivers: firmware: psci: Add support for PM domains using genpd

2018-12-03 Thread Lina Iyer
On Thu, Nov 29 2018 at 10:49 -0700, Ulf Hansson wrote: When the hierarchical CPU topology layout is used in DT, we need to setup the corresponding PM domain data structures, as to allow a CPU and a group of CPUs to be power managed accordingly. Let's enable this by deploying support through the g

Re: [PATCH] binder: remove BINDER_DEBUG_ENTRY()

2018-12-03 Thread Todd Kjos
On Fri, Nov 30, 2018 at 5:26 PM Yangtao Li wrote: > > We already have the DEFINE_SHOW_ATTRIBUTE.There is no need to define > such a macro,so remove BINDER_DEBUG_ENTRY. > > Signed-off-by: Yangtao Li Acked-by: Todd Kjos > --- > drivers/android/binder.c | 48 ++---

Re: [PATCH] misc: vexpress: Off by one in vexpress_syscfg_exec()

2018-12-03 Thread Sudeep Holla
On Mon, Dec 03, 2018 at 05:52:19PM +0300, Dan Carpenter wrote: > The > comparison should be >= to prevent reading beyond the end of the > func->template[] array. > > (The func->template array is allocated in vexpress_syscfg_regmap_init() > and it has func->num_templates elements.) > > Fixes: 974c

RE: [PATCH v3] x86/hyper-v: Mark TLFS structures packed

2018-12-03 Thread Michael Kelley
From: Vitaly Kuznetsov Sent: Monday, December 3, 2018 6:07 AM > > The TLFS structures are used for hypervisor-guest communication and must > exactly meet the specification. > > Compilers can add alignment padding to structures or reorder struct members > for randomization and optimization, whic

Re: [PATCH -next] cpuset: Remove set but not used variable 'cs'

2018-12-03 Thread Tejun Heo
On Sat, Dec 01, 2018 at 03:12:56AM +, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > kernel/cgroup/cpuset.c: In function 'cpuset_cancel_attach': > kernel/cgroup/cpuset.c:2167:17: warning: > variable 'cs' set but not used [-Wunused-but-set-variable] > > It never used s

RE: [RFC/RFT][PATCH v6] cpuidle: New timer events oriented governor for tickless systems

2018-12-03 Thread Doug Smythies
Hi Giovanni, Perhaps I should go off-list for this, not sure. I had the thought that I should be able to get similar results as your "8x-SKYLAKE-UMA" on my test computer, i7-2600K. Or that at least it was worth trying, just to see. I couldn't find the same or similar test on Phoronix, and my atte

Re: [PATCH v3] tty: serial: qcom_geni_serial: Fix softlock

2018-12-03 Thread Stephen Boyd
Quoting Ryan Case (2018-11-29 18:18:40) > Transfers were being divided into device FIFO sized (64 byte max) > operations which would poll for completion within a spin_lock_irqsave / > spin_unlock_irqrestore block. This both made things slow by waiting for > the FIFO to completely drain before addin

Re: [RFC PATCH v4 00/13] ktask: multithread CPU-intensive kernel work

2018-12-03 Thread Tejun Heo
Hello, On Fri, Nov 30, 2018 at 04:13:07PM -0800, Daniel Jordan wrote: > On Fri, Nov 30, 2018 at 11:18:19AM -0800, Tejun Heo wrote: > > Hello, > > > > On Mon, Nov 05, 2018 at 11:55:45AM -0500, Daniel Jordan wrote: > > > Michal, you mentioned that ktask should be sensitive to CPU > > > utilization

Build regressions/improvements in v4.20-rc5

2018-12-03 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.20-rc5[1] compared to v4.19[2]. Summarized: - build errors: +3/-0 - build warnings: +489/-441 JFYI, when comparing v4.20-rc5[1] to v4.20-rc4[3], the summaries are: - build errors: +0/-0 - build warnings: +139/-173 Ha

Re: [PATCH -V7 RESEND 08/21] swap: Support to read a huge swap cluster for swapin a THP

2018-12-03 Thread Daniel Jordan
On Sat, Dec 01, 2018 at 08:34:06AM +0800, Huang, Ying wrote: > Daniel Jordan writes: > > What do you think? > > I think that swapoff() which is the main user of try_to_unuse() isn't a > common operation in practical. So it's not necessary to make it more > complex for this. Ok, probably not wor

[PATCH v2] clk: qcom: Fix MSM8998 resets

2018-12-03 Thread Jeffrey Hugo
The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation. Fixes: b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GCC) driver) Signed-off-by: Jeffrey Hugo Reviewed-by: Bjorn Andersson --- v2: -Fix

Re: [PATCH] fpga: stratix10-soc: fix wrong of_node_put() in init function

2018-12-03 Thread Alan Tull
On Mon, Dec 3, 2018 at 6:22 AM Nicolas Saenz Julienne wrote: Hi Nicolas, Thanks for catching this! I'll fix up one formatting thing (below). > > After finding a "firmware" dt node stratix10 tries to match it's > compatible string with it. To do so it's calling of_find_matching_node() > which a

Re: [PATCH -tip] kernel/sched,wake_q: Branch predict wake_q_add() cmpxchg

2018-12-03 Thread Waiman Long
On 12/03/2018 12:31 AM, Davidlohr Bueso wrote: > The cmpxchg will fail when the task is already in the process > of waking up, and as such is an extremely rare occurrence. > Micro-optimize the call and put an unlikely() around it. > > To no surprise, when using CONFIG_PROFILE_ANNOTATED_BRANCHES > u

Re: [PATCH] clk: qcom: Fix MSM8998 resets

2018-12-03 Thread Jeffrey Hugo
On 12/3/2018 8:55 AM, Bjorn Andersson wrote: On Mon 03 Dec 07:34 PST 2018, Jeffrey Hugo wrote: The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation. Sorry for not spotting this before. Fixes: b5f5f

Re: [PATCH 2/2] ALSA: hda/hdmi - Add Tegra186 and Tegra194 support

2018-12-03 Thread Takashi Iwai
On Mon, 03 Dec 2018 16:53:17 +0100, Thierry Reding wrote: > > From: Thierry Reding > > Tegra186 and Tegra194 contain the same codecs as earlier chips and can > be supported using the same patch function. > > Signed-off-by: Thierry Reding Applied now, thanks. Takashi

Re: [PATCH] clk: qcom: Fix MSM8998 resets

2018-12-03 Thread Bjorn Andersson
On Mon 03 Dec 07:34 PST 2018, Jeffrey Hugo wrote: > The offsets for the defined BCR reset registers does not match the hardware > documentation. Update the values to match the hardware documentation. > Sorry for not spotting this before. > Fixes: b5f5f525c547 (clk: qcom: Add MSM8998 Global Clo

Re: [PATCH 1/2] ALSA: hda/tegra - Probe up to 8 codecs

2018-12-03 Thread Takashi Iwai
On Mon, 03 Dec 2018 16:53:16 +0100, Thierry Reding wrote: > > From: Thierry Reding > > Recent devices support more than the 4 codecs that the AZX core will > probe by default. Probe up to 8 codecs to make sure all of them are > enumerated. > > Suggested-by: Sameer Pujar > Signed-off-by: Thierr

[tip:x86/urgent] x86/boot: Clear RSDP address in boot_params for broken loaders

2018-12-03 Thread tip-bot for Juergen Gross
Commit-ID: 182ddd16194cd082f25fa1b063dae3c7c5cce384 Gitweb: https://git.kernel.org/tip/182ddd16194cd082f25fa1b063dae3c7c5cce384 Author: Juergen Gross AuthorDate: Mon, 3 Dec 2018 11:38:11 +0100 Committer: Ingo Molnar CommitDate: Mon, 3 Dec 2018 11:56:37 +0100 x86/boot: Clear RSDP addres

Re: [PATCH v2 06/15] arm: dts: Add devicetree for OrangePi 2G IoT board

2018-12-03 Thread Rob Herring
On Tue, Nov 20, 2018 at 9:38 PM Manivannan Sadhasivam wrote: > > Add initial devicetree support for OrangePi 2G IoT board from Xunlong. > > Signed-off-by: Andreas Färber > Signed-off-by: Manivannan Sadhasivam > --- > arch/arm/boot/dts/Makefile| 2 + > .../boot/dts/rda8810pl

[PATCH 2/2] ALSA: hda/hdmi - Add Tegra186 and Tegra194 support

2018-12-03 Thread Thierry Reding
From: Thierry Reding Tegra186 and Tegra194 contain the same codecs as earlier chips and can be supported using the same patch function. Signed-off-by: Thierry Reding --- sound/pci/hda/patch_hdmi.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hd

[PATCH 1/2] ALSA: hda/tegra - Probe up to 8 codecs

2018-12-03 Thread Thierry Reding
From: Thierry Reding Recent devices support more than the 4 codecs that the AZX core will probe by default. Probe up to 8 codecs to make sure all of them are enumerated. Suggested-by: Sameer Pujar Signed-off-by: Thierry Reding --- sound/pci/hda/hda_tegra.c | 2 +- 1 file changed, 1 insertion(

Re: [PATCH v9 3/4] seccomp: add a return code to trap to userspace

2018-12-03 Thread Tycho Andersen
On Sun, Dec 02, 2018 at 11:26:50PM -0600, Serge E. Hallyn wrote: > On Sun, Dec 02, 2018 at 08:28:26PM -0700, Tycho Andersen wrote: > > +struct seccomp_knotif { > > + /* The struct pid of the task whose filter triggered the notification */ > > + struct task_struct *task; > > + > > + /* The "co

Re: [PATCH] mailbox: ti-msgmgr: Off by one in ti_msgmgr_of_xlate()

2018-12-03 Thread Nishanth Menon
On 17:50-20181203, Dan Carpenter wrote: > The > comparison should be >= or we access one element beyond the end > of the array. > > (The inst->qinsts[] array is allocated in the ti_msgmgr_probe() function > and it has ->num_valid_queues elements.) > > Fixes:

Re: [PATCH v2 00/15] ARM: sunxi: Enable Broadcom-based Bluetooth controllers

2018-12-03 Thread Chen-Yu Tsai
On Wed, Nov 28, 2018 at 12:25 PM Chen-Yu Tsai wrote: > > Hi, > > On Thu, Nov 15, 2018 at 5:36 PM Chen-Yu Tsai wrote: > > > > Hi everyone, > > > > This is v2 of my Broadcom-based Bluetooth controllers on Allwinner SoC- > > based SBCs series. > > > > Changes since v1: > > > > - Collected tags > >

Re: [PATCH v8 2/3] x86: add support for Huawei WMI hotkeys.

2018-12-03 Thread Takashi Iwai
On Mon, 03 Dec 2018 16:46:01 +0100, ayman.baga...@gmail.com wrote: > > > > + priv->cdev.name = "platform::micmute"; > > > + priv->cdev.max_brightness = 1; > > > + priv->cdev.brightness_set_blocking = > > > huawei_wmi_micmute_led_set; > > > + priv->cdev.default_trigger = "audio-micmute"; > > > + pr

Re: [PATCH 02/14] dt-bindings: soc: milbeaut: Add Milbeaut trampoline description

2018-12-03 Thread Rob Herring
On Mon, Dec 3, 2018 at 1:42 AM Sugaya, Taichi wrote: > > Hi, > > On 2018/11/30 17:16, Stephen Boyd wrote: > > Quoting Sugaya, Taichi (2018-11-29 04:24:51) > >> On 2018/11/28 11:01, Stephen Boyd wrote: > >>> Quoting Sugaya Taichi (2018-11-18 17:01:07) > create mode 100644 > Documentat

Re: [PATCH v8 3/3] ALSA: hda: add support for Huawei WMI micmute LED

2018-12-03 Thread ayman . bagabas
On Mon, 2018-12-03 at 13:00 +0100, Takashi Iwai wrote: > On Fri, 30 Nov 2018 00:57:38 +0100, > Ayman Bagabas wrote: > > Some of Huawei laptops come with a LED in the micmute key. This > > patch > > enables the use of micmute LED for these devices: > > 1. Matebook X (19e5:3200), (19e5:3201) > > 2. M

Gooday To You,

2018-12-03 Thread Ali Hamadu
Gooday To You, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Gooday To You,

2018-12-03 Thread Ali Hamadu
Gooday To You, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Re: [PATCH 0/2] pinctrl: sunxi: a64: Drop numeral from csi0/ts0

2018-12-03 Thread Maxime Ripard
On Mon, Dec 03, 2018 at 11:40:58PM +0800, Chen-Yu Tsai wrote: > Hi everyone, > > This small series renames the csi0 and ts0 pin function names to csi and > ts. This makes the names match the datasheet. As there are only one of > each type of controller, having a numeral suffix doesn't make sense.

Re: [PATCH v8 2/3] x86: add support for Huawei WMI hotkeys.

2018-12-03 Thread ayman . bagabas
On Mon, 2018-12-03 at 13:00 +0100, Takashi Iwai wrote: > On Fri, 30 Nov 2018 00:57:37 +0100, > Ayman Bagabas wrote: > > This driver adds support for missing hotkeys on some Huawei > > laptops. > > Laptops such as the Matebook X have non functioning hotkeys. > > Whereas > > newer laptops such as the

Re: [PATCH v5 0/2] Add device driver for APU2/APU3 GPIOs

2018-12-03 Thread Andy Shevchenko
On Mon, Dec 3, 2018 at 9:58 AM Florian Eckert wrote: > >> > Btw, is the statement in above email still actual? "...I can fix > >> > required things." > > > >> Yes i will fix your hints tomorrow and send a v6 of my patchset. > >> Thank you for your hints and time > >> It would be nice if you could

[PATCH 0/2] pinctrl: sunxi: a64: Drop numeral from csi0/ts0

2018-12-03 Thread Chen-Yu Tsai
Hi everyone, This small series renames the csi0 and ts0 pin function names to csi and ts. This makes the names match the datasheet. As there are only one of each type of controller, having a numeral suffix doesn't make sense. I'd like to do the rename now while we don't have users nor support for

Re: [PATCH 0/4] x86/mm/cpa: Fix cpa-array TLB invalidation

2018-12-03 Thread Peter Zijlstra
On Fri, Nov 30, 2018 at 04:19:46PM +, StDenis, Tom wrote: > NAK I get a failure in TTM on init with your x86/mm branch (see attached > dmesg). So the good news is that with some additional self-tests I can trivially reproduce this. The bad news is that an otherwise straight forward cleanup se

Re: [PATCH v2 2/3] clk: ti: check clock type before doing autoidle ops

2018-12-03 Thread Tony Lindgren
* Stephen Boyd [181130 23:52]: > Quoting Tony Lindgren (2018-11-30 07:37:29) > > Hi, > > > > * Tero Kristo [181130 09:21]: > > > On 30/11/2018 09:57, Stephen Boyd wrote: > > > > No that is not preferred. Can the omap2_clk_deny_idle() function be > > > > integrated closer into the clk framework i

Re: [PATCH 05/12] PCI: aardvark: add suspend to RAM support

2018-12-03 Thread Miquel Raynal
Hi Lorenzo, Lorenzo Pieralisi wrote on Mon, 3 Dec 2018 10:27:08 +: > [+Rafael, Sudeep] > > On Fri, Nov 23, 2018 at 03:18:24PM +0100, Miquel Raynal wrote: > > Add suspend and resume callbacks. The priority of these are > > "_noirq()", to workaround early access to the registers done by the >

[PATCH] clk: qcom: Fix MSM8998 resets

2018-12-03 Thread Jeffrey Hugo
The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation. Fixes: b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GCC) driver) Signed-off-by: Jeffrey Hugo --- drivers/clk/qcom/gcc-msm8998.c | 38 ++

Re: [PATCH v14 04/11] livepatch: Refuse to unload only livepatches available during a forced transition

2018-12-03 Thread Miroslav Benes
You probably forgot to replace the subject with Josh's proposal. > module_put() is currently never called in klp_complete_transition() when > klp_force is set. As a result, we might keep the reference count even when > klp_enable_patch() fails and klp_cancel_transition() is called. Correct. > Th

Re: [PATCH v10] i2c: Add drivers for the AMD PCIe MP2 I2C controller

2018-12-03 Thread Shah, Nehal-bakulchandra
On 11/27/2018 10:09 PM, Elie Morisse wrote: > Hi Nehal-bakulchandra, > >> There was intention behind to make two separate driver for pci and I2c. > It has future usecase in our platforms and hence we made modular designed. > So better to make it two separate driver. > > I merged the two modules

Re: v4.14 fix for Hikey 960 unbalanced IRQ enablement

2018-12-03 Thread Sasha Levin
On Mon, Dec 03, 2018 at 03:42:41PM +0100, Daniel Lezcano wrote: On 03/12/2018 15:14, Greg KH wrote: On Mon, Dec 03, 2018 at 11:31:02AM -0200, Rafael David Tinoco wrote: Sasha, could you consider including this cherry-picked patchset in v4.14. Kernel v4.14 might suffer from the following unbala

Re: [PATCH 2/3] mm/vmscan: Enable kswapd to reclaim low-protected memory

2018-12-03 Thread Xunlei Pang
On 2018/12/3 下午7:56, Michal Hocko wrote: > On Mon 03-12-18 16:01:18, Xunlei Pang wrote: >> There may be cgroup memory overcommitment, it will become >> even common in the future. >> >> Let's enable kswapd to reclaim low-protected memory in case >> of memory pressure, to mitigate the global direct r

[PATCH v11] i2c: Add drivers for the AMD PCIe MP2 I2C controller

2018-12-03 Thread Elie Morisse
MP2 controllers have two separate busses, so may accommodate up to two I2C adapters. Those adapters are listed in the ACPI namespace with the "AMDI0011" HID, and probed by a platform driver. Communication with the MP2 takes place through iomapped registers, or through DMA for more than 32 bytes tr

Re: [PATCH 1/2] thermal/int340x_thermal: Add additional UUIDs

2018-12-03 Thread Zhang Rui
Hi, Matthew, On 三, 2018-10-10 at 01:30 -0700, Matthew Garrett wrote: > Platforms support more DPTF policies than the driver currently > exposes. > Add them. This effectively reverts > 31908f45a583e8f21db37f402b6e8d5739945afd which removed several UUIDs > without explaining why. > I'm going to app

Re: [PATCH 12/22] mfd: sta2x11: drop unused MODULE_ tags from non-modular code

2018-12-03 Thread Paul Gortmaker
[Re: [PATCH 12/22] mfd: sta2x11: drop unused MODULE_ tags from non-modular code] On 03/12/2018 (Mon 11:14) Lee Jones wrote: > On Sun, 02 Dec 2018, Paul Gortmaker wrote: > > > The Kconfig currently controlling compilation of this code is: > > > > drivers/mfd/Kconfig:config MFD_STA2X11 > > driver

Re: [PATCH] printk: Add caller information to printk() output.

2018-12-03 Thread Petr Mladek
On Sat 2018-12-01 23:44:37, Tetsuo Handa wrote: > On 2018/12/01 0:40, Petr Mladek wrote: > >> Some examples for console output: > >> > >> [0.293000] [T1] smpboot: CPU0: Intel(R) Core(TM) i5-4440S CPU @ > >> 2.80GHz (family: 0x6, model: 0x3c, stepping: 0x3) > >> [0.299733] [T1] Performa

Re: [PATCH] printk: don't unconditionally shortcut print_time()

2018-12-03 Thread Tetsuo Handa
On 2018/12/03 23:14, Petr Mladek wrote: > Well, IMHO, it does not explain the pagefault above. The copy_to_user() > could come either from syslog_print() or from syslog_print_all(). They > both have their own checks that prevent the buf overflow. > > The code is tricky but it looks safe now. Is it

Re: [PATCH v14 03/11] livepatch: Consolidate klp_free functions

2018-12-03 Thread Miroslav Benes
On Thu, 29 Nov 2018, Petr Mladek wrote: > -static int klp_init_patch(struct klp_patch *patch) > +/* Init operations that must succeed before klp_free_patch() can be called. > */ > +static int klp_init_patch_before_free(struct klp_patch *patch) There is no klp_free_patch() now, so the comment is

Re: [PATCH v5 RESEND] perf: Support for Arm A32/T32 instruction sets in CoreSight trace

2018-12-03 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 03, 2018 at 12:18:46PM +, Robert Walker escreveu: > This patch adds support for generating instruction samples from trace of > AArch32 programs using the A32 and T32 instruction sets. > > T32 has variable 2 or 4 byte instruction size, so the conversion between > addresses and instr

[PATCH] misc: vexpress: Off by one in vexpress_syscfg_exec()

2018-12-03 Thread Dan Carpenter
The > comparison should be >= to prevent reading beyond the end of the func->template[] array. (The func->template array is allocated in vexpress_syscfg_regmap_init() and it has func->num_templates elements.) Fixes: 974cc7b93441 ("mfd: vexpress: Define the device as MFD cells") Signed-off-by: Dan

Re: [for-next][PATCH 08/18] parisc: function_graph: Simplify with function_graph_entry()

2018-12-03 Thread Sasha Levin
On Sat, Nov 24, 2018 at 01:46:34PM -0500, Steven Rostedt wrote: On Fri, 23 Nov 2018 15:00:11 -0500 Sasha Levin wrote: What will happen with these is that once Greg's scripts process Linus's tree he'll end up with this patch series inconsistently backported to stable trees, which is not what you

Re: [PATCH] fbdev: fsl-diu: remove redundant null check on cmap

2018-12-03 Thread Timur Tabi
On 12/3/18 12:43 AM, Wen Yang wrote: The null check on &info->cmap is redundant since cmap is a struct inside fb_info and can never be null, so the check is always true. we may remove it. Signed-off-by: Wen Yang Acked-by: Timur Tabi

Re: BUG: corrupted list in freeary

2018-12-03 Thread Dmitry Vyukov
On Sat, Dec 1, 2018 at 9:22 PM Manfred Spraul wrote: > > Hi Dmitry, > > On 11/30/18 6:58 PM, Dmitry Vyukov wrote: > > On Thu, Nov 29, 2018 at 9:13 AM, Manfred Spraul > > wrote: > >> Hello together, > >> > >> On 11/27/18 4:52 PM, syzbot wrote: > >> > >> Hello, > >> > >> syzbot found the following

Re: [PATCH] clocksource: riscv_timer: Provide sched_clock

2018-12-03 Thread Daniel Lezcano
On 03/12/2018 15:50, Anup Patel wrote: > On Mon, Dec 3, 2018 at 6:29 PM Daniel Lezcano > wrote: >> >> On 03/12/2018 13:35, Anup Patel wrote: >>> Currently, we don't have a sched_clock registered for RISC-V systems. >>> This means Linux time keeping will use jiffies (running at HZ) as the >>> defa

Re: [PATCH] clocksource: riscv_timer: Provide sched_clock

2018-12-03 Thread Anup Patel
On Mon, Dec 3, 2018 at 6:29 PM Daniel Lezcano wrote: > > On 03/12/2018 13:35, Anup Patel wrote: > > Currently, we don't have a sched_clock registered for RISC-V systems. > > This means Linux time keeping will use jiffies (running at HZ) as the > > default sched_clock. > > > > To avoid this, we exp

[PATCH] mailbox: ti-msgmgr: Off by one in ti_msgmgr_of_xlate()

2018-12-03 Thread Dan Carpenter
The > comparison should be >= or we access one element beyond the end of the array. (The inst->qinsts[] array is allocated in the ti_msgmgr_probe() function and it has ->num_valid_queues elements.) Fixes: a2b79838b891 ("mailbox: ti-msgmgr: Add support for Secure Proxy") Signed-off-by: Dan Carpent

[PATCH] dmaengine: dmatest: fix a small memory leak in dmatest_func()

2018-12-03 Thread Dan Carpenter
We recently moved the test size tests around but it means we need to adjust the error handling as well or we leak the "pq_coefs" memory. I updated the label name to reflect that we're freeing coefs. Fixes: 787d3083caf8 ("dmaengine: dmatest: move size checks earlier in function") Signed-off-by: Da

Re: [PATCH 1/3] mm/memcg: Fix min/low usage in propagate_protected_usage()

2018-12-03 Thread Xunlei Pang
On 2018/12/3 下午7:54, Michal Hocko wrote: > On Mon 03-12-18 16:01:17, Xunlei Pang wrote: >> When usage exceeds min, min usage should be min other than 0. >> Apply the same for low. > > Why? What is the actual problem. children_min_usage tracks the total children usages under min, it's natural that

Re: [PATCH] Revert "exec: make de_thread() freezable (was: Re: Linux 4.20-rc4)

2018-12-03 Thread Pavel Machek
On Mon 2018-12-03 15:17:37, Michal Hocko wrote: > On Mon 03-12-18 15:14:59, Pavel Machek wrote: > > On Mon 2018-12-03 14:53:51, Michal Hocko wrote: > > > On Mon 03-12-18 14:10:06, Pavel Machek wrote: > > > > On Mon 2018-12-03 13:38:57, Michal Hocko wrote: > > > > > On Mon 03-12-18 13:31:49, Oleg Ne

Re: v4.14 fix for Hikey 960 unbalanced IRQ enablement

2018-12-03 Thread Daniel Lezcano
On 03/12/2018 15:14, Greg KH wrote: > On Mon, Dec 03, 2018 at 11:31:02AM -0200, Rafael David Tinoco wrote: >> Sasha, could you consider including this cherry-picked patchset in v4.14. >> >> Kernel v4.14 might suffer from the following unbalanced enablement for the >> board Hikey 960: >> >> Nov 5

Re: XFS patches for stable

2018-12-03 Thread Richard Weinberger
On Sun, Dec 2, 2018 at 9:09 PM Greg KH wrote: > > On Sun, Dec 02, 2018 at 08:10:16AM -0800, Christoph Hellwig wrote: > > As someone who has done xfs stable backports for a while I really don't > > think the autoselection is helpful at all. > > autoselection for xfs patches has been turned off for

Re: [PATCH 00/13 v2] Regulator ena_gpiod fixups

2018-12-03 Thread Marek Szyprowski
PID: 1 at drivers/gpio/gpiolib-devres.c:336 s2mps11_pmic_probe+0x1c4/0x49c Modules linked in: CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.20.0-rc5-next-20181203-00020-gf6d64d46ca8c #1156 Hardware name: SAMSUNG EXYNOS (Flattened Device Tree) [] (unwind_backtrace) from [] (show_stack+0x10/0x14) []

Re: [PATCH v2] mm: prototype: rid swapoff of quadratic complexity

2018-12-03 Thread Vineeth Remanan Pillai
Hi Matthew, This seems terribly complicated.  You run through i_pages, record the indices of the swap entries, then go back and look them up again by calling shmem_getpage() which calls the incredibly complex 300 line shmem_getpage_gfp(). Can we refactor shmem_getpage_gfp() to skip some of the

[PATCH v2 1/5] devfreq: refactor set_target frequency function

2018-12-03 Thread Lukasz Luba
The refactoring is needed for the new client in devfreq: suspend. To avoid code duplication, move it to the new local function devfreq_set_target. The patch is based on earlier work by Tobias Jakobi. Suggested-by: Tobias Jakobi Suggested-by: Chanwoo Choi Signed-off-by: Lukasz Luba --- drivers

Re: [PATCH v2 2/4] clk: core: link consumer with clock driver

2018-12-03 Thread Miquel Raynal
Hello, kbuild test robot wrote on Sat, 1 Dec 2018 08:29:05 +0800: > Hi Miquel, > > I love your patch! Yet something to improve: > > [auto build test ERROR on clk/clk-next] > [also build test ERROR on v4.20-rc4 next-20181130] > [if your patch is applied to the wrong git tree, please drop us a n

<    1   2   3   4   5   6   7   8   9   >