TODO

From Linux PARISC Wiki
(Difference between revisions)
Jump to: navigation, search
m (PA-RISC Linux TODO (actually this is Helge's TODO list))
m (Upstream PA-RISC-related kernel patch history)
(92 intermediate revisions by one user not shown)
Line 1: Line 1:
= PA-RISC Linux TODO (actually this is Helge's TODO list) =
+
= PA-RISC Linux TODO =
  
== Status & TODO 2021-11-01 ==
+
== Status & TODO 2022-10-27 ==
* Implement TOC in qemu ?
+
* Activate LARGE FILE SUPPORT generally on hppa: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020335
* __muldi3 routine in libgcc.a in kernel uses xmpyu FP instruction (qgis mail) -> bad! -> add linker check?
+
* backtrace to glibc?
** https://patchwork.kernel.org/project/linux-parisc/patch/YWSSVwQ9tc9YaC+f@ls3530/
+
* QEMU: Implement 32/24 bit HCRX graphics
** 64bit kernel still needs patches (or gcc fix from Dave)
+
* QEMU: Add support for running MPE with https://www.openpa.net (& Craig Lalley <mr_lalley@yahoo.com>)
* qemu bug building gcc-arm-none-eabi: https://buildd.debian.org/status/fetch.php?pkg=gcc-arm-none-eabi&arch=hppa&ver=15%3A10.3-2021.07-1&stamp=1633455020&raw=0
+
* stifb: Fix HCRX text scrolling, missing functions? - see latest patches to stifb
** same for abinit: https://buildd.debian.org/status/fetch.php?pkg=abinit&arch=hppa&ver=9.6.1-1&stamp=1634170491&raw=0
+
* Improve text on https://www.openpa.net
/tmp/cceXP0uE.s: Assembler messages:
+
* QEMU: Improve emulation speed on full virtualization
/tmp/cceXP0uE.s:1493: Error: Invalid Shift/Extract/Deposit Condition.
+
* Implement TLB lazy_mmu_mode, see include/linux/pgtable.h and search for arch_leave_lazy_mmu_mode
/tmp/cceXP0uE.s:1493: Error: Undefined absolute constant: '.loc'.
+
* check glibc tst-pthread-timedlock-lockloop testcase failure (The futex facility returned an unexpected error code., xclock_gettime.c:29: clock_gettime (0): Unknown error -1)
/tmp/cceXP0uE.s:1493: Error: Field out of range [0..31] (-1).
+
* Why is compiling fife so slow with cc1plus?
/tmp/cceXP0uE.s:1493: Error: Invalid operands
+
* Enhance vDSO: gettimeofday(), getcpu(),... see e.g.c32c47aa364096124c9c69c1a44918433832562b
make[4]: *** [Makefile:1117: alias.o] Error 1
+
* SeaBIOS and palo: muldi3 and divdi3 (from libgcc.a) trashes fr22-fr25 because of xmpyu instruction. Doesn't seem to have negative effect, but those registers should better be saved/restored in pdc_entry() and iodc_entry(), or libgcc should be fixed to not use floating point instructions.
* From Adrian Glaubitz (9/29/2021): The Rust project merged a change [1] that allows rustc to use GCC instead of LLVM as codegen backend for generating machine code through libgccjit. This means that we are in principal able now to build Rust code for all the architectures that GCC support but LLVM doesn't, which includes hppa. Please see this [2] and this [3] comment to see how to get started with cross-building the Rust compiler for a new target using libgccjit. We will have to add these new architectures to the libc crate first, see an example PR for that here [4]. Since I can't work on all these targets myself, I wanted to ask you to help me and get the support for hppa added to libc and rustc where necessary.
+
* STARTED: Port grub2 to hppa? -> https://github.com/hdeller/grub
** [1] https://github.com/rust-lang/rust/pull/87260
+
* STARTED: [https://patchwork.kernel.org/project/linux-parisc/patch/20211031204952.25678-2-svens@stackframe.org/ Visualize FX framebuffer/DRM support (by Sven Schnelle)]
** [2] https://github.com/rust-lang/rust/pull/87260#issuecomment-930221503
+
* Implement ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT : https://lwn.net/ml/linux-kernel/20190724055850.6232-14-alex@ghiti.fr/
** [3] https://github.com/rust-lang/rust/pull/87260#issuecomment-930223504
+
* STARTED: improve unaligned handlers, e.g. to use get_user/put_user inline asm
** [4] https://github.com/rust-lang/libc/pull/2414
+
* [[VDSO]] - Review gettimeofday and clock_gettime() implementation, possibly use a light-weight-syscall and rely on cr16 and cpu speed for more accurate timing?
* Clean up drivers/parisc/iosapic.c  and drivers/parisc/sba_iommu.c (Mail from Carlos Bilbao)
+
* Fix kernel: make ARCH=parisc tools/perf
* QEMU issues:
+
* trace irq flags - http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=24131a61ec8c2d83431cb818281d3c9db986ab08
** Track [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970460 qemu-user: trashes argv0 breaking multi-call binaries] QEMU bug.
+
* Add core-objtool for parisc - http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=26660a4046b171a752e72a1dd32153230234fe3a
** Because of this bug, qemu-user still has build-problems with those packages: lilypond, fceux, perl, sane-backends
+
* Add BPF assembler implementation
* Finish OpenJDK, see patch and mail from Adrian Glaubitz 05.02.2021.
+
* ONGOING: Enable UBSAN and fix fallouts* Enable BlockTLB on PA1.x for STI framebuffer (see block tlb info in sti.pdf documentation) and ftp://parisc.parisc-linux.org/docs/pdc32.pdf
* parisc timers: convert to generic clockevent (Arnd Bergmann) - https://patchwork.kernel.org/project/linux-parisc/patch/20201008154651.1901126-14-arnd@arndb.de/
+
* qemu: Check "HPPA support for IGNITE-UX install discs" for HP Logic Analyzer 16700A (Mail from Keith Monahan <keith@techtravels.org> Sept 2020)
+
** ncr53c710 driver from amiga: https://github.com/tonioni/WinUAE/blob/master/qemuvga/lsi53c710.cpp
+
* Check if https://lkml.org/lkml/2020/7/23/1246 was added to avoid TLB stalls (commits https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c6fe44d96fc1536af5b11cd859686453d1b7bfd1 and https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2a9127fcf2296674d58024f83981f40b128fffea) - kernel v5.9 seems good.
+
* STARTED by Sven: Fix kexec on PA8800/PA8900 CPUs: how to restart the CPUs on these systems?
+
* upgrade libgcc via:
+
** apt install -f -o Dpkg::Options::="--force-overwrite"
+
** see: https://raphaelhertzog.com/2011/08/01/understanding-dpkgs-file-overwrite-error/
+
* qemu
+
** Check "IGNITE-UX install discs" from Keith Monahan (09/20)
+
** Add pvpanic kernel support? - maybe?
+
** STARTED: Finish LASI and 82596 NIC for QEMU -> https://github.com/hdeller/qemu-hppa/commits/lasi
+
* Probably fixed: Fix stifb kernel hangs with latest kernels (4.9ff)
+
* Add BPF assember implementation
+
 
* Enable SPARSEMEM_VMEMMAP_ENABLE
 
* Enable SPARSEMEM_VMEMMAP_ENABLE
* ONGOING: Enable UBSAN and fix fallouts
 
 
* STARTED: implement CONFIG_VMAP_STACK "virtually mapped stacks and thread_info cleanup" -> https://lwn.net/Articles/693026/
 
* STARTED: implement CONFIG_VMAP_STACK "virtually mapped stacks and thread_info cleanup" -> https://lwn.net/Articles/693026/
* PALO - add regular rewind & load to avoid tftp boot timing issues. See mail from Frank Schreiner "PALO issues" (Dec 2018).
+
* convert irq handling to use CONFIG_IRQ_DOMAIN_HIERARCHY (serial port problem, action handler msising when registering irq)
* STARTED: Implement kernel VDSO support - https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git/log/?h=vdso
+
** [https://lore.kernel.org/linux-parisc/4544A34A.6080700@tausq.org/ Randolphs patch]
+
** [[Vdso]]
+
*** Get rid of executable stack, maybe use gateway page instead for signal returns?
+
*** Review gettimeofday and clock_gettime() implementation, possibly use a light-weight-syscall and rely on cr16 and cpu speed for more accurate timing? similiar to commit http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=18ad51dd342a7eb09dbcd059d0b451b616d4dafc
+
* STARTED: convert old-style rtc driver drivers/input/misc/hp_sdc_rtc.c to new RTC model, remove the procfs and miscdevice interfaces first and replace the ioctl with a struct rtc_class_ops. Arnd Bergmann can review those patches, but Alexandre and Alessandro are the ones who would merge them once the driver is moved to drivers/rtc. (Mail from Arnd Bergmann, 28.04.2016) - see https://patchwork.kernel.org/patch/10701397/
+
 
* check usage of CONFIG_MLONGCALLS, only 14MB/s with debian kernel and dd if=/dev/zero of=here bs=1k count=100000  ?
 
* check usage of CONFIG_MLONGCALLS, only 14MB/s with debian kernel and dd if=/dev/zero of=here bs=1k count=100000  ?
 +
* NO_IRQ -> should be converted to (0) instead of (-1) -> Helge (check assembly, check in drivers/parisc/*)
 +
* check assembly in drivers/parisc/*
 +
* INEQUIVALENT ALIASES occur building gnuradio on debian.
 +
* STARTED by Sven: Fix kexec on PA8800/PA8900 CPUs: how to restart the CPUs on these systems?
 +
* Add Linux kernel PIM driver - /sys/firmware/pim/*
 +
* parisc timers: convert to generic clockevent (Arnd Bergmann) - https://patchwork.kernel.org/project/linux-parisc/patch/20201008154651.1901126-14-arnd@arndb.de/
 +
* STARTED: convert old-style rtc driver drivers/input/misc/hp_sdc_rtc.c to new RTC model, remove the procfs and miscdevice interfaces first and replace the ioctl with a struct rtc_class_ops. Arnd Bergmann can review those patches, but Alexandre and Alessandro are the ones who would merge them once the driver is moved to drivers/rtc. (Mail from Arnd Bergmann, 28.04.2016) - see https://patchwork.kernel.org/patch/10701397/
 
* Add some cond_resched() calls to avoid RCU stalls, see commit 2a8bc5316adc998951e8f726c31e231a6021eae2
 
* Add some cond_resched() calls to avoid RCU stalls, see commit 2a8bc5316adc998951e8f726c31e231a6021eae2
* MAYBE: Implement DCACHE_WORD_ACCESS in kernel (Complaint from Linus)
+
* Check if https://lkml.org/lkml/2020/7/23/1246 was added to avoid TLB stalls (commits https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c6fe44d96fc1536af5b11cd859686453d1b7bfd1 and https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2a9127fcf2296674d58024f83981f40b128fffea) - kernel v5.9 seems good.
* Fix kernel to load -fpie compiled programs not at 0x400000 (ELF_ET_DYN_BASE, e.g. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.9.y&id=abb79a56898e044715d8efd07bc1902d27a94870)
+
* '''QEMU Full-system emulation'''
* gcc optimizations:
+
** Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> offers to do contract work for QEMU through his company.
 +
** Fix migration of VMs (noticed by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>):  Boot a qcow2 image in QEMU using the GTK, Wait a random time anywhere between 5-20s, Pause the VM, Switch to the "monitor" tab, Run "savevm foo" to save the current VM state as "foo", Type "quit" to exit QEMU, Add "-loadvm foo" to your QEMU command line and launch QEMU, Unpause the VM
 +
** Check "HPPA support for IGNITE-UX install discs" for HP Logic Analyzer 16700A (Mail from Keith Monahan <keith@techtravels.org> Sept 2020)
 +
** STARTED: Finish LASI and 82596 NIC for QEMU -> https://github.com/hdeller/qemu-hppa/commits/lasi
 +
*** ncr53c710 driver from amiga: https://github.com/tonioni/WinUAE/blob/master/qemuvga/lsi53c710.cpp
 +
* '''QEMU User-mode emulation'''
 +
** Implement io_submit() syscalls, probably not possible. Check why raft package testcases which fail
 +
** check why qgis, plasma-framework,  kio-extras and fcitx5-chinese-addons fail to build with "Illegal instruction" error (https://buildd.debian.org/status/fetch.php?pkg=qgis&arch=hppa&ver=3.22.4%2Bdfsg-3&stamp=1645691873&raw=0)
 +
** qemu and executable stack: The following error occurred on pacific in mlton build: /usr/lib/mlton/mlton-compile: error while loading shared libraries: libm.so.6: cannot enable executable stack as shared object requires: Invalid argument
 +
** More exec stack errors: openssh, lnav
 +
** It looks like haskell packages still fail on qemu (e.g., haskell-swish).
 +
* '''JAVA'''
 +
** Finish OpenJDK, see patch and mail from Adrian Glaubitz 05.02.2021.
 +
** IMPORTANT: fix OpenJDK - fixes required in zeroport (stack grows up!).
 +
* '''Rust language'''
 +
**From Adrian Glaubitz (9/29/2021): The Rust project merged a change [1] that allows rustc to use GCC instead of LLVM as codegen backend for generating machine code through libgccjit. This means that we are in principal able now to build Rust code for all the architectures that GCC support but LLVM doesn't, which includes hppa. Please see this [2] and this [3] comment to see how to get started with cross-building the Rust compiler for a new target using libgccjit. We will have to add these new architectures to the libc crate first, see an example PR for that here [4]. Since I can't work on all these targets myself, I wanted to ask you to help me and get the support for hppa added to libc and rustc where necessary.
 +
*** [1] https://github.com/rust-lang/rust/pull/87260
 +
*** [2] https://github.com/rust-lang/rust/pull/87260#issuecomment-930221503
 +
*** [3] https://github.com/rust-lang/rust/pull/87260#issuecomment-930223504
 +
*** [4] https://github.com/rust-lang/libc/pull/2414
 +
* '''gcc compiler'''
 
** _mcount can be optimized (smaller) by not subtracting offset)
 
** _mcount can be optimized (smaller) by not subtracting offset)
 
** check if we can use -fentry from gcc for _mcount optimization
 
** check if we can use -fentry from gcc for _mcount optimization
 
** put PLABELS into read-only section (gcc function pa_reloc_rw_mask() needs modification, see "section mismatches" mails, 11.09.2017)
 
** put PLABELS into read-only section (gcc function pa_reloc_rw_mask() needs modification, see "section mismatches" mails, 11.09.2017)
* Enable BlockTLB on PA1.x for STI framebuffer (see block tlb info in sti.pdf documentation) and ftp://parisc.parisc-linux.org/docs/pdc32.pdf
+
** gcc: Add _builtin_thread_pointer() and _builtin_set_thread_pointer(), e.g.: https://gcc.gnu.org/ml/gcc-patches/2012-07/msg00428.html  for glibc: ports/sysdeps/hppa/nptl/tls.h __set_cr27()
* convert unaligned handler to use get_user/put_user inline asm
+
** STARTED: why is GNU AS so slow, e.g. when building freeorion, quantlib-swig or yade packages, testcases: openturns
* Fix boot crash from Al Viro with sti gfx card (24.03.17)
+
*** http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787192
 +
*** https://sourceware.org/bugzilla/show_bug.cgi?id=18427
 +
** provide libphobos packages - gcc-defaults - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763103,  Work by Dave: https://gcc.gnu.org/ml/gcc-testresults/2018-11/msg03460.html
 +
** gcc -> join 32- and 64bit compiler, make "-m64" work, get rid of hppa64-linux-gnu-gcc
 +
* '''64-bit userspace support (from Dave Anglin, Nick Hudson)'''
 +
** 64-bit userspace, [[Binutils]] 64-bit binutils needs to be fixed to get multiple stub section support.
 +
** glibc port (hppa64 can use the generic thread code)
 +
** 64-bit support in gcc is probably pretty good as 64-bit HP-UX works fine.
 +
** gdb could be a problem due to a lack of a maintainer.
 +
 
 
* debian parisc perl bug (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721537) shows that mmap on parisc linux is horribly inefficient.  We allocate huge maps for small files. This should be improved. Mailthread: " parisc mmap: private file maps" ,http://www.spinics.net/lists/linux-parisc/msg05083.html  or  https://rt.perl.org/Public/Bug/Display.html?id=119567  https://rt.perl.org/Public/Bug/Display.html?id=119567  
 
* debian parisc perl bug (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721537) shows that mmap on parisc linux is horribly inefficient.  We allocate huge maps for small files. This should be improved. Mailthread: " parisc mmap: private file maps" ,http://www.spinics.net/lists/linux-parisc/msg05083.html  or  https://rt.perl.org/Public/Bug/Display.html?id=119567  https://rt.perl.org/Public/Bug/Display.html?id=119567  
* unaligned warning (from glibc) when running apt-get: https://sourceware.org/bugzilla/show_bug.cgi?id=20243
 
 
* kernel work
 
* kernel work
** trace irq flags - http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=24131a61ec8c2d83431cb818281d3c9db986ab08
 
** Add core-objtool for parisc - http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=26660a4046b171a752e72a1dd32153230234fe3a
 
 
** ALPHA processor port:
 
** ALPHA processor port:
 
*** Add https://lkml.org/lkml/2007/8/14/259 aboot patch
 
*** Add https://lkml.org/lkml/2007/8/14/259 aboot patch
 
*** New one: https://patchwork.kernel.org/patch/10141217/ (alpha: fix crash if pthread_create races with signal delivery)
 
*** New one: https://patchwork.kernel.org/patch/10141217/ (alpha: fix crash if pthread_create races with signal delivery)
 
*** Kernel patches: http://marc.info/?t=140610652200001&r=1&w=2, The proposed fix is in: http://marc.info/?t=140675670100010&r=1&w=2, http://marc.info/?t=142327510200001&r=1&w=2,  
 
*** Kernel patches: http://marc.info/?t=140610652200001&r=1&w=2, The proposed fix is in: http://marc.info/?t=140675670100010&r=1&w=2, http://marc.info/?t=142327510200001&r=1&w=2,  
*** qemu-user bug: https://gitlab.com/qemu-project/qemu/-/issues/494
+
*** alpha qemu-user bug: https://gitlab.com/qemu-project/qemu/-/issues/494
** convert irq handling to use CONFIG_IRQ_DOMAIN_HIERARCHY (serial port problem, action handler msising when registering irq)
+
** Circular dependency problems with kde packages caused by vlc and ffmpeg (Dave)
+
*** Solution: Rebuild ffmpeg outside the buildd (as some dependencies have probably been deleted) and upload a +b1 version. Then trigger bin-nmu of phonon package. Finally this resolves then the dependencies of vlc, ffmpeg, phonon, chromaprint, polkit-kde-agent-1, kwrited, kwallet-kf5 and  libkf5notifications-dev...
+
** Due to very bad performance running multiple copies of dot program (Dave)
+
*** In vtk6 debian package, adding DOT_NUM_THREADS = 1 helps.
+
*** Another issue that I have been wondering about is the performance of our kernel spinlock code.  PA 8800 and PA 8900 processors have a cache line length of 128 bytes.  I believe thereare some places where we assume 64 bytes.  We also allocate spinlocks on 16 byte boundaries. We might get better performance if we allocated on 32 (PA 1.X) and 128 (PA 2.0).  Helge: change: __PA_LDCW_ALIGNMENT
+
*** I've also seen that better performance may be obtained by doing a byte store to spinlock prior to ldcw.  This dirties the cache line and allows operation in cache in certain situations. I think this mainly applies to PA 1.X but I'm not sure.  I have some example code somewhere. Helge:  change struct arch_spinlock_t; in spinlock_types.h
+
** Implement ltrace on hppa
+
** SLAB breaks, SLUB works, why? Mail from Guy Martin.
+
 
** 3.14 partly: return ((unsigned long) mapping >> 7) & ((SHMLBA >> PAGE_SHIFT) - 1); in arch/parisc/kernel/sys_parisc.c
 
** 3.14 partly: return ((unsigned long) mapping >> 7) & ((SHMLBA >> PAGE_SHIFT) - 1); in arch/parisc/kernel/sys_parisc.c
** implement .con_font_set (consw) in sticon.c (to be able to change fonts at runtime)
+
* How to upgrade libgcc:
** why does mc hangs when exiting on sticon ?
+
** apt install -f -o Dpkg::Options::="--force-overwrite"
** better implementation to get stack pointer (in return_address(), in stack checker in irq.c, ...)
+
** see: https://raphaelhertzog.com/2011/08/01/understanding-dpkgs-file-overwrite-error/
  
 
* Kernel: Hard to solve outstanding issues
 
* Kernel: Hard to solve outstanding issues
Line 87: Line 90:
 
** Fix FireGL X1/X3 in C8000 - currently broken (no DRM and software accel is incredibly slow <strike>plus colors in 24bpp mode are wrong</strike> seems ok in debian 8 sid / 3.16.7 kernel) - Info: manual "Radeon R5xx Acceleration" - http://www.x.org/docs/AMD/R5xx_Acceleration_v1.1.pdf  and generic: http://www.botchco.com/agd5f/?p=50  
 
** Fix FireGL X1/X3 in C8000 - currently broken (no DRM and software accel is incredibly slow <strike>plus colors in 24bpp mode are wrong</strike> seems ok in debian 8 sid / 3.16.7 kernel) - Info: manual "Radeon R5xx Acceleration" - http://www.x.org/docs/AMD/R5xx_Acceleration_v1.1.pdf  and generic: http://www.botchco.com/agd5f/?p=50  
  
* Kernel: still missing Linux kernel development (no patches available yet):
+
* Kernel: still missing Linux kernel development (no patches available yet or maybe not possible to implement):
 +
** maybe: optimize flush_dcache_page() implementation like sparc. See Documentation/cachetlb.txt, e.g. used in aio subsystem
 
** maybe implement transparent huge pages (due to cache coherency technically only possible on PA8500-PA8700 CPUs, not possible on PA8800-PA8900 CPUs)
 
** maybe implement transparent huge pages (due to cache coherency technically only possible on PA8500-PA8700 CPUs, not possible on PA8800-PA8900 CPUs)
** optimize flush_dcache_page() implementation like sparc. See Documentation/cachetlb.txt, e.g. used in aio subsystem
+
** implement BUG() and WARN() with inline assembly so that interrupt happens in delay branch of "or,<> %r0,cond,%r0". Probably not possible, because gcc will report "control reaches end of non-void function" warnings/errors.
** NO_IRQ -> should be converted to (0) instead of (-1) -> Helge (check assembly, check in drivers/parisc/*)
+
** check assembly in drivers/parisc/*
+
** use pdc_add_valid() in kern_addr_valid(), protect against crashable acesses (like for superio-pc-drivers-detection in lp), add pdc_add_valid() to create a probe_kernel_read() implementation.
+
** arch/parisc/kernel/sys_parisc.c -> use SYSCALL_ALIAS() -> maybe
+
 
+
* Kernel: Low priority patches needs further work
+
 
** disable FP-register save/restore at kernel entry? - https://patchwork.kernel.org/patch/3975291/
 
** disable FP-register save/restore at kernel entry? - https://patchwork.kernel.org/patch/3975291/
 
** enable 16k/64k kernel page sizes (still cacheflushing-issues with SCSI driver, additional work in glibc needed to deal with >4k page size, e.g. ld-loader alignments of data/code segments)
 
** enable 16k/64k kernel page sizes (still cacheflushing-issues with SCSI driver, additional work in glibc needed to deal with >4k page size, e.g. ld-loader alignments of data/code segments)
 
** Superdome support - can someone test? Should work better now with latest kernels (maybe ask Dennis Clarke <dclarke@blastwave.org>, Jan 2019).
 
** Superdome support - can someone test? Should work better now with latest kernels (maybe ask Dennis Clarke <dclarke@blastwave.org>, Jan 2019).
** Visualize FX support (will probably never happen!)
 
** implement BUG() and WARN() with inline assembly so that interrupt happens in delay branch of "or,<> %r0,cond,%r0". Probably not possible, because gcc will report "control reaches end of non-void function" warnings/errors.
 
  
* 64-bit userspace support (from Dave Anglin, Nick Hudson):
 
** 64-bit userspace, [[Binutils]] 64-bit binutils needs to be fixed to get multiple stub section support.
 
** glibc port (hppa64 can use the generic thread code)
 
** 64-bit support in gcc is probably pretty good as 64-bit HP-UX works fine.
 
** gdb could be a problem due to a lack of a maintainer.
 
 
* Debian packages / Userspace work
 
* Debian packages / Userspace work
** IMPORTANT: fix OpenJDK - fixes required in zeroport (stack grows up!).
 
** gcc -> join 32- and 64bit compiler, make "-m64" work, get rid of hppa64-linux-gnu-gcc
 
* userspace
 
** elfutils -- testsuite error
 
** glib2.0 -- testsuite error
 
** gtk+3.0 succeeds by adding this to debian/rules: touch testsuite/reftests/color-transition.ui.known_fail testsuite/reftests/linear-gradient-transition-to-other.ui.known_fail
 
** glibc pthread cancellation: the main issue is the target specific code needed to handle stubs and signal frames.  See linux-unwind.h and hpux-unwind.h in gcc's libgcc/config/pa directory.  The function pa32_fallback_frame_state does the hard work for linux.  Hopefully, the signal tramp hasn't changed. All the unwind tests in gcc pass, so I think the implementation there is okay. It may be we need something similar to pa32_fallback_frame_state in glibc to fix cancellation
 
** libqb - testsuite error
 
** DONE: capnproto - testsuite was wrong: PARISC uses mips-floatingpoint NANs - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781787
 
 
** teach "blkid" about palo partition
 
** teach "blkid" about palo partition
** STARTED: why is GNU AS so slow, e.g. when building freeorion, quantlib-swig or yade packages, testcases: openturns
+
** glibc: add backtrace() function, problems when building elfutils package: http://buildd.debian-ports.org/status/package.php?p=elfutils&suite=sid and dovecot https://buildd.debian.org/status/fetch.php?pkg=dovecot&arch=hppa&ver=1%3A2.3.19.1%2Bdfsg1-2%2Bb1&stamp=1666756774&raw=0
*** https://sourceware.org/bugzilla/show_bug.cgi?id=18427
+
** Circular dependency problems with kde packages caused by vlc and ffmpeg (Dave)
*** http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787192
+
*** Solution: Rebuild ffmpeg outside the buildd (as some dependencies have probably been deleted) and upload a +b1 version. Then trigger bin-nmu of phonon package. Finally this resolves then the dependencies of vlc, ffmpeg, phonon, chromaprint, polkit-kde-agent-1, kwrited, kwallet-kf5 and  libkf5notifications-dev...
** glibc: add backtrace() function, problems when building elfutils package: http://buildd.debian-ports.org/status/package.php?p=elfutils&suite=sid
+
** Due to very bad performance running multiple copies of dot program (Dave)
** gcc: Add _builtin_thread_pointer() and _builtin_set_thread_pointer(), e.g.: https://gcc.gnu.org/ml/gcc-patches/2012-07/msg00428.html  for glibc: ports/sysdeps/hppa/nptl/tls.h __set_cr27()
+
*** In vtk6 debian package, adding DOT_NUM_THREADS = 1 helps.
** provide libphobos packages - gcc-defaults - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763103,  Work by Dave: https://gcc.gnu.org/ml/gcc-testresults/2018-11/msg03460.html
+
 
** debian-cd to use xorriso
+
* Floating point NaN (see: https://en.wikipedia.org/wiki/NaN)
** debian-cd: do not compress kernel.
+
** PA-RISC uses "mips" NaN format which differs from x86, etc. It should be called PA-RISC format as I think PA was first. The quiet NaN bit is opposite to than in current IEEE standard.  
 +
** Debian packages with NaN issues: libime, [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781787 capnproto]
 
    
 
    
 
* palo (PA-RISC Boot Loader):
 
* palo (PA-RISC Boot Loader):
 +
** PALO - add regular rewind & load to avoid tftp boot timing issues. See mail from Frank Schreiner "PALO issues" (Dec 2018).
 +
** When listing directory contents, resolve and print symlink target file names too, e.g. "vmlinux -> linux-5.12.1-64bit".
 
** Fix palo deb package to build iplboot natively (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851792)
 
** Fix palo deb package to build iplboot natively (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851792)
** Palo needs better user interaction instead of "0", "1".... Howtos.
 
 
** Modify (if possible), that palo can read (sequential) tftpbootable-vmlinuxes as well as the current boot-vmlinux images (simplifies build/handling)
 
** Modify (if possible), that palo can read (sequential) tftpbootable-vmlinuxes as well as the current boot-vmlinux images (simplifies build/handling)
  
Line 366: Line 350:
 
** parisc: perf: return -EFAULT on error
 
** parisc: perf: return -EFAULT on error
 
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=18d98a79382cbe5a7569788d5b7b18e7015506f2 parisc: Enable KASLR]
 
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=18d98a79382cbe5a7569788d5b7b18e7015506f2 parisc: Enable KASLR]
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5c38602d83e584047906b41b162ababd4db4106d parisc: Re-enable interrupts early]
+
** <del>[http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5c38602d83e584047906b41b162ababd4db4106d parisc: Re-enable interrupts early]</del>
 
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=637250cc8f5e2bfc5c3a96802d1d96b4987a1d62 parisc: Enhance CPU detection code on PAT machines]
 
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=637250cc8f5e2bfc5c3a96802d1d96b4987a1d62 parisc: Enhance CPU detection code on PAT machines]
 
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=160494d381373cfa21208484aea4e5db2d3cb0a8 parisc: Optimize timer interrupt function]
 
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=160494d381373cfa21208484aea4e5db2d3cb0a8 parisc: Optimize timer interrupt function]
Line 561: Line 545:
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a886c9791aed64d73f8c0038cc1506741ba216fa '''parisc: Reorder TLB flush timing calculation''']
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a886c9791aed64d73f8c0038cc1506741ba216fa '''parisc: Reorder TLB flush timing calculation''']
 
** parisc: Remove PTE load and fault check from L2_ptep macro
 
** parisc: Remove PTE load and fault check from L2_ptep macro
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d27dfa13b9f77ae7e6ed09d70a0426ed26c1a8f9 '''parisc: Release spinlocks using ordered store''']
+
** <del>[http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d27dfa13b9f77ae7e6ed09d70a0426ed26c1a8f9 '''parisc: Release spinlocks using ordered store''']</del>
 
** parisc: Purge TLB entries after updating page table entry and set page accessed flag in TLB handler
 
** parisc: Purge TLB entries after updating page table entry and set page accessed flag in TLB handler
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1138b6718ff74d2a934459643e3754423d23b5e2 '''parisc: Fix address in HPMC IVA'''] (backported to all)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1138b6718ff74d2a934459643e3754423d23b5e2 '''parisc: Fix address in HPMC IVA'''] (backported to all)
Line 598: Line 582:
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b102f29b2d8603f15071384e88125b8eab5f8faa '''parisc: Count IPI function call interrupts''']
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b102f29b2d8603f15071384e88125b8eab5f8faa '''parisc: Count IPI function call interrupts''']
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f73493eb4aecdd6edd8a749890e6e2dcfa0a7978 '''parisc: Improve initial IRQ to CPU assignment''']
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f73493eb4aecdd6edd8a749890e6e2dcfa0a7978 '''parisc: Improve initial IRQ to CPU assignment''']
** parisc: Use F_EXTEND() macro in iosapic code
+
** <del>parisc: Use F_EXTEND() macro in iosapic code</del> (reverted later on)
 
** parisc: Add constants for PDC_RELOCATE PDC call
 
** parisc: Add constants for PDC_RELOCATE PDC call
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8207d4ee44d3f525bf9aa57807ac9db5d0d90c1a '''parisc: Show machine product number during boot''']
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8207d4ee44d3f525bf9aa57807ac9db5d0d90c1a '''parisc: Show machine product number during boot''']
Line 673: Line 657:
 
** parisc: fix race condition in patching code
 
** parisc: fix race condition in patching code
 
* Kernel 5.4
 
* Kernel 5.4
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=83af58f8068ea3f7b3c537c37a30887bfa585069 '''parisc: Add assembly implementations for memset, strlen, strcpy, strncpy and strcat''']
+
** <del>[http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=83af58f8068ea3f7b3c537c37a30887bfa585069 '''parisc: Add assembly implementations for memset, strlen, strcpy, strncpy and strcat''']</del> (was reverted)
 
** parisc: Add ALTERNATIVE_CODE() and ALT_COND_RUN_ON_QEMU
 
** parisc: Add ALTERNATIVE_CODE() and ALT_COND_RUN_ON_QEMU
 
** parisc: speed up flush_tlb_all_local with qemu
 
** parisc: speed up flush_tlb_all_local with qemu
Line 784: Line 768:
 
* Kernel 5.12
 
* Kernel 5.12
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b7795074a04669d0a023babf786d29bf67c68783 '''parisc: Optimize per-pagetable spinlocks''']
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b7795074a04669d0a023babf786d29bf67c68783 '''parisc: Optimize per-pagetable spinlocks''']
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2347961b11d4079deace3c81dceed460c08a8fc1 '''binfmt_misc: pass binfmt_misc flags to the interpreter''']
+
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2347961b11d4079deace3c81dceed460c08a8fc1 '''binfmt_misc: pass binfmt_misc flags to the interpreter'''] (needed for better qemu-user support on all platforms)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c70919bd9d0782a6078ccd37d7f861d514f5481e '''parisc: Fix IVT checksum calculation wrt HPMC''']
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c70919bd9d0782a6078ccd37d7f861d514f5481e '''parisc: Fix IVT checksum calculation wrt HPMC''']
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=31680c1d1595a59e17c14ec036b192a95f8e5f4a parisc: Bump 64-bit IRQ stack size to 64 KB]
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=31680c1d1595a59e17c14ec036b192a95f8e5f4a parisc: Bump 64-bit IRQ stack size to 64 KB]
Line 821: Line 805:
 
** parisc: Drop useless debug info and comments from signal.c
 
** parisc: Drop useless debug info and comments from signal.c
 
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3e4a1aff2a97cb4fd7f0268e4b69e8c9d3641277 parisc: Check user signal stack trampoline is inside TASK_SIZE]
 
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3e4a1aff2a97cb4fd7f0268e4b69e8c9d3641277 parisc: Check user signal stack trampoline is inside TASK_SIZE]
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e4f2006f1287e7ea17660490569cff323772dac4 parisc: Reduce sigreturn trampoline to 3 instructions]
+
** <del>[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e4f2006f1287e7ea17660490569cff323772dac4 '''parisc: Reduce sigreturn trampoline to 3 instructions''']</del> '''(was reverted in v5.15 and v5.16)'''
 
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d97180ad68bdb7ee10f327205a649bc2f558741d parisc: Mark sched_clock unstable only if clocks are not syncronized]
 
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d97180ad68bdb7ee10f327205a649bc2f558741d parisc: Mark sched_clock unstable only if clocks are not syncronized]
 
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=671028728083e856e9919221b109e3b2cd2ccc49 '''parisc: Implement __get/put_kernel_nofault()'''] (Dropped CONFIG_SET_FS incl. KERNEL_DS and USER_DS)
 
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=671028728083e856e9919221b109e3b2cd2ccc49 '''parisc: Implement __get/put_kernel_nofault()'''] (Dropped CONFIG_SET_FS incl. KERNEL_DS and USER_DS)
Line 863: Line 847:
 
** parisc/ftrace: use static key to enable/disable function graph tracer
 
** parisc/ftrace: use static key to enable/disable function graph tracer
 
** parisc: Use swap() to swap values in setup_bootmem()
 
** parisc: Use swap() to swap values in setup_bootmem()
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=014966dcf76bce5717f7d974d0410d3402a651c2 '''parisc: don't enable irqs unconditionally in handle_interruption()''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7e992711dddbdb1c27d077432d8440fefd44819f '''parisc: Don't disable interrupts in cmpxchg and futex operations''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2a2e8202c7a16a85a881ad2b6e32ccbebdc01dda parisc: move CPU field back into thread_info]
 +
** <del>[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=279917e27edc293eb645a25428c6ab3f3bca3f86 '''parisc: Fix backtrace to always include init funtion names''']</del> (backported to v5.4+ - and '''reverted in v5.16''')
 +
** parisc: Fix implicit declaration of function __kernel_text_address
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=38860b2c8bb1b92f61396eb06a63adff916fc31d '''parisc: Flush kernel data mapping in set_pte_at() when installing pte for user page'''] (backported to v5.12+)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3ec18fc7831e7d79e2d536dd1f3bc0d3ba425e8a '''parisc/entry: fix trace test in syscall exit path''']  to-be-backported!
 +
** parisc: Include stringify.h to avoid build error in crypto/api.c
 +
** parisc: Wire up futex_waitv
 +
** parisc: Wrap assembler related defines inside __ASSEMBLY__
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=79df39d535c7a3770856fe9f5aba8c0ad1eebdb6 '''Revert "parisc: Reduce sigreturn trampoline to 3 instructions"'''] (reverted in v5.15 too)
 +
** parisc: Enable CONFIG_PRINTK_TIME=y in 32bit defconfig
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bec05f33ebc1006899c6d3e59a00c58881fe7626 '''parisc/sticon: fix reverse colors'''] (backported to all)
 +
** parisc: Increase FRAME_WARN to 2048 bytes on parisc
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=169d1a4a2adb2c246396c56aa2f9eec3868546f1 '''parisc: Provide an extru_safe() macro to extract unsigned bits''']
 +
** parisc: Convert PTE lookup to use extru_safe() macro
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=98400ad75e95860e9a10ec78b0b90ab66184a2ce '''Revert "parisc: Fix backtrace to always include init funtion names"'''] (backported to v5.4+)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=df2ffeda6370a77011902e7c9d7a1eb1cbffed4f '''parisc: Fix extraction of hash lock bits in syscall.S''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1d7c29b77725d05faff6754d2f5e7c147aedcf93 parisc: Fix KBUILD_IMAGE for self-extracting kernel] (backported to v4.14+)
 +
** parisc: Enable sata sil, audit and usb support on 64-bit defconfig
 +
** parisc/agp: Annotate parisc agp init functions with __init
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0f9fee4cdebfbe695c297e5b603a275e2557c1cc parisc: Fix "make install" on newer debian releases] (backported to v3.13+)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=afdb4a5b1d340e4afffc65daa21cc71890d7d589 '''parisc: Mark cr16 CPU clocksource unstable on all SMP machines'''] (backported to v4.14+)
 +
** parisc: Clear stale IIR value on instruction access rights trap
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f66fce0f46560b9e910787ff7ad0974441c4f9c '''parisc: Correct completer in lws start'''] (backported to v4.19+)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d3a5a68cff47f6eead84504c3c28376b85053242 '''parisc: Fix mask used to select futex spinlock'''] (backported to v5.10+)
 +
** parisc: remove ARCH_DEFCONFIG
 +
* Kernel 5.17
 +
** parisc: io: Improve the outb(), outw() and outl() macros
 +
** parisc: pdc_stable: use default_groups in kobj_type
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4b9d2a731c3d22a05c1bccdb11b6e00054ff5fda parisc: Switch user access functions to signal errors in r29 instead of r8]
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=712a270d2db967b387338c26c3dc04ccac3fcec3 parisc: Fix pdc_toc_pim_11 and pdc_toc_pim_20 definitions] (backported to v5.16)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1c72d9bbf2bf91670ac589adf037f433642fff5 parisc: Add kgdb io_module to read chars via PDC]
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d6ab9fc74513ae6501afcdae2547334a03b9a5c9 '''parisc: Enable TOC (transfer of contents) feature unconditionally''']
 +
** parisc: Re-use toc_stack as hpmc_stack
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=16f035d9e264d95d61d5f4056bb00d8169a7a3d1 '''sections: Fix __is_kernel() to include init ranges''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=68d247ad38b1ef46bd945a5220fa6d28c901c2f2 parisc: Default to 16 CPUs on 32-bit kernel]
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=45458aa49abe3b0ac68ce86b3d4ca3a97eaeac53 parisc: Define depi_safe macro]
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=db19c6f1a2a353cc8dec35b4789733a3cf6e2838 '''parisc: Fix lpa and lpa_user defines'''] (backported to v5.2+)
 +
** parisc: Avoid calling faulthandler_disabled() twice
 +
** parisc: Don't call faulthandler_disabled() in do_page_fault()
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=20dda87bdc6567e864942ead40bc149ebbe3ae79 parisc: Enhance page fault termination message]
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d0585d742ff2d82accd26c661c60a6d260429c4a '''parisc: Rewrite light-weight syscall and futex code''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=72c3dd8207de4178ae50553666129af7231f86e7 '''parisc: Add lws_atomic_xchg and lws_atomic_store syscalls''']
 +
** parisc: decompressor: do not copy source files while building
 +
** parisc: Add visible flag to toc_stack variable
 +
** parisc: Use safer strscpy() in setup_cmdline()
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5f7ee6e37a3cadefe45378c17c4285fa41141d92 '''parisc: Autodetect default output device and set console= kernel parameter''']
 +
** parisc: Fix missing prototype for 'toc_intr' warning in toc.c
 +
** parisc: pdc_stable: Fix memory leak in pdcs_register_pathentries
 +
** parisc: Add ioread64_lo_hi() and iowrite64_lo_hi()
 +
** <del>[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b160628e9ebcdc85d0db9d7f423c26b3c7c179d0 '''parisc: Show error if wrong 32/64-bit compiler is being used'''] (backported to v5.15+)</del> (reverted in v6.0)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dbd0b42350d5717786cb8257fbe5b528f3af9772 '''parisc: Fix some apparent put_user() failures''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9129886b88185962538180625ca8051362b01327 '''parisc: Drop __init from map_pages declaration'''] (backported to v5.4+)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b7d6f44a0fa716a82969725516dc0b16bc7cd514 '''parisc: Fix data TLB miss in sba_unmap_sg'''] (backported to all)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d7da660cab47183cded65e11b64497d0f56c6edf '''parisc: Fix sglist access in ccio-dma.c'''] (backported to all)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6e8793674bb0d1135ca0e5c9f7e16fecbf815926 serial: parisc: GSC: fix build when IOSAPIC is not set] (backported to all)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a97279836867b1cb50a3d4f0b1bf60e0abe6d46c '''parisc/unaligned: Fix ldw() and stw() unalignment handlers'''] (backported to all)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dd2288f4a020d693360e3e8d72f8b9d9c25f5ef6 '''parisc/unaligned: Fix fldd and fstd unaligned handlers on 32-bit kernel'''] (backported to all)
 +
* Kernel 5.18
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=df24e1783e6e0eb3dc0e3ba5a8df3bb0cc537408 '''parisc: Add vDSO support''']
 +
** video/fbdev/stifb: Implement the stifb_fillrect() function
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b9f50eea4f277943842e82bc4d73f912a2f165c6 '''parisc: Always use the self-extracting kernel feature''']
 +
** parisc: Add defines for various space register
 +
** parisc: Use SR_USER and SR_KERNEL in get_user() and put_user()
 +
** parisc: Use constants to encode the space registers like SR_KERNEL
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8278cc16266326f23c05f94d748569faa81319bb '''parisc: Reduce code size by optimizing get_current() function calls''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=df24e1783e6e0eb3dc0e3ba5a8df3bb0cc537408 '''parisc/unaligned: Use EFAULT fixup handler in unaligned handlers''']
 +
** parisc/unaligned: Rewrite inline assembly of emulate_ldh()
 +
** parisc/unaligned: Rewrite inline assembly of emulate_ldw()
 +
** parisc/unaligned: Rewrite 32-bit inline assembly of emulate_ldd()
 +
** parisc/unaligned: Rewrite 32-bit inline assembly of emulate_sth()
 +
** parisc/unaligned: Enhance user-space visible output
 +
** parisc: Avoid calling SMP cache flush functions on cache-less machines
 +
** parisc: Enable ARCH_HAS_DEBUG_VM_PGTABLE
 +
** parisc: Improve CPU socket and core bootup info text
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b046d0245cec982c72a65d3ea1b834959a9708b '''parisc: Avoid using hardware single-step in kprobes''']
 +
** parisc: Avoid flushing cache on cache-less machines
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=df24e1783e6e0eb3dc0e3ba5a8df3bb0cc537408 '''parisc: Fix non-access data TLB cache flush faults''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=df24e1783e6e0eb3dc0e3ba5a8df3bb0cc537408 '''parisc: Fix handling off probe non-access faults''']
 +
** parisc: Simplify fast path for non-access data TLB faults
 +
** parisc: Increase parisc_cache_flush_threshold setting
 +
** <del>[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=53d862fac4a09b9c56cca0433fa9de5732fd05a1 '''parisc: Fix invalidate/flush vmap routines''']</del>
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=08a491b2e4b1c4c618ee82d3f4b0ff3b20c5acf5 '''Revert "parisc: Fix invalidate/flush vmap routines"''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=939fc856676c266c3bc347c1c1661872a3725c0f parisc: Fix CPU affinity for Lasi, WAX and Dino chips]
 +
** parisc: Clean up cpu_check_affinity() and drop cpu_set_affinity_irq()
 +
** parisc: Detect hppa-suse-linux-gcc compiler for cross-building
 +
** parisc: Add constants for control registers and clean up mfctl()
 +
** parisc: Ensure set_firmware_width() is called only once
 +
** parisc: Switch from GENERIC_CPU_DEVICES to GENERIC_ARCH_TOPOLOGY
 +
** parisc: Move store_cpu_topology() into text section
 +
** parisc: Move CPU startup-related functions into .text section
 +
** parisc: Move disable_sr_hashing_asm() into .text section
 +
** parisc: Add PDC locking functions for rendezvous code
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=88b3aac6228baaac6a3bcc0808845083b9d9f08f parisc: Implement __cpu_die() and __cpu_disable() for CPU hotplugging]
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=98903688e6106d9ca68e44c7d218e61336d54631 parisc: Rewrite arch_cpu_idle_dead() for CPU hotplugging]
 +
** parisc: Move common_stext into .text section when CONFIG_HOTPLUG_CPU=y
 +
** parisc: Find a new timesync master if current CPU is removed
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9fe7fa7d874a536e0540469f314772c054a0323 '''parisc: Fix patch code locking and flushing''']
 +
** Revert "parisc: Mark cr16 CPU clocksource unstable on all SMP machines"
 +
** Revert "parisc: Mark sched_clock unstable only if clocks are not syncronized"
 +
** Revert "parisc: Fix patch code locking and flushing"
 +
** parisc: Only list existing CPUs in cpu_possible_mask
 +
** parisc: Update 32- and 64-bit defconfigs
 +
** parisc: Re-enable GENERIC_CPU_DEVICES for !SMP
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5b89966bc96a06f6ad65f64ae4b0461918fcc9d3 '''parisc: Merge model and model name into one line in /proc/cpuinfo'''] (backported to all)
 +
** parisc: Change MAX_ADDRESS to become unsigned long long
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=340233dcc0160aafcce46ca893d1679f16acf409 '''parisc: Mark cr16 clock unstable on all SMP machines'''] (backported to v5.16+)
 +
** Revert "parisc: Increase parisc_cache_flush_threshold setting"
 +
** parisc: Fix typos in comments
 +
** parisc: Disable debug code regarding cache flushes in handle_nadtlb_fault()
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2de8b4cc2051ee1d40eedbcf94de0e7d04507c37 '''parisc: Rewrite cache flush code for PA8800/PA8900''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=798082be69fea995a475ca1db8f9873589e207d9 '''parisc: Fix patch code locking and flushing''']
 +
* Kernel 5.19
 +
** parisc: video: fbdev: stifb: Add sti_dump_font() to dump STI font
 +
** parisc: Prevent ldil() to sign-extend into upper 32 bits
 +
** parisc: Fix wrong comment for shr macro
 +
** parisc: Add dep_safe() macro to deposit a register in 32- and 64-kernels
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1770918492414e8dc103d996f3f3860ee0bfd6c '''parisc: Optimize tmpalias function calls''']
 +
** parisc: Drop __ARCH_WANT_OLD_READDIR and __ARCH_WANT_SYS_OLDUMOUNT
 +
** parisc: Don't enforce DMA completion order in cache flushes
 +
** parisc: Don't hardcode assembler bit definitions in tmpalias code
 +
** parisc/stifb: Implement fb_is_primary_device() (backported to v5.10+)
 +
** parisc/stifb: Keep track of hardware path of graphics card  (backported to v5.10+)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6ba688364856ad083be537f08e86ba97f433d405 '''parisc: fix a crash with multicore scheduler'''] (backported to v5.18)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1d0811b03eb30b2f0793acaa96c6ce90b8b9c87a parisc/stifb: Fix fb_is_primary_device() only available with CONFIG_FB_STI] (backported to v5.10+)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0a1355db36718178becd2bfe728a023933d73123 '''parisc: Enable ARCH_HAS_STRICT_MODULE_RWX'''] (backported to v5.2+)
 +
** parisc: align '*' in comment in math-emu code
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e9ed22e6e5010997a2f922eef61ca797d0a2a246 '''parisc: Fix flush_anon_page on PA8800/PA8900'''] (backported to v5.18)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=96b80fcd2705fc50ebe1f7f3ce204e861b3099ab '''parisc/unaligned: Fix emulate_ldw() breakage'''] (backported to v5.18)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=aa78fa905b4431c432071a878da99c2b37fc0e79 '''parisc: Fix vDSO signal breakage on 32-bit kernel'''] (backported to v5.18)
 +
* Kernel 6.0
 +
** parisc: Clean up names in hardware database
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cab56b51ec0e69128909cef4650e1907248d821b '''parisc: Fix device names in /proc/iomem'''] (backported to v4.9+)
 +
** parisc: Drop pa_swapper_pg_lock spinlock
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6431e92fc827bdd2d28f79150d90415ba9ce0d21 '''parisc: io_pgetevents_time64() needs compat syscall in 32-bit compat mode'''] (backported to v5.1+)
 +
** parisc: Fix comment typo in fault.c
 +
** parisc: Drop zero variable initialisations in mm/init.c
 +
** parisc: Check the return value of ioremap() in lba_driver_probe()
 +
** Input: gscps2 - check return value of ioremap() in gscps2_probe()
 +
** parisc: Do not initialise statics to 0
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7ae1f5508d9a33fd58ed3059bd2d569961e3b8bd '''parisc: Fix exception handler for fldw and fstw instructions'''] (backported to all)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3dcfb729b5f4a0c9b50742865cd5e6c4dbcc80dc'''parisc: Make CONFIG_64BIT available for ARCH=parisc64 only'''] (backported to v5.15+)
 +
** Revert "parisc: Show error if wrong 32/64-bit compiler is being used"
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=591d2108f3abc4db9f9073cae37cf3591fd250d6 '''parisc: Add runtime check to prevent PA2.0 kernels on PA1.x machines''']
 +
** parisc: ccio-dma: Fix typo in comment
 +
** parisc: ccio-dma: Handle kmalloc failure in ccio_init_resources()
 +
** parisc: led: Move from strlcpy with unused retval to strscpy
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=95363747a6f39e88a3052fcf6ce6237769495ce0 '''tools/include/uapi: Fix <asm/errno.h> for parisc and xtensa'''] (backported to v5.10+)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=805ce8614958c925877ba6b6dc26cdf9f8800474 '''parisc: Allow CONFIG_64BIT with ARCH=parisc'''] (backported to v5.15+)
 +
** parisc: remove obsolete manual allocation aligning in iosapic
 +
** parisc: ccio-dma: Add missing iounmap in error path in ccio_probe()
 +
* Kernel 6.1
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b148766e2b8b7b61c9aef53aefedae33f637a1e7 '''parisc: Reduce kernel size by packing alternative tables''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=027c3d345e2a1ea61d6e4506a250eb392e6e7b18 '''parisc: Convert PDC console to an early console''']
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=aca7c13d3bee81a968337a5515411409ae9d095d '''parisc: fbdev/stifb: Align graphics memory size to 4MB'''] (backported to all)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=70be49f2f6223ddd2fcddb0089a40864c37e1494 '''parisc: Fix userspace graphics card breakage due to pgtable special bit'''] (backported to v5.18+)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e8a18e3f00f3ee8d07c17ab1ea3ad4df4a3b6fe0 parisc: Make 8250_gsc driver dependend on CONFIG_PARISC] (backported to all)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9e4e2ce1a78ed92ed91135e90c85f27d75388129 '''parisc/serial: Rename 8250_gsc.c to 8250_parisc.c''']
 +
** parisc: Use signed char for hardware path in pdc.h
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a0c9f1f2e53b8eb2ae43987a30e547ba56b4fa18 '''parisc: Export iosapic_serial_irq() symbol for serial port driver'''] (backported to all)
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2b6ae0962b421103feb41a80406732944b0665b3 parisc: Avoid printing the hardware path twice] (backported to v4.19+)
 +
** MAINTAINERS: adjust entry after renaming parisc serial driver
  
 
== Debian kernel and userspace programs ==
 
== Debian kernel and userspace programs ==
Line 872: Line 1,019:
 
** DONE: in interactive mode, add reboot option command
 
** DONE: in interactive mode, add reboot option command
 
** DONE: [https://git.kernel.org/cgit/linux/kernel/git/deller/palo.git/commit/?id=70bd7a9a41e318c0575755a78c4d18ad97495c47 '''Unbreak loading Linux kernels bigger than 16 MB'''] (fixed in palo 1.96, Oct. 2016)
 
** DONE: [https://git.kernel.org/cgit/linux/kernel/git/deller/palo.git/commit/?id=70bd7a9a41e318c0575755a78c4d18ad97495c47 '''Unbreak loading Linux kernels bigger than 16 MB'''] (fixed in palo 1.96, Oct. 2016)
** DONE: Du to alternative coding in 4.20, ship debian kernel as SMP variant only (Kernel 4.20)  
+
** DONE: Du to alternative coding in 4.20, ship debian kernel as SMP variant only (Kernel 4.20)
 +
** DONE: PALO: Enable "list directory content" of other partiton than /boot (done in v2.22)
  
 
Debian kernel / Generic Kernel bugs fixed
 
Debian kernel / Generic Kernel bugs fixed
Line 916: Line 1,064:
 
** DONE: Add TOC handler, sending TOC via IPMI interface "toc s"
 
** DONE: Add TOC handler, sending TOC via IPMI interface "toc s"
 
** DONE: autofs/automounter is broken, patch sent to list, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892953
 
** DONE: autofs/automounter is broken, patch sent to list, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892953
 +
** DONE: Try enabling DEBUG_VM_PGTABLE in kernel
 +
** DONE: SLAB breaks, SLUB works (works in kernel v5.17)
 +
** DONE: implement .con_font_set (consw) in sticon.c to be able to change fonts at runtime (since v5.10)
 +
** DONE: Implement kernel [[VDSO]] support - [https://lore.kernel.org/linux-parisc/4544A34A.6080700@tausq.org/ Randolphs patch]
  
 
* Debian installer:
 
* Debian installer:
Line 944: Line 1,096:
 
*** packages needing rebuild: libatomic-ops (gauche and libgc have copies of libatomic-ops included), x265, ceph, lizardfs, firebird2.5, gauche, idba, mapsembler2, padevchooser, filezilla, idba, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785654
 
*** packages needing rebuild: libatomic-ops (gauche and libgc have copies of libatomic-ops included), x265, ceph, lizardfs, firebird2.5, gauche, idba, mapsembler2, padevchooser, filezilla, idba, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785654
 
*** __sync_val_compare_and_swap_8 was missing in: openvdb, idba, lizardfs, ...
 
*** __sync_val_compare_and_swap_8 was missing in: openvdb, idba, lizardfs, ...
 +
** DONE: [https://sourceware.org/bugzilla/show_bug.cgi?id=20243 Misaligned access in res_query.c HEADER struct] fixed in [https://sourceware.org/git/?p=glibc.git;a=commit;h=05dec22d7be722987ff07aebf9690f6078b3c4e9 this glibc commit]
  
 
* Debian userspace:
 
* Debian userspace:
Line 951: Line 1,104:
 
** DONE: Fix msgpuck build breakage: https://buildd.debian.org/status/package.php?p=msgpuck&suite=sid
 
** DONE: Fix msgpuck build breakage: https://buildd.debian.org/status/package.php?p=msgpuck&suite=sid
 
** DONE: Fix sbuild not returning used disc size: /usr/share/perl5/Sbuild/Build.pm line 2786, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923484
 
** DONE: Fix sbuild not returning used disc size: /usr/share/perl5/Sbuild/Build.pm line 2786, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923484
 +
** DONE: Why does mc hangs when exiting with F10? - https://midnight-commander.org/ticket/3887 - endianess bug in mc source code
 +
** DONE: capnproto - testsuite was wrong: PARISC uses mips-floatingpoint NANs - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781787
  
QEMU:
+
* QEMU:
* DONE: Add kernel fw_cfg support (drivers/firmware/qemu_fw_cfg.c)
+
** DONE: Add kernel fw_cfg support (drivers/firmware/qemu_fw_cfg.c)
 +
** DONE: Fix mouse in with HP-UX 10 and 11 - reported by Stefano Repici
 +
** DONE: Add bigger fonts to STI ROM / SeaBIOS
 +
** DONE: Implement TOC in qemu (via qemu monitor -> NMI)
 +
** DONE: Fix X11 cursor emulation in HP-UX with help of Xorg 11.6.6 sources, fixed in qemu v7.1
 +
** DONE: Fix serial port assignment and pass-through, fixed in qemu v7.1
 +
** DONE: Check why ldd doesn't work with qemu chroot -> misexecuttion of proberi instruction: https://lists.nongnu.org/archive/html/qemu-devel/2022-08/msg02338.html
 +
** DONE: Fix glibc iconv issues with qemu: https://sourceware.org/bugzilla/show_bug.cgi?id=29583
 +
** DONE: bug in kernel fldw unalignment exception handler which lets libime fail to build on real hardware (but builds with qemu!)
 +
** DONE: Add vDSO trampoline to qemu-user
 +
** DONE: [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970460 qemu-user: trashes argv0 breaking multi-call binaries], leads to build failures in lilypond, fceux, perl, sane-backends ... Fixed, needs [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2347961b11d4079deace3c81dceed460c08a8fc1 kernel v5.12+] and [https://git.qemu.org/?p=qemu.git;a=commit;h=6e1c0d7b951e19c53b8467e8bc4b71ee73a394ea qemu v6.0+],  or alternatively apply [https://github.com/hdeller/qemu-hppa/commit/540e8fb618e66b4c172cc528c12580bb09e301b6 linux-user: handle binfmt-misc P flag as a separate exe name]
  
 
== ABI breakages (e.g. dropped HP-UX support) ==
 
== ABI breakages (e.g. dropped HP-UX support) ==
* [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=f5a408d53edef3af07ac7697b8bc54a755628450 We dropped HP-UX support in kernel 3.14 by changing EWOULDBLOCK==EAGAIN.] HP-UX could be run in a VM instead or since machines are relatively cheap now, if someone needs hpux, they can buy a machine for it.  
+
* '''Kernel 3.14 (EWOULDBLOCK)'''
* [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1f25df2eff5b25f52c139d3ff31bc883eee9a0ab Changed SIGRTMIN to 32 (from 37)]
+
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=f5a408d53edef3af07ac7697b8bc54a755628450 We dropped HP-UX support in kernel 3.14 by changing EWOULDBLOCK==EAGAIN.] HP-UX could be run in a VM instead or since machines are relatively cheap now, if someone needs hpux, they can buy a machine for it (or use qemu)
 +
* '''Kernel 3.16 (SIGRTMIN)'''
 +
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1f25df2eff5b25f52c139d3ff31bc883eee9a0ab Changed SIGRTMIN to 32 (from 37)]
 
** [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766605 debian glibc report]  and  [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766635 debian kernel bug report]
 
** [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766605 debian glibc report]  and  [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766635 debian kernel bug report]
 
** September 7th 2014: First delivery with vmlinux-3.16.0-4 (aka linux-image-3.16.0-4-parisc64-smp_3.16.7-1_hppa.deb)
 
** September 7th 2014: First delivery with vmlinux-3.16.0-4 (aka linux-image-3.16.0-4-parisc64-smp_3.16.7-1_hppa.deb)
 
** How to install:
 
** How to install:
 
*** Install the new glibc debian package, then install systemd, then install the new kernel package (this will create a new initrd), reboot
 
*** Install the new glibc debian package, then install systemd, then install the new kernel package (this will create a new initrd), reboot
** rebuild of following packages needed:
+
** rebuild of the following packages was needed:
 
*** unxz-utils: rebuild unxz to fix usage of SIGXFSZ
 
*** unxz-utils: rebuild unxz to fix usage of SIGXFSZ
 
*** strace and gdb: fix signal names/numbers
 
*** strace and gdb: fix signal names/numbers
Line 968: Line 1,135:
 
*** (maybe) gcc-4.9 which links against libgc...? (affects objc related code only)
 
*** (maybe) gcc-4.9 which links against libgc...? (affects objc related code only)
 
*** dietlibc (patch sent upstream) - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769105  TODO: make patch for dietlibc to use LONG_LONG_PAIR for ftruncate64() and then rebuild util-vserver package
 
*** dietlibc (patch sent upstream) - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769105  TODO: make patch for dietlibc to use LONG_LONG_PAIR for ftruncate64() and then rebuild util-vserver package
* [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=93cb8e20d56be40c541475f77b5f565fbb385a4b Dropped ENOTSUP (252) constant from kernel with v4.19]. Gave problems and parisc is only platform which defined it because of HP-UX, see libuv bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900237. Nevertheless rebuild of libattr, libseliux and fakeroot necessary.
+
* '''Kernel 4.19 (ENOTSUP)'''
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=93cb8e20d56be40c541475f77b5f565fbb385a4b Dropped ENOTSUP (252) constant from kernel with v4.19]. Gave problems and parisc is only platform which defined it because of HP-UX, see libuv bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900237. Nevertheless rebuild of libattr, libseliux and fakeroot necessary.
 
* '''Kernel 5.10: Define O_NONBLOCK to become 000200000 (instead of 000200004):'''  
 
* '''Kernel 5.10: Define O_NONBLOCK to become 000200000 (instead of 000200004):'''  
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=75ae04206a4d0e4f541c1d692b7febd1c0fdb814 '''parisc: Define O_NONBLOCK to become 000200000''']
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=75ae04206a4d0e4f541c1d692b7febd1c0fdb814 '''parisc: Define O_NONBLOCK to become 000200000''']

Revision as of 18:53, 2 November 2022

Contents

PA-RISC Linux TODO

Status & TODO 2022-10-27

  • Kernel: still missing Linux kernel development (no patches available yet or maybe not possible to implement):
    • maybe: optimize flush_dcache_page() implementation like sparc. See Documentation/cachetlb.txt, e.g. used in aio subsystem
    • maybe implement transparent huge pages (due to cache coherency technically only possible on PA8500-PA8700 CPUs, not possible on PA8800-PA8900 CPUs)
    • implement BUG() and WARN() with inline assembly so that interrupt happens in delay branch of "or,<> %r0,cond,%r0". Probably not possible, because gcc will report "control reaches end of non-void function" warnings/errors.
    • disable FP-register save/restore at kernel entry? - https://patchwork.kernel.org/patch/3975291/
    • enable 16k/64k kernel page sizes (still cacheflushing-issues with SCSI driver, additional work in glibc needed to deal with >4k page size, e.g. ld-loader alignments of data/code segments)
    • Superdome support - can someone test? Should work better now with latest kernels (maybe ask Dennis Clarke <dclarke@blastwave.org>, Jan 2019).
  • Floating point NaN (see: https://en.wikipedia.org/wiki/NaN)
    • PA-RISC uses "mips" NaN format which differs from x86, etc. It should be called PA-RISC format as I think PA was first. The quiet NaN bit is opposite to than in current IEEE standard.
    • Debian packages with NaN issues: libime, capnproto
  • palo (PA-RISC Boot Loader):
    • PALO - add regular rewind & load to avoid tftp boot timing issues. See mail from Frank Schreiner "PALO issues" (Dec 2018).
    • When listing directory contents, resolve and print symlink target file names too, e.g. "vmlinux -> linux-5.12.1-64bit".
    • Fix palo deb package to build iplboot natively (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851792)
    • Modify (if possible), that palo can read (sequential) tftpbootable-vmlinuxes as well as the current boot-vmlinux images (simplifies build/handling)

Upstream PA-RISC-related kernel patch history

Debian kernel and userspace programs

Debian kernel / Generic Kernel bugs fixed

    • DONE: Fixed 64bit SMP kernel & sticon on machines with more than 4GB RAM (Kernel 3.12)
    • DONE: Lots of syscall fixes regarding compat kernel
    • DONE: send patches to remove UP from debian kernels, use sil680 instead of siimage, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721191 -> fixed in 3.12 / 3.13
    • DONE: Enable BMC in c8000 default kernel config - ipmi driver (CONFIG_IPMI_HANDLER=y) - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747482
    • DONE: remove HIL RTC from debian kernel - it creates a backtrace at boot because we have already another rtc0 active.
    • DONE: add ppdev driver, needed by CUPS, systemd reports missing module load (3.17 & 3.16 kernel)
    • DONE: Add crc-modules, event, isofs, jfs, mouse, sata, sound, squashfs, udf, uinput, scsi-common, scsi-extra, loop, serial and usb-serial debian-installer packages
    • DONE: Kernel build problem: a) disable -mfast-indirect-calls in Makefile, b) gcc compiler bug in > gcc-4.8.3-3
    • DONE: Drop HPUX-support from kernel (Kernel 4.0)
    • DONE: implemented HUGE pages
    • DONE: kernel timerfd_settime/timerfd_gettime issue, test with debian package: liblinux-fd-perl -> https://patchwork.kernel.org/patch/7951661/, backported to all kernels
    • DONE: kernel ptrace bug: http://thread.gmane.org/gmane.linux.ports.parisc/26273, possible fix: https://patchwork.kernel.org/patch/8063301/
    • DONE: Implement CONFIG_DEBUG_STACK_USAGE, in kernel 4.6
    • DONE: Use 32bit exception table entries, in kernel 4.6
    • DONE: implemented seccomp syscal, including SECCOMP_MODE_STRICT and mode 2
    • DONE: Fixed FTRACE support (http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=366dd4ea9d5f0eb78fdf4982d76506f99480ec0a)
    • DONE: Add syscall ftrace support
    • DONE: Simplify get_user()/put_user() with regard to %sr0/%sr2 usage.
    • DONE: Add tracehook support (needed for seccomp testcases, gdb, ...)
    • DONE: Added high-resolution sched_clock clocksources in 4.7, needed for debian packages: ismrmrd, haskell-http-conduit, ...
    • DONE: Detect physically broken memory via Page Deallocation Table (PDT), initial support in kernel 4.13
    • DONE: Make kernel self-decompressing (instead of palo reading gzipped kernels)
    • DONE: fix %pF and %pS usage in all kernel code
    • DONE: Enabled BMC/IPMI including Remote power on/off on C8000 and rp3410 machines (kernel 4.17 and above)
    • DONE: use CONFIG_COMPAT_BINFMT_ELF and get rid of arch/parisc/kernel/binfmt_elf32.c
    • DONE: Fix kernel writing core file, gdb reporting: BFD: Warning: /tmp/core.http.1655.ls3011.1465554447 is truncated: expected core file size >= 2187264, found: 2121728.
    • DONE: Find way to extract vmlinux out of vmlinuz (Kernel 4.19)
    • DONE: Implement alternative coding for UP & SMP, one debian kernel for UP and SMP, optimizations to avoid cache flushes on cache-less systems and other qemu-related speed-ups to avoid unnecessary syncronization (Kernel 4.20)
    • DONE: IRQ Balancing was broken, http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f73493eb4aecdd6edd8a749890e6e2dcfa0a7978
    • DONE: Added kgdb and kprobes in kernel 5.2, by Sven Schnelle
    • DONE: report on C8000 one socket with 2 cores
    • DONE: Check Kernel boot code if RAM of machine is big enough (e.g. is booting on 710 machine with 60MB possible?) - https://patchwork.kernel.org/patch/10888283/
    • DONE: convert to SPARSEMEM, instead of DISCONTIGMEM
    • DONE: (NOT POSSIBLE:) Enable huge pages on kernel text for C8000 as well - not possible, will crash due to required equivalent aliasing of caches.
    • DONE: Enable __ro_after_init
    • DONE: add dynamic ftrace support - provided by Sven in kernel 5.3
    • DONE: Fix fallouts from strace: http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b7dc5a071ddf69c0350396b203cba32fe5bab510,
    • DONE: implement kexec syscall
    • DONE: Analyze futex hang (CPU soft lockup) situation with test-lock testcase in the libprelude debian package - fixed by parisc: Add atomic64_set_release() define to avoid CPU soft lockups
    • DONE: Add TOC handler, sending TOC via IPMI interface "toc s"
    • DONE: autofs/automounter is broken, patch sent to list, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892953
    • DONE: Try enabling DEBUG_VM_PGTABLE in kernel
    • DONE: SLAB breaks, SLUB works (works in kernel v5.17)
    • DONE: implement .con_font_set (consw) in sticon.c to be able to change fonts at runtime (since v5.10)
    • DONE: Implement kernel VDSO support - Randolphs patch

ABI breakages (e.g. dropped HP-UX support)

Considerations between Debian unstable and Debian Jessie release

Jessie was not stable on SMP machines, particularly those with PA8800/PA8900 processors. It's recommended to use kernel 4.4.15 or later. The current default gcc for unstable is gcc 5.4. Most hppa fixes have been back ported to 4.9 but not all. It shouldn't hurt to use binutils from unstable. Debian glibc 2.23 is best. Most old packages should still work although there maybe inequivalent aliasing issues which are relevant on PA8800. There's also a nasty issue with gmon_start being in every shared library in Jessie. This caused a few headaches and potentially breaks applications when it's removed from a library. If you stick with the glibc in Jessie, multithreaded applications may not work as well as they could, but maybe that's not important. The kernel update is the most important one. Since hppa moved to ports, there has been a huge number of bug fixes. System stability is dramatically improved and I believe more packages are available than ever before. It's better to run unstable and just be selective about running "apt-get upgrade". (by Dave Anglin)

parisc-linux.org Homepage and Debian build server infrastructure work

Linus Torvalds barking at parisc

Testsuites, kernel and userspace testing tools

TODO Drivers

  • write Lasi floppy driver
  • write Suckyio floppy driver
  • write spifi driver (rbrad)
  • modify ncr53c8xx driver for Outfield (735 & 755)
  • write GSC FDDI driver
  • write Timi ASIC (74x) support
  • EISA DMA support

Review all the todo entries below!

Personal tools