linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: dw_mmc: Don't print data errors
@ 2014-04-22 23:51 Doug Anderson
  2014-04-23  4:02 ` Alim Akhtar
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Doug Anderson @ 2014-04-22 23:51 UTC (permalink / raw)
  To: Seungwon Jeon, Jaehoon Chung
  Cc: yuvaraj.cd, Alim Akhtar, Sonny Rao, linux-samsung-soc,
	Doug Anderson, chris, ulf.hansson, linux-mmc, linux-kernel

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 <dianders@chromium.org>
---
 drivers/mmc/host/dw_mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index cced599..4c8d423 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] mmc: dw_mmc: Don't print data errors
  2014-04-22 23:51 [PATCH] mmc: dw_mmc: Don't print data errors Doug Anderson
@ 2014-04-23  4:02 ` Alim Akhtar
  2014-04-23  6:22 ` Seungwon Jeon
  2014-04-23  8:17 ` Ulf Hansson
  2 siblings, 0 replies; 6+ messages in thread
From: Alim Akhtar @ 2014-04-23  4:02 UTC (permalink / raw)
  To: Doug Anderson
  Cc: Seungwon Jeon, Jaehoon Chung, Yuvaraj Kumar C D, Alim Akhtar,
	Sonny Rao, linux-samsung-soc, chris, Ulf Hansson, linux-mmc,
	linux-kernel

Hi Doug,

On Wed, Apr 23, 2014 at 5:21 AM, Doug Anderson <dianders@chromium.org> wrote:
> 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 <dianders@chromium.org>

This looks reasonable
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>

> ---
>  drivers/mmc/host/dw_mmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index cced599..4c8d423 100644
> --- a/drivers/mmc/host/dw_mmc.c
> +++ b/drivers/mmc/host/dw_mmc.c
> @@ -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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Regards,
Alim

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH] mmc: dw_mmc: Don't print data errors
  2014-04-22 23:51 [PATCH] mmc: dw_mmc: Don't print data errors Doug Anderson
  2014-04-23  4:02 ` Alim Akhtar
@ 2014-04-23  6:22 ` Seungwon Jeon
  2014-04-23  8:17 ` Ulf Hansson
  2 siblings, 0 replies; 6+ messages in thread
From: Seungwon Jeon @ 2014-04-23  6:22 UTC (permalink / raw)
  To: 'Doug Anderson', 'Jaehoon Chung'
  Cc: yuvaraj.cd, 'Alim Akhtar', 'Sonny Rao',
	linux-samsung-soc, chris, ulf.hansson, linux-mmc, linux-kernel

On Wed, April 23, 2014, Doug Anderson wrote:
> 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

> 
> Signed-off-by: Doug Anderson <dianders@chromium.org>
> ---
>  drivers/mmc/host/dw_mmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index cced599..4c8d423 100644
> --- a/drivers/mmc/host/dw_mmc.c
> +++ b/drivers/mmc/host/dw_mmc.c
> @@ -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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mmc: dw_mmc: Don't print data errors
  2014-04-22 23:51 [PATCH] mmc: dw_mmc: Don't print data errors Doug Anderson
  2014-04-23  4:02 ` Alim Akhtar
  2014-04-23  6:22 ` Seungwon Jeon
@ 2014-04-23  8:17 ` Ulf Hansson
  2014-04-23 16:43   ` Doug Anderson
  2 siblings, 1 reply; 6+ messages in thread
From: Ulf Hansson @ 2014-04-23  8:17 UTC (permalink / raw)
  To: Doug Anderson
  Cc: Seungwon Jeon, Jaehoon Chung, yuvaraj.cd, Alim Akhtar, Sonny Rao,
	linux-samsung-soc, Chris Ball, linux-mmc, linux-kernel

On 23 April 2014 01:51, Doug Anderson <dianders@chromium.org> wrote:
> 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 <dianders@chromium.org>
> ---
>  drivers/mmc/host/dw_mmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index cced599..4c8d423 100644
> --- a/drivers/mmc/host/dw_mmc.c
> +++ b/drivers/mmc/host/dw_mmc.c
> @@ -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.

>                 /*
>                  * After an error, there may be data lingering
> --
> 1.9.1.423.g4596e3a
>

Kind regards
Ulf Hansson

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mmc: dw_mmc: Don't print data errors
  2014-04-23  8:17 ` Ulf Hansson
@ 2014-04-23 16:43   ` Doug Anderson
  2014-04-24  9:14     ` Ulf Hansson
  0 siblings, 1 reply; 6+ messages in thread
From: Doug Anderson @ 2014-04-23 16:43 UTC (permalink / raw)
  To: Ulf Hansson, Seungwon Jeon
  Cc: Jaehoon Chung, Yuvaraj Kumar C D, Alim Akhtar, Sonny Rao,
	linux-samsung-soc, Chris Ball, linux-mmc, linux-kernel

Seungwon / Ulf,

On Wed, Apr 23, 2014 at 1:17 AM, Ulf Hansson <ulf.hansson@linaro.org> wrote:
> On 23 April 2014 01:51, Doug Anderson <dianders@chromium.org> wrote:
>> 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 <dianders@chromium.org>
>> ---
>>  drivers/mmc/host/dw_mmc.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
>> index cced599..4c8d423 100644
>> --- a/drivers/mmc/host/dw_mmc.c
>> +++ b/drivers/mmc/host/dw_mmc.c
>> @@ -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.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mmc: dw_mmc: Don't print data errors
  2014-04-23 16:43   ` Doug Anderson
@ 2014-04-24  9:14     ` Ulf Hansson
  0 siblings, 0 replies; 6+ messages in thread
From: Ulf Hansson @ 2014-04-24  9:14 UTC (permalink / raw)
  To: Doug Anderson
  Cc: Seungwon Jeon, Jaehoon Chung, Yuvaraj Kumar C D, Alim Akhtar,
	Sonny Rao, linux-samsung-soc, Chris Ball, linux-mmc,
	linux-kernel

>> 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.
>
> 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

>
> -Doug

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-24  9:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-22 23:51 [PATCH] mmc: dw_mmc: Don't print data errors Doug Anderson
2014-04-23  4:02 ` Alim Akhtar
2014-04-23  6:22 ` Seungwon Jeon
2014-04-23  8:17 ` Ulf Hansson
2014-04-23 16:43   ` Doug Anderson
2014-04-24  9:14     ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).