Re: [PATCH v2] power: reset: Add Spreadtrum SC27xx PMIC power off support

2018-02-13 Thread Baolin Wang
Hi Sebastian, On 13 February 2018 at 20:48, Sebastian Reichel wrote: > Hi Baolin, > > On Fri, Feb 09, 2018 at 01:30:44PM +0100, Sebastian Reichel wrote: >> On Fri, Feb 09, 2018 at 05:43:38PM +0800, Baolin Wang wrote: >> > On Spreadtrum platform, we need power off system through external SC27xx >>

Re: [PATCH v2] x86/retpoline: Add clang support

2018-02-13 Thread Guenter Roeck
On 02/13/2018 04:10 PM, David Woodhouse wrote: On Tue, 2018-02-13 at 15:41 -0800, Guenter Roeck wrote: Hi David, On Wed, Feb 07, 2018 at 03:32:11PM -0800, Guenter Roeck wrote: [ ... ] See http://git.infradead.org/users/dwmw2/linux-retpoline.git/commitdiff/82a1f41600 Any chance to see a

[PATCH] x86/entry/64: Fix CR3 restore order in paranoid_exit()

2018-02-13 Thread Josh Poimboeuf
The paranoid exit code only restores the saved CR3 when it switches back to the user GS. However, even in the kernel GS case, it's possible that it needs to restore a user CR3, if for example, the paranoid exception occurred in the syscall exit path between SWITCH_TO_USER_CR3_STACK and SWAPGS. Fi

Re: [PATCH 1/2] powerpc/kdump: Add missing optional dummy functions

2018-02-13 Thread Balbir Singh
On Mon, 12 Feb 2018 15:25:51 -0800 Guenter Roeck wrote: > On Tue, Feb 13, 2018 at 10:01:57AM +1100, Balbir Singh wrote: > > On Tue, Feb 13, 2018 at 9:34 AM, Guenter Roeck wrote: > > > If KEXEC_CORE is not enabled, PowerNV builds fail as follows. > > > > > > arch/powerpc/platforms/powernv/smp.c

[PATCH RFC 0/2] Packed ring for vhost

2018-02-13 Thread Jason Wang
Hi all: This RFC implement a subset of packed ring which was described at https://github.com/oasis-tcs/virtio-docs/blob/master/virtio-v1.1-packed-wd07.pdf . The code were tested with pmd implement by Jens at http://dpdk.org/ml/archives/dev/2018-January/089417.html. Minor change was needed for pmd

Re: [PATCH RFC 0/2] Packed ring for vhost

2018-02-13 Thread Jason Wang
On 2018年02月14日 10:37, Jason Wang wrote: Hi all: This RFC implement a subset of packed ring which was described at https://github.com/oasis-tcs/virtio-docs/blob/master/virtio-v1.1-packed-wd07.pdf . The code were tested with pmd implement by Jens at http://dpdk.org/ml/archives/dev/2018-January/0

Re: ipmi_si fails to get BMC ID

2018-02-13 Thread Chris Chiu
On Fri, Feb 9, 2018 at 9:34 PM, Corey Minyard wrote: > On 02/08/2018 09:09 PM, Chris Chiu wrote: >> >> On Thu, Feb 8, 2018 at 11:53 PM, Corey Minyard wrote: >>> >>> On 02/07/2018 09:01 PM, Chris Chiu wrote: Hi, We are working with a new desktop Acer Veriton Z4640G and get >>>

Re: [PATCH v3 2/5] x86/apic: Fix restoring boot irq mode in reboot and kexec/kdump

2018-02-13 Thread Baoquan He
On 02/13/18 at 11:44am, Eric W. Biederman wrote: > Baoquan He writes: > > > Hi Eric, > > > > On 02/11/18 at 09:08pm, Eric W. Biederman wrote: > >> Baoquan He writes: > >> > >> > This is a regression fix. > >> > > >> > Before, to fix erratum AVR31, commit 522e66464467 ("x86/apic: Disable > >> >

[PATCH RFC 2/2] vhost: packed ring support

2018-02-13 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/net.c | 14 +- drivers/vhost/vhost.c | 351 ++ drivers/vhost/vhost.h | 6 +- 3 files changed, 343 insertions(+), 28 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index c613d2e..

Re: [PATCH RFC 0/2] Packed ring for vhost

2018-02-13 Thread Michael S. Tsirkin
On Wed, Feb 14, 2018 at 10:37:07AM +0800, Jason Wang wrote: > Hi all: > > This RFC implement a subset of packed ring which was described at > https://github.com/oasis-tcs/virtio-docs/blob/master/virtio-v1.1-packed-wd07.pdf > . The code were tested with pmd implement by Jens at > http://dpdk.org/ml

[PATCH RFC 1/2] virtio: introduce packed ring defines

2018-02-13 Thread Jason Wang
Signed-off-by: Jason Wang --- include/uapi/linux/virtio_config.h | 9 + include/uapi/linux/virtio_ring.h | 17 + 2 files changed, 26 insertions(+) diff --git a/include/uapi/linux/virtio_config.h b/include/uapi/linux/virtio_config.h index 308e209..5903d51 100644 --- a/

Re: [PATCH v3 2/2] gpio: Add GPIO driver for Spreadtrum SC9860 platform

2018-02-13 Thread Baolin Wang
Hi Linus, On 13 February 2018 at 16:13, Linus Walleij wrote: > On Mon, Feb 5, 2018 at 2:55 AM, Baolin Wang wrote: > >> The Spreadtrum SC9860 platform GPIO controller contains 16 groups and >> each group contains 16 GPIOs. Each GPIO can set input/output and has >> the interrupt capability. >> >>

Re: [PATCH v3 1/2] dt-bindings: gpio: Add Spreadtrum GPIO controller documentation

2018-02-13 Thread Baolin Wang
Hi Linus, On 13 February 2018 at 17:20, Linus Walleij wrote: > On Mon, Feb 5, 2018 at 2:55 AM, Baolin Wang wrote: > >> This patch adds the device tree bindings for the Spreadtrum >> GPIO controller. The gpios will be supported by the GPIO >> generic library. >> >> Signed-off-by: Baolin Wang > >

[PATCH v3] perf ftrace: Append an EOL when write tracing files

2018-02-13 Thread changbin . du
From: Changbin Du Before this change, the '--graph-funcs', '--nograph-funcs' and '--trace-funcs' options didn't work as expected when the doesn't exist. Because the kernel side hid possible errors. $ sudo ./perf ftrace -a --graph-depth 1 --graph-funcs abcdefg 0) 0.140 us| rcu_all_qs();

Re: [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings

2018-02-13 Thread Yisheng Xie
Hi Greg On 2018/2/12 19:40, Yisheng Xie wrote: > Hi Greg, > > JFYI, I have rebase this patchset to v4.15-rc1.[1] Ah, sorry , I mean v4.16-rc1, and the same to other threads. Thanks Yisheng > > [1] https://lkml.org/lkml/2018/2/12/204 > > Thanks > Yisheng > > On 2018/2/1 9:54, Yisheng Xie wro

Re: VMs freezing when host is running 4.14

2018-02-13 Thread Haozhong Zhang
On 02/13/18 20:04 -0600, Josh Poimboeuf wrote: > On Sun, Feb 11, 2018 at 02:39:41PM +0100, Marc Haber wrote: > > Hi, > > > > after in total nine weeks of bisecting, broken filesystems, service > > outages (thankfully on unportant systems), 4.15 seems to have fixed the > > issue. After going to 4.1

[RFC PATCH 0/3] Directed kmem charging

2018-02-13 Thread Shakeel Butt
This patchset introduces memcg variant memory allocation functions. The caller can explicitly pass the memcg to charge for kmem allocations. Currently the kernel, for __GFP_ACCOUNT memory allocation requests, extract the memcg of the current task to charge for the kmem allocation. This patch series

[RFC PATCH 3/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-13 Thread Shakeel Butt
This is RFC patch and the discussion on the API is still happening at the following link but I am sending the early draft for feedback. [link] https://marc.info/?l=linux-api&m=151850343717274 A lot of memory can be consumed by the events generated for the huge or unlimited queues if there is eithe

RE: [PATCH 08/12] Drivers: hv: vmbus: Implement Direct Mode for stimer0

2018-02-13 Thread Michael Kelley (EOSG)
> -Original Message- > From: Dan Carpenter > Sent: Monday, February 12, 2018 12:42 AM > To: KY Srinivasan ; Stephen Hemminger > > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com; jasow

[RFC PATCH 1/3] mm: memcg: plumbing memcg for kmem cache allocations

2018-02-13 Thread Shakeel Butt
Introducing the memcg variant for kmem cache allocation functions. Currently the kernel switches the root kmem cache with the memcg specific kmem cache for __GFP_ACCOUNT allocations to charge those allocations to the memcg. However, the memcg to charge is extracted from the current task_struct. Thi

[RFC PATCH 2/3] mm: memcg: plumbing memcg for kmalloc allocations

2018-02-13 Thread Shakeel Butt
Introducing the memcg variant for kmalloc allocation functions. The kmalloc allocations are underlying served using the kmem caches unless the size of the allocation request is larger than KMALLOC_MAX_CACHE_SIZE, in which case, the kmem caches are bypassed and the request is routed directly to page

Re: [PATCH v4 3/3] KVM: X86: Don't use PV TLB flush with dedicated vCPUs and steal time disabled

2018-02-13 Thread Wanpeng Li
2018-02-14 0:12 GMT+08:00 Paolo Bonzini : > On 13/02/2018 02:05, Wanpeng Li wrote: >> From: Wanpeng Li >> >> vCPUs are very unlikely to get preempted when they are the only task >> running on a CPU. PV TLB flush is slower that the native flush in that >> case. In addition, avoid traversing all th

Re: [PATCH v7 6/6] drm/msm: iommu: Replace runtime calls with runtime suppliers

2018-02-13 Thread Tomasz Figa
On Wed, Feb 14, 2018 at 11:13 AM, Rob Clark wrote: > On Tue, Feb 13, 2018 at 8:59 PM, Tomasz Figa wrote: >> On Wed, Feb 14, 2018 at 3:03 AM, Rob Clark wrote: >>> On Tue, Feb 13, 2018 at 4:10 AM, Tomasz Figa wrote: Hi Vivek, Thanks for the patch. Please see my comments inline. >>>

Re: [PATCH 1/2] dt-bindings: gpio: Add Spreadtrum EIC controller documentation

2018-02-13 Thread Baolin Wang
Hi Linus, On 13 February 2018 at 16:28, Linus Walleij wrote: > Hi Baolin! > > Thank you for your patch. > > On Thu, Feb 8, 2018 at 9:01 AM, Baolin Wang wrote: > >> This patch adds the device tree bindings for the Spreadtrum EIC >> controller. The EIC can be recognized as one special type of GPIO

Re: [PATCH 04/10] ARM: dts: sun[4-7]i: Remove "cooling-{min|max}-level" for CPU nodes

2018-02-13 Thread Viresh Kumar
On 13-02-18, 17:18, Chen-Yu Tsai wrote: > On Tue, Feb 13, 2018 at 5:13 PM, Maxime Ripard > wrote: > > On Fri, Feb 09, 2018 at 02:28:04PM +0530, Viresh Kumar wrote: > >> The "cooling-min-level" and "cooling-max-level" properties are not > >> parsed by any part of the kernel currently and the max co

Re: [PATCH 1/2] dt-bindings: gpio: Add Spreadtrum EIC controller documentation

2018-02-13 Thread Baolin Wang
Hi Rob, On 14 February 2018 at 07:39, Rob Herring wrote: > On Thu, Feb 08, 2018 at 04:01:42PM +0800, Baolin Wang wrote: >> This patch adds the device tree bindings for the Spreadtrum EIC >> controller. The EIC can be recognized as one special type of GPIO, >> which can only be used as input. >> >

Re: VMs freezing when host is running 4.14

2018-02-13 Thread Josh Poimboeuf
On Wed, Feb 14, 2018 at 10:56:35AM +0800, Haozhong Zhang wrote: > On 02/13/18 20:04 -0600, Josh Poimboeuf wrote: > > On Sun, Feb 11, 2018 at 02:39:41PM +0100, Marc Haber wrote: > > > Hi, > > > > > > after in total nine weeks of bisecting, broken filesystems, service > > > outages (thankfully on un

linux-next: Tree for Feb 14

2018-02-13 Thread Stephen Rothwell
Hi all, Changes since 20180213: Non-merge commits (relative to Linus' tree): 1493 1746 files changed, 77576 insertions(+), 39081 deletions(-) I have created today's linux-next tree at git://git.kernel.o

Re: [PATCH v3 2/5] x86/apic: Fix restoring boot irq mode in reboot and kexec/kdump

2018-02-13 Thread Dou Liyang
Hi Eric, At 02/14/2018 01:40 AM, Eric W. Biederman wrote: Dou Liyang writes: Hi Baoquan, At 02/12/2018 11:08 AM, Eric W. Biederman wrote: Baoquan He writes: This is a regression fix. Before, to fix erratum AVR31, commit 522e66464467 ("x86/apic: Disable I/O APIC before shutdown of the lo

Re: [PATCH v2 1/2] KVM: X86: Add per-VM no-HLT-exiting capability

2018-02-13 Thread Wanpeng Li
2018-02-14 0:02 GMT+08:00 Paolo Bonzini : > On 05/02/2018 07:57, Wanpeng Li wrote: >> From: Wanpeng Li >> >> If host CPUs are dedicated to a VM, we can avoid VM exits on HLT. >> This patch adds the per-VM non-HLT-exiting capability. >> >> Cc: Paolo Bonzini >> Cc: Radim Krčmář >> Signed-off-by: W

[PATCH v1] arm: dts: mt7623: add PCIe related nodes

2018-02-13 Thread Ryder Lee
This patch adds some device nodes for the PCIe function block and updates related pinmux. Moreover, we add interrupt-map properties in both parent and children as the chip only has one IRQ per slot that is connected to all INTx and get propagated through the bridges and it also represents the root

Re: [PATCH] selftests/bpf/test_maps: exit child process without error in ENOMEM case

2018-02-13 Thread Alexei Starovoitov
On Mon, Feb 12, 2018 at 09:52:04PM +0800, Li Zhijian wrote: > From: Li Zhijian > > test_maps contains a series of stress tests, and previously it will break the > reset tests when it failed to alloc memory. > --- > Failed to create hashmap key=8 value=262144 'Cannot allocate m

[PATCH] dt-bindings: PCI: MediaTek: fix dtc warnings

2018-02-13 Thread Ryder Lee
dtc recently added PCI bus checks. Fix these warnings: Warning (pci_bridge): Node /pcie@1a14/pcie@0,0 missing bus-range for PCI bridge Warning (pci_bridge): Node /pcie@1a14/pcie@1,0 missing bus-range for PCI bridge Warning (pci_bridge): Node /pcie@1a14/pcie@2,0 missing bus-range for

[PATCH net] tuntap: try not batch packets for devmap

2018-02-13 Thread Jason Wang
Commit 762c330d670e ("tuntap: add missing xdp flush") tries to fix the devmap stall caused by missed xdp flush by counting the pending xdp redirected packets and flush when it exceeds NAPI_POLL_WEIGHT or MSG_MORE is clear. This may lead BUG() since xdp_do_flush() was called under process context wi

Re: [PATCH v7 6/6] drm/msm: iommu: Replace runtime calls with runtime suppliers

2018-02-13 Thread Tomasz Figa
Hi Jordan, On Wed, Feb 14, 2018 at 1:42 AM, Jordan Crouse wrote: > On Tue, Feb 13, 2018 at 06:10:38PM +0900, Tomasz Figa wrote: >> Hi Vivek, >> >> Thanks for the patch. Please see my comments inline. >> >> On Wed, Feb 7, 2018 at 7:31 PM, Vivek Gautam >> wrote: >> > While handling the concerned i

Re: [PATCH 2/2] gpio: Add Spreadtrum EIC driver support

2018-02-13 Thread Baolin Wang
Hi Linus, On 13 February 2018 at 17:18, Linus Walleij wrote: > Hi Baolin, > > thank you for your patch! > > On Thu, Feb 8, 2018 at 9:01 AM, Baolin Wang wrote: > >> The Spreadtrum platform has 2 EIC controllers, one is in digital chip and >> another one is in PMIC. The digital-chip EIC controller

Re: [PATCH RFC 0/2] Packed ring for vhost

2018-02-13 Thread Jason Wang
On 2018年02月14日 10:47, Michael S. Tsirkin wrote: On Wed, Feb 14, 2018 at 10:37:07AM +0800, Jason Wang wrote: Hi all: This RFC implement a subset of packed ring which was described at https://github.com/oasis-tcs/virtio-docs/blob/master/virtio-v1.1-packed-wd07.pdf . The code were tested with pm

Re: [PATCH] arm64: Enable SPRD_TIMER

2018-02-13 Thread Baolin Wang
Hi Chunyan, On 11 February 2018 at 19:41, Chunyan Zhang wrote: > Hi Baolin, > > On 7 February 2018 at 11:12, Baolin Wang wrote: >> On 7 February 2018 at 10:31, Chunyan Zhang wrote: >>> Hi Baolin, >>> >>> On 6 February 2018 at 18:36, Baolin Wang wrote: Enable Spreadtrum timer driver for Sp

[PATCH RESEND v5 2/3] mailbox: Add support for Hi3660 mailbox

2018-02-13 Thread Leo Yan
From: Kaihua Zhong Hi3660 mailbox controller is used to send message within multiple processors, MCU, HIFI, etc. It supports 32 mailbox channels and every channel can only be used for single transferring direction. Once the channel is enabled, it needs to specify the destination interrupt and a

[PATCH RESEND v5 3/3] dts: arm64: Add mailbox binding for hi3660

2018-02-13 Thread Leo Yan
From: Kaihua Zhong Add DT binding for mailbox driver. Signed-off-by: Ruyi Wang Signed-off-by: Kaihua Zhong --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi366

[PATCH RESEND v5 0/3] Add support for Hi3660 mailbox driver

2018-02-13 Thread Leo Yan
Hi3660 mailbox controller is used to send message within multiple processors, MCU, HIFI, etc. This patch series is to implement an initial version for Hi3660 mailbox driver with "automatic acknowledge" mode. The patch set have been verified with Hi3660 stub clock driver, so we can send message to

[PATCH RESEND v5 1/3] dt-bindings: mailbox: Introduce Hi3660 controller binding

2018-02-13 Thread Leo Yan
Introduce a binding for the Hi3660 mailbox controller, the mailbox is used within application processor (AP), communication processor (CP), HIFI and MCU, etc. Acked-by: Rob Herring Signed-off-by: Leo Yan --- .../bindings/mailbox/hisilicon,hi3660-mailbox.txt | 51 ++ 1 file

Re: [PATCH v7 2/6] iommu/arm-smmu: Add pm_runtime/sleep ops

2018-02-13 Thread Tomasz Figa
On Tue, Feb 13, 2018 at 7:25 PM, Vivek Gautam wrote: >>> +static int arm_smmu_init_clks(struct arm_smmu_device *smmu) >>> +{ >>> + int i; >>> + int num = smmu->num_clks; >>> + const struct arm_smmu_match_data *data; >>> + >>> + if (num < 1) >>> + return 0; >>>

Re: [PATCH] x86/mm: Decouple dynamic __PHYSICAL_MASK from AMD SME

2018-02-13 Thread Tom Lendacky
On 2/8/2018 6:55 AM, Kirill A. Shutemov wrote: > AMD SME claims one bit from physical address to indicate whether the > page is encrypted or not. To achieve that we clear out the bit from > __PHYSICAL_MASK. I was actually working on a suggestion by Linus to use one of the software page table bits

Re: [PATCH v7 3/9] arm: omap: Move dmtimer.h out of plat-omap

2018-02-13 Thread Keerthy
On Tuesday 13 February 2018 08:39 PM, Tony Lindgren wrote: > * Suman Anna [180213 02:07]: >> On 01/09/2018 12:23 AM, J, KEERTHY wrote: >>> The header file is currently under plat-omap directory >>> under arch/omap. Move this out to an accessible place. >>> @@ -18,7 +18,7 @@ >>> #include >>>

Re: [PATCH v7 6/6] drm/msm: iommu: Replace runtime calls with runtime suppliers

2018-02-13 Thread Vivek Gautam
Hi Tomasz, On Wed, Feb 14, 2018 at 8:31 AM, Tomasz Figa wrote: > On Wed, Feb 14, 2018 at 11:13 AM, Rob Clark wrote: >> On Tue, Feb 13, 2018 at 8:59 PM, Tomasz Figa wrote: >>> On Wed, Feb 14, 2018 at 3:03 AM, Rob Clark wrote: On Tue, Feb 13, 2018 at 4:10 AM, Tomasz Figa wrote: > Hi Vi

Re: [PATCH] x86/entry/64: Fix CR3 restore order in paranoid_exit()

2018-02-13 Thread Dave Hansen
On 02/13/2018 06:27 PM, Josh Poimboeuf wrote: > --- a/arch/x86/entry/entry_64.S > +++ b/arch/x86/entry/entry_64.S > @@ -1167,10 +1167,10 @@ ENTRY(paranoid_exit) > UNWIND_HINT_REGS > DISABLE_INTERRUPTS(CLBR_ANY) > TRACE_IRQS_OFF_DEBUG > + RESTORE_CR3 scratch_reg=%r15 save_r

Re: [PATCH] x86/mm: Decouple dynamic __PHYSICAL_MASK from AMD SME

2018-02-13 Thread Kirill A. Shutemov
On Tue, Feb 13, 2018 at 10:10:22PM -0600, Tom Lendacky wrote: > On 2/8/2018 6:55 AM, Kirill A. Shutemov wrote: > > AMD SME claims one bit from physical address to indicate whether the > > page is encrypted or not. To achieve that we clear out the bit from > > __PHYSICAL_MASK. > > I was actually wo

Re: [RFC PATCH 1/2] KVM: x86: Add a framework for supporting MSR-based features

2018-02-13 Thread Tom Lendacky
On 2/13/2018 10:21 AM, Paolo Bonzini wrote: > On 08/02/2018 23:58, Tom Lendacky wrote: >> Provide a new KVM capability that allows bits within MSRs to be recognized >> as features. Two new ioctls are added to the VM ioctl routine to retrieve >> the list of these MSRs and their values. The MSR feat

Re: [RFC PATCH 2/2] KVM: SVM: Add MSR feature support for serializing LFENCE

2018-02-13 Thread Tom Lendacky
On 2/13/2018 10:22 AM, Paolo Bonzini wrote: > On 08/02/2018 23:58, Tom Lendacky wrote: >> Create an entry in the new MSR as a feature framework to allow a guest to >> recognize LFENCE as a serializing instruction on AMD processors. The MSR >> can only be set by the host, any write by the guest wil

[no subject]

2018-02-13 Thread Alfred Cheuk Chow
Good Day, I am Mr. Alfred Cheuk Yu Chow, the Director for Credit & Marketing Chong Hing Bank, Hong Kong, Chong Hing Bank Center, 24 Des Voeux Road Central, Hong Kong. I have a business proposal of $ 38,980,369.00. All confirmable documents to back up the claims will be made available to you p

Re: [RFC PATCH 1/2] KVM: x86: Add a framework for supporting MSR-based features

2018-02-13 Thread Tom Lendacky
On 2/13/2018 10:25 AM, Paolo Bonzini wrote: > On 08/02/2018 23:58, Tom Lendacky wrote: >> +bool kvm_valid_msr_feature(u32 msr, u64 data) >> +{ >> +unsigned int i; >> + >> +for (i = 0; i < num_msr_based_features; i++) { >> +struct kvm_msr_based_features *m = msr_based_features +

Re: [PATCH v7 3/9] arm: omap: Move dmtimer.h out of plat-omap

2018-02-13 Thread Keerthy
On Tuesday 13 February 2018 07:36 AM, Suman Anna wrote: > Hi Keerthy, > > On 01/09/2018 12:23 AM, J, KEERTHY wrote: >> The header file is currently under plat-omap directory >> under arch/omap. Move this out to an accessible place. >> >> No Code changes done to the header file. >> >> Signed-off-

Re: plan9 semantics on Linux - mount namespaces

2018-02-13 Thread Aleksa Sarai
On 2018-02-14, Enrico Weigelt wrote: > On 13.02.2018 22:27, Aleksa Sarai wrote: > > > You can do this by creating a new user namespace (CLONE_NEWUSER), which > > then gives you the required permissions to create other namespaces > > (CLONE_NEWNS). This is how "rootless containers" or unprivileged

Re: [PATCH] x86/mm: Decouple dynamic __PHYSICAL_MASK from AMD SME

2018-02-13 Thread Tom Lendacky
On 2/13/2018 10:21 PM, Kirill A. Shutemov wrote: > On Tue, Feb 13, 2018 at 10:10:22PM -0600, Tom Lendacky wrote: >> On 2/8/2018 6:55 AM, Kirill A. Shutemov wrote: >>> AMD SME claims one bit from physical address to indicate whether the >>> page is encrypted or not. To achieve that we clear out the

[PATCH] lib/scatterlist: Add SG_CHAIN and SG_EMARK macros for LSB encodings

2018-02-13 Thread Anshuman Khandual
This replaces scatterlist->page_link LSB encodings with SG_CHAIN and SG_EMARK definitions without any functional change. Signed-off-by: Anshuman Khandual --- include/linux/scatterlist.h | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/include/linux/sc

Re: [PATCH v3 1/1] mm: initialize pages on demand during boot

2018-02-13 Thread Sergey Senozhatsky
On (02/09/18 14:22), Pavel Tatashin wrote: [..] > +/* > + * If this zone has deferred pages, try to grow it by initializing enough > + * deferred pages to satisfy the allocation specified by order, rounded up to > + * the nearest PAGES_PER_SECTION boundary. So we're adding memory in > increments

Re: [PATCH v7 4/9] arm: OMAP: Move dmtimer driver out of plat-omap to drivers under clocksource

2018-02-13 Thread Keerthy
On Tuesday 13 February 2018 07:54 AM, Suman Anna wrote: > Hi Keerthy, > > On 01/09/2018 12:23 AM, J, KEERTHY wrote: >> Move the dmtimer driver out of plat-omap to clocksource. >> So that non-omap devices also could use this. > > What non-omap devices do you have in mind? I don't think this driv

Re: [PATCH v7 5/9] dmtimer: Add timer ops to the platform data structure

2018-02-13 Thread Keerthy
On Tuesday 13 February 2018 08:16 AM, Suman Anna wrote: > On 01/09/2018 12:23 AM, J, KEERTHY wrote: >> Add timer ops to the platform data structure >> >> Signed-off-by: Keerthy >> Reviewed-by: Sebastian Reichel >> Tested-by: Ladislav Michl >> --- >> include/linux/platform_data/dmtimer-omap.h

Re: [PATCH 2/4 v6] lib: debugobjects: add global free list and the counter

2018-02-13 Thread Yang Shi
On 2/13/18 2:02 AM, Thomas Gleixner wrote: On Mon, 12 Feb 2018, Yang Shi wrote: On 2/12/18 8:25 AM, Thomas Gleixner wrote: On Tue, 6 Feb 2018, Yang Shi wrote: + /* +* Reuse objs from the global free list, they will be reinitialized +* when allocating +*/ +

Re: [PATCH v7 6/6] drm/msm: iommu: Replace runtime calls with runtime suppliers

2018-02-13 Thread Tomasz Figa
On Wed, Feb 14, 2018 at 1:17 PM, Vivek Gautam wrote: > Hi Tomasz, > > On Wed, Feb 14, 2018 at 8:31 AM, Tomasz Figa wrote: >> On Wed, Feb 14, 2018 at 11:13 AM, Rob Clark wrote: >>> On Tue, Feb 13, 2018 at 8:59 PM, Tomasz Figa wrote: On Wed, Feb 14, 2018 at 3:03 AM, Rob Clark wrote: > O

Re: [1/2] powerpc/kdump: Add missing optional dummy functions

2018-02-13 Thread Michael Ellerman
On Mon, 2018-02-12 at 22:34:07 UTC, Guenter Roeck wrote: > If KEXEC_CORE is not enabled, PowerNV builds fail as follows. > > arch/powerpc/platforms/powernv/smp.c: In function 'pnv_smp_cpu_kill_self': > arch/powerpc/platforms/powernv/smp.c:236:4: error: > implicit declaration of function 'cra

Re: [2/2] powerpc/pseries: Declare optional dummy function for find_and_online_cpu_nid

2018-02-13 Thread Michael Ellerman
On Mon, 2018-02-12 at 22:34:08 UTC, Guenter Roeck wrote: > Commit e67e02a544e9 ("powerpc/pseries: Fix cpu hotplug crash with > memoryless nodes") adds an unconditional call to find_and_online_cpu_nid(), > which is only declared if CONFIG_PPC_SPLPAR is enabled. This results in > the following build

[PATCH v5 1/6] x86/apic: Split out restore_boot_irq_mode from disable_IO_APIC

2018-02-13 Thread Baoquan He
This is a preparation patch. Split out the code which restores boot irq mode from disable_IO_APIC() and wrap into a new function restore_boot_irq_mode(). No functional change. Signed-off-by: Baoquan He --- arch/x86/include/asm/io_apic.h | 1 + arch/x86/kernel/apic/io_apic.c | 5 + 2 files ch

[PATCH v5 2/6] x86/apic: Replace disable_IO_APIC for KEXEC_JUMP

2018-02-13 Thread Baoquan He
Later disable_IO_APIC() will be broken down into clear_IO_APIC() and restore_boot_irq_mode(). These two functions will be called separately where they are needed to fix a regression introduced by commit 522e66464467 ("x86/apic: Disable I/O APIC before shutdown of the local APIC"). While KEXEC_JUMP

[PATCH v5 4/6] x86/apic: Remove useless disable_IO_APIC

2018-02-13 Thread Baoquan He
No one uses it anymore. Signed-off-by: Baoquan He --- arch/x86/include/asm/io_apic.h | 1 - arch/x86/kernel/apic/io_apic.c | 13 - arch/x86/kernel/machine_kexec_32.c | 5 ++--- arch/x86/kernel/machine_kexec_64.c | 5 ++--- 4 files changed, 4 insertions(+), 20 deletions(-)

[PATCH v5 3/6] x86/apic: Fix restoring boot irq mode in reboot and kexec/kdump

2018-02-13 Thread Baoquan He
This is a regression fix. Before, to fix erratum AVR31, commit 522e66464467 ("x86/apic: Disable I/O APIC before shutdown of the local APIC") moved lapic_shutdown() calling after disable_IO_APIC() in reboot and kexec/kdump code path. This introdued a regression. The root cause is that disable_IO_AP

[PATCH v5 0/6] x86/apic: Fix restoring boot irq mode in reboot and kexec/kdump

2018-02-13 Thread Baoquan He
This is v5 post. Newly added patch 0002 includes the change related to KEXEC_JUMP path. Patch 0003 only includes the regression fix. A regression bug was introduced in below commit. commit 522e66464467 ("x86/apic: Disable I/O APIC before shutdown of the local APIC") It caused the action to fail

[PATCH v5 5/6] x86/apic: Rename variable/function related to x86_io_apic_ops

2018-02-13 Thread Baoquan He
The names of x86_io_apic_ops and its two member variables, are misleading. The .read member is to read IO_APIC reg, while .disable which hook native_disable_io_apic/irq_remapping_disable_io_apic is actually used to restore boot irq mode, not disable IO_APIC. So rename x86_io_apic_ops to x86_apic_o

[PATCH v5 6/6] x86/apic: Set up through-local-APIC on boot CPU if 'noapic' specified

2018-02-13 Thread Baoquan He
Currently kdump kernel becomes very slow if 'noapic' is specified. Normal kernel won't. Kernel parameter 'noapic' is used to disable IO-APIC in system for testing or special purpose. Here the root cause is that in kdump kernel LAPIC is disabled since commit 522e664644 ("x86/apic: Disable I/O APIC

Re: [PATCHv2 1/2] zsmalloc: introduce zs_huge_object() function

2018-02-13 Thread Sergey Senozhatsky
On (02/11/18 09:05), Mike Rapoport wrote: [..] > > +/** > > + * zs_huge_object() - Test if a compressed object's size is too big for > > normal > > + *zspool classes and it shall be stored in a huge > > class. > > I think "is should be stored" is more appropriate > > > + * @

Re: [PATCH v7 31/37] MAINTAINERS: Add nds32

2018-02-13 Thread Greentime Hu
2018-02-14 0:02 GMT+08:00 Joe Perches : > On Tue, 2018-02-13 at 17:09 +0800, Greentime Hu wrote: >> Add a maintainer information for the nds32(Andes) architecture. > [] >> diff --git a/MAINTAINERS b/MAINTAINERS > [] >> @@ -868,6 +868,17 @@ X: drivers/iio/*/adjd* >> F: drivers/staging/iio/*

[PATCHv3 1/2] zsmalloc: introduce zs_huge_object() function

2018-02-13 Thread Sergey Senozhatsky
Not every object can be share its zspage with other objects, e.g. when the object is as big as zspage or nearly as big a zspage. For such objects zsmalloc has a so called huge class - every object which belongs to huge class consumes the entire zspage (which consists of a physical page). On x86_64,

HOPE TO HEAR FROM YOU

2018-02-13 Thread Miss Nadege
Hello dear how are you? Nice to meet you,my name is Miss Nadege Yann, can we become friends? hope to hear from you so that we can know each other very well, love matters mostly in life,i will also send you my pictures and tell you more about myself, my email address is(missnade...@gmail.com) w

[PATCH] x86/apic: Move pending intr check code into it's own function

2018-02-13 Thread Dou Liyang
the pending interrupt check code is mixed with the local APIC setup code, that looks messy. Extract the related code, move it into a new function named apic_pending_intr_clear(). Signed-off-by: Dou Liyang --- arch/x86/kernel/apic/apic.c | 98 - 1 file

[PATCH] x86/apic: Make setup_local_APIC() static

2018-02-13 Thread Dou Liyang
This function isn't used outside of apic.c, so let's mark it static. Signed-off-by: Dou Liyang --- arch/x86/include/asm/apic.h | 1 - arch/x86/kernel/apic/apic.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index

[PATCH -mm] proc: faster open/close of files without ->release hook

2018-02-13 Thread Alexey Dobriyan
The whole point of code in fs/proc/inode.c is to make sure ->release hook is called either at close() or at rmmod time. All if it is unnecessary if there is no ->release hook. Save allocation+list manipulations under spinlock in that case. Signed-off-by: Alexey Dobriyan --- fs/proc/inode.c |

Re: [PATCH v3 1/5] ALSA: emu10k1: remove reserved_page

2018-02-13 Thread Takashi Iwai
On Wed, 14 Feb 2018 00:04:58 +0100, Maciej S. Szmigiero wrote: > > The emu10k1-family chips need the first page (index 0) reserved in their > page tables for some reason (every emu10k1 driver I've checked does this > without much of an explanation). > Using the first page for normal samples resu

[RFT PATCH] drm/msm: Trigger fence completion from GPU

2018-02-13 Thread Bjorn Andersson
Interrupt commands causes the CP to trigger an interrupt as the command is processed, regardless of the GPU being done processing previous commands. This is seen by the interrupt being delivered before the fence is written on 8974 and is likely the cause of the additional CP_WAIT_FOR_IDLE workaroun

[PATCH] perf test: Fix test case inet_pton to accept inlines.

2018-02-13 Thread Thomas Richter
Using Fedora 27 and latest Linux kernel the test case trace+probe_libc_inet_pton.sh fails again on s390. This time is the inlining of functions which does not match. After an update of the glibc (from 2.26-16 to 2.26-24) the output is different The expected output is: __inet_pton (/usr/

[PATCH] x86/spectre: fix an error message

2018-02-13 Thread Dan Carpenter
If i == ARRAY_SIZE(mitigation_options) then we accidentally print garbage from one space beyond the end of the mitigation_options[] array. Fixes: 9005c6834c0f ("x86/spectre: Simplify spectre_v2 command line parsing") Signed-off-by: Dan Carpenter diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86

Re: [PATCH] x86/spectre: fix an error message

2018-02-13 Thread Joe Perches
On Wed, 2018-02-14 at 10:14 +0300, Dan Carpenter wrote: > If i == ARRAY_SIZE(mitigation_options) then we accidentally print > garbage from one space beyond the end of the mitigation_options[] array. > > Fixes: 9005c6834c0f ("x86/spectre: Simplify spectre_v2 command line parsing") > Signed-off-by:

FW: WWW-Nachricht.

2018-02-13 Thread Martin Kiefer
Sehr geehrte Damen und Herren, nach unserem Besuch Ihrer Homepage möchten wir Ihnen ein Angebot von Produkten vorstellen, das Ihnen ermöglichen wird, den Verkauf Ihrer Produkte sowie Dienstleistungen deutlich zu erhöhen. Ich biete Ihnen den ganz neuen Adressenkatalog der Schweizer Unternehmen

Re: [PATCH] x86/mm: Decouple dynamic __PHYSICAL_MASK from AMD SME

2018-02-13 Thread Kai Huang
On Tue, 2018-02-13 at 22:57 -0600, Tom Lendacky wrote: > On 2/13/2018 10:21 PM, Kirill A. Shutemov wrote: > > On Tue, Feb 13, 2018 at 10:10:22PM -0600, Tom Lendacky wrote: > > > On 2/8/2018 6:55 AM, Kirill A. Shutemov wrote: > > > > AMD SME claims one bit from physical address to indicate > > > > w

Re: [PATCH 08/12] Drivers: hv: vmbus: Implement Direct Mode for stimer0

2018-02-13 Thread Dan Carpenter
On Wed, Feb 14, 2018 at 02:58:41AM +, Michael Kelley (EOSG) wrote: > > -Original Message- > > From: Dan Carpenter > > Sent: Monday, February 12, 2018 12:42 AM > > To: KY Srinivasan ; Stephen Hemminger > > > > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > > de...@lin

Re: [PATCH] x86/entry/64: Fix CR3 restore order in paranoid_exit()

2018-02-13 Thread Ingo Molnar
* Josh Poimboeuf wrote: > I haven't actually seen any real-world bugs caused by this, so I'm not > sure how theoretical it is. I just stumbled upon it in code review when > looking for another bug. I believe it's a real bug, but the fix is wrong with irq tracing or lockdep enabled as Dave poi

Re: [PATCH 00/17] Add kexec_file_load support to s390

2018-02-13 Thread Dave Young
Hi Philipp, I added AKASHI in cc, he posted arm64 kexec_file series previously. I would like to read both series especially the general part, but maybe at the end of this month because of a holiday.. >From the patch log the cleanup looks nice, but still need read the details. On 02/12/18 at 11:0

Re: [PATCH] x86/entry/64: Fix CR3 restore order in paranoid_exit()

2018-02-13 Thread Ingo Molnar
* Dave Hansen wrote: > On 02/13/2018 06:27 PM, Josh Poimboeuf wrote: > > --- a/arch/x86/entry/entry_64.S > > +++ b/arch/x86/entry/entry_64.S > > @@ -1167,10 +1167,10 @@ ENTRY(paranoid_exit) > > UNWIND_HINT_REGS > > DISABLE_INTERRUPTS(CLBR_ANY) > > TRACE_IRQS_OFF_DEBUG > > + RESTORE

Re: [tip:perf/core] perf/headers: Sync new perf_event.h with the tools/include/uapi version

2018-02-13 Thread Ingo Molnar
* Alexei Starovoitov wrote: > On Tue, Feb 06, 2018 at 03:52:59AM -0800, tip-bot for Song Liu wrote: > > Commit-ID: 0d8dd67be013727ae57645ecd3ea2c36365d7da8 > > Gitweb: > > https://git.kernel.org/tip/0d8dd67be013727ae57645ecd3ea2c36365d7da8 > > Author: Song Liu > > AuthorDate: Wed, 6 D

Re: [PATCH] rtc: ds1302: remove redundant initializations of pointer bp

2018-02-13 Thread Alexandre Belloni
On 23/01/2018 at 10:17:27 +, Colin King wrote: > From: Colin Ian King > > Pointe bp is being initialized and this value is never read, it > is being updated to the same value later just before it is going to > be used. Remove the initialization as it is never read and keep > the setting of bp

Re: [PATCH v2 0/6] Spectre v2 updates

2018-02-13 Thread Ingo Molnar
* Paolo Bonzini wrote: > On 11/02/2018 00:39, David Woodhouse wrote: > > Using retpoline ensures the kernel is safe because it doesn't contain > > any indirect branches, but firmware still can — and we make calls into > > firmware at runtime. Where the IBRS microcode support is available, use >

Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-13 Thread Paolo Bonzini
On 12/02/2018 16:27, David Woodhouse wrote: > The original IBRS hack in microcode is horribly slow. For the next > generation of CPUs, as a stopgap until we get a proper fix, Intel > promise an "Enhanced IBRS" which will be fast. > > The assumption is that predictions in the BTB/RSB will be tagged

Re: [PATCH v7 2/6] iommu/arm-smmu: Add pm_runtime/sleep ops

2018-02-13 Thread Tomasz Figa
Hi Vivek, Thanks for the patch. Please see some comments inline. On Wed, Feb 7, 2018 at 7:31 PM, Vivek Gautam wrote: > From: Sricharan R > > The smmu needs to be functional only when the respective > master's using it are active. The device_link feature > helps to track such functional dependen

Re: [PATCH] x86/speculation: Clean up various Spectre related details

2018-02-13 Thread Ingo Molnar
* David Woodhouse wrote: > On Sun, 2018-02-11 at 20:43 +0100, Ingo Molnar wrote: > > > And should these say 'Spectre v2' not just 'Spectre'? > > > > Yeah, you are probably right, but I didn't want to make the messages too > > specific  > > - do we really know that this is the end of Spectre-st

Re: [tip:x86/boot] x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G

2018-02-13 Thread Kirill A. Shutemov
On Mon, Feb 12, 2018 at 10:51:56PM -0800, Andrei Vagin wrote: > Hi Kirill, > > Something is wrong in this patch. Was it bisected to exactly this patch? Is the previous one fine? > We regularly run CRIU tests on linux-next, and yesterday I found that a > kernel didn't boot. We run this tests in T

Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-13 Thread David Woodhouse
On Tue, 2018-02-13 at 08:47 +0100, Ingo Molnar wrote: > * David Woodhouse wrote: > > > > > +extern enum spectre_v2_mitigation spectre_v2_enabled; > > This needs to be exported if the KVM module wants to use it. > > > > > +static inline bool spectre_v2_ibrs_all(void) > > +{ > > + return spect

Re: [PATCH v3 2/2] gpio: Add GPIO driver for Spreadtrum SC9860 platform

2018-02-13 Thread Linus Walleij
On Mon, Feb 5, 2018 at 2:55 AM, Baolin Wang wrote: > The Spreadtrum SC9860 platform GPIO controller contains 16 groups and > each group contains 16 GPIOs. Each GPIO can set input/output and has > the interrupt capability. > > Signed-off-by: Baolin Wang > Reviewed-by: Andy Shevchenko > --- > Cha

Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-13 Thread David Woodhouse
On Tue, 2018-02-13 at 09:02 +0100, Paolo Bonzini wrote: > > --- a/arch/x86/kvm/vmx.c > > +++ b/arch/x86/kvm/vmx.c > > @@ -3419,13 +3419,14 @@ static int vmx_set_msr(struct kvm_vcpu *vcpu, > > struct msr_data *msr_info) > >   > >   vmx->spec_ctrl = data; > >   > > - if (!data)

Re: [PATCH v4 0/8] ARM: sun9i: SMP and CPU hotplug support

2018-02-13 Thread Chen-Yu Tsai
Hi Nicolas, Dave, On Wed, Jan 17, 2018 at 4:46 PM, Chen-Yu Tsai wrote: > This is v4 of my sun9i SMP/hotplug support series which was started > over two years ago [1]. We've tried to implement PSCI for both the A80 > and A83T. Results were not promising. The issue is that these two chips > have a

Re: [PATCH 0/5] Fix deadlock on runtime suspend in DRM drivers

2018-02-13 Thread Lukas Wunner
On Mon, Feb 12, 2018 at 01:58:32PM -0500, Alex Deucher wrote: > On Mon, Feb 12, 2018 at 4:45 AM, Lukas Wunner wrote: > > On Mon, Feb 12, 2018 at 09:03:26AM +, Mike Lothian wrote: > >> On 12 February 2018 at 03:39, Lukas Wunner wrote: > >> > On Mon, Feb 12, 2018 at 12:35:51AM +, Mike Lothi

  1   2   3   4   5   6   7   8   9   10   >