Re: [PATCH v2] arm64: dts: ls1088a: Add USB support

2017-09-21 Thread Shawn Guo
On Wed, Sep 13, 2017 at 05:10:09PM +0800, yinbo@nxp.com wrote: > From: "yinbo.zhu" > > Fix the issue that usb is not detected on ls1088ardb It's not really about fixing issue but adding support. > > Signed-off-by: yinbo.zhu > Signed-off-by: Ran Wang > --- You should better have a versio

Re: [RFC PATCH 3/7] sound: core: Avoid using timespec for struct snd_pcm_sync_ptr

2017-09-21 Thread Baolin Wang
On 21 September 2017 at 20:50, Arnd Bergmann wrote: > On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang wrote: >> The struct snd_pcm_sync_ptr will use 'timespec' type variables to record >> timestamp, which is not year 2038 safe on 32bits system. >> >> Thus we introduced 'struct snd_pcm_sync_ptr32' an

[PATCH 1/2] vmbus: don't acquire the mutex in vmbus_hvsock_device_unregister()

2017-09-21 Thread kys
From: Dexuan Cui Due to commit 54a66265d675 ("Drivers: hv: vmbus: Fix rescind handling"), we need this patch to resolve the below deadlock: after we get the mutex in vmbus_hvsock_device_unregister() and call vmbus_device_unregister() -> device_unregister() -> ... -> device_release() -> vmbus_dev

[PATCH 2/2] Drivers: hv: fcopy: restore correct transfer length

2017-09-21 Thread kys
From: Olaf Hering Till recently the expected length of bytes read by the daemon did depend on the context. It was either hv_start_fcopy or hv_do_fcopy. The daemon had a buffer size of two pages, which was much larger than needed. Now the expected length of bytes read by the daemon changed slight

[PATCH 0/2] Drivers: hv: Miscellaneous fixes

2017-09-21 Thread kys
From: "K. Y. Srinivasan" Miscellaneous fixes. Greg, please apply these to 4.14-final. Dexuan Cui (1): vmbus: don't acquire the mutex in vmbus_hvsock_device_unregister() Olaf Hering (1): Drivers: hv: fcopy: restore correct transfer length drivers/hv/channel_mgmt.c | 4 drivers/hv/hv_f

[PATCH net-next] virtio-net: correctly set xdp_xmit for mergeable buffer

2017-09-21 Thread Jason Wang
We should set xdp_xmit only when xdp_do_redirect() succeed. Cc: John Fastabend Signed-off-by: Jason Wang --- drivers/net/virtio_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index f6c1f13..dd14a45 100644 --- a/drive

Re: [PATCH v2] [media] staging: atomisp: use clock framework for camera clocks

2017-09-21 Thread Sakari Ailus
Hi Pierre-Louis, On Wed, Sep 20, 2017 at 03:53:58PM -0500, Pierre-Louis Bossart wrote: > The Atom ISP driver initializes and configures PMC clocks which are > already handled by the clock framework. > > Remove all legacy vlv2_platform_clock stuff and move to the clk API to > avoid conflicts, e.g.

[PATCH 2/2] irqchip: mips-gic: Use effective affinity to unmask

2017-09-21 Thread Paul Burton
Commit 7778c4b27cbe ("irqchip: mips-gic: Use pcpu_masks to avoid reading GIC_SH_MASK*") adjusted the way we handle masking interrupts to set & clear the interrupt's bit in each pcpu_mask. This allows us to avoid needing to read the GIC mask registers and perform a bitwise and of their values with t

[PATCH 1/2] irqchip: mips-gic: Fix shifts to extract register fields

2017-09-21 Thread Paul Burton
The MIPS GIC driver is incorrectly using __fls to shift registers, intending to shift to the least significant bit of a value based upon its mask but instead shifting off all but the value's top bit. It should actually be using __ffs to shift to the first, not last, bit of the value. Apparently th

[PATCH 0/2] irqchip: mips-gic: Couple of fixes for v4.14-rc1 breakage

2017-09-21 Thread Paul Burton
These 2 patches fix a couple of issues found with the MIPS GIC driver in v4.14-rc1 as a result of my recent series. My apologies! Thanks, Paul Paul Burton (2): irqchip: mips-gic: Fix shifts to extract register fields irqchip: mips-gic: Use effective affinity to unmask drivers/irqchip/ir

Re: [patch 0/3] KVM KVM_HC_RT_PRIO hypercall support

2017-09-21 Thread Jan Kiszka
On 2017-09-22 03:19, Marcelo Tosatti wrote: > On Thu, Sep 21, 2017 at 07:45:32PM +0200, Jan Kiszka wrote: >> On 2017-09-21 13:38, Marcelo Tosatti wrote: >>> When executing guest vcpu-0 with FIFO:1 priority, which is necessary to >>> deal with the following situation: >>> >>> VCPU-0 (housekeeping VC

Re: [PATCH 00/64] use setup_timer() helper function.

2017-09-21 Thread Allen
> >> This series uses setup_timer() helper function. The series >> addresses the files under drivers/net/*. > > I've reviewed this series and will apply it to net-next. > > But please send out smaller chunks next time, maybe 10-15 > in a bunch? 64 patches at once makes it really hard for > review

Re: [PATCH] dmaengine: edma: Reject slave configs using a buswidth of 8 and larger

2017-09-21 Thread Peter Ujfalusi
Stefan, Vinod, Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 2017-09-21 21:29, Peter Ujfalusi wrote: > > > On 2017-09-21 20:17, Vinod Koul wrote: >> On Sun, Sep 17, 2017 at 04:25:10PM +0200, Stefan Brüns wrot

Re: [PATCH 1/6] mm: introduce an additional vma bit for powerpc pkey

2017-09-21 Thread Balbir Singh
On Fri, 15 Sep 2017 18:21:05 -0700 Ram Pai wrote: > Currently only 4bits are allocated in the vma flags to hold 16 > keys. This is sufficient for x86. PowerPC supports 32 keys, > which needs 5bits. This patch allocates an additional bit. > > Signed-off-by: Ram Pai > --- Acked-by: Balbir Si

Re: [PATCH 3/6] mm: display pkey in smaps if arch_pkeys_enabled() is true

2017-09-21 Thread Balbir Singh
On Fri, 15 Sep 2017 18:21:07 -0700 Ram Pai wrote: > +#ifdef CONFIG_ARCH_HAS_PKEYS > + if (arch_pkeys_enabled()) Sorry, I missed this bit in my previous review the patch makes sense > + seq_printf(m, "ProtectionKey: %8u\n", vma_pkey(vma)); > +#endif > + Balbir

RE: [RFC LINUX PATCH] Dcoumentation: dt: mailbox: Add Xilinx IPI Mailbox

2017-09-21 Thread Jiaying Liang
> -Original Message- > From: Wendy Liang [mailto:wendy.li...@xilinx.com] > Sent: Thursday, September 21, 2017 3:59 PM > To: linux-kernel@vger.kernel.org > Cc: jassisinghb...@gmail.com; Cyril Chemparathy ; > Michal Simek ; Jiaying Liang > Subject: [RFC LINUX PATCH] Dcoumentation: dt: mailbo

Re: [PATCH 3/6] mm: display pkey in smaps if arch_pkeys_enabled() is true

2017-09-21 Thread Balbir Singh
On Fri, 15 Sep 2017 18:21:07 -0700 Ram Pai wrote: > Currently the architecture specific code is expected to > display the protection keys in smap for a given vma. > This can lead to redundant code and possibly to divergent > formats in which the key gets displayed. > > This patch chang

[PATCH v2] dt-bindings: nand: denali: reduce the register space in the example

2017-09-21 Thread Masahiro Yamada
This example allocates much more than needed for address regions. As for "denali_reg", as you see in drivers/mtd/nand/denali.h, all registers fit in 0x1000. As for "nand_data", this IP is generally configured to use Indexed Addressing mode, where there are only two registers in the address transl

Re: [PATCH 4/6] mm/mprotect, powerpc/mm/pkeys, x86/mm/pkeys: Add sysfs interface

2017-09-21 Thread Balbir Singh
On Fri, 15 Sep 2017 18:21:08 -0700 Ram Pai wrote: > From: Thiago Jung Bauermann > > Expose useful information for programs using memory protection keys. > Provide implementation for powerpc and x86. > > On a powerpc system with pkeys support, here is what is shown: > > $ head /sys/kernel/mm/p

Re: [PATCH] wireless: iwlegacy: make const array static to shink object code size Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit

2017-09-21 Thread Johannes Berg
On Thu, 2017-09-21 at 23:56 +0100, Colin King wrote: > From: Colin Ian King > > Don't populate const array ac_to_fifo on the stack in an inlined > function, instead make it static.  Makes the object code smaller > by over 800 bytes: > >    text    data bss dec hex > filename >

[PATCH] Input: elan_i2c - Extend Flash-Write delay for Elan touch pad

2017-09-21 Thread KT Liao
Original 20ms delay is a margin timing after a block writing in FW update flow. Sometimes it will cause fail during FW-updating if I2C timing delay. We offten see this issue in rockchip's I2C host. Extend the delay timing is the safest way to improve it. Signed-off-by: KT Liao --- drivers/inpu

Re: [PATCH] pinctrl: intel: Mask interrupts on driver probe

2017-09-21 Thread Mika Westerberg
On Thu, Sep 21, 2017 at 02:20:03PM -0500, Kyle Roeschley wrote: > Powering off the system on Apollo Lake does not clear the interrupt > enable registers for the GPIOs. To avoid an interrupt storm on driver > probe, clear all interrupt enables before enabling our interrupt line. It is up to the BIO

Re: [PATCH v4] ARM: dts: Add initial Pistachio i.mx6q board support.

2017-09-21 Thread Shawn Guo
On Sat, Sep 09, 2017 at 08:54:21PM +0800, Wig C wrote: > From: YuanCheng Cheng > > Working items: > > - 800MHz CPU > - 2GB of RAM (DDR3) > - 4GB of eMMC storage > - 1T1R WiFi 2.4 GHz > - Power management support > - 1x 10/100/1000 Mbps Ethernet WAN port > - 2x USB 2.0 Host > - PCIe > - HDMI/VGA/

Re: [PATCH] arm64: dts: ls: Add optee node

2017-09-21 Thread Shawn Guo
On Sat, Sep 09, 2017 at 05:03:28AM +0530, Sumit Garg wrote: > Add optee device tree node on ls1012a, ls1043a, ls1046a, ls1088a > and ls208xa. > > Signed-off-by: Sumit Garg Applied, thanks.

Re: [RFC][PATCH v2 0/7] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-09-21 Thread Santosh Sivaraj
* Sergey Senozhatsky wrote (on 2017-09-20 16:29:02 +): > Hello > > RFC > > On some arches C function pointers are indirect and point to > a function descriptor, which contains the actual pointer to the code. > This mostly doesn't matter, except for cases when people

Re: [PATCH v3 0/3] x86/fpu: prevent leaking FPU registers via invalid FPU state

2017-09-21 Thread Ingo Molnar
* Eric Biggers wrote: > From: Eric Biggers > > This series fixes the bug found by syzkaller where the ptrace syscall > can be used to set invalid bits in a task's FPU state. I also found > that an equivalent bug was reachable using the sigreturn syscall, so the > first patch fixes the bug in

[PATCH 1/2] kbuild: link-vmlinux.sh: simplify .version increment

2017-09-21 Thread Masahiro Yamada
Since commit 1f2bfbd00e46 ("kbuild: link of vmlinux moved to a script"), it is easy to increment .version without using a temporary file .old_version. I do not see anybody who creates .tmp_version any more. Probably it is a left-over of commit 4e25d8bb9550fb ("[PATCH] kbuild: adjust .version upda

[PATCH 2/2] kbuild: mkcompile_h: do not create .version

2017-09-21 Thread Masahiro Yamada
This script need not to create .version; it will be created by scripts/link-vmlinux.sh later. Clean-up the code slightly. Signed-off-by: Masahiro Yamada --- scripts/mkcompile_h | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h i

Re: [RFC PATCH 0/7] Fix year 2038 issue for sound subsystem

2017-09-21 Thread Baolin Wang
Hi Takashi, On 22 September 2017 at 12:07, Takashi Sakamoto wrote: > Hi, > > > On Sep 21 2017 15:18, Baolin Wang wrote: >> >> Since many structures will use timespec type variables to record time >> stamp >> in uapi/asound.h, which are not year 2038 safe on 32bit system. This >> patchset >> tries

Re: [PATCH] fix unbalanced page refcounting in bio_map_user_iov

2017-09-21 Thread Vitaly Mayatskikh
Reproducer (needs SCSI disk): #include #include #include #include #include #include #include #include #include #define NR_IOS 1 #define NR_IOVECS 8 #define SG_IO 0x2285 int main(int argc, char *argv[]) { int fd, i, j; unsigned char *buf, *ptr, cdb[10]; sg_i

Re: [RFC PATCH v3 1/2] membarrier: Provide register expedited private command

2017-09-21 Thread Mathieu Desnoyers
- On Sep 21, 2017, at 11:30 PM, Boqun Feng boqun.f...@gmail.com wrote: > On Fri, Sep 22, 2017 at 11:22:06AM +0800, Boqun Feng wrote: >> Hi Mathieu, >> >> On Tue, Sep 19, 2017 at 06:13:41PM -0400, Mathieu Desnoyers wrote: >> > Provide a new command allowing processes to register their intent t

[PATCH v2] staging: greybus: light: Release memory obtained by kasprintf

2017-09-21 Thread Arvind Yadav
- Free memory region, if gb_lights_channel_config is not successful. - No need to add check for gb_lights_channel_flash_config(). Signed-off-by: Arvind Yadav --- changes in v2: - Subject line changed. - add kfree in __gb_lights_led_unregister(). - No need to

[PATCH] fix unbalanced page refcounting in bio_map_user_iov

2017-09-21 Thread Vitaly Mayatskikh
bio_map_user_iov and bio_unmap_user do unbalanced pages refcounting if IO vector has small consecutive buffers belonging to the same page. bio_add_pc_page merges them into one, but the page reference is never dropped. Signed-off-by: Vitaly Mayatskikh diff --git a/block/bio.c b/block/bio.c index

Re: Rough notes from sys_membarrier() lightning BoF

2017-09-21 Thread Michael Ellerman
Peter Zijlstra writes: > On Wed, Sep 20, 2017 at 06:13:50PM +, Mathieu Desnoyers wrote: > >> > Also, can you elaborate on the PPC issue? PPC appears to track >> > mm_cpumask more or less just like x86. Is the issue just that this >> > tracking has no implied barriers? If so, how does TLB f

Re: [PATCH] ARM: mxs: constify platform_suspend_ops

2017-09-21 Thread Shawn Guo
On Wed, Aug 30, 2017 at 10:17:51PM +0530, Arvind Yadav wrote: > platform_suspend_ops are not supposed to change at runtime. > Functions suspend_set_ops working with const platform_suspend_ops. > So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Applied, thanks.

linux-next: Tree for Sep 22

2017-09-21 Thread Stephen Rothwell
Hi all, Changes since 20170921: The mips tree gained a conflict against the pci-current tree. The net-next tree gained a build failure for which I reverted a commit. The drm-misc tree gained conflicts against Linus' tree. Non-merge commits (relative to Linus' tree): 1601 1453 fil

[PATCH] staging: ccree: else is not generally useful after a break or return

2017-09-21 Thread sunil . m
From: Suniel Mahesh Fixes checkpatch warnings: WARNING: else is not generally useful after a break or return Signed-off-by: Suniel Mahesh --- Note: - Patch was tested and built(ARCH=arm) on next-20170921. No build issues reported. --- drivers/staging/ccree/ssi_request_mgr.c | 5 ++--- 1

[PATCH] ktest: take submenu into account

2017-09-21 Thread Satoru Takeuchi
grub-reboot selects the submenu's first menuentry (title is "1>0") rather than ktest's menuentry (title is "2") by mistake. === $ sudo cat /boot/grub/grub.cfg | grep -E "^menuentry|^submenu" ... menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option '...

[PATCH v4] dax: introduce CONFIG_DAX_DRIVER

2017-09-21 Thread Dan Williams
In support of allowing device-mapper to compile out idle/dead code when there are no dax providers in the system, introduce the DAX_DRIVER symbol. This is selected by all leaf drivers that device-mapper might be layered on top. This allows device-mapper to conditionally 'select DAX' only when a pro

[PATCH v4 0/2] dax, dm: stop requiring dax for device-mapper

2017-09-21 Thread Dan Williams
Changes since v3 [1]: * rebase on 4.14-rc1 * rewrite the changelog of patch2 to drop broken references to the "built-in portion of device-mapper" (Mike) [1]: https://lists.01.org/pipermail/linux-nvdimm/2017-August/011545.html --- Bart points out that the DAX core is unconditionally enabled if

Re: [PATCH] Input: add support for the Samsung S6SY761 touchscreen

2017-09-21 Thread Andi Shyti
Hi Dmitry, thanks for your review! [...] > > +static void s6sy761_report_coordinates(struct s6sy761_data *sdata, u8 > > *event) > > +{ > > + u8 tid = ((event[0] & S6SY761_MASK_TID) >> 2) - 1; > > Should we make sure that event[0] & S6SY761_MASK_TID is not 0? I check event[0] already in s6sy

[PATCH] brd: prevent overflow caused by too large rd_size parameter

2017-09-21 Thread Satoru Takeuchi
The max value of rd_size parameter is ULONG_MAX from the following commit. Commit 366f4aea649a65c3735d91b4409d84c771811290 ("brd: Switch rd_size to unsigned long") However, this parameter * 1024 will be set as inode->i_size corresponding to brd devices and it's a signed value. To prevent overflow

Re: [RFC PATCH 0/7] Fix year 2038 issue for sound subsystem

2017-09-21 Thread Takashi Sakamoto
Hi, On Sep 21 2017 15:18, Baolin Wang wrote: Since many structures will use timespec type variables to record time stamp in uapi/asound.h, which are not year 2038 safe on 32bit system. This patchset tries to introduce new structures removing timespec type to compatible native mode and compat mod

Re: [PATCH net-next 3/3] virtio-net: support XDP_REDIRECT

2017-09-21 Thread Jason Wang
On 2017年09月21日 06:02, John Fastabend wrote: On 09/19/2017 02:42 AM, Jason Wang wrote: This patch tries to add XDP_REDIRECT for virtio-net. The changes are not complex as we could use exist XDP_TX helpers for most of the work. The rest is passing the XDP_TX to NAPI handler for implementing batc

[PATCH 1/2] vmbus: add per-channel sysfs info

2017-09-21 Thread kys
From: Stephen Hemminger This extends existing vmbus related sysfs structure to provide per-channel state information. This is useful when diagnosing issues with multiple queues in networking and storage. The existing sysfs only displayed information about the primary channel. The one place it re

[PATCH 2/2] Drivers: hv: vmbus: Expose per-channel interrupts and events counters

2017-09-21 Thread kys
From: Stephen Hemminger When investigating performance, it is useful to be able to look at the number of host and guest events per-channel. This is equivalent to per-device interrupt statistics. Signed-off-by: Stephen Hemminger Signed-off-by: K. Y. Srinivasan --- Documentation/ABI/stable/sysf

Re: [PATCH 2/5] nvmem: mtk-efuse: use stack for nvmem_config instead of malloc'ing it

2017-09-21 Thread Sean Wang
Hi, Masahiro On Thu, 2017-09-21 at 11:09 +0900, Masahiro Yamada wrote: > Hi Sean, > > > 2017-09-21 1:32 GMT+09:00 Sean Wang : > > Hi, Masahiro > > > > For maintainability, I felt it's better if we use the same way to > > register nvmem as that most drivers does under nvmem usually using > > stat

[PATCH 0/2] Drivers: hv: vmbus: Add additional per-channel sysfs info

2017-09-21 Thread kys
From: "K. Y. Srinivasan" Add additional per-channel sysfs information to help debug performance issues. Greg, please apply this patch-set to 4.15-rc1. Stephen Hemminger (2): vmbus: add per-channel sysfs info Drivers: hv: vmbus: Expose per-channel interrupts and events counters Documentati

[PATCH v2 02/12] mtd: nand: denali: prefix detect_max_banks() with denali_

2017-09-21 Thread Masahiro Yamada
All functions in this driver are prefixed with denali_ except detect_max_banks(). Rename it for consistency. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mtd/nand/denali.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/denali.c b/dri

[PATCH v2 09/12] mtd: nand: denali: use upper/lower_32_bits() macro for clean-up

2017-09-21 Thread Masahiro Yamada
I used (uint64_t) cast to avoid "right shift count >= width of type" warning. provides nice helpers to cater to it. The code will be cleaner, and easier to understand. Signed-off-by: Masahiro Yamada --- Changes in v2: - Newly added drivers/mtd/nand/denali.c | 4 ++-- 1 file changed, 2 inse

[PATCH v2 07/12] mtd: nand: denali: use more FIELD_PREP / FIELD_GET where appropriate

2017-09-21 Thread Masahiro Yamada
In several places in this driver, the register fields are retrieved as follows: val = reg & FOO_MASK; Then, modified as follows: reg &= ~FOO_MASK; reg |= val; This code relies on its shift is 0, which we will never know until we check the definition of FOO_MASK. Use FIELD_PREP / FIELD_GE

[PATCH v2 12/12] mtd: nand: denali: change the setup_dma choice into hook

2017-09-21 Thread Masahiro Yamada
The previous commit added some hooks into struct denali_nand_info, so here is one more for clean-up. Signed-off-by: Masahiro Yamada --- Changes in v2: - Newly added drivers/mtd/nand/denali.c | 15 +-- drivers/mtd/nand/denali.h | 2 ++ 2 files changed, 7 insertions(+), 10 deletio

[PATCH v2 06/12] mtd: nand: denali: clean up macros with

2017-09-21 Thread Masahiro Yamada
All the register offsets and bitfield masks are defined in denali.h, but the driver code ended up with additional crappy macros such as MAKE_ECC_CORRECTION(), ECC_SECTOR(), etc. The reason is apparent - accessing a register field requires mask and shift pair. The denali.h only provides mask. How

[PATCH v2 08/12] mtd: nand: denali: clean up comments

2017-09-21 Thread Masahiro Yamada
This driver explains too much about what is apparent from the code. Comments around basic APIs such as init_completion(), spin_lock_init(), etc. seem unneeded lessons to kernel developers. (With those comments dropped, denali_drv_init() is small enough, so it has been merged into the probe functio

[PATCH v2 11/12] mtd: nand: denali: support direct addressing mode

2017-09-21 Thread Masahiro Yamada
The Denali NAND IP core decodes the lower 28 bits of the slave address to get the control information; bit[27:26]=mode, bit[25:24]=bank, etc. This means 256MB address range must be allocated for this IP. (Direct Addressing) For systems with address space limitation, the Denali IP provides an opti

[PATCH v2 01/12] mtd: nand: denali: squash setup_ecc_for_xfer() helper into caller

2017-09-21 Thread Masahiro Yamada
The setup_ecc_for_xfer() is only called from denali_data_xfer(). This helper is small enough, so squash it into the caller. This looks cleaner to me. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mtd/nand/denali.c | 22 +++--- 1 file changed, 3 insertions(+), 1

[PATCH v2 03/12] mtd: nand: denali: consolidate include directives

2017-09-21 Thread Masahiro Yamada
Include necessary headers explicitly without relying on indirect header inclusion. Also, sort them alphabetically. , , turned out bogus, so removed. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mtd/nand/denali.c | 12 +++- drivers/mtd/nand/denali.h | 3 +++

[PATCH v2 05/12] mtd: nand: denali: slight clean up of denali_wait_for_irq()

2017-09-21 Thread Masahiro Yamada
This function has a local variable "irq_mask" and its value is the same as denali->irq_mask. Clean up the code a little. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mtd/nand/denali.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/denali

[PATCH v2 04/12] mtd: nand: denali: squash denali_enable_dma() helper into caller

2017-09-21 Thread Masahiro Yamada
This helper just sets/clears a flag of DMA_ENABLE register (with register read-back, I do not know why it is necessary). Move the register write code to the caller, and remove the helper. It works for me without the register read-back. Signed-off-by: Masahiro Yamada --- Changes in v2: None dr

[PATCH v2 00/12] mtd: nand: denali: more clean-ups

2017-09-21 Thread Masahiro Yamada
This series make the Denali driver even cleaner and more correct. Masahiro Yamada (12): mtd: nand: denali: squash setup_ecc_for_xfer() helper into caller mtd: nand: denali: prefix detect_max_banks() with denali_ mtd: nand: denali: consolidate include directives mtd: nand: denali: squash

[PATCH v2 10/12] mtd: nand: denali: remove unneeded init of ECC_ENABLE register

2017-09-21 Thread Masahiro Yamada
The ECC correction is properly enabled/disabled before the page read/write. There is no need to set up this at the beginning of the probe. Signed-off-by: Masahiro Yamada --- This patch may cause a conflict unless http://patchwork.ozlabs.org/patch/813125/ is applied first. Changes in v2: -

Re: [PATCH net-next 01/10] net: hns3: Support for dynamically assigning tx buffer to TC

2017-09-21 Thread David Miller
From: Yunsheng Lin Date: Fri, 22 Sep 2017 09:57:31 +0800 > Hi, David > > On 2017/9/22 9:41, David Miller wrote: >> From: Yunsheng Lin >> Date: Thu, 21 Sep 2017 19:21:44 +0800 >> >>> @@ -1324,23 +1324,28 @@ static int hclge_alloc_vport(struct hclge_dev *hdev) >>> return 0; >>> } >>> >>>

Re: [PATCH] net: phy: Fix truncation of large IRQ numbers in phy_attached_print()

2017-09-21 Thread David Miller
From: Geert Uytterhoeven Date: Thu, 21 Sep 2017 13:27:02 +0200 > Given NR_IRQS is 2048 on sparc64, and even 32784 on alpha, 3 digits is > not enough to represent interrupt numbers on all architectures. Hence > PHY interrupt numbers may be truncated during printing. > > Increase the buffer size

[PATCH 3/4] rtc: mediatek: enhance the description for MediaTek PMIC based RTC

2017-09-21 Thread sean.wang
From: Sean Wang Give a better description for original MediaTek RTC driver as PMIC based RTC in order to distinguish SoC based RTC. Also turning all words with Mediatek to MediaTek here. Cc: Eddie Huang Signed-off-by: Sean Wang --- drivers/rtc/Kconfig | 8 1 file changed, 4 insertion

[PATCH 0/4] rtc: mediatek: add support for SoC based RTC on MT7622

2017-09-21 Thread sean.wang
From: Sean Wang This patchset introduces support for MediaTek SoC based real time clock (RTC) Currently, the driver is already tested successfully with hwclock and wakealarm on MT7622 SoC. And it should also be workable on other similar MediaTek SoCs. And patch 3 is a distinct patch used to disti

[PATCH 2/4] rtc: mediatek: add driver for RTC on MT7622 SoC

2017-09-21 Thread sean.wang
From: Sean Wang This patch introduces the driver for the RTC on MT7622 SoC. Signed-off-by: Sean Wang --- drivers/rtc/Kconfig| 10 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-mediatek.c | 398 + 3 files changed, 409 insertions(+)

[PATCH 1/4] dt-bindings: rtc: mediatek: add bindings for MediaTek SoC based RTC

2017-09-21 Thread sean.wang
From: Sean Wang Add device-tree binding for MediaTek SoC based RTC Cc: devicet...@vger.kernel.org Signed-off-by: Sean Wang --- .../devicetree/bindings/rtc/rtc-mediatek.txt| 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/

[PATCH 4/4] rtc: mediatek: update MAINTAINERS entry with MediaTek RTC driver

2017-09-21 Thread sean.wang
From: Sean Wang I work for MediaTek on maintaining the MediaTek SoC based RTC driver for the existing SoCs and keep adding support for the following SoCs in the future. Cc: Eddie Huang Signed-off-by: Sean Wang --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS

Re: [RFC PATCH v3 1/2] membarrier: Provide register expedited private command

2017-09-21 Thread Boqun Feng
On Fri, Sep 22, 2017 at 11:22:06AM +0800, Boqun Feng wrote: > Hi Mathieu, > > On Tue, Sep 19, 2017 at 06:13:41PM -0400, Mathieu Desnoyers wrote: > > Provide a new command allowing processes to register their intent to use > > the private expedited command. > > > > This allows PowerPC to skip the

Re: [RFC PATCH v3 1/2] membarrier: Provide register expedited private command

2017-09-21 Thread Boqun Feng
Hi Mathieu, On Tue, Sep 19, 2017 at 06:13:41PM -0400, Mathieu Desnoyers wrote: > Provide a new command allowing processes to register their intent to use > the private expedited command. > > This allows PowerPC to skip the full memory barrier in switch_mm(), and > only issue the barrier when sche

[PATCH] arm: fix text section corruption

2017-09-21 Thread Ji Zhang
When CONFIG_CPU_SW_DOMAIN_PAN is enabled, there are 9 registers being pushed into stack in save_regs, but in fixup it still consider there are 8 registers in stack, which is the case of CONFIG_CPU_SW_DOMAIN_PAN disabled. When fixup being executed, -EFAULT will be written to the text section. In fi

Re: [PATCH v6 0/2] tracing: Add trace events for preemption and irq disable/enable

2017-09-21 Thread Steven Rostedt
Peter, Do you have any qualms with this patch set? -- Steve On Thu, 21 Sep 2017 18:50:22 -0700 Joel Fernandes wrote: > These patches add trace events support for preempt and irq disable/enable > events. > > Changes since v5: > - Use trace_*_rcuidle variants (thanks Steve!) > > Here's an ex

Re: [RFC PATCH 7/7] sound: core: Avoid using timespec for struct snd_timer_tread

2017-09-21 Thread Baolin Wang
On 21 September 2017 at 21:09, Arnd Bergmann wrote: > On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang wrote: > >> +static int snd_timer_user_tread(void __user *argp, struct snd_timer_user >> *tu, >> + unsigned int cmd) >> +{ >> + int __user *p = argp; >> +

[PATCH v2 2/3] drm/rockchip: Add support for Rockchip Soc RGB output interface

2017-09-21 Thread Sandy Huang
Some Rockchip CRTCs, like rv1108, can directly output parallel and serial RGB data to panel or conversion chip, so we add this driver to probe encoder and connector. Signed-off-by: Sandy Huang --- Changes in v2: 1. add error log when probe failed; 2. update name_to_output_mode() according to

[PATCH v2 3/3] drm/rockchip: vop: Add more RGB output interface type

2017-09-21 Thread Sandy Huang
This patch add serial RGB output interface for rockchip vop, the more info about serial RGB output interface described at the following file: Documentation/devicetree/bindings/display/rockchip/rockchip-rgb.txt Signed-off-by: Sandy Huang --- No changes in v2: drivers/gpu/drm/rockchip/rockchip_d

[PATCH v2 1/3] dt-bindings: Add document for rockchip RGB output interface

2017-09-21 Thread Sandy Huang
This path add support rv1108 rgb output interface driver. Signed-off-by: Sandy Huang --- Changes in v2: 1. rename rockchip,rgb-mode to rgb-mode; 2. delete reg for signle endpoint; .../bindings/display/rockchip/rockchip-rgb.txt | 78 ++ 1 file changed, 78 insertions(+)

[PATCH v2 0/3] Add support rockchip RGB output interface

2017-09-21 Thread Sandy Huang
This patches add support rockchip RGB output, Some Rockchip CRTCs, like rv1108, can directly output parallel and serial RGB data to panel or to conversion chip. So we add this driver to probe encoder and connector to support this case. Sandy Huang (3): dt-bindings: Add document for rockchip RGB

Re: [PATCH 1/3] dt-bindings: Add document for rockchip RGB output interface

2017-09-21 Thread Sandy Huang
Hi rob, 在 2017/9/22 3:40, Rob Herring 写道: On Tue, Sep 19, 2017 at 9:57 PM, Sandy Huang wrote: 在 2017/9/20 9:51, Sandy Huang 写道: Hi rob, thanks for you review. 在 2017/9/19 22:46, Rob Herring 写道: On Thu, Sep 14, 2017 at 11:43:18AM +0800, Sandy Huang wrote: This path add support rv

Re: [PATCH v3 09/31] jfs: Define usercopy region in jfs_ip slab cache

2017-09-21 Thread Dave Kleikamp
Acked-by: Dave Kleikamp On 09/20/2017 03:45 PM, Kees Cook wrote: > From: David Windsor > > The jfs symlink pathnames, stored in struct jfs_inode_info.i_inline and > therefore contained in the jfs_ip slab cache, need to be copied to/from > userspace. > > cache object allocation: > fs/jfs/su

linux-next: manual merge of the drm-misc tree with Linus' tree

2017-09-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: drivers/gpu/drm/i915/intel_display.c between commit: fd70075f82b7 ("drm/i915: Trim struct_mutex usage for kms") from Linus' tree and commits: 21a01abbe32a ("drm/atomic: Fix freeing connector/plane state too early b

Re: [PATCH v2 03/22] fpga: bridge: remove OF dependency for fpga-bridge

2017-09-21 Thread Wu Hao
On Thu, Sep 21, 2017 at 02:50:07PM -0500, Alan Tull wrote: > On Thu, Sep 21, 2017 at 2:11 PM, Moritz Fischer wrote: > > Hi Moritz, > > > Hi, > > > > On Mon, Jun 26, 2017 at 09:51:59AM +0800, Wu Hao wrote: > >> This patch removes OF dependency of fpga-bridge, it allows drivers > >> to use fpga-br

[PATCH] perf report: Fix debug messages with --call-graph option

2017-09-21 Thread zhangmengting
With --call-graph option, perf report can display call chains using type, min percent threshold, optional print limit and order. And the default call-graph parameter is 'graph,0.5,caller,function,percent'. Before this patch, 'perf report --call-graph' shows incorrect debug messages as below: [root

Re: [PATCH V6 1/3] dma-mapping: Introduce device_is_coherent() as ahelper

2017-09-21 Thread 陈华才
Hi, Robin, Before 2.6.36 dma_get_cache_alignment is arch-dependent, and it is unified in commit 4565f0170dfc849b3629c27d7 ("dma-mapping: unify dma_get_cache_alignment implementations"). Should we revert to the old implementation? Huacai -- Original -- From: "

[PATCH] dt-bindings: i2c: Add armada-38x i2c binding

2017-09-21 Thread Kalyan Kinthada
All armada-38x variants(380, 385, 388) SoCs have an issue in i2c controller which violates the i2c repeated start timing. This errata is fixed in the i2c-mv64xxx driver but enabled only for devices with compatible string "marvell,mv78230-i2c". This patch introduces a new compatible string "marvel

Re: [RFC PATCH 5/7] sound: core: Avoid using timespec for struct snd_timer_status

2017-09-21 Thread Baolin Wang
On 21 September 2017 at 21:14, Arnd Bergmann wrote: > On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang wrote: > >> static long snd_timer_user_ioctl_compat(struct file *file, unsigned int >> cmd, unsigned long arg) >> @@ -158,12 +151,10 @@ static long snd_timer_user_ioctl_compat(struct file >> *fil

Re: [PATCH net-next 01/10] net: hns3: Support for dynamically assigning tx buffer to TC

2017-09-21 Thread Yunsheng Lin
Hi, David On 2017/9/22 9:41, David Miller wrote: > From: Yunsheng Lin > Date: Thu, 21 Sep 2017 19:21:44 +0800 > >> @@ -1324,23 +1324,28 @@ static int hclge_alloc_vport(struct hclge_dev *hdev) >> return 0; >> } >> >> -static int hclge_cmd_alloc_tx_buff(struct hclge_dev *hdev, u16 buf_siz

Re: [v2,3/3] can: m_can: Add PM Runtime

2017-09-21 Thread Yang, Wenyou
Hi Franklin, On 2017/9/21 8:36, Franklin S Cooper Jr wrote: On 08/24/2017 03:30 AM, Sekhar Nori wrote: + OMAP mailing list On Tuesday 25 July 2017 04:21 AM, Franklin Cooper wrote: Add support for PM Runtime which is the new way to handle managing clocks. However, to avoid breaking SoCs not u

Re: [RFC PATCH 4/7] sound: core: Avoid using timespec for struct snd_rawmidi_status

2017-09-21 Thread Baolin Wang
Hi Arnd, On 21 September 2017 at 20:56, Arnd Bergmann wrote: > On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang wrote: > >> - case SNDRV_RAWMIDI_IOCTL_STATUS: >> +#if __BITS_PER_LONG == 32 >> + case SNDRV_RAWMIDI_IOCTL_STATUS32: >> + { >> + int err = 0; >> +

Fast Loans

2017-09-21 Thread Financial Services Pvt Ltd
Apply for a loan at 3% reply to this Email for more Info

[PATCH v6 1/2] tracing: Prepare to add preempt and irq trace events

2017-09-21 Thread Joel Fernandes
In preparation of adding irqsoff and preemptsoff enable and disable trace events, move required functions and code to make it easier to add these events in a later patch. This patch is just code movement and no functional change. Cc: Steven Rostedt Cc: Peter Zijlstra Cc: kernel-t...@android.com

[PATCH v6 2/2] tracing: Add support for preempt and irq enable/disable events

2017-09-21 Thread Joel Fernandes
Preempt and irq trace events can be used for tracing the start and end of an atomic section which can be used by a trace viewer like systrace to graphically view the start and end of an atomic section and correlate them with latencies and scheduling issues. This also serves as a prelude to using s

[PATCH v6 0/2] tracing: Add trace events for preemption and irq disable/enable

2017-09-21 Thread Joel Fernandes
These patches add trace events support for preempt and irq disable/enable events. Changes since v5: - Use trace_*_rcuidle variants (thanks Steve!) Here's an example of how Android's systrace will be using it to show critical sections as a gantt chart: http://imgur.com/download/TZplEVp Links to e

Re: [patch 0/3] KVM KVM_HC_RT_PRIO hypercall support

2017-09-21 Thread Marcelo Tosatti
On Thu, Sep 21, 2017 at 07:45:32PM +0200, Jan Kiszka wrote: > On 2017-09-21 13:38, Marcelo Tosatti wrote: > > When executing guest vcpu-0 with FIFO:1 priority, which is necessary to > > deal with the following situation: > > > > VCPU-0 (housekeeping VCPU) VCPU-1 (realtime VCPU) > > >

Re: [PATCH net-next 01/10] net: hns3: Support for dynamically assigning tx buffer to TC

2017-09-21 Thread David Miller
From: Yunsheng Lin Date: Thu, 21 Sep 2017 19:21:44 +0800 > @@ -1324,23 +1324,28 @@ static int hclge_alloc_vport(struct hclge_dev *hdev) > return 0; > } > > -static int hclge_cmd_alloc_tx_buff(struct hclge_dev *hdev, u16 buf_size) > +static int hclge_cmd_alloc_tx_buff(struct hclge_dev *

Re: linux-next: build failure after merge of the net-next tree

2017-09-21 Thread David Miller
From: Stephen Rothwell Date: Fri, 22 Sep 2017 11:03:55 +1000 > After merging the net-next tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > net/ipv4/fib_frontend.c: In function 'fib_validate_source': > net/ipv4/fib_frontend.c:411:16: error: 'struct netns_ipv4' has n

Re: [PATCH v2 1/6] ACPI/PPTT: Add Processor Properties Topology Table parsing

2017-09-21 Thread Xiongfeng Wang
Hi Jeremy, On 2017/9/22 2:48, Jeremy Linton wrote: > Hi, > > On 09/20/2017 02:15 AM, Xiongfeng Wang wrote: >> Hi Jeremy, >> >> On 2017/9/20 2:47, Jeremy Linton wrote: >>> ACPI 6.2 adds a new table, which describes how processing units >>> are related to each other in tree like fashion. Caches are

Re: [PATCH RESEND 1/2] phy: phy-mtk-tphy: fix NULL point of chip bank

2017-09-21 Thread Chunfeng Yun
On Thu, 2017-09-21 at 16:23 +0530, Kishon Vijay Abraham I wrote: > > On Thursday 21 September 2017 04:01 PM, Chunfeng Yun wrote: > > Chip bank of version-1 is initialized as NULL, but it's used > > by pcie_phy_instance_power_on/off(), so assign it a right > > address. > > merged. How was this not

Re: [PATCH net] net/ncsi: Don't assume last available channel exists

2017-09-21 Thread David Miller
From: Samuel Mendoza-Jonas Date: Fri, 22 Sep 2017 11:00:00 +1000 > If we haven't configured a channel yet (or are in the process of doing > so) we won't have a hot_channel - does it make more sense to > - check against the hot_channel as currently done, > - only check the filter size at configure

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall

2017-09-21 Thread Marcelo Tosatti
On Thu, Sep 21, 2017 at 04:06:28PM +0200, Peter Zijlstra wrote: > On Thu, Sep 21, 2017 at 09:36:53AM -0400, Konrad Rzeszutek Wilk wrote: > > On Thu, Sep 21, 2017 at 08:38:38AM -0300, Marcelo Tosatti wrote: > > > Add hypercalls to spinlock/unlock to set/unset FIFO priority > > > for the vcpu, protec

Re: [patch 2/3] KVM: x86: KVM_HC_RT_PRIO hypercall (host-side)

2017-09-21 Thread Marcelo Tosatti
On Thu, Sep 21, 2017 at 03:49:33PM +0200, Paolo Bonzini wrote: > On 21/09/2017 15:32, Konrad Rzeszutek Wilk wrote: > > So the guest can change the scheduling decisions at the host level? > > And the host HAS to follow it? There is no policy override for the > > host to say - nah, not going to do it

  1   2   3   4   5   6   7   8   9   >