TODO

From Linux PARISC Wiki
(Difference between revisions)
Jump to: navigation, search
m (PA-RISC Linux TODO)
m (PA-RISC Linux TODO)
(12 intermediate revisions by one user not shown)
Line 1: Line 1:
 
= PA-RISC Linux TODO =
 
= PA-RISC Linux TODO =
  
== Status & TODO 2022-08-16 ==
+
== Status & TODO 2022-09-25 ==
 +
* glibc iconv issues with qemu: https://sourceware.org/bugzilla/show_bug.cgi?id=29583
 +
* 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)
 +
* check why raft package testcases fails with io_submit()?
 +
* Why is compiling fife so slow with cc1plus?
 +
* Add vDSI trampoline to qemu
 
* Enhance vDSO: gettimeofday(), getcpu(),... see e.g.c32c47aa364096124c9c69c1a44918433832562b
 
* Enhance vDSO: gettimeofday(), getcpu(),... see e.g.c32c47aa364096124c9c69c1a44918433832562b
 
* 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.
 
* 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.
Line 34: Line 39:
 
*** ncr53c710 driver from amiga: https://github.com/tonioni/WinUAE/blob/master/qemuvga/lsi53c710.cpp
 
*** ncr53c710 driver from amiga: https://github.com/tonioni/WinUAE/blob/master/qemuvga/lsi53c710.cpp
 
* '''QEMU User-mode emulation'''
 
* '''QEMU User-mode emulation'''
** FAILURE to run 64bit host and 32bit guest, readdir() failure.
+
** STARTED: libime fails to build on real hardware but builds with qemu! -> bug in kernel fldw unalignment exception handler in ALL Linux kernel
*** https://gitlab.com/qemu-project/qemu/-/issues/263
+
** 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)
*** https://bugs.launchpad.net/qemu/+bug/1805913/+attachment/5217520/+files/readdir-bug.c  (test program)
+
*** https://bugzilla.kernel.org/show_bug.cgi?id=205957
+
*** https://bugs.launchpad.net/qemu/+bug/1805913
+
*** https://lore.kernel.org/linux-fsdevel/20201012220620.124408-1-linus.walleij@linaro.org/
+
** Track [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970460 qemu-user: trashes argv0 breaking multi-call binaries] QEMU bug.
+
** Because of this bug, qemu-user still has build-problems with those packages: lilypond, fceux, perl, sane-backends
+
** check why qgis fails 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
 
** 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
** kcm-fcitx5 fails to build on qemu but builds on real hardware.
+
** More exec stack errors: openssh, lnav
** libime fails to build on real hardware but builds with qemu!
+
 
** It looks like haskell packages still fail on qemu (e.g., haskell-swish).
 
** It looks like haskell packages still fail on qemu (e.g., haskell-swish).
** STARTED: 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
 
 
* '''JAVA'''
 
* '''JAVA'''
 
** Finish OpenJDK, see patch and mail from Adrian Glaubitz 05.02.2021.
 
** Finish OpenJDK, see patch and mail from Adrian Glaubitz 05.02.2021.
Line 104: Line 100:
 
** Due to very bad performance running multiple copies of dot program (Dave)
 
** Due to very bad performance running multiple copies of dot program (Dave)
 
*** In vtk6 debian package, adding DOT_NUM_THREADS = 1 helps.
 
*** In vtk6 debian package, adding DOT_NUM_THREADS = 1 helps.
 +
 +
* 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, [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781787 capnproto]
 
    
 
    
 
* palo (PA-RISC Boot Loader):
 
* palo (PA-RISC Boot Loader):
Line 893: Line 893:
 
** parisc: pdc_stable: Fix memory leak in pdcs_register_pathentries
 
** parisc: pdc_stable: Fix memory leak in pdcs_register_pathentries
 
** parisc: Add ioread64_lo_hi() and iowrite64_lo_hi()
 
** parisc: Add ioread64_lo_hi() and iowrite64_lo_hi()
** [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>[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=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=9129886b88185962538180625ca8051362b01327 '''parisc: Drop __init from map_pages declaration'''] (backported to v5.4+)
Line 973: Line 973:
 
** [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=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)
 
** [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 5.20 / 6.0
+
* Kernel 6.0
 
** parisc: Clean up names in hardware database
 
** 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+)
 
** [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+)
Line 983: Line 983:
 
** Input: gscps2 - check return value of ioremap() in gscps2_probe()
 
** Input: gscps2 - check return value of ioremap() in gscps2_probe()
 
** parisc: Do not initialise statics to 0
 
** 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()
 +
  
 
== Debian kernel and userspace programs ==
 
== Debian kernel and userspace programs ==
Line 1,087: Line 1,099:
 
** DONE: Fix X11 cursor emulation in HP-UX with help of Xorg 11.6.6 sources, fixed in qemu v7.1
 
** 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: 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: 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: [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) ==

Revision as of 08:55, 25 September 2022

Contents

PA-RISC Linux TODO

Status & TODO 2022-09-25

  • 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).
  • Debian packages / Userspace work
    • teach "blkid" about palo partition
    • glibc: add backtrace() function, problems when building elfutils package: http://buildd.debian-ports.org/status/package.php?p=elfutils&suite=sid
    • 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.
  • 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