Make the "Reducing compressed framebufer size" message be DRM_INFO_ONCE()
authorPeter Jones <pjones@redhat.com>
Fri, 6 Jul 2018 19:04:24 +0000 (15:04 -0400)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 4 May 2020 18:08:39 +0000 (11:08 -0700)
commit82152d424b6cb6fc1ede7d03d69c04e786688740
treea69c81398895bbc5fdad5443b2a0aa475163d8a1
parent421abe200321a2c907ede1a6208c558284ba0b75
Make the "Reducing compressed framebufer size" message be DRM_INFO_ONCE()

This was sort of annoying me:

random:~$ dmesg | tail -1
[523884.039227] [drm] Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS.
random:~$ dmesg | grep -c "Reducing the compressed"
47

This patch makes it DRM_INFO_ONCE() just like the similar message
farther down in that function is pr_info_once().

Cc: stable@vger.kernel.org
Signed-off-by: Peter Jones <pjones@redhat.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1745
Link: https://patchwork.freedesktop.org/patch/msgid/20180706190424.29194-1-pjones@redhat.com
[vsyrjala: Rebase due to per-device logging]
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
(cherry picked from commit 6b7fc6a3e6af4ff5773949d0fed70d8e7f68d5ce)
[Rodrigo: port back to DRM_INFO_ONCE]
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_fbc.c