Re: [RFC PATCH v5 3/4] x86/acrn: Use HYPERVISOR_CALLBACK_VECTOR for ACRN guest upcall vector

2019-04-25 Thread Ingo Molnar
* Zhao, Yakui wrote: > > > > Does the hypervisor model the APIC EOI command, i.e. does it require the > > > > APIC to be acked? I.e. would not acking the APIC create an IRQ storm? > > > > > > The hypervisor requires that the APIC EOI should be acked. If the EOI APIC > > > is not acked, the

linux-next: build warning after merge of the char-misc tree

2019-04-25 Thread Stephen Rothwell
Hi all, After merging the char-misc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/misc/aspeed-p2a-ctrl.c: In function 'aspeed_p2a_mmap': drivers/misc/aspeed-p2a-ctrl.c:110:2: warning: ISO C90 forbids mixed declarations and code

Re: [PATCH 1/3] mfd: apple-ibridge: Add Apple iBridge MFD driver.

2019-04-25 Thread Life is hard, and then you die
Hi Benjamin, On Thu, Apr 25, 2019 at 11:39:12AM +0200, Benjamin Tissoires wrote: > On Thu, Apr 25, 2019 at 10:19 AM Life is hard, and then you die > wrote: > > > > Hi Benjamin, > > > > Thank you for looking at this. > > > > On Wed, Apr 24, 2019 at 04:18:23PM +0200, Benjamin Tissoires

[PATCH v2] arm64: dts: ls1028a: Add USB dt nodes

2019-04-25 Thread Ran Wang
This patch adds USB dt nodes for LS1028A. Signed-off-by: Ran Wang --- Changes in v2: - Rename node from usb3@... to usb@... to meet DTSpec arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

Re: [PATCH 1/2] mmc: sdhci_am654: Fix minor phy configurations

2019-04-25 Thread Adrian Hunter
On 25/04/19 6:57 PM, Faiz Abbas wrote: > Fix the following minor things: > > 1. Line wrapping with the regmap_*() functions is way more conservative > than required by the 80 character rule. Expand the function calls out to > use less number of lines. > > 2. Add an error message if the DLL fails

Re: [PATCH 1/2] RISC-V: Add DT documentation for SiFive L2 Cache Controller

2019-04-25 Thread Yash Shah
On Thu, Apr 25, 2019 at 3:43 PM Sudeep Holla wrote: > > On Thu, Apr 25, 2019 at 11:24:55AM +0530, Yash Shah wrote: > > Add device tree bindings for SiFive FU540 L2 cache controller driver > > > > Signed-off-by: Yash Shah > > --- > > .../devicetree/bindings/riscv/sifive-l2-cache.txt | 53 > >

Re: [PATCHv2 4/4] printk: make sure we always print console disabled message

2019-04-25 Thread Sergey Senozhatsky
Forgot to mention that the series is still in RFC phase. On (04/26/19 14:33), Sergey Senozhatsky wrote: [..] > +++ b/kernel/printk/printk.c > @@ -2613,6 +2613,12 @@ static int __unregister_console(struct console > *console) > pr_info("%sconsole [%s%d] disabled\n", >

Re: [PATCH 02/28] locking/lockdep: Add description and explanation in lockdep design doc

2019-04-25 Thread Yuyang Du
Thank you very much for review. You mean class can go away? Before Bart's addition, it can go away. Right? I think maybe the original point of "never go away" in that context did not intend to talk about a class's real disappearance. Anyway, the points should be made comprehensive. You want me

Re: [PATCH 2/2] RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs

2019-04-25 Thread Yash Shah
On Thu, Apr 25, 2019 at 3:48 PM Sudeep Holla wrote: > > On Thu, Apr 25, 2019 at 11:24:56AM +0530, Yash Shah wrote: > > The driver currently supports only SiFive FU540-C000 platform. > > > > The initial version of L2 cache controller driver includes: > > - Initial configuration reporting at boot

Re: [PATCH 1/3] mfd: apple-ibridge: Add Apple iBridge MFD driver.

2019-04-25 Thread Life is hard, and then you die
Hi Jonathan, On Wed, Apr 24, 2019 at 08:13:17PM +0100, Jonathan Cameron wrote: > On Wed, 24 Apr 2019 03:47:18 -0700 > "Life is hard, and then you die" wrote: > > > Hi Jonathan, > > > > On Mon, Apr 22, 2019 at 12:34:26PM +0100, Jonathan Cameron wrote: > > > On Sun, 21 Apr 2019 20:12:49

[PATCHv2 2/4] printk: remove invalid register_console() comment

2019-04-25 Thread Sergey Senozhatsky
We don't iterate consoles twice, since commit 8259cf434202 ("printk: Ensure that "console enabled" messages are printed on the console"), so the comment is not valid anymore, and can be removed, as was suggested by Petr. The patch also invokes pr_info("%sconsole [%s%d] enabled\n") before we

[PATCHv2 4/4] printk: make sure we always print console disabled message

2019-04-25 Thread Sergey Senozhatsky
Make sure that we print 'console disabled' messages on all the consoles, including the one we are about to unregister. Otherwise, unregistered console will not have that message, because pr_info() under console_sem doesn't print anything. We do the same thing in __register_console() with the

[PATCHv2 3/4] printk: factor out register_console() code

2019-04-25 Thread Sergey Senozhatsky
We need to take console_sem lock when we iterate console drivers list. Otherwise, another CPU can concurrently modify console drivers list or console drivers. Current register_console() has several race conditions - for_each_console() must be done under console_sem. Factor out console

[PATCH] Revert "drm/qxl: drop prime import/export callbacks"

2019-04-25 Thread Gerd Hoffmann
This reverts commit f4c34b1e2a37d5676180901fa6ff188bcb6371f8. Simliar to commit a0cecc23cfcb Revert "drm/virtio: drop prime import/export callbacks". We have to do the same with qxl, for the same reasons (it breaks DRI3). Drop the WARN_ON_ONCE(). Fixes: f4c34b1e2a37d5676180901fa6ff188bcb6371f8

[PATCHv2 0/4] Access console drivers list under console_sem

2019-04-25 Thread Sergey Senozhatsky
Hello, Normally, we grab console_sem lock before we iterate consoles list, which is necessary if we want to be race free. The only exception to this rule is console_flush_on_panic(). However, it seems that we are not fully race free - register_console() iterates console drivers list in

[PATCHv2 1/4] printk: factor out __unregister_console() code

2019-04-25 Thread Sergey Senozhatsky
The following pattern in register_console() is not completely safe: for_each_console(bcon) if (bcon->flags & CON_BOOT) unregister_console(bcon); Because, in theory, console drivers list and console drivers can be modified concurrently from another CPU. We need to grab

Re: [PATCH V2] mm: Allow userland to request that the kernel clear memory on release

2019-04-25 Thread Michal Hocko
On Thu 25-04-19 14:42:52, Jann Horn wrote: > On Thu, Apr 25, 2019 at 2:14 PM Michal Hocko wrote: > [...] > > On Wed 24-04-19 14:10:39, Matthew Garrett wrote: > > > From: Matthew Garrett > > > > > > Applications that hold secrets and wish to avoid them leaking can use > > > mlock() to prevent the

Re: [PATCH] nvme: determine the number of IO queues

2019-04-25 Thread Aaron Ma
On 4/25/19 10:39 PM, Christoph Hellwig wrote: > Honestly, unless this is a device shiping in a max market consumer > product already I don't think we should work around this crap at all, > given that this device has obviously never been tested at all. It > really needs a firmware fix instead of

Re: [PATCH V2] mm: Allow userland to request that the kernel clear memory on release

2019-04-25 Thread Michal Hocko
On Thu 25-04-19 13:39:01, Matthew Garrett wrote: > On Thu, Apr 25, 2019 at 5:37 AM Michal Hocko wrote: > > Besides that you inherently assume that the user would do mlock because > > you do not try to wipe the swap content. Is this intentional? > > Yes, given MADV_DONTDUMP doesn't imply mlock I

Re: [PATCH 1/2] serial: 8250-mtk: add follow control

2019-04-25 Thread Long Cheng
On Thu, 2019-04-25 at 12:40 +0200, Matthias Brugger wrote: > > On 25/04/2019 10:41, Long Cheng wrote: > > Add SW and HW follow control function. > > Can you please explain a bit more what you are doing in this patch. > You change the setting of the registers for different baud rates. Please >

Re: [PATCH] sparc: vdso: add FORCE to the build rule of %.so

2019-04-25 Thread David Miller
From: Masahiro Yamada Date: Fri, 26 Apr 2019 09:40:46 +0900 > Hi David, > > > On Wed, Apr 3, 2019 at 5:34 PM Masahiro Yamada > wrote: >> >> $(call if_changed,...) must have FORCE as a prerequisite. >> >> Signed-off-by: Masahiro Yamada >> --- > > Ping? Sorry, I'm really busy and taking a

[PATCH v4 26/27] userfaultfd: selftests: refactor statistics

2019-04-25 Thread Peter Xu
Introduce uffd_stats structure for statistics of the self test, at the same time refactor the code to always pass in the uffd_stats for either read() or poll() typed fault handling threads instead of using two different ways to return the statistic results. No functional change. With the new

[PATCH v4 27/27] userfaultfd: selftests: add write-protect test

2019-04-25 Thread Peter Xu
This patch adds uffd tests for write protection. Instead of introducing new tests for it, let's simply squashing uffd-wp tests into existing uffd-missing test cases. Changes are: (1) Bouncing tests We do the write-protection in two ways during the bouncing test: - By using

[PATCH v4 25/27] userfaultfd: wp: declare _UFFDIO_WRITEPROTECT conditionally

2019-04-25 Thread Peter Xu
Only declare _UFFDIO_WRITEPROTECT if the user specified UFFDIO_REGISTER_MODE_WP and if all the checks passed. Then when the user registers regions with shmem/hugetlbfs we won't expose the new ioctl to them. Even with complete anonymous memory range, we'll only expose the new WP ioctl bit if the

[PATCH v4 22/27] userfaultfd: wp: enabled write protection in userfaultfd API

2019-04-25 Thread Peter Xu
From: Shaohua Li Now it's safe to enable write protection in userfaultfd API Cc: Andrea Arcangeli Cc: Pavel Emelyanov Cc: Rik van Riel Cc: Kirill A. Shutemov Cc: Mel Gorman Cc: Hugh Dickins Cc: Johannes Weiner Signed-off-by: Shaohua Li Signed-off-by: Andrea Arcangeli Reviewed-by:

[PATCH v4 19/27] userfaultfd: introduce helper vma_find_uffd

2019-04-25 Thread Peter Xu
We've have multiple (and more coming) places that would like to find a userfault enabled VMA from a mm struct that covers a specific memory range. This patch introduce the helper for it, meanwhile apply it to the code. Suggested-by: Mike Rapoport Reviewed-by: Jerome Glisse Reviewed-by: Mike

[PATCH v4 13/27] mm: introduce do_wp_page_cont()

2019-04-25 Thread Peter Xu
The userfaultfd handling in do_wp_page() is very special comparing to the rest of the function because it only postpones the real handling of the page fault to the userspace program. Isolate the handling part of do_wp_page() into a new function called do_wp_page_cont() so that we can use it

[PATCH v4 24/27] userfaultfd: wp: UFFDIO_REGISTER_MODE_WP documentation update

2019-04-25 Thread Peter Xu
From: Martin Cracauer Adds documentation about the write protection support. Signed-off-by: Martin Cracauer Signed-off-by: Andrea Arcangeli [peterx: rewrite in rst format; fixups here and there] Reviewed-by: Jerome Glisse Reviewed-by: Mike Rapoport Signed-off-by: Peter Xu ---

[PATCH v4 21/27] userfaultfd: wp: add the writeprotect API to userfaultfd ioctl

2019-04-25 Thread Peter Xu
From: Andrea Arcangeli v1: From: Shaohua Li v2: cleanups, remove a branch. [peterx writes up the commit message, as below...] This patch introduces the new uffd-wp APIs for userspace. Firstly, we'll allow to do UFFDIO_REGISTER with write protection tracking using the new

[PATCH v4 23/27] userfaultfd: wp: don't wake up when doing write protect

2019-04-25 Thread Peter Xu
It does not make sense to try to wake up any waiting thread when we're write-protecting a memory region. Only wake up when resolving a write protected page fault. Reviewed-by: Mike Rapoport Signed-off-by: Peter Xu --- fs/userfaultfd.c | 13 - 1 file changed, 8 insertions(+), 5

[PATCH v4 15/27] userfaultfd: wp: drop _PAGE_UFFD_WP properly when fork

2019-04-25 Thread Peter Xu
UFFD_EVENT_FORK support for uffd-wp should be already there, except that we should clean the uffd-wp bit if uffd fork event is not enabled. Detect that to avoid _PAGE_UFFD_WP being set even if the VMA is not being tracked by VM_UFFD_WP. Do this for both small PTEs and huge PMDs. Reviewed-by:

[PATCH v4 20/27] userfaultfd: wp: support write protection for userfault vma range

2019-04-25 Thread Peter Xu
From: Shaohua Li Add API to enable/disable writeprotect a vma range. Unlike mprotect, this doesn't split/merge vmas. Cc: Andrea Arcangeli Cc: Rik van Riel Cc: Kirill A. Shutemov Cc: Mel Gorman Cc: Hugh Dickins Cc: Johannes Weiner Signed-off-by: Shaohua Li Signed-off-by: Andrea Arcangeli

[PATCH v4 18/27] khugepaged: skip collapse if uffd-wp detected

2019-04-25 Thread Peter Xu
Don't collapse the huge PMD if there is any userfault write protected small PTEs. The problem is that the write protection is in small page granularity and there's no way to keep all these write protection information if the small pages are going to be merged into a huge PMD. The same thing

[PATCH v4 17/27] userfaultfd: wp: support swap and page migration

2019-04-25 Thread Peter Xu
For either swap and page migration, we all use the bit 2 of the entry to identify whether this entry is uffd write-protected. It plays a similar role as the existing soft dirty bit in swap entries but only for keeping the uffd-wp tracking for a specific PTE/PMD. Something special here is that

[PATCH v4 16/27] userfaultfd: wp: add pmd_swp_*uffd_wp() helpers

2019-04-25 Thread Peter Xu
Adding these missing helpers for uffd-wp operations with pmd swap/migration entries. Reviewed-by: Jerome Glisse Reviewed-by: Mike Rapoport Signed-off-by: Peter Xu --- arch/x86/include/asm/pgtable.h | 15 +++ include/asm-generic/pgtable_uffd.h | 15 +++ 2 files

[PATCH v4 14/27] userfaultfd: wp: handle COW properly for uffd-wp

2019-04-25 Thread Peter Xu
This allows uffd-wp to support write-protected pages for COW. For example, the uffd write-protected PTE could also be write-protected by other usages like COW or zero pages. When that happens, we can't simply set the write bit in the PTE since otherwise it'll change the content of every single

[PATCH v4 12/27] userfaultfd: wp: apply _PAGE_UFFD_WP bit

2019-04-25 Thread Peter Xu
Firstly, introduce two new flags MM_CP_UFFD_WP[_RESOLVE] for change_protection() when used with uffd-wp and make sure the two new flags are exclusively used. Then, - For MM_CP_UFFD_WP: apply the _PAGE_UFFD_WP bit and remove _PAGE_RW when a range of memory is write protected by uffd -

[PATCH v4 10/27] userfaultfd: wp: add UFFDIO_COPY_MODE_WP

2019-04-25 Thread Peter Xu
From: Andrea Arcangeli This allows UFFDIO_COPY to map pages write-protected. Signed-off-by: Andrea Arcangeli [peterx: switch to VM_WARN_ON_ONCE in mfill_atomic_pte; add brackets around "dst_vma->vm_flags & VM_WRITE"; fix wordings in comments and commit messages] Reviewed-by: Jerome Glisse

[PATCH v4 11/27] mm: merge parameters for change_protection()

2019-04-25 Thread Peter Xu
change_protection() was used by either the NUMA or mprotect() code, there's one parameter for each of the callers (dirty_accountable and prot_numa). Further, these parameters are passed along the calls: - change_protection_range() - change_p4d_range() - change_pud_range() -

[PATCH v4 06/27] userfaultfd: wp: add helper for writeprotect check

2019-04-25 Thread Peter Xu
From: Shaohua Li add helper for writeprotect check. Will use it later. Cc: Andrea Arcangeli Cc: Pavel Emelyanov Cc: Rik van Riel Cc: Kirill A. Shutemov Cc: Mel Gorman Cc: Hugh Dickins Cc: Johannes Weiner Signed-off-by: Shaohua Li Signed-off-by: Andrea Arcangeli Reviewed-by: Jerome

[PATCH v4 09/27] userfaultfd: wp: userfaultfd_pte/huge_pmd_wp() helpers

2019-04-25 Thread Peter Xu
From: Andrea Arcangeli Implement helpers methods to invoke userfaultfd wp faults more selectively: not only when a wp fault triggers on a vma with vma->vm_flags VM_UFFD_WP set, but only if the _PAGE_UFFD_WP bit is set in the pagetable too. Signed-off-by: Andrea Arcangeli Reviewed-by: Jerome

[PATCH v4 08/27] userfaultfd: wp: add WP pagetable tracking to x86

2019-04-25 Thread Peter Xu
From: Andrea Arcangeli Accurate userfaultfd WP tracking is possible by tracking exactly which virtual memory ranges were writeprotected by userland. We can't relay only on the RW bit of the mapped pagetable because that information is destroyed by fork() or KSM or swap. If we were to relay on

[PATCH v4 04/27] mm: allow VM_FAULT_RETRY for multiple times

2019-04-25 Thread Peter Xu
The idea comes from a discussion between Linus and Andrea [1]. Before this patch we only allow a page fault to retry once. We achieved this by clearing the FAULT_FLAG_ALLOW_RETRY flag when doing handle_mm_fault() the second time. This was majorly used to avoid unexpected starvation of the

[PATCH v4 07/27] userfaultfd: wp: hook userfault handler to write protection fault

2019-04-25 Thread Peter Xu
From: Andrea Arcangeli There are several cases write protection fault happens. It could be a write to zero page, swaped page or userfault write protected page. When the fault happens, there is no way to know if userfault write protect the page before. Here we just blindly issue a userfault

[PATCH v4 02/27] mm: userfault: return VM_FAULT_RETRY on signals

2019-04-25 Thread Peter Xu
The idea comes from the upstream discussion between Linus and Andrea: https://lkml.org/lkml/2017/10/30/560 A summary to the issue: there was a special path in handle_userfault() in the past that we'll return a VM_FAULT_NOPAGE when we detected non-fatal signals when waiting for userfault

[PATCH v4 01/27] mm: gup: rename "nonblocking" to "locked" where proper

2019-04-25 Thread Peter Xu
There's plenty of places around __get_user_pages() that has a parameter "nonblocking" which does not really mean that "it won't block" (because it can really block) but instead it shows whether the mmap_sem is released by up_read() during the page fault handling mostly when VM_FAULT_RETRY is

[PATCH v4 03/27] userfaultfd: don't retake mmap_sem to emulate NOPAGE

2019-04-25 Thread Peter Xu
The idea comes from the upstream discussion between Linus and Andrea: https://lkml.org/lkml/2017/10/30/560 A summary to the issue: there was a special path in handle_userfault() in the past that we'll return a VM_FAULT_NOPAGE when we detected non-fatal signals when waiting for userfault

[PATCH v4 05/27] mm: gup: allow VM_FAULT_RETRY for multiple times

2019-04-25 Thread Peter Xu
This is the gup counterpart of the change that allows the VM_FAULT_RETRY to happen for more than once. Reviewed-by: Jerome Glisse Signed-off-by: Peter Xu --- mm/gup.c | 17 + mm/hugetlb.c | 6 -- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/mm/gup.c

[PATCH v4 00/27] userfaultfd: write protection support

2019-04-25 Thread Peter Xu
This series implements initial write protection support for userfaultfd. Currently both shmem and hugetlbfs are not supported yet, but only anonymous memory. This is the 4nd version of it. The latest code can also be found at: https://github.com/xzpeter/linux/tree/uffd-wp-merged v4

Re: [PATCH 2/2] pinctrl: tegra: Add Tegra194 pinmux driver

2019-04-25 Thread Vidya Sagar
On 4/26/2019 8:26 AM, Krishna Yarlagadda wrote: Tegra194 has PCIE L5 rst and clkreq pins which need to be controlled dynamically at runtime. This driver supports change pinmux for these pins. Pinmux for rest of the pins is set statically by bootloader and will not be changed by this driver

Re: [PATCH] tty: Don't force RISCV SBI console as preferred console

2019-04-25 Thread Atish Patra
On 4/25/19 6:35 AM, Anup Patel wrote: The Linux kernel will auto-disables all boot consoles whenever it gets a preferred real console. Currently on RISC-V systems, if we have a real console which is not RISCV SBI console then boot consoles (such as earlycon=sbi) are not auto-disabled when a

Re: [PATCH] kernel/sched: run nohz idle load balancer on HK_FLAG_MISC CPUs

2019-04-25 Thread Nicholas Piggin
Peter Zijlstra's on April 25, 2019 9:56 pm: > On Fri, Apr 12, 2019 at 02:26:13PM +1000, Nicholas Piggin wrote: >> The nohz idle balancer runs on the lowest idle CPU. This can >> interfere with isolated CPUs, so confine it to HK_FLAG_MISC >> housekeeping CPUs. >> >> HK_FLAG_SCHED is not used for

Re: [PATCH] staging: most: protect potential string overflow

2019-04-25 Thread Bo YU
On Wed, Apr 24, 2019 at 10:55 PM Dan Carpenter wrote: > > On Mon, Apr 22, 2019 at 10:20:18PM -0400, Bo YU wrote: > > There maybe cause potential string overflow issue due to use > > strcpy without checking the length > > > > Detected By CoversityScan CID# 1444760 > > > > Fixes:

Re: [PATCH v2 4/9] powerpc/powernv/npu: use helper pci_dev_id

2019-04-25 Thread Alexey Kardashevskiy
On 25/04/2019 05:14, Heiner Kallweit wrote: > Use new helper pci_dev_id() to simplify the code. > > Signed-off-by: Heiner Kallweit Reviewed-by: Alexey Kardashevskiy > --- > arch/powerpc/platforms/powernv/npu-dma.c | 14 ++ > 1 file changed, 6 insertions(+), 8 deletions(-) >

Re: [PATCH 1/2] clk: imx7ulp: update nic1_bus_clk parent info

2019-04-25 Thread Shawn Guo
On Thu, Apr 25, 2019 at 05:03:31PM -0700, Stephen Boyd wrote: > Quoting Anson Huang (2019-04-24 22:19:07) > > Since i.MX7ULP B0 chip, nic1_bus_clk's parent is changed to > > from nic0_clk directly, update it accordingly. > > > > Signed-off-by: Anson Huang > > Looks ok. Shawn, will you pick it

Re: [PATCH v2 03/12] arm64: dts: tegra210: set thermtrip

2019-04-25 Thread Wei Ni
Hi Thierry, Eduardo have picked this series to his branch except dts patches. Please check "git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git" in the linus branch. They will be merged in the next major kernel release. Could you please take these three dts changes? Here

Re: [RFC PATCH v5 4/4] x86/acrn: Add hypercall for ACRN guest

2019-04-25 Thread Zhao, Yakui
On 2019年04月25日 19:00, Borislav Petkov wrote: On Thu, Apr 25, 2019 at 06:16:02PM +0800, Zhao, Yakui wrote: The parameter register for the VMCALL is predefined in ACRN hypervisor. Now the R8 is used to pass the hcall_id. It seems that there is no special constraint for R8~R15. So the explicit

[PATCH] ASoC: fsl_sai: Add missing return 0 in remove()

2019-04-25 Thread Nicolin Chen
Build warning being reported: sound/soc/fsl/fsl_sai.c: In function 'fsl_sai_remove': sound/soc/fsl/fsl_sai.c:921:1: warning: no return statement in function returning non-void [-Wreturn-type] So this patch just adds a "return 0" to fix it. Fixes: 812ad463e089 ("ASoC: fsl_sai: Add

[PATCH v2] KVM: x86: Add Intel CPUID.1F cpuid emulation support

2019-04-25 Thread Like Xu
Some new systems have multiple software-visible die within each package. Add support to expose Intel V2 Extended Topology Enumeration Leaf CPUID.1F. Co-developed-by: Xiaoyao Li Signed-off-by: Xiaoyao Li Signed-off-by: Like Xu --- ==changelog== v2: - Apply cpuid.1f check rule on Intel SDM page

[PATCH v3] sound: isa: gus: fix misuse of %x

2019-04-25 Thread Fuqian Huang
Pointers should be printed with %p or %px rather than cast to long type and printed with %lx. Drop the address printing. Signed-off-by: Fuqian Huang --- sound/isa/gus/gus_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/isa/gus/gus_mem.c b/sound/isa/gus/gus_mem.c

Re: linux-next: build warning after merge of the sound-asoc tree

2019-04-25 Thread Nicolin Chen
On Fri, Apr 26, 2019 at 01:05:49PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the sound-asoc tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > sound/soc/fsl/fsl_sai.c: In function 'fsl_sai_remove': > sound/soc/fsl/fsl_sai.c:921:1: warning: no

linux-next: build warning after merge of the sound-asoc tree

2019-04-25 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: sound/soc/fsl/fsl_sai.c: In function 'fsl_sai_remove': sound/soc/fsl/fsl_sai.c:921:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ Introduced

Zdravstvuyte! Vas interesuyut kliyentskiye bazy dannykh?

2019-04-25 Thread linux-kernel
Zdravstvuyte! Vas interesuyut kliyentskiye bazy dannykh?

Re: Re: Re: Re: Re: [RFC][PATCH 2/5] mips/atomic: Fix loongson_llsc_mb() wreckage

2019-04-25 Thread huangpei
> -原始邮件- > 发件人: "Peter Zijlstra" > 发送时间: 2019-04-25 21:31:05 (星期四) > 收件人: huang...@loongson.cn > 抄送: "Paul Burton" , "st...@rowland.harvard.edu" > , "aki...@gmail.com" , > "andrea.pa...@amarulasolutions.com" , > "boqun.f...@gmail.com" , "dlus...@nvidia.com" > ,

[PATCH 1/2] dt-binding: Tegra194 pinctrl support

2019-04-25 Thread Krishna Yarlagadda
Add new compatible string and other fields used in pinctrl driver for Tegra194 in nvidia,tegra210-pinmux.txt Signed-off-by: Krishna Yarlagadda --- .../bindings/pinctrl/nvidia,tegra210-pinmux.txt| 43 +++--- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git

[PATCH 2/2] pinctrl: tegra: Add Tegra194 pinmux driver

2019-04-25 Thread Krishna Yarlagadda
Tegra194 has PCIE L5 rst and clkreq pins which need to be controlled dynamically at runtime. This driver supports change pinmux for these pins. Pinmux for rest of the pins is set statically by bootloader and will not be changed by this driver Signed-off-by: Krishna Yarlagadda Signed-off-by:

Re: [PATCH] bcache: avoid clang -Wunintialized warning

2019-04-25 Thread Coly Li
On 2019/4/26 2:08 上午, Nathan Chancellor wrote: > On Fri, Mar 22, 2019 at 03:35:00PM +0100, Arnd Bergmann wrote: >> clang has identified a code path in which it thinks a >> variable may be unused: >> >> drivers/md/bcache/alloc.c:333:4: error: variable 'bucket' is used >> uninitialized whenever

RE: [RFC PATCH 0/5] New fallback workflow for heterogeneous memory system

2019-04-25 Thread Du, Fan
>-Original Message- >From: Dan Williams [mailto:dan.j.willi...@intel.com] >Sent: Thursday, April 25, 2019 11:43 PM >To: Du, Fan >Cc: Michal Hocko ; a...@linux-foundation.org; Wu, >Fengguang ; Hansen, Dave >; xishi.qiuxi...@alibaba-inc.com; Huang, Ying >; linux...@kvack.org;

[PATCH v2 1/2] ASoC: simple-card-utils: add asoc_simple_parse_pin_switches()

2019-04-25 Thread Paul Cercueil
This function is a helper that permits to create pin switch controls for a list of widgets whose names are listed in the PREFIX "pin-switches" devicetree property. Signed-off-by: Paul Cercueil --- Notes: v2: - Rebase on top of for-next - Rename to asoc_simple_parse_pin_switches()

[PATCH v2 2/2] ASoC: simple-card: Read pin switches conf from devicetree

2019-04-25 Thread Paul Cercueil
When the routing path between a widget (e.g. "Speaker") and the codec goes through an external amplifier, having a pin switch for this widget allows the amplifier to be disabled when the widget is not to be used (e.g. when using headphones). Signed-off-by: Paul Cercueil --- Notes: v2: -

Re: [PATCH v2 1/4] clk: tegra20/30: Add custom EMC clock implementation

2019-04-25 Thread Dmitry Osipenko
26.04.2019 3:41, Stephen Boyd пишет: > Quoting Dmitry Osipenko (2019-04-25 17:03:11) >> 26.04.2019 1:25, Stephen Boyd пишет: >>> Quoting Dmitry Osipenko (2019-04-25 14:42:19) 25.04.2019 22:07, Stephen Boyd пишет: > Quoting Dmitry Osipenko (2019-04-14 13:20:06) >> +{ >> +

Re: [RFC PATCH v2 00/17] Core scheduling v2

2019-04-25 Thread Aubrey Li
On Thu, Apr 25, 2019 at 5:55 PM Ingo Molnar wrote: > > > * Aubrey Li wrote: > > > On Wed, Apr 24, 2019 at 10:00 PM Julien Desfossez > > wrote: > > > > > > On 24-Apr-2019 09:13:10 PM, Aubrey Li wrote: > > > > On Wed, Apr 24, 2019 at 12:18 AM Vineeth Remanan Pillai > > > > wrote: > > > > > > > >

[PATCH] firmware: arm_sdei: Prohibit probing in '_sdei_handler'

2019-04-25 Thread Xiongfeng Wang
Functions called in '_sdei_handler' are needed to be marked as 'nokprobe'. Because these functions are called in NMI context and neither the arch-code's debug infrastructure nor kprobes core supports this. Signed-off-by: Xiongfeng Wang Reviewed-by: James Morse --- drivers/firmware/arm_sdei.c |

[PATCH 2/2] mmc: sdhci-milbeaut: add Milbeaut SD controller driver

2019-04-25 Thread Takao Orito
SD Host controller on Milbeaut is consist of two controller parts. One is core controller F_SDH30, this is similar to sdhci-fujitsu controller. Another is bridge controller. This bridge controller is not compatible with sdhci-fujitsu controller. This is special for Milbeaut series. This has some

[PATCH 1/2] dt-bindings: mmc: add DT bindings for Milbeaut SD controller

2019-04-25 Thread Takao Orito
Signed-off-by: Takao Orito --- .../devicetree/bindings/mmc/sdhci-milbeaut.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-milbeaut.txt diff --git a/Documentation/devicetree/bindings/mmc/sdhci-milbeaut.txt

[PATCH 0/2] mmc: sdhci-milbeaut: add Milbeaut SD driver

2019-04-25 Thread Takao Orito
The following patches add driver for SD Host controller on Socionext's Milbeaut M10V platforms. SD Host controller on Milbeaut is consist of two controller parts. One is core controller F_SDH30, this is similar to sdhci-fujitsu controller. Another is bridge controller. This bridge controller is

Re: [RFC PATCH v5 3/4] x86/acrn: Use HYPERVISOR_CALLBACK_VECTOR for ACRN guest upcall vector

2019-04-25 Thread Zhao, Yakui
On 2019年04月26日 03:45, Ingo Molnar wrote: * Zhao, Yakui wrote: + alloc_intr_gate(HYPERVISOR_CALLBACK_VECTOR, + acrn_hv_callback_vector); Why is this on two lines, not a single line? At first it used the long function name for acrn_hv_callback_vector. As it

Re: [PATCH 1/2] vfio/mdev: add version field as mandatory attribute for mdev device

2019-04-25 Thread Yan Zhao
On Wed, Apr 24, 2019 at 10:14:50PM +0800, Alex Williamson wrote: > On Tue, 23 Apr 2019 23:39:34 -0400 > Yan Zhao wrote: > > > On Tue, Apr 23, 2019 at 11:02:56PM +0800, Alex Williamson wrote: > > > On Tue, 23 Apr 2019 01:41:57 -0400 > > > Yan Zhao wrote: > > > > > > > On Tue, Apr 23, 2019 at

Re: general protection fault in vcpu_enter_guest (2)

2019-04-25 Thread Sean Christopherson
On Thu, Apr 25, 2019 at 05:07:05PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:76c938fc Add linux-next specific files for 20190423 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=16863d28a0 > kernel

linux-next: manual merge of the ipsec-next tree with the ipsec tree

2019-04-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the ipsec-next tree got a conflict in: net/ipv4/xfrm4_policy.c between commit: 8742dc86d0c7 ("xfrm4: Fix uninitialized memory read in _decode_session4") from the ipsec tree and commit: c53ac41e3720 ("xfrm: remove decode_session indirection from

Re: [PATCH v3 0/3] clk: add driver for the SiFive FU540 PRCI and PLLs it controls

2019-04-25 Thread Stephen Boyd
Quoting Paul Walmsley (2019-04-11 01:26:16) > clk: add driver for the SiFive FU540 PRCI and PLLs it controls > > Add a driver for the SiFive FU540 PRCI IP block, which handles clock and > some device reset control for the SiFive FU540 chip. Also add a driver- > independent library for the Analog

Re: [PATCH] KVM: x86: Add Intel CPUID.1F cpuid emulation support

2019-04-25 Thread Like Xu
On 2019/4/26 0:28, Xiaoyao Li wrote: On Thu, 2019-04-25 at 23:33 +0800, Like Xu wrote: On 2019/4/25 22:19, Sean Christopherson wrote: On Thu, Apr 25, 2019 at 03:07:35PM +0800, Like Xu wrote: On 2019/4/25 14:30, Xiaoyao Li wrote: Besides, the problem of simply using cpuid_exc(0x1f) in Sean's

Re: [PATCH 4/4] perf: arm_spe: Enable ACPI/Platform automatic module loading

2019-04-25 Thread Jeremy Linton
Hi, On 4/16/19 8:50 AM, Will Deacon wrote: On Thu, Apr 04, 2019 at 12:24:38PM -0500, Jeremy Linton wrote: On 4/4/19 12:04 PM, Will Deacon wrote: On Tue, Mar 26, 2019 at 05:39:38PM -0500, Jeremy Linton wrote: Lets add the MODULE_TABLE and platform id_table entries so that the SPE driver can

RE: [PATCH 2/2] clk: imx: disable i.mx7ulp composite clock during initialization

2019-04-25 Thread Anson Huang
Hi, Stephen > -Original Message- > From: Stephen Boyd [mailto:sb...@kernel.org] > Sent: Friday, April 26, 2019 8:03 AM > To: feste...@gmail.com; gust...@embeddedor.com; > ker...@pengutronix.de; linux-arm-ker...@lists.infradead.org; linux- > c...@vger.kernel.org;

Re: [PATCH] staging: xgifb: delete the driver

2019-04-25 Thread Aaro Koskinen
Hi, On Fri, Jan 18, 2019 at 12:20:28PM +0100, Daniel Vetter wrote: > On Fri, Jan 18, 2019 at 11:08:28AM +0100, Greg Kroah-Hartman wrote: > > There has not been any real work done on cleaning this driver up and > > getting it out of the staging tree in years. Also, no new fb drivers > > are being

Re: [PATCH] sparc: vdso: add FORCE to the build rule of %.so

2019-04-25 Thread Masahiro Yamada
Hi David, On Wed, Apr 3, 2019 at 5:34 PM Masahiro Yamada wrote: > > $(call if_changed,...) must have FORCE as a prerequisite. > > Signed-off-by: Masahiro Yamada > --- Ping? > arch/sparc/vdso/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH v2 1/4] clk: tegra20/30: Add custom EMC clock implementation

2019-04-25 Thread Stephen Boyd
Quoting Dmitry Osipenko (2019-04-25 17:03:11) > 26.04.2019 1:25, Stephen Boyd пишет: > > Quoting Dmitry Osipenko (2019-04-25 14:42:19) > >> 25.04.2019 22:07, Stephen Boyd пишет: > >>> Quoting Dmitry Osipenko (2019-04-14 13:20:06) > +{ > + struct clk *clk = __clk_lookup("emc"); >

RE: [PATCH] clk: imx: correct i.MX7D AV PLL num/denom offset

2019-04-25 Thread Anson Huang
Hi, Stephen > -Original Message- > From: Stephen Boyd [mailto:sb...@kernel.org] > Sent: Friday, April 26, 2019 6:03 AM > To: feste...@gmail.com; ker...@pengutronix.de; l.st...@pengutronix.de; > linux-arm-ker...@lists.infradead.org; linux-...@vger.kernel.org; linux- >

Re: [RFC PATCH 0/7] x86: introduce system calls addess space isolation

2019-04-25 Thread Andy Lutomirski
On Thu, Apr 25, 2019 at 2:46 PM Mike Rapoport wrote: > > Hi, > > Address space isolation has been used to protect the kernel from the > userspace and userspace programs from each other since the invention of the > virtual memory. > > Assuming that kernel bugs and therefore vulnerabilities are

[GIT PULL] SMB3 Fixes

2019-04-25 Thread Steve French
Please pull the following changes since commit ba25b50d582ff6c6021eee80824134aeb9ab8785: Merge tag 'drm-fixes-2019-04-24' of git://anongit.freedesktop.org/drm/drm (2019-04-23 21:08:52 -0700) are available in the Git repository at: git://git.samba.org/sfrench/cifs-2.6.git

possible deadlock in do_io_accounting (2)

2019-04-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:085b7755 Linux 5.1-rc6 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=132444f4a0 kernel config: https://syzkaller.appspot.com/x/.config?x=a42d110b47dd6b36 dashboard link:

general protection fault in vcpu_enter_guest (2)

2019-04-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:76c938fc Add linux-next specific files for 20190423 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16863d28a0 kernel config: https://syzkaller.appspot.com/x/.config?x=62738d35457c577d

Re: [PATCH v2 2/5 RFC] use event name instead of enum to make the call generic

2019-04-25 Thread James Morris
On Thu, 25 Apr 2019, James Bottomley wrote: > That's not the correct location: DMARC records should be at the _dmarc. > subdomain. without this you'll inherit the dmarc policy of > _dmarc.microsoft.com > Thanks. > > We don't have DKIM set up yet. > > If you advertise DMARC, you're expected

Re: [PATCH 1/2] clk: imx7ulp: update nic1_bus_clk parent info

2019-04-25 Thread Stephen Boyd
Quoting Anson Huang (2019-04-24 22:19:07) > Since i.MX7ULP B0 chip, nic1_bus_clk's parent is changed to > from nic0_clk directly, update it accordingly. > > Signed-off-by: Anson Huang Looks ok. Shawn, will you pick it up?

Re: [PATCH v2 1/4] clk: tegra20/30: Add custom EMC clock implementation

2019-04-25 Thread Dmitry Osipenko
26.04.2019 1:25, Stephen Boyd пишет: > Quoting Dmitry Osipenko (2019-04-25 14:42:19) >> 25.04.2019 22:07, Stephen Boyd пишет: >>> Quoting Dmitry Osipenko (2019-04-14 13:20:06) diff --git a/drivers/clk/tegra/clk-tegra20-emc.c b/drivers/clk/tegra/clk-tegra20-emc.c new file mode

Re: [PATCH 2/2] clk: imx: disable i.mx7ulp composite clock during initialization

2019-04-25 Thread Stephen Boyd
Quoting Anson Huang (2019-04-24 22:19:12) > i.MX7ULP peripheral clock ONLY allow parent/rate to be changed > with clock gated, however, during clock tree initialization, the > peripheral clock could be enabled by bootloader, but the prepare > count in clock tree is still zero, so clock core driver

Re: [PATCH 04/12] mips: Reserve memory for the kernel image resources

2019-04-25 Thread Serge Semin
On Wed, Apr 24, 2019 at 10:43:48PM +, Paul Burton wrote: > Hi Serge, > > On Wed, Apr 24, 2019 at 01:47:40AM +0300, Serge Semin wrote: > > The reserved_end variable had been used by the bootmem_init() code > > to find a lowest limit of memory available for memmap blob. The original > > code

Re: [PATCH] clk: Add Si5341/Si5340 driver

2019-04-25 Thread Stephen Boyd
Quoting Mike Looijmans (2019-04-24 02:00:38) > Adds a driver for the Si5341 and Si5340 chips. The driver does not fully > support all features of these chips, but allows the chip to be used > without any support from the "clockbuilder pro" software. > > If the chip is preprogrammed, that is, you

RE: [RFC PATCH v2 2/3] x86/vdso: Modify __vdso_sgx_enter_enclave() to allow parameter passing on untrusted stack

2019-04-25 Thread Xing, Cedric
Hi Sean, > AIUI, you and Andy had an off-list discussion regarding rewriting > __vdso_sgx_enter_enclave() vs. providing a second vDSO function. Can > you > please summarize the discussion so that it's clear why you're pursuing a > single function? > > In the end I probably agree that's it's

mmotm 2019-04-25-16-30 uploaded

2019-04-25 Thread akpm
The mm-of-the-moment snapshot 2019-04-25-16-30 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

  1   2   3   4   5   6   7   8   9   >