-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Ragile/Platform] kernel 5.10 adaptation and framework optimization #14465
base: master
Are you sure you want to change the base?
[Ragile/Platform] kernel 5.10 adaptation and framework optimization #14465
Conversation
triger rebuild
Signed-off-by: pettershao-ragilenetworks <pettershao@ragilenetworks.com>
There is no defaultxml in this SONiC OS, so we can ignore the error message of semgrep.
|
@qiluo-msft @lguohan @xumia Can you please review this pr? |
@@ -0,0 +1,236 @@ | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
/* | |||
* Hardware monitoring driver for PMBus devices |
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.
there are too many kernel drivers which included in the 5.10 kernel. we should use vanilla kernel driver.
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.
The drivers(in the common/modules/linux-5.10 directory)were revised based on kernel native drivers to solve below problems:
- wb_at24.c is revised based on the at24.c, adding AT24_FLAG_IRUGO flag for EEPROM's flag to enable none root users' read access, solving the problem of none root users throwing exceptions when executing the show command
- wb_i2c_algo_bit.c is revised based on the i2c-algo-bit.c, adding I2C level detection and 9 clock functions to improve I2C reliability
- wb_i2c_i801.c is revised based on the i2c-i801.c, adding controller reset and 9 clock functions to improve I2C reliability
- wb_i2c_mux_pca954x.c is revised based on the i2c-mux-pca954x.c, adding 9548 reset function to improve I2C reliability
too many changes, please split the PR into multiple smaller PRs. |
OK |
Why I did it
kernel 5.10 adaptation and framework optimization
How I did it
kernel 5.10 adaptation and framework optimization
How to verify it
show version
docker ps -a
show platform syseeprom
show platform fan
show platform psustatus
show platform temperature
show platform firmware status
show platform ssdhealth
show interface status
show interface transceiver presence
show interface transceiver eeprom
show environment
sensors
sudo show system-health detail
Which release branch to backport (provide reason below if selected)
Description for the changelog
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)