will be break
and resume the system.
Signed-off-by: Nickhu
---
arch/nds32/Kconfig | 10 +++
arch/nds32/include/asm/suspend.h | 11 +++
arch/nds32/kernel/Makefile | 2 +-
arch/nds32/kernel/pm.c | 91 ++
arch/nds32/kernel/sleep.S| 129
This commit is power management porting for nds32.
Nickhu (1):
nds32: Power management for nds32
arch/nds32/Kconfig | 10 +++
arch/nds32/include/asm/suspend.h | 11 +++
arch/nds32/kernel/Makefile | 2 +-
arch/nds32/kernel/pm.c | 91
will be break
and resume the system.
Signed-off-by: Nickhu
---
arch/nds32/Kconfig | 10 +++
arch/nds32/include/asm/suspend.h | 11 +++
arch/nds32/kernel/Makefile | 2 +-
arch/nds32/kernel/pm.c | 91 ++
arch/nds32/kernel/sleep.S| 129
This commit is power management porting for nds32.
Nickhu (1):
nds32: Power management for nds32
arch/nds32/Kconfig | 10 +++
arch/nds32/include/asm/suspend.h | 11 +++
arch/nds32/kernel/Makefile | 2 +-
arch/nds32/kernel/pm.c | 91
would be failed when the program hang in loop.
2. Don't print the error message, the ltp would pass. But the user need
to
have the knowledge that don't count the events which map to the same
counter, or the user will get the inaccurate results.
We choose method
would be failed when the program hang in loop.
2. Don't print the error message, the ltp would pass. But the user need
to
have the knowledge that don't count the events which map to the same
counter, or the user will get the inaccurate results.
We choose method
The document for how to add NDS32 PMU
in devicetree.
Signed-off-by: Nickhu
---
Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
1 file changed, 17 insertions(+)
create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt
diff --git a/Documentation/devicetree
:
-
| lp |
-
| fp |
2. leaf function:
-
| fp |
Signed-off-by: Nickhu
---
arch/nds32/kernel/perf_event_cpu.c | 299
There two bitfield bug for perfomance counter
in bitfield.h:
PFM_CTL_offSEL1 21 --> 16
PFM_CTL_offSEL2 27 --> 22
This commit fix it.
Signed-off-by: Nickhu
---
arch/nds32/include/asm/bitfield.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
The document for how to add NDS32 PMU
in devicetree.
Signed-off-by: Nickhu
---
Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
1 file changed, 17 insertions(+)
create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt
diff --git a/Documentation/devicetree
:
-
| lp |
-
| fp |
2. leaf function:
-
| fp |
Signed-off-by: Nickhu
---
arch/nds32/kernel/perf_event_cpu.c | 299
There two bitfield bug for perfomance counter
in bitfield.h:
PFM_CTL_offSEL1 21 --> 16
PFM_CTL_offSEL2 27 --> 22
This commit fix it.
Signed-off-by: Nickhu
---
arch/nds32/include/asm/bitfield.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
the typo in Documentation/devicetree/
bindings/nds32/pmu.txt.
Nickhu (4):
nds32: Fix bug in bitfield.h
nds32: Perf porting
nds32: Add perf call-graph support.
nds32: Add document for NDS32 PMU.
.../devicetree/bindings/nds32/pmu.txt | 17 +
arch/nds32/Kconfig
the typo in Documentation/devicetree/
bindings/nds32/pmu.txt.
Nickhu (4):
nds32: Fix bug in bitfield.h
nds32: Perf porting
nds32: Add perf call-graph support.
nds32: Add document for NDS32 PMU.
.../devicetree/bindings/nds32/pmu.txt | 17 +
arch/nds32/Kconfig
There two bitfield bug for perfomance counter
in bitfield.h:
PFM_CTL_offSEL1 21 --> 16
PFM_CTL_offSEL2 27 --> 22
This commit fix it.
Signed-off-by: Nickhu
---
arch/nds32/include/asm/bitfield.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
There two bitfield bug for perfomance counter
in bitfield.h:
PFM_CTL_offSEL1 21 --> 16
PFM_CTL_offSEL2 27 --> 22
This commit fix it.
Signed-off-by: Nickhu
---
arch/nds32/include/asm/bitfield.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
These four commits are perf supporting for nds32.
There are three perfomance counters in nds32, and
each of them can counts different events. You can
use 'perf list' to show the available events that
can be used.
Nickhu (4):
nds32: Fix bug in bitfield.h
nds32: Perf porting
nds32: Add perf
would be failed when the program hang in loop.
2. Don't print the error message, the ltp would pass. But the user need
to
have the knowledge that don't count the events which map to the same
counter, or the user will get the inaccurate results.
We choose method
These four commits are perf supporting for nds32.
There are three perfomance counters in nds32, and
each of them can counts different events. You can
use 'perf list' to show the available events that
can be used.
Nickhu (4):
nds32: Fix bug in bitfield.h
nds32: Perf porting
nds32: Add perf
would be failed when the program hang in loop.
2. Don't print the error message, the ltp would pass. But the user need
to
have the knowledge that don't count the events which map to the same
counter, or the user will get the inaccurate results.
We choose method
The document for how to add NDS32 PMU
in devicetree.
Signed-off-by: Nickhu
---
Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
1 file changed, 17 insertions(+)
create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt
diff --git a/Documentation/devicetree
:
-
| lp |
-
| fp |
2. leaf function:
-
| fp |
Signed-off-by: Nickhu
---
arch/nds32/kernel/perf_event_cpu.c | 299
The document for how to add NDS32 PMU
in devicetree.
Signed-off-by: Nickhu
---
Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
1 file changed, 17 insertions(+)
create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt
diff --git a/Documentation/devicetree
:
-
| lp |
-
| fp |
2. leaf function:
-
| fp |
Signed-off-by: Nickhu
---
arch/nds32/kernel/perf_event_cpu.c | 299
kernel unaligned access.
The kernel is hang in the loop.
Signed-off-by: Nickhu
---
arch/nds32/kernel/traps.c | 4 +++-
arch/nds32/mm/alignment.c | 6 --
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/arch/nds32/kernel/traps.c b/arch/nds32/kernel/traps.c
index 1496aab48998
/symbol.h:20,
from util/symbol-elf.c:9:
/local/nickhu/build-system-3/toolchain/nds32le-linux-glibc-v3-upstream/
nds32le-linux/sysroot/usr/include/libelf.h:266:12: note: previous declaration
of 'elf_getphdrnum' was here
extern int elf_getphdrnum (Elf *__elf, size_t *__dst
Fix gcc 8.0 compiler option incompatible When the kernel configs of
ftrace and frame pointer options are choosed.
Nickhu (1):
nds32: Fix gcc 8.0 compiler option incompatible.
arch/nds32/mm/Makefile | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
--
2.17.0
Fix perf failed when compile with libelf.
Nickhu (1):
Perf: Compile failed when compile with libelf.
tools/perf/util/symbol-elf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.17.0
/symbol.h:20,
from util/symbol-elf.c:9:
/local/nickhu/build-system-3/toolchain/nds32le-linux-glibc-v3-upstream/
nds32le-linux/sysroot/usr/include/libelf.h:266:12: note: previous declaration
of 'elf_getphdrnum' was here
extern int elf_getphdrnum (Elf *__elf, size_t *__dst
Fix gcc 8.0 compiler option incompatible When the kernel configs of
ftrace and frame pointer options are choosed.
Nickhu (1):
nds32: Fix gcc 8.0 compiler option incompatible.
arch/nds32/mm/Makefile | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
--
2.17.0
Fix perf failed when compile with libelf.
Nickhu (1):
Perf: Compile failed when compile with libelf.
tools/perf/util/symbol-elf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.17.0
kernel unaligned access.
The kernel is hang in the loop.
Signed-off-by: Nickhu
---
arch/nds32/kernel/traps.c | 4 +++-
arch/nds32/mm/alignment.c | 6 --
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/arch/nds32/kernel/traps.c b/arch/nds32/kernel/traps.c
index 1496aab48998
.
But the index of target register should be 16. So the mapping of
register in unaligned access handler is wrong.
Signed-off-by: Nickhu
---
arch/nds32/mm/alignment.c | 37 +
1 file changed, 21 insertions(+), 16 deletions(-)
diff --git a/arch/nds32/mm/alignment.c
.
'HAVE_EFFICIENT_UNALIGNED_ACCESS' and 'HW_SUPPORT_UNALIGNMENT_ACCESS' are
default configs in nds32.
Signed-off-by: Nickhu
---
arch/nds32/Kconfig.cpu | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/nds32/Kconfig.cpu b/arch/nds32/Kconfig.cpu
index b8c8984d1456..b8eecd0cde6b 100644
.
'HAVE_EFFICIENT_UNALIGNED_ACCESS' and 'HW_SUPPORT_UNALIGNMENT_ACCESS' are
default configs in nds32.
Signed-off-by: Nickhu
---
arch/nds32/Kconfig.cpu | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/nds32/Kconfig.cpu b/arch/nds32/Kconfig.cpu
index b8c8984d1456..b8eecd0cde6b 100644
.
But the index of target register should be 16. So the mapping of
register in unaligned access handler is wrong.
Signed-off-by: Nickhu
---
arch/nds32/mm/alignment.c | 37 +
1 file changed, 21 insertions(+), 16 deletions(-)
diff --git a/arch/nds32/mm/alignment.c
When the kernel configs of ftrace and frame pointer options are
choosed, the compiler option of kernel will incompatible.
Error message:
nds32le-linux-gcc: error: -pg and -fomit-frame-pointer are
incompatible
Signed-off-by: Nickhu
Signed-off-by: Zong Li
When the kernel configs of ftrace and frame pointer options are
choosed, the compiler option of kernel will incompatible.
Error message:
nds32le-linux-gcc: error: -pg and -fomit-frame-pointer are
incompatible
Signed-off-by: Nickhu
Signed-off-by: Zong Li
The patches are about unaligned access handler. We fix some
bugs in unaligned access handler and add some kernel configs
for unaligned access handler. Then we add the kernel unaligned
access handled by software in handler.
Nickhu (3):
nds32: Fix instruction simulator bug for unaligned access
The patches are about unaligned access handler. We fix some
bugs in unaligned access handler and add some kernel configs
for unaligned access handler. Then we add the kernel unaligned
access handled by software in handler.
Nickhu (3):
nds32: Fix instruction simulator bug for unaligned access
:
-
| lp |
-
| fp |
2. leaf function:
-
| fp |
Signed-off-by: Nickhu
---
arch/nds32/kernel/perf_event_cpu.c | 299
:
-
| lp |
-
| fp |
2. leaf function:
-
| fp |
Signed-off-by: Nickhu
---
arch/nds32/kernel/perf_event_cpu.c | 299
There two bitfield bug for perfomance counter
in bitfield.h:
PFM_CTL_offSEL1 21 --> 16
PFM_CTL_offSEL2 27 --> 22
This commit fix it.
Signed-off-by: Nickhu
---
arch/nds32/include/asm/bitfield.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
count the events which map to the same
counter, or the user will get the inaccurate results.
We choose method 2 for the solution
Signed-off-by: Nickhu
---
arch/nds32/include/asm/pmu.h | 1 +
arch/nds32/kernel/perf_event_cpu.c | 30 --
2 files changed, 21
Furthermore, NDS32 SPAv3 is not able to detect it is read or write.
It only know either it is instruction fetch or data access.
Therefore, by removing the wrong flag assignment(actually, the hardware
is not able to show the reason), we can fix this bug.
Signed-off-by: Nickhu
---
arch/nds
There two bitfield bug for perfomance counter
in bitfield.h:
PFM_CTL_offSEL1 21 --> 16
PFM_CTL_offSEL2 27 --> 22
This commit fix it.
Signed-off-by: Nickhu
---
arch/nds32/include/asm/bitfield.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
count the events which map to the same
counter, or the user will get the inaccurate results.
We choose method 2 for the solution
Signed-off-by: Nickhu
---
arch/nds32/include/asm/pmu.h | 1 +
arch/nds32/kernel/perf_event_cpu.c | 30 --
2 files changed, 21
Furthermore, NDS32 SPAv3 is not able to detect it is read or write.
It only know either it is instruction fetch or data access.
Therefore, by removing the wrong flag assignment(actually, the hardware
is not able to show the reason), we can fix this bug.
Signed-off-by: Nickhu
---
arch/nds
The document for how to add NDS32 PMU
in devicetree.
Signed-off-by: Nickhu
---
Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
1 file changed, 17 insertions(+)
create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt
diff --git a/Documentation/devicetree
These two commit are perf supporting for nds32.
There are three perfomance counters in nds32, and
each of them can counts different events. You can
use 'perf list' to show the available events that
can be used.
Nickhu (5):
nds32: Perf porting
nds32: Fix bug in bitfield.h
nds32: Add perf
The document for how to add NDS32 PMU
in devicetree.
Signed-off-by: Nickhu
---
Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
1 file changed, 17 insertions(+)
create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt
diff --git a/Documentation/devicetree
These two commit are perf supporting for nds32.
There are three perfomance counters in nds32, and
each of them can counts different events. You can
use 'perf list' to show the available events that
can be used.
Nickhu (5):
nds32: Perf porting
nds32: Fix bug in bitfield.h
nds32: Add perf
If the kernel config 'CONFIG_ALIGNMENT_TRAP' and the file
'/proc/sys/nds32/unaligned_access/enable' are set, the kernel
unaligned access handler does not handle correctly when the
value of immediate field is negative. This commit fixes the
unaligned access handler in kernel.
Signed-off-by: Nickhu
If the kernel config 'CONFIG_ALIGNMENT_TRAP' and the file
'/proc/sys/nds32/unaligned_access/enable' are set, the kernel
unaligned access handler does not handle correctly when the
value of immediate field is negative. This commit fixes the
unaligned access handler in kernel.
Signed-off-by: Nickhu
or negative and then change the value of immediate
filed to unsigned integer number.
Nickhu (2):
nds32: Renaming the file for unaligned access
nds32: Fix the unaligned access handler
arch/nds32/mm/alignment.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
--
2.17.0
or negative and then change the value of immediate
filed to unsigned integer number.
Nickhu (2):
nds32: Renaming the file for unaligned access
nds32: Fix the unaligned access handler
arch/nds32/mm/alignment.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
--
2.17.0
Change the name of the file '/proc/sys/nds32/unaligned_acess'
to '/proc/sys/nds32/unaligned_access'
Signed-off-by: Nickhu <nic...@andestech.com>
---
arch/nds32/mm/alignment.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/nds32/mm/alignment.c b/arch/nds32/mm/align
Change the name of the file '/proc/sys/nds32/unaligned_acess'
to '/proc/sys/nds32/unaligned_access'
Signed-off-by: Nickhu
---
arch/nds32/mm/alignment.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/nds32/mm/alignment.c b/arch/nds32/mm/alignment.c
index b96a01b10ca7
58 matches
Mail list logo