Re: [PATCH v2] Add TI CDCE925 I2C controlled clock synthesizer driver

2015-05-29 Thread Mike Looijmans
On 28-05-15 23:48, Michael Turquette wrote: Hi Mike, Quoting Mike Looijmans (2014-12-03 23:26:15) This driver supports the TI CDCE925 programmable clock synthesizer. The chip contains two PLLs with spread-spectrum clocking support and five output dividers. The driver only supports the

Re: [PATCH 2/4] perf: jevents: Program to convert JSON file to C style file

2015-05-29 Thread Ingo Molnar
* Andi Kleen a...@linux.intel.com wrote: So instead of this flat structure, there should at minimum be broad categorization of the various parts of the hardware they relate to: whether they relate to the branch predictor, memory caches, TLB caches, memory ops, offcore, decoders,

[BUG, bisect] ALSA: hda - No sound output

2015-05-29 Thread Jeremiah Mahler
Takashi, all, On several of my machines there is no longer any sound output when running the latest linux-next (20150528). Activity can be seen in a mixer such as pavucontrol suggesting that there should be sound, but both the speakers and head phones are silent. I have bisected the kernel and

Re: [PATCH v2 0/7] CLONE_FD: Task exit notification via file descriptor

2015-05-29 Thread Florian Weimer
On 03/15/2015 08:59 AM, Josh Triplett wrote: This patch series introduces a new clone flag, CLONE_FD, which lets the caller receive child process exit notification via a file descriptor rather than SIGCHLD. CLONE_FD makes it possible for libraries to safely launch and manage child processes

Re: [BUG, bisect] ALSA: hda - No sound output

2015-05-29 Thread Takashi Iwai
At Fri, 29 May 2015 09:37:44 +0200, Takashi Iwai wrote: At Fri, 29 May 2015 00:27:14 -0700, Jeremiah Mahler wrote: Takashi, all, On several of my machines there is no longer any sound output when running the latest linux-next (20150528). Activity can be seen in a mixer such as

[tip:x86/urgent] x86/asm/entry/32: Really make user_mode() work correctly for VM86 mode

2015-05-29 Thread tip-bot for Jan Beulich
Commit-ID: 7ba554b5ac69e5f3edac9ce3233beb5acd480878 Gitweb: http://git.kernel.org/tip/7ba554b5ac69e5f3edac9ce3233beb5acd480878 Author: Jan Beulich jbeul...@suse.com AuthorDate: Thu, 28 May 2015 09:16:45 +0100 Committer: Ingo Molnar mi...@kernel.org CommitDate: Fri, 29 May 2015 09:46:40

RE: 3 EC issues

2015-05-29 Thread Zheng, Lv
Hi, I just made a freak change to let reporters to try. https://bugzilla.kernel.org/attachment.cgi?id=178271action=diff I'll report back after seeing their test results. Thanks and best regards -Lv From: Zheng, Lv Sent: Wednesday, May 27, 2015 1:57 PM Hi, Let me Cc intel power

[PATCH 1/1] iio: Add iio_mod_light_uva, iio_mod_light_uvb, and iio_mod_light_uvc.

2015-05-29 Thread Kevin Tsai
Add Ultraviolet(UV) support: UVA: 315 ~ 400 nm UVB: 280 ~ 315 nm UVC: 100 ~ 280 nm Signed-off-by: Kevin Tsai kt...@capellamicro.com --- drivers/iio/industrialio-core.c | 3 +++ include/uapi/linux/iio/types.h | 3 +++ tools/iio/iio_event_monitor.c | 6 ++ 3 files changed, 12 insertions(+)

Re: [PATCH] proc/schedstat: Expose /proc/pid/schedstat if delay accounting is enabled

2015-05-29 Thread Ingo Molnar
* Naveen N. Rao naveen.n@linux.vnet.ibm.com wrote: /proc/pid/schedstat is currently only available if CONFIG_SCHEDSTATS is enabled. But, all the fields that this exposes are available and valid if CONFIG_TASK_DELAY_ACCT is enabled as well. Signed-off-by: Naveen N. Rao

Re: native_cpu_up speed (Re: [PATCH] x86: skip delays during SMP initialization similar to Xen)

2015-05-29 Thread Jan H. Schönherr
On 05/29/2015 09:47 AM, Len Brown wrote: However, a clear pattern jumped out of the trace for how long the BSP waits for the AP to set itself in cpu_callin_mask. This is the time in start secondary where cpu_init() is running, up through smp_callin() is called. On the 1st package, each remote

[PATCH] clocksource: make ARM_TIMER_SP804 depend on GENERIC_SCHED_CLOCK

2015-05-29 Thread Sudeep Holla
Commit 5261ef2ea836 (ARM: 8366/1: move Dual-Timer SP804 driver to drivers/clocksource) moved SP804 to drivers/clocksource resulting in it being selectable on platforms/architectures without the config GENERIC_SCHED_CLOCK enabled. Due to that, it results in the following build failure(e.g. x86_64

[PATCH 0/3] Add RS-485 support and fix RTS/CTS implementation

2015-05-29 Thread Bhuvanchandra DV
- Add pinmux for UART_0 RTS/CTS pins. - Since hardware can handle RTS/CTS flow control automatically, remove manual control of RTS/CTS from set/get mctrl. - Add RS-485 support for Vybird platform. Bhuvanchandra DV (3): ARM: dts: colibri-vf: Add pinmux for UART_0 aka UART_A RTS/CTS pins

[PATCH 3/3] tty: serial: fsl_lpuart: Add support for RS-485

2015-05-29 Thread Bhuvanchandra DV
Enable Vybrid's build-in support for RS-485 auto RTS for controlling line direction of RS-485 transceiver driver. Signed-off-by: Bhuvanchandra DV bhuvanchandra...@toradex.com --- drivers/tty/serial/fsl_lpuart.c | 60 + 1 file changed, 60 insertions(+)

[PATCH 1/3] ARM: dts: colibri-vf: Add pinmux for UART_0 aka UART_A RTS/CTS pins

2015-05-29 Thread Bhuvanchandra DV
Signed-off-by: Bhuvanchandra DV bhuvanchandra...@toradex.com --- arch/arm/boot/dts/vf-colibri.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/vf-colibri.dtsi b/arch/arm/boot/dts/vf-colibri.dtsi index 68ca125..ad6c5ca 100644 --- a/arch/arm/boot/dts/vf-colibri.dtsi +++

[PATCH 2/3] tty: serial: fsl_lpuart: remove RTS/CTS control from set/get_mctrl

2015-05-29 Thread Bhuvanchandra DV
The LPUART does not provide manual control of RTS/CTS signals, those can only be controlled by the hardware directly. Therefore manual control of those signals through mctrl can not be provided. The current implementation enables/disables the automatic control, which is not what mctrl should do,

linux-next: build failure after merge of the usb-gadget tree

2015-05-29 Thread Stephen Rothwell
Hi Felipe, After merging the usb-gadget tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/linux/module.h:17:0, from drivers/usb/gadget/legacy/nokia.c:19: drivers/usb/gadget/legacy/nokia.c: In function '__check_num_buffers':

[PATCH kernel v11 21/34] powerpc/powernv/ioda2: Add TCE invalidation for all attached groups

2015-05-29 Thread Alexey Kardashevskiy
The iommu_table struct keeps a list of IOMMU groups it is used for. At the moment there is just a single group attached but further patches will add TCE table sharing. When sharing is enabled, TCE cache in each PE needs to be invalidated so does the patch. This does not change

[PATCH kernel v11 33/34] vfio: powerpc/spapr: Register memory and define IOMMU v2

2015-05-29 Thread Alexey Kardashevskiy
The existing implementation accounts the whole DMA window in the locked_vm counter. This is going to be worse with multiple containers and huge DMA windows. Also, real-time accounting would requite additional tracking of accounted pages due to the page size difference - IOMMU uses 4K pages and

[PATCH kernel v11 12/34] vfio: powerpc/spapr: Rework groups attaching

2015-05-29 Thread Alexey Kardashevskiy
This is to make extended ownership and multiple groups support patches simpler for review. This should cause no behavioural change. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru [aw: for the vfio related changes] Acked-by: Alex Williamson alex.william...@redhat.com Reviewed-by: David Gibson

[PATCH kernel v11 16/34] powerpc/spapr: vfio: Replace iommu_table with iommu_table_group

2015-05-29 Thread Alexey Kardashevskiy
Modern IBM POWERPC systems support multiple (currently two) TCE tables per IOMMU group (a.k.a. PE). This adds a iommu_table_group container for TCE tables. Right now just one table is supported. This defines iommu_table_group struct which stores pointers to iommu_group and iommu_table(s). This

Re: [PATCH 1/3] clk: mux: Add regmap support for simple mux

2015-05-29 Thread Sascha Hauer
On Thu, May 28, 2015 at 08:41:46PM +0200, Matthias Brugger wrote: Some devices like SoCs from Mediatek need to use the clock muxes through a regmap interface. This patch adds regmap support for simple the simple multiplexer clock code. Signed-off-by: Matthias Brugger matthias@gmail.com

Re: [PATCH v4 00/11] simplify block layer based on immutable biovecs

2015-05-29 Thread Ming Lin
On Mon, May 25, 2015 at 6:51 AM, Christoph Hellwig h...@lst.de wrote: On Sun, May 24, 2015 at 12:37:32AM -0700, Ming Lin wrote: Except for that these changes looks good, and the previous version passed my tests fine, so with some benchmarks you'ĺl have my ACK. I'll test it on a 2 sockets

Re: [PATCH 1/3] clk: mux: Add regmap support for simple mux

2015-05-29 Thread Joachim Eastwood
Hi Matthias, On 28 May 2015 at 20:41, Matthias Brugger matthias@gmail.com wrote: Some devices like SoCs from Mediatek need to use the clock muxes through a regmap interface. This patch adds regmap support for simple the simple multiplexer clock code. Nice to see regmap support. This

Re: [PATCH] mailbox/bcm2835: Fix mailbox full detection.

2015-05-29 Thread Jassi Brar
On Fri, May 29, 2015 at 3:16 AM, Eric Anholt e...@anholt.net wrote: Stephen Warren swar...@wwwdotorg.org writes: On 05/13/2015 02:10 PM, Eric Anholt wrote: With the VC reader blocked and the ARM writing, MAIL0_STA reads empty permanently while MAIL1_STA goes from empty (0x4000) to

[PULL] Fixes for cpumask, modules.

2015-05-29 Thread Rusty Russell
The following changes since commit 3e0283a53f7d2f2dae7bc4aa7f3104cb5988018f: Merge tag 'pm+acpi-4.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm (2015-05-07 15:58:00 -0700) are available in the git repository at:

Re: [RFC PATCH 1/5] livepatch: ftrace: arm64: Add support for DYNAMIC_FTRACE_WITH_REGS

2015-05-29 Thread Paul Bolle
On Thu, 2015-05-28 at 13:51 +0800, Li Bin wrote: --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig select HAVE_DYNAMIC_FTRACE + select HAVE_DYNAMIC_FTRACE_WITH_REGS if HAVE_DYNAMIC_FTRACE What's the point of if HAVE_DYNAMIC_FTRACE here? That test should always evaluate to true,

[GIT PULL] sound fixes for 4.1-rc6

2015-05-29 Thread Takashi Iwai
Linus, please pull sound fixes for v4.1-rc6 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.1-rc6 The topmost commit is b40eda6408e94ee286cb5720cd3f409f70e01778 sound fixes for 4.1-rc6 No big

Re: [PATCH] ix86: really make user_mode() work correctly for VM86 mode

2015-05-29 Thread Ingo Molnar
* Andy Lutomirski l...@amacapital.net wrote: On May 28, 2015 1:16 AM, Jan Beulich jbeul...@suse.com wrote: While commit efa7045103 (x86/asm/entry: Make user_mode() work correctly if regs came from VM86 mode) claims that user_mode() is now identical to user_mode_vm(), this wasn't

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

2015-05-29 Thread Ingo Molnar
* Stephen Rothwell s...@canb.auug.org.au wrote: Hi all, After merging the kvm tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/kvm/cpuid.c: In function 'kvm_update_cpuid': arch/x86/kvm/cpuid.c:98:2: error: implicit declaration of function 'use_eager_fpu'

Re: [RFC PATCH 1/5] livepatch: ftrace: arm64: Add support for DYNAMIC_FTRACE_WITH_REGS

2015-05-29 Thread Li Bin
On 2015/5/29 15:14, Paul Bolle wrote: On Thu, 2015-05-28 at 13:51 +0800, Li Bin wrote: --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig select HAVE_DYNAMIC_FTRACE +select HAVE_DYNAMIC_FTRACE_WITH_REGS if HAVE_DYNAMIC_FTRACE What's the point of if HAVE_DYNAMIC_FTRACE here? That

Re: [PATCH] ARM: socfpga: add smp_ops.cpu_kill to make kexec/kdump available

2015-05-29 Thread Russell King - ARM Linux
On Fri, May 29, 2015 at 02:38:44PM +0900, Hiraku Toyooka wrote: Kexec_load syscall in ARM checks that machine-specific code has the smp_ops.cpu_kill() before loading kernel image. This patch adds the cpu_kill(), as a result, kexec reboot and kernel crash dump become available in mach-socfpga.

[PATCH kernel v11 22/34] powerpc/powernv: Implement accessor to TCE entry

2015-05-29 Thread Alexey Kardashevskiy
This replaces direct accesses to TCE table with a helper which returns an TCE entry address. This does not make difference now but will when multi-level TCE tables get introduces. No change in behavior is expected. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Reviewed-by: David Gibson

[PATCH kernel v11 25/34] powerpc/powernv/ioda2: Introduce helpers to allocate TCE pages

2015-05-29 Thread Alexey Kardashevskiy
This is a part of moving TCE table allocation into an iommu_ops callback to support multiple IOMMU groups per one VFIO container. This moves the code which allocates the actual TCE tables to helpers: pnv_pci_ioda2_table_alloc_pages() and pnv_pci_ioda2_table_free_pages(). These do not

[PATCH kernel v11 26/34] powerpc/powernv/ioda2: Introduce pnv_pci_ioda2_set_window

2015-05-29 Thread Alexey Kardashevskiy
This is a part of moving DMA window programming to an iommu_ops callback. pnv_pci_ioda2_set_window() takes an iommu_table_group as a first parameter (not pnv_ioda_pe) as it is going to be used as a callback for VFIO DDW code. This adds pnv_pci_ioda2_tvt_invalidate() to invalidate TVT as it is a

[PATCH kernel v11 18/34] vfio: powerpc/spapr/iommu/powernv/ioda2: Rework IOMMU ownership control

2015-05-29 Thread Alexey Kardashevskiy
This adds tce_iommu_take_ownership() and tce_iommu_release_ownership which call in a loop iommu_take_ownership()/iommu_release_ownership() for every table on the group. As there is just one now, no change in behaviour is expected. At the moment the iommu_table struct has a set_bypass() which

[PATCH kernel v11 28/34] vfio: powerpc/spapr: powerpc/powernv/ioda: Define and implement DMA windows API

2015-05-29 Thread Alexey Kardashevskiy
This extends iommu_table_group_ops by a set of callbacks to support dynamic DMA windows management. create_table() creates a TCE table with specific parameters. it receives iommu_table_group to know nodeid in order to allocate TCE table memory closer to the PHB. The exact format of allocated

[PATCH kernel v11 31/34] vfio: powerpc/spapr: powerpc/powernv/ioda2: Use DMA windows API in ownership control

2015-05-29 Thread Alexey Kardashevskiy
Before the IOMMU user (VFIO) would take control over the IOMMU table belonging to a specific IOMMU group. This approach did not allow sharing tables between IOMMU groups attached to the same container. This introduces a new IOMMU ownership flavour when the user can not just control the existing

[PATCH kernel v11 03/34] powerpc/powernv/ioda: Clean up IOMMU group registration

2015-05-29 Thread Alexey Kardashevskiy
The existing code has 3 calls to iommu_register_group() and all 3 branches actually cover all possible cases. This replaces 3 calls with one and moves the registration earlier; the latter will make more sense when we add TCE table sharing. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru

[PATCH kernel v11 15/34] powerpc/powernv/ioda/ioda2: Rework TCE invalidation in tce_build()/tce_free()

2015-05-29 Thread Alexey Kardashevskiy
The pnv_pci_ioda_tce_invalidate() helper invalidates TCE cache. It is supposed to be called on IODA1/2 and not called on p5ioc2. It receives start and end host addresses of TCE table. IODA2 actually needs PCI addresses to invalidate the cache. Those can be calculated from host addresses but since

[PATCH kernel v11 30/34] powerpc/iommu/ioda2: Add get_table_size() to calculate the size of future table

2015-05-29 Thread Alexey Kardashevskiy
This adds a way for the IOMMU user to know how much a new table will use so it can be accounted in the locked_vm limit before allocation happens. This stores the allocated table size in pnv_pci_ioda2_get_table_size() so the locked_vm counter can be updated correctly when a table is being

[PATCH kernel v11 09/34] vfio: powerpc/spapr: Move locked_vm accounting to helpers

2015-05-29 Thread Alexey Kardashevskiy
There moves locked pages accounting to helpers. Later they will be reused for Dynamic DMA windows (DDW). This reworks debug messages to show the current value and the limit. This stores the locked pages number in the container so when unlocking the iommu table pointer won't be needed. This does

[PATCH kernel v11 10/34] vfio: powerpc/spapr: Disable DMA mappings on disabled container

2015-05-29 Thread Alexey Kardashevskiy
At the moment DMA map/unmap requests are handled irrespective to the container's state. This allows the user space to pin memory which it might not be allowed to pin. This adds checks to MAP/UNMAP that the container is enabled, otherwise -EPERM is returned. Signed-off-by: Alexey Kardashevskiy

[PATCH kernel v11 17/34] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group

2015-05-29 Thread Alexey Kardashevskiy
Modern IBM POWERPC systems support multiple (currently two) TCE tables per IOMMU group (a.k.a. PE). This adds a iommu_table_group container for TCE tables. Right now just one table is supported. For IODA, instead of embedding iommu_table, the new iommu_table_group keeps pointers to those. The

[PATCH kernel v11 04/34] powerpc/iommu: Put IOMMU group explicitly

2015-05-29 Thread Alexey Kardashevskiy
So far an iommu_table lifetime was the same as PE. Dynamic DMA windows will change this and iommu_free_table() will not always require the group to be released. This moves iommu_group_put() out of iommu_free_table(). This adds a iommu_pseries_free_table() helper which does iommu_group_put() and

Re: [PATCH v10 11/12] x86, mm, pat: Refactor !pat_enabled handling

2015-05-29 Thread Borislav Petkov
On Wed, May 27, 2015 at 09:19:03AM -0600, Toshi Kani wrote: This patch refactors the !pat_enabled code paths and integrates Please refrain from using such empty phrases like This patch does this and that in your commit messages - it is implicitly obvious that it is this patch when one reads it.

Re: [PATCH v10 10/12] x86, mm, pat: Cleanup init flags in pat_init()

2015-05-29 Thread Borislav Petkov
On Wed, May 27, 2015 at 09:19:02AM -0600, Toshi Kani wrote: pat_init() uses two flags, 'boot_cpu' and 'boot_pat_state', for tracking the boot CPU's initialization status. 'boot_pat_state' is also overloaded to carry the boot PAT value. This patch cleans this up by replacing them with a new

Re: [PATCH 1/2] pinctrl: mvebu: Fix mapping of pin 63 (gpo - gpio)

2015-05-29 Thread Thomas Petazzoni
Dear Andrew Andrianov, On Sat, 11 Apr 2015 23:29:19 +0300, Andrew Andrianov wrote: Signed-off-by: Andrew Andrianov and...@ncrmnt.org --- drivers/pinctrl/mvebu/pinctrl-armada-370.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2] pinctrl: fix confusing debug message in pinctrl_register_map()

2015-05-29 Thread Masahiro Yamada
There are two types for pinctrl maps: pinmux and pinconfig. This debug message shows the number of maps with both types. The string pinmux map is not precise. Let's say pinctrl map instead. While we are here, fix the %d/%u mismatch too. Signed-off-by: Masahiro Yamada

Re: [PATCH] mailbox/bcm2835: Fix mailbox full detection.

2015-05-29 Thread Jassi Brar
On Fri, May 29, 2015 at 2:15 AM, Stephen Warren swar...@wwwdotorg.org wrote: On 05/13/2015 02:10 PM, Eric Anholt wrote: With the VC reader blocked and the ARM writing, MAIL0_STA reads empty permanently while MAIL1_STA goes from empty (0x4000) to non-empty (0x0001-0x0007) to full

Re: [PATCH v2 0/2] extcon: Inform the state of both ID and VBUS pin for USB

2015-05-29 Thread Ivan T. Ivanov
Hi, On Thu, 2015-05-28 at 17:23 +0300, Roger Quadros wrote: +Peter Li, Ivan, On 28/05/15 11:45, Ivan T. Ivanov wrote: Hi Chanwoo, On Wed, 2015-05-27 at 21:15 +0900, Chanwoo Choi wrote: Previously, I discussed how to inform the changed state of both ID and VBUS pin for USB

Re: [PATCH v2 0/2] extcon: Inform the state of both ID and VBUS pin for USB

2015-05-29 Thread Ivan T. Ivanov
Hi, On Thu, 2015-05-28 at 17:23 +0300, Roger Quadros wrote: +Peter Li, Ivan, On 28/05/15 11:45, Ivan T. Ivanov wrote: Hi Chanwoo, On Wed, 2015-05-27 at 21:15 +0900, Chanwoo Choi wrote: Previously, I discussed how to inform the changed state of both ID and VBUS pin for USB

Re: [PATCH 0/2] numa,sched: resolve conflict between load balancing and NUMA balancing

2015-05-29 Thread Artem Bityutskiy
On Wed, 2015-05-27 at 15:04 -0400, r...@redhat.com wrote: A previous attempt to resolve a major conflict between load balancing and NUMA balancing, changeset 095bebf61a46 (sched/numa: Do not move past the balance point if unbalanced), introduced its own problems. Revert that changeset, and

[PATCH] mtd: use cfi-util in jedecprobe

2015-05-29 Thread Arnd Bergmann
A recent change to move cfi helper functions out of line is causing build errors when cfi-util is a loadable module and jedecprobe is built-in: drivers/built-in.o: In function `jedec_reset': (.text+0x140694): undefined reference to `cfi_send_gen_cmd' drivers/built-in.o: In function

[PATCH kernel v11 24/34] powerpc/powernv/ioda2: Rework iommu_table creation

2015-05-29 Thread Alexey Kardashevskiy
This moves iommu_table creation to the beginning to make following changes easier to review. This starts using table parameters from the iommu_table struct. This should cause no behavioural change. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Reviewed-by: David Gibson

[PATCH kernel v11 29/34] powerpc/powernv/ioda2: Use new helpers to do proper cleanup on PE release

2015-05-29 Thread Alexey Kardashevskiy
The existing code programmed TVT#0 with some address and then immediately released that memory. This makes use of pnv_pci_ioda2_unset_window() and pnv_pci_ioda2_set_bypass() which do correct resource release and TVT update. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru ---

[PATCH kernel v11 27/34] powerpc/powernv: Implement multilevel TCE tables

2015-05-29 Thread Alexey Kardashevskiy
TCE tables might get too big in case of 4K IOMMU pages and DDW enabled on huge guests (hundreds of GB of RAM) so the kernel might be unable to allocate contiguous chunk of physical memory to store the TCE table. To address this, POWER8 CPU (actually, IODA2) supports multi-level TCE tables, up to

[PATCH kernel v11 23/34] powerpc/iommu/powernv: Release replaced TCE

2015-05-29 Thread Alexey Kardashevskiy
At the moment writing new TCE value to the IOMMU table fails with EBUSY if there is a valid entry already. However PAPR specification allows the guest to write new TCE value without clearing it first. Another problem this patch is addressing is the use of pool locks for external IOMMU users such

[PATCH kernel v11 13/34] powerpc/powernv: Do not set read flag if direction==DMA_NONE

2015-05-29 Thread Alexey Kardashevskiy
Normally a bitmap from the iommu_table is used to track what TCE entry is in use. Since we are going to use iommu_table without its locks and do xchg() instead, it becomes essential not to put bits which are not implied in the direction flag as the old TCE value (more precisely - the permission

Re: [PATCH RFC] s390/sclp: pass timeout as HZ independent value

2015-05-29 Thread Heiko Carstens
On Wed, May 27, 2015 at 07:04:43PM +0200, Nicholas Mc Guire wrote: schedule_timeout takes a timeout in jiffies but the code currently is passing in a constant SDIAS_SLEEP_TICKS which sounds like it should be in jiffies but it is actually not and thus makes this timeout HZ dependent, to fix

linux-next: build failure after merge of the kvm tree

2015-05-29 Thread Stephen Rothwell
Hi all, After merging the kvm tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/kvm/cpuid.c: In function 'kvm_update_cpuid': arch/x86/kvm/cpuid.c:98:2: error: implicit declaration of function 'use_eager_fpu' [-Werror=implicit-function-declaration]

Re: [BUG, bisect] ALSA: hda - No sound output

2015-05-29 Thread Takashi Iwai
At Fri, 29 May 2015 00:27:14 -0700, Jeremiah Mahler wrote: Takashi, all, On several of my machines there is no longer any sound output when running the latest linux-next (20150528). Activity can be seen in a mixer such as pavucontrol suggesting that there should be sound, but both the

native_cpu_up speed (Re: [PATCH] x86: skip delays during SMP initialization similar to Xen)

2015-05-29 Thread Len Brown
I don't know if anything can be done for the 1700us wait for the remote processor to mark itself initialized. That is the 1st thing it does when it enters cpu_init(). So that 1.7 msecs delay is the firmware in essence? Yes -- hardware+microcode+firmware initialization. I measured this on

Re: [PATCH v2 1/2] extcon: Add extcon_set_cable_line_state() to inform the additional state of external connectors

2015-05-29 Thread Chanwoo Choi
On 05/28/2015 06:37 PM, Ivan T. Ivanov wrote: Hi, On Thu, 2015-05-28 at 18:17 +0900, Chanwoo Choi wrote: 2015년 5월 28일 목요일, Ivan T. Ivanoviiva...@mm-sol.com님이 작성한 메시지: Hi Chanwoo, On Thu, 2015-05-28 at 00:06 +0900, Chanwoo Choi wrote: On Wed, May 27, 2015 at 11:38 PM, Roger Quadros

Re: [PATCH 1/1] iio: Add iio_mod_light_uva, iio_mod_light_uvb, and iio_mod_light_uvc.

2015-05-29 Thread Lars-Peter Clausen
On 05/29/2015 10:04 AM, Kevin Tsai wrote: Add Ultraviolet(UV) support: UVA: 315 ~ 400 nm UVB: 280 ~ 315 nm UVC: 100 ~ 280 nm We need documentation for these new modifiers in Documentation/ABI/testing/sys-bus-iio. Otherwise looks ok. - Lars -- To unsubscribe from this list: send the line

Re: [GIT PULL] sound fixes for 4.1-rc6

2015-05-29 Thread Takashi Iwai
At Fri, 29 May 2015 09:21:51 +0200, Takashi Iwai wrote: Linus, please pull sound fixes for v4.1-rc6 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.1-rc6 The topmost commit is b40eda6408e94ee286cb5720cd3f409f70e01778

Re: [PATCH] mmc: sdhci-bcm2835: Actually enable the clock

2015-05-29 Thread Russell King - ARM Linux
On Thu, May 28, 2015 at 05:03:12PM -0700, Eric Anholt wrote: We're currently using a fixed frequency clock specified in the DT, so enabling is a no-op. However, the RPi firmware-based clocks driver can actually disable unused clocks, so when switching to use it we ended up losing our MMC

[PATCH kernel v11 00/34] powerpc/iommu/vfio: Enable Dynamic DMA windows

2015-05-29 Thread Alexey Kardashevskiy
This enables sPAPR defined feature called Dynamic DMA windows (DDW). Each Partitionable Endpoint (IOMMU group) has an address range on a PCI bus where devices are allowed to do DMA. These ranges are called DMA windows. By default, there is a single DMA window, 1 or 2GB big, mapped at zero on a

[PATCH kernel v11 14/34] powerpc/iommu: Move tce_xxx callbacks from ppc_md to iommu_table

2015-05-29 Thread Alexey Kardashevskiy
This adds a iommu_table_ops struct and puts pointer to it into the iommu_table struct. This moves tce_build/tce_free/tce_get/tce_flush callbacks from ppc_md to the new struct where they really belong to. This adds the requirement for @it_ops to be initialized before calling iommu_init_table() to

[PATCH kernel v11 01/34] powerpc/eeh/ioda2: Use device::iommu_group to check IOMMU group

2015-05-29 Thread Alexey Kardashevskiy
This relies on the fact that a PCI device always has an IOMMU table which may not be the case when we get dynamic DMA windows so let's use more reliable check for IOMMU group here. As we do not rely on the table presence here, remove the workaround from pnv_pci_ioda2_set_bypass(); also remove the

[PATCH kernel v11 02/34] powerpc/iommu/powernv: Get rid of set_iommu_table_base_and_group

2015-05-29 Thread Alexey Kardashevskiy
The set_iommu_table_base_and_group() name suggests that the function sets table base and add a device to an IOMMU group. The actual purpose for table base setting is to put some reference into a device so later iommu_add_device() can get the IOMMU group reference and the device to the group. At

[PATCH kernel v11 08/34] vfio: powerpc/spapr: Use it_page_size

2015-05-29 Thread Alexey Kardashevskiy
This makes use of the it_page_size from the iommu_table struct as page size can differ. This replaces missing IOMMU_PAGE_SHIFT macro in commented debug code as recently introduced IOMMU_PAGE_XXX macros do not include IOMMU_PAGE_SHIFT. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru

[PATCH kernel v11 06/34] vfio: powerpc/spapr: Move page pinning from arch code to VFIO IOMMU driver

2015-05-29 Thread Alexey Kardashevskiy
This moves page pinning (get_user_pages_fast()/put_page()) code out of the platform IOMMU code and puts it to VFIO IOMMU driver where it belongs to as the platform code does not deal with page pinning. This makes iommu_take_ownership()/iommu_release_ownership() deal with the IOMMU table bitmap

[PATCH kernel v11 11/34] vfio: powerpc/spapr: Moving pinning/unpinning to helpers

2015-05-29 Thread Alexey Kardashevskiy
This is a pretty mechanical patch to make next patches simpler. New tce_iommu_unuse_page() helper does put_page() now but it might skip that after the memory registering patch applied. As we are here, this removes unnecessary checks for a value returned by pfn_to_page() as it cannot possibly

[PATCH kernel v11 34/34] vfio: powerpc/spapr: Support Dynamic DMA windows

2015-05-29 Thread Alexey Kardashevskiy
This adds create/remove window ioctls to create and remove DMA windows. sPAPR defines a Dynamic DMA windows capability which allows para-virtualized guests to create additional DMA windows on a PCI bus. The existing linux kernels use this new window to map the entire guest memory and switch to the

Re: [PATCH] proc/schedstat: Expose /proc/pid/schedstat if delay accounting is enabled

2015-05-29 Thread Naveen N. Rao
On 2015/05/29 10:04AM, Ingo Molnar wrote: * Naveen N. Rao naveen.n@linux.vnet.ibm.com wrote: /proc/pid/schedstat is currently only available if CONFIG_SCHEDSTATS is enabled. But, all the fields that this exposes are available and valid if CONFIG_TASK_DELAY_ACCT is enabled as well.

[PATCH kernel v11 32/34] powerpc/mmu: Add userspace-to-physical addresses translation cache

2015-05-29 Thread Alexey Kardashevskiy
We are adding support for DMA memory pre-registration to be used in conjunction with VFIO. The idea is that the userspace which is going to run a guest may want to pre-register a user space memory region so it all gets pinned once and never goes away. Having this done, a hypervisor will not have

[PATCH kernel v11 19/34] powerpc/iommu: Fix IOMMU ownership control functions

2015-05-29 Thread Alexey Kardashevskiy
This adds missing locks in iommu_take_ownership()/ iommu_release_ownership(). This marks all pages busy in iommu_table::it_map in order to catch errors if there is an attempt to use this table while ownership over it is taken. This only clears TCE content if there is no page marked busy in

[PATCH kernel v11 07/34] vfio: powerpc/spapr: Check that IOMMU page is fully contained by system page

2015-05-29 Thread Alexey Kardashevskiy
This checks that the TCE table page size is not bigger that the size of a page we just pinned and going to put its physical address to the table. Otherwise the hardware gets unwanted access to physical memory between the end of the actual page and the end of the aligned up TCE page. Since

[PATCH kernel v11 20/34] powerpc/powernv/ioda2: Move TCE kill register address to PE

2015-05-29 Thread Alexey Kardashevskiy
At the moment the DMA setup code looks for the ibm,opal-tce-kill property which contains the TCE kill register address. Writing to this register invalidates TCE cache on IODA/IODA2 hub. This moves the register address from iommu_table to pnv_pnb as this register belongs to PHB and invalidates TCE

[PATCH] cgroup: add seq_file forward declaration for struct cftype

2015-05-29 Thread Arnd Bergmann
Recent header file changes for cgroup caused lots of warnings about a missing struct seq_file form declaration for every inclusion of include/linux/cgroup-defs.h. As some files are built with -Werror, this leads to build failure like: from

[PATCH kernel v11 05/34] powerpc/iommu: Always release iommu_table in iommu_free_table()

2015-05-29 Thread Alexey Kardashevskiy
At the moment iommu_free_table() only releases memory if the table was initialized for the platform code use, i.e. it had it_map initialized (which purpose is to track DMA memory space use). With dynamic DMA windows, we will need to be able to release iommu_table even if it was used for VFIO in

[PATCH] The same content in the comment appear twice.

2015-05-29 Thread Gong Zhaogang
From: gongzhaogang gongzhaog...@inspur.com Delete the extra content in the comment. return_object - Where to put method's return value (if any). If NULL, no value is returned. Signed-off-by: Gong Zhaogang gongzhaog...@inspur.com --- drivers/acpi/acpica/nseval.c | 2 -- 1

Re: [PATCH] perf tools: Make Ctrl-C stop processing on TUI

2015-05-29 Thread Ingo Molnar
* Namhyung Kim namhy...@kernel.org wrote: It was inconvenient that perf cannot be quit with SIGINT during processing samples on TUI especially for large data files. This was because the first argument of SLang_init_tty(), abort_char, being 0. The manual says it's the ascii value of the

Re: [PATCH] memcg: do not call reclaim if !__GFP_WAIT

2015-05-29 Thread Michal Hocko
On Thu 28-05-15 12:59:34, Andrew Morton wrote: On Thu, 28 May 2015 20:26:06 +0300 Vladimir Davydov vdavy...@parallels.com wrote: When trimming memcg consumption excess (see memory.high), we call try_to_free_mem_cgroup_pages without checking if we are allowed to sleep in the current

Re: [PATCH v5] Fix the resolution issue in ChromeOS

2015-05-29 Thread Frans Klaver
Hi, On Fri, May 29, 2015 at 6:27 AM, HungNien Chen hn.c...@weidahitech.com wrote: Signed-off-by: HungNien Chen hn.c...@weidahitech.com This seems rather short for adding a new driver. I also just noticed that your subjects don't quite match up with the actual contents of the commit. They rather

Re: linux-next: manual merge of the rcu tree with the modules and tip trees

2015-05-29 Thread Ingo Molnar
* Paul E. McKenney paul...@linux.vnet.ibm.com wrote: On Thu, May 28, 2015 at 05:25:07PM +1000, Stephen Rothwell wrote: Hi Paul, Today's linux-next merge of the rcu tree got a conflict in include/linux/rcupdate.h between commits 0a04b0166929 (rcu: Move lockless_dereference() out of

check_tsc_time_warp() (was Re: [PATCH] x86: skip delays during SMP initialization similar to Xen)

2015-05-29 Thread Len Brown
On Sun, May 17, 2015 at 1:26 AM, Ingo Molnar mi...@kernel.org wrote: check_tsc_warp() is hard-coded to take 2ms. I don't know if 2ms is a magic number or if shorter has same value. It seems a bit sad to do this serially for every CPU at boot, when we could do all the CPUs in parallel after

[PATCH v3] ARM: dts: mt8173: support arm64 cpuidle-dt

2015-05-29 Thread Howard Chen
This patch adds an idle-states node to describe the mt8173 idle states and also adds references to the idle-states node in all CPU nodes. Signed-off-by: Howard Chen howard.c...@linaro.org --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff

[PATCH] ARM: socfpga: add smp_ops.cpu_kill to make kexec/kdump available

2015-05-29 Thread Hiraku Toyooka
Kexec_load syscall in ARM checks that machine-specific code has the smp_ops.cpu_kill() before loading kernel image. This patch adds the cpu_kill(), as a result, kexec reboot and kernel crash dump become available in mach-socfpga. Signed-off-by: Hiraku Toyooka hiraku.toyooka...@hitachi.com Cc:

[PATCH v7] serial: 8250_uniphier: add UniPhier serial driver

2015-05-29 Thread Masahiro Yamada
Add the driver for on-chip UART used on UniPhier SoCs. This hardware is similar to 8250, but the register mapping is slightly different: - The offset to FCR, MCR is different. - The divisor latch access bit does not exist. Instead, the divisor latch register is available at offset 9.

[GIT PULL REQUEST] more md bug fixes for 4.1-rc

2015-05-29 Thread NeilBrown
Hi Linus, please pull these fixes. I think raid5 is all working nicely again now. I think there is still a race somewhere in starting the recovery thread, but it is minor and I suspect I'll have it nailed soon. Not quite this week though. Thanks, NeilBrown The following changes since

[PATCH v4 3/5] block: loop: use kthread_work

2015-05-29 Thread Ming Lei
The following patch will use dio/aio to submit IO to backing file, then it needn't to schedule IO concurrently from work, so use kthread_work for decreasing context switch cost a lot. For non-AIO case, single thread has been used for long long time, and it was just converted to work in v4.0,

Re: [patch] inherited events not signalling parent on overflow

2015-05-29 Thread Ingo Molnar
* Vince Weaver vincent.wea...@maine.edu wrote: We're trying to get self-monitoring multi-threaded sampling working in PAPI. Fun times. Is this even possible? Ideally in your parent thread you could perf_event_open() with inherit set. Then your program (say an OpenMP program) would

Re: [RFC] Moving unseen/inactive MAINTAINER M: names and email addresses to CREDITS

2015-05-29 Thread Sudip Mukherjee
On Thu, May 28, 2015 at 12:59:45PM -0700, Joe Perches wrote: On Wed, 2015-05-27 at 14:06 -0700, Andrew Morton wrote: On Wed, 27 May 2015 14:01:44 -0700 Joe Perches j...@perches.com wrote: I'll send a private email to all these people and see if they want to be listed in the MAINTAINERS file

Re: [PATCH v5 00/11] Add simple NVMEM Framework via regmap.

2015-05-29 Thread Srinivas Kandagatla
On 29/05/15 02:20, Dan Williams wrote: On Thu, May 21, 2015 at 9:42 AM, Srinivas Kandagatla srinivas.kandaga...@linaro.org wrote: Thankyou all for providing inputs and comments on previous versions of this patchset. Here is the v5 of the patchset addressing all the issues raised as part of

Re: intel_check_page_flip() - WARN_ON(!in_interrupt())

2015-05-29 Thread Jani Nikula
On Fri, 29 May 2015, Shuah Khan shua...@osg.samsung.com wrote: I am seeing the following in the dmesg on 4.0.4 with rt patch [5.720319] [ cut here ] [5.720347] WARNING: CPU: 6 PID: 466 at drivers/gpu/drm/i915/intel_display.c:9748

Re: [PATCH 0/5] Add Mediatek MT8173 subsystem clocks support

2015-05-29 Thread Sascha Hauer
On Fri, May 29, 2015 at 10:47:29AM +0800, James Liao wrote: Hi Sascha, And really the driver matching mediatek,mt8173-vencsys should register the necessary clocks and reset lines and call of_platform_populate on the subnodes. The driver should also be a real driver, not something

Re: [PATCH 0/3] clk: Add regmap support for clk mulitplexer

2015-05-29 Thread Sascha Hauer
On Thu, May 28, 2015 at 08:41:45PM +0200, Matthias Brugger wrote: This patch set adds regmap support for the simple clock multiplexer. Regmap use, apart from a pointer to the regmap struct needs an offset value to know where in the regmap it has to read/write. We add both fields to struct

[PATCH v4 1/5] fs: kiocb: introduce IOCB_DONT_DIRTY_PAGE flag for direct IO

2015-05-29 Thread Ming Lei
When direct IO is submitted from kernel, it is often unnecessary to dirty pages, for example of loop, dirtying pages have been considered in the upper filesystem(over loop) side already, and they don't need to be dirtied again. So this patch introduces IOCB_DONT_DIRTY_PAGE flag for direct IO, and

[PATCH v4 0/4] block: loop: improve loop with AIO

2015-05-29 Thread Ming Lei
Hi Guys, There are about 3 advantages to use direct I/O and AIO on read/write loop's backing file: 1) double cache can be avoided, then memory usage gets decreased a lot 2) not like user space direct I/O, there isn't cost of pinning pages 3) avoid context switch for obtaining good throughput -

  1   2   3   4   5   6   7   8   9   10   >