Skip to content

firmware: dmi-sysfs: make pr_info messages rate limited

Prarit Bhargava requested to merge prarit/centos-stream-9:RHEL-21581 into main

JIRA: https://issues.redhat.com/browse/RHEL-21581

commit 7d12970f1746d47155f97113ac48b81fd8af8640
Author: Colin Ian King colin.i.king@gmail.com
Date: Tue Nov 29 22:38:55 2022 +0000

firmware: dmi-sysfs: make pr_info messages rate limited  

Currently if a process repeat repeatedly reads the dmi sysfs raw event log  
/sys/firmware/dmi/entries/15-0/system_event_log/raw_event_log when GPNV  
support is missing or using an unknown access method the kernel log gets  
spammed with info messages. Make the messages rate limited to reduce the  
message spamming. Triggered when running sudo stress-ng --sysfs -t 5m.  

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>  
Link: https://lore.kernel.org/r/20221129223855.1005674-1-colin.i.king@gmail.com  
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>  

Signed-off-by: Prarit Bhargava prarit@redhat.com

Merge request reports