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 (PA-RISC Linux TODO (actually this is Helge's TODO list))
(22 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-01-05 ==
+
== Status & TODO 2019-05-15 ==
* Fix fallouts from strace
+
* STARTED: add dynamic ftrace support - http://git.kernel.org/cgit/linux/kernel/git/deller/parisc-linux.git/commit/?h=ftrace-dynamic&id=059645d9dadbd802d0487d1b8ab9b9269df18e0e, now done by Sven.
 +
* Enable SPARSEMEM_VMEMMAP_ENABLE
 +
* STARTED: implement kexec syscall
 +
* 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",
 +
* STARTED: Implement LASI and 82596 NIC for QEMU -> https://github.com/hdeller/qemu-hppa/commits/lasi
 +
* STARTED: Fix fallouts from strace, http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b7dc5a071ddf69c0350396b203cba32fe5bab510
 
* 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 10: Line 17:
 
** [[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  ?
* IRQ Balancing seems broken with latest kernels.
 
 
* 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)
* add wiki page about kernel cross-compiling, refer to: http://git.infradead.org/users/segher/buildall.git and https://www.kernel.org/pub/tools/crosstool/ and https://www.kernel.org/pub/linux/kernel/people/arnd/
 
* 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 26:
 
** 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 48:
 
** 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 84: Line 81:
 
** glib2.0 -- 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
 
** 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
** libgadu - testsuite fails probably due to missing pthread cancellation in glibc.
 
 
** 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
 
** 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
** heimdal suceeds by increasing timeout for iprop test to 120 seconds.
 
** cupt - build errors
 
 
** libqb - testsuite error
 
** libqb - testsuite error
** libsoup2.4 -- testsuite error
 
 
** DONE: capnproto - testsuite was wrong: PARISC uses mips-floatingpoint NANs - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781787
 
** 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
Line 98: Line 91:
 
** 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 109: Line 101:
 
== 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 461: Line 453:
 
** [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 547: Line 539:
 
** parisc: Revert "Release spinlocks using ordered store"
 
** parisc: Revert "Release spinlocks using ordered store"
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git/commit/?h=parisc-4.20-4&id=1e8249b8a4e960018e4baca6b523b8a4500af600 parisc: Enable -ffunction-sections for modules on 32-bit kernel] (backported to v4.18+)
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git/commit/?h=parisc-4.20-4&id=1e8249b8a4e960018e4baca6b523b8a4500af600 parisc: Enable -ffunction-sections for modules on 32-bit kernel] (backported to v4.18+)
* Kernel 4.21
+
* Kernel 5.0
 
** parisc: move __IGNORE* entries to non uapi header
 
** parisc: move __IGNORE* entries to non uapi header
 
** parisc: add __NR_syscalls along with __NR_Linux_syscalls
 
** parisc: add __NR_syscalls along with __NR_Linux_syscalls
Line 558: Line 550:
 
** parisc: Fix HP SDC hpa address output
 
** parisc: Fix HP SDC hpa address output
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dfbaecb2b707cfdc5276b548d52b437384bd6483 '''parisc: Remap hugepage-aligned pages in set_kernel_text_rw()'''] (backported to 4.20)  
 
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dfbaecb2b707cfdc5276b548d52b437384bd6483 '''parisc: Remap hugepage-aligned pages in set_kernel_text_rw()'''] (backported to 4.20)  
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b7dc5a071ddf69c0350396b203cba32fe5bab510 '''parisc: Fix ptrace syscall number modification'''] (backported to 4.5+)
 +
** CREDITS/MAINTAINERS: Retire parisc-linux.org email domain
 +
* Kernel 5.1
 +
** parisc: don't include <asm/cacheflush.h> in <asm/dma-mapping.h>
 +
** parisc: move internal implementation details out of <asm/dma-mapping.h>
 +
** parisc: turn GET_IOC into an inline function
 +
** parisc: properly type the iommu field in struct pci_hba_data
 +
** parisc: properly type the return value of parisc_walk_tree
 +
** parisc/dino: use container_of in DINO_DEV
 +
** parisc/lba_pci: use container_of in LBA_DEV
 +
** parisc: remove the HBA_DATA macro
 +
** [http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=81fe5bba88a3fbe34ee6c5d18e327c6aaacd588c '''parisc: Hide built-in serial aux port of Tosca GSP card''']
 +
** parisc: Show rescheduling interrupts on SMP machines only
 +
** [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''']
 +
** parisc: Use F_EXTEND() macro in iosapic code
 +
** 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''']
 +
** parisc: Add constant for PDC_PAT_COMPLEX firmware call
 +
** parisc: Add constants for various PDC firmware calls
 +
** parisc: remove meaningless ccflags-y in arch/parisc/boot/Makefile
 +
** parisc: use memblock_alloc() instead of custom get_memblock()
 +
** parisc: replace oops_in_progress manipulation with bust_spinlocks()
 +
** 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=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=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]
 +
  
 
== Debian kernel and userspace programs ==
 
== Debian kernel and userspace programs ==
Line 598: Line 650:
 
** DONE: Find way to extract vmlinux out of vmlinuz (Kernel 4.19)
 
** 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: 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
  
 
* Debian installer:
 
* Debian installer:
Line 613: Line 672:
 
*** [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=da6e19a92645583da12dc2d15f54d2bd240fd3f2;hp=7d8a636c9a234354c9b2ecf01b6e405bece190a1 binutils fix in bfd/elf32-hppa] and [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67834 gcc upstream bug report] and [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801531 Debian binutils bug report]
 
*** [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=da6e19a92645583da12dc2d15f54d2bd240fd3f2;hp=7d8a636c9a234354c9b2ecf01b6e405bece190a1 binutils fix in bfd/elf32-hppa] and [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67834 gcc upstream bug report] and [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801531 Debian binutils bug report]
 
** DONE: Qt5/KDE signal & slot issue: Pointers to method types need canonicalization before comparison, fixed in gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68079
 
** DONE: Qt5/KDE signal & slot issue: Pointers to method types need canonicalization before comparison, fixed in gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68079
 +
** DONE: Add wiki page about kernel cross-compiling
  
 
* glibc:
 
* glibc:
Line 631: Line 691:
 
** DONE: port openmpi package: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776730
 
** DONE: port openmpi package: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776730
 
** 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
  
 
== ABI breakages (HP-UX support) ==
 
== ABI breakages (HP-UX support) ==
Line 643: Line 704:
 
*** (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, see libuv bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900237
+
* [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.
  
 
== Considerations between Debian unstable and Debian Jessie release ==
 
== Considerations between Debian unstable and Debian Jessie release ==
Line 699: Line 760:
  
 
* 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 05:38, 15 May 2019

Contents

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

Status & TODO 2019-05-15

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

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