TODO

From Linux PARISC Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
(44 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 (actually this is Helge's TODO list) =
  
== Status & TODO 2019-04-06 ==
+
== Status & TODO 2020-08-12 ==
* STARTED: 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/
+
* Add TOC handler - CC_MC_OS_TOC_MISSING on c8000 (Sven)
* Update latest QEMU successes.
+
* upgrade libgcc via:
* STARTED: Fix fallouts from strace, http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b7dc5a071ddf69c0350396b203cba32fe5bab510
+
** apt install -f -o Dpkg::Options::="--force-overwrite"
 +
** see: https://raphaelhertzog.com/2011/08/01/understanding-dpkgs-file-overwrite-error/
 +
* qemu
 +
** Add pvpanic kernel support?
 +
** Add kernel fw_cfg support (drivers/firmware/qemu_fw_cfg.c) ?
 +
** STARTED: Finish LASI and 82596 NIC for QEMU -> https://github.com/hdeller/qemu-hppa/commits/lasi
 +
* Analyze futex hang situation with test-lock testcase in the libprelude debian package
 +
* Fix kexec on PA8800/PA8900 CPUs: how to restart the CPUs on these systems?
 +
* automounter/autofs is broken, most likely compiler problem: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892953
 +
* Fix stifb kernel hangs with latest kernels (4.9ff)
 +
* Add BPF assember implementation
 +
* 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/
 +
* Enable TOC button on c8000, sending TOC via IPMI interface "toc s",
 
* PALO - add regular rewind & load to avoid tftp boot timing issues. See mail from Frank Schreiner "PALO issues" (Dec 2018).
 
* PALO - add regular rewind & load to avoid tftp boot timing issues. See mail from Frank Schreiner "PALO issues" (Dec 2018).
 
** Modify palo to be able to load lifimage file
 
** Modify palo to be able to load lifimage file
Line 12: Line 26:
 
** [[Vdso]]
 
** [[Vdso]]
 
** 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  
 
** 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: add dynamic ftrace support - http://git.kernel.org/cgit/linux/kernel/git/deller/parisc-linux.git/commit/?h=ftrace-dynamic&id=059645d9dadbd802d0487d1b8ab9b9269df18e0e
 
 
* 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/
 
* 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  ?
 
* 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)
 
* MAYBE: Implement DCACHE_WORD_ACCESS in kernel (Complaint from Linus)
* STARTED: implement kexec syscall
 
* STARTED: report on C8000 one socket with 2 cores (done),  NUMA support?
 
* ONGOING: Enable UBSAN and fix fallouts
 
* STARTED: implement CONFIG_VMAP_STACK "virtually mapped stacks and thread_info cleanup" -> https://lwn.net/Articles/693026/
 
* STARTED: fix up __ro_after_init: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d09e356ad06a8b6f5cceabf7c6cf05fdb62b46e5
 
 
* 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)
 
* 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)
 
* gcc optimizations:
 
* gcc optimizations:
Line 27: Line 35:
 
** 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 huge pages on kernel text for C8000 as well
 
 
* 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
 
* 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
 
* convert unaligned handler to use get_user/put_user inline asm
 
* convert unaligned handler to use get_user/put_user inline asm
Line 50: Line 57:
 
** Implement ltrace on hppa
 
** Implement ltrace on hppa
 
** SLAB breaks, SLUB works, why? Mail from Guy Martin.
 
** SLAB breaks, SLUB works, why? Mail from Guy Martin.
** sparsemem: http://lwn.net/Articles/439472/ -> convert to sparsemem (http://lwn.net/Articles/440056/), patch available from James
 
 
** 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)
 
** implement .con_font_set (consw) in sticon.c (to be able to change fonts at runtime)
Line 75: Line 81:
 
** 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.
 
** 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!).
 
** IMPORTANT: fix OpenJDK - fixes required in zeroport (stack grows up!).
** Fix qemu  -> Richard Henderson started userspace-qemu in 11/2016: git://github.com/rth7680/qemu.git tgt-hppa
 
** 64-bit userspace, [[Binutils]] 64-bit binutils needs to be fixed to get multiple stub section support.
 
 
** gcc -> join 32- and 64bit compiler, make "-m64" work, get rid of hppa64-linux-gnu-gcc
 
** gcc -> join 32- and 64bit compiler, make "-m64" work, get rid of hppa64-linux-gnu-gcc
 
* userspace
 
* userspace
Line 94: Line 103:
 
** 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()
 
** 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()
 
** 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
 
** 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
** gdb crashes Kernel - http://permalink.gmane.org/gmane.linux.ports.parisc/5406
 
 
** debian-cd to use xorriso
 
** debian-cd to use xorriso
 
** debian-cd: do not compress kernel.
 
** debian-cd: do not compress kernel.
Line 105: Line 113:
 
== Upstream PA-RISC-related kernel patch history ==
 
== Upstream PA-RISC-related kernel patch history ==
 
* Kernel 3.8:
 
* Kernel 3.8:
** unbreak automounter support on 64-bit kernel with 32-bit userspace
+
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4f4ffc3a5398ef9bdbb32db04756d7d34e356fcf unbreak automounter support on 64-bit kernel with 32-bit userspace]
 
* Kernel 3.9:
 
* Kernel 3.9:
 
** Integrate Dave Anglin's latest cacheflush patchset (fixes unusual userspace crashes) https://patchwork.kernel.org/patch/2480891/ - Dave  
 
** Integrate Dave Anglin's latest cacheflush patchset (fixes unusual userspace crashes) https://patchwork.kernel.org/patch/2480891/ - Dave  
Line 457: Line 465:
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fd8d0ca2563151204f3fe555dc8ca4bcfe8677a3 parisc: Hide virtual kernel memory layout] (backported to v4.15)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fd8d0ca2563151204f3fe555dc8ca4bcfe8677a3 parisc: Hide virtual kernel memory layout] (backported to v4.15)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0ed1fe4ad394e54783bbffa84102faf435661a2e parisc: Check if secondary CPUs want own PDC calls]  
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0ed1fe4ad394e54783bbffa84102faf435661a2e parisc: Check if secondary CPUs want own PDC calls]  
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5ffa8518851f1401817c15d2a7eecc0373c26ff9 parisc: Use cr16 interval timers unconditionally on qemu] (backported to v4.14+)
+
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5ffa8518851f1401817c15d2a7eecc0373c26ff9 parisc: Use cr16 interval timers unconditionally on qemu] (backported to v4.9+)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=636a415bcc7f4fd020ece8fd5fc648c4cef19c34 parisc: Reduce irq overhead when run in qemu] (backported to v4.14+)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=636a415bcc7f4fd020ece8fd5fc648c4cef19c34 parisc: Reduce irq overhead when run in qemu] (backported to v4.14+)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0adb24e03a124b79130c9499731936b11ce2677d '''parisc: Fix ordering of cache and TLB flushes'''] (backported to v4.9+)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0adb24e03a124b79130c9499731936b11ce2677d '''parisc: Fix ordering of cache and TLB flushes'''] (backported to v4.9+)
Line 474: Line 482:
 
** parisc: Directly call machine_power_off() in power button driver
 
** parisc: Directly call machine_power_off() in power button driver
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5654e156bc4d68a87bbaa6d7e020baceddf6e68 '''parisc: Fix HPMC handler by increasing size to multiple of 16 bytes''']
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5654e156bc4d68a87bbaa6d7e020baceddf6e68 '''parisc: Fix HPMC handler by increasing size to multiple of 16 bytes''']
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b845f66f78bf42a4ce98e5cfe0e94fab41dd0742 '''parisc/pci: Switch LBA PCI bus from Hard Fail to Soft Fail mode''']
+
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b845f66f78bf42a4ce98e5cfe0e94fab41dd0742 '''parisc/pci: Switch LBA PCI bus from Hard Fail to Soft Fail mode'''] (backported to all kernels: 3.18.111 4.4.134 4.9.104 4.14.45 4.16.13 4.17)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a77ab0e7ce232a62adac3d85b9ae66d0f48385ac '''parisc: Add code generator for Qemu/SeaBIOS machine info''']
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a77ab0e7ce232a62adac3d85b9ae66d0f48385ac '''parisc: Add code generator for Qemu/SeaBIOS machine info''']
 
** parisc: Fix out of array access in match_pci_device()
 
** parisc: Fix out of array access in match_pci_device()
Line 579: Line 587:
 
** parisc: Add PDC_CRASH_PREP PDC function number
 
** parisc: Add PDC_CRASH_PREP PDC function number
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c2f8d7cb32cd95e3005bed58ce02afa686b9f357 Revert: parisc: Use F_EXTEND() macro in iosapic code]
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c2f8d7cb32cd95e3005bed58ce02afa686b9f357 Revert: parisc: Use F_EXTEND() macro in iosapic code]
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d006e95b5561f708d0385e9677ffe2c46f2ae345 '''parisc: Detect QEMU earlier in boot process'''] (backported to v4.14+)
+
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d006e95b5561f708d0385e9677ffe2c46f2ae345 '''parisc: Detect QEMU earlier in boot process'''] (backported to v4.9+)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=45efd871bf0a47648f119d1b41467f70484de5bc '''parisc: regs_return_value() should return gpr28'''] (backported to v4.14+)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=45efd871bf0a47648f119d1b41467f70484de5bc '''parisc: regs_return_value() should return gpr28'''] (backported to v4.14+)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f324fa58327791b2696628b31480e7e21c745706 '''parisc: also set iaoq_b in instruction_pointer_set()'''] (backported to v4.19+)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f324fa58327791b2696628b31480e7e21c745706 '''parisc: also set iaoq_b in instruction_pointer_set()'''] (backported to v4.19+)
 
+
* Kernel 5.2
 +
**  parisc: Consider stack randomization for mmap base only when necessary
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3e1120f4b57bc12437048494ab56648edaa5b57d parisc: Export running_on_qemu symbol for modules] (backported to v4.9+)
 +
**  parisc: Tune LASI LAN for QEMU
 +
**  parisc: Skip registering LED when running in QEMU (backported to v4.9+)
 +
**  parisc: PA-Linux requires at least 32 MB RAM
 +
**  parisc: Show n/a if product number not available
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dbdf0760990583649bfaca75fd98f76afd5f3905 '''parisc: Switch from DISCONTIGMEM to SPARSEMEM''']
 +
**  parisc: Add memory barrier to asm pdc and sync instructions (backported to v4.20+)
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d19a12906e5e558c0f6b6cfece7b7caf1012ef95 parisc: Allow live-patching of __meminit functions] (backported to v4.20+)
 +
**  parisc: Rename LEVEL to PA_ASM_LEVEL to avoid name clash with DRBD code (backported to all)
 +
**  parisc: Use PA_ASM_LEVEL in boot code (backported to v4.14+)
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62217beb394e654bbd2bb87c533dadd2d8bf62c6 '''parisc: Add static branch and JUMP_LABEL feature''']
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6c63ef80014b60ab13bee7e683d0a95521bb7fdd '''parisc: Remove lock code to serialize TLB operations in pacache.S''']
 +
**  parisc: Use ldcw instruction for SMP spinlock release barrier
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=44224bdb99150ad17cf394973b25736cb92c246a parisc: Add memory clobber to TLB purges] (backported to v4.20+)
 +
**  parisc: Update huge TLB page support to use per-pagetable spinlock
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b37d1c1898b288c69f3dc9267bc2c41af06f4a4b '''parisc: Use per-pagetable spinlock''']
 +
**  parisc: add set_fixmap()/clear_fixmap()
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=620a53d522ba007a79fffc444bd75e8d3775f5b8 '''parisc: add parisc code patching''']
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eacbfce19d8b6dbd7958cbe01d65a21324cc2fad '''parisc: add KGDB support''']
 +
**  parisc: add functions required by KPROBE_EVENTS
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8858ac8e9e9b1894f7bb218bc0035532371b8d7e '''parisc: Implement kprobes''']
 +
**  parisc: remove kprobes.h from generic-y
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e0b59b7b633ab72c08bb9bac36afaeaade011ddf '''parisc: Implement kretprobes''']
 +
**  doc: update kprobes supported architecture list
 +
**  parisc: remove unused flags parameter in __patch_text()
 +
**  parisc: update feature lists
 +
**  parisc: enable wide mode early
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e6eb5fe9123f05dcbf339ae5c0b6d32fcc0685d5 parisc: Drop LDCW barrier in CAS code when running UP]
 +
**  [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8d0e051cc75e2b1a7e2fd51fc56af332c9619618 parisc: Enable the ro_after_init feature]
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=200036a8e802dee09103031eeeaea91dd212ec99 '''parisc: Allow building 64-bit kernel without -mlong-calls compiler option''']
 +
** parisc: Fix compiler warnings in float emulation code
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=527a1d1ede98479bf90c31a64822107ac7e6d276 '''parisc: Fix crash due alternative coding for NP iopdir_fdc bit''']  (backported to v5.0+)
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=63923d2c3800919774f5c651d503d1dd2adaddd5 '''parisc: Use implicit space register selection for loading the coherence index of I/O pdirs'''] (backported to all)
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=116d753308cf032159c7b7aa87c9605bb5354784 '''parisc: Use lpa instruction to load physical addresses in driver code''']
 +
** parisc: configs: Remove useless UEVENT_HELPER_PATH
 +
** parisc: Kconfig: remove ARCH_DISCARD_MEMBLOCK
 +
** parisc/slab: cleanup after /proc/slab_allocators removal
 +
** parisc: Fix module loading error with JUMP_LABEL feature
 +
* Kernel 5.3
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6ca6366220ed285e29ee22f4cf5c68a0397cb005 '''parisc: add dynamic ftrace''']
 +
** compiler.h: add CC_USING_PATCHABLE_FUNCTION_ENTRY
 +
** parisc: add support for patching multiple words
 +
** parisc: add spinlock to patch function
 +
** parisc: add WARN_ON() to clear_fixmap
 +
** parisc: use pr_debug() in kernel/module.c
 +
** parisc: asm: psw.h: missing header guard
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=10835c854685393a921b68f529bf740fa7c9984d '''parisc: Fix kernel panic due invalid values in IAOQ0 or IAOQ1'''] (backported to all)
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34c32fc603311a72cb558e5e337555434f64c27b '''parisc: Ensure userspace privilege for ptraced processes in regset functions'''] (backported to 4.7+)
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=59a783dbc0d5fd6792aabff933055373b6dcbf2a '''parisc: Avoid kernel panic triggered by invalid kprobe'''] (backported to 5.2)
 +
** parisc: Wire up clone3 syscall
 +
** parisc: add kprobe_fault_handler()
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=69245c97560b40f88c609b078f4b51c5be81d88b parisc: Flush ITLB in flush_tlb_all_local() only on split TLB machines]
 +
** parisc: Mark expected switch fall-throughs in fault.c
 +
** parisc: Fix fall-through warnings in fpudispatch.c
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3fe6c873af2f2247544debdbe51ec29f690a2ccf parisc: Fix build of compressed kernel even with debug enabled]
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e50beea8e7738377b4fa664078547be338038ff9 parisc: Strip debug info from kernel before creating compressed vmlinuz]
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f2c5ed0dd5004c2cff5c0e3d430a107576fcc17f parisc: Add archclean Makefile target]
 +
** parisc: rename default_defconfig to defconfig
 +
** parisc: fix race condition in patching code
 +
* 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''']
 +
** parisc: Add ALTERNATIVE_CODE() and ALT_COND_RUN_ON_QEMU
 +
** parisc: speed up flush_tlb_all_local with qemu
 +
** parisc: Avoid warning when loading hppb driver
 +
** parisc: Convert eisa_enumerator to use pr_cont()
 +
** parisc: Drop comments which are already in pci.h
 +
** parisc: Save some bytes in dino driver
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5fa1659105fac63e0f3c199b476025c2e04111ce '''parisc: Disable HP HSC-PCI Cards to prevent kernel crash'''] (backported to all)
 +
** parisc: Have git ignore generated real2.S and firmware.c
 +
** kprobes/parisc: remove arch_kprobe_on_func_entry()
 +
** parisc/ftrace: Add ARCH_SUPPORTS_FTRACE_OPS support
 +
** parisc/ftrace: Add KPROBES_ON_FTRACE
 +
** parisc: Update feature list
 +
** parisc: trigger die notifier chain in parisc_terminate()
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=175fca3bf91a1111b7e46f6655666640556b9059 '''kexec: add KEXEC_ELF''']
 +
** kexec_elf: change order of elf_*_to_cpu() functions
 +
** kexec_elf: remove parsing of section headers
 +
** kexec_elf: remove PURGATORY_STACK_SIZE
 +
** kexec_elf: remove Elf_Rel macro
 +
** kexec_elf: remove unused variable in kexec_elf_load()
 +
** kexec_elf: support 32 bit ELF files
 +
** parisc: add __pdc_cpu_rendezvous()
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fc697dc0c26a5908d467454e49440862d7fe96d0 '''parisc: add kexec syscall support''']
 +
** parisc: wire up kexec_file_load syscall
 +
** parisc: add support for kexec_file_load() syscall
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c32c47aa364096124c9c69c1a44918433832562b parisc: Remove 32-bit DMA enforcement from sba_iommu]
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=513f7f747e1cba81f28a436911fba0b485878ebd '''parisc: Fix vmap memory leak in ioremap()/iounmap()'''] (backported to v3.16+)
 +
** parisc: prefer __section from compiler_attributes.h
 +
** parisc: sysctl.c: Use CONFIG_PARISC instead of __hppa_ define
 +
** MAINTAINERS: Add hp_sdc drivers to parisc arch
 +
* Kernel 5.5
 +
** parisc: Do not hardcode registers in checksum functions
 +
** kexec: Fix pointer-to-int-cast warnings
 +
** parisc: Avoid spurious inequivalent alias kernel error messages
 +
** parisc: use pgtable-nopXd instead of 4level-fixup
 +
** parisc: soft_offline_page() now takes the pfn
 +
** parisc: Fix compiler warnings in debug_core.c
 +
** parisc: fix compilation when KEXEC=n and KEXEC_FILE=y
 +
** parisc: add missing __init annotation
 +
* Kernel 5.6
 +
** parisc: Regenerate parisc defconfigs
 +
** parisc: map_pages(): cleanup page table initialization
 +
** parisc: Fix defconfig selection
 +
* Kernel 5.7
 +
** parisc: remove nargs from __SYSCALL
 +
** parisc: Refactor alternative code to accept multiple conditions
 +
** parisc: Rework arch_rw locking functions
 +
** parisc: Improve interrupt handling in arch_spin_lock_flags()
 +
** parisc: Replace setup_irq() by request_irq()
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bf71bc16e02162388808949b179d59d0b571b965 '''parisc: Fix kernel panic in mem_init()'''] (backported to all)
 +
* Kernel 5.8
 +
** parisc: use -fno-strict-aliasing for decompressor
 +
** parisc: suppress error messages for 'make clean'
 +
** parisc: Kconfig: Update references to parisc website
 +
** parisc: firmware: Update references to parisc website
 +
** parisc: hardware: Update references to parisc website
 +
** parisc: module: Update references to parisc website
 +
** parisc: MAINTAINERS: Update references to parisc website
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b6522fa409cfafbc3968679b09e4028f0609f2b9 parisc: add sysctl file interface panic_on_stackoverflow]
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=be6577af0cef934ccb036445314072e8cb9217b9 '''parisc: Add atomic64_set_release() define to avoid CPU soft lockups'''] (backported to all - fixes TLB stalls)
 +
** parisc: add support for cmpxchg on u8 pointers
 +
* Kernel 5.9
 +
** parisc: Replace HTTP links with HTTPS ones
 +
** parisc: Convert to BIT_MASK() and BIT_WORD()
 +
** parisc: Report bad pages as HardwareCorrupted
 +
** Revert "parisc: Improve interrupt handling in arch_spin_lock_flags()"
 +
** Revert "parisc: Drop LDCW barrier in CAS code when running UP"
 +
** Revert "parisc: Use ldcw instruction for SMP spinlock release barrier"
 +
** Revert "parisc: Revert "Release spinlocks using ordered store""
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e72b23dec1da5e62a0090c5da1d926778284e230 '''parisc: Do not use an ordered store in pa_tlb_lock()'''] (backported to 5.0+)
 +
** parisc: elf.h: delete a duplicated word
 +
** parisc: make the log level string for register dumps const
 +
** sections.h: dereference_function_descriptor() returns void pointer
 +
** parisc: Whitespace cleanups in atomic.h
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e96ebd589debd9a6a793608c4ec7019c38785dea '''parisc: Implement __smp_store_release and __smp_load_acquire barriers'''] (backported to 4.14+)
 +
** parisc/kernel/ftrace: Remove function callback casts
 +
** [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5b24993c21cbf2de11aff077a48c5cb0505a0450 '''parisc: mask out enable and reserved bits from sba imask'''] (backported to all)
  
 
== Debian kernel and userspace programs ==
 
== Debian kernel and userspace programs ==
Line 625: Line 771:
 
** DONE: IRQ Balancing was broken, http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f73493eb4aecdd6edd8a749890e6e2dcfa0a7978
 
** 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: 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
  
 
* Debian installer:
 
* Debian installer:
Line 728: Line 882:
  
 
* ns87415 dma doesn't work reliably on suckyio-systems
 
* ns87415 dma doesn't work reliably on suckyio-systems
 
 
* fix HIL problem: ksoftirqd/0 eats 56% cpu (kernel 2.4 & kernel 2.6) - see FAQ: http://www.parisc-linux.org/faq/index.html and http://article.gmane.org/gmane.linux.ports.parisc/278/match=use+lower+nice+level+ksoftirqd+hil+enabled
 
* fix HIL problem: ksoftirqd/0 eats 56% cpu (kernel 2.4 & kernel 2.6) - see FAQ: http://www.parisc-linux.org/faq/index.html and http://article.gmane.org/gmane.linux.ports.parisc/278/match=use+lower+nice+level+ksoftirqd+hil+enabled

Revision as of 20:24, 12 August 2020

Contents

PA-RISC Linux TODO (actually this is Helge's TODO list)

Status & TODO 2020-08-12

  • Kernel: still missing Linux kernel development (no patches available yet):
    • 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
    • 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/
    • 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).
    • 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
    • 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
  • palo (PA-RISC Boot Loader):
    • 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)

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

ABI breakages (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