Re: [PATCH] watchdog: imx2_wdt: use new_timeout value to override the old

2017-07-19 Thread yjin
On 2017年07月20日 11:18, Guenter Roeck wrote: On 07/19/2017 07:45 PM, yanjiang@windriver.com wrote: From: Yanjiang Jin Without this patch we couldn't change the timeout value of imx2_wdt. Signed-off-by: Yanjiang Jin ---

Re: [PATCH] watchdog: imx2_wdt: use new_timeout value to override the old

2017-07-19 Thread yjin
On 2017年07月20日 11:18, Guenter Roeck wrote: On 07/19/2017 07:45 PM, yanjiang@windriver.com wrote: From: Yanjiang Jin Without this patch we couldn't change the timeout value of imx2_wdt. Signed-off-by: Yanjiang Jin --- drivers/watchdog/imx2_wdt.c | 3 +++ 1 file changed, 3

Re: [PATCH] socfpga_a10: reset CPU1 in socfpga_cpu_kill()

2017-05-15 Thread yjin
On 2017年05月12日 22:36, Mark Rutland wrote: On Wed, May 10, 2017 at 01:13:04AM -0400, yanjiang@windriver.com wrote: From: Yanjiang Jin Kexec's second kernel would hang if CPU1 isn't reset. Signed-off-by: Yanjiang Jin ---

Re: [PATCH] socfpga_a10: reset CPU1 in socfpga_cpu_kill()

2017-05-15 Thread yjin
On 2017年05月12日 22:36, Mark Rutland wrote: On Wed, May 10, 2017 at 01:13:04AM -0400, yanjiang@windriver.com wrote: From: Yanjiang Jin Kexec's second kernel would hang if CPU1 isn't reset. Signed-off-by: Yanjiang Jin --- arch/arm/mach-socfpga/platsmp.c | 12 +++- 1 file

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-12-01 Thread yjin
On 2016年12月02日 13:15, Pan Xinhui wrote: 在 2016/12/2 12:35, yjin 写道: On 2016年12月02日 12:22, Balbir Singh wrote: On Fri, Dec 2, 2016 at 3:15 PM, Michael Ellerman <m...@ellerman.id.au> wrote: yanjiang@windriver.com writes: diff --git a/arch/powerpc/include/asm/cputime.h b/arch/p

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-12-01 Thread yjin
On 2016年12月02日 13:15, Pan Xinhui wrote: 在 2016/12/2 12:35, yjin 写道: On 2016年12月02日 12:22, Balbir Singh wrote: On Fri, Dec 2, 2016 at 3:15 PM, Michael Ellerman wrote: yanjiang@windriver.com writes: diff --git a/arch/powerpc/include/asm/cputime.h b/arch/powerpc/include/asm/cputime.h

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-12-01 Thread yjin
On 2016年12月02日 12:22, Balbir Singh wrote: On Fri, Dec 2, 2016 at 3:15 PM, Michael Ellerman wrote: yanjiang@windriver.com writes: diff --git a/arch/powerpc/include/asm/cputime.h b/arch/powerpc/include/asm/cputime.h index 4f60db0..4423e97 100644 ---

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-12-01 Thread yjin
On 2016年12月02日 12:22, Balbir Singh wrote: On Fri, Dec 2, 2016 at 3:15 PM, Michael Ellerman wrote: yanjiang@windriver.com writes: diff --git a/arch/powerpc/include/asm/cputime.h b/arch/powerpc/include/asm/cputime.h index 4f60db0..4423e97 100644 --- a/arch/powerpc/include/asm/cputime.h

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-11-30 Thread yjin
Hi Scott, Thanks for your reminder! I rephrased it as below: -#define cputime64_to_clock_t(ct) cputime_to_clock_t((cputime_t)(ct)) +#define cputime64_to_clock_t(ct) \ + (u64)(cputime_to_clock_t((cputime_t)(ct))) and rebuilt the kernel, no warnings found. New patch is attached,

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-11-30 Thread yjin
Hi Scott, Thanks for your reminder! I rephrased it as below: -#define cputime64_to_clock_t(ct) cputime_to_clock_t((cputime_t)(ct)) +#define cputime64_to_clock_t(ct) \ + (u64)(cputime_to_clock_t((cputime_t)(ct))) and rebuilt the kernel, no warnings found. New patch is attached,

Re: [PATCH] crypto: rsa: rename two rsa key files

2016-11-08 Thread yjin
Thanks for Herbert's reminder. I have drop this patch in a previous mail. Regards! Yanjiang On 2016年11月08日 20:09, Herbert Xu wrote: yanjiang@windriver.com wrote: From: Yanjiang Jin This is to eliminate the below compile error: crypto/rsa_helper.c:19:29:

Re: [PATCH] crypto: rsa: rename two rsa key files

2016-11-08 Thread yjin
Thanks for Herbert's reminder. I have drop this patch in a previous mail. Regards! Yanjiang On 2016年11月08日 20:09, Herbert Xu wrote: yanjiang@windriver.com wrote: From: Yanjiang Jin This is to eliminate the below compile error: crypto/rsa_helper.c:19:29: fatal error: rsaprivkey-asn1.h:

Re: [RT PATCH] sched: rt: fix two possible deadlocks in push_irq_work_func

2015-11-15 Thread yjin
Hi Thomas, Thanks for your help. I have tested your patch this morning, it seems well. Could you tell me when will you send your formal patch? And please CC me when you send your patch. Regards! Yanjiang On 2015年11月15日 19:05, Thomas Gleixner wrote: On Sun, 15 Nov 2015, Thomas Gleixner

Re: [RT PATCH] sched: rt: fix two possible deadlocks in push_irq_work_func

2015-11-15 Thread yjin
Hi Thomas, Thanks for your help. I have tested your patch this morning, it seems well. Could you tell me when will you send your formal patch? And please CC me when you send your patch. Regards! Yanjiang On 2015年11月15日 19:05, Thomas Gleixner wrote: On Sun, 15 Nov 2015, Thomas Gleixner

Re: [RT PATCH] sched: rt: fix two possible deadlocks in push_irq_work_func

2015-11-13 Thread yjin
On 2015年11月14日 12:25, Steven Rostedt wrote: On Sat, 14 Nov 2015 10:53:18 +0800 wrote: From: Yanjiang Jin This can only happen in RT kernel due to run_timer_softirq() calls irq_work_tick() when CONFIG_PREEMPT_RT_FULL is enabled as below: static void run_timer_softirq(struct softirq_action

Re: [RT PATCH] sched: rt: fix two possible deadlocks in push_irq_work_func

2015-11-13 Thread yjin
On 2015年11月14日 12:25, Steven Rostedt wrote: On Sat, 14 Nov 2015 10:53:18 +0800 wrote: From: Yanjiang Jin This can only happen in RT kernel due to run_timer_softirq() calls irq_work_tick() when CONFIG_PREEMPT_RT_FULL is enabled as

Re: [PATCH] mips: vmcore: forced convert 'hdr' in elf_check_arch()

2015-09-20 Thread yjin
It seems the last mail has been blocked, resend it. On 2015年09月21日 10:16, yjin wrote: The new version patch only modifies mips/elf.h, so add Ralf Baechle and cc linux-m...@linux-mips.org. This is a V2 patch, attach the V1 patch for reference. Thanks! Yanjiang On 2015年09月18日 15:42, yanjiang

Re: [PATCH] mips: vmcore: forced convert 'hdr' in elf_check_arch()

2015-09-20 Thread yjin
The new version patch only modifies mips/elf.h, so add Ralf Baechle and cc linux-m...@linux-mips.org. This is a V2 patch, attach the V1 patch for reference. Thanks! Yanjiang On 2015年09月18日 15:42, yanjiang@windriver.com wrote: From: Yanjiang Jin elf_check_arch() will be called both in

Re: [PATCH] mips: vmcore: forced convert 'hdr' in elf_check_arch()

2015-09-20 Thread yjin
The new version patch only modifies mips/elf.h, so add Ralf Baechle and cc linux-m...@linux-mips.org. This is a V2 patch, attach the V1 patch for reference. Thanks! Yanjiang On 2015年09月18日 15:42, yanjiang@windriver.com wrote: From: Yanjiang Jin

Re: [PATCH] mips: vmcore: forced convert 'hdr' in elf_check_arch()

2015-09-20 Thread yjin
It seems the last mail has been blocked, resend it. On 2015年09月21日 10:16, yjin wrote: The new version patch only modifies mips/elf.h, so add Ralf Baechle and cc linux-m...@linux-mips.org. This is a V2 patch, attach the V1 patch for reference. Thanks! Yanjiang On 2015年09月18日 15:42, yanjiang

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-17 Thread yjin
On 2015年09月16日 18:39, Minfei Huang wrote: On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: From: Yanjiang Jin Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to call parse_crash_elf64_headers() or parse_crash_elf32_headers(). But this happens in run time, not

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-17 Thread yjin
On 2015年09月16日 18:39, Minfei Huang wrote: On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: From: Yanjiang Jin Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to call parse_crash_elf64_headers() or parse_crash_elf32_headers(). But

Re: [PATCH 2/3] crypto: caam_rng: fix rng_unmap_ctx's DMA_UNMAP size problem

2015-03-04 Thread yjin
On 2015年03月05日 02:36, Kim Phillips wrote: On Wed, 4 Mar 2015 13:33:22 +0800 yjin wrote: On 2015年03月04日 03:31, Kim Phillips wrote: On Tue, 3 Mar 2015 14:50:52 +0800 wrote: - dma_unmap_single(jrdev, ctx->sh_desc_dma, DESC_RNG_

Re: [PATCH 2/3] crypto: caam_rng: fix rng_unmap_ctx's DMA_UNMAP size problem

2015-03-04 Thread yjin
On 2015年03月05日 02:36, Kim Phillips wrote: On Wed, 4 Mar 2015 13:33:22 +0800 yjin yanjiang@windriver.com wrote: On 2015年03月04日 03:31, Kim Phillips wrote: On Tue, 3 Mar 2015 14:50:52 +0800 yanjiang@windriver.com wrote: - dma_unmap_single(jrdev, ctx-sh_desc_dma

Re: [PATCH 2/3] crypto: caam_rng: fix rng_unmap_ctx's DMA_UNMAP size problem

2015-03-03 Thread yjin
On 2015年03月04日 03:31, Kim Phillips wrote: On Tue, 3 Mar 2015 14:50:52 +0800 wrote: - dma_unmap_single(jrdev, ctx->sh_desc_dma, DESC_RNG_LEN, -DMA_TO_DEVICE); + dma_unmap_single(jrdev, ctx->sh_desc_dma, +

Re: [PATCH 1/3] crypto: caam: fix some compile warnings

2015-03-03 Thread yjin
On 2015年03月04日 10:32, yjin wrote: On 2015年03月04日 02:59, Kim Phillips wrote: On Tue, 3 Mar 2015 14:50:51 +0800 wrote: This commit is to avoid the below warnings: drivers/crypto/caam/sg_sw_sec4.h:88:12: warning: 'dma_map_sg_chained' defined but not used [-Wunused-function] static int

Re: [PATCH 1/3] crypto: caam: fix some compile warnings

2015-03-03 Thread yjin
On 2015年03月04日 02:59, Kim Phillips wrote: On Tue, 3 Mar 2015 14:50:51 +0800 wrote: This commit is to avoid the below warnings: drivers/crypto/caam/sg_sw_sec4.h:88:12: warning: 'dma_map_sg_chained' defined but not used [-Wunused-function] static int dma_map_sg_chained(struct device *dev,

Re: [PATCH 1/3] crypto: caam: fix some compile warnings

2015-03-03 Thread yjin
On 2015年03月04日 10:32, yjin wrote: On 2015年03月04日 02:59, Kim Phillips wrote: On Tue, 3 Mar 2015 14:50:51 +0800 yanjiang@windriver.com wrote: This commit is to avoid the below warnings: drivers/crypto/caam/sg_sw_sec4.h:88:12: warning: 'dma_map_sg_chained' defined but not used [-Wunused

Re: [PATCH 2/3] crypto: caam_rng: fix rng_unmap_ctx's DMA_UNMAP size problem

2015-03-03 Thread yjin
On 2015年03月04日 03:31, Kim Phillips wrote: On Tue, 3 Mar 2015 14:50:52 +0800 yanjiang@windriver.com wrote: - dma_unmap_single(jrdev, ctx-sh_desc_dma, DESC_RNG_LEN, -DMA_TO_DEVICE); + dma_unmap_single(jrdev, ctx-sh_desc_dma, +

Re: [PATCH 1/3] crypto: caam: fix some compile warnings

2015-03-03 Thread yjin
On 2015年03月04日 02:59, Kim Phillips wrote: On Tue, 3 Mar 2015 14:50:51 +0800 yanjiang@windriver.com wrote: This commit is to avoid the below warnings: drivers/crypto/caam/sg_sw_sec4.h:88:12: warning: 'dma_map_sg_chained' defined but not used [-Wunused-function] static int

Re: [PATCH 3/4] crypto: caamhash: add two missed dma_mapping_error

2015-03-02 Thread yjin
On 2015年03月02日 19:53, Horia Geantă wrote: On 2/28/2015 8:00 AM, yanjiang@windriver.com wrote: From: Yanjiang Jin Add two missed dma_mapping_error() after dma_map_single(). Signed-off-by: Yanjiang Jin --- drivers/crypto/caam/caamhash.c | 8 1 file changed, 8 insertions(+)

Re: [PATCH 4/4] crypto: caamhash: replace kmalloc with kzalloc

2015-03-02 Thread yjin
On 2015年03月02日 19:03, Horia Geantă wrote: On 2/28/2015 8:00 AM, yanjiang@windriver.com wrote: From: Yanjiang Jin This can make sure we get a clean memory, else system would report the below warning: I'd avoid using kzalloc, it's an overhead on the hot path. kmalloc can be used with a

Re: [PATCH 4/4] crypto: caamhash: replace kmalloc with kzalloc

2015-03-02 Thread yjin
On 2015年03月02日 19:03, Horia Geantă wrote: On 2/28/2015 8:00 AM, yanjiang@windriver.com wrote: From: Yanjiang Jin yanjiang@windriver.com This can make sure we get a clean memory, else system would report the below warning: I'd avoid using kzalloc, it's an overhead on the hot path.

Re: [PATCH 3/4] crypto: caamhash: add two missed dma_mapping_error

2015-03-02 Thread yjin
On 2015年03月02日 19:53, Horia Geantă wrote: On 2/28/2015 8:00 AM, yanjiang@windriver.com wrote: From: Yanjiang Jin yanjiang@windriver.com Add two missed dma_mapping_error() after dma_map_single(). Signed-off-by: Yanjiang Jin yanjiang@windriver.com ---