Re: [Cluster-devel] [PATCH 1/1 linux-next] GFS2: use BIT() macro

2016-07-26 Thread Andreas Gruenbacher
Fabian, On Sun, Jul 24, 2016 at 4:24 PM, Fabian Frederick wrote: > Replace 1 << value shift by more explicit BIT() macro > > Also fixes two bare unsigned definitions: > > WARNING: Prefer 'unsigned int' to bare use of 'unsigned' > + unsigned hsize = BIT(ip->i_depth); this patch is l

[PATCH 3/9] clk: sunxi-ng: mux: Increase fixed pre-divider div size

2016-07-26 Thread Chen-Yu Tsai
Some clocks have a predivider value that is larger than what u8 can store. One such example is the OUT clk found on A20/A31, which has a /750 pre-divider on one of the osc24M parents. Increase the size of the div field to u16. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu_mux.c | 2 +

[PATCH 0/9] clk: sunxi-ng: Support A31/A31s CCU

2016-07-26 Thread Chen-Yu Tsai
Hi everyone, This series adds support for the A31/A31s CCU (clock control unit) with the new sunxi-ng binding/driver. This is a near complete driver, with a few features unimplemented or might need reworking: - The HDMI mode of the PLL-MIPI clock is unsupported. - The EMAC clock is unimpleme

[PATCH 2/9] clk: sunxi-ng: nk: Make ccu_nk_find_best static

2016-07-26 Thread Chen-Yu Tsai
make C=2 reports: CHECK drivers/clk/sunxi-ng/ccu_nk.c drivers/clk/sunxi-ng/ccu_nk.c:17:6: warning: symbol 'ccu_nk_find_best' was not declared. Should it be static? ccu_nk_find_best is only used within ccu_nk.c. So make it static to get rid of this warning. Fixes: adbfb0056e03 ("clk: sunxi-ng

[PATCH 6/9] clk: sunxi-ng: nkm: Add mux to support multiple parents

2016-07-26 Thread Chen-Yu Tsai
The MIPI mode of the MIPI-PLL on A31 is an NKM-style PLL with 2 selectable parents. Add mux support to the NKM clock. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu_nkm.c | 40 ++-- drivers/clk/sunxi-ng/ccu_nkm.h | 23 +++ 2 file

[PATCH resend 1/9] clk: sunxi-ng: Fix inverted test condition in ccu_helper_wait_for_lock

2016-07-26 Thread Chen-Yu Tsai
The condition passed to read*_poll_timeout() is the break condition, i.e. wait for this condition to happen and return success. The original code assumed the opposite, resulting in a warning when the PLL clock rate was changed but never lost it's lock as far as the readout indicated. This was veri

[PATCH 7/9] clk: sunxi-ng: mux: Add clk notifier functions

2016-07-26 Thread Chen-Yu Tsai
On sunxi we support cpufreq by changing the clock rate of PLL-CPU. It's possible the clock output of the PLL goes out of the CPU's operational limits when the PLL's multipliers / dividers are changed and it hasn't stabilized yet. This would result in the CPU hanging. To circumvent this, we tempora

[PATCH 9/9] ARM: dts: sun6i: switch A31/A31s to new CCU clock bindings

2016-07-26 Thread Chen-Yu Tsai
Now that we have a different clock representation, switch to it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun6i-a31.dtsi | 424 +-- 1 file changed, 97 insertions(+), 327 deletions(-) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/s

[PATCH 8/9] clk: sunxi-ng: Add A31/A31s clocks

2016-07-26 Thread Chen-Yu Tsai
Add a new style driver for the clock control unit in Allwinner A31/A31s. A few clocks are still missing: - EMAC clock Signed-off-by: Chen-Yu Tsai --- .../devicetree/bindings/clock/sunxi-ccu.txt|3 +- drivers/clk/sunxi-ng/Kconfig | 10 + drivers/clk/sunxi

[PATCH 5/9] clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents

2016-07-26 Thread Chen-Yu Tsai
Some clocks on the A31 have fixed pre-dividers on multiple parents. Add support for them. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 9 + drivers/clk/sunxi-ng/ccu_mux.c | 6 -- drivers/clk/sunxi-ng/ccu_mux.h | 10 ++ 3 files changed, 15

[PATCH 4/9] clk: sunxi-ng: mux: Add support for mux tables

2016-07-26 Thread Chen-Yu Tsai
Some clock muxes have holes, i.e. invalid or unconnected inputs, between parent mux values. Add support for specifying a mux table to map clock parents to mux values. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu_mux.c | 12 drivers/clk/sunxi-ng/ccu_mux.h | 12 ++

Re: [RFC PATCH 2/2] mm, mempool: do not throttle PF_LESS_THROTTLE tasks

2016-07-26 Thread Michal Hocko
On Mon 25-07-16 21:23:44, Michal Hocko wrote: > [CC Marcelo who might remember other details for the loads which made > him to add this code - see the patch changelog for more context] > > On Mon 25-07-16 10:32:47, Michal Hocko wrote: [...] > From 0d950d64e3c59061f7cca71fe5877d4e430499c9 Mon Sep

RE: [PATCH v18 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-26 Thread Dexuan Cui
> From: devel [mailto:driverdev-devel-boun...@linuxdriverproject.org] On > Behalf Of Dexuan Cui > ... > > From: David Miller [mailto:da...@davemloft.net] > > ... > > From: Dexuan Cui > > Date: Tue, 26 Jul 2016 03:09:16 + > > > > > BTW, during the past month, at least 7 other people also review

Re: [PATCH v2] net: neigh: disallow transition to NUD_STALE if lladdr is unchanged in neigh_update()

2016-07-26 Thread Julian Anastasov
Hello, On Tue, 26 Jul 2016, Chunhui He wrote: > NUD_STALE is used when the caller(e.g. arp_process()) can't guarantee > neighbour reachability. If the entry was NUD_VALID and lladdr is unchanged, > the entry state should not be changed. > > Currently the code puts an extra "NUD_CONNECTE

Re: [patch] hwmon: (pmbus) Add explicit support for DPS-460, DPS-800, and SGD009

2016-07-26 Thread Jean Delvare
On Mon, 25 Jul 2016 10:55:53 +, Vadim Pasternak wrote: > Provide support for PSU DPS-460, DPS-800 from Delta Electronics, INC and for > SGD009 from Acbel Polytech, INC. > These devices do not support the STATUS_CML register, and reports a > communication error in response to this command. > For

Re: [RFC PATCH 2/2] mm, mempool: do not throttle PF_LESS_THROTTLE tasks

2016-07-26 Thread Michal Hocko
On Mon 25-07-16 17:52:17, Mikulas Patocka wrote: > > > On Sat, 23 Jul 2016, NeilBrown wrote: > > > "dirtying ... from the reclaim context" ??? What does that mean? > > According to > > Commit: 26eecbf3543b ("[PATCH] vm: pageout throttling") > > From the history tree, the purpose of throttle_vm

Re: [PATCH] power:bq27xxx: 27000/10 read FLAGS register as single

2016-07-26 Thread Pali Rohár
On Monday 18 July 2016 18:12:09 H. Nikolaus Schaller wrote: > The bq27000 and bq27010 have a single byte FLAGS register. > Other gauges have 16 bit FLAGS registers. > > For reading the FLAGS register it is sufficient to read the single > register instead of reading RSOC at the next higher address

Re: staging: ks7010: Rename jump labels

2016-07-26 Thread SF Markus Elfring
> I have a lot of other things to work on, of much greater interest (to me.) This is fine. Thanks for your feedback. >>> Personally I see no value in such statistics. >> >> Do they indicate any code smells eventually? > > I have no idea what you mean, sorry. How do you think about to take ano

Re: [PATCH v4 0/7] thunderbolt: Introducing Thunderbolt(TM) networking

2016-07-26 Thread Andreas Noever
On Wed, Jul 20, 2016 at 12:02 AM, Bjorn Helgaas wrote: > On Mon, Jul 18, 2016 at 01:00:33PM +0300, Amir Levy wrote: >> This is version 4 of Thunderbolt(TM) driver for non-Apple hardware. >> >> Changes since v3: >> - Moved new Thunderbolt device IDs from pci_ids.h to icm_nhi.h. >> - Cleanup and a

[PATCH v2] arm64: mm: convert __dma_* routines to use start, size

2016-07-26 Thread Kwangwoo Lee
v2) change __dma_* routine names using the terminoloy guidance: area: takes a start and size range: takes a start and end use __dma_flush_area() instead of __dma_flush_range() in dma-mapping.c v1) __dma_* routines have been converted to use start and size instread of start and end addresse

Re: [RFC] User-defined leds

2016-07-26 Thread Jacek Anaszewski
Hi David, On 07/25/2016 08:36 PM, David Lechner wrote: short version: I have a use case for leds where I want to be able to use the triggers in the leds subsystem without having a physical hardware led. long version: I am working on a program to make one embedded system (http://fatcatlab.com/pr

Re: [RFC] User-defined leds

2016-07-26 Thread Jacek Anaszewski
Hi Marcel, On 07/25/2016 08:45 PM, Marcel Holtmann wrote: Hi David, short version: I have a use case for leds where I want to be able to use the triggers in the leds subsystem without having a physical hardware led. long version: I am working on a program to make one embedded system (http:/

Re: [PATCH v4 2/7] thunderbolt: Updating the register definitions

2016-07-26 Thread Andreas Noever
On Mon, Jul 18, 2016 at 12:00 PM, Amir Levy wrote: > Adding more Thunderbolt(TM) register definitions > and some helper macros. > > Signed-off-by: Amir Levy > --- > drivers/thunderbolt/nhi_regs.h | 109 > + > 1 file changed, 109 insertions(+) > > diff --g

Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering

2016-07-26 Thread Jean Delvare
Hi Viresh, On Mon, 25 Jul 2016 15:31:40 -0700, Viresh Kumar wrote: > On 25-07-16, 11:39, Jean Delvare wrote: > > The problem is that the patch proposed by Viresh has nothing to do with > > this. It's not adding notifications, just changing the time frame during > > which user-space holds a referen

Re: [PATCH -next] rtc: at91sam9: Fix missing spin_lock_init()

2016-07-26 Thread Alexandre Belloni
On 25/07/2016 at 07:05:11 +, Wei Yongjun wrote : > The driver allocates the spinlock but not initialize it. > Use spin_lock_init() on it to initialize it correctly. > > This is detected by Coccinelle semantic patch. > > Signed-off-by: Wei Yongjun > --- > drivers/rtc/rtc-at91sam9.c | 1 + >

[PATCH v3 4/4] iio: adc: add support for Allwinner SoCs ADC

2016-07-26 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. This patch adds the ADC driver which is based on the MFD for the same SoCs ADC. This also registers the thermal adc channel in the iio map array so iio_hwmon could use it without modifying the De

[PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
iio_channel_get_all returns -ENODEV when it cannot find either phandles and properties in the Device Tree or channels whose consumer_dev_name matches iio_hwmon in iio_map_list. The iio_map_list is filled in by iio drivers which might be probed after iio_hwmon. This makes sure iio_hwmon is probed a

[PATCH v3 0/4] add support for Allwinner SoCs ADC

2016-07-26 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. The first four channels can be used either for the ADC or the touchscreen and the fifth channel is used for the thermal sensor. We currently have a driver for the two latter functions in drivers/i

Re: [zer0...@yahoo.com: [oss-security] panic at big_key_preparse #4.7-r6/rc7 & master]

2016-07-26 Thread David Howells
wrote: > If you will have no luck to repro issue, I will take a deeper look at it at > Friday and let you know asap Can you find out the line on which the crash happens? Load vmlinux into gdb and do: i li *0x If it says it's in some header file somewhere in an inline function, try dec

[PATCH v3 2/4] mfd: add support for Allwinner SoCs ADC

2016-07-26 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. For now, only the ADC and the thermal sensor drivers are probed by the MFD, the touchscreen controller support will be added later. Signed-off-by: Quentin Schulz --- v3: - use defines in regma

[PATCH v3 3/4] mfd: mfd-core: reattach mfd of_node to cells without of_compatible

2016-07-26 Thread Quentin Schulz
When an MFD cell has an of_compatible (meaning it is present in the Device Tree), other nodes can reference it using a phandle. However when the MFD cell is not declared in the Device Tree, the only way other nodes can reference it are by using a phandle to the MFD. Then when this MFD cell tries t

[PATCH 2/3] drm/rockchip: vop: support multi area plane

2016-07-26 Thread Mark Yao
The series vop of VOP_FULL framework support area plane, such as RK3288 and RK3399, one group of area planes share same hardware, reuse the hardware on different scanout time, this design is useful to support mulit planes with low hardware consume. Signed-off-by: Mark Yao --- drivers/gpu/drm/roc

Re: [RFC] mm: bail out in shrin_inactive_list

2016-07-26 Thread Mel Gorman
On Tue, Jul 26, 2016 at 10:21:57AM +0900, Minchan Kim wrote: > > > I believe proper fix is to modify get_scan_count. IOW, I think > > > we should introduce lruvec_reclaimable_lru_size with proper > > > classzone_idx but I don't know how we can fix it with memcg > > > which doesn't have zone stat no

[PATCH 1/3] drm: introduce share plane

2016-07-26 Thread Mark Yao
What is share plane: Plane hardware only be used when the display scanout run into plane active scanout, that means we can reuse the plane hardware resources on plane non-active scanout. -- | scanout |

[PATCH 3/3] drm/rockchip: vop: rk3288: add area plane

2016-07-26 Thread Mark Yao
Change-Id: Iac8fde019020d8f1a671d52c1a4d91ad2d050d43 Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 52 - 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers/gpu/drm/rockchip/r

[PATCH] hwmon: iio_hwmon: fix memory leak in name attribute

2016-07-26 Thread Quentin Schulz
The "name" variable's memory is now freed when the device is destructed thanks to devm function. Signed-off-by: Quentin Schulz Reported-by: Guenter Roeck --- drivers/hwmon/iio_hwmon.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/hwmon/ii

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Thomas Petazzoni
Hello, On Tue, 26 Jul 2016 09:43:44 +0200, Quentin Schulz wrote: > -module_platform_driver(iio_hwmon_driver); > +static struct platform_driver * const drivers[] = { > + &iio_hwmon_driver, > +}; > + > +static int __init iio_hwmon_late_init(void) > +{ > + return platform_register_drivers(dr

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
Hi, On 26/07/2016 09:48, Thomas Petazzoni wrote: > Hello, > > On Tue, 26 Jul 2016 09:43:44 +0200, Quentin Schulz wrote: > >> -module_platform_driver(iio_hwmon_driver); >> +static struct platform_driver * const drivers[] = { >> +&iio_hwmon_driver, >> +}; >> + >> +static int __init iio_hwmon_l

Re: [PATCH 3/3] powerpc: Convert fsl_rstcr_restart to a reset handler

2016-07-26 Thread Scott Wood
On Mon, 2016-07-25 at 21:25 -0700, Andrey Smirnov wrote: > Convert fsl_rstcr_restart into a function to be registered with > register_reset_handler() API and introduce fls_rstcr_restart_register() > function that can be added as an initcall that would do aforementioned > registration. > > Signed-o

[PATCH] MAINTAINER: alpine: add a mailing list

2016-07-26 Thread Antoine Tenart
Add the linux-arm-kernel mailing list for the Alpine SoCs. Signed-off-by: Antoine Tenart --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 452beeeb7fbd..969727a168ec 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -981,6 +981,7 @@ N: meson ARM/An

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-26 Thread Michael Kerrisk (man-pages)
On 07/26/2016 04:54 AM, Andrew Vagin wrote: On Mon, Jul 25, 2016 at 09:59:43AM -0500, Eric W. Biederman wrote: "Michael Kerrisk (man-pages)" writes: [snip] [snip] So, from my point of view, the important piece that was missing from your commit message was the note to use readlink("/proc/se

Re: [PATCH v2 3/3] x86/apic: Improved the setting of interrupt mode for bsp

2016-07-26 Thread Wei, Jiangang
Hi Eric, Thanks for your response. But I have some different ideas... On Mon, 2016-07-25 at 22:53 -0500, Eric W. Biederman wrote: > Wei Jiangang writes: > > > If we specify the 'notsc' parameter for the dump-capture kernel, > > and then trigger a crash(panic) by using "ALT-SysRq-c" or > > "echo

Re: [PATCH 0/5] Candidate fixes for premature OOM kills with node-lru v2

2016-07-26 Thread Joonsoo Kim
On Thu, Jul 21, 2016 at 03:10:56PM +0100, Mel Gorman wrote: > Both Joonsoo Kim and Minchan Kim have reported premature OOM kills. > The common element is a zone-constrained allocation failings. Two factors > appear to be at fault -- pgdat being considered unreclaimable prematurely > and insufficien

Re: [PATCH] iio: orientation: Add BNO055 9-axis Absolute Orientation Sensor driver

2016-07-26 Thread Peter Meerwald-Stadler
> BNO055 provides the following motion sensors data: > > * Gyroscope > * Accelerometer > * Magnetometer > * Absolute Orientation (Quaternion) comments below > Signed-off-by: navin patidar > --- > drivers/iio/orientation/Kconfig | 10 + > drivers/iio/orientation/Makefile | 1 + > driv

Re: [RFC PATCH 0/5] USB Audio Gadget refactoring

2016-07-26 Thread Clemens Ladisch
Ruslan Bilovol wrote: > On Fri, Jul 15, 2016 at 10:43 AM, Clemens Ladisch wrote: On Tue, May 24, 2016 at 2:50 AM, Ruslan Bilovol wrote: > it may break current usecase for some people >> >> And what are the benefits that justify breaking the kernel API? > > Main limitation with curre

Re: [PATCH 5/5] mm, vmscan: Account for skipped pages as a partial scan

2016-07-26 Thread Joonsoo Kim
On Thu, Jul 21, 2016 at 03:11:01PM +0100, Mel Gorman wrote: > Page reclaim determines whether a pgdat is unreclaimable by examining how > many pages have been scanned since a page was freed and comparing that to > the LRU sizes. Skipped pages are not reclaim candidates but contribute to > scanned.

Re: [PATCH 5/5] mm, vmscan: Account for skipped pages as a partial scan

2016-07-26 Thread Joonsoo Kim
On Tue, Jul 26, 2016 at 05:16:22PM +0900, Joonsoo Kim wrote: > On Thu, Jul 21, 2016 at 03:11:01PM +0100, Mel Gorman wrote: > > Page reclaim determines whether a pgdat is unreclaimable by examining how > > many pages have been scanned since a page was freed and comparing that to > > the LRU sizes. S

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Alexander Stein
On Tuesday 26 July 2016 09:43:44, Quentin Schulz wrote: > iio_channel_get_all returns -ENODEV when it cannot find either phandles and > properties in the Device Tree or channels whose consumer_dev_name matches > iio_hwmon in iio_map_list. The iio_map_list is filled in by iio drivers > which might b

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
On 26/07/2016 10:21, Alexander Stein wrote: > On Tuesday 26 July 2016 09:43:44, Quentin Schulz wrote: >> iio_channel_get_all returns -ENODEV when it cannot find either phandles and >> properties in the Device Tree or channels whose consumer_dev_name matches >> iio_hwmon in iio_map_list. The iio_map

Re: [RFC] mm: bail out in shrin_inactive_list

2016-07-26 Thread Minchan Kim
On Tue, Jul 26, 2016 at 08:46:50AM +0100, Mel Gorman wrote: > On Tue, Jul 26, 2016 at 10:21:57AM +0900, Minchan Kim wrote: > > > > I believe proper fix is to modify get_scan_count. IOW, I think > > > > we should introduce lruvec_reclaimable_lru_size with proper > > > > classzone_idx but I don't kno

Re: [PATCH 1/3] drm: introduce share plane

2016-07-26 Thread Daniel Vetter
On Tue, Jul 26, 2016 at 03:46:32PM +0800, Mark Yao wrote: > What is share plane: > Plane hardware only be used when the display scanout run into plane active > scanout, that means we can reuse the plane hardware resources on plane > non-active scanout. > >

Re: [Xen-devel] [PATCH linux v2 0/9] xen: pvhvm: support bootup on secondary vCPUs

2016-07-26 Thread Vitaly Kuznetsov
Stefano Stabellini writes: > On Mon, 25 Jul 2016, Vitaly Kuznetsov wrote: >> >> While we're not obliged to have the same type for xen_vcpu_id on all >> arches I see no point in diverging without a reason. I can do v3 making >> the mapping uint32 > > I agree that making the mapping uint32_t woul

[PATCH] README: Mention when 386 support ended + update obsolete 386 paths

2016-07-26 Thread Øyvind A . Holm
The paragraph about i386 could be misinterpreted as if 386 still is a valid processor type. Mention when 386 support ended, and change two "arch/i386/" paths to one that exists, "arch/x86/". Signed-off-by: Øyvind A. Holm --- README | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) di

Re: [PATCH 8/9] clk: sunxi-ng: Add A31/A31s clocks

2016-07-26 Thread Jean-Francois Moine
On Tue, 26 Jul 2016 15:04:30 +0800 Chen-Yu Tsai wrote: > +static const struct ccu_mux_fixed_prediv clk_out_predivs[] = { > + { .index = 0, .div = 750, }, > + { .index = 3, .div = 4, }, > + { .index = 4, .div = 4, }, > +}; No end of table. -- Ken ar c'hentañ | ** Breizh

Re: [PATCH] prctl: remove one-shot limitation for changing exe link

2016-07-26 Thread Cyrill Gorcunov
On Mon, Jul 25, 2016 at 02:56:43PM -0500, Eric W. Biederman wrote: ... > >> > >> Also there is a big fat bug in prctl_set_mm_exe_file. It doesn't > >> validate that the new file is a actually mmaped executable. We would > >> definitely need that to be fixed before even considering removing the >

[PATCH] mtd: spi-nor: Add at25df321 spi-nor flash support

2016-07-26 Thread Jagan Teki
Add Atmel at25df321 spi-nor flash to the list of spi_nor_ids. Cc: Brian Norris Cc: Wenyou Yang Signed-off-by: Jagan Teki --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index d0fc165..ec47451 10

Re: [PATCH v2 3/3] xen-blkfront: dynamic configuration of per-vbd resources

2016-07-26 Thread Roger Pau Monné
On Tue, Jul 26, 2016 at 01:19:37PM +0800, Bob Liu wrote: > The current VBD layer reserves buffer space for each attached device based on > three statically configured settings which are read at boot time. > * max_indirect_segs: Maximum amount of segments. > * max_ring_page_order: Maximum order of

Re: [RFC PATCH 0/5] USB Audio Gadget refactoring

2016-07-26 Thread Jassi Brar
On Tue, Jul 26, 2016 at 7:01 AM, Ruslan Bilovol wrote: > On Fri, Jul 15, 2016 at 10:43 AM, Clemens Ladisch wrote: On Tue, May 24, 2016 at 2:50 AM, Ruslan Bilovol wrote: > it may break current usecase for some people >> >> And what are the benefits that justify breaking the kernel A

Re: [PATCH 2/9] clk: sunxi-ng: nk: Make ccu_nk_find_best static

2016-07-26 Thread Maxime Ripard
On Tue, Jul 26, 2016 at 03:04:24PM +0800, Chen-Yu Tsai wrote: > make C=2 reports: > > CHECK drivers/clk/sunxi-ng/ccu_nk.c > drivers/clk/sunxi-ng/ccu_nk.c:17:6: warning: symbol 'ccu_nk_find_best' was > not declared. Should it be static? > > ccu_nk_find_best is only used within ccu_nk.c. So mak

Re: [PATCH resend 1/9] clk: sunxi-ng: Fix inverted test condition in ccu_helper_wait_for_lock

2016-07-26 Thread Maxime Ripard
On Tue, Jul 26, 2016 at 03:04:23PM +0800, Chen-Yu Tsai wrote: > The condition passed to read*_poll_timeout() is the break condition, > i.e. wait for this condition to happen and return success. > > The original code assumed the opposite, resulting in a warning when > the PLL clock rate was changed

[PATCH] powerpc: set used_vsr/used_vr/used_spe in sigreturn path when MSR bits are active

2016-07-26 Thread wei . guo . simon
From: Simon Guo Normally, when MSR[VSX/VR/SPE] bits = 1, the used_vsr/used_vr/used_spe bit have already been set. However signal frame locates at user space and it is controlled by user application. It is up to kernel to make sure used_vsr/used_vr/used_spe(in kernel)=1 and consistent with MSR bit

Re: [PATCH v2 3/3] xen-blkfront: dynamic configuration of per-vbd resources

2016-07-26 Thread Bob Liu
On 07/26/2016 04:44 PM, Roger Pau Monné wrote: > On Tue, Jul 26, 2016 at 01:19:37PM +0800, Bob Liu wrote: >> The current VBD layer reserves buffer space for each attached device based on >> three statically configured settings which are read at boot time. >> * max_indirect_segs: Maximum amount of

Re: [PATCH 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-26 Thread John Keeping
On Tue, 26 Jul 2016 14:11:47 +0800, Caesar Wang wrote: > SARADC controller needs to be reset before programming it, otherwise > it will not function properly. > > Signed-off-by: Caesar Wang > Cc: Jonathan Cameron > Cc: Heiko Stuebner > Cc: Rob Herring > Cc: linux-...@vger.kernel.org > Cc: lin

Re: [PATCH v2] net: neigh: disallow transition to NUD_STALE if lladdr is unchanged in neigh_update()

2016-07-26 Thread Hannes Frederic Sowa
On 26.07.2016 08:16, Chunhui He wrote: > NUD_STALE is used when the caller(e.g. arp_process()) can't guarantee > neighbour reachability. If the entry was NUD_VALID and lladdr is unchanged, > the entry state should not be changed. > > Currently the code puts an extra "NUD_CONNECTED" condition. So i

Re: [PATCH 2/2] dt-bindings: add simple-panel-dsi and simple-panel

2016-07-26 Thread Thierry Reding
On Tue, Jul 26, 2016 at 10:01:32AM +0800, Mark yao wrote: > On 2016年07月25日 23:21, Thierry Reding wrote: > > On Wed, Jul 20, 2016 at 11:18:50AM +0800, Mark Yao wrote: > > Allow user add display timing on device tree with simple-panel-dsi > or simple-panel. > > Cc: Thie

Re: [PATCH v11 09/10] genirq/msi: map/unmap the MSI doorbells on msi_domain_alloc/free_irqs

2016-07-26 Thread Thomas Gleixner
B1;2802;0cEric, On Mon, 25 Jul 2016, Auger Eric wrote: > On 20/07/2016 11:04, Thomas Gleixner wrote: > > On Tue, 19 Jul 2016, Eric Auger wrote: > >> + if (ret) { > >> + for (; i >= 0; i--) { > >> + struct irq_data *d = irq_get_irq_data(virq + i);

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Alexander Stein
On Tuesday 26 July 2016 10:24:48, Quentin Schulz wrote: > On 26/07/2016 10:21, Alexander Stein wrote: > > On Tuesday 26 July 2016 09:43:44, Quentin Schulz wrote: > >> iio_channel_get_all returns -ENODEV when it cannot find either phandles > >> and > >> properties in the Device Tree or channels whos

Re: [PATCH v11 10/10] genirq/msi: use the MSI doorbell's IOVA when requested

2016-07-26 Thread Thomas Gleixner
Eric, On Mon, 25 Jul 2016, Auger Eric wrote: > On 20/07/2016 11:09, Thomas Gleixner wrote: > > On Tue, 19 Jul 2016, Eric Auger wrote: > >> @@ -63,10 +63,18 @@ static int msi_compose(struct irq_data *irq_data, > >> { > >>int ret = 0; > >> > >> - if (erase) > >> + if (erase) { > >>

RE: [PATCH v4 2/7] thunderbolt: Updating the register definitions

2016-07-26 Thread Levy, Amir (Jer)
On Tue, Jul 26 2016, 10:39 AM, Andreas Noever wrote: > On Mon, Jul 18, 2016 at 12:00 PM, Amir Levy > wrote: > > Adding more Thunderbolt(TM) register definitions and some helper > > macros. > > > > Signed-off-by: Amir Levy > > --- > > drivers/thunderbolt/nhi_regs.h | 109 > > +

Re: [PATCH] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-07-26 Thread Thomas Gleixner
On Tue, 26 Jul 2016, Chen-Yu Tsai wrote: > On Tue, Jul 26, 2016 at 1:49 PM, Maxime Ripard > wrote: > > On Tue, Jul 26, 2016 at 11:01:59AM +0800, Chen-Yu Tsai wrote: > >> The bootloader (U-boot) sometimes uses this timer for various delays. > >> It uses it as a ongoing counter, and does comparisons

Re: [PATCH 1/2] i2c: cros-ec-tunnel: Fix usage of cros_ec_cmd_xfer()

2016-07-26 Thread Thierry Reding
On Mon, Jul 25, 2016 at 01:48:25PM -0700, Brian Norris wrote: > On Mon, Jul 25, 2016 at 10:43:13PM +0200, Wolfram Sang wrote: > > On Mon, Jul 25, 2016 at 11:14:10AM -0700, Brian Norris wrote: > > > cros_ec_cmd_xfer returns success status if the command transport > > > completes successfully, but th

Re: [e1000_netpoll] BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

2016-07-26 Thread Eric Dumazet
On Tue, 2016-07-26 at 11:50 +0800, Fengguang Wu wrote: > Greetings, > > This BUG message can be found in recent kernels as well as v4.4 and > linux-stable. It happens when running > > modprobe netconsole netconsole=@/,$port@$server/ > > [ 39.937534] 22 Jul 13:30:40 ntpdate[440]: step

[PATCH RESEND] net: can: Introduce MEN 16Z192-00 CAN controller driver

2016-07-26 Thread Andreas Werner
This CAN Controller is found on MEN Chameleon FPGAs. The driver/device supports the CAN2.0 specification. There are 255 RX and 255 Tx buffer within the IP. The pointer for the buffer are handled by HW to make the access from within the driver as simple as possible. The driver also supports parame

Re: [zer0...@yahoo.com: [oss-security] panic at big_key_preparse #4.7-r6/rc7 & master]

2016-07-26 Thread Vegard Nossum
On 26 July 2016 at 09:45, David Howells wrote: > wrote: > >> If you will have no luck to repro issue, I will take a deeper look at it at >> Friday and let you know asap > > Can you find out the line on which the crash happens? Load vmlinux into If you pipe the Code: from the original report int

Re: [PATCH 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-26 Thread Heiko Stübner
Am Dienstag, 26. Juli 2016, 14:11:47 schrieb Caesar Wang: > SARADC controller needs to be reset before programming it, otherwise > it will not function properly. > > Signed-off-by: Caesar Wang > Cc: Jonathan Cameron > Cc: Heiko Stuebner > Cc: Rob Herring > Cc: linux-...@vger.kernel.org > Cc: l

Re: [PATCH] staging: comedi: dt2811: add parentheses to fix logic on s->subdev_flags

2016-07-26 Thread Ian Abbott
On 25/07/16 23:25, Colin King wrote: From: Colin Ian King We need to add parentheses around ternary operations because currently the expression SDF_READABLE | (it->options[2] == 1) always evaluates to true, meaning s->subdev_flags is always assigned SDF_DIFF. Putting the parentheses around the

Re: [PATCH v9 4/9] clocksource/drivers/arm_arch_timer: use readq to get 64-bit CNTVCT

2016-07-26 Thread Fu Wei
Hi Russell King, On 26 July 2016 at 06:49, Russell King - ARM Linux wrote: > On Mon, Jul 25, 2016 at 05:31:45PM +0100, Will Deacon wrote: >> On Mon, Jul 25, 2016 at 11:55:49PM +0800, Fu Wei wrote: >> > On 25 July 2016 at 23:31, Will Deacon wrote: >> > > On Mon, Jul 25, 2016 at 11:27:02PM +0800,

Re: [patch 61/66] timers: Convert to hotplug state machine

2016-07-26 Thread Jon Hunter
On 25/07/16 16:35, rcoch...@linutronix.de wrote: > On Mon, Jul 25, 2016 at 03:56:48PM +0100, Jon Hunter wrote: >>> There is a hidden dependency between: >>> >>> - timers >>> - Block multiqueue >>> - rcutree >>> >>> If timers_dead_cpu() comes later than blk_mq_queue_reinit_notify() >>> that latter

Re: [patch 61/66] timers: Convert to hotplug state machine

2016-07-26 Thread Jon Hunter
On 25/07/16 21:46, rcoch...@linutronix.de wrote: > On Mon, Jul 25, 2016 at 05:35:43PM +0200, rcoch...@linutronix.de wrote: >> I see if I can find a tegra system to test with... > > I tried the tip:smp/hotplug branch under kvm x86_64, and I didn't see > any problems with suspend or hibernate, even

Re: [PATCH] mm: Move readahead limit outside of readahead, and advisory syscalls

2016-07-26 Thread Michal Hocko
On Mon 25-07-16 13:47:32, Andrew Morton wrote: > On Mon, 25 Jul 2016 10:39:25 -0400 Kyle Walker wrote: > > > Java workloads using the MappedByteBuffer library result in the fadvise() > > and madvise() syscalls being used extensively. Following recent readahead > > limiting alterations, such as 60

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
On 26/07/2016 11:05, Alexander Stein wrote: > On Tuesday 26 July 2016 10:24:48, Quentin Schulz wrote: >> On 26/07/2016 10:21, Alexander Stein wrote: >>> On Tuesday 26 July 2016 09:43:44, Quentin Schulz wrote: iio_channel_get_all returns -ENODEV when it cannot find either phandles and

Re: [PATCH] usb: ehci-platform: switch over to shared reset

2016-07-26 Thread Hans de Goede
Hi, usb-next already has: https://git.kernel.org/cgit/linux/kernel/git/gregkh/usb.git/commit/drivers/usb/host/ehci-platform.c?h=usb-next&id=76d15c8fba655c9b2d60cf01834858f2c44483dc https://git.kernel.org/cgit/linux/kernel/git/gregkh/usb.git/commit/drivers/usb/host/ohci-platform.c?h=usb-next&id=6

[PATCH] binfmt_em86: Fix incompatible pointer type

2016-07-26 Thread Daniel Wagner
From: Daniel Wagner Since the -Wincompatible-pointer-types is reported as error, alpha doesn't build anymore. Let's fix it in a minimal way. fs/binfmt_em86.c:73:35: error: passing argument 2 of ‘copy_strings_kernel’ from incompatible pointer type [-Werror=incompatible-pointer-types] retval =

Re: [PATCH V3 01/10] Documentation: dt-bindings: mailbox: tegra: Add binding for HSP mailbox

2016-07-26 Thread Jon Hunter
On 19/07/16 10:17, Joseph Lo wrote: > Add DT binding for the Hardware Synchronization Primitives (HSP). The > HSP is designed for the processors to share resources and communicate > together. It provides a set of hardware synchronization primitives for > interprocessor communication. So the interp

Re: [PATCH] schedule function called for e1000 driver interrupt

2016-07-26 Thread kbuild test robot
Hi, [auto build test ERROR on jkirsher-next-queue/dev-queue] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Fengguang-Wu/schedule-function-called-for-e1000-driver-interrupt/20160726-173521 base

Re: [PATCH] schedule function called for e1000 driver interrupt

2016-07-26 Thread kbuild test robot
Hi, [auto build test ERROR on jkirsher-next-queue/dev-queue] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Fengguang-Wu/schedule-function-called-for-e1000-driver-interrupt/20160726-173521 base

Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support

2016-07-26 Thread Daniel Thompson
On 25/07/16 18:13, Catalin Marinas wrote: On Fri, Jul 22, 2016 at 11:51:32AM -0400, David Long wrote: On 07/22/2016 06:16 AM, Catalin Marinas wrote: On Thu, Jul 21, 2016 at 02:33:52PM -0400, David Long wrote: [...] The document states: "Up to MAX_STACK_SIZE bytes are copied". That means the arc

Re: [PATCH V3 3/10] Documentation: dt-bindings: firmware: tegra: add bindings of the BPMP

2016-07-26 Thread Jon Hunter
On 19/07/16 10:17, Joseph Lo wrote: > The BPMP is a specific processor in Tegra chip, which is designed for > booting process handling and offloading the power management, clock > management, and reset control tasks from the CPU. The binding document > defines the resources that would be used by t

[PATCH] x86/microcode/intel: Fix initrd loading with CONFIG_RANDOMIZE_MEMORY

2016-07-26 Thread Borislav Petkov
From: Borislav Petkov CONFIG_RANDOMIZE_MEMORY randomizes the physical memmap and thus the address where the initrd is located. Therefore, we need to add the offset KASLR put us to in order to find the initrd again on the AP path. In the future, we will get rid of the initrd address caching and q

Re: bcache super block corruption with non 4k pages

2016-07-26 Thread Stefan Bader
On 21.07.2016 10:58, Stefan Bader wrote: > I was pointed at the thread which seems to address the same after > I wrote most of below text. Did not want to re-write this so please > bear with the odd layout. > > https://www.redhat.com/archives/dm-devel/2016-June/msg00015.html > > Zhengyuan tries t

Re: [PATCH 1/3] drm: introduce share plane

2016-07-26 Thread Mark yao
On 2016年07月26日 16:26, Daniel Vetter wrote: On Tue, Jul 26, 2016 at 03:46:32PM +0800, Mark Yao wrote: >What is share plane: >Plane hardware only be used when the display scanout run into plane active >scanout, that means we can reuse the plane hardware resources on plane >non-active scanout. > >

Re: [e1000_netpoll] BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

2016-07-26 Thread Thomas Gleixner
On Tue, 26 Jul 2016, Fengguang Wu wrote: > --- a/drivers/net/ethernet/intel/e1000/e1000_main.c > +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c > @@ -3797,7 +3797,7 @@ static irqreturn_t e1000_intr(int irq, void *data) > hw->get_link_status = 1; > /* guard against i

[PATCH v7 1/2] ACPI / button: Fix an issue that the platform triggered reliable events may not be delivered to the userspace

2016-07-26 Thread Lv Zheng
On most platforms, _LID returning value, lid open/close events are all reliable, but there are exceptions. Some AML tables report wrong initial lid state (Link 1), and some of them never report lid open state (Link 2). The usage model on such buggy platforms is: 1. The initial lid state returned fr

[PATCH v7 2/2] ACPI / button: Add document for ACPI control method lid device restrictions

2016-07-26 Thread Lv Zheng
This patch adds documentation for the usage model of the control method lid device on some buggy platforms. Signed-off-by: Lv Zheng Acked-by: Benjamin Tissoires Cc: Dmitry Torokhov Cc: Bastien Nocera: Cc: linux-in...@vger.kernel.org --- Documentation/acpi/acpi-lid.txt | 97 +

Re: [PATCH v11 09/10] genirq/msi: map/unmap the MSI doorbells on msi_domain_alloc/free_irqs

2016-07-26 Thread Auger Eric
Hi Thomas, On 26/07/2016 11:00, Thomas Gleixner wrote: > B1;2802;0cEric, > > On Mon, 25 Jul 2016, Auger Eric wrote: >> On 20/07/2016 11:04, Thomas Gleixner wrote: >>> On Tue, 19 Jul 2016, Eric Auger wrote: + if (ret) { + for (; i >= 0; i--) { +

Re: [PATCH v18 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-26 Thread Michal Kubecek
On Tue, Jul 26, 2016 at 07:09:41AM +, Dexuan Cui wrote: > If you meant https://lkml.org/lkml/2016/7/13/382, I don't think Michal > Kubecek was suggesting I build my code using the existing AF_VSOCK > code(?) I think he was only asking me to clarify the way I used to write > the text to explain

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Alexander Stein
On Tuesday 26 July 2016 11:33:59, Quentin Schulz wrote: > On 26/07/2016 11:05, Alexander Stein wrote: > > On Tuesday 26 July 2016 10:24:48, Quentin Schulz wrote: > >> On 26/07/2016 10:21, Alexander Stein wrote: > >>> On Tuesday 26 July 2016 09:43:44, Quentin Schulz wrote: > iio_channel_get_all

Re: [PATCH v11 10/10] genirq/msi: use the MSI doorbell's IOVA when requested

2016-07-26 Thread Auger Eric
Hi Thomas, On 26/07/2016 11:04, Thomas Gleixner wrote: > Eric, > > On Mon, 25 Jul 2016, Auger Eric wrote: >> On 20/07/2016 11:09, Thomas Gleixner wrote: >>> On Tue, 19 Jul 2016, Eric Auger wrote: @@ -63,10 +63,18 @@ static int msi_compose(struct irq_data *irq_data, { int ret =

Re: [PATCH v2 01/13] gpu: ipu-v3: Add Video Deinterlacer unit

2016-07-26 Thread Philipp Zabel
Am Dienstag, den 19.07.2016, 18:10 -0700 schrieb Steve Longerbeam: > Adds the Video Deinterlacer (VDIC) unit. > > Signed-off-by: Steve Longerbeam [...] > +++ b/drivers/gpu/ipu-v3/ipu-vdi.c [...] > +static void __ipu_vdi_set_top_field_man(struct ipu_vdi *vdi, bool > top_field_0) > +{ > + u32

Re: [PATCH v2 00/13] IPUv3 prep for i.MX5/6 v4l2 staging drivers, v2

2016-07-26 Thread Philipp Zabel
Hi Steve, Am Dienstag, den 19.07.2016, 18:10 -0700 schrieb Steve Longerbeam: > These updates to IPUv3 are needed for media staging drivers > for i.MX5/6 video capture and mem2mem. > > Steve Longerbeam (13): > gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset() > gpu: ipu-cpmem: Add ipu_cpmem_get_bu

  1   2   3   4   5   6   7   >