TODO

From Linux PARISC Wiki
(Difference between revisions)
Jump to: navigation, search
m (PA-RISC Linux TODO)
(PA-RISC Linux TODO)
(16 intermediate revisions by one user not shown)
Line 1: Line 1:
 
= PA-RISC Linux TODO =
 
= PA-RISC Linux TODO =
  
== Status & TODO 2022-03-21 ==
+
== Status & TODO 2022-05-30 ==
 +
* STARTED: [https://patchwork.kernel.org/project/linux-parisc/patch/20211031204952.25678-2-svens@stackframe.org/ Visualize FX framebuffer/DRM support (by Sven Schnelle)]
 +
* Implement ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT : https://lwn.net/ml/linux-kernel/20190724055850.6232-14-alex@ghiti.fr/
 
* STARTED: improve unaligned handlers, e.g. to use get_user/put_user inline asm
 
* STARTED: improve unaligned handlers, e.g. to use get_user/put_user inline asm
 
* [[VDSO]] - Review gettimeofday and clock_gettime() implementation, possibly use a light-weight-syscall and rely on cr16 and cpu speed for more accurate timing?  
 
* [[VDSO]] - Review gettimeofday and clock_gettime() implementation, possibly use a light-weight-syscall and rely on cr16 and cpu speed for more accurate timing?  
Line 15: Line 17:
 
* NO_IRQ -> should be converted to (0) instead of (-1) -> Helge (check assembly, check in drivers/parisc/*)
 
* NO_IRQ -> should be converted to (0) instead of (-1) -> Helge (check assembly, check in drivers/parisc/*)
 
* check assembly 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?
 
* STARTED by Sven: Fix kexec on PA8800/PA8900 CPUs: how to restart the CPUs on these systems?
* STARTED: [https://patchwork.kernel.org/project/linux-parisc/patch/20211031204952.25678-2-svens@stackframe.org/ Visualize FX framebuffer/DRM support (by Sven Schnelle)]
 
 
* Add Linux kernel PIM driver - /sys/firmware/pim/*
 
* 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/
 
* parisc timers: convert to generic clockevent (Arnd Bergmann) - https://patchwork.kernel.org/project/linux-parisc/patch/20201008154651.1901126-14-arnd@arndb.de/
Line 23: Line 25:
 
* 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.
 
* 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.
 
* '''QEMU Full-system emulation'''
 
* '''QEMU Full-system emulation'''
** Fix mouse emulation with help of Xorg 11.6.6 sources
+
** 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)
 
** 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
 
** 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
 
*** 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.
 +
*** https://gitlab.com/qemu-project/qemu/-/issues/263
 +
*** 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.
 
** 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
 
** Because of this bug, qemu-user still has build-problems with those packages: lilypond, fceux, perl, sane-backends
Line 334: Line 343:
 
** 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 529: Line 538:
 
** [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 566: Line 575:
 
** [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 641: Line 650:
 
** 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 789: Line 798:
 
** 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'''] '''(was reverted in v5.15 and v5.16)'''
+
** <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 834: Line 843:
 
** [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=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]
 
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2a2e8202c7a16a85a881ad2b6e32ccbebdc01dda parisc: move CPU field back into thread_info]
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=279917e27edc293eb645a25428c6ab3f3bca3f86 '''parisc: Fix backtrace to always include init funtion names'''] (backported to v5.4+ - and '''reverted in v5.16''')
+
** <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
 
** 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=38860b2c8bb1b92f61396eb06a63adff916fc31d '''parisc: Flush kernel data mapping in set_pte_at() when installing pte for user page'''] (backported to v5.12+)
Line 913: Line 922:
 
** parisc: Simplify fast path for non-access data TLB faults
 
** parisc: Simplify fast path for non-access data TLB faults
 
** parisc: Increase parisc_cache_flush_threshold setting
 
** parisc: Increase parisc_cache_flush_threshold setting
** [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=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)
  
 
== Debian kernel and userspace programs ==
 
== Debian kernel and userspace programs ==
Line 1,013: Line 1,064:
 
** 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: Fix mouse in with HP-UX 10 and 11 - reported by Stefano Repici
** DONE: Add bigger font to STI ROM / SeaBIOS  
+
** DONE: Add bigger fonts to STI ROM / SeaBIOS  
 
** DONE: Implement TOC in qemu (via qemu monitor -> NMI)
 
** 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
  
 
== ABI breakages (e.g. dropped HP-UX support) ==
 
== ABI breakages (e.g. dropped HP-UX support) ==

Revision as of 21:20, 4 June 2022

Contents

PA-RISC Linux TODO

Status & TODO 2022-05-30

  • 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.
  • 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
  • QEMU:
    • 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

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