* [PATCH] perf: fix invalid bit in diagnostic entry
@ 2018-05-08 7:57 Thomas Richter
2018-05-08 8:42 ` Hendrik Brueckner
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Richter @ 2018-05-08 7:57 UTC (permalink / raw)
To: linux390-list; +Cc: Thomas Richter, stable
The s390 CPU measurement facility sampling mode
supports basic entries and diagnostic entries.
Each entry has a valid bit to indicate the
status of the entry as valid or invalid.
This bit is bit 31 in the diagnostic entry,
but the bit mask definition refers to bit 30.
Fix this by making the reserved field one
bit larger.
Cc: stable@vger.kernel.org # v3.14+
Fixes: 7e75fc3ff4cf ("s390/cpum_sf: Add raw data sampling to support the diagnostic-sampling function")
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
---
arch/s390/include/asm/cpu_mf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/s390/include/asm/cpu_mf.h b/arch/s390/include/asm/cpu_mf.h
index f58d17e9dd65..7093a27520ee 100644
--- a/arch/s390/include/asm/cpu_mf.h
+++ b/arch/s390/include/asm/cpu_mf.h
@@ -113,7 +113,7 @@ struct hws_basic_entry {
struct hws_diag_entry {
unsigned int def:16; /* 0-15 Data Entry Format */
- unsigned int R:14; /* 16-19 and 20-30 reserved */
+ unsigned int R:15; /* 16-19 and 20-30 reserved */
unsigned int I:1; /* 31 entry valid or invalid */
u8 data[]; /* Machine-dependent sample data */
} __packed;
--
2.16.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] perf: fix invalid bit in diagnostic entry
2018-05-08 7:57 [PATCH] perf: fix invalid bit in diagnostic entry Thomas Richter
@ 2018-05-08 8:42 ` Hendrik Brueckner
0 siblings, 0 replies; 2+ messages in thread
From: Hendrik Brueckner @ 2018-05-08 8:42 UTC (permalink / raw)
To: Thomas Richter; +Cc: linux390-list, stable
On Tue, May 08, 2018 at 09:57:29AM +0200, Thomas Richter wrote:
> The s390 CPU measurement facility sampling mode
> supports basic entries and diagnostic entries.
> Each entry has a valid bit to indicate the
> status of the entry as valid or invalid.
>
> This bit is bit 31 in the diagnostic entry,
> but the bit mask definition refers to bit 30.
>
> Fix this by making the reserved field one
> bit larger.
>
> Cc: stable@vger.kernel.org # v3.14+
> Fixes: 7e75fc3ff4cf ("s390/cpum_sf: Add raw data sampling to support the diagnostic-sampling function")
> Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
> Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
^^^^
Please remove "vnet" and push to devel. Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-08 8:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-08 7:57 [PATCH] perf: fix invalid bit in diagnostic entry Thomas Richter
2018-05-08 8:42 ` Hendrik Brueckner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.