TODO

From Linux PARISC Wiki
(Difference between revisions)
Jump to: navigation, search
m (Status & TODO 2015-06-02)
m (Kernel patches)
Line 128: Line 128:
 
** parisc: fix cache-flushing
 
** parisc: fix cache-flushing
 
* Kernel 3.15
 
* Kernel 3.15
** epoll_pwait bug: debian packages libio-epoll-perl and python-falcon failed -> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ab3e55b119c9653b19ea4edffb86f04db867ac98
+
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ab3e55b119c9653b19ea4edffb86f04db867ac98 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 -> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=b5f3c61d06165c3dddddbc30772f079c2c8589ca
+
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=b5f3c61d06165c3dddddbc30772f079c2c8589ca pthread_create() out-of-memory bug, failed only when used with GNU make, e.g. zeromq3 package. Reason: stack hard limit problems]
** parisc: change value of SHMLBA from 0x00400000 to PAGE_SIZE -> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0ef36bd2b37815719e31a72d2beecc28ca8ecd26 (backported to v3.13+)
+
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0ef36bd2b37815719e31a72d2beecc28ca8ecd26 parisc: change value of SHMLBA from 0x00400000 to PAGE_SIZE] (backported to v3.13+)
 
** parisc: add renameat2 syscall
 
** parisc: add renameat2 syscall
 
** parisc: Improve LWS-CAS performance
 
** parisc: Improve LWS-CAS performance
Line 154: Line 154:
 
** parisc: pdc_stable.c: Cleaning up unnecessary use of memset in conjunction with strncpy
 
** parisc: pdc_stable.c: Cleaning up unnecessary use of memset in conjunction with strncpy
 
** parisc: ptrace: use secure_computing_strict()
 
** 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 -> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=89206491201cbd1571009b36292af781cef74c1b (backported to Kernel >= 3.13)  
+
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=89206491201cbd1571009b36292af781cef74c1b parisc: Implement new LWS CAS supporting 64 bit operations, CAS implementation: implement 1,2,4 and 8 byte CAS]  (backported to v3.13+)  
 
** parisc: Wire up seccomp, getrandom and memfd_create syscalls
 
** parisc: Wire up seccomp, getrandom and memfd_create syscalls
 
** parisc: dino: fix %d confusingly prefixed with 0x in format string
 
** parisc: dino: fix %d confusingly prefixed with 0x in format string
Line 185: Line 185:
 
** parisc: Eliminate sg_virt_addr() and private scatterlist.h
 
** parisc: Eliminate sg_virt_addr() and private scatterlist.h
 
** parisc: copy_thread(): rename 'arg' argument to 'kthread_arg'
 
** parisc: copy_thread(): rename 'arg' argument to 'kthread_arg'
** '''parisc,metag: Fix crashes due to stack randomization on stack-grows-upwards architectures'''
+
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d045c77c1a69703143a36169c224429c48b9eecd '''parisc,metag: Fix crashes due to stack randomization on stack-grows-upwards architectures''']  (backported to v3.16+)
 
*** DONE: fix VA randomization regarding to stack limits (testcase: ocaml build, temporarily fix: echo 0 > /proc/sys/kernel/randomize_va_space or add to /etc/sysctl.conf: sys.kernel.randomize_va_space = 0)
 
*** DONE: fix VA randomization regarding to stack limits (testcase: ocaml build, temporarily fix: echo 0 > /proc/sys/kernel/randomize_va_space or add to /etc/sysctl.conf: sys.kernel.randomize_va_space = 0)
 
** parisc: %pf is only for function pointers
 
** parisc: %pf is only for function pointers
 +
* Kernel 4.2
 +
** parisc: copy_thread(): rename 'arg' argument to 'kthread_arg'
 +
** parisc: don't use module_init for non-modular core pdc_cons code
 +
** parisc: use for_each_sg()
 +
** parisc: don't use module_init for non-modular core pdc_cons code
 +
** stifb: Implement hardware accelerated copyarea
 +
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=01ab60570427caa24b9debc369e452e86cd9beb4 parisc: Fix some PTE/TLB race conditions and optimize __flush_tlb_range based on timing results] (backported to v3.18+)
 +
** [http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=4c4ac9a48ac512c6b5a6cca06cfad2ad96e8caaa parisc: mm: Fix a memory leak related to pmd not attached to the pgd ] (backported to v4.0+)
  
 
== Debian kernel and userspace programs ==
 
== Debian kernel and userspace programs ==

Revision as of 19:13, 20 July 2015

Contents

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

Status & TODO 2015-07-16

  • add wiki page about kernel cross-compiling
  • Kernel: Hard to solve outstanding issues
    • megaraid on my rp5470 hangs at boot (maybe because SCSI chassis not connected)? -> use new megaraid driver for debian
    • Fix FireGL X1/X3 in C8000 - currently broken (no DRM and software accel is incredibly slow plus colors in 24bpp mode are wrong seems ok in debian 8 sid / 3.16.7 kernel) - Info: manual "Radeon R5xx Acceleration" - http://www.x.org/docs/AMD/R5xx_Acceleration_v1.1.pdf and generic: http://www.botchco.com/agd5f/?p=50
  • Kernel: still missing Linux kernel development (no patches available yet):
    • Fix FTRACE: https://patchwork.kernel.org/patch/3554391/
    • optimize flush_dcache_page() implementation like sparc. See Documentation/cachetlb.txt, e.g. used in aio subsystem
    • Implement CONFIG_DEBUG_STACK_USAGE ?
    • 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 http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=18ad51dd342a7eb09dbcd059d0b451b616d4dafc
  • Kernel: Low priority patches needs further work
    • Fix exception table entries to be of type int (32bit), even on 64bit kernel -> saves space. - https://patchwork.kernel.org/patch/3033801/ - partly done.
    • 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.
    • 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 packages / Userspace work
    • 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
  • 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 of Kernel to Linux kernel code instead of palo

Kernel patches

Debian kernel and userspace programs

  • Debian 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)
  • Debian installer:

ABI breakages (HP-UX support)

parisc-linux.org Homepage and Debian build server infrastructure work

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>)
  • lots of syscall fixes regarding compat kernel
  • Migration parisc-linux.org
  • debian-ports.org access
  • 3.13 with all patches in (coherency)
  • buildds running
  • wiki migration finished (05 Feb 2014)
  • old parisc-linux kernel mailinglist imported into gmane.org - http://dir.gmane.org/gmane.linux.ports.parisc - 23 Nov 2014
  • parisc-linux domain is now owned by Helge (August 2014)
  • Debian 8.0 installer images available.

Testsuites, kernel and userspace testing tools

  • GLIBC issues: https://sourceware.org/glibc/wiki/PortStatus
  • 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?

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