[PATCH v4 03/28] vfio: powerpc/spapr: Check that TCE page size is equal to it_page_size

2015-02-16 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

Re: [RFC PATCH 9/9] livepatch: update task universe when exiting kernel

2015-02-16 Thread Jiri Slaby
On 02/09/2015, 06:31 PM, Josh Poimboeuf wrote: > Update a tasks's universe when returning from a system call or user > space interrupt, or after handling a signal. > > This greatly increases the chances of a patch operation succeeding. If > a task is I/O bound, it can switch universes when

[PATCH v4 02/28] vfio: powerpc/spapr: Do cleanup when releasing the group

2015-02-16 Thread Alexey Kardashevskiy
This clears the TCE table when a container is being closed as this is a good thing to leave the table clean before passing the ownership back to the host kernel. Signed-off-by: Alexey Kardashevskiy --- drivers/vfio/vfio_iommu_spapr_tce.c | 14 +++--- 1 file changed, 11 insertions(+), 3

[PATCH v4 11/28] powerpc/iommu: Introduce iommu_table_alloc() helper

2015-02-16 Thread Alexey Kardashevskiy
This replaces multiple calls of kzalloc_node() with a new iommu_table_alloc() helper. Right now it calls kzalloc_node() but later it will be modified to allocate a powerpc_iommu struct with a single iommu_table in it. Later the helper will allocate a powerpc_iommu struct which embeds the iommu

[PATCH v4 05/28] vfio: powerpc/spapr: Move locked_vm accounting to helpers

2015-02-16 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 v4 28/28] vfio: powerpc/spapr: Support Dynamic DMA windows

2015-02-16 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

[PATCH v4 08/28] vfio: powerpc/spapr: Register memory

2015-02-16 Thread Alexey Kardashevskiy
The existing implementation accounts the whole DMA window in the locked_vm counter which is going to be even worse with multiple containers and huge DMA windows. This introduces 2 ioctls to register/unregister DMA memory which receive user space address and size of a memory region which needs to

[PATCH v4 15/28] powerpc/powernv/ioda/ioda2: Rework tce_build()/tce_free()

2015-02-16 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. This approach makes it possible to get pnv_pci_ioda_tce_invalidate() unintentionally called on p5ioc2. Another

[PATCH v4 00/28] powerpc/iommu/vfio: Enable Dynamic DMA windows

2015-02-16 Thread Alexey Kardashevskiy
This enables PAPR defined feature called Dynamic DMA windows (DDW). Each Partitionable Endpoint (IOMMU group) has a separate DMA window on a PCI bus where devices are allows to perform DMA. By default there is 1 or 2GB window allocated at the host boot time and these windows are used when an

[PATCH v4 19/28] powerpc/powernv/ioda2: Introduce pnv_pci_ioda2_create_table

2015-02-16 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 is a mechanical patch. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/platforms/powernv/pci-ioda.c | 88 +++ 1 file changed,

[PATCH v4 07/28] vfio: powerpc/spapr: Moving pinning/unpinning to helpers

2015-02-16 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 v4 20/28] powerpc/powernv/ioda2: Introduce pnv_pci_ioda2_set_window

2015-02-16 Thread Alexey Kardashevskiy
This is a part of moving DMA window programming to an iommu_ops callback. This is a mechanical patch. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/platforms/powernv/pci-ioda.c | 84 --- 1 file changed, 56 insertions(+), 28 deletions(-) diff --git

[PATCH v4 12/28] powerpc/spapr: vfio: Switch from iommu_table to new powerpc_iommu

2015-02-16 Thread Alexey Kardashevskiy
Modern IBM POWERPC systems support multiple (currently two) TCE tables per IOMMU group (a.k.a. PE). This adds a powerpc_iommu container for TCE tables. Right now just one table is supported. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/include/asm/iommu.h| 18 +++--

[PATCH v4 24/28] powerpc/powernv/ioda: Define and implement DMA table/window management callbacks

2015-02-16 Thread Alexey Kardashevskiy
This extends powerpc_iommu_ops by a set of callbacks to support dynamic DMA windows management. query() returns IOMMU capabilities such as default DMA window address and supported number of DMA windows and TCE table levels. create_table() creates a TCE table with specific parameters. For now it

[PATCH v4 16/28] powerpc/iommu/powernv: Release replaced TCE

2015-02-16 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 v4 09/28] powerpc/powernv: Do not set "read" flag if direction==DMA_NONE

2015-02-16 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. Signed-off-by: Alexey Kardashevskiy Reviewed-by:

[PATCH v4 13/28] powerpc/iommu: Fix IOMMU ownership control functions

2015-02-16 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 v4 14/28] vfio: powerpc/spapr: powerpc/powernv/ioda2: Rework IOMMU ownership control

2015-02-16 Thread Alexey Kardashevskiy
At the moment the iommu_table struct has a set_bypass() which enables/ disables DMA bypass on IODA2 PHB. This is exposed to POWERPC IOMMU code which calls this callback when external IOMMU users such as VFIO are about to get over a PHB. The set_bypass() callback is not really an iommu_table

[PATCH v4 25/28] vfio: powerpc/spapr: powerpc/powernv/ioda2: Rework ownership

2015-02-16 Thread Alexey Kardashevskiy
This uses new helpers to remove the default TCE table if the ownership is being taken and create it otherwise. So once an external user (such as VFIO) obtained the ownership over a group, it does not have any DMA windows, neither default 32bit not bypass window. The external user is expected to

[PATCH v4 26/28] vfio: powerpc/spapr: Rework an IOMMU group attach/detach

2015-02-16 Thread Alexey Kardashevskiy
Signed-off-by: Alexey Kardashevskiy --- drivers/vfio/vfio_iommu_spapr_tce.c | 62 +++-- 1 file changed, 38 insertions(+), 24 deletions(-) diff --git a/drivers/vfio/vfio_iommu_spapr_tce.c b/drivers/vfio/vfio_iommu_spapr_tce.c index fdcc04c..4ff8289 100644 ---

[PATCH v4 21/28] powerpc/iommu: Split iommu_free_table into 2 helpers

2015-02-16 Thread Alexey Kardashevskiy
The iommu_free_table helper release memory it is using (the TCE table and @it_map) and release the iommu_table struct as well. We might not want the very last step as we store iommu_table in parent structures. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/include/asm/iommu.h | 1 +

[PATCH v4 23/28] powerpc/powernv: Change prototypes to receive iommu

2015-02-16 Thread Alexey Kardashevskiy
This changes few functions to receive a powerpc_iommu pointer rather than PE as they are going to be a part of upcoming powerpc_iommu_ops callback set. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/platforms/powernv/pci-ioda.c | 13 - 1 file changed, 8 insertions(+), 5

[PATCH v4 22/28] powerpc/powernv: Implement multilevel TCE tables

2015-02-16 Thread Alexey Kardashevskiy
This adds multi-level TCE tables support to pnv_pci_ioda2_create_table() and pnv_pci_ioda2_free_table() callbacks. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/include/asm/iommu.h | 4 + arch/powerpc/platforms/powernv/pci-ioda.c | 125 +++---

[PATCH v4 27/28] vfio: powerpc/spapr: Register memory

2015-02-16 Thread Alexey Kardashevskiy
The existing implementation accounts the whole DMA window in the locked_vm counter which is going to be even worse with multiple containers and huge DMA windows. This introduces 2 ioctls to register/unregister DMA memory which receive user space address and size of the memory region which needs

[PATCH v4 18/28] poweppc/powernv/ioda2: Rework iommu_table creation

2015-02-16 Thread Alexey Kardashevskiy
This moves iommu_table creation to the beginning. This is a mechanical patch. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/platforms/powernv/pci-ioda.c | 31 +-- drivers/vfio/vfio_iommu_spapr_tce.c | 4 +++- 2 files changed, 20 insertions(+), 15

[PATCH v4 17/28] powerpc/pseries/lpar: Enable VFIO

2015-02-16 Thread Alexey Kardashevskiy
The previous patch introduced iommu_table_ops::exchange() callback which effectively disabled VFIO on pseries. This implements exchange() for pseries/lpar so VFIO can work in nested guests. Since exchange() callback returns an old TCE, it has to call H_GET_TCE for every TCE being put to the table

[PATCH v4 06/28] vfio: powerpc/spapr: Disable DMA mappings on disabled container

2015-02-16 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 v4 10/28] powerpc/iommu: Move tce_xxx callbacks from ppc_md to iommu_table

2015-02-16 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 v4 04/28] vfio: powerpc/spapr: Use it_page_size

2015-02-16 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 v4 01/28] vfio: powerpc/spapr: Move page pinning from arch code to VFIO IOMMU driver

2015-02-16 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

Re: [PATCH v2 6/6] irqchip: gicv3: skip ITS init when no ITS available

2015-02-16 Thread Vladimir Murzin
Hi Yun, On 15/02/15 09:32, Yun Wu wrote: > There is one more condition that needs to be considered when judging > whether LPI feature is enabled or not, which is whether there is any > ITS available and correctly enabled. > > This patch will fix this by caching ITS enabling status in the GIC >

Re: [PATCH 13/13] mfd: Add support for the MediaTek MT6397 PMIC

2015-02-16 Thread Lee Jones
> From: Flora Fu > > This adds support for the MediaTek MT6397 PMIC. This is a > multifunction device with the following sub modules: > > - Regulator > - RTC > - Audio codec > - GPIO > - Clock > > It is interfaced to the host controller using SPI interface by a proprietary > hardware called

Re: n900 audio: any ideas how to get headset speaker to work?

2015-02-16 Thread Pavel Machek
Ahoj! > > By default, output goes to loudspeaker (top right relative to > > keyboard). Any ideas how to switch it to the speaker on the left or > > wired headset? Because I suspect that echo cancelation is not going to > > be simple... > >

Re: [PATCH 2/2] drivers/core/of: Add symlink to device-tree from devices with an OF node

2015-02-16 Thread Arnd Bergmann
On Monday 16 February 2015 14:59:16 Benjamin Herrenschmidt wrote: > So I've been annoyed lately with having a bunch of devices such as i2c > eeproms (for use by VPDs, server world !) and other bits and pieces that > I want to be able to identify from userspace, and possibly provide > additional

Re: [PATCH v2 0/2] Qualcomm PM8941 power key driver

2015-02-16 Thread Ivan T. Ivanov
On Fri, 2015-01-23 at 16:19 -0800, Bjorn Andersson wrote: > These patches add dt bindings and a device driver for the power key block in > the Qualcomm PM8941 pmic. > > Changes since v1: > * Use a reboot_notifier to set power off/reboot mode > * Use irq flags from devicetree > * Some style

Re: [PATCH 2/2] staging: rtl8192e: added parentheses in macros

2015-02-16 Thread Dan Carpenter
On Mon, Feb 16, 2015 at 03:12:25PM +0530, Pushpendra Singh wrote: > Removed checkpatch.pl error > ERROR: Macros with complex values should be enclosed in parentheses > +#define MFIE_STRING(x) case MFIE_TYPE_ ##x: return #x > You didn't try to compile this code. regards, dan carpenter -- To

Re: [PATCH 2/2 v2] kernel: irq: rename irq_set_default_host to irq_domain_set_default()

2015-02-16 Thread Peter Zijlstra
On Fri, Feb 13, 2015 at 08:02:17AM +0800, Linus Walleij wrote: > This function does not conform to the irq_domain* namespace and > makes it a disturbing artifact dating back to a time when irq > domains were referred to as "hosts". Rename it. > > Signed-off-by: Linus Walleij > --- > ChangeLog

RE: [PATCH v3] brcmfmac: avoid duplicated suspend/resume operation

2015-02-16 Thread David Laight
> > WiFi chip has 2 SDIO functions, and PM core will trigger > > twice suspend/resume operations for one WiFi chip to do > > the same things. This patch avoid this case. Do you want to suspend on the first or last request? In general it might be that one function is in use and something wants to

Re: [PATCH 3.18 04/57] vm: add VM_FAULT_SIGSEGV handling support

2015-02-16 Thread Luis Henriques
On Tue, Feb 10, 2015 at 12:22:41PM +0400, Konstantin Khlebnikov wrote: > I've found regression: > > [ 257.139907] > [ 257.139909] [ BUG: lock held when returning to user space! ] > [ 257.139912] 3.18.6-debug+ #161 Tainted: G U > [

Re: [PATCH v4 3/5] irqchip: Add DT binding doc for the virtual irq demuxer chip

2015-02-16 Thread Peter Zijlstra
Please change the Subject to start with [PATCH] again when including patches, otherwise its too easy for them to get lost. Esp. with excessive quoting on top. I nearly missed the patch here, seeing nothing in the first page of text. On Wed, Feb 11, 2015 at 05:13:13PM +, Mark Rutland wrote:

[PATCH] manpage: update FALLOC_FL_INSERT_RANGE flag in fallocate

2015-02-16 Thread Namjae Jeon
Update FALLOC_FL_INSERT_RANGE flag in fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan --- man2/fallocate.2 | 88 1 file changed, 82 insertions(+), 6 deletions(-) diff --git a/man2/fallocate.2 b/man2/fallocate.2 index

Re: [PATCH] test-hexdump: test the return value of the hex_dump_to_buffer

2015-02-16 Thread Andy Shevchenko
On Sun, 2015-02-15 at 09:50 +, Wang Long wrote: > As the function hex_dump_to_buffer returns the amount of bytes placed > in the buffer without terminating NUL. the test-hexdump should test > the return value of it. I don't think it's needed. When the prototype was changed the new test case

Re: [PATCH] staging: nvec: Make nvec_write_sync return result by parameter

2015-02-16 Thread Marc Dietrich
Hi Even, Am Freitag, 13. Februar 2015, 21:28:48 schrieb Evan Hauck: > As outlined in the TODO file, nvec_write_sync was modified to return an > error code instead of NULL on failure, and return the nvec_msg as a > parameter. > > Signed-off-by: Evan Hauck thanks for looking into this issue! I

[PATCH 2/2] staging: rtl8192e: added parentheses in macros

2015-02-16 Thread Pushpendra Singh
Removed checkpatch.pl error ERROR: Macros with complex values should be enclosed in parentheses +#define MFIE_STRING(x) case MFIE_TYPE_ ##x: return #x Signed-off-by: Pushpendra Singh --- drivers/staging/rtl8192e/rtllib_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/2] staging: rtl8192e: remove unnecessary spaces

2015-02-16 Thread Pushpendra Singh
Removed checkpatch.pl error ERROR: space prohibited before that ',' (ctx:WxE) +433, 433, 477} } , Signed-off-by: Pushpendra Singh --- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib_rx.c | 4 ++-- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +-

Re: [PATCH v7 05/16] clk: tegra: Add DFLL DVCO reset control for Tegra124

2015-02-16 Thread Peter De Schrijver
On Fri, Feb 13, 2015 at 12:39:03PM +0200, Mikko Perttunen wrote: > On 02/12/2015 04:19 PM, Peter De Schrijver wrote: > >On Thu, Jan 08, 2015 at 03:22:08PM +0200, Mikko Perttunen wrote: > >>From: Paul Walmsley > >> > >>The DVCO present in the DFLL IP block has a separate reset line, > >>exposed

Re: [PATCH] fs: record task name which froze superblock

2015-02-16 Thread Jan Kara
On Sat 14-02-15 21:55:24, Alexey Dobriyan wrote: > Freezing and thawing are separate system calls, task which is supposed > to thaw filesystem/superblock can disappear due to crash or not thaw > due to a bug. Record at least task name (we can't take task_struct > reference) to make support

[PATCH v4 3/3] sched/rt: Check to push the task when changing its affinity

2015-02-16 Thread Xunlei Pang
From: Xunlei Pang We may suffer from extra rt overload rq due to the affinity, so when the affinity of any runnable rt task is changed, we should check to trigger balancing, otherwise it will cause some unnecessary delayed real-time response. Unfortunately, current RT global scheduler doesn't

[PATCH v4 1/3] lib/plist: Provide plist_add_head() for nodes with the same prio

2015-02-16 Thread Xunlei Pang
From: Xunlei Pang If there're multiple nodes with the same prio as @node, currently plist_add() will add @node behind all of them. Now we need to add @node before all of these nodes for SMP RT scheduler. This patch adds a common __plist_add() for adding @node before or behind existing nodes

Re: [PATCH v3] brcmfmac: avoid duplicated suspend/resume operation

2015-02-16 Thread Arend van Spriel
On 02/16/15 08:34, Fu, Zhonghui wrote: On 2015/2/15 22:54, Kalle Valo wrote: Arend van Spriel writes: On 02/15/15 04:27, Pat Erley wrote: On 02/14/2015 08:40 PM, Fu, Zhonghui wrote: Any comments to this patch? Can it be accepted? I assume that patches are queued up until after the merge

[PATCH v4 2/3] sched/rt: Fix wrong SMP scheduler behavior for equal prio cases

2015-02-16 Thread Xunlei Pang
From: Xunlei Pang Currently, SMP RT scheduler has some trouble in dealing with equal prio cases. For example, in check_preempt_equal_prio(): When RT1(current task) gets preempted by RT2, if there is a migratable RT3 with same prio, RT3 will be pushed away instead of RT1 afterwards, because RT1

Re: [PATCH v4 3/5] irqchip: Add DT binding doc for the virtual irq demuxer chip

2015-02-16 Thread Peter Zijlstra
Guys, trim your emails, please! On Wed, Feb 11, 2015 at 04:51:36PM +0100, Rafael J. Wysocki wrote: > On Wednesday, February 11, 2015 03:12:38 PM Mark Rutland wrote: > > I guess that would have to imply IRQF_SHARED, so we'd have something > > like: > > > > IRQF_SHARED_SUSPEND_OK - This handler

Re: [PATCH v3 1/5] xhci: add a quirk for device disconnection errata for Synopsis Designware USB3 core

2015-02-16 Thread Mathias Nyman
On 15.02.2015 16:29, Sneeker Yeh wrote: > hi Mathias: > > thanks for reviewing these patch, > and sorry for replying lately~ > >>> + status = readl(port_array[dev_port_num - 1]); >>> + >>> + /* write 1 to clear */ >>> + if (!(status & PORT_CONNECT) && (status & PORT_CSC)) >>> +

Re: [PATCH] mfd: stw481x: Remove unused fields from struct stw481x

2015-02-16 Thread Linus Walleij
On Fri, Feb 13, 2015 at 6:28 AM, Axel Lin wrote: > The mutex lock is not used at all, remove it. > The *vmmc_regulator is not necessary, use a local variable in > stw481x_vmmc_regulator_probe() instead. > > Signed-off-by: Axel Lin Reviewed-by: Linus Walleij Thanks a lot Axel! Yours, Linus

Re: [PATCH v3 1/2] dgnc: Remove superfluous EXTRA_CFLAGS variable

2015-02-16 Thread Dan Carpenter
On Sun, Feb 15, 2015 at 11:40:17PM +, Cass May wrote: > Clean up Makefile by removing unnecessary definition of DG_NAME. > > Signed-off-by: Cass May > --- > Having done some build tests, it seems that DG_NAME is not needed, > but DG_PART is referenced in dgnc_mgmt.c. I have removed the

Re: [PATCH 1/2] [media] mantis: Move jump label to activate dead code

2015-02-16 Thread Dan Carpenter
On Sun, Feb 15, 2015 at 01:11:04PM +0100, Silvan Jegen wrote: > diff --git a/drivers/media/pci/mantis/mantis_cards.c > b/drivers/media/pci/mantis/mantis_cards.c > index 801fc55..e566061 100644 > --- a/drivers/media/pci/mantis/mantis_cards.c > +++ b/drivers/media/pci/mantis/mantis_cards.c > @@

Re: [PATCH v3] ARM: smp: Only expose /sys/.../cpuX/online if hotpluggable

2015-02-16 Thread Geert Uytterhoeven
On Sat, Feb 14, 2015 at 1:42 AM, Stephen Boyd wrote: > --- a/arch/arm/include/asm/smp.h > +++ b/arch/arm/include/asm/smp.h > @@ -104,6 +104,7 @@ struct smp_operations { > #ifdef CONFIG_HOTPLUG_CPU > int (*cpu_kill)(unsigned int cpu); > void (*cpu_die)(unsigned int cpu); > +

RE: [PATCH 0/6] Drivers: hv: vmbus

2015-02-16 Thread Dexuan Cui
> -Original Message- > From: KY Srinivasan > Sent: Monday, February 16, 2015 13:28 PM > To: Dexuan Cui; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > vkuzn...@redhat.com > Subject: RE: [PATCH 0/6] Drivers:

Re: MIPS: FP32XX_HYBRID_FPRS

2015-02-16 Thread Markos Chandras
On Sat, Feb 14, 2015 at 06:33:59PM +0100, Paul Bolle wrote: > On Sat, 2015-02-14 at 17:57 +0100, Paul Bolle wrote: > > Your d8fb6537f1d4 ("MIPS: kernel: elf: Improve the overall ABI and FPU > > mode checks") is included in yesterday's linux-next (ie, next-20150213). > > I noticed because a script

Re: MIPS: CONFIG_MIPS_R6?

2015-02-16 Thread Paul Bolle
Leonid, On Sat, 2015-02-14 at 17:22 -0800, Leonid Yegoshin wrote: > On 02/14/2015 09:21 AM, Paul Bolle wrote: > > Your commits 430857eae56c ("MIPS: mm: Add MIPS R6 instruction > > encodings") and 90163242784b ("MIPS: kernel: unaligned: Add support for > > the MIPS R6") are included in yesterday's

[PATCH 3/4] f2fs: use ->writepage in sync_meta_pages

2015-02-16 Thread Chao Yu
This patch uses ->writepage of meta mapping in sync_meta_pages instead of f2fs_write_meta_page, by this way, in its caller we can ignore any changes (e.g. changing name) of this registered function. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] sched/completion: completion_done() should serialize with complete()

2015-02-16 Thread Peter Zijlstra
On Thu, Feb 12, 2015 at 08:59:13PM +0100, Oleg Nesterov wrote: > Commit de30ec47302c "Remove unnecessary ->wait.lock serialization when > reading completion state" was not correct, without lock/unlock the code > like stop_machine_from_inactive_cpu() > > while (!completion_done()) >

null pointer dereference error in time-efm32.c

2015-02-16 Thread 박용배
Hello. My name is Yongbae Park. I would like to report a possible null pointer dereference error at efm32_clock_event_handler() in drivers/clocksource/time-efm32.c (version: 3.19-rc5). The null pointer dereference error occurs if the interrupt handler efm32_clock_event_handler() accesses

null pointer dereference error in timer-sun5i.c

2015-02-16 Thread 박용배
Hello. My name is Yongbae Park. I would like to report a possible null pointer dereference error at sun5i_timer_interrupt() in drivers/clocksource/timer-sun5i.c (version: 3.19-rc5). The null pointer dereference error occurs if the interrupt handler sun5i_timer_interrupt() accesses

[PATCH 4/4] f2fs: fix incorrectly stat number of inline data inode

2015-02-16 Thread Chao Yu
We should stat inline data information for temp file in f2fs_tmpfile if we enable inline_data feature. Otherwise, inline data stat number will be wrong after this temp file is evicted. Signed-off-by: Chao Yu --- fs/f2fs/namei.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

null pointer dereference error in mtk_timer.c

2015-02-16 Thread 박용배
Hello. My name is Yongbae Park. I would like to report a possible null pointer dereference error at mtk_timer_interrupt() in drivers/clocksource/mtk_timer.c (version: 3.19-rc5). The null pointer dereference error occurs if the interrupt handler mtk_timer_interrupt() accesses

Re: [PATCH v5 0/7] platform/chrome: Add user-space dev inferface support

2015-02-16 Thread Javier Martinez Canillas
Hello Olof, On 02/02/2015 12:26 PM, Javier Martinez Canillas wrote: > Hello, > > The mainline ChromeOS Embedded Controller (EC) driver is still missing some > features that are present in the downstream ChromiumOS tree. These are: > > - Low Pin Count (LPC) interface > - User-space device

[PATCH 2/4] f2fs: introduce f2fs_update_dentry to clean up duplicated codes

2015-02-16 Thread Chao Yu
This patch introduces f2fs_update_dentry to remove redundant code in f2fs_add_inline_entry and __f2fs_add_link. Signed-off-by: Chao Yu --- fs/f2fs/dir.c| 33 +++-- fs/f2fs/f2fs.h | 2 ++ fs/f2fs/inline.c | 18 ++ 3 files changed, 31

[PATCH 1/4] f2fs: remove unused inline_dentry_addr

2015-02-16 Thread Chao Yu
inline_dentry_addr is introduced with inline dentry feature without being used, now we do not need to keep it for any reason, so remove it. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 7fa3313..a978b65

Re: [PATCH RFC v3 0/7] epoll: Introduce new syscalls, epoll_ctl_batch and epoll_pwait1

2015-02-16 Thread Fam Zheng
Hi Seymour, On Mon, 02/16 07:25, Seymour, Shane M wrote: > I found the manual pages really confusing so I had a go at rewriting > them - there were places in the manual page that didn't match the > functionality provided by your code as well as I could tell). Could you point which places don't

RE: [f2fs-dev] [PATCH v3 06/10] f2fs: add core functions for rb-tree extent cache

2015-02-16 Thread Chao Yu
Ping. Any comments on this patch now? > -Original Message- > From: Chao Yu [mailto:chao2...@samsung.com] > Sent: Thursday, February 05, 2015 5:55 PM > To: Jaegeuk Kim; Changman Lee > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: [f2fs-dev] [PATCH v3

[PATCH 1/1] pty: BREAK for pseudoterminals

2015-02-16 Thread Nan Li
This will greatly enhance the usefulness of QEMU virtual serial ports, because the Linux kernel interprets a break on the serial console as a SysRq, but there is currently no way to pass this signal over a pseudo-terminal. This patch will work for transmitting BREAK from master to slave through

Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-02-16 Thread Andrzej Pietrasiewicz
W dniu 15.02.2015 o 23:43, Ruslan Bilovol pisze: In my opinion all things which you have described are working out-of-box when you use configfs interface. It's mostly ready so you may create equivalent of most legacy gadgets (apart from printer and tcm) and just bind from one udc to another

[PATCH V6 03/10] USB: f81232: implement RX bulk-in ep

2015-02-16 Thread Peter Hung
The F81232 bulk-in is RX data + LSR channel, data format is [LSR+Data][LSR+Data]. , We had reimplemented in this patch. Signed-off-by: Peter Hung --- drivers/usb/serial/f81232.c | 68 +++-- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git

[PATCH V6 09/10] USB: f81232: implement delta change for MSR count

2015-02-16 Thread Peter Hung
We implement delta change for MSR counting. This patch is referenced from ftdi_sio.c Signed-off-by: Peter Hung --- drivers/usb/serial/f81232.c | 27 ++- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/drivers/usb/serial/f81232.c

[PATCH V6 07/10] USB: f81232: fix error in f81232_carrier_raised()

2015-02-16 Thread Peter Hung
It's should compared with UART_MSR_DCD, not UART_DCD. also we clean-up some non-used define to avoid impropriety use. Signed-off-by: Peter Hung --- drivers/usb/serial/f81232.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/usb/serial/f81232.c

Re: [BUG] b893e80e3147 breaks touchpad on Dell XPS13

2015-02-16 Thread Jarkko Nikula
Hi On 02/16/2015 09:14 AM, Chris Rorvick wrote: Hi, Commit b893e80e3147 ("ACPI / LPSS: Remove non-existing clock control from Intel Lynxpoint I2C") is causing my touchpad to not load on my Dell XPS13. I do not see any errors in the Xorg log, just 20 or so lines missing where it would normally

[PATCH V6 06/10] USB: f81232: clarify f81232_ioctl and fix

2015-02-16 Thread Peter Hung
We extract TIOCGSERIAL section in f81232_ioctl() to f81232_get_serial_info() to make it clarify. Also we fix device type from 16654 to 16550A, and set it's baud_base to 115200 (1.8432MHz/16) Signed-off-by: Peter Hung --- drivers/usb/serial/f81232.c | 30 +++--- 1 file

[PATCH V6 08/10] USB: f81232: fix read MSR strange value

2015-02-16 Thread Peter Hung
When we use RS232 loopback, assume doing RTS change will cause CTS change, DTR change will cause DCD/DSR change too. Sometimes we got 7~4 bits of MSR changed but the 3~0 bits of MSR(delta) maybe not changed when set & get MCR fasterly. So we add more check not only UART_MSR_ANY_DELTA but also

[PATCH V6 10/10] USB: f81232: modify/add author

2015-02-16 Thread Peter Hung
Add me to co-author and fix no '>' in greg kh's email Signed-off-by: Peter Hung --- drivers/usb/serial/f81232.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c index 5134a19..5e35859 100644 ---

[PATCH RESEND 2/12] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This patch implements fallocate's FALLOC_FL_INSERT_RANGE for XFS. 1) Make sure that both offset and len are block size aligned. 2) Update the i_size of inode by len bytes. 3) Compute the file's logical block number against offset. If the computed

[PATCH RESEND 1/12] fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com FALLOC_FL_INSERT_RANGE command is the opposite command of FALLOC_FL_COLLAPSE_RANGE that is needed for advertisers or someone who want to add some data in the middle of file. FALLOC_FL_INSERT_RANGE will create space for writing new data within a file after

Re: [RFC PATCH 8/9] livepatch: allow patch modules to be removed

2015-02-16 Thread Miroslav Benes
On Fri, 13 Feb 2015, Josh Poimboeuf wrote: On Fri, Feb 13, 2015 at 05:17:10PM +0100, Miroslav Benes wrote: On Fri, 13 Feb 2015, Josh Poimboeuf wrote: Hm, even with Jiri Slaby's suggested fix to add the completion to the unregister path, I still get a lockdep warning. This looks more

Re: [PATCH 1/1] pty: BREAK for pseudoterminals

2015-02-16 Thread Peter Hurley
Hi Petr, On 02/16/2015 08:22 AM, Petr Tesarik wrote: On Mon, 16 Feb 2015 08:04:02 -0500 Peter Hurley pe...@hurleysoftware.com wrote: On 02/05/2015 02:11 PM, Nan Li wrote: This will greatly enhance the usefulness of QEMU virtual serial ports, because the Linux kernel interprets a break on

Re: [PATCH 09/35] tick/xen: Provide and use tick_resume_local()

2015-02-16 Thread David Vrabel
On 16/02/15 12:14, Peter Zijlstra wrote: From: Thomas Gleixner t...@linutronix.de Xen calls on every cpu into tick_resume() which is just wrong. tick_resume() is for the syscore global suspend/resume invocation. What XEN really wants is a per cpu local resume function, but yes, its

Re: [PATCH RFC 2/2] ARM: pxa: transition to dmaengine phase 1

2015-02-16 Thread Vasily Khoruzhick
On Mon, Feb 16, 2015 at 7:54 PM, Robert Jarzmik robert.jarz...@free.fr wrote: Oh, do you volunteer ? That would indeed ease up my burden. I only rebased pxa3xx_nand, so any help to submit and push is welcome. At least I can commit to review, and I would concentrate on pxa_camera.c in the

Re: [PATCH] Input: ALPS: Move v7 packet info to Documentation and v6 packet info

2015-02-16 Thread Jonathan Corbet
On Tue, 10 Feb 2015 13:43:33 +0100 Pali Rohár pali.ro...@gmail.com wrote: This patch move all packet info from driver source code to documentation and adds info about v6 packet format (from driver source code). I tried to apply it to the docs tree, but no go. Which tree is this against?

Re: [PATCH v2 23/30] PCI/mvebu: Use pci_common_init_dev() to simplify code

2015-02-16 Thread Lorenzo Pieralisi
Hi Thomas, On Thu, Jan 22, 2015 at 05:40:00PM +, Thomas Petazzoni wrote: Dear Yijing Wang, On Wed, 21 Jan 2015 08:30:18 +0800, Yijing Wang wrote: Mvebu_pcie_scan_bus() is not necessary, we could use pci_common_init_dev() instead of pci_common_init(), and pass the device pointer as

Re: [musl] Re: [PATCHv3 00/24] ILP32 support in ARM64

2015-02-16 Thread Rich Felker
On Mon, Feb 16, 2015 at 06:20:18PM +0100, Arnd Bergmann wrote: Would it really be that hard to do: if (ILP32_on_64_process) tv_nsec = (int)tv_nsec; or similar? That's all that's needed. In some cases, there may also be a measurable performance penalty in interpreting a

[PATCH RESEND 5/12] xfstests: generic/042: Standard insert range tests

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This testcase(042) tries to test various corner cases for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com --- common/punch |5

Re: [PATCHv3 14/24] thp: implement new split_huge_page()

2015-02-16 Thread Kirill A. Shutemov
On Thu, Feb 12, 2015 at 02:24:40PM -0500, Sasha Levin wrote: On 02/12/2015 12:07 PM, Sasha Levin wrote: On 02/12/2015 11:18 AM, Kirill A. Shutemov wrote: +void __get_page_tail(struct page *page); static inline void get_page(struct page *page) { -struct page *page_head =

[PATCH 0/4] ARM OMAP2+ GPMC: various fixes and bus children

2015-02-16 Thread Robert ABEL
I found a few more bugs in the GPMC driver. The first three patches should be self-explanatory: *debug output was unaligned -- align it *GPMCFCLKDIVIDER is used in all use cases -- always program it *WAITMONITORINGTIME was computed in FCLK ticks instead of CLK ticks -- compute in CLK ticks

Re: [musl] Re: [PATCHv3 00/24] ILP32 support in ARM64

2015-02-16 Thread Arnd Bergmann
On Wednesday 11 February 2015 16:37:58 Rich Felker wrote: On Wed, Feb 11, 2015 at 10:02:55PM +0100, a...@arndb.de wrote: Rich Felker dal...@libc.org hat am 11. Februar 2015 um 21:12 geschrieben: On Wed, Feb 11, 2015 at 08:50:06PM +0100, a...@arndb.de wrote: At least for AArch64 ILP32

Re: [PATCH] Documentation/vm: there should have a 'non' according to the context

2015-02-16 Thread Jonathan Corbet
On Tue, 10 Feb 2015 21:55:12 +0800 Yaowei Bai bywxiao...@163.com wrote: -__GFP_IO allocation requests are made to prevent file system deadlocks. +Non __GFP_IO allocation requests are made to prevent file system deadlocks. Applied to the docs tree, thanks. I do wonder, though, how much this

[RFC v2 10/10] fsl_qman: Add HOTPLUG_CPU support

2015-02-16 Thread Emil Medve
From: Hai-Ying Wang haiying.w...@freescale.com Change-Id: Ica4d1b2b0fd3c3ae5e043663febd9f4cb7c762cf Signed-off-by: Hai-Ying Wang haiying.w...@freescale.com --- drivers/soc/freescale/qman_portal.c | 45 + 1 file changed, 45 insertions(+) diff --git

[RFC v2 05/10] fsl_bman: Add self-tester

2015-02-16 Thread Emil Medve
From: Geoff Thorpe geoff.tho...@freescale.com Change-Id: If1b44bb013addc1e855c73a4e6ff74bc8b6e4829 Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com --- drivers/soc/freescale/Kconfig| 26 drivers/soc/freescale/Makefile | 8 +- drivers/soc/freescale/bman.c

[RFC v2 01/10] fsl_bman: Add drivers for the Freescale DPAA BMan

2015-02-16 Thread Emil Medve
From: Geoff Thorpe geoff.tho...@freescale.com Change-Id: I075944acf740dbaae861104c17a9ff7247dec1be Signed-off-by: Geoff Thorpe geoff.tho...@freescale.com --- drivers/soc/Kconfig |1 + drivers/soc/Makefile |1 + drivers/soc/freescale/Kconfig| 51

[PATCH 4/4] ARM OMAP2+ GPMC: add bus children

2015-02-16 Thread Robert ABEL
This patch adds support for spawning busses as children of the GPMC. Signed-off-by: Robert ABEL ra...@cit-ec.uni-bielefeld.de --- arch/arm/mach-omap2/gpmc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c

[PATCH RESEND 8/12] xfstests: generic/045: Delayed allocation multi insert

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This testcase(045) tries to test various corner cases with delayed extents and pre-existing holes for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan

[PATCH RESEND 6/12] xfstests: generic/043: Delayed allocation insert range

2015-02-16 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This testcase(043) tries to test various corner cases with delayed extents for finsert range functionality over different type of extents. Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ashish Sangwan a.sang...@samsung.com ---

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