From: Alexander Shishkin Date: Fri, 3 May 2019 08:44:49 +0000 (+0300) Subject: intel_th: msu: Correct the block wrap detection X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~2984^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4840572d3d7e66d7b55d3fc3b0f52711fd172eb8;p=mirror_ubuntu-focal-kernel.git intel_th: msu: Correct the block wrap detection In multi window mode the MSU will set "window wrap" bit to indicate block wrapping as well. Take this into account when checking data blocks. Signed-off-by: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwtracing/intel_th/msu.h b/drivers/hwtracing/intel_th/msu.h index e8cb819a3804..574c16004cb2 100644 --- a/drivers/hwtracing/intel_th/msu.h +++ b/drivers/hwtracing/intel_th/msu.h @@ -95,7 +95,7 @@ static inline unsigned long msc_data_sz(struct msc_block_desc *bdesc) static inline bool msc_block_wrapped(struct msc_block_desc *bdesc) { - if (bdesc->hw_tag & MSC_HW_TAG_BLOCKWRAP) + if (bdesc->hw_tag & (MSC_HW_TAG_BLOCKWRAP | MSC_HW_TAG_WINWRAP)) return true; return false;