diff options
author | Jordan Niethe <jniethe5@gmail.com> | 2019-04-02 10:43:18 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-05-20 14:20:29 +1000 |
commit | 2717c6b8ddcd631dcf27eaed0f76b662be36a569 (patch) | |
tree | e6c5cbf315ae757b958f83ee0ad8bbead7a2c4c9 /skiboot.lds.S | |
parent | bc04bf1eef38a11b9d90f379d7be180f98e2b58d (diff) | |
download | skiboot-2717c6b8ddcd631dcf27eaed0f76b662be36a569.zip skiboot-2717c6b8ddcd631dcf27eaed0f76b662be36a569.tar.gz skiboot-2717c6b8ddcd631dcf27eaed0f76b662be36a569.tar.bz2 |
core/trace: Change buffer alignment from 4K to 64K
We want to be able to mmap the trace buffers to be used by the
dump_trace tool. This means that the trace bufferes must be page
aligned. Currently they are aligned to 4K. Most power systems have a
64K page size. On systems with a 4K page size, 64K aligned will still be
page aligned. Change the allocation of the trace buffers to be 64K
aligned.
The trace_info struct that contains the trace buffer is actually what is
allocated aligned memory. This means the trace buffer itself is not
actually aligned and this is the address that is currently exposed
through sysfs. To get around this change the address that is exposed to
sysfs to be the trace_info struct. This means the lock in trace_info is
now visible too.
Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'skiboot.lds.S')
-rw-r--r-- | skiboot.lds.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skiboot.lds.S b/skiboot.lds.S index ef7db23..54b1fef 100644 --- a/skiboot.lds.S +++ b/skiboot.lds.S @@ -192,9 +192,9 @@ SECTIONS */ . = ALIGN(0x1000); *(.data.memcons); - . = ALIGN(0x1000); + . = ALIGN(0x10000); *(.data.boot_trace); - . = ALIGN(0x1000); + . = ALIGN(0x10000); *(.data*) *(.force.data) *(.toc1) |