Skip to contentSkip to conversation

dpaa2: do not log messages if bus not present

PATCH Applied Stephen Hemminger 2 participants 2 messages Apr 25, 2018 – Apr 26, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dpaa2: do not log messages if bus not present

A typical distribution will compile with default config and all buses enabled. Therefore every driver should be silent and not log anything for this normal case.

This patch gets rid of these messages when running on basic x86 environment such as bare metal or VM.

fslmc: DPAA2: DPRC not available
fslmc: FSLMC Bus Not Available. Skipping

---
v2 - typo in previous patch

 drivers/bus/fslmc/fslmc_bus.c  | 2 +-
 drivers/bus/fslmc/fslmc_vfio.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/bus/fslmc/fslmc_bus.c +1 -1
index d0b32611fe08..943c01b2874d 100644
@@ -255,7 +255,7 @@ rte_fslmc_scan(void)
 	/* Remove all devices in the list */
 	cleanup_fslmc_device_list();
 scan_fail:
-	DPAA2_BUS_INFO("FSLMC Bus Not Available. Skipping");
+	DPAA2_BUS_DEBUG("FSLMC Bus Not Available. Skipping");
 	/* Irrespective of failure, scan only return success */
 	return 0;
 }
drivers/bus/fslmc/fslmc_vfio.c +1 -1
index 675d160ba3a8..749d92dc3fc9 100644
@@ -74,7 +74,7 @@ fslmc_get_container_group(int *groupid)
 	if (!g_container) {
 		container = getenv("DPRC");
 		if (container == NULL) {
-			DPAA2_BUS_INFO("DPAA2: DPRC not available");
+			DPAA2_BUS_DEBUG("DPAA2: DPRC not available");
 			return -EINVAL;
 		}
 
Signature · 1 line
2.17.0
#1 lore raw

26/04/2018 01:16, Stephen Hemminger:

Quoted 11 lines

A typical distribution will compile with default config and all buses enabled. Therefore every driver should be silent and not log anything for this normal case.

This patch gets rid of these messages when running on basic x86 environment such as bare metal or VM.

fslmc: DPAA2: DPRC not available
fslmc: FSLMC Bus Not Available. Skipping

Applied, thanks