Skip to contentSkip to conversation

pnv/xive2: Quiet down some error messages

PATCH Applied Frederic Barrat 3 participants 3 messages May 31, 2023 – Jun 1, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pnv/xive2: Quiet down some error messages

When dumping the END and NVP tables ("info pic" from the HMP) on the P10 model, we're likely to be flooded with error messages such as:

XIVE[0] - VST: invalid NVPT entry f33800 !?

The error is printed when finding an empty VSD in an indirect table (thus END and NVP tables with skiboot), which is going to happen when dumping the xive state. So let's tune down those messages. They can be re-enabled easily with a macro if needed.

Those errors were already hidden on xive/P9, for the same reason.

---
 hw/intc/pnv_xive2.c | 4 ++++
 1 file changed, 4 insertions(+)
hw/intc/pnv_xive2.c +4 -0
index c80316657a..397679390c 100644
@@ -163,7 +163,9 @@ static uint64_t pnv_xive2_vst_addr_indirect(PnvXive2 *xive, uint32_t type,
     ldq_be_dma(&address_space_memory, vsd_addr, &vsd, MEMTXATTRS_UNSPECIFIED);
 
     if (!(vsd & VSD_ADDRESS_MASK)) {
+#ifdef XIVE2_DEBUG
         xive2_error(xive, "VST: invalid %s entry %x !?", info->name, idx);
+#endif
         return 0;
     }
 
@@ -185,7 +187,9 @@ static uint64_t pnv_xive2_vst_addr_indirect(PnvXive2 *xive, uint32_t type,
                    MEMTXATTRS_UNSPECIFIED);
 
         if (!(vsd & VSD_ADDRESS_MASK)) {
+#ifdef XIVE2_DEBUG
             xive2_error(xive, "VST: invalid %s entry %x !?", info->name, idx);
+#endif
             return 0;
         }
 
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Frederic Barrat

When dumping the END and NVP tables ("info pic" from the HMP) on the P10 model, we're likely to be flooded with error messages such as:

   XIVE[0] - VST: invalid NVPT entry f33800 !?

The error is printed when finding an empty VSD in an indirect table (thus END and NVP tables with skiboot), which is going to happen when dumping the xive state. So let's tune down those messages. They can be re-enabled easily with a macro if needed.

Those errors were already hidden on xive/P9, for the same reason.

yes.

Quoted 1 line

Thanks,

C.

Quoted 28 lines
---
  hw/intc/pnv_xive2.c | 4 ++++
  1 file changed, 4 insertions(+)
hw/intc/pnv_xive2.c +4 -0
index c80316657a..397679390c 100644
@@ -163,7 +163,9 @@ static uint64_t pnv_xive2_vst_addr_indirect(PnvXive2 *xive, uint32_t type,
      ldq_be_dma(&address_space_memory, vsd_addr, &vsd, MEMTXATTRS_UNSPECIFIED);
 
      if (!(vsd & VSD_ADDRESS_MASK)) {
+#ifdef XIVE2_DEBUG
          xive2_error(xive, "VST: invalid %s entry %x !?", info->name, idx);
+#endif
          return 0;
      }
 
@@ -185,7 +187,9 @@ static uint64_t pnv_xive2_vst_addr_indirect(PnvXive2 *xive, uint32_t type,
                     MEMTXATTRS_UNSPECIFIED);
 
          if (!(vsd & VSD_ADDRESS_MASK)) {
+#ifdef XIVE2_DEBUG
              xive2_error(xive, "VST: invalid %s entry %x !?", info->name, idx);
+#endif
              return 0;
          }
 
#2 lore raw
In reply to Frederic Barrat

Queued in gitlab.com/danielhb/qemu/tree/ppc-next. Thanks,

Daniel

Quoted 41 lines · Frederic Barrat

When dumping the END and NVP tables ("info pic" from the HMP) on the P10 model, we're likely to be flooded with error messages such as:

   XIVE[0] - VST: invalid NVPT entry f33800 !?

The error is printed when finding an empty VSD in an indirect table (thus END and NVP tables with skiboot), which is going to happen when dumping the xive state. So let's tune down those messages. They can be re-enabled easily with a macro if needed.

Those errors were already hidden on xive/P9, for the same reason.

---
  hw/intc/pnv_xive2.c | 4 ++++
  1 file changed, 4 insertions(+)
hw/intc/pnv_xive2.c +4 -0
index c80316657a..397679390c 100644
@@ -163,7 +163,9 @@ static uint64_t pnv_xive2_vst_addr_indirect(PnvXive2 *xive, uint32_t type,
      ldq_be_dma(&address_space_memory, vsd_addr, &vsd, MEMTXATTRS_UNSPECIFIED);
 
      if (!(vsd & VSD_ADDRESS_MASK)) {
+#ifdef XIVE2_DEBUG
          xive2_error(xive, "VST: invalid %s entry %x !?", info->name, idx);
+#endif
          return 0;
      }
 
@@ -185,7 +187,9 @@ static uint64_t pnv_xive2_vst_addr_indirect(PnvXive2 *xive, uint32_t type,
                     MEMTXATTRS_UNSPECIFIED);
 
          if (!(vsd & VSD_ADDRESS_MASK)) {
+#ifdef XIVE2_DEBUG
              xive2_error(xive, "VST: invalid %s entry %x !?", info->name, idx);
+#endif
              return 0;
          }