[PATCH v10 7/8] i2c: rk3x: add i2c support for rk3399 soc

2016-05-16 Thread David Wu
- new method to caculate i2c timings for rk3399: There was an timing issue about "repeated start" time at the I2C controller of version0, controller appears to drop SDA at .875x (7/8) programmed clk high. On version 1 of the controller, the rule(.875x) isn't enough to meet tSU;STA require

[PATCH v10 6/8] dt-bindings: i2c: rk3x: add support for rk3399

2016-05-16 Thread David Wu
The bus clock and function clock are separated at rk3399, and others use one clock as the bus clock and function clock. Signed-off-by: David Wu Reviewed-by: Douglas Anderson Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner --- Change in v10: - none Change in v9: - remove unnecessary "REQ

[PATCH 1/2] ring-buffer: Use long for nr_pages to avoid overflow failures

2016-05-16 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The size variable to change the ring buffer in ftrace is a long. The nr_pages used to update the ring buffer based on the size is int. On 64 bit machines this can cause an overflow problem. For example, the following will cause the ring buffer to crash: # cd /s

Re: Can not play audio with screen off

2016-05-16 Thread Nishanth Menon
On 05/15/2016 02:31 PM, Pavel Machek wrote: > Hi! > > I'm playing some more with N900, this time I'd like to use it as a > alarm clock... > > And now I realized I can not, because system performance is so > horrible with screen off that mpg123 + pulseaudio skips horribly. This > is without tweaki

Re: Brightness control irrespective of blink state.

2016-05-16 Thread Jacek Anaszewski
On 05/16/2016 03:43 PM, Tony Makkiel wrote: On 16/05/16 10:21, Jacek Anaszewski wrote: Hi Tony, On 05/13/2016 04:20 PM, Tony Makkiel wrote: On 12/05/16 11:26, Jacek Anaszewski wrote: On 05/11/2016 03:42 PM, Tony Makkiel wrote: On 11/05/16 10:41, Jacek Anaszewski wrote: On 05/10/2016 0

[PATCH v10 8/8] i2c: rk3x: support fast-mode plus for rk3399

2016-05-16 Thread David Wu
Implement fast mode plus that allows bus speeds of up to 1MHz. Signed-off-by: David Wu Reviewed-by: Douglas Anderson Tested-by: Caesar Wang Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner --- Change in v10: - none Change in v9: - add commit message Change in v8: - none drivers/i2c/b

Re: [PATCH] mm: unhide vmstat_text definition for CONFIG_SMP

2016-05-16 Thread Michal Hocko
Andrew, I think that the following is more straightforward fix and should be folded in to the patch which has introduced vmstat_refresh. --- >From b8dd18fb7df040e1bfe61aadde1d903589de15e4 Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Mon, 16 May 2016 16:19:53 +0200 Subject: [PATCH] mmotm: mm-p

Re: [PATCH RESEND v5 6/6] crypto: AF_ALG - add support for key_id

2016-05-16 Thread Tadeusz Struk
Hi Mat, On 05/13/2016 04:32 PM, Mat Martineau wrote: > >> +params.data_len = req->src_len; >> +params.enc_len = req->dst_len; Thanks for info. I have sent an update for this. > > The params member names have changed (now in_len and out_len). >> +ret = encrypt_blob(¶ms, in, out); >

[PATCH 0/2] [GIT PULL] ring-buffer: Some overflow fixes

2016-05-16 Thread Steven Rostedt
Linus, I was hoping to get this to you before you released 4.6, but testing went into the weekend, and I don't do work over the weekend. This missed the release. Anyway... Hao Qin reported an integer overflow possibility with signed and unsigned numbers in the ring-buffer code. https://bugzi

Re: [PATCH] ftrace/x86: Fix function graph tracer reset path

2016-05-16 Thread Namhyung Kim
Hi Steve, On Mon, May 16, 2016 at 09:58:33AM -0400, Steven Rostedt wrote: > > Nice work Masami! > > On Mon, 16 May 2016 21:32:50 +0900 > Namhyung Kim wrote: > > > > > -/* This is global to keep gas from relaxing the jumps */ > > > -ENTRY(early_idt_handler) > > > +/* This is we

[PATCH 2/2] ring-buffer: Prevent overflow of size in ring_buffer_resize()

2016-05-16 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" If the size passed to ring_buffer_resize() is greater than MAX_LONG - BUF_PAGE_SIZE then the DIV_ROUND_UP() will return zero. Here's the details: # echo 18014398509481980 > /sys/kernel/debug/tracing/buffer_size_kb tracing_entries_write() processes this and c

Re: [PATCH] mm: make fault_around_bytes configurable

2016-05-16 Thread Kirill A. Shutemov
On Mon, May 16, 2016 at 11:18:54PM +0900, Minchan Kim wrote: > On Tue, May 10, 2016 at 11:48:42AM +0900, Minchan Kim wrote: > > On Mon, May 09, 2016 at 04:32:51PM +0900, Minchan Kim wrote: > > > Hello, > > > > > > On Mon, Apr 25, 2016 at 05:21:11PM +0530, Vinayak Menon wrote: > > > > > > > > > >

Re: Brightness control irrespective of blink state.

2016-05-16 Thread Jacek Anaszewski
On 05/16/2016 04:23 PM, Jacek Anaszewski wrote: On 05/16/2016 03:43 PM, Tony Makkiel wrote: if (led_cdev->flags & LED_BLINK_SW) . LED_BLINK_SW flag would have to be cleared in led_stop_software_blink() and in the first two conditions in the led_timer_function(). Yes, that will do with minim

Re: [PATCH v2] locking/rwsem: Add reader-owned state to the owner field

2016-05-16 Thread Peter Hurley
On 05/16/2016 05:17 AM, Paul E. McKenney wrote: > On Mon, May 16, 2016 at 01:09:48PM +0200, Peter Zijlstra wrote: >> On Fri, May 13, 2016 at 10:58:05AM -0700, Peter Hurley wrote: Note that barrier() and READ_ONCE() have overlapping but not identical results and the combined use actually m

Re: [PATCH] gpu:drm:radeon:fix array out fo bouds

2016-05-16 Thread Alex Deucher
On Mon, May 16, 2016 at 12:58 AM, Heloise NH wrote: > From: tom will > > When the initial value of i is greater than zero, > it may cause endless loop, resulting in array out > of bouds, fix it. > > Signed-off-by: tom will Applied to both radeon and amgpu. Thanks! Alex > --- > drivers/gpu/d

Re: [PATCH] pcmcia: cm4040 remove KERN_INFO as it is not at start of printk message

2016-05-16 Thread Harald Welte
Hi Colin, the fix is obviously correct, but still for a matter of the record: Acked-by: Harald Welte -- - Harald Weltehttp://laforge.gnumonks.org/ "Privacy in residential applications is a desirable market

[GIT PULL] core/signals changes for v4.7

2016-05-16 Thread Ingo Molnar
Linus, Please pull the latest core-signals-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-signals-for-linus # HEAD: 91c6180572e2fec71701d646ffc40ad30986275c signals/sigaltstack: Change SS_AUTODISARM to (1U << 31) This tree, from Stas Sergeev and

[GIT PULL] EFI changes for v4.7

2016-05-16 Thread Ingo Molnar
Linus, Please pull the latest efi-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git efi-core-for-linus # HEAD: 6c5450ef66816216e574885cf8d3ddb31ef77428 efivarfs: Make efivarfs_file_ioctl() static The main changes in this cycle were: * Drop the unus

Re: SHA1-MB algorithm broken on latest kernel

2016-05-16 Thread Josh Poimboeuf
On Fri, May 13, 2016 at 10:32:26AM -0700, Megha Dey wrote: > On Fri, 2016-05-13 at 07:51 +0200, Ingo Molnar wrote: > > * Herbert Xu wrote: > > > > > On Thu, May 12, 2016 at 04:31:06PM -0700, Megha Dey wrote: > > > > Hi, > > > > > > > > When booting latest kernel with the CONFIG_CRYPTO_SHA1_MB e

Re: [PATCH 1/1] devicetree: sunxi: Add OLinuXino Lime2 eMMC to the Makefile

2016-05-16 Thread Maxime Ripard
On Fri, May 13, 2016 at 09:57:16PM +0200, Olliver Schinagl wrote: > commit 27dd9af6bc000ab21fd ("ARM: dts: sunxi: Add a olinuxino-lime2-emmc") > added the new emmc equipped lime2 but forgot its Makefile. > > This patch adds an entry to the Makefile. > > Signed-off-by: Olliver Schinagl Having th

[GIT PULL] EFI fix

2016-05-16 Thread Ingo Molnar
Linus, Please pull the latest efi-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git efi-urgent-for-linus # HEAD: bea23c757f66d91dac8fdadd94da0cba6b0b66bc x86/efi: Fix 7th argument to efi_call() A leftover fix from the v4.6 cycle. Thanks,

Re: [PATCH 2/8] Documentation: regulator: tps65218: Update examples

2016-05-16 Thread Rob Herring
On Wed, May 11, 2016 at 11:18:05AM +0530, Keerthy wrote: > This updates the device tree according to the preferred way of parsing > the nodes using the regulator framework. > > Signed-off-by: Keerthy > --- > .../devicetree/bindings/regulator/tps65218.txt | 87 > ++ > 1 f

[GIT PULL] locking changes for v4.7

2016-05-16 Thread Ingo Molnar
Linus, Please pull the latest locking-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-core-for-linus # HEAD: a1cc5bcfcfca0b99f009b117785142dbdc3b87a3 locking/atomics: Flip atomic_fetch_or() arguments The main changes in this cycle were:

Re: CQ and RDMA READ/WRITE APIs

2016-05-16 Thread Doug Ledford
On 05/16/2016 07:49 AM, Christoph Hellwig wrote: > [adding Linus and linux-kernel to Cc] > > On Fri, May 13, 2016 at 08:04:17PM -0400, Doug Ledford wrote: >> You submitted new files into the subsystem under GPL only license in >> contrast to the rest of the subsystem. This presents a problem. I'

Re: [PATCH v2 2/2] dt-bindings: Add Oxford Semiconductor OXNAS pinctrl and gpio bindings

2016-05-16 Thread Rob Herring
On Wed, May 11, 2016 at 09:34:22AM +0200, Neil Armstrong wrote: > Add pinctrl and gpio DT bindings for Oxford Semiconductor OXNAS SoC Family. > This version supports the ARM926EJ-S based OX810SE SoC with 34 IO pins. > > Signed-off-by: Neil Armstrong > --- > .../devicetree/bindings/gpio/gpio_oxna

[PATCH 2/2] net: ethernet: fs-enet: use phy_ethtool_{get|set}_link_ksettings

2016-05-16 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- .../net/ethernet/freescale/fs_enet/fs_enet-main.c | 26 +-- 1 files changed, 2 insertions(+), 24 deleti

[PATCH 1/2] net: ethernet: fs-enet: use phydev from struct net_device

2016-05-16 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- .../net/ethernet/fre

[GIT PULL] killable rwsems for v4.7

2016-05-16 Thread Ingo Molnar
Linus, Please pull the latest locking-rwsem-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-rwsem-for-linus # HEAD: 4544ba8c6b1743499cabb682897a469911845f15 locking/rwsem: Fix comment on register clobbering This tree, by Michal Hocko, implement

Re: [PATCH] mm: make fault_around_bytes configurable

2016-05-16 Thread Minchan Kim
On Mon, May 16, 2016 at 05:29:00PM +0300, Kirill A. Shutemov wrote: > On Mon, May 16, 2016 at 11:18:54PM +0900, Minchan Kim wrote: > > On Tue, May 10, 2016 at 11:48:42AM +0900, Minchan Kim wrote: > > > On Mon, May 09, 2016 at 04:32:51PM +0900, Minchan Kim wrote: > > > > Hello, > > > > > > > > On M

Re: [PATCH v8 2/2] memory: atmel-ebi: add DT bindings documentation

2016-05-16 Thread Rob Herring
On Wed, May 11, 2016 at 12:13:08PM +0200, Boris Brezillon wrote: > The EBI (External Bus Interface) is used to access external peripherals > (NOR, SRAM, NAND, and other specific devices like ethernet controllers). > Each device is assigned a CS line and an address range and can have its > own confi

Re: [PATCH v5 01/11] of: Add bindings of hw throttle for Tegra soctherm

2016-05-16 Thread Rob Herring
On Wed, May 11, 2016 at 06:20:16PM +0800, Wei Ni wrote: > Add HW throttle configuration sub-node for soctherm, which > is used to describe the throttle event, and worked as a > cooling device. The "hot" type trip in thermal zone can > be bound to this cooling device, and trigger the throttle > func

Re: [PATCH] mfd: twl6040: Handle mclk used for HPPLL and optional internal clock source

2016-05-16 Thread Rob Herring
On Wed, May 11, 2016 at 02:13:29PM +0300, Peter Ujfalusi wrote: > On some boards, like omap5-uevm the MCLK is gated by default and in order > to be able to use the High performance modes of twl6040 it need to be > enabled by SW. > Add support for handling the MCLK source clock via CCF. > At the sam

Re: [PATCH 1/5] dt-bindings: Document the STM32 I2C bindings

2016-05-16 Thread Rob Herring
On Wed, May 11, 2016 at 05:36:10PM +0200, M'boumba Cedric Madianga wrote: > This patch adds documentation of device tree bindings for the STM32 I2C > controller. > > Signed-off-by: M'boumba Cedric Madianga > --- > .../devicetree/bindings/i2c/i2c-stm32.txt | 33 > ++

Re: Can not play audio with screen off

2016-05-16 Thread Pavel Machek
Hi! > > I'm playing some more with N900, this time I'd like to use it as a > > alarm clock... > > > > And now I realized I can not, because system performance is so > > horrible with screen off that mpg123 + pulseaudio skips horribly. This > > is without tweaking serial parameters, so CPU is defi

Re: linux-next: manual merge of the wireless-drivers-next tree with the net-next tree

2016-05-16 Thread David Miller
From: Kalle Valo Date: Mon, 16 May 2016 16:10:27 +0300 > I wasn't expecting that skb_info variable is removed. Do we now have > merge damage somewhere? Luca, what do you think? It's possible I got the net --> net-next merge wrong the other day, feel free to send me an appropriate fixup. Thanks.

Re: [f2fs-dev] [RFC] f2fs: fix a race condition between evict & gc

2016-05-16 Thread Chao Yu
Hi Pengyang, On 2016/5/16 18:40, Hou Pengyang wrote: > When collecting data segment(gc_data_segment), there is a race condition > between evict and phases of gc: > 0) ra_node_page(dnode) > 1) ra_node_page(inode) > <--- evict the inode > 2) f2fs_iget get the inode and add it to gc_lis

Re: [PATCH 3/4] phy: rockchip-emmc: configure default output tap delay

2016-05-16 Thread Doug Anderson
Hi, On Sun, May 15, 2016 at 9:15 PM, Shawn Lin wrote: > Hi Doug, > > > On 2016/5/14 6:25, Doug Anderson wrote: >> >> Hi, >> >> On Thu, May 12, 2016 at 3:43 PM, Brian Norris >> wrote: >>> >>> The output tap delay controls helps maintain the hold requirements for >>> eMMC. The exact value is depen

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-05-16 Thread Tomasz Nowicki
On 18.04.2016 12:43, Robin Murphy wrote: On 15/04/16 19:29, Timur Tabi wrote: On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi wrote: +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) +{ + struct iommu_ops *iommu; + + iommu = iort_iommu_configure(dev); + +

Re: [PATCH v2 3/6] docs: Document BCM23550 bindings

2016-05-16 Thread Rob Herring
On Wed, May 11, 2016 at 02:36:19PM -0700, Chris Brand wrote: > Add binding document for Broadcom BCM23550 SoC. > > BCM23550 has a Cluster Dormant Control IP block that holds cores > in an idle state. Introduce a new CPU enable method in which the CDC is > accessed to bring the core online. > > Si

Re: Question About Functions "__free_pages_check" and "check_new_page" in page_alloc.c

2016-05-16 Thread Michal Hocko
On Mon 16-05-16 21:42:23, Wang Xiaoqiang wrote: > Hi all, > > I am really confused about these two functions. The following code > snippet: > > if(unlikely(atomic_read(&page->_mapcount) != -1)) > bad_reason ="nonzero mapcount";if(unlikely(page->mapping != > NULL)) >

Re: [PATCH] Staging: comedi: quatech_daqp_cs.c: fixed a warning added missing 'int' in 'unsigned'.

2016-05-16 Thread Greg KH
On Mon, May 16, 2016 at 01:15:24AM +0530, Amit Ghadge wrote: > Signed-off-by: Amit Ghadge > --- > drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I can't take a patch without a changelog text in it. Please fix and resend.

Re: [GIT PULL] extcon next for 4.7

2016-05-16 Thread Greg KH
On Tue, May 10, 2016 at 10:47:23AM +0900, Chanwoo Choi wrote: > Dear Greg, > > I'm sorry for late pull request. This is extcon-next pull request for v4.7. > I add detailed description of this pull request on below. > Please pull extcon with following updates. > > Best Regards, > Chanwoo Choi > >

[PATCH 3/3] Introduce & use new lightweight SGL iterators

2016-05-16 Thread Dave Gordon
The existing for_each_sg_page() iterator is somewhat heavyweight, and is limiting i915 driver performance in a few benchmarks. So here we introduce somewhat lighter weight iterators, primarily for use with GEM objects or other case where we need only deal with whole aligned pages. Unlike the old i

Re: [Xen-devel] [PATCH] xen/x86: actually allocate legacy interrupts on PV guests

2016-05-16 Thread Stefano Stabellini
On Mon, 16 May 2016, Boris Ostrovsky wrote: > On 05/16/2016 07:23 AM, Stefano Stabellini wrote: > > On Wed, 27 Apr 2016, Boris Ostrovsky wrote: > >> On 04/27/2016 09:40 AM, David Vrabel wrote: > >>> On 27/04/16 14:38, Boris Ostrovsky wrote: > int xen_nr_legacy_irqs() > { > if (x

[PATCH 0/1] userfaultfd: don't pin the user memory in userfaultfd_file_create()

2016-05-16 Thread Oleg Nesterov
Hello, Sorry for delay. So this is the same patch, just I added the helpers for get/put mm->mm_users. I won't mind to change userfaultfd_get_mm() to return mm_struct-or- NULL, or perhaps instead we should simply add the trivial helper which does atomic_inc_not_zero(mm->mm_users) into sched.h, it

[PATCH 1/1] userfaultfd: don't pin the user memory in userfaultfd_file_create()

2016-05-16 Thread Oleg Nesterov
userfaultfd_file_create() increments mm->mm_users; this means that the memory won't be unmapped/freed if mm owner exits/execs, and UFFDIO_COPY after that can populate the orphaned mm more. Change userfaultfd_file_create() and userfaultfd_ctx_put() to use mm->mm_count to pin mm_struct. This means t

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-05-16 Thread Tomasz Nowicki
On 16.05.2016 17:15, Tomasz Nowicki wrote: On 18.04.2016 12:43, Robin Murphy wrote: On 15/04/16 19:29, Timur Tabi wrote: On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi wrote: +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) +{ + struct iommu_ops *iommu; + +

Re: CQ and RDMA READ/WRITE APIs

2016-05-16 Thread Doug Ledford
On 05/16/2016 07:49 AM, Christoph Hellwig wrote: > [adding Linus and linux-kernel to Cc] > > On Fri, May 13, 2016 at 08:04:17PM -0400, Doug Ledford wrote: >> You submitted new files into the subsystem under GPL only license in >> contrast to the rest of the subsystem. This presents a problem. I'

Re: [RFC][PATCH 4/7] sched: Replace sd_busy/nr_busy_cpus with sched_domain_shared

2016-05-16 Thread Dietmar Eggemann
On 09/05/16 11:48, Peter Zijlstra wrote: Couldn't you just always access sd->shared via sd = rcu_dereference(per_cpu(sd_llc, cpu)) for updating nr_busy_cpus? The call_rcu() thing is on the sd any way. @@ -5879,7 +5879,6 @@ static void destroy_sched_domains(struct sched_domain *sd) DEFINE_PER_CP

[GIT PULL] (ibft) stable/for-linus-4.7

2016-05-16 Thread Konrad Rzeszutek Wilk
Hey Linus, Please git pull the following branch: git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft.git stable/for-linus-4.7 Sorry about the freshness of it - it was 5 weeks old until I realized that one of the commits has the wrong author name (me!), so rebased it. The pull has t

Re: [PATCH v2 4/9] dt-bindings: Add a binding for Mediatek Video Decoder

2016-05-16 Thread Rob Herring
On Thu, May 12, 2016 at 07:24:05PM +0800, Tiffany Lin wrote: > Add a DT binding documentation of Video Decoder for the > MT8173 SoC from Mediatek. > > Signed-off-by: Tiffany Lin > --- > .../devicetree/bindings/media/mediatek-vcodec.txt | 50 > ++-- > 1 file changed, 46 insert

Re: [PATCH 1/1] tty/serial: to support 8250 earlycon can be enabled independently

2016-05-16 Thread Peter Hurley
On 05/16/2016 04:35 AM, Zhen Lei wrote: > Sometimes, we may only use SSH to login, and build 8250 uart driver as a > ko(insmod if needed). But the earlycon may still be necessary, because > the kernel boot process may take a long time. It's not good to display > nothing but ask people to wait patie

[PATCH] dell_rbu: Don't fallback to userhelper when loading firmware

2016-05-16 Thread Mario Limonciello
dell_rbu previously would allow a userspace application to craft the payload after dell_rbu was loaded and abuse the udev userspace API. Instead require the payload to be crafted and placed in /lib/firmware/dell_rbu ahead of time. This adjusts dell_rbu to immediately load the firmware from /lib/f

Re: [git pull] vfs.git

2016-05-16 Thread Linus Torvalds
On Sun, May 15, 2016 at 8:32 PM, Al Viro wrote: > FWIW, I considered sending that pile in several pull requests, but for some > reason git request-pull v4.6 vfs work.lookups spews something very odd into > diffstat - files that have never been touched by it and, in fact, doing > merge with mainlin

Re: [lkp] [xfs] a08ee40a79: kmsg.XFS(vdd):unknown_mount_option[nosuchopt]

2016-05-16 Thread Eric Sandeen
On 5/15/16 8:42 PM, kernel test robot wrote: > FYI, we noticed the following commit: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > commit a08ee40a79653d082911cab9fbeff94baa7714cb ("xfs: sanitize remount > options") > > on test machine: vm-kbuild-4G: 4 threads qe

Re: [PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2016-05-16 Thread jeffrey.lin
Hi Dmitry: I've finished issues under the format you suggested as below. >#define RM_RESET_MSG_ADDR 0x4004 >#define RM_FASTBOOT_MSG_ADDR 0x5620 >#define RM_MAX_READ_SIZE 63 change maximum read size to 56 bytes #define RM_MAX_READ_SIZE56 >#define RM_CONTACT_X_POS

Re: [PATCH 2/2] clk: rockchip: fix incorrect parent for rk3399's {c,g}pll_aclk_perihp_src

2016-05-16 Thread Doug Anderson
Hi, On Fri, May 13, 2016 at 8:36 PM, Xing Zheng wrote: > Hi Doug, > > > On 2016年05月14日 04:10, Doug Anderson wrote: >> >> Hi, >> >> On Fri, May 13, 2016 at 11:42 AM, Brian Norris >> wrote: >>> >>> From: Xing Zheng >>> >>> There was a typo, swapping 'c' <--> 'g'. >>> >>> Signed-off-by: Xing Zheng

Re: [PATCH v2 0/8] crypto: caam - add support for LS1043A SoC

2016-05-16 Thread Horia Ioan Geanta Neag
On 5/5/2016 6:34 PM, Horia Geantă wrote: > v2: > As suggested by Arnd, patch 1 fixes io{read,write}{16,32}be accessors > to prevent the case when {read,write}{w,l} are overriden by arch-specific > ones having barriers, while the BE accessors previously mentioned are not > (thus behaving differently

Re: [patch V4 09/31] bitops: Add x86-specific parity functions

2016-05-16 Thread Zhaoxiu Zeng
On 2016/5/11 17:31, Peter Zijlstra wrote: > Please use the GEN_*_RMWcc() stuff to avoid the setpo where possible. Setpo is better. In most cases, we need to store the parity, or compare it with other variables. For example, in drivers/net/ethernet/broadcom/tg3.c, static int tg3_test_nvram(struct

Re: UBSAN: Undefined behaviour in block/blk-mq.c:1459:27 with pata_amd

2016-05-16 Thread Jens Axboe
On 05/13/2016 09:31 AM, Bartlomiej Zolnierkiewicz wrote: Does the patch below help? From: Bartlomiej Zolnierkiewicz Subject: [PATCH] blk-mq: fix undefined behaviour in order_to_size() When this_order variable in blk_mq_init_rq_map() becomes zero the code incorrectly decrements the variable and

Re: [PATCH] arm: tegra: initial support for apalis tk1

2016-05-16 Thread Rob Herring
On Thu, May 12, 2016 at 02:27:12PM +0200, Marcel Ziswiler wrote: > This patch adds the device tree to support Toradex Apalis TK1 a > computer on module which can be used on different carrier boards. > > The module consists of a Tegra TK1 SoC, a PMIC solution, 2 GB of DDR3L > RAM, a bunch of level

Re: [PATCH] x86/boot: Refuse to build with data relocations

2016-05-16 Thread Josh Poimboeuf
On Thu, May 12, 2016 at 01:31:04PM -0700, Kees Cook wrote: > diff --git a/arch/x86/boot/compressed/Makefile > b/arch/x86/boot/compressed/Makefile > index cfdd8c3f8af2..25d477fcd5b4 100644 > --- a/arch/x86/boot/compressed/Makefile > +++ b/arch/x86/boot/compressed/Makefile > @@ -85,7 +85,25 @@ vmlin

Re: [PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2016-05-16 Thread jeffrey.lin
>static int raydium_i2c_do_update_firmware(struct raydium_data *ts, >const struct firmware *fw) >{ > struct i2c_client *client = ts->client; > const void *data; > size_t data_len; > size_t len; > int page_nr; > int i; >

Re: [PATCH 1/1] userfaultfd: don't pin the user memory in userfaultfd_file_create()

2016-05-16 Thread Andrea Arcangeli
On Mon, May 16, 2016 at 05:25:46PM +0200, Oleg Nesterov wrote: > userfaultfd_file_create() increments mm->mm_users; this means that the memory > won't be unmapped/freed if mm owner exits/execs, and UFFDIO_COPY after that > can > populate the orphaned mm more. > > Change userfaultfd_file_create()

Re: [PATCH 1/4] dt: bindings: add bcm2835-memory-controller documentation

2016-05-16 Thread Rob Herring
On Thu, May 12, 2016 at 12:38:49PM +, ker...@martin.sperl.org wrote: > From: Martin Sperl > > Add memory controller dt-binding documentation for the > bcm2835 soc. > > Signed-off-by: Martin Sperl > --- > .../bindings/memory-controllers/brcm,bcm2835-sdram.txt | 16 > > 1

Re: [PATCH V4 8/9] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-05-16 Thread Rob Herring
On Thu, May 12, 2016 at 04:19:31PM +0100, Jon Hunter wrote: > The Tegra AGIC is an interrupt controller that is compatible with the > ARM GIC-400, however, it is a 2nd level controller and requires runtime > power-management because it is outside the main CPU complex. Ideally, > the AGIC would use

Re: [PATCH] usb: gadget: f_fs: report error if excess data received

2016-05-16 Thread Michal Nazarewicz
So I’ve been looking at AIO handling in f_fs and either I’m stupid or the code is broken. Here’s part of ffs_user_copy_worker: int ret = io_data->req->status ? io_data->req->status : io_data->req->actual; if (io_data->read && ret > 0) {

Re: [Patch v5 1/8] dt/bindings: firmware: Add Qualcomm SCM binding

2016-05-16 Thread Rob Herring
On Thu, May 12, 2016 at 10:46:54PM -0500, Andy Gross wrote: > This patch adds the device tree support for the Qualcomm SCM firmware. > > Signed-off-by: Andy Gross > --- > .../devicetree/bindings/firmware/qcom,scm.txt | 28 > ++ > 1 file changed, 28 insertions(+) > crea

Re: [PATCH 2/2] kselftests/ftrace: Add a test case for event pid filtering

2016-05-16 Thread Shuah Khan
On 05/10/2016 09:24 AM, Shuah Khan wrote: > On 05/10/2016 08:53 AM, Namhyung Kim wrote: >> Check event is filtered by set_event_pid and options/event-fork. >> >> Signed-off-by: Namhyung Kim > > Looks good to me. Steve! Ack if you are good with this patch. > I can get this into 4.8-rc1 > > thanks

Re: [PATCH 1/2] kselftests/ftrace: Detect tracefs mount point

2016-05-16 Thread Shuah Khan
On 05/10/2016 09:24 AM, Shuah Khan wrote: > On 05/10/2016 08:53 AM, Namhyung Kim wrote: >> Currently ftracetest assumes tracing directory is located under >> $DEBUGFS/tracing. But it's possible to mount tracefs directly without >> debugfs. >> >> Signed-off-by: Namhyung Kim > > Looks good to me.

Re: [PATCH] tools: testing: define the _GNU_SOURCE macro

2016-05-16 Thread Shuah Khan
On 05/16/2016 08:02 AM, Muhammad Falak R Wani wrote: > On Mon, May 16, 2016 at 07:27:25AM -0600, Shuah Khan wrote: >> On 05/13/2016 06:05 AM, Muhammad Falak R Wani wrote: >>> Add the macro _GNU_SOURCE, so that compilation does not terminate. >> >> What error are you seeing? Could you please send th

Re: [PATCH] watchdog: qcom: Report reboot reason

2016-05-16 Thread Grant Grundler
[plain text this time...] On Sat, May 14, 2016 at 9:35 AM, Wim Van Sebroeck wrote: > > Hi Guenter, > > > The Qualcom watchdog timer block reports if the system was reset by the > > watchdog. Pass the information to user space. > > > > Cc: Grant Grundler > > Signed-off-by: Guenter Roeck > > ---

[PATCH 0/3] Add support for X-Gene hwmon driver

2016-05-16 Thread Hoan Tran
This patch set adds hardware temperature and power reading support ​for APM X-Gene SoC's using the mailbox communication interface. For device tree, it is the standard DT mailbox. For ACPI, it is the PCC mailbox. For ACPI, tested with this patch[1] which supports PCC subspace 2 [1] https://lkml.or

[PATCH 3/3] arm64: dts: apm: Add X-Gene SoC hwmon to device tree

2016-05-16 Thread Hoan Tran
This patch adds DT node to enable hwmon driver for APM X-Gene SoC. Signed-off-by: Hoan Tran --- arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 5 + arch/arm64/boot/dts/apm/apm-storm.dtsi | 5 + 2 files changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi

[PATCH 2/3] hwmon: xgene: Adds hwmon driver

2016-05-16 Thread Hoan Tran
This patch adds hardware temperature and power reading support for APM X-Gene SoC's using the mailbox communication interface. Signed-off-by: Hoan Tran --- Documentation/hwmon/xgene-hwmon | 32 ++ drivers/hwmon/Kconfig | 7 + drivers/hwmon/Makefile | 1 + drivers/hwmon/xg

Re: [PATCH v2] drm/amd/powerplay: use ARRAY_SIZE() to calculate array size.

2016-05-16 Thread Alex Deucher
On Fri, May 13, 2016 at 1:36 PM, Muhammad Falak R Wani wrote: > It is preferred to use ARRAY_SIZE() for size calculation, instead > using sizeof(array)/sizeof(*array). It makes the code more readable. > > Signed-off-by: Muhammad Falak R Wani Applied. thanks! Alex > --- > drivers/gpu/drm/amd/

[PATCH 1/3] Documentation: dtb: xgene: Add hwmon dts binding documentation

2016-05-16 Thread Hoan Tran
This patch adds the APM X-Gene hwmon device tree node documentation. Signed-off-by: Hoan Tran --- .../devicetree/bindings/hwmon/apm-xgene-hwmon.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/apm-xgene-hwmon.txt diff

Re: [PATCH 1/1] userfaultfd: don't pin the user memory in userfaultfd_file_create()

2016-05-16 Thread Oleg Nesterov
On 05/16, Andrea Arcangeli wrote: > > Reviewed-by: Andrea Arcangeli Thanks, > > +static inline bool userfaultfd_get_mm(struct userfaultfd_ctx *ctx) > > +{ > > + return atomic_inc_not_zero(&ctx->mm->mm_users); > > +} > > Nice cleanup, but wouldn't it be more generic to implement this as > mmget

Re: [PATCH] ixgbe: take online CPU number as MQ max limit when alloc_etherdev_mq()

2016-05-16 Thread Alexander Duyck
On Sun, May 15, 2016 at 7:59 PM, ethan zhao wrote: > Alexander, > > On 2016/5/14 0:46, Alexander Duyck wrote: >> >> On Thu, May 12, 2016 at 10:56 PM, Ethan Zhao >> wrote: >>> >>> Allocating 64 Tx/Rx as default doesn't benefit perfomrnace when less >>> CPUs were assigned. especially when DCB is en

Re: [PATCH v9 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

2016-05-16 Thread Rob Herring
On Fri, May 13, 2016 at 12:33:52PM +0530, Kedareswara rao Appana wrote: > Device-tree binding documentation for Xilinx zynqmp dma engine > used in Zynq UltraScale+ MPSoC. > > Signed-off-by: Punnaiah Choudary Kalluri > Signed-off-by: Kedareswara rao Appana > --- > Changs in v9: > - Removed includ

[PATCH] rtc: interface: ignore exprired timers one enqueing new timers

2016-05-16 Thread Colin King
From: Colin Ian King This patch fixes a RTC wakealarm issue, namely, the event fires during hibernate and is not cleared from the list, causing hwclock to block. The current enqueuing does not trigger an alarm if any expired timers already exist on the timerqueue. This can occur when a RTC wake

Re: [PATCH v3] ASoC: MAX9860: new driver

2016-05-16 Thread Rob Herring
On Fri, May 13, 2016 at 09:25:33AM +0200, Peter Rosin wrote: > This is a driver for the MAX9860 Mono Audio Voice Codec. > > https://datasheets.maximintegrated.com/en/ds/MAX9860.pdf > > This driver does not support sidetone since the DVST register field is > backwards with the mute near the maximu

Re: [PATCHv8 resend 1/2] x86/vdso: add mremap hook to vm_special_mapping

2016-05-16 Thread Dmitry Safonov
On 05/16/2016 04:55 PM, Ingo Molnar wrote: Ok, this looks useful - please add this information to the changelog (with typos fixed). Thanks will add to v9.

Re: [PATCH 2/2] Fix efi_call

2016-05-16 Thread Alex Thorlton
On Thu, May 12, 2016 at 08:48:35AM +0200, Ingo Molnar wrote: > I suppose the SGI/UV code is the only one using 7 arguments or more? Might > make > sense to point that out in the changelog. First off, to everybody, sorry for the delayed responses. I've been AFK for a few days and forgot to set my

Re: [PATCH 2/2] Fix efi_call

2016-05-16 Thread Alex Thorlton
On Thu, May 12, 2016 at 12:41:49PM +0100, Matt Fleming wrote: > On Wed, 11 May, at 02:55:45PM, Alex Thorlton wrote: > Nice. Your fix looks good, so I've put it in the urgent queue and > tagged it for stable. Great! Thanks, Matt. - Alex

Re: [PATCH v2] drm/amd/powerplay: use ARRAY_SIZE() to calculate array size.

2016-05-16 Thread Eric Engestrom
On Fri, May 13, 2016 at 11:06:40PM +0530, Muhammad Falak R Wani wrote: > It is preferred to use ARRAY_SIZE() for size calculation, instead > using sizeof(array)/sizeof(*array). It makes the code more readable. > > Signed-off-by: Muhammad Falak R Wani Reviewed-by: Eric Engestrom Thanks, and sor

Re: [PATCH] usb: gadget: f_fs: report error if excess data received

2016-05-16 Thread Lars-Peter Clausen
On 05/16/2016 06:05 PM, Michal Nazarewicz wrote: > So I’ve been looking at AIO handling in f_fs and either I’m stupid or > the code is broken. The code was broken. Fixed in commit 332a5b446b791 ("usb: gadget: f_fs: Fix EFAULT generation for async read operations:).

[GIT PULL] perf changes for v4.7

2016-05-16 Thread Ingo Molnar
Linus, Please pull the latest perf-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-core-for-linus # HEAD: 3f56e687a138481894a1088d5aa7d41951bdb020 perf/core: Disable the event on a truncated AUX record Bigger kernel side changes: - Add backw

Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree

2016-05-16 Thread Moritz Fischer
Hi Boris, On Mon, May 16, 2016 at 1:05 AM, Boris Brezillon wrote: >> Here are a few questions (I'm assuming the netdev + MAC address case): >> - how would you link the net/PHY device to the MTD partition storing >> the MAC address Well in my case I actually planned to use it with the OTP part

Re: [rcu_sched stall] regression/miss-config ?

2016-05-16 Thread Santosh Shilimkar
On 5/16/2016 5:03 AM, Paul E. McKenney wrote: On Sun, May 15, 2016 at 09:35:40PM -0700, santosh.shilim...@oracle.com wrote: On 5/15/16 2:18 PM, Santosh Shilimkar wrote: Hi Paul, I was asking Sasha about [1] since other folks in Oracle also stumbled upon similar RCU stalls with v4.1 kernel in d

Re: [PATCH] usb: gadget: f_fs: report error if excess data received

2016-05-16 Thread Krzysztof Opasiak
Hi Michal, On 05/16/2016 06:05 PM, Michal Nazarewicz wrote: > So I’ve been looking at AIO handling in f_fs and either I’m stupid or > the code is broken. Here’s part of ffs_user_copy_worker: > > int ret = io_data->req->status ? io_data->req->status : >

Re: [RFC PATCH] perf session: fixing uninitialised cpumode

2016-05-16 Thread Mathieu Poirier
On 16 May 2016 at 00:01, Jiri Olsa wrote: > On Fri, May 13, 2016 at 05:36:16PM -0600, Mathieu Poirier wrote: >> The following patch[1] adds a new "cpumode" to the perf_sample >> structure that gets initialised as events are read from the data >> event file. >> >> With the advent of HW tracers and

Re: [PATCHv8 resend 2/2] selftest/x86: add mremap vdso test

2016-05-16 Thread Dmitry Safonov
On 05/16/2016 04:54 PM, Ingo Molnar wrote: * Dmitry Safonov wrote: Should print on success: [root@localhost ~]# ./test_mremap_vdso_32 AT_SYSINFO_EHDR is 0xf773f000 [NOTE] Moving vDSO: [f773f000, f774] -> [a00, a001000] [OK] Or segfault if landing was bad (before patches): [ro

[PATCH v2 4/5] of: unittest: changeset helpers

2016-05-16 Thread Pantelis Antoniou
Add a unitest specific for the new changeset helpers. Signed-off-by: Pantelis Antoniou --- drivers/of/unittest.c | 54 +++ 1 file changed, 54 insertions(+) diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index e986e6e..ff6939b 100644 --

[PATCH v2 1/5] of: dynamic: Add __of_node_dupv()

2016-05-16 Thread Pantelis Antoniou
Add an __of_node_dupv() private method and make __of_node_dup() use it. This is required for the subsequent changeset accessors which will make use of it. Signed-off-by: Pantelis Antoniou --- drivers/of/dynamic.c | 29 +++-- 1 file changed, 23 insertions(+), 6 deletions(-

[PATCH v2 2/5] of: changesets: Introduce changeset helper methods

2016-05-16 Thread Pantelis Antoniou
Changesets are very powerful, but the lack of a helper API makes using them cumbersome. Introduce a simple copy based API that makes things considerably easier. To wit, adding a property using the raw API. struct property *prop; prop = kzalloc(sizeof(*prop)), GFP_KERNEL);

[PATCH v2 3/5] of: changeset: Add of_changeset_node_move method

2016-05-16 Thread Pantelis Antoniou
Adds a changeset helper for moving a subtree to a different place in the running tree. This is useful in advances cases of dynamic device tree construction. Signed-off-by: Pantelis Antoniou --- drivers/of/dynamic.c | 66 include/linux/of.h |

Re: [PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2016-05-16 Thread Dmitry Torokhov
On Mon, May 16, 2016 at 11:46:51PM +0800, jeffrey.lin wrote: > Hi Dmitry: > I've finished issues under the format you suggested as below. > > >#define RM_RESET_MSG_ADDR0x4004 > >#define RM_FASTBOOT_MSG_ADDR 0x5620 > > >#define RM_MAX_READ_SIZE 63 > change maximum read size to 56 b

Re: [PATCH] regulator: axp20x: Add support for the (external) drivebus regulator

2016-05-16 Thread Rob Herring
On Sat, May 14, 2016 at 07:55:45PM +0200, Hans de Goede wrote: > The axp20x pmics have 2 power inputs, one called ACIN which is intended > for to be supplied via a powerbarrel on the board and one called VBUS > which is intended to be supplied via an otg connector. > > In the VBUS case the pmic ne

Re: [PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2016-05-16 Thread Dmitry Torokhov
On Mon, May 16, 2016 at 09:41:45AM -0700, Dmitry Torokhov wrote: > On Mon, May 16, 2016 at 11:46:51PM +0800, jeffrey.lin wrote: > > Hi Dmitry: > > I've finished issues under the format you suggested as below. > > > > >#define RM_RESET_MSG_ADDR 0x4004 > > >#define RM_FASTBOOT_MSG_ADDR 0x

<    1   2   3   4   5   6   7   8   9   >