summaryrefslogtreecommitdiffstats
path: root/src/usr/xscom
diff options
context:
space:
mode:
authorThi Tran <thi@us.ibm.com>2011-11-11 11:01:41 -0600
committerThi N. Tran <thi@us.ibm.com>2011-11-11 12:13:28 -0600
commit1595ed5f5602346579dba1f8714d3092f50e928f (patch)
tree2d58a72a8936ff6eb87eab8e3418b76a536f9b32 /src/usr/xscom
parentc4c52d57c809bc9b6c8a94a8d9fb66489f246a18 (diff)
downloadtalos-hostboot-1595ed5f5602346579dba1f8714d3092f50e928f.tar.gz
talos-hostboot-1595ed5f5602346579dba1f8714d3092f50e928f.zip
Modifications to run Sprint 6 code on VBU
Change-Id: I28b4c114bdfb00a8f252bc4ce12a725f292c266b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/495 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/xscom')
-rw-r--r--src/usr/xscom/xscom.C6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/xscom/xscom.C b/src/usr/xscom/xscom.C
index 0f84b1da0..adbb87ac7 100644
--- a/src/usr/xscom/xscom.C
+++ b/src/usr/xscom/xscom.C
@@ -475,6 +475,11 @@ errlHndl_t xscomPerformOp(DeviceFW::OperationType i_opType,
// Get the offset
uint64_t l_offset = l_mmioAddr.offset();
+ TRACDCOMP(g_trac_xscom, "xscomPerformOp: OpType 0x%.16llX, Address 0x%llX, l_virtAddr+l_offset %p",
+ static_cast<uint64_t>(i_opType),
+ l_addr,
+ l_virtAddr + l_offset);
+
// Keep MMIO access until XSCOM successfully done or error
uint64_t l_data = 0;
do
@@ -485,6 +490,7 @@ errlHndl_t xscomPerformOp(DeviceFW::OperationType i_opType,
// The dereferencing should handle Cache inhibited internally
// Use local variable and memcpy to avoid unaligned memory access
l_data = 0;
+
if (i_opType == DeviceFW::READ)
{
l_data = *(l_virtAddr + l_offset);
OpenPOWER on IntegriCloud