Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3310151imu; Sun, 11 Nov 2018 12:06:19 -0800 (PST) X-Google-Smtp-Source: AJdET5dMGg5JJP6ZLo7w8RwCQR21m52k89T2a6fZbcFYv/D53xWq12R0kkm/YDRfWFv0vsUGszzj X-Received: by 2002:a17:902:7c87:: with SMTP id y7-v6mr17375727pll.232.1541966779091; Sun, 11 Nov 2018 12:06:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541966779; cv=none; d=google.com; s=arc-20160816; b=vFYdJWoRKXpdC1b078BjC1MTQLfDdXPh10axEgaEBLNoyEkL4k/vQ7iRSmGt05GTA6 9nQulc3zYA8JyYi074GnqRzYV63e2C+hULMRTWSEyWhJ/mNwp9NU0FvvRJBmeWXjUttM XthdptsIVF/6+7EfiRmkKF/i8YPeYliNvzkZlrTJhW8irk1JbVZnYk30fYOmtf0wdPLm 9JhLaNGAPLiPdHFxPQ7mQg+4kZOEsj9nwy+b7DUaOq9twCU2srwRjxf98kampn4fS+TV mIvb2FTu3doKsFuDByHXERrR/almeOZFW4AR8NpyXlpJpftCShlaAEaltKfAb9NLYXQA 5Gcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=dq/4yEFqkpOUoCnqecePtge5urfSdgZ6fcN+Cj2F0OA=; b=U5+1ISrY1npV9K9/TcrIWLeOqTpgzL31hj8/Y3T+p290TBp2sxWL4Q69tf5o+l2PGU W9s5BGAzULsz1BlPQx708TXl8jQMIJtkaoCFnjzyHiSbj/2k0nYATLAATpj+X46XvdfR HXJkBGNk3LVEaGJ/wyXb4Z48vG6LX8ecfiMgpFmih8xp98xrmZdPy2jL1PKGxJJeggAj mLruZUBEz/KnnAjlC0DUCmFSju2KIUwl4KCs98Izs+CiRWlkVQFhXrtQazN6GjebVevN hPxvXAPTlUXw0Y2aL/aWesS7M2vEXAgSHhFPAw+BHQMbDqxod3N9dsxVvZNbmvyYZN3l PJbA== 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 q15si14848221pgm.420.2018.11.11.12.06.03; Sun, 11 Nov 2018 12:06:19 -0800 (PST) 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 S1731286AbeKLFzE (ORCPT + 99 others); Mon, 12 Nov 2018 00:55:04 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:51826 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726992AbeKLFzD (ORCPT ); Mon, 12 Nov 2018 00:55:03 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvtC-0000l6-OD; Sun, 11 Nov 2018 19:59:22 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsO-0001P0-FO; Sun, 11 Nov 2018 19:58:32 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Hendrik Brueckner" , "Thomas Richter" , "Martin Schwidefsky" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 037/366] s390/cpum_sf: Add data entry sizes to sampling trailer entry In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Richter commit 77715b7ddb446bd39a06f3376e85f4bb95b29bb8 upstream. 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: Ben Hutchings --- 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 @@ -134,7 +134,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 */ };