Received: by 10.192.165.148 with SMTP id m20csp2523489imm; Sun, 22 Apr 2018 08:49:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Ty70WWLF9/iVLVwJBSdk91r5pKdd3cLOeSdVKDeL23Gk/xhKTN+zb3syqPbAr/dFjXzPd X-Received: by 2002:a17:902:10c:: with SMTP id 12-v6mr17867501plb.252.1524412143246; Sun, 22 Apr 2018 08:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524412143; cv=none; d=google.com; s=arc-20160816; b=cD+47Gs98k8rrlQ+bqtbdStBvQdddKMrsV/F/R5sr5WrGYBs45HSPMvpqQF2v7yh0W cG0xsgD0lHyjEsV5fZzoBS0toIGkbTp07QT3+wU6o901C8LeNrVKZi0RHDl5QdflNnF5 w73i0ZR6JKK5Fs55H1SkDMllv1/Yn5wh4SnQYqVIvrzcLnBj8tyR+hSRtdQHXmUHZnKo Hk1L5O13CnZD5CJ7YmM2gwdfgBfBEqyrZ8sm+Cc3QoT+XPPMnPWYBdKTyngN+mwT0lCQ qTEU1Axgdqdx7apw5C3q63jZX4KECsfQRz0us89DlWRRoUkJqBcGiNOfgWIXegRUZh+l VX6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=SvxqD1FThD+ZRGz+dMtCS2OQ19OUuBpYrxAeF4IJ44Q=; b=jq8XIhuzfcqAmkIXP4BZUfvfwL1vzt+UQZkhst/TDA3KqjpRqKtgZDPz6q6S3VpIfP AIXxUuhdLyHHpYsigBKyHcjGvqMpGZMZb0lRl4ru3ZN6mzwiOyYNZVj9/rRQRlWVkkcH O+4TojCncCs/S92W/mXwoPDOaMHKyXzL4+ndtGBETr7D+qkcyy8qlGT0LH4Ahl/fTPWy owB+Ie2dDMOJxsDMrfA0U0XvjWVHTJkt/5UsFTledgrkI8nA7QohwgtlkAdnZPHonJoC kqtxeyzdGeN8kho3DmvtrOZrXlcIaTMkquXDzwUVXC1SQb8jTcdde5YZSEYrFo6lU6Jw vnlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si2128086pgn.665.2018.04.22.08.48.49; Sun, 22 Apr 2018 08:49:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755133AbeDVPrB (ORCPT + 99 others); Sun, 22 Apr 2018 11:47:01 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48282 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754792AbeDVOCE (ORCPT ); Sun, 22 Apr 2018 10:02:04 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 80DAFCAA; Sun, 22 Apr 2018 14:02:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiko Carstens , Martin Schwidefsky Subject: [PATCH 4.16 172/196] s390: add support for IBM z14 Model ZR1 Date: Sun, 22 Apr 2018 15:53:12 +0200 Message-Id: <20180422135113.146185113@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135104.278511750@linuxfoundation.org> References: <20180422135104.278511750@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heiko Carstens commit 451239eb3d397bd197a79cc3aab943da41ba0905 upstream. Just add the new machine type number to the two places that matter. Cc: # v4.14+ Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky Signed-off-by: Greg Kroah-Hartman --- arch/s390/Kconfig | 8 ++++---- arch/s390/kernel/perf_cpum_cf_events.c | 1 + arch/s390/kernel/setup.c | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -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 --- a/arch/s390/kernel/perf_cpum_cf_events.c +++ b/arch/s390/kernel/perf_cpum_cf_events.c @@ -583,6 +583,7 @@ __init const struct attribute_group **cp model = cpumcf_z13_pmu_event_attr; break; case 0x3906: + case 0x3907: model = cpumcf_z14_pmu_event_attr; break; default: --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -819,6 +819,7 @@ static int __init setup_hwcaps(void) strcpy(elf_platform, "z13"); break; case 0x3906: + case 0x3907: strcpy(elf_platform, "z14"); break; }