Re: [PATCH v3 0/2] perf/core: rcu fixes

2015-11-12 Thread Peter Zijlstra
On Thu, Nov 12, 2015 at 11:00:02AM +0100, Stephane Eranian wrote: > > This short patch series fixes some issues with RCU locking in the generic > perf layer. > > Patch 1 fixes cgroup switching rcu issues related to the fact that > perf_cgroup_sched_out() and perf_cgroup_sched_in() were missing so

Re: Shut up unhandled MSR warnings

2015-11-12 Thread Paolo Bonzini
On 12/11/2015 11:13, Borislav Petkov wrote: > Hey Paolo, > > do we apply stuff like that below? If we really need to, we do. > When booting guests all the time here, dmesg gets filled up with those > "unhandled rdmsr" useless warnings. The patch below shuts them up. > > The only problem is th

Re: drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Liviu Dudau
On Thu, Nov 12, 2015 at 02:34:57PM +0800, Mark yao wrote: Mark, >On 2015年11月12日 14:27, Mark yao wrote: > > On 2015年11月11日 00:56, Thierry Reding wrote: > > On Tue, Nov 10, 2015 at 03:01:03PM +, Liviu Dudau wrote: > > Hello, > > When booting my Juno board with the HDLCD driver t

Re: MIPS: BMIPS: Enable GZIP ramdisk and timed printks

2015-11-12 Thread Ralf Baechle
On Thu, Nov 12, 2015 at 11:18:30AM +0100, Andreas Ziegler wrote: > Hi Florian, > > your patch "MIPS: BMIPS: Enable GZIP ramdisk and timed printks" > showed up as commit fb9e5642aa9e in linux-next today (that is, > next-20151112). I noticed it because we (a research grou

Re: drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Liviu Dudau
On Thu, Nov 12, 2015 at 04:32:33PM +0800, Mark yao wrote: >On 2015年11月10日 23:01, Liviu Dudau wrote: > > Hello, > > When booting my Juno board with the HDLCD driver that I have converted to > atomic operations I'm getting the following warning: > > [ cut here ] >

RE: [f2fs-dev] [PATCH] f2fs: optimize __find_rev_next_bit

2015-11-12 Thread Chao Yu
Hi Fan, > -Original Message- > From: Fan Li [mailto:fanofcode...@samsung.com] > Sent: Thursday, November 12, 2015 8:43 AM > To: 'Jaegeuk Kim' > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: [f2fs-dev] [PATCH] f2fs: optimize __find_rev_next_bit > > 1.

Re: [PATCH] X.509: Fix the time validation [ver #2]

2015-11-12 Thread Woodhouse, David
On Thu, 2015-11-12 at 09:36 +, David Howells wrote: > If it works, it emit a key ID; if it fails, it should give a bad > message error. In this sentence, failure is good, yes? This is a malformed key so we *expect* the failure? -- David WoodhouseOpen Source Techno

Re: [PATCH v4 2/3] mtd: nand: Add support for Arasan Nand Flash Controller

2015-11-12 Thread Geert Uytterhoeven
On Thu, Nov 12, 2015 at 11:32 AM, Andy Shevchenko wrote: > On Thu, 2015-11-12 at 10:18 +0530, punnaiah choudary kalluri wrote: >> On Mon, Nov 9, 2015 at 7:20 PM, Andy Shevchenko >> wrote: >> > On Thu, 2015-11-05 at 08:19 +0530, Punnaiah Choudary Kalluri wrote: >> > > Added the basic driver for Ar

Re: [PATCH v2 3/4] KVM: X86: Migration is supported

2015-11-12 Thread Jian Zhou
On 2015/11/12 17:00, Paolo Bonzini wrote: On 12/11/2015 08:06, Jian Zhou wrote: I think you can just do this in kvm_x86_ops->set_msr. The old implementation for DEBUGCTL MSR can be moved to svm.c. I think you mean "moved to vmx.c"? No, the old implementation is moved from x86.c to s

Re: [PATCH V2 10/12] Drivers: hv: vmbus: channge vmbus_connection.channel_lock to mutex

2015-11-12 Thread Vitaly Kuznetsov
"K. Y. Srinivasan" writes: > From: Dexuan Cui > > spinlock is unnecessary here. > mutex is enough. Hm, mutex is usually required when we need to sleep and a spinlock is enough otherwise :-) Or are you trying to say we don't need to disable interrupts here? In that can maybe we can just switch

Re: [PATCH v2 1/4] drm: arm: Add DT bindings documentation for HDLCD driver.

2015-11-12 Thread Liviu Dudau
On Wed, Nov 11, 2015 at 12:48:50PM -0600, Rob Herring wrote: > On Wed, Nov 11, 2015 at 04:06:47PM +, Liviu Dudau wrote: > > Cc: Rob Herring > > Cc: Pawel Moll > > Cc: Mark Rutland > > Cc: Ian Campbell > > Cc: Kumar Gala > > > > Signed-off-by: Liviu Dudau > > Looks pretty good, but a few

Re: [PATCH] FS-Cache: Add missing initialization of ret in cachefiles_write_page()

2015-11-12 Thread David Howells
Geert Uytterhoeven wrote: > > This isn't quite the right solution. The uninitialised error path needs to > > set -ENOBUFS. > > That's what your commit 102f4d900c9c8f5e ("FS-Cache: Handle a write to the > page immediately beyond the EOF marker") does, and is also in its commit > description: >

Re: [PATCH] FS-Cache: Add missing initialization of ret in cachefiles_write_page()

2015-11-12 Thread Geert Uytterhoeven
On Thu, Nov 12, 2015 at 11:42 AM, David Howells wrote: > Geert Uytterhoeven wrote: > >> > This isn't quite the right solution. The uninitialised error path needs to >> > set -ENOBUFS. >> >> That's what your commit 102f4d900c9c8f5e ("FS-Cache: Handle a write to the >> page immediately beyond the

Re: linux-next: Tree for Nov 10 (8250_mid.c)

2015-11-12 Thread Heikki Krogerus
On Tue, Nov 10, 2015 at 10:12:26AM -0800, Randy Dunlap wrote: > On 11/09/15 18:19, Stephen Rothwell wrote: > > Hi all, > > > > Please do *not* add any material intended for v4.5 to your linux-next > > included branches until after v4.4-rc1 has been released. > > > > Changes since 20151109: > > >

Re: samples: livepatch: init reloc list and mark as klp module

2015-11-12 Thread Miroslav Benes
On Thu, 12 Nov 2015, Jessica Yu wrote: > +++ Petr Mladek [11/11/15 16:42 +0100]: > > On Mon 2015-11-09 23:45:54, Jessica Yu wrote: > > > Intialize the list of relocation sections in the sample > > > klp_object (even if the list will be empty in this case). > > > Also mark module as a livepatch mod

Re: drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Mark yao
On 2015年11月12日 18:36, Liviu Dudau wrote: On Thu, Nov 12, 2015 at 04:32:33PM +0800, Mark yao wrote: On 2015年11月10日 23:01, Liviu Dudau wrote: Hello, When booting my Juno board with the HDLCD driver that I have converted to atomic operations I'm getting the following warning: ---

Re: Issue on regmap-mmio

2015-11-12 Thread Mark Brown
On Thu, Nov 12, 2015 at 08:57:34AM +, Lu Y.B. wrote: > Hi Mark, Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to. > May I know whether the regmap APIs support big-endian

Re: [PATCH v2 1/4] drm: arm: Add DT bindings documentation for HDLCD driver.

2015-11-12 Thread Jon Medhurst (Tixy)
On Thu, 2015-11-12 at 10:42 +, Liviu Dudau wrote: > > This is on-chip RAM or nornal system RAM? We already have bindings > for > > both. > > Juno has a set of TLX (ThinLinks) connectors on the board where an > FPGA can be attached. On r1 > the code running on FPGA can even participate as an AX

Re: drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Mark yao
On 2015年11月12日 18:34, Liviu Dudau wrote: Can you switch your email client to text mode and make it do proper reply quoting? It is rather difficult to follow where your reply comes when you don't use HTML MUAs. Best regards, Liviu Hi Liviu I'm sorry about that, now I switch my email into te

Re: [PATCH V3 00/26] Coresight integration with perf

2015-11-12 Thread Alexander Shishkin
Mathieu Poirier writes: Hi Mathieu, > Changes since V2: > * Rebased to v4.3. Just tried, does not apply onto v4.3. I also tried Greg's char-misc-next and TIP perf/core. Regards, -- Alex -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to major

[PATCH] perf/x86/intel/pt: Test CPU vendor before loading

2015-11-12 Thread Borislav Petkov
From: Borislav Petkov This keeps poking at MSR 0x570 when loading, i.e. MSR_IA32_RTIT_CTL, which is most likely not present on other vendors. It is using the _safe variant but there's no need to try it at all, really. Besides, it causes unhandled rdmsr warnings when booting in a guest: kvm [441

Re: [RFC PATCH 1/2] genirq: Add runtime resume/suspend support for IRQ chips

2015-11-12 Thread Jon Hunter
On 11/11/15 15:41, Grygorii Strashko wrote: > On 11/11/2015 12:13 PM, Jon Hunter wrote: >> >> On 10/11/15 18:07, Lars-Peter Clausen wrote: >>> On 11/10/2015 05:47 PM, Grygorii Strashko wrote: >>> [...] > I was trying to simplify matters by placing the resume call in > __setup_irq() as oppo

Re: Shut up unhandled MSR warnings

2015-11-12 Thread Borislav Petkov
On Thu, Nov 12, 2015 at 11:33:33AM +0100, Paolo Bonzini wrote: > Yes, see guest_cpuid_has_* for an example of reading the CPUID values. > > But if it's defined for _all_ models starting at family 21, we can just > do it unconditionally. The thing is, those bits are Reserved again on the next fami

Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Jan Kara
On Thu 12-11-15 17:40:59, Baolin Wang wrote: > On 12 November 2015 at 17:17, Jan Kara wrote: > > On Thu 12-11-15 10:15:32, Baolin Wang wrote: > >> On 11 November 2015 at 17:48, Christoph Hellwig wrote: > >> > On Wed, Nov 11, 2015 at 05:31:43PM +0800, Baolin Wang wrote: > >> >> Now the dm-crypt co

Re: [PATCH] perf/x86/intel/pt: Test CPU vendor before loading

2015-11-12 Thread Peter Zijlstra
On Thu, Nov 12, 2015 at 11:56:12AM +0100, Borislav Petkov wrote: > diff --git a/arch/x86/kernel/cpu/perf_event_intel_pt.c > b/arch/x86/kernel/cpu/perf_event_intel_pt.c > index 42169283448b..fa1262b025e7 100644 > --- a/arch/x86/kernel/cpu/perf_event_intel_pt.c > +++ b/arch/x86/kernel/cpu/perf_event

Re: [PATCH v2 1/4] drm: arm: Add DT bindings documentation for HDLCD driver.

2015-11-12 Thread Liviu Dudau
On Thu, Nov 12, 2015 at 10:52:25AM +, Jon Medhurst (Tixy) wrote: > On Thu, 2015-11-12 at 10:42 +, Liviu Dudau wrote: > > > This is on-chip RAM or nornal system RAM? We already have bindings > > for > > > both. > > > > Juno has a set of TLX (ThinLinks) connectors on the board where an > > F

Re: [PATCH v3 0/3] virtio DMA API core stuff

2015-11-12 Thread Michael S. Tsirkin
On Wed, Nov 11, 2015 at 11:30:27PM +0100, David Woodhouse wrote: > On Wed, 2015-11-11 at 07:56 -0800, Andy Lutomirski wrote: > > > > Can you flesh out this trick? > > > > On x86 IIUC the IOMMU more-or-less defaults to passthrough. If the > > kernel wants, it can switch it to a non-passthrough mo

RE: [PATCH v2 1/3] dma: Add Freescale qDMA engine driver support

2015-11-12 Thread Yao Yuan
On Wed, Nov 11, 2015 4:14 PM, Vinod Koul wrote: > On Fri, Oct 23, 2015 at 09:59:11AM +0800, Yuan Yao wrote: > > > +config FSL_QDMA > > + tristate "Freescale qDMA engine support" > > + depends on SOC_LS1021A || ARCH_LAYERSCAPE > > Where is this ARCH defined, quick grep revealed none > This is

Re: [PATCH v3 01/17] mm: support madvise(MADV_FREE)

2015-11-12 Thread Kirill A. Shutemov
On Thu, Nov 12, 2015 at 01:32:57PM +0900, Minchan Kim wrote: > @@ -256,6 +260,125 @@ static long madvise_willneed(struct vm_area_struct *vma, > return 0; > } > > +static int madvise_free_pte_range(pmd_t *pmd, unsigned long addr, > + unsigned long end, struct mm_

Re: [PATCH] mmc: change to use kmalloc

2015-11-12 Thread yalin wang
> On Nov 12, 2015, at 05:57, Andy Shevchenko wrote: > > On Wed, Nov 11, 2015 at 11:17 PM, Peter Hurley > wrote: >> On 11/11/2015 12:02 PM, Alim Akhtar wrote: >>> Hi Yalin, >>> >>> On Wed, Nov 11, 2015 at 9:53 AM, yalin wang >>> wrote: Use kmalloc instead of kzalloc, zero the memory is

[PATCH V2] mmc: change to use kmalloc

2015-11-12 Thread yalin wang
Use kmalloc instead of kzalloc, zero the memory is not needed. Signed-off-by: yalin wang --- drivers/mmc/card/block.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index c742cfd..c3fd4c8 100644 --- a/drivers/mmc/card/b

Re: [PATCH v3 03/17] arch: uapi: asm: mman.h: Let MADV_FREE have same value for all architectures

2015-11-12 Thread Kirill A. Shutemov
On Thu, Nov 12, 2015 at 01:32:59PM +0900, Minchan Kim wrote: > From: Chen Gang > > For uapi, need try to let all macros have same value, and MADV_FREE is > added into main branch recently, so need redefine MADV_FREE for it. > > At present, '8' can be shared with all architectures, so redefine it

Re: [PATCH v3 5/6] xen/arm: introduce xen_read_wallclock

2015-11-12 Thread Stefano Stabellini
On Wed, 11 Nov 2015, Arnd Bergmann wrote: > On Wednesday 11 November 2015 16:51:35 Stefano Stabellini wrote: > > +static void xen_read_wallclock(struct timespec64 *ts) > > +{ > > + u32 version; > > + u64 delta; > > + struct timespec64 now; > > + struct shared_info *s = HYPER

Re: [PATCH] null_blk: Register as a LightNVM device

2015-11-12 Thread Matias Bjørling
On 11/11/2015 11:11 PM, Jens Axboe wrote: On 11/11/2015 02:27 PM, Jens Axboe wrote: On 11/11/2015 03:06 AM, Matias Bjørling wrote: Add support for registering as a LightNVM device. This allows us to evaluate the performance of the LightNVM library. In /drivers/Makefile, LightNVM is moved above

[PATCH 4/4] Drivers: hv: utils: fix crash when device is removed from host side

2015-11-12 Thread Vitaly Kuznetsov
The crash is observed when a service is being disabled host side while userspace daemon is connected to the device: [ 90.244859] general protection fault: [#1] SMP ... [ 90.800082] Call Trace: [ 90.800082] [] __fput+0xc8/0x1f0 [ 90.800082] [] fput+0xe/0x10 ... [ 90.800082] []

[PATCH 3/4] Drivers: hv: utils: introduce HVUTIL_TRANSPORT_DESTROY mode

2015-11-12 Thread Vitaly Kuznetsov
When Hyper-V host asks us to remove some util driver by closing the appropriate channel there is no easy way to force the current file descriptor holder to hang up but we can start to respond -EBADF to all operations asking it to exit gracefully. As we're setting hvt->mode from two separate contex

[PATCH 2/4] Drivers: hv: utils: rename outmsg_lock

2015-11-12 Thread Vitaly Kuznetsov
As a preparation to reusing outmsg_lock to protect test-and-set openrations on 'mode' rename it the more general 'lock'. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_utils_transport.c | 14 +++--- drivers/hv/hv_utils_transport.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions

[PATCH 0/4] Drivers: hv: utils: prevent crash when a utility driver is disabled host side

2015-11-12 Thread Vitaly Kuznetsov
I'm observing a crash when a utility driver is disabled host side (e.g. 'Guest services' is disabled live) when we have userspace daemon connected: [ 90.244859] general protection fault: [#1] SMP ... [ 90.800082] CPU: 3 PID: 473 Comm: hypervfcopyd Not tainted 4.3.0-rc7_netvsc_noalloc+ #1

[PATCH 1/4] Drivers: hv: utils: fix memory leak on on_msg() failure

2015-11-12 Thread Vitaly Kuznetsov
inmsg should be freed in case of on_msg() failure to avoid memory leak. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_utils_transport.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/hv/hv_utils_transport.c b/drivers/hv/hv_utils_transport.c index 24b2766..1d

[PATCH 00/10 V2] KVM: x86: MMU: Clean up x86's mmu code for future work

2015-11-12 Thread Takuya Yoshikawa
v1->v2: Patch 5 and 7 are added based on Paolo's suggestions. Patch 8-10 are new. Patch 1/2/3/4: no change. Patch 5: Needed a bit more work than I had expected. Patch 6: Removed extra comment of v1 (patch 5 made it inappropriate). Patch 7: As expected, many places needed to be converted. Patch

[PATCH 01/10] KVM: x86: MMU: Remove unused parameter of __direct_map()

2015-11-12 Thread Takuya Yoshikawa
Signed-off-by: Takuya Yoshikawa --- arch/x86/kvm/mmu.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index e7c2c14..c3bbc82 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -2708,9 +2708,8 @@ static void direct_

[PATCH 03/10] KVM: x86: MMU: Make mmu_set_spte() return emulate value

2015-11-12 Thread Takuya Yoshikawa
mmu_set_spte()'s code is based on the assumption that the emulate parameter has a valid pointer value if set_spte() returns true and write_fault is not zero. In other cases, emulate may be NULL, so a NULL-check is needed. Stop passing emulate pointer and make mmu_set_spte() return the emulate val

[PATCH 02/10] KVM: x86: MMU: Add helper function to clear a bit in unsync child bitmap

2015-11-12 Thread Takuya Yoshikawa
Both __mmu_unsync_walk() and mmu_pages_clear_parents() have three line code which clears a bit in the unsync child bitmap; the former places it inside a loop block and uses a few goto statements to jump to it. A new helper function, clear_unsync_child_bit(), makes the code cleaner. Signed-off-by:

[PATCH 04/10] KVM: x86: MMU: Remove is_rmap_spte() and use is_shadow_present_pte()

2015-11-12 Thread Takuya Yoshikawa
is_rmap_spte(), originally named is_rmap_pte(), was introduced when the simple reverse mapping was implemented by commit cd4a4e5374110444 ("[PATCH] KVM: MMU: Implement simple reverse mapping"). At that point, its role was clear and only rmap_add() and rmap_remove() were using it to select sptes th

[PATCH] X.509: Fix the time validation [ver #3]

2015-11-12 Thread David Howells
This fixes CVE-2015-5327. It affects kernels from 4.3-rc1 onwards. Fix the X.509 time validation to use month number-1 when looking up the number of days in that month. Also put the month number validation before doing the lookup so as not to risk overrunning the array. This can be tested by do

[PATCH 05/10] KVM: x86: MMU: Use for_each_rmap_spte macro instead of pte_list_walk()

2015-11-12 Thread Takuya Yoshikawa
kvm_mmu_mark_parents_unsync() alone uses pte_list_walk(), witch does nearly the same as the for_each_rmap_spte macro. The only difference is that is_shadow_present_pte() checks cannot be placed there because kvm_mmu_mark_parents_unsync() can be called with a new parent pointer whose entry is not s

Re: [PATCH 15/20] staging/wilc1000: pass hif operations through initialization

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 19:05:41 glen lee wrote: > Hi arnd, > > I appreciate the patches. > I did test this patch series on h/w which is arm based MCU. > From this patch wilc is not working properly. After downloading firmware, > the firmware cannot start and it fails. > I double check this

[PATCH 06/10] KVM: x86: MMU: Consolidate WARN_ON/BUG_ON checks for reverse-mapped sptes

2015-11-12 Thread Takuya Yoshikawa
At some call sites of rmap_get_first() and rmap_get_next(), BUG_ON is placed right after the call to detect unrelated sptes which must not be found in the reverse-mapping list. Move this check in rmap_get_first/next() so that all call sites, not just the users of the for_each_rmap_spte() macro, wi

[PATCH 07/10] KVM: x86: MMU: Encapsulate the type of rmap-chain head in a new struct

2015-11-12 Thread Takuya Yoshikawa
New struct kvm_rmap_head makes the code type-safe to some extent. Signed-off-by: Takuya Yoshikawa --- arch/x86/include/asm/kvm_host.h | 8 +- arch/x86/kvm/mmu.c | 169 +--- arch/x86/kvm/mmu_audit.c| 13 ++-- 3 files changed, 100 inserti

[PATCH 0/2] FS-Cache: More miscellany

2015-11-12 Thread David Howells
Attached are another couple of miscellaneous bits in FS-Cache and CacheFiles: (1) Fix an uninitialised error value. (2) In MAINTAINERS, mark the mailing list as being moderated for non-subscribers. These can also be found here: http://git.kernel.org/cgit/linux/kernel/git/dhowel

[PATCH 08/10] KVM: x86: MMU: Move initialization of parent_ptes out from kvm_mmu_alloc_page()

2015-11-12 Thread Takuya Yoshikawa
Make kvm_mmu_alloc_page() do just what its name tells to do, and remove the extra error check at its call site since the allocation cannot fail. Signed-off-by: Takuya Yoshikawa --- arch/x86/kvm/mmu.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/x86/kvm

[PATCH 2/2] MAINTAINERS: linux-cach...@redhat.com is moderated for non-subscribers

2015-11-12 Thread David Howells
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Signed-off-by: David Howells --- MAINTAINERS |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 35fe7ae0492e..470605885f01 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2545,7 +

[PATCH 09/10 RFC] KVM: x86: MMU: Move parent_pte handling from kvm_mmu_get_page() to link_shadow_page()

2015-11-12 Thread Takuya Yoshikawa
Every time kvm_mmu_get_page() is called with a non-NULL parent_pte argument, link_shadow_page() follows that to set the parent entry so that the new mapping will point to the returned page table. Moving parent_pte handling there allows to clean up the code because parent_pte is passed to kvm_mmu_g

[PATCH 1/2] FS-Cache: Add missing initialization of ret in cachefiles_write_page()

2015-11-12 Thread David Howells
From: Geert Uytterhoeven fs/cachefiles/rdwr.c: In function ‘cachefiles_write_page’: fs/cachefiles/rdwr.c:882: warning: ‘ret’ may be used uninitialized in this function If the jump to label "error" is taken, "ret" will indeed be uninitialized, and random stack data may be printed by the debug cod

[PATCH 10/10] KVM: x86: MMU: Remove unused parameter parent_pte from kvm_mmu_get_page()

2015-11-12 Thread Takuya Yoshikawa
Signed-off-by: Takuya Yoshikawa --- arch/x86/kvm/mmu.c | 20 +++- arch/x86/kvm/paging_tmpl.h | 4 ++-- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 33fe720..101e77d 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch

Re: [PATCH 0/2] FS-Cache: More miscellany

2015-11-12 Thread David Howells
Let me resend this with the correct cc list. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH 0/2] FS-Cache: More miscellany

2015-11-12 Thread David Howells
Attached are another couple of miscellaneous bits in FS-Cache and CacheFiles: (1) Fix an uninitialised error value. (2) In MAINTAINERS, mark the mailing list as being moderated for non-subscribers. These can also be found here: http://git.kernel.org/cgit/linux/kernel/git/dhowel

Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Baolin Wang
On 12 November 2015 at 19:06, Jan Kara wrote: > On Thu 12-11-15 17:40:59, Baolin Wang wrote: >> On 12 November 2015 at 17:17, Jan Kara wrote: >> > On Thu 12-11-15 10:15:32, Baolin Wang wrote: >> >> On 11 November 2015 at 17:48, Christoph Hellwig >> >> wrote: >> >> > On Wed, Nov 11, 2015 at 05:3

[PATCH 2/2] MAINTAINERS: linux-cach...@redhat.com is moderated for non-subscribers

2015-11-12 Thread David Howells
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Signed-off-by: David Howells --- MAINTAINERS |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 35fe7ae0492e..470605885f01 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2545,7 +

[PATCH 1/2] FS-Cache: Add missing initialization of ret in cachefiles_write_page()

2015-11-12 Thread David Howells
From: Geert Uytterhoeven fs/cachefiles/rdwr.c: In function ‘cachefiles_write_page’: fs/cachefiles/rdwr.c:882: warning: ‘ret’ may be used uninitialized in this function If the jump to label "error" is taken, "ret" will indeed be uninitialized, and random stack data may be printed by the debug cod

Re: [PATCHv2 2/2] arm64: Allow changing of attributes outside of modules

2015-11-12 Thread zhong jiang
On 2015/11/11 9:57, Laura Abbott wrote: > Currently, the set_memory_* functions that are implemented for arm64 > are restricted to module addresses only. This was mostly done > because arm64 maps normal zone memory with larger page sizes to > improve TLB performance. This has the side effect though

[PATCH] KVM: arm/arm64: vgic: make vgic_io_ops static

2015-11-12 Thread Jisheng Zhang
vgic_io_ops is only referenced within vgic.c, so it can be declared static. Signed-off-by: Jisheng Zhang --- virt/kvm/arm/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 5335383..8ef7279 100644 --- a/virt/kvm/arm/vgic.c +

Re: [PATCH net-next RFC V3 0/3] basic busy polling support for vhost_net

2015-11-12 Thread Felipe Franciosi
Hi Jason, I understand your busy loop timeout is quite conservative at 50us. Did you try any other values? Also, did you measure how polling affects many VMs talking to each other (e.g. 20 VMs on each host, perhaps with several vNICs each, transmitting to a corresponding VM/vNIC pair on anothe

[PATCH] drivers: firmware: psci: drop duplicate const from psci_of_match

2015-11-12 Thread Jisheng Zhang
This is to fix below sparse warning: drivers/firmware/psci.c:427:40: warning: duplicate const Signed-off-by: Jisheng Zhang --- drivers/firmware/psci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index d24f35d..ae70d24 1006

Re: [PATCH v2 0/2] Stop Intel Processor Trace logging on panic

2015-11-12 Thread Takao Indoh
Ping, any comments on these patches? Thanks, Takao Indoh On 2015/11/04 14:22, Takao Indoh wrote: > Hi all, > > These patch series provide a feature to stop Intel Processor Trace > (Intel PT) logging and save its registers in the memory on panic. > > Intel PT is a new feature of Intel CPU "Broad

[PATCH] PCI: hisi: Fix Section mismatch compilation warning for probe()

2015-11-12 Thread Jisheng Zhang
Following compilation warning occurs when compiled with: CONFIG_DEBUG_SECTION_MISMATCH=y WARNING: drivers/pci/host/built-in.o(.data+0x308): Section mismatch in reference from the variable hisi_pcie_driver to the function .init.text:hisi_pcie_probe() Fix it by dropping __init from hisi_pcie_pro

Re: [Patch v7 4/7] PCI/ACPI: Add interface acpi_pci_root_create()

2015-11-12 Thread Lorenzo Pieralisi
On Wed, Nov 11, 2015 at 09:55:37PM +0100, Arnd Bergmann wrote: > On Wednesday 11 November 2015 17:46:47 Lorenzo Pieralisi wrote: > > On Tue, Nov 10, 2015 at 01:50:46PM +0800, Jiang Liu wrote: > > If we go with this approach though, you are not adding the offset to > > the resource when parsing the

Re: [PATCH 00/10 V2] KVM: x86: MMU: Clean up x86's mmu code for future work

2015-11-12 Thread Paolo Bonzini
On 12/11/2015 12:48, Takuya Yoshikawa wrote: > v1->v2: > Patch 5 and 7 are added based on Paolo's suggestions. > Patch 8-10 are new. > > Patch 1/2/3/4: no change. > Patch 5: Needed a bit more work than I had expected. > Patch 6: Removed extra comment of v1 (patch 5 made it inappropriate). >

[PATCH 1/3] arm64: smp: make of_parse_and_init_cpus static

2015-11-12 Thread Jisheng Zhang
of_parse_and_init_cpus is only called from within smp.c, so it can be declared static. Signed-off-by: Jisheng Zhang --- arch/arm64/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 2bbdc0e..b1adc51 100644 ---

[PATCH 3/3] arm64: suspend: make hw_breakpoint_restore static

2015-11-12 Thread Jisheng Zhang
hw_breakpoint_restore is only used within suspend.c, so it can be declared static. Signed-off-by: Jisheng Zhang --- arch/arm64/kernel/suspend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/suspend.c b/arch/arm64/kernel/suspend.c index 40f7b33..fce95e1 100

[PATCH 2/3] arm64: mmu: make split_pud and fixup_executable static

2015-11-12 Thread Jisheng Zhang
split_pud and fixup_executable are only called from within mmu.c, so they can be declared static. Signed-off-by: Jisheng Zhang --- arch/arm64/mm/mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index c2fa6b5..02306c3 100644 -

[PATCH 0/3] arm64: make some functions static

2015-11-12 Thread Jisheng Zhang
These functions are only called within the its own file, so they could be declared static. Jisheng Zhang (3): arm64: smp: make of_parse_and_init_cpus static arm64: mmu: make split_pud and fixup_executable static arm64: suspend: make hw_breakpoint_restore static arch/arm64/kernel/smp.c

Re: drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Thierry Reding
On Wed, Nov 11, 2015 at 04:09:42PM +, Liviu Dudau wrote: > On Tue, Nov 10, 2015 at 05:56:15PM +0100, Thierry Reding wrote: > > On Tue, Nov 10, 2015 at 03:01:03PM +, Liviu Dudau wrote: > > > Hello, > > > > > > When booting my Juno board with the HDLCD driver that I have converted to > > > a

Re: Shut up unhandled MSR warnings

2015-11-12 Thread Borislav Petkov
On Thu, Nov 12, 2015 at 11:59:58AM +0100, Borislav Petkov wrote: > On Thu, Nov 12, 2015 at 11:33:33AM +0100, Paolo Bonzini wrote: > > Yes, see guest_cpuid_has_* for an example of reading the CPUID values. > > > > But if it's defined for _all_ models starting at family 21, we can just > > do it unc

Re: [PATCH] ARM: xip: Use correct symbol for end of ROM marker

2015-11-12 Thread Peter Hurley
On 11/11/2015 09:17 AM, Chris Brandt wrote: > For an XIP build, _edata_loc, not _etext, represents the end of the > binary image that will be programmed into ROM and mapped into the > MODULES_VADDR area. > With an XIP kernel, nothing is loaded into RAM before boot, meaning > you have to take into a

Re: [PATCH v3 0/3] virtio DMA API core stuff

2015-11-12 Thread David Woodhouse
On Thu, 2015-11-12 at 13:09 +0200, Michael S. Tsirkin wrote: > On Wed, Nov 11, 2015 at 11:30:27PM +0100, David Woodhouse wrote: > > > > If the IOMMU is exposed, and enabled, and telling the guest kernel that > > it *does* cover the virtio devices, then those virtio devices will > > *not* be in pas

Re: [PATCH] PCI: hisi: Fix Section mismatch compilation warning for probe()

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 20:02:08 Jisheng Zhang wrote: > Following compilation warning occurs when compiled with: > CONFIG_DEBUG_SECTION_MISMATCH=y > > WARNING: drivers/pci/host/built-in.o(.data+0x308): Section mismatch in > reference from the variable hisi_pcie_driver to the function > .in

[PATCH] PCI: hisi: fix deferred probing

2015-11-12 Thread Arnd Bergmann
The hisi_pcie_probe function is incorrectly marked as __init, as Kconfig tells us: WARNING: drivers/pci/host/built-in.o(.data+0x7780): Section mismatch in reference from the variable hisi_pcie_driver to the function .init.text:hisi_pcie_probe() If the probe for this device gets deferred past th

Re: [PATCH v2 2/3] efi-pstore: implement efivars_pstore_exit()

2015-11-12 Thread Matt Fleming
On Wed, 11 Nov, at 11:23:15PM, Luck, Tony wrote: > >>> module_init(efivars_pstore_init); > >> > >> Looks OK to me. Kees, are you picking this up? > > > > I can, though usually it goes through Tony. > > Can I count that as "Acked-by" from both of you? Yep, Acked-by: Matt Fleming -- To unsubscrib

Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Jan Kara
On Thu 12-11-15 19:46:26, Baolin Wang wrote: > On 12 November 2015 at 19:06, Jan Kara wrote: > > On Thu 12-11-15 17:40:59, Baolin Wang wrote: > >> On 12 November 2015 at 17:17, Jan Kara wrote: > >> > On Thu 12-11-15 10:15:32, Baolin Wang wrote: > >> >> On 11 November 2015 at 17:48, Christoph Hell

Re: drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Thierry Reding
On Thu, Nov 12, 2015 at 02:27:29PM +0800, Mark yao wrote: > On 2015年11月11日 00:56, Thierry Reding wrote: > >On Tue, Nov 10, 2015 at 03:01:03PM +, Liviu Dudau wrote: > >>Hello, > >> > >>When booting my Juno board with the HDLCD driver that I have converted to > >>atomic operations I'm getting the

Re: Shut up unhandled MSR warnings

2015-11-12 Thread Paolo Bonzini
On 12/11/2015 13:16, Borislav Petkov wrote: >>> > > Yes, see guest_cpuid_has_* for an example of reading the CPUID values. >>> > > >>> > > But if it's defined for _all_ models starting at family 21, we can just >>> > > do it unconditionally. >> > >> > The thing is, those bits are Reserved again

Re: [PATCH] PCI: hisi: Fix Section mismatch compilation warning for probe()

2015-11-12 Thread Jisheng Zhang
On Thu, 12 Nov 2015 13:21:02 +0100 Arnd Bergmann wrote: > On Thursday 12 November 2015 20:02:08 Jisheng Zhang wrote: > > Following compilation warning occurs when compiled with: > > CONFIG_DEBUG_SECTION_MISMATCH=y > > > > WARNING: drivers/pci/host/built-in.o(.data+0x308): Section mismatch in >

Re: [PATCH] i2c: tegra: fix a possible NULL dereference

2015-11-12 Thread Thierry Reding
On Thu, Nov 12, 2015 at 08:26:03AM +0100, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer No. There is no way that of_match_device() can ever fail. The driver core uses the same table to match the OF device to the driver, so the only case where of_match_devic

[RFC][PATCH] mips: Fix arch_spin_unlock()

2015-11-12 Thread Peter Zijlstra
Hi I think the MIPS arch_spin_unlock() is borken. spin_unlock() must have RELEASE semantics, these require that no LOADs nor STOREs leak out from the critical section. >From what I know MIPS has a relaxed memory model which allows reads to pass stores, and as implemented arch_spin_unlock() only

Re: [PATCH v3 3/4] Crypto: rockchip/crypto - add crypto driver for rk3288

2015-11-12 Thread Heiko Stuebner
Hi Zain, I was able to sucessfully test your crypto-driver, but have found some improvements below that should probably get looked at: Am Mittwoch, 11. November 2015, 14:35:58 schrieb Zain Wang: > Crypto driver support: > ecb(aes) cbc(aes) ecb(des) cbc(des) ecb(des3_ede) cbc(des3_ede) > You

Re: [RFC][PATCH] mips: Fix arch_spin_unlock()

2015-11-12 Thread Peter Zijlstra
On Thu, Nov 12, 2015 at 01:31:23PM +0100, Peter Zijlstra wrote: > +++ b/arch/mips/include/asm/spinlock.h > @@ -140,7 +140,7 @@ static inline void arch_spin_lock(arch_spinlock_t *lock) > static inline void arch_spin_unlock(arch_spinlock_t *lock) > { > unsigned int serving_now = lock->h.servi

Re: [PATCH v2 3/3] tty: Add software emulated RS485 support for 8250

2015-11-12 Thread Matwey V. Kornilov
2015-11-10 19:12 GMT+03:00 Peter Hurley : > Hi Matwey, > > I noticed 3 other issues here; see below. > > On 11/07/2015 05:09 AM, Matwey V. Kornilov wrote: >> Implementation of software emulation of RS485 direction handling is based >> on omap-serial driver. It is acts as the following. At transmis

Re: [PATCH] vhost: move is_le setup to the backend

2015-11-12 Thread Cornelia Huck
On Fri, 30 Oct 2015 12:42:35 +0100 Greg Kurz wrote: > The vq->is_le field is used to fix endianness when accessing the vring via > the cpu_to_vhost16() and vhost16_to_cpu() helpers in the following cases: > > 1) host is big endian and device is modern virtio > > 2) host has cross-endian support

Re: [PATCH v3 1/4] dt-bindings: add SMP enable-method for Broadcom NSP

2015-11-12 Thread Kapil Hali
Hi Russell, On 11/10/2015 9:55 PM, Russell King - ARM Linux wrote: > On Tue, Nov 10, 2015 at 09:33:12PM +0530, Kapil Hali wrote: >> Hi Russel, > > Wrong. Look at my name as sent in the From: and as quoted in the very > next line. As far as I'm concerned (and I don't care what other people > say

Re: [PATCH] pwm: sun4i: fix a possible NULL dereference

2015-11-12 Thread Thierry Reding
On Thu, Nov 12, 2015 at 08:42:12AM +0100, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later. > > Reported-by: coverity (CID 1324139) > Signed-off-by: LABBE Corentin > --- > drivers/pwm/pwm-sun4i.c | 2 ++ > 1 file changed, 2 insertions(+)

Re: [PATCH v2 0/2] Stop Intel Processor Trace logging on panic

2015-11-12 Thread Peter Zijlstra
On Thu, Nov 12, 2015 at 09:05:11PM +0900, Takao Indoh wrote: > Ping, any comments on these patches? > I've taken them, they should appear in tip sometime after the merge window closes. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...

Re: [RFC 1/3] mm, oom: refactor oom detection

2015-11-12 Thread Michal Hocko
On Thu 29-10-15 16:17:13, mho...@kernel.org wrote: [...] > @@ -3135,13 +3145,56 @@ __alloc_pages_slowpath(gfp_t gfp_mask, unsigned int > order, > if (gfp_mask & __GFP_NORETRY) > goto noretry; > > - /* Keep reclaiming pages as long as there is reasonable progress */ > +

Re: RFC: OOM detection rework v1

2015-11-12 Thread Michal Hocko
Just a heads up. I plan to repost this with changes reflecting the feedback so far after merge window closes. There were only few minor style fixes and one bug fixe (GFP_NOFAIL vs. costly high order allocations). I know people are busy with the merge window now and I hope that the future post will

Re: [PATCH v5 4/5] ARM: dts: mt8135: enable basic SMP bringup for mt8135

2015-11-12 Thread Eddie Huang
On Wed, 2015-11-11 at 20:54 -0800, Kevin Hilman wrote: > Hi Eddie, > > Kevin Hilman writes: > > > Eddie Huang writes: > > > >> On Tue, 2015-11-10 at 17:16 -0800, Kevin Hilman wrote: > >>> Hi Eddie, > >>> > >>> [...] > >>> > >>> > I check the log [0], > >>> > >>> Thanks for checking into this

Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Baolin Wang
On 12 November 2015 at 20:24, Jan Kara wrote: > On Thu 12-11-15 19:46:26, Baolin Wang wrote: >> On 12 November 2015 at 19:06, Jan Kara wrote: >> > On Thu 12-11-15 17:40:59, Baolin Wang wrote: >> >> On 12 November 2015 at 17:17, Jan Kara wrote: >> >> > On Thu 12-11-15 10:15:32, Baolin Wang wrote:

Re: [PATCH] i2c: tegra: fix a possible NULL dereference

2015-11-12 Thread LABBE Corentin
On Thu, Nov 12, 2015 at 01:29:23PM +0100, Thierry Reding wrote: > On Thu, Nov 12, 2015 at 08:26:03AM +0100, LABBE Corentin wrote: > > of_match_device could return NULL, and so cause a NULL pointer > > No. There is no way that of_match_device() can ever fail. The driver > core uses the same table t

[RFC v2 2/2] iio: ina2xx: add SOFTWARE buffer mode using an iio kfifo.

2015-11-12 Thread Marc Titinger
Capture the active scan_elements into a kfifo. The capture thread will compute the remaining time until the next capture tick, and do an active wait (udelay). This will produce a stream of up to fours channels plus a 64bits timestamps (ns). # iio_readdev ina226 | od -x WARNING: High-speed mode n

[RFC v2 1/2] iio: ina2xx: add direct IO support for TI INA2xx Power Monitors

2015-11-12 Thread Marc Titinger
Basic support or direct IO raw read, with averaging attribute. Values are RAW, INT_PLUS_MICRO (Volt/Ampere/Watt). Output of iio_info: iio:device0: ina226 4 channels found: power3: (input) 1 channel-specific attributes found: attr 0: raw value: 1.15

Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Jan Kara
On Thu 12-11-15 20:51:10, Baolin Wang wrote: > On 12 November 2015 at 20:24, Jan Kara wrote: > > On Thu 12-11-15 19:46:26, Baolin Wang wrote: > >> On 12 November 2015 at 19:06, Jan Kara wrote: > >> > On Thu 12-11-15 17:40:59, Baolin Wang wrote: > >> >> On 12 November 2015 at 17:17, Jan Kara wrot

<    1   2   3   4   5   6   7   8   9   10   >