Browse Source

s390: add support for IBM z14 Model ZR1

Just add the new machine type number to the two places that matter.

Cc: <stable@vger.kernel.org> # v4.14+
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Heiko Carstens 7 years ago
parent
commit
451239eb3d
3 changed files with 6 additions and 4 deletions
  1. 4 4
      arch/s390/Kconfig
  2. 1 0
      arch/s390/kernel/perf_cpum_cf_events.c
  3. 1 0
      arch/s390/kernel/setup.c

+ 4 - 4
arch/s390/Kconfig

@@ -286,12 +286,12 @@ config MARCH_Z13
 	  older machines.
 	  older machines.
 
 
 config MARCH_Z14
 config MARCH_Z14
-	bool "IBM z14"
+	bool "IBM z14 ZR1 and z14"
 	select HAVE_MARCH_Z14_FEATURES
 	select HAVE_MARCH_Z14_FEATURES
 	help
 	help
-	  Select this to enable optimizations for IBM z14 (3906 series).
-	  The kernel will be slightly faster but will not work on older
-	  machines.
+	  Select this to enable optimizations for IBM z14 ZR1 and z14 (3907
+	  and 3906 series). The kernel will be slightly faster but will not
+	  work on older machines.
 
 
 endchoice
 endchoice
 
 

+ 1 - 0
arch/s390/kernel/perf_cpum_cf_events.c

@@ -583,6 +583,7 @@ __init const struct attribute_group **cpumf_cf_event_group(void)
 		model = cpumcf_z13_pmu_event_attr;
 		model = cpumcf_z13_pmu_event_attr;
 		break;
 		break;
 	case 0x3906:
 	case 0x3906:
+	case 0x3907:
 		model = cpumcf_z14_pmu_event_attr;
 		model = cpumcf_z14_pmu_event_attr;
 		break;
 		break;
 	default:
 	default:

+ 1 - 0
arch/s390/kernel/setup.c

@@ -821,6 +821,7 @@ static int __init setup_hwcaps(void)
 		strcpy(elf_platform, "z13");
 		strcpy(elf_platform, "z13");
 		break;
 		break;
 	case 0x3906:
 	case 0x3906:
+	case 0x3907:
 		strcpy(elf_platform, "z14");
 		strcpy(elf_platform, "z14");
 		break;
 		break;
 	}
 	}