1. 27 Oct, 2021 3 commits
    • Christophe Leroy's avatar
      powerpc/boot: Set LC_ALL=C in wrapper script · b949d009
      Christophe Leroy authored
      While trying to build a simple Image for ACADIA platform, I got the
      following error:
      
      	  WRAP    arch/powerpc/boot/simpleImage.acadia
      	INFO: Uncompressed kernel (size 0x6ae7d0) overlaps the address of the wrapper(0x400000)
      	INFO: Fixing the link_address of wrapper to (0x700000)
      	powerpc64-linux-gnu-ld : mode d'émulation non reconnu : -T
      	Émulations prises en charge : elf64ppc elf32ppc elf32ppclinux elf32ppcsim elf64lppc elf32lppc elf32lppclinux elf32lppcsim
      	make[1]: *** [arch/powerpc/boot/Makefile:424 : arch/powerpc/boot/simpleImage.acadia] Erreur 1
      	make: *** [arch/powerpc/Makefile:285 : simpleImage.acadia] Erreur 2
      
      Trying again with V=1 shows the following command
      
      	powerpc64-linux-gnu-ld -m -T arch/powerpc/boot/zImage.lds -Ttext 0x700000 --no-dynamic-linker -o arch/powerpc/boot/simpleImage.acadia -Map wrapper.map arch/powerpc/boot/fixed-head.o arch/powerpc/boot/simpleboot.o ./zImage.3278022.o arch/powerpc/boot/wrapper.a
      
      The argument of '-m' is missing.
      
      This is due to the wrapper script calling 'objdump -p vmlinux' and
      looking for 'file format', whereas the output of objdump is:
      
      	vmlinux:     format de fichier elf32-powerpc
      
      	En-tête de programme:
      	    LOAD off    0x00010000 vaddr 0xc0000000 paddr 0x00000000 align 2**16
      	         filesz 0x0069e1d4 memsz 0x006c128c flags rwx
      	    NOTE off    0x0064591c vaddr 0xc063591c paddr 0x0063591c align 2**2
      	         filesz 0x00000054 memsz 0x00000054 flags ---
      
      Add LC_ALL=C at the beginning of the wrapper script in order to get the
      output expected by the script:
      
      	vmlinux:     file format elf32-powerpc
      
      	Program Header:
      	    LOAD off    0x00010000 vaddr 0xc0000000 paddr 0x00000000 align 2**16
      	         filesz 0x0069e1d4 memsz 0x006c128c flags rwx
      	    NOTE off    0x0064591c vaddr 0xc063591c paddr 0x0063591c align 2**2
      	         filesz 0x00000054 memsz 0x00000054 flags ---
      Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
      Acked-by: default avatarSegher Boessenkool <segher@kernel.crashing.org>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Link: https://lore.kernel.org/r/a9ff3bc98035f63b122c051f02dc47c7aed10430.1635256089.git.christophe.leroy@csgroup.eu
      b949d009
    • Joel Stanley's avatar
      powerpc/64s: Default to 64K pages for 64 bit book3s · f22969a6
      Joel Stanley authored
      For 64-bit book3s the default should be 64K as that's what modern CPUs
      are designed for.
      
      The following defconfigs already set CONFIG_PPC_64K_PAGES:
      
       cell_defconfig
       pasemi_defconfig
       powernv_defconfig
       ppc64_defconfig
       pseries_defconfig
       skiroot_defconfig
      
      The have the option removed from the defconfig, as it is now the
      default.
      
      The defconfigs that now need to set CONFIG_PPC_4K_PAGES to maintain
      their existing behaviour are:
      
       g5_defconfig
       maple_defconfig
       microwatt_defconfig
       ps3_defconfig
      Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      BugLink: https://github.com/linuxppc/issues/issues/109
      Link: https://lore.kernel.org/r/20211015001649.45591-1-joel@jms.id.au
      f22969a6
    • Michael Ellerman's avatar
      Revert "powerpc/audit: Convert powerpc to AUDIT_ARCH_COMPAT_GENERIC" · b7472e17
      Michael Ellerman authored
      This reverts commit 566af8cd.
      
      This caused some conflicts vs the audit tree, and the audit maintainers
      would prefer we postpone this to the next merge window so we have more
      time for testing.
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      b7472e17
  2. 22 Oct, 2021 27 commits
  3. 14 Oct, 2021 2 commits
  4. 13 Oct, 2021 3 commits
  5. 12 Oct, 2021 2 commits
  6. 08 Oct, 2021 3 commits