Skip to content

Commit e60b9a0

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 updates from Martin Schwidefsky: "Just a random collection of bug-fixes and cleanups, nothing new in this merge request." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (46 commits) s390/ap: Fix wrong or missing comments s390/ap: move receive callback to message struct s390/dasd: re-prioritize partition detection message s390/qeth: reshuffle initialization s390/qeth: cleanup drv attr usage s390/claw: cleanup drv attr usage s390/lcs: cleanup drv attr usage s390/ctc: cleanup drv attr usage s390/ccwgroup: remove ccwgroup_create_from_string s390/qeth: stop using struct ccwgroup driver for discipline callbacks s390/qeth: switch to ccwgroup_create_dev s390/claw: switch to ccwgroup_create_dev s390/lcs: switch to ccwgroup_create_dev s390/ctcm: switch to ccwgroup_create_dev s390/ccwgroup: exploit ccwdev_by_dev_id s390/ccwgroup: introduce ccwgroup_create_dev s390: fix race on TIF_MCCK_PENDING s390/barrier: make use of fast-bcr facility s390/barrier: cleanup barrier functions s390/claw: remove "eieio" calls ...
2 parents 9daeaa3 + a7475af commit e60b9a0

54 files changed

Lines changed: 592 additions & 1127 deletions

Some content is hidden

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

‎arch/s390/Kconfig‎

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ config COMPAT
217217
def_bool y
218218
prompt "Kernel support for 31 bit emulation"
219219
depends on 64BIT
220-
select COMPAT_BINFMT_ELF
220+
select COMPAT_BINFMT_ELF if BINFMT_ELF
221221
select ARCH_WANT_OLD_COMPAT_IPC
222222
help
223223
Select this option if you want to enable your system kernel to
@@ -234,6 +234,25 @@ config KEYS_COMPAT
234234
config AUDIT_ARCH
235235
def_bool y
236236

237+
config HAVE_MARCH_Z900_FEATURES
238+
def_bool n
239+
240+
config HAVE_MARCH_Z990_FEATURES
241+
def_bool n
242+
select HAVE_MARCH_Z900_FEATURES
243+
244+
config HAVE_MARCH_Z9_109_FEATURES
245+
def_bool n
246+
select HAVE_MARCH_Z990_FEATURES
247+
248+
config HAVE_MARCH_Z10_FEATURES
249+
def_bool n
250+
select HAVE_MARCH_Z9_109_FEATURES
251+
252+
config HAVE_MARCH_Z196_FEATURES
253+
def_bool n
254+
select HAVE_MARCH_Z10_FEATURES
255+
237256
comment "Code generation options"
238257

239258
choice
@@ -249,34 +268,39 @@ config MARCH_G5
249268

250269
config MARCH_Z900
251270
bool "IBM zSeries model z800 and z900"
271+
select HAVE_MARCH_Z900_FEATURES if 64BIT
252272
help
253273
Select this to enable optimizations for model z800/z900 (2064 and
254274
2066 series). This will enable some optimizations that are not
255275
available on older ESA/390 (31 Bit) only CPUs.
256276

257277
config MARCH_Z990
258278
bool "IBM zSeries model z890 and z990"
279+
select HAVE_MARCH_Z990_FEATURES if 64BIT
259280
help
260281
Select this to enable optimizations for model z890/z990 (2084 and
261282
2086 series). The kernel will be slightly faster but will not work
262283
on older machines.
263284

264285
config MARCH_Z9_109
265286
bool "IBM System z9"
287+
select HAVE_MARCH_Z9_109_FEATURES if 64BIT
266288
help
267289
Select this to enable optimizations for IBM System z9 (2094 and
268290
2096 series). The kernel will be slightly faster but will not work
269291
on older machines.
270292

271293
config MARCH_Z10
272294
bool "IBM System z10"
295+
select HAVE_MARCH_Z10_FEATURES if 64BIT
273296
help
274297
Select this to enable optimizations for IBM System z10 (2097 and
275298
2098 series). The kernel will be slightly faster but will not work
276299
on older machines.
277300

278301
config MARCH_Z196
279302
bool "IBM zEnterprise 114 and 196"
303+
select HAVE_MARCH_Z196_FEATURES if 64BIT
280304
help
281305
Select this to enable optimizations for IBM zEnterprise 114 and 196
282306
(2818 and 2817 series). The kernel will be slightly faster but will
@@ -406,33 +430,6 @@ config CHSC_SCH
406430

407431
comment "Misc"
408432

409-
config IPL
410-
def_bool y
411-
prompt "Builtin IPL record support"
412-
help
413-
If you want to use the produced kernel to IPL directly from a
414-
device, you have to merge a bootsector specific to the device
415-
into the first bytes of the kernel. You will have to select the
416-
IPL device.
417-
418-
choice
419-
prompt "IPL method generated into head.S"
420-
depends on IPL
421-
default IPL_VM
422-
help
423-
Select "tape" if you want to IPL the image from a Tape.
424-
425-
Select "vm_reader" if you are running under VM/ESA and want
426-
to IPL the image from the emulated card reader.
427-
428-
config IPL_TAPE
429-
bool "tape"
430-
431-
config IPL_VM
432-
bool "vm_reader"
433-
434-
endchoice
435-
436433
source "fs/Kconfig.binfmt"
437434

438435
config FORCE_MAX_ZONEORDER
@@ -569,7 +566,7 @@ config KEXEC
569566

570567
config CRASH_DUMP
571568
bool "kernel crash dumps"
572-
depends on 64BIT
569+
depends on 64BIT && SMP
573570
select KEXEC
574571
help
575572
Generate crash dump after being started by kexec.

‎arch/s390/boot/.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
image
2+
bzImage
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sizes.h
2+
vmlinux
3+
vmlinux.lds

‎arch/s390/defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ CONFIG_CRYPTO_BLOWFISH=m
155155
CONFIG_CRYPTO_CAMELLIA=m
156156
CONFIG_CRYPTO_CAST5=m
157157
CONFIG_CRYPTO_CAST6=m
158-
CONFIG_CRYPTO_DES=m
159158
CONFIG_CRYPTO_FCRYPT=m
160159
CONFIG_CRYPTO_KHAZAD=m
161160
CONFIG_CRYPTO_SALSA20=m

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

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,28 @@
1111
* Force strict CPU ordering.
1212
* And yes, this is required on UP too when we're talking
1313
* to devices.
14-
*
15-
* This is very similar to the ppc eieio/sync instruction in that is
16-
* does a checkpoint syncronisation & makes sure that
17-
* all memory ops have completed wrt other CPU's ( see 7-15 POP DJB ).
1814
*/
1915

20-
#define eieio() asm volatile("bcr 15,0" : : : "memory")
21-
#define SYNC_OTHER_CORES(x) eieio()
22-
#define mb() eieio()
23-
#define rmb() eieio()
24-
#define wmb() eieio()
25-
#define read_barrier_depends() do { } while(0)
26-
#define smp_mb() mb()
27-
#define smp_rmb() rmb()
28-
#define smp_wmb() wmb()
29-
#define smp_read_barrier_depends() read_barrier_depends()
30-
#define smp_mb__before_clear_bit() smp_mb()
31-
#define smp_mb__after_clear_bit() smp_mb()
16+
static inline void mb(void)
17+
{
18+
#ifdef CONFIG_HAVE_MARCH_Z196_FEATURES
19+
/* Fast-BCR without checkpoint synchronization */
20+
asm volatile("bcr 14,0" : : : "memory");
21+
#else
22+
asm volatile("bcr 15,0" : : : "memory");
23+
#endif
24+
}
25+
26+
#define rmb() mb()
27+
#define wmb() mb()
28+
#define read_barrier_depends() do { } while(0)
29+
#define smp_mb() mb()
30+
#define smp_rmb() rmb()
31+
#define smp_wmb() wmb()
32+
#define smp_read_barrier_depends() read_barrier_depends()
33+
#define smp_mb__before_clear_bit() smp_mb()
34+
#define smp_mb__after_clear_bit() smp_mb()
3235

33-
#define set_mb(var, value) do { var = value; mb(); } while (0)
36+
#define set_mb(var, value) do { var = value; mb(); } while (0)
3437

3538
#endif /* __ASM_BARRIER_H */

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

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ struct ccwgroup_device {
2929

3030
/**
3131
* struct ccwgroup_driver - driver for ccw group devices
32-
* @max_slaves: maximum number of slave devices
33-
* @driver_id: unique id
34-
* @probe: function called on probe
32+
* @setup: function called during device creation to setup the device
3533
* @remove: function called on remove
3634
* @set_online: function called when device is set online
3735
* @set_offline: function called when device is set offline
@@ -44,10 +42,7 @@ struct ccwgroup_device {
4442
* @driver: embedded driver structure
4543
*/
4644
struct ccwgroup_driver {
47-
int max_slaves;
48-
unsigned long driver_id;
49-
50-
int (*probe) (struct ccwgroup_device *);
45+
int (*setup) (struct ccwgroup_device *);
5146
void (*remove) (struct ccwgroup_device *);
5247
int (*set_online) (struct ccwgroup_device *);
5348
int (*set_offline) (struct ccwgroup_device *);
@@ -63,9 +58,8 @@ struct ccwgroup_driver {
6358

6459
extern int ccwgroup_driver_register (struct ccwgroup_driver *cdriver);
6560
extern void ccwgroup_driver_unregister (struct ccwgroup_driver *cdriver);
66-
int ccwgroup_create_from_string(struct device *root, unsigned int creator_id,
67-
struct ccw_driver *cdrv, int num_devices,
68-
const char *buf);
61+
int ccwgroup_create_dev(struct device *root, struct ccwgroup_driver *gdrv,
62+
int num_devices, const char *buf);
6963

7064
extern int ccwgroup_probe_ccwdev(struct ccw_device *cdev);
7165
extern void ccwgroup_remove_ccwdev(struct ccw_device *cdev);

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,8 @@ static inline void * phys_to_virt(unsigned long address)
3838
return (void *) address;
3939
}
4040

41-
/*
42-
* Convert a physical pointer to a virtual kernel pointer for /dev/mem
43-
* access
44-
*/
45-
#define xlate_dev_mem_ptr(p) __va(p)
41+
void *xlate_dev_mem_ptr(unsigned long phys);
42+
void unxlate_dev_mem_ptr(unsigned long phys, void *addr);
4643

4744
/*
4845
* Convert a virtual cached pointer to an uncached pointer

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,6 @@ struct slsb {
258258
u8 val[QDIO_MAX_BUFFERS_PER_Q];
259259
} __attribute__ ((packed, aligned(256)));
260260

261-
#define CHSC_AC2_MULTI_BUFFER_AVAILABLE 0x0080
262-
#define CHSC_AC2_MULTI_BUFFER_ENABLED 0x0040
263-
#define CHSC_AC2_DATA_DIV_AVAILABLE 0x0010
264-
#define CHSC_AC2_DATA_DIV_ENABLED 0x0002
265-
266261
/**
267262
* struct qdio_outbuf_state - SBAL related asynchronous operation information
268263
* (for communication with upper layer programs)
@@ -293,6 +288,8 @@ struct qdio_outbuf_state {
293288
#define AC1_SC_QEBSM_AVAILABLE 0x02 /* available for subchannel */
294289
#define AC1_SC_QEBSM_ENABLED 0x01 /* enabled for subchannel */
295290

291+
#define CHSC_AC2_MULTI_BUFFER_AVAILABLE 0x0080
292+
#define CHSC_AC2_MULTI_BUFFER_ENABLED 0x0040
296293
#define CHSC_AC2_DATA_DIV_AVAILABLE 0x0010
297294
#define CHSC_AC2_DATA_DIV_ENABLED 0x0002
298295

@@ -328,11 +325,13 @@ typedef void qdio_handler_t(struct ccw_device *, unsigned int, int,
328325
int, int, unsigned long);
329326

330327
/* qdio errors reported to the upper-layer program */
331-
#define QDIO_ERROR_SIGA_TARGET 0x02
332-
#define QDIO_ERROR_SIGA_ACCESS_EXCEPTION 0x10
333-
#define QDIO_ERROR_SIGA_BUSY 0x20
334-
#define QDIO_ERROR_ACTIVATE_CHECK_CONDITION 0x40
335-
#define QDIO_ERROR_SLSB_STATE 0x80
328+
#define QDIO_ERROR_ACTIVATE 0x0001
329+
#define QDIO_ERROR_GET_BUF_STATE 0x0002
330+
#define QDIO_ERROR_SET_BUF_STATE 0x0004
331+
#define QDIO_ERROR_SLSB_STATE 0x0100
332+
333+
#define QDIO_ERROR_FATAL 0x00ff
334+
#define QDIO_ERROR_TEMPORARY 0xff00
336335

337336
/* for qdio_cleanup */
338337
#define QDIO_FLAG_CLEANUP_USING_CLEAR 0x01

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ extern unsigned int user_mode;
8282
#define MACHINE_FLAG_LPAR (1UL << 12)
8383
#define MACHINE_FLAG_SPP (1UL << 13)
8484
#define MACHINE_FLAG_TOPOLOGY (1UL << 14)
85-
#define MACHINE_FLAG_STCKF (1UL << 15)
8685

8786
#define MACHINE_IS_VM (S390_lowcore.machine_flags & MACHINE_FLAG_VM)
8887
#define MACHINE_IS_KVM (S390_lowcore.machine_flags & MACHINE_FLAG_KVM)
@@ -101,7 +100,6 @@ extern unsigned int user_mode;
101100
#define MACHINE_HAS_PFMF (0)
102101
#define MACHINE_HAS_SPP (0)
103102
#define MACHINE_HAS_TOPOLOGY (0)
104-
#define MACHINE_HAS_STCKF (0)
105103
#else /* __s390x__ */
106104
#define MACHINE_HAS_IEEE (1)
107105
#define MACHINE_HAS_CSP (1)
@@ -113,7 +111,6 @@ extern unsigned int user_mode;
113111
#define MACHINE_HAS_PFMF (S390_lowcore.machine_flags & MACHINE_FLAG_PFMF)
114112
#define MACHINE_HAS_SPP (S390_lowcore.machine_flags & MACHINE_FLAG_SPP)
115113
#define MACHINE_HAS_TOPOLOGY (S390_lowcore.machine_flags & MACHINE_FLAG_TOPOLOGY)
116-
#define MACHINE_HAS_STCKF (S390_lowcore.machine_flags & MACHINE_FLAG_STCKF)
117114
#endif /* __s390x__ */
118115

119116
#define ZFCPDUMP_HSA_SIZE (32UL<<20)

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ static inline struct thread_info *current_thread_info(void)
9595
#define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */
9696
#define TIF_SECCOMP 10 /* secure computing */
9797
#define TIF_SYSCALL_TRACEPOINT 11 /* syscall tracepoint instrumentation */
98-
#define TIF_SIE 12 /* guest execution active */
9998
#define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling
10099
TIF_NEED_RESCHED */
101100
#define TIF_31BIT 17 /* 32bit process */
@@ -114,7 +113,6 @@ static inline struct thread_info *current_thread_info(void)
114113
#define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT)
115114
#define _TIF_SECCOMP (1<<TIF_SECCOMP)
116115
#define _TIF_SYSCALL_TRACEPOINT (1<<TIF_SYSCALL_TRACEPOINT)
117-
#define _TIF_SIE (1<<TIF_SIE)
118116
#define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
119117
#define _TIF_31BIT (1<<TIF_31BIT)
120118
#define _TIF_SINGLE_STEP (1<<TIF_SINGLE_STEP)

0 commit comments

Comments
 (0)