Skip to content

Commit eeb7c41

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fixes from Martin Schwidefsky: "Three bug fixes" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/mm: set change and reference bit on lazy key enablement s390: chp: handle CRW_ERC_INIT for channel-path status change s390/perf: fix problem state detection
2 parents 520eccd + 97ca7bf commit eeb7c41

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

arch/s390/kernel/perf_cpum_sf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ static int perf_push_sample(struct perf_event *event, struct sf_raw_sample *sfr)
998998
psw_bits(regs.psw).ia = sfr->basic.ia;
999999
psw_bits(regs.psw).dat = sfr->basic.T;
10001000
psw_bits(regs.psw).wait = sfr->basic.W;
1001-
psw_bits(regs.psw).per = sfr->basic.P;
1001+
psw_bits(regs.psw).pstate = sfr->basic.P;
10021002
psw_bits(regs.psw).as = sfr->basic.AS;
10031003

10041004
/*

arch/s390/mm/pgtable.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,11 +591,11 @@ void ptep_zap_key(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
591591
unsigned long ptev;
592592
pgste_t pgste;
593593

594-
/* Clear storage key */
594+
/* Clear storage key ACC and F, but set R/C */
595595
preempt_disable();
596596
pgste = pgste_get_lock(ptep);
597-
pgste_val(pgste) &= ~(PGSTE_ACC_BITS | PGSTE_FP_BIT |
598-
PGSTE_GR_BIT | PGSTE_GC_BIT);
597+
pgste_val(pgste) &= ~(PGSTE_ACC_BITS | PGSTE_FP_BIT);
598+
pgste_val(pgste) |= PGSTE_GR_BIT | PGSTE_GC_BIT;
599599
ptev = pte_val(*ptep);
600600
if (!(ptev & _PAGE_INVALID) && (ptev & _PAGE_WRITE))
601601
page_set_storage_key(ptev & PAGE_MASK, PAGE_DEFAULT_KEY, 1);

drivers/s390/cio/chp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ static void chp_process_crw(struct crw *crw0, struct crw *crw1,
559559
chpid.id = crw0->rsid;
560560
switch (crw0->erc) {
561561
case CRW_ERC_IPARM: /* Path has come. */
562+
case CRW_ERC_INIT:
562563
if (!chp_is_registered(chpid))
563564
chp_new(chpid);
564565
chsc_chp_online(chpid);

0 commit comments

Comments
 (0)