Re: [PATCH v4 5/8] [Media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver

2016-02-17 Thread tiffany lin
On Tue, 2016-02-16 at 14:48 +0100, Hans Verkuil wrote: > Hi Tiffany, > > > +int mtk_vcodec_enc_queue_init(void *priv, struct vb2_queue *src_vq, > > + struct vb2_queue *dst_vq) > > +{ > > + struct mtk_vcodec_ctx *ctx = priv; > > + int ret; >

Re: [PATCH v3 1/2] x86/lib/copy_user_64.S: cleanup __copy_user_nocache()

2016-02-17 Thread Ingo Molnar
* Toshi Kani wrote: > Add comments to __copy_user_nocache() to clarify its procedures > and alignment requirement. > > Also change numeric branch target labels to named labels. The > labels begin with ".L" and prefix "cun" (Copy User Nocache) to > keep them local and unique to the function. S

Re: [PATCH v2 3/7] ibmvscsi: Replace magic values in set_adpater_info() with defines

2016-02-17 Thread Johannes Thumshirn
On Tue, Feb 16, 2016 at 10:03:24PM -0500, Martin K. Petersen wrote: > > "Tyrel" == Tyrel Datwyler writes: > > >> Is there some reason you didn't carry the review tag over from this: > >> > >> http://mid.gmane.org/20160204084459.gw27...@c203.arch.suse.de > >> > >> ? > >> > >> James > > Tyr

[RFT] regulator: s2mps11: Simplify expression used in BUILD_BUG_ON for some of preprocessors

2016-02-17 Thread Krzysztof Kozlowski
Apparently some preprocessors have problems with interpreting BUILD_BUG_ON such as: var = ARRAY_SIZE(s2mps15_regulators); BUILD_BUG_ON(S2MPS_REGULATOR_MAX < var); so let make it more obvious for them. Additionally add missing BUILD_BUG_ON check for S2MPS15 device (the check ensures

[PATCH v2] pinctrl: sh-pfc: Rework PFC GPIO support

2016-02-17 Thread Magnus Damm
From: Magnus Damm The sh-pfc pinctrl driver is currently handling SoC-specific PFC hardware blocks on ARM64, ARM and SH architectures. For older SoCs using SH cores and some 32-bit ARM SoCs the PFC hardware also provides GPIO functionality. On the majority of 32-bit ARM SoCs from Renesas and so

Re: [PATCH 4/4] ASoC: simple-card: Support for selecting system clocks by ID

2016-02-17 Thread Peter Ujfalusi
Mike, On 02/16/2016 09:13 PM, Michael Turquette wrote: > Quoting Mark Brown (2016-02-16 05:42:33) >> On Tue, Feb 16, 2016 at 11:46:52AM +0200, Peter Ujfalusi wrote: >> >>> As for codecs, tlv320aic3106 is also pretty simple device from the outside, >>> it >>> can receive it's reference clock via:

Bisect results for 4.4.1-rt[4,5]

2016-02-17 Thread Tim Sander
Hi Sebastian Am Freitag, 12. Februar 2016, 10:07:59 schrieben Sie: ... > What about rt4? It is only the stable update so you should see here the > numbers from rt3. If that is true and your numbers are stable it should > be easy to run git bisect between rt4 and rt5. And looking at > https://git

Re: WARNING: CPU: 0 PID: 3031 at ./arch/x86/include/asm/fpu/internal.h:530 fpu__restore+0x90/0x130()

2016-02-17 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Feb 15, 2016 12:14 PM, "Borislav Petkov" wrote: > > > > --- > > From: Borislav Petkov > > Date: Mon, 15 Feb 2016 19:50:33 +0100 > > Subject: [RFC PATCH] x86/FPU: Fix double FPU regs activation > > > > On the entry_INT80_32->do_syscall_32_irqs_on path on 32-bit we

Re: [PATCH 1/5] all: s390: move wrapper infrastructure to generic headers

2016-02-17 Thread Heiko Carstens
On Tue, Feb 02, 2016 at 11:41:56PM +0300, Yury Norov wrote: > > However I'll try to write an addon patch to your patch series. Maybe we can > > still get rid of compat_wrapper.c in a way which makes both of us happy. > > Also.. the idea with the alias names for compat wrappers does seem to have > >

Re: [PATCH v4] x86/setup: get ramdisk parameters only once

2016-02-17 Thread Ingo Molnar
* Alexander Kuleshov wrote: > void __init setup_arch(char **cmdline_p) > { > + struct ramdisk ramdisk_image = { > + .start_addr = get_ramdisk_image(), > + .size = get_ramdisk_size(), > + .reserve_ramdisk = true > + }; > + > + /* Assume only end

Re: [PATCH] sched: remove an unnecessary memory access, rq->cpu in __schedule()

2016-02-17 Thread Ingo Molnar
* Byungchul Park wrote: > Is there any reason keeping this statement on the code? > > -8<- > From d8a387efb8199b69b6464970d6f9fc57cbcf0ab0 Mon Sep 17 00:00:00 2001 > From: Byungchul Park > Date: Thu, 11 Feb 2016 11:50:53 +0900 > Subject: [PATCH] sched: remove an unnecessary memory acce

Re: [PATCH v4 5/8] [Media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver

2016-02-17 Thread Hans Verkuil
On 02/17/16 09:01, tiffany lin wrote: > On Tue, 2016-02-16 at 14:48 +0100, Hans Verkuil wrote: >> Hi Tiffany, >> >>> +int mtk_vcodec_enc_queue_init(void *priv, struct vb2_queue *src_vq, >>> + struct vb2_queue *dst_vq) >>> +{ >>> + struct mtk_vcodec_ctx

Re: [PATCH v4 5/8] [Media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver

2016-02-17 Thread tiffany lin
Hi Hans, On Wed, 2016-02-17 at 08:47 +0100, Hans Verkuil wrote: > On 02/16/2016 07:37 AM, tiffany lin wrote: > >>> +static int fops_vcodec_open(struct file *file) > >>> +{ > >>> + struct video_device *vfd = video_devdata(file); > >>> + struct mtk_vcodec_dev *dev = video_drvdata(file); > >>> + stru

[PATCH] staging: rtl8712: reduce stack usage

2016-02-17 Thread Arnd Bergmann
The "translate_scan" function in rtl8712 uses a lot of stack, and gets inlined into its single caller, r8711_wx_get_scan, which in some configurations now blows the 1024 byte stack warning limit: drivers/staging/rtl8712/rtl871x_ioctl_linux.c: In function 'r8711_wx_get_scan': drivers/staging/rtl871

Re: [PATCH v5] ftrace/module: remove ftrace module notifier

2016-02-17 Thread Miroslav Benes
On Tue, 16 Feb 2016, Jessica Yu wrote: > Remove the ftrace module notifier in favor of directly calling > ftrace_module_enable() and ftrace_release_mod() in the module loader. > Hard-coding the function calls directly in the module loader removes > dependence on the module notifier call chain and

Re: [PATCH v2] pinctrl: sh-pfc: Rework PFC GPIO support

2016-02-17 Thread Geert Uytterhoeven
Hi Magnus, On Wed, Feb 17, 2016 at 9:15 AM, Magnus Damm wrote: > From: Magnus Damm > > The sh-pfc pinctrl driver is currently handling SoC-specific > PFC hardware blocks on ARM64, ARM and SH architectures. > > For older SoCs using SH cores and some 32-bit ARM SoCs the PFC > hardware also provide

Re: [PATCH 3/7] usb: gadget: pxa25x_udc: use readl/writel for mmio

2016-02-17 Thread Krzysztof Hałasa
Arnd Bergmann writes: > ixp4xx is really special in that it performs hardware swapping for > internal devices based on CPU endianess but not on PCI devices. Again, IXP4xx does not perform hardware (nor any other) swapping for registers of on-chip devices. The registers are connected 1:1, bit 0 t

Re: [PATCH 3/3] lockdep: prevent chain_key collisions

2016-02-17 Thread Ingo Molnar
* Alfredo Alvarez Fernandez wrote: > From: Alfredo Alvarez Fernandez > > The chain_key hashing macro iterate_chain_key(key1, key2) does not > generate a new different value if both key1 and key2 are 0. In that > case the generated value is again 0. This can lead to collisions which > can resul

Re: [PATCH v7 02/10] usb: dbc: probe and setup xhci debug capability

2016-02-17 Thread Lu Baolu
Hi Mathias, Thanks for your time. On 02/16/2016 10:19 PM, Mathias Nyman wrote: > Hi > > Most of my concerns are due to the early printk restrictions. > As you say in the documentation: > "Keep in mind that things such as interrupt, system memory, DMA memory, > PCI configure space access, etc., ar

[PATCH 1/2] f2fs: detect error of update_dent_inode in ->rename

2016-02-17 Thread Chao Yu
Should check and show correct return value of update_dent_inode in ->rename. Signed-off-by: Chao Yu --- fs/f2fs/namei.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 6f944e5..99ed009 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/nam

Re: [PATCH] mm: add MM_SWAPENTS and page table when calculate tasksize in lowmem_scan()

2016-02-17 Thread Xishi Qiu
On 2016/2/17 8:35, David Rientjes wrote: > On Tue, 16 Feb 2016, Greg Kroah-Hartman wrote: > >> On Tue, Feb 16, 2016 at 05:37:05PM +0800, Xishi Qiu wrote: >>> Currently tasksize in lowmem_scan() only calculate rss, and not include >>> swap. >>> But usually smart phones enable zram, so swap space

[PATCH v9 1/5] dt-bindings: iommu: Add binding for mediatek IOMMU

2016-02-17 Thread Yong Wu
This patch add mediatek iommu dts binding document. Signed-off-by: Yong Wu Acked-by: Rob Herring --- .../devicetree/bindings/iommu/mediatek,iommu.txt | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/iommu/mediatek,iommu.txt d

[PATCH v9 2/5] dt-bindings: mediatek: Add smi dts binding

2016-02-17 Thread Yong Wu
This patch add smi binding document and smi local arbiter header file. Signed-off-by: Yong Wu Acked-by: Rob Herring --- .../memory-controllers/mediatek,smi-common.txt | 24 + .../memory-controllers/mediatek,smi-larb.txt | 25 + include/dt-bindings/memory/mt8173-larb-port.h

[PATCH v9 0/5] MT8173 IOMMU SUPPORT

2016-02-17 Thread Yong Wu
This patch set adds support for m4u(Multimedia Memory Management Unit), Currently it only support the m4u with 2 levels of pagetable on mt8173. It's based on Robin Murphy's Short-descriptor v3[1]. Please check the hardware block diagram of Mediatek IOMMU. m4u (Multimedia Me

Re: [PATCH 1/7] netfilter: fix IS_ERR_VALUE usage

2016-02-17 Thread Andrzej Hajda
On 02/17/2016 03:31 AM, Al Viro wrote: > On Mon, Feb 15, 2016 at 03:35:19PM +0100, Andrzej Hajda wrote: >> IS_ERR_VALUE should be used only with unsigned long type. >> Otherwise it can work incorrectly. To achieve this function >> xt_percpu_counter_alloc is modified to return unsigned long, >> and

[PATCH v9 3/5] memory: mediatek: Add SMI driver

2016-02-17 Thread Yong Wu
This patch add SMI(Smart Multimedia Interface) driver. This driver is responsible to enable/disable iommu and control the power domain and clocks of each local arbiter. Signed-off-by: Yong Wu Tested-by: Philipp Zabel Reviewed-by: Daniel Kurtz Tested-by: Daniel Kurtz Signed-off-by: Matthias Bru

[PATCH 2/2] f2fs: fix to delete old dirent in converted inline directory in ->rename

2016-02-17 Thread Chao Yu
When doing test with fstests/generic/068 in inline_dentry enabled f2fs, following oops dmesg will be reported: [ cut here ] WARNING: CPU: 5 PID: 11841 at fs/inode.c:273 drop_nlink+0x49/0x50() Modules linked in: f2fs(O) ip6table_filter ip6_tables ebtable_nat ebtables nf_

[PATCH v9 4/5] iommu/mediatek: Add mt8173 IOMMU driver

2016-02-17 Thread Yong Wu
This patch adds support for mediatek m4u (MultiMedia Memory Management Unit). Signed-off-by: Yong Wu Reviewed-by: Robin Murphy --- drivers/iommu/Kconfig | 16 + drivers/iommu/Makefile| 1 + drivers/iommu/mtk_iommu.c | 732 ++ 3 files change

[PATCH v9 5/5] dts: mt8173: Add iommu/smi nodes for mt8173

2016-02-17 Thread Yong Wu
This patch add the iommu/larbs nodes for mt8173 Signed-off-by: Yong Wu Reviewed-by: Daniel Kurtz --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 81 1 file changed, 81 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/med

Re: [PATCH] sched: remove an unnecessary memory access, rq->cpu in __schedule()

2016-02-17 Thread Byungchul Park
On Wed, Feb 17, 2016 at 09:31:09AM +0100, Ingo Molnar wrote: > > * Byungchul Park wrote: > > > Is there any reason keeping this statement on the code? > > > > -8<- > > From d8a387efb8199b69b6464970d6f9fc57cbcf0ab0 Mon Sep 17 00:00:00 2001 > > From: Byungchul Park > > Date: Thu, 11 Feb

Re: [PATCH v1] GPIO/ACPI: DesignWare: Add GPIO-signaled ACPI events support for power button

2016-02-17 Thread Mika Westerberg
On Wed, Feb 17, 2016 at 03:28:10PM +0800, qiujiang wrote: > This patch modifies the DesignWare GPIO controller driver to > support the GPIO-signaled ACPI Events. This is used for power > button function on ARM server. > > To make it work, the _AEI and _EVT object must be defined in > the correspon

Re: [PATCH v2 5/5] ASoC: adau17x1: Support platform data via DT

2016-02-17 Thread Andreas Irestål
On Tue, Feb 16, 2016 at 02:42:02PM +0100, Arnd Bergmann wrote: > On Tuesday 16 February 2016 13:56:45 Andreas Irestål wrote: > > Currently, it is only possible to configure HW-specific options to the > > adau17x1 codecs by providing a platform data struct. With this patch, > > it is possible to pro

Re: [PATCH RFC 09/22] block, cfq: replace CFQ with the BFQ-v0 I/O scheduler

2016-02-17 Thread Paolo Valente
Hi, your first statement “bfq is using bandwidth as the virtual time" is not very clear to me. In contrast, after that you raise a clear, important issue. So, I will first try to sync with you on your first statement (and hopefully help find related bugs in the documentation of BFQ). Then I will

Re: [PATCH] sound: hdmi: avoid dereferencing uninitialized 'jack' pointer

2016-02-17 Thread Takashi Iwai
On Tue, 16 Feb 2016 23:08:13 +0100, Arnd Bergmann wrote: > > On Tuesday 16 February 2016 18:26:09 Arnd Bergmann wrote: > > > return err; > > > per_pin->acomp_jack = jack; > > > - jack->private_data = per_pin; > > > - jack->private_free = free_acomp_jack_priv; >

Re: [PATCH 2/3] usb: type-c: USB Type-C Connector System Software Interface

2016-02-17 Thread Oliver Neukum
On Wed, 2016-02-17 at 09:58 +0200, Heikki Krogerus wrote: > On Tue, Feb 16, 2016 at 02:39:47PM +0100, Oliver Neukum wrote: > > On Tue, 2016-02-16 at 11:22 +0200, Heikki Krogerus wrote: > > > > That question has not been answered. It would be awkward for the OS > > > > to find itself in the slave ro

Re: [PATCH RFC 10/22] block, bfq: add full hierarchical scheduling and cgroups support

2016-02-17 Thread Paolo Valente
Il giorno 11/feb/2016, alle ore 23:28, Tejun Heo ha scritto: > Hello, > > On Mon, Feb 01, 2016 at 11:12:46PM +0100, Paolo Valente wrote: >> From: Arianna Avanzini >> >> Complete support for full hierarchical scheduling, with a cgroups >> interface. The name of the added policy is bfq. >> >>

[PATCH v3] lock/semaphore: Avoid an unnecessary deadlock within up()

2016-02-17 Thread Byungchul Park
change from v2 to v3 - the way to solve it in v2 is racy, so I changed the approach entirely. - just make semaphore's trylock use spinlock's trylock. change from v1 to v2 - remove unnecessary overhead by the redundant spin(un)lock. Since I faced a infinite recursive printk() bug, I've tried to pr

[PATCH v5] x86/setup: get ramdisk parameters only once

2016-02-17 Thread Alexander Kuleshov
The check and definitions related to ramdisk are similar in the early_reserve_initrd() and reserve_initrd() functions. This patch introduces struct ramdisk which contains information about initrd. This structure will be filled in the setup_arch() and passed to the reserve_initrd() and relocate_ini

Re: [PATCH v4 5/8] [Media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver

2016-02-17 Thread tiffany lin
On Wed, 2016-02-17 at 09:31 +0100, Hans Verkuil wrote: > On 02/17/16 09:01, tiffany lin wrote: > > On Tue, 2016-02-16 at 14:48 +0100, Hans Verkuil wrote: > >> Hi Tiffany, > >> > >>> +int mtk_vcodec_enc_queue_init(void *priv, struct vb2_queue *src_vq, > >>> +struct vb

Re: [PATCH] ALSA: jack: Allow building the jack layer without input

2016-02-17 Thread kbuild test robot
Hi Takashi, [auto build test ERROR on sound/for-next] [also build test ERROR on v4.5-rc4 next-20160217] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Takashi-Iwai/ALSA-jack-Allow-building

Re: [PATCH v5] x86/setup: get ramdisk parameters only once

2016-02-17 Thread Ingo Molnar
* Alexander Kuleshov wrote: > - early_reserve_initrd(); > + if (!boot_params.hdr.type_of_loader || !ramdisk_image.start_addr || > !ramdisk_image.size) > + ramdisk_image.reserve_ramdisk = false; /* No initrd provided > by bootloader */ > + else > + memblock_

Re: [PATCH 2/4] mfd: max77686: Use module_i2c_driver() instead of subsys initcall

2016-02-17 Thread Marek Szyprowski
Hello, On 2016-02-16 00:20, Krzysztof Kozlowski wrote: On 16.02.2016 00:21, Javier Martinez Canillas wrote: Hello Krzysztof, On 02/15/2016 03:54 AM, Krzysztof Kozlowski wrote: On 12.02.2016 13:30, Javier Martinez Canillas wrote: The driver's init and exit function don't do anything besides a

Re: [PATCH v3] lock/semaphore: Avoid an unnecessary deadlock within up()

2016-02-17 Thread Ingo Molnar
* Byungchul Park wrote: > diff --git a/kernel/locking/semaphore.c b/kernel/locking/semaphore.c > index b8120ab..6634b68 100644 > --- a/kernel/locking/semaphore.c > +++ b/kernel/locking/semaphore.c > @@ -130,13 +130,14 @@ EXPORT_SYMBOL(down_killable); > int down_trylock(struct semaphore *sem) >

Re: WARNING: CPU: 0 PID: 3031 at ./arch/x86/include/asm/fpu/internal.h:530 fpu__restore+0x90/0x130()

2016-02-17 Thread Borislav Petkov
On Wed, Feb 17, 2016 at 09:16:46AM +0100, Ingo Molnar wrote: > So I'm wondering why this started triggering only now. Is this a pre-existing > bug > that somehow got triggered via: > > 58122bf1d856 x86/fpu: Default eagerfpu=on on all CPUs > > ? Well, that's an interesting question. See, the

Re: [PATCH v7 0/9] virtio DMA API, yet again

2016-02-17 Thread Michael S. Tsirkin
On Tue, Feb 16, 2016 at 09:48:58PM -0800, Andy Lutomirski wrote: > On Tue, Feb 2, 2016 at 9:46 PM, Andy Lutomirski wrote: > > This switches virtio to use the DMA API on Xen and if requested by > > module option. > > Michael, any update on this? > > --Andy I was hoping for an explicit ack from D

Re: [PATCH] x86/mm: Add x86 valid_phys_addr_range() for /dev/mem

2016-02-17 Thread Ingo Molnar
* Toshi Kani wrote: > x86 does not define ARCH_HAS_VALID_PHYS_ADDR_RANGE, which > leads /dev/mem to use the default valid_phys_addr_range() > and valid_mmap_phys_addr_range() in drivers/char/mem.c. > > The default valid_phys_addr_range() allows any range lower > than __pa(high_memory), which is

Re: [PATCH V3 3/4] 8250: 8250_f81504: Add Fintek F81504/508/512 PCIE-to-UART/GPIO UART support

2016-02-17 Thread Peter Hung
Hi Andy, Andy Shevchenko 於 2016/2/16 下午 05:11 寫道: On Tue, 2016-02-16 at 14:55 +0800, Peter Hung wrote: +static u32 baudrate_table[] = { 150, 1152000, 921600 }; +static u8 clock_table[] = { F81504_CLKSEL_24_MHZ, F81504_CLKSEL_18DOT46_MHZ, + F81504_CLKSEL_14DOT77

Re: [PATCH] mm: remove unnecessary description about a non-exist gfp flag

2016-02-17 Thread Michal Hocko
On Wed 17-02-16 15:22:27, Satoru Takeuchi wrote: > Since __GFP_NOACCOUNT is removed by the following commit, > its description is not necessary. > > commit 20b5c3039863 ("Revert 'gfp: add __GFP_NOACCOUNT'") > > Signed-off-by: Satoru Takeuchi Acked-by: Michal Hocko > --- > include/linux/gfp.h

Re: [RFC v2a 11/12] net: ceph: use vfs_time data type instead of timespec

2016-02-17 Thread Arnd Bergmann
On Monday 15 February 2016 08:00:50 Dave Chinner wrote: > On Sat, Feb 13, 2016 at 05:46:11PM -0800, Deepa Dinamani wrote: > > On Sat, Feb 13, 2016 at 2:08 PM, Dave Chinner wrote: > > > On Fri, Feb 12, 2016 at 01:36:05AM -0800, Deepa Dinamani wrote: > So, excuse me if I made a mistake and missed s

Re: [PATCH 2/4] mfd: max77686: Use module_i2c_driver() instead of subsys initcall

2016-02-17 Thread Krzysztof Kozlowski
On 17.02.2016 18:27, Marek Szyprowski wrote: > Hello, > > On 2016-02-16 00:20, Krzysztof Kozlowski wrote: >> On 16.02.2016 00:21, Javier Martinez Canillas wrote: >>> Hello Krzysztof, >>> >>> On 02/15/2016 03:54 AM, Krzysztof Kozlowski wrote: On 12.02.2016 13:30, Javier Martinez Canillas wrote

Re: WARNING: CPU: 0 PID: 3031 at ./arch/x86/include/asm/fpu/internal.h:530 fpu__restore+0x90/0x130()

2016-02-17 Thread Ingo Molnar
* Borislav Petkov wrote: > On Wed, Feb 17, 2016 at 09:16:46AM +0100, Ingo Molnar wrote: > > So I'm wondering why this started triggering only now. Is this a > > pre-existing bug > > that somehow got triggered via: > > > > 58122bf1d856 x86/fpu: Default eagerfpu=on on all CPUs > > > > ? > >

Re: perf: wrong event->count report (Was: perf basic-test-aarch64 failures)

2016-02-17 Thread Jiri Olsa
On Wed, Feb 17, 2016 at 04:34:16AM +0100, Oleg Nesterov wrote: > Finally I reproduced... let me add CC's and reply to initial message. This has > nothing to do with arm/uprobes. > > I simply can't understand how perf calculates ->total_time_enabled/running. > At all. But the problem is that > >

Re: [PATCH] sound: hdmi: avoid dereferencing uninitialized 'jack' pointer

2016-02-17 Thread Takashi Iwai
On Wed, 17 Feb 2016 10:03:50 +0100, Takashi Iwai wrote: > --- a/sound/core/Kconfig > +++ b/sound/core/Kconfig > @@ -24,11 +24,14 @@ config SND_RAWMIDI > config SND_COMPRESS_OFFLOAD > tristate > > -# To be effective this also requires INPUT - users should say: > -#select SND_JACK if INP

Re: [tpmdd-devel] [PATCH] tpm_crb: fix bad name pointer usage with struct resource

2016-02-17 Thread Jarkko Sakkinen
On Tue, Feb 16, 2016 at 09:52:19PM -0700, Jason Gunthorpe wrote: > On Wed, Feb 17, 2016 at 02:27:54AM +0200, Jarkko Sakkinen wrote: > > - if (acpi_dev_resource_memory(ares, &res)) > > + if (acpi_dev_resource_memory(ares, &res)) { > > + res.name = NULL; > > What? How is this not a bug

Re: [PATCH v2] [media] v4l2-async: Don't fail if registered_async isn't implemented

2016-02-17 Thread Sakari Ailus
On Tue, Feb 16, 2016 at 05:03:21PM -0300, Javier Martinez Canillas wrote: > After sub-dev registration in v4l2_async_test_notify(), the v4l2-async > core calls the registered_async callback but if a sub-dev driver does > not implement it, v4l2_subdev_call() will return a -ENOIOCTLCMD which > should

Re: [PATCH] sound: hdmi: avoid dereferencing uninitialized 'jack' pointer

2016-02-17 Thread Arnd Bergmann
On Wednesday 17 February 2016 10:35:40 Takashi Iwai wrote: > From: Takashi Iwai > Subject: [PATCH v2] ALSA: jack: Allow building the jack layer without > input device > > Since the recent integration of kctl jack and input jack layers, we > can basically build the jack layer even without input d

Re: [PATCH v7 0/9] virtio DMA API, yet again

2016-02-17 Thread David Woodhouse
On Wed, 2016-02-17 at 11:29 +0200, Michael S. Tsirkin wrote: > > I was hoping for an explicit ack from David Woodhouse, > but I guess the informal "let's not hold this up" > that was sent on v5 will do. Apologies; I was working under that assumption too. -- dwmw2 smime.p7s Description: S/MIM

[PATCH v2 0/3] Syscon support for iProc touchscreen driver

2016-02-17 Thread Raveendra Padasalagi
This patchset is based on v4.5-rc3 tag and its tested on Broadcom Cygnus SoC. The patches can be fetched from iproc-tsc-v2 branch of https://github.com/Broadcom/arm64-linux.git Changes since v1: - Enhanced touchscreen driver to handle syscon based register access if "brcm,iproc-touchscreen-sy

[PATCH v2 3/3] ARM: dts: use syscon in cygnus touchscreen dt node

2016-02-17 Thread Raveendra Padasalagi
In Cygnus SOC touch screen controller registers are shared with ADC and flex timer. Using readl/writel could lead to race condition. So in such case register access is handled through syscon framework API's in the touch screen driver. This feature is enabled if "brcm,iproc-touchscreen-syscon" compa

[PATCH v2 2/3] input: syscon support in bcm_iproc_tsc driver

2016-02-17 Thread Raveendra Padasalagi
In Cygnus SOC touch screen controller registers are shared with ADC and flex timer. Using readl/writel could lead to race condition. So touch screen driver is enhanced to support 1. If touchscreen register's are not shared. Register access is handled through readl/writel if "brcm,iproc-touchscreen

[PATCH v2 1/3] input: cygnus-update touchscreen dt node document

2016-02-17 Thread Raveendra Padasalagi
In Cygnus SOC touch screen controller registers are shared with ADC and flex timer. Using readl/writel could lead to race condition. So touch screen driver is enhanced to support 1. If touchscreen register's are not shared. Register access is handled through readl/writel if "brcm,iproc-touchscreen

Re: [PATCH v3 0/2] Consolidate redundant register/stack access code

2016-02-17 Thread Ingo Molnar
* David Long wrote: > On 02/09/2016 04:45 AM, Ingo Molnar wrote: > > > >* Michael Ellerman wrote: > > > >>On Tue, 2016-02-09 at 00:38 -0500, David Long wrote: > >> > >>>From: "David A. Long" > >>> > >>>Move duplicate and functionally equivalent code for accessing registers > >>>and stack (CONF

Re: [PATCH v2 1/3] input: cygnus-update touchscreen dt node document

2016-02-17 Thread Arnd Bergmann
On Wednesday 17 February 2016 15:13:44 Raveendra Padasalagi wrote: > + > + ts_adc_syscon: ts_adc_syscon@0x180a6000 { > + compatible = "syscon"; > + reg = <0x180a6000 0xc30>; > + }; > This should have a more specific compatible string in addition to the gene

Re: [PATCH V5 07/11] of: Add bindings of hw-trip-points for soctherm

2016-02-17 Thread Wei Ni
Hi, Rob On 2016年02月15日 15:15, Wei Ni wrote: > Hi, Rob > > On 2016年02月12日 22:42, Rob Herring wrote: >> On Fri, Jan 29, 2016 at 2:47 AM, Wei Ni wrote: >>> Add hw-trips sub-node for soctherm, which is >>> used to describe the hardware trip points for >>> each soctherm sensors. >> >> I still don't u

[PATCH 6/5] oom, oom_reaper: disable oom_reaper for

2016-02-17 Thread Michal Hocko
Hi Andrew, although this can be folded into patch 5 (mm-oom_reaper-implement-oom-victims-queuing.patch) I think it would be better to have it separate and revert after we sort out the proper oom_kill_allocating_task behavior or handle exclusion at oom_reaper level. Thanks! --- >From 7d8c953994f97f

[FAIL 1/5] parse: Add comment to struct statement

2016-02-17 Thread Daniel Wagner
All the other members of the union got a nice comment what they represent. Let's fix for context as well. Signed-off-by: Daniel Wagner --- parse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.h b/parse.h index 0c34ec2..195f0fd 100644 --- a/parse.h +++ b/parse.h @@ -5

[FAIL 3/5] linearize: Add context symbol name when showing context instructions

2016-02-17 Thread Daniel Wagner
Signed-off-by: Daniel Wagner --- linearize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linearize.c b/linearize.c index c6ada1e..da3a190 100644 --- a/linearize.c +++ b/linearize.c @@ -441,7 +441,7 @@ const char *show_instruction(struct instruction *insn) b

[FAIL 0/5] Static lock analysis

2016-02-17 Thread Daniel Wagner
Hi, Locking can be tricky to get right and sometimes things go wrong. This here is/was an attempt to come up with a simple static code analysis tool which tries to point to problematic looking. Especially figurering out if an access to variables wihtout holding the right lock is happenin was of i

[FAIL 5/5] test-locks: Add lock tester

2016-02-17 Thread Daniel Wagner
I was playing a bit around to see if it is possible to figure out if a variable is accessed without holding the corresponding lock. This never got anywhere and that's why I abandon it. In case someone wants to use parts of it or whatever, please be my guest. Example output: ./test-locks validatio

[FAIL 2/5] inspect: Show context information

2016-02-17 Thread Daniel Wagner
Add the function context attributes and the context instruction to the model. Signed-off-by: Daniel Wagner --- ast-inspect.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/ast-inspect.c b/ast-inspect.c index 24d4a4a..4502575 100644 --- a/ast-inspe

Re: [RFC PATCH 1/2] lib/percpu-list: Per-cpu list with associated per-cpu locks

2016-02-17 Thread Dave Chinner
On Tue, Feb 16, 2016 at 08:31:19PM -0500, Waiman Long wrote: > Linked list is used everywhere in the Linux kernel. However, if many > threads are trying to add or delete entries into the same linked list, > it can create a performance bottleneck. > > This patch introduces a new per-cpu list subyst

RE: [PATCH v2 1/3] input: cygnus-update touchscreen dt node document

2016-02-17 Thread Raveendra Padasalagi
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: 17 February 2016 15:16 > To: Raveendra Padasalagi > Cc: Dmitry Torokhov; Russell King; Rob Herring; devicet...@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; linux-in...@vger.kernel.org; Pawel Moll; > Mark R

[FAIL 4/5] parse: Add acquire, release, requires and guarded_by attributes

2016-02-17 Thread Daniel Wagner
The static clang and also gcc knows this attributes and they are used to do thread safety analysis. Signed-off-by: Daniel Wagner Link: http://clang.llvm.org/docs/ThreadSafetyAnalysis.html --- allocate.c | 1 + allocate.h | 1 + parse.c| 64 ++

Re: [PATCH] mm/hugetlb: Fix incorrect proc nr_hugepages value

2016-02-17 Thread Kirill A. Shutemov
On Wed, Feb 17, 2016 at 01:13:26AM +0530, Vaishali Thakkar wrote: > Currently incorrect default hugepage pool size is reported by proc > nr_hugepages when number of pages for the default huge page size is > specified twice. > > When multiple huge page sizes are supported, /proc/sys/vm/nr_hugepages

[PATCH] ideapad-laptop: Add Lenovo ideapad Y700 Touch-15ISK and Lenovo ideapad Y700-15ISK to the no_hw_rfkill DMI list

2016-02-17 Thread John Dahlstrom
Some Lenovo ideapad models lack a physical rfkill switch. On Lenovo models ideapad Y700 Touch-15ISK and ideapad Y700-15ISK, ideapad-laptop would wrongly report all radios as blocked by hardware which caused wireless network connections to fail. Add these models without an rfkill switch to the no_

Re: [PATCH v5 1/4] x86/signal/64: Add a comment about sigcontext->fs and gs

2016-02-17 Thread Stas Sergeev
17.02.2016 10:21, Ingo Molnar пишет: > > * Andy Lutomirski wrote: > >> + * If the kernel ever adds explicit fs, gs, fsbase, and gsbase >> + * save/restore, it will most likely need to be opt-in and use >> + * different context slots. > > Btw., that's not necessarily true: it could a

Re: [PATCH v5 2/3] clk: samsung: Don't build ARMv8 clock drivers on ARMv7

2016-02-17 Thread Sylwester Nawrocki
On 16/02/16 07:20, Krzysztof Kozlowski wrote: > Currently the Exynos5433 (ARMv8 SoC) clock driver depends on ARCH_EXYNOS > so it is built also on ARMv7. This does not bring any kind of benefit. > There won't be a single kernel image for ARMv7 and ARMv8 SoCs (like > multi_v7 for ARMv7). > > Instead

Re: [RESEND2 PATCH 1/3] memremap: add MEMREMAP_WC flag

2016-02-17 Thread Brian Starkey
On Tue, Feb 16, 2016 at 04:43:51PM -0800, Greg Kroah-Hartman wrote: On Tue, Feb 16, 2016 at 11:14:26AM +, Brian Starkey wrote: Hi Greg, Is the documentation OK? Is there any chance of you picking up this series? I can rebase onto -next if that's the right place, but they still apply on 4.5

[PATCH][RESEND] asus-nb-wmi: add wapf=4 quirk for ASUS X75VD

2016-02-17 Thread Oleksandr Natalenko
Wi-Fi on ASUS X75VD laptop does not work unless asus_nb_wmi module is loaded with wapf=4 option. Add quirk for this. --- drivers/platform/x86/asus-nb-wmi.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index

Re: [PATCH V3 2/4] gpio: gpio-f81504: Add Fintek F81504/508/512 PCIE-to-UART/GPIO GPIOLIB support

2016-02-17 Thread Peter Hung
Hi Linus, Linus Walleij 於 2016/2/16 下午 11:22 寫道: On Tue, Feb 16, 2016 at 7:55 AM, Peter Hung wrote: Suggested-by: One Thousand Gnomes Suggested-by: Andy Shevchenko Signed-off-by: Peter Hung Acked-by: Linus Walleij It's fine with me if this is queued in MFD, serial or whatever tree, or

Re: [GIT PULL 0/5] EFI urgent fixes

2016-02-17 Thread Matt Fleming
On Wed, 17 Feb, at 08:59:18AM, Ingo Molnar wrote: > > I've pulled it all, so tip:x86/urgent should have everything needed. Please > let me > know if anything is amiss - I intend to send the fixes to Linus tomorrow-ish. Looks good. Thanks Ingo.

Re: [PATCHv4 0/7] Convert exiting EEPROM drivers to NVMEM

2016-02-17 Thread Srinivas Kandagatla
Hi Andrew, Thanks for the patches, they look good. Do we have any reason why we should not move these drivers from drivers/misc/eeprom to drivers/nvmem? --srini On 16/02/16 23:41, Andrew Lunn wrote: This patch set converts the old EEPROM drivers in driver/misc/eeprom to use the NVMEM fram

Re: [PATCHv4 4/7] eeprom: at25: Remove in kernel API for accessing the EEPROM

2016-02-17 Thread Srinivas Kandagatla
On 16/02/16 23:41, Andrew Lunn wrote: The setup() callback is not used by any in kernel code. Remove it. Any new code which requires access to the eeprom can use the NVMEM API. Signed-off-by: Andrew Lunn Makes sense to clean this bits.. :-) Acked-by: Srinivas Kandagatla --- drivers/m

Re: [PATCHv4 1/7] nvmem: Add flag to export NVMEM to root only

2016-02-17 Thread Srinivas Kandagatla
Thanks for the patch, On 16/02/16 23:41, Andrew Lunn wrote: Legacy AT24, AT25 EEPROMs are exported in sys so that only root can read the contents. The EEPROMs may contain sensitive information. Add a flag so the provide can indicate that NVMEM should also restrict access to root only. This pat

Re: [PATCHv4 3/7] eeprom: at24: extend driver to plug into the NVMEM framework

2016-02-17 Thread Srinivas Kandagatla
On 16/02/16 23:41, Andrew Lunn wrote: Add a regmap for accessing the EEPROM, and then use that with the NVMEM framework. Set the NVMEM config structure to enable backward, so that the 'eeprom' file in sys is provided by the framework. Signed-off-by: Andrew Lunn This patch looks good to me,

Re: [PATCHv4 7/7] misc: at24: replace memory_accessor with nvmem_device_read

2016-02-17 Thread Srinivas Kandagatla
On 16/02/16 23:41, Andrew Lunn wrote: Now that the AT24 uses the NVMEM framework, replace the memory_accessor in the setup() callback with nvmem API calls. Signed-off-by: Andrew Lunn Acked-by: Srinivas Kandagatla --- arch/arm/mach-davinci/board-mityomapl138.c | 5 +++-- arch/arm/mac

Re: [PATCHv4 5/7] eeprom: at25: extend driver to plug into the NVMEM framework

2016-02-17 Thread Srinivas Kandagatla
On 16/02/16 23:41, Andrew Lunn wrote: Add a regmap for accessing the EEPROM, and then use that with the NVMEM framework. Enable backwards compatibility in the NVMEM config, so that the 'eeprom' file in sys is provided by the framework. Signed-off-by: Andrew Lunn Minor Nit, once fixed feel f

Re: [PATCHv4 6/7] eeprom: 93xx46: extend driver to plug into the NVMEM framework

2016-02-17 Thread Srinivas Kandagatla
On 16/02/16 23:41, Andrew Lunn wrote: Add a regmap for accessing the EEPROM, and then use that with the NVMEM framework. Enable backward compatibility in the MVMEM config structure, so that the 'eeprom' file in sys is provided by the framework. Signed-off-by: Andrew Lunn Looks good. Acked-

[PATCH v6] x86/setup: get ramdisk parameters only once

2016-02-17 Thread Alexander Kuleshov
The check and definitions related to ramdisk are similar in the early_reserve_initrd() and reserve_initrd() functions. This patch introduces struct ramdisk which contains information about initrd. This structure will be filled in the setup_arch() and passed to the reserve_initrd() and relocate_ini

Re: [PATCHv4 2/7] nvmem: Add backwards compatibility support for older EEPROM drivers.

2016-02-17 Thread Srinivas Kandagatla
On 16/02/16 23:41, Andrew Lunn wrote: Older drivers made an 'eeprom' file available in the /sys device directory. Have the NVMEM core provide this to retain backwards compatibility. Signed-off-by: Andrew Lunn --- v4: Add lockdep support --- drivers/nvmem/core.c | 84 ++

Re: [PATCHv4 3/7] eeprom: at24: extend driver to plug into the NVMEM framework

2016-02-17 Thread Wolfram Sang
On Wed, Feb 17, 2016 at 10:17:39AM +, Srinivas Kandagatla wrote: > > > On 16/02/16 23:41, Andrew Lunn wrote: > >Add a regmap for accessing the EEPROM, and then use that with the > >NVMEM framework. Set the NVMEM config structure to enable backward, so > >that the 'eeprom' file in sys is provi

[PATCH v3 6/6] platform/chrome: Register USB PD charger device

2016-02-17 Thread Tomeu Vizoso
Check if a EC has andy PD ports and register a USB PD charger device if so. Signed-off-by: Tomeu Vizoso --- Changes in v3: - Only register the PD charger device if there are any PD ports in this EC. - Dropped patch using EC_CMD_GET_FEATURES to decide whether to create a charger device becaus

[PATCH v3 0/6] EC-based USB Power Delivery support for Chrome machines

2016-02-17 Thread Tomeu Vizoso
Hi, this series contains a driver that exposes a power_supply to userspace representing a port that support USB PD charging. Allows userspace to display to the user if the machine is charging and on which port, and if another device is being charged by a port. Thanks, Tomeu Changes in v3: - Re

[PATCH v3 3/6] mfd: cros_ec: Add cros_ec_get_host_event

2016-02-17 Thread Tomeu Vizoso
This function returns the code for the host event that triggered the interrupt that is being currently handled. Is to be used by observers of the event_notifier in the EC device. Signed-off-by: Tomeu Vizoso --- Changes in v3: None Changes in v2: None drivers/platform/chrome/cros_ec_proto.c |

[PATCH v3 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-02-17 Thread Tomeu Vizoso
From: Sameer Nanda This driver exposes the charger functionality in the PD EC to userspace. Signed-off-by: Tomeu Vizoso Cc: Sameer Nanda Cc: Benson Leung Cc: Shawn Nematbakhsh --- Changes in v3: - Use do_div so it builds on 32bit (suggested by 0-day kbuild bot). - Remove sysfs attributes ex

[PATCH v3 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-02-17 Thread Tomeu Vizoso
So that callers of cros_ec_cmd_xfer don't have to repeat boilerplate code when checking for errors from the EC side. Signed-off-by: Tomeu Vizoso --- Changes in v3: None Changes in v2: None drivers/platform/chrome/cros_ec_proto.c | 14 ++ include/linux/mfd/cros_ec.h | 18

[PATCH v3 4/6] mfd: cros_ec: Add more definitions for PD commands

2016-02-17 Thread Tomeu Vizoso
Copy a few structs and commands from the EC firmware headers so we can communicate with the EC regarding PD functionality. Signed-off-by: Tomeu Vizoso --- Changes in v3: None Changes in v2: None include/linux/mfd/cros_ec_commands.h | 324 ++- 1 file changed, 319

[char-misc-next] mei: fix format string in debug prints

2016-02-17 Thread Tomas Winkler
From: Alexander Usyskin buf_idx type was changed to size_t, and few places missed out to change the print format from %ld to %zd. Fixes: commit 56988f22e097 ("mei: fix possible integer overflow issue")' Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/interr

Re: perf: wrong event->count report (Was: perf basic-test-aarch64 failures)

2016-02-17 Thread Peter Zijlstra
Also, you _know_ you should not cross-post to closed lists, that's rude.

[PATCH 0/6] preparation for merging the OOM reaper

2016-02-17 Thread Tetsuo Handa
I am posting this patchset for smoothly merging the OOM reaper without worrying about corner cases. This patchset also applies cleanly on top of the current Linus tree because this patchset is meant for applying before merging the OOM reaper. Several problems were found in oom reaper v5 patchset (

  1   2   3   4   5   6   7   8   9   10   >