Skip to content

feat: Add options to configure Seagate HDD performance mode and SSD Thermal Throttle.#49

Open
seagate-395821 wants to merge 4 commits into
Seagate:developfrom
seagate-395821:feature/FDOPENSRCE-198
Open

feat: Add options to configure Seagate HDD performance mode and SSD Thermal Throttle.#49
seagate-395821 wants to merge 4 commits into
Seagate:developfrom
seagate-395821:feature/FDOPENSRCE-198

Conversation

@seagate-395821

Copy link
Copy Markdown
Contributor

[FDOPENSRCE-198] - Add options to configure Seagate HDD performance mode and SSD Thermal Throttle.

Comment thread include/operations.h

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the performance mode and thermal throttle bits are specific to Seagate SAS, can we move this to seagate_operations.h/.c files?

Comment thread src/operations.c

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just like operations.h, these are seagate vendor unique, so we should move them to seagate_operations.c

Comment thread src/operations.c
if ((get_Device_DriveType(device) == SCSI_DRIVE) && (is_SSD(device) == false))
{
return NOT_SUPPORTED;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition check is not needed here, as we need to write the wrapper for the function "scsi_Set_ThermalThrottleEnable" something like "set_ThermalThrottleEnable" which will have same implementation like "set_Read_Look_Ahead" or "scsi_Set_Write_Cache"

Comment thread src/operations.c
}

M_PARAM_RO(1)
OPENSEA_OPERATIONS_API eReturnValues scsi_Set_ThermalThrottleEnable(const tDevice* M_NONNULL device, bool thermalThrottleEnable)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function name should be something like "scsi_Set_ThermalThrottle" instead of "scsi_Set_ThermalThrottleEnable" and parameter should be something like "thermalThrottleEnableDisable" -> this will indicate that we can either enable or disable this feature, which is general practice and adapted for other such functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants