Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204092
b: refs/heads/master
c: 8701f18
h: refs/heads/master
v: v3
  • Loading branch information
Wayne Boyer authored and James Bottomley committed Jul 27, 2010
1 parent ebb2007 commit 386796e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da2907ffd08a2d708c829ec171f05fe3ceab1315
refs/heads/master: 8701f18504751a5b89be3203e28c5ec04c147167
19 changes: 17 additions & 2 deletions trunk/drivers/scsi/ipr.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ static const struct ipr_chip_cfg_t ipr_chip_cfg[] = {
.clr_uproc_interrupt_reg32 = 0x0002C,
.init_feedback_reg = 0x0005C,
.dump_addr_reg = 0x00064,
.dump_data_reg = 0x00068
.dump_data_reg = 0x00068,
.endian_swap_reg = 0x00084
}
},
};
Expand Down Expand Up @@ -7208,6 +7209,12 @@ static int ipr_reset_enable_ioa(struct ipr_cmnd *ipr_cmd)
ipr_init_ioa_mem(ioa_cfg);

ioa_cfg->allow_interrupts = 1;
if (ioa_cfg->sis64) {
/* Set the adapter to the correct endian mode. */
writel(IPR_ENDIAN_SWAP_KEY, ioa_cfg->regs.endian_swap_reg);
int_reg = readl(ioa_cfg->regs.endian_swap_reg);
}

int_reg = readl(ioa_cfg->regs.sense_interrupt_reg32);

if (int_reg & IPR_PCII_IOA_TRANS_TO_OPER) {
Expand Down Expand Up @@ -7365,6 +7372,7 @@ static void ipr_get_unit_check_buffer(struct ipr_ioa_cfg *ioa_cfg)
static int ipr_reset_restore_cfg_space(struct ipr_cmnd *ipr_cmd)
{
struct ipr_ioa_cfg *ioa_cfg = ipr_cmd->ioa_cfg;
volatile u32 int_reg;
int rc;

ENTER;
Expand All @@ -7383,6 +7391,12 @@ static int ipr_reset_restore_cfg_space(struct ipr_cmnd *ipr_cmd)

ipr_fail_all_ops(ioa_cfg);

if (ioa_cfg->sis64) {
/* Set the adapter to the correct endian mode. */
writel(IPR_ENDIAN_SWAP_KEY, ioa_cfg->regs.endian_swap_reg);
int_reg = readl(ioa_cfg->regs.endian_swap_reg);
}

if (ioa_cfg->ioa_unit_checked) {
ioa_cfg->ioa_unit_checked = 0;
ipr_get_unit_check_buffer(ioa_cfg);
Expand Down Expand Up @@ -7547,7 +7561,7 @@ static int ipr_reset_wait_to_start_bist(struct ipr_cmnd *ipr_cmd)
}

/**
* ipr_reset_alert_part2 - Alert the adapter of a pending reset
* ipr_reset_alert - Alert the adapter of a pending reset
* @ipr_cmd: ipr command struct
*
* Description: This function alerts the adapter that it will be reset.
Expand Down Expand Up @@ -8318,6 +8332,7 @@ static void __devinit ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg,
t->init_feedback_reg = base + p->init_feedback_reg;
t->dump_addr_reg = base + p->dump_addr_reg;
t->dump_data_reg = base + p->dump_data_reg;
t->endian_swap_reg = base + p->endian_swap_reg;
}
}

Expand Down
9 changes: 7 additions & 2 deletions trunk/drivers/scsi/ipr.h
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ struct ipr_hostrcb64_fabric_desc {
__be16 length;
u8 descriptor_id;

u8 reserved;
u8 reserved[2];
u8 path_state;

u8 reserved2[2];
Expand Down Expand Up @@ -1054,7 +1054,7 @@ struct ipr_hostrcb64_error {
__be64 fd_lun;
u8 fd_res_path[8];
__be64 time_stamp;
u8 reserved[2];
u8 reserved[16];
union {
struct ipr_hostrcb_type_ff_error type_ff_error;
struct ipr_hostrcb_type_12_error type_12_error;
Expand Down Expand Up @@ -1254,6 +1254,9 @@ struct ipr_interrupt_offsets {

unsigned long dump_addr_reg;
unsigned long dump_data_reg;

#define IPR_ENDIAN_SWAP_KEY 0x000C0C00
unsigned long endian_swap_reg;
};

struct ipr_interrupts {
Expand All @@ -1279,6 +1282,8 @@ struct ipr_interrupts {

void __iomem *dump_addr_reg;
void __iomem *dump_data_reg;

void __iomem *endian_swap_reg;
};

struct ipr_chip_cfg_t {
Expand Down

0 comments on commit 386796e

Please sign in to comment.