is patch, we can see
the following two sysfs interfaces under DEBUG_FS.
/sys/kernel/debug/memblock/memory
/sys/kernel/debug/memblock/reserved
Signed-off-by: Tiezhu Yang
---
arch/mips/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 44a47ad..f65da197 10
Tiezhu Yang (2):
MIPS: Move memblock_dump_all() to the end of setup_arch()
MIPS: Select ARCH_KEEP_MEMBLOCK to enable sysfs memblock debug
arch/mips/Kconfig| 1 +
arch/mips/kernel/setup.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
--
2.1.0
In order to get more memblock configuration with memblock=debug in the boot
cmdline, move memblock_dump_all() to the end of setup_arch(), this can help
us to get dmi_setup() and resource_init() memblock info, at least for now.
Signed-off-by: Tiezhu Yang
---
arch/mips/kernel/setup.c | 4 ++--
1
declaration of prom_init_memory() and add the
declaration of szmem() in loongson.h to avoid build error.
Signed-off-by: Youling Tang
Signed-off-by: Jinyang He
Signed-off-by: Tiezhu Yang
---
arch/mips/Kconfig| 3 +-
arch/mips/configs/loongson3_defconfig| 2
table/linux.git/commit/?h=linux-4.19.y=bc571404829755e4a9504cc5fbc636fea80b2d83
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y=81d7c56d6fab5ccbf522c47a655cd427808679f2
Signed-off-by: Tiezhu Yang
---
scripts/checkpatch.pl | 3 ++-
1 file changed, 2 insert
table/linux.git/commit/?h=linux-4.19.y=bc571404829755e4a9504cc5fbc636fea80b2d83
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y=81d7c56d6fab5ccbf522c47a655cd427808679f2
Signed-off-by: Tiezhu Yang
---
RESEND to Andrew Morton
scripts/checkpatch.pl | 3 ++-
On 11/25/2020 11:51 AM, Joe Perches wrote:
On Wed, 2020-11-25 at 11:35 +0800, Tiezhu Yang wrote:
When backport the upstream commit to the internal LTS kernel version,
we usually use the following description [1] [2]:
[ Upstream commit cc6528bc9a0c901c83b8220a2e2617f3354d6dd9 ]
or
commit
On 11/25/2020 02:27 PM, Chunfeng Yun wrote:
On Tue, 2020-11-24 at 19:31 -0800, Randy Dunlap wrote:
On 11/24/20 6:24 PM, Chunfeng Yun wrote:
Hi Tiezhu,
On Tue, 2020-11-24 at 17:47 +0800, Tiezhu Yang wrote:
devm_ioremap_resource() will be not built in lib/devres.c if
CONFIG_HAS_IOMEM
instance->port_base =
devm_ioremap_resource(>dev, );
Reported-by: kernel test robot
Signed-off-by: Tiezhu Yang
Acked-by: Randy Dunlap
---
drivers/phy/mediatek/Kconfig | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/K
nd I/D Cache as per
core chahe, it will confuse userspace program otherwise.
Also I do think the level should be continues.
With this patch, we can see the vcache info as L2 cache
and scache info as L3 cache on the Loongson 3A3000
and 3A4000 platform.
Tested-by: Tiezhu Yang
Thanks
- Jiaxun
Thomas.
rectory
[root@linux loongson]# echo 0 > /sys/devices/system/cpu/cpu0/online
bash: /sys/devices/system/cpu/cpu0/online: Permission denied
So no need to check CPU 0 in {loongson3,bmips,octeon}_cpu_disable(),
just remove them.
Signed-off-by: Tiezhu Yang
---
arch/mips/cavium-octeon/smp.c | 3 ---
When calling debugfs functions, there is no need to ever check the
return value. The function can work or not, but the code logic should
never do something different based on this.
Signed-off-by: Tiezhu Yang
---
kernel/locking/lock_events.c | 19 ---
1 file changed, 4
When calling debugfs functions, there is no need to ever check the
return value. The function can work or not, but the code logic should
never do something different based on this.
Signed-off-by: Tiezhu Yang
---
kernel/dma/pool.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/kernel/dma
Call kfree() in the error path to free the memory allocated by kzalloc().
Signed-off-by: Tiezhu Yang
---
drivers/md/bcache/super.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index 46a0013..af51574 100644
On 11/09/2020 04:32 PM, Peter Zijlstra wrote:
On Sat, Nov 07, 2020 at 05:19:13PM +0800, Tiezhu Yang wrote:
When calling debugfs functions, there is no need to ever check the
return value. The function can work or not, but the code logic should
never do something different based on this.
I
After commit 745be2e700cd ("PCIe: portdrv: call pci_disable_device
during remove") and commit cc27b735ad3a ("PCI/portdrv: Turn off PCIe
services during shutdown"), it also calls pci_disable_device() during
shutdown, this seems unnecessary, so just remove it.
Signed
r solution that has been tested carefully to support
Loongson LS7A HDA controller.
Fixes: 61eee4a7fc40 ("ALSA: hda: Add support for Loongson 7A1000 controller")
Cc: # 5.9-rc1+
Signed-off-by: Tiezhu Yang
---
sound/pci/hda/hda_intel.c | 2 --
1 file changed, 2 deletions(-)
diff -
On 08/25/2020 04:30 PM, Takashi Iwai wrote:
On Tue, 25 Aug 2020 10:25:03 +0200,
Tiezhu Yang wrote:
This reverts commit 61eee4a7fc40 ("ALSA: hda: Add support for Loongson
7A1000 controller").
With this patch, there exists the following error on the Loongson LS7A
platform:
[ 216.6
eee4a7fc40 ("ALSA: hda: Add support for Loongson 7A1000 controller")
Cc: # 5.9-rc1+
Signed-off-by: Tiezhu Yang
---
v2: update commit message
sound/pci/hda/hda_intel.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index e34
On 07/06/2020 03:30 PM, Marc Zyngier wrote:
On 2020-07-06 02:19, Tiezhu Yang wrote:
When I test the irqchip code of Loongson, I read the related code of
other
chips in drivers/irqchip and I find some potential resource leaks in the
error path, I think it is better to fix them.
v2:
- Split
n fault
I use git bisect to find commit b38d85ef49cf ("perf bpf: Decouple
creating the evlist from adding the SB event") is the first bad
commit, so also add the Fixes tag.
Fixes: b38d85ef49cf ("perf bpf: Decouple creating the evlist from adding the SB
event")
Signed-off-by
00.0: ring 3 stalled for more than 10086msec
[ 60.983156] radeon :03:00.0: GPU lockup (current fence id
0x0374 last fence id 0x03a8 on ring 3)
Signed-off-by: Tiezhu Yang
---
arch/mips/include/asm/pgtable.h | 4
arch/mips/kernel/cpu-probe.c| 19
On 08/06/2020 03:39 PM, Jiaxun Yang wrote:
在 2020/8/6 下午3:09, Tiezhu Yang 写道:
Loongson processors have a writecombine issue that maybe failed to
write back framebuffer used with ATI Radeon or AMD GPU at times,
after commit 8a08e50cee66 ("drm: Permit video-buffers writecombine
mapping for
p (current fence id
0x0112 last fence id 0x011d on ring 0)
[ 60.976525] radeon :03:00.0: ring 3 stalled for more than 10086msec
[ 60.983156] radeon :03:00.0: GPU lockup (current fence id
0x0374 last fence id 0x03a8 on ring 3)
Signed-off-
t/torvalds/linux.git/tree/sound/pci/hda/hda_intel.c?h=v5.4
Thanks,
Tiezhu
Huacai
On Tue, Aug 25, 2020 at 6:03 PM Takashi Iwai wrote:
On Tue, 25 Aug 2020 11:39:48 +0200,
Tiezhu Yang wrote:
This reverts commit 61eee4a7fc40 ("ALSA: hda: Add support for Loongson
7A1000 controller") to fix
The field LPA of CP0_CONFIG3 register is read only for Loongson64, so the
write operations are meaningless, remove them.
Signed-off-by: Tiezhu Yang
---
arch/mips/include/asm/mach-loongson64/kernel-entry-init.h | 8
arch/mips/loongson64/numa.c | 3 ---
2
Since decode_cpucfg() is only used for Loongson64, just move
it to loongson_regs.h to avoid the pollution of common code
with #ifdef CONFIG_CPU_LOONGSON64.
Signed-off-by: Tiezhu Yang
---
.../include/asm/mach-loongson64/loongson_regs.h| 24 +
arch/mips/kernel/cpu-probe.c
In the current code, for example, core 1 sets Core[0, 1, 2, 3]_IPI_Enalbe
register and core 2, 3 do the same thing on the 1-way Loongson64 platform,
this is not necessary. Set IPI_Enable register per core by itself to avoid
duplicate operations and make the logic more clear.
Signed-off-by: Tiezhu
Tiezhu Yang (6):
MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3
MIPS: Loongson64: Set the field ELPA of CP0_PAGEGRAIN only once
MIPS: Loongson64: Set IPI_Enable register per core by itself
MIPS: Loongson64: Add Mail_Send support for 3A4000+ CPU
MIPS: Loongson64
Loongson 3A4000+ CPU has per-core Mail_Send register to send mail,
there is no need to maintain register address of each core and node,
just simply specify cpu number.
Signed-off-by: Lu Zeng
Signed-off-by: Jianmin Lv
Signed-off-by: Tiezhu Yang
---
.../include/asm/mach-loongson64
do something at the software level to avoid the risks for
3A4000+ CPU, this change has no influence on the other Loongson CPUs.
Signed-off-by: Lu Zeng
Signed-off-by: Jun Yi
Signed-off-by: Tiezhu Yang
---
arch/mips/loongson64/smp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff
The field ELPA of CP0_PAGEGRAIN register is set at the beginning
of the kernel entry point in kernel-entry-init.h, no need to set
it again in numa.c, we can remove enable_lpa() and only print the
related information.
Signed-off-by: Tiezhu Yang
---
arch/mips/loongson64/numa.c | 17
On 11/05/2020 01:57 PM, Huacai Chen wrote:
Hi, Tiezhu,
On Wed, Nov 4, 2020 at 11:51 AM Tiezhu Yang wrote:
On 11/04/2020 10:00 AM, Huacai Chen wrote:
Hi, Tiezhu,
On Tue, Nov 3, 2020 at 3:13 PM Tiezhu Yang wrote:
The field LPA of CP0_CONFIG3 register is read only for Loongson64, so
On 10/13/2020 08:15 AM, Jiaxun Yang wrote:
于 2020年10月12日 GMT+08:00 下午8:02:25, Tiezhu Yang 写到:
On 10/12/2020 06:38 PM, Thomas Bogendoerfer wrote:
On Sun, Oct 11, 2020 at 07:47:53AM +0800, Tiezhu Yang wrote:
Add /proc/boardinfo to get mainboard and BIOS info easily on the Loongson
platform
Add a description for /sys/firmware/lefi/boardinfo on the Loongson
platform.
Signed-off-by: Tiezhu Yang
---
.../ABI/testing/sysfs-firmware-lefi-boardinfo | 35 ++
1 file changed, 35 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-firmware-lefi
the similar info if there
exists SMBIOS in firmware, but the fact is that there is no SMBIOS on
some machines, we can see nothing when execute dmidecode, like this:
[root@linux loongson]# dmidecode
# dmidecode 2.12
# No SMBIOS nor DMI entry point found, sorry.
Signed-off-by: Tiezhu Yang
---
arch/mips
Tiezhu Yang (2):
MIPS: Loongson64: Add /sys/firmware/lefi/boardinfo
Documentation: ABI: Add /sys/firmware/lefi/boardinfo description for
Loongson64
.../ABI/testing/sysfs-firmware-lefi-boardinfo | 35
arch/mips/include/asm/mach-loongson64/boot_param.h | 4 ++
arch
On 11/03/2020 01:28 PM, Jiaxun Yang wrote:
在 2020/11/3 11:15, Tiezhu Yang 写道:
In loongson3_type3_play_dead(), in order to make sure the PC address is
correct, use lw to read the low 32 bits first, if the result is not
zero,
then use ld to read the whole 64 bits, otherwise there maybe exists
The field LPA of CP0_CONFIG3 register is read only for Loongson64, so the
write operations are meaningless, remove them.
Signed-off-by: Tiezhu Yang
---
v2: No changes
v3: No changes
arch/mips/include/asm/mach-loongson64/kernel-entry-init.h | 8
arch/mips/loongson64/numa.c
The field ELPA of CP0_PAGEGRAIN register is set at the beginning
of the kernel entry point in kernel-entry-init.h, no need to set
it again in numa.c, we can remove enable_lpa() and only print the
related information.
Signed-off-by: Tiezhu Yang
---
v2: No changes
v3: No changes
arch/mips
which is written at the last as the jump indicator instead.
Signed-off-by: Lu Zeng
Signed-off-by: Jun Yi
Signed-off-by: Tiezhu Yang
---
v2: No changes
v3: Update the commit message and comment
arch/mips/loongson64/smp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch
Since decode_cpucfg() is only used for Loongson64, just move
it to loongson_regs.h to avoid the pollution of common code
with #ifdef CONFIG_CPU_LOONGSON64.
Signed-off-by: Tiezhu Yang
---
v2: No changes
v3: No changes
.../include/asm/mach-loongson64/loongson_regs.h| 24
Loongson 3A4000+ CPU has per-core Mail_Send register to send mail,
there is no need to maintain register address of each core and node,
just simply specify cpu number.
Signed-off-by: Lu Zeng
Signed-off-by: Jianmin Lv
Signed-off-by: Tiezhu Yang
---
v2: Add some callbacks in csr_ipi_probe()
v3
In the current code, for example, core 1 sets Core[0, 1, 2, 3]_IPI_Enalbe
register and core 2, 3 do the same thing on the 1-way Loongson64 platform,
this is not necessary. Set IPI_Enable register per core by itself to avoid
duplicate operations and make the logic more clear.
Signed-off-by: Tiezhu
v2: Add some callbacks in csr_ipi probe() for patch #4
v3: Update the commit message and comment for patch #5
Tiezhu Yang (6):
MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3
MIPS: Loongson64: Set the field ELPA of CP0_PAGEGRAIN only once
MIPS: Loongson64: Set
On 11/04/2020 10:00 AM, Huacai Chen wrote:
Hi, Tiezhu,
On Tue, Nov 3, 2020 at 3:13 PM Tiezhu Yang wrote:
The field LPA of CP0_CONFIG3 register is read only for Loongson64, so the
write operations are meaningless, remove them.
Signed-off-by: Tiezhu Yang
---
v2: No changes
v3: No changes
In the current code, for example, core 1 sets Core[0, 1, 2, 3]_IPI_Enalbe
register and core 2, 3 do the same thing on the 1-way Loongson64 platform,
this is not necessary. Set IPI_Enable register per core by itself to avoid
duplicate operations and make the logic more clear.
Signed-off-by: Tiezhu
The field ELPA of CP0_PAGEGRAIN register is set at the beginning
of the kernel entry point in kernel-entry-init.h, no need to set
it again in numa.c, we can remove enable_lpa() and only print the
related information.
Signed-off-by: Tiezhu Yang
---
v2: No changes
arch/mips/loongson64/numa.c
The field LPA of CP0_CONFIG3 register is read only for Loongson64, so the
write operations are meaningless, remove them.
Signed-off-by: Tiezhu Yang
---
v2: No changes
arch/mips/include/asm/mach-loongson64/kernel-entry-init.h | 8
arch/mips/loongson64/numa.c
v2: Add some callbacks in csr_ipi probe() for patch #4
Tiezhu Yang (6):
MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3
MIPS: Loongson64: Set the field ELPA of CP0_PAGEGRAIN only once
MIPS: Loongson64: Set IPI_Enable register per core by itself
MIPS: Loongson64: Add
Loongson 3A4000+ CPU has per-core Mail_Send register to send mail,
there is no need to maintain register address of each core and node,
just simply specify cpu number.
Signed-off-by: Lu Zeng
Signed-off-by: Jianmin Lv
Signed-off-by: Tiezhu Yang
---
v2: Add some callbacks in csr_ipi_probe
do something at the software level to avoid the risks for
3A4000+ CPU, this change has no influence on the other Loongson CPUs.
Signed-off-by: Lu Zeng
Signed-off-by: Jun Yi
Signed-off-by: Tiezhu Yang
---
v2: No changes
arch/mips/loongson64/smp.c | 3 ++-
1 file changed, 2 insertions(+), 1
Since decode_cpucfg() is only used for Loongson64, just move
it to loongson_regs.h to avoid the pollution of common code
with #ifdef CONFIG_CPU_LOONGSON64.
Signed-off-by: Tiezhu Yang
---
v2: No changes
.../include/asm/mach-loongson64/loongson_regs.h| 24 +
arch/mips/kernel
:10:
./include/linux/compiler.h:246:10: fatal error: 'asm/rwonce.h' file not found
^~
1 error generated.
$ find . -name rwonce.h
./include/asm-generic/rwonce.h
./arch/arm64/include/asm/rwonce.h
./arch/alpha/include/asm/rwonce.h
Signed-off-by: Tiezhu Yang
---
include/linux
printf("%s/%llx;", sym->name, addr);
~~~^
%lx
printf(";%s %lld\n", key->waker, count);
~~~^ ~
%ld
Signed-off-by: Tiezhu Yang
---
samples/bpf/Makefile| 4
to
There exists many build errors and warnings when make M=samples/bpf,
this patch series fix some of them, I will submit some other patches
related with MIPS later.
Tiezhu Yang (2):
samples/bpf: Set flag __SANE_USERSPACE_TYPES__ for MIPS to fix build
warnings
compiler.h: Include asm
On 02/01/2021 06:43 PM, Thomas Bogendoerfer wrote:
On Tue, Dec 29, 2020 at 08:55:59PM +0800, Tiezhu Yang wrote:
+++ b/arch/mips/include/uapi/asm/perf_regs.h
@@ -0,0 +1,42 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _ASM_MIPS_PERF_REGS_H
+#define
tches into two parts (MIPS kernel and perf
tools) to merge easily.]
The original patches:
https://lore.kernel.org/patchwork/patch/1126521/
https://lore.kernel.org/patchwork/patch/1126520/
Signed-off-by: David Daney
Signed-off-by: Ralf Baechle
Signed-off-by: Archer Yan
Signed-off-by: Tiezhu Ya
On 02/04/2021 02:30 AM, Shuah Khan wrote:
On 2/3/21 1:39 AM, Tiezhu Yang wrote:
According to the error message, the first argument of ptrace() should be
PTRACE_SINGLESTEP instead of PTRACE_CONT when ptrace single step.
Fixes: f43365ee17f8 ("selftests: arm64: add test for
unaligned/in
v2: add R26 and R27 to the enum perf_event_mips_regs in patch #1
Tiezhu Yang (3):
MIPS: kernel: Support extracting off-line stack traces from user-space
with perf
perf tools: Support mips unwinding and dwarf-regs
perf tools: Generate mips syscalls_n64.c syscall table
arch/mips/Kconfig
Grab a copy of arch/mips/kernel/syscalls/syscall_n64.tbl and use it to
generate tools/perf/arch/mips/include/generated/asm/syscalls_n64.c file,
this is similar with commit 1b700c997500 ("perf tools: Build syscall table
.c header from kernel's syscall_64.tbl")
Signed-off-by: Tiezhu Yan
Baechle
Signed-off-by: Archer Yan
Signed-off-by: Tiezhu Yang
---
v2: no changes
tools/perf/Makefile.config | 6 ++
tools/perf/arch/mips/Makefile | 4 ++
tools/perf/arch/mips/include/dwarf-regs-table.h | 31 +
tools/perf/arch/mips/include
oader completely"), so the old version can not
work in the latest mainline kernel.
Since it is very simple and useful for newbies, I think it is
necessary to be upstreamed.
[1]
https://github.com/bpftools/linux-observability-with-bpf/tree/master/code/chapter-2/hello_world
Signed-off-by: T
and generic include dir for MIPS Loongson64 to
fix the build errors.
Signed-off-by: Tiezhu Yang
---
samples/bpf/Makefile | 4
1 file changed, 4 insertions(+)
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile
index 362f314..45ceca4 100644
--- a/samples/bpf/Makefile
+++ b/samples/bpf
https://bpf.io/ to https://ebpf.io/ to avoid redirects.
Signed-off-by: Tiezhu Yang
---
MAINTAINERS | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 1df56a3..09314ce 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3260,7 +3260,7 @@ R:KP
long)daddr),
^~~~
1 error generated.
This is a known issue on MIPS [1], the changed code can be compiled
successfully by both GCC and Clang.
[1]
https://lore.kernel.org/linux-mips/CAG_fn=W0JHf8QyUX==+rqmp8poulhrsqca9htffws31ga8k...@mail.gmail.com/
Signed-off-by: Tiezhu Yang
On 01/28/2021 05:15 AM, Thomas Bogendoerfer wrote:
On Tue, Jan 05, 2021 at 11:18:06AM +0100, Peter Zijlstra wrote:
On Tue, Jan 05, 2021 at 11:45:37AM +0800, Jiaxun Yang wrote:
在 2021/1/4 下午6:59, Peter Zijlstra 写道:
On Tue, Dec 29, 2020 at 08:55:59PM +0800, Tiezhu Yang wrote:
+u64 perf_reg_abi
On 01/27/2021 12:01 AM, Daniel Borkmann wrote:
On 1/26/21 3:05 PM, Tiezhu Yang wrote:
There exists many build errors when make M=samples/bpf on the Loongson
platform, this issue is MIPS related, x86 compiles just fine.
Here are some errors:
[...]
So we can do the similar things in samples
Use test_tsk_thread_flag() directly instead of test_ti_thread_flag() to
improve readability when the argument type is struct task_struct, it is
similar with commit 5afc78551bf5 ("arm64: Use test_tsk_thread_flag() for
checking TIF_SINGLESTEP").
Signed-off-by: Tiezhu Yang
---
arch/sp
Use test_tsk_thread_flag() directly instead of test_ti_thread_flag() to
improve readability when the argument type is struct task_struct, it is
similar with commit 5afc78551bf5 ("arm64: Use test_tsk_thread_flag() for
checking TIF_SINGLESTEP").
Signed-off-by: Tiezhu Yang
---
arch/pari
According to the error message, the first argument of ptrace() should be
PTRACE_SINGLESTEP instead of PTRACE_CONT when ptrace single step.
Fixes: f43365ee17f8 ("selftests: arm64: add test for unaligned/inexact
watchpoint handling")
Signed-off-by: Tiezhu Yang
---
tools/testing
On 2/3/21 6:40 PM, Thomas Bogendoerfer wrote:
On Mon, Feb 01, 2021 at 08:56:06PM +0800, Tiezhu Yang wrote:
On 02/01/2021 06:43 PM, Thomas Bogendoerfer wrote:
On Tue, Dec 29, 2020 at 08:55:59PM +0800, Tiezhu Yang wrote:
+++ b/arch/mips/include/uapi/asm/perf_regs.h
@@ -0,0 +1,42 @@
+/* SPDX
After commit 9d0aaf98dc24 ("MIPS: SGI-IP27: Move all shared IP27
declarations to ip27-common.h"), ip27-common.h is included more
than once in ip27-timer.c, remove it.
Signed-off-by: Tiezhu Yang
---
arch/mips/sgi-ip27/ip27-timer.c | 2 --
1 file changed, 2 deletions(-)
diff --git a
On 05/20/2020 12:03 AM, Thomas Bogendoerfer wrote:
On Tue, May 19, 2020 at 08:28:11PM +0800, Tiezhu Yang wrote:
After commit 9d0aaf98dc24 ("MIPS: SGI-IP27: Move all shared IP27
declarations to ip27-common.h"), ip27-common.h is included more
than once in ip27-timer.c, remove it.
After commit 0ce5ebd24d25 ("mfd: ioc3: Add driver for SGI IOC3 chip"),
the related includes and comment about ioc3 are not used any more in
ip27-timer.c, remove them.
Signed-off-by: Tiezhu Yang
---
arch/mips/sgi-ip27/ip27-timer.c | 5 -
1 file changed, 5 deletions(-)
diff --git a
After commit f5ff0a280201 ("[MIPS] Use generic NTP code for all MIPS
platforms"), TICK_SIZE is not used in ip27-timer.c for many years,
remove it.
Signed-off-by: Tiezhu Yang
---
Hi Thomas,
I find this not used definition TICK_SIZE just now, maybe I should send
these cleanup patches
The return value about hisi_reset_init() is not correct, fix it.
Fixes: e9a2310fb689 ("reset: hisilicon: fix potential NULL pointer dereference")
Signed-off-by: Tiezhu Yang
---
v2:
- No changes, just add "Fixes:" tag
v3:
- Use ERR_CAST(rstc->membase) to fix the spars
are not set.
Reported-by: kbuild test robot
Signed-off-by: Tiezhu Yang
---
v2:
- Add CONFIG_ARCH_HISI check for the common files
to fix the build failure
v3:
- Add CONFIG_COMPILE_TEST check for the common files
for better compile testing coverage
drivers/clk/Makefile | 2
The return value about hisi_reset_init() is not correct, fix it.
Fixes: e9a2310fb689 ("reset: hisilicon: fix potential NULL pointer dereference")
Signed-off-by: Tiezhu Yang
---
v2:
- No changes, just add "Fixes:" tag
v3:
- Use ERR_CAST(rstc->membase) to fix
-by: Tiezhu Yang
---
v2:
- Add CONFIG_ARCH_HISI check for the common files
to fix the build failure
v3:
- Add CONFIG_COMPILE_TEST check for the common files
for better compile testing coverage
v4:
- Modify the patch subject to reflect the reality
drivers/clk/Makefile | 2
On 05/28/2020 07:10 AM, Guenter Roeck wrote:
On Thu, May 21, 2020 at 10:15:06AM +0800, Tiezhu Yang wrote:
Add config check in Makefile to only build the subdir of current platform.
E.g. without this patch:
AR arch/mips/built-in.a
AR arch/mips/boot/dts/brcm/built-in.a
AR
rm")
Signed-off-by: Tiezhu Yang
---
arch/mips/boot/dts/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile
index dce32d1..1902712 100644
--- a/arch/mips/boot/dts/Makefile
+++ b/arch/mips/boot/dts/Makefile
@@ -2
On 05/28/2020 03:06 AM, Stephen Boyd wrote:
Quoting Tiezhu Yang (2020-05-27 07:39:21)
The return value about hisi_reset_init() is not correct, fix it.
Fixes: e9a2310fb689 ("reset: hisilicon: fix potential NULL pointer dereference")
hisi_reset_init() returns NULL on error in t
de/linux/module.h:13,
from lib/test_printf.c:10:
./arch/mips/include/asm/inst.h:20:0: note: this is the location of the previous
definition
#define PTR_STR ".dword"
^
Fixes: e701656ec4db ("MIPS: inst.h: Stop including asm.h to avoid various build
failures")
Si
After commit 6423e59a64e7 ("MIPS: Loongson64: Switch to generic PCI
driver"), arch/mips/loongson64/pci.c is not used any more, remove it.
Signed-off-by: Tiezhu Yang
---
arch/mips/loongson64/pci.c | 49 --
1 file changed, 49 deletions(-)
d
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Signed-off-by: Tiezhu Yang
---
drivers/net/can/ifi_canfd/ifi_canfd.c | 5 -
drivers/net/can/sun4i_can.c | 2 +-
drivers/net/dsa/b53
On 05/23/2020 03:07 AM, Robert Jarzmik wrote:
Tiezhu Yang writes:
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Fixes: 542c25b7a209 ("drivers: gpio: pxa: use devm_platform_ioremap_resource()")
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Fixes: d53d4ae981d0 ("rtc: mpc5121: simplify probe")
Signed-off-by: Tiezhu Yang
---
drivers/rtc/rtc-mpc5121.c | 2 +-
1 file changed, 1 insertion(+),
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Fixes: 89576bebbc17 ("rtc: Use devm_platform_ioremap_resource()")
Signed-off-by: Tiezhu Yang
---
drivers/rtc/rtc-goldfish.c | 2 +-
1 file changed, 1
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Fixes: 4b024225c4a8 ("pinctrl: use devm_platform_ioremap_resource() to simplify
code")
Signed-off-by: Tiezhu Yang
---
drivers/pinctrl/bcm/pinctrl-bcm2
Add COMPILE_TEST support to the AT91 PIO4 pinctrl driver for better compile
testing coverage.
Signed-off-by: Tiezhu Yang
---
drivers/pinctrl/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index 834c599..649b700
On 05/24/2020 03:50 AM, Alexandre Belloni wrote:
Hi,
On 23/05/2020 17:56:21+0800, Tiezhu Yang wrote:
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Fixes: 89576bebbc17 ("rtc
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Signed-off-by: Tiezhu Yang
---
drivers/rtc/rtc-mpc5121.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-mpc5121.c b/drivers
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Signed-off-by: Tiezhu Yang
---
drivers/rtc/rtc-goldfish.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-goldfish.c b
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Fixes: 554fdbaf19b1 ("thermal: sprd: Add Spreadtrum thermal driver support")
Signed-off-by: Tiezhu Yang
---
drivers/thermal/sprd_thermal.c | 4 ++
in drivers/clk/Makefile.
Signed-off-by: Tiezhu Yang
---
drivers/clk/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
index f4169cc..81045ec 100644
--- a/drivers/clk/Makefile
+++ b/drivers/clk/Makefile
@@ -79,7 +79,7 @@ obj-y
The return value about hisi_reset_init() is not correct, fix it.
Signed-off-by: Tiezhu Yang
---
drivers/clk/hisilicon/clk-hi3519.c | 4 ++--
drivers/clk/hisilicon/crg-hi3516cv300.c | 4 ++--
drivers/clk/hisilicon/crg-hi3798cv200.c | 4 ++--
drivers/clk/hisilicon/reset.c | 4
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Fixes: b7535a3bc0ba ("phy/rockchip: Add support for Innosilicon MIPI/LVDS/TTL
PHY")
Signed-off-by: Tiezhu Yang
---
drivers/phy/rockchip/phy-roc
for subdir rockchip
in drivers/phy/Makefile.
Signed-off-by: Tiezhu Yang
---
drivers/phy/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/phy/Makefile b/drivers/phy/Makefile
index 310c149..e5b4f58 100644
--- a/drivers/phy/Makefile
+++ b/drivers/phy/Makefile
@@ -12,7
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Signed-off-by: Tiezhu Yang
---
drivers/video/fbdev/pxafb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/fbdev/pxafb.c b
101 - 200 of 518 matches
Mail list logo