Shiju Jose
1e14ea901d
EDAC: Initialize EDAC features sysfs attributes
Fix the lockdep splat caused by missing sysfs_attr_init() calls for the
recently added EDAC feature's sysfs attributes.
In lockdep_init_map_type(), the check for the lock-class key if
(!static_obj(key) && !is_dynamic_key(key)) causes the splat.
Backtrace:
RIP: 0010:lockdep_init_map_type
Call Trace:
__kernfs_create_file
sysfs_add_file_mode_ns
internal_create_group
internal_create_groups
device_add
? __init_waitqueue_head
edac_dev_register
devm_cxl_memdev_edac_register
? lock_acquire
? find_held_lock
? cxl_mem_probe
? cxl_mem_probe
? lockdep_hardirqs_on
? cxl_mem_probe
cxl_mem_probe
[ bp: Massage. ]
Fixes: f90b738166fe ("EDAC: Add scrub control feature")
Fixes: bcbd069b11b0 ("EDAC: Add a Error Check Scrub control feature")
Fixes: 699ea5219c4b ("EDAC: Add a memory repair control feature")
Reported-by: Dave Jiang <dave.jiang@intel.com>
Suggested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://lore.kernel.org/20250626101344.1726-1-shiju.jose@huawei.com
2025-06-30 10:57:24 +02:00
..
2025-05-29 17:38:55 +02:00
2025-04-28 12:38:53 +02:00
2025-06-25 16:40:03 +02:00
2024-06-12 11:33:45 +02:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2025-05-22 17:58:28 +02:00
2024-12-01 15:12:43 -08:00
2025-02-25 22:19:55 +01:00
2024-12-01 15:12:43 -08:00
2025-06-30 10:57:24 +02:00
2024-03-27 18:26:57 +01:00
2025-03-05 23:35:01 +01:00
2024-03-27 18:26:58 +01:00
2024-12-15 22:17:34 +01:00
2024-12-15 22:17:34 +01:00
2024-03-27 18:26:58 +01:00
2024-10-23 16:53:55 +02:00
2024-10-23 16:53:55 +02:00
2024-05-28 16:13:09 +02:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2025-04-24 08:42:25 -07:00
2024-12-15 22:17:34 +01:00
2025-02-25 22:19:55 +01:00
2025-02-25 22:19:55 +01:00
2025-05-27 10:13:06 -07:00
2025-06-18 20:19:45 +02:00
2025-03-25 14:53:27 +01:00
2024-12-01 15:12:43 -08:00
2025-01-04 12:02:04 +01:00
2025-02-26 11:13:23 +01:00
2025-05-02 10:23:47 +02:00
2025-06-30 10:57:24 +02:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2025-03-03 16:39:26 +01:00
2025-02-14 20:36:11 +01:00
2024-09-03 15:09:22 -07:00
2025-06-30 10:57:24 +02:00
2024-03-27 18:26:58 +01:00
2025-01-21 09:30:59 -08:00
2025-04-17 10:19:02 -07:00
2025-04-17 10:45:21 -07:00
2024-12-01 15:12:43 -08:00
2024-05-27 14:42:04 +02:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2025-02-25 22:19:55 +01:00
2024-12-01 15:12:43 -08:00