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

2015-05-29 Thread Ingo Molnar
* Naveen N. Rao wrote: > On 2015/05/29 10:04AM, Ingo Molnar wrote: > > > > * Naveen N. Rao wrote: > > > > > /proc//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

Re: [PATCH v10 12/12] drivers/block/pmem: Map NVDIMM with ioremap_wt()

2015-05-29 Thread Borislav Petkov
On Wed, May 27, 2015 at 09:19:04AM -0600, Toshi Kani wrote: > The pmem driver maps NVDIMM with ioremap_nocache() as we cannot > write back the contents of the CPU caches in case of a crash. > > This patch changes to use ioremap_wt(), which provides uncached > writes but cached reads, for

[PATCH] checkpatch: Fix "GLOBAL_INITIALISERS" test

2015-05-29 Thread Joe Perches
commit d5e616fc1c1d ("checkpatch: add a few more --fix corrections") broke the GLOBAL_INITIALISERS test with bad parentheses and optional leading spaces. Fix it. Reported-by: Bandan Das Signed-off-by: Joe Perches --- On Thu, 2015-05-28 at 23:41 -0400, Bandan Das wrote: > Hi Joe, Hi Bandan. >

Re: [PATCH] fixup! dmaengine: pxa_dma: add debug information

2015-05-29 Thread Vinod Koul
On Wed, May 27, 2015 at 11:23:40PM +0200, Robert Jarzmik wrote: > This fixes the following error: > drivers/dma/pxa_dma.c: In function ‘dbg_show_requester_chan’: > drivers/dma/pxa_dma.c:192:2: error: void value not ignored as it ought to be > pos += seq_printf(s, "DMA channel %d requester :\n",

Re: [PATCH v3 5/6] Watchdog: introduce ARM SBSA watchdog driver

2015-05-29 Thread Fu Wei
Hi Guenter, Great thanks, feedback inline On 26 May 2015 at 03:39, Guenter Roeck wrote: > On 05/25/2015 03:03 AM, fu@linaro.org wrote: >> >> From: Fu Wei >> >> This driver bases on linux kernel watchdog framework, and >> use "pretimeout" in the framework. It supports getting timeout and >>

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 > --- > drivers/pinctrl/mvebu/pinctrl-armada-370.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-370.c >

[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 --- Changes in v2:

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

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

2015-05-29 Thread Gong Zhaogang
From: gongzhaogang 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 --- drivers/acpi/acpica/nseval.c | 2 -- 1 file changed, 2 deletions(-) diff --git

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

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

[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] 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 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 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//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 wrote: > > > /proc//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:

[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

[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 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 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

[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 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 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 Reviewed-by: Gavin

[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 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 [aw: for the vfio related changes] Acked-by: Alex Williamson Reviewed-by: David Gibson Reviewed-by: Gavin Shan ---

[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

[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 Reviewed-by: David

[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 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 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 Reviewed-by: David Gibson Reviewed-by:

[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 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 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 Reviewed-by: David Gibson Reviewed-by: Gavin Shan ---

[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 ---

[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

[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 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 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] 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

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

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

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 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,

[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 --- 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 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 --- drivers/tty/serial/fsl_lpuart.c | 60 + 1 file changed, 60 insertions(+) diff --git

[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

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 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: 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

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

2015-05-29 Thread Ingo Molnar
* Naveen N. Rao wrote: > /proc//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 > --- > fs/proc/base.c | 11 +++ > 1

[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 --- 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(+) diff --git

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

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. Ivanov님이 작성한 메시지: >>> 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: 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=178271=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

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

2015-05-29 Thread Ingo Molnar
* Stephen Rothwell 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'

[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 AuthorDate: Thu, 28 May 2015 09:16:45 +0100 Committer: Ingo Molnar CommitDate: Fri, 29 May 2015 09:46:40 +0200 x86/asm/entry/32: Really

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

2015-05-29 Thread Ingo Molnar
* Andy Lutomirski wrote: > On May 28, 2015 1:16 AM, "Jan Beulich" 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 actually the case - no prior

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

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

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

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 > >

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

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: [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

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

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

2015-05-29 Thread Ingo Molnar
* Andi Kleen 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] mailbox/bcm2835: Fix mailbox full detection.

2015-05-29 Thread Jassi Brar
On Fri, May 29, 2015 at 2:15 AM, Stephen Warren 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 (0x8008).

[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 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: [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

[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: [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 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 previous versions review. 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 wrote: > Stephen Warren 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 non-empty >>>

Re: [PATCH v4 01/11] block: make generic_make_request handle arbitrarily sized bios

2015-05-29 Thread Ming Lin
On Wed, May 27, 2015 at 5:36 PM, Alasdair G Kergon wrote: > On Wed, May 27, 2015 at 04:42:44PM -0700, Ming Lin wrote: >> Here are fio results of XFS on a DM stripped target with 2 SSDs + 1 HDD. >> Does it make sense? > > To stripe across devices with different characteristics? > > Some

Re: [PATCH] backlight: change the return type of backlight_update_status() to int

2015-05-29 Thread Lee Jones
On Thu, 28 May 2015, Hyungwon Hwang wrote: > Backlight device returns the result of update_status(), but > backlight_update_status() ignores it. So the consumers cannot confirm the > result of their function call. This patch makes the result to be returned > back for consumers. > >

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 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 they are

[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 --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git

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 wrote: > > I'll send a private email to all these people and see if they > want to be listed in the MAINTAINERS file and see

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 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 something I would also

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

2015-05-29 Thread Ingo Molnar
* Paul E. McKenney 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 rcupdate.h")

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 wrote: > Signed-off-by: HungNien Chen 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 seem to mention the difference between 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 > 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 context, which

Re: Device Tree Blob (DTB) licence

2015-05-29 Thread Willy Tarreau
On Thu, May 28, 2015 at 06:52:52PM +0200, Enrico Weigelt, metux IT consult wrote: > Am 28.05.2015 um 15:34 schrieb Russell King - ARM Linux: > > >>What's the big deal with having DTS/DTB under GPL ? > > > >It's really quite simple. Other open source projects won't touch > >_our_ DTB with a

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

2015-05-29 Thread Ingo Molnar
* Namhyung Kim 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 control >

Re: [PATCH v4 3/17] video: fbdev: gbefb: use arch_phys_wc_add() and devm_ioremap_wc()

2015-05-29 Thread Ingo Molnar
* Luis R. Rodriguez wrote: > + gbe_mem = devm_ioremap_wc(_dev->dev, gbe_mem_phys, > + gbe_mem_size); > + gbe_mem = dma_alloc_writecombine(NULL, gbe_mem_size, > + _dma_addr, GFP_KERNEL);

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 > --- >

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 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] inherited events not signalling parent on overflow

2015-05-29 Thread Ingo Molnar
* Vince Weaver 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 do its thing and

<    3   4   5   6   7   8   9   10   11   12   >