Skip to content
Snippets Groups Projects
  1. Dec 05, 2024
    • Andy Shevchenko's avatar
      x86/Documentation: Update algo in init_size description of boot protocol · 0c92af9e
      Andy Shevchenko authored
      
      [ Upstream commit be4ca6c53e66cb275cf0d71f32dac0c4606b9dc0 ]
      
      The init_size description of boot protocol has an example of the runtime
      start address for the compressed bzImage. For non-relocatable kernel
      it relies on the pref_address value (if not 0), but for relocatable case
      only pays respect to the load_addres and kernel_alignment, and it is
      inaccurate for the latter. Boot loader must consider the pref_address
      as the Linux kernel relocates to it before being decompressed as nicely
      described in this commit message a year ago:
      
        43b1d3e6 ("kexec: Allocate kernel above bzImage's pref_address")
      
      Due to this documentation inaccuracy some of the bootloaders (*) made a
      mistake in the calculations and if kernel image is big enough, this may
      lead to unbootable configurations.
      
      *)
        In particular, kexec-tools missed that and resently got a couple of
        changes which will be part of v2.0.30 release. For the record,
        commit 43b1d3e6 only fixed the kernel kexec implementation and
        also missed to update the init_size description.
      
      While at it, make an example C-like looking as it's done elsewhere in
      the document and fix indentation as presribed by the reStructuredText
      specifications, so the syntax highliting will work properly.
      
      Fixes: 43b1d3e6 ("kexec: Allocate kernel above bzImage's pref_address")
      Fixes: d297366b ("x86: document new bzImage fields")
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Link: https://lore.kernel.org/r/20241125105005.1616154-1-andriy.shevchenko@linux.intel.com
      
      
      Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
      0c92af9e
  2. Oct 04, 2024
  3. Oct 02, 2024
    • Al Viro's avatar
      move asm/unaligned.h to linux/unaligned.h · 5f60d5f6
      Al Viro authored
      asm/unaligned.h is always an include of asm-generic/unaligned.h;
      might as well move that thing to linux/unaligned.h and include
      that - there's nothing arch-specific in that header.
      
      auto-generated by the following:
      
      for i in `git grep -l -w asm/unaligned.h`; do
      	sed -i -e "s/asm\/unaligned.h/linux\/unaligned.h/" $i
      done
      for i in `git grep -l -w asm-generic/unaligned.h`; do
      	sed -i -e "s/asm-generic\/unaligned.h/linux\/unaligned.h/" $i
      done
      git mv include/asm-generic/unaligned.h include/linux/unaligned.h
      git mv tools/include/asm-generic/unaligned.h tools/include/linux/unaligned.h
      sed -i -e "/unaligned.h/d" include/asm-generic/Kbuild
      sed -i -e "s/__ASM_GENERIC/__LINUX/" include/linux/unaligned.h tools/include/linux/unaligned.h
      5f60d5f6
  4. Oct 01, 2024
  5. Sep 24, 2024
    • Huacai Chen's avatar
      Docs/LoongArch: Add advanced extended IRQ model description · f339bd3b
      Huacai Chen authored
      
      Introduce the advanced extended interrupt controllers (AVECINTC). This
      feature will allow each core to have 256 independent interrupt vectors
      and MSI interrupts can be independently routed to any vector on any CPU.
      
      The whole topology of irqchips in LoongArch machines looks like this if
      AVECINTC is supported:
      
        +-----+     +-----------------------+     +-------+
        | IPI | --> |        CPUINTC        | <-- | Timer |
        +-----+     +-----------------------+     +-------+
                     ^          ^          ^
                     |          |          |
              +---------+ +----------+ +---------+     +-------+
              | EIOINTC | | AVECINTC | | LIOINTC | <-- | UARTs |
              +---------+ +----------+ +---------+     +-------+
                   ^            ^
                   |            |
              +---------+  +---------+
              | PCH-PIC |  | PCH-MSI |
              +---------+  +---------+
                ^     ^           ^
                |     |           |
        +---------+ +---------+ +---------+
        | Devices | | PCH-LPC | | Devices |
        +---------+ +---------+ +---------+
                         ^
                         |
                    +---------+
                    | Devices |
                    +---------+
      
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      Signed-off-by: default avatarTianyang Zhang <zhangtianyang@loongson.cn>
      f339bd3b
  6. Sep 23, 2024
  7. Sep 05, 2024
  8. Sep 04, 2024
  9. Aug 30, 2024
  10. Aug 29, 2024
  11. Aug 20, 2024
  12. Aug 14, 2024
  13. Aug 01, 2024
  14. Jul 26, 2024
  15. Jul 12, 2024
  16. Jul 11, 2024
  17. Jul 04, 2024
  18. Jul 03, 2024
  19. Jul 02, 2024
  20. Jul 01, 2024
  21. Jun 28, 2024
  22. Jun 26, 2024
  23. Jun 17, 2024
  24. Jun 12, 2024
  25. Jun 11, 2024
  26. Jun 06, 2024
  27. May 30, 2024
  28. May 10, 2024
  29. May 06, 2024
  30. May 02, 2024
  31. Apr 29, 2024
    • Sourabh Jain's avatar
      Documentation/powerpc: update fadump implementation details · 57e67001
      Sourabh Jain authored
      
      The patch titled ("powerpc: make fadump resilient with memory add/remove
      events") has made significant changes to the implementation of fadump,
      particularly on elfcorehdr creation and fadump crash info header
      structure. Therefore, updating the fadump implementation documentation
      to reflect those changes.
      
      Following updates are done to firmware assisted dump documentation:
      
      1. The elfcorehdr is no longer stored after fadump HDR in the reserved
         dump area. Instead, the second kernel dynamically allocates memory
         for the elfcorehdr within the address range from 0 to the boot memory
         size. Therefore, update figures 1 and 2 of Memory Reservation during
         the first and second kernels to reflect this change.
      
      2. A version field has been added to the fadump header to manage the
         future changes to fadump crash info header structure without changing
         the fadump header magic number in the future. Therefore, remove the
         corresponding TODO from the document.
      
      Signed-off-by: default avatarSourabh Jain <sourabhjain@linux.ibm.com>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Link: https://msgid.link/20240422195932.1583833-4-sourabhjain@linux.ibm.com
      57e67001
  32. Apr 28, 2024
Loading