Re: [PATCH v4] poly1305: generic C can be faster on chips with slow unaligned access

2016-11-08 Thread Martin Willi
> By using the unaligned access helpers, we drastically improve > performance on small MIPS routers that have to go through the > exception fix-up handler for these unaligned accesses. I couldn't measure any slowdown here, so: Acked-by: Martin Willi > -   dctx->s[0] = le32_to_cpuvp(key +  

[PATCH] lockdep: Remove unused parameter in add_lock_to_list() function

2016-11-08 Thread Tahsin Erdogan
class parameter is not used, remove it. Signed-off-by: Tahsin Erdogan --- kernel/locking/lockdep.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 589d763a49b3..e74b438c850b 100644 --- a/kernel/locking/lockd

Re: [PATCH v3] Input: synaptics-rmi4 - stop scanning PDT after two empty pages

2016-11-08 Thread Dmitry Torokhov
On Wed, Oct 26, 2016 at 09:57:34PM +0100, Nick Dyer wrote: > We have encountered some RMI4 firmwares where there are blank pages in > between PDT pages which contain functions. This change makes them > correctly enumerate all functions on the device. > > Tested on S7817 (has empty page 2). > > Si

Re: [PATCH 1/7] genirq/affinity: Introduce struct irq_affinity

2016-11-08 Thread Hannes Reinecke
On 11/07/2016 07:47 PM, Christoph Hellwig wrote: From: Christogh Hellwig Some drivers (various network and RDMA adapter for example) have a MSI-X vector layout where most of the vectors are used for I/O queues and should have CPU affinity assigned to them, but some (usually 1 but sometimes more

Re: [lkp] [net] af1fee9821: BUG:spinlock_trylock_failure_on_UP_on_CPU

2016-11-08 Thread Allan W. Nielsen
Hi Ye Xiaolong, On 08/11/16 10:01, Ye Xiaolong wrote: > Could you tell us what troubles you have met when trying the "lkp qemu" > tool, it would be better if you could paste some log so we can help to > improve it. Sure: anielsen@lx-anielsen ~/work/opensource-phy/lkp-tests (master) $ bin/lkp qem

Re: [PATCH v2 05/12] mm: thp: add core routines for thp/pmd migration

2016-11-08 Thread Anshuman Khandual
On 11/08/2016 05:01 AM, Naoya Horiguchi wrote: > This patch prepares thp migration's core code. These code will be open when > unmap_and_move() stops unconditionally splitting thp and get_new_page() starts > to allocate destination thps. > > Signed-off-by: Naoya Horiguchi > --- > ChangeLog v1 ->

Re: [PATCH 2/7] genirq/affinity: Handle pre/post vectors in irq_calc_affinity_vectors()

2016-11-08 Thread Hannes Reinecke
On 11/07/2016 07:47 PM, Christoph Hellwig wrote: From: Christogh Hellwig Only calculate the affinity for the main I/O vectors, and skip the pre or post vectors specified by struct irq_affinity. Also remove the irq_affinity cpumask argument that has never been used. If we ever need it in the fu

Re: [PATCH 3/7] genirq/affinity: Handle pre/post vectors in irq_create_affinity_masks()

2016-11-08 Thread Hannes Reinecke
On 11/07/2016 07:47 PM, Christoph Hellwig wrote: From: Christogh Hellwig Only calculate the affinity for the main I/O vectors, and skip the pre or post vectors specified by struct irq_affinity. Also remove the irq_affinity cpumask argument that has never been used. If we ever need it in the fu

Re: [PATCH 4/7] pci/msi: Propagate irq affinity description through the MSI code

2016-11-08 Thread Hannes Reinecke
On 11/07/2016 07:47 PM, Christoph Hellwig wrote: From: Christogh Hellwig No API change yet, just pass it down all the way from pci_alloc_irq_vectors to the core MSI code. Signed-off-by: Christogh Hellwig --- drivers/pci/msi.c | 62 +-- 1 fi

Re: [PATCH 5/7] pci/msi: Provide pci_alloc_irq_vectors_affinity()

2016-11-08 Thread Hannes Reinecke
On 11/07/2016 07:47 PM, Christoph Hellwig wrote: From: Christogh Hellwig This is a variant of pci_alloc_irq_vectors() that allows passing a struct irq_affinity to provide fine-grainded IRQ affinity control. For now this means being able to exclude vectors at the beginning or end of the MSI vect

Re: [PATCH 6/7] pci: Remove the irq_affinity mask from struct pci_dev

2016-11-08 Thread Hannes Reinecke
On 11/07/2016 07:47 PM, Christoph Hellwig wrote: This has never been used, and now is totally unreferenced. Nuke it. Signed-off-by: Christoph Hellwig --- include/linux/pci.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index 7090f5f..f2ba6ac 100

[PATCH] writeback: remove redundant if check

2016-11-08 Thread Tahsin Erdogan
b_more_io non-empty check is already preceded by an opposite check. Signed-off-by: Tahsin Erdogan --- fs/fs-writeback.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 05713a5da083..ef600591d96f 100644 --- a/fs/fs-w

Re: [PATCH 1/7] genirq/affinity: Introduce struct irq_affinity

2016-11-08 Thread Johannes Thumshirn
On Mon, Nov 07, 2016 at 10:47:36AM -0800, Christoph Hellwig wrote: > From: Christogh Hellwig > > Some drivers (various network and RDMA adapter for example) have a MSI-X > vector layout where most of the vectors are used for I/O queues and should > have CPU affinity assigned to them, but some (us

Re: [PATCH v2 05/12] mm: thp: add core routines for thp/pmd migration

2016-11-08 Thread Naoya Horiguchi
On Tue, Nov 08, 2016 at 01:43:54PM +0530, Anshuman Khandual wrote: > On 11/08/2016 05:01 AM, Naoya Horiguchi wrote: > > This patch prepares thp migration's core code. These code will be open when > > unmap_and_move() stops unconditionally splitting thp and get_new_page() > > starts > > to allocate

[PATCH] clk: Free struct clk allocated during clk_hw_register()

2016-11-08 Thread Rajendra Nayak
With clk_hw_register() API we hide the struct clk from the caller and return an int error code instead, so the caller (clk provider) is not expected to use hw->clk on return. Free the memory, and mark hw->clk as NULL before returning. Signed-off-by: Rajendra Nayak --- drivers/clk/clk.c | 10

Re: [PATCH 4/7] pci/msi: Propagate irq affinity description through the MSI code

2016-11-08 Thread Johannes Thumshirn
On Mon, Nov 07, 2016 at 10:47:39AM -0800, Christoph Hellwig wrote: > From: Christogh Hellwig > > No API change yet, just pass it down all the way from > pci_alloc_irq_vectors to the core MSI code. > > Signed-off-by: Christogh Hellwig > --- Looks good, Reviewed-by: Johannes Thumshirn -- Joha

[PATCH 1/6 v6] sched: factorize attach/detach entity

2016-11-08 Thread Vincent Guittot
Factorize post_init_entity_util_avg and part of attach_task_cfs_rq in one function attach_entity_cfs_rq. Create symmetric detach_entity_cfs_rq function Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 54 +++-- 1 file changed, 32 insertions

[PATCH 5/6 v6] sched: propagate asynchrous detach

2016-11-08 Thread Vincent Guittot
A task can be asynchronously detached from cfs_rq when migrating between CPUs. The load of the migrated task is then removed from source cfs_rq during its next update. We use this event to set propagation flag. During the load balance, we take advantage of the update of blocked load to propagate a

[PATCH 0/6 v6] sched: reflect sched_entity move into task_group's load

2016-11-08 Thread Vincent Guittot
Ensure that the move of a sched_entity will be reflected in load and utilization of the task_group hierarchy. When a sched_entity moves between groups or CPUs, load and utilization of cfs_rq don't reflect the changes immediately but converge to new values. As a result, the metrics are no more alig

[PATCH 4/6 v6] sched: propagate load during synchronous attach/detach

2016-11-08 Thread Vincent Guittot
When a task moves from/to a cfs_rq, we set a flag which is then used to propagate the change at parent level (sched_entity and cfs_rq) during next update. If the cfs_rq is throttled, the flag will stay pending until the cfs_rq is unthrottled. For propagating the utilization, we copy the utilizatio

Re: [PATCH 6/7] pci: Remove the irq_affinity mask from struct pci_dev

2016-11-08 Thread Johannes Thumshirn
On Mon, Nov 07, 2016 at 10:47:41AM -0800, Christoph Hellwig wrote: > This has never been used, and now is totally unreferenced. Nuke it. > > Signed-off-by: Christoph Hellwig > --- Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Stora

[PATCH 3/6 v6] sched: factorize PELT update

2016-11-08 Thread Vincent Guittot
Every time, we modify load/utilization of sched_entity, we start to sync it with its cfs_rq. This update is done is different ways: -when attaching/detaching a sched_entity, we update cfs_rq and then we sync the entity with the cfs_rq. -when enqueueing/dequeuing the sched_entity, we update both sch

[PATCH 6/6 v6] sched: fix task group initialization

2016-11-08 Thread Vincent Guittot
The moves of tasks are now propagated down to root and the utilization of cfs_rq reflects reality so it doesn't need to be estimated at init. Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sc

Re: [PATCH 5/7] pci/msi: Provide pci_alloc_irq_vectors_affinity()

2016-11-08 Thread Johannes Thumshirn
On Tue, Nov 08, 2016 at 09:17:33AM +0100, Hannes Reinecke wrote: > On 11/07/2016 07:47 PM, Christoph Hellwig wrote: > > From: Christogh Hellwig > > > > This is a variant of pci_alloc_irq_vectors() that allows passing a > > struct irq_affinity to provide fine-grainded IRQ affinity control. > > For

Re: [PATCH 7/7] blk-mq: add a first_vec argument to blk_mq_pci_map_queues

2016-11-08 Thread Johannes Thumshirn
On Mon, Nov 07, 2016 at 10:47:42AM -0800, Christoph Hellwig wrote: > This allows skipping the first N IRQ vectors in case they are used for > control or admin interrupts. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Hannes Reinecke Looks good, Reviewed-by: Johannes Thumshirn -- Johann

[PATCH 2/6 v6] sched: fix hierarchical order in rq->leaf_cfs_rq_list

2016-11-08 Thread Vincent Guittot
Fix the insertion of cfs_rq in rq->leaf_cfs_rq_list to ensure that a child will always be called before its parent. The hierarchical order in shares update list has been introduced by commit 67e86250f8ea ("sched: Introduce hierarchal order on shares update list") With the current implementation a

Re: [Resend][PATCH] cpufreq: conservative: Decrease frequency faster when the timer deferred

2016-11-08 Thread Viresh Kumar
On 8 November 2016 at 12:49, Stratos Karafotis wrote: > I think we shouldn't. That's why the patch first decreases the frequency > by n freq steps (where n the number of deferred periods). > Then the normal processing takes place. The problem that I see is that the new algorithm will reduce the f

Re: [PATCH v2 01/15] pinctrl-sx150x: Improve OF device matching code

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > Add proper device specific information to of_device_id table of the > driver and add code to match against and fetch said data from it. > > Signed-off-by: Andrey Smirnov Patch applied. Excellent work! Yours, Linus Walleij

Re: [PATCH v2 02/15] pinctrl-sx150x: Add SX1503 specific data

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > Tested-by: Neil Armstrong > Acked-by: Neil Armstrong > Signed-off-by: Andrey Smirnov Patch applied! Yours, Linus Walleij

Re: [PATCH v3 1/2] x86/AMD: Fix cpu_llc_id for AMD Fam17h systems

2016-11-08 Thread Borislav Petkov
On Tue, Nov 08, 2016 at 07:31:45AM +0100, Ingo Molnar wrote: > So the point I tried to make is that to people doing -stable > backporting decisions this description you just gave is much more > valuable than the previous changelog. Ok, how's that below? I've integrated the gist of it in the commit

Re: [PATCH v2 04/15] pinctrl-sx150x: Replace magic number in sx150x_init_hw

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > Tested-by: Neil Armstrong > Acked-by: Neil Armstrong > Signed-off-by: Andrey Smirnov Patch applied! Yours, Linus Walleij

Re: [PATCH v2 03/15] bindings: pinctrl-sx150x: Document SX1503 compatibility string

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > Signed-off-by: Andrey Smirnov Patch applied. Yours, Linus Walleij

Re: [PATCH 1/6] clk: stm32f4: Add PLL_I2S & PLL_SAI for STM32F429/469 boards

2016-11-08 Thread Gabriel Fernandez
Hi Radosław Many thanks for reviewing. On 11/07/2016 03:57 PM, Radosław Pietrzyk wrote: +static struct clk_hw *clk_register_pll_div(const char *name, + const char *parent_name, unsigned long flags, + void __iomem *reg, u8 shift, u8 width, + u8 clk_divid

Re: [PATCH v2 05/15] pinctrl-sx150x: Fix incorrect constant in sx150x_init_hw

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > According to the datasheet for SX1504/5/6, RegAdvanced's > "Autoclear NINT" bit that turns the feature when set and disables it > when cleared, so writing 0x04 to the register will have the opposite > from desirable effect. > > Tested-by: Ne

Re: [PATCH v2 07/15] pinctrl-sx150x: Improve sx150x_init_misc for SX1504/5/6

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > For Sx1504/5/6 only SX1506 has RegAdvanced, so put some code in place to > account for that. > > Tested-by: Neil Armstrong > Acked-by: Neil Armstrong > Signed-off-by: Andrey Smirnov Patch applied! Yours, Linus Walleij

Re: [PATCH v2 08/15] pinctrl-sx150x: Convert driver to use regmap API

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > To allow for future code simplification > > Tested-by: Neil Armstrong > Acked-by: Neil Armstrong > Signed-off-by: Andrey Smirnov Patch applied! Yours, Linus Walleij

Re: linux-next: manual merge of the rdma-leon-test tree with the net-next tree

2016-11-08 Thread Leon Romanovsky
On Tue, Nov 08, 2016 at 01:06:23PM +1100, Stephen Rothwell wrote: > Hi Leon, > > Today's linux-next merge of the rdma-leon-test tree got a conflict in: > > drivers/infiniband/core/roce_gid_mgmt.c > > between commit: > > 453d39329ad0 ("IB/core: Flip to the new dev walk API") > > from the net-nex

Re: [Intel-gfx] [PATCH] drm: make drm_get_format_name thread-safe

2016-11-08 Thread Daniel Vetter
On Thu, Nov 03, 2016 at 02:52:00PM -0400, Rob Clark wrote: > On Sun, Aug 14, 2016 at 8:02 PM, Eric Engestrom wrote: > > Signed-off-by: Eric Engestrom > > --- > > > > I moved the main bits to be the first diffs, shouldn't affect anything > > when applying the patch, but I wanted to ask: > > I don'

Re: [PATCH v2 09/15] pinctrl-sx150x: Replace sx150x_*_cfg by means of regmap API

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > The difference between 8 and 16 pin GPIO expanders can be accomodated by > the means of regmap API without resorting to usaing driver-specific > read/write accessors. This change, IMHO, brings the following benefits: > > - Replaces d

[PATCH] libfc: fix seconds_since_last_reset miscalculation

2016-11-08 Thread Johannes Thumshirn
Commit 540eb1eef 'scsi: libfc: fix seconds_since_last_reset calculation' removed the use of 'struct timespec' from fc_get_host_stats(). This broke the output of 'fcoeadm -s' after kernel 4.8-rc1 as lport->boot_time - jiffies could become negative as in this example: $ cat /sys/class/fc_host/host8/

Re: [PATCH v2 10/15] pinctrl-sx150x: Remove excessive locking

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > Gpiochip and irqchip aspects of this driver do not access any shared > registers on the chip itself and atomicity of various regmap operations > is ensured by that API's implementation, so there doesn't seem to be a > reason to hold the lock

Re: [PATCH v2 11/15] pinctrl-sx150x: Improve oscio GPIO functions

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > Move actual code that configures oscio pin into a separate function and > use it instead of calling sx150x_gpio_set to avoid calling > sx150x_pin_is_oscio twice and correctly propagte error code in > sx150x_gpio_direction_output. > > Tested-

Re: [PATCH v11 15/22] vfio: Introduce vfio_set_irqs_validate_and_prepare()

2016-11-08 Thread Alexey Kardashevskiy
On 05/11/16 08:10, Kirti Wankhede wrote: > Vendor driver using mediated device framework would use same mechnism to > validate and prepare IRQs. Introducing this function to reduce code > replication in multiple drivers. > > Signed-off-by: Kirti Wankhede > Signed-off-by: Neo Jia > Change-Id: Ie2

Re: [PATCH v2 12/15] pinctrl-sx150x: Simplify interrupt handler

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > Make use of for_each_set_bit macro and reduce boilerplate code. > > Tested-by: Neil Armstrong > Acked-by: Neil Armstrong > Signed-off-by: Andrey Smirnov Patch applied. Yours, Linus Walleij

Re: [PATCH v2 13/15] pinctrl-sx150x: Use handle_bad_irq instead of handle_edge_irq

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > Althought the function passed as a "handler" during GPIO chip > instantiation is not going to ever be called, specifying handle_edge_irq > there makes for a rather confusing read, both because no "ack" callback > in specified for irqchip and

Re: [PATCH v2 06/15] pinctrl-sx150x: Move some code out of sx150x_init_hw

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > Move the code configuring explicit IRQ acking into a standalone function > to declutter sx150x_init_hw a bit and make that code somewhat less > repetitious. > > Tested-by: Neil Armstrong > Acked-by: Neil Armstrong > Signed-off-by: Andrey S

Re: [PATCH v2 14/15] pinctrl-sx150x: Remove magic numbers from sx150x_irq_set_type

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > Tested-by: Neil Armstrong > Acked-by: Neil Armstrong > Signed-off-by: Andrey Smirnov Patch applied! Yours, Linus Walleij

Re: [PATCH v2 15/15] pinctrl-sx150x: Remove magic numbers from sx150x_reset

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 5:53 PM, Andrey Smirnov wrote: > Tested-by: Neil Armstrong > Acked-by: Neil Armstrong > Signed-off-by: Andrey Smirnov Patch applied! Yours, Linus Walleij

Re: [PATCH] s390: remove unneeded dependency for gen_facilities

2016-11-08 Thread Martin Schwidefsky
On Tue, 8 Nov 2016 08:45:28 +0100 Heiko Carstens wrote: > On Tue, Nov 08, 2016 at 10:55:47AM +0900, Masahiro Yamada wrote: > > The dependency between the object and the source is handled by > > scripts/Makefile.host, so only "hostprogs-y += gen_facilities" > > is fine. > > > > Signed-off-by: Mas

[PATCH 0/2][RFC v6] Ignore bogus sleep time if pm_trace is enabled

2016-11-08 Thread Chen Yu
This patch set is based on Thomas's previous solution, to bypass the bogus CMOS-RTC sleep time after resumed, thus to avoid damage to timekeeping system. The bogus sleep time comes from pm_trace, which might use CMOS-RTC for debugging purpose. Meanwhile, a solution to save/restore of CMOS-RTC is a

[PATCHv2 08/49] thermal: core: improve power actor documentation

2016-11-08 Thread Eduardo Valentin
Simple improvement on clarity and removal of checkpatch warning in the documentation of power actor kernel doc. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 5 +++-- 1 file changed, 3 insertions(

Re: [PATCH 1/6] clk: stm32f4: Add PLL_I2S & PLL_SAI for STM32F429/469 boards

2016-11-08 Thread Radosław Pietrzyk
2016-11-08 9:35 GMT+01:00 Gabriel Fernandez : > Hi Radosław > > Many thanks for reviewing. > > On 11/07/2016 03:57 PM, Radosław Pietrzyk wrote: >>> >>> +static struct clk_hw *clk_register_pll_div(const char *name, >>> + const char *parent_name, unsigned long flags, >>> +

[PATCH 1/2][RFC v6] timekeeping: Ignore the bogus sleep time if pm_trace is enabled

2016-11-08 Thread Chen Yu
From: Thomas Gleixner Previously we encountered some memory overflow issues due to the bogus sleep time brought by inconsistent rtc, which is triggered when pm_trace is enabled, and we have fixed it in recent kernel. However it's improper in the first place to call __timekeeping_inject_sleeptime(

[PATCH v4 2/2] cpuid: add AVX512_4VNNIW and AVX512_4FMAPS instructions support

2016-11-08 Thread He Chen
Add two new AVX512 instructions support for KVM guest. AVX512_4VNNIW: Vector instructions for deep learning enhanced word variable precision. AVX512_4FMAPS: Vector instructions for deep learning floating-point single precision. --- arch/x86/kvm/cpuid.c | 14 +- 1 file changed, 13 ins

[PATCH v4 0/2] cpuid: Support AVX512_4VNNIW and AVX512_4FMAPS for KVM guest

2016-11-08 Thread He Chen
This patch series is going to add two new AVX512 features to KVM guest. Since these two features are defined as scattered features in kernel, some extra modification in kernel is included. --- Changes in v4: * divide patch into 2 parts, including modification in scattered.c and support new AVX51

[PATCH v4 1/2] cpuid: Add a helper in scattered.c to return cpuid leaf info

2016-11-08 Thread He Chen
Some sparse cpuid leafs are gathered in a fake leaf to save size of x86_capability array in current code, but sometimes, kernel or other modules (e.g. KVM cpuid enumeration) may need actual hardware leaf information. This patch adds a helper get_scattered_cpuid_leaf to rebuild actual cpuid leaf, a

[PATCH 2/2][RFC v6] PM / sleep: save/restore RTC time after resumed if pm_trace enabled

2016-11-08 Thread Chen Yu
Previously the bogus CMOS RTC sleep time has been ignored if pm_trace is enabled, however once the system successfully resumed back, any further read to CMOS RTC would return an error. Actually it is more user-friendly to bring the system back to normal after resumed. This patch has registered an

Re: [PATCH] ARM: tegra: nyan: Mark all USB ports as host

2016-11-08 Thread Peter De Schrijver
On Mon, Nov 07, 2016 at 02:09:31PM +, Jon Hunter wrote: > > On 07/11/16 13:28, Thierry Reding wrote: > > * PGP Signed by an unknown key > > > > On Sun, Sep 18, 2016 at 12:28:52PM +0200, Paul Kocialkowski wrote: > >> Nyan boards only have host USB ports (2 external, 1 internal), there is > >>

[PATCH v9 3/6] x86/intel-ivi: Add Intel In-Vehicle Infotainment (IVI) systems used in cars support

2016-11-08 Thread Tan Jui Nee
Add support for non ACPI system, such as system that uses Advanced Boot Loader (ABL) whereby a platform device has to be created in order to bind with PINCTRL/GPIO. At the moment, Intel Apollo Lake SoC requires P2SB driver to hide and unhide P2SB to lookup P2SB BAR and pass the PCI BAR address to

[PATCH v9 0/6] pinctrl/broxton: enable platform device in the absent of ACPI enumeration

2016-11-08 Thread Tan Jui Nee
Hi, The patches are to cater the need for non-ACPI system whereby a platform device has to be created in order to bind with Apollo Lake Pinctrl GPIO platform driver. The MMIO BAR is accessed over the Primary to Sideband bridge (P2SB). Since the BIOS prevents the P2SB device from being enumerated b

[PATCH v9 2/6] mfd: lpc_ich: Rename lpc-ich driver

2016-11-08 Thread Tan Jui Nee
This patch follows the example of mfd/wm831x to rename the driver from "lpc_ich" to "lpc_ich_core". Signed-off-by: Tan Jui Nee --- Changes in V9: - Remove the filename from the header of lpc_ich_core.c (suggested by Lee). Changes in V8: - Update new file name with lpc_ich_core.c

[PATCH v9 4/6] mfd: move enum lpc_chipsets into lpc_ich.h

2016-11-08 Thread Tan Jui Nee
Move the enum's definition into a standalone header file which can be used wherever its definition is needed. Signed-off-by: Tan Jui Nee --- Changes in V9: - No change Changes in V8: - No change drivers/mfd/lpc_ich_core.c | 71 - inc

[PATCH v9 5/6] mfd: lpc_ich: Add Device IDs for Intel Apollo Lake PCH

2016-11-08 Thread Tan Jui Nee
Adding Intel codename Apollo Lake platform device IDs for PCH. Signed-off-by: Tan Jui Nee Acked-for-MFD-by: Lee Jones --- Changes in V9: - No change Changes in V8: - No change drivers/mfd/lpc_ich_core.c | 6 ++ include/linux/mfd/lpc_ich.h | 1 + 2 files changed, 7 inserti

[PATCH v9 1/6] x86/platform/p2sb: New Primary to Sideband bridge support driver for Intel SOC's

2016-11-08 Thread Tan Jui Nee
From: Andy Shevchenko There is already one and at least one more user coming which require an access to Primary to Sideband bridge (P2SB) in order to get IO or MMIO bar hidden by BIOS. Create a driver to access P2SB for x86 devices. Signed-off-by: Yong, Jonathan Signed-off-by: Andy Shevchenko

[PATCH v9 6/6] mfd: lpc_ich: Add support for Intel Apollo Lake GPIO pinctrl in non-ACPI system

2016-11-08 Thread Tan Jui Nee
This driver uses the P2SB hide/unhide mechanism cooperatively to pass the PCI BAR address to the gpio platform driver. Signed-off-by: Tan Jui Nee --- Changes in V9: - No change Changes in V8: - Rename source file lpc_ich-apl.c to lpc_ich_apl.c (suggested by Mika). Changes in V7:

Re: [PATCH v18 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-11-08 Thread Peter Chen
On Thu, Nov 03, 2016 at 12:25:42PM +1100, NeilBrown wrote: > On Tue, Nov 01 2016, Baolin Wang wrote: > > > >> So I won't be responding on this topic any further until I see a genuine > >> attempt to understand and resolve the inconsistencies with > >> usb_register_notifier(). > > > > Any better s

Re: [PATCH 5/5] drm/sun4i: Add support for the overscan profiles

2016-11-08 Thread Daniel Vetter
On Tue, Oct 18, 2016 at 10:29:38AM +0200, Maxime Ripard wrote: > Create overscan profiles reducing the displayed zone. > > For each TV standard (PAL and NTSC so far), we create 4 more reduced modes > by steps of 5% that the user will be able to select. > > Signed-off-by: Maxime Ripard tbh I thi

Re: [PATCH v3] PM / devfreq: Restart previous governor if new governor fails to start

2016-11-08 Thread Chanwoo Choi
Hi, On 2016년 11월 08일 03:57, Saravana Kannan wrote: > On 10/26/2016 05:06 PM, Chanwoo Choi wrote: >> Hi, >> >> On 2016년 10월 27일 04:17, Saravana Kannan wrote: >>> If the new governor fails to start, switch back to old governor so that the >>> devfreq state is not left in some weird limbo. >>> >>> Si

Re: [PATCH v2 0/6] Fix PDF builds on media documentation

2016-11-08 Thread Jani Nikula
On Mon, 07 Nov 2016, Mauro Carvalho Chehab wrote: > This series address a series of errors during PDF generation from > media documentation. I'm missing patches 3-6 of this series, and so is the archive. BR, Jani. -- Jani Nikula, Intel Open Source Technology Center

Re: [PATCH v2 0/6] Fix PDF builds on media documentation

2016-11-08 Thread Jani Nikula
On Tue, 08 Nov 2016, Jani Nikula wrote: > On Mon, 07 Nov 2016, Mauro Carvalho Chehab wrote: >> This series address a series of errors during PDF generation from >> media documentation. > > I'm missing patches 3-6 of this series, and so is the archive. I meant 4-6. > > BR, > Jani. -- Jani Nik

[PATCHv2 34/49] thermal: core: move __bind() to where it is used

2016-11-08 Thread Eduardo Valentin
Moving the helper to closer where it is used. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 66 +- 1 file changed, 33 insertions(+), 33 deletions(-) diff -

Re: [PATCH] drm/tegra: add tiling FB modifiers

2016-11-08 Thread Erik Faye-Lund
On Tue, Nov 8, 2016 at 8:50 AM, Alexandre Courbot wrote: > Add FB modifiers to allow user-space to specify that a surface is in one > of the two tiling formats supported by Tegra chips, and add support in > the tegradrm driver to handle them properly. This is necessary for the > display controller

Re: [PATCH] ARM: tegra: nyan: Mark all USB ports as host

2016-11-08 Thread Paul Kocialkowski
Le mardi 08 novembre 2016 à 10:54 +0200, Peter De Schrijver a écrit : > On Mon, Nov 07, 2016 at 02:09:31PM +, Jon Hunter wrote: > > > > On 07/11/16 13:28, Thierry Reding wrote: > > > * PGP Signed by an unknown key > > > > > > On Sun, Sep 18, 2016 at 12:28:52PM +0200, Paul Kocialkowski wrote:

[PATCH v2 0/2] PM / devfreq: Use the resource-managed function for devfreq device

2016-11-08 Thread Chanwoo Choi
This patch just uses the resource-managed function when adding the new devfreq deivce. This function handles the memory and delete of devfreq instance automatically. Changes from v1: - Rebased these patches on linux-next (20161108) Chanwoo Choi (2): PM / devfreq: rk3399_dmc: Use the resource

[PATCH v4] PM/devfreq: add suspend frequency support

2016-11-08 Thread Lin Huang
Add suspend frequency support and if needed set it to the frequency obtained from the suspend opp (can be defined using opp-v2 bindings and is optional). Signed-off-by: Lin Huang --- Changes in v2: - use update_devfreq() instead devfreq_update_status() Changes in v3: - fix build error Changes in

[PATCH v2 1/2] PM / devfreq: rk3399_dmc: Use the resource-managed function to add devfreq dev

2016-11-08 Thread Chanwoo Choi
This patch uses the resource-managed to add the devfreq device. This function will make it easy to handle the devfreq device. - struct devfreq *devm_devfreq_add_device(struct device *dev, struct devfreq_dev_profile *profile, const

[PATCH v2 2/2] scsi: ufs: Use the resource-managed function to add devfreq device

2016-11-08 Thread Chanwoo Choi
This patch uses the resource-managed to add the devfreq device. This function will make it easy to handle the devfreq device. - struct devfreq *devm_devfreq_add_device(struct device *dev, struct devfreq_dev_profile *profile, const

[PATCH] clk: rockchip: validity should be checked prior to clock rate change

2016-11-08 Thread Elaine Zhang
If validity is not checked prior to clock rate change, clk_set_rate( cpu_clk, unsupported_rate) will return success, but the real clock rate change operation is prohibited in post clock change event. Alough post clock change event will report error due to unsupported clock rate is set, but this err

Re: [PATCH 1/2] s390: delete unneeded #include from facilities_src.h

2016-11-08 Thread Paul Bolle
Hi Mashiro, On Tue, 2016-11-08 at 10:50 +0900, Masahiro Yamada wrote: > 2016-11-07 21:52 GMT+09:00 Paul Bolle : > > So it seems the odd $(LINUXINCLUDE) variable in that Makefile could be > > replaced with something like: > > -include $(srctree)/include/generated/autoconf.h > > This would brea

[PATCH v2 2/2] scsi: ufs: Use the resource-managed function to add devfreq device

2016-11-08 Thread Chanwoo Choi
This patch uses the resource-managed to add the devfreq device. This function will make it easy to handle the devfreq device. - struct devfreq *devm_devfreq_add_device(struct device *dev, struct devfreq_dev_profile *profile, const

[PATCH] ceph: fix printing wrong return variable in ceph_direct_read_write()

2016-11-08 Thread Zhi Zhang
Fix printing wrong return variable for invalidate_inode_pages2_range in ceph_direct_read_write(). Signed-off-by: Zhi Zhang --- fs/ceph/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 18630e8..0136195 100644 --- a/fs/ceph/file.c +++

Re: [REGRESSION] "console: don't prefer first registered if DT specifies stdout-path" breaks console on video outputs of various ARM boards

2016-11-08 Thread Hans de Goede
Hi, On 07-11-16 18:16, Paul Burton wrote: Hi Hans, On Sunday, 6 November 2016 11:54:35 GMT Hans de Goede wrote: What I see in my systems, and what 05fd007e4629 ("console: don't prefer first registered if DT specifies stdout-path") addressed, is that if there are for example 2 UARTs uart0 & uar

Re: BUG? genirq: irq 14 uses trigger mode 8; requested 0

2016-11-08 Thread Mika Westerberg
On Mon, Nov 07, 2016 at 08:29:03PM +0100, Thomas Gleixner wrote: > Subject: genirq: Use irq type from irqdata instead of irqdesc > From: Thomas Gleixner > Date: Mon, 07 Nov 2016 19:57:00 +0100 > > The type flags in the irq descriptor are there for historical reasons and > only updated via irq_mod

Re: [PATCH 2/2] s390: squash facilities_src.h into gen_facilities.c

2016-11-08 Thread Paul Bolle
On Mon, 2016-11-07 at 14:38 +0100, Heiko Carstens wrote: > On Mon, Nov 07, 2016 at 02:13:06PM +0100, Paul Bolle wrote: > > --- /dev/null > > +++ b/arch/s390/include/asm/facilities.h > > @@ -0,0 +1,43 @@ > > +#ifndef __ASM_FACILITIES_H > > +#define __ASM_FACILITIES_H > > + > > +#define FACILITIES_AL

Re: [PATCH 0/3] add ION driver for STIh4xx SoC

2016-11-08 Thread Benjamin Gaignard
Ok so no more dev on ION but can we add ION drivers like hisilicon does ?

Re: [PATCH v2 0/6] Fix PDF builds on media documentation

2016-11-08 Thread Mauro Carvalho Chehab
Em Tue, 08 Nov 2016 11:04:55 +0200 Jani Nikula escreveu: > On Tue, 08 Nov 2016, Jani Nikula wrote: > > On Mon, 07 Nov 2016, Mauro Carvalho Chehab > > wrote: > >> This series address a series of errors during PDF generation from > >> media documentation. > > > > I'm missing patches 3-6 of t

[PATCH v2 1/2] arm64: hugetlb: remove the wrong pmd check in find_num_contig()

2016-11-08 Thread Huang Shijie
The find_num_contig() will return 1 when the pmd is not present. It will cause a kernel dead loop in the following scenaro: 1.) pmd entry is not present. 2.) the page fault occurs: ... hugetlb_fault() --> hugetlb_no_page() --> set_huge_pte_at() 3.) set_huge_pte_at() will only set

Re: [PATCH] drm/tegra: add tiling FB modifiers

2016-11-08 Thread Alexandre Courbot
On 11/08/2016 06:07 PM, Erik Faye-Lund wrote: > On Tue, Nov 8, 2016 at 8:50 AM, Alexandre Courbot wrote: >> Add FB modifiers to allow user-space to specify that a surface is in one >> of the two tiling formats supported by Tegra chips, and add support in >> the tegradrm driver to handle them prope

[PATCH] sched/rt: Change default setup for RT THROTTLING

2016-11-08 Thread Daniel Bristot de Oliveira
[ looks good? if so, I will send a v2 patch set including the ] [ RT_RUNTIME_GREED patch and this one. ] Currently, the option RT_RUNTIME_SHARE is enabled by default. This option enables the sharing of rt_runtime between CPUs, allowing a CPU to borrow rt_runtime from anothe

Re: [PATCH 22/25] x86/mcheck: Do the init in one place

2016-11-08 Thread Borislav Petkov
On Mon, Nov 07, 2016 at 09:12:24PM +0100, Borislav Petkov wrote: > On Mon, Nov 07, 2016 at 10:55:24AM -0800, Luck, Tony wrote: > > I don't think that helps as much as you'd like it to help (at > > least on Intel). A broadcast machine check that finds the boot > > CPU has set CR4[MCE]=1 is still goi

Re: [PATCH] drm: tda998x: mali-dp: hdlcd: refactor connector registration

2016-11-08 Thread Daniel Vetter
On Mon, Oct 31, 2016 at 08:58:43AM +, Russell King - ARM Linux wrote: > On Mon, Oct 24, 2016 at 10:24:42PM +0200, Daniel Vetter wrote: > > On Mon, Oct 24, 2016 at 4:52 PM, Brian Starkey > > wrote: > > >> > > >>> diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c > > >>> b/drivers/gpu/drm/i2c/tda9

Re: [PATCH v3] phy: rcar-gen3-usb2: add sysfs for usb role swap

2016-11-08 Thread Peter Chen
On Wed, Nov 02, 2016 at 03:47:12PM +0900, Yoshihiro Shimoda wrote: > This patch adds sysfs "role" for usb role swap. This parameter can be > read and write. If you use this file as the following, you can swap > the usb role. > > For example: > 1) Connect a usb cable using 2 Salvator-x boards > 2

[PATCH] pinctrl: sx150x: fix up headers

2016-11-08 Thread Linus Walleij
Include rather than Drop . Cc: Andrey Smirnov Cc: Neil Armstrong Signed-off-by: Linus Walleij --- drivers/pinctrl/pinctrl-sx150x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-sx150x.c b/drivers/pinctrl/pinctrl-sx150x.c index dc1341fdc73d..637

Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS

2016-11-08 Thread Heiko Carstens
On Fri, Nov 04, 2016 at 11:44:59PM +, Mark Rutland wrote: > On Wed, Nov 02, 2016 at 12:15:50PM -0700, Dave Hansen wrote: > > On 10/31/2016 05:08 PM, Mark Rutland wrote: > > > When an architecture does not select CONFIG_ARCH_HAS_PKEYS, the pkey_alloc > > > syscall will return -ENOSPC for all (ot

Re: [PATCH v4] PM/devfreq: add suspend frequency support

2016-11-08 Thread Chanwoo Choi
Hi Lin, On 2016년 11월 08일 18:11, Lin Huang wrote: > Add suspend frequency support and if needed set it to > the frequency obtained from the suspend opp (can be defined > using opp-v2 bindings and is optional). > > Signed-off-by: Lin Huang > --- > Changes in v2: > - use update_devfreq() instead de

Re: [PATCH v3 1/5] pinctrl: samsung: Add the support the multiple IORESOURCE_MEM for one pin-bank

2016-11-08 Thread Linus Walleij
On Thu, Nov 3, 2016 at 7:39 AM, Chanwoo Choi wrote: > This patch supports the multiple IORESOURCE_MEM resources for one pin-bank. > In the pre-existing Exynos series, the registers of the gpio bank are included > in the one memory map. But, some gpio bank need to support the one more memory > map

Re: [PATCH v3 2/5] pinctrl: samsung: Add GPF support for Exynos5433

2016-11-08 Thread Linus Walleij
On Thu, Nov 3, 2016 at 7:39 AM, Chanwoo Choi wrote: > This patch add the support of GPF[1-5] pin of Exynos5433 SoC. The GPFx need > to support the multiple memory map because the registers of GPFx are located > in the different domain. > > Cc: Tomasz Figa > Cc: Krzysztof Kozlowski > Cc: Sylwest

Re: [PATCH v3 2/5] pinctrl: samsung: Add GPF support for Exynos5433

2016-11-08 Thread Linus Walleij
On Thu, Nov 3, 2016 at 8:20 PM, Krzysztof Kozlowski wrote: > On Thu, Nov 03, 2016 at 03:39:06PM +0900, Chanwoo Choi wrote: >> This patch add the support of GPF[1-5] pin of Exynos5433 SoC. The GPFx need >> to support the multiple memory map because the registers of GPFx are located >> in the differ

Re: [PATCH] clk: Free struct clk allocated during clk_hw_register()

2016-11-08 Thread Geert Uytterhoeven
Hi Rajendra, On Tue, Nov 8, 2016 at 9:23 AM, Rajendra Nayak wrote: > With clk_hw_register() API we hide the struct clk from the caller > and return an int error code instead, so the caller (clk provider) > is not expected to use hw->clk on return. That's correct, in case of failure. > Free the

Re: [PATCH] ARM: tegra: nyan: Mark all USB ports as host

2016-11-08 Thread Jon Hunter
On 08/11/16 08:54, Peter De Schrijver wrote: > On Mon, Nov 07, 2016 at 02:09:31PM +, Jon Hunter wrote: >> >> On 07/11/16 13:28, Thierry Reding wrote: >>> * PGP Signed by an unknown key >>> >>> On Sun, Sep 18, 2016 at 12:28:52PM +0200, Paul Kocialkowski wrote: Nyan boards only have host US

  1   2   3   4   5   6   7   8   9   10   >