-
Notifications
You must be signed in to change notification settings - Fork 2
Dev/talco/hbl next vs after fix #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev/talco/hbl_next_vs_before_fix
Are you sure you want to change the base?
Dev/talco/hbl next vs after fix #11
Conversation
For upstream purposes and to have more robust code, a common cfg lock function shall be created. The function shall invoke the asic port's specific function. Signed-off-by: Tal Cohen <tal5.cohen@intel.com>
Replace the port's cfg lock from port specific into port's common code. This change is further to the common cfg lock function change. Signed-off-by: Tal Cohen <tal5.cohen@intel.com>
@@ -1171,6 +1171,8 @@ struct hbl_cn_port { | |||
struct mutex control_lock; | |||
/* protects the counters from concurrent reading */ | |||
struct mutex cnt_lock; | |||
/* Serializes the port configuration */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why comment is here and not in the documentation for the struct above?
mutex_destroy(&cn_port->cnt_lock); | ||
mutex_destroy(&cn_port->control_lock); | ||
mutex_destroy(&cn_port->cfg_lock); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mutex_destroy(&cn_port->cnt_lock); | |
mutex_destroy(&cn_port->control_lock); | |
mutex_destroy(&cn_port->cfg_lock); | |
mutex_destroy(&cn_port->cfg_lock); | |
mutex_destroy(&cn_port->cnt_lock); | |
mutex_destroy(&cn_port->control_lock); |
@@ -332,8 +332,6 @@ struct gaudi2_cn_port { | |||
struct delayed_work eq_work; | |||
struct delayed_work qp_sanity_work; | |||
struct workqueue_struct *qp_sanity_wq; | |||
/* Serializes the port configuration */ | |||
struct mutex cfg_lock; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also delete the documetnation of this field above
No description provided.