Re: [PATCH v2 02/10] ARM: dts: s5pv210: Add initial DTS for Samsung Aries based phones

2018-06-28 Thread Paweł Chmiel
On Thursday, June 28, 2018 9:48:48 AM CEST Krzysztof Kozlowski wrote: > On 28 June 2018 at 09:41, Krzysztof Kozlowski wrote: > > On 27 June 2018 at 19:12, Paweł Chmiel > > wrote: > >> This DTS file have initial support Samsung Aries based phones. > >> Initial version have support for: > >> - sdc

[PATCH] memcg, oom: move out_of_memory back to the charge path

2018-06-28 Thread Michal Hocko
From: Michal Hocko 3812c8c8f395 ("mm: memcg: do not trap chargers with full callstack on OOM") has changed the ENOMEM semantic of memcg charges. Rather than invoking the oom killer from the charging context it delays the oom killer to the page fault path (pagefault_out_of_memory). This in turn me

RE: [PATCH 3/3] KVM: x86: hyperv: implement PV IPI send hypercalls

2018-06-28 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov > Sent: Thursday, June 28, 2018 8:05 AM > To: Wanpeng Li > Cc: Radim Krcmar ; kvm ; > Paolo Bonzini ; Roman Kagan > ; KY Srinivasan ; Haiyang > Zhang ; Stephen Hemminger > ; Michael Kelley (EOSG) > ; Mohammed Gamal > ; Cathy Avery ; LKML k

Re: [PATCH] Staging: comedi: fix operator '=' coding style issue

2018-06-28 Thread Greg KH
On Tue, Jun 19, 2018 at 06:23:52PM +0200, Vitor Fernandes Ferreira wrote: > Signed-off-by: Vitor Fernandes Ferreira > --- > drivers/staging/comedi/comedi_fops.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent h

Re: [PATCH 3/3] KVM: x86: hyperv: implement PV IPI send hypercalls

2018-06-28 Thread Vitaly Kuznetsov
Wanpeng Li writes: > Hi Paolo and Radim, > > I have already completed the patches for linux guest/kvm/qemu w/ vCPUs > <= 64, however, extra complication as the ex in hyperv should be > introduced for vCPUs > 64, so do you think vCPU <=64 is enough for > linux guest or should me introduce two hype

Re: [PATCH] nvme: trace: add disk name to tracepoints

2018-06-28 Thread Keith Busch
On Thu, Jun 28, 2018 at 05:34:07PM +0300, Sagi Grimberg wrote: > > > Thinking more on this, not using the hw qid really limits the utility > > out of using these trace events: We may not be able to match a completion > > to the submission without it since cmdid alone isn't enough to match up > > t

RE: [PATCH v7] tpm: separate cmd_ready/go_idle from runtime_pm

2018-06-28 Thread Winkler, Tomas
> > On Wed, 2018-06-27 at 21:13 +, Winkler, Tomas wrote: > > Very well, I will remove the NESTED flag. though I have feeling you > > are shooting from the hip you didn't really read the code. > > Please there anyone who can review the code? > > Asking to change a minor thing in a patch doe

Re: staging: rtl8723bs: bug or pointless if else ?

2018-06-28 Thread Hans de Goede
Hi, On 28-06-18 17:00, Michael Straube wrote: On 06/28/18 11:34, Bastien Nocera wrote: On Thu, 2018-06-28 at 10:22 +0200, Hans de Goede wrote: Hi, On 28-06-18 09:43, Michael Straube wrote: Hi, I stumbled upon the following if else construct in drivers/staging/rtl8723bs/os_dep/sdio_intf.c:61

Re: staging: rtl8723bs: bug or pointless if else ?

2018-06-28 Thread Michael Straube
On 06/28/18 11:34, Bastien Nocera wrote: On Thu, 2018-06-28 at 10:22 +0200, Hans de Goede wrote: Hi, On 28-06-18 09:43, Michael Straube wrote: Hi, I stumbled upon the following if else construct in drivers/staging/rtl8723bs/os_dep/sdio_intf.c:618 if (pwrpriv->bInternalAutoSuspend)

Re: [RFC PATCH 04/16] x86/split_lock: Use non locked bit set instruction in set_cpu_cap

2018-06-28 Thread Fenghua Yu
On Thu, Jun 28, 2018 at 07:23:22AM -0700, Fenghua Yu wrote: > On Thu, Jun 28, 2018 at 09:53:17AM +0200, Thomas Gleixner wrote: > > On Wed, 27 Jun 2018, Fenghua Yu wrote: > > > On Thu, Jun 21, 2018 at 09:55:40PM +0200, Peter Zijlstra wrote: > > > > On Sun, May 27, 2018 at 08:45:53AM -0700, Fenghua Y

[PATCH] arm64: acpi: reenumerate topology ids

2018-06-28 Thread Andrew Jones
When booting with devicetree, and the devicetree has the cpu-map node, the topology IDs that are visible from sysfs are generated with counters. ACPI, on the other hand, uses ACPI table pointer offsets, which, while guaranteed to be unique, look a bit weird. Instead, we can generate DT identical to

Re: [PATCH/RFC] mm: do not drop unused pages when userfaultd is running

2018-06-28 Thread Christian Borntraeger
On 06/28/2018 04:49 PM, David Hildenbrand wrote: > On 28.06.2018 16:39, Christian Borntraeger wrote: >> >> >> On 06/28/2018 03:18 PM, David Hildenbrand wrote: >>> On 28.06.2018 14:39, Christian Borntraeger wrote: KVM guests on s390 can notify the host of unused pages. This can result i

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Andrew Jones
On Thu, Jun 28, 2018 at 03:09:19PM +0100, Sudeep Holla wrote: > > > On 28/06/18 14:19, Jeremy Linton wrote: > > Hi, > > > > On 06/28/2018 07:12 AM, Sudeep Holla wrote: > > [...] > > >> > >> OK sure. I liked the approach in Shunyong's patch. I was thinking if we > >> can avoid the list and dyna

Re: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-28 Thread Wei Xu
Hi Will, On 2018/6/27 14:28, Will Deacon wrote: > On Wed, Jun 27, 2018 at 02:22:03PM +0100, Wei Xu wrote: >> On 2018/6/26 18:47, Will Deacon wrote: >>> If you look at the __idmap_kpti_put_pgtable_ent_ng asm macro, can you try >>> replacing: >>> >>> dc civac, cur_\()\type\()p >>> >>> with:

Re: [PATCH/RFC] mm: do not drop unused pages when userfaultd is running

2018-06-28 Thread David Hildenbrand
On 28.06.2018 16:39, Christian Borntraeger wrote: > > > On 06/28/2018 03:18 PM, David Hildenbrand wrote: >> On 28.06.2018 14:39, Christian Borntraeger wrote: >>> KVM guests on s390 can notify the host of unused pages. This can result >>> in pte_unused callbacks to be true for KVM guest memory. >>

Re: [PATCH 2/3][RFC] PM / Hibernate: Encrypt the snapshot pages before submitted to the block device

2018-06-28 Thread Yu Chen
Hi, On Thu, Jun 28, 2018 at 10:28:56PM +0800, joeyli wrote: > On Thu, Jun 28, 2018 at 09:50:17PM +0800, Yu Chen wrote: > > Hi, > > On Thu, Jun 28, 2018 at 09:07:20PM +0800, joeyli wrote: > > > Hi Chen Yu, > > > > > > On Wed, Jun 20, 2018 at 05:40:32PM +0800, Chen Yu wrote: > > > > Use the helper f

Re: [PATCH 0/8] Improve Python 3 support in perf

2018-06-28 Thread Arnaldo Carvalho de Melo
Em Tue, May 08, 2018 at 09:27:42PM +, Jeremy Cline escreveu: > Hi folks, > > This patch set adds Python 3 support to a number of perf scripts, > including those generated by "perf script -g python", without breaking > Python 2 compatibility. Argh, this fell thru the cracks, sorry, all seems o

Re: [PATCH/RFC] mm: do not drop unused pages when userfaultd is running

2018-06-28 Thread Christian Borntraeger
On 06/28/2018 03:18 PM, David Hildenbrand wrote: > On 28.06.2018 14:39, Christian Borntraeger wrote: >> KVM guests on s390 can notify the host of unused pages. This can result >> in pte_unused callbacks to be true for KVM guest memory. >> >> If a page is unused (checked with pte_unused) we might

Re: [PATCH] nvme: trace: add disk name to tracepoints

2018-06-28 Thread Sagi Grimberg
Thinking more on this, not using the hw qid really limits the utility out of using these trace events: We may not be able to match a completion to the submission without it since cmdid alone isn't enough to match up the two events. Here's an updated proposal and actually tested. I was also abl

Re: [V9fs-developer] [PATCH 4/6] 9p: Remove an unnecessary memory barrier

2018-06-28 Thread Dominique Martinet
Matthew Wilcox wrote on Thu, Jun 28, 2018: > How about this? > > /* >* This barrier is needed to make sure any change made to req before > - * the other thread wakes up will indeed be seen by the waiting side. > + * the status change is visible to another thread >*/

Re: [PATCH 2/3][RFC] PM / Hibernate: Encrypt the snapshot pages before submitted to the block device

2018-06-28 Thread joeyli
On Thu, Jun 28, 2018 at 09:50:17PM +0800, Yu Chen wrote: > Hi, > On Thu, Jun 28, 2018 at 09:07:20PM +0800, joeyli wrote: > > Hi Chen Yu, > > > > On Wed, Jun 20, 2018 at 05:40:32PM +0800, Chen Yu wrote: > > > Use the helper functions introduced previously to encrypt > > > the page data before they

Re: [PATCH] nubus: Set default dma mask for nubus_board devices

2018-06-28 Thread Christoph Hellwig
On Mon, Jun 25, 2018 at 09:46:11PM +1000, Finn Thain wrote: > A 32-bit mask is used by default because a NuBus slot has 32 > address/data lines and a NuBus board is free to use all of them. Looks good:

Re: [PATCH 2/3] pinctrl: msm: Mux out gpio function with gpio_request()

2018-06-28 Thread Linus Walleij
On Fri, Jun 22, 2018 at 8:29 PM Bjorn Andersson wrote: > On Fri 22 Jun 10:58 PDT 2018, Bjorn Andersson wrote: > > On Mon 18 Jun 13:52 PDT 2018, Stephen Boyd wrote: > > > > > We rely on devices to use pinmuxing configurations in DT to select the > > > GPIO function (function 0) if they're going to

Re: [RFC PATCH 04/16] x86/split_lock: Use non locked bit set instruction in set_cpu_cap

2018-06-28 Thread Fenghua Yu
On Thu, Jun 28, 2018 at 09:53:17AM +0200, Thomas Gleixner wrote: > On Wed, 27 Jun 2018, Fenghua Yu wrote: > > On Thu, Jun 21, 2018 at 09:55:40PM +0200, Peter Zijlstra wrote: > > > On Sun, May 27, 2018 at 08:45:53AM -0700, Fenghua Yu wrote: > > > > set_bit() called by set_cpu_cap() is a locked bit s

Re: [PATCH] power: supply: ab8500: stop using getnstimeofday64()

2018-06-28 Thread Linus Walleij
On Mon, Jun 18, 2018 at 4:23 PM Arnd Bergmann wrote: > getnstimeofday64() is deprecated in favor of the ktime_get() family. > > The direct replacement would be ktime_get_real_ts64(), but we only need > the seconds value, and it seems better to use boottime than real time > to avoid unexpected beh

Re: [PATCH v6 4/5] mm/sparse: Optimize memmap allocation during sparse_init()

2018-06-28 Thread Pavel Tatashin
> Is this at a point in boot where a BUG_ON() generally produces useful > output, or will it just produce and early-boot silent hang with no > console output? Probably depends on the platform, but in KVM, I see a nice panic message (inserted BUG_ON(1) into sparse_init()): [0.00] kernel BU

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Sudeep Holla
On 28/06/18 14:19, Jeremy Linton wrote: > Hi, > > On 06/28/2018 07:12 AM, Sudeep Holla wrote: [...] >> >> OK sure. I liked the approach in Shunyong's patch. I was thinking if we >> can avoid the list and dynamic allocation on each addition and make it >> more simpler. >> > > This one reads s

Re: [PATCH v3 5/5] clocksource/drivers/timer-mediatek: Add support for system timer

2018-06-28 Thread Daniel Lezcano
On 28/06/2018 12:45, Stanley Chu wrote: > This patch adds a new "System Timer" on the Mediatek SoCs. > > The System Timer is introduced as an always-on timer being > clockevent device for tick-broadcasting. > > For clock, it is driven by 13 MHz system clock. > The implementation uses the system c

Re: [PATCH v3 1/5] clocksource/drivers/timer-mediatek: Add system timer bindings

2018-06-28 Thread Daniel Lezcano
On 28/06/2018 12:45, Stanley Chu wrote: > This patch fixes bindings of existed "General Purpose Timer", > and then add bindings of new "System Timer" on Mediatek SoCs. > > Signed-off-by: Stanley Chu > --- > .../bindings/timer/mediatek,mtk-timer.txt | 38 > > 1 fi

Re: [PATCH 3/3] KVM: x86: hyperv: implement PV IPI send hypercalls

2018-06-28 Thread Wanpeng Li
On Sat, 23 Jun 2018 at 03:14, Radim Krčmář wrote: > > 2018-06-22 16:56+0200, Vitaly Kuznetsov: > > Using hypercall for sending IPIs is faster because this allows to specify > > any number of vCPUs (even > 64 with sparse CPU set), the whole procedure > > will take only one VMEXIT. > > > > Current H

Re: [PATCH v6 4/5] mm/sparse: Optimize memmap allocation during sparse_init()

2018-06-28 Thread Dave Hansen
On 06/28/2018 05:12 AM, Pavel Tatashin wrote: > You did not, this is basically a safety check. A BUG_ON() would be > better here. As, this something that should really not happening, and > would mean a bug in the current project. Is this at a point in boot where a BUG_ON() generally produces usefu

Re: [alsa-devel] [PATCH v2 1/2] ASoC: qcom: dt-bindings: Add sdm845 machine bindings

2018-06-28 Thread Rob Herring
On Thu, Jun 28, 2018 at 12:20 AM Rohit Kumar wrote: > > Thanks Rob for reviewing. > > > On 6/26/2018 12:47 AM, Rob Herring wrote: > > On Thu, Jun 21, 2018 at 04:23:18PM +0530, Rohit kumar wrote: > >> Add devicetree bindings documentation file for SDM845 sound card. > >> > >> Signed-off-by: Rohit k

Re: [V9fs-developer] [PATCH 4/6] 9p: Remove an unnecessary memory barrier

2018-06-28 Thread Matthew Wilcox
On Thu, Jun 28, 2018 at 03:40:29PM +0200, Dominique Martinet wrote: > Matthew Wilcox wrote on Thu, Jun 28, 2018: > > --- a/net/9p/client.c > > +++ b/net/9p/client.c > > @@ -436,13 +436,9 @@ void p9_client_cb(struct p9_client *c, struct p9_req_t > > *req, int status) > > { > > p9_debug(P9_DEBU

Re: [PATCH v3 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-06-28 Thread Daniel Lezcano
On 28/06/2018 12:45, Stanley Chu wrote: > Convert the driver to use the timer_of helpers. > This allows to remove custom proprietary structure, > factors out and simplifies the code. > > Signed-off-by: Stanley Chu > --- > drivers/clocksource/timer-mediatek.c | 222 > ---

[PATCH] vmw_pvrdma: Release netdev when vmxnet3 module is removed

2018-06-28 Thread Neil Horman
On repeated module load/unload cycles, its possible for the pvrmda driver to encounter this crash: ... 297.032448] RIP: 0010:[] [] netdev_walk_all_upper_dev_rcu+0x50/0xb0 [ 297.034078] RSP: 0018:95087780bd08 EFLAGS: 00010286 [ 297.034986] RAX: RBX: RCX: f

Re: [PATCH v3 5/8] staging: rtl8192u: Use %s and __func__ instead of hardcoded string - Style

2018-06-28 Thread Greg KH
On Thu, Jun 28, 2018 at 01:32:41PM +0100, John Whitmore wrote: > On Thu, Jun 28, 2018 at 10:38:28AM +0300, Dan Carpenter wrote: > > On Wed, Jun 27, 2018 at 09:22:50PM +0100, John Whitmore wrote: > > > On Tue, Jun 26, 2018 at 11:56:24AM +0800, Greg KH wrote: > > > > On Sun, Jun 24, 2018 at 04:34:51P

Re: [RFC] Configure i.MX6 RGMII pad group control registers from device tree

2018-06-28 Thread Michal Vokáč
On 25.6.2018 04:50, Andy Duan wrote: On 11.6.2018 14:36, Michal Vokáč wrote: Ahoj, To configure individual pad's characteristics on i.MX6 SoC a fsl,pins = property can be used. Is there any convenient way to configure the pad group control registers? The issue is that some bits (DDR_SEL and O

Re: [PATCHv4 3/3] x86: Add build salt to the vDSO and kernel linker scripts

2018-06-28 Thread Masahiro Yamada
Hi. 2018-06-22 0:58 GMT+09:00 Laura Abbott : > On 06/21/2018 05:43 AM, Ingo Molnar wrote: >> >> >> * Laura Abbott wrote: >> >>> >>> Both the kernel and the vDSO need to have unique build ids. >>> Insert the build salt section to make the build ids unique. >>> >>> Signed-off-by: Laura Abbott >>>

[PATCH v2 1/5] KVM: x86: hyperv: optimize 'all cpus' case in kvm_hv_flush_tlb()

2018-06-28 Thread Vitaly Kuznetsov
We can use 'NULL' to represent 'all cpus' case in kvm_make_vcpus_request_mask() and avoid building vCPU mask with all vCPUs. Suggested-by: Radim Krčmář Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 42 +++--- virt/kvm/kvm_main.c | 6 ++ 2

Re: [PATCHv2 0/5] pinctrl fixes for generic functions and groups

2018-06-28 Thread Linus Walleij
On Tue, Jun 19, 2018 at 11:31 AM Tony Lindgren wrote: > Here are fixes to the race issues for generic group and functions > reported by H. Nikolaus Schaller . I have not seen > the issue here myself, so please test to see if this is sufficient. It looks sane to me, it'd be great to have some Tes

[PATCH v2 3/5] KVM: x86: hyperv: use vp_idx_to_vcpu_idx() in kvm_hv_flush_tlb()

2018-06-28 Thread Vitaly Kuznetsov
As we now have a fast way to get vCPU index from VP number we can avoid walking through all vCPUs in kvm_hv_flush_tlb(). Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 59 ++- 1 file changed, 16 insertions(+), 43 deletions(-) diff --g

[PATCH v2 5/5] KVM: x86: hyperv: implement PV IPI send hypercalls

2018-06-28 Thread Vitaly Kuznetsov
Using hypercall for sending IPIs is faster because this allows to specify any number of vCPUs (even > 64 with sparse CPU set), the whole procedure will take only one VMEXIT. Current Hyper-V TLFS (v5.0b) claims that HvCallSendSyntheticClusterIpi hypercall can't be 'fast' (passing parameters through

[PATCH v2 4/5] x86/hyper-v: rename ipi_arg_{ex,non_ex} structures

2018-06-28 Thread Vitaly Kuznetsov
These structures are going to be used from KVM code so let's make their names reflect their Hyper-V origin. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/hv_apic.c | 12 ++-- arch/x86/include/asm/hyperv-tlfs.h | 16 +--- 2 files changed, 15 insertions(+), 13 de

[PATCH v2 2/5] KVM: x86: hyperv: introduce vp_index_to_vcpu_idx mapping

2018-06-28 Thread Vitaly Kuznetsov
While it is easy to get VP index from vCPU index the reverse task is hard. Basically, to solve it we have to walk all vCPUs checking if their VP index matches. For hypercalls like HvFlushVirtualAddress{List,Space}* and the upcoming HvSendSyntheticClusterIpi* where a single CPU may be specified in t

[PATCH v2 0/5] KVM: x86: hyperv: PV IPI support for Windows guests

2018-06-28 Thread Vitaly Kuznetsov
Changes since v1 [Radim Krčmář]: - Implement VP_IDX -> VCPU_IDX mapping, use it for both PV IPIs and TLB flush (PATCHes 1-3 added) - Minor tweaks. Using hypercall for sending IPIs is faster because this allows to specify any number of vCPUs (even > 64 with sparse CPU set), the whole procedure wi

Re: [V9fs-developer] [PATCH 4/6] 9p: Remove an unnecessary memory barrier

2018-06-28 Thread Dominique Martinet
Matthew Wilcox wrote on Thu, Jun 28, 2018: > --- a/net/9p/client.c > +++ b/net/9p/client.c > @@ -436,13 +436,9 @@ void p9_client_cb(struct p9_client *c, struct p9_req_t > *req, int status) > { > p9_debug(P9_DEBUG_MUX, " tag %d\n", req->tc->tag); > > - /* > - * This barrier is nee

Re: [PATCH 2/3][RFC] PM / Hibernate: Encrypt the snapshot pages before submitted to the block device

2018-06-28 Thread Yu Chen
Hi, On Thu, Jun 28, 2018 at 09:07:20PM +0800, joeyli wrote: > Hi Chen Yu, > > On Wed, Jun 20, 2018 at 05:40:32PM +0800, Chen Yu wrote: > > Use the helper functions introduced previously to encrypt > > the page data before they are submitted to the block device. > > Besides, for the case of hiberna

[PATCH] leds: ledtrig-morse: send out morse code

2018-06-28 Thread Andreas Klinger
Send out a morse code by using LEDs. This is useful especially on embedded systems without displays to tell the user about error conditions and status information. The trigger will be called "morse" The string to be send is written into the file morse_string and sent out with a workqueue. Suppor

Re: [PATCH v2 1/3] kbuild: use 'include' directive to load auto.conf from top Makefile

2018-06-28 Thread Masahiro Yamada
2018-06-24 3:59 GMT+09:00 kbuild test robot : > Hi Masahiro, > > I love your patch! Yet something to improve: > > [auto build test ERROR on kbuild/for-next] > [also build test ERROR on v4.18-rc1 next-20180622] > [cannot apply to mmarek/for-next mmarek/rc-fixes] > [if your patch is applied to the wr

Re: [lkp-robot] [fs] 3deb642f0d: will-it-scale.per_process_ops -8.8% regression

2018-06-28 Thread Christoph Hellwig
On Thu, Jun 28, 2018 at 08:38:34AM +0800, Ye Xiaolong wrote: > Update the result: > > testcase/path_params/tbox_group/run: will-it-scale/poll2-performance/lkp-sb03 So this looks like a huge improvement in the per process ops, but not as large as the original regression, and no change in the per-t

Re: [PATCH 1/2] ARM: dts: imx51-babbage: Fix reg for usbh1phy

2018-06-28 Thread Fabio Estevam
Hi Andrey, On Thu, Jun 28, 2018 at 1:37 AM, Andrey Smirnov wrote: > There's already a USB PHY with reg of zero on that bus - usbphy0, used > by usbotg (included from imx51.dtsi). Move usbh1phy to @1 avoid > address collision. > > Cc: Fabio Estevam > Cc: Shawn Guo > Cc: linux-arm-ker...@lists.in

Re: [PATCH 2/2] ARM: dts: imx51-babbage: Make use of pinctrl_usbh1reg

2018-06-28 Thread Fabio Estevam
On Thu, Jun 28, 2018 at 1:37 AM, Andrey Smirnov wrote: > Pinctrl_usbh1reg defines pinmux setting for reset GPIO used by > usbh1phy, but is not referenced by that node. Fix that. > > Cc: Fabio Estevam > Cc: Shawn Guo > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org >

Re: [PATCH v7] tpm: separate cmd_ready/go_idle from runtime_pm

2018-06-28 Thread Jarkko Sakkinen
On Wed, 2018-06-27 at 21:13 +, Winkler, Tomas wrote: > Very well, I will remove the NESTED flag. though I have feeling you are > shooting from the hip you didn't really read the code. > Please there anyone who can review the code? Asking to change a minor thing in a patch does not really fit

[PATCH 2/6] 9p: Replace the fidlist with an IDR

2018-06-28 Thread Matthew Wilcox
The p9_idpool being used to allocate the IDs uses an IDR to allocate the IDs ... which we then keep in a doubly-linked list, rather than in the IDR which allocated them. We can use an IDR directly which saves two pointers per p9_fid, and a tiny memory allocation per p9_client. Signed-off-by: Matt

[PATCH 1/6] 9p: Change p9_fid_create calling convention

2018-06-28 Thread Matthew Wilcox
Return NULL instead of ERR_PTR when we can't allocate a FID. The ENOSPC return value was getting all the way back to userspace, and that's confusing for a userspace program which isn't expecting read() to tell it there's no space left on the filesystem. The best error we can return to indicate a

[PATCH 3/6] 9p: Embed wait_queue_head into p9_req_t

2018-06-28 Thread Matthew Wilcox
On a 64-bit system, the wait_queue_head_t is 24 bytes while the pointer to it is 8 bytes. Growing the p9_req_t by 16 bytes is better than performing a 24-byte memory allocation. Signed-off-by: Matthew Wilcox --- include/net/9p/client.h | 2 +- net/9p/client.c | 19 +--

[PATCH 6/6] 9p: Remove p9_idpool

2018-06-28 Thread Matthew Wilcox
There are no more users left of the p9_idpool; delete it. Signed-off-by: Matthew Wilcox --- include/net/9p/9p.h | 8 --- net/9p/Makefile | 1 - net/9p/util.c | 141 3 files changed, 150 deletions(-) delete mode 100644 net/9p/util.c dif

[PATCH 5/6] 9p: Use a slab for allocating requests

2018-06-28 Thread Matthew Wilcox
Replace the custom batch allocation with a slab. Use an IDR to store pointers to the active requests instead of an array. We don't try to handle P9_NOTAG specially; the IDR will happily shrink all the way back once the TVERSION call has completed. Signed-off-by: Matthew Wilcox --- include/net/

[PATCH 4/6] 9p: Remove an unnecessary memory barrier

2018-06-28 Thread Matthew Wilcox
And add a comment about why we don't need it. Signed-off-by: Matthew Wilcox --- net/9p/client.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/net/9p/client.c b/net/9p/client.c index 602f76de388a..2dce8d8307cc 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -436,1

[PATCH 0/6] 9p: Use IDRs more effectively

2018-06-28 Thread Matthew Wilcox
The 9p code doesn't take advantage of the IDR's ability to store a pointer. We can actually get rid of the p9_idpool abstraction and the multi-dimensional array of requests. I haven't tested these patches, so caveat maintainer. Matthew Wilcox (6): 9p: Change p9_fid_create calling convention

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Jeremy Linton
Hi, On 06/28/2018 07:12 AM, Sudeep Holla wrote: On 28/06/18 12:57, Andrew Jones wrote: On Thu, Jun 28, 2018 at 10:38:24AM +0100, Sudeep Holla wrote: Hi Shunyong, On 28/06/18 10:18, Shunyong Yang wrote: As PPTT spec doesn't define the physical package id, find_acpi_cpu_topology_package() wi

Re: [PATCH/RFC] mm: do not drop unused pages when userfaultd is running

2018-06-28 Thread David Hildenbrand
On 28.06.2018 14:39, Christian Borntraeger wrote: > KVM guests on s390 can notify the host of unused pages. This can result > in pte_unused callbacks to be true for KVM guest memory. > > If a page is unused (checked with pte_unused) we might drop this page > instead of paging it. This can have sid

Re: [PATCH v6 4/5] mm/sparse: Optimize memmap allocation during sparse_init()

2018-06-28 Thread Oscar Salvador
On Thu, Jun 28, 2018 at 08:12:04AM -0400, Pavel Tatashin wrote: > > > + if (nr_consumed_maps >= nr_present_sections) { > > > + pr_err("nr_consumed_maps goes beyond > > > nr_present_sections\n"); > > > + break; > > > + } > > > > Hi Bao

Re: [PATCH] ASoC: dpcm: extend channel merging to the backend cpu dai

2018-06-28 Thread Jerome Brunet
On Thu, 2018-06-28 at 11:15 +0100, Mark Brown wrote: > On Wed, Jun 27, 2018 at 11:48:18AM +0200, Jerome Brunet wrote: > > > As you've probably noticed, this patch applies on top Jiada's patch > > pf4c277b817cc ("ASoC: soc-pcm: DPCM cares BE channel constraint") > > That isn't a valid hash... I

Re: [PATCH v6 3/5] mm/sparse: Add a new parameter 'data_unit_size' for alloc_usemap_and_memmap

2018-06-28 Thread Oscar Salvador
On Thu, Jun 28, 2018 at 02:28:55PM +0800, Baoquan He wrote: > alloc_usemap_and_memmap() is passing in a "void *" that points to > usemap_map or memmap_map. In next patch we will change both of the > map allocation from taking 'NR_MEM_SECTIONS' as the length to taking > 'nr_present_sections' as the

Re: [PATCH v3 0/3] have the vt console preserve unicode characters

2018-06-28 Thread Greg Kroah-Hartman
On Tue, Jun 26, 2018 at 11:56:39PM -0400, Nicolas Pitre wrote: > The vt code translates UTF-8 strings into glyph index values and stores > those glyph values in the screen buffer. Because there can only be at > most 512 glyphs at the moment, it is impossible to represent most > unicode character

Re: [PATCH 2/3][RFC] PM / Hibernate: Encrypt the snapshot pages before submitted to the block device

2018-06-28 Thread joeyli
Hi Chen Yu, On Wed, Jun 20, 2018 at 05:40:32PM +0800, Chen Yu wrote: > Use the helper functions introduced previously to encrypt > the page data before they are submitted to the block device. > Besides, for the case of hibernation compression, the data > are firstly compressed and then encrypted,

Re: [PATCH] ARM: mvebu: declare asm symbols as character arrays in pmsu.c

2018-06-28 Thread Gregory CLEMENT
Hi Ethan, On mer., juin 27 2018, Ethan Tuttle wrote: > Hi Gregory. > > On Tue, Jun 26, 2018 at 11:20 PM, Gregory CLEMENT > wrote: >> Hi Ethan, >> >> On mar., juin 19 2018, Ethan Tuttle wrote: >> >>> With CONFIG_FORTIFY_SOURCE, memcpy uses the declared size of operands to >>> detect buffer o

Re: [PATCH 1/4] PCI: mediatek: fixup mtk_pcie_find_port logical

2018-06-28 Thread Bjorn Helgaas
On Wed, Jun 27, 2018 at 05:21:35PM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > Mediatek's host controller have two slots, each have it's own control > registers. The host driver need to identify which slot was connected > in order to access the device's configuration space.

Re: [PATCH tip/core/rcu 13/22] rcu: Fix grace-period hangs due to race with CPU offline

2018-06-28 Thread Peter Zijlstra
On Thu, Jun 28, 2018 at 05:38:33AM -0700, Paul E. McKenney wrote: > Please let me try again. > > The approach you are suggesting, clever though it is, disables a check https://lkml.kernel.org/r/20180627094633.gg2...@hirez.programming.kicks-ass.net Is the one we're talking about, right? That

Re: [PATCH] stop_machine: Remove cpu swap from stop_two_cpus

2018-06-28 Thread Pavan Kondeti
On Tue, Jun 26, 2018 at 02:28:26PM -0700, Isaac J. Manjarres wrote: > When invoking migrate_swap(), stop_two_cpus() swaps the > source and destination CPU IDs if the destination CPU > ID is greater than the source CPU ID. This leads to the > following race condition: > > The source CPU invokes mig

[PATCH v3 2/6] coresight: Add helper device type

2018-06-28 Thread Suzuki K Poulose
Add a new coresight device type, which do not belong to any of the existing types, i.e, source, sink, link etc. A helper device could be connected to a coresight device, which could augment the functionality of the coresight device. This is intended to cover Coresight Address Translation Unit (CAT

[PATCH v3 0/6] coresight: Coresight Address Translation Unit support

2018-06-28 Thread Suzuki K Poulose
Add support for the Coresight Address Translation Unit (CATU), which provides improved scatter-gather functionality for TMC-ETR. The CATU performs address translation for ETR based on a page table, which contains address of 4KB sized data pages, but uses a different format from that of the TMC-ETR

[PATCH v3 3/6] coresight: Introduce support for Coresight Address Translation Unit

2018-06-28 Thread Suzuki K Poulose
Add the initial support for Coresight Address Translation Unit, which augments the TMC in Coresight SoC-600 by providing an improved Scatter Gather mechanism. CATU is always connected to a single TMC-ETR and converts the AXI address with a translated address (from a given SG table with specific for

[PATCH v3 4/6] dts: bindings: Document device tree binding for CATU

2018-06-28 Thread Suzuki K Poulose
Document CATU device-tree bindings. CATU augments the TMC-ETR by providing an improved Scatter Gather mechanism for streaming trace data to non-contiguous system RAM pages. Cc: devicet...@vger.kernel.org Cc: frowand.l...@gmail.com Cc: Mark Rutland Cc: Mathieu Poirier Reviewed-by: Rob Herring Si

[PATCH v3 6/6] coresight: catu: Plug in CATU as a backend for ETR buffer

2018-06-28 Thread Suzuki K Poulose
Now that we can use a CATU with a scatter gather table, add support for the TMC ETR to make use of the connected CATU in translate mode. This is done by adding CATU as new buffer mode. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-catu.c| 122

[PATCH v3 5/6] coresight: catu: Add support for scatter gather tables

2018-06-28 Thread Suzuki K Poulose
This patch adds the support for setting up a SG table for use by the CATU. We reuse the tmc_sg_table to represent the table/data pages, even though the table format is different. Similar to ETR SG table, CATU uses a 4KB page size for data buffers as well as page tables. All table entries are 64bit

[PATCH v3 1/6] coresight: Cleanup device subtype struct

2018-06-28 Thread Suzuki K Poulose
Clean up our struct a little bit by using a union instead of a struct for tracking the subtype of a device. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- include/linux/coresight.h | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/include/linux/

[PATCH v5 1/1] PCI: kirin: Add MSI support

2018-06-28 Thread Xiaowei Song
Add support for MSI. Signed-off-by: Xiaowei Song --- drivers/pci/dwc/pcie-kirin.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/pci/dwc/pcie-kirin.c b/drivers/pci/dwc/pcie-kirin.c index d2970a009eb5..6997276eb69c 100644 --- a/drivers/pci/dwc/pcie-kirin

[PATCH v5 0/1] *** PCI: kirin: Add MSI support ***

2018-06-28 Thread Xiaowei Song
Before Version Patches == patch v4 https://patchwork.kernel.org/patch/10402399/ patch v3 https://www.spinics.net/lists/linux-pci/msg72322.html patch v2 https://www.spinics.net/lists/kernel/msg2797610.html patch v1 https://www.spinics.net/lists/kernel/msg2796410.html Changes be

Re: [less-CONFIG_NET v2 8/8] kvm: drop CONFIG_NET

2018-06-28 Thread Paolo Bonzini
On 28/06/2018 14:45, Norbert Manthey wrote: > In some scenarios, we do not want to use CONFIG_NET even though we want > to use CONFIG_KVM. To get this working, and to not pull in more > dependencies, we need to disable CONFIG_TASKSTATS as well. > > Signed-off-by: Norbert Manthey > --- > arch/x86

[less-CONFIG_NET v2 8/8] kvm: drop CONFIG_NET

2018-06-28 Thread Norbert Manthey
In some scenarios, we do not want to use CONFIG_NET even though we want to use CONFIG_KVM. To get this working, and to not pull in more dependencies, we need to disable CONFIG_TASKSTATS as well. Signed-off-by: Norbert Manthey --- arch/x86/kvm/Kconfig | 5 ++--- 1 file changed, 2 insertions(+), 3

[less-CONFIG_NET v2 7/8] seccomp: drop CONFIG_NET

2018-06-28 Thread Norbert Manthey
With the goal of dropping CONFIG_NET, we have to drop the dependency in the configuration management. Since SECCOMP_FILTER also requires BPF functionality, which is usually activated by CONFIG_NET, imply BPF from SECCOMP_FILTER directly. In case both CONFIG_NET and CONFIG_SECCOMP_FILTER are activa

[less-CONFIG_NET v2 4/8] seccomp: include nlattr

2018-06-28 Thread Norbert Manthey
When we want to use CONFIG_SECCOMP_FILTER without CONFIG_NET, we have to ensure that the required files that would be pulled in via CONFIG_NET are compiled when dropping CONFIG_NET. Here, we could also select CONFIG_NLATTR instead of pulling the file in explicitly. One could go even one step furth

less-CONFIG_NET v2

2018-06-28 Thread Norbert Manthey
In the first version of this series, I found a compilation error after running make randconfig multiple times. I fixed the error, and rebased the series. Furthermore, this series passed many make randconfig compilations, as well as a compilation test for multiple architectures and configurations.

Re: [PATCH] arm64: remove no-op -p linker flag

2018-06-28 Thread Nick Desaulniers
On Thu, Jun 28, 2018 at 5:38 AM Will Deacon wrote: > > On Wed, Jun 27, 2018 at 12:46:14PM -0700, Greg Hackmann wrote: > > Linking the ARM64 defconfig kernel with LLVM lld fails with the error: > > > > ld.lld: error: unknown argument: -p > > Makefile:1015: recipe for target 'vmlinux' failed > >

[PATCH/RFC] mm: do not drop unused pages when userfaultd is running

2018-06-28 Thread Christian Borntraeger
KVM guests on s390 can notify the host of unused pages. This can result in pte_unused callbacks to be true for KVM guest memory. If a page is unused (checked with pte_unused) we might drop this page instead of paging it. This can have side-effects on userfaultd, when the page in question was alrea

Re: [PATCH v2 4/4] power: ds2760_battery: add device tree glue

2018-06-28 Thread Daniel Mack
On Thursday, June 28, 2018 01:52 PM, Sebastian Reichel wrote: Hi, On Thu, Jun 28, 2018 at 09:55:40AM +0200, Daniel Mack wrote: The w1 slave device used by this driver now has a of_node in case it was matched against a devicetree sub-node of the bus master. This can now be passed down to the pow

Re: [PATCH 0/2] tools/memory-model: remove ACCESS_ONCE()

2018-06-28 Thread Andrea Parri
On Thu, Jun 28, 2018 at 01:33:45PM +0100, Mark Rutland wrote: > Since commit: > > b899a850431e2dd0 ("compiler.h: Remove ACCESS_ONCE()") > > ... there has been no definition of ACCESS_ONCE() in the kernel tree, > and it has been necessary to use READ_ONCE() or WRITE_ONCE() instead. > >

Re: [PATCH tip/core/rcu 13/22] rcu: Fix grace-period hangs due to race with CPU offline

2018-06-28 Thread Paul E. McKenney
On Thu, Jun 28, 2018 at 10:26:53AM +0200, Peter Zijlstra wrote: > On Wed, Jun 27, 2018 at 10:13:34PM -0700, Paul E. McKenney wrote: > > On Wed, Jun 27, 2018 at 07:51:34PM +0200, Peter Zijlstra wrote: > > > On Wed, Jun 27, 2018 at 08:57:21AM -0700, Paul E. McKenney wrote: > > > > > Another variant,

[PATCH 1/2] tools/memory-model: remove ACCESS_ONCE() from recipes

2018-06-28 Thread Mark Rutland
Since commit: b899a850431e2dd0 ("compiler.h: Remove ACCESS_ONCE()") ... there has been no definition of ACCESS_ONCE() in the kernel tree, and it has been necessary to use READ_ONCE() or WRITE_ONCE() instead. Let's update the exmaples in recipes.txt likewise for consistency, using READ_ONCE() f

[PATCH 2/2] tools/memory-model: remove ACCESS_ONCE() from model

2018-06-28 Thread Mark Rutland
Since commit: b899a850431e2dd0 ("compiler.h: Remove ACCESS_ONCE()") ... there has been no definition of ACCESS_ONCE() in the kernel tree, and it has been necessary to use READ_ONCE() or WRITE_ONCE() instead. Correspondingly, let's remove ACCESS_ONCE() from the kernel memory model. Signed-off-

[PATCH 0/2] tools/memory-model: remove ACCESS_ONCE()

2018-06-28 Thread Mark Rutland
Since commit: b899a850431e2dd0 ("compiler.h: Remove ACCESS_ONCE()") ... there has been no definition of ACCESS_ONCE() in the kernel tree, and it has been necessary to use READ_ONCE() or WRITE_ONCE() instead. However, since then the kernel memory model was added to the Linux tree, sport

Re: [PATCH v3 5/8] staging: rtl8192u: Use %s and __func__ instead of hardcoded string - Style

2018-06-28 Thread John Whitmore
On Thu, Jun 28, 2018 at 10:38:28AM +0300, Dan Carpenter wrote: > On Wed, Jun 27, 2018 at 09:22:50PM +0100, John Whitmore wrote: > > On Tue, Jun 26, 2018 at 11:56:24AM +0800, Greg KH wrote: > > > On Sun, Jun 24, 2018 at 04:34:51PM +0100, John Whitmore wrote: > > > > Changed a number of hard coded fu

Re: Amiga RDB partition support for disks >= 2 TB

2018-06-28 Thread jdow
On 20180628 04:38, Martin Steigerwald wrote: Martin Steigerwald - 28.06.18, 13:30: jdow - 28.06.18, 12:00: On 20180628 01:16, Martin Steigerwald wrote: […] That brings to the fore an interesting question. Why bother with RDBs over 2TB unless you want a disk with one single partition? This

[PATCH 2/2] iio: light: Add device tree binding for vishay vcnl4035

2018-06-28 Thread Parthiban Nallathambi
Adding device tree binding for vcnl4035 and vendor prefix for Vishay Intertechnology Signed-off-by: Parthiban Nallathambi --- .../devicetree/bindings/iio/light/vcnl4035.txt| 19 +++ Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 20 insertio

[PATCH 1/2] iio: light: Add support for vishay vcnl4035

2018-06-28 Thread Parthiban Nallathambi
Add support for VCNL4035, which is capable of Ambient light sensing (ALS) and proximity function. This patch adds support only for ALS function Signed-off-by: Parthiban Nallathambi --- drivers/iio/light/Kconfig| 12 + drivers/iio/light/Makefile | 1 + drivers/iio/light/vcnl4035.c | 684

Re: [PATCH v12 09/11] x86/tsc: prepare for early sched_clock

2018-06-28 Thread Thomas Gleixner
On Thu, 28 Jun 2018, Peter Zijlstra wrote: > On Thu, Jun 28, 2018 at 12:43:59PM +0200, Thomas Gleixner wrote: > > init_hypervisor_platform() > >vmware: > >Retrieves frequency and store it for the > >calibration function > > > >khz = vmwar

Re: [PATCH 1/7] atomics/tty: add missing atomic_long_t * cast

2018-06-28 Thread Greg Kroah-Hartman
On Fri, Jun 22, 2018 at 05:55:59PM +0100, Mark Rutland wrote: > Hi, > > On Wed, Jun 06, 2018 at 04:00:42PM +0200, Greg Kroah-Hartman wrote: > > On Tue, Jun 05, 2018 at 04:53:34PM +0200, Peter Zijlstra wrote: > > > On Tue, Jun 05, 2018 at 04:43:04PM +0200, Peter Zijlstra wrote: > > > > > > > I can

Re: [PATCH] uart: fix race between uart_put_char() and uart_shutdown()

2018-06-28 Thread Greg Kroah-Hartman
On Mon, Jun 04, 2018 at 06:01:27PM -0600, Tycho Andersen wrote: > We have reports of the following crash: > > PID: 7 TASK: 88085c6d61c0 CPU: 1 COMMAND: "kworker/u25:0" > #0 [88085c6db710] machine_kexec at 81046239 > #1 [88085c6db760] crash_kexec at 810fc248

<    1   2   3   4   5   6   >