<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/arch/powerpc/tools, branch v6.1.168</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.1.168</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.1.168'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2022-03-09T10:47:53+00:00</updated>
<entry>
<title>powerpc/64: Add UADDR64 relocation support</title>
<updated>2022-03-09T10:47:53+00:00</updated>
<author>
<name>Alexey Kardashevskiy</name>
<email>aik@ozlabs.ru</email>
</author>
<published>2022-03-09T06:18:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d799769188529abc6cbf035a10087a51f7832b6b'/>
<id>urn:sha1:d799769188529abc6cbf035a10087a51f7832b6b</id>
<content type='text'>
When ld detects unaligned relocations, it emits R_PPC64_UADDR64
relocations instead of R_PPC64_RELATIVE. Currently R_PPC64_UADDR64 are
detected by arch/powerpc/tools/relocs_check.sh and expected not to work.
Below is a simple chunk to trigger this behaviour (this disables
optimization for the demonstration purposes only, this also happens with
-O1/-O2 when CONFIG_PRINTK_INDEX=y, for example):

  \#pragma GCC push_options
  \#pragma GCC optimize ("O0")
  struct entry {
          const char *file;
          int line;
  } __attribute__((packed));
  static const struct entry e1 = { .file = __FILE__, .line = __LINE__ };
  static const struct entry e2 = { .file = __FILE__, .line = __LINE__ };
  ...
  prom_printf("e1=%s %lx %lx\n", e1.file, (unsigned long) e1.file, mfmsr());
  prom_printf("e2=%s %lx\n", e2.file, (unsigned long) e2.file);
  \#pragma GCC pop_options

This adds support for UADDR64 for 64bit. This reuses __dynamic_symtab
from the 32bit code which supports more relocation types already.

Because RELACOUNT includes only R_PPC64_RELATIVE, this replaces it with
RELASZ which is the size of all relocation records.

Signed-off-by: Alexey Kardashevskiy &lt;aik@ozlabs.ru&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/20220309061822.168173-1-aik@ozlabs.ru
</content>
</entry>
<entry>
<title>powerpc/head_check: Fix shellcheck errors</title>
<updated>2021-08-17T12:52:02+00:00</updated>
<author>
<name>Michael Ellerman</name>
<email>mpe@ellerman.id.au</email>
</author>
<published>2021-08-16T06:36:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e95ad5f21693a37c0d318b5988c5a0de324eb3e3'/>
<id>urn:sha1:e95ad5f21693a37c0d318b5988c5a0de324eb3e3</id>
<content type='text'>
Replace "cat file | grep pattern" with "grep pattern file", and quote a
few variables. Together that fixes all shellcheck errors.

Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/20210817125154.3369884-1-mpe@ellerman.id.au
</content>
</entry>
<entry>
<title>powerpc/head_check: use stdout for error messages</title>
<updated>2021-08-16T06:28:14+00:00</updated>
<author>
<name>Randy Dunlap</name>
<email>rdunlap@infradead.org</email>
</author>
<published>2021-08-15T22:23:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=47c258d71ebfc832a760a1dc6540cf3c33968023'/>
<id>urn:sha1:47c258d71ebfc832a760a1dc6540cf3c33968023</id>
<content type='text'>
Prefer stderr instead of stdout for error messages.
This is a good practice and can help CI error detecting and
reporting (0day in this case).

Signed-off-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/20210815222334.9575-1-rdunlap@infradead.org

</content>
</entry>
<entry>
<title>powerpc/tools: Remove 90 line limit in checkpatch script</title>
<updated>2020-09-08T12:57:11+00:00</updated>
<author>
<name>Russell Currey</name>
<email>ruscur@russell.cc</email>
</author>
<published>2020-08-28T02:05:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0fb4871bcc8997acbb8edf14b301fc150101d6c0'/>
<id>urn:sha1:0fb4871bcc8997acbb8edf14b301fc150101d6c0</id>
<content type='text'>
As of commit bdc48fa11e46, scripts/checkpatch.pl now has a default line
length warning of 100 characters.  The powerpc wrapper script was using
a length of 90 instead of 80 in order to make checkpatch less
restrictive, but now it's making it more restrictive instead.

I think it makes sense to just use the default value now.

Signed-off-by: Russell Currey &lt;ruscur@russell.cc&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/20200828020542.393022-1-ruscur@russell.cc
</content>
</entry>
<entry>
<title>powerpc: unrel_branch_check.sh: enable the use of llvm-objdump v9, 10 or 11</title>
<updated>2020-09-02T01:00:22+00:00</updated>
<author>
<name>Stephen Rothwell</name>
<email>sfr@canb.auug.org.au</email>
</author>
<published>2020-08-12T08:10:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6b1992bcdee8b86a74362192d4d8906731918bcc'/>
<id>urn:sha1:6b1992bcdee8b86a74362192d4d8906731918bcc</id>
<content type='text'>
Currently, using llvm-objtool, this script just silently succeeds without
actually do the intended checking.  So this updates it to work properly.

Firstly, llvm-objdump does not add target symbol names to the end
of branches in its asm output, so we have to drop the branch to
__start_initialization_multiplatform using its address.

Secondly, v9 and 10 specify branch targets as .+&lt;offset&gt;, so we convert
those to actual addresses.

Thirdly, v10 and 11 error out on a vmlinux if given the -R option
complaining that it is "not a dynamic object".  The -R does not make
any difference to the asm output, so remove it.

Lastly, v11 produces asm that is very similar to Gnu objtool (at least
as far as branches are concerned), so no further changes are necessary
to make it work.

Signed-off-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/20200812081036.7969-3-sfr@canb.auug.org.au
</content>
</entry>
<entry>
<title>powerpc: unrel_branch_check.sh: use nm to find symbol value</title>
<updated>2020-09-02T01:00:22+00:00</updated>
<author>
<name>Stephen Rothwell</name>
<email>sfr@canb.auug.org.au</email>
</author>
<published>2020-08-12T08:10:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b71dca9891b330d5c2d3ff5d41704aa6f64f8e32'/>
<id>urn:sha1:b71dca9891b330d5c2d3ff5d41704aa6f64f8e32</id>
<content type='text'>
This is considerably faster then parsing the objdump asm output.  It will
also make the enabling of llvm-objdump a little easier.

Signed-off-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/20200812081036.7969-2-sfr@canb.auug.org.au
</content>
</entry>
<entry>
<title>powerpc: unrel_branch_check.sh: exit silently for early errors</title>
<updated>2020-09-02T01:00:22+00:00</updated>
<author>
<name>Stephen Rothwell</name>
<email>sfr@canb.auug.org.au</email>
</author>
<published>2020-08-11T14:04:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=af13a2244d59c4d63a25abd8257cbaef9d9ffebc'/>
<id>urn:sha1:af13a2244d59c4d63a25abd8257cbaef9d9ffebc</id>
<content type='text'>
If we can't find the address of __end_interrupts, then we still exit
successfully as that is the current behaviour.

Signed-off-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/20200811140435.20957-8-sfr@canb.auug.org.au
</content>
</entry>
<entry>
<title>powerpc: unrel_branch_check.sh: fix up the file header</title>
<updated>2020-09-02T01:00:22+00:00</updated>
<author>
<name>Stephen Rothwell</name>
<email>sfr@canb.auug.org.au</email>
</author>
<published>2020-08-11T14:04:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3745ae63b405b09c86718f95d96c4b2d2827b087'/>
<id>urn:sha1:3745ae63b405b09c86718f95d96c4b2d2827b087</id>
<content type='text'>
Signed-off-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/20200811140435.20957-7-sfr@canb.auug.org.au
</content>
</entry>
<entry>
<title>powerpc: unrel_branch_check.sh: simplify and tidy up the final loop</title>
<updated>2020-09-02T01:00:22+00:00</updated>
<author>
<name>Stephen Rothwell</name>
<email>sfr@canb.auug.org.au</email>
</author>
<published>2020-08-11T14:04:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b84eaab6ede6477484edc043456cf7d7cfc7f8b3'/>
<id>urn:sha1:b84eaab6ede6477484edc043456cf7d7cfc7f8b3</id>
<content type='text'>
Signed-off-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/20200811140435.20957-6-sfr@canb.auug.org.au
</content>
</entry>
<entry>
<title>powerpc: unrel_branch_check.sh: convert grep | sed | awk to just sed</title>
<updated>2020-09-02T01:00:22+00:00</updated>
<author>
<name>Stephen Rothwell</name>
<email>sfr@canb.auug.org.au</email>
</author>
<published>2020-08-11T14:04:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3d97abbc9f6fe90973551f3e3eef47ffef863114'/>
<id>urn:sha1:3d97abbc9f6fe90973551f3e3eef47ffef863114</id>
<content type='text'>
Also start using sed -E and make all the separate expressions into a
single one with comments.  Pull the stripping of condition registers
back into the sed command.

Signed-off-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/20200811140435.20957-5-sfr@canb.auug.org.au
</content>
</entry>
</feed>
