Skip to content

Commit cc1807b

Browse files
committed
Merge tag 's390-6.0-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 updates from Alexander Gordeev: - Fix a KVM crash on z12 and older machines caused by a wrong assumption that Query AP Configuration Information is always available. - Lower severity of excessive Hypervisor filesystem error messages when booting under KVM. * tag 's390-6.0-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/ap: fix crash on older machines based on QCI info missing s390/hypfs: avoid error message under KVM
2 parents 32dd68f + 0fef40b commit cc1807b

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

arch/s390/hypfs/hypfs_diag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ __init int hypfs_diag_init(void)
437437
int rc;
438438

439439
if (diag204_probe()) {
440-
pr_err("The hardware system does not support hypfs\n");
440+
pr_info("The hardware system does not support hypfs\n");
441441
return -ENODATA;
442442
}
443443

arch/s390/hypfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,9 @@ static int __init hypfs_init(void)
496496
hypfs_vm_exit();
497497
fail_hypfs_diag_exit:
498498
hypfs_diag_exit();
499+
pr_err("Initialization of hypfs failed with rc=%i\n", rc);
499500
fail_dbfs_exit:
500501
hypfs_dbfs_exit();
501-
pr_err("Initialization of hypfs failed with rc=%i\n", rc);
502502
return rc;
503503
}
504504
device_initcall(hypfs_init)

drivers/s390/crypto/ap_bus.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,6 +2086,9 @@ static inline void ap_scan_adapter(int ap)
20862086
*/
20872087
static bool ap_get_configuration(void)
20882088
{
2089+
if (!ap_qci_info) /* QCI not supported */
2090+
return false;
2091+
20892092
memcpy(ap_qci_info_old, ap_qci_info, sizeof(*ap_qci_info));
20902093
ap_fetch_qci_info(ap_qci_info);
20912094

drivers/s390/crypto/ap_bus.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,16 @@ struct ap_driver {
148148
/*
149149
* Called at the start of the ap bus scan function when
150150
* the crypto config information (qci) has changed.
151+
* This callback is not invoked if there is no AP
152+
* QCI support available.
151153
*/
152154
void (*on_config_changed)(struct ap_config_info *new_config_info,
153155
struct ap_config_info *old_config_info);
154156
/*
155157
* Called at the end of the ap bus scan function when
156158
* the crypto config information (qci) has changed.
159+
* This callback is not invoked if there is no AP
160+
* QCI support available.
157161
*/
158162
void (*on_scan_complete)(struct ap_config_info *new_config_info,
159163
struct ap_config_info *old_config_info);

0 commit comments

Comments
 (0)