Skip to content

Commit 67dd2f5

Browse files
committed
Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
* 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6: (72 commits) [S390] 3215/3270 console: remove wrong comment [S390] dasd: remove BKL from extended error reporting code [S390] vmlogrdr: remove BKL [S390] vmur: remove BKL [S390] zcrypt: remove BKL [S390] 3270: remove BKL [S390] vmwatchdog: remove lock_kernel() from open() function [S390] monwriter: remove lock_kernel() from open() function [S390] monreader: remove lock_kernel() from open() function [S390] s390: remove unused nfsd #includes [S390] ftrace: build ftrace.o when CONFIG_FTRACE_SYSCALLS is set for s390 [S390] etr/stp: put correct per cpu variable [S390] tty3270: move keyboard compat ioctls [S390] sclp: improve servicability setting [S390] s390: use change recording override for kernel mapping [S390] MAINTAINERS: Add s390 drivers block [S390] use generic sockios.h header file [S390] use generic termbits.h header file [S390] smp: remove unused typedef and defines [S390] cmm: free pages on hibernate. ...
2 parents 5327b9b + 42d61b9 commit 67dd2f5

76 files changed

Lines changed: 2727 additions & 2713 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎MAINTAINERS‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3139,6 +3139,7 @@ S: Supported
31393139
F: Documentation/s390/kvm.txt
31403140
F: arch/s390/include/asm/kvm*
31413141
F: arch/s390/kvm/
3142+
F: drivers/s390/kvm/
31423143

31433144
KEXEC
31443145
M: Eric Biederman <ebiederm@xmission.com>
@@ -4553,6 +4554,7 @@ L: linux-s390@vger.kernel.org
45534554
W: http://www.ibm.com/developerworks/linux/linux390/
45544555
S: Supported
45554556
F: arch/s390/
4557+
F: drivers/s390/
45564558

45574559
S390 NETWORK DRIVERS
45584560
M: Ursula Braun <ursula.braun@de.ibm.com>
@@ -4568,6 +4570,7 @@ M: Felix Beck <felix.beck@de.ibm.com>
45684570
M: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
45694571
M: linux390@de.ibm.com
45704572
L: linux-s390@vger.kernel.org
4573+
W: http://www.ibm.com/developerworks/linux/linux390/
45714574
S: Supported
45724575
F: drivers/s390/crypto/
45734576

‎arch/s390/Kconfig‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -220,23 +220,8 @@ config AUDIT_ARCH
220220
bool
221221
default y
222222

223-
config S390_SWITCH_AMODE
224-
bool "Switch kernel/user addressing modes"
225-
help
226-
This option allows to switch the addressing modes of kernel and user
227-
space. The kernel parameter switch_amode=on will enable this feature,
228-
default is disabled. Enabling this (via kernel parameter) on machines
229-
earlier than IBM System z9-109 EC/BC will reduce system performance.
230-
231-
Note that this option will also be selected by selecting the execute
232-
protection option below. Enabling the execute protection via the
233-
noexec kernel parameter will also switch the addressing modes,
234-
independent of the switch_amode kernel parameter.
235-
236-
237223
config S390_EXEC_PROTECT
238224
bool "Data execute protection"
239-
select S390_SWITCH_AMODE
240225
help
241226
This option allows to enable a buffer overflow protection for user
242227
space programs and it also selects the addressing mode option above.

‎arch/s390/defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ CONFIG_HOTPLUG_CPU=y
185185
CONFIG_COMPAT=y
186186
CONFIG_SYSVIPC_COMPAT=y
187187
CONFIG_AUDIT_ARCH=y
188-
CONFIG_S390_SWITCH_AMODE=y
189188
CONFIG_S390_EXEC_PROTECT=y
190189

191190
#

‎arch/s390/include/asm/atomic.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)
2222

2323
#define __CS_LOOP(ptr, op_val, op_string) ({ \
24-
typeof(ptr->counter) old_val, new_val; \
24+
int old_val, new_val; \
2525
asm volatile( \
2626
" l %0,%2\n" \
2727
"0: lr %1,%0\n" \
@@ -38,7 +38,7 @@
3838
#else /* __GNUC__ */
3939

4040
#define __CS_LOOP(ptr, op_val, op_string) ({ \
41-
typeof(ptr->counter) old_val, new_val; \
41+
int old_val, new_val; \
4242
asm volatile( \
4343
" l %0,0(%3)\n" \
4444
"0: lr %1,%0\n" \
@@ -143,7 +143,7 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
143143
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)
144144

145145
#define __CSG_LOOP(ptr, op_val, op_string) ({ \
146-
typeof(ptr->counter) old_val, new_val; \
146+
long long old_val, new_val; \
147147
asm volatile( \
148148
" lg %0,%2\n" \
149149
"0: lgr %1,%0\n" \
@@ -160,7 +160,7 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
160160
#else /* __GNUC__ */
161161

162162
#define __CSG_LOOP(ptr, op_val, op_string) ({ \
163-
typeof(ptr->counter) old_val, new_val; \
163+
long long old_val, new_val; \
164164
asm volatile( \
165165
" lg %0,0(%3)\n" \
166166
"0: lgr %1,%0\n" \

‎arch/s390/include/asm/ccwdev.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ struct ccw1;
142142
extern int ccw_device_set_options_mask(struct ccw_device *, unsigned long);
143143
extern int ccw_device_set_options(struct ccw_device *, unsigned long);
144144
extern void ccw_device_clear_options(struct ccw_device *, unsigned long);
145+
int ccw_device_is_pathgroup(struct ccw_device *cdev);
146+
int ccw_device_is_multipath(struct ccw_device *cdev);
145147

146148
/* Allow for i/o completion notification after primary interrupt status. */
147149
#define CCWDEV_EARLY_NOTIFICATION 0x0001
@@ -151,6 +153,8 @@ extern void ccw_device_clear_options(struct ccw_device *, unsigned long);
151153
#define CCWDEV_DO_PATHGROUP 0x0004
152154
/* Allow forced onlining of boxed devices. */
153155
#define CCWDEV_ALLOW_FORCE 0x0008
156+
/* Try to use multipath mode. */
157+
#define CCWDEV_DO_MULTIPATH 0x0010
154158

155159
extern int ccw_device_start(struct ccw_device *, struct ccw1 *,
156160
unsigned long, __u8, unsigned long);

‎arch/s390/include/asm/mmu_context.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static inline int init_new_context(struct task_struct *tsk,
3636
mm->context.has_pgste = 1;
3737
mm->context.alloc_pgste = 1;
3838
} else {
39-
mm->context.noexec = s390_noexec;
39+
mm->context.noexec = (user_mode == SECONDARY_SPACE_MODE);
4040
mm->context.has_pgste = 0;
4141
mm->context.alloc_pgste = 0;
4242
}
@@ -58,7 +58,7 @@ static inline void update_mm(struct mm_struct *mm, struct task_struct *tsk)
5858
pgd_t *pgd = mm->pgd;
5959

6060
S390_lowcore.user_asce = mm->context.asce_bits | __pa(pgd);
61-
if (switch_amode) {
61+
if (user_mode != HOME_SPACE_MODE) {
6262
/* Load primary space page table origin. */
6363
pgd = mm->context.noexec ? get_shadow_table(pgd) : pgd;
6464
S390_lowcore.user_exec_asce = mm->context.asce_bits | __pa(pgd);

‎arch/s390/include/asm/pgalloc.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ static inline pgd_t *pgd_alloc(struct mm_struct *mm)
143143
spin_lock_init(&mm->context.list_lock);
144144
INIT_LIST_HEAD(&mm->context.crst_list);
145145
INIT_LIST_HEAD(&mm->context.pgtable_list);
146-
return (pgd_t *) crst_table_alloc(mm, s390_noexec);
146+
return (pgd_t *)
147+
crst_table_alloc(mm, user_mode == SECONDARY_SPACE_MODE);
147148
}
148149
#define pgd_free(mm, pgd) crst_table_free(mm, (unsigned long *) pgd)
149150

‎arch/s390/include/asm/pgtable.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,13 @@ extern unsigned long VMALLOC_START;
169169
* STL Segment-Table-Length: Segment-table length (STL+1*16 entries -> up to 2048)
170170
*
171171
* A 64 bit pagetable entry of S390 has following format:
172-
* | PFRA |0IP0| OS |
172+
* | PFRA |0IPC| OS |
173173
* 0000000000111111111122222222223333333333444444444455555555556666
174174
* 0123456789012345678901234567890123456789012345678901234567890123
175175
*
176176
* I Page-Invalid Bit: Page is not available for address-translation
177177
* P Page-Protection Bit: Store access not possible for page
178+
* C Change-bit override: HW is not required to set change bit
178179
*
179180
* A 64 bit segmenttable entry of S390 has following format:
180181
* | P-table origin | TT
@@ -218,6 +219,7 @@ extern unsigned long VMALLOC_START;
218219
*/
219220

220221
/* Hardware bits in the page table entry */
222+
#define _PAGE_CO 0x100 /* HW Change-bit override */
221223
#define _PAGE_RO 0x200 /* HW read-only bit */
222224
#define _PAGE_INVALID 0x400 /* HW invalid bit */
223225

‎arch/s390/include/asm/setup.h‎

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,12 @@ extern unsigned long memory_end;
4949

5050
void detect_memory_layout(struct mem_chunk chunk[]);
5151

52-
#ifdef CONFIG_S390_SWITCH_AMODE
53-
extern unsigned int switch_amode;
54-
#else
55-
#define switch_amode (0)
56-
#endif
57-
58-
#ifdef CONFIG_S390_EXEC_PROTECT
59-
extern unsigned int s390_noexec;
60-
#else
61-
#define s390_noexec (0)
62-
#endif
52+
#define PRIMARY_SPACE_MODE 0
53+
#define ACCESS_REGISTER_MODE 1
54+
#define SECONDARY_SPACE_MODE 2
55+
#define HOME_SPACE_MODE 3
56+
57+
extern unsigned int user_mode;
6358

6459
/*
6560
* Machine features detected in head.S

‎arch/s390/include/asm/smp.h‎

Lines changed: 10 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,22 @@
11
/*
2-
* include/asm-s390/smp.h
3-
*
4-
* S390 version
5-
* Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
6-
* Author(s): Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com),
7-
* Martin Schwidefsky (schwidefsky@de.ibm.com)
8-
* Heiko Carstens (heiko.carstens@de.ibm.com)
2+
* Copyright IBM Corp. 1999,2009
3+
* Author(s): Denis Joseph Barrow,
4+
* Martin Schwidefsky <schwidefsky@de.ibm.com>,
5+
* Heiko Carstens <heiko.carstens@de.ibm.com>,
96
*/
107
#ifndef __ASM_SMP_H
118
#define __ASM_SMP_H
129

13-
#include <linux/threads.h>
14-
#include <linux/cpumask.h>
15-
#include <linux/bitops.h>
10+
#ifdef CONFIG_SMP
1611

17-
#if defined(__KERNEL__) && defined(CONFIG_SMP) && !defined(__ASSEMBLY__)
18-
19-
#include <asm/lowcore.h>
20-
#include <asm/sigp.h>
21-
#include <asm/ptrace.h>
2212
#include <asm/system.h>
23-
24-
/*
25-
s390 specific smp.c headers
26-
*/
27-
typedef struct
28-
{
29-
int intresting;
30-
sigp_ccode ccode;
31-
__u32 status;
32-
__u16 cpu;
33-
} sigp_info;
13+
#include <asm/sigp.h>
3414

3515
extern void machine_restart_smp(char *);
3616
extern void machine_halt_smp(void);
3717
extern void machine_power_off_smp(void);
3818

39-
#define NO_PROC_ID 0xFF /* No processor magic marker */
40-
41-
/*
42-
* This magic constant controls our willingness to transfer
43-
* a process across CPUs. Such a transfer incurs misses on the L1
44-
* cache, and on a P6 or P5 with multiple L2 caches L2 hits. My
45-
* gut feeling is this will vary by board in value. For a board
46-
* with separate L2 cache it probably depends also on the RSS, and
47-
* for a board with shared L2 cache it ought to decay fast as other
48-
* processes are run.
49-
*/
50-
51-
#define PROC_CHANGE_PENALTY 20 /* Schedule penalty */
52-
5319
#define raw_smp_processor_id() (S390_lowcore.cpu_nr)
54-
#define cpu_logical_map(cpu) (cpu)
5520

5621
extern int __cpu_disable (void);
5722
extern void __cpu_die (unsigned int cpu);
@@ -64,13 +29,14 @@ extern int smp_cpu_polarization[];
6429
extern void arch_send_call_function_single_ipi(int cpu);
6530
extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
6631

67-
#endif
32+
extern union save_area *zfcpdump_save_areas[NR_CPUS + 1];
33+
34+
#endif /* CONFIG_SMP */
6835

6936
#ifdef CONFIG_HOTPLUG_CPU
7037
extern int smp_rescan_cpus(void);
7138
#else
7239
static inline int smp_rescan_cpus(void) { return 0; }
7340
#endif
7441

75-
extern union save_area *zfcpdump_save_areas[NR_CPUS + 1];
76-
#endif
42+
#endif /* __ASM_SMP_H */

0 commit comments

Comments
 (0)