Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1111034imm; Wed, 1 Aug 2018 10:21:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcrWwZPt+vhaVmRM4TYmbJTbloJTZClmnogRkZrAhnpywT9ZbN/b6XCvW3EQMlZh3fOnDQU X-Received: by 2002:a62:d693:: with SMTP id a19-v6mr27460660pfl.248.1533144086453; Wed, 01 Aug 2018 10:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144086; cv=none; d=google.com; s=arc-20160816; b=pvkJohA9sC2r+HESodRGDI1VXwKB73fVJJRy/13JaJq3PG9RDlCrgF6OUpgJvbkiY1 0qfaF/PXBjBta1qGys4s506lz/rBm4CuVgiT1LNoP1Sjbmh9sEnJJadm2QY3YsRdgm4I JM1MEbzrR+7vBZ8Krd1QXnwE6CcibejXgpw7jvXJJlUdrzq/rnupVCRNwX3iPV5iA4gB kLmL8y3PItVE7Ff/cctpbEq7RrC1gW9L9GUkypt7+kqwzsRPbsJsaQj8JbsTGdONOdai 5XGSTlGaMboKtF1I8GB91wtYyKRPtdTwHwZTpp7dVYO4uvLfblkOvlDAoGAGHGYm40mc oRLQ== 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=QoWvDDYPifQlDGvzlauRae/vGJZIVt0xSqrbAWkrg1Y=; b=HNP5TMLXNq6Nf33U/Nm/Cm9ga75B3UC62/iNltrAl34+lLMiFaVGd3Mygo7bDBLBtf R37FZgy9ekU1vhkdOvWg0bp9rK7UjHNTCw6cOW8p9Gup2Mi6WQb4vDHcEnH7oMtBgaZc KZmaeSfFIt0vsExh16b8g9yuMS1/kifmj76rzKMj77WO4ZcUtV7EjCWI2j40uDLW9CuJ BEvOpaLZZSpNMYzzIWnit+65oZbSCnH/4xlT00eJyvKB6o787N+xPhgwz4NNVfv+R1BW AYfAw74to7Qe+k2/79fpjSEsVJWtciuj7FzsoU3rvfTgutZmGv5S+pr+PokbNiq6LZBm DlTA== 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 y63-v6si15978043pgb.5.2018.08.01.10.21.12; Wed, 01 Aug 2018 10:21:26 -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 S2405214AbeHATGP (ORCPT + 99 others); Wed, 1 Aug 2018 15:06:15 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48256 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403884AbeHATGP (ORCPT ); Wed, 1 Aug 2018 15:06:15 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 948B9CD1; Wed, 1 Aug 2018 17:19:34 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Richter , Hendrik Brueckner , Martin Schwidefsky , Sasha Levin Subject: [PATCH 4.14 157/246] s390/cpum_sf: Add data entry sizes to sampling trailer entry Date: Wed, 1 Aug 2018 18:51:07 +0200 Message-Id: <20180801165019.240121159@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Richter [ Upstream commit 77715b7ddb446bd39a06f3376e85f4bb95b29bb8 ] The CPU Measurement sampling facility creates a trailer entry for each Sample-Data-Block of stored samples. The trailer entry contains the sizes (in bytes) of the stored sampling types: - basic-sampling data entry size - diagnostic-sampling data entry size Both sizes are 2 bytes long. This patch changes the trailer entry definition to reflect this. Fixes: fcc77f507333 ("s390/cpum_sf: Atomically reset trailer entry fields of sample-data-blocks") Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Signed-off-by: Martin Schwidefsky Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/s390/include/asm/cpu_mf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/arch/s390/include/asm/cpu_mf.h +++ b/arch/s390/include/asm/cpu_mf.h @@ -132,7 +132,9 @@ struct hws_trailer_entry { unsigned int f:1; /* 0 - Block Full Indicator */ unsigned int a:1; /* 1 - Alert request control */ unsigned int t:1; /* 2 - Timestamp format */ - unsigned long long:61; /* 3 - 63: Reserved */ + unsigned int :29; /* 3 - 31: Reserved */ + unsigned int bsdes:16; /* 32-47: size of basic SDE */ + unsigned int dsdes:16; /* 48-63: size of diagnostic SDE */ }; unsigned long long flags; /* 0 - 63: All indicators */ };