> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of Paul > M Stillwell Jr > Sent: Wednesday, December 13, 2023 10:37 AM > To: [email protected] > Cc: Stillwell Jr, Paul M <[email protected]> > Subject: [Intel-wired-lan] [PATCH net-next v21 4/5] ice: add ability to read > and configure FW log data > > Once logging is enabled the user should read the data from the 'data' > file. The data is in the form of a binary blob that can be sent to Intel > for decoding. To read the data use a command like: > > # cat /sys/kernel/debug/ice/0000\:18\:00.0/fwlog/data > log_data.bin > > If the user wants to clear the FW log data that has been stored in the > driver then they can write any value to the 'data' file and that will clear > the data. An example is: > > # echo 34 > /sys/kernel/debug/ice/0000\:18\:00.0/fwlog/data > > In addition to being able to read the data the user can configure how > much memory is used to store FW log data. This allows the user to > increase/decrease the amount of memory based on the users situation. > The data is stored such that if the memory fills up then the oldest data > will get overwritten in a circular manner. To change the amount of > memory the user can write to the 'log_size' file like this: > > # echo <value> > /sys/kernel/debug/ice/0000\:18\:00.0/fwlog/log_size > > Where <value> is one of 128K, 256K, 512K, 1M, and 2M. The default value > is 1M. > > The user can see the current value of 'log_size' by reading the file: > > # cat /sys/kernel/debug/ice/0000\:18\:00.0/fwlog/log_size > > Signed-off-by: Paul M Stillwell Jr <[email protected]> > --- > .../net/ethernet/intel/ice/ice_adminq_cmd.h | 2 + > drivers/net/ethernet/intel/ice/ice_debugfs.c | 210 ++++++++++++++++++ > drivers/net/ethernet/intel/ice/ice_fwlog.c | 142 ++++++++++++ > drivers/net/ethernet/intel/ice/ice_fwlog.h | 21 ++ > drivers/net/ethernet/intel/ice/ice_main.c | 29 +++ > drivers/net/ethernet/intel/ice/ice_type.h | 1 + > 6 files changed, 405 insertions(+) >
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel) _______________________________________________ Intel-wired-lan mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
