mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 04:25:18 +07:00
5a79859ae0
Remove the 31 bit support in order to reduce maintenance cost and
effectively remove dead code. Since a couple of years there is no
distribution left that comes with a 31 bit kernel.
The 31 bit kernel also has been broken since more than a year before
anybody noticed. In addition I added a removal warning to the kernel
shown at ipl for 5 minutes: a960062e58
("s390: add 31 bit warning
message") which let everybody know about the plan to remove 31 bit
code. We didn't get any response.
Given that the last 31 bit only machine was introduced in 1999 let's
remove the code.
Anybody with 31 bit user space code can still use the compat mode.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
91 lines
1.9 KiB
C
91 lines
1.9 KiB
C
#ifndef _RUNTIME_INSTR_H
|
|
#define _RUNTIME_INSTR_H
|
|
|
|
#define S390_RUNTIME_INSTR_START 0x1
|
|
#define S390_RUNTIME_INSTR_STOP 0x2
|
|
|
|
struct runtime_instr_cb {
|
|
__u64 buf_current;
|
|
__u64 buf_origin;
|
|
__u64 buf_limit;
|
|
|
|
__u32 valid : 1;
|
|
__u32 pstate : 1;
|
|
__u32 pstate_set_buf : 1;
|
|
__u32 home_space : 1;
|
|
__u32 altered : 1;
|
|
__u32 : 3;
|
|
__u32 pstate_sample : 1;
|
|
__u32 sstate_sample : 1;
|
|
__u32 pstate_collect : 1;
|
|
__u32 sstate_collect : 1;
|
|
__u32 : 1;
|
|
__u32 halted_int : 1;
|
|
__u32 int_requested : 1;
|
|
__u32 buffer_full_int : 1;
|
|
__u32 key : 4;
|
|
__u32 : 9;
|
|
__u32 rgs : 3;
|
|
|
|
__u32 mode : 4;
|
|
__u32 next : 1;
|
|
__u32 mae : 1;
|
|
__u32 : 2;
|
|
__u32 call_type_br : 1;
|
|
__u32 return_type_br : 1;
|
|
__u32 other_type_br : 1;
|
|
__u32 bc_other_type : 1;
|
|
__u32 emit : 1;
|
|
__u32 tx_abort : 1;
|
|
__u32 : 2;
|
|
__u32 bp_xn : 1;
|
|
__u32 bp_xt : 1;
|
|
__u32 bp_ti : 1;
|
|
__u32 bp_ni : 1;
|
|
__u32 suppr_y : 1;
|
|
__u32 suppr_z : 1;
|
|
|
|
__u32 dc_miss_extra : 1;
|
|
__u32 lat_lev_ignore : 1;
|
|
__u32 ic_lat_lev : 4;
|
|
__u32 dc_lat_lev : 4;
|
|
|
|
__u64 reserved1;
|
|
__u64 scaling_factor;
|
|
__u64 rsic;
|
|
__u64 reserved2;
|
|
} __packed __aligned(8);
|
|
|
|
extern struct runtime_instr_cb runtime_instr_empty_cb;
|
|
|
|
static inline void load_runtime_instr_cb(struct runtime_instr_cb *cb)
|
|
{
|
|
asm volatile(".insn rsy,0xeb0000000060,0,0,%0" /* LRIC */
|
|
: : "Q" (*cb));
|
|
}
|
|
|
|
static inline void store_runtime_instr_cb(struct runtime_instr_cb *cb)
|
|
{
|
|
asm volatile(".insn rsy,0xeb0000000061,0,0,%0" /* STRIC */
|
|
: "=Q" (*cb) : : "cc");
|
|
}
|
|
|
|
static inline void save_ri_cb(struct runtime_instr_cb *cb_prev)
|
|
{
|
|
if (cb_prev)
|
|
store_runtime_instr_cb(cb_prev);
|
|
}
|
|
|
|
static inline void restore_ri_cb(struct runtime_instr_cb *cb_next,
|
|
struct runtime_instr_cb *cb_prev)
|
|
{
|
|
if (cb_next)
|
|
load_runtime_instr_cb(cb_next);
|
|
else if (cb_prev)
|
|
load_runtime_instr_cb(&runtime_instr_empty_cb);
|
|
}
|
|
|
|
void exit_thread_runtime_instr(void);
|
|
|
|
#endif /* _RUNTIME_INSTR_H */
|