Re: [PATCH RFC 1/2] scatterlist: add mempool based chained SG alloc/free api

2016-03-20 Thread Ming Lin
On Wed, 2016-03-16 at 09:23 +0100, Christoph Hellwig wrote: > >  > We can defintively kill this one. We want to support different size of pools. How can we kill this one? Or did you mean we just create a single pool with size SG_CHUNK_SIZE? > > > +static __init int sg_mempool_init(void) > > +{

[lkp] [drm/dp_helper] 31f8862c6e: No primary result change, 128.2% piglit.time.voluntary_context_switches

2016-03-20 Thread kernel test robot
FYI, we noticed that piglit.time.voluntary_context_switches +917.2% change with your commit. https://github.com/0day-ci/linux Lyude/drm-dp_helper-retry-on-ETIMEDOUT-in-drm_dp_dpcd_access/20160317-234351 commit 31f8862c6e6303223e946e6fcbdfa7f87274baef ("drm/dp_helper: retry on -ETIMEDOUT in drm_

[lkp] [rcutorture] 5b3e3964db: torture_init_begin: refusing rcu init: spin_lock running

2016-03-20 Thread kernel test robot
l /pkg/linux/x86_64-randconfig-i0-201612/gcc-5/5b3e3964dba5f5a3210ca931d523c1e1f3119b31/vmlinuz-4.5.0-rc1-00035-g5b3e396 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-intel12-yocto-x86_64-6/bisect_boot-1-yocto-minimal-x86_64.cgz-x86_64-randconfig-i0-201612-5b3e3964dba5f5a3210ca931d523c

Re: [PATCH 1/2] media/dvb-core: fix inverted check

2016-03-20 Thread Olli Salonen
Hi Max, Already in the tree: http://git.linuxtv.org/media_tree.git/commit/drivers/media/dvb-core?id=711f3fba6ffd3914fd1b5ed9faf8d22bab6f2203 Cheers, -olli On 18 March 2016 at 23:31, Max Kellermann wrote: > Breakage caused by commit f50d51661a > > Signed-off-by: Max Kellermann > --- > drivers/

[PATCH v2 05/18] zsmalloc: remove unused pool param in obj_free

2016-03-20 Thread Minchan Kim
Let's remove unused pool param in obj_free Reviewed-by: Sergey Senozhatsky Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 16556a6db628..a0890e9003e2 100644 --- a/mm/zsmalloc.c +++ b/mm/z

[lkp] [cpufreq] 9be4fd2c77: No primary result change, 56.4% fsmark.time.involuntary_context_switches

2016-03-20 Thread kernel test robot
6_64-2015-02-07.cgz/x86_64-rhel/gcc-4.9/9be4fd2c7723a3057b0b39676fe4c8d5fd7118a4/0" job_file: "/lkp/scheduled/lkp-ws02/bisect_fsmark-1x-32t-1HDD-ext4-nfsv4-8K-400M-fsyncBeforeClose-16d-256fpd-debian-x86_64-2015-02-07.cgz-x86_64-rhel-9be4fd2c7723a3057b0b39676fe4c8d5fd7118a4-20160320-39429

[PATCH v2 10/18] zsmalloc: factor page chain functionality out

2016-03-20 Thread Minchan Kim
For migration, we need to create sub-page chain of zspage dynamically so this patch factors it out from alloc_zspage. As a minor refactoring, it makes OBJ_ALLOCATED_TAG assign more clear in obj_malloc(it could be another patch but it's trivial so I want to put together in this patch). Signed-off-

[PATCH v2 09/18] zsmalloc: move struct zs_meta from mapping to freelist

2016-03-20 Thread Minchan Kim
For supporting migration from VM, we need to have address_space on every page so zsmalloc shouldn't use page->mapping. So, this patch moves zs_meta from mapping to freelist. Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(

[PATCH v2 06/18] zsmalloc: keep max_object in size_class

2016-03-20 Thread Minchan Kim
Every zspage in a size_class has same number of max objects so we could move it to a size_class. Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index a0890e9003e2..8

[PATCH v2 12/18] zsmalloc: zs_compact refactoring

2016-03-20 Thread Minchan Kim
Currently, we rely on class->lock to prevent zspage destruction. It was okay until now because the critical section is short but with run-time migration, it could be long so class->lock is not a good apporach any more. So, this patch introduces [un]freeze_zspage functions which freeze allocated ob

[PATCH v2 18/18] zram: use __GFP_MOVABLE for memory allocation

2016-03-20 Thread Minchan Kim
Zsmalloc is ready for page migration so zram can use __GFP_MOVABLE from now on. I did test to see how it helps to make higher order pages. Test scenario is as follows. KVM guest, 1G memory, ext4 formated zram block device, for i in `seq 1 8`; do dd if=/dev/vda1 of=mnt/test$i.txt bs=128M

[PATCH v2 16/18] zsmalloc: use single linked list for page chain

2016-03-20 Thread Minchan Kim
For tail page migration, we shouldn't use page->lru which was used for page chaining because VM will use it for own purpose so that we need another field for chaining. For chaining, singly linked list is enough and page->index of tail page to point first object offset in the page could be replaced

[PATCH v2 04/18] zsmalloc: reordering function parameter

2016-03-20 Thread Minchan Kim
This patch cleans up function parameter ordering to order higher data structure first. Reviewed-by: Sergey Senozhatsky Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 50 ++ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/mm/zsmallo

[PATCH v2 07/18] zsmalloc: squeeze inuse into page->mapping

2016-03-20 Thread Minchan Kim
Currently, we store class:fullness into page->mapping. The number of class we can support is 255 and fullness is 4 so (8 + 2 = 10bit) is enough to represent them. Meanwhile, the bits we need to store in-use objects in zspage is that 11bit is enough. For example, If we assume that 64K PAGE_SIZE, cl

[PATCH v2 17/18] zsmalloc: migrate tail pages in zspage

2016-03-20 Thread Minchan Kim
This patch enables tail page migration of zspage. In this point, I tested zsmalloc regression with micro-benchmark which does zs_malloc/map/unmap/zs_free for all size class in every CPU(my system is 12) during 20 sec. It shows 1% regression which is really small when we consider the benefit of th

[PATCH v2 08/18] zsmalloc: squeeze freelist into page->mapping

2016-03-20 Thread Minchan Kim
Zsmalloc stores first free object's position into first_page->freelist in each zspage. If we change it with object index from first_page instead of location, we could squeeze it into page->mapping because the number of bit we need to store offset is at most 11bit. Signed-off-by: Minchan Kim ---

[PATCH v2 15/18] zsmalloc: migrate head page of zspage

2016-03-20 Thread Minchan Kim
This patch introduces run-time migration feature for zspage. To begin with, it supports only head page migration for easy review(later patches will support tail page migration). For migration, it supports three functions * zs_page_isolate It isolates a zspage which includes a subpage VM want to

[PATCH v2 14/18] mm/balloon: use general movable page feature into balloon

2016-03-20 Thread Minchan Kim
Now, VM has a feature to migrate non-lru movable pages so balloon doesn't need custom migration hooks in migrate.c and compact.c. Instead, this patch implements page->mapping ->{isolate|migrate|putback} functions. With that, we could remove hooks for ballooning in general migration functions and m

[PATCH v2 13/18] mm/compaction: support non-lru movable page migration

2016-03-20 Thread Minchan Kim
We have allowed migration for only LRU pages until now and it was enough to make high-order pages. But recently, embedded system(e.g., webOS, android) uses lots of non-movable pages(e.g., zram, GPU memory) so we have seen several reports about troubles of small high-order allocation. For fixing the

[PATCH v2 02/18] zsmalloc: use first_page rather than page

2016-03-20 Thread Minchan Kim
This patch cleans up function parameter "struct page". Many functions of zsmalloc expects that page paramter is "first_page" so use "first_page" rather than "page" for code readability. Reviewed-by: Sergey Senozhatsky Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 62 +++

[PATCH v2 00/18] Support non-lru page migration

2016-03-20 Thread Minchan Kim
Recently, I got many reports about perfermance degradation in embedded system(Android mobile phone, webOS TV and so on) and failed to fork easily. The problem was fragmentation caused by zram and GPU driver pages. Their pages cannot be migrated so compaction cannot work well, either so reclaimer e

[PATCH v2 11/18] zsmalloc: separate free_zspage from putback_zspage

2016-03-20 Thread Minchan Kim
Currently, putback_zspage does free zspage under class->lock if fullness become ZS_EMPTY but it makes trouble to implement locking scheme for new zspage migration. So, this patch is to separate free_zspage from putback_zspage and free zspage out of class->lock which is preparation for zspage migrat

[PATCH v2 03/18] zsmalloc: clean up many BUG_ON

2016-03-20 Thread Minchan Kim
There are many BUG_ON in zsmalloc.c which is not recommened so change them as alternatives. Normal rule is as follows: 1. avoid BUG_ON if possible. Instead, use VM_BUG_ON or VM_BUG_ON_PAGE 2. use VM_BUG_ON_PAGE if we need to see struct page's fields 3. use those assertion in primitive functions s

[PATCH v2 01/18] mm: use put_page to free page instead of putback_lru_page

2016-03-20 Thread Minchan Kim
Procedure of page migration is as follows: First of all, it should isolate a page from LRU and try to migrate the page. If it is successful, it releases the page for freeing. Otherwise, it should put the page back to LRU list. For LRU pages, we have used putback_lru_page for both freeing and putb

Re: [PATCH v2 3/3] Make core_pattern support namespace

2016-03-20 Thread Eric W. Biederman
Zhao Lei writes: > Currently, each container shared one copy of coredump setting > with the host system, if host system changed the setting, each > running containers will be affected. > > Moreover, it is not easy to let each container keeping their own > coredump setting. > > We can use some wor

[PATCH] firewire: nosy: Replace timeval with timespec64

2016-03-20 Thread Tina Ruchandani
'struct timeval' uses a 32 bit field for its 'seconds' value which will overflow in year 2038 and beyond. This patch replaces the use of timeval in nosy.c with timespec64 which doesn't suffer from y2038 issue. The code is correct as is - since it is only using the microseconds portion of timeval. H

Re: [PATCH 1/4] vfs: add file_dentry()

2016-03-20 Thread Al Viro
On Thu, Mar 17, 2016 at 10:02:00AM +0100, Miklos Szeredi wrote: > Add a new helper, file_dentry() [*], to get the filesystem's own dentry > from the file. This simply compares file_inode(file->f_path.dentry) to > file_inode(file) and if they are equal returns file->f_path.dentry (this is > the com

Re: [PATCH 1/4] vfs: add file_dentry()

2016-03-20 Thread Al Viro
On Mon, Mar 21, 2016 at 01:02:15AM -0400, Theodore Ts'o wrote: > I have this patch in the ext4.git tree, but I'd like to get an > Acked-by from Al before I send a pull request to Linus. > > Al? Any objections to my sending in this change via the ext4 tree? >

Re: [PATCH v11 3/9] arm64: add copy_to/from_user to kprobes blacklist

2016-03-20 Thread Pratyush Anand
Hi James, On 18/03/2016:06:12:20 PM, James Morse wrote: > Hi Pratyush, > > On 18/03/16 14:43, Pratyush Anand wrote: > > On 18/03/2016:02:02:49 PM, James Morse wrote: > >> In kernel/entry.S when entered from EL0 we test for TIF_SINGLESTEP in the > >> thread_info flags, and use disable_step_tsk/ena

[GIT PULL] MD for 4.6

2016-03-20 Thread Shaohua Li
Hi Linus, Could you please pull the MD update for 4.6? This update mainly fixes bugs. - A raid5 discard related fix from Jes - A MD multipath bio clone fix from Ming - raid1 error handling deadlock fix from Nate and corresponding raid10 fix from myself - A raid5 stripe batch fix from Neil - A pa

Re: [PATCH 1/4] vfs: add file_dentry()

2016-03-20 Thread Theodore Ts'o
On Thu, Mar 17, 2016 at 10:02:00AM +0100, Miklos Szeredi wrote: > From: Miklos Szeredi > > This series fixes bugs in nfs and ext4 due to 4bacc9c9234c ("overlayfs: Make > f_path always point to the overlay and f_inode to the underlay"). > > Regular files opened on overlayfs will result in the fil

Re: [PATCH v3] ARC: [dts] Introduce Timer bindings

2016-03-20 Thread Vineet Gupta
On Sunday 20 March 2016 06:12 AM, Rob Herring wrote: > On Fri, Mar 18, 2016 at 10:56:29AM +0530, Vineet Gupta wrote: >> ARC Timers have historically been probed directly. >> As precursor to start probing Timers thru DT introduce these bindings >> Note that to keep series bisectable, these bindings

[GIT PULL] ARC changes for 4.6-rc1

2016-03-20 Thread Vineet Gupta
Hi Linus, ARC changes for 4.6-rc1. Nothing too exciting here although diffstat hows more files touched than usual due to some sweeping defconfig / DT updates. Please pull ! Thx, -Vineet -> The following changes since commit fc77dbd34c5c99bce46d40a2491937c3bcbd10af: Linux 4.5-rc6 (

Re: Suspicious error for CMA stress test

2016-03-20 Thread Joonsoo Kim
On Fri, Mar 18, 2016 at 02:32:35PM +0100, Lucas Stach wrote: > Hi Vlastimil, Joonsoo, > > Am Freitag, den 18.03.2016, 00:52 +0900 schrieb Joonsoo Kim: > > 2016-03-18 0:43 GMT+09:00 Vlastimil Babka : > > > On 03/17/2016 10:24 AM, Hanjun Guo wrote: > > >> > > >> On 2016/3/17 14:54, Joonsoo Kim wrote

RE: [PATCH] usb: xhci: Fix incomplete PM resume operation due to XHCI commmand timeout

2016-03-20 Thread Rajesh Bhagat
> -Original Message- > From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: Friday, March 18, 2016 7:51 PM > To: Rajesh Bhagat > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > gre...@linuxfoundation.org; mathias.ny...@intel.com; Sriram Dash > > Subject: Re: [PATCH

Re: [PATCHv4 08/25] thp: support file pages in zap_huge_pmd()

2016-03-20 Thread Aneesh Kumar K.V
"Kirill A. Shutemov" writes: > [ text/plain ] > On Fri, Mar 18, 2016 at 07:23:41PM +0530, Aneesh Kumar K.V wrote: >> "Kirill A. Shutemov" writes: >> >> > [ text/plain ] >> > split_huge_pmd() for file mappings (and DAX too) is implemented by just >> > clearing pmd entry as we can re-fill this ar

RE: [PATCH] usb: xhci: Fix incomplete PM resume operation due to XHCI commmand timeout

2016-03-20 Thread Rajesh Bhagat
> -Original Message- > From: Mathias Nyman [mailto:mathias.ny...@linux.intel.com] > Sent: Friday, March 18, 2016 4:51 PM > To: Rajesh Bhagat ; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: gre...@linuxfoundation.org; mathias.ny...@intel.com; Sriram Dash > > Subject: Re

Re: [PATCH] sparc: Convert naked unsigned uses to unsigned int

2016-03-20 Thread David Miller
From: Joe Perches Date: Thu, 10 Mar 2016 15:21:43 -0800 > Use the more normal kernel definition/declaration style. > > Done via: > > $ git ls-files arch/sparc | \ > xargs ./scripts/checkpatch.pl -f --fix-inplace --types=unspecified_int > > Signed-off-by: Joe Perches Applied.

linux-next: Tree for Mar 21

2016-03-20 Thread Stephen Rothwell
Hi all, Please do not add any v4.7 related material to your linux-next included trees until after v4.6-rc1 is released. Changes since 20160318: The ext4 tree gained a conflict against Linus' tree. The drm tree still had its build failure for which I applied a fix patch. Non-merge commits (rela

[PATCH v3 07/23] ncr5380: Remove BOARD_REQUIRES_NO_DELAY macro

2016-03-20 Thread Finn Thain
The io_recovery_delay macro is intended to insert a microsecond delay between the chip register accesses that begin a DMA operation. This is reportedly needed for some ISA boards. Reverse the sense of the macro test so that in the common case, where no delay is required, drivers need not define th

[PATCH v3 10/23] ncr5380: Merge DMA implementation from atari_NCR5380 core driver

2016-03-20 Thread Finn Thain
Adopt the DMA implementation from atari_NCR5380.c. This means that atari_scsi and sun3_scsi can make use of the NCR5380.c core driver and the atari_NCR5380.c driver fork can be made redundant. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz --- drivers/scsi/N

[PATCH v3 09/23] ncr5380: Adopt uniform DMA setup convention

2016-03-20 Thread Finn Thain
Standardize the DMA setup hooks so that the DMA implementation in atari_NCR5380.c can be reconciled with pseudo DMA implementation in NCR5380.c. Calls to NCR5380_dma_recv_setup() and NCR5380_dma_send_setup() return a negative value on failure, zero on PDMA transfer success and a positive byte coun

[PATCH v3 14/23] ncr5380: Reduce max_lun limit

2016-03-20 Thread Finn Thain
The driver has a limit of eight LUs because of the byte-sized bitfield that is used for busy flags. That means the maximum LUN is 7. The default is 8. Signed-off-by: Finn Thain Tested-by: Michael Schmitz --- Changed since v1: - Reduce shost->max_lun limit instead of adding 'MAX_LUN' limit. --

[PATCH v3 03/23] ncr5380: Remove REAL_DMA and REAL_DMA_POLL macros

2016-03-20 Thread Finn Thain
For the NCR5380.c core driver, these macros are never used. If REAL_DMA were to be defined, compilation would fail. For the atari_NCR5380.c core driver, REAL_DMA is always defined. Hence these macros are pointless. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmi

[PATCH v3 12/23] sun3_scsi: Adopt NCR5380.c core driver

2016-03-20 Thread Finn Thain
Add support for the custom Sun 3 DMA logic to the NCR5380.c core driver. This code is copied from atari_NCR5380.c. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz --- The Sun 3 DMA code is still configured by macros. I have simplified things slightly but I ha

[PATCH v3 11/23] atari_scsi: Adopt NCR5380.c core driver

2016-03-20 Thread Finn Thain
Add support for the Atari ST DMA chip to the NCR5380.c core driver. This code is copied from atari_NCR5380.c. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz --- drivers/scsi/NCR5380.c| 32 drivers/scsi/atari_scsi.c |

[PATCH v3 01/23] g_ncr5380: Remove CONFIG_SCSI_GENERIC_NCR53C400

2016-03-20 Thread Finn Thain
This change brings a number of improvements: fewer macros, better test coverage, simpler code and sane Kconfig options. The downside is a small chance of incompatibility (which seems unavoidable). CONFIG_SCSI_GENERIC_NCR53C400 exists to enable or inhibit pseudo DMA transfers when the driver is use

[PATCH v3 08/23] ncr5380: Use DMA hooks for PDMA

2016-03-20 Thread Finn Thain
Those wrapper drivers which use DMA define the REAL_DMA macro and those which use pseudo DMA define PSEUDO_DMA. These macros need to be removed for a number of reasons, not least of which is to have drivers share more code. Redefine the PDMA send and receive hooks as DMA setup hooks, so that the D

[PATCH v3 18/23] ncr5380: Remove DONT_USE_INTR and AUTOPROBE_IRQ macros

2016-03-20 Thread Finn Thain
Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz --- drivers/scsi/NCR5380.c | 12 +--- drivers/scsi/NCR5380.h |4 drivers/scsi/arm/oak.c |2 -- drivers/scsi/dmx3191d.c |2 -- drivers/scsi/dtc.c | 12 +++- driver

[PATCH v3 20/23] atari_scsi: Set a reasonable default for cmd_per_lun

2016-03-20 Thread Finn Thain
This setting does not need to be conditional on Atari ST or TT. Signed-off-by: Finn Thain Tested-by: Michael Schmitz --- Changed since v1: - Set the default cmd_per_lun to 4 based on test results. Changed since v2: - Revert the default cmd_per_lun to 2, like in the v1 patch, because a uniform

[PATCH v3 13/23] ncr5380: Remove disused atari_NCR5380.c core driver

2016-03-20 Thread Finn Thain
Now that atari_scsi and sun3_scsi have been converted to use the NCR5380.c core driver, remove atari_NCR5380.c. Also remove the last vestiges of its Tagged Command Queueing implementation from the wrapper drivers. The TCQ support in atari_NCR5380.c is abandoned by this patch. It is not merged into

[PATCH v3 17/23] ncr5380: Remove remaining register storage qualifiers

2016-03-20 Thread Finn Thain
Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz --- drivers/scsi/NCR5380.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: linux/drivers/scsi/NCR5380.c === --- linux.orig/dr

[PATCH v3 15/23] dmx3191d: Drop max_sectors limit

2016-03-20 Thread Finn Thain
The dmx3191d driver is not capable of DMA or PDMA so all transfers use PIO. Now that large slow PIO transfers periodically stop and call cond_resched(), the max_sectors limit can go away. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke --- drivers/scsi/dmx3191d.c |1 - 1 file change

[PATCH v3 16/23] ncr5380: Fix register decoding for debugging

2016-03-20 Thread Finn Thain
Decode all bits in the chip registers. They are all useful at times. Fix printk severity so that this output can be suppressed along with the other debugging output. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Michael Schmitz --- drivers/scsi/NCR5380.c | 42 +++

[PATCH v3 22/23] mac_scsi: Fix pseudo DMA implementation

2016-03-20 Thread Finn Thain
Fix various issues: Comments about bus errors are incorrect. The PDMA asm must return the size of the memory access that faulted so the transfer count can be adjusted accordingly. A phase change may cause a bus error but should not be treated as failure. A bus error does not always imply a phase ch

[PATCH v3 23/23] ncr5380: Call complete_cmd() for disconnected commands on bus reset

2016-03-20 Thread Finn Thain
I'm told that some targets are liable to disconnect a REQUEST SENSE command. Theoretically this would cause a command undergoing autosense to be moved onto the disconnected list. The bus reset handler must call complete_cmd() for these commands, otherwise the hostdata->sensing pointer will not get

[PATCH v3 19/23] ncr5380: Update usage documentation

2016-03-20 Thread Finn Thain
Update kernel parameter documentation for atari_scsi, mac_scsi and g_NCR5380 drivers. Remove duplication. Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke --- Documentation/scsi/g_NCR5380.txt | 17 ++- Documentation/scsi/scsi-parameters.txt | 11 +++--- drivers/

[PATCH v3 02/23] ncr5380: Remove FLAG_NO_PSEUDO_DMA where possible

2016-03-20 Thread Finn Thain
Drivers that define PSEUDO_DMA also define NCR5380_dma_xfer_len. The core driver must call NCR5380_dma_xfer_len which means FLAG_NO_PSEUDO_DMA can be eradicated from the core driver. dmx3191d doesn't define PSEUDO_DMA and has no use for FLAG_NO_PSEUDO_DMA, so remove it there also. Signed-off-by:

[PATCH v3 06/23] ncr5380: Remove PSEUDO_DMA macro

2016-03-20 Thread Finn Thain
For those wrapper drivers which only implement Programmed IO, have NCR5380_dma_xfer_len() evaluate to zero. That allows PDMA to be easily disabled at run-time and so the PSEUDO_DMA macro is no longer needed. Also remove the spin counters used for debugging pseudo DMA drivers. Signed-off-by: Finn

[PATCH v3 21/23] atari_scsi: Allow can_queue to be increased for Falcon

2016-03-20 Thread Finn Thain
The benefit of limiting can_queue to 1 is that atari_scsi shares the ST DMA chip more fairly with other drivers (e.g. falcon-ide). Unfortunately, this can limit SCSI bus utilization. On systems without IDE, atari_scsi should issue SCSI commands whenever it can arbitrate for the bus. Make that poss

[PATCH v3 04/23] atari_NCR5380: Remove DMA_MIN_SIZE macro

2016-03-20 Thread Finn Thain
Only the atari_scsi and sun3_scsi drivers define DMA_MIN_SIZE. Both drivers also define NCR5380_dma_xfer_len, which means DMA_MIN_SIZE can be removed from the core driver. This removes another discrepancy between the two core drivers. Signed-off-by: Finn Thain Tested-by: Michael Schmitz --- C

[PATCH v3 00/23] ncr5380: Eliminate macros, reduce code duplication, fix bugs etc

2016-03-20 Thread Finn Thain
This patch series has more macro elimination and some tweaks to the DMA hooks so that all the wrapper drivers can share the same core DMA algorithm. This resolves the major discrepancies between the two core drivers, which relate to code conditional on the REAL_DMA and PSEUDO_DMA macros. After al

[PATCH v3 05/23] ncr5380: Disable the DMA errata workaround flag by default

2016-03-20 Thread Finn Thain
The only chip that needs the workarounds enabled is an early NMOS device. That means that the common case is to disable them. Unfortunately the sense of the flag is such that it has to be set for the common case. Rename the flag so that zero can be used to mean "no errata workarounds needed". Thi

Re: [PATCH 0/2] ARM: uniphier: UniPhier updates for Linux 4.6-rc1 (2nd round)

2016-03-20 Thread Masahiro Yamada
Hi Arnd, 2016-03-19 8:49 GMT+09:00 Masahiro Yamada : > Hi Arnd, > > 2016-03-19 1:49 GMT+09:00 Arnd Bergmann : >> On Tuesday 15 March 2016 11:01:00 Masahiro Yamada wrote: >>> Olof, Arnd, >>> >>> >>> I sent my patches around -rc4 and >>> took action soon as requested. >>> >>> But, my series is stil

[git pull] drm pull for 4.6-rc1

2016-03-20 Thread Dave Airlie
Hi Linus, This is the main drm pull request for 4.6 kernel. The highlights are below, and there are a few merge conflicts, but I think they should all be simple enough for you to take care off. At least at the moment they are just the writecombine interface changes. Overall the coolest thing her

Re: [PATCH v3] staging: netlogic: Fixed alignment of parentheseis checkpatch warning

2016-03-20 Thread Valdis . Kletnieks
On Sat, 19 Mar 2016 19:22:09 -0700, Joe Perches said: > On Sun, 2016-03-20 at 07:48 +0530, Parth Sane wrote: > > Hi, > > Thanks for pointing out that the changes have been done. Nevertheless > > this was a good learning exercise. How do I check which changes have > > already been done? > > Use this

Re: [PATCH 2/3] x86/topology: Fix AMD core count

2016-03-20 Thread Huang Rui
On Mon, Mar 21, 2016 at 11:07:44AM +0800, Huang Rui wrote: > On Fri, Mar 18, 2016 at 05:41:01PM +0100, Borislav Petkov wrote: > > On Fri, Mar 18, 2016 at 04:03:47PM +0100, Peter Zijlstra wrote: > > > It turns out AMD gets x86_max_cores wrong when there are compute > > > units. > > > > > > The issu

Re: [PATCH 2/3] x86/topology: Fix AMD core count

2016-03-20 Thread Huang Rui
On Fri, Mar 18, 2016 at 05:41:01PM +0100, Borislav Petkov wrote: > On Fri, Mar 18, 2016 at 04:03:47PM +0100, Peter Zijlstra wrote: > > It turns out AMD gets x86_max_cores wrong when there are compute > > units. > > > > The issue is that Linux assumes: > > > > nr_logical_cpus = nr_cores * nr_s

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

2016-03-20 Thread beanhuo
Hi, Yunhai You mean that EVCR.bit7 cannot clear(enable quad mode) if not write SR.bit7 to 0? They don't have any connection each other. > -Original Message- > From: Yunhui Cui [mailto:yunhui@nxp.com] > Sent: Friday, March 18, 2016 6:09 PM > To: Bean Huo 霍斌斌 (beanhuo); Yunhui Cui > Cc:

Re: [LKP] [lkp] [futex] 65d8fc777f: +25.6% will-it-scale.per_process_ops

2016-03-20 Thread Huang, Ying
Hi, Thomas, Thanks a lot for your valuable input! Thomas Gleixner writes: > On Fri, 18 Mar 2016, Huang, Ying wrote: >> Usually we will put most important change we think in the subject of the >> mail, for this email, it is, >> >> +25.6% will-it-scale.per_process_ops > > That is confusing on it

[PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup

2016-03-20 Thread Javier Martinez Canillas
Commit 6261b06de565 ("regulator: Defer lookup of supply to regulator_get") moved the regulator supplies lookup logic from the regulators registration to the regulators get time. Unfortunately, that changed the behavior of the regulator core since now a parent supply with a child regulator marked a

[PATCH] regulator: Remove unneded check for regulator supply

2016-03-20 Thread Javier Martinez Canillas
The regulator_resolve_supply() function checks if a supply has been associated with a regulator to avoid enabling it if that is not the case. But the supply was already looked up with regulator_resolve_supply() and set with set_supply() before the check and both return on error. So the fact that

RE: [PATCH v5 3/5] ARM: at91: pm: configure PMC fast startup signals

2016-03-20 Thread Yang, Wenyou
Hi Alexandre, > -Original Message- > From: Alexandre Belloni [mailto:alexandre.bell...@free-electrons.com] > Sent: 2016年3月18日 1:15 > To: Yang, Wenyou > Cc: Ferre, Nicolas ; Jean-Christophe Plagniol- > Villard ; Russell King ; linux- > ker...@vger.kernel.org; devicet...@vger.kernel.org; li

[PATCH 1/1] x86/perf/intel/uncore: remove ev_sel_ext bit support for PCU

2016-03-20 Thread kan . liang
From: Kan Liang The ev_sel_ext in PCU_MSR_PMON_CTL is locked. So there could be #GP if writing that bit to 1. Also there is no public events which use the bit. This patch removes ev_sel_ext bit support for PCU. Signed-off-by: Kan Liang --- arch/x86/events/intel/uncore_snbep.c | 7 ++- 1 fi

Re: [GIT PULL] Protection Keys (pkeys) support

2016-03-20 Thread Linus Torvalds
So I finally got around to this one and the objtool pull request, and note that there's a conflict in the arch/x86/Kconfig file. And I'm not sending this email because the conflict would have been hard to resolve - it was completely trivial. But the conflict does show that once again people are st

[GIT PULL] xfs: updates for 4.6-rc1

2016-03-20 Thread Dave Chinner
Hi Linus, Can you please pull the XFS update from the location below? There's quite a lot in this request, and there's some cross-over with ext4, dax and quota code due to the nature of the changes being made. There are conflicts with the ext4 code that has already been merged this cycle. Ted did

Re: [PATCH] Revert "arm64: Increase the max granular size"

2016-03-20 Thread Ganesh Mahendran
Hello, Tirumalesh: 2016-03-19 5:05 GMT+08:00 Chalamarla, Tirumalesh : > > > > > > On 3/16/16, 2:32 AM, "linux-arm-kernel on behalf of Ganesh Mahendran" > opensource.gan...@gmail.com> wrote: > >>Reverts commit 97303480753e ("arm64: Increase the max granular size"). >> >>The commit 97303480753e ("

RE: [PATCH v2 0/4] ARM64:SoC add a new platform, LG Electronics's lg1k

2016-03-20 Thread Chanho Min
> Subject: [PATCH v2 0/4] ARM64:SoC add a new platform, LG Electronics's lg1k > > This is an initial series for supporting LG Electronics's lg1k SoCs, based on > ARM Cortex-A53, mainly used for digital TVs. > > Chanho Min (4): > arm64: add Kconfig entry for LG1K SoC family > arm64: defconfig:

Re: Nokia N900 - audio TPA6130A2 problems

2016-03-20 Thread Sebastian Reichel
Hi, On Mon, Mar 21, 2016 at 01:04:18AM +0100, Sebastian Reichel wrote: > On Sun, Mar 20, 2016 at 09:43:11PM +0200, Ivaylo Dimitrov wrote: > > On 20.03.2016 07:17, Sebastian Reichel wrote: > > >On Sat, Mar 19, 2016 at 10:49:57AM +0200, Ivaylo Dimitrov wrote: > > >>On 18.03.2016 17:04, Sebastian Rei

Re: [RFC][PATCH v5 1/2] printk: Make printk() completely async

2016-03-20 Thread Byungchul Park
On Mon, Mar 21, 2016 at 09:43:47AM +0900, Sergey Senozhatsky wrote: > On (03/21/16 09:06), Byungchul Park wrote: > > On Sun, Mar 20, 2016 at 11:13:10PM +0900, Sergey Senozhatsky wrote: > [..] > > > + if (!sync_print) { > > > + if (in_sched) { > > > + /* > > > +

Re: [RFC][PATCH v5 1/2] printk: Make printk() completely async

2016-03-20 Thread Sergey Senozhatsky
On (03/21/16 09:06), Byungchul Park wrote: > On Sun, Mar 20, 2016 at 11:13:10PM +0900, Sergey Senozhatsky wrote: [..] > > + if (!sync_print) { > > + if (in_sched) { > > + /* > > +* @in_sched messages may come too early, when we don't > > +

linux-next: manual merge of the ext4 tree with Linus' tree

2016-03-20 Thread Stephen Rothwell
Hi Theodore, Today's linux-next merge of the ext4 tree got a conflict in: fs/overlayfs/super.c between commit: b5891cfab08f ("ovl: fix working on distributed fs as lower layer") from Linus' tree and commit: a7f7fb45f728 ("vfs: add file_dentry()") from the ext4 tree. I fixed it up (see

Re: [RFC][PATCH v5 1/2] printk: Make printk() completely async

2016-03-20 Thread Byungchul Park
On Sun, Mar 20, 2016 at 11:13:10PM +0900, Sergey Senozhatsky wrote: > @@ -1748,13 +1872,42 @@ asmlinkage int vprintk_emit(int facility, int level, >dict, dictlen, text, text_len); > } > > + /* > + * By default we print message to cons

[PATCH] drivers/rtc/rtc-mcp795.c: add devicetree support

2016-03-20 Thread Emil Bartczak
Add device tree support to the rtc-mcp795 driver. Signed-off-by: Emil Bartczak --- Documentation/devicetree/bindings/rtc/maxim,mcp795.txt | 11 +++ drivers/rtc/rtc-mcp795.c | 10 ++ 2 files changed, 21 insertions(+) create mode 100644 Documentation/

Re: Nokia N900 - audio TPA6130A2 problems

2016-03-20 Thread Sebastian Reichel
Hi, On Sun, Mar 20, 2016 at 09:43:11PM +0200, Ivaylo Dimitrov wrote: > On 20.03.2016 07:17, Sebastian Reichel wrote: > >On Sat, Mar 19, 2016 at 10:49:57AM +0200, Ivaylo Dimitrov wrote: > >>On 18.03.2016 17:04, Sebastian Reichel wrote: > >>>On Fri, Mar 18, 2016 at 03:45:26PM +0200, Ivaylo Dimitrov

Re: [PATCH 70/71] mm: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-20 Thread Guenter Roeck
On Sun, Mar 20, 2016 at 09:41:17PM +0300, Kirill A. Shutemov wrote: > PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} macros were introduced *long* time ago > with promise that one day it will be possible to implement page cache with > bigger chunks than PAGE_SIZE. > > This promise never materialized. And unli

[PATCH] perf/x86/intel/rapl: Add missing Broadwell models

2016-03-20 Thread Srinivas Pandruvada
Added Broadwell-H and Broadwell-Server. Signed-off-by: Srinivas Pandruvada --- arch/x86/events/intel/rapl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index 69904e7..6196f41 100644 --- a/arch/x86/events/intel/rapl.c +++ b/arc

Re: [PATCH 69/71] vfs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-20 Thread Matthew Wilcox
Spotted an oops: - length is PAGE_CACHE_SIZE, then the private data should be released, + length is PAG__SIZE, then the private data should be released,

Re: [PATCH 0/5] staging: rtl8712: Fixed Multiple FSF address checkpatch warnings

2016-03-20 Thread Joshua Clayton
On Sunday, March 20, 2016 11:12:32 PM Parth Sane wrote: > > Fixed Multiple FSF address checkpatch warnings to conform to kernel coding > > style. > > > > Parth Sane (5): > > staging: rtl8712: Fixed FSF address warning in basic_types.h > > staging: rtl8712: Fixed FSF address warning in drv_types

[PATCH v3 2/2] powercap: intel_rapl: PSys support

2016-03-20 Thread Srinivas Pandruvada
Skylake processor supports a new set of RAPL registers for controlling entire SoC instead of just CPU package. This is useful for thermal and power control when source of power/thermal is not just CPU/GPU. This change adds a new platform domain (AKA PSys) to the current power capping Intel RAPL dri

[PATCH v3 1/2] perf/x86/intel/rapl: support Skylake RAPL domains

2016-03-20 Thread Srinivas Pandruvada
Added Skylake support for RAPL domains. In addition to RAPL domains in Broadwell clients, it has support for platform domain (aka PSys). Also fixed error in comment for gpu counter, which previously was dram counter. Signed-off-by: Srinivas Pandruvada --- arch/x86/events/intel/rapl.c | 50 +

[PATCH v3 0/2][Resend] Skylake PSys support

2016-03-20 Thread Srinivas Pandruvada
Sorry, I had typo in Mingo's email address. So resending. v3: As suggested by tglx adding support first in perf-rapl. Perf RAPL was missing RAPL support for Skylake Added support including Psys v2: Moved PSYS MSR defines to intel_rapl.c as suggested by Boris Srinivas Pandruvada (2): perf/x86/i

[PATCH v3 2/2] powercap: intel_rapl: PSys support

2016-03-20 Thread Srinivas Pandruvada
Skylake processor supports a new set of RAPL registers for controlling entire SoC instead of just CPU package. This is useful for thermal and power control when source of power/thermal is not just CPU/GPU. This change adds a new platform domain (AKA PSys) to the current power capping Intel RAPL dri

[PATCH v3 0/2] Skylake PSys support

2016-03-20 Thread Srinivas Pandruvada
v3: As suggested by tglx adding support first in perf-rapl. Perf RAPL was missing RAPL support for Skylake Added support including Psys v2: Moved PSYS MSR defines to intel_rapl.c as suggested by Boris Srinivas Pandruvada (2): perf/x86/intel/rapl: support Skylake RAPL domains powercap: intel_r

[PATCH v3 1/2] perf/x86/intel/rapl: support Skylake RAPL domains

2016-03-20 Thread Srinivas Pandruvada
Added Skylake support for RAPL domains. In addition to RAPL domains in Broadwell clients, it has support for platform domain (aka PSys). Also fixed error in comment for gpu counter, which previously was dram counter. Signed-off-by: Srinivas Pandruvada --- arch/x86/events/intel/rapl.c | 50 +

Re: [PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-20 Thread Guenter Roeck
On 03/20/2016 03:43 AM, Geert Uytterhoeven wrote: If CONFIG_PM=n: drivers/net/usb/lan78xx.c: In function ‘lan78xx_get_stats64’: drivers/net/usb/lan78xx.c:3274: error: ‘struct dev_pm_info’ has no member named ‘runtime_auto’ If PM is disabled, the runtime_auto flag is not available, bu

[GIT PULL] f2fs updates for v4.6

2016-03-20 Thread Jaegeuk Kim
Hi Linus, I made another pull request which removes the previous wrong commits and adds a single commit to migrate the f2fs crypto into fs/crypto. Could you please consider to pull this? Thanks, The following changes since commit 4de8ebeff8ddefaceeb7fc6a9b1a514fc9624509: Merge tag 'trace-fix

[PATCH] Staging: wlan-ng: removed "goto " instructions where this is not necessary.

2016-03-20 Thread Claudiu Beznea
This patch removes "goto " instructions which do only a return. In this way, aditional instructions were removed. Signed-off-by: Claudiu Beznea --- drivers/staging/wlan-ng/cfg80211.c | 112 + 1 file changed, 39 insertions(+), 73 deletions(-) diff --git a/driv

[PATCH] PKCS#7: pkcs7_validate_trust(): initialize the _trusted output argument

2016-03-20 Thread Nicolai Stange
Despite what the DocBook comment to pkcs7_validate_trust() says, the *_trusted argument is never set to false. pkcs7_validate_trust() only positively sets *_trusted upon encountering a trusted PKCS#7 SignedInfo block. This is quite unfortunate since its callers, system_verify_data() for example,

Re: [PATCH 01/71] arc: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-20 Thread Hugh Dickins
On Sun, 20 Mar 2016, Linus Torvalds wrote: > On Sun, Mar 20, 2016 at 12:34 PM, Kirill A. Shutemov > wrote: > > > > Hm. Okay. Re-split this way would take some time. I'll post updated > > patchset tomorrow. > > Oh, I was assuming this was automated with coccinelle or at least some > simple shell s

  1   2   3   4   5   >