From Linux PARISC Wiki
(Difference between revisions)
Jump to: navigation, search
m (Status & TODO 2014-10-11 (TODO-List by Helge Deller))
m (Kernel patches)
Line 153: Line 153:
** epoll_pwait bug: debian packages libio-epoll-perl and python-falcon failed ->
** epoll_pwait bug: debian packages libio-epoll-perl and python-falcon failed ->
** pthread_create() out-of-memory bug, failed only when used with GNU make, e.g. zeromq3 package. Reason: stack hard limit problems ->
** pthread_create() out-of-memory bug, failed only when used with GNU make, e.g. zeromq3 package. Reason: stack hard limit problems ->
** parisc: add renameat2 syscall
** parisc: Improve LWS-CAS performance
** parisc: ratelimit userspace segfault printing
** parisc: Use generic uapi/asm/resource.h file
** parisc: remove _STK_LIM_MAX override
** parisc: fix epoll_pwait syscall on compat kernel
** parisc: change value of SHMLBA from 0x00400000 to PAGE_SIZE
** parisc: Replace __get_cpu_var uses for address calculation
** parisc: locks: remove redundant arch_*_relax operations
** parisc: wire up sys_utimes
** parisc: Remove unused CONFIG_PARISC_TMPALIAS code
* Kernel 3.16
* Kernel 3.16
** parisc: Eliminate memset after alloc_bootmem_pages
** parisc: Remove SA_RESTORER define
** parisc: drop unused defines and header includes
** parisc: fix fanotify_mark() syscall on 32bit compat kernel
** parisc: add serial ports of C8000/1GHz machine to hardware database
* Kernel 3.17
* Kernel 3.17
** CAS implementation: implement 1,2,4 and 8 byte CAS -> (backported to Kernel >= 3.13)  
** parisc: Fix serial console for machines with serial port on superio chip
** parisc: Only use -mfast-indirect-calls option for 32-bit kernel builds
** parisc: pdc_stable.c: Avoid potential stack overflows
** parisc: pdc_stable.c: Cleaning up unnecessary use of memset in conjunction with strncpy
** parisc: ptrace: use secure_computing_strict()
** parisc: Implement new LWS CAS supporting 64 bit operations, CAS implementation: implement 1,2,4 and 8 byte CAS -> (backported to Kernel >= 3.13)
** parisc: Wire up seccomp, getrandom and memfd_create syscalls
** parisc: dino: fix %d confusingly prefixed with 0x in format string
** parisc: sys_hpux: NUL terminator is one past the end
** parisc: Use get_signal() signal_setup_done()
* Kernel 3.18
* Kernel 3.18
** RTSIGMIN = 32 (upcoming)
* unsorted:
* unsorted:
** DONE: remove SA_RESTORER define (patch by Dave)
** DONE: Make it possible to disable logs of userspace crashes (do_page_fault() pid=1082...) testcases: acl2, aapits -
** DONE: eglibc mmap bug with localedef (see debian bugzilla
** DONE: eglibc mmap bug with localedef (see debian bugzilla
** DONE: change kernel SHMLBA=PAGE_SIZE ->
** DONE: change kernel SHMLBA=PAGE_SIZE ->
** RTSIGMIN = 32 (upcoming)
== Debian kernel and userspace programs ==
== Debian kernel and userspace programs ==

Revision as of 10:44, 12 October 2014


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

Updates for next newsletter

  • fixed 64bit SMP kernel & sticon on machines with more than 4GB RAM
  • Dave found O_SYNC bug in glibc (Typo in hppa __O_SYNC define in <bits/fcntl.h>)
  • syscall fixes with compat kernel
  • Migration
  • access
  • 3.13 with all patches in (coherency)
  • buildds running
  • wiki migration finished (05 Feb)
  • parisc-linux domain is now owned by Helge (August)

ABI breakages (HP-UX support)

  • We dropped HP-UX support in kernel 3.14 by changing EWOULDBLOCK==EAGAIN, possibly change number of signals (for systemd), .. what else? (I believe we should pull the plug on HP-UX entirely. If there ever was enough interest, It should be supported in a VM. Machines are relatively cheap now. So, if someone needs hpux, they can buy a machine for it.) We have a more diverse user space under Linux and I believe in supporting open source, so we should focus on it.
  • Change RTSIGMIN to 32 (from 37) -

Testsuites - to be checked

  • We also have a problem with poll in rpcbind on 32-bit kernels. Runs forever. Not analyzed yet.
  • glib2.0 atomic bug: Dave: I see the problem building various packages -- apt is is one. It occurs when multiple dot processes are started by graph when package documentation is being generated. The number of dot processes spawned depends on the number of processors on the build system. However, the faults occur even on a UP system. I debugged one of these segvs enough to see that the problem occurred in a glib2.0 library. It's using the GCC "sync" interface.
  • From Dave: gcc thread issues including thread cancellation, glib2.0 problem, maybe __tls_get_addr clobber too?

Status & TODO 2014-10-11 (TODO-List by Helge Deller)

  • add wiki page about kernel cross-compiling
  • Kernel: Hard to solve outstanding issues
  • Kernel: still missing Linux kernel development (no patches available yet):
    • Fix FTRACE:
    • optimize flush_dcache_page() implementation like sparc. See Documentation/cachetlb.txt, e.g. used in aio subsystem
    • fix wrong _init notation in kernel
    • NO_IRQ -> should be converted to (0) instead of (-1) -> Helge (check assembly, check in drivers/parisc/*)
    • implement alternative coding for UP/SMP. See arch/x86/include/asm/alternative.h
    • 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
    • on C8000, report 1 socket with 2 cores.
    • implement HUGE pages (or even better transparent huge pages)
    • 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
  • Kernel: Low priority patches needs further work
    • Fix exception table entries to be of type int (32bit), even on 64bit kernel -> saves space. - - partly done.
    • disable FP-register save/restore at kernel entry? -
    • 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.
    • task_struct/thread_info split -- task_struct should not be visible in entry.S, we need to move some items into thread_info -- this includes pt_regs and maybe some of the flags (ptrace, etc)
    • Visualize FX support (will probably never happen!)
  • Debian packaging work:
    • STARTED: Build real debian-installer CD. See:
    • DONE: we need a kernel debian package (3.10 based or higher)
    • DONE: debian-ports/parisc repository aka. syning debs to there
      • DONE: Helge to contact Aurelien (aurel32) on #debian-glibc on OFTC IRC
      • DONE: try to debootstrap from repository and add missing packages.
    • DONE: split repository on into stable (wheezy) and unstable (sid)
    • DONE: send patches to remove UP from debian kernels, use sil680 instead of siimage, see -> fixed in 3.12 / 3.13
  • Debian packages / Userspace work
    • qt4-x11: Improve atomic support on parisc (
    • IMPORTANT: fix OpenJDK - fixes required in zeroport (stack grows up!).
    • 64-bit userspace, 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
  • Homepage migration:
  • palo (PA-RISC Boot Loader):
    • Modify (if possible), that palo can read (sequential) tftpbootable-vmlinuxes as well as the current boot-vmlinux images (simplifies build/handling)
    • move decompression to Linux kernel instead of palo


Kernel patches

Debian kernel and userspace programs

  • Debian kernel
  • Debian installer:
    • DONE: test xorriso (Thomas Schmitt, scdbackup) and Debian infrastructure work

  • DONE: Ask Thibaut to add ftp mirror of on
  • DONE: Set up a buildd server for debian-ports/unstable & experimental ->
  • DONE: contact (Nemeth Balint, Budapest) to set up buildd server - mail from 04.08.2013
  • Offer from for A400 system as buildd - mail from 18.09.2014
  • DONE: set up buildd server on ESIEE's A500 (Thibaut) - mail from 13.08.2013
  • DONE Sep 12 2014: migrate mail forward service for to A500 machine
  • DONE Sep 12 2014: restore web-based service
  • started Aug 2014: Import old hppa mailing list archives to

Kernel Testing Tools

TODO Drivers

  • IPMI support on rp-class / Support graceful shutdown from BMC on rp servers (`PC -GRACEFUL`)
  • 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!

  • ns87415 dma doesn't work reliably on suckyio-systems
  • investigate not putting in extable entries for put_kernel_asm; will probably reduce kernel size
Personal tools