Re: [PATCH] i2c: designware-platdrv: implement bus recovery

2016-04-14 Thread kbuild test robot
Hi Jisheng, [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on v4.6-rc3 next-20160414] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Jisheng-Zhang/i2c-designware-platdrv

[PATCH v2 00/29] Radix tree multiorder fixes

2016-04-14 Thread Matthew Wilcox
I must apologise for commit f96d18ff84 which left the impression that the support for multiorder radix tree entries was functional. As soon as Ross tried to use it, it became apparent that my testing was completely inadequate, and it didn't even work a little bit for orders that were not a multipl

[PATCH v2 26/29] radix-tree: Rewrite radix_tree_locate_item

2016-04-14 Thread Matthew Wilcox
Use the new multi-order support functions to rewrite radix_tree_locate_item(). Modify the locate tests to test multiorder entries too. Signed-off-by: Matthew Wilcox Reviewed-by: Ross Zwisler --- lib/radix-tree.c| 90 - tools/testing/radix

[PATCH v2 14/29] radix-tree: Fix extending the tree for multi-order entries at offset 0

2016-04-14 Thread Matthew Wilcox
The current code will insert entries at each level, as if we're going to add a new entry at the bottom level, so we then get an -EEXIST when we try to insert the entry into the tree. The best way to fix this is to not check 'order' when inserting into an empty tree. We still need to 'extend' the

[PATCH v2 21/29] radix-tree: Rewrite radix_tree_tag_set

2016-04-14 Thread Matthew Wilcox
From: Ross Zwisler Use the new multi-order support functions to rewrite radix_tree_tag_set() Signed-off-by: Ross Zwisler Signed-off-by: Matthew Wilcox --- lib/radix-tree.c | 37 + 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/lib/radix-tre

Re: [PATCH v3 3/3] drm: bridge: anx78xx: Add anx78xx driver support.

2016-04-14 Thread Thierry Reding
On Thu, Apr 14, 2016 at 04:08:43PM +0200, Enric Balletbo i Serra wrote: > Hi Emil, > > On 14/04/16 16:06, Emil Velikov wrote: > > Hi Enric, > > > > On 14 April 2016 at 14:42, Enric Balletbo i Serra > > wrote: > > > The patch was implemented first without OR'ing error codes. The reason > > > why

Re: [PATCH v2 09/17] kvm-arm: arm64: Introduce stage2 page table helpers

2016-04-14 Thread Marc Zyngier
On 14/04/16 14:20, Suzuki K Poulose wrote: > Introduce stage2 page table helpers for arm64. With the fake > page table level still in place, the stage2 table has the same > number of levels as that of the host (and hyp), so they all > fallback to the host version. > > Cc: Marc Zyngier > Reviewed-

Re: [PATCH 3/6] ARM: PSCI: Register with kernel restart handler

2016-04-14 Thread Wolfram Sang
> "the higher, the more important" makes sense to me. We don't have to > enforce the linux scheme, though that happens to be the same (the priority > argument in the notifier block takes an int, so it would not even be > necessary to adjust it unless someone specifies 0x). I think we shou

[PATCH v2 16/29] radix-tree: Fix several shrinking bugs with multiorder entries

2016-04-14 Thread Matthew Wilcox
Setting the indirect bit on the user data entry used to be unambiguous because the tree walking code knew not to expect internal nodes in the last level of the tree. Multiorder entries can appear at any level of the tree, and a leaf with the indirect bit set is indistinguishable from a pointer to

Re: [PATCH] cyclictest: avoid using libnuma cpumask parsing functions

2016-04-14 Thread Luiz Capitulino
On Wed, 13 Apr 2016 15:37:00 -0500 Clark Williams wrote: > John, > > I ran into issues with parsing cpu masks when trying to run this command: > > sudo ./cyclictest -i100 -qmu -h 2000 -p95 -t1 -a3 > > I had previously booted a 4-core system with these boot options: > > isolcpus=3 nohz_f

[PATCH v2 19/29] radix-tree: add support for multi-order iterating

2016-04-14 Thread Matthew Wilcox
From: Ross Zwisler This enables the macros radix_tree_for_each_slot() and friends to be used with multi-order entries. The way that this works is that we treat all entries in a given slots[] array as a single chunk. If the index given to radix_tree_next_chunk() happens to point us to a sibling

Re: [PATCH 0/5] Live patching for powerpc

2016-04-14 Thread Jiri Kosina
On Thu, 14 Apr 2016, Torsten Duwe wrote: > > > > > It's unchanged since the version I posted on March 24, with the > > > > > exception that > > > > > I've dropped the first patch, which was a testing-only patch. > > Confirmed. And it still works on top of 4.6-rc3, even with the > additional tes

Re: [PATCH] drm/vmwgfx: use *_32_bits() macros

2016-04-14 Thread Joe Perches
On Thu, 2016-04-14 at 13:32 +0200, Paul Bolle wrote: > On do, 2016-03-03 at 11:26 +0100, Paul Bolle wrote: > > > > Use the upper_32_bits() macro instead of the four line equivalent that > > triggers a GCC warning on 32 bits x86: > > drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c: In function > > 'vmw_

[PATCH v8 3/3] arm64: dts: qcom: msm8916: Use fixed factor xo clock

2016-04-14 Thread Georgi Djakov
The rpmcc driver is providing the XO clock, which is the parent of almost all clocks. But during boot, this driver may probe later and leave most of the clocks without parent. The common clock framework currently reports invalid rate for orphan clocks and this may confuse drivers. To resolve this,

Re: [PATCH] Add EDAC peripheral init functions & Ethernet EDAC.

2016-04-14 Thread Rob Herring
On Tue, Apr 12, 2016 at 05:12:55PM -0500, ttha...@opensource.altera.com wrote: > This patch set adds the memory initialization functions for Altera's > Arria10 peripherals, the first of which is the Ethernet EDAC. The > first 3 patches add the memory initialization functionality. The > last 3 patch

Re: [PATCH 3/4] dt-bindings: Update iProc GPIO bindings

2016-04-14 Thread Rob Herring
On Tue, Apr 12, 2016 at 05:15:22PM -0700, Ray Jui wrote: > Update the iProc GPIO binding document to introduce a new compatible > string "brcm,iproc-gpio-only", that allows the generic pinconf function > to be disabled completely > > Signed-off-by: Ray Jui > Reviewed-by: Jon Mason > Reviewed-by:

[PATCH 12/19] radix-tree: Change naming conventions in radix_tree_shrink

2016-04-14 Thread Matthew Wilcox
Use the more standard 'node' and 'child' instead of 'to_free' and 'slot'. Signed-off-by: Matthew Wilcox --- lib/radix-tree.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/radix-tree.c b/lib/radix-tree.c index 145dcb1..094dfc0 100644 ---

[PATCH 18/19] dax: move RADIX_DAX_ definitions to dax.c

2016-04-14 Thread Matthew Wilcox
From: NeilBrown These don't belong in radix-tree.h any more than PAGECACHE_TAG_* do. Let's try to maintain the idea that radix-tree simply implements an abstract data type. Signed-off-by: NeilBrown Reviewed-by: Ross Zwisler Reviewed-by: Jan Kara Signed-off-by: Matthew Wilcox --- fs/dax.c

[PATCH 07/19] radix-tree: Remove root->height

2016-04-14 Thread Matthew Wilcox
The only remaining references to root->height were in extend and shrink, where it was updated. Now we can remove it entirely. Signed-off-by: Matthew Wilcox Reviewed-by: Ross Zwisler --- include/linux/radix-tree.h | 3 -- lib/radix-tree.c | 106 +-

[PATCH 05/19] radix-tree: Remove a use of root->height from delete_node

2016-04-14 Thread Matthew Wilcox
If radix_tree_shrink returns whether it managed to shrink, then __radix_tree_delete_node doesn't ned to query the tree to find out whether it did any work or not. Signed-off-by: Matthew Wilcox --- lib/radix-tree.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a

Re: [PATCH] i2c: designware-platdrv: implement bus recovery

2016-04-14 Thread Mika Westerberg
On Thu, Apr 14, 2016 at 10:04:56PM +0800, Jisheng Zhang wrote: > Implement bus recovery methods for i2c designware so we can recover > from situations where SCL/SDA are stuck low. > > The recovery method is similar as i2c-imx: "config the i2c pinctrl to > gpio mode by calling pinctrl sleep set fun

[PATCH 17/19] radix-tree: Make radix_tree_descend() more useful

2016-04-14 Thread Matthew Wilcox
Now that the shift amount is stored in the node, radix_tree_descend() can calculate offset itself from index, which removes several lines of code from each of the tree walkers. Signed-off-by: Matthew Wilcox --- lib/radix-tree.c | 78 +++- 1 fil

[PATCH 16/19] radix-tree: Introduce radix_tree_replace_clear_tags()

2016-04-14 Thread Matthew Wilcox
In addition to replacing the entry, we also clear all associated tags. This is really a one-off special for page_cache_tree_delete() which had far too much detailed knowledge about how the radix tree works. For efficiency, factor node_tag_clear() out of radix_tree_tag_clear() It can be used by rad

[PATCH 19/19] radix-tree: Free up the bottom bit of exceptional entries for reuse

2016-04-14 Thread Matthew Wilcox
We are guaranteed that pointers to radix_tree_nodes always have the bottom two bits clear (because they come from a slab cache, and slab caches have a minimum alignment of sizeof(void *)), so we can redefine 'radix_tree_is_internal_node' to only return true if the bottom two bits have value '01'.

[PATCH 00/19] Radix tree cleanups

2016-04-14 Thread Matthew Wilcox
This patch series applies on top of the radix-fixes series I sent recently. It aims to improve the radix tree by making the code more understandable and has the nice side-effect of shrinking the code size on i386-tinyconfig by about 250 bytes. The 'height' concept is entirely gone from the code b

[PATCH v8 1/3] clk: qcom: Add support for SMD-RPM Clocks

2016-04-14 Thread Georgi Djakov
This adds initial support for clocks controlled by the Resource Power Manager (RPM) processor on some Qualcomm SoCs, which use the qcom_smd_rpm driver to communicate with RPM. Such platforms are msm8916, apq8084 and msm8974. The RPM is a dedicated hardware engine for managing the shared SoC resour

[PATCH] include/drm: Reword debug categories comment.

2016-04-14 Thread robert . foss
From: Robert Foss The debug category comment mentions 4 categories, but more than 4 categories are listed. Let's change the wording to something a bit more generic. Signed-off-by: Robert Foss --- include/drm/drmP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm

[PATCH v8 2/3] clk: qcom: Add support for RPM Clocks

2016-04-14 Thread Georgi Djakov
This adds initial support for clocks controlled by the Resource Power Manager (RPM) processor on some Qualcomm SoCs, which use the qcom_rpm driver to communicate with RPM. Such platforms are apq8064 and msm8960. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,rpmcc.txt

Re: [PATCH] Bluetooth: purge unhandled skbs

2016-04-14 Thread Takashi Iwai
On Fri, 08 Apr 2016 19:23:45 +0200, Marcel Holtmann wrote: > > Hi Jiri, > > > The write handler allocates skbs and queues them into data->readq. > > Read side should read them, if there is any. If there is none, skbs > > should be dropped by hdev->flush. But this happens only if the device > > is

[PATCH v8 0/3] Add initial support for RPM clocks

2016-04-14 Thread Georgi Djakov
This patchset adds initial support for the clocks controlled by the RPM (Resource Power Manager) processor on Qualcomm platforms. The RPM is a dedicated hardware engine for managing the shared SoC resources in order to keep the lowest power profile. It communicates with other hardware subsystems v

Re: [PATCH] locking/pvqspinlock: Add lock holder CPU argument to pv_wait()

2016-04-14 Thread Pan Xinhui
hello, Waiman I try your patch, thanks! also I do some improvement. below code diff has been tested, it works for me. :) diff --git a/kernel/locking/qspinlock.c b/kernel/locking/qspinlock.c index ce2f75e..99f31e4 100644 --- a/kernel/locking/qspinlock.c +++ b/kernel/locking/qspinlock.c @@ -248,7 +

[PATCH 11/19] radix-tree: Rename radix_tree_is_indirect_ptr()

2016-04-14 Thread Matthew Wilcox
As with indirect_to_ptr(), ptr_to_indirect() and RADIX_TREE_INDIRECT_PTR, change radix_tree_is_indirect_ptr() to radix_tree_is_internal_node(). Signed-off-by: Matthew Wilcox --- include/linux/radix-tree.h | 10 - lib/radix-tree.c| 48 -

[PATCH 15/19] radix-tree: Tidy up __radix_tree_create()

2016-04-14 Thread Matthew Wilcox
1. Rename the existing variable 'slot' to 'child'. 2. Introduce a new variable called 'slot' which is the address of the slot we're dealing with. This lets us simplify the tree insertion, and removes the recalculation of 'slot' at the end of the function. 3. Using 'slot' in the sibling point

[PATCH 03/19] radix-tree: Split node->path into offset and height

2016-04-14 Thread Matthew Wilcox
Neither piece of information we're storing in node->path can be larger than 64, so store each in its own unsigned char instead of shifting and masking to store them both in an unsigned int. Signed-off-by: Matthew Wilcox Reviewed-by: Ross Zwisler --- include/linux/radix-tree.h | 7 ++- lib/

[PATCH 14/19] radix-tree: Tidy up range_tag_if_tagged

2016-04-14 Thread Matthew Wilcox
Convert radix_tree_range_tag_if_tagged to name the nodes parent, node and child instead of node & slot. Use parent->offset instead of playing games with 'upindex'. Signed-off-by: Matthew Wilcox --- lib/radix-tree.c | 39 +-- 1 file changed, 17 insertions(+),

[PATCH 04/19] radix-tree: Replace node->height with node->shift

2016-04-14 Thread Matthew Wilcox
node->shift represents the shift necessary for looking in the slots array at this level. It is equal to the old (node->height - 1) * RADIX_TREE_MAP_SHIFT. Signed-off-by: Matthew Wilcox Reviewed-by: Ross Zwisler --- include/linux/radix-tree.h | 2 +- lib/radix-tree.c | 30 +++

[PATCH 08/19] radix-tree: Rename INDIRECT_PTR to INTERNAL_NODE

2016-04-14 Thread Matthew Wilcox
The name RADIX_TREE_INDIRECT_PTR doesn't really match the meaning. RADIX_TREE_INTERNAL_NODE is a better name. Signed-off-by: Matthew Wilcox --- include/linux/radix-tree.h | 30 +- lib/radix-tree.c | 2 +- 2 files changed, 14 insertions(+), 18 deletions(-)

New MIPS SoC code insertion request

2016-04-14 Thread Dmitry.Dunaev
Good day! I'm Dmitry Dunaev, software designer from Baikal Electronics - Russian semiconductor company (http://www.baikalelectronics.com/). Some time ago we are released our first MIPS processor based on P5600 core (https://www.linux-mips.org/wiki/Baikal). Now we have this SoC in silicon. Also

Re: [PATCH] Bluetooth: purge unhandled skbs

2016-04-14 Thread Marcel Holtmann
Hi Takashi, >>> The write handler allocates skbs and queues them into data->readq. >>> Read side should read them, if there is any. If there is none, skbs >>> should be dropped by hdev->flush. But this happens only if the device >>> is HCI_UP, i.e. hdev->power_on work was triggered already. When i

[PATCH 02/19] radix-tree: Miscellaneous fixes

2016-04-14 Thread Matthew Wilcox
Typos, whitespace, grammar, line length, using the correct types, etc. Signed-off-by: Matthew Wilcox Reviewed-by: Ross Zwisler --- lib/radix-tree.c | 70 +--- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/lib/radix-tree.c b/l

[PATCH 10/19] radix-tree: Rename indirect_to_ptr() to entry_to_node()

2016-04-14 Thread Matthew Wilcox
Mirrors the earlier commit introducing node_to_entry(). Also change the type returned to be a struct radix_tree_node pointer. That lets us simplify a couple of places in the radix tree shrink & extend paths where we could convert an entry into a pointer, modify the node, then convert the pointer b

[PATCH 01/19] drivers/hwspinlock: Use correct radix tree API

2016-04-14 Thread Matthew Wilcox
radix_tree_is_indirect_ptr() is an internal API. The correct call to use is radix_tree_deref_retry() which has the appropriate unlikely() annotation. Fixes: c6400ba7e13a ("drivers/hwspinlock: fix race between radix tree insertion and lookup") Signed-off-by: Matthew Wilcox --- drivers/hwspinloc

[PATCH 13/19] radix-tree: Tidy up next_chunk

2016-04-14 Thread Matthew Wilcox
Convert radix_tree_next_chunk to use 'child' instead of 'slot' as the name of the child node. Also use node_maxindex() where it makes sense. The 'rnode' variable was unnecessary; it doesn't overlap in usage with 'node', so we can just use 'node' the whole way through the function. Improve the te

Re: [PATCH] drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel

2016-04-14 Thread Archit Taneja
On 4/13/2016 11:58 AM, Vinay Simha BN wrote: Add support for the JDI lt070me05000 WUXGA DSI panel used in Nexus 7 2013 devices. Programming sequence for the panel is was originally found in the android-msm-flo-3.4-lollipop-release branch from: https://android.googlesource.com/kernel/msm.g

[PATCH 06/19] radix tree test suite: Remove dependencies on height

2016-04-14 Thread Matthew Wilcox
verify_node() can use node->shift instead of the height. tree_verify_min_height() can be converted over to using node_maxindex() and shift_maxindex() instead of radix_tree_maxindex(). Signed-off-by: Matthew Wilcox --- tools/testing/radix-tree/test.c | 34 +++--- tool

[PATCH 09/19] radix-tree: Rename ptr_to_indirect() to node_to_entry()

2016-04-14 Thread Matthew Wilcox
ptr_to_indirect() was a bad name. What it really means is "Convert this pointer to a node into an entry suitable for storing in the radix tree". So node_to_entry() seemed like a better name. Signed-off-by: Matthew Wilcox --- lib/radix-tree.c | 21 ++--- 1 file changed, 10 insert

Deleting child qdisc doesn't reset parent to default qdisc?

2016-04-14 Thread Jiri Kosina
Hi, I've came across the behavior where adding a child qdisc and then deleting it again makes the networking dysfunctional (I guess that's because all of a sudden there is absolutely no working qdisc on the device, although there originally was a default one in the parent). In a nutshell, is t

Re: [PATCH v2 10/17] kvm-arm: arm64: Introduce hyp page table empty checks

2016-04-14 Thread Marc Zyngier
On 14/04/16 14:20, Suzuki K Poulose wrote: > Introduce hyp_pxx_table_empty helpers for checking whether > a given table entry is empty. This will be used explicitly > once we switch to explicit routines for hyp page table walk. > > Cc: Marc Zyngier > Acked-by: Christoffer Dall > Signed-off-by: S

Re: [PATCH] mm/vmalloc: Keep a separate lazy-free list

2016-04-14 Thread Roman Peniaev
On Thu, Apr 14, 2016 at 3:49 PM, Chris Wilson wrote: > On Thu, Apr 14, 2016 at 03:13:26PM +0200, Roman Peniaev wrote: >> Hi, Chris. >> >> Is it made on purpose not to drop VM_LAZY_FREE flag in >> __purge_vmap_area_lazy()? With your patch va->flags >> will have two bits set: VM_LAZY_FREE | VM_LAZY

Re: [PATCH] Bluetooth: purge unhandled skbs

2016-04-14 Thread Takashi Iwai
On Thu, 14 Apr 2016 16:41:34 +0200, Marcel Holtmann wrote: > > Hi Takashi, > > >>> The write handler allocates skbs and queues them into data->readq. > >>> Read side should read them, if there is any. If there is none, skbs > >>> should be dropped by hdev->flush. But this happens only if the devi

Re: Xen regression, Was: [PATCH] x86/irq: Probe for PIC presence before allocating descs for legacy IRQs

2016-04-14 Thread Boris Ostrovsky
On 04/14/2016 09:45 AM, David Vrabel wrote: On 12/04/16 19:06, Stefano Stabellini wrote: On Tue, 12 Apr 2016, Boris Ostrovsky wrote: On 04/11/2016 10:08 PM, Stefano Stabellini wrote: Hi all, Unfortunately this patch (now commit 8c058b0b9c34d8c8d7912880956543769323e2d8) causes a regression on

Re: Deleting child qdisc doesn't reset parent to default qdisc?

2016-04-14 Thread Jiri Kosina
On Thu, 14 Apr 2016, Jiri Kosina wrote: > In a nutshell, is this expected behavior or bug? Just to clarify what seems to suggest to me that this is rather a bug that needs to be fixed (but apparently one that has been there for quite a long time) can be demonstrated by this: > > = > jikos

Re: [PATCH] cgroup namespaces: add a 'nsroot=' mountinfo field

2016-04-14 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > This is so that userspace can distinguish a mount made in a cgroup > namespace from a bind mount from a cgroup subdirectory. To do that do you need to print the path, or is an extra option that reveals nothing except that it was a cgroup mount sufficient? Is there an

Re: [PATCH] include/drm: Reword debug categories comment.

2016-04-14 Thread Daniel Vetter
On Thu, Apr 14, 2016 at 10:34:16AM -0400, robert.f...@collabora.com wrote: > From: Robert Foss > > The debug category comment mentions 4 categories, but > more than 4 categories are listed. Let's change the > wording to something a bit more generic. > > Signed-off-by: Robert Foss Applied to dr

[PATCH V3 1/2] thermal: generic-adc: Add DT binding for ADC based thermal sensor

2016-04-14 Thread Laxman Dewangan
Sometimes, thermal sensors like NCT thermistors are connected to the ADC channel. The temperature is read by reading the voltage across the sensor resistance via ADC and referring the lookup table for ADC value to temperature. Add DT binding doc for the ADC based thermal sensor driver to detail th

[PATCH V3 2/2] thermal: generic-adc: Add ADC based thermal sensor driver

2016-04-14 Thread Laxman Dewangan
In some of platform, thermal sensors like NCT thermistors are connected to the one of ADC channel. The temperature is read by reading the voltage across the sensor resistance via ADC. Lookup table for ADC read value to temperature is referred to get temperature. ADC is read via IIO framework. Add

[PATCH V4 2/4] iommu/vt-d: use zero-sized array in DMAR related ACPI structures

2016-04-14 Thread Wei Yang
1. DMAR table has variable number of remapping entries 2. DMAR hardware unit has variable number of device scope 3. DMAR device scope has variable number of pci path 4. DMAR reserved memory has variable number device scope 5. DMAR ATS capability reporting structure has variable number device scope

[PATCH V4 4/4] iommu/vt-d: refine dmar_acpi_dev_scope_init() with dmar_walk_dmar_table()

2016-04-14 Thread Wei Yang
dmar_acpi_dev_scope_init() iterates on the remapping structure and just do proper job for ANDD structure. This is the what dmar_walk_dmar_table() does. This patch improves the code with dmar_walk_dmar_table(). Signed-off-by: Wei Yang --- drivers/iommu/dmar.c | 56 -

[PATCH V4 0/4] Code refine for Intel IOMMU

2016-04-14 Thread Wei Yang
These four patches try to refine the Intel IOMMU. Patch 1/2 tries to make it

[PATCH V4 1/4] iommu/vt-d: replace *hdr with {drhd/atsr}[0] in struct dmar_{drhd/atsr}_unit

2016-04-14 Thread Wei Yang
Before commit <6b1972493a84> ("iommu/vt-d: Implement DMAR unit hotplug framework"), dmaru->hdr just points to the memory region of DMA remapping hardware definition. In this case, it would have no difference to where we put hdr. After this commit, DMA remapping hardware definition is copied and at

[PATCH V4 3/4] iommu/vt-d: check Register Base Address at the beginning of dmar_parse_one_drhd()

2016-04-14 Thread Wei Yang
A NULL value of Register Base Address in a Hardware Unit Definition means it is an invalid dmar. Current implementation checks this value in alloc_iommu(), by when it has already allocated memory to store itself and device scope. This patch moves the check at the beginning of dmar_parse_one_drhd()

Re: [PATCH] i2c: designware-platdrv: implement bus recovery

2016-04-14 Thread Martinez Kristofer
On Thu, Apr 14, 2016 at 10:39 PM, Mika Westerberg wrote: > On Thu, Apr 14, 2016 at 10:04:56PM +0800, Jisheng Zhang wrote: >> Implement bus recovery methods for i2c designware so we can recover >> from situations where SCL/SDA are stuck low. >> >> The recovery method is similar as i2c-imx: "config

Re: Deleting child qdisc doesn't reset parent to default qdisc?

2016-04-14 Thread Eric Dumazet
On Thu, 2016-04-14 at 16:44 +0200, Jiri Kosina wrote: > Hi, > > I've came across the behavior where adding a child qdisc and then deleting > it again makes the networking dysfunctional (I guess that's because all of > a sudden there is absolutely no working qdisc on the device, although > there

Re: [PATCH v5 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

2016-04-14 Thread Rob Herring
On Wed, Apr 13, 2016 at 10:46:48AM +0530, Kedareswara rao Appana wrote: > Device-tree binding documentation for Xilinx zynqmp dma engine used in > Zynq UltraScale+ MPSoC. > > Signed-off-by: Punnaiah Choudary Kalluri > Signed-off-by: Kedareswara rao Appana > --- > Changes in v5: > - Use dma-coher

Re: [PATCH v2 12/17] kvm-arm: Add explicit hyp page table modifiers

2016-04-14 Thread Christoffer Dall
On Thu, Apr 14, 2016 at 02:21:00PM +0100, Suzuki K Poulose wrote: > We have common routines to modify hyp and stage2 page tables > based on the 'kvm' parameter. For a smoother transition to > using separate routines for each, duplicate the routines > and modify the copy to work on hyp. > > Marks t

Re: 8250 dma issues ( was Re: [PATCH] tty: serial: 8250_omap: do not defer termios changes)

2016-04-14 Thread One Thousand Gnomes
> >> 3. Handling XON/XOFF transmit is mandatory; I don't see a way to do that > >>without pause/resume. > > > > Yes, not doing XON/XOFF with DMA is not good. Using hardware flow > > control is one workaround but the user has no chance of knowing that > > XON/XOFF has been silently disabled.

Re: [PATCH v4 00/20] x86, boot: kaslr cleanup and 64bit kaslr support

2016-04-14 Thread Baoquan He
On 04/13/16 at 11:02pm, Kees Cook wrote: > On Wed, Apr 13, 2016 at 7:11 AM, Kees Cook wrote: > > On Wed, Apr 13, 2016 at 3:19 AM, Ingo Molnar wrote: > >> > >> * Kees Cook wrote: > >> > >>> FWIW, I've also had this tree up in my git branches, and the 0day > >>> tester hasn't complained at all abo

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

2016-04-14 Thread Arnaldo Carvalho de Melo
Em Thu, Apr 14, 2016 at 10:55:47PM +1000, Michael Ellerman escreveu: > On Thu, 2016-04-14 at 09:35 -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Apr 14, 2016 at 12:14:18PM +1000, Stephen Rothwell escreveu: > > > Hi all, > > > > > > After merging the tip tree, today's linux-next build (powerpc

Re: [PATCH v2 15/17] kvm: arm64: Get rid of fake page table levels

2016-04-14 Thread Christoffer Dall
On Thu, Apr 14, 2016 at 02:21:03PM +0100, Suzuki K Poulose wrote: > On arm64, the hardware supports concatenation of upto 16 tables, > at entry level for stage2 translations and we make use that whenever > possible. This could lead to reduced number of translation levels than > the normal (stage1 t

[PATCH v6 03/20] kthread: Add create_kthread_worker*()

2016-04-14 Thread Petr Mladek
Kthread workers are currently created using the classic kthread API, namely kthread_run(). kthread_worker_fn() is passed as the @threadfn parameter. This patch defines create_kthread_worker() and create_kthread_worker_on_cpu() functions that hide implementation details. They enforce using kthread

[PATCH v6 01/20] kthread/smpboot: Do not park in kthread_create_on_cpu()

2016-04-14 Thread Petr Mladek
kthread_create_on_cpu() was added by the commit 2a1d446019f9a5983e ("kthread: Implement park/unpark facility"). It is currently used only when enabling new CPU. For this purpose, the newly created kthread has to be parked. The CPU binding is a bit tricky. The kthread is parked when the CPU has not

[PATCH v6 00/20] kthread: Use kthread worker API more widely

2016-04-14 Thread Petr Mladek
My intention is to make it easier to manipulate and maintain kthreads. Especially, I want to replace all the custom main cycles with a generic one. Also I want to make the kthreads sleep in a consistent state in a common place when there is no work. My first attempt was with a brand new API (itera

[PATCH v6 02/20] kthread: Allow to call __kthread_create_on_node() with va_list args

2016-04-14 Thread Petr Mladek
kthread_create_on_node() implements a bunch of logic to create the kthread. It is already called by kthread_create_on_cpu(). We are going to extend the kthread worker API and will need to call kthread_create_on_node() with va_list args there. This patch does only a refactoring and does not modify

[PATCH 1/2] staging: wilc1000: fix double unlock

2016-04-14 Thread Sudip Mukherjee
The semaphore was being released twice, once at the beginning of the thread and then again when the thread is about to close. The semaphore is acquired immediately after creating the thread so we should be releasing it when the thread ends. Signed-off-by: Sudip Mukherjee --- drivers/staging/wilc

[PATCH v6 20/20] thermal/intel_powerclamp: Convert the kthread to kthread worker API

2016-04-14 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v6 04/20] kthread: Add drain_kthread_worker()

2016-04-14 Thread Petr Mladek
flush_kthread_worker() returns when the currently queued works are proceed. But some other works might have been queued in the meantime. This patch adds drain_kthread_worker() that is inspired by drain_workqueue(). It returns when the queue is completely empty and warns when it takes too long. Th

Re: [PATCH v5 2/4] nmi_backtrace: do a local dump_stack() instead of a self-NMI

2016-04-14 Thread Aaron Tomlin
On Tue 2016-04-05 13:26 -0400, Chris Metcalf wrote: > Currently on arm there is code that checks whether it should call > dump_stack() explicitly, to avoid trying to raise an NMI when the > current context is not preemptible by the backtrace IPI. Similarly, > the forthcoming arch/tile support uses

[PATCH v6 11/20] mm/huge_page: Convert khugepaged() into kthread worker API

2016-04-14 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v6 10/20] kthread: Better support freezable kthread workers

2016-04-14 Thread Petr Mladek
This patch allows to make kthread worker freezable via a new @flags parameter. It will allow to avoid an init work in some kthreads. It currently does not affect the function of kthread_worker_fn() but it might help to do some optimization or fixes eventually. I currently do not know about any ot

[PATCH v6 14/20] kmemleak: Convert kmemleak kthread into kthread worker API

2016-04-14 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH 2/2] staging: wilc1000: remove unused variables

2016-04-14 Thread Sudip Mukherjee
These variables were havnig the pointer returned by wiphy_priv() but they were never used. Signed-off-by: Sudip Mukherjee --- drivers/staging/wilc1000/linux_wlan.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_w

Re: [PATCH v5 1/4] nmi_backtrace: add more trigger_*_cpu_backtrace() methods

2016-04-14 Thread Aaron Tomlin
On Tue 2016-04-05 13:26 -0400, Chris Metcalf wrote: > Currently you can only request a backtrace of either all cpus, or > all cpus but yourself. It can also be helpful to request a remote > backtrace of a single cpu, and since we want that, the logical > extension is to support a cpumask as the un

[PATCH v6 16/20] IB/fmr_pool: Convert the cleanup thread into kthread worker API

2016-04-14 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

Re: [PATCH v1 3/3] nvmem: core: fix regmap accessor usage

2016-04-14 Thread Mark Brown
On Thu, Apr 14, 2016 at 01:35:03PM +0100, Srinivas Kandagatla wrote: > I totally agree that there is an abstraction failure here in both sides. It > should be fixed. moving to using bulk apis would solve the nvmem problem for > now. But for long term, using regmap should be totally removed from nv

[PATCH v6 07/20] kthread: Initial support for delayed kthread work

2016-04-14 Thread Petr Mladek
We are going to use kthread_worker more widely and delayed works will be pretty useful. The implementation is inspired by workqueues. It uses a timer to queue the work after the requested delay. If the delay is zero, the work is queued immediately. In compare with workqueues, each work is associa

Re: [PATCH 0/5] Live patching for powerpc

2016-04-14 Thread Torsten Duwe
On Thu, Apr 14, 2016 at 11:08:02PM +1000, Michael Ellerman wrote: > On Thu, 2016-04-14 at 14:57 +0200, Torsten Duwe wrote: > > > FTR: then I still have a few ppc64 hunks floating around to support certain > > consistency > > models... > > OK. I'm not quite sure what you mean but post them and we

Re: Deleting child qdisc doesn't reset parent to default qdisc?

2016-04-14 Thread Phil Sutter
On Thu, Apr 14, 2016 at 08:01:39AM -0700, Eric Dumazet wrote: > On Thu, 2016-04-14 at 16:44 +0200, Jiri Kosina wrote: > > Hi, > > > > I've came across the behavior where adding a child qdisc and then deleting > > it again makes the networking dysfunctional (I guess that's because all of > > a su

[PATCH v6 19/20] thermal/intel_powerclamp: Remove duplicated code that starts the kthread

2016-04-14 Thread Petr Mladek
This patch removes a code duplication. It does not modify the functionality. Signed-off-by: Petr Mladek CC: Zhang Rui CC: Eduardo Valentin CC: Jacob Pan CC: Sebastian Andrzej Siewior CC: linux...@vger.kernel.org Acked-by: Jacob Pan --- drivers/thermal/intel_powerclamp.c | 45 +++

[PATCH v6 08/20] kthread: Allow to cancel kthread work

2016-04-14 Thread Petr Mladek
We are going to use kthread workers more widely and sometimes we will need to make sure that the work is neither pending nor running. This patch implements cancel_*_sync() operations as inspired by workqueues. Well, we are synchronized against the other operations via the worker lock, we use del_t

[PATCH v6 17/20] memstick/r592: Better synchronize debug messages in r592_io kthread

2016-04-14 Thread Petr Mladek
There is an attempt to print debug messages when the kthread is waken and when it goes into sleep. It does not work well because the spin lock does not guard all manipulations with the thread state. I did not find a way how to print a message when the kthread really goes into sleep. Instead, I add

[PATCH v6 12/20] ring_buffer: Convert benchmark kthreads into kthread worker API

2016-04-14 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v6 06/20] kthread: Detect when a kthread work is used by more workers

2016-04-14 Thread Petr Mladek
Nothing currently prevents a work from queuing for a kthread worker when it is already running on another one. This means that the work might run in parallel on more workers. Also some operations, e.g. flush or drain are not reliable. This problem will be even more visible after we add cancel_kthr

[PATCH v6 05/20] kthread: Add destroy_kthread_worker()

2016-04-14 Thread Petr Mladek
The current kthread worker users call flush() and stop() explicitly. This function drains the worker, stops it, and frees the kthread_worker struct in one call. It is supposed to be used together with create_kthread_worker*() that allocates struct kthread_worker. Also note that drain() correctly

[GIT PULL] pwm: Fixes for v4.6-rc4

2016-04-14 Thread Thierry Reding
Hi Linus, The following changes since commit f55532a0c0b8bb6148f4e07853b876ef73bc69ca: Linux 4.6-rc1 (2016-03-26 16:03:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git tags/pwm/for-4.6-rc4 for you to fetch changes

[PATCH v6 15/20] ipmi: Convert kipmi kthread into kthread worker API

2016-04-14 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v6 09/20] kthread: Allow to modify delayed kthread work

2016-04-14 Thread Petr Mladek
There are situations when we need to modify the delay of a delayed kthread work. For example, when the work depends on an event and the initial delay means a timeout. Then we want to queue the work immediately when the event happens. This patch implements mod_delayed_kthread_work() as inspired wor

[PATCH v6 13/20] hung_task: Convert hungtaskd into kthread worker API

2016-04-14 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v6 18/20] memstick/r592: convert r592_io kthread into kthread worker API

2016-04-14 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

Re: [LINUX PATCH v2 1/3] spi: Added dummy_cycle entry in the spi_transfer structure.

2016-04-14 Thread Cyrille Pitchen
Le 14/04/2016 10:57, Mark Brown a écrit : > On Thu, Apr 14, 2016 at 10:06:55AM +0200, Cyrille Pitchen wrote: > >> I understand but you propose to patch both the SPI layer and the m25p80 >> driver >> to introduce some support which is already provided by the "spi_flash_read" >> hook: struct spi_fl

Re: [PATCH memory-barriers.txt 6/7] documentation: Add Korean translation

2016-04-14 Thread Paul E. McKenney
On Thu, Apr 14, 2016 at 10:04:47AM +0900, SeongJae Park wrote: > On Wed, Apr 13, 2016 at 9:49 PM, Paul E. McKenney > wrote: > > On Wed, Apr 13, 2016 at 05:11:24PM +0900, SeongJae Park wrote: > >> On Wed, Apr 13, 2016 at 3:38 PM, Ingo Molnar wrote: > >> > > >> > * Paul E. McKenney wrote: > >> > >

<    1   2   3   4   5   6   7   8   9   10   >