Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254412
b: refs/heads/master
c: 467e855
h: refs/heads/master
v: v3
  • Loading branch information
Bartosz Barcinski authored and Dan Williams committed Jul 3, 2011
1 parent 26deaeb commit 95efd48
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 18 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: 26bace349ecd08b1d744f7067d24fd1bedb91020
refs/heads/master: 467e855a0331f619f41fbf7391bc29ec0ca923a0
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/isci/core/scic_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ enum sci_status scic_controller_stop(
enum sci_status scic_controller_reset(
struct scic_sds_controller *controller);

enum sci_io_status scic_controller_start_io(
enum sci_status scic_controller_start_io(
struct scic_sds_controller *controller,
struct scic_sds_remote_device *remote_device,
struct scic_sds_request *io_request,
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/scsi/isci/core/scic_sds_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -1967,10 +1967,10 @@ enum sci_status scic_controller_reset(
* requirement for the user to call scic_stp_io_set_ncq_tag() prior to invoking
* the scic_controller_start_io() method. scic_controller_allocate_tag() for
* more information on allocating a tag. Indicate if the controller
* successfully started the IO request. SCI_IO_SUCCESS if the IO request was
* successfully started the IO request. SCI_SUCCESS if the IO request was
* successfully started. Determine the failure situations and return values.
*/
enum sci_io_status scic_controller_start_io(
enum sci_status scic_controller_start_io(
struct scic_sds_controller *scic,
struct scic_sds_remote_device *rdev,
struct scic_sds_request *req,
Expand Down Expand Up @@ -2723,8 +2723,8 @@ enum sci_status scic_controller_initialize(
* logical ports
*/
for (index = 0; index < max_supported_ports; index++) {
struct scu_port_task_scheduler_group_registers *ptsg =
&scic->scu_registers->peg0.ptsg;
struct scu_port_task_scheduler_group_registers __iomem
*ptsg = &scic->scu_registers->peg0.ptsg;

writel(index, &ptsg->protocol_engine[index]);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/isci/core/scic_sds_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ struct scic_sds_port {
* task scheduler group PE configuration registers.
* It is used to assign PEs to a port.
*/
u32 *port_pe_configuration_register;
u32 __iomem *port_pe_configuration_register;

/**
* This field is the VIIT register space for ths port object.
Expand Down
11 changes: 6 additions & 5 deletions trunk/drivers/scsi/isci/core/scic_sds_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,19 +850,20 @@ void *scic_io_request_get_response_iu_address(
u32 scic_io_request_get_number_of_bytes_transferred(
struct scic_sds_request *scic_sds_request)
{
struct scic_sds_controller *scic = scic_sds_request->owning_controller;
u32 ret_val = 0;

if (readl(&scic_sds_request->owning_controller->smu_registers->address_modifier) == 0) {
if (readl(&scic->smu_registers->address_modifier) == 0) {
void __iomem *scu_reg_base = scic->scu_registers;
/*
* get the bytes of data from the Address == BAR1 + 20002Ch + (256*TCi) where
* BAR1 is the scu_registers
* 0x20002C = 0x200000 + 0x2c
* = start of task context SRAM + offset of (type.ssp.data_offset)
* TCi is the io_tag of struct scic_sds_request */
ret_val = readl((u8 *)scic_sds_request->owning_controller->scu_registers +
(SCU_TASK_CONTEXT_SRAM + SCI_FIELD_OFFSET(struct scu_task_context, type.ssp.data_offset)) +
((sizeof(struct scu_task_context)) * scic_sds_io_tag_get_index(scic_sds_request->io_tag))
);
ret_val = readl(scu_reg_base +
(SCU_TASK_CONTEXT_SRAM + offsetof(struct scu_task_context, type.ssp.data_offset)) +
((sizeof(struct scu_task_context)) * scic_sds_io_tag_get_index(scic_sds_request->io_tag)));
}

return ret_val;
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/scsi/isci/remote_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,15 +513,13 @@ bool isci_device_is_reset_pending(
__func__, isci_device, isci_request);

if (isci_request->ttype == io_task) {

unsigned long flags;
struct sas_task *task = isci_request_access_task(
isci_request);

spin_lock_irqsave(&task->task_state_lock, flags);
spin_lock(&task->task_state_lock);
if (task->task_state_flags & SAS_TASK_NEED_DEV_RESET)
reset_is_pending = true;
spin_unlock_irqrestore(&task->task_state_lock, flags);
spin_unlock(&task->task_state_lock);
}
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/scsi/isci/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ int isci_task_execute_tmf(
unsigned long timeout_ms)
{
DECLARE_COMPLETION_ONSTACK(completion);
enum sci_status status = SCI_FAILURE;
enum sci_task_status status = SCI_TASK_FAILURE;
struct scic_sds_remote_device *sci_device;
struct isci_remote_device *isci_device = tmf->device;
struct isci_request *request;
Expand Down Expand Up @@ -488,7 +488,7 @@ int isci_task_execute_tmf(
SCI_CONTROLLER_INVALID_IO_TAG
);

if (status != SCI_SUCCESS) {
if (status != SCI_TASK_SUCCESS) {
dev_warn(&isci_host->pdev->dev,
"%s: start_io failed - status = 0x%x, request = %p\n",
__func__,
Expand Down

0 comments on commit 95efd48

Please sign in to comment.