mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 03:04:35 +07:00
b3d6524ff7
Pull s390 updates from Martin Schwidefsky: - The remaining patches for the z13 machine support: kernel build option for z13, the cache synonym avoidance, SMT support, compare-and-delay for spinloops and the CES5S crypto adapater. - The ftrace support for function tracing with the gcc hotpatch option. This touches common code Makefiles, Steven is ok with the changes. - The hypfs file system gets an extension to access diagnose 0x0c data in user space for performance analysis for Linux running under z/VM. - The iucv hvc console gets wildcard spport for the user id filtering. - The cacheinfo code is converted to use the generic infrastructure. - Cleanup and bug fixes. * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (42 commits) s390/process: free vx save area when releasing tasks s390/hypfs: Eliminate hypfs interval s390/hypfs: Add diagnose 0c support s390/cacheinfo: don't use smp_processor_id() in preemptible context s390/zcrypt: fixed domain scanning problem (again) s390/smp: increase maximum value of NR_CPUS to 512 s390/jump label: use different nop instruction s390/jump label: add sanity checks s390/mm: correct missing space when reporting user process faults s390/dasd: cleanup profiling s390/dasd: add locking for global_profile access s390/ftrace: hotpatch support for function tracing ftrace: let notrace function attribute disable hotpatching if necessary ftrace: allow architectures to specify ftrace compile options s390: reintroduce diag 44 calls for cpu_relax() s390/zcrypt: Add support for new crypto express (CEX5S) adapter. s390/zcrypt: Number of supported ap domains is not retrievable. s390/spinlock: add compare-and-delay to lock wait loops s390/tape: remove redundant if statement s390/hvc_iucv: add simple wildcard matches to the iucv allow filter ...
58 lines
1.5 KiB
C
58 lines
1.5 KiB
C
#ifndef __S390_ASM_SIGP_H
|
|
#define __S390_ASM_SIGP_H
|
|
|
|
/* SIGP order codes */
|
|
#define SIGP_SENSE 1
|
|
#define SIGP_EXTERNAL_CALL 2
|
|
#define SIGP_EMERGENCY_SIGNAL 3
|
|
#define SIGP_START 4
|
|
#define SIGP_STOP 5
|
|
#define SIGP_RESTART 6
|
|
#define SIGP_STOP_AND_STORE_STATUS 9
|
|
#define SIGP_INITIAL_CPU_RESET 11
|
|
#define SIGP_CPU_RESET 12
|
|
#define SIGP_SET_PREFIX 13
|
|
#define SIGP_STORE_STATUS_AT_ADDRESS 14
|
|
#define SIGP_SET_ARCHITECTURE 18
|
|
#define SIGP_COND_EMERGENCY_SIGNAL 19
|
|
#define SIGP_SENSE_RUNNING 21
|
|
#define SIGP_SET_MULTI_THREADING 22
|
|
#define SIGP_STORE_ADDITIONAL_STATUS 23
|
|
|
|
/* SIGP condition codes */
|
|
#define SIGP_CC_ORDER_CODE_ACCEPTED 0
|
|
#define SIGP_CC_STATUS_STORED 1
|
|
#define SIGP_CC_BUSY 2
|
|
#define SIGP_CC_NOT_OPERATIONAL 3
|
|
|
|
/* SIGP cpu status bits */
|
|
|
|
#define SIGP_STATUS_CHECK_STOP 0x00000010UL
|
|
#define SIGP_STATUS_STOPPED 0x00000040UL
|
|
#define SIGP_STATUS_EXT_CALL_PENDING 0x00000080UL
|
|
#define SIGP_STATUS_INVALID_PARAMETER 0x00000100UL
|
|
#define SIGP_STATUS_INCORRECT_STATE 0x00000200UL
|
|
#define SIGP_STATUS_NOT_RUNNING 0x00000400UL
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
static inline int __pcpu_sigp(u16 addr, u8 order, unsigned long parm,
|
|
u32 *status)
|
|
{
|
|
register unsigned long reg1 asm ("1") = parm;
|
|
int cc;
|
|
|
|
asm volatile(
|
|
" sigp %1,%2,0(%3)\n"
|
|
" ipm %0\n"
|
|
" srl %0,28\n"
|
|
: "=d" (cc), "+d" (reg1) : "d" (addr), "a" (order) : "cc");
|
|
if (status && cc == 1)
|
|
*status = reg1;
|
|
return cc;
|
|
}
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* __S390_ASM_SIGP_H */
|