Skip to content

Commit

Permalink
pci: change msi-x vector to 32bit
Browse files Browse the repository at this point in the history
we are using 28bit pci (bus/dev/fn + 12 bits) as irq number, so the
cache for irq number should be 32 bit too.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Oct 16, 2008
1 parent c691cc8 commit 42379b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/scsi/qla2xxx/qla_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -2108,7 +2108,7 @@ struct scsi_qla_host;

struct qla_msix_entry {
int have_irq;
uint16_t msix_vector;
uint32_t msix_vector;
uint16_t msix_entry;
};

Expand Down
2 changes: 1 addition & 1 deletion include/linux/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ enum pci_dma_burst_strategy {
};

struct msix_entry {
u16 vector; /* kernel uses to write allocated vector */
u32 vector; /* kernel uses to write allocated vector */
u16 entry; /* driver uses to specify entry, OS writes */
};

Expand Down

0 comments on commit 42379b1

Please sign in to comment.