]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
s390: add support for IBM z14 Model ZR1
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 13 Apr 2018 12:04:24 +0000 (14:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:43:08 +0000 (09:43 +0200)
commit 451239eb3d397bd197a79cc3aab943da41ba0905 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/Kconfig
arch/s390/kernel/perf_cpum_cf_events.c
arch/s390/kernel/setup.c

index eaee7087886fa290a3b4ca0fbdf379ebf62ee840..6e91e0d422ea508a02286955e8e3fada419cf063 100644 (file)
@@ -289,12 +289,12 @@ config MARCH_Z13
          older machines.
 
 config MARCH_Z14
-       bool "IBM z14"
+       bool "IBM z14 ZR1 and z14"
        select HAVE_MARCH_Z14_FEATURES
        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
 
index c5bc3f209652eca50763f1f3ca4a03f7aa373b5c..5ee27dc9a10cf454f08c9430935aa1363121a608 100644 (file)
@@ -583,6 +583,7 @@ __init const struct attribute_group **cpumf_cf_event_group(void)
                model = cpumcf_z13_pmu_event_attr;
                break;
        case 0x3906:
+       case 0x3907:
                model = cpumcf_z14_pmu_event_attr;
                break;
        default:
index a6a91f01a17a3846fe9ae87e0dc26834dca5fee3..ce5ff4c4d4353ae97bdd0c541df5083898d6819f 100644 (file)
@@ -819,6 +819,7 @@ static int __init setup_hwcaps(void)
                strcpy(elf_platform, "z13");
                break;
        case 0x3906:
+       case 0x3907:
                strcpy(elf_platform, "z14");
                break;
        }