Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bus: arm-ccn: Fix node->XP config conversion

Events defined as watchpoints on nodes must have their config values
converted so that they apply to the respective node's XP. The
function setting new values was using wrong mask for the "port" field,
resulting in corrupted value. Fixed now.

Cc: stable@vger.kernel.org # 3.17+
Signed-off-by: Pawel Moll <pawel.moll@arm.com>

+1 -1
+1 -1
drivers/bus/arm-ccn.c
··· 212 212 213 213 static void arm_ccn_pmu_config_set(u64 *config, u32 node_xp, u32 type, u32 port) 214 214 { 215 - *config &= ~((0xff << 0) | (0xff << 8) | (0xff << 24)); 215 + *config &= ~((0xff << 0) | (0xff << 8) | (0x3 << 24)); 216 216 *config |= (node_xp << 0) | (type << 8) | (port << 24); 217 217 } 218 218