Re: [PATCH v4 07/15] mtd: nand: move Samsung specific init/detection logic in nand_samsung.c

2017-01-11 Thread Boris Brezillon
On Tue, 10 Jan 2017 20:00:28 +0100 Marek Vasut wrote: > On 01/07/2017 08:49 AM, Boris Brezillon wrote: > > On Sat, 7 Jan 2017 00:53:24 +0100 > > Marek Vasut wrote: > > > >> On 01/04/2017 06:08 PM, Boris Brezillon wrote: > >>> On Wed, 4 Jan 2017 16:14:07 +0100 > >>> Marek Vasut wrote: > >>>

Re: [PATCH v1 1/1] serial: 8250_dw: Allow hardware flow control to be used

2017-01-11 Thread Greg Kroah-Hartman
On Tue, Dec 06, 2016 at 02:34:03PM -0800, Jason Uy wrote: > In the most common use case, the Synopsys DW UART driver does not > set the set_termios callback function. This prevents UPSTAT_AUTOCTS > from being set when the UART flag CRTSCTS is set. As a result, the > driver will use software flow

Re: [PATCH v3 0/4] TI DA8xx/OMAPL13x/AM17xx/AM18xx/66AK2x UART

2017-01-11 Thread Greg Kroah-Hartman
On Thu, Jan 05, 2017 at 12:54:16PM -0600, David Lechner wrote: > This series adds a new UART port type for TI > DA8xx/OMAPL13x/AM17xx/AM18xx/66AK2x > UART. These SoCs have a non-standard register for UART power management that > needs special handling in the UART driver. > > Greg, the first two p

Re: x86-64: Maintain 16-byte stack alignment

2017-01-11 Thread Ard Biesheuvel
On 11 January 2017 at 06:53, Linus Torvalds wrote: > > > On Jan 10, 2017 8:36 PM, "Herbert Xu" wrote: > > > Sure we can ban the use of attribute aligned on stacks. But > what about indirect uses through structures? > > > It should be pretty trivial to add a sparse warning for that, though. > Co

Re: [PATCH v2 2/2] efi: efi_mem_reserve(): don't reserve through memblock after mm_init()

2017-01-11 Thread Dave Young
On 01/10/17 at 12:51pm, Matt Fleming wrote: > On Tue, 10 Jan, at 08:37:35AM, Dave Young wrote: > > > > It is true that it depends on acpi init, I was wondering if bgrt parsing can > > be moved to early acpi code. But anyway I'm not sure it is doable and > > worth. > > That's a good question. I th

Re: [PATCH] selftests/futex: Fix makefile dependencies

2017-01-11 Thread Darren Hart
On Wed, Jan 11, 2017 at 01:37:19PM +0900, Stafford Horne wrote: > On Tue, Jan 10, 2017 at 02:17:18PM -0800, Darren Hart wrote: > > On Tue, Jan 10, 2017 at 02:10:42PM -0800, Darren Hart wrote: > > > On Fri, Jan 06, 2017 at 01:18:39PM +0900, Stafford Horne wrote: > > > > I am working on doing selftes

Re: [PATCH 2/3] cpu: expose pm_qos_resume_latency for each cpu

2017-01-11 Thread Greg Kroah-Hartman
On Thu, Jan 05, 2017 at 11:29:46PM +0800, Alex Shi wrote: > The cpu-dma PM QoS constraint impacts all the cpus in the system. There > is no way to let the user to choose a PM QoS constraint per cpu. > > The following patch exposes to the userspace a per cpu based sysfs file > in order to let the u

Re: x86-64: Maintain 16-byte stack alignment

2017-01-11 Thread Herbert Xu
On Wed, Jan 11, 2017 at 08:06:54AM +, Ard Biesheuvel wrote: > > Couldn't we update the __aligned(x) macro to emit 32 if arch == x86 > and x == 16? All other cases should work just fine afaict Not everyone uses that macro. You'd also need to add some checks to stop people from using the gcc __

Re: [PATCH v7 2/7] perf/amd/iommu: Modify functions to query max banks and counters

2017-01-11 Thread Boris Petkov
On January 11, 2017 4:03:50 AM GMT+01:00, Suravee Suthikulpanit wrote: > >Right Thanks for catching this. Do you want me to send out V8 with >this fix? Send only the corrected version of this patch please, as a reply to this message. Thanks. -- Sent from a small device: formatting sux an

Re: [PATCH] dax: fix build warnings with FS_DAX and !FS_IOMAP

2017-01-11 Thread Jan Kara
On Tue 10-01-17 15:29:43, Ross Zwisler wrote: > As reported by Arnd: > > https://lkml.org/lkml/2017/1/10/756 > > Compiling with the following configuration: > > # CONFIG_EXT2_FS is not set > # CONFIG_EXT4_FS is not set > # CONFIG_XFS_FS is not set > # CONFIG_FS_IOMAP depends on the above

RE: [PATCH 1/3] ARM: at91: flush the L2 cache before entering cpu idle

2017-01-11 Thread Wenyou.Yang
Hi Jean-Jacques, > -Original Message- > From: Jean-Jacques Hiblot [mailto:jjhib...@gmail.com] > Sent: 2017年1月11日 0:51 > To: Alexandre Belloni > Cc: Wenyou Yang - A41535 ; Mark Rutland > ; devicetree ; Russell > King ; Wenyou Yang - A41535 > ; Nicolas Ferre ; > Linux Kernel Mailing List ;

Re: [PATCH v4 1/2] eeprom: Add IDT 89HPESx EEPROM/CSR driver

2017-01-11 Thread Greg KH
On Tue, Dec 13, 2016 at 05:22:50PM +0300, Serge Semin wrote: > +struct idt_89hpesx_dev { > + u32 eesize; > + bool eero; > + u8 eeaddr; > + > + u8 inieecmd; > + u8 inicsrcmd; > + u8 iniccode; > + > + atomic_t csr; Why is this an atomic_t and not just a "normal" u32 or u6

Re: [PATCH v4 2/3] watchdog: introduce watchdog.open_timeout commandline parameter

2017-01-11 Thread Rasmus Villemoes
On 2017-01-10 19:08, Guenter Roeck wrote: On Mon, Jan 09, 2017 at 04:02:32PM +0100, Rasmus Villemoes wrote: +static unsigned open_timeout; +module_param(open_timeout, uint, 0644); + +static bool watchdog_past_open_deadline(struct watchdog_core_data *data) +{ + if (!open_timeout) +

Re: [PATCH v8 2/5] i2c: Add STM32F4 I2C driver

2017-01-11 Thread Uwe Kleine-König
Hello Cedric, On Thu, Jan 05, 2017 at 10:07:23AM +0100, M'boumba Cedric Madianga wrote: > +/* > + * In standard mode: > + * SCL period = SCL high period = SCL low period = CCR * I2C parent clk > period > + * > + * In fast mode: > + * If Duty = 0; SCL high period = 1 * CCR * I2C parent clk period

Re: [PATCH v7 1/5] dt-bindings: zte: add bindings document for zx2967 power domain controller

2017-01-11 Thread Shawn Guo
On Fri, Jan 06, 2017 at 05:16:00PM +0800, Baoyou Xie wrote: > This patch adds device tree bindings document for ZTE zx2967 > family power domain controller. > > Signed-off-by: Baoyou Xie Applied all, thanks.

[PATCH net] r8152: fix the sw rx checksum is unavailable

2017-01-11 Thread Hayes Wang
Fix the hw rx checksum is always enabled, and the user couldn't switch it to sw rx checksum. Note that the RTL_VER_01 only support sw rx checksum only. Besides, the hw rx checksum for RTL_VER_02 is disabled after commit b9a321b48af4 ("r8152: Fix broken RX checksums."). Re-enable it. Signed-off-by

Re: [PATCH v2 3/5] ARM: davinci_all_defconfig: enable iio and ADS7950

2017-01-11 Thread Sekhar Nori
On Tuesday 10 January 2017 09:13 PM, David Lechner wrote: > On 01/09/2017 06:29 AM, Sekhar Nori wrote: >> On Friday 06 January 2017 10:03 AM, David Lechner wrote: >>> This enables the iio subsystem and the TI ADS7950 driver. This is >>> used by >>> LEGO MINDSTORMS EV3, which has an ADS7957 chip. >>

Re: [PATCH v2 4/5] firmware: add SmPL report for custom fallback mechanism

2017-01-11 Thread Greg KH
On Fri, Dec 16, 2016 at 03:10:37AM -0800, Luis R. Rodriguez wrote: > Even though most distributions today disable the fallback mechanism > by default we've determined that we cannot remove them from the kernel. > This is not well understood so document the reason and logic behind that. Well, the b

[PATCH 4/4] arm: dts: mt2701: Add auxadc device node.

2017-01-11 Thread Erin Lo
From: Zhiyong Tao Add auxadc device node for MT2701. Signed-off-by: Zhiyong Tao Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 1182c43..4f52019 100644 ---

[PATCH 1/4] arm: dts: mt2701: Add spi device node

2017-01-11 Thread Erin Lo
From: Leilk Liu Add spi device node for MT2701. Signed-off-by: Leilk Liu Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index bd

[PATCH 2/4] arm: dts: mt2701: Add iommu/smi device node

2017-01-11 Thread Erin Lo
From: Honghui Zhang Add the device node of iommu and smi for MT2701. Signed-off-by: Honghui Zhang Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 54 +++ 1 file changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/

[PATCH 0/4] Add spi/iommu/nand/auxadc DT nodes for Mediatek MT2701

2017-01-11 Thread Erin Lo
This patch series base on v4.10-rc2, include MT2701 spi/iommu/nand/auxadc DT nodes. Dependent on "Add clock and power domain DT nodes for Mediatek MT2701"[1]. [1] http://lists.infradead.org/pipermail/linux-mediatek/2016-December/007637.html Honghui Zhang (1): arm: dts: mt2701: Add iommu/smi

Re: [PATCH v8 3/3] arm64: dts: exynos: Add support for S6E3HA2 panel device on TM2 board

2017-01-11 Thread Inki Dae
2017년 01월 11일 16:46에 Andrzej Hajda 이(가) 쓴 글: > On 11.01.2017 07:33, Hoegeun Kwon wrote: >> From: Hyungwon Hwang >> >> This patch add the panel device tree node for S6E3HA2 display >> controller to TM2 dts. >> >> Signed-off-by: Hyungwon Hwang >> Signed-off-by: Andrzej Hajda >> Signed-off-by: Ch

Re: Problem on SCTP

2017-01-11 Thread Sun Paul
yes. whenever the INIT packet send to 192.168.206.65, it will forward to 192.168.206.66. My question is when this packet arrive to 192.168.206.66, why LKSCTP never pass to user level. On Tue, Jan 10, 2017 at 10:33 PM, Neil Horman wrote: > On Tue, Jan 10, 2017 at 09:30:39AM +0800, Sun Paul wrote:

[PATCH 3/4] arm: dts: mt2701: Add nand device node

2017-01-11 Thread Erin Lo
From: Xiaolei Li Add mt2701 nand device node, include nfi and bch ecc. Signed-off-by: Xiaolei Li Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi i

Re: [PATCH 32/62] watchdog: meson_gxbb_wdt: Convert to use device managed functions and other improvements

2017-01-11 Thread Neil Armstrong
On 01/11/2017 01:44 AM, Guenter Roeck wrote: > Use device managed functions to simplify error handling, reduce > source code size, improve readability, and reduce the likelyhood of bugs. > Other improvements as listed below. > > The conversion was done automatically with coccinelle using the > fol

Re: [PATCH] selftests/futex: Fix makefile dependencies

2017-01-11 Thread Stafford Horne
On Wed, Jan 11, 2017 at 12:07:55AM -0800, Darren Hart wrote: > On Wed, Jan 11, 2017 at 01:37:19PM +0900, Stafford Horne wrote: > > On Tue, Jan 10, 2017 at 02:17:18PM -0800, Darren Hart wrote: > > > On Tue, Jan 10, 2017 at 02:10:42PM -0800, Darren Hart wrote: > > > > On Fri, Jan 06, 2017 at 01:18:39

Re: [PATCH 0/5 v3] adv7511 EDID probing improvements

2017-01-11 Thread Archit Taneja
Hi, On 01/04/2017 01:11 AM, John Stultz wrote: Hope everyone had a good newyears! Wanted to re-send out v3 of this patch set improving the EDID probing on the adv7511 used on HiKey, for consideration for merging for 4.11 The first three patches are fixups that are hopefully straight forward, i

Re: [PATCH] doc: add note on usleep_range range

2017-01-11 Thread Nicholas Mc Guire
On Tue, Jan 10, 2017 at 10:25:29PM +0100, Pavel Machek wrote: > Hi! > > > > "to have zero jitter" at least. I believe it is "does not". > > > > > > I don't see how atomic vs. non-atomic context makes difference. There > > > are sources of jitter that affect atomic context... > > > > The relevanc

Re: Dell XPS13 does not suspend with Linux 4.10-rc3

2017-01-11 Thread Paul Menzel
Dear Linux folks, On 01/10/17 23:24, Jan Niehusmann wrote: On Tue, Jan 10, 2017 at 09:43:31PM +0100, Jan Niehusmann wrote: And I bisected the issue to commit 7279b238ba, "mei: send OS type to the FW" Indeed, just disabling the FIXUP implemented by that commit fixes suspend for me, with 4.10.

Re: [PATCH] docs: Make CodingStyle and SubmittingPatches symlinks

2017-01-11 Thread Jani Nikula
On Wed, 11 Jan 2017, Joe Perches wrote: > Make these files symlinks to the .rst equivalents If we're going to do this (and I really don't mind either way), then please add Fixes: 08a9a8d44c1c ("doc: re-add CodingStyle and SubmittingPatches") and queue to v4.10-rc. BR, Jani. > > Signed-off-by:

Re: [PATCH] clk: qcom: gdsc: Fix handling of hw control enable/disable

2017-01-11 Thread Stanimir Varbanov
Hi Sricharan, On 01/10/2017 09:29 PM, Sricharan wrote: > Hi stan, > >> -Original Message- >> From: linux-arm-msm-ow...@vger.kernel.org >> [mailto:linux-arm-msm-ow...@vger.kernel.org] On Behalf Of Stanimir Varbanov >> Sent: Tuesday, January 10, 2017 10:14 PM >> To: Rajendra Nayak ; sb...@

Re: [PATCH 3/9] dma: Add dma_virt_ops

2017-01-11 Thread Christoph Hellwig
> +lib-$(CONFIG_HAS_DMA) += dma-virt.o There probably should be a config option for it for two reasons: - do not bloat kernels that don't need it. - the feature can only work for 32-bit architectures or for 64-bit architectures that set ARCH_DMA_ADDR_T_64BIT… Altenatiely this option would

Re: [patch v2] mm, thp: add new defer+madvise defrag option

2017-01-11 Thread Mel Gorman
On Tue, Jan 10, 2017 at 04:15:27PM -0800, David Rientjes wrote: > There is no thp defrag option that currently allows MADV_HUGEPAGE regions > to do direct compaction and reclaim while all other thp allocations simply > trigger kswapd and kcompactd in the background and fail immediately. > > The

[PATCH 1/4] platform/x86: fujitsu-laptop: decrease indentation in acpi_fujitsu_hotkey_notify()

2017-01-11 Thread Michał Kępień
acpi_fujitsu_hotkey_notify() is pretty deeply nested, which hurts readability. Strip off one level of indentation by returning early when the event code supplied as argument is not ACPI_FUJITSU_NOTIFY_CODE1. Signed-off-by: Michał Kępień --- Changes introduced by this patch are best viewed when w

[PATCH 4/4] platform/x86: fujitsu-laptop: make hotkey handling functions more similar

2017-01-11 Thread Michał Kępień
Make two minor tweaks to acpi_fujitsu_hotkey_press() to make it more similar to acpi_fujitsu_hotkey_release(): * call vdbg_printk() after reporting the input event, * return immediately when kfifo_in_locked() fails. Signed-off-by: Michał Kępień --- drivers/platform/x86/fujitsu-laptop.c | 10

[PATCH 3/4] platform/x86: fujitsu-laptop: break up complex loop condition

2017-01-11 Thread Michał Kępień
The loop condition in acpi_fujitsu_hotkey_release() includes an assignment, a four-argument function call and a comparison, making it hard to read. Separate the assignment from the comparison to improve readability. Signed-off-by: Michał Kępień --- drivers/platform/x86/fujitsu-laptop.c | 8

[PATCH 0/4] fujitsu-laptop: acpi_fujitsu_hotkey_notify() cleanup

2017-01-11 Thread Michał Kępień
I am currently preparing a patch series which makes fujitsu-laptop use a sparse keymap for hotkey handling. Before that will happen, though, acpi_fujitsu_hotkey_notify() could use a revamp because it is pretty hard to read as it is. To avoid posting everything at once, here are a few patches whic

[PATCH 3/4] lib/scatterlist: Introduce and export __sg_alloc_table_from_pages

2017-01-11 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Drivers like i915 benefit from being able to control the maxium size of the sg coallesced segment while building the scatter- gather list. Introduce and export the __sg_alloc_table_from_pages function which will allow it that control. v2: Reorder parameters. (Chris Wilson)

Re: [PATCH] scsi: qedi: select UIO

2017-01-11 Thread Rangankar, Manish
On 11/01/17 9:40 AM, "Martin K. Petersen" wrote: >> "Ewan" == Ewan D Milne writes: > >Ewan> Randy posted a similar patch back in December but I don't think >Ewan> there was ever a reply to Christoph's question about why qedi >Ewan> depends on uio. > >I did queue up Randy's patch to shut up

[PATCH 1/4] lib/scatterlist: Fix offset type in sg_alloc_table_from_pages

2017-01-11 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Scatterlist entries have an unsigned int for the offset so correct the sg_alloc_table_from_pages function accordingly. Since these are offsets withing a page, unsigned int is wide enough. Also converts callers which were using unsigned long locally with the lower_32_bits an

[PATCH 2/4] platform/x86: fujitsu-laptop: move keycode processing to separate functions

2017-01-11 Thread Michał Kępień
acpi_fujitsu_hotkey_notify() is pretty deeply nested, which hurts readability. Move the keycode processing part to two separate functions to make the code easier to understand and save a few line breaks. Rename variable keycode_r to keycode as there is no longer any need to differentiate between t

[PATCH 2/4] lib/scatterlist: Avoid potential scatterlist entry overflow

2017-01-11 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Since the scatterlist length field is an unsigned int, make sure that sg_alloc_table_from_pages does not overflow it while coallescing pages to a single entry. v2: Drop reference to future use. Use UINT_MAX. v3: max_segment must be page aligned. Signed-off-by: Tvrtko Ursuli

[PATCH 4/4] drm/i915: Use __sg_alloc_table_from_pages for userptr allocations

2017-01-11 Thread Tvrtko Ursulin
From: Tvrtko Ursulin With the addition of __sg_alloc_table_from_pages we can control the maximum coallescing size and eliminate a separate path for allocating backing store here. Similar to 871dfbd67d4e ("drm/i915: Allow compaction upto SWIOTLB max segment size") this enables more compact sg lis

Re: [PATCH] dax: fix build warnings with FS_DAX and !FS_IOMAP

2017-01-11 Thread Christoph Hellwig
Looks fine: Reviewed-by: Christoph Hellwig

Re: [PATCH 2/2] serial: sh-sci: Fix hang in sci_reset()

2017-01-11 Thread Geert Uytterhoeven
Hi Laurent, On Fri, Jan 6, 2017 at 1:31 PM, Laurent Pinchart wrote: > On Friday 02 Dec 2016 13:35:11 Geert Uytterhoeven wrote: >> When the .set_termios() callback resets the UART, it first waits until >> all characters in the transmit FIFO have been transmitted, to prevent a >> port configuration

Re: [PATCH 56/62] watchdog: tangox_wdt: Convert to use device managed functions

2017-01-11 Thread Marc Gonzalez
On 11/01/2017 03:09, Guenter Roeck wrote: > Use device managed functions to simplify error handling, reduce > source code size, improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patches. The semantic pa

Re: [RFC PATCH] ext4: increase the protection of drop nlink and ext4 inode destroy

2017-01-11 Thread zhangyi (F)
on 2017/1/5 7:35, Theodore Ts'o wrote: > On Wed, Jan 04, 2017 at 01:54:24PM -0800, Darrick J. Wong wrote: >> >> if (inode->i_nlink == 0) { >> ext4_warning_inode(inode, "nlink is already 0"); >> return; >> } > > We can't do that because the place where Zhangyi is proposing to > change i

Re: [PATCH v2 7/8] net: Rename TCA*BPF_DIGEST to ..._SHA256

2017-01-11 Thread Daniel Borkmann
Hi Andy, On 01/11/2017 04:11 AM, Andy Lutomirski wrote: On Tue, Jan 10, 2017 at 4:50 PM, Daniel Borkmann wrote: On 01/11/2017 12:24 AM, Andy Lutomirski wrote: This makes it easier to add another digest algorithm down the road if needed. It also serves to force any programs that might have b

Re: [PATCH] i2c: piix4: Avoid race conditions with IMC

2017-01-11 Thread Ricardo Ribalda Delgado
Hi Andy Thanks for your review! On Wed, Jan 11, 2017 at 2:49 AM, Andy Shevchenko wrote: > On Tue, Jan 10, 2017 at 2:16 PM, Ricardo Ribalda Delgado > wrote: >> On AMD's SB800 and upwards, the SMBus is shared with the Integrated >> Micro Controller (IMC). >> >> The platform provides a hardware se

Re: [PATCHv14 2/3] usb: USB Type-C connector class

2017-01-11 Thread Oliver Neukum
On Wed, 2017-01-11 at 09:57 +0200, Heikki Krogerus wrote: > On Tue, Jan 10, 2017 at 11:08:51AM +0100, Oliver Neukum wrote: > > > And since we are talking about the ABI, can we also change the listing > > > of the accessory mode back to just "audio" and "debug" like I > > > originally had it? I don'

[PATCH v2] i2c: piix4: Avoid race conditions with IMC

2017-01-11 Thread Ricardo Ribalda Delgado
On AMD's SB800 and upwards, the SMBus is shared with the Integrated Micro Controller (IMC). The platform provides a hardware semaphore to avoid race conditions among them. (Check page 288 of the SB800-Series Southbridges Register Reference Guide http://support.amd.com/TechDocs/45482.pdf) Without

Re: [PATCH v7 2/7] perf/amd/iommu: Modify functions to query max banks and counters

2017-01-11 Thread Suravee Suthikulpanit
Currently, amd_iommu_pc_get_max_[banks|counters]() use end-point device ID to locate an IOMMU and check the reported max banks/counters. The logic assumes that the IOMMU_BASE_DEVID belongs to the first IOMMU, and uses it to acquire a reference to the first IOMMU, which does not work on certain sys

Re: CPU Hotplugging disabled, still cpuhp/%d threads running in my 32-bit system

2017-01-11 Thread Thomas Gleixner
On Tue, 10 Jan 2017, Enrico Mioso wrote: > Hello guys. > I disabled CPU hotplugging in my .config: still I can see what follows in the > process list. > >11 ?S 0:00 [cpuhp/0] >12 ?S 0:00 [cpuhp/1] > > And from what I can see in kernel/cpu.c:574, this is related

Re: [PATCH net-next] bridge: multicast to unicast

2017-01-11 Thread Johannes Berg
> > Exactly. My point is that this is breaking the expectation that > > hosts are actually able to drop such packets. > > [readding CCs I removed earlier] > > Ah! Thanks. I was worried about creating packetloss :D. Ah, well, no - at least not in this case. > Hm, for this other other way round,

Re: [PATCH v2 2/2] media: rc: add driver for IR remote receiver on MT7623 SoC

2017-01-11 Thread Sean Wang
On Tue, 2017-01-10 at 17:23 +, Sean Young wrote: > Hi Sean, > > > > > > > The kernel guarantees that calls to the interrupt handler are serialised, > > > no need to disable the interrupt in the handler. > > > > agreed. I will save the mtk irq disable/enable and retest again. > > > > > > >

Re: [PATCH v2] ARM64: dts: meson-gx: Add reserved memory zone and usable memory range

2017-01-11 Thread Neil Armstrong
On 12/30/2016 03:51 PM, Heinrich Schuchardt wrote: > On 12/30/2016 02:40 PM, Neil Armstrong wrote: >> The Amlogic Meson GXBB/GXL/GXM secure monitor uses part of the memory space, >> this patch adds this reserved zone and redefines the usable memory range. >> >> Signed-off-by: Neil Armstrong >> ---

Re: 174cc7187e6f ACPICA: Tables: Back port acpi_get_table_with_size() and early_acpi_os_unmap_memory() from Linux kernel

2017-01-11 Thread Borislav Petkov
On Mon, Jan 09, 2017 at 09:51:29PM -0800, Paul E. McKenney wrote: > Definitely. Btw, we have more breakage from RCU expedited using workqueues: https://bugzilla.kernel.org/show_bug.cgi?id=192111 I've added you to CC but let me have other bug reporters confirm reverting 8b355e3bc140 ("rcu: Driv

RE: [char-misc for 4.10-rc4 V2] mei: bus: enable OS version only for SPT and newer

2017-01-11 Thread Winkler, Tomas
> > On Wed, Jan 11, 2017 at 01:27:21AM +0200, Tomas Winkler wrote: > > On older platforms the command should be just ignored by the firmware > > but some older platforms misbehave so it's safer to send the command > > only if required. > > Thanks! This fixes suspend-to-ram for me (on a Thinkpad x

Re: [PATCH v2 2/2] media: rc: add driver for IR remote receiver on MT7623 SoC

2017-01-11 Thread Sean Wang
okay, I will continue to work based on your changes unless someone else has concerns On Wed, 2017-01-11 at 07:45 +0900, Andi Shyti wrote: > Hi Sean, > > >include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': > > unknown attribute > > >> drivers/media/rc/mtk-cir.c:215:41: s

Re: [PATCH v1] scsi: ufs: fix arguments order some trace calls

2017-01-11 Thread Colin Ian King
On 11/01/17 00:48, Subhash Jadavani wrote: > Colin Ian King reported that with > commit 7ff5ab473633 ("scsi: ufs: add tracing support") static analysis > is reporting that we may have swapped arguments on calls to: > trace_ufshcd_runtime_resume, > trace_ufshcd_runtime_suspend, > trace_

Re: [PATCH] docs: Make CodingStyle and SubmittingPatches symlinks

2017-01-11 Thread Joe Perches
On Wed, 2017-01-11 at 10:54 +0200, Jani Nikula wrote: > On Wed, 11 Jan 2017, Joe Perches wrote: > > Make these files symlinks to the .rst equivalents > > If we're going to do this (and I really don't mind either way), then > please add > > Fixes: 08a9a8d44c1c ("doc: re-add CodingStyle and Submit

Re: [PATCH] vme: Fix wrong pointer utilization in ca91cx42_slave_get

2017-01-11 Thread Martyn Welch
On 10 January 2017 at 10:45, Augusto Mecking Caringi wrote: > In ca91cx42_slave_get function, the value pointed by vme_base pointer is > set through: > > *vme_base = ioread32(bridge->base + CA91CX42_VSI_BS[i]); > > So it must be dereferenced to be used in calculation of pci_base: > > *pci_base = (

Re: Dell XPS13 does not suspend with Linux 4.10-rc3

2017-01-11 Thread Greg Kroah-Hartman
On Wed, Jan 11, 2017 at 09:53:38AM +0100, Paul Menzel wrote: > Dear Linux folks, > > > On 01/10/17 23:24, Jan Niehusmann wrote: > > On Tue, Jan 10, 2017 at 09:43:31PM +0100, Jan Niehusmann wrote: > > > And I bisected the issue to commit 7279b238ba, "mei: send OS type to the > > > FW" > > > > Ind

Re: [PATCH v8 3/3] arm64: dts: exynos: Add support for S6E3HA2 panel device on TM2 board

2017-01-11 Thread Andrzej Hajda
On 11.01.2017 09:40, Inki Dae wrote: > > 2017년 01월 11일 16:46에 Andrzej Hajda 이(가) 쓴 글: >> On 11.01.2017 07:33, Hoegeun Kwon wrote: >>> From: Hyungwon Hwang >>> >>> This patch add the panel device tree node for S6E3HA2 display >>> controller to TM2 dts. >>> >>> Signed-off-by: Hyungwon Hwang >>> Sig

[PATCH v8 10/18] iommu/arm-smmu: Implement reserved region get/put callbacks

2017-01-11 Thread Eric Auger
The get() populates the list with the MSI IOVA reserved window. At the moment an arbitray MSI IOVA window is set at 0x800 of size 1MB. This will allow to report those info in iommu-group sysfs. Signed-off-by: Eric Auger --- v3 -> v4: - do not handle PCI host bridge windows anymore - encode

[PATCH v8 00/18] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2017-01-11 Thread Eric Auger
Following LPC discussions, we now report reserved regions through the iommu-group sysfs reserved_regions attribute file. Reserved regions are populated through the IOMMU get_resv_region callback (former get_dm_regions), now implemented by amd-iommu, intel-iommu and arm-smmu: - the intel-iommu repo

[PATCH v8 14/18] irqdomain: irq_domain_check_msi_remap

2017-01-11 Thread Eric Auger
This new function checks whether all MSI irq domains implement IRQ remapping. This is useful to understand whether VFIO passthrough is safe with respect to interrupts. On ARM typically an MSI controller can sit downstream to the IOMMU without preventing VFIO passthrough. As such any assigned devic

[PATCH v8 16/18] vfio/type1: Allow transparent MSI IOVA allocation

2017-01-11 Thread Eric Auger
When attaching a group to the container, check the group's reserved regions and test whether the IOMMU translates MSI transactions. If yes, we initialize an IOVA allocator through the iommu_get_msi_cookie API. This will allow the MSI IOVAs to be transparently allocated on MSI controller's compose()

[PATCH v8 13/18] genirq/msi: Set IRQ_DOMAIN_FLAG_MSI on MSI domain creation

2017-01-11 Thread Eric Auger
Now we have a flag value indicating an IRQ domain implements MSI, let's set it on msi_create_irq_domain(). Signed-off-by: Eric Auger Reviewed-by: Marc Zyngier --- v7 -> v8 - Added Marc's R-b v6: new --- kernel/irq/msi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

[PATCH v8 18/18] iommu/arm-smmu: Do not advertise IOMMU_CAP_INTR_REMAP anymore

2017-01-11 Thread Eric Auger
IOMMU_CAP_INTR_REMAP has been advertised in arm-smmu(-v3) although on ARM this property is not attached to the IOMMU but rather is implemented in the MSI controller (GICv3 ITS). Now vfio_iommu_type1 checks MSI remapping capability at MSI controller level, let's correct this. Signed-off-by: Eric A

[PATCH v8 11/18] iommu/arm-smmu-v3: Implement reserved region get/put callbacks

2017-01-11 Thread Eric Auger
iommu/arm-smmu: Implement reserved region get/put callbacks The get() populates the list with the MSI IOVA reserved window. At the moment an arbitray MSI IOVA window is set at 0x800 of size 1MB. This will allow to report those info in iommu-group sysfs. Signed-off-by: Eric Auger Acked-by: W

[PATCH v8 15/18] irqchip/gicv3-its: Sets IRQ_DOMAIN_FLAG_MSI_REMAP

2017-01-11 Thread Eric Auger
The GICv3 ITS is MSI remapping capable. Let's advertise this property so that VFIO passthrough can assess IRQ safety. Signed-off-by: Eric Auger Reviewed-by: Marc Zyngier --- v7 -> v8: - added Marc's R-b --- drivers/irqchip/irq-gic-v3-its.c | 1 + 1 file changed, 1 insertion(+) diff --git a/d

[PATCH v8 12/18] irqdomain: Add irq domain MSI and MSI_REMAP flags

2017-01-11 Thread Eric Auger
We introduce two new enum values for the irq domain flag: - IRQ_DOMAIN_FLAG_MSI indicates the irq domain corresponds to an MSI domain - IRQ_DOMAIN_FLAG_MSI_REMAP indicates the irq domain has MSI remapping capabilities. Those values will be useful to check all MSI irq domains have MSI remapping

[PATCH v8 17/18] vfio/type1: Check MSI remapping at irq domain level

2017-01-11 Thread Eric Auger
In case the IOMMU translates MSI transactions (typical case on ARM), we check MSI remapping capability at IRQ domain level. Otherwise it is checked at IOMMU level. At this stage the arm-smmu-(v3) still advertise the IOMMU_CAP_INTR_REMAP capability at IOMMU level. This will be removed in subsequent

[PATCH v8 02/18] iommu: Rename iommu_dm_regions into iommu_resv_regions

2017-01-11 Thread Eric Auger
We want to extend the callbacks used for dm regions and use them for reserved regions. Reserved regions can be - directly mapped regions - regions that cannot be iommu mapped (PCI host bridge windows, ...) - MSI regions (because they belong to another address space or because they are not transla

[PATCH v8 03/18] iommu: Add a new type field in iommu_resv_region

2017-01-11 Thread Eric Auger
We introduce a new field to differentiate the reserved region types and specialize the apply_resv_region implementation. Legacy direct mapped regions have IOMMU_RESV_DIRECT type. We introduce 2 new reserved memory types: - IOMMU_RESV_MSI will characterize MSI regions that are mapped - IOMMU_RESV_R

[PATCH v8 07/18] iommu: Implement reserved_regions iommu-group sysfs file

2017-01-11 Thread Eric Auger
A new iommu-group sysfs attribute file is introduced. It contains the list of reserved regions for the iommu-group. Each reserved region is described on a separate line: - first field is the start IOVA address, - second is the end IOVA address, - third is the type. Signed-off-by: Eric Auger ---

[PATCH v8 09/18] iommu/amd: Declare MSI and HT regions as reserved IOVA regions

2017-01-11 Thread Eric Auger
This patch registers the MSI and HT regions as non mappable reserved regions. They will be exposed in the iommu-group sysfs. For direct-mapped regions let's also use iommu_alloc_resv_region(). Signed-off-by: Eric Auger --- v6 -> v7: - use IOMMU_RESV_RESERVED v5: creation --- drivers/iommu/amd

[PATCH v8 01/18] iommu/dma: Allow MSI-only cookies

2017-01-11 Thread Eric Auger
From: Robin Murphy IOMMU domain users such as VFIO face a similar problem to DMA API ops with regard to mapping MSI messages in systems where the MSI write is subject to IOMMU translation. With the relevant infrastructure now in place for managed DMA domains, it's actually really simple for other

[PATCH v8 08/18] iommu/vt-d: Implement reserved region get/put callbacks

2017-01-11 Thread Eric Auger
This patch registers the [FEE0_h - FEF0_000h] 1MB MSI range as a reserved region and RMRR regions as direct regions. This will allow to report those reserved regions in the iommu-group sysfs. Signed-off-by: Eric Auger --- v6 -> v7: - report RMRR regions as direct regions - Due to the usage

[PATCH v8 05/18] iommu: Only map direct mapped regions

2017-01-11 Thread Eric Auger
As we introduced new reserved region types which do not require mapping, let's make sure we only map direct mapped regions. Signed-off-by: Eric Auger --- v3 -> v4: - use region's type and reword commit message and title --- drivers/iommu/iommu.c | 3 +++ 1 file changed, 3 insertions(+) diff -

[PATCH v8 04/18] iommu: iommu_alloc_resv_region

2017-01-11 Thread Eric Auger
Introduce a new helper serving the purpose to allocate a reserved region. This will be used in iommu driver implementing reserved region callbacks. Signed-off-by: Eric Auger --- v3 -> v4: - add INIT_LIST_HEAD(®ion->list) - use int for prot param and add int type param - remove implementation ou

[PATCH v8 06/18] iommu: iommu_get_group_resv_regions

2017-01-11 Thread Eric Auger
Introduce iommu_get_group_resv_regions whose role consists in enumerating all devices from the group and collecting their reserved regions. The list is sorted and overlaps between regions of the same type are handled by merging the regions. Signed-off-by: Eric Auger --- v6 -> v7: - avoid merge o

Re: [PATCH] docs: Make CodingStyle and SubmittingPatches symlinks

2017-01-11 Thread Jani Nikula
On Wed, 11 Jan 2017, Joe Perches wrote: > On Wed, 2017-01-11 at 10:54 +0200, Jani Nikula wrote: >> On Wed, 11 Jan 2017, Joe Perches wrote: >> > Make these files symlinks to the .rst equivalents >> >> If we're going to do this (and I really don't mind either way), then >> please add >> >> Fixes:

Re: 174cc7187e6f ACPICA: Tables: Back port acpi_get_table_with_size() and early_acpi_os_unmap_memory() from Linux kernel

2017-01-11 Thread Borislav Petkov
On Wed, Jan 11, 2017 at 04:42:16AM +0100, Rafael J. Wysocki wrote: > Let's try the attached one. Works, thanks. Lemme give you the tags :) Reported-and-tested-by: Borislav Petkov Fixes: 174cc7187e6f ("ACPICA: Tables: Back port acpi_get_table_with_size() and early_acpi_os_unmap_memory() from Lin

[PATCH v3] ARM64: dts: meson-gx: Add reserved memory zone and usable memory range

2017-01-11 Thread Neil Armstrong
The Amlogic Meson GXBB/GXL/GXM secure monitor uses part of the memory space, this patch adds this reserved zone and redefines the usable memory range. The memory node is also moved from the dtsi files into the proper dts files to handle variants memory sizes. This patch also fixes the memory size

[tip:timers/urgent] nohz: Fix collision between tick and other hrtimers

2017-01-11 Thread tip-bot for Frederic Weisbecker
Commit-ID: 24b91e360ef521a2808771633d76ebc68bd5604b Gitweb: http://git.kernel.org/tip/24b91e360ef521a2808771633d76ebc68bd5604b Author: Frederic Weisbecker AuthorDate: Wed, 4 Jan 2017 15:12:04 +0100 Committer: Thomas Gleixner CommitDate: Wed, 11 Jan 2017 10:41:33 +0100 nohz: Fix collisi

RE: Dell XPS13 does not suspend with Linux 4.10-rc3

2017-01-11 Thread Winkler, Tomas
> Subject: Re: Dell XPS13 does not suspend with Linux 4.10-rc3 > > On 01/11/17 10:36, Greg Kroah-Hartman wrote: > > On Wed, Jan 11, 2017 at 09:53:38AM +0100, Paul Menzel wrote: > > >> On 01/10/17 23:24, Jan Niehusmann wrote: > >>> On Tue, Jan 10, 2017 at 09:43:31PM +0100, Jan Niehusmann wrote:

Re: Dell XPS13 does not suspend with Linux 4.10-rc3

2017-01-11 Thread Paul Menzel
On 01/11/17 10:36, Greg Kroah-Hartman wrote: On Wed, Jan 11, 2017 at 09:53:38AM +0100, Paul Menzel wrote: On 01/10/17 23:24, Jan Niehusmann wrote: On Tue, Jan 10, 2017 at 09:43:31PM +0100, Jan Niehusmann wrote: And I bisected the issue to commit 7279b238ba, "mei: send OS type to the FW" In

Re: 174cc7187e6f ACPICA: Tables: Back port acpi_get_table_with_size() and early_acpi_os_unmap_memory() from Linux kernel

2017-01-11 Thread Paul E. McKenney
On Wed, Jan 11, 2017 at 10:21:06AM +0100, Borislav Petkov wrote: > On Mon, Jan 09, 2017 at 09:51:29PM -0800, Paul E. McKenney wrote: > > Definitely. > > Btw, we have more breakage from RCU expedited using workqueues: > https://bugzilla.kernel.org/show_bug.cgi?id=192111 > > I've added you to CC bu

[PATCH RESEND] splice: introduce FMODE_SPLICE_READ and FMODE_SPLICE_WRITE

2017-01-11 Thread Johannes Thumshirn
Introduce FMODE_SPLICE_READ and FMODE_SPLICE_WRITE. These modes check whether it is legal to read or write a file using splice. Both get automatically set on regular files and are not checked when a 'struct fileoperations' includes the splice_{read,write} methods. Suggested-by: Linus Torvalds Cc:

[RESEND PATCH v3] ARM64: dts: meson-gx: Add reserved memory zone and usable memory range

2017-01-11 Thread Neil Armstrong
The Amlogic Meson GXBB/GXL/GXM secure monitor uses part of the memory space, this patch adds this reserved zone and redefines the usable memory range. The memory node is also moved from the dtsi files into the proper dts files to handle variants memory sizes. This patch also fixes the memory size

Re: [PATCH v4 2/8] PCI: Allow runtime PM on Thunderbolt ports

2017-01-11 Thread Mika Westerberg
On Sun, Jan 08, 2017 at 09:41:45AM +0100, Lukas Wunner wrote: > Currently PCIe ports are only allowed to go to D3 if the BIOS is dated > 2015 or newer to avoid potential issues with old chipsets. However for > Thunderbolt we know that even the oldest controller, Light Ridge (2010), > is able to su

Re: [PATCH tip/master v4] kprobes: extable: Identify kprobes' insn-slots as kernel text area

2017-01-11 Thread Masami Hiramatsu
On Tue, 10 Jan 2017 15:42:07 -0600 Josh Poimboeuf wrote: > On Tue, Jan 10, 2017 at 09:59:23AM +0100, Peter Zijlstra wrote: > > On Mon, Jan 09, 2017 at 11:36:48AM -0600, Josh Poimboeuf wrote: > > > BTW, I think we'll have more problems with generated code if/when we > > > move to an x86 DWARF unwi

RE: [PATCH v4 1/8] PCI: Recognize Thunderbolt devices

2017-01-11 Thread Winkler, Tomas
> > On Sun, Jan 08, 2017 at 10:23:03AM +, Winkler, Tomas wrote: > > > We're about to allow runtime PM on Thunderbolt ports in > > > pci_bridge_d3_possible() and unblock runtime PM for Thunderbolt host > > > hotplug ports in pci_dev_check_d3cold(). In both cases we need to > > > uniquely ident

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-11 Thread Andreas Fuchs
Am 10.01.2017 um 21:05 schrieb Jason Gunthorpe: On Tue, Jan 10, 2017 at 01:16:35AM +0200, Jarkko Sakkinen wrote: On Wed, Jan 04, 2017 at 10:12:41AM -0600, Dr. Greg Wettstein wrote: The kernel needs a resource manager. Everyone needs to think VERY hard and VERY, VERY carefully about what gets

Re: [PATCH v4 3/8] PCI: Don't block runtime PM for Thunderbolt host hotplug ports

2017-01-11 Thread Mika Westerberg
On Sun, Jan 08, 2017 at 09:41:45AM +0100, Lukas Wunner wrote: > Hotplug ports generally block their parents from suspending to D3hot as > otherwise their interrupts couldn't be delivered. > > An exception are Thunderbolt host controllers: They have a separate > GPIO pin to side-band signal plug e

Re: 174cc7187e6f ACPICA: Tables: Back port acpi_get_table_with_size() and early_acpi_os_unmap_memory() from Linux kernel

2017-01-11 Thread Borislav Petkov
On Wed, Jan 11, 2017 at 01:51:56AM -0800, Paul E. McKenney wrote: > Yes, you could make RCU expedited grace periods go back to using the > requesting task, and that would allow expedited grace periods to run early > in the boot process. But that causes problems with signals and the like > unless y

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-11 Thread Andreas Fuchs
Am 09.01.2017 um 23:39 schrieb Jarkko Sakkinen: On Thu, Jan 05, 2017 at 03:52:02PM +, Fuchs, Andreas wrote: Great to see this coming along so well. Thanks a lot to Jarkko ! I just wanted to point out a few things I deem important at this point: - Number of virtual handles: From what I see

  1   2   3   4   5   6   7   8   9   10   >