stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ioat: remove chanerr mask setting for IOAT v3.x
@ 2012-11-27 22:16 Dave Jiang
  2012-11-28  0:40 ` Greg KH
  2013-03-21  5:03 ` Vinod Koul
  0 siblings, 2 replies; 4+ messages in thread
From: Dave Jiang @ 2012-11-27 22:16 UTC (permalink / raw)
  To: djbw, vinod.koul; +Cc: linux-kernel, stable, jon.mason

The existing code set a value in the PCI_CHANERRMSK_INT register
for a workaround to address a pre-silicon bug on the Intel 5520 IO hub that
has been fixed when the hardware was released. There is no need for this
code.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---

 drivers/dma/ioat/dma_v3.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c
index f7f1dc6..fda3b8a1 100644
--- a/drivers/dma/ioat/dma_v3.c
+++ b/drivers/dma/ioat/dma_v3.c
@@ -1126,12 +1126,7 @@ static int ioat3_reset_hw(struct ioat_chan_common *chan)
 	chanerr = readl(chan->reg_base + IOAT_CHANERR_OFFSET);
 	writel(chanerr, chan->reg_base + IOAT_CHANERR_OFFSET);
 
-	/* -= IOAT ver.3 workarounds =- */
-	/* Write CHANERRMSK_INT with 3E07h to mask out the errors
-	 * that can cause stability issues for IOAT ver.3, and clear any
-	 * pending errors
-	 */
-	pci_write_config_dword(pdev, IOAT_PCI_CHANERRMASK_INT_OFFSET, 0x3e07);
+	/* clear any pending errors */
 	err = pci_read_config_dword(pdev, IOAT_PCI_CHANERR_INT_OFFSET, &chanerr);
 	if (err) {
 		dev_err(&pdev->dev, "channel error register unreachable\n");


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

* Re: [PATCH v2] ioat: remove chanerr mask setting for IOAT v3.x
  2012-11-27 22:16 [PATCH v2] ioat: remove chanerr mask setting for IOAT v3.x Dave Jiang
@ 2012-11-28  0:40 ` Greg KH
  2013-03-21  5:03 ` Vinod Koul
  1 sibling, 0 replies; 4+ messages in thread
From: Greg KH @ 2012-11-28  0:40 UTC (permalink / raw)
  To: Dave Jiang; +Cc: djbw, vinod.koul, linux-kernel, stable, jon.mason

On Tue, Nov 27, 2012 at 03:16:08PM -0700, Dave Jiang wrote:
> The existing code set a value in the PCI_CHANERRMSK_INT register
> for a workaround to address a pre-silicon bug on the Intel 5520 IO hub that
> has been fixed when the hardware was released. There is no need for this
> code.
> 
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
> ---
> 
>  drivers/dma/ioat/dma_v3.c |    7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read Documentation/stable_kernel_rules.txt
for how to do this properly.

</formletter>

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

* Re: [PATCH v2] ioat: remove chanerr mask setting for IOAT v3.x
  2012-11-27 22:16 [PATCH v2] ioat: remove chanerr mask setting for IOAT v3.x Dave Jiang
  2012-11-28  0:40 ` Greg KH
@ 2013-03-21  5:03 ` Vinod Koul
  2013-03-21 18:22   ` Dave Jiang
  1 sibling, 1 reply; 4+ messages in thread
From: Vinod Koul @ 2013-03-21  5:03 UTC (permalink / raw)
  To: Jiang, Dave
  Cc: djbw@fb.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	Mason, Jon

On Wed, Nov 28, 2012 at 03:46:08AM +0530, Jiang, Dave wrote:
> The existing code set a value in the PCI_CHANERRMSK_INT register
> for a workaround to address a pre-silicon bug on the Intel 5520 IO hub that
> has been fixed when the hardware was released. There is no need for this
> code.
> 
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
> ---
> 
>  drivers/dma/ioat/dma_v3.c |    7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
> 
> diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c
> index f7f1dc6..fda3b8a1 100644
> --- a/drivers/dma/ioat/dma_v3.c
> +++ b/drivers/dma/ioat/dma_v3.c
> @@ -1126,12 +1126,7 @@ static int ioat3_reset_hw(struct ioat_chan_common *chan)
>  	chanerr = readl(chan->reg_base + IOAT_CHANERR_OFFSET);
>  	writel(chanerr, chan->reg_base + IOAT_CHANERR_OFFSET);
>  
> -	/* -= IOAT ver.3 workarounds =- */
> -	/* Write CHANERRMSK_INT with 3E07h to mask out the errors
> -	 * that can cause stability issues for IOAT ver.3, and clear any
> -	 * pending errors
> -	 */
What is this code based against? i dont have above lines in -rc1 or my next?

> -	pci_write_config_dword(pdev, IOAT_PCI_CHANERRMASK_INT_OFFSET, 0x3e07);
> +	/* clear any pending errors */
>  	err = pci_read_config_dword(pdev, IOAT_PCI_CHANERR_INT_OFFSET, &chanerr);
>  	if (err) {
>  		dev_err(&pdev->dev, "channel error register unreachable\n");
> 

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

* Re: [PATCH v2] ioat: remove chanerr mask setting for IOAT v3.x
  2013-03-21  5:03 ` Vinod Koul
@ 2013-03-21 18:22   ` Dave Jiang
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Jiang @ 2013-03-21 18:22 UTC (permalink / raw)
  To: Vinod Koul
  Cc: djbw@fb.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	Mason, Jon

On 03/20/2013 10:03 PM, Vinod Koul wrote:
> On Wed, Nov 28, 2012 at 03:46:08AM +0530, Jiang, Dave wrote:
>> The existing code set a value in the PCI_CHANERRMSK_INT register
>> for a workaround to address a pre-silicon bug on the Intel 5520 IO hub that
>> has been fixed when the hardware was released. There is no need for this
>> code.
>>
>> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
>> ---
>>
>>   drivers/dma/ioat/dma_v3.c |    7 +------
>>   1 file changed, 1 insertion(+), 6 deletions(-)
>>
>> diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c
>> index f7f1dc6..fda3b8a1 100644
>> --- a/drivers/dma/ioat/dma_v3.c
>> +++ b/drivers/dma/ioat/dma_v3.c
>> @@ -1126,12 +1126,7 @@ static int ioat3_reset_hw(struct ioat_chan_common *chan)
>>   	chanerr = readl(chan->reg_base + IOAT_CHANERR_OFFSET);
>>   	writel(chanerr, chan->reg_base + IOAT_CHANERR_OFFSET);
>>   
>> -	/* -= IOAT ver.3 workarounds =- */
>> -	/* Write CHANERRMSK_INT with 3E07h to mask out the errors
>> -	 * that can cause stability issues for IOAT ver.3, and clear any
>> -	 * pending errors
>> -	 */
> What is this code based against? i dont have above lines in -rc1 or my next?
Looking at the Linus tree it looks like it's already upstream somehow? 
Commit 6decffd.

>> -	pci_write_config_dword(pdev, IOAT_PCI_CHANERRMASK_INT_OFFSET, 0x3e07);
>> +	/* clear any pending errors */
>>   	err = pci_read_config_dword(pdev, IOAT_PCI_CHANERR_INT_OFFSET, &chanerr);
>>   	if (err) {
>>   		dev_err(&pdev->dev, "channel error register unreachable\n");
>>


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

end of thread, other threads:[~2013-03-21 18:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 22:16 [PATCH v2] ioat: remove chanerr mask setting for IOAT v3.x Dave Jiang
2012-11-28  0:40 ` Greg KH
2013-03-21  5:03 ` Vinod Koul
2013-03-21 18:22   ` Dave Jiang

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