Re: [PATCH v7 1/8] genirq/msi: Add a new MSI_FLAG_IRQ_REMAPPING flag

2016-04-22 Thread Eric Auger
Robin, On 04/22/2016 01:02 PM, Robin Murphy wrote: > Hi Eric, > > On 19/04/16 18:13, Eric Auger wrote: >> Let's introduce a new msi_domain_info flag value, MSI_FLAG_IRQ_REMAPPING >> meant to tell the domain supports IRQ REMAPPING, also known as Interrupt >> Translation Service. On Intel HW this IR

Re: [PATCH v7 00/10] KVM PCIe/MSI passthrough on ARM/ARM64: kernel part 1/3: iommu changes

2016-04-22 Thread Eric Auger
Hi Alex, On 04/21/2016 09:32 PM, Alex Williamson wrote: > On Thu, 21 Apr 2016 14:18:09 +0200 > Eric Auger wrote: > >> Hi Alex, Robin, >> On 04/19/2016 06:56 PM, Eric Auger wrote: >>> This series introduces the dma-reserved-iommu api used to: >>> >>> - create/destroy an iova domain dedicated to re

Re: [PATCH] media: vb2: Fix regression on poll() for RW mode

2016-04-22 Thread Mauro Carvalho Chehab
Em Fri, 22 Apr 2016 11:19:09 +0200 Hans Verkuil escreveu: > Hi Ricardo, > > On 04/21/2016 11:15 AM, Ricardo Ribalda Delgado wrote: > > When using a device is read/write mode, vb2 does not handle properly the > > first select/poll operation. It allways return POLLERR. > > > > The reason for this

Re: [PATCH v7 03/10] iommu: introduce a reserved iova cookie

2016-04-22 Thread Robin Murphy
On 20/04/16 17:14, Eric Auger wrote: Hi Robin, On 04/20/2016 02:55 PM, Robin Murphy wrote: On 19/04/16 17:56, Eric Auger wrote: This patch introduces some new fields in the iommu_domain struct, dedicated to reserved iova management. In a similar way as DMA mapping IOVA window, we need to store

Re: [PATCH] media: vb2: Fix regression on poll() for RW mode

2016-04-22 Thread Hans Verkuil
On 04/22/2016 02:31 PM, Mauro Carvalho Chehab wrote: > Em Fri, 22 Apr 2016 11:19:09 +0200 > Hans Verkuil escreveu: > >> Hi Ricardo, >> >> On 04/21/2016 11:15 AM, Ricardo Ribalda Delgado wrote: >>> When using a device is read/write mode, vb2 does not handle properly the >>> first select/poll opera

Re: [PATCH 5/6] leds: pca963x: Inform the output that it is inverted

2016-04-22 Thread Olliver Schinagl
Hey Rob, On 21-04-16 17:07, Rob Herring wrote: On Tue, Apr 19, 2016 at 09:40:49AM +0200, Olliver Schinagl wrote: When leds are connected in a totem-pole configuration, they can be connected either in a active-high, or active-low manor. The driver currently always assumes active-high. This patch

Re: [PATCH] PM / OPP: -ENOSYS is applicable only to syscalls

2016-04-22 Thread Rafael J. Wysocki
On Friday, April 22, 2016 08:46:51 AM Viresh Kumar wrote: > Some of the routines have use -ENOSYS, which is supposed to be used only > for syscalls. Replace that with -EINVAL. -EINVAL specifically means "invalid argument". What about using -ENXIO instead?

Re: [PATCH v2] Force cppc_cpufreq to report values in KHz to fix user space reporting

2016-04-22 Thread Rafael J. Wysocki
On Friday, April 22, 2016 11:00:20 AM Viresh Kumar wrote: > On 19-04-16, 16:12, Ashwin Chaugule wrote: > > + Ryan > > > > Hi Al, > > > > On 18 April 2016 at 20:11, Al Stone wrote: > > > When CPPC is being used by ACPI on arm64, user space tools such as > > > cpupower report CPU frequency values

[PATCH v2] dmaengine: tegra-apb: proper default init of channel slave_id

2016-04-22 Thread Shardar Shariff Md
Initialize default channel slave_id(req_sel) to invalid id (i.e max supported slave id + 1) to avoid overwriting of slave_id during tegra_dma_slave_config() with client data if slave_id is not initialized through DT Signed-off-by: Shardar Shariff Md --- - Instead of initializing the slave id to

Re: [PATCH 17/19] dm: get rid of superfluous gfp flags

2016-04-22 Thread Michal Hocko
On Sat 16-04-16 16:31:35, Michal Hocko wrote: > On Fri 15-04-16 14:41:29, Mikulas Patocka wrote: > > > > > > On Fri, 15 Apr 2016, Michal Hocko wrote: > > > > > On Fri 15-04-16 08:29:28, Mikulas Patocka wrote: > > > > > > > > > > > > On Mon, 11 Apr 2016, Michal Hocko wrote: > > > > > > > > > F

Re: [PATCH v7] Bluetooth: hci_uart: Support firmware download for Marvell

2016-04-22 Thread Marcel Holtmann
Hi Amitkumar, + +static int mrvl_setup(struct hci_uart *hu) { + struct mrvl_data *mrvl = hu->priv; + + mrvl_init_fw_data(hu); + set_bit(HCI_UART_DNLD_FW, &mrvl->flags); + + return hci_uart_dnld_fw(hu); +} >>> >>> So this is clearly the wrong spot.

Re: [PATCH v2] Force cppc_cpufreq to report values in KHz to fix user space reporting

2016-04-22 Thread Rafael J. Wysocki
On Tuesday, April 19, 2016 04:12:41 PM Ashwin Chaugule wrote: > + Ryan > > Hi Al, > > On 18 April 2016 at 20:11, Al Stone wrote: > > When CPPC is being used by ACPI on arm64, user space tools such as > > cpupower report CPU frequency values from sysfs that are incorrect. > > > > What the driver

Re: [PATCH V6 09/13] pci, acpi: Support for ACPI based generic PCI host controller

2016-04-22 Thread Jayachandran C
On Thu, Apr 21, 2016 at 2:36 PM, Tomasz Nowicki wrote: > On 20.04.2016 21:12, Jayachandran C wrote: >> >> On Fri, Apr 15, 2016 at 10:36 PM, Tomasz Nowicki wrote: >>> >>> This patch is going to implement generic PCI host controller for >>> ACPI world, similar to what pci-host-generic.c driver does

[PATCH 2/2] regulator: max77620: Add support for device specific ramp rate setting

2016-04-22 Thread Laxman Dewangan
Maxim advertised the ramp rate of the rail with some recommended design specification like output capacitance of rail should be 2.2uF. This make sure that current change in the rail is within maximum current limit and hence meet the advertised ramp rate. If there is variation in design which cause

[PATCH 1/2] regulator: max77620: Add details of device specific ramp rate setting

2016-04-22 Thread Laxman Dewangan
It is observed that the ramp rate measured on platform is not same as advertised ramp rate due to platform design variation. On this case, measured ramp rate is provided with property regulator-ramp-rate. For such cases, add DT property for device specific configurations. Signed-off-by: Laxman De

Re: [PATCH v2 0/7] mmc: sdhci-pltfm: fix and tidy up sdhci_pltfm_init()

2016-04-22 Thread Ulf Hansson
On 20 April 2016 at 04:16, Masahiro Yamada wrote: > > > Changes in v2: > - Remove resource size checking rather than fix it. > - Add \n to the tail of the error message > > Masahiro Yamada (7): > mmc: sdhci-pltfm: drop error message for too small MMIO resource size > mmc: sdhci-pltfm: chec

Re: [PATCH v2 2/2] mmc: sdhci: use IS_ENABLE(CONFIG_LEDS_CLASS) to enable LED struct members

2016-04-22 Thread Ulf Hansson
On 14 April 2016 at 06:19, Masahiro Yamada wrote: > defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE) > > is equivalent to: > > IS_ENABLED(CONFIG_LEDS_CLASS) > > Signed-off-by: Masahiro Yamada Thanks, applied for next! Kind regards Uffe > --- > > Changes in v2: > - Newly added

[PATCH v12 1/3] printk: Make printk() completely async

2016-04-22 Thread Sergey Senozhatsky
From: Jan Kara Currently, printk() sometimes waits for message to be printed to console and sometimes it does not (when console_sem is held by some other process). In case printk() grabs console_sem and starts printing to console, it prints messages from kernel printk buffer until the buffer is e

Re: [PATCH v2 1/2] mmc: sdhci: use IS_REACHABLE(CONFIG_LEDS_CLASS) to enable LED code

2016-04-22 Thread Ulf Hansson
On 14 April 2016 at 06:19, Masahiro Yamada wrote: > defined(CONFIG_LEDS_CLASS) || (defined(CONFIG_LEDS_CLASS_MODULE) && \ > defined(CONFIG_MMC_SDHCI_MODULE)) > > is equivalent to: > > defined(CONFIG_LEDS_CLASS) || (defined(CONFIG_LEDS_CLASS_MODULE) && \ > defined(MODULE)) > > and it can al

Re: [PATCH 05/11] pwm: tegra-dfll: Add driver for Tegra DFLL PWM controller

2016-04-22 Thread Thierry Reding
On Fri, Apr 22, 2016 at 06:31:05PM +0800, Penny Chiu wrote: > Tegra DFLL IP block controls off-chip PMIC via I2C bus or PWM > signals. This driver exposes DFLL as a PWM controller to generate > PWM signals to PWM regulator. > > Tegra DFLL HW changes regulator voltage by adjusting PWM signals > dut

[PATCH v12 3/3] printk: make printk.synchronous param rw

2016-04-22 Thread Sergey Senozhatsky
Change `synchronous' printk param to be RW, so user space can change printk mode back and forth to/from sync mode (which is considered to be more reliable). Signed-off-by: Sergey Senozhatsky --- kernel/printk/printk.c | 51 +++--- 1 file changed, 40 in

[PATCH v12 2/3] printk: Make wake_up_klogd_work_func() async

2016-04-22 Thread Sergey Senozhatsky
From: Jan Kara Offload printing of scheduler deferred messages from IRQ context to a schedulable printing kthread, when possible (the same way we do it in vprintk_emit()). Otherwise, the CPU can spend unbounded amount of time doing printing in console_unlock() from IRQ. Signed-off-by: Jan Kara

[PATCH v12 0/3] printk: Make printk() completely async

2016-04-22 Thread Sergey Senozhatsky
ontext and thus we don't lockup any particular CPU or even interrupts. against next-20160422 v12: -- rename printk_kthread_can_run bool flag -- update printk_kthread_can_run comment (Petr) -- drop mutex from printk_sync_set(), sysfs writes are synchronised (Petr) v11: -- switch default

Re: [RFC][PATCH 00/31] implement atomic_fetch_$op

2016-04-22 Thread Fengguang Wu
On Fri, Apr 22, 2016 at 11:44:55AM +0200, Peter Zijlstra wrote: > On Fri, Apr 22, 2016 at 11:04:13AM +0200, Peter Zijlstra wrote: > > The one that I did not do was ARMv8.1-LSE and I was hoping Will would help > > out > > with that. Also, it looks like the 0-day built bot does not do arm64 builds,

Re: [RFC][PATCH 27/31] locking: Remove linux/atomic.h:atomic_fetch_or

2016-04-22 Thread Will Deacon
On Fri, Apr 22, 2016 at 11:04:40AM +0200, Peter Zijlstra wrote: > Since all architectures have this implemented natively, remove this > now dead code. > > > > > > Signed-off-by: Peter Zijlstra (Intel) > --- > arch/alpha/include/asm/atomic.h|2 -- > arch/arc/include/asm/atomic.h

Re: [PATCH v7 03/10] iommu: introduce a reserved iova cookie

2016-04-22 Thread Eric Auger
Hi Robin, On 04/22/2016 02:36 PM, Robin Murphy wrote: > On 20/04/16 17:14, Eric Auger wrote: >> Hi Robin, >> On 04/20/2016 02:55 PM, Robin Murphy wrote: >>> On 19/04/16 17:56, Eric Auger wrote: This patch introduces some new fields in the iommu_domain struct, dedicated to reserved iova ma

Re: [PATCH net v2 1/3] drivers: net: cpsw: fix parsing of phy-handle DT property in dual_emac config

2016-04-22 Thread Grygorii Strashko
On 04/21/2016 09:19 PM, David Rivshin (Allworx) wrote: From: David Rivshin Commit 9e42f715264ff158478fa30eaed847f6e131366b ("drivers: net: cpsw: add phy-handle parsing") saved the "phy-handle" phandle into a new cpsw_priv field. However, phy connections are per-slave, so the phy_node field shou

Re: [RFC][PATCH 00/31] implement atomic_fetch_$op

2016-04-22 Thread Will Deacon
On Fri, Apr 22, 2016 at 08:56:56PM +0800, Fengguang Wu wrote: > On Fri, Apr 22, 2016 at 11:44:55AM +0200, Peter Zijlstra wrote: > > On Fri, Apr 22, 2016 at 11:04:13AM +0200, Peter Zijlstra wrote: > > > The one that I did not do was ARMv8.1-LSE and I was hoping Will would > > > help out > > > with

Re: [PATCH 02/11] clk: tegra: dfll: Move SoC specific data into of_device_id

2016-04-22 Thread Thierry Reding
On Fri, Apr 22, 2016 at 06:31:02PM +0800, Penny Chiu wrote: > Move all SoC specific fcpu data into of_device_id structure, and > move SoC fcpu data assignments from init function to probe > function. > > Signed-off-by: Penny Chiu > --- > drivers/clk/tegra/clk-tegra124-dfll-fcpu.c | 51 > +++

Re: [PATCH net v2 2/3] drivers: net: cpsw: fix error messages when using phy-handle DT property

2016-04-22 Thread Grygorii Strashko
On 04/21/2016 09:26 PM, David Rivshin (Allworx) wrote: > From: David Rivshin > > The phy-handle, phy_id, and fixed-link properties are mutually exclusive, > and only one need be specified. However if phy-handle was specified, an > error message would complain about the lack of phy_id or fixed-lin

Re: [PATCH v7 05/10] iommu/dma-reserved-iommu: reserved binding rb-tree and helpers

2016-04-22 Thread Robin Murphy
On 20/04/16 17:18, Eric Auger wrote: Robin, On 04/20/2016 03:12 PM, Robin Murphy wrote: On 19/04/16 17:56, Eric Auger wrote: we will need to track which host physical addresses are mapped to reserved IOVA. In that prospect we introduce a new RB tree indexed by physical address. This RB tree onl

Re: [PATCH v3] KVM: remove buggy vcpu id check on vcpu creation

2016-04-22 Thread Radim Krčmář
2016-04-22 09:40+0800, Wanpeng Li: > 2016-04-21 23:29 GMT+08:00 Radim Krčmář : >> x86 vcpu_id encodes APIC ID and APIC ID encodes CPU topology by >> reserving blocks of bits for socket/core/thread, so if core or thread >> count isn't a power of two, then the set of valid APIC IDs is sparse, > >

[PATCH] VPU: mediatek: fix platform_no_drv_owner.cocci warnings

2016-04-22 Thread Julia Lawall
Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Andrew-CT Chen Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- base: git://linuxtv.org/media_tree.git master mtk_vpu.c |1 - 1 file changed

[PATCH] fuse: Expose read from directory to userspace

2016-04-22 Thread Emily Maier
The VFS permits filesystems to implement read(2) on directories, but FUSE unconditionally returns -EISDIR for it. Expose this to userspace as FUSE_DIR_READ and continue returning the old behavior if the filesystem doesn't implement it. Signed-off-by: Emily Maier --- fs/fuse/dir.c | 5

Re: [RFC][PATCH 0/6] /dev/random - a new approach

2016-04-22 Thread Sandy Harris
On Thu, Apr 21, 2016 at 10:51 PM, Theodore Ts'o wrote: > I still have a massive problem with the claims that the "Jitter" RNG > provides any amount of entropy. Just because you and I might not be > able to analyze it doesn't mean that somebody else couldn't. After > all, DUAL-EC DRNG was very c

Re: [PATCH 5/6] leds: pca963x: Inform the output that it is inverted

2016-04-22 Thread Rob Herring
On Fri, Apr 22, 2016 at 7:38 AM, Olliver Schinagl wrote: > Hey Rob, > > On 21-04-16 17:07, Rob Herring wrote: >> >> On Tue, Apr 19, 2016 at 09:40:49AM +0200, Olliver Schinagl wrote: >>> >>> When leds are connected in a totem-pole configuration, they can be >>> connected either in a active-high, or

Re: [PATCH 03/11] clk: tegra: Add DFLL DVCO reset control for Tegra210

2016-04-22 Thread Thierry Reding
On Fri, Apr 22, 2016 at 06:31:03PM +0800, Penny Chiu wrote: > The DVCO present in the DFLL IP block has a separate reset line, > exposed via the CAR IP block. This reset line is asserted upon SoC > reset. Unless something (such as the DFLL driver) deasserts this > line, the DVCO will not oscillat

[PATCH] VPU: mediatek: fix simple_open.cocci warnings

2016-04-22 Thread Julia Lawall
Remove an open coded simple_open() function and replace file operations references to the function with simple_open() instead. Generated by: scripts/coccinelle/api/simple_open.cocci CC: Andrew-CT Chen Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- I'm just passing this along. Si

Re: [v8, 1/7] Documentation: DT: update Freescale DCFG compatible

2016-04-22 Thread Mark Rutland
On Fri, Apr 22, 2016 at 02:27:38PM +0800, Yangbo Lu wrote: > Update Freescale DCFG compatible with 'fsl,-dcfg' instead > of 'fsl,ls1021a-dcfg' to include more chips. > > Signed-off-by: Yangbo Lu > --- > Changes for v8: > - Added this patch > --- > Documentation/devicetree/bindings/arm/fsl.

Re: [PATCH v1 03/23] ata: sata_dwc_460ex: set dma_boundary to 0x1fff

2016-04-22 Thread Sergei Shtylyov
Hello. On 04/21/2016 09:15 PM, Andy Shevchenko wrote: The original code states: Make sure a LLI block is not created that will span 8K max FIS boundary. If the block spans such a FIS boundary, there is a chance that a DMA burst will cross that boundary -- this results i

Re: [PATCH V4] audit: add tty field to LOGIN event

2016-04-22 Thread Steve Grubb
On Thursday, April 21, 2016 09:29:57 PM Paul Moore wrote: > On Thu, Apr 21, 2016 at 2:14 PM, Richard Guy Briggs wrote: > > The tty field was missing from AUDIT_LOGIN events. > > > > Refactor code to create a new function audit_get_tty(), using it to > > replace the call in audit_log_task_info() a

Re: [PATCH] kvm: x86: make lapic hrtimer pinned

2016-04-22 Thread Luiz Capitulino
On Fri, 22 Apr 2016 07:12:51 +0800 Wanpeng Li wrote: > 2016-04-05 20:40 GMT+08:00 Luiz Capitulino : > > On Tue, 5 Apr 2016 14:18:01 +0800 > > Yang Zhang wrote: > > > >> On 2016/4/5 5:00, Rik van Riel wrote: > >> > On Mon, 2016-04-04 at 16:46 -0400, Luiz Capitulino wrote: > >> >> When a vCP

Re: [PATCH v2 0/3] ARM: OMAP3: Fix McBSP2/3 hwmod setup for sidetone

2016-04-22 Thread Peter Ujfalusi
On 04/19/2016 02:51 AM, Tony Lindgren wrote: >>> Then all these modules just sit on the L4 interconnet at >>> separate targets, including the clockdomain. >> >> The McBSPi core and it's sidetone is in the same clock domain as the sidetone >> is using the McBSPi interface clock. It is kind of a leec

Re: [PATCH] i2c: cpm: Fix build break due to incompatible pointer types

2016-04-22 Thread Wolfram Sang
On Wed, Apr 13, 2016 at 01:59:14PM +1000, Michael Ellerman wrote: > Since commit ea8daa7b9784 ("kbuild: Add option to turn incompatible > pointer check into error"), assignments from an incompatible pointer > types have become a hard error, eg: > > drivers/i2c/busses/i2c-cpm.c:545:91: error: pas

[PATCH] ASoC: da7218: Update PLL ranges and dividers to improve locking

2016-04-22 Thread Adam Thomson
The expected MCLK frequency ranges and the associated dividers are updated to improve PLL locking in a corner scenario, with low MCLK frequency near an input divider change boundary. Signed-off-by: Adam Thomson --- This patch is based on v4.6-rc1 kernel version sound/soc/codecs/da7218.c | 32 +

Re: [PATCH 04/11] clk: tegra: Add Tegra210 support in DFLL driver

2016-04-22 Thread Thierry Reding
On Fri, Apr 22, 2016 at 06:31:04PM +0800, Penny Chiu wrote: > Add Tegra210 support and related CVB table in tegra124 DFLL driver, > and also update the binding document. > > Signed-off-by: Penny Chiu > --- > .../bindings/clock/nvidia,tegra124-dfll.txt| 4 +- > drivers/clk/tegra/Makefile

Re: [PATCH v9 04/13] task_isolation: add initial support

2016-04-22 Thread Frederic Weisbecker
On Fri, Apr 08, 2016 at 12:34:48PM -0400, Chris Metcalf wrote: > On 4/8/2016 9:56 AM, Frederic Weisbecker wrote: > >On Wed, Mar 09, 2016 at 02:39:28PM -0500, Chris Metcalf wrote: > >> TL;DR: Let's make an explicit decision about whether task isolation > >> should be "persistent" or "one-shot".

Re: [PATCH] ARM: dts: omap3: Fix ISP syscon register offset

2016-04-22 Thread Sebastian Reichel
Hi, On Fri, Apr 22, 2016 at 07:34:43AM +0300, Ivaylo Dimitrov wrote: > On 16.04.2016 09:20, Ivaylo Dimitrov wrote: > >According to the TRM, SCM CONTROL_CSIRXFE register is on offset 0x6c > > > >Signed-off-by: Ivaylo Dimitrov > >--- > > arch/arm/boot/dts/omap34xx.dtsi | 2 +- > > 1 file changed,

[GIT PULL] arm64 fixes for 4.6-rc5

2016-04-22 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fixes below. Thanks. The following changes since commit c3b46c73264b03000d1e18b22f5caf63332547c9: Linux 4.6-rc4 (2016-04-17 19:13:32 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes fo

Re: [PATCH 10/11] arm64: tegra: Add clock properties on cpu0 for Tegra210

2016-04-22 Thread Thierry Reding
On Fri, Apr 22, 2016 at 12:44:21PM +0100, Jon Hunter wrote: > Hi Penny, > > On 22/04/16 11:31, Penny Chiu wrote: > > Add clocks, clock-names, and clock-latency into cpu0 node. > > These properties will be used by cpufreq driver. > > > > Signed-off-by: Penny Chiu > > --- > > arch/arm64/boot/dts/

Misleading hint to select CONFIG_PERF_EVENTS if driver sets PERF_PMU_CAP_NO_INTERRUPT

2016-04-22 Thread Lada Trimasova
I have a question about user-space perf handling error numbers. The problem is that PMU interrupts are not supported in arc700 architecture and it is impossible to evaluate `perf record` command. In our perf implementation we set PERF_PMU_CAP_NO_INTERRUPT flag so core perf infrastructure knows we d

Re: [PATCH v8 11/11] drm: sti: Add DRM driver itself

2016-04-22 Thread Daniel Vetter
On Wed, Jul 30, 2014 at 7:42 PM, Benjamin Gaignard wrote: > +static int sti_drm_crtc_page_flip(struct drm_crtc *crtc, > + struct drm_framebuffer *fb, > + struct drm_pending_vblank_event *event, > + uint

Re: [PATCH 3/3] checkpatch: relax Kconfig help text line number threshold

2016-04-22 Thread Yingjoe Chen
On Thu, 2016-04-21 at 10:39 -0700, Andi Kleen wrote: > On Thu, Apr 21, 2016 at 10:00:07AM -0700, Joe Perches wrote: > > On Thu, 2016-04-21 at 21:28 +0800, Yingjoe Chen wrote: > > > Current threshold is too strict and many upstream patch doesn't pass > > > this test. Relax it. > > > > I don't have

Re: [PATCH 09/11] arm64: tegra: Add DFLL clock node on Jetson TX1

2016-04-22 Thread Thierry Reding
On Fri, Apr 22, 2016 at 06:31:09PM +0800, Penny Chiu wrote: > Add DFLL clock device-tree node for Tegra210 DFLL IP block. > > Signed-off-by: Penny Chiu > --- > arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi | 16 > arch/arm64/boot/dts/nvidia/tegra210.dtsi | 15

Re: [PATCH 2/3] checkpatch: testing more config for Kconfig help text

2016-04-22 Thread Yingjoe Chen
On Thu, 2016-04-21 at 10:06 -0700, Joe Perches wrote: > On Thu, 2016-04-21 at 21:28 +0800, Yingjoe Chen wrote: > > Current help text check only check a config option if it is followed > > by another config. > > Adding check for help text if the next entry is menuconfig, choice/ > > endchoice, comme

Re: [PATCH] media: fix media_open() to not release lock too soon

2016-04-22 Thread Mauro Carvalho Chehab
Em Wed, 20 Apr 2016 14:48:10 -0600 Shuah Khan escreveu: > media_open() releases media_devnode_lock before open is complete. Hold > the lock to call mdev->fops->open and release at the end. This patch looks scary on my eyes, as it has potential of causing dead locks, if the code, depending on the

Re: [PATCH v4 1/5] arm64: cpufeature: Add scope for capability check

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:31PM +0100, Suzuki K. Poulose wrote: > Add scope parameter to the arm64_cpu_capabilities::matches(), so that > this can be reused for checking the capability on a given CPU vs the > system wide. The system uses the default scope associated with the > capability for ini

Re: [PATCH v2 2/2] i2c: exynos5: Fix possible ABBA deadlock by keeping I2C clock prepared

2016-04-22 Thread Wolfram Sang
On Sat, Apr 16, 2016 at 09:14:53PM -0400, Javier Martinez Canillas wrote: > The exynos5 I2C controller driver always prepares and enables a clock > before using it and then disables unprepares it when the clock is not > used anymore. > > But this can cause a possible ABBA deadlock in some scenario

Re: [PATCH v4 2/5] arm64: Allow a capability to be checked on a single CPU

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:32PM +0100, Suzuki K. Poulose wrote: > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -1005,6 +1005,24 @@ static void __init setup_feature_capabilities(void) > enable_cpu_capabilities(arm64_features); > } > > +/* > + * Check i

Re: [PATCH v2] dmaengine: tegra-apb: proper default init of channel slave_id

2016-04-22 Thread Jon Hunter
Hi Shardar, On 22/04/16 13:44, Shardar Shariff Md wrote: > Initialize default channel slave_id(req_sel) to invalid id > (i.e max supported slave id + 1) to avoid overwriting of slave_id > during tegra_dma_slave_config() with client data if slave_id > is not initialized through DT > > Signed-off-b

[PATCH] regulator: core: Add debugfs for regulator always_on flag

2016-04-22 Thread Richard Fitzgerald
This patch adds a debugfs file for the always_on flag in struct regulator. It's useful for debugging to be able to view the state of this flag and as it's set by logic inside the regulator core it doesn't necessarily have the same value as the always_on flag in constraints. Signed-off-by: Richard

Re: [PATCH v4 3/5] irqchip/gic: Restore CPU interface checking

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:33PM +0100, Suzuki K. Poulose wrote: > From: Marc Zyngier > > When introducing the whole CPU feature detection framework, > we lost the capability to detect a mismatched GIC configuration > (using the GICv2 MMIO interface, but having the system register > interface e

Re: [PATCH net v2 3/3] drivers: net: cpsw: use of_phy_connect() in fixed-link case

2016-04-22 Thread Grygorii Strashko
On 04/21/2016 09:41 PM, David Rivshin (Allworx) wrote: From: David Rivshin If a fixed-link DT subnode is used, the phy_device was looked up so that a PHY ID string could be constructed and passed to phy_connect(). This is not necessary, as the device_node can be passed directly to of_phy_connec

Re: [PATCH v2] dmaengine: tegra-apb: proper default init of channel slave_id

2016-04-22 Thread Thierry Reding
On Fri, Apr 22, 2016 at 06:14:53PM +0530, Shardar Shariff Md wrote: > Initialize default channel slave_id(req_sel) to invalid id > (i.e max supported slave id + 1) to avoid overwriting of slave_id > during tegra_dma_slave_config() with client data if slave_id > is not initialized through DT > > Si

Re: [PATCH 10/11] arm64: tegra: Add clock properties on cpu0 for Tegra210

2016-04-22 Thread Jon Hunter
On 22/04/16 14:23, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Fri, Apr 22, 2016 at 12:44:21PM +0100, Jon Hunter wrote: >> Hi Penny, >> >> On 22/04/16 11:31, Penny Chiu wrote: >>> Add clocks, clock-names, and clock-latency into cpu0 node. >>> These properties will be used by cpu

Re: [PATCH v4 2/2] KVM: move vcpu id checking to archs

2016-04-22 Thread Radim Krčmář
2016-04-22 11:25+0200, Greg Kurz: > Hi Radim ! > > On Thu, 21 Apr 2016 19:36:11 +0200 > Radim Krčmář wrote: > > > 2016-04-21 18:45+0200, Greg Kurz: > > > On Thu, 21 Apr 2016 18:00:19 +0200 > > > Radim Krčmář wrote: > > >> 2016-04-21 16:20+0200, Greg Kurz: > > >> > Commit 338c7dbadd26 ("KVM:

Re: [PATCH v4 4/5] arm64: Verify CPU errata work arounds on hotplugged CPU

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:34PM +0100, Suzuki K. Poulose wrote: > CPU Errata work arounds are detected and applied to the > kernel code at boot time and the data is then freed up. > If a new hotplugged CPU requires a work around which > was not applied at boot time, there is nothing we can > do

RE: [PATCH net v2 0/3] drivers: net: cpsw: phy-handle fixes

2016-04-22 Thread Andrew Goodbody
> From: David Rivshin > > The first patch fixes a bug that makes dual_emac mode break if either slave > uses the phy-handle property in the devicetree. > > The second patch fixes some cosmetic problems with error messages, and > also makes the binding documentation more explicit. > > The third

Re: [PATCH v2] dmaengine: tegra-apb: proper default init of channel slave_id

2016-04-22 Thread Jon Hunter
On 22/04/16 13:44, Shardar Shariff Md wrote: > Initialize default channel slave_id(req_sel) to invalid id > (i.e max supported slave id + 1) to avoid overwriting of slave_id > during tegra_dma_slave_config() with client data if slave_id > is not initialized through DT > > Signed-off-by: Shardar S

Re: [PATCH v4 4/5] arm64: Verify CPU errata work arounds on hotplugged CPU

2016-04-22 Thread Suzuki K Poulose
On 22/04/16 14:40, Catalin Marinas wrote: On Fri, Apr 22, 2016 at 12:25:34PM +0100, Suzuki K. Poulose wrote: CPU Errata work arounds are detected and applied to the kernel code at boot time and the data is then freed up. If a new hotplugged CPU requires a work around which was not applied at boo

[PATCH] regulator: arizona-ldo1: Only enable status change if we have LDOENA

2016-04-22 Thread Richard Fitzgerald
The driver was hardcoding REGULATOR_CHANGE_STATUS on the regulator which made the regulator core assume that it can be powered off. The power state of the regulator is controlled by the LDOENA pin so this patch changes to only setting the REGULATOR_CHANGE_STATUS flag if we have a valid gpio for LD

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

2016-04-22 Thread Hans Verkuil
On 04/22/2016 06:25 AM, Tiffany Lin wrote: > Add v4l2 layer encoder driver for MT8173 > > Signed-off-by: Tiffany Lin > > --- > drivers/media/platform/Kconfig | 16 + > drivers/media/platform/Makefile|2 + > drivers/media/platform/mtk-vcodec/Makefile

Re: [PATCH v4 2/2] KVM: move vcpu id checking to archs

2016-04-22 Thread Radim Krčmář
2016-04-22 13:19+0200, Igor Mammedov: > On Fri, 22 Apr 2016 11:25:38 +0200 > Greg Kurz wrote: >> On Thu, 21 Apr 2016 19:36:11 +0200 >> Radim Krčmář wrote: >> > 2016-04-21 18:45+0200, Greg Kurz: >> > > On Thu, 21 Apr 2016 18:00:19 +0200 >> > > Radim Krčmář wrote: >> > >> 2016-04-21 16:20+02

Re: Nokia N900: Broken lirc ir-rx51 driver

2016-04-22 Thread Pali Rohár
On Tuesday 05 January 2016 17:12:50 Tony Lindgren wrote: > * Pali Rohár [160105 02:19]: > > On Saturday 02 January 2016 09:06:57 Tony Lindgren wrote: > > > > > > Yup please take a look at thread "[PATCH 0/3] pwm: omap: Add PWM support > > > using dual-mode timers". Chances are we still need to set

Re: [PATCH v4 5/5] arm64: Fix behavior of maxcpus=N

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:35PM +0100, Suzuki K. Poulose wrote: > maxcpu=n sets the number of CPUs activated at boot time to a max of n, > but allowing the remaining CPUs to be brought up later if the user > decides to do so. However, on arm64 due to various reasons, we disallowed > hotplugging

[PATCHv2 1/6] efi/runtime-wrappers: add {__,}efi_call_virt templates

2016-04-22 Thread Mark Rutland
Currently each architecture must implement two macros, efi_call_virt and __efi_call_virt, which only differ by the presence or absence of a return type. Otherwise, the logic surrounding the call is identical. As each architecture must define the entire body of each, we can't place any generic mani

[PATCHv2 0/6] efi: detect erroneous firmware IRQ manipulation

2016-04-22 Thread Mark Rutland
Some firmware erroneously unmask IRQs (and potentially other architecture specific exceptions) during runtime services functions, in violation of both common sense and the UEFI specification. This can result in a number of issues if said exceptions are taken when they are expected to be masked, and

[PATCHv2 3/6] arm/efi: move to generic {__,}efi_call_virt

2016-04-22 Thread Mark Rutland
Now there's a common template for {__,}efi_call_virt, remove the duplicate logic from the arm efi code. Signed-off-by: Mark Rutland Reviewed-by: Ard Biesheuvel Cc: Leif Lindholm Cc: Matt Fleming Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org Cc: linux-...@vger.kernel.org Cc: linux-

[PATCHv2 6/6] efi/runtime-wrappers: detect FW irq flag corruption

2016-04-22 Thread Mark Rutland
The UEFI spec allows runtime services to be called with interrupts masked or unmasked, and if a runtime service function needs to mask interrupts, it must restore the mask to its original state before returning (i.e. from the PoV of the OS, this does not change across a call). Firmware should never

[PATCHv2 4/6] x86/efi: move to generic {__,}efi_call_virt

2016-04-22 Thread Mark Rutland
Now there's a common template for {__,}efi_call_virt, remove the duplicate logic from the x86 efi code. Signed-off-by: Mark Rutland Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Matt Fleming Cc: Thomas Gleixner Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/x86/include/as

[PATCHv2 2/6] arm64/efi: move to generic {__,}efi_call_virt

2016-04-22 Thread Mark Rutland
Now there's a common template for {__,}efi_call_virt, remove the duplicate logic from the arm64 efi code. Signed-off-by: Mark Rutland Acked-by: Will Deacon Reviewed-by: Ard Biesheuvel Cc: Catalin Marinas Cc: Leif Lindholm Cc: Matt Fleming Cc: linux-arm-ker...@lists.infradead.org Cc: linux-..

[PATCHv2 5/6] efi/runtime-wrappers: remove redundant ifdefs

2016-04-22 Thread Mark Rutland
Now that all users of the EFI runtime wrappers (arm,arm64,x86) have been migrated to the new setup/teardown macros, we don't need to support overridden {__,}efi_call_virt implementations. This patch removes the unnecessary ifdefs. Signed-off-by: Mark Rutland Cc: Leif Lindholm Cc: Matt Fleming

Re: [PATCH 4/5] regulator: core: Add early supply resolution for a bypassed regulator

2016-04-22 Thread Mark Brown
On Fri, Apr 22, 2016 at 12:26:57PM +0100, Jon Hunter wrote: > OK. Sorry if I have misunderstood you here, but this sounds more like > Thierry's initial proposal [0] but ignoring the any errors returned (and > we need to fix-up the locking in this patch). In the discussion that Yes! > followed I

RE: [PATCH v2] dmaengine: tegra-apb: proper default init of channel slave_id

2016-04-22 Thread Shardar Mohammed
Thanks for the review, please check my comments inline in [Shardar]. > On 22/04/16 13:44, Shardar Shariff Md wrote: > > Initialize default channel slave_id(req_sel) to invalid id (i.e max > > supported slave id + 1) to avoid overwriting of slave_id during > > tegra_dma_slave_config() with client d

Re: [PATCH] regulator: core: Add debugfs for regulator always_on flag

2016-04-22 Thread Mark Brown
On Fri, Apr 22, 2016 at 02:33:02PM +0100, Richard Fitzgerald wrote: > This patch adds a debugfs file for the always_on flag in struct regulator. > It's useful for debugging to be able to view the state of this flag and > as it's set by logic inside the regulator core it doesn't necessarily have > t

Re: [PATCH 2/2] memcg: relocate charge moving from ->attach to ->post_attach

2016-04-22 Thread Petr Mladek
On Thu 2016-04-21 19:09:02, Tejun Heo wrote: > Hello, > > So, this ended up a lot simpler than I originally expected. I tested > it lightly and it seems to work fine. Petr, can you please test these > two patches w/o the lru drain drop patch and see whether the problem > is gone? The LTP test i

RE: [PATCH v2] dmaengine: tegra-apb: proper default init of channel slave_id

2016-04-22 Thread Shardar Mohammed
> On Fri, Apr 22, 2016 at 06:14:53PM +0530, Shardar Shariff Md wrote: > > Initialize default channel slave_id(req_sel) to invalid id (i.e max > > supported slave id + 1) to avoid overwriting of slave_id during > > tegra_dma_slave_config() with client data if slave_id is not > > initialized through

RE: [PATCH v2] dmaengine: tegra-apb: proper default init of channel slave_id

2016-04-22 Thread Shardar Mohammed
> On 22/04/16 13:44, Shardar Shariff Md wrote: > > Initialize default channel slave_id(req_sel) to invalid id (i.e max > > supported slave id + 1) to avoid overwriting of slave_id during > > tegra_dma_slave_config() with client data if slave_id is not > > initialized through DT > > > > Signed-off-b

Re: [PATCH kernel 1/2] mm: add the related functions to build the free page bitmap

2016-04-22 Thread Michael S. Tsirkin
On Fri, Apr 22, 2016 at 10:48:38AM +0100, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Tue, Apr 19, 2016 at 03:02:09PM +, Li, Liang Z wrote: > > > > On Tue, 2016-04-19 at 22:34 +0800, Liang Li wrote: > > > > > The free page bitmap will be sent to QEMU thr

Re: [PATCH V2 5/9] cpufreq: rockchip: Use generic platdev driver

2016-04-22 Thread Heiko Stübner
Am Freitag, 22. April 2016, 16:58:43 schrieb Viresh Kumar: > From: Finley Xiao > > This patch add rockchip's compatible string to the compat list and > remove similar code from platform code for supporting generic platdev > driver. > > Signed-off-by: Finley Xiao > Acked-by: Viresh Kumar > Acke

Re: [PATCH v4] i2c: designware-platdrv: fix unbalanced clk enable and prepare

2016-04-22 Thread Jarkko Nikula
Hi On 04/22/2016 11:49 AM, Jisheng Zhang wrote: If i2c_dw_probe() fails, we should disable and unprepare the clock, otherwise the clock enable and prepare is left unbalanced. In dw_i2c_plat_remove(), we'd better to not rely on runtime PM to disable and unprepare the clock since CONFIG_PM may be

Re: [PATCH] qla1280: Reduce can_queue to 32

2016-04-22 Thread Johannes Thumshirn
On Fri, Apr 22, 2016 at 08:16:44AM -0400, Laurence Oberman wrote: > The change looks fine, I see its hard-coded to 32 in qla1280_set_defaults() > Would it be better to create a #define like other drivers and use that in > both. > Also did the below patch resolve this for the bug reporter. Yes, th

Re: [PATCH] mm: make fault_around_bytes configurable

2016-04-22 Thread Minchan Kim
On Fri, Apr 22, 2016 at 02:15:08PM +0530, Vinayak Menon wrote: > On 04/22/2016 05:31 AM, Andrew Morton wrote: > >On Mon, 18 Apr 2016 20:47:16 +0530 Vinayak Menon > >wrote: > > > >>Mapping pages around fault is found to cause performance degradation > >>in certain use cases. The test performed her

Re: [PATCH] qla1280: Reduce can_queue to 32

2016-04-22 Thread Laurence Oberman
Johannes OK , yes thanks for pointing out the commit. Laurence Oberman Principal Software Maintenance Engineer Red Hat Global Support Services - Original Message - From: "Johannes Thumshirn" To: "Laurence Oberman" Cc: "Johannes Thumshirn" , "Martin K . Petersen" , "James E . J . Bottom

[PATCH 0/1] nilfs2: constify nilfs_sc_operations structures

2016-04-22 Thread Ryusuke Konishi
Hi Andrew, please queue the following change for the next merge window. Thanks, Ryusuke Konishi -- Julia Lawall (1): nilfs2: constify nilfs_sc_operations structures fs/nilfs2/segment.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

[PATCH 1/1] nilfs2: constify nilfs_sc_operations structures

2016-04-22 Thread Ryusuke Konishi
From: Julia Lawall The nilfs_sc_operations structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Ryusuke Konishi --- fs/nilfs2/segment.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --gi

Re: [PATCH] mm: make fault_around_bytes configurable

2016-04-22 Thread Kirill A. Shutemov
On Fri, Apr 22, 2016 at 11:02:16PM +0900, Minchan Kim wrote: > On Fri, Apr 22, 2016 at 02:15:08PM +0530, Vinayak Menon wrote: > > On 04/22/2016 05:31 AM, Andrew Morton wrote: > > >On Mon, 18 Apr 2016 20:47:16 +0530 Vinayak Menon > > >wrote: > > > > > >>Mapping pages around fault is found to cause

Re: [PATCHv2 0/6] efi: detect erroneous firmware IRQ manipulation

2016-04-22 Thread Ard Biesheuvel
On 22 April 2016 at 15:51, Mark Rutland wrote: > Some firmware erroneously unmask IRQs (and potentially other architecture > specific exceptions) during runtime services functions, in violation of both > common sense and the UEFI specification. This can result in a number of issues > if said excep

/proc/meminfo: relations of values

2016-04-22 Thread Oleg
Hi, all! Google has many explanations of what each value mean, but nothing about relations of values (the same for Documentation/filesystems/proc.txt). For example, i have qemu vm with x86_64 kernel: ~# dd if=/dev/zero of=tmpdata bs=$((1024*1024)) count=10; sleep 1s; \ free; cat /proc/meminfo;

[PATCH v3] dmaengine: tegra-apb: proper default init of channel slave_id

2016-04-22 Thread Shardar Shariff Md
Initialize default channel slave_id(req_sel) to invalid id (i.e max supported slave id + 1) to avoid overwriting of slave_id during tegra_dma_slave_config() with client data if slave_id is not initialized through DT Signed-off-by: Shardar Shariff Md --- Changes from v1: - Instead of initializing

<    1   2   3   4   5   6   7   8   9   >