Re: [PATCH] Hisilicon LPC driver

2015-11-30 Thread Rongrong Zou
在 2015/11/30 21:19, Arnd Bergmann 写道: On Monday 30 November 2015 21:07:17 Rongrong Zou wrote: This is the Low Pin Count driver for Hisilicon Hi1610 SoC. It is used for LPC master accessing LPC slave device. We only implement I/O read and I/O write here, and the 2 interfaces are exported for

Re: [RFC PATCH 2/9] drm/rockchip: Use new vblank api drm_crtc_vblank_*

2015-11-30 Thread Daniel Stone
Hi, On 1 December 2015 at 03:26, Mark Yao wrote: > No functional update, drm_vblank_* is the legacy version of > drm_crtc_vblank_*. and use new api make driver more clean. > > Signed-off-by: Mark Yao Heh, I had the same patch in my series to fix pageflip events. Reviewed-by: Daniel Stone

Re: [PATCH] usb: interface: allow drivers declare number of endpoints they need

2015-11-30 Thread Oliver Neukum
On Mon, 2015-11-30 at 17:09 -0800, Greg Kroah-Hartman wrote: > > that would loop through endpoints so that drivers do not have to > > open-code the loop and we indeed need to fix the drivers that > blindly > > grab endpoints at fixed offsets and expect them to be there and have > > correct types.

Re: [PATCH v6 2/2] leds: rt5033: Add RT5033 Flash led device driver

2015-11-30 Thread Jacek Anaszewski
On 12/01/2015 02:54 AM, Ingi Kim wrote: Hi Jacek, On 2015년 11월 30일 19:59, Jacek Anaszewski wrote: Hi Ingi, On 11/30/2015 03:31 AM, Ingi Kim wrote: Hi Jacek, On 2015년 11월 26일 18:43, Jacek Anaszewski wrote: Hi Ingi, On 11/26/2015 09:02 AM, Ingi Kim wrote: [...] +torch_unlock: +

Re: [PATCH v4 2/5] spi: spi-ti-qspi: add mmap mode read support

2015-11-30 Thread Vignesh R
Hi Felipe, On 12/01/2015 04:05 AM, Balbi, Felipe wrote: > > Hi, > > Vignesh R writes: [...] >> +} >> + >> +static int ti_qspi_spi_flash_read(struct spi_device *spi, >> + struct spi_flash_read_message *msg) >> +{ >> +struct ti_qspi *qspi =

Re: [RFC] blk-mq and I/O scheduling

2015-11-30 Thread Andreas Herrmann
On Wed, Nov 25, 2015 at 12:47:21PM -0700, Jens Axboe wrote: > On 11/19/2015 05:02 AM, Andreas Herrmann wrote: --8<-- > >The latter helped to improve performance for sequential reads and > >writes. But it's not on a par with CFQ. Increasing the time slice is > >suboptimal (as shown with the 2ms

Re: [RFC] blk-mq and I/O scheduling

2015-11-30 Thread Andreas Herrmann
On Tue, Nov 24, 2015 at 09:19:32AM +0100, Christoph Hellwig wrote: > Hi Andreas, Hi Christoph, > I don't understand the time slicing algorithm to well, but from the > blk-mq integration perspective this looks nice, and anything that > helps improving blk-mq for spinning rust is useful. I'll put

RE: [PATCH 0/3] net: fec: Reset ethernet PHY whenever the enet_out clock

2015-11-30 Thread Duan Andy
From: Lothar Waßmann Sent: Tuesday, December 01, 2015 3:25 PM > To: Duan Fugang-B38611 > Cc: Andrew Lunn; David S. Miller; Estevam Fabio-R49496; Greg Ungerer; > Kevin Hao; Lucas Stach; Philippe Reynes; Richard Cochran; Russell King; > Sascha Hauer; Stefan Agner; linux-kernel@vger.kernel.org; >

Re: [PATCH v3 2/2] zram: try vmalloc() after kmalloc()

2015-11-30 Thread Sergey Senozhatsky
On (12/01/15 16:15), Sergey Senozhatsky wrote: > On (12/01/15 15:35), Kyeongdon Kim wrote: > [..] > > @test #4 > > kmalloc(f) > > __vmalloc(f) > > // cannot find failure both until now > > > > log message (test #4) : > > <4>[ 641.440468][7] KDKIM: zcomp_lz4_create: 24: ret = ffc00219 >

Re: [BUG REPORT] perf tools: x86_64: Broken calllchain when sampling taken at 'callq' instruction

2015-11-30 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Fri, Nov 27, 2015 at 09:38:11AM +0100, Ingo Molnar wrote: > > > > * Peter Zijlstra wrote: > > > > > On Thu, Nov 19, 2015 at 11:23:00AM +0100, Ingo Molnar wrote: > > > > PEBS is an asynchronous hardware tracing mechanism, when batched PEBS > > > > is used it > >

Re: [PATCH 2/2] tpm_tis: Clean up the force=1 module parameter

2015-11-30 Thread Uwe Kleine-König
On Mon, Nov 30, 2015 at 12:27:12PM -0700, Jason Gunthorpe wrote: > The TPM core has long assumed that every device has a driver attached, > however b8b2c7d845d5 ("base/platform: assert that dev_pm_domain callbacks are > called unconditionally") breaks that assumption. Maybe it's worth to point

Re: [PATCH 2/6] clk: qcom: gdsc: Add support for gdscs with gds hw controller

2015-11-30 Thread Stephen Boyd
On 12/01, Rajendra Nayak wrote: > > On 12/01/2015 07:52 AM, Stephen Boyd wrote: > > On 11/26, Rajendra Nayak wrote: > > > >> + udelay(1); > >> + } > >> + > >> + do { > >> + if (gdsc_is_enabled(sc, status_reg) == en) > >>return 0; > >>} while

Re: [PATCH 0/3] net: fec: Reset ethernet PHY whenever the enet_out clock

2015-11-30 Thread Lothar Waßmann
Hi, > From: Lothar Waßmann Sent: Monday, November 30, > 2015 7:33 PM > > To: Andrew Lunn; David S. Miller; Estevam Fabio-R49496; Greg Ungerer; > > Kevin Hao; Lothar Waßmann; Lucas Stach; Duan Fugang-B38611; Philippe > > Reynes; Richard Cochran; Russell King; Sascha Hauer; Stefan Agner; linux- >

Re: [PATCH 1/3] net: fec: Remove redundant checks for NULL clk pointer

2015-11-30 Thread Lothar Waßmann
Hi, > From: Lothar Waßmann Sent: Monday, November 30, > 2015 7:33 PM > > To: Andrew Lunn; David S. Miller; Estevam Fabio-R49496; Greg Ungerer; > > Kevin Hao; Lothar Waßmann; Lucas Stach; Duan Fugang-B38611; Philippe > > Reynes; Richard Cochran; Russell King; Sascha Hauer; Stefan Agner; linux- >

Re: [PATCH v2 1/4] init: create cmdline param to disable readonly

2015-11-30 Thread Ingo Molnar
* Russell King - ARM Linux wrote: > On Mon, Nov 30, 2015 at 01:52:10PM -0800, Kees Cook wrote: > > On Wed, Nov 25, 2015 at 11:51 PM, Ingo Molnar wrote: > > > * Kees Cook wrote: > > >> +#ifdef CONFIG_DEBUG_RODATA > > > > > > Btw., could you please remove the Kconfig option altogether in an >

Re: [PATCH v3 2/2] zram: try vmalloc() after kmalloc()

2015-11-30 Thread Sergey Senozhatsky
On (12/01/15 15:35), Kyeongdon Kim wrote: > Let me give you a simple code of it. > > @test #1 (previous shared log) > kmalloc(f | __GFP_NOMEMALLOC) > __vmalloc(f | __GFP_NOMEMALLOC) > // can find failure both > > @test #2 (previous shared log) > kmalloc(f | __GFP_NOMEMALLOC) > __vmalloc(f)

Re: [PATCH] ARM: pxa: make more mach/*.h files local

2015-11-30 Thread Robert Jarzmik
Arnd Bergmann writes: > Lots of header files are never included outside of a mach-pxa > directory and do not need to be made visible in include/mach, > so let's just move them all down one level. > > Signed-off-by: Arnd Bergmann > --- > I've been carrying patches like this one in my

Re: arm64: dts: qcom: Add apq8096 dragonboard dts skeletons

2015-11-30 Thread Stephen Boyd
On 12/01, Rajendra Nayak wrote: > > On 12/01/2015 05:18 AM, Stephen Boyd wrote: > > On 11/26, Rajendra Nayak wrote: > >> Add new dtsi and dts files for the apq8096 dragonboards with just > >> a serial device used as debug console > >> > >> Signed-off-by: Rajendra Nayak > >> --- > >> Patch

Re: [RFC PATCH 8/9] drm: bridge/dw_hdmi: Covert to support atomic API

2015-11-30 Thread Daniel Vetter
On Tue, Dec 01, 2015 at 11:35:53AM +0800, Mark Yao wrote: > Fill atomic needed funcs with default atomic helper library. > > Rockchip use dw_hdmi, and drm/rockchip will covert to atomic api, > we need dw_hdmi support atomic funcs. > > Signed-off-by: Mark Yao Aren't there drivers around which

Re: [PATCH v2 1/4] init: create cmdline param to disable readonly

2015-11-30 Thread Heiko Carstens
On Mon, Nov 30, 2015 at 01:52:10PM -0800, Kees Cook wrote: > On Wed, Nov 25, 2015 at 11:51 PM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> +#ifdef CONFIG_DEBUG_RODATA > > > > Btw., could you please remove the Kconfig option altogether in an > > additional patch > > and make read-only

Re: [PATCH 1/2] tpm_tis: Disable interrupt auto probing on a per-device basis

2015-11-30 Thread Uwe Kleine-König
Hello Jason, On Mon, Nov 30, 2015 at 12:27:11PM -0700, Jason Gunthorpe wrote: > Instead of clearing the global interrupts flag when any device > does not have an interrupt just pass -1 through tpm_info.irq. Is there a reason not to use 0 for the invalid irq? > The only thing that asks for

Re: [PATCH v3 2/2] zram: try vmalloc() after kmalloc()

2015-11-30 Thread Sergey Senozhatsky
On (12/01/15 15:35), Kyeongdon Kim wrote: [..] > @test #4 > kmalloc(f) > __vmalloc(f) > // cannot find failure both until now > > log message (test #4) : > <4>[ 641.440468][7] KDKIM: zcomp_lz4_create: 24: ret = ffc00219 > > <4>[ 922.182980][7] KDKIM: zcomp_lz4_create: 24: ret =

[PATCH 2/2] SCSI: Fix NULL pointer dereference in runtime PM

2015-11-30 Thread Ken Xue
The routines in scsi_pm.c assume that if a runtime-PM callback is invoked for a SCSI device, it can only mean that the device's driver has asked the block layer to handle the runtime power management (by calling blk_pm_runtime_init(), which among other things sets q->dev). However, this

[PATCH 1/2]Revert "SCSI: Fix NULL pointer dereference in runtime PM"

2015-11-30 Thread Ken Xue
This reverts commit 49718f0fb8c9 ("SCSI: Fix NULL pointer dereference in runtime PM") The old commit may lead to a issue that blk_{pre|post}_runtime_suspend and blk_{pre|post}_runtime_resume may not be called in pairs. Take sr device as example, when sr device goes to runtime suspend,

Re: [PATCH cgroup/for-4.4-fixes 2/3] cgroup: fix handling of multi-destination migration from subtree_control enabling

2015-11-30 Thread Daniel Wagner
Hi Tejun, On 11/30/2015 11:44 PM, Tejun Heo wrote: > WARNING: CPU: 1 PID: 1 at kernel/cgroup_pids.c:97 > pids_cancel.constprop.6+0x31/0x40() > Modules linked in: > CPU: 1 PID: 1 Comm: systemd Not tainted 4.4.0-rc1+ #29 > ... > 81f65382 88007c043b90 81551ffc

Re: [PATCH 2.6.32 00/38] 2.6.32.69-longterm review

2015-11-30 Thread Willy Tarreau
On Tue, Dec 01, 2015 at 12:43:14AM +, Ben Hutchings wrote: > On Mon, 2015-11-30 at 17:04 +0100, Willy Tarreau wrote: > > Here comes 2.6.32.69-rc2. > > > > It adds or replaces the following patches on top of -rc1 that were needed > > or incorrectly backported as spotted by Ben : > > > >  

[PATCH RESEND 1/1] serial: 8250_pci: Fix real serial port count for F81504/508/512

2015-11-30 Thread Peter Hung
Fix real serial port count for F81504/508/512 with multi-function mode. Fintek F81504/508/512 are multi-function boards. It could be configurated via PCI configuration space register F0h/F3h with external EEPROM that programmed by customer. F0h bit0~5: Enable GPIO0~5 bit6~7: Reserve F3h

Re: [PATCH V2 2/3] PM / OPP: Parse 'opp-supported-hw' binding

2015-11-30 Thread Viresh Kumar
On 27-11-15, 10:15, Viresh Kumar wrote: > > > + dev_opp->supported_hw = kmemdup(versions, count * sizeof(*versions), > > > + GFP_KERNEL); > > > > And then we're going to modify said opp here under the mutex > > lock. > > opp-dev .. > > > > + if

[PATCH 1/1] serial: 8250_pci: Fix real serial port count for F81504/508/512

2015-11-30 Thread Peter Hung
Fix real serial port count for F81504/508/512 with multi-function mode. Fintek F81504/508/512 are multi-function boards. It could be configurated via PCI configuration space register F0h/F3h with external EEPROM that programmed by customer. F0h bit0~5: Enable GPIO0~5 bit6~7: Reserve F3h

[PATCH V2 3/3] vhost_net: basic polling support

2015-11-30 Thread Jason Wang
This patch tries to poll for new added tx buffer or socket receive queue for a while at the end of tx/rx processing. The maximum time spent on polling were specified through a new kind of vring ioctl. Signed-off-by: Jason Wang --- drivers/vhost/net.c| 72

[PATCH V2 1/3] vhost: introduce vhost_has_work()

2015-11-30 Thread Jason Wang
This path introduces a helper which can give a hint for whether or not there's a work queued in the work list. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 7 +++ drivers/vhost/vhost.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/vhost/vhost.c

[PATCH V2 2/3] vhost: introduce vhost_vq_more_avail()

2015-11-30 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 13 + drivers/vhost/vhost.h | 1 + 2 files changed, 14 insertions(+) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 163b365..4f45a03 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -1633,6

[PATCH V2 0/3] basic busy polling support for vhost_net

2015-11-30 Thread Jason Wang
Hi all: This series tries to add basic busy polling for vhost net. The idea is simple: at the end of tx/rx processing, busy polling for new tx added descriptor and rx receive socket for a while. The maximum number of time (in us) could be spent on busy polling was specified ioctl. Test A were

Re: Re: [PATCH v3 2/2] zram: try vmalloc() after kmalloc()

2015-11-30 Thread Kyeongdon Kim
On 2015-12-01 오후 2:16, Sergey Senozhatsky wrote: > On (12/01/15 13:55), Minchan Kim wrote: > [..] >> To clear my opinion, >> >> lzo_create(gfp_t flags) >> { >> void * ret = kmalloc(LZO1X_MEM_COMPRESS, flags); >> if (!ret) >> ret = vmalloc(LZO1X_MEM_COMPRESS, flasgs | GFP_NOMEMALLOC); >> return

[PATCH] staging: unisys: use common return path

2015-11-30 Thread Sudip Mukherjee
The success path and the error path both are first doing spin_unlock_irqrestore() before returning. Use that in the common path and return the success/error value. Signed-off-by: Sudip Mukherjee --- It is dependent on the patch series sent by Benjamin (Nov 30th).

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread Chenjie (K)
Please ignore the last email. This is log , kill pid 9134: Mem-info: Normal per-cpu: CPU0: hi: 90, btch: 15 usd: 0 CPU1: hi: 90, btch: 15 usd: 0 active_anon:997 inactive_anon:36468 isolated_anon:0 active_file:1 inactive_file:0 isolated_file:0 unevictable:10743 dirty:0

Re: [PATCH v2] arm, am335x: add support for the bosch shc board

2015-11-30 Thread Heiko Schocher
Hello Tony, Am 01.12.2015 um 06:53 schrieb Tony Lindgren: * Heiko Schocher [151130 21:21]: Hello Tony, Am 30.11.2015 um 22:41 schrieb Tony Lindgren: * Heiko Schocher [151117 00:25]: --- /dev/null +++ b/arch/arm/boot/dts/am335x-shc.dts + { + compatible = "ti,tps65217"; +

[PATCH] Kbuild: Enable interprocedural register allocation for gcc 5

2015-11-30 Thread Andi Kleen
From: Andi Kleen gcc 5 has a new -fipa-ra option that enables limited interprocedural register allocation. When it generates a function it remembers what registers it clobbered. Later when the function is called it only saves registers that are actually clobbered by the function. This only

Re: [PATCH v2] arm, am335x: add support for the bosch shc board

2015-11-30 Thread Tony Lindgren
* Heiko Schocher [151130 21:21]: > Hello Tony, > > Am 30.11.2015 um 22:41 schrieb Tony Lindgren: > >* Heiko Schocher [151117 00:25]: > >>--- /dev/null > >>+++ b/arch/arm/boot/dts/am335x-shc.dts > >>+ { > >>+ compatible = "ti,tps65217"; > >>+ ti,pmic-shutdown-controller; > >>+ > >>+

Re: [PATCH] hwmon: (tmp102) Force wait for conversion time for the first valid data

2015-11-30 Thread Guenter Roeck
On 11/30/2015 08:25 PM, Nishanth Menon wrote: TMP102 works based on conversions done periodically. However, as per the TMP102 data sheet[1] the first conversion is triggered immediately after we program the configuration register. The temperature data registers do not reflect proper data until

[PATCH 0/7] ARM: sun9i: R_PIO, IR receiver and RSB support

2015-11-30 Thread Chen-Yu Tsai
Hi everyone, This series adds support for various peripherals in the "special/RTC" block of the Allwinner A80 SoC that use the PRCM clocks and reset controls. The majority of this series are DTS patches, enabling peripherals using existing drivers. The only driver patch is for the R_PIO pin

[PATCH 7/7] ARM: dts: sun9i: optimus: Enable Reduced Serial Bus controller

2015-11-30 Thread Chen-Yu Tsai
Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun9i-a80-optimus.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts index 79766e5867cd..c0060e4f7379 100644 --- a/arch/arm/boot/dts/sun9i-a80-optimus.dts

[PATCH 3/7] ARM: dts: sun9i: optimus: Enable LED3

2015-11-30 Thread Chen-Yu Tsai
LED3 is connected to pin PM15 on R_PIO. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun9i-a80-optimus.dts | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts index

[PATCH 4/7] ARM: dts: sun9i: Add consumer IR receiver device node and pinmux settings

2015-11-30 Thread Chen-Yu Tsai
The Allwinner A80 SoC has a consumer IR receiver, which is the same as older SoCs. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun9i-a80.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi index

[PATCH 6/7] ARM: dts: sun9i: Add Reduced Serial Bus controller device node to A80 dtsi

2015-11-30 Thread Chen-Yu Tsai
This patch adds a device node for the Reduced Serial Bus (RSB) controller and the defacto pinmux setting to the A80 dtsi. Since there is only one possible pinmux setting for RSB, just set it in the dtsi. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun9i-a80.dtsi | 21

[PATCH 5/7] ARM: dts: sun9i: optimus: Enable consumer IR receiver

2015-11-30 Thread Chen-Yu Tsai
The A80 Optimus board has a consumer IR receiver. Enable it in the DT. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun9i-a80-optimus.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts index

[PATCH 1/7] pinctrl: sunxi: Add A80 special pin controller

2015-11-30 Thread Chen-Yu Tsai
From: Maxime Ripard Like the previous designs, the A80 has a special pin controller for the critical pins, like the PMIC bus. Add a driver for this controller. Signed-off-by: Maxime Ripard [wens: Add A80 compatible strings to bindings doc; fix pin function names based on v1.3

[PATCH 2/7] ARM: dts: sun9i: Add A80 R_PIO pin controller device node

2015-11-30 Thread Chen-Yu Tsai
The A80 has a secondary pin controller. Add a device node for it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun9i-a80.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi index

[PATCH] ath6kl: Use vmalloc to allocate ar->fw for api1 method

2015-11-30 Thread Brent Taylor
Since commit 8437754c83351d6213c1a47ff029c1126d6042a7, ar->fw is expected to be pointing to memory allocated by vmalloc. If the api1 method (via ath6kl_fetch_fw_api1) is used to allocate memory for ar->fw, then kmemdup is used. This patch checks if the firmware being loaded is the 'fw' image,

[PATCH 2/2] phy: twl4030-usb: Fix unbalanced pm_runtime_enable on module reload

2015-11-30 Thread Tony Lindgren
If we reload phy-twl4030-usb, we get a warning about unbalanced pm_runtime_enable. Let's fix the issue and also fix idling of the device on unload before we attempt to shut it down. If we don't properly idle the PHY before shutting it down on removal, the twl4030 ends up consuming about 62mW of

[PATCH 1/2] phy: twl4030-usb: Relase usb phy on unload

2015-11-30 Thread Tony Lindgren
Otherwise rmmod omap2430; rmmod phy-twl4030-usb; modprobe omap2430 will try to use a non-existing phy and oops: Unable to handle kernel paging request at virtual address b6f7c1f0 ... [] (devm_usb_get_phy_by_node) from [] (omap2430_musb_init+0x44/0x2b4 [omap2430]) [] (omap2430_musb_init

[PATCH 0/2] Two phy-twl4030-usb fixes for unloading the module

2015-11-30 Thread Tony Lindgren
Hi, Here are two fixes for rmmod and PM. These can be merged separately after the review from the MUSB related changes. Regards, Tony Tony Lindgren (2): phy: twl4030-usb: Relase usb phy on unload phy: twl4030-usb: Fix unbalanced pm_runtime_enable on module reload

Re: [PATCH v2] arm, am335x: add support for the bosch shc board

2015-11-30 Thread Heiko Schocher
Hello Tony, Am 30.11.2015 um 22:41 schrieb Tony Lindgren: * Heiko Schocher [151117 00:25]: --- /dev/null +++ b/arch/arm/boot/dts/am335x-shc.dts + { + compatible = "ti,tps65217"; + ti,pmic-shutdown-controller; + + regulators { + #address-cells = <1>; +

Re: [PATCH net-next 3/3] vhost_net: basic polling support

2015-11-30 Thread Jason Wang
On 11/30/2015 06:44 PM, Michael S. Tsirkin wrote: > On Wed, Nov 25, 2015 at 03:11:29PM +0800, Jason Wang wrote: >> > This patch tries to poll for new added tx buffer or socket receive >> > queue for a while at the end of tx/rx processing. The maximum time >> > spent on polling were specified

Re: [PATCH v3 2/2] zram: try vmalloc() after kmalloc()

2015-11-30 Thread Sergey Senozhatsky
On (12/01/15 13:55), Minchan Kim wrote: [..] > To clear my opinion, > > lzo_create(gfp_t flags) > { > void * ret = kmalloc(LZO1X_MEM_COMPRESS, flags); > if (!ret) > ret = vmalloc(LZO1X_MEM_COMPRESS, flasgs | GFP_NOMEMALLOC); > return ret; > } ah, ok, I

Re: [PATCH net-next 2/3] vhost: introduce vhost_vq_more_avail()

2015-11-30 Thread Jason Wang
On 11/30/2015 04:22 PM, Michael S. Tsirkin wrote: > On Wed, Nov 25, 2015 at 03:11:28PM +0800, Jason Wang wrote: >> Signed-off-by: Jason Wang >> --- >> drivers/vhost/vhost.c | 26 +- >> drivers/vhost/vhost.h | 1 + >> 2 files changed, 18 insertions(+), 9 deletions(-) >>

Re: [PATCH v4 4/5] ARM: dts: DRA7: add entry for qspi mmap region

2015-11-30 Thread Vignesh R
On 12/01/2015 04:04 AM, Tony Lindgren wrote: > * Vignesh R [151129 21:16]: >> Add qspi memory mapped region entries for DRA7xx based SoCs. Also, >> update the binding documents for the controller to document this change. >> >> Acked-by: Rob Herring >> Signed-off-by: Vignesh R > ... >> ---

Re: Re: Re: [PATCH v3 2/2] zram: try vmalloc() after kmalloc()

2015-11-30 Thread Minchan Kim
On Tue, Dec 01, 2015 at 11:31:41AM +0900, kyeongdon.kim wrote: > On 2015-12-01 오전 8:18, Minchan Kim wrote: > > Hi Kyeongdon, > > > > On Mon, Nov 30, 2015 at 07:42:02PM +0900, kyeongdon.kim wrote: > > > >> > On Fri, Nov 27, 2015 at 01:10:49PM +0900, Sergey Senozhatsky wrote: > >> >> From:

[Question] DT-Bindings for run-time configurable bus?

2015-11-30 Thread Masahiro Yamada
Hello experts, I am tackling on a new bus driver, but I am worndering what the DT-binding specification should be. Here is my hardware situation: My SoC has an external bus (it is called UniPhier System Bus). This is a simple parallel bus with address, data, chip-selects, and some other control

[PATCH] hwmon: (tmp102) Force wait for conversion time for the first valid data

2015-11-30 Thread Nishanth Menon
TMP102 works based on conversions done periodically. However, as per the TMP102 data sheet[1] the first conversion is triggered immediately after we program the configuration register. The temperature data registers do not reflect proper data until the first conversion is complete (in our case

[RFC PATCH v2 4/6] livepatch: reuse module loader code to write relocations

2015-11-30 Thread Jessica Yu
Reuse module loader code to write relocations, thereby eliminating the need for architecture specific relocation code in livepatch. Namely, we reuse apply_relocate_add() in the module loader to write relocations instead of duplicating functionality in livepatch's klp_write_module_reloc(). To apply

[RFC PATCH v2 3/6] module: s390: keep mod_arch_specific for livepatch modules

2015-11-30 Thread Jessica Yu
Livepatch needs to utilize the symbol information contained in the mod_arch_specific struct in order to be able to call the s390 apply_relocate_add() function to apply relocations. Remove the redundant vfree() in module_finalize() since module_arch_freeing_init() (which also frees said structures)

[RFC PATCH v2 5/6] samples: livepatch: init reloc section array and mark as klp module

2015-11-30 Thread Jessica Yu
Create the array of klp relocation sections in the sample klp_object (even if the array is empty in this case). In addition, mark the module as a livepatch module so that the module loader can appropriately identify and initialize it. Signed-off-by: Jessica Yu ---

[RFC PATCH v2 2/6] module: preserve Elf information for livepatch modules

2015-11-30 Thread Jessica Yu
For livepatch modules, copy Elf section, symbol, and string information from the load_info struct in the module loader. Livepatch uses special relocation sections in order to be able to patch modules that are not yet loaded, as well as apply patches to the kernel when the addresses of symbols

[RFC PATCH v2 6/6] Documentation: livepatch: outline the Elf format of a livepatch module

2015-11-30 Thread Jessica Yu
Document the special Elf sections and constants livepatch modules use. Signed-off-by: Jessica Yu --- Documentation/livepatch/patch-module-format.txt | 117 1 file changed, 117 insertions(+) create mode 100644 Documentation/livepatch/patch-module-format.txt diff --git

[RFC PATCH v2 1/6] Elf: add livepatch-specific Elf constants

2015-11-30 Thread Jessica Yu
Add livepatch Elf relocation section flag (SHF_RELA_LIVEPATCH), livepatch symbol bind (STB_LIVEPATCH_EXT) and section index (SHN_LIVEPATCH). The values of these Elf constants were selected from OS-specific ranges according to the definitions from glibc. Livepatch relocation sections are marked

[RFC PATCH v2 0/6] (mostly) Arch-independent livepatch

2015-11-30 Thread Jessica Yu
This patchset removes livepatch's need for architecture-specific relocation code by leveraging existing code in the module loader to perform arch-dependent work. Specifically, instead of duplicating code and re-implementing what the apply_relocate_add() function in the module loader already does

Re: [PATCH] bugfix oom kill init lead panic

2015-11-30 Thread Chenjie (K)
Thank you reply, we run a test case. A new log: Out of memory: Kill process 8520 (sshd) score 11 or sacrifice child Killed process 8520 (sshd) total-vm:5812kB, anon-rss:404kB, file-rss:2132kB [RSM][SIG]Kernel:dd(pid:8612|tid:8612) send SIG[9] to sshd(pid:8520|tid:8520). CPU: 0 PID: 8612

dobrý veer..

2015-11-30 Thread 1reps
napiste mi na e-mailovou adresu pro podrobnosti o vzájemne spoluprace. chn.j...@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: [PATCH 7/8] cgroup: mount cgroupns-root when inside non-init cgroupns

2015-11-30 Thread Serge E. Hallyn
On Mon, Nov 30, 2015 at 10:09:38AM -0500, Tejun Heo wrote: > Hello, Serge. > > On Thu, Nov 26, 2015 at 11:17:45PM -0600, Serge E. Hallyn wrote: > > > Wouldn't it be simpler to walk dentry from kernfs root than > > > duplicating dentry instantiation? > > > > Sorry I don't think I'm following.

Re: [RFC PATCH 3/3] sched/fair: Use different cachelines for readers and writers of load_avg

2015-11-30 Thread Waiman Long
On 11/30/2015 05:29 PM, Peter Zijlstra wrote: On Mon, Nov 30, 2015 at 02:13:32PM -0500, Waiman Long wrote: This would only work if the structure itself is allocated with cacheline alignment, and looking at sched_create_group(), we use a plain kzalloc() for this, which doesn't guarantee any sort

Re: [PATCH v11 03/24] perf config: Document variables for 'color' section in man page

2015-11-30 Thread Taeung Song
Hi, Namhyung > On Nov 18, 2015, at 8:47 AM, Namhyung Kim wrote: > > On Tue, Nov 17, 2015 at 10:53:23PM +0900, Taeung Song wrote: >> Explain 'color' section and its variables. >> >> 'top', 'medium', 'normal', 'selected', >> 'code', 'addr' and 'root'. >> >> Cc: Namhyung Kim >> Cc: Jiri Olsa

[PATCH] perf tools: Rename 'colors.code' config

2015-11-30 Thread Taeung Song
'colors.code' config is only for jump arrows on assembly code listings i.e. │ ┌──jmp1333 │ │ xchg %ax,%ax │ │ mov%r15,%r10 │ └─→cmp%r15,%r14 But this config name seems unfit. Maybe 'jump_arrows' would be better than 'code'. Cc: Namhyung Kim Cc:

[PATCH] f2fs: use sbi->blocks_per_seg to avoid unnecessary calculation

2015-11-30 Thread Chao Yu
Use sbi->blocks_per_seg directly to avoid unnecessary calculation when using 1 << sbi->log_blocks_per_seg. Signed-off-by: Chao Yu --- fs/f2fs/debug.c | 2 +- fs/f2fs/f2fs.h | 3 +-- fs/f2fs/file.c | 5 ++--- fs/f2fs/gc.c| 4 ++-- fs/f2fs/node.h | 2 +- 5 files changed, 7 insertions(+),

Re: [RFC PATCH 3/3] sched/fair: Use different cachelines for readers and writers of load_avg

2015-11-30 Thread Waiman Long
On 11/30/2015 05:09 PM, Peter Zijlstra wrote: On Mon, Nov 30, 2015 at 02:13:32PM -0500, Waiman Long wrote: This begs the question tough; why are you running a global load in a cgroup; and do we really need to update this for the root cgroup? It seems to me we don't need calc_tg_weight() for the

Re: [PATCH RFC] Introduce new security.nscapability xattr

2015-11-30 Thread Serge E. Hallyn
On Mon, Nov 30, 2015 at 05:08:34PM -0600, Eric W. Biederman wrote: > "Serge E. Hallyn" writes: > > > A common way for daemons to run with minimal privilege is to start as root, > > perhaps setuid-root, choose a desired capability set, set PR_SET_KEEPCAPS, > > then change uid to non-root. A

[PATCH] f2fs: kill f2fs_drop_largest_extent

2015-11-30 Thread Chao Yu
For direct IO, f2fs only allocate new address for the block which is not exist in the disk before, its mapping info should not exist in extent cache previously, so here we do not need to call f2fs_drop_largest_extent to drop related cache. Due to no more callers for f2fs_drop_largest_extent now,

[PATCH 3/3] f2fs: clean up argument of recover_data

2015-11-30 Thread Chao Yu
In recover_data, value of argument 'type' will be CURSEG_WARM_NODE all the time, remove it for cleanup. Signed-off-by: Chao Yu --- fs/f2fs/recovery.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index cbf74f4..3ab9b92 100644

[PATCH v2] block: partition: Add partition specific uevent callbacks for partition info

2015-11-30 Thread John Stultz
From: San Mehat This patch has been carried in the Android tree for quite some time and is one of the few patches required to get a mainline kernel up and running with an exsiting Android userspace. So I wanted to submit it for review and consideration if it should be merged. For partitions,

[PATCH 2/3] f2fs: clean up code with __has_cursum_space

2015-11-30 Thread Chao Yu
Clean up codes in lookup_journal_in_cursum() with __has_cursum_space(). Signed-off-by: Chao Yu --- fs/f2fs/segment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index ed2c5de..74c4748 100644 --- a/fs/f2fs/segment.c +++

[PATCH 1/3] f2fs: clean up error path in f2fs_readdir

2015-11-30 Thread Chao Yu
No logic changes, just clean up the error path. Signed-off-by: Chao Yu --- fs/f2fs/dir.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index 9de898d..6554fd5 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -867,18 +867,15 @@

[RFC PATCH 9/9] drm/rockchip: dw_hdmi: use encoder enable function

2015-11-30 Thread Mark Yao
encoder.enable is more compatible to atomic api than encoder.prepare/commit Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c

[RFC PATCH 8/9] drm: bridge/dw_hdmi: Covert to support atomic API

2015-11-30 Thread Mark Yao
Fill atomic needed funcs with default atomic helper library. Rockchip use dw_hdmi, and drm/rockchip will covert to atomic api, we need dw_hdmi support atomic funcs. Signed-off-by: Mark Yao --- drivers/gpu/drm/bridge/dw_hdmi.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[PATCH] f2fs: fix to convert inline inode in ->setattr

2015-11-30 Thread Chao Yu
In commit 3c4541452748 ("f2fs: do not trim preallocated blocks when truncating after i_size"), in order to follow the regulation: "truncate(x) where x > i_size will not trim all blocks past i_size." like other file systems, in ->setattr we invoked truncate_setsize instead of f2fs_truncate to avoid

[RFC PATCH 7/9] drm/rockchip: force enable vop when do mode setting

2015-11-30 Thread Mark Yao
When do mode setting, mean that we want to enable display output, but sometimes, vop_crtc_enable is after mode_set, we can't allow that, so force enable vop in mode setting. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |1 + 1 file changed, 1 insertion(+) diff

[RFC PATCH 6/9] drm/rockchip: direct config connecter gate and out_mode

2015-11-30 Thread Mark Yao
Both connecter gate and out_mode are not conflict with mode set configure. Direct setting connecter gate and out_mode, that allow connector do rockchip_drm_crtc_mode_config after mode set. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 41 ---

[RFC PATCH 5/9] drm/rockchip: Optimization vop mode set

2015-11-30 Thread Mark Yao
Rk3288 vop timing registers is immediately register, when configure timing on display active time, will cause tearing. use dclk reset is not a good idea to avoid this tearing. we can avoid tearing by using standby register. Vop standby register will take effect at end of current frame, and go

[RFC PATCH 0/9] drm/rockchip: covert to support atomic API

2015-11-30 Thread Mark Yao
The series of patches coverting drm rockchip to atomic API, do some cleanup and some fixes on atomic side. TODO: fence is not support on current version. Tested on rk3288 popmetal board. All guys can test it with following url: test case: https://github.com/markyzq/libdrm.git atomictest

[RFC PATCH 3/9] drm/rockchip: Convert to support atomic API

2015-11-30 Thread Mark Yao
Rockchip vop not support hw vblank counter, needed check the committed register if it's really take effect. Signed-off-by: Mark Yao Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c |5 +- drivers/gpu/drm/rockchip/rockchip_drm_drv.h |2 +

[RFC PATCH 2/9] drm/rockchip: Use new vblank api drm_crtc_vblank_*

2015-11-30 Thread Mark Yao
No functional update, drm_vblank_* is the legacy version of drm_crtc_vblank_*. and use new api make driver more clean. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 13 +++-- drivers/gpu/drm/rockchip/rockchip_drm_drv.h |7 +++

[RFC PATCH 1/9] drm/rockchip: vop: replace dpms with enable/disable

2015-11-30 Thread Mark Yao
For vop, power by enable/disable is more suitable then legacy dpms function, and enable/disable more closely to the new atomic API. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 37 +++ 1 file changed, 4 insertions(+), 33 deletions(-) diff

[RFC PATCH 4/9] drm/rockchip: support atomic asynchronous commit

2015-11-30 Thread Mark Yao
If drm core requests a async commit, rockchip_drm_atomic_commit will schedule a work task to update later. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 60 ++-- 1 file changed, 47 insertions(+), 13 deletions(-) diff --git

Re: [PATCH] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2015-11-30 Thread Nicolas Pitre
On Mon, 30 Nov 2015, Laura Abbott wrote: > On 11/30/2015 05:08 PM, Kees Cook wrote: > > On Mon, Nov 30, 2015 at 5:03 PM, Laura Abbott wrote: > > > On 11/30/2015 03:38 PM, Kees Cook wrote: > > > > > > > > Given the choice between making things NX or making things RO, we want > > > > RO first. As

Re: [PATCH V7 2/3] dma: add Qualcomm Technologies HIDMA management driver

2015-11-30 Thread Vinod Koul
On Mon, Nov 30, 2015 at 09:42:01AM -0500, Sinan Kaya wrote: > >> +static int hidma_mgmt_probe(struct platform_device *pdev) > >> +{ > >> + struct hidma_mgmt_dev *mgmtdev; > >> + struct resource *res; > >> + void __iomem *virtaddr; > >> + int irq; > >> + int rc; > >> + u32 val; > >> + > >> +

Re: [PATCH] sched: remove false-positive warning from wake_up_process()

2015-11-30 Thread Linus Torvalds
On Mon, Nov 30, 2015 at 6:48 PM, Rik van Riel wrote: > > What would the correct behaviour in that case be? > > Does waking up the task while it is being traced, and ptrace > (or gdb) is not expecting a wakeup, break the tracing? It would. We already do the right thing (thanks to that commit

Re: [PATCH 2/6] clk: qcom: gdsc: Add support for gdscs with gds hw controller

2015-11-30 Thread Rajendra Nayak
On 12/01/2015 07:52 AM, Stephen Boyd wrote: > On 11/26, Rajendra Nayak wrote: >> @@ -58,30 +58,34 @@ static int gdsc_toggle_logic(struct gdsc *sc, bool en) >> { >> int ret; >> u32 val = en ? 0 : SW_COLLAPSE_MASK; >> -u32 check = en ? PWR_ON_MASK : 0; >> unsigned long timeout;

Re: [PATCH 5/6] clk: qcom: gdsc: Do not check for disabled status on votable gdscs

2015-11-30 Thread Rajendra Nayak
On 12/01/2015 07:23 AM, Stephen Boyd wrote: > On 11/26, Rajendra Nayak wrote: >> Some gdscs might be controlled via voting registers and might not >> really disable when the kernel intends to disable them (due to other >> votes keeping them enabled) >> Mark these gdscs with a flag for we do not

[PATCH v19 04/19] perf, tools: Support CPU ID matching for Powerpc

2015-11-30 Thread Sukadev Bhattiprolu
Implement code that returns the generic CPU ID string for Powerpc. This will be used to identify the specific table of PMU events to parse/compare user specified events against. Signed-off-by: Sukadev Bhattiprolu Acked-by: Jiri Olsa --- Changelog[v14] - [Jiri Olsa] Move this

[PATCH v19 05/19] perf, tools: Support CPU id matching for x86 v2

2015-11-30 Thread Sukadev Bhattiprolu
From: Andi Kleen Implement the code to match CPU types to mapfile types for x86 based on CPUID. This extends an existing similar function, but changes it to use the x86 mapfile cpu description. This allows to resolve event lists generated by jevents. Signed-off-by: Andi Kleen Signed-off-by:

[PATCH v19 03/19] perf, tools: Use pmu_events table to create aliases

2015-11-30 Thread Sukadev Bhattiprolu
At run time (when 'perf' is starting up), locate the specific table of PMU events that corresponds to the current CPU. Using that table, create aliases for the each of the PMU events in the CPU. The use these aliases to parse the user specified perf event. In short this would allow the user to

  1   2   3   4   5   6   7   8   9   10   >