Helge Deller | 24 Feb 18:13 2015
Picon
Picon

Pre-DEBIAN 8.0 install images for HPPA architecture (debian-ports unstable release)

Hello everyone,

I've prepared some initial netboot installation medias for
	DEBIAN 8.0 on HPPA

which are available at:
	http://ftp.debian-ports.org/debian-cd/hppa/debian-8.0/

You can find the instructions on how to install Debian 8.0 on hppa in our wiki at
	https://parisc.wiki.kernel.org/index.php/Debian_Ports_Installation

The install images will install binaries from debian-ports (Debian "unstable").

Major changes include:
- Based on Debian 8.0 code base
- Full systemd support
- Linux kernel modules for SATA included
- Lots of bug fixes
- Should support all common PA-RISC hardware (on C8000 installation needs to be done via serial port)

I'm happy to get your feedback (either as bug report or successful installation report).

Helge
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Helge Deller | 17 Feb 21:27 2015
Picon
Picon

[GIT PULL] parisc architecture patches for v3.20

Hi Linus,

please the latest patches and fixes for the parisc architecture for kernel 3.20/4.0 from 

  git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-3.20-1

The major change in here is the removal of the old HP-UX compat code
which should have made it possible to load and execute 32-bit HP-UX
binaries on PA-RISC Linux. Since it was never functional and since
nobody cares about old 32-bit HPUX binaries any longer, it's now time to
free up 3200 lines of kernel code (CONFIG_HPUX and CONFIG_BINFMT_SOM).

Other than that we wire up the execveat() syscall, fix sparse errors and have
some whitespace cleanups.

Thanks,
Helge

----------------------------------------------------------------
Helge Deller (8):
      parisc: Wire up execveat syscall
      parisc: Add error checks when building up signal trampoline handler
      parisc: hpux - Drop support for HP-UX binaries
      parisc: hpux - Do not compile hpux subdirectory
      parisc: hpux - Delete files in hpux subdirectory
      parisc: hpux - Remove hpux gateway page
      parisc: hpux - Remove HPUX syscall numbers
      fs/binfmt_som: Drop kernel support for HP-UX SOM binaries

Michael S. Tsirkin (2):
(Continue reading)

Helge Deller | 17 Feb 16:11 2015
Picon
Picon

[PATCH] fs/binfmt_som: Drop kernel support for HP-UX SOM binaries

The parisc arch has been the only user of HP-UX SOM binaries.

Support for HP-UX executables was never finished and since we now drop support
for the HP-UX compat layer anyway, it does not makes sense to keep the
BINFMT_SOM support.

Cc: linux-fsdevel <at> vger.kernel.org
Cc: linux-parisc <at> vger.kernel.org
Signed-off-by: Helge Deller <deller <at> gmx.de>

diff --git a/fs/Kconfig.binfmt b/fs/Kconfig.binfmt
index c055d56..270c481 100644
--- a/fs/Kconfig.binfmt
+++ b/fs/Kconfig.binfmt
 <at>  <at>  -149,13 +149,6  <at>  <at>  config BINFMT_EM86
 	  later load the module when you want to use a Linux/Intel binary. The
 	  module will be called binfmt_em86. If unsure, say Y.

-config BINFMT_SOM
-	tristate "Kernel support for SOM binaries"
-	depends on PARISC && HPUX
-	help
-	  SOM is a binary executable format inherited from HP/UX.  Say
-	  Y here to be able to load and execute SOM binaries directly.
-
 config BINFMT_MISC
 	tristate "Kernel support for MISC binaries"
 	---help---
diff --git a/fs/Makefile b/fs/Makefile
index bedff48..b7e0cfe 100644
(Continue reading)

Helge Deller | 16 Feb 22:21 2015
Picon
Picon

[PATCH] parisc: hpux - Remove HPUX syscall numbers

Signed-off-by: Helge Deller <deller <at> gmx.de>

diff --git a/arch/parisc/include/uapi/asm/unistd.h b/arch/parisc/include/uapi/asm/unistd.h
index 5f5c037..55c6486 100644
--- a/arch/parisc/include/uapi/asm/unistd.h
+++ b/arch/parisc/include/uapi/asm/unistd.h
 <at>  <at>  -2,480 +2,6  <at>  <at> 
 #define _UAPI_ASM_PARISC_UNISTD_H_
 
 /*
- * This file contains the system call numbers.
- */
-
-/*
- *   HP-UX system calls get their native numbers for binary compatibility.
- */
-
-#define __NR_HPUX_exit                    1
-#define __NR_HPUX_fork                    2
-#define __NR_HPUX_read                    3
-#define __NR_HPUX_write                   4
-#define __NR_HPUX_open                    5
-#define __NR_HPUX_close                   6
-#define __NR_HPUX_wait                    7
-#define __NR_HPUX_creat                   8
-#define __NR_HPUX_link                    9
-#define __NR_HPUX_unlink                 10
-#define __NR_HPUX_execv                  11
-#define __NR_HPUX_chdir                  12
-#define __NR_HPUX_time                   13
(Continue reading)

Helge Deller | 16 Feb 22:21 2015
Picon
Picon

[PATCH] parisc: hpux - Remove hpux gateway page

Drop code to create HP-UX gateway page and syscall entry code.

Signed-off-by: Helge Deller <deller <at> gmx.de>

diff --git a/arch/parisc/include/asm/processor.h b/arch/parisc/include/asm/processor.h
index 689a8ad..54adb60 100644
--- a/arch/parisc/include/asm/processor.h
+++ b/arch/parisc/include/asm/processor.h
 <at>  <at>  -330,8 +330,6  <at>  <at>  struct mm_struct;
 /* Free all resources held by a thread. */
 extern void release_thread(struct task_struct *);

-extern void map_hpux_gateway_page(struct task_struct *tsk, struct mm_struct *mm);
-
 extern unsigned long get_wchan(struct task_struct *p);

 #define KSTK_EIP(tsk)	((tsk)->thread.regs.iaoq[0])
diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
index e8f07dd..2ab16bb 100644
--- a/arch/parisc/kernel/entry.S
+++ b/arch/parisc/kernel/entry.S
 <at>  <at>  -1774,10 +1774,6  <at>  <at>  ENTRY(sys_rt_sigreturn_wrapper)
 ENDPROC(sys_rt_sigreturn_wrapper)

 ENTRY(syscall_exit)
-	/* NOTE: HP-UX syscalls also come through here
-	 * after hpux_syscall_exit fixes up return
-	 * values. */
-
 	/* NOTE: Not all syscalls exit this way.  rt_sigreturn will exit
(Continue reading)

Helge Deller | 16 Feb 22:19 2015
Picon
Picon

[PATCH] parisc: hpux - Delete files in hpux subdirectory

Signed-off-by: Helge Deller <deller <at> gmx.de>

diff --git a/arch/parisc/hpux/Makefile b/arch/parisc/hpux/Makefile
deleted file mode 100644
index 1048fb6..0000000
--- a/arch/parisc/hpux/Makefile
+++ /dev/null
 <at>  <at>  -1,5 +0,0  <at>  <at> 
-#
-# Makefile for HPUX emulation
-#
-
-obj-y := entry_hpux.o gate.o wrappers.o fs.o ioctl.o sys_hpux.o
diff --git a/arch/parisc/hpux/entry_hpux.S b/arch/parisc/hpux/entry_hpux.S
deleted file mode 100644
index d15a413..0000000
--- a/arch/parisc/hpux/entry_hpux.S
+++ /dev/null
 <at>  <at>  -1,546 +0,0  <at>  <at> 
-/*    syscall table for HPUX specific syscalls
- *
- *    Linux/PA-RISC Project (http://www.parisc-linux.org/)
- *    Copyright (C) 1999 Matthew Wilcox <willy at debian . org>
- *
- *    This program is free software; you can redistribute it and/or modify
- *    it under the terms of the GNU General Public License as published by
- *    the Free Software Foundation; either version 2 of the License, or
- *    (at your option) any later version.
- *
- *    This program is distributed in the hope that it will be useful,
(Continue reading)

Helge Deller | 16 Feb 22:18 2015
Picon
Picon

[PATCH] parisc: hpux - Do not compile hpux subdirectory

Signed-off-by: Helge Deller <deller <at> gmx.de>

diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
index 5db8882..91fbb6e 100644
--- a/arch/parisc/Makefile
+++ b/arch/parisc/Makefile
 <at>  <at>  -84,7 +84,6  <at>  <at>  head-y			:= arch/parisc/kernel/head.o
 KBUILD_CFLAGS	+= $(cflags-y)

 kernel-y			:= mm/ kernel/ math-emu/
-kernel-$(CONFIG_HPUX)		+= hpux/

 core-y	+= $(addprefix arch/parisc/, $(kernel-y))
 libs-y	+= arch/parisc/lib/ $(LIBGCC)
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Helge Deller | 16 Feb 22:17 2015
Picon
Picon

[PATCH] parisc: hpux - Drop support for HP-UX binaries

This patch series drops the support for 32bit HP-UX binaries.

The HP-UX compat layer has always been incomplete and it's unlikely that
someone will ever implement it.

Furthermore those two commits which enhance the compatibility of Linux on parisc
to other architectures:
 f5a408d: parisc: Make EWOULDBLOCK be equal to EAGAIN on parisc
 1f25df2: parisc: Reduce SIGRTMIN from 37 to 32 to behave like other Linux architectures
basically make it impossible to implement the HP-UX support correctly.

Signed-off-by: Helge Deller <deller <at> gmx.de>

diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
index 1554a6f..8014727 100644
--- a/arch/parisc/Kconfig
+++ b/arch/parisc/Kconfig
 <at>  <at>  -291,10 +291,6  <at>  <at>  config SYSVIPC_COMPAT
 config AUDIT_ARCH
 	def_bool y

-config HPUX
-	bool "Support for HP-UX binaries"
-	depends on !64BIT
Held Bier | 10 Feb 11:31 2015
Picon

Little endianness

Hi.

Looks like PA-RISC 1.1 added bi-endian support. 
What about PA-RISC Linux? I know it's big endian. 
But does it possible to build little endian kernel? If so, how?
Is migration to little endian planned? It should be reasonable 
as it will bring more  compatibility with other Linux world.

Thanks.

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Geert Uytterhoeven | 4 Feb 16:15 2015

[PATCH] MODULE_DEVICE_TABLE: fix gscps2

The patch "module: fix types of device tables aliases" newly requires
that invocations of

MODULE_DEVICE_TABLE(type, name);

come *after* the definition of `name'.  That is reasonable, but gscps2
wasn't doing this.  Fix it.

Signed-off-by: Geert Uytterhoeven <geert <at> linux-m68k.org>
---
One more fix for your collection...

parisc/allmodconfig
http://kisskb.ellerman.id.au/kisskb/buildresult/12358386/
---
 drivers/input/serio/gscps2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/serio/gscps2.c b/drivers/input/serio/gscps2.c
index 8d9ba0c3827c5b2a..94ab494a6ade8d49 100644
--- a/drivers/input/serio/gscps2.c
+++ b/drivers/input/serio/gscps2.c
 <at>  <at>  -40,7 +40,6  <at>  <at> 
 MODULE_AUTHOR("Laurent Canet <canetl <at> esiee.fr>, Thibaut Varene <varenet <at> parisc-linux.org>, Helge
Deller <deller <at> gmx.de>");
 MODULE_DESCRIPTION("HP GSC PS2 port driver");
 MODULE_LICENSE("GPL");
-MODULE_DEVICE_TABLE(parisc, gscps2_device_tbl);

 #define PFX "gscps2.c: "
(Continue reading)

Helge Deller | 3 Feb 21:52 2015
Picon
Picon

[PATCH] parisc: Add error checks when building up signal trampoline handler

Add checks if the userspace trampoline code was correctly generated by the
signal trampoline generation code. In addition only flush caches as needed and
fix the old flushing code which didn't flushed all generated instructions.

Signed-off-by: Helge Deller <deller <at> gmx.de>

diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c
index 012d4fa..50cda7e6 100644
--- a/arch/parisc/kernel/signal.c
+++ b/arch/parisc/kernel/signal.c
 <at>  <at>  -476,6 +476,9  <at>  <at>  insert_restart_trampoline(struct pt_regs *regs)
 	case -ERESTART_RESTARTBLOCK: {
 		/* Restart the system call - no handlers present */
 		unsigned int *usp = (unsigned int *)regs->gr[30];
+		unsigned long start = (unsigned long) &usp[2];
+		unsigned long end  = (unsigned long) &usp[5];
+		long err = 0;

 		/* Setup a trampoline to restart the syscall
 		 * with __NR_restart_syscall
 <at>  <at>  -487,23 +490,21  <at>  <at>  insert_restart_trampoline(struct pt_regs *regs)
 		 * 16: ldi __NR_restart_syscall, %r20
 		 */
 #ifdef CONFIG_64BIT
-		put_user(regs->gr[31] >> 32, &usp[0]);
-		put_user(regs->gr[31] & 0xffffffff, &usp[1]);
-		put_user(0x0fc010df, &usp[2]);
+		err |= put_user(regs->gr[31] >> 32, &usp[0]);
+		err |= put_user(regs->gr[31] & 0xffffffff, &usp[1]);
+		err |= put_user(0x0fc010df, &usp[2]);
(Continue reading)


Gmane