# git rev-parse -q --verify e310e405015f48d18684d89aa27f8c7536b51268^{commit} e310e405015f48d18684d89aa27f8c7536b51268 already have revision, skipping fetch # git checkout -q -f -B kisskb e310e405015f48d18684d89aa27f8c7536b51268 # git clean -qxdf # < git log -1 # commit e310e405015f48d18684d89aa27f8c7536b51268 # Author: Mahesh Salgaonkar # Date: Sun Aug 19 22:38:32 2018 +0530 # # powerpc/pseries: Dump the SLB contents on SLB MCE errors. # # If we get a machine check exceptions due to SLB errors then dump the # current SLB contents which will be very much helpful in debugging the # root cause of SLB errors. Introduce an exclusive buffer per cpu to hold # faulty SLB entries. In real mode mce handler saves the old SLB contents # into this buffer accessible through paca and print it out later in virtual # mode. # # With this patch the console will log SLB contents like below on SLB MCE # errors: # # [ 507.297236] SLB contents of cpu 0x1 # [ 507.297237] Last SLB entry inserted at slot 16 # [ 507.297238] 00 c000000008000000 400ea1b217000500 # [ 507.297239] 1T ESID= c00000 VSID= ea1b217 LLP:100 # [ 507.297240] 01 d000000008000000 400d43642f000510 # [ 507.297242] 1T ESID= d00000 VSID= d43642f LLP:110 # [ 507.297243] 11 f000000008000000 400a86c85f000500 # [ 507.297244] 1T ESID= f00000 VSID= a86c85f LLP:100 # [ 507.297245] 12 00007f0008000000 4008119624000d90 # [ 507.297246] 1T ESID= 7f VSID= 8119624 LLP:110 # [ 507.297247] 13 0000000018000000 00092885f5150d90 # [ 507.297247] 256M ESID= 1 VSID= 92885f5150 LLP:110 # [ 507.297248] 14 0000010008000000 4009e7cb50000d90 # [ 507.297249] 1T ESID= 1 VSID= 9e7cb50 LLP:110 # [ 507.297250] 15 d000000008000000 400d43642f000510 # [ 507.297251] 1T ESID= d00000 VSID= d43642f LLP:110 # [ 507.297252] 16 d000000008000000 400d43642f000510 # [ 507.297253] 1T ESID= d00000 VSID= d43642f LLP:110 # [ 507.297253] ---------------------------------- # [ 507.297254] SLB cache ptr value = 3 # [ 507.297254] Valid SLB cache entries: # [ 507.297255] 00 EA[0-35]= 7f000 # [ 507.297256] 01 EA[0-35]= 1 # [ 507.297257] 02 EA[0-35]= 1000 # [ 507.297257] Rest of SLB cache entries: # [ 507.297258] 03 EA[0-35]= 7f000 # [ 507.297258] 04 EA[0-35]= 1 # [ 507.297259] 05 EA[0-35]= 1000 # [ 507.297260] 06 EA[0-35]= 12 # [ 507.297260] 07 EA[0-35]= 7f000 # # Suggested-by: Aneesh Kumar K.V # Suggested-by: Michael Ellerman # Signed-off-by: Mahesh Salgaonkar # Reviewed-by: Nicholas Piggin # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 e310e405015f48d18684d89aa27f8c7536b51268 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ps3_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ps3_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ps3_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. /kisskb/src/kernel/rcu/srcutree.c: In function 'init_srcu_struct_fields': /kisskb/src/kernel/rcu/srcutree.c:146:32: warning: 'levelspread[]' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/rcu/srcutree.c:94:6: note: 'levelspread[]' was declared here /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/ipc/shm.c: In function 'ksys_shmdt': /kisskb/src/ipc/shm.c:1648:59: warning: 'file' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. /kisskb/src/net/bluetooth/hidp/core.c: In function 'hidp_connection_add': /kisskb/src/net/bluetooth/hidp/core.c:1378:18: warning: 'session' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/lib/mpi/mpicoder.c: In function 'mpi_read_raw_from_sgl': /kisskb/src/lib/mpi/mpicoder.c:352:8: warning: 'buff' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:339:21: note: 'pdeo' was declared here /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/lib/rhashtable.c: In function 'rht_deferred_worker': /kisskb/src/lib/rhashtable.c:269:2: warning: 'next' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/lib/rhashtable.c:234:28: note: 'next' was declared here /kisskb/src/net/core/gen_stats.c: In function '__gnet_stats_copy_basic': /kisskb/src/net/core/gen_stats.c:149:19: warning: 'seq' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/core/flow_dissector.c: In function '__skb_flow_dissect': /kisskb/src/net/core/flow_dissector.c:789:7: warning: 'vlan' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/core/dev.c: In function 'validate_xmit_skb_list': /kisskb/src/net/core/dev.c:3161:15: warning: 'tail' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/mac80211/mlme.c: In function 'ieee80211_rx_mgmt_beacon': /kisskb/src/net/mac80211/mlme.c:1353:3: warning: 'pwr_level_cisco' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/mac80211/mlme.c:1310:6: note: 'pwr_level_cisco' was declared here /kisskb/src/net/mac80211/tx.c: In function 'ieee80211_build_hdr': /kisskb/src/net/mac80211/tx.c:2468:27: warning: 'chanctx_conf' may be used uninitialized in this function [-Wuninitialized] Completed OK # rm -rf /kisskb/build/powerpc-next_ps3_defconfig_powerpc # Build took: 0:01:10.735955