Skip to content

Commit

Permalink
Updates MMIO to use FAPI_DBG
Browse files Browse the repository at this point in the history
FAPI_INF statements cause a lot of clutter for lab tools
that need to use -debug6.i. Moving to FAPI_DBG allows
for less cluttered print statements.

Change-Id: I59c2a8a7a60fb7520ec0e2eaaef343bc3ab9aaec
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/90836
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Dev-Ready: STEPHEN GLANCY <sglancy@us.ibm.com>
Reviewed-by: Benjamin Gass <bgass@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Reviewed-by: ANDRE A MARIN <aamarin@us.ibm.com>
Reviewed-by: Jennifer A Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/90855
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
  • Loading branch information
sglancy6 authored and dcrowell77 committed Feb 13, 2020
1 parent be69d0c commit c526308
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/import/chips/p9/procedures/hwp/nest/p9a_get_mmio.C
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2018,2019 */
/* Contributors Listed Below - COPYRIGHT 2018,2020 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -82,7 +82,7 @@ fapi2::ReturnCode p9a_get_mmio(const fapi2::Target<fapi2::TARGET_TYPE_OCMB_CHIP>
}

FAPI_TRY(addOMIBase(i_target, l_addr));
FAPI_INF("Read address: 0x%lX transaction size: %d", l_addr, l_tsize);
FAPI_DBG("Read address: 0x%lX transaction size: %d", l_addr, l_tsize);

l_proc_target = i_target.getParent<fapi2::TARGET_TYPE_OMI>().getParent<fapi2::TARGET_TYPE_PROC_CHIP>();

Expand Down Expand Up @@ -120,7 +120,7 @@ fapi2::ReturnCode p9a_get_mmio(const fapi2::Target<fapi2::TARGET_TYPE_OCMB_CHIP>
sprintf(&l_hexdata[l_i * 2], "%02X", o_data[l_i]);
}

FAPI_INF("Read data: 0x%s", l_hexdata);
FAPI_DBG("Read data: 0x%s", l_hexdata);

fapi_try_exit:

Expand Down
6 changes: 3 additions & 3 deletions src/import/chips/p9/procedures/hwp/nest/p9a_put_mmio.C
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2018,2019 */
/* Contributors Listed Below - COPYRIGHT 2018,2020 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -87,8 +87,8 @@ fapi2::ReturnCode p9a_put_mmio(const fapi2::Target<fapi2::TARGET_TYPE_OCMB_CHIP>
}

FAPI_TRY(addOMIBase(i_target, l_addr));
FAPI_INF("Write address: %lX", l_addr);
FAPI_INF("Write data: %s", l_hexdata);
FAPI_DBG("Write address: %lX", l_addr);
FAPI_DBG("Write data: %s", l_hexdata);

l_proc_target = i_target.getParent<fapi2::TARGET_TYPE_OMI>().getParent<fapi2::TARGET_TYPE_PROC_CHIP>();

Expand Down

0 comments on commit c526308

Please sign in to comment.