[PATCH v5] mm: multi-gen LRU: reuse some legacy trace events

2023-10-03 Thread Jaewon Kim
ned-off-by: Jaewon Kim Acked-by: Yu Zhao --- v5: reuse the legacy trace events v4: wrap with #ifdef CONFIG_LRU_GEN v3: change printk format v2: use condition and make it aligned v1: introduce trace events --- mm/vmscan.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) di

Re: [PATCH v4] vmscan: add trace events for lru_gen

2023-10-01 Thread Jaewon Kim
Hello Yu Zhao Could you give me your comment? I am waiting for your opinion on the reuse method. I'm planning to resend it as a complete patch with it. Thank you. On Tue, Sep 26, 2023 at 11:15 PM 김재원 wrote: > > >>>On Mon, Sep 25, 2023 at 10:20?PM Jaewon Kim > >>

[PATCH v4] vmscan: add trace events for lru_gen

2023-09-25 Thread Jaewon Kim
ate=0 nr_activate_anon=0 nr_activate_file=0 nr_ref_keep=0 nr_unmap_fail=0 priority=12 flags=RECLAIM_WB_FILE|RECLAIM_WB_ASYNC Signed-off-by: Jaewon Kim --- v4: wrap with #ifdef CONFIG_LRU_GEN v3: change printk format v2: use condition and make it aligned v1: introduce trace events --- include/trace/events/mmfl

[PATCH v3] vmscan: add trace events for lru_gen

2023-09-24 Thread Jaewon Kim
ested=0 nr_immediate=0 nr_activate_anon=0 nr_activate_file=2 nr_ref_keep=0 nr_unmap_fail=0 priority=2 flags=RECLAIM_WB_FILE|RECLAIM_WB_ASYNC Signed-off-by: Jaewon Kim Reviewed-by: Steven Rostedt (Google) Reviewed-by: T.J. Mercier --- v3: change printk format v2: use condition and make it align

[PATCH v2] vmscan: add trace events for lru_gen

2023-09-21 Thread Jaewon Kim
ested=0 nr_immediate=0 nr_activate_anon=0 nr_activate_file=2 nr_ref_keep=0 nr_unmap_fail=0 priority=2 flags=RECLAIM_WB_FILE|RECLAIM_WB_ASYNC Signed-off-by: Jaewon Kim --- v2: use condition and make it aligned v1: introduce trace events --- include/trace/events/mmflags.h | 5 ++ include/trace/e

[PATCH] vmscan: add trace events for lru_gen

2023-09-18 Thread Jaewon Kim
ested=0 nr_immediate=0 nr_activate_anon=0 nr_activate_file=2 nr_ref_keep=0 nr_unmap_fail=0 priority=2 flags=RECLAIM_WB_FILE|RECLAIM_WB_ASYNC Signed-off-by: Jaewon Kim --- include/trace/events/mmflags.h | 5 ++ include/trace/events/vmscan.h | 96 ++ mm/vms

[PATCH v5] page_alloc: consider highatomic reserve in watermark fast

2020-06-22 Thread Jaewon Kim
_GFP_ZERO <...>-22275 [006] 889.213396: mm_page_alloc: page=f6b72a64 pfn=970197 order=0 migratetype=0 nr_free=3650 gfp_flags=GFP_HIGHUSER|__GFP_ZERO kswapd0-1207 [005] ...1 889.213398: mm_page_alloc: page= (null) pfn=0 order=0 migratetype=1 nr_free=3650 gfp_flags=G

[PATCH v4] page_alloc: consider highatomic reserve in watermark fast

2020-06-18 Thread Jaewon Kim
_GFP_ZERO <...>-22275 [006] 889.213396: mm_page_alloc: page=f6b72a64 pfn=970197 order=0 migratetype=0 nr_free=3650 gfp_flags=GFP_HIGHUSER|__GFP_ZERO kswapd0-1207 [005] ...1 889.213398: mm_page_alloc: page= (null) pfn=0 order=0 migratetype=1 nr_free=3650 gfp_flags=GFP_

Re: (2) [PATCH v2] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-16 Thread Jaewon Kim
., 2020년 6월 16일 (화) 오후 11:17, Baoquan He 님이 작성: > > On 06/16/20 at 04:30pm, 김재원 wrote: > > >>> > > <4>[ 6207.637627] [3: Binder:9343_3:22875] Normal free:10908kB > > >>> > > min:6192kB low:44388kB high:47060kB active_anon:409160kB > > >>> > > inactive_anon:325924kB active_file:235820kB inactiv

Re: [PATCH v3] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-16 Thread Jaewon Kim
2020년 6월 16일 (화) 오후 7:21, Vlastimil Babka 님이 작성: > > On 6/17/20 4:05 AM, Jaewon Kim wrote: > > Please fix typo "wmartermark" in subject. Oops Let me fix typo in next version as watermark > > > zone_watermark_fast was introduced by commit 48ee5f3696f6 ("mm, >

[PATCH v3] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-16 Thread Jaewon Kim
fp_flags=GFP_HIGHUSER|__GFP_ZERO <...>-22275 [006] 889.213396: mm_page_alloc: page=0000f6b72a64 pfn=970197 order=0 migratetype=0 nr_free=3650 gfp_flags=GFP_HIGHUSER|__GFP_ZERO kswapd0-1207 [005] ...1 889.213398: mm_page_alloc: page= (null) pfn=0 order=0 migratetype=

Re: [PATCH v2] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-13 Thread Jaewon Kim
2020년 6월 13일 (토) 오후 6:42, Baoquan He 님이 작성: > > On 06/13/20 at 11:51am, Jaewon Kim wrote: > > zone_watermark_fast was introduced by commit 48ee5f3696f6 ("mm, > > page_alloc: shortcut watermark checks for order-0 pages"). The commit > > simply checks if free page

[PATCH v2] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-12 Thread Jaewon Kim
80kB active_file:396196kB inactive_file:677284kB unevictable:193168kB writepending:2304kB present:4081664kB managed:3593324kB mlocked:193168kB kernel_stack:55008kB pagetables:100352kB bounce:0kB free_pcp:1776kB local_pcp:656kB free_cma:12kB <4>[ 156.701741] [4:kswapd0: 1209] low

Re: [PATCH] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-12 Thread Jaewon Kim
On 2020년 06월 12일 16:40, Minchan Kim wrote: > On Fri, Jun 12, 2020 at 04:03:41PM +0900, Jaewon Kim wrote: >> >> On 2020년 06월 12일 15:55, Minchan Kim wrote: >>> On Thu, Jun 11, 2020 at 05:54:12PM +0900, Jaewon Kim wrote: >>>> On 2020년 06월 10일 10:21

Re: [PATCH] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-12 Thread Jaewon Kim
On 2020년 06월 12일 15:55, Minchan Kim wrote: > On Thu, Jun 11, 2020 at 05:54:12PM +0900, Jaewon Kim wrote: >> >> On 2020년 06월 10일 10:21, Minchan Kim wrote: >>> Hi Jaewon, >>> >>> On Tue, Jun 09, 2020 at 06:51:28PM +0900, Jaewon Kim wrote: >>

Re: [PATCH] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-11 Thread Jaewon Kim
On 2020년 06월 10일 10:21, Minchan Kim wrote: > Hi Jaewon, > > On Tue, Jun 09, 2020 at 06:51:28PM +0900, Jaewon Kim wrote: >> zone_watermark_fast was introduced by commit 48ee5f3696f6 ("mm, >> page_alloc: shortcut watermark checks for order-0 pages"). The commit &g

Re: [PATCH] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-10 Thread Jaewon Kim
>> > That's fine, I simply wanted to illustrate where I thought the check > should go to minimise the impact to the majority of allocations. Hello Mel. Can I understand that you also agrees on checking highatomic reserved? Additionally I've wondered why the number of highatomic free pages is not accurately counted like cma free. Is there any concern on counting it? > Thank you Jaewon Kim

[PATCH] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-09 Thread Jaewon Kim
reclaimable? no <4>[ 156.701738] [4:kswapd0: 1209] Normal free:9956kB min:7428kB low:93440kB high:97032kB active_anon:355176kB inactive_anon:354580kB active_file:396196kB inactive_file:677284kB unevictable:193168kB writepending:2304kB present:4081664kB managed:3593324kB mlocked:

Re: [PATCH] of/platform: Support dynamic device tree on AMBA bus

2018-11-01 Thread Jaewon Kim
On 11/1/18 1:06 AM, Frank Rowand wrote: On 10/31/18 8:32 AM, Jaewon Kim wrote: Hi Frank, Thanks to review my patch. On 18. 10. 31. 오전 8:04, Frank Rowand wrote: Hi Jaewon, On 10/25/18 9:39 AM, Jaewon Kim wrote: This patch supports dynamic device-tree for AMBA device. Add AMBA devices

Re: [PATCH] of/platform: Support dynamic device tree on AMBA bus

2018-10-31 Thread Jaewon Kim
Hi Frank, Thanks to review my patch. On 18. 10. 31. 오전 8:04, Frank Rowand wrote: Hi Jaewon, On 10/25/18 9:39 AM, Jaewon Kim wrote: This patch supports dynamic device-tree for AMBA device. Add AMBA devices and buses to of_platform_notify() so that dynamic device-tree will support AMBA

Re: [PATCH] spi: dw: fix buffer end address

2018-10-29 Thread Jaewon Kim
There is some side effect on this patch. So, I revoke this patch. 18. 10. 25. 오전 12:37에 Jaewon Kim 이(가) 쓴 글: Buffer address can be NULL, if user does not want to receive TX/RX data. In this case, driver should not set the rx/tx_end value with len. Signed-off-by: Jaewon Kim --- drivers/spi

[PATCH] of/platform: Support dynamic device tree on AMBA bus

2018-10-25 Thread Jaewon Kim
This patch supports dynamic device-tree for AMBA device. The AMBA device must be registered on the AMBA bus, not the platform bus. Signed-off-by: Jaewon Kim --- drivers/of/platform.c | 93 --- 1 file changed, 73 insertions(+), 20 deletions

[PATCH] spi: dw: fix buffer end address

2018-10-24 Thread Jaewon Kim
Buffer address can be NULL, if user does not want to receive TX/RX data. In this case, driver should not set the rx/tx_end value with len. Signed-off-by: Jaewon Kim --- drivers/spi/spi-dw.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-dw.c b

[PATCH] drivers: of: of_reserved_mem: detect count overflow or range overlap

2018-05-29 Thread Jaewon Kim
+0x1e0/0x404 <4>[2.309751] [2: swapper/0:1] [] check_reserved_mem+0x4c/0x50 <4>[2.309802] [2: swapper/0:1] [] do_one_initcall+0x54/0x214 <4>[2.309856] [2: swapper/0:1] [] kernel_init_freeable+0x198/0x24c <4>[2.309913] [2

Re: [RFC v2] dma-coherent: introduce no-align to avoid allocation failure and save memory

2017-11-27 Thread Jaewon Kim
Hello 2017-11-24 19:35 GMT+09:00 David Laight : > From: Jaewon Kim >> Sent: 24 November 2017 05:59 >> >> dma-coherent uses bitmap APIs which internally consider align based on the >> requested size. If most of allocations are small size like KBs, using >> alig

[RFC v2] dma-coherent: introduce no-align to avoid allocation failure and save memory

2017-11-23 Thread Jaewon Kim
than forcely using no-align Signed-off-by: Jaewon Kim --- .../bindings/reserved-memory/reserved-memory.txt | 6 +++ arch/arm/mm/dma-mapping-nommu.c| 3 +- drivers/base/dma-coherent.c| 49 -- include/linux/dma-mapping.h

Re: [RFC PATCH] drivers: base: dma-coherent: find free region without alignment

2017-11-15 Thread Jaewon Kim
Hello Marek On 2017년 11월 14일 20:07, Marek Szyprowski wrote: > Hi Jaewon, > > On 2017-11-14 09:42, Jaewon Kim wrote: >> dma-coherent uses bitmap API which internally consider align based on the >> requested size. Depending on some usage pattern, using align, I think, may >&

[RFC PATCH] drivers: base: dma-coherent: find free region without alignment

2017-11-14 Thread Jaewon Kim
removes the align policy to allow allocation without increasing the total size. Signed-off-by: Jaewon Kim --- drivers/base/dma-coherent.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/base/dma-coherent.c b/drivers/base/dma-coherent.c index 744f64f43454

Re: [PATCH] mm: page_ext: allocate page extension though first PFN is invalid

2017-11-08 Thread Jaewon Kim
2017-11-08 16:52 GMT+09:00 Joonsoo Kim : > On Tue, Nov 07, 2017 at 06:44:47PM +0900, Jaewon Kim wrote: >> online_page_ext and page_ext_init allocate page_ext for each section, but >> they do not allocate if the first PFN is !pfn_present(pfn) or >> !pfn_valid(pfn). >>

[PATCH] mm: page_ext: check if page_ext is not prepared

2017-11-07 Thread Jaewon Kim
3c/0x58 <4>[ 11.626305] [] __do_fault+0x80/0x120 <4>[ 11.626347] [] handle_mm_fault+0x704/0xbb0 <4>[ 11.626393] [] do_page_fault+0x2e8/0x394 <4>[ 11.626437] [] do_mem_abort+0x88/0x124 Signed-off-by: Jaewon Kim --- mm/page_ext.c | 4 1 file changed, 4 deletions(

[PATCH] mm: page_ext: allocate page extension though first PFN is invalid

2017-11-07 Thread Jaewon Kim
consuming job. Let's check each (section count / 16) PFN, then prepare page_ext if any PFN is present or valid. Signed-off-by: Jaewon Kim --- mm/page_ext.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/mm/page_ext.c b/mm/page_ext.c index 32f1891

Re: [PATCH] mm: page_ext: allocate page extension though first PFN is invalid

2017-11-06 Thread Jaewon Kim
2017-11-02 17:02 GMT+09:00 Michal Hocko : > On Thu 02-11-17 15:35:07, Jaewon Kim wrote: >> online_page_ext and page_ext_init allocate page_ext for each section, but >> they do not allocate if the first PFN is !pfn_present(pfn) or >> !pfn_valid(pfn). Then section->

[PATCH] mm: page_ext: allocate page extension though first PFN is invalid

2017-11-01 Thread Jaewon Kim
n count / 16) PFN, then prepare page_ext if any PFN is present or valid. And remove the CONFIG_DEBUG_VM in lookup_page_ext to avoid panic. Signed-off-by: Jaewon Kim --- mm/page_ext.c | 29 ++--- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/mm/page_ext.c

[PATCH v2] mm: cma: print allocation failure reason and bitmap status

2017-01-31 Thread Jaewon Kim
available pages at 572 position starting from 0 position. [ 12.415503] [2: Binder:714_1: 744] cma: number of available pages: 4@572+7@585+7@601+8@632+38@730+166@1114+127@1921=> 357 free of 2048 total pages Signed-off-by: Jaewon Kim Acked-by: Michal Nazarewicz --- mm/cma.c |

Re: [PATCH] lib: bitmap: introduce bitmap_find_next_zero_area_and_size

2017-01-16 Thread Jaewon Kim
On 2017년 01월 15일 16:17, Yury Norov wrote: > Hi Jaewon, > > with all comments above, some of my concerns. > > On Mon, Dec 26, 2016 at 01:18:11PM +0900, Jaewon Kim wrote: >> There was no bitmap API which returns both next zero index and size of zeros >> from that i

Re: [PATCH] mm: cma: print allocation failure reason and bitmap status

2017-01-02 Thread Jaewon Kim
On 2017년 01월 02일 15:46, Michal Nazarewicz wrote: > On Mon, Jan 02 2017, Jaewon Kim wrote: >> There are many reasons of CMA allocation failure such as EBUSY, ENOMEM, >> EINTR. >> But we did not know error reason so far. This patch prints the error value. >> >> Ad

Re: [PATCH] mm: cma: print allocation failure reason and bitmap status

2017-01-01 Thread Jaewon Kim
On 2017년 01월 02일 06:59, Michal Nazarewicz wrote: > On Fri, Dec 30 2016, Michal Hocko wrote: >> On Fri 30-12-16 16:24:46, Jaewon Kim wrote: >> [...] >>> >From 7577cc94da3af27907aa6eec590d2ef51e4b9d80 Mon Sep 17 00:00:00 2001 >>> From: Jaewon Kim >&

Re: [PATCH] mm: cma: print allocation failure reason and bitmap status

2016-12-29 Thread Jaewon Kim
Hello Michal Hocko and and Michal Nazarewichz On 2016년 12월 29일 23:20, Michal Nazarewicz wrote: > On Thu, Dec 29 2016, Michal Hocko wrote: >> On Thu 29-12-16 11:28:02, Jaewon Kim wrote: >>> There are many reasons of CMA allocation failure such as EBUSY, ENOMEM, >>> E

Re: [PATCH] mm: cma: print allocation failure reason and bitmap status

2016-12-29 Thread Jaewon Kim
On 2016년 12월 29일 18:43, Michal Hocko wrote: > On Thu 29-12-16 18:26:38, Jaewon Kim wrote: >> >> On 2016년 12월 29일 18:14, Michal Hocko wrote: >>> On Thu 29-12-16 11:28:02, Jaewon Kim wrote: >>>> There are many reasons of CMA allocation failure such as EBUSY,

Re: [PATCH] mm: cma: print allocation failure reason and bitmap status

2016-12-29 Thread Jaewon Kim
On 2016년 12월 29일 18:14, Michal Hocko wrote: > On Thu 29-12-16 11:28:02, Jaewon Kim wrote: >> There are many reasons of CMA allocation failure such as EBUSY, ENOMEM, >> EINTR. >> This patch prints the error value and bitmap status to know available pages >> regarding f

[PATCH] mm: cma: print allocation failure reason and bitmap status

2016-12-28 Thread Jaewon Kim
, req-size: 256 pages, ret: -12 [ 11.616365] [2: Binder:711_1: 740] number of available pages: 4+7+7+8+38+166+127=>357 pages, total: 2048 pages Signed-off-by: Jaewon Kim --- mm/cma.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/mm/cma.

Re: [PATCH] lib: bitmap: introduce bitmap_find_next_zero_area_and_size

2016-12-28 Thread Jaewon Kim
On Wed, Dec 28 2016, Jaewon Kim wrote: >> I did not add caller in this patch. >> I am using the patch in cma_alloc function like below to show >> available page status. >> >> + printk("number of available pages: "); >>

Re: [PATCH] lib: bitmap: introduce bitmap_find_next_zero_area_and_size

2016-12-27 Thread Jaewon Kim
On 2016년 12월 27일 19:05, Michal Hocko wrote: > On Mon 26-12-16 13:18:11, Jaewon Kim wrote: >> There was no bitmap API which returns both next zero index and size of zeros >> from that index. >> >> This is helpful to look fragmentation. This is an test code to look

Re: [PATCH] lib: bitmap: introduce bitmap_find_next_zero_area_and_size

2016-12-26 Thread Jaewon Kim
On 2016년 12월 27일 06:09, Michal Nazarewicz wrote: > On Mon, Dec 26 2016, Jaewon Kim wrote: >> There was no bitmap API which returns both next zero index and size of zeros >> from that index. > Is it really needed? Does it noticeably simplifies callers? Why can’t > c

[PATCH] lib: bitmap: introduce bitmap_find_next_zero_area_and_size

2016-12-25 Thread Jaewon Kim
else printk("+%u", nr_found); nr_found_tot += nr_found; search_idx = found_idx + nr_found; } printk("=>%lu found of total: %lu\n", nr_found_tot, bitmap_max); Signed-off-by: Jaewon Kim --- include/linux/bitmap.h | 6 ++ lib/bitma

Re: [PATCH] staging: android: ion: return -ENOMEM in ion_cma_heap allocation failure

2016-12-17 Thread Jaewon Kim
2016-12-14 1:04 GMT+09:00 Laura Abbott : > On 12/08/2016 09:05 PM, Jaewon Kim wrote: >> Initial Commit 349c9e138551 ("gpu: ion: add CMA heap") returns -1 in >> allocation >> failure. The returned value is passed up to userspace through ioctl. So user >>

[PATCH] staging: android: ion: return -ENOMEM in ion_cma_heap allocation failure

2016-12-08 Thread Jaewon Kim
ned-off-by: Jaewon Kim --- drivers/staging/android/ion/ion_cma_heap.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/android/ion/ion_cma_heap.c b/drivers/staging/android/ion/ion_cma_heap.c index 6c7de74..22b9582 100644 --- a/drivers/staging/android/ion/ion_

[PATCH] [RFC] drivers: dma-coherent: pass struct dma_attrs to dma_alloc_from_coherent

2016-12-08 Thread Jaewon Kim
ZEROING could be skipped or could be done later. Signed-off-by: Jaewon Kim --- drivers/base/dma-coherent.c | 6 +- include/linux/dma-mapping.h | 7 --- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/base/dma-coherent.c b/drivers/base/dma-coherent.c index 640a7e6

Re: [PATCH] [RFC] drivers: dma-coherent: use MEMREMAP_WB instead of MEMREMAP_WC

2016-11-15 Thread Jaewon Kim
-by: Jaewon Kim --- drivers/base/dma-coherent.c | 6 +- include/linux/dma-mapping.h | 7 --- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/base/dma-coherent.c b/drivers/base/dma-coherent.c index 640a7e6..428eced 100644 --- a/drivers/base/dma-coherent.c +++ b

Re: [PATCH] [RFC] drivers: dma-coherent: use MEMREMAP_WB instead of MEMREMAP_WC

2016-11-11 Thread Jaewon Kim
Hi On 2016년 11월 10일 18:51, Brian Starkey wrote: > Hi Jaewon, > > On Thu, Nov 10, 2016 at 10:41:43AM +0900, Jaewon Kim wrote: >> Hi >> >> On 2016년 11월 09일 19:23, Brian Starkey wrote: >>> Hi, >>> >>> On Wed, Nov 09, 2016 at 06:47:26PM +0900, J

Re: [PATCH] [RFC] drivers: dma-coherent: use MEMREMAP_WB instead of MEMREMAP_WC

2016-11-09 Thread Jaewon Kim
Hi On 2016년 11월 09일 19:23, Brian Starkey wrote: > Hi, > > On Wed, Nov 09, 2016 at 06:47:26PM +0900, Jaewon Kim wrote: >> >> >> On 2016년 11월 09일 18:27, Brian Starkey wrote: >>> Hi Jaewon, >>> >>> On Wed, Nov 09, 2016 at 06:10:09PM +0900, Ja

Re: [PATCH] [RFC] drivers: dma-coherent: use MEMREMAP_WB instead of MEMREMAP_WC

2016-11-09 Thread Jaewon Kim
On 2016년 11월 09일 18:27, Brian Starkey wrote: > Hi Jaewon, > > On Wed, Nov 09, 2016 at 06:10:09PM +0900, Jaewon Kim wrote: >> Commit 6b03ae0d42bf (drivers: dma-coherent: use MEMREMAP_WC for >> DMA_MEMORY_MA) >> added MEMREMAP_WC for DMA_MEMORY_MAP. If, howeve

[PATCH] [RFC] drivers: dma-coherent: use MEMREMAP_WB instead of MEMREMAP_WC

2016-11-09 Thread Jaewon Kim
Signed-off-by: Jaewon Kim --- drivers/base/dma-coherent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/dma-coherent.c b/drivers/base/dma-coherent.c index 640a7e6..0512a1d 100644 --- a/drivers/base/dma-coherent.c +++ b/drivers/base/dma-coherent.c @@ -33,7 +33,7

[PATCH] usb: host: max3421-hcd: fix mask of IO control register

2016-07-21 Thread Jaewon Kim
GPIO control register is divided into IOPINS1 and IOPINS2. And low 4-bit of register is controls output. So, this patch fixes wrong mask of GPIO output. Signed-off-by: Jaewon Kim --- drivers/usb/host/max3421-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb

Re: Re: [RESEND][PATCH] drivers: of: of_reserved_mem: fixup the CMA alignment not to affect dma-coherent

2016-06-06 Thread Jaewon Kim
ous(CMA) but also >> dma-coherent which has no that requirement. >> >> This patch checks more to distinguish dma-contiguous(CMA) from dma-coherent. >> >> Signed-off-by: Jaewon Kim >> --- >> drivers/of/of_reserved_mem.c | 5 - >> 1 file change

Re: Re: [RESEND][PATCH] drivers: of: of_reserved_mem: fixup the CMA alignment not to affect dma-coherent

2016-05-31 Thread Jaewon Kim
>Hello, > > >On 2016-05-25 16:38, Rob Herring wrote: >> On Tue, May 24, 2016 at 11:29 PM, Jaewon Kim >> wrote: >>> From: Jaewon >>> >>> There was an alignment mismatch issue for CMA and it was fixed by >>> commit 1cc8e3458b51 (&quo

[RESEND][PATCH] drivers: of: of_reserved_mem: fixup the CMA alignment not to affect dma-coherent

2016-05-24 Thread Jaewon Kim
equirement. This patch checks more to distinguish dma-contiguous(CMA) from dma-coherent. Signed-off-by: Jaewon Kim --- drivers/of/of_reserved_mem.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c index ed01c01..45b8

[PATCH] drivers: of: of_reserved_mem: fixup the CMA alignment not to affect dma-coherent

2016-05-16 Thread Jaewon Kim
There was an alignment mismatch issue for CMA and it was fixed by commit 1cc8e3458b51 ("drivers: of: of_reserved_mem: fixup the alignment with CMA setup"). However the way of the commit considers not only dma-contiguous(CMA) but also dma-coherent which has no that requirement. This patch checks m

Re: [PATCH v2] vmscan: fix increasing nr_isolated incurred by putback unevictable pages

2015-08-04 Thread Jaewon Kim
On 2015년 08월 05일 08:31, Minchan Kim wrote: > Hello, > > On Tue, Aug 04, 2015 at 03:09:37PM -0700, Andrew Morton wrote: >> On Tue, 04 Aug 2015 19:40:08 +0900 Jaewon Kim >> wrote: >> >>> reclaim_clean_pages_from_list() assumes that shrink_page_list() returns

[PATCH v2] vmscan: fix increasing nr_isolated incurred by putback unevictable pages

2015-08-04 Thread Jaewon Kim
changes shrink_page_list() to pass unevictable pages back to caller. Caller will take care those pages. Signed-off-by: Jaewon Kim --- Changes since v1 1/ changed subject from vmscan: reclaim_clean_pages_from_list() must count mlocked pages 2/ changed to return unevictable pages rather than

Re: [PATCH] vmscan: reclaim_clean_pages_from_list() must count mlocked pages

2015-08-03 Thread Jaewon Kim
On 2015년 08월 04일 00:33, Minchan Kim wrote: > On Mon, Aug 03, 2015 at 11:55:46PM +0900, Jaewon Kim wrote: >> >> >> On 2015년 08월 03일 21:27, Minchan Kim wrote: >>> Hello, >>> >>> On Mon, Aug 03, 2015 at 07:18:27PM +0900, Jaewon Kim wrote

Re: [PATCH] vmscan: reclaim_clean_pages_from_list() must count mlocked pages

2015-08-03 Thread Jaewon Kim
On 2015년 08월 03일 21:27, Minchan Kim wrote: > Hello, > > On Mon, Aug 03, 2015 at 07:18:27PM +0900, Jaewon Kim wrote: >> reclaim_clean_pages_from_list() decreases NR_ISOLATED_FILE by returned >> value from shrink_page_list(). But mlocked pages in the isolated >> cle

[PATCH] vmscan: reclaim_clean_pages_from_list() must count mlocked pages

2015-08-03 Thread Jaewon Kim
. Signed-off-by: Jaewon Kim --- mm/vmscan.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 5e8eadd..5837695 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -849,6 +849,7 @@ static unsigned long shrink_page_list(struct list_head

[PATCH] extcon: max77843: Clear IRQ bits state before request IRQ

2015-06-04 Thread Jaewon Kim
IRQ signal before driver probe is needless because driver sends current state after platform booting done. So, this patch clears MUIC IRQ bits before request IRQ. Signed-off-by: Jaewon Kim --- drivers/extcon/extcon-max77843.c |9 + 1 file changed, 9 insertions(+) diff --git a

Re: [PATCH RESEND] phy: exynos5-usbdrd: Add to support for Exynos5433 SoC

2015-03-30 Thread Jaewon Kim
Hi Kishon. Could you check my patch?? On 26/03/2015 14:16, Vivek Gautam wrote: On Thu, Mar 26, 2015 at 7:48 AM, Jaewon Kim wrote: This patch adds driver data to support for Exynos5433 SoC. The Exynos5433 has one USB3.0 Host and USB3.0 DRD(Dual Role Device). Exynos5433 is simplar to Eyxnos7

[PATCH RESEND] phy: exynos5-usbdrd: Add to support for Exynos5433 SoC

2015-03-25 Thread Jaewon Kim
This patch adds driver data to support for Exynos5433 SoC. The Exynos5433 has one USB3.0 Host and USB3.0 DRD(Dual Role Device). Exynos5433 is simplar to Eyxnos7 but Exynos5433 have one more USB3.0 Host controller. Signed-off-by: Jaewon Kim Tested-by: Chanwoo Choi --- .../devicetree/bindings

[PATCH] phy: exynos5-usbdrd: Add to support for Exynos5433 SoC

2015-03-12 Thread Jaewon Kim
This patch adds driver data to support for Exynos5433 SoC. The Exynos5433 has one USB3.0 Host and USB3.0 DRD(Dual Role Device). Exynos5433 is simplar to Eyxnos7 but Exynos5433 have one more USB3.0 Host controller. Signed-off-by: Jaewon Kim --- .../devicetree/bindings/phy/samsung-phy.txt

[PATCH] ARM: dts: remove usb2-phy on Exynos5 series SoC

2015-03-12 Thread Jaewon Kim
Exynos5 series SoC does not have usb2-phy on USB3.0 Controller. It is controlled by only usb3-phy. So, this patch remove usb2-phy property. Signed-off-by: Jaewon Kim --- arch/arm/boot/dts/exynos5250.dtsi |4 ++-- arch/arm/boot/dts/exynos5420.dtsi |8 2 files changed, 6

Re: [PATCH v7 4/5] Input: add haptic drvier on max77843

2015-03-02 Thread Jaewon Kim
Hi Dmitry, On 03/03/2015 02:32, Dmitry Torokhov wrote: On Mon, Mar 02, 2015 at 07:10:37PM +0900, Jaewon Kim wrote: This patch adds support for haptic driver on max77843 MFD(Multi Function Device) with PMIC, MUIC, LED, CHARGER. This driver supports external pwm and LRA(Linear Resonant Actuator

Re: [PATCH v7 1/5] mfd: max77843: Add max77843 MFD driver core driver

2015-03-02 Thread Jaewon Kim
Hi Lee Jones, On 02/03/2015 19:20, Lee Jones wrote: On Mon, 02 Mar 2015, Jaewon Kim wrote: This patch adds MAX77843 core/irq driver to support PMIC, MUIC(Micro USB Interface Controller), Charger, Fuel Gauge, LED and Haptic device. Cc: Lee Jones Signed-off-by: Jaewon Kim Signed-off-by

[PATCH v7 1/5] mfd: max77843: Add max77843 MFD driver core driver

2015-03-02 Thread Jaewon Kim
This patch adds MAX77843 core/irq driver to support PMIC, MUIC(Micro USB Interface Controller), Charger, Fuel Gauge, LED and Haptic device. Cc: Lee Jones Signed-off-by: Jaewon Kim Signed-off-by: Beomho Seo --- drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile

[PATCH v7 4/5] Input: add haptic drvier on max77843

2015-03-02 Thread Jaewon Kim
This patch adds support for haptic driver on max77843 MFD(Multi Function Device) with PMIC, MUIC, LED, CHARGER. This driver supports external pwm and LRA(Linear Resonant Actuator) motor. And it supports ff-memless interface from inpu framework. Cc: Dmitry Torokhov Signed-off-by: Jaewon Kim

[PATCH v7 0/5] Add new MFD driver for MAX77843

2015-03-02 Thread Jaewon Kim
config and use regmap_read. - Add i2c_unregister_device function on *_remove function. - Fix typo in Kconfig. Doc - Remove unnecessary lines. - Add example of charger regulator.Beomho Seo (2): Jaewon Kim (3): mfd: max77843: Add max77843 MFD driver core driver Input: add haptic drvier o

[PATCH v7 3/5] power: max77843_battery: Add Max77843 fuel gauge device driver

2015-03-02 Thread Jaewon Kim
From: Beomho Seo This patch adds device driver of max77843 fuel gauge. The driver support for battery fuel gauge in Maxim Max77843. It is fuel-gauge systems for lithuum-ion batteries in handled and portable devices. Cc: Sebastian Reichel Signed-off-by: Beomho Seo --- drivers/power/Kconfig

[PATCH v7 2/5] power: max77843_charger: Add Max77843 charger device driver

2015-03-02 Thread Jaewon Kim
From: Beomho Seo This patch adds device driver of max77843 charger. This driver provide initialize each charging mode(e.g. fast charge, top-off mode and constant charging mode so on.). Additionally, control charging paramters to use i2c interface. Cc: Sebastian Reichel Signed-off-by: Beomho Seo

[PATCH v7 5/5] Documentation: Add device tree bindings document for max77843

2015-03-02 Thread Jaewon Kim
Add document describing device tree bindings for max77843 MFD. Drivers: MFD core, regulator, extcon, charger and fuelgauge. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Lee Jones Cc: Sebastian Reichel Cc: Dmitry Torokhov Signed-off-by: Jaewon Kim

Re: [PATCH v6 4/5] Input: add haptic drvier on max77843

2015-03-01 Thread Jaewon Kim
HI Dmitry, On 28/02/2015 02:49, Dmitry Torokhov wrote: On Thu, Feb 26, 2015 at 11:49:36AM +0900, Jaewon Kim wrote: Hi Dmitry, On 26/02/2015 10:23, Dmitry Torokhov wrote: Hi Jaewon, On Tue, Feb 24, 2015 at 10:29:07AM +0900, Jaewon Kim wrote: +static void max77843_haptic_play_work(struct

Re: [PATCH v6 1/5] mfd: max77843: Add max77843 MFD driver core driver

2015-02-25 Thread Jaewon Kim
Hi Lee Jones, On 26/02/2015 01:47, Lee Jones wrote: On Tue, 24 Feb 2015, Jaewon Kim wrote: This patch adds MAX77843 core/irq driver to support PMIC, MUIC(Micro USB Interface Controller), Charger, Fuel Gauge, LED and Haptic device. Cc: Lee Jones Signed-off-by: Jaewon Kim Signed-off-by

Re: [PATCH v6 4/5] Input: add haptic drvier on max77843

2015-02-25 Thread Jaewon Kim
Hi Dmitry, On 26/02/2015 10:23, Dmitry Torokhov wrote: Hi Jaewon, On Tue, Feb 24, 2015 at 10:29:07AM +0900, Jaewon Kim wrote: +static void max77843_haptic_play_work(struct work_struct *work) +{ + struct max77843_haptic *haptic = + container_of(work, struct

[PATCH v6 5/5] Documentation: Add device tree bindings document for max77843

2015-02-23 Thread Jaewon Kim
Add document describing device tree bindings for max77843 MFD. Drivers: MFD core, regulator, extcon, charger and fuelgauge. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Lee Jones Cc: Sebastian Reichel Cc: Dmitry Torokhov Signed-off-by: Jaewon Kim

[PATCH v6 0/5] Add new MFD driver for MAX77843

2015-02-23 Thread Jaewon Kim
onfig. Doc - Remove unnecessary lines. - Add example of charger regulator. Beomho Seo (2): power: max77843_charger: Add Max77843 charger device driver power: max77843_battery: Add Max77843 fuel gauge device driver Jaewon Kim (3): mfd: max77843: Add max77843 MFD driver core driver Input:

[PATCH v6 1/5] mfd: max77843: Add max77843 MFD driver core driver

2015-02-23 Thread Jaewon Kim
This patch adds MAX77843 core/irq driver to support PMIC, MUIC(Micro USB Interface Controller), Charger, Fuel Gauge, LED and Haptic device. Cc: Lee Jones Signed-off-by: Jaewon Kim Signed-off-by: Beomho Seo --- drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile

[PATCH v6 3/5] power: max77843_battery: Add Max77843 fuel gauge device driver

2015-02-23 Thread Jaewon Kim
From: Beomho Seo This patch adds device driver of max77843 fuel gauge. The driver support for battery fuel gauge in Maxim Max77843. It is fuel-gauge systems for lithuum-ion batteries in handled and portable devices. Cc: Sebastian Reichel Signed-off-by: Beomho Seo --- drivers/power/Kconfig

[PATCH v6 2/5] power: max77843_charger: Add Max77843 charger device driver

2015-02-23 Thread Jaewon Kim
From: Beomho Seo This patch adds device driver of max77843 charger. This driver provide initialize each charging mode(e.g. fast charge, top-off mode and constant charging mode so on.). Additionally, control charging parameters to use i2c interface. Cc: Sebastian Reichel Signed-off-by: Beomho Se

[PATCH v6 4/5] Input: add haptic drvier on max77843

2015-02-23 Thread Jaewon Kim
This patch adds support for haptic driver on max77843 MFD(Multi Function Device) with PMIC, MUIC, LED, CHARGER. This driver supports external pwm and LRA(Linear Resonant Actuator) motor. And it supports ff-memless interface from inpu framework. Cc: Dmitry Torokhov Signed-off-by: Jaewon Kim

Re: [PATCH v4 4/5] Input: add haptic drvier on max77843

2015-02-23 Thread Jaewon Kim
Hi Dmitry Torokhov, On 02/24/2015 02:26 AM, Dmitry Torokhov wrote: Hi Jaew9on, On Mon, Feb 23, 2015 at 05:09:50PM +0900, Jaewon Kim wrote: This patch adds support for haptic driver on max77843 MFD(Multi Function Device) with PMIC, MUIC, LED, CHARGER. This driver supports external pwm and LRA

[PATCH v5 4/5] Input: add haptic drvier on max77843

2015-02-23 Thread Jaewon Kim
This patch adds support for haptic driver on max77843 MFD(Multi Function Device) with PMIC, MUIC, LED, CHARGER. This driver supports external pwm and LRA(Linear Resonant Actuator) motor. And it supports ff-memless interface from inpu framework. Cc: Dmitry Torokhov Signed-off-by: Jaewon Kim

[PATCH v5 2/5] power: max77843_charger: Add Max77843 charger device driver

2015-02-23 Thread Jaewon Kim
From: Beomho Seo This patch adds device driver of max77843 charger. This driver provide initialize each charging mode(e.g. fast charge, top-off mode and constant charging mode so on.). Additionally, control charging parameters to use i2c interface. Cc: Sebastian Reichel Signed-off-by: Beomho Se

[PATCH v5 0/5] Add new MFD drvier for MAX77843

2015-02-23 Thread Jaewon Kim
mho Seo (2): power: max77843_charger: Add Max77843 charger device driver power: max77843_battery: Add Max77843 fuel gauge device driver Jaewon Kim (3): mfd: max77843: Add max77843 MFD driver core driver Input: add haptic drvier on max77843 Documentation: Add device tree bindings document fo

[PATCH v5 3/5] power: max77843_battery: Add Max77843 fuel gauge device driver

2015-02-23 Thread Jaewon Kim
From: Beomho Seo This patch adds device driver of max77843 fuel gauge. The driver support for battery fuel gauge in Maxim Max77843. It is fuel-gauge systems for lithuum-ion batteries in handled and portable devices. Cc: Sebastian Reichel Signed-off-by: Beomho Seo --- drivers/power/Kconfig

[PATCH v5 1/5] mfd: max77843: Add max77843 MFD driver core driver

2015-02-23 Thread Jaewon Kim
This patch adds MAX77843 core/irq driver to support PMIC, MUIC(Micro USB Interface Controller), Charger, Fuel Gauge, LED and Haptic device. Cc: Lee Jones Signed-off-by: Jaewon Kim Signed-off-by: Beomho Seo --- drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile

[PATCH v5 5/5] Documentation: Add device tree bindings document for max77843

2015-02-23 Thread Jaewon Kim
Add document describing device tree bindings for max77843 MFD. Drivers: MFD core, regulator, extcon, charger and fuelgauge. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Lee Jones Cc: Sebastian Reichel Cc: Dmitry Torokhov Signed-off-by: Jaewon Kim

Re: [PATCH v4 0/5] Add new MFD drvier for MAX77843

2015-02-23 Thread Jaewon Kim
using I2C. On 02/23/2015 05:09 PM, Jaewon Kim wrote: Changes in v4: MFD Core - fix indentation HAPTIC - Add haptic driver Changes in v3: MFD Core - fix wrong description and indentation in header. - remove unnecessary variable. Regulator - use ARRAY_SIZE() instead of define. Changes in

[PATCH v4 4/5] Input: add haptic drvier on max77843

2015-02-23 Thread Jaewon Kim
This patch adds support for haptic driver on max77843 MFD(Multi Function Device) with PMIC, MUIC, LED, CHARGER. This driver supports external pwm and LRA(Linear Resonant Actuator) motor. And it supports ff-memless interface from inpu framework. Cc: Dmitry Torokhov Signed-off-by: Jaewon Kim

[PATCH v4 5/5] Documentation: Add device tree bindings document for max77843

2015-02-23 Thread Jaewon Kim
Add document describing device tree bindings for max77843 MFD. Drivers: MFD core, regulator, extcon, charger and fuelgauge. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Lee Jones Cc: Sebastian Reichel Cc: Dmitry Torokhov Signed-off-by: Jaewon Kim

[PATCH v4 2/5] power: max77843_charger: Add Max77843 charger device driver

2015-02-23 Thread Jaewon Kim
From: Beomho Seo This patch adds device driver of max77843 charger. This driver provide initialize each charging mode(e.g. fast charge, top-off mode and constant charging mode so on.). Additionally, control charging paramters to use i2c interface. Cc: Sebastian Reichel Signed-off-by: Beomho Seo

[PATCH v4 3/5] power: max77843_battery: Add Max77843 fuel gauge device driver

2015-02-23 Thread Jaewon Kim
From: Beomho Seo This patch adds device driver of max77843 fuel gauge. The driver support for battery fuel gauge in Maxim Max77843. It is fuel-gauge systems for lithuum-ion batteries in handled and portable devices. Cc: Sebastian Reichel Signed-off-by: Beomho Seo --- drivers/power/Kconfig

[PATCH v4 1/5] mfd: max77843: Add max77843 MFD driver core driver

2015-02-23 Thread Jaewon Kim
This patch adds MAX77843 core/irq driver to support PMIC, MUIC(Micro USB Interface Controller), Charger, Fuel Gauge, LED and Haptic device. Cc: Lee Jones Signed-off-by: Jaewon Kim Signed-off-by: Beomho Seo --- drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile

[PATCH v4 0/5] Add new MFD drvier for MAX77843

2015-02-23 Thread Jaewon Kim
function on *_remove function. - Fix typo in Kconfig. Doc - Remove unnecessary lines. - Add example of charger regulator. Beomho Seo (2): power: max77843_charger: Add Max77843 charger device driver power: max77843_battery: Add Max77843 fuel gauge device driver Jaewon Kim (3): mfd: max77843

Re: [PATCH v3 1/6] mfd: max77843: Add max77843 MFD driver core driver

2015-02-22 Thread Jaewon Kim
Hi Lee Jones, On 02/16/2015 10:51 PM, Lee Jones wrote: On Wed, 04 Feb 2015, Jaewon Kim wrote: This patch adds MAX77843 core/irq driver to support PMIC, MUIC(Micro USB Interface Controller), Charger, Fuel Gauge, LED and Haptic device. Cc: Lee Jones Signed-off-by: Jaewon Kim Signed-off-by

  1   2   3   >