|
@@ -89,26 +89,26 @@ static int pseries_eeh_init(void)
|
|
|
* of domain/bus/slot/function for EEH RTAS operations.
|
|
|
*/
|
|
|
if (ibm_set_eeh_option == RTAS_UNKNOWN_SERVICE) {
|
|
|
- pr_warning("%s: RTAS service <ibm,set-eeh-option> invalid\n",
|
|
|
+ pr_warn("%s: RTAS service <ibm,set-eeh-option> invalid\n",
|
|
|
__func__);
|
|
|
return -EINVAL;
|
|
|
} else if (ibm_set_slot_reset == RTAS_UNKNOWN_SERVICE) {
|
|
|
- pr_warning("%s: RTAS service <ibm,set-slot-reset> invalid\n",
|
|
|
+ pr_warn("%s: RTAS service <ibm,set-slot-reset> invalid\n",
|
|
|
__func__);
|
|
|
return -EINVAL;
|
|
|
} else if (ibm_read_slot_reset_state2 == RTAS_UNKNOWN_SERVICE &&
|
|
|
ibm_read_slot_reset_state == RTAS_UNKNOWN_SERVICE) {
|
|
|
- pr_warning("%s: RTAS service <ibm,read-slot-reset-state2> and "
|
|
|
+ pr_warn("%s: RTAS service <ibm,read-slot-reset-state2> and "
|
|
|
"<ibm,read-slot-reset-state> invalid\n",
|
|
|
__func__);
|
|
|
return -EINVAL;
|
|
|
} else if (ibm_slot_error_detail == RTAS_UNKNOWN_SERVICE) {
|
|
|
- pr_warning("%s: RTAS service <ibm,slot-error-detail> invalid\n",
|
|
|
+ pr_warn("%s: RTAS service <ibm,slot-error-detail> invalid\n",
|
|
|
__func__);
|
|
|
return -EINVAL;
|
|
|
} else if (ibm_configure_pe == RTAS_UNKNOWN_SERVICE &&
|
|
|
ibm_configure_bridge == RTAS_UNKNOWN_SERVICE) {
|
|
|
- pr_warning("%s: RTAS service <ibm,configure-pe> and "
|
|
|
+ pr_warn("%s: RTAS service <ibm,configure-pe> and "
|
|
|
"<ibm,configure-bridge> invalid\n",
|
|
|
__func__);
|
|
|
return -EINVAL;
|
|
@@ -118,11 +118,11 @@ static int pseries_eeh_init(void)
|
|
|
spin_lock_init(&slot_errbuf_lock);
|
|
|
eeh_error_buf_size = rtas_token("rtas-error-log-max");
|
|
|
if (eeh_error_buf_size == RTAS_UNKNOWN_SERVICE) {
|
|
|
- pr_warning("%s: unknown EEH error log size\n",
|
|
|
+ pr_warn("%s: unknown EEH error log size\n",
|
|
|
__func__);
|
|
|
eeh_error_buf_size = 1024;
|
|
|
} else if (eeh_error_buf_size > RTAS_ERROR_LOG_MAX) {
|
|
|
- pr_warning("%s: EEH error log size %d exceeds the maximal %d\n",
|
|
|
+ pr_warn("%s: EEH error log size %d exceeds the maximal %d\n",
|
|
|
__func__, eeh_error_buf_size, RTAS_ERROR_LOG_MAX);
|
|
|
eeh_error_buf_size = RTAS_ERROR_LOG_MAX;
|
|
|
}
|
|
@@ -270,7 +270,7 @@ static void *pseries_eeh_of_probe(struct device_node *dn, void *flag)
|
|
|
/* Retrieve the device address */
|
|
|
regs = of_get_property(dn, "reg", NULL);
|
|
|
if (!regs) {
|
|
|
- pr_warning("%s: OF node property %s::reg not found\n",
|
|
|
+ pr_warn("%s: OF node property %s::reg not found\n",
|
|
|
__func__, dn->full_name);
|
|
|
return NULL;
|
|
|
}
|
|
@@ -398,7 +398,7 @@ static int pseries_eeh_get_pe_addr(struct eeh_pe *pe)
|
|
|
pe->config_addr, BUID_HI(pe->phb->buid),
|
|
|
BUID_LO(pe->phb->buid), 0);
|
|
|
if (ret) {
|
|
|
- pr_warning("%s: Failed to get address for PHB#%d-PE#%x\n",
|
|
|
+ pr_warn("%s: Failed to get address for PHB#%d-PE#%x\n",
|
|
|
__func__, pe->phb->global_number, pe->config_addr);
|
|
|
return 0;
|
|
|
}
|
|
@@ -411,7 +411,7 @@ static int pseries_eeh_get_pe_addr(struct eeh_pe *pe)
|
|
|
pe->config_addr, BUID_HI(pe->phb->buid),
|
|
|
BUID_LO(pe->phb->buid), 0);
|
|
|
if (ret) {
|
|
|
- pr_warning("%s: Failed to get address for PHB#%d-PE#%x\n",
|
|
|
+ pr_warn("%s: Failed to get address for PHB#%d-PE#%x\n",
|
|
|
__func__, pe->phb->global_number, pe->config_addr);
|
|
|
return 0;
|
|
|
}
|
|
@@ -584,17 +584,17 @@ static int pseries_eeh_wait_state(struct eeh_pe *pe, int max_wait)
|
|
|
return ret;
|
|
|
|
|
|
if (max_wait <= 0) {
|
|
|
- pr_warning("%s: Timeout when getting PE's state (%d)\n",
|
|
|
+ pr_warn("%s: Timeout when getting PE's state (%d)\n",
|
|
|
__func__, max_wait);
|
|
|
return EEH_STATE_NOT_SUPPORT;
|
|
|
}
|
|
|
|
|
|
if (mwait <= 0) {
|
|
|
- pr_warning("%s: Firmware returned bad wait value %d\n",
|
|
|
+ pr_warn("%s: Firmware returned bad wait value %d\n",
|
|
|
__func__, mwait);
|
|
|
mwait = EEH_STATE_MIN_WAIT_TIME;
|
|
|
} else if (mwait > EEH_STATE_MAX_WAIT_TIME) {
|
|
|
- pr_warning("%s: Firmware returned too long wait value %d\n",
|
|
|
+ pr_warn("%s: Firmware returned too long wait value %d\n",
|
|
|
__func__, mwait);
|
|
|
mwait = EEH_STATE_MAX_WAIT_TIME;
|
|
|
}
|
|
@@ -675,7 +675,7 @@ static int pseries_eeh_configure_bridge(struct eeh_pe *pe)
|
|
|
}
|
|
|
|
|
|
if (ret)
|
|
|
- pr_warning("%s: Unable to configure bridge PHB#%d-PE#%x (%d)\n",
|
|
|
+ pr_warn("%s: Unable to configure bridge PHB#%d-PE#%x (%d)\n",
|
|
|
__func__, pe->phb->global_number, pe->addr, ret);
|
|
|
|
|
|
return ret;
|