Re: [Bug 202149] New: NULL Pointer Dereference in __split_huge_pmd on PPC64LE

2019-01-04 Thread Andrew Morton
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Fri, 04 Jan 2019 22:49:52 + bugzilla-dae...@bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=202149 > > Bug ID: 202149 >Summary: NULL Pointer

Re: [PATCH 02/12] powerpc/hvsi: fix typo

2019-01-04 Thread Matteo Croce
On Fri, Jan 4, 2019 at 10:31 PM Matteo Croce wrote: > > Fix spelling mistake: "lenght" -> "length" > > Signed-off-by: Matteo Croce > --- > arch/powerpc/include/asm/hvsi.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Hi, this patch was pulled from a 12 patches series and sent

[PATCH 02/12] powerpc/hvsi: fix typo

2019-01-04 Thread Matteo Croce
Fix spelling mistake: "lenght" -> "length" Signed-off-by: Matteo Croce --- arch/powerpc/include/asm/hvsi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/hvsi.h b/arch/powerpc/include/asm/hvsi.h index 3fdc54df63c9..464a7519ed64 100644 ---

Re: [PATCH 7/11] KVM: Remove redundant check in the kvm_get_dirty_log_protect()

2019-01-04 Thread Sean Christopherson
On Fri, Jan 04, 2019 at 07:50:36AM -0800, Sean Christopherson wrote: > On Fri, Jan 04, 2019 at 04:54:01PM +0800, lantianyu1...@gmail.com wrote: > > From: Lan Tianyu > > > > The dirty bits have already been checked in the previous check of > > "dirty_bitmap" and mask must be non-zero value at

Re: [PATCH 6/11] KVM/MMU: Flush tlb with range list in sync_page()

2019-01-04 Thread Sean Christopherson
On Fri, Jan 04, 2019 at 04:54:00PM +0800, lantianyu1...@gmail.com wrote: > From: Lan Tianyu > > This patch is to flush tlb via flush list function. More explanation of why this is beneficial would be nice. Without the context of the overall series it's not immediately obvious what

Re: [PATCH 7/11] KVM: Remove redundant check in the kvm_get_dirty_log_protect()

2019-01-04 Thread Sean Christopherson
On Fri, Jan 04, 2019 at 04:54:01PM +0800, lantianyu1...@gmail.com wrote: > From: Lan Tianyu > > The dirty bits have already been checked in the previous check of > "dirty_bitmap" and mask must be non-zero value at this point. > > Signed-off-by: Lan Tianyu > --- > virt/kvm/kvm_main.c | 8

Re: [PATCH v8 05/25] char/nvram: Adopt arch_nvram_ops

2019-01-04 Thread Finn Thain
On Fri, 4 Jan 2019, Christoph Hellwig wrote: > On Fri, Jan 04, 2019 at 09:08:13AM +1100, Finn Thain wrote: > > On Thu, 3 Jan 2019, Christoph Hellwig wrote: > > > > > > + > > > > +const struct nvram_ops arch_nvram_ops = { > > > > + .read_byte = nvram_read_byte, > > > > +

Re: [RESEND PATCH v5] soc/fsl/qe: fix err handling of ucc_of_parse_tdm

2019-01-04 Thread David Miller
From: Peng Hao Date: Thu, 3 Jan 2019 01:09:53 +0800 > From: Wen Yang > > Currently there are some issues with the ucc_of_parse_tdm function: > 1, a possible null pointer dereference in ucc_of_parse_tdm, > detected by the semantic patch deref_null.cocci, > with the following warning: >

Re: [1/2] powerpc/4xx/ocm: Fix phys_addr_t printf warnings

2019-01-04 Thread Christian Lamparter
On Wednesday, January 2, 2019 12:31:50 PM CET Michael Ellerman wrote: > On Tue, 2019-01-01 at 03:56:00 UTC, Michael Ellerman wrote: > > Currently the code produces several warnings, eg: > > > > arch/powerpc/platforms/4xx/ocm.c:240:38: error: format '%llx' > > expects argument of type 'long

Re: [PATCH v8 05/25] char/nvram: Adopt arch_nvram_ops

2019-01-04 Thread Christoph Hellwig
On Fri, Jan 04, 2019 at 09:08:13AM +1100, Finn Thain wrote: > On Thu, 3 Jan 2019, Christoph Hellwig wrote: > > > > + > > > +const struct nvram_ops arch_nvram_ops = { > > > + .read_byte = nvram_read_byte, > > > + .write_byte = nvram_write_byte, > > > + .get_size = nvram_get_size, >

Re: [PATCH] Remove 'type' argument from access_ok() function

2019-01-04 Thread Linus Torvalds
On Fri, Jan 4, 2019 at 1:28 AM Mathieu Malaterre wrote: > > Revert commit 05a4ab823983 ("powerpc/uaccess: fix warning/error with > access_ok()") to fix the following compilation error: Gaah. I even *looked* at the powerpc use of 'type', but then when I was actually going through my manual

Re: [PATCH] powerpc: build dtb even without COMPILE_TEST

2019-01-04 Thread Rob Herring
On Fri, Jan 4, 2019 at 3:58 AM Corentin Labbe wrote: > > I wanted to test the virtex440-ml507 qemu machine and found that the dtb > for it was not builded. Just do: make virtex440-ml507.dtb > All powerpc DTB are only built when CONFIG_OF_ALL_DTBS is set which depend on > COMPILE_TEST. > But

Re: [PATCH] Remove 'type' argument from access_ok() function

2019-01-04 Thread LEROY Christophe
Mathieu Malaterre a écrit : In commit 05a4ab823983 ("powerpc/uaccess: fix warning/error with access_ok()") an attempt was made to remove a warning by referencing the variable `type`, however in commit 96d4f267e40f ("Remove 'type' argument from access_ok() function") the variable `type` has

Re: [PATCH v3] crypto: talitos - fix ablkcipher for CONFIG_VMAP_STACK

2019-01-04 Thread Horia Geanta
On 1/4/2019 5:17 PM, Horia Geanta wrote: > On 12/21/2018 10:07 AM, Christophe Leroy wrote: > [snip] >> IV cannot be on stack when CONFIG_VMAP_STACK is selected because the stack >> cannot be DMA mapped anymore. >> This looks better, thanks. > >> This patch copies the IV into the extended

Re: [PATCH v3] crypto: talitos - fix ablkcipher for CONFIG_VMAP_STACK

2019-01-04 Thread Horia Geanta
On 12/21/2018 10:07 AM, Christophe Leroy wrote: [snip] > IV cannot be on stack when CONFIG_VMAP_STACK is selected because the stack > cannot be DMA mapped anymore. > This looks better, thanks. > This patch copies the IV into the extended descriptor when iv is not > a valid linear address. >

[GIT PULL] Please pull powerpc/linux.git powerpc-4.21-2 tag

2019-01-04 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Linus, Please pull some powerpc fixes for 4.21: The following changes since commit 96d4f267e40f9509e8a66e2b39e8b95655617693: Remove 'type' argument from access_ok() function (2019-01-03 18:57:57 -0800) are available in the git repository at:

Re: Remove 'type' argument from access_ok() function

2019-01-04 Thread Michael Ellerman
On Fri, 2019-01-04 at 09:27:58 UTC, Mathieu Malaterre wrote: > In commit 05a4ab823983 ("powerpc/uaccess: fix warning/error with > access_ok()") an attempt was made to remove a warning by referencing the > variable `type`, however in commit 96d4f267e40f ("Remove 'type' argument > from access_ok()

[PATCH] powerpc: build dtb even without COMPILE_TEST

2019-01-04 Thread Corentin Labbe
I wanted to test the virtex440-ml507 qemu machine and found that the dtb for it was not builded. All powerpc DTB are only built when CONFIG_OF_ALL_DTBS is set which depend on COMPILE_TEST. But building DTB is not related to a "compile build test". So this patch made building of DTB independent of

[PATCH] Remove 'type' argument from access_ok() function

2019-01-04 Thread Mathieu Malaterre
In commit 05a4ab823983 ("powerpc/uaccess: fix warning/error with access_ok()") an attempt was made to remove a warning by referencing the variable `type`, however in commit 96d4f267e40f ("Remove 'type' argument from access_ok() function") the variable `type` has been removed. Revert commit

[PATCH 10/11] KVM: Add flush parameter for kvm_age_hva()

2019-01-04 Thread lantianyu1986
From: Lan Tianyu This patch is to add flush parameter for kvm_aga_hva() and inside code can check whether tlb flush is necessary when associated sptes are changed. The platform may just flush affected address tlbs instead of entire table's. Signed-off-by: Lan Tianyu ---

[PATCH 9/11] KVM/MMU: Flush tlb in the kvm_mmu_write_protect_pt_masked()

2019-01-04 Thread lantianyu1986
From: Lan Tianyu This patch is to flush tlb in the kvm_mmu_write_protect_pt_masked() when tlb range flush is available and make kvm_mmu_write_protect_pt_masked() return flush request. Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 25 ++--- 1 file changed, 18

[PATCH 8/11] KVM: Make kvm_arch_mmu_enable_log_dirty_pt_masked() return value

2019-01-04 Thread lantianyu1986
From: Lan Tianyu This patch is to make kvm_arch_mmu_enable_log_dirty_pt_masked() return value and caller can use it to determine whether tlb flush is necessary. kvm_get_dirty_log_protect() and kvm_clear_dirty_log_protect() use the return value of kvm_arch_mmu_enable_log_dirty_pt_masked() to

[PATCH 7/11] KVM: Remove redundant check in the kvm_get_dirty_log_protect()

2019-01-04 Thread lantianyu1986
From: Lan Tianyu The dirty bits have already been checked in the previous check of "dirty_bitmap" and mask must be non-zero value at this point. Signed-off-by: Lan Tianyu --- virt/kvm/kvm_main.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/virt/kvm/kvm_main.c

[PATCH 6/11] KVM/MMU: Flush tlb with range list in sync_page()

2019-01-04 Thread lantianyu1986
From: Lan Tianyu This patch is to flush tlb via flush list function. Signed-off-by: Lan Tianyu --- arch/x86/kvm/paging_tmpl.h | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index

[PATCH 5/11] KVM/MMU: Flush tlb directly in the kvm_mmu_slot_gfn_write_protect()

2019-01-04 Thread lantianyu1986
From: Lan Tianyu This patch is to flush tlb directly in the kvm_mmu_slot_gfn_write_protect() when range flush is available. Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index

[PATCH 4/11] KVM/MMU: Introduce tlb flush with range list

2019-01-04 Thread lantianyu1986
From: Lan Tianyu This patch is to introduce tlb flush with range list interface and use struct kvm_mmu_page as list entry. Use flush list function in the kvm_mmu_commit_zap_page(). Signed-off-by: Lan Tianyu --- arch/x86/include/asm/kvm_host.h | 7 +++ arch/x86/kvm/mmu.c | 24

[PATCH 3/11] KVM: Add spte's point in the struct kvm_mmu_page

2019-01-04 Thread lantianyu1986
From: Lan Tianyu It's necessary to check whether mmu page is last or large page when add mmu page into flush list. "spte" is needed for such check and so add spte point in the struct kvm_mmu_page. Signed-off-by: Lan Tianyu --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/mmu.c

[PATCH 2/11] KVM/VMX: Fill range list in kvm_fill_hv_flush_list_func()

2019-01-04 Thread lantianyu1986
From: Lan Tianyu Populate ranges on the flush list into struct hv_guest_mapping_flush_list when flush list is available in the struct kvm_tlb_range. Signed-off-by: Lan Tianyu --- arch/x86/kvm/vmx/vmx.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git

[PATCH 1/11] X86/Hyper-V: Add parameter offset for hyperv_fill_flush_guest_mapping_list()

2019-01-04 Thread lantianyu1986
From: Lan Tianyu Add parameter offset to specify start position to add flush ranges in guest address list of struct hv_guest_mapping_flush_list. Signed-off-by: Lan Tianyu --- arch/x86/hyperv/nested.c| 4 ++-- arch/x86/include/asm/mshyperv.h | 2 +- arch/x86/kvm/vmx/vmx.c | 2

[PATCH 00/11] X86/KVM/Hyper-V: Add HV ept tlb range list flush support in KVM

2019-01-04 Thread lantianyu1986
From: Lan Tianyu This patchset is to introduce hv ept tlb range list flush function support in the KVM MMU component. Flushing ept tlbs of several address range can be done via single hypercall and new list flush function is used in the kvm_mmu_commit_zap_page() and FNAME(sync_page). This

Re: [RFC PATCH] ASoC: fsl: Add Audio Mixer CPU DAI driver

2019-01-04 Thread Viorel Suman
Hi Nicolin, On Jo, 2019-01-03 at 12:03 -0800, Nicolin Chen wrote: > Hi, > > On Thu, Jan 03, 2019 at 03:56:46PM +, Viorel Suman wrote: > > > > > > > > > > > > >  sound/soc/fsl/fsl_amix.c   | 554 > > > > + > > > >  sound/soc/fsl/fsl_amix.h 

Re: [PATCH v8 24/25] powerpc: Adopt nvram module for PPC64

2019-01-04 Thread Finn Thain
On Mon, 31 Dec 2018, Arnd Bergmann wrote: > On Sun, Dec 30, 2018 at 4:29 AM Finn Thain wrote: > > > > On Sat, 29 Dec 2018, Arnd Bergmann wrote: > > > > > With the current method, it does seem odd to have a single > > > per-architecture instance of the exported structure containing > > >