linux/drivers/gpu/drm/amd/display/amdgpu_dm
David Ward fe1c97d008 drm/amd/display: Initialize attribute for hdcp_srm sysfs file
It is stored in dynamically allocated memory, so sysfs_bin_attr_init() must
be called to initialize it. (Note: "initialization" only sets the .attr.key
member in this struct; it does not change the value of any other members.)

Otherwise, when CONFIG_DEBUG_LOCK_ALLOC=y this message appears during boot:

    BUG: key ffff9248900cd148 has not been registered!

Fixes: 9037246bb2 ("drm/amd/display: Add sysfs interface for set/get srm")
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1586
Reported-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Signed-off-by: David Ward <david.ward@gatech.edu>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
2021-05-13 10:46:06 -04:00
..
Makefile
amdgpu_dm.c Merge tag 'amd-drm-fixes-5.13-2021-05-05' of https://gitlab.freedesktop.org/agd5f/linux into drm-next 2021-05-07 12:44:51 +10:00
amdgpu_dm.h drm/amd/display: Add debugfs to repress HPD and HPR_RX IRQs 2021-04-15 16:31:59 -04:00
amdgpu_dm_color.c
amdgpu_dm_crc.c drm/amd/display: use MST downstream AUX to dump DPRX CRCs 2021-04-09 16:51:35 -04:00
amdgpu_dm_crc.h
amdgpu_dm_debugfs.c Merge tag 'amd-drm-fixes-5.13-2021-05-05' of https://gitlab.freedesktop.org/agd5f/linux into drm-next 2021-05-07 12:44:51 +10:00
amdgpu_dm_debugfs.h
amdgpu_dm_hdcp.c drm/amd/display: Initialize attribute for hdcp_srm sysfs file 2021-05-13 10:46:06 -04:00
amdgpu_dm_hdcp.h
amdgpu_dm_helpers.c drm/amd/display: add helper for enabling mst stream features 2021-04-20 21:42:53 -04:00
amdgpu_dm_irq.c drm/amd/display: Deallocate IRQ handlers on amdgpu_dm_irq_fini 2021-04-09 16:41:12 -04:00
amdgpu_dm_irq.h
amdgpu_dm_irq_params.h
amdgpu_dm_mst_types.c drm/amd/display: Fix call to pass bpp in 16ths of a bit 2021-04-20 21:42:20 -04:00
amdgpu_dm_mst_types.h
amdgpu_dm_pp_smu.c drm/amd/pm: make DAL communicate with SMU through unified interfaces 2021-04-09 16:42:37 -04:00
amdgpu_dm_services.c
amdgpu_dm_trace.h drm/amd/display: Add refresh rate trace 2021-04-09 16:47:57 -04:00