Re: [PATCH] KVM: nVMX: Fix L2 guest hang if shadow page tables on EPT

2017-03-17 Thread Wanpeng Li
2017-03-18 1:28 GMT+08:00 Ladi Prosek : > On Fri, Mar 17, 2017 at 3:41 PM, Wanpeng Li wrote: >> From: Wanpeng Li >> >> The L2 guest hang if shadow page tables on EPT, the trace on L1 shows that >> L2 kvm_exit reason EXCEPTION_NMI and page fault repeatedly: >> >> qemu-system-x86-2821 [003] d..2

Re: Passionate Partner

2017-03-17 Thread Castano Giovanni
Dear Sir, Did you recieved my mail? I have sent it twice without a response. Castano Giovanni

RE: EHCI

2017-03-17 Thread Lipengcheng
Hi, > -Original Message- > From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: Saturday, March 18, 2017 12:44 AM > To: Lipengcheng > Cc: gre...@linuxfoundation.org; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: EHCI > > On Fri, 17 Mar 2017, Lipengcheng

[PATCH v3 2/5] platform/x86: intel_pmc_ipc: Add pmc gcr read/write/update api's

2017-03-17 Thread Kuppuswamy Sathyanarayanan
This patch adds API's to read/write/update PMC GC registers. PMC dependent devices like iTCO_WDT, Telemetry has requirement to acces GCR registers. These API's can be used for this purpose. Signed-off-by: Kuppuswamy Sathyanarayanan --- arch/x86/include/asm/intel_pmc_ipc.h | 21 ++ d

Re: [HMM 2/2] hmm: heterogeneous memory management documentation

2017-03-17 Thread Jerome Glisse
> On 03/17/2017 12:27 PM, Jérôme Glisse wrote: > > This add documentation for HMM (Heterogeneous Memory Management). It > > presents the motivation behind it, the features necessary for it to > > be usefull and and gives an overview of how this is implemented. > > For this patch, I will leave it t

[PATCH 1/3] firmware: qcom: scm: Expose secure IO service

2017-03-17 Thread Bjorn Andersson
The secure IO service provides operations for reading and writing secure memory from non-secure mode, expose this API through SCM. Signed-off-by: Bjorn Andersson --- 32-bit version is untested. drivers/firmware/qcom_scm-32.c | 11 +++ drivers/firmware/qcom_scm-64.c | 31 +++

[PATCH 3/3] arm64: dts: qcom: msm8996: Specify dload address

2017-03-17 Thread Bjorn Andersson
On some msm8996 boards a secure io-write is used to write the magic for selecting "download mode", specify this address in the DeviceTree. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm89

[PATCH 2/3] firmware: qcom: scm: Expose download-mode control

2017-03-17 Thread Bjorn Andersson
In order to aid post-mortem debugging the Qualcomm platforms provides a "memory download mode", where the boot loader will provide an interface for custom tools to "download" the content of RAM to a host machine. The mode is triggered by writing a magic value somehwere in RAM, that is read in the

[RFC PATCHv2 04/21] staging: android: ion: Remove alignment from allocation field

2017-03-17 Thread Laura Abbott
The align field was supposed to be used to specify the alignment of the allocation. Nobody actually does anything with it except to check if the alignment specified is out of bounds. Since this has no effect on the actual allocation, just remove it. Signed-off-by: Laura Abbott --- drivers/stagi

[PATCH] xfs: Honor FALLOC_FL_KEEP_SIZE when punching ends of files

2017-03-17 Thread Calvin Owens
Commit 3c2bdc912a1cc050 ("xfs: kill xfs_zero_remaining_bytes") replaced xfs_zero_remaining_bytes() with calls to iomap helpers. Unfortunately the new iomap helpers don't enforce that [pos,count) lies strictly on [0,i_size). This causes fallocate(mode=PUNCH_HOLE|KEEP_SIZE) calls touching [i_size &

XArray version 2

2017-03-17 Thread Matthew Wilcox
Here's version 2 of the XArray patch. Compared to version 1, I fixed a lot of bugs. 0day has finally stopped whinging about the various things I've done wrong, so I have some level of confidence in it. You can get a git tree here if you're interested. I rebase occasionally. http://git.infradead

[RFC PATCHv2 21/21] staging: android: ion: Set query return value

2017-03-17 Thread Laura Abbott
This never got set in the ioctl. Properly set a return value of 0 on success. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 64c652b..8bd90ce 10064

[RFC PATCHv2 15/21] staging: android: ion: Break the ABI in the name of forward progress

2017-03-17 Thread Laura Abbott
To: Sumit Semwal To: Riley Andrews Cc: rom...@google.com To: a...@android.com To: Riley Andrews Cc: de...@driverdev.osuosl.org Cc: linux-kernel@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org Cc: Greg Kroah-Hartman Cc: linux-arm-ker...@lists.infradead.org Cc: linux-me...@vger.kernel.org Cc:

Re: [PATCH 1/7] net, netfilter: convert ip_vs_conn.refcnt from atomic_t to refcount_t

2017-03-17 Thread kbuild test robot
Hi Elena, [auto build test ERROR on nf-next/master] [also build test ERROR on v4.11-rc2 next-20170310] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Elena-Reshetova/net-netfilter-refcounter-con

Re: [PATCH] xfs: Honor FALLOC_FL_KEEP_SIZE when punching ends of files

2017-03-17 Thread Calvin Owens
> Fix this by reintroducing the checks xfs_zero_remaining_bytes() did > against i_size into xfs_zero_range(). Sorry this is wrong: I missed that xfs_zero_range() has another caller that depends on the behavior I'm changing. I'll send a v2 with the same hunk at the bottom of xfs_free_file_space() i

[RFC PATCHv2 10/21] staging: android: ion: Remove import interface

2017-03-17 Thread Laura Abbott
With the expansion of dma-buf and the move for Ion to be come just an allocator, the import mechanism is mostly useless. There isn't a kernel component to Ion anymore and handles are private to Ion. Remove this interface. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/compat_ion.c

[RFC PATCHv2 03/21] staging: android: ion: Remove dmap_cnt

2017-03-17 Thread Laura Abbott
The reference counting of dma_map calls was removed. Remove the associated counter field as well. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion_priv.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/android/ion/ion_priv.h b/drivers/staging/android/ion/ion

[RFC PATCHv2 07/21] staging: android: ion: Remove page faulting support

2017-03-17 Thread Laura Abbott
The new method of syncing with dma_map means that the page faulting sync implementation is no longer applicable. Remove it. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion.c | 117 -- 1 file changed, 117 deletions(-) diff --git a/drivers/stag

[PATCH net-next v4 1/2]L2TP:Adjust intf MTU, add underlay L3, L2 hdrs

2017-03-17 Thread R. Parameswaran
In existing kernel code, when setting up the L2TP interface, all of the tunnel encapsulation headers are not taken into account when setting up the MTU on the L2TP logical interface device. Due to this, the packets created by the applications on top of the L2TP layer are larger than they ought to

Re: [PATCH net-next v3 1/2]L2TP:Adjust intf MTU, add underlay L3, L2 hdrs

2017-03-17 Thread R Parameswaran
[Posting a v4 patch-set shortly based on additional code review comments received in internal review, please disregard the v3 patches] On Thu, Mar 16, 2017 at 9:33 PM, R. Parameswaran wrote: > > > In existing kernel code, when setting up the L2TP interface, all of the > tunnel encapsulation heade

[PATCH v3 3/5] watchdog: iTCO_wdt: Add PMC specific noreboot update api

2017-03-17 Thread Kuppuswamy Sathyanarayanan
In some SOCs, setting noreboot bit needs modification to PMC GC registers. But not all PMC drivers allow other drivers to memory map their GC region. This could create mem request conflict in watchdog driver. So this patch adds facility to allow PMC drivers to pass noreboot update function to watch

Re: [PATCH v3 7/7] mmc: Only descend into mmc directory when CONFIG_MMC is set

2017-03-17 Thread kbuild test robot
Hi Andrew, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc2 next-20170310] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Andrew-F-Davis/Remove-unneeded-build-director

[PATCH v3 4/5] platform/x86: intel_pmc_ipc: Fix iTCO GCS memory mapping failure

2017-03-17 Thread Kuppuswamy Sathyanarayanan
iTCO watchdog driver need access to PMC_CFG GCR register to modify the no reboot setting. Currently, this is done by passing PMC_CFG reg address as memory resource to watchdog driver and allowing it directly modify the PMC_CFG register. But currently PMC driver also has requirement to memory map th

[PATCH v3 5/5] platform/x86: intel_pmc_ipc: use gcr mem base for S0ix counter read

2017-03-17 Thread Kuppuswamy Sathyanarayanan
To maintain the uniformity in accessing GCR registers, this patch modifies the S0ix counter read function to use GCR address base instead of ipc address base. Signed-off-by: Kuppuswamy Sathyanarayanan --- arch/x86/include/asm/intel_pmc_ipc.h | 2 ++ drivers/platform/x86/intel_pmc_ipc.c | 10 ++

[PATCH v3 1/5] platform/x86: intel_pmc_ipc: fix gcr offset

2017-03-17 Thread Kuppuswamy Sathyanarayanan
According to the PMC spec, gcr offset from ipc mem region is 0x1000(4K). But currently this driver uses 0x1008 as gcr offset. This patch fixes this issue. Signed-off-by: Kuppuswamy Sathyanarayanan --- drivers/platform/x86/intel_pmc_ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH net-next v4 2/2]L2TP:Adjust intf MTU, add underlay L3, L2 hdrs

2017-03-17 Thread R. Parameswaran
In existing kernel code, when setting up the L2TP interface, all of the tunnel encapsulation headers are not taken into account when setting up the MTU on the L2TP logical interface device. Due to this, the packets created by the applications on top of the L2TP layer are larger than they ought to

[RFC PATCHv2 11/21] staging: android: ion: Remove duplicate ION_IOC_MAP

2017-03-17 Thread Laura Abbott
ION_IOC_MAP is the same as ION_IOC_SHARE. We really don't need two identical interfaces. Remove it. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/compat_ion.c | 1 - drivers/staging/android/ion/ion-ioctl.c | 1 - drivers/staging/android/uapi/ion.h | 10 -- 3 files

[RFC PATCHv2 20/21] staging: android: ion: Remove ion_handle and ion_client

2017-03-17 Thread Laura Abbott
ion_handle was introduced as an abstraction to represent a reference to a buffer via an ion_client. As frameworks outside of Ion evolved, the dmabuf emerged as the preferred standard for use in the kernel. This has made the ion_handle an unnecessary abstraction and prone to race conditions. ion_cl

[RFC PATCHv2 02/21] cma: Introduce cma_for_each_area

2017-03-17 Thread Laura Abbott
Frameworks (e.g. Ion) may want to iterate over each possible CMA area to allow for enumeration. Introduce a function to allow a callback. Signed-off-by: Laura Abbott --- include/linux/cma.h | 2 ++ mm/cma.c| 14 ++ 2 files changed, 16 insertions(+) diff --git a/include

[PATCH] cpufreq: intel_pstate: Fix policy data management in passive mode

2017-03-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The policy->cpuinfo.max_freq and policy->max updates in intel_cpufreq_turbo_update() are excessive as they are done for no good reason and may lead to problems in principle, so drop them. Moreover, fix intel_cpufreq_verify_policy() so that it checks global.no_turbo in add

[PATCH v2] sched/core: Fix rq lock pinning warning after call balance callbacks

2017-03-17 Thread Wanpeng Li
From: Wanpeng Li This can be reproduced by running rt-migrate-test: WARNING: CPU: 2 PID: 2195 at kernel/locking/lockdep.c:3670 lock_unpin_lock+0x172/0x180 unpinning an unpinned lock CPU: 2 PID: 2195 Comm: rt-migrate-test Tainted: GW 4.11.0-rc2+ #1 Call Trace: dump_stack+

Re: [HMM 2/2] hmm: heterogeneous memory management documentation

2017-03-17 Thread John Hubbard
On 03/17/2017 12:27 PM, Jérôme Glisse wrote: This add documentation for HMM (Heterogeneous Memory Management). It presents the motivation behind it, the features necessary for it to be usefull and and gives an overview of how this is implemented. For this patch, I will leave it to others to dec

[RFC PATCHv2 14/21] staging: android: ion: Stop butchering the DMA address

2017-03-17 Thread Laura Abbott
Now that we have proper caching, stop setting the DMA address manually. It should be set after properly calling dma_map. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/staging/androi

[RFC PATCHv2 18/21] staging: android: ion: Rework heap registration/enumeration

2017-03-17 Thread Laura Abbott
The current model of Ion heap registration is based on the outdated model of board files. The replacement for board files (devicetree) isn't a good replacement for what Ion wants to do. In actuality, Ion wants to show what memory is available in the system for something else to figure out what to

Re: [PATCH 1/2] gpio: omap: return error if requested debounce time is not possible

2017-03-17 Thread Grygorii Strashko
On 03/17/2017 03:50 PM, David Rivshin wrote: On Fri, 17 Mar 2017 13:54:28 -0500 Grygorii Strashko wrote: On 03/17/2017 12:54 PM, David Rivshin wrote: Hi Grygorii, On Fri, 17 Mar 2017 11:45:56 -0500 Grygorii Strashko wrote: On 03/16/2017 07:57 PM, David Rivshin wrote: From: David Rivshi

[RFC PATCHv2 00/21] Ion clean in preparation for moving out of staging

2017-03-17 Thread Laura Abbott
Hi, This is v2 of the series to do some serious Ion clean up in preparation for moving out of staging. I got good feedback last time so this series mostly attempts to address that feedback and do more still more cleanup. Highlights: - All calls to DMA APIs should now be with a real actual proper

Re: [PATCH v2] perf probe: Return errno when does not hit any event

2017-03-17 Thread Masami Hiramatsu
On Fri, 17 Mar 2017 16:16:32 +0800 Kefeng Wang wrote: > On old perf, when using perf probe -d to delete an inexistent event, > it return errno, eg, > > -bash-4.3# perf probe -d xxx || echo $? > Info: Event "*:xxx" does not exist. > Error: Failed to delete events. > 255 > > But now perf_del_p

[PATCH v5 2/2] mmc: host: s3cmci: allow probing from device tree

2017-03-17 Thread Sergio Prado
Allows configuring Samsung S3C24XX MMC/SD/SDIO controller using a device tree. Signed-off-by: Sergio Prado --- drivers/mmc/host/s3cmci.c | 257 +++--- 1 file changed, 126 insertions(+), 131 deletions(-) diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc

[PATCH v5 0/2] mmc: host: s3cmci: add device tree support

2017-03-17 Thread Sergio Prado
This series adds support for configuring Samsung's S3C24XX MMC/SD/SDIO controller via device tree. Tested on FriendlyARM mini2440, based on s3c2440 SoC. Changes since v4 (as suggested by Jaehoon Chung): - using just a flag as a data structure for the driver to check for s3c2400 compatibility C

[PATCH v5 1/2] dt-bindings: mmc: add DT binding for S3C24XX MMC/SD/SDIO controller

2017-03-17 Thread Sergio Prado
Adds the device tree bindings description for Samsung S3C24XX MMC/SD/SDIO controller, used as a connectivity interface with external MMC, SD and SDIO storage mediums. Acked-by: Rob Herring Signed-off-by: Sergio Prado --- .../devicetree/bindings/mmc/samsung,s3cmci.txt | 42 ++

[PATCH] bitops.h: use BITS_PER_LONG to simplify BITS_TO_LONGS

2017-03-17 Thread Wei Yang
The second parameter is the number of bits for type "long", which is already defined in header file. This patch replace the calculation with macro to make it more readable. Signed-off-by: Wei Yang --- include/linux/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc

Re: [PATCH v1 3/3] blk-mq: start to freeze queue just after setting dying

2017-03-17 Thread Ming Lei
On Fri, Mar 17, 2017 at 11:26:26PM +, Bart Van Assche wrote: > On Fri, 2017-03-17 at 17:57 +0800, Ming Lei wrote: > > Given blk_set_queue_dying() is always called in remove path > > of block device, and queue will be cleaned up later, we don't > > need to worry about undoing the counter. > > >

Re: [PATCH v3 7/7] mmc: Only descend into mmc directory when CONFIG_MMC is set

2017-03-17 Thread kbuild test robot
Hi Andrew, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc2 next-20170310] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Andrew-F-Davis/Remove-unneeded-build-director

[RFC PATCHv2 05/21] staging: android: ion: Duplicate sg_table

2017-03-17 Thread Laura Abbott
Ion currently returns a single sg_table on each dma_map call. This is incorrect for later usage. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion.c

[RFC PATCHv2 09/21] staging: android: ion: Remove custom ioctl interface

2017-03-17 Thread Laura Abbott
Ion is now moving towards a unified interfact. This makes the custom ioctl interface unneeded. Remove it. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/compat_ion.c | 40 drivers/staging/android/ion/ion-ioctl.c | 11 - drivers/staging/andr

[RFC PATCHv2 17/21] staging: android: ion: Collapse internal header files

2017-03-17 Thread Laura Abbott
Ion current has ion_priv.h and ion.h as header files. ion.h was intended to be used for public APIs but Ion never ended up really having anything public. Combine the two headers so there is only one internal header. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion-ioctl.c

[RFC PATCHv2 13/21] staging: android: ion: Use CMA APIs directly

2017-03-17 Thread Laura Abbott
When CMA was first introduced, its primary use was for DMA allocation and the only way to get CMA memory was to call dma_alloc_coherent. This put Ion in an awkward position since there was no device structure readily available and setting one up messed up the coherency model. These days, CMA can b

[RFC PATCHv2 12/21] staging: android: ion: Remove old platform support

2017-03-17 Thread Laura Abbott
Device specific platform support has been haphazard for Ion. There have been several independent attempts and there are still objections to what bindings exist right now. Just remove everything for a fresh start. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/Kconfig

[RFC PATCHv2 16/21] staging: android: ion: Get rid of ion_phys_addr_t

2017-03-17 Thread Laura Abbott
Once upon a time, phys_addr_t was not everywhere in the kernel. These days it is used enough places that having a separate Ion type doesn't make sense. Remove the extra type and just use phys_addr_t directly. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion.h | 12 +

[RFC PATCHv2 19/21] staging: android: ion: Drop ion_map_kernel interface

2017-03-17 Thread Laura Abbott
Nobody uses this interface externally. Drop it. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion.c | 59 --- 1 file changed, 59 deletions(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 7d40233..5a8

[RFC PATCHv2 08/21] staging: android: ion: Remove crufty cache support

2017-03-17 Thread Laura Abbott
Now that we call dma_map in the dma_buf API callbacks there is no need to use the existing cache APIs. Remove the sync ioctl and the existing bad dma_sync calls. Explicit caching can be handled with the dma_buf sync API. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/compat_ion.c

[RFC PATCHv2 01/21] cma: Store a name in the cma structure

2017-03-17 Thread Laura Abbott
Frameworks that may want to enumerate CMA heaps (e.g. Ion) will find it useful to have an explicit name attached to each region. Store the name in each CMA structure. Signed-off-by: Laura Abbott --- drivers/base/dma-contiguous.c | 5 +++-- include/linux/cma.h | 4 +++- mm/cma.c

Re: [PATCH 01/10] ARM: dts: N9/N950: add bluetooth

2017-03-17 Thread Sebastian Reichel
Hi, On Fri, Mar 17, 2017 at 04:25:29PM +0100, Pavel Machek wrote: > Hi! > > > The Nokia N950 and N9 have a wl1271 (with nokia bootloader) bluetooth > > module connected to second UART. > > I don't get it. We are describing hardware, what does it have to do > with bootloader? Is there something n

Re: [PATCH] scsi: sr: fix oob access in get_capabilities

2017-03-17 Thread Martin K. Petersen
Kefeng Wang writes: Kefeng, > root@localhost ~]# sg_modes -p 0x2a /dev/sr0 > QEMU QEMU DVD-ROM 0.15 peripheral_type: cd/dvd [0x5] > Mode parameter header from MODE SENSE(10): > Invalid block descriptor length=512, ignore > Mode data length=36, medium type=0x70, specific param=0

[PATCH] mm: use BITS_PER_LONG to unify the definition in page->flags

2017-03-17 Thread Wei Yang
The field page->flags is defined as unsigned long and is divided into several parts to store different information of the page, like section, node, zone. Which means all parts must sit in the one "unsigned long". BITS_PER_LONG is used in several places to ensure this applies. #if SECTIONS_WID

Re: [PATCH 2/2] drm/pl111: Initial drm/kms driver for pl111

2017-03-17 Thread Eric Anholt
Russell King - ARM Linux writes: > On Fri, Mar 17, 2017 at 03:47:42PM -0700, Eric Anholt wrote: >> This is a modesetting driver for the pl111 CLCD display controller >> found on various ARM platforms such as the Versatile Express. The >> driver has only been tested on the bcm911360_entphn platfor

[PATCH 2/2] drm/pl111: Initial drm/kms driver for pl111

2017-03-17 Thread Eric Anholt
h; + +out_config: + drm_mode_config_cleanup(dev); +finish: + return ret; +} + +static const struct file_operations drm_fops = { + .owner = THIS_MODULE, + .open = drm_open, + .release = drm_release, + .unlocked_ioctl = drm_ioctl, + .mmap = drm_gem_cma_mmap, + .poll = d

[PATCH 0/2] ARM CLCD DRM driver

2017-03-17 Thread Eric Anholt
This is a resurrection of Tom Cooksey's old CLCD DRM driver, which I needed in order to do dmabuf buffer sharing from VC4 to the CLCD display on the bcm911360_entphn platform. With a couple of hacks to the X Server, I've got it (sometimes) running glxgears on vc4 and displaying on CLCD. The panel

Re: [PATCH 6/7] md/raid10, LLVM: get rid of variable length array

2017-03-17 Thread Fengguang Wu
Hi Dmitry, On Fri, Mar 17, 2017 at 08:05:16PM +0100, Dmitry Vyukov wrote: On Fri, Mar 17, 2017 at 7:57 PM, Borislav Petkov wrote: On Fri, Mar 17, 2017 at 07:47:33PM +0100, Dmitry Vyukov wrote: This problem is more general and is not specific to clang. It equally applies to different versions

[PATCH 1/2] video: ARM CLCD: Move registers to a separate header.

2017-03-17 Thread Eric Anholt
We'd like to reuse these register definitions for the DRM CLCD driver, but there's a bunch of fbdev-specific code in the current header. Signed-off-by: Eric Anholt --- include/linux/amba/clcd-regs.h | 76 ++ include/linux/amba/clcd.h | 68 +---

Re: [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

2017-03-17 Thread Eric Anholt
Mauro Carvalho Chehab writes: > Em Wed, 15 Mar 2017 18:46:24 -0700 > Michael Zoran escreveu: > >> On Wed, 2017-03-15 at 22:08 -0300, Mauro Carvalho Chehab wrote: >> >> > No, I didn't. Thanks! Applied it but, unfortunately, didn't work. >> > Perhaps I'm missing some other patch. I'm compiling it

[GIT PULL] Power management fixes for v4.11-rc3

2017-03-17 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.11-rc3 with top-most commit 8b766e05d8ec80b6b1daa2675509adcab6519038 Merge branch 'pm-cpufreq-fixes' and 'intel_pstate-fixes' on top of commit 4495c08e84729385774601b5146d51d9e5849f81

Re: [LSF/MM TOPIC][LSF/MM,ATTEND] shared TLB, hugetlb reservations

2017-03-17 Thread Mike Kravetz
On 03/14/2017 11:37 AM, Andrea Arcangeli wrote: > Hello, > > On Wed, Mar 08, 2017 at 05:30:55PM -0800, Mike Kravetz wrote: >> On 01/10/2017 03:02 PM, Mike Kravetz wrote: >>> Another more concrete topic is hugetlb reservations. Michal Hocko >>> proposed the topic "mm patches review bandwidth", and

Re: [PATCH v2 1/2] regulator: core: add regulator_has_continuous_voltage_range()

2017-03-17 Thread Matthias Kaehlcke
Hi Mark, El Fri, Mar 17, 2017 at 09:15:47PM + Mark Brown ha dit: > On Thu, Mar 09, 2017 at 11:40:54AM -0800, Matthias Kaehlcke wrote: > > El Thu, Mar 09, 2017 at 11:28:19AM +0100 Mark Brown ha dit: > > > On Wed, Mar 08, 2017 at 12:02:45PM -0800, Matthias Kaehlcke wrote: > > > > > The new fun

Re: [PATCH v4 5/7] arm64: set CONFIG_MMC_BCM2835=y in defconfig

2017-03-17 Thread Eric Anholt
Gerd Hoffmann writes: > We need to enable this controller so that we can switch the SD card's > pinmux over to it by default, which will improve storage performance. > > Read access (dd with 64k blocks on rpi2): > CONFIG_MMC_SDHCI_IPROC: 11-12 MB/s > CONFIG_MMC_BCM2835: 19-20 MB/s > > Dif

Re: [PATCH 2/2] gpio: omap: compute debounce-time from actual debounce-clock rate

2017-03-17 Thread Grygorii Strashko
CC: Tero On 03/17/2017 06:14 PM, David Rivshin wrote: On Fri, 17 Mar 2017 14:43:02 -0500 Grygorii Strashko wrote: On 03/16/2017 07:57 PM, David Rivshin wrote: From: David Rivshin omap2_set_gpio_debounce() assumes the debounce clock runs at 32768Hz, leading to 31us granularity. In reality t

[PATCH] usbtmc: don't return zero on failure path in usbtmc_probe()

2017-03-17 Thread Alexey Khoroshilov
usbtmc_probe() returns zero in case of allocation failures. The patch fixes that. By the way it rearranges error lables just to improve readability of quite complex dependencies in error handling code. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshil

Re: [PATCH v5 4/7] perf/sdt: Allow recording of existing events

2017-03-17 Thread Masami Hiramatsu
On Tue, 14 Mar 2017 20:36:55 +0530 Ravi Bangoria wrote: > Add functionality to fetch matching events from uprobe_events. If no > events are fourd from it, fetch matching events from probe-cache and > add them in uprobe_events. If all events are already present in > uprobe_events, reuse them. If f

[PATCH 1/2] drm/vc4: Fix DSI T_INIT timing.

2017-03-17 Thread Eric Anholt
The DPHY spec requires a much larger T_INIT than I was specifying before. In the absence of clear specs from the slave of what their timing is, just use the value that the firmware was using. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_dsi.c | 12 +++- 1 file changed, 11 inse

Re: [PATCH] drm: vc4: remove redundant check of plane being non-null

2017-03-17 Thread Eric Anholt
Colin King writes: > From: Colin Ian King > > The pointer plane is always null on the error path at label 'fail' > hence the check if it is non-null is redundant. We can therefore > remove the check and the destruction of plane as well as the fail > error path and instead just return an -ENOMEM

Re: [PATCH v5 7/7] perf/sdt: List events fetched from uprobe_events

2017-03-17 Thread Masami Hiramatsu
The title of this patch seems not correct. On Tue, 14 Mar 2017 20:36:58 +0530 Ravi Bangoria wrote: > Perf was showing warning if user tries to record sdt event without > creating a probepoint. Now we are allowing direct record on sdt > events, remove this stale warning/hint. > > Signed-off-by:

[PATCH 2/2] drm/vc4: Fix misleading name of the continuous flag.

2017-03-17 Thread Eric Anholt
The logic was all right in the end, the name was just backwards. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_dsi.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_dsi.c b/drivers/gpu/drm/vc4/vc4_dsi.c index 3bad8bad32a2..deba62008fd0

Re: [PATCH 3/7] x86, LLVM: suppress clang warnings about unaligned accesses

2017-03-17 Thread hpa
On March 16, 2017 5:15:16 PM PDT, Michael Davidson wrote: >Suppress clang warnings about potential unaliged accesses >to members in packed structs. This gets rid of almost 10,000 >warnings about accesses to the ring 0 stack pointer in the TSS. > >Signed-off-by: Michael Davidson >--- > arch/x86/Ma

Re: [PATCH 1/2] gpio: omap: return error if requested debounce time is not possible

2017-03-17 Thread David Rivshin
On Fri, 17 Mar 2017 16:43:56 -0500 Grygorii Strashko wrote: > On 03/17/2017 03:50 PM, David Rivshin wrote: > > On Fri, 17 Mar 2017 13:54:28 -0500 > > Grygorii Strashko wrote: > > > >> On 03/17/2017 12:54 PM, David Rivshin wrote: > >>> Hi Grygorii, > >>> > >>> On Fri, 17 Mar 2017 11:45:56 -05

Re: [PATCH] vmbus: remove hv_event_tasklet_disable/enable

2017-03-17 Thread Stephen Hemminger
On Thu, 2 Mar 2017 12:32:55 + Dexuan Cui wrote: > With the recent introduction of per-channel tasklet, we need to update > the way we handle the 3 concurrency issues: > > 1. hv_process_channel_removal -> percpu_channel_deq vs. >vmbus_chan_sched -> list_for_each_entry(..., percpu_list); >

[PATCH] rhashtable: Add rhashtable_lookup_get_insert_fast

2017-03-17 Thread Andreas Gruenbacher
Add rhashtable_lookup_get_insert_fast for fixed keys, similar to rhashtable_lookup_get_insert_key for explicit keys. Signed-off-by: Andreas Gruenbacher Acked-by: Herbert Xu --- include/linux/rhashtable.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/include/linux/r

[RFC 0/1] add support for reclaiming priorities per mem cgroup

2017-03-17 Thread Tim Murray
Hi all, I've been working to improve Android's memory management and drop lowmemorykiller from the kernel, and I'd like to get some feedback on a small patch with a lot of side effects. Currently, when an Android device is under memory pressure, one of three things will happen from kswapd: 1

[RFC 1/1] mm, memcg: add prioritized reclaim

2017-03-17 Thread Tim Murray
When a system is under memory pressure, it may be beneficial to prioritize some memory cgroups to keep their pages resident ahead of other cgroups' pages. Add a new interface to memory cgroups, memory.priority, that enables kswapd and direct reclaim to scan more pages in lower-priority cgroups befo

Re: [PATCH v1 3/3] blk-mq: start to freeze queue just after setting dying

2017-03-17 Thread Bart Van Assche
On Fri, 2017-03-17 at 17:57 +0800, Ming Lei wrote: > Given blk_set_queue_dying() is always called in remove path > of block device, and queue will be cleaned up later, we don't > need to worry about undoing the counter. > > diff --git a/block/blk-core.c b/block/blk-core.c > index d772c221cc17..62d

Re: WARNING: CPU: 0 PID: 1 at mm/mmap.c:1110 vma_merge+0x9a/0x2c8

2017-03-17 Thread Richard Weinberger
[re-sending with mailinglists] Andrea, Am 17.03.2017 um 19:36 schrieb Andrea Arcangeli: > I think the problem is in setup_arg_pages that is making an assumption > non true in UML (and only UML) case, i.e. that there are no vmas below > bprm->vma by the time mprotect_fixup is executed. That is not

Re: [PATCH 0/2] Hi all,

2017-03-17 Thread Pali Rohár
Looks good, you can add my Acked-by. On Thursday 16 March 2017 17:07:06 Andrew F. Davis wrote: > Hmm, subject got messed up, should be: > > [PATCH 0/2] Remove BQ27xxx platform interface > > On 03/16/2017 11:05 AM, Andrew F. Davis wrote: > > To finish the work started in this patch[0] we needed t

Re: [PATCH 2/2] gpio: omap: compute debounce-time from actual debounce-clock rate

2017-03-17 Thread David Rivshin
On Fri, 17 Mar 2017 14:43:02 -0500 Grygorii Strashko wrote: > On 03/16/2017 07:57 PM, David Rivshin wrote: > > From: David Rivshin > > > > omap2_set_gpio_debounce() assumes the debounce clock runs at 32768Hz, > > leading to 31us granularity. In reality the debounce clock (which > > is provided

[PATCH v4 2/2] can: spi: hi311x: Add Holt HI-311x CAN driver

2017-03-17 Thread Akshay Bhat
This patch adds support for the Holt HI-311x CAN controller. The HI311x CAN controller is capable of transmitting and receiving standard data frames, extended data frames and remote frames. The HI311x interfaces with the host over SPI. Datasheet: www.holtic.com/documents/371-hi-3110_v-rev-jpdf.do

Re: [PATCH 2/2] drm/pl111: Initial drm/kms driver for pl111

2017-03-17 Thread Russell King - ARM Linux
On Fri, Mar 17, 2017 at 03:47:42PM -0700, Eric Anholt wrote: > This is a modesetting driver for the pl111 CLCD display controller > found on various ARM platforms such as the Versatile Express. The > driver has only been tested on the bcm911360_entphn platform so far, > with PRIME-based buffer shar

RE: [RFC PATCH v4 15/28] Add support to access persistent memory in the clear

2017-03-17 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Tom Lendacky > Sent: Thursday, February 16, 2017 9:45 AM > Subject: [RFC PATCH v4 15/28] Add support to access persistent memory in > the clear > > Persistent memor

Re: [PATCH 1/1] ARM: dts: NSP: Add crypto (SPU) to dtsi

2017-03-17 Thread Florian Fainelli
On 03/06/2017 11:22 AM, Florian Fainelli wrote: > On 02/28/2017 12:31 PM, Florian Fainelli wrote: >> On 02/22/2017 01:22 PM, Steve Lin wrote: >>> Adds crypto hardware (SPU) to Northstar Plus device tree file. >>> >>> Signed-off-by: Steve Lin >> >> Applied, thanks! > > And dropped, since there is

Re: [PATCH 3/5] i2c: i2c-stm32f7: add driver

2017-03-17 Thread M'boumba Cedric Madianga
Hi Neil, >> As, I2C rise/fall time have some impacts in I2C timings value, the >> question is: it is very relevant to let customer control these >> parameters ? > > Actually, you could specify a different rise time in DT if it's relevant for > a specific design, this is why you have the following

[PATCH] ARM: dts: at91: add envelope detector mux to the Axentia TSE-850

2017-03-17 Thread Peter Rosin
The envelope detector can analyze 6 different signals, selectable with a mux controlled by three gpio pins. Signed-off-by: Peter Rosin --- Hi! This patch makes use of the mux subsystem and a couple of drivers available in linux-next since a week or two. The stuff this depends on has relevant ac

[PATCH] net: usb: pegasus: use new api ethtool_{get|set}_link_ksettings

2017-03-17 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. As I don't have the hardware, I'd be very pleased if someone may test this patch. Signed-off-by: Philippe Reynes --- drivers/net/usb/pegasus.c | 14 -- 1 files changed, 8 ins

Re: [PATCH] pci: quirk cavium: Add device ID range check

2017-03-17 Thread Alex Williamson
On Fri, 17 Mar 2017 12:46:29 +0530 Manish Jaggi wrote: > ACS quirk applies to devices with ID in the range a000-a0XX. > The patch adds a check.This matches on-chip pci devices for > CN81xx/CN83xx/CN88xx > > This patch adds check to > b404bcfbf0 : PCI: Add ACS quirk for all Cavium devic

mmotm 2017-03-17-15-26 uploaded

2017-03-17 Thread akpm
The mm-of-the-moment snapshot 2017-03-17-15-26 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 wi

Re: [RFC PATCH] usb: hub: Disable autosuspend before disabling usb device

2017-03-17 Thread Guenter Roeck
On Fri, Mar 17, 2017 at 04:07:14PM -0400, Alan Stern wrote: > On Fri, 17 Mar 2017, Guenter Roeck wrote: > > > While running a bind/unbind stress test with the dwc3 usb driver on rk3399, > > the following crash was observed. > > > > Unable to handle kernel NULL pointer dereference at virtual addre

Re: [PATCH v1 0/3] ioremap() tidy-up

2017-03-17 Thread Arnd Bergmann
On Fri, Mar 17, 2017 at 6:46 PM, Bjorn Helgaas wrote: > 1) Fix some comments that say "IOMMU" when they mean "MMU". > > 2) Remove the generic __ioremap() definition, which I think is unused and > confusing. > > 3) Simplify the comments about ioremap() implementation. I split this out > in case I

[PATCH v3] net: sun: sungem: rix a possible null dereference

2017-03-17 Thread Philippe Reynes
The function gem_begin_auto_negotiation dereference the pointer ep before testing if it's null. This patch add a check on ep before dereferencing it. Fixes: 92552fdda557 ("net: sun: sungem: use new api ethtool_{get|set}_link_ksettings") Reported-by: Dan Carpenter Signed-off-by: Philippe Reynes

Applied "regulator: Mark supply_name const and duplicate it as such" to the regulator tree

2017-03-17 Thread Mark Brown
The patch regulator: Mark supply_name const and duplicate it as such has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 2

Re: [x86] 45fc8757d1: BUG:unable_to_handle_kernel

2017-03-17 Thread Linus Torvalds
On Fri, Mar 17, 2017 at 11:20 AM, Andy Lutomirski wrote: > > I can easily imagine that breaking WINE or DOSEMU because it'll affect > the LDT, too. Can they even *read* the LDT contents, though? The whole accessed bit doesn't show up in 'struct user_desc', so you can neither set it nor read it.

Re: [PATCH v4] mm/vmscan: more restrictive condition for retry in do_try_to_free_pages

2017-03-17 Thread Michal Hocko
On Fri 17-03-17 14:39:28, Johannes Weiner wrote: > On Wed, Mar 15, 2017 at 07:36:48PM +0800, Yisheng Xie wrote: > > @@ -100,6 +100,9 @@ struct scan_control { > > /* Can cgroups be reclaimed below their normal consumption range? */ > > unsigned int may_thrash:1; > > > > + /* Did we have

[GIT pull] x86 fixes for 4.11

2017-03-17 Thread Thomas Gleixner
Linus, please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus An assorted pile of fixes along with some hardware enablement: - A fix for a KASAN / branch profiling related boot failure - Some more fallout

Re: [PATCH 2/7] Makefile, x86, LLVM: disable unsupported optimization flags

2017-03-17 Thread H. Peter Anvin
On 03/16/17 17:15, Michael Davidson wrote: > Unfortunately, while clang generates a warning about these flags > being unsupported it still exits with a status of 0 so we have > to explicitly disable them instead of just using a cc-option check. > > Signed-off-by: Michael Davidson > --- > Makefil

Re: [PATCH v2 1/2] regulator: core: add regulator_has_continuous_voltage_range()

2017-03-17 Thread Mark Brown
On Thu, Mar 09, 2017 at 11:40:54AM -0800, Matthias Kaehlcke wrote: > El Thu, Mar 09, 2017 at 11:28:19AM +0100 Mark Brown ha dit: > > On Wed, Mar 08, 2017 at 12:02:45PM -0800, Matthias Kaehlcke wrote: > > > The new function allows consumers to determine if a regulator is > > > continuous or discret

  1   2   3   4   5   6   7   >