Re: Suspicious error for CMA stress test

2016-03-02 Thread Hanjun Guo
On 2016/3/3 15:42, Joonsoo Kim wrote: > 2016-03-03 10:25 GMT+09:00 Laura Abbott : >> (cc -mm and Joonsoo Kim) >> >> >> On 03/02/2016 05:52 AM, Hanjun Guo wrote: >>> Hi, >>> >>> I came across a suspicious error for CMA stress test: >>> >>> Before the test, I got: >>> -bash-4.3# cat /proc/meminfo | g

Re: [PATCH] objtool: Disable stack validation when CROSS_COMPILE is used

2016-03-02 Thread Stephen Rothwell
Hi Sedat, On Thu, 3 Mar 2016 08:31:57 +0100 Sedat Dilek wrote: > > Does Linux next-20160303 has this patch? > On a quick view I could not find it. It is applied as part of the merge commit that merges the tip tree, so there is not a separate commit for it. -- Cheers, Stephen Rothwell

Re: [PATCHv9 1/3] rdmacg: Added rdma cgroup controller

2016-03-02 Thread Haggai Eran
On 03/03/2016 04:49, Parav Pandit wrote: > Hi Tejun, Haggai, > > On Thu, Mar 3, 2016 at 1:28 AM, Parav Pandit wrote: + rpool->refcnt--; + if (rpool->refcnt == 0 && rpool->num_max_cnt == pool_info->table_len) { >>> >>> If the caller charges 2 and then uncharges 1 two times,

Re: [PULL] NBD for 4.6

2016-03-02 Thread Markus Pargmann
Hi Jens, On Sunday, February 21, 2016 03:01:20 PM Markus Pargmann wrote: > Hi Jens, > > This pull request contains 7 patches for 4.6. any news on this pull request? Best Regards, Markus > > Patch 1 fixes some unnecessarily complicated code I introduced some versions > ago for debugfs. > > P

Re: [PATCH v4 1/2] mm: introduce page reference manipulation functions

2016-03-02 Thread Joonsoo Kim
2016-03-03 1:44 GMT+09:00 Vlastimil Babka : > On 02/26/2016 01:58 AM, js1...@gmail.com wrote: >> >> From: Joonsoo Kim >> >> Success of CMA allocation largely depends on success of migration >> and key factor of it is page reference count. Until now, page reference >> is manipulated by direct calli

Re: fs: uninterruptible hang in handle_userfault

2016-03-02 Thread Sedat Dilek
On 3/3/16, Linus Torvalds wrote: > On Mar 2, 2016 23:14, "Sedat Dilek" wrote: >> >> Is that commit [1] Linux-4.5 material or affects other versions, too? > > Hmm. I guess this affects anything with userfaultfd. > OK, Linux v4.4.y LTS has userfaultfd - is affected. Just anorganizational question

[PATCH v1 00/11] mm: page migration enhancement for thp

2016-03-02 Thread Naoya Horiguchi
Hi everyone, This patchset enhances page migration functionality to handle thp migration for various page migration's callers: - mbind(2) - move_pages(2) - migrate_pages(2) - cgroup/cpuset migration - memory hotremove - soft offline The main benefit is that we can avoid unnecessary thp spli

[PATCH v1 04/11] mm: thp: enable thp migration in generic path

2016-03-02 Thread Naoya Horiguchi
This patch makes it possible to support thp migration gradually. If you fail to allocate a destination page as a thp, you just split the source thp as we do now, and then enter the normal page migration. If you succeed to allocate destination thp, you enter thp migration. Subsequent patches actuall

Re: Suspicious error for CMA stress test

2016-03-02 Thread Joonsoo Kim
2016-03-03 10:25 GMT+09:00 Laura Abbott : > (cc -mm and Joonsoo Kim) > > > On 03/02/2016 05:52 AM, Hanjun Guo wrote: >> >> Hi, >> >> I came across a suspicious error for CMA stress test: >> >> Before the test, I got: >> -bash-4.3# cat /proc/meminfo | grep Cma >> CmaTotal: 204800 kB >> CmaFr

Re: [PATCH v4 2/2] mm/page_ref: add tracepoint to track down page reference manipulation

2016-03-02 Thread Joonsoo Kim
2016-03-03 1:58 GMT+09:00 Vlastimil Babka : > On 02/26/2016 01:58 AM, js1...@gmail.com wrote: >> >> From: Joonsoo Kim >> >> CMA allocation should be guaranteed to succeed by definition, but, >> unfortunately, it would be failed sometimes. It is hard to track down >> the problem, because it is rela

[PATCH v1 07/11] mm: hwpoison: fix race between unpoisoning and freeing migrate source page

2016-03-02 Thread Naoya Horiguchi
During testing thp migration, I saw the BUG_ON triggered due to the race between soft offline and unpoison (what I actually saw was "bad page" warning of freeing page with PageActive set, then subsequent bug messages differ each time.) I tried to solve similar problem a few times (see commit f4c18

[PATCH v1 05/11] mm: thp: check pmd migration entry in common path

2016-03-02 Thread Naoya Horiguchi
If one of callers of page migration starts to handle thp, memory management code start to see pmd migration entry, so we need to prepare for it before enabling. This patch changes various code point which checks the status of given pmds in order to prevent race between thp migration and the pmd-rel

[PATCH v1 10/11] mm: migrate: move_pages() supports thp migration

2016-03-02 Thread Naoya Horiguchi
This patch enables thp migration for move_pages(2). Signed-off-by: Naoya Horiguchi --- mm/migrate.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git v4.5-rc5-mmotm-2016-02-24-16-18/mm/migrate.c v4.5-rc5-mmotm-2016-02-24-16-18_patched/mm/migrate.c index

[PATCH v1 09/11] mm: mempolicy: mbind and migrate_pages support thp migration

2016-03-02 Thread Naoya Horiguchi
This patch enables thp migration for mbind(2) and migrate_pages(2). Signed-off-by: Naoya Horiguchi --- mm/mempolicy.c | 94 -- 1 file changed, 72 insertions(+), 22 deletions(-) diff --git v4.5-rc5-mmotm-2016-02-24-16-18/mm/mempolicy.c v4.

[PATCH v1 11/11] mm: memory_hotplug: memory hotremove supports thp migration

2016-03-02 Thread Naoya Horiguchi
This patch enables thp migration for memory hotremove. Stub definition of prep_transhuge_page() is added for CONFIG_TRANSPARENT_HUGEPAGE=n. Signed-off-by: Naoya Horiguchi --- include/linux/huge_mm.h | 3 +++ mm/memory_hotplug.c | 8 mm/page_isolation.c | 8 3 files chan

[PATCH v1 03/11] mm: thp: add helpers related to thp/pmd migration

2016-03-02 Thread Naoya Horiguchi
This patch prepares thp migration's core code. These code will be open when unmap_and_move() stops unconditionally splitting thp and get_new_page() starts to allocate destination thps. Signed-off-by: Naoya Horiguchi --- arch/x86/include/asm/pgtable.h| 11 ++ arch/x86/include/asm/pgtable_

[PATCH v1 08/11] mm: hwpoison: soft offline supports thp migration

2016-03-02 Thread Naoya Horiguchi
This patch enables thp migration for soft offline. Signed-off-by: Naoya Horiguchi --- mm/memory-failure.c | 31 --- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git v4.5-rc5-mmotm-2016-02-24-16-18/mm/memory-failure.c v4.5-rc5-mmotm-2016-02-24-16-18_patch

[PATCH v1 06/11] mm: soft-dirty: keep soft-dirty bits over thp migration

2016-03-02 Thread Naoya Horiguchi
Soft dirty bit is designed to keep tracked over page migration, so this patch makes it done for thp migration too. This patch changes the bit for _PAGE_SWP_SOFT_DIRTY bit, because it's necessary for thp migration (i.e. both of _PAGE_PSE and _PAGE_PRESENT is used to detect pmd migration entry.) Whe

[PATCH v1 02/11] mm: thp: introduce CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION

2016-03-02 Thread Naoya Horiguchi
Introduces CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION to limit thp migration functionality to x86_64, which should be safer at the first step. Signed-off-by: Naoya Horiguchi --- arch/x86/Kconfig| 4 include/linux/huge_mm.h | 14 ++ mm/Kconfig | 3 +++ 3 files c

[PATCH v1 01/11] mm: mempolicy: add queue_pages_node_check()

2016-03-02 Thread Naoya Horiguchi
Introduce a separate check routine related to MPOL_MF_INVERT flag. This patch just does cleanup, no behavioral change. Signed-off-by: Naoya Horiguchi --- mm/mempolicy.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git v4.5-rc5-mmotm-2016-02-24-16-18/mm/mempolic

Re: [PATCH] thermal: consistently use int for trip temp

2016-03-02 Thread kbuild test robot
Hi Wei, [auto build test WARNING on thermal/next] [also build test WARNING on v4.5-rc6 next-20160302] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Wei-Ni/thermal-consistently-use-int-for

Re: [PATCH 3/6] x86/mbm: Intel Memory B/W Monitoring enumeration and init

2016-03-02 Thread Thomas Gleixner
On Wed, 2 Mar 2016, Vikas Shivappa wrote: > + if (cqm_enabled && mbm_enabled) > + intel_cqm_events_group.attrs = intel_cmt_mbm_events_attr; > + else if (!cqm_enabled && mbm_enabled) > + intel_cqm_events_group.attrs = intel_mbm_events_attr; > + else if (cqm_enable

Re: [PATCH 2/7] extcon: usb-gpio: add support for ACPI gpio interface

2016-03-02 Thread Lu Baolu
On 03/03/2016 03:24 PM, Chanwoo Choi wrote: > Hi Lu, > > On 2016년 03월 03일 15:37, Lu Baolu wrote: >> GPIO resource could be retrieved through APCI as well. >> >> Signed-off-by: Lu Baolu >> Reviewed-by: Felipe Balbi >> --- >> drivers/extcon/extcon-usb-gpio.c | 3 ++- >> 1 file changed, 2 inserti

Re: [PATCH 1/7] extcon: usb-gpio: add device binding for platform device

2016-03-02 Thread Lu Baolu
On 03/03/2016 03:24 PM, Chanwoo Choi wrote: > Hell Lu, > > On 2016년 03월 03일 15:37, Lu Baolu wrote: >> This is needed to handle the GPIO connected USB ID pin found on >> Intel Baytrail devices. >> >> Signed-off-by: Lu Baolu >> Reviewed-by: Felipe Balbi >> --- >> drivers/extcon/extcon-usb-gpio.c

Re: [tip:smp/hotplug] rcu: Make CPU_DYING_IDLE an explicit call

2016-03-02 Thread Thomas Gleixner
On Wed, 2 Mar 2016, Paul E. McKenney wrote: > > --- a/kernel/cpu.c > > +++ b/kernel/cpu.c > > @@ -762,6 +762,7 @@ void cpuhp_report_idle_dead(void) > > BUG_ON(st->state != CPUHP_AP_OFFLINE); > > st->state = CPUHP_AP_IDLE_DEAD; > > complete(&st->done); > > Not to be repetitive or anythi

Re: [PATCH] objtool: Disable stack validation when CROSS_COMPILE is used

2016-03-02 Thread Sedat Dilek
On 3/2/16, Stephen Rothwell wrote: > Hi Josh, > > On Tue, 1 Mar 2016 15:54:51 -0600 Josh Poimboeuf > wrote: >> >> Changing it to use the host compiler would probably be an easy fix, but >> that would expose a harder bug related to endianness. > > Just by luck, my PowerPC host is little endian :-)

Re: [PATCH] thermal: consistently use int for trip temp

2016-03-02 Thread kbuild test robot
Hi Wei, [auto build test WARNING on thermal/next] [also build test WARNING on v4.5-rc6 next-20160302] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Wei-Ni/thermal-consistently-use-int-for

Re: [PATCH 2/7] extcon: usb-gpio: add support for ACPI gpio interface

2016-03-02 Thread Chanwoo Choi
Hi Lu, On 2016년 03월 03일 15:37, Lu Baolu wrote: > GPIO resource could be retrieved through APCI as well. > > Signed-off-by: Lu Baolu > Reviewed-by: Felipe Balbi > --- > drivers/extcon/extcon-usb-gpio.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/extcon/ex

Re: [PATCH 1/7] extcon: usb-gpio: add device binding for platform device

2016-03-02 Thread Chanwoo Choi
Hell Lu, On 2016년 03월 03일 15:37, Lu Baolu wrote: > This is needed to handle the GPIO connected USB ID pin found on > Intel Baytrail devices. > > Signed-off-by: Lu Baolu > Reviewed-by: Felipe Balbi > --- > drivers/extcon/extcon-usb-gpio.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff

Re: [PATCH v5 04/15] scsi: ufs: verify hba controller hce reg value

2016-03-02 Thread Hannes Reinecke
On 03/01/2016 09:32 PM, yga...@codeaurora.org wrote: >> On 02/28/2016 09:32 PM, Yaniv Gardi wrote: >>> Sometimes due to hw issues it takes some time to the >>> host controller register to update. In order to verify the register >>> has updated, a polling is done until its value is set. >>> >>> In a

Re: [PATCH v5 03/15] scsi: ufs: implement scsi host timeout handler

2016-03-02 Thread Hannes Reinecke
On 03/01/2016 09:25 PM, yga...@codeaurora.org wrote: >> On 02/28/2016 09:32 PM, Yaniv Gardi wrote: >>> A race condition exists between request requeueing and scsi layer >>> error handling: >>> When UFS driver queuecommand returns a busy status for a request, >>> it will be requeued and its tag will

[PATCH v3 4/4] mtd: spi-nor: Disable Micron flash HW protection

2016-03-02 Thread Yunhui Cui
From: Yunhui Cui For Micron family ,The status register write enable/disable bit, provides hardware data protection for the device. When the enable/disable bit is set to 1, the status register nonvolatile bits become read-only and the WRITE STATUS REGISTER operation will not execute. Signed-off-

[PATCH v3 1/4] mtd:fsl-quadspi:use the property fields of SPI-NOR

2016-03-02 Thread Yunhui Cui
We can get the read/write/erase opcode from the spi nor framework directly. This patch uses the information stored in the SPI-NOR to remove the hardcode in the fsl_qspi_init_lut(). Signed-off-by: Yunhui Cui Signed-off-by: Yunhui Cui --- drivers/mtd/spi-nor/fsl-quadspi.c | 40 ---

[PATCH] thermal: consistently use int for trip temp

2016-03-02 Thread Wei Ni
The commit 17e8351a7739 consistently use int for temperature, however it missed a few in trip temperature and thermal_core. In current codes, the trip->temperature used "unsigned long" and zone->temperature used"int", if the temperature is negative value, it will get wrong result when compare temp

Re: fs: uninterruptible hang in handle_userfault

2016-03-02 Thread Sedat Dilek
On 3/2/16, Linus Torvalds wrote: > On Wed, Mar 2, 2016 at 6:55 AM, Andrea Arcangeli > wrote: >> >> Running page faults that late in the exit path with signal disabled >> was frankly unexpected. > > I agree that it's less than wonderful. > >>Apparently it's not just >> PF_EXITING that prev

[PATCH v3 2/4] mtd: fsl-quadspi: Rename SEQID_QUAD_READ to SEQID_READ

2016-03-02 Thread Yunhui Cui
There are some read modes for flash, such as NORMAL, FAST, QUAD, DDR QUAD. These modes will use the identical lut table base So rename SEQID_QUAD_READ to SEQID_READ. Signed-off-by: Yunhui Cui Signed-off-by: Yunhui Cui --- drivers/mtd/spi-nor/fsl-quadspi.c | 8 1 file changed, 4 inserti

[PATCH v3 3/4] mtd: spi-nor: fsl-quadspi: add fast-read mode support

2016-03-02 Thread Yunhui Cui
From: Yunhui Cui The qspi driver add generic fast-read mode for different flash venders. There are some different board flash work on different mode, such fast-read, quad-mode. Signed-off-by: Yunhui Cui --- drivers/mtd/spi-nor/fsl-quadspi.c | 21 - 1 file changed, 16 insert

[PATCH RFC 0/2] mm: Enable page parallel initialisation for Power

2016-03-02 Thread Li Zhang
From: Li Zhang Uptream has supported page parallel initialisation for X86 and the boot time is improved greately. Some tests have been done for Power. Here is the result I have done with different memory size. * 4GB memory: boot time is as the following: with patch vs without patch: 10

[PATCH RFC 2/2] powerpc/mm: Enable page parallel initialisation

2016-03-02 Thread Li Zhang
From: Li Zhang Parallel initialisation has been enabled for X86, boot time is improved greatly. On Power8, for small memory, it is improved greatly. Here is the result from my test on Power8 platform: For 4GB memory: 57% is improved For 50GB memory: 22% is improve Signed-off-by: Li Zhang ---

[PATCH RFC 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot

2016-03-02 Thread Li Zhang
From: Li Zhang This patch is based on Mel Gorman's old patch in the mailing list, https://lkml.org/lkml/2015/5/5/280 which is dicussed but it is fixed with a completion to wait for all memory initialised in page_alloc_init_late(). It is to fix the oom problem on X86 with 24TB memory which allocat

[RFC][PATCH][v2] Enable livepatching for powerpc

2016-03-02 Thread Balbir Singh
Changelog: 1. Implement review comments by Michael 2. The previous version compared _NIP from the wrong location to check for whether we are going to a patched location This applies on top of the patches posted by Michael https://patchwork.ozlabs.org/patch/58

Re: [PATCH v3 1/8] powerpc: Create a helper for getting the kernel toc value

2016-03-02 Thread Kamalesh Babulal
* Michael Ellerman [2016-03-03 15:26:53]: > Move the logic to work out the kernel toc pointer into a header. This is > a good cleanup, and also means we can use it elsewhere in future. > > Reviewed-by: Kamalesh Babulal > Reviewed-by: Torsten Duwe > Signed-off-by: Michael Ellerman For the pat

[PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2016-03-02 Thread jeffrey.lin
Raydium I2C touch driver. Signed-off-by: jeffrey.lin --- drivers/input/touchscreen/Kconfig | 13 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/raydium_i2c_ts.c | 953 + 3 files changed, 967 insertions(+) create mode 100644

[PATCH 1/7] extcon: usb-gpio: add device binding for platform device

2016-03-02 Thread Lu Baolu
This is needed to handle the GPIO connected USB ID pin found on Intel Baytrail devices. Signed-off-by: Lu Baolu Reviewed-by: Felipe Balbi --- drivers/extcon/extcon-usb-gpio.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-

[PATCH 2/7] extcon: usb-gpio: add support for ACPI gpio interface

2016-03-02 Thread Lu Baolu
GPIO resource could be retrieved through APCI as well. Signed-off-by: Lu Baolu Reviewed-by: Felipe Balbi --- drivers/extcon/extcon-usb-gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c index af9c8b0..

[PATCH 4/7] usb: misc: add driver for Intel gpio controlled port mux

2016-03-02 Thread Lu Baolu
In some Intel platforms, a single usb port is shared between USB host and device controller. The shared port is under control of GPIO pins. This patch adds the support for USB GPIO controlled port mux. Signed-off-by: David Cohen Signed-off-by: Lu Baolu Reviewed-by: Heikki Krogerus Reviewed-by:

[PATCH 5/7] usb: misc: add driver for Intel drcfg controlled port mux

2016-03-02 Thread Lu Baolu
Several Intel PCHs and SOCs have an internal mux that is used to share one USB port between device controller and host controller. The mux is handled through the Dual Role Configuration Register. Signed-off-by: Heikki Krogerus Signed-off-by: Lu Baolu Signed-off-by: Wu Hao Reviewed-by: Felipe Ba

[PATCH 3/7] usb: misc: add common code for Intel dual role port mux

2016-03-02 Thread Lu Baolu
Several Intel PCHs and SOCs have an internal mux that is used to share one USB port between device controller and host controller. A usb port mux could be abstracted as the following elements: 1) mux state: HOST or PERIPHERAL; 2) an extcon cable which triggers the change of mux state between HO

[PATCH 0/7] usb: add support for Intel dual role port mux

2016-03-02 Thread Lu Baolu
Intel SOC chips are featured with USB dual role. The host role is provided by Intel xHCI IP, and the gadget role is provided by IP from designware. Tablet platform designs always share a single port for both host and gadget controllers. There is a mux to switch the port to the right controller acco

[PATCH 7/7] mfd: intel_vuport: Add Intel virtual USB port MFD Driver

2016-03-02 Thread Lu Baolu
Some Intel platforms have an USB port mux controlled by GPIOs. There's a single ACPI platform device that provides both USB ID extcon device and a USB port mux device. This MFD driver will split the 2 devices for their respective drivers. Signed-off-by: Lu Baolu Suggested-by: David Cohen Reviewe

[PATCH 6/7] usb: pci-quirks: add Intel USB drcfg mux device

2016-03-02 Thread Lu Baolu
In some Intel platforms, a single usb port is shared between USB host and device controllers. The shared port is under control of a switch which is defined in the Intel vendor defined extended capability for xHCI. This patch adds the support to detect and create the platform device for the port mu

Re: Suspicious error for CMA stress test

2016-03-02 Thread Hanjun Guo
Hi Laura, Thanks a lot for taking a look! On 2016/3/3 9:25, Laura Abbott wrote: > (cc -mm and Joonsoo Kim) > > [...] > > I played with this a bit and can see the same problem. The sanity > check of CmaFree < CmaTotal generally triggers in > __move_zone_freepage_state in unset_migratetype_isolate.

Re: [PATCH v7 07/10] usb: dbc: handle endpoint stall

2016-03-02 Thread Lu Baolu
On 03/02/2016 08:58 PM, Felipe Balbi wrote: > Hi, > > Mathias Nyman writes: >> [ text/plain ] >> On 26.01.2016 14:58, Lu Baolu wrote: >>> In case of endpoint stall, software is able to detect the situation >>> by reading DCCTRL.HIT or DCCTRL.HOT bits. DbC follows the normal USB >>> framework to

linux-next: Tree for Mar 3

2016-03-02 Thread Stephen Rothwell
Hi all, Changes since 20160302: The samsung-krzk tree gained a conflict against the omap tree. The net-next tree gained conflicts against the net tree. The tip tree still had its build failure so I applied a supplied patch. The aio tree still had a build failure so I used the version from

[PATCH] perf subcmd: Bugfix exactly compare long name of options to avoid repeat output.

2016-03-02 Thread Taeung Song
In parse_options_usage(), check whether short option is used and there is a option that has same name with a specific option string (optstr) or not before printing usage of options by print_option_help(). But using prefixcmp() has a problem when comparing long name of options with a specific optio

[PATCH] dmaengine: rcar-dmac: clear pertinence number of channels

2016-03-02 Thread Kuninori Morimoto
From: Kuninori Morimoto DMACHCLR clears each channels, but its channel number is based on its SoC or IP. Current driver is using fixed 0x7fff (= for 14ch), it is not good match for Gen3 or Gen2 Audio DMAC. This patch fixes it Signed-off-by: Kuninori Morimoto --- drivers/dma/sh/rcar-dmac.c | 2

Re: [PATCH 4/6] cpufreq: governor: Move abstract gov_tunables code to a seperate file

2016-03-02 Thread Viresh Kumar
On 02-03-16, 03:10, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Move abstract code related to struct gov_tunables to a separate (new) > file so it can be shared with (future) goverernors that won't share > more code with "ondemand" and "conservative". > > No intentional functional cha

Re: [PATCH v7 07/10] usb: dbc: handle endpoint stall

2016-03-02 Thread Lu Baolu
On 03/02/2016 08:58 PM, Mathias Nyman wrote: > On 26.01.2016 14:58, Lu Baolu wrote: >> In case of endpoint stall, software is able to detect the situation >> by reading DCCTRL.HIT or DCCTRL.HOT bits. DbC follows the normal USB >> framework to handle endpoint stall. When software detects endpoint

Re: [PATCH 5/6] cpufreq: Support for fast frequency switching

2016-03-02 Thread Viresh Kumar
On 02-03-16, 03:12, Rafael J. Wysocki wrote: > Index: linux-pm/drivers/cpufreq/cpufreq.c > === > --- linux-pm.orig/drivers/cpufreq/cpufreq.c > +++ linux-pm/drivers/cpufreq/cpufreq.c > @@ -1772,6 +1772,39 @@ EXPORT_SYMBOL(cpufreq_unregi

[PATCH] platform/chrome: cros_ec_dev - Fix security issue

2016-03-02 Thread Gwendal Grignou
Add a check to prevent memory scribbe when sending an ioctl with .insize set so large that memory allocation argument overflows. Signed-off-by: Gwendal Grignou --- drivers/platform/chrome/cros_ec_dev.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/platf

Re: [PATCH v3] net: jme: fix suspend/resume on JMC260

2016-03-02 Thread Diego Viola
On Thu, Mar 3, 2016 at 12:19 AM, Diego Viola wrote: > On Wed, Mar 2, 2016 at 2:14 AM, Guo-Fu Tseng wrote: >> On Wed, 24 Feb 2016 23:58:56 -0500 (EST), David Miller wrote >>> From: Diego Viola >>> Date: Tue, 23 Feb 2016 12:04:04 -0300 >>> >>> > The JMC260 network card fails to suspend/resume beca

Re: [PATCH 3/6] cpufreq: governor: New data type for management part of dbs_data

2016-03-02 Thread Viresh Kumar
On 02-03-16, 03:08, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > In addition to fields representing governor tunables, struct dbs_data > contains some fields needed for the management of objects of that > type. As it turns out, that part of struct dbs_data may be shared > with (future)

Re: [ppdev] e7223f1860: kernel BUG at drivers/base/driver.c:153!

2016-03-02 Thread Sudip Mukherjee
On Wed, Mar 02, 2016 at 02:24:22PM -0700, Ross Zwisler wrote: > On Mon, Feb 15, 2016 at 4:50 AM, Sudip Mukherjee > wrote: > > On Mon, Feb 15, 2016 at 04:20:45PM +0800, kernel test robot wrote: > >> Greetings, > >> > >> 0day kernel testing robot got the below dmesg and the first bad commit is > >>

Re: [PATCH 1/6] cpufreq: Reduce cpufreq_update_util() overhead a bit

2016-03-02 Thread Viresh Kumar
On 02-03-16, 03:04, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Use the observation that cpufreq_update_util() is only called > by the scheduler with rq->lock held, so the callers of > cpufreq_set_update_util_data() can use synchronize_sched() > instead of synchronize_rcu() to wait for

Re:LDPE/HDPE/TPE gloves etc.

2016-03-02 Thread Vivian
Dear Manager, This is Vivian from Ju County Mingbo Industry & Trade Co.,Ltd in China. Glad to hear that you're on the market for disposable PE gloves and aprons. We mainly produced LDPE/HDPE/TPE gloves,Two fingers gloves, PE aprons for more than eight years. Our products have been exported to m

[PATCH] cpufreq: acpi: Allow new dynamics attributes to be added to acpi_cpufreq_attr

2016-03-02 Thread Viresh Kumar
acpi_cpufreq_attr contains at least one dynamically populated (removed) attribute today, cpb. But the code isn't friendly enough for new attributes to be populated in a similar way. Make some changes to allow new attributes to be easily added to the struct. Signed-off-by: Viresh Kumar --- Sriniv

[lkp] [vfs] e1ff3aaf03: BUG: using smp_processor_id() in preemptible [00000000] code: init/1

2016-03-02 Thread kernel test robot
FYI, we noticed the below changes on https://github.com/0day-ci/linux Waiman-Long/vfs-Use-per-cpu-list-for-SB-s-s_inodes-list/20160302-050444 commit e1ff3aaf031d89c13da1a772bc33b0f3b386629c ("vfs: Use per-cpu list for superblock's inode list") [1.258924] Freeing unused kern

BUG: NMI Watchdog detected LOCKUP on CPU19, ip ffffffff814c5aee, registers:

2016-03-02 Thread zhiqiang dang
hi, my server has panic many times, how to fix it? more info: https://bugzilla.kernel.org/show_bug.cgi?id=111721 sys: KERNEL: /usr/lib/debug/lib/modules/2.6.32-220.7.1.el6.3.0.1.1.x86_64/vmlinux DUMPFILE: vmcore [PARTIAL DUMP] CPUS: 24 DATE: Tue Feb 23 17:51:42

RE: [REGRESSION, bisect] net: ipv6: unregister_netdevice: waiting for lo to become free. Usage count = 2

2016-03-02 Thread Dexuan Cui
> Hi David, > On Wed, Mar 02, 2016 at 01:00:21PM -0800, David Ahern wrote: > > On 3/2/16 12:31 PM, Jeremiah Mahler wrote: > > >>On Tue, Mar 01, 2016 at 08:11:54AM +, Dexuan Cui wrote: > > >>>Hi, I got this line every 10 seconds with today's linux-next in a Hyper-V > guest, even > > >>>when I di

[PATCH 3/4] crypto: Introduce the bulk mode for crypto engine framework

2016-03-02 Thread Baolin Wang
Now some cipher hardware engines prefer to handle bulk block by merging requests to increase the block size and thus increase the hardware engine processing speed. This patch introduces request bulk mode to help the crypto hardware drivers improve in efficiency, and chooses the suitable mode (SECT

[PATCH 4/4] md: dm-crypt: Initialize the sector number for one request

2016-03-02 Thread Baolin Wang
If the crypto engine can support the bulk mode, that means the contiguous requests from one block can be merged into one request to be handled by crypto engine. If so, the crypto engine need the sector number of one request to do merging action. Signed-off-by: Baolin Wang --- drivers/md/dm-crypt

[PATCH 1/4] scatterlist: Introduce some helper functions

2016-03-02 Thread Baolin Wang
In crypto engine framework, one request can combine other requests' scatterlists into its sg table to improve engine efficency with handling bulk block. Thus we need some helper functions to manage dynamic scattertables. This patch introduces 'sg_is_contiguous()' function to check if two scatterli

[PATCH 2/4] crypto: Introduce some helper functions to help to merge requests

2016-03-02 Thread Baolin Wang
Usually the dm-crypt subsystem will send encryption/descryption requests to the crypto layer one block at a time, making each request 512 bytes long, which is a much smaller size for hardware engine, that means the hardware engine can not play its best performance. Now some cipher hardware engines

[PATCH 0/4] Introduce bulk mode for crypto engine framework

2016-03-02 Thread Baolin Wang
Now some cipher hardware engines prefer to handle bulk block by merging requests to increase the block size and thus increase the hardware engine processing speed. This patchset introduces request bulk mode to help the crypto hardware drivers improve in efficiency. Baolin Wang (4): scatterlist

Re: [PATCH v13 3/6] of, numa: Add NUMA of binding implementation.

2016-03-02 Thread Ganapatrao Kulkarni
On Thu, Mar 3, 2016 at 9:55 AM, Ganapatrao Kulkarni wrote: > On Thu, Mar 3, 2016 at 9:04 AM, Rob Herring wrote: >> On Wed, Mar 2, 2016 at 4:55 PM, David Daney wrote: >>> From: David Daney >>> >>> Add device tree parsing for NUMA topology using device >>> "numa-node-id" property in distance-map

[PATCH][v2] ACPI / PM: Fix poweroff issue on HW-full platforms without _S5

2016-03-02 Thread Chen Yu
The problem is Linux registers pm_power_off = efi_power_off only if we are in hardware reduced mode. Actually, what we also want is to do this when ACPI S5 is simply not supported. That should handle both the HW reduced mode, and the HW-full mode where the DSDT fails to supply an _S5 object. This

Re: [PATCH v10 6/9] arm64: kprobes instruction simulation support

2016-03-02 Thread David Long
On 03/01/2016 01:04 PM, Marc Zyngier wrote: On 01/03/16 02:57, David Long wrote: From: Sandeepa Prabhu Kprobes needs simulation of instructions that cannot be stepped from different memory location, e.g.: those instructions that uses PC-relative addressing. In simulation, the behaviour of the

Re: [RFC PATCH] watchdog: s3c2410_wdt: Add max and min timeout values

2016-03-02 Thread Guenter Roeck
On 03/02/2016 06:14 PM, Javier Martinez Canillas wrote: Hello Krzysztof, On 03/02/2016 09:21 PM, Krzysztof Kozlowski wrote: On 03.03.2016 02:30, Javier Martinez Canillas wrote: [snip] +wdt->wdt_device.min_timeout = 1; +wdt->wdt_device.max_timeout = s3c2410wdt_max_timeout(wdt->clock

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-03-02 Thread Kefeng Wang
Hi Davidlohr and Paul, On 2016/3/3 9:37, Kefeng Wang wrote: > > > On 2016/3/3 5:12, Paul E. McKenney wrote: >> On Wed, Mar 02, 2016 at 11:55:43AM -0800, Davidlohr Bueso wrote: >>> On Tue, 02 Feb 2016, Davidlohr Bueso wrote: >>> >>> I've just hit this issue myself and remembered this thread :) >>

[PATCH v3 6/8] powerpc/ftrace: Use $(CC_FLAGS_FTRACE) when disabling ftrace

2016-03-02 Thread Michael Ellerman
From: Torsten Duwe Rather than open-coding -pg whereever we want to disable ftrace, use the existing $(CC_FLAGS_FTRACE) variable. This has the advantage that it will work in future when we use a different set of flags to enable ftrace. Signed-off-by: Torsten Duwe Signed-off-by: Michael Ellerma

[PATCH v3 5/8] powerpc/ftrace: Use generic ftrace_modify_all_code()

2016-03-02 Thread Michael Ellerman
From: Torsten Duwe Convert powerpc's arch_ftrace_update_code() from its own version to use the generic default functionality (without stop_machine -- our instructions are properly aligned and the replacements atomic). With this we gain error checking and the much-needed function_trace_op handlin

[PATCH v3 8/8] powerpc/ftrace: Add Kconfig & Make glue for mprofile-kernel

2016-03-02 Thread Michael Ellerman
From: Torsten Duwe Firstly we add logic to Kconfig to allow a user to choose if they want mprofile-kernel. This has to be user-selectable because only some current toolchains support it. If we enabled it unconditionally we would prevent some users from building the kernel entirely. Arguably it w

[PATCH v3 4/8] powerpc/module: Create a special stub for ftrace_caller()

2016-03-02 Thread Michael Ellerman
In order to support the new -mprofile-kernel ABI, we need to be able to call from the module back to ftrace_caller() (in the kernel) without using the module's r2. That is because the function in this module which is calling ftrace_caller() may not have setup r2, if it doesn't otherwise need it (ie

[PATCH v3 1/8] powerpc: Create a helper for getting the kernel toc value

2016-03-02 Thread Michael Ellerman
Move the logic to work out the kernel toc pointer into a header. This is a good cleanup, and also means we can use it elsewhere in future. Reviewed-by: Kamalesh Babulal Reviewed-by: Torsten Duwe Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/sections.h | 12 arch/pow

[PATCH v3 7/8] powerpc/ftrace: Add support for -mprofile-kernel ftrace ABI

2016-03-02 Thread Michael Ellerman
From: Torsten Duwe The gcc switch -mprofile-kernel defines a new ABI for calling _mcount() very early in the function with minimal overhead. Although mprofile-kernel has been available since GCC 3.4, there were bugs which were only fixed recently. Currently it is known to work in GCC 4.9, 5 and

[PATCH v3 3/8] powerpc/module: Mark module stubs with a magic value

2016-03-02 Thread Michael Ellerman
When a module is loaded, calls out to the kernel go via a stub which is generated at runtime. One of these stubs is used to call _mcount(), which is the default target of tracing calls generated by the compiler with -pg. If dynamic ftrace is enabled (which it typically is), another stub is used to

Re: about get_maintainer.pl not showing the original author of the modified code

2016-03-02 Thread Joe Perches
On Thu, 2016-03-03 at 12:09 +0800, Jianyu Zhan wrote: > On Thu, Mar 3, 2016 at 11:32 AM, Joe Perches wrote: > > > > with your patch get_maintainer.pl and --git-blame gives: > > > > $ ./scripts/get_maintainer.pl ~/1.diff --git-blame > > Thomas Gleixner > > (commit_signer:20/19=100%,authored:7/1

Re: [PATCH v13 3/6] of, numa: Add NUMA of binding implementation.

2016-03-02 Thread Ganapatrao Kulkarni
On Thu, Mar 3, 2016 at 9:04 AM, Rob Herring wrote: > On Wed, Mar 2, 2016 at 4:55 PM, David Daney wrote: >> From: David Daney >> >> Add device tree parsing for NUMA topology using device >> "numa-node-id" property in distance-map and cpu nodes. >> >> This is a complete rewrite of a previous patch

[PATCH v3 2/8] powerpc/module: Only try to generate the ftrace_caller() stub once

2016-03-02 Thread Michael Ellerman
Currently we generate the module stub for ftrace_caller() at the bottom of apply_relocate_add(). However apply_relocate_add() is potentially called more than once per module, which means we will try to generate the ftrace_caller() stub multiple times. Although the current code deals with that corr

Re: [PATCH 6/6] watchdog: tangox_wdt: test clock rate to avoid division by 0

2016-03-02 Thread Guenter Roeck
On Wed, Mar 02, 2016 at 11:33:37PM +0100, Wolfram Sang wrote: > From: Wolfram Sang > > The clk API may return 0 on clk_get_rate, so we should check the result before > using it as a divisor. > > Signed-off-by: Wolfram Sang > --- > > Should go individually via subsystem tree. > > drivers/watc

Re: [PATCH 5/6] watchdog: atlas7_wdt: test clock rate to avoid division by 0

2016-03-02 Thread Guenter Roeck
On Wed, Mar 02, 2016 at 11:33:36PM +0100, Wolfram Sang wrote: > From: Wolfram Sang > > The clk API may return 0 on clk_get_rate, so we should check the result before > using it as a divisor. > > Signed-off-by: Wolfram Sang Reviewed-by: Guenter Roeck > --- > > Should go individually via subs

[PATCH 0/8][GIT PULL] time: Cross-timestamp infrastructure for 4.6

2016-03-02 Thread John Stultz
Hey Thomas, So here is Christopher's cross-timestamp infrastructure patchset which I wanted to send along for 4.6. These apply against tip/timers/core. Let me know if you have any objections. thanks -john Cc: Prarit Bhargava Cc: Richard Cochran Cc: Thomas Gleixner Cc: Ingo Molnar Cc:

[PATCH 2/8] time: Add timekeeping snapshot code capturing system time and counter

2016-03-02 Thread John Stultz
From: "Christopher S. Hall" In the current timekeeping code there isn't any interface to atomically capture the current relationship between the system counter and system time. ktime_get_snapshot() returns this triple (counter, monotonic raw, realtime) in the system_time_snapshot struct. Cc: Pra

[PATCH 5/8] time: Add history to cross timestamp interface supporting slower devices

2016-03-02 Thread John Stultz
From: "Christopher S. Hall" Another representative use case of time sync and the correlated clocksource (in addition to PTP noted above) is PTP synchronized audio. In a streaming application, as an example, samples will be sent and/or received by multiple devices with a presentation time that is

Re: [PATCH RT 07/17] arm64: replace read_lock to rcu lock in call_step_hook

2016-03-02 Thread Pratyush Anand
Hi Steven, On 02/03/2016:10:44:40 AM, Steven Rostedt wrote: > 3.14.61-rt64-rc1 stable review patch. > If anyone has any objections, please let me know. > > -- > > From: Yang Shi > > BUG: sleeping function called from invalid context at > kernel/locking/rtmutex.c:917 > in_atomi

[PATCH 6/8] x86: tsc: Always Running Timer (ART) correlated clocksource

2016-03-02 Thread John Stultz
From: "Christopher S. Hall" On modern Intel systems TSC is derived from the new Always Running Timer (ART). ART can be captured simultaneous to the capture of audio and network device clocks, allowing a correlation between timebases to be constructed. Upon capture, the driver converts the capture

[PATCH 3/8] time: Remove duplicated code in ktime_get_raw_and_real()

2016-03-02 Thread John Stultz
From: "Christopher S. Hall" The code in ktime_get_snapshot() is a superset of the code in ktime_get_raw_and_real() code. Further, ktime_get_raw_and_real() is called only by the PPS code, pps_get_ts(). Consolidate the pps_get_ts() code into a single function calling ktime_get_snapshot() and elimin

[PATCH 8/8] net: e1000e: Adds hardware supported cross timestamp on e1000e nic

2016-03-02 Thread John Stultz
From: "Christopher S. Hall" Modern Intel systems supports cross timestamping of the network device clock and Always Running Timer (ART) in hardware. This allows the device time and system time to be precisely correlated. The timestamp pair is returned through e1000e_phc_get_syncdevicetime() used

[PATCH 1/8] time: Add cycles to nanoseconds translation

2016-03-02 Thread John Stultz
From: "Christopher S. Hall" The timekeeping code does not currently provide a way to translate externally provided clocksource cycles to system time. The cycle count is always provided by the result clocksource read() method internal to the timekeeping code. The added function timekeeping_cycles_

[PATCH 4/8] time: Add driver cross timestamp interface for higher precision time synchronization

2016-03-02 Thread John Stultz
From: "Christopher S. Hall" ACKNOWLEDGMENT: cross timestamp code was developed by Thomas Gleixner . It has changed considerably and any mistakes are mine. The precision with which events on multiple networked systems can be synchronized using, as an example, PTP (IEEE 1588, 802.1AS) is limited b

  1   2   3   4   5   6   7   8   9   10   >