[PATCH v8] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2016-03-10 Thread Jiancheng Xue
Add hisilicon spi-nor flash controller driver Signed-off-by: Binquan Peng Signed-off-by: Jiancheng Xue Acked-by: Rob Herring Reviewed-by: Ezequiel Garcia --- change log v8: Fixed issues pointed by Ezequiel Garcia and Brian Norris. Moved dts binding file to mtd directory. Changed the compatible

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-10 Thread Michal Hocko
On Thu 10-03-16 15:50:13, Johannes Weiner wrote: > When setting memory.high below usage, nothing happens until the next > charge comes along, and then it will only reclaim its own charge and > not the now potentially huge excess of the new memory.high. This can > cause groups to stay in excess of t

Re: [PATCH 1/2] [PATCH 1/2] Introduce new macros min_lt and max_lt for comparing with larger type

2016-03-10 Thread Dave Young
Hi, Jianyu On 03/11/16 at 03:19pm, Jianyu Zhan wrote: > On Fri, Mar 11, 2016 at 2:21 PM, wrote: > > A useful use case for min_t and max_t is comparing two values with larger > > type. For example comparing an u64 and an u32, usually we do not want to > > truncate the u64, so we need use min_t or

[patch] drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()

2016-03-10 Thread Dan Carpenter
At the end of the function we expect "status" to be zero, but it's either -EINVAL or unitialized. Fixes: 788bf83db301 ('drm/amdkfd: Add wave control operation to debugger') Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c b/drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.

[PATCH 5/5] hwrng: exynos - Disable runtime PM on driver unbind

2016-03-10 Thread Krzysztof Kozlowski
Driver enabled runtime PM but did not revert this on removal. Re-binding of a device triggered warning: exynos-rng 10830400.rng: Unbalanced pm_runtime_enable! Fixes: b329669ea0b5 ("hwrng: exynos - Add support for Exynos random number generator") Signed-off-by: Krzysztof Kozlowski --- dr

[PATCH 2/5] hwrng: exynos - Runtime suspend device after init

2016-03-10 Thread Krzysztof Kozlowski
The driver uses pm_runtime_put_noidle() after initialization so the device might remain in active state if the core does not read from it (the read callback contains regular runtime put). The put_noidle() was chosen probably to avoid unneeded suspend and resume cycle after the initialization. Howe

[PATCH 4/5] hwrng: exynos - Disable runtime PM on probe failure

2016-03-10 Thread Krzysztof Kozlowski
Add proper error path (for disabling runtime PM) when registering of hwrng fails. Fixes: b329669ea0b5 ("hwrng: exynos - Add support for Exynos random number generator") Signed-off-by: Krzysztof Kozlowski --- drivers/char/hw_random/exynos-rng.c | 7 ++- 1 file changed, 6 insertions(+), 1 del

[PATCH 1/5] hwrng: exynos - Hide PM functions with __maybe_unused

2016-03-10 Thread Krzysztof Kozlowski
Replace ifdef with __maybe_unused to silence compiler warning on when SUSPEND=n and PM=y: drivers/char/hw_random/exynos-rng.c:166:12: warning: ‘exynos_rng_suspend’ defined but not used [-Wunused-function] static int exynos_rng_suspend(struct device *dev) ^ drivers/char/hw_random/exyn

[PATCH 3/5] hwrng: exynos - Fix unbalanced PM runtime put on timeout error path

2016-03-10 Thread Krzysztof Kozlowski
In case of timeout during read operation, the exit path lacked PM runtime put. This could lead to unbalanced runtime PM usage counter thus leaving the device in an active state. Fixes: d7fd6075a205 ("hwrng: exynos - Add timeout for waiting on init done") Cc: # v4.4+ Signed-off-by: Krzysztof Kozlo

Re: [PATCH 2/2] [PATCH 2/2] proc-vmcore: wrong data type casting fix

2016-03-10 Thread Dave Young
Hi, Minfei On 03/11/16 at 03:19pm, Minfei Huang wrote: > On 03/11/16 at 02:21pm, dyo...@redhat.com wrote: > > @@ -231,7 +231,8 @@ static ssize_t __read_vmcore(char *buffe > > > > list_for_each_entry(m, &vmcore_list, list) { > > if (*fpos < m->offset + m->size) { > > -

Re: [PATCH] dmaengine: pl330: Fix some race conditions in residue calculation

2016-03-10 Thread Vinod Koul
On Tue, Mar 08, 2016 at 03:50:41PM +, Jon Medhurst (Tixy) wrote: > > The reside is requested for "a descriptor". For example if you have prepared > > two descriptors A and B and submitted them, then you can request status and > > reside for A and you need to calculate that for A only and not t

КЛИЕНТСКИЕ БАЗЫ! Тел\Viber\Whatsapp: +79133913837 Email: mgordee...@gmail.com Skype: prodawez389

2016-03-10 Thread linux-kernel@vger.kernel.org
КЛИЕНТСКИЕ БАЗЫ! Соберем для Вас по интернет базу данных потенциальных клиентов для Вашего Бизнеса! Много! Быстро! Недорого! Узнайте об этом подробнее по Тел: +79133913837 Viber: +79133913837 Whatsapp: +79133913837 Skype: prodawez389 Email: mgordee...@gmail.com

Re: [PATCH] Documentation: Howto: Fixed subtitles style

2016-03-10 Thread Philippe Loctaux
On Thu, Mar 10, 2016 at 09:55:25PM -0700, Jonathan Corbet wrote: > Not on kernel.org. From MAINTAINERS: > > T: git git://git.lwn.net/linux.git docs-next Allright thanks :) -- Philippe Loctaux

[PATCH v1 08/19] zsmalloc: remove unused pool param in obj_free

2016-03-10 Thread Minchan Kim
Let's remove unused pool param in obj_free 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 156edf909046..b4fb11831acb 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1435,8 +1435,7 @@ u

[PATCH v1 15/19] zsmalloc: zs_compact refactoring

2016-03-10 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 v1 12/19] zsmalloc: move struct zs_meta from mapping to freelist

2016-03-10 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 v1 04/19] mm/balloon: use general movable page feature into balloon

2016-03-10 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 v1 07/19] zsmalloc: reordering function parameter

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

[PATCH v1 16/19] zsmalloc: migrate head page of zspage

2016-03-10 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 v1 14/19] zsmalloc: separate free_zspage from putback_zspage

2016-03-10 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 v1 17/19] zsmalloc: use single linked list for page chain

2016-03-10 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 v1 18/19] zsmalloc: migrate tail pages in zspage

2016-03-10 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 v1 10/19] zsmalloc: squeeze inuse into page->mapping

2016-03-10 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 v1 09/19] zsmalloc: keep max_object in size_class

2016-03-10 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 | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index b4fb11831acb..ca66

[PATCH v1 13/19] zsmalloc: factor page chain functionality out

2016-03-10 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 v1 11/19] zsmalloc: squeeze freelist into page->mapping

2016-03-10 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 v1 02/19] mm/compaction: support non-lru movable page migration

2016-03-10 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 v1 03/19] fs/anon_inodes: new interface to create new inode

2016-03-10 Thread Minchan Kim
From: Gioh Kim The anon_inodes has already complete interfaces to create manage many anonymous inodes but don't have interface to get new inode. Other sub-modules can create anonymous inode without creating and mounting it's own pseudo filesystem. Acked-by: Rafael Aquini Signed-off-by: Gioh Kim

[PATCH v1 06/19] zsmalloc: clean up many BUG_ON

2016-03-10 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 v1 01/19] mm: use put_page to free page instead of putback_lru_page

2016-03-10 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] android: lmk: add swap pte pmd in tasksize

2016-03-10 Thread yalin wang
> On Mar 11, 2016, at 15:23, Lu Bing wrote: > > From: l00215322 > > Many android devices have zram,so we should add "MM_SWAPENTS" in tasksize. > Refer oom_kill.c,we add pte&pmd also. > > Reviewed-by: Chen Feng > Reviewed-by: Fu Jun > Reviewed-by: Xu YiPing > Reviewed-by: Yu DongBin > Sign

[PATCH v1 19/19] zram: use __GFP_MOVABLE for memory allocation

2016-03-10 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 v1 05/19] zsmalloc: use first_page rather than page

2016-03-10 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. Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 62 ++-

[PATCH v1 00/19] Support non-lru page migration

2016-03-10 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

RE: [f2fs-dev] [PATCH 0/8] some cleanup of inline flag checking

2016-03-10 Thread Chao Yu
Hi Shawn, > -Original Message- > From: Shawn Lin [mailto:shawn@kernel-upstream.org] > Sent: Friday, March 11, 2016 2:34 PM > To: Chao Yu; 'Shawn Lin'; 'Jaegeuk Kim' > Cc: shawn@kernel-upstream.org; linux-kernel@vger.kernel.org; > linux-f2fs-de...@lists.sourceforge.net > Subject: Re

[PATCH] android: lmk: add swap pte pmd in tasksize

2016-03-10 Thread Lu Bing
From: l00215322 Many android devices have zram,so we should add "MM_SWAPENTS" in tasksize. Refer oom_kill.c,we add pte&pmd also. Reviewed-by: Chen Feng Reviewed-by: Fu Jun Reviewed-by: Xu YiPing Reviewed-by: Yu DongBin Signed-off-by: Lu Bing --- drivers/staging/android/lowmemorykiller.c |

Re: [PATCH 1/2] [PATCH 1/2] Introduce new macros min_lt and max_lt for comparing with larger type

2016-03-10 Thread Jianyu Zhan
On Fri, Mar 11, 2016 at 2:21 PM, wrote: > A useful use case for min_t and max_t is comparing two values with larger > type. For example comparing an u64 and an u32, usually we do not want to > truncate the u64, so we need use min_t or max_t with u64. > > To simplify the usage introducing two more

Re: [PATCH 2/2] [PATCH 2/2] proc-vmcore: wrong data type casting fix

2016-03-10 Thread Minfei Huang
On 03/11/16 at 02:21pm, dyo...@redhat.com wrote: > @@ -231,7 +231,8 @@ static ssize_t __read_vmcore(char *buffe > > list_for_each_entry(m, &vmcore_list, list) { > if (*fpos < m->offset + m->size) { > - tsz = min_t(size_t, m->offset + m->size - *fpos, > buf

[BUG] Device unbound in a resumed state

2016-03-10 Thread Krzysztof Kozlowski
Hi, Could be related (the same?) with [0]. I have a driver (hwrng/exynos-rng) which in probe does: pm_runtime_set_autosuspend_delay(&pdev->dev, EXYNOS_AUTOSUSPEND_DELAY); pm_runtime_use_autosuspend(&pdev->dev); pm_runtime_enable(&pdev->dev); and in remove: pm_runtime_disable(&pdev->dev) Just b

Re: [PATCH] xhci: fix typo in babble endpoint handling comment

2016-03-10 Thread Felipe Balbi
Rajesh Bhagat writes: > [ text/plain ] > The 0.95 xHCI spec says that non-control endpoints will be halted if a > babble is detected on a transfer. The 0.96 xHCI spec says all types of > endpoints will be halted when a babble is detected. Some hardware that > claims to be 0.95 compliant halts t

[PATCH] kcm: fix variable type

2016-03-10 Thread Andrzej Hajda
Function skb_splice_bits can return negative values, its result should be assigned to signed variable to allow correct error checking. The problem has been detected using patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci. Signed-off-by: Andrzej Hajda --- net/kcm/kcmsock.c | 2 +- 1

Re: Overlapping ioremap() calls, set_memory_*() semantics

2016-03-10 Thread Andy Lutomirski
On Mon, Mar 7, 2016 at 9:03 AM, Toshi Kani wrote: > Let me try to summarize... > > The original issue Luis brought up was that drivers written to work with > MTRR may create a single ioremap range covering multiple cache attributes > since MTRR can overwrite cache attribute of a certain range. Co

Re: [PATCH v5 3/9] dma-mapping: add dma_{map,unmap}_resource

2016-03-10 Thread Dan Williams
On Thu, Mar 10, 2016 at 8:05 AM, Niklas S??derlund wrote: > Hi Christoph, > > On 2016-03-07 23:38:47 -0800, Christoph Hellwig wrote: >> Please add some documentation on where/how this should be used. It's >> not a very obvious interface. > > Good idea, I have added the following to Documentation/

[PATCH] tty: amba-pl011: Use 32-bit accesses for SBSA UART

2016-03-10 Thread Christopher Covington
Version 2 of the Server Base System Architecture (SBSAv2) describes the Generic UART registers as 32 bits wide. At least one implementation, found on the Qualcomm Technologies QDF2432, only supports 32 bit accesses. SBSAv3, which describes supported access sizes in greater detail, explicitly requir

Re: [f2fs-dev] [PATCH 0/8] some cleanup of inline flag checking

2016-03-10 Thread Shawn Lin
Hi Chao Yu, On 2016/3/11 13:29, Chao Yu wrote: Hi Shawn, -Original Message- From: Shawn Lin [mailto:shawn@rock-chips.com] Sent: Friday, March 11, 2016 11:28 AM To: Jaegeuk Kim Cc: Shawn Lin; linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net Subject: [f2fs-dev] [

[PATCH 1/2] [PATCH 1/2] Introduce new macros min_lt and max_lt for comparing with larger type

2016-03-10 Thread dyoung
A useful use case for min_t and max_t is comparing two values with larger type. For example comparing an u64 and an u32, usually we do not want to truncate the u64, so we need use min_t or max_t with u64. To simplify the usage introducing two more macros min_lt and max_lt, 'lt' means larger type.

[PATCH 0/2] min_t type casting bug fixes

2016-03-10 Thread dyoung
Hi, We found a min_t type casting issue in fs/proc/vmcore.c, it uses smaller type in min_t so that during i386 PAE testing 64bit value was trucated and then cause saving vmcore failure and BUG() for mmap case. I introduced new macros min_lt and max_lt to select the larger data type in x and y. Th

[PATCH 2/2] [PATCH 2/2] proc-vmcore: wrong data type casting fix

2016-03-10 Thread dyoung
On i686 PAE enabled machine the contiguous physical area could be large and it can cause triming down variables in below calculation in read_vmcore() and mmap_vmcore(): tsz = min_t(size_t, m->offset + m->size - *fpos, buflen); Then the real size passed down is not correct any more. Suppos

Re: [PATCH v5 3/5] Add Cyclomatic complexity GCC plugin

2016-03-10 Thread Masahiro Yamada
Hi Emese, 2016-03-07 8:05 GMT+09:00 Emese Revfy : > Add a very simple plugin to demonstrate the GCC plugin infrastructure. This > GCC > plugin computes the cyclomatic complexity of each function. > > The complexity M of a function's control flow graph is defined as: > M = E - N + 2P > where >

Re: [RFC] PCI: PTM Driver

2016-03-10 Thread Yong, Jonathan
On 02/29/2016 15:29, Yong, Jonathan wrote: Hello LKML, This is a preliminary implementation of the PTM[1] support driver, the code is obviously hacked together and in need of refactoring. This driver has only been tested against a virtual PCI bus. The drivers job is to get to every PTM capable

Re: [PATCH v5 2/5] GCC plugin infrastructure

2016-03-10 Thread Masahiro Yamada
Hi Emese, I am not familiar with GCC plugins. Comments from the view of Kbuild. 2016-03-07 8:04 GMT+09:00 Emese Revfy : > This patch allows to build the whole kernel with GCC plugins. It was ported > from > grsecurity/PaX. The infrastructure supports building out-of-tree modules and > building

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-10 Thread Vinod Koul
On Wed, Mar 09, 2016 at 12:06:27PM +0100, Boris Brezillon wrote: > On Tue, 8 Mar 2016 08:25:47 +0530 > Vinod Koul wrote: > > > > Why does dmaengine need to wait? Can you explain that > > I don't have an answer for that one, but when I set WAIT_CYCLES to 1 > for the NAND use case it does not work

[PATCH net v2] r8169:Remove unnecessary phy reset for pcie nic when setting link spped.

2016-03-10 Thread Chunhao Lin
For pcie nic, after setting link speed and there is no link driver does not need to do phy reset until link up. For some pcie nics, to do this will also reset phy speed down counter and prevent phy from auto speed down. This patch fix the issue reported in following link. https://bugs.launchpad.

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-10 Thread Vinod Koul
On Wed, Mar 09, 2016 at 11:14:34AM +0100, Boris Brezillon wrote: > > > > > > + * struct sun4i_dma_chan_config - DMA channel config > > > > > > + * > > > > > > + * @para: contains information about block size and time before > > > > > > checking > > > > > > + * DRQ line. This is device specific a

Re: [PATCH v5 1/5] Shared library support

2016-03-10 Thread Masahiro Yamada
Hi Emese, 2016-03-07 8:03 GMT+09:00 Emese Revfy : > Infrastructure for building independent shared library targets. > This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a > (Masahiro Yamada, kbuild: drop shared library support from Makefile.host). > > Signed-off-by: Emese Revfy >

Re: [PATCH v5 3/9] dma-mapping: add dma_{map,unmap}_resource

2016-03-10 Thread Vinod Koul
On Thu, Mar 10, 2016 at 05:05:23PM +0100, Niklas S??derlund wrote: > Hi Christoph, > > On 2016-03-07 23:38:47 -0800, Christoph Hellwig wrote: > > Please add some documentation on where/how this should be used. It's > > not a very obvious interface. > > Good idea, I have added the following to Do

linux-next: Tree for Mar 11

2016-03-10 Thread Stephen Rothwell
Hi all, Changes since 20160310: New tree: rpmsg The tip tree gained a conflict against the pm tree. The aio tree still had a build failure so I used the version from next-20160111. Non-merge commits (relative to Linus' tree): 10657 8209 files changed, 406492 insertions(+), 196211 dele

[PATCH] xhci: fix typo in babble endpoint handling comment

2016-03-10 Thread Rajesh Bhagat
The 0.95 xHCI spec says that non-control endpoints will be halted if a babble is detected on a transfer. The 0.96 xHCI spec says all types of endpoints will be halted when a babble is detected. Some hardware that claims to be 0.95 compliant halts the control endpoint anyway. Reference: http://ww

RE: [f2fs-dev] [PATCH 0/8] some cleanup of inline flag checking

2016-03-10 Thread Chao Yu
Hi Shawn, > -Original Message- > From: Shawn Lin [mailto:shawn@rock-chips.com] > Sent: Friday, March 11, 2016 11:28 AM > To: Jaegeuk Kim > Cc: Shawn Lin; linux-kernel@vger.kernel.org; > linux-f2fs-de...@lists.sourceforge.net > Subject: [f2fs-dev] [PATCH 0/8] some cleanup of inline fla

Re: [PATCH] arc: use little endian accesses

2016-03-10 Thread Noam Camus
> From: Lada Trimasova > Sent: Thursday, March 10, 2016 8:57 PM > And for example, let's see what happens when we use "readl" in function > "serial8250_early_in" in driver/tty/serial/8250. Is your DTS entry includes for serial node following entries: reg-io-width = <4> native-endian; if answe

Re: [PATCH] arc: use little endian accesses

2016-03-10 Thread Vineet Gupta
On Thursday 10 March 2016 01:15 PM, Arnd Bergmann wrote: > On Thursday 10 March 2016, Vineet Gupta wrote: >> On Wednesday 09 March 2016 10:51 PM, Lada Trimasova wrote: >>> Memory access primitives should use cpu_to_le16, cpu_to_le32, le16_to_cpu >>> and le32_to_cpu because it is not really guarante

Re: [PATCH-RFC]: sysrq-a: graceful reboot via kernel_restart(), similar to sysrq-o

2016-03-10 Thread Marc MERLIN
On Fri, Mar 11, 2016 at 04:35:21AM +, Eric Wheeler wrote: > Hello all, > > We were having a discussion on the bcache list about the safest reboot > options via sysrq here: > http://thread.gmane.org/gmane.linux.kernel.bcache.devel/3559/focus=3586 > > The result of the discussion ended up in

Re: [PATCH 01/10] fs crypto: add basic definitions for per-file encryption

2016-03-10 Thread Dan Williams
On Mon, Feb 29, 2016 at 5:35 PM, Jaegeuk Kim wrote: > On Sun, Feb 28, 2016 at 09:41:22PM -0800, Randy Dunlap wrote: >> On 02/25/16 11:25, Jaegeuk Kim wrote: >> > This patch adds definitions for per-file encryption used by ext4 and f2fs. >> > >> > Signed-off-by: Jaegeuk Kim >> > --- >> > include/

Re: [PATCH] Documentation: Howto: Fixed subtitles style

2016-03-10 Thread Jonathan Corbet
On Thu, 10 Mar 2016 22:22:47 +0100 Philippe Loctaux wrote: > On Wed, Mar 09, 2016 at 03:30:15PM -0700, Jonathan Corbet wrote: > > Applied to the docs tree, thanks. > > Where can I find the docs tree on kernel.org? Not on kernel.org. From MAINTAINERS: T: git git://git.lwn.net/li

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-10 Thread Ric Wheeler
On 03/11/2016 12:03 AM, Linus Torvalds wrote: On Thu, Mar 10, 2016 at 6:58 AM, Ric Wheeler wrote: What was objectionable at the time this patch was raised years back (not just to me, but to pretty much every fs developer at LSF/MM that year) centered on the concern that this would be viewed as

[PATCH-RFC]: sysrq-a: graceful reboot via kernel_restart(), similar to sysrq-o

2016-03-10 Thread Eric Wheeler
Hello all, We were having a discussion on the bcache list about the safest reboot options via sysrq here: http://thread.gmane.org/gmane.linux.kernel.bcache.devel/3559/focus=3586 The result of the discussion ended up in a patch for sysrq-a to call kernel_restart much in the same way as sysrq-o

Re: [patch] sbp-target: checking for NULL instead of IS_ERR

2016-03-10 Thread Nicholas A. Bellinger
On Thu, 2016-03-10 at 22:58 +, Chris Boot wrote: > On 10/03/16 21:52, Chris Boot wrote: > > On 10/03/16 20:56, Chris Boot wrote: > >> On 05/03/16 09:33, Nicholas A. Bellinger wrote: > >>> On Sat, 2016-03-05 at 08:45 +, Chris Boot wrote: > Are these in linux-next or another branch somew

Re: [PATCH] regulator: fixed: Remove WARs for handling of_get_named_gpio() return

2016-03-10 Thread Mark Brown
On Thu, Mar 10, 2016 at 05:42:46PM +0530, Laxman Dewangan wrote: > Remove the WAR implemented in fixed regulator to handle the > return of of_get_named_gpio(). You need to explain what a WAR is, I suspect it's some nVidia internal term. signature.asc Description: PGP signature

Re: [PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes

2016-03-10 Thread Caesar Wang
于 2015年10月27日 15:31, Caesar Wang 写道: This adds mailbox device nodes in dts. Mailbox is used by the Rockchip CPU cores to communicate requests to MCU processor. Signed-off-by: Caesar Wang --- Changes in v1: - PATCH[3/3] dts: - fix "processormZ"--> "processor",the miss-fingerboard. - Remove th

Re: [PATCH v2 2/9] ARC: [dts] Introduce Timer bindings

2016-03-10 Thread Vineet Gupta
On Tuesday 08 March 2016 05:56 PM, 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 are not yet used in > code. > > Cc: Daniel Lezcano > Cc: Rob Her

[PATCH] printk: add clear_idx symbol to vmcoreinfo

2016-03-10 Thread Ivan Delalande
This allows us to extract from the vmcore only the messages emitted since the last time the ring buffer was cleared. We just have to make sure its value is always up-to-date, when old messages are discarded to free space in log_make_free_space() for example. Signed-off-by: Zeyu Zhao Signed-off-by

Re: [patch -target tree] usb: gadget: f_tcm: use after free

2016-03-10 Thread Nicholas A. Bellinger
On Thu, 2016-03-10 at 09:34 +0100, Andrzej Pietrasiewicz wrote: > Hi Nicholas, > > W dniu 10.03.2016 o 06:19, Nicholas A. Bellinger pisze: > > Hi Andrzej, > > > > On Wed, 2016-03-09 at 13:53 +0100, Andrzej Pietrasiewicz wrote: > >> Hi Nicholas, > >> > > > > Mmmm, usbg_get_cmd() was missing an e

Re: [PATCH 1/2] vfio, platform: add support for ACPI while detecting the reset driver

2016-03-10 Thread Marc Zyngier
On Thu, 10 Mar 2016 12:13:28 -0500 Sinan Kaya wrote: > On 3/10/2016 5:11 AM, Eric Auger wrote: > > Hi Sinan, > > On 03/08/2016 04:33 PM, Sinan Kaya wrote: > >> The code is using the compatible DT string to associate a reset driver > >> with > >> the actual device itself. The compatible string d

[PATCH 2/2] x86/mtrr: Refactor PAT initialization code

2016-03-10 Thread Toshi Kani
MTRR manages PAT initialization as it implements a rendezvous handler that initializes PAT as part of MTRR initialization. When CPU does not support MTRR, ex. qemu32 virtual CPU, MTRR simply skips PAT init, which causes PAT left enabled without initialization. Also, get_mtrr_state() calls pat_ini

[PATCH 2/5] dt-bindings: gk20a: Document iommus property

2016-03-10 Thread Alexandre Courbot
GK20A can optionally make use of an IOMMU. Signed-off-by: Alexandre Courbot --- Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt b/Documentation/devicetree/bindings/gpu/nvidia,gk

[PATCH 3/5] dt-bindings: Add documentation for GM20B GPU

2016-03-10 Thread Alexandre Courbot
GM20B's definition is mostly similar to GK20A's, but requires an additional clock. Signed-off-by: Alexandre Courbot --- .../devicetree/bindings/gpu/nvidia,gk20a.txt | 27 -- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings

[PATCH 0/2] Refactor MTRR and PAT initializations

2016-03-10 Thread Toshi Kani
Since 'commit 9cd25aac1f44 ("x86/mm/pat: Emulate PAT when it is disabled")', we emulate a PAT table when PAT is disabled. This requires pat_init() be called even if PAT is disabled, which revealed a long standing issue that PAT is left enabled without calling pat_init() at all. pat_init() is calle

[PATCH 1/2] x86/mm/pat: Change pat_disable() to emulate PAT table

2016-03-10 Thread Toshi Kani
Since 'commit 9cd25aac1f44 ("x86/mm/pat: Emulate PAT when it is disabled")', we emulate a PAT table when PAT is disabled. This requires pat_init() be called even if PAT is disabled, which revealed a long standing issue that PAT is left enabled without calling pat_init() at all. pat_init() is calle

[PATCH 1/5] dt-bindings: gk20a: Fix typo in compatible name

2016-03-10 Thread Alexandre Courbot
The correct compatible name is "nvidia,gk20a". Signed-off-by: Alexandre Courbot --- Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/gpu/nvidia,gk20a.txt b/Documentation/devicetree/bi

[PATCH 0/5] arm64: tegra: fix DT definitions for GM20B GPU

2016-03-10 Thread Alexandre Courbot
Small series that fixes/completes DT bindings for Tegra GPUs and add two missing entries required for the Tegra210 GPU to operate properly. Alexandre Courbot (5): dt-bindings: gk20a: Fix typo in compatible name dt-bindings: gk20a: Document iommus property dt-bindings: Add documentation for G

[PATCH 4/5] arm64: tegra210: Add pllg_ref clock to GM20B

2016-03-10 Thread Alexandre Courbot
This clock is required for the GPU to operate. Signed-off-by: Alexandre Courbot --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/tegra210.dtsi index 362c269

[PATCH 5/5] arm64: tegra210: Add IOMMU node to GM20B

2016-03-10 Thread Alexandre Courbot
Nouveau can take advantage of this declaration to remove the need for contiguous memory. Signed-off-by: Alexandre Courbot --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/teg

Re: [PATCH 1/2] vfio, platform: add support for ACPI while detecting the reset driver

2016-03-10 Thread Eric Auger
Hi Sinan, On 03/10/2016 06:13 PM, Sinan Kaya wrote: > On 3/10/2016 5:11 AM, Eric Auger wrote: >> Hi Sinan, >> On 03/08/2016 04:33 PM, Sinan Kaya wrote: >>> The code is using the compatible DT string to associate a reset driver with >>> the actual device itself. The compatible string does not exist

Re: [PATCH v1 2/3] mailbox: rockchip: Add Rockchip mailbox driver

2016-03-10 Thread Jassi Brar
On Tue, Mar 8, 2016 at 1:48 AM, Heiko Stübner wrote: > Hi Jassi, > > Am Dienstag, 27. Oktober 2015, 15:31:45 schrieb Caesar Wang: >> This driver is found on RK3368 SoCs. >> >> The Mailbox module is a simple APB peripheral that allows both >> the Cortex-A53 MCU system to communicate by writing oper

Re: [PATCH 01/18] irqchip: vf610-gpc: add Vybrid GPC IRQ controller

2016-03-10 Thread Marc Zyngier
On Wed, 9 Mar 2016 18:16:42 -0800 Stefan Agner wrote: Hi Stefan, > This patch introduces a driver for Vybrids GPC (Global Power > Controller). Vybrids GPC IP is simpler than the one found in > i.MX 6: There is no power gating control (GPC) and the GPC INTC > does not need to clear IRQ masks for

[PATCH 8/8] f2fs: check inline flag ahead for get_dnode_of_data

2016-03-10 Thread Shawn Lin
Check inline data flag ahead, so we can save some cpu cycle. Signed-off-by: Shawn Lin --- fs/f2fs/node.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 771166d..69467bd 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -5

[PATCH 6/8] f2fs: remove checing inline data flag for f2fs_fiemap

2016-03-10 Thread Shawn Lin
Remove the f2fs_has_inline_data for f2fs_fiemap, and let f2fs_inline_data_fiemap take over gatekeeper of checking inline data flag. Signed-off-by: Shawn Lin --- fs/f2fs/data.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index d60d5

[PATCH 5/8] f2fs: f2fs: check inline flag ahead for f2fs_inline_data_fiemap

2016-03-10 Thread Shawn Lin
No matter inline data flag is set or not, get_node_page is going work now. But actually we can avoid it by puting the check of inline data flag in advance to save this cpu cycle. Signed-off-by: Shawn Lin --- fs/f2fs/inline.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --

[PATCH 4/8] f2fs: remove redundant checking of inline data flag

2016-03-10 Thread Shawn Lin
Remove the f2fs_has_inline_data for f2fs_read_data_page, and let f2fs_read_inline_data take over gatekeeper of checking inline data flag. Signed-off-by: Shawn Lin --- fs/f2fs/data.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 3

Re: [PATCH 1/2] ppc64le live patch: clear out storage location(s) in mini stack frame

2016-03-10 Thread Balbir Singh
On 10/03/16 04:28, Torsten Duwe wrote: > This can be applied on top of Petr Mladek's v4 rework of the ppc64le > live patching. Inspired by Balbir Singh's v5, information about the > callee's r2 is stored in a "reserved" 32 bit location in the caller's > stack frame, instead of 64 bits in the newl

[PATCH 3/8] f2fs: check inline flag ahead for f2fs_read_inline_data

2016-03-10 Thread Shawn Lin
No matter inline data flag is set or not, get_node_page is going work now. But actually we can avoid it by puting the check of inline data flag in advance to save this cpu cycle. Signed-off-by: Shawn Lin --- fs/f2fs/inline.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --

[PATCH 7/8] f2fs: remove unnecessary inline checking for f2fs_convert_inline_inode

2016-03-10 Thread Shawn Lin
If failing to check inline data flag for f2fs_convert_inline_inode, it will return 0. So we don't need to check it twice before we are going to do f2fs_convert_inline_page. Signed-off-by: Shawn Lin --- fs/f2fs/inline.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2f

[PATCH 2/8] f2fs: remove checing inline data flag for f2fs_write_data_page

2016-03-10 Thread Shawn Lin
Remove the f2fs_has_inline_data for f2fs_write_data_page, and let f2fs_write_inline_data take over gatekeeper of checking inline data flag. Signed-off-by: Shawn Lin --- fs/f2fs/data.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index e5c

[PATCH 1/8] f2fs: check inline flag ahead for f2fs_write_inline_data

2016-03-10 Thread Shawn Lin
No matter inline data flag is set or not, current code is going to new a dnode. But actually we can avoid it by puting the check of inline data flag in advance to save this cpu cycle. Signed-off-by: Shawn Lin --- fs/f2fs/inline.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) d

[PATCH 0/8] some cleanup of inline flag checking

2016-03-10 Thread Shawn Lin
This patchset is going to remove some redunant checking of inline data flag and also going to avoid some unnecessary cpu waste when doing inline stuff. Note: Sorry for sending previous four patches in separate, let drop them and make them in this thread for better review. Shawn Lin (8): f2fs

[PATCH] checkpatch: Improve UNSPECIFIED_INT test for bare signed/unsigned uses

2016-03-10 Thread Joe Perches
Improve the test to allow casts to (unsigned) or (signed) to be found and fixed if desired. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 75ce6d0..f59203c 1

Re: [PATCH 2/5] Staging: comedi: fix WARNING issue in s626.c

2016-03-10 Thread Greg KH
On Thu, Mar 10, 2016 at 12:22:07PM +0530, Ravishankar Karkala Mallikarjunayya wrote: > This is a patch to the s626.c file that fixes up a Block comments issues > found by the checkpatch.pl tool. > > i.e. Block comments use a trailing */ on a separate line > > Signed-off-by: Ravishankar Karkala

Re: [PATCH 1/5] Staging: comedi: fix type issue in s626.c

2016-03-10 Thread Greg KH
On Thu, Mar 10, 2016 at 12:22:06PM +0530, Ravishankar Karkala Mallikarjunayya wrote: > This is a patch to the s626.c file that fixes up a type issues > found by the checkpatch.pl tool. > > i.e Prefer kernel type 'u8' over 'uint8_t' > Prefer kernel type 'u16' over 'uint16_t' > Prefer kerne

Re: [PATCH 3/3] Staging: vt6656: modified tab error

2016-03-10 Thread Greg KH
On Thu, Mar 10, 2016 at 07:40:09PM +0530, Tanvi Surana wrote: > I have modified tab error in the file power.c > > Signed-Off-By: Tanvi Surana > --- > drivers/staging/vt6656/power.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/vt6656/power.c b/drivers/

Re: [PATCH] Staging: vt6655: fixed Warnings of more than 80 chars at a line in baseband.c

2016-03-10 Thread Greg KH
On Thu, Mar 10, 2016 at 12:39:08PM +0530, nancygoel62 wrote: > This is a patch to the baseband.c file that fixes the warnings of more than > 80 characters at a line by the checkpatch.pl tool > > Signed-off-by: Nancy Goel > --- > drivers/staging/vt6655/baseband.c | 16 ++-- > 1 file

  1   2   3   4   5   6   7   8   >