mmc: dw_mmc: Don't print data errors
PATCH 1/1 mmc: dw_mmc: Don't print data errors
Data errors are completely expected during tuning. Printing them out is confusing people looking at the kernel logs. They see things like:
[ 3.613296] dwmmc_exynos 12200000.dwmmc0: data error, status 0x00000088
...and they think something is wrong with their hardware.
Remove the printouts. We'll leave it up to a higher level to report about errors.
--- drivers/mmc/host/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/dw_mmc.c +1 -1
@@ -1248,7 +1248,7 @@ static int dw_mci_data_complete(struct dw_mci *host, struct mmc_data *data) data->error = -EIO ; } -dev_err (host->dev,"data error, status 0x%08x\n" , status); +dev_dbg (host->dev,"data error, status 0x%08x\n" , status);/* * After an error, there may be data lingering
Signature · 1 line
1.9.1.423.g4596e3a
Hi Doug,
Quoted 11 lines · Doug Anderson
Data errors are completely expected during tuning. Printing them out is confusing people looking at the kernel logs. They see things like:
[ 3.613296] dwmmc_exynos 12200000.dwmmc0: data error, status 0x00000088...and they think something is wrong with their hardware.
Remove the printouts. We'll leave it up to a higher level to report about errors.
Signed-off-by Doug Anderson <[email protected]>
This looks reasonable
Quoted 24 lines
--- drivers/mmc/host/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/dw_mmc.c +1
-2@@ -1248,7 +1248,7 @@ static int dw_mci_data_complete(struct dw_mci *host, struct mmc_data *data) data->error = -EIO ; } -dev_err (host->dev,"data error, status 0x%08x\n" , status); +dev_dbg (host->dev,"data error, status 0x%08x\n" , status);/* * After an error, there may be data lingering -- 1.9.1.423.g4596e3a
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Regards, Alim
Quoted 9 lines · Doug Anderson
Data errors are completely expected during tuning. Printing them out is confusing people looking at the kernel logs. They see things like:
[ 3.613296] dwmmc_exynos 12200000.dwmmc0: data error, status 0x00000088...and they think something is wrong with their hardware.
Remove the printouts. We'll leave it up to a higher level to report about errors.
Yes, your saying makes sense.
But in normal I/O, actual error information such as status below is useful, isn't it?
Thanks,
Seungwon Jeon
Quoted 26 lines
Signed-off-by Doug Anderson <[email protected]>--- drivers/mmc/host/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/dw_mmc.c +1
-2@@ -1248,7 +1248,7 @@ static int dw_mci_data_complete(struct dw_mci *host, struct mmc_data *data) data->error = -EIO ; } -dev_err (host->dev,"data error, status 0x%08x\n" , status); +dev_dbg (host->dev,"data error, status 0x%08x\n" , status);/* * After an error, there may be data lingering -- 1.9.1.423.g4596e3a
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 20 lines · Doug Anderson
Data errors are completely expected during tuning. Printing them out is confusing people looking at the kernel logs. They see things like:
[ 3.613296] dwmmc_exynos 12200000.dwmmc0: data error, status 0x00000088...and they think something is wrong with their hardware.
Remove the printouts. We'll leave it up to a higher level to report about errors.
Signed-off-by Doug Anderson <[email protected]>--- drivers/mmc/host/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/dw_mmc.c +0
-0
drivers/mmc/host/dw_mmc.c static int dw_mci_data_complete(struct dw_mci *host, struct mmc_data *data) · line 1252
Quoted 6 lines
drivers/mmc/host/dw_mmc.c +1
-1@@ -1248,7 +1248,7 @@ static int dw_mci_data_complete(struct dw_mci *host, struct mmc_data *data) data->error = -EIO ; } -dev_err (host->dev,"data error, status 0x%08x\n" , status); +dev_dbg (host->dev,"data error, status 0x%08x\n" , status);
The "status" here could be useful information about the status register, which is not considered while printing errors by the "higher levels". An option could be to print the error, but not when you perform tuning.
No big deal though, just a thought.
Quoted 5 lines
drivers/mmc/host/dw_mmc.c +0
-1/* * After an error, there may be data lingering -- 1.9.1.423.g4596e3a
Kind regards
Ulf Hansson
Seungwon / Ulf,
Quoted 33 lines · Ulf Hansson
Quoted 20 lines · Doug Anderson
Data errors are completely expected during tuning. Printing them out is confusing people looking at the kernel logs. They see things like:
[ 3.613296] dwmmc_exynos 12200000.dwmmc0: data error, status 0x00000088...and they think something is wrong with their hardware.
Remove the printouts. We'll leave it up to a higher level to report about errors.
Signed-off-by Doug Anderson <[email protected]>--- drivers/mmc/host/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/dw_mmc.c +0
-0drivers/mmc/host/dw_mmc.c static int dw_mci_data_complete(struct dw_mci *host, struct mmc_data *data) · line 1252
Quoted 6 lines
drivers/mmc/host/dw_mmc.c +1
-1@@ -1248,7 +1248,7 @@ static int dw_mci_data_complete(struct dw_mci *host, struct mmc_data *data) data->error = -EIO ; } -dev_err (host->dev,"data error, status 0x%08x\n" , status); +dev_dbg (host->dev,"data error, status 0x%08x\n" , status);The "status" here could be useful information about the status register, which is not considered while printing errors by the "higher levels". An option could be to print the error, but not when you perform tuning.
Quoted 1 line
No big deal though, just a thought.
Right, I could potentially put the driver into "tuning" mode and then suppress the errors during that time. If you request it I will do that.
I will also note that there are many other error conditions in the driver that don't have such printouts. I think the general philosophy of this driver is not to print them...
-Doug
Quoted 7 lines
Quoted 6 lines
The "status" here could be useful information about the status register, which is not considered while printing errors by the "higher levels". An option could be to print the error, but not when you perform tuning.
No big deal though, just a thought.
Quoted 7 lines
Right, I could potentially put the driver into "tuning" mode and then suppress the errors during that time. If you request it I will do that.
I will also note that there are many other error conditions in the driver that don't have such printouts. I think the general philosophy of this driver is not to print them...
So, then let's stick to that philosophy and keep this as is.
Kind regards
Ulf Hansson
Quoted 2 lines
-Doug