Re: [PATCH] x86/mm: fix regression with huge pages on PAE

2015-11-11 Thread Kirill A. Shutemov
On Thu, Nov 12, 2015 at 08:48:54AM +0100, Ingo Molnar wrote: > > * Borislav Petkov wrote: > > > --- a/arch/x86/include/asm/pgtable_types.h > > +++ b/arch/x86/include/asm/pgtable_types.h > > @@ -279,17 +279,14 @@ static inline pmdval_t native_pmd_val(pmd_t pmd) > > static inline pudval_t pud_pfn

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

2015-11-11 Thread Ingi Kim
Hi Jacek, Thanks for the review. your feedback is highly appreciated :) I'll send next patch set soon. On 2015년 11월 11일 01:30, Jacek Anaszewski wrote: > Hi Ingi, > > Thanks for the update. Please find my comments below. > > On 11/10/2015 03:17 AM, Ingi Kim wrote: >> This patch adds device drive

[PATCH] mm: change mm_vmscan_lru_shrink_inactive() proto types

2015-11-11 Thread yalin wang
Move node_id zone_idx shrink flags into trace function, so thay we don't need caculate these args if the trace is disabled, and will make this function have less arguments. Signed-off-by: yalin wang --- include/trace/events/vmscan.h | 14 +++--- mm/vmscan.c | 7 ++-

Re: [PATCH] i2c: taos-evm: replace simple_strtoul by kstrtou8

2015-11-11 Thread LABBE Corentin
On Thu, Nov 12, 2015 at 08:46:43AM +0100, Uwe Kleine-König wrote: > On Thu, Nov 12, 2015 at 08:26:33AM +0100, LABBE Corentin wrote: > > The simple_strtoul function is marked as obsolete. > > This patch replace it by kstrtou8. > > > > Signed-off-by: LABBE Corentin > > --- > > drivers/i2c/busses/i

Re: [PATCH 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks

2015-11-11 Thread Ingo Molnar
* Tony Luck wrote: > Using __copy_user_nocache() as inspiration create a memory copy > routine for use by kernel code with annotations to allow for > recovery from machine checks. > > Notes: > 1) Unlike the original we make no attempt to copy all the bytes >up to the faulting address. The o

Re: [PATCH] i2c: rcar: fix a possible NULL dereference

2015-11-11 Thread Wolfram Sang
On Thu, Nov 12, 2015 at 08:44:47AM +0100, Uwe Kleine-König wrote: > Hello, > > On Thu, Nov 12, 2015 at 08:25:09AM +0100, LABBE Corentin wrote: > > of_match_device could return NULL, and so cause a NULL pointer > > dereference later. > > > > Reported-by: coverity (CID 1130036) > > Signed-off-by: L

[PATCH] mfd: qcom_rpm: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Signed-off-by: LABBE Corentin --- drivers/mfd/qcom_rpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/qcom_rpm.c b/drivers/mfd/qcom_rpm.c index 207a3bd..1be47ad 100644 --- a/drivers/mfd/qcom_rp

[PATCH] mtd: nand: atmel_nand: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Signed-off-by: LABBE Corentin --- drivers/mtd/nand/atmel_nand.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 475c938

Re: [PATCH] x86/mm: fix regression with huge pages on PAE

2015-11-11 Thread Ingo Molnar
* Borislav Petkov wrote: > --- a/arch/x86/include/asm/pgtable_types.h > +++ b/arch/x86/include/asm/pgtable_types.h > @@ -279,17 +279,14 @@ static inline pmdval_t native_pmd_val(pmd_t pmd) > static inline pudval_t pud_pfn_mask(pud_t pud) > { > if (native_pud_val(pud) & _PAGE_PSE) > -

[PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Signed-off-by: LABBE Corentin --- drivers/mtd/nand/mxc_nand.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 136e73a..9e424

Re: [PATCH] i2c: taos-evm: replace simple_strtoul by kstrtou8

2015-11-11 Thread Uwe Kleine-König
On Thu, Nov 12, 2015 at 08:26:33AM +0100, LABBE Corentin wrote: > The simple_strtoul function is marked as obsolete. > This patch replace it by kstrtou8. > > Signed-off-by: LABBE Corentin > --- > drivers/i2c/busses/i2c-taos-evm.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > d

[PATCH] serial: imx: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Signed-off-by: LABBE Corentin --- drivers/tty/serial/imx.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 016e4be..22e91f7 100644

[PATCH] usb: phy: phy-mxs-usb: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Signed-off-by: LABBE Corentin --- drivers/usb/phy/phy-mxs-usb.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index 4d863eb

[PATCH] usb: phy: msm: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Renaming id to of_id (like all others do) in the process. Reported-by: coverity (CID 1324133) Signed-off-by: LABBE Corentin --- drivers/usb/phy/phy-msm-usb.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deleti

Re: [PATCH] i2c: rcar: fix a possible NULL dereference

2015-11-11 Thread Uwe Kleine-König
Hello, On Thu, Nov 12, 2015 at 08:25:09AM +0100, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later. > > Reported-by: coverity (CID 1130036) > Signed-off-by: LABBE Corentin > --- > drivers/i2c/busses/i2c-rcar.c | 6 +- > 1 file changed

[PATCH 2/2] usb: chipidea: imx: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Reported-by: coverity (CID 1324138) Signed-off-by: LABBE Corentin --- drivers/usb/chipidea/ci_hdrc_imx.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_

[PATCH 1/2] usb: chipidea: imx: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Renaming tmp_dev to of_id (like all others do) in the process. Reported-by: coverity (CID 1324135) Signed-off-by: LABBE Corentin --- drivers/usb/chipidea/usbmisc_imx.c | 10 ++ 1 file changed, 6 insertions(

[PATCH] pwm: sun4i: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Reported-by: coverity (CID 1324139) Signed-off-by: LABBE Corentin --- drivers/pwm/pwm-sun4i.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pwm/pwm-sun4i.c b/drivers/pwm/pwm-sun4i.c index cd9dde5..3

[PATCH] mm: change trace_mm_vmscan_writepage() proto type

2015-11-11 Thread yalin wang
Move trace_reclaim_flags() into trace function, so that we don't need caculate these flags if the trace is disabled. Signed-off-by: yalin wang --- include/trace/events/vmscan.h | 7 +++ mm/vmscan.c | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/inclu

[PATCH v4 1/3] ARM: DTS: dra7: Fix McASP3 node regarding to clocks

2015-11-11 Thread Peter Ujfalusi
McASP node needs to list all mandatory clocks: gfclk and ahclkx Signed-off-by: Peter Ujfalusi Tested-by: Felipe Balbi --- arch/arm/boot/dts/dra7.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index bc672fb91

[PATCH v4 0/3] ARM: OMAP2+ McASP(3) support for DRA7xx family

2015-11-11 Thread Peter Ujfalusi
Hi Tony, Changes since v3: - rebased on mainline's HEAD - Added Tested-by from Felipe - Added Acked-by from Paul for the hwmod patches Changes since v2: - DTS patch added which is needed because of the clock handling changes Felip Balbi reported that linux-next is broken right now since the DTS

[PATCH v4 2/3] ARM: OMAP2+: hwmod: Add hwmod flag for HWMOD_OPT_CLKS_NEEDED

2015-11-11 Thread Peter Ujfalusi
Some module needs more than one functional clock in order to be accessible, like the McASPs found in DRA7xx family. This flag will indicate that the opt_clks need to be handled at the same time as the main_clk for the given hwmod, ensuring that all needed clocks are enabled before we try to access

[PATCH v4 3/3] ARM: OMAP: DRA7: hwmod: Add data for McASP3

2015-11-11 Thread Peter Ujfalusi
McASP3 is used by default on DRA7x based boards for audio. Signed-off-by: Peter Ujfalusi Acked-by: Paul Walmsley Tested-by: Felipe Balbi --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 56 +++ 1 file changed, 56 insertions(+) diff --git a/arch/arm/mach-omap2/omap_h

Re: Change of my repository (samsung-krzk)

2015-11-11 Thread Krzysztof Kozlowski
On 12.11.2015 16:25, Stephen Rothwell wrote: > Hi Krzysztof, > > On Thu, 12 Nov 2015 16:05:04 +0900 Krzysztof Kozlowski > wrote: >> >> I moved my samsung-krzk repository for Samsung SoC (as co-maintainer) >> from: >> git://github.com/krzk/linux.git#for-next >> >> to: >> git://git.kernel.org/pub/

[PATCH] i2c: tegra: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later at line 809: i2c_dev->hw = match->data; Signed-off-by: LABBE Corentin --- drivers/i2c/busses/i2c-tegra.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c

[PATCH] i2c: taos-evm: replace simple_strtoul by kstrtou8

2015-11-11 Thread LABBE Corentin
The simple_strtoul function is marked as obsolete. This patch replace it by kstrtou8. Signed-off-by: LABBE Corentin --- drivers/i2c/busses/i2c-taos-evm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-taos-evm.c b/drivers/i2c/busses/i2c-taos-evm.c

[PATCH] i2c: rcar: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Reported-by: coverity (CID 1130036) Signed-off-by: LABBE Corentin --- drivers/i2c/busses/i2c-rcar.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i

Re: Change of my repository (samsung-krzk)

2015-11-11 Thread Stephen Rothwell
Hi Krzysztof, On Thu, 12 Nov 2015 16:05:04 +0900 Krzysztof Kozlowski wrote: > > I moved my samsung-krzk repository for Samsung SoC (as co-maintainer) > from: > git://github.com/krzk/linux.git#for-next > > to: > git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git#for-next > > (the name

Re: [PATCH 1/1] drivers/hv: correct tsc page sequence invalid value

2015-11-11 Thread Denis V. Lunev
On 11/02/2015 10:42 PM, KY Srinivasan wrote: -Original Message- From: Denis V. Lunev [mailto:d...@openvz.org] Sent: Monday, November 2, 2015 3:34 AM Cc: rka...@virtuozzo.com; de...@linuxdriverproject.org; linux- ker...@vger.kernel.org; Andrey Smetanin ; KY Srinivasan ; Haiyang Zhang ; V

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-11 Thread Boqun Feng
On Wed, Nov 11, 2015 at 08:39:53PM +0100, Oleg Nesterov wrote: > On 11/11, Peter Zijlstra wrote: > > > > On Wed, Nov 11, 2015 at 05:39:40PM +0800, Boqun Feng wrote: > > > > > Just be curious, should spin_unlock_wait() semantically be an ACQUIRE? > > > > I did wonder the same thing, it would simplif

Re: [PATCH V2] mm: fix kernel crash in khugepaged thread

2015-11-11 Thread yalin wang
Ok i will send a V3 patch. > On Nov 5, 2015, at 16:50, Kirill A. Shutemov wrote: > > On Thu, Nov 05, 2015 at 09:12:34AM +0100, Vlastimil Babka wrote: >> On 10/29/2015 01:35 AM, Kirill A. Shutemov wrote: @@ -2605,9 +2603,9 @@ out_unmap: /* collapse_huge_page will return with t

[PATCH V3] mm: fix kernel crash in khugepaged thread

2015-11-11 Thread yalin wang
This crash is caused by NULL pointer deference, in page_to_pfn() marco, when page == NULL : [ 182.639154 ] Unable to handle kernel NULL pointer dereference at virtual address [ 182.639491 ] pgd = ffc00077a000 [ 182.639761 ] [] *pgd=b9422003, *pud=b9422003,

Re: [PATCH v2 3/4] KVM: X86: Migration is supported

2015-11-11 Thread Jian Zhou
On 2015/11/11 23:15, Paolo Bonzini wrote: On 23/10/2015 11:15, Jian Zhou wrote: data *msr_info) } break; case MSR_IA32_DEBUGCTLMSR: - if (!data) { - /* We support the non-activated case already */ -

[PATCH] drm/tegra: fix locking of SET_TILING ioctl

2015-11-11 Thread Alexandre Courbot
drm_gem_object_unreference() now expects obj->dev->struct_mutex to be held. Use the newly-introduced drm_gem_object_unreference_unlocked() which handles locking for us. If we don't do this drm_gem_object_unreference() will get noisy about struct_mutex not being held every time we call the SET_TILI

Change of my repository (samsung-krzk)

2015-11-11 Thread Krzysztof Kozlowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Stephen, I moved my samsung-krzk repository for Samsung SoC (as co-maintainer) from: git://github.com/krzk/linux.git#for-next to: git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git#for-next (the name of branch stays the same) Can you

RE: PING: [PATCH] net: smsc911x: Reset PHY during initialization

2015-11-11 Thread Pavel Fedin
Hello! > >> If you think I should reconsider the patch, you should resubmit it. > > > > I understand this, of course. But, before doing this i'd like to > > clarify your concern, why exactly you think that loopback test will > > break. > > If I didn't reply it means I don't have anything constr

RE: [PATCH v7 1/4] Documentation: dt-bindings: Describe SROMc configuration

2015-11-11 Thread Pavel Fedin
Hello! > >> > +- samsung,srom-timing : array of 6 integers, specifying bank timings in > >> > the > >> > +following order: Tacp, Tcah, Tcoh, Tacc, Tcos, > >> > Tacs. > >> > +Each value is specified in cycles and has the > >> > following > >> > +

Re: [PATCH v5 0/2] sched: consider missed ticks when updating cpu load

2015-11-11 Thread Byungchul Park
On Wed, Nov 11, 2015 at 06:38:10PM +0900, Byungchul Park wrote: > On Tue, Nov 10, 2015 at 09:36:00AM +0900, byungchul.p...@lge.com wrote: > > From: Byungchul Park > > > > change from v4 to v5 > > - fix comments and commit message > > - take new_load into account in update_cpu_load_nohz() and > >

Re: [PATCH] perf symbols/KCORE: Rebuild rbtree when adjusting symbols for kcore

2015-11-11 Thread Adrian Hunter
On 11/11/15 22:44, Arnaldo Carvalho de Melo wrote: > Em Wed, Nov 11, 2015 at 03:02:35PM +0800, Wangnan (F) escreveu: >> >> >> On 2015/11/6 21:59, Adrian Hunter wrote: >>> On 06/11/15 15:19, Arnaldo Carvalho de Melo wrote: Em Fri, Nov 06, 2015 at 09:46:12AM +, Wang Nan escreveu: > In ds

[tip:perf/urgent] tools include: Add compiler.h to list.h

2015-11-11 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 5602ea09c19e85557f2b4d30be1d6ba349b7a038 Gitweb: http://git.kernel.org/tip/5602ea09c19e85557f2b4d30be1d6ba349b7a038 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 11 Nov 2015 12:54:42 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Nov 2015 18:41:33 -0300 to

[tip:perf/urgent] perf session: Add missing newlines to some pr_err() calls

2015-11-11 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: e87b49116dedba3464fd8d0ec9393b4841167334 Gitweb: http://git.kernel.org/tip/e87b49116dedba3464fd8d0ec9393b4841167334 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 9 Nov 2015 17:12:03 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Nov 2015 18:41:31 -0300 per

[tip:perf/urgent] perf probe: Verify parameters in two functions

2015-11-11 Thread tip-bot for Wang Nan
Commit-ID: 421fd0845eaeecce6b3806f7f0c0d67d1f9ad108 Gitweb: http://git.kernel.org/tip/421fd0845eaeecce6b3806f7f0c0d67d1f9ad108 Author: Wang Nan AuthorDate: Fri, 6 Nov 2015 09:50:15 + Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Nov 2015 18:41:32 -0300 perf probe: Verify

[PATCH V4 2/4] dma: add Qualcomm Technologies HIDMA management driver

2015-11-11 Thread Sinan Kaya
The Qualcomm Technologies HIDMA device has been designed to support virtualization technology. The driver has been divided into two to follow the hardware design. 1. HIDMA Management driver 2. HIDMA Channel driver Each HIDMA HW consists of multiple channels. These channels share some set of commo

[PATCH V4 4/4] dma: add Qualcomm Technologies HIDMA channel driver

2015-11-11 Thread Sinan Kaya
This patch adds support for hidma engine. The driver consists of two logical blocks. The DMA engine interface and the low-level interface. The hardware only supports memcpy/memset and this driver only support memcpy interface. HW and driver doesn't support slave interface. Signed-off-by: Sinan Kay

[PATCH V4 0/4] dma: add Qualcomm Technologies HIDMA driver

2015-11-11 Thread Sinan Kaya
The Qualcomm Technologies HIDMA device has been designed to support virtualization technology. The driver has been divided into two to follow the hardware design. 1. HIDMA Management driver 2. HIDMA Channel driver Each HIDMA HW consists of multiple channels. These channels share some set of commo

[PATCH V4 3/4] dmaselftest: add memcpy selftest support functions

2015-11-11 Thread Sinan Kaya
This patch adds supporting utility functions for selftest. The intention is to share the self test code between different drivers. Supported test cases include: 1. dma_map_single 2. streaming DMA 3. coherent DMA 4. scatter-gather DMA Signed-off-by: Sinan Kaya --- drivers/dma/dmaengine.h | 2

[PATCH V4 1/4] dma: qcom_bam_dma: move to qcom directory

2015-11-11 Thread Sinan Kaya
Creating a QCOM directory for all QCOM DMA source files. Signed-off-by: Sinan Kaya --- drivers/dma/Kconfig| 11 ++- drivers/dma/Makefile | 2 +- drivers/dma/qcom/Kconfig | 9 + drivers/dma/qcom/Makefile

Re: [GIT PULL 0/5] perf/urgent fixes

2015-11-11 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > The following changes since commit b71b437eedaed985062492565d9d421d975ae845: > > perf: Fix inherited events vs. tracepoint filters (2015-11-09 16:13:11 > +0100) > > are available in the git

[PATCH] mtd: phram: error handling

2015-11-11 Thread Saurabh Sengar
> More importantly, it's good to test these cases too: > * phram is built-in (not a module), with and without a phram= line on > the commandline > * writing to /sys/module/phram/parameters/phram (for both the module > and built-in cases) Hi Brian, 1) I have tried phram as built-in, with and

Re: [PATCH 3/3] tools/vm/slabinfo: update struct slabinfo members' types

2015-11-11 Thread Sergey Senozhatsky
On (11/11/15 21:07), David Rientjes wrote: [..] > > > > /* Object size */ > > > > - unsigned long long min_objsize = max, max_objsize = 0, > > > > avg_objsize; > > > > + unsigned int min_objsize = UINT_MAX, max_objsize = 0, > > > > avg_objsize; > > > > > > > > /* Num

[PATCH] acpi: add support for extended IRQ to PCI link

2015-11-11 Thread Sinan Kaya
The ACPI compiler uses the extended format when used interrupt numbers are greater than 256. The PCI link code currently only supports simple interrupt format. The IRQ numbers are represented using 32 bits when extended IRQ syntax. This patch changes the interrupt number type to 32 bits and places

Re: samples: livepatch: init reloc list and mark as klp module

2015-11-11 Thread Jessica Yu
+++ Petr Mladek [11/11/15 16:42 +0100]: On Mon 2015-11-09 23:45:54, Jessica Yu wrote: Intialize the list of relocation sections in the sample klp_object (even if the list will be empty in this case). Also mark module as a livepatch module so that the module loader can appropriately initialize it

Re: [PATCH v3 00/12] usb: early: add support for early printk through USB3 debug port

2015-11-11 Thread Dave Young
Hi, Baolu On 11/12/15 at 10:45am, Lu, Baolu wrote: > Hi Dave, > > Which device are you testing with? This implementation was developed > and tested on Intel Skylake devices. > > It doesn't surprise me if it doesn't work with other silicons. But it do > remind me to create a verified-list and put

平时最多也就联系了三千家,全球还有十几万客户在哪里?

2015-11-11 Thread iSayor
您好: 您还在用ali平台开发外贸客户? 还在使用展会宣传企业和产品? 你out了!!! 当前外贸客户开发难,您是否也在寻找展会,B2B之外好的渠道? 行业全球十几万客户,平时最多也就联系了三千家,您是否想把剩下的也开发到? 加QQ767650805给您演示下主动开发客户的方法,先用先受益,已经有近万家企业领先您使用!!。 广东省商业联合会推荐,主动开发客户第一品牌,近万家企业正在获益。您可以没有使用,但是不能没有了解。 -- To unsubscribe from this list: send the line "unsubscr

Re: [PATCH 2/3] tools/vm/page-types: suppress gcc warnings

2015-11-11 Thread David Rientjes
On Thu, 12 Nov 2015, Sergey Senozhatsky wrote: > > This can't possibly be correct, the warnings are legitimate and the result > > of the sigsetjmp() in the function. You may be interested in > > returns_twice rather than marking random automatic variables as volatile. > > Hm, ok. I saw no probs

Re: kdbus refactoring?

2015-11-11 Thread Kalle A. Sandstrom
[unrelated quotes trimmed, attribution preserved.] > >> > On Sun, Nov 8, 2015 at 3:30 PM, Greg KH > >> > wrote: > >> >> On Sun, Nov 08, 2015 at 10:39:43PM +0100, Richard Weinberger wrote: > >> >>> > >> >>> If you rework/redesign something you have to know what you want to > >> >>> change. > >>

Re: module: save load_info for livepatch modules

2015-11-11 Thread Jessica Yu
+++ Miroslav Benes [11/11/15 15:17 +0100]: On Mon, 9 Nov 2015, Jessica Yu wrote: diff --git a/include/linux/module.h b/include/linux/module.h index 3a19c79..c8680b1 100644 --- a/include/linux/module.h +++ b/include/linux/module.h [...] +#ifdef CONFIG_LIVEPATCH +extern void klp_prepare_patch

Re: [PATCH v3 01/17] mm: support madvise(MADV_FREE)

2015-11-11 Thread Daniel Micay
> I also think that the kernel should commit to either zeroing the page > or leaving it unchanged in response to MADV_FREE (even if the decision > of which to do is made later on). I think that your patch series does > this, but only after a few of the patches are applied (the swap entry > freeing

Re: [PATCH 00/19] drm: Add Allwinner A10 display engine support

2015-11-11 Thread Maxime Ripard
On Fri, Oct 30, 2015 at 03:52:17PM +0100, Daniel Vetter wrote: > On Fri, Oct 30, 2015 at 03:20:46PM +0100, Maxime Ripard wrote: > > Hi everyone, > > > > The Allwinner SoCs (except for the very latest ones) all share the > > same set of controllers, loosely coupled together to form the display > >

Re: [PATCH] sched: prevent getting too much vruntime

2015-11-11 Thread Byungchul Park
On Wed, Nov 11, 2015 at 12:50:43PM +0100, Peter Zijlstra wrote: > On Wed, Nov 11, 2015 at 06:48:49PM +0900, Byungchul Park wrote: > > On Wed, Nov 11, 2015 at 10:26:32AM +0100, Peter Zijlstra wrote: > > > On Wed, Nov 11, 2015 at 05:50:27PM +0900, byungchul.p...@lge.com wrote: > > > > > > I've not a

Re: [PATCH V3 2/5] PM / OPP: Add {opp-microvolt|opp-microamp}- binding

2015-11-11 Thread Viresh Kumar
On 11-11-15, 14:31, Rob Herring wrote: > > + opp00 { > > Thought we are doing frequency for unit address here. That's done by the (Already reviewed) 4th patch.. -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@v

Re: [PATCH 3/3] tools/vm/slabinfo: update struct slabinfo members' types

2015-11-11 Thread David Rientjes
On Thu, 12 Nov 2015, Sergey Senozhatsky wrote: > > > /* Object size */ > > > - unsigned long long min_objsize = max, max_objsize = 0, avg_objsize; > > > + unsigned int min_objsize = UINT_MAX, max_objsize = 0, avg_objsize; > > > > > > /* Number of partial slabs in a slabcache */ > > > unsig

Re: [PATCH v4 2/3] mtd: nand: Add support for Arasan Nand Flash Controller

2015-11-11 Thread punnaiah choudary kalluri
On Mon, Nov 9, 2015 at 7:20 PM, Andy Shevchenko wrote: > On Thu, 2015-11-05 at 08:19 +0530, Punnaiah Choudary Kalluri wrote: >> Added the basic driver for Arasan Nand Flash Controller used in >> Zynq UltraScale+ MPSoC. It supports only Hw Ecc and upto 24bit >> correction. >> > >> +config MTD_NAND_

Is ndo_do_ioctl still acceptable?

2015-11-11 Thread Jason A. Donenfeld
Hi David & Folks, Soon I will submit a virtual tunnel device driver to LKML for review. It uses rtnl_link_register to create a virtual network interface, which then handles encryption, authentication, and some other things, amongst various configured peers. Right now the device is configurable vi

Re: [PATCH v5 4/5] ARM: dts: mt8135: enable basic SMP bringup for mt8135

2015-11-11 Thread Kevin Hilman
Hi Eddie, Kevin Hilman writes: > Eddie Huang writes: > >> On Tue, 2015-11-10 at 17:16 -0800, Kevin Hilman wrote: >>> Hi Eddie, >>> >>> [...] >>> >>> > I check the log [0], >>> >>> Thanks for checking into this boot failure. >>> >>> > it seems first time mt8135-evbp1 boot to kernel >>> > she

[GIT PULL] h8300 update

2015-11-11 Thread Yoshinori Sato
Hello Linus, Could you pull this changes. The following changes since commit 7379047d5585187d1288486d4627873170d0005a: Linux 4.3-rc6 (2015-10-18 16:08:42 -0700) are available in the git repository at: git://git.osdn.jp/gitroot/uclinux-h8/linux.git tags/for-4.4 for you to fetch changes up t

Re: [PATCH v3 01/17] mm: support madvise(MADV_FREE)

2015-11-11 Thread Andy Lutomirski
On Wed, Nov 11, 2015 at 8:32 PM, Minchan Kim wrote: > > Linux doesn't have an ability to free pages lazy while other OS already > have been supported that named by madvise(MADV_FREE). > > The gain is clear that kernel can discard freed pages rather than swapping > out or OOM if memory pressure hap

Re: [PATCH v4 2/3] mtd: nand: Add support for Arasan Nand Flash Controller

2015-11-11 Thread punnaiah choudary kalluri
On Mon, Nov 9, 2015 at 7:20 PM, Andy Shevchenko wrote: > On Thu, 2015-11-05 at 08:19 +0530, Punnaiah Choudary Kalluri wrote: >> Added the basic driver for Arasan Nand Flash Controller used in >> Zynq UltraScale+ MPSoC. It supports only Hw Ecc and upto 24bit >> correction. >> > >> +config MTD_NAND_

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-11 Thread Doug Anderson
John, On Wed, Nov 11, 2015 at 8:29 PM, John Youn wrote: > I also feel it is not quite right as the SSPLIT should be able to > happen during the SSPLIT of another device. I tried to reproduce > and see the same scheduling but don't see any hang due to it. > > Yunzhi, any details on what kind of hu

Re: module: save load_info for livepatch modules

2015-11-11 Thread Jessica Yu
+++ Petr Mladek [11/11/15 15:31 +0100]: On Mon 2015-11-09 23:45:52, Jessica Yu wrote: In livepatch modules, preserve section, symbol, string information from the load_info struct in the module loader. This information is used to patch modules that are not loaded in memory yet; specifically it is

Re: [PATCH v4 8/9] ARM: EXYNOS: rearrange static and non-static functions of PMU driver

2015-11-11 Thread Krzysztof Kozlowski
On 10.11.2015 20:43, Pankaj Dubey wrote: > This patch moves exynos_sys_powerdown_conf function above all > static functions. Please (always) describe the reason, the answer to "why?". In this case I know why, but other reviewers may not and other people grepping through history definitely won't kn

[PATCH v3 04/17] mm: free swp_entry in madvise_free

2015-11-11 Thread Minchan Kim
When I test below piece of code with 12 processes(ie, 512M * 12 = 6G consume) on my (3G ram + 12 cpu + 8G swap, the madvise_free is siginficat slower (ie, 2x times) than madvise_dontneed. loop = 5; mmap(512M); while (loop--) { memset(512M); madvise(MADV_FREE or MADV_DONTNEED); } T

[PATCH v3 07/17] mm: mark stable page dirty in KSM

2015-11-11 Thread Minchan Kim
The MADV_FREE patchset changes page reclaim to simply free a clean anonymous page with no dirty ptes, instead of swapping it out; but KSM uses clean write-protected ptes to reference the stable ksm page. So be sure to mark that page dirty, so it's never mistakenly discarded. [hughd: adjusted comme

[PATCH v3 02/17] mm: define MADV_FREE for some arches

2015-11-11 Thread Minchan Kim
Most architectures use asm-generic, but alpha, mips, parisc, xtensa need their own definitions. This patch defines MADV_FREE for them so it should fix build break for their architectures. Maybe, I should split and feed piecies to arch maintainers but included here for mmotm convenience. Cc: Mich

[PATCH v3 08/17] x86: add pmd_[dirty|mkclean] for THP

2015-11-11 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE support. Signed-off-by: Minchan Kim Signed-off-by: Andrew Morton --- arch/x86/include/asm/pg

[PATCH v3 06/17] mm: clear PG_dirty to mark page freeable

2015-11-11 Thread Minchan Kim
Basically, MADV_FREE relies on dirty bit in page table entry to decide whether VM allows to discard the page or not. IOW, if page table entry includes marked dirty bit, VM shouldn't discard the page. However, as a example, if swap-in by read fault happens, page table entry doesn't have dirty bit

[PATCH v3 05/17] mm: move lazily freed pages to inactive list

2015-11-11 Thread Minchan Kim
MADV_FREE is a hint that it's okay to discard pages if there is memory pressure and we use reclaimers(ie, kswapd and direct reclaim) to free them so there is no value keeping them in the active anonymous LRU so this patch moves them to inactive LRU list's head. This means that MADV_FREE-ed pages w

[PATCH v3 12/17] arm64: add pmd_mkclean for THP

2015-11-11 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_mkclean for THP page MADV_FREE support. Signed-off-by: Minchan Kim --- arch/arm64/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion

[PATCH v3 01/17] mm: support madvise(MADV_FREE)

2015-11-11 Thread Minchan Kim
Linux doesn't have an ability to free pages lazy while other OS already have been supported that named by madvise(MADV_FREE). The gain is clear that kernel can discard freed pages rather than swapping out or OOM if memory pressure happens. Without memory pressure, freed pages would be reused by u

[PATCH v3 00/17] MADFV_FREE support

2015-11-11 Thread Minchan Kim
MADV_FREE is on linux-next so long time. The reason was two, I think. 1. MADV_FREE code on reclaim path was really mess. 2. Andrew really want to see voice of userland people who want to use the syscall. A few month ago, Daniel Micay(jemalloc active contributor) requested me to make progress

Re: [PATCH v4 9/9] drivers: soc: Add support for Exynos PMU driver

2015-11-11 Thread Krzysztof Kozlowski
On 10.11.2015 20:43, Pankaj Dubey wrote: > This patch moves Exynos PMU driver implementation from "arm/mach-exynos" > to "drivers/soc/samsung". This driver is mainly used for setting misc > bits of register from PMU IP of Exynos SoC which will be required to > configure before Suspend/Resume. Curre

[PATCH v3 11/17] arm: add pmd_mkclean for THP

2015-11-11 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_mkclean for THP page MADV_FREE support. Signed-off-by: Minchan Kim --- arch/arm/include/asm/pgtable-3level.h | 1 + 1 file changed, 1 inse

[PATCH v3 10/17] powerpc: add pmd_[dirty|mkclean] for THP

2015-11-11 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE support. Signed-off-by: Minchan Kim Signed-off-by: Andrew Morton --- arch/powerpc/include/as

[PATCH v3 09/17] sparc: add pmd_[dirty|mkclean] for THP

2015-11-11 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE support. Signed-off-by: Minchan Kim Signed-off-by: Andrew Morton --- arch/sparc/include/asm/

[PATCH v3 17/17] mm: add knob to tune lazyfreeing

2015-11-11 Thread Minchan Kim
MADV_FREEed page's hotness is very arguble. Someone think it's hot while others are it's cold. Quote from Shaohua " My main concern is the policy how we should treat the FREE pages. Moving it to inactive lru is definitionly a good start, I'm wondering if it's enough. The MADV_FREE increases memory

Re: [PATCH v3 1/5] spi: introduce mmap read support for spi flash devices

2015-11-11 Thread Vignesh R
Hi Brian, On 11/12/2015 12:54 AM, Brian Norris wrote: > In addition to my other comments: > [...] >> +int (*spi_mtd_mmap_read)(struct spi_device *spi, >> + loff_t from, size_t len, >> + size_t *retlen, u_char *buf, >> +

[PATCH v3 15/17] mm: introduce lazyfree LRU list

2015-11-11 Thread Minchan Kim
There are issues to support MADV_FREE. * MADV_FREE pages's hotness It's really arguable. Someone think it's cold while others are not. It's matter of workload dependent so I think no one could have a one way. IOW, we need tunable knob. * MADV_FREE on swapless system Now, we instantly free MADV_

[PATCH v3 03/17] arch: uapi: asm: mman.h: Let MADV_FREE have same value for all architectures

2015-11-11 Thread Minchan Kim
From: Chen Gang For uapi, need try to let all macros have same value, and MADV_FREE is added into main branch recently, so need redefine MADV_FREE for it. At present, '8' can be shared with all architectures, so redefine it to '8'. Cc: r...@twiddle.net , Cc: i...@jurassic.park.msu.ru Cc: matts

[PATCH v3 13/17] mm: don't split THP page when syscall is called

2015-11-11 Thread Minchan Kim
We don't need to split THP page when MADV_FREE syscall is called. It could be done when VM decide to free it in reclaim path when memory pressure is heavy so we could avoid unnecessary THP split. For that, this patch changes two things 1. __split_huge_page_map It does pte_mkdirty to subpages onl

[PATCH v3 16/17] mm: support MADV_FREE on swapless system

2015-11-11 Thread Minchan Kim
Historically, we have disabled reclaiming of anonymous pages completely with swapoff or non-swap configurable system. It did make sense but problem for lazy free pages is that we couldn't get a chance to discard MADV_FREE hinted pages in reclaim path in those systems. That's why current MADV_FREE

[PATCH v3 14/17] mm: introduce wrappers to add new LRU

2015-11-11 Thread Minchan Kim
We have used binary variable "file" to identify whether it is anon LRU or file LRU. It's good but it becomes obstacle if we add new LRU. So, this patch introduces some wrapper functions to handle it. Signed-off-by: Minchan Kim --- include/linux/mm_inline.h | 64 +

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-11 Thread John Youn
On 11/11/2015 4:22 PM, Doug Anderson wrote: > John, > > On Fri, Nov 6, 2015 at 2:04 AM, Yunzhi Li wrote: >> hi John , >> >> As we talked yesterday, I tried to fix the split schedule sequence. This >> patch will >> avoid scheduling SSPLIT-IN packet for another device between >> SSPLIT-OUT-begin

Re: [PATCH v4 7/9] ARM: EXYNOS: split up exynos5420 SoC specific PMU data

2015-11-11 Thread Krzysztof Kozlowski
On 10.11.2015 20:43, Pankaj Dubey wrote: > This patch splits up mach-exynos/pmu.c file, and moves exynos5420, > PMU configuration data and functions handing data into exynos5420 > SoC specific PMU file mach-exynos/exynos5420-pmu.c. > > Signed-off-by: Pankaj Dubey > --- > arch/arm/mach-exynos/Mak

Re: [UNTESTED PATCH] x86, mce: Avoid double entry of deferred errors into the genpool.

2015-11-11 Thread Chen, Gong
On Wed, Nov 11, 2015 at 02:01:51PM -0800, Luck, Tony wrote: > Date: Wed, 11 Nov 2015 14:01:51 -0800 > From: Tony Luck > To: "Chen, Gong" > Cc: b...@alien8.de, linux-e...@vger.kernel.org, linux-kernel@vger.kernel.org > Subject: [UNTESTED PATCH] x86, mce: Avoid double entry of deferred errors > in

Re: [PATCH v4 4/9] ARM: EXYNOS: split up exynos3250 SoC specific PMU data

2015-11-11 Thread Krzysztof Kozlowski
On 10.11.2015 20:42, Pankaj Dubey wrote: > This patch splits up mach-exynos/pmu.c file, and moves exynos3250 PMU > configuration data and functions handing those data into exynos3250 > SoC specific PMU file mach-exynos/exynos3250-pmu.c. > > Signed-off-by: Pankaj Dubey > --- > arch/arm/mach-exyno

Re: [PATCH 2/3] x86, ras: Extend machine check recovery code to annotated ring0 areas

2015-11-11 Thread Andy Lutomirski
On 11/06/2015 01:01 PM, Tony Luck wrote: Extend the severity checking code to add a new context IN_KERN_RECOV which is used to indicate that the machine check was triggered by code in the kernel with a fixup entry. Add code to check for this situation and respond by altering the return IP to the

Re: [PATCH 1/3] x86, ras: Add new infrastructure for machine check fixup tables

2015-11-11 Thread Andy Lutomirski
On 11/06/2015 12:57 PM, Tony Luck wrote: Copy the existing page fault fixup mechanisms to create a new table to be used when fixing machine checks. Note: 1) At this time we only provide a macro to annotate assembly code 2) We assume all fixups will in code builtin to the kernel. Shouldn't the f

Re: [PATCH v4 3/9] ARM: EXYNOS: Move pmu specific headers under "linux/soc/samsung"

2015-11-11 Thread Krzysztof Kozlowski
On 10.11.2015 20:42, Pankaj Dubey wrote: > Moving Exynos PMU specific header file into "include/linux/soc/samsung" > thus updated affected files under "mach-exynos" to use new location of > these header files. > > Signed-off-by: Amit Daniel Kachhap > Signed-off-by: Pankaj Dubey > --- > arch/arm

Re: [PATCH 1/2] block: Introduce BIO_ENDIO_FREE for bio flags

2015-11-11 Thread Baolin Wang
On 12 November 2015 at 01:54, Mike Snitzer wrote: > On Wed, Nov 11 2015 at 4:31am -0500, > Baolin Wang wrote: > >> When we use dm-crypt to decrypt block data, it will decrypt the block data >> in endio() when one IO is completed. In this situation we don't want the >> cloned bios is freed before

Re: [PATCH v4 2/9] ARM: EXYNOS: Fix potential NULL pointer access in exynos_sys_powerdown_conf

2015-11-11 Thread Krzysztof Kozlowski
On 10.11.2015 20:42, Pankaj Dubey wrote: > If no platform devices binded to the driver but driver itself loaded and > exynos_sys_powerdown_conf is called from > arch/arm/mach-exynos/{suspend.c, pm.c} it will result in NULL pointer access, > to prevent this added check on pmu_context for NULL. > >

  1   2   3   4   5   6   7   >