All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fixed invalid assignment of 64bit mask to host dma_boundary for scatter gather segment boundary limit.
@ 2015-02-09 18:54 Minh Duc Tran
  2015-02-15 18:38 ` James Bottomley
  0 siblings, 1 reply; 3+ messages in thread
From: Minh Duc Tran @ 2015-02-09 18:54 UTC (permalink / raw)
  To: linux-scsi-owner@vger.kernel.org, linux-scsi@vger.kernel.org
  Cc: Mike Christie (michaelc@cs.wisc.edu), Jayamohan Kallickal,
	Sony John-N

In reference to bug https://bugzilla.redhat.com/show_bug.cgi?id=1097141
Assert is seen with AMD cpu whenever calling pci_alloc_consistent.

[   29.406183] ------------[ cut here ]------------ 
[   29.410505] kernel BUG at lib/iommu-helper.c:13!

Signed-off-by: Minh Tran <minh.tran@emulex.com>
---
 drivers/scsi/be2iscsi/be_main.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index f319340..9cc047b 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -586,7 +586,6 @@ static struct beiscsi_hba *beiscsi_hba_alloc(struct pci_dev *pcidev)
                        "beiscsi_hba_alloc - iscsi_host_alloc failed\n");
                return NULL;
        }
-       shost->dma_boundary = pcidev->dma_mask;
        shost->max_id = BE2_MAX_SESSIONS;
        shost->max_channel = 0;
        shost->max_cmd_len = BEISCSI_MAX_CMD_LEN;
--
1.8.3.1

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

* Re: [PATCH] fixed invalid assignment of 64bit mask to host dma_boundary for scatter gather segment boundary limit.
  2015-02-09 18:54 [PATCH] fixed invalid assignment of 64bit mask to host dma_boundary for scatter gather segment boundary limit Minh Duc Tran
@ 2015-02-15 18:38 ` James Bottomley
  2015-02-23 23:42   ` Minh Duc Tran
  0 siblings, 1 reply; 3+ messages in thread
From: James Bottomley @ 2015-02-15 18:38 UTC (permalink / raw)
  To: Minh Duc Tran
  Cc: linux-scsi-owner@vger.kernel.org, linux-scsi@vger.kernel.org,
	Mike Christie (michaelc@cs.wisc.edu), Jayamohan Kallickal,
	Sony John-N

On Mon, 2015-02-09 at 18:54 +0000, Minh Duc Tran wrote:
> In reference to bug https://bugzilla.redhat.com/show_bug.cgi?id=1097141
> Assert is seen with AMD cpu whenever calling pci_alloc_consistent.
> 
> [   29.406183] ------------[ cut here ]------------ 
> [   29.410505] kernel BUG at lib/iommu-helper.c:13!
> 
> Signed-off-by: Minh Tran <minh.tran@emulex.com>
> ---
>  drivers/scsi/be2iscsi/be_main.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
> index f319340..9cc047b 100644
> --- a/drivers/scsi/be2iscsi/be_main.c
> +++ b/drivers/scsi/be2iscsi/be_main.c
> @@ -586,7 +586,6 @@ static struct beiscsi_hba *beiscsi_hba_alloc(struct pci_dev *pcidev)
>                         "beiscsi_hba_alloc - iscsi_host_alloc failed\n");
>                 return NULL;
>         }
> -       shost->dma_boundary = pcidev->dma_mask;
>         shost->max_id = BE2_MAX_SESSIONS;
>         shost->max_channel = 0;
>         shost->max_cmd_len = BEISCSI_MAX_CMD_LEN;

Please fix your email tool: this patch has all the tabs converted to
spaces.

Plus, this bug was introduced in 2009 by 

commit 6733b39a1301b0b020bbcbf3295852e93e624cb1
Author: Jayamohan Kallickal <jayamohank@serverengines.com>
Date:   Sat Sep 5 07:36:35 2009 +0530

So it needs a cc to stable.  If you added all the information like this
in the first place and use proper email tools, I wouldn't have to dig
for it when reviewing the patch and fix up the whitespace damage.

James



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

* RE: [PATCH] fixed invalid assignment of 64bit mask to host dma_boundary for scatter gather segment boundary limit.
  2015-02-15 18:38 ` James Bottomley
@ 2015-02-23 23:42   ` Minh Duc Tran
  0 siblings, 0 replies; 3+ messages in thread
From: Minh Duc Tran @ 2015-02-23 23:42 UTC (permalink / raw)
  To: James Bottomley
  Cc: linux-scsi-owner@vger.kernel.org, linux-scsi@vger.kernel.org,
	Mike Christie (michaelc@cs.wisc.edu), Jayamohan Kallickal,
	Sony John-N

>> In reference to bug 
>> https://bugzilla.redhat.com/show_bug.cgi?id=1097141
>> Assert is seen with AMD cpu whenever calling pci_alloc_consistent.
>> 
>> [   29.406183] ------------[ cut here ]------------ 
>> [   29.410505] kernel BUG at lib/iommu-helper.c:13!
>> 
>> Signed-off-by: Minh Tran <minh.tran@emulex.com>
>> ---
>>  drivers/scsi/be2iscsi/be_main.c | 1 -
>>  1 file changed, 1 deletion(-)
>> 
>> diff --git a/drivers/scsi/be2iscsi/be_main.c 
>> b/drivers/scsi/be2iscsi/be_main.c index f319340..9cc047b 100644
>> --- a/drivers/scsi/be2iscsi/be_main.c
>> +++ b/drivers/scsi/be2iscsi/be_main.c
>> @@ -586,7 +586,6 @@ static struct beiscsi_hba *beiscsi_hba_alloc(struct pci_dev *pcidev)
>>                         "beiscsi_hba_alloc - iscsi_host_alloc failed\n");
>>                 return NULL;
>>         }
>> -       shost->dma_boundary = pcidev->dma_mask;
>>         shost->max_id = BE2_MAX_SESSIONS;
>>         shost->max_channel = 0;
>>         shost->max_cmd_len = BEISCSI_MAX_CMD_LEN;

>Please fix your email tool: this patch has all the tabs converted to spaces.

>Plus, this bug was introduced in 2009 by 

>commit 6733b39a1301b0b020bbcbf3295852e93e624cb1
>Author: Jayamohan Kallickal <jayamohank@serverengines.com>
>Date:   Sat Sep 5 07:36:35 2009 +0530

>So it needs a cc to stable.  If you added all the information like this in the first place and use proper email tools, I wouldn't have to dig for it when reviewing the patch and fix up the whitespace damage.

>James

Thank you for pointing out this problem.  I've been using this email tool "Outlook" for a while without knowing it.  I will use "git send-email" from now on.

-Minh 


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

end of thread, other threads:[~2015-02-23 23:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09 18:54 [PATCH] fixed invalid assignment of 64bit mask to host dma_boundary for scatter gather segment boundary limit Minh Duc Tran
2015-02-15 18:38 ` James Bottomley
2015-02-23 23:42   ` Minh Duc Tran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.