[PATCH] virtio: replace constant parameter '1' with num

2020-12-08 Thread liush
'num' can represent the value of out_sgs(in_sags), no need to pass in constant parameters in 'virtqueue_add'. Signed-off-by: liush --- drivers/virtio/virtio_ring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/virtio/virtio_rin

[PATCH 2/2] f2fs: don't check PAGE_SIZE again in sanity_check_raw_super()

2020-12-07 Thread liush
From: Yangtao Li Many flash devices read and write a single IO based on a multiple of 4KB, and we support only 4KB page cache size now. Since we already check page size in init_f2fs_fs(), so remove page size check in sanity_check_raw_super(). Signed-off-by: Yangtao Li Signed-off-by: Shaohua Li

[PATCH 1/2] f2fs: convert to F2FS_*_INO macro

2020-12-07 Thread liush
From: Yangtao Li Use F2FS_ROOT_INO, F2FS_NODE_INO and F2FS_META_INO macro for better code readability. Signed-off-by: Yangtao Li Signed-off-by: Shaohua Liu --- fs/f2fs/super.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 00e

[PATCH 2/2] f2fs: don't check PAGE_SIZE again in sanity_check_raw_super()

2020-12-07 Thread liush
From: Yangtao Li Many flash devices read and write a single IO based on a multiple of 4KB, and we support only 4KB page cache size now. Since we already check page size in init_f2fs_fs(), so remove page size check in sanity_check_raw_super(). Signed-off-by: Yangtao Li Signed-off-by: Shaohua Li

[PATCH 1/2] f2fs: convert to F2FS_*_INO macro

2020-12-07 Thread liush
From: Yangtao Li Use F2FS_ROOT_INO, F2FS_NODE_INO and F2FS_META_INO macro for better code readability. Signed-off-by: Yangtao Li Signed-off-by: Shaohua Liu --- fs/f2fs/super.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 00e

[PATCH v4] riscv: fix pfn_to_virt err in do_page_fault().

2020-10-26 Thread liush
From: Shaohua Liu The argument to pfn_to_virt() should be pfn not the value of CSR_SATP. Reviewed-by: Palmer Dabbelt Reviewed-by: Anup Patel Signed-off-by: liush --- arch/riscv/mm/fault.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/riscv/mm/fault.c b/arch

[PATCH v3] riscv: fix pfn_to_virt err in do_page_fault().

2020-10-26 Thread liush
From: Liu Shaohua The argument to pfn_to_virt() should be pfn not the value of CSR_SATP. Reviewed-by: Palmer Dabbelt Reviewed-by: Anup Patel Signed-off-by: liush --- arch/riscv/mm/fault.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/riscv/mm/fault.c b/arch

[v3] cpuidle: add riscv cpuidle driver

2020-09-24 Thread liush
This patch adds a simple cpuidle driver for RISC-V systems using the WFI state. Other states will be supported in the future. Reported-by: kernel test robot Signed-off-by: liush --- Changes in v3: - fix the issue reported by kernel test robot "drivers/cpuidle/cpuidle-riscv.c:22:12: wa

[v2] cpuidle: add riscv cpuidle driver

2020-09-21 Thread liush
This patch adds a simple cpuidle driver for RISC-V systems using the WFI state. Other states will be supported in the future. Signed-off-by: liush --- Changes in v2: - call "mb()" before run "WFI" in cpu_do_idle - modify commit description - place "select CPU_ID

[V2] riscv: fix pfn_to_virt err in do_page_fault().

2020-09-18 Thread liush
The argument to pfn_to_virt() should be pfn not the value of CSR_SATP. Signed-off-by: liush --- arch/riscv/mm/fault.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/riscv/mm/fault.c b/arch/riscv/mm/fault.c index 716d64e..3e560ec13 100644 --- a/arch/riscv/mm/fault.c

[PATCH] riscv: fix pfn_to_virt err in do_page_fault().

2020-09-17 Thread liush
The argument to pfn_to_virt() should be pfn not the value of CSR_SATP. Signed-off-by: liush --- arch/riscv/mm/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/mm/fault.c b/arch/riscv/mm/fault.c index 716d64e..9b4e088 100644 --- a/arch/riscv/mm/fault.c +++ b

回复:[PATCH] cpuidle: add riscv cpuidle driver

2020-09-15 Thread liush
Hi Palmer, > > This patch adds a cpuidle driver for systems based RISCV architecture. > > This patch supports state WFI. Other states will be supported in the > > future. > > > > Signed-off-by: liush > > --- > > arch/riscv/Kconfig | 7 +

[PATCH] cpuidle: add riscv cpuidle driver

2020-09-13 Thread liush
This patch adds a cpuidle driver for systems based RISCV architecture. This patch supports state WFI. Other states will be supported in the future. Signed-off-by: liush --- arch/riscv/Kconfig | 7 + arch/riscv/include/asm/cpuidle.h | 7 + arch/riscv/kernel/Makefile