lkml.org 
[lkml]   [2021]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v7 8/8] nouveau: fold multiple DRM_DEBUG_DRIVERs together
    Date
    With DRM_USE_DYNAMIC_DEBUG, each callsite record requires 56 bytes.
    We can combine 12 into one here and save ~620 bytes.

    Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
    ---
    drivers/gpu/drm/nouveau/nouveau_drm.c | 36 +++++++++++++++++----------
    1 file changed, 23 insertions(+), 13 deletions(-)

    diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c
    index ba4cd5f83725..0f45399535bf 100644
    --- a/drivers/gpu/drm/nouveau/nouveau_drm.c
    +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c
    @@ -1245,19 +1245,29 @@ nouveau_drm_pci_table[] = {

    static void nouveau_display_options(void)
    {
    - DRM_DEBUG_DRIVER("Loading Nouveau with parameters:\n");
    -
    - DRM_DEBUG_DRIVER("... tv_disable : %d\n", nouveau_tv_disable);
    - DRM_DEBUG_DRIVER("... ignorelid : %d\n", nouveau_ignorelid);
    - DRM_DEBUG_DRIVER("... duallink : %d\n", nouveau_duallink);
    - DRM_DEBUG_DRIVER("... nofbaccel : %d\n", nouveau_nofbaccel);
    - DRM_DEBUG_DRIVER("... config : %s\n", nouveau_config);
    - DRM_DEBUG_DRIVER("... debug : %s\n", nouveau_debug);
    - DRM_DEBUG_DRIVER("... noaccel : %d\n", nouveau_noaccel);
    - DRM_DEBUG_DRIVER("... modeset : %d\n", nouveau_modeset);
    - DRM_DEBUG_DRIVER("... runpm : %d\n", nouveau_runtime_pm);
    - DRM_DEBUG_DRIVER("... vram_pushbuf : %d\n", nouveau_vram_pushbuf);
    - DRM_DEBUG_DRIVER("... hdmimhz : %d\n", nouveau_hdmimhz);
    + DRM_DEBUG_DRIVER("Loading Nouveau with parameters:\n"
    + "... tv_disable : %d\n"
    + "... ignorelid : %d\n"
    + "... duallink : %d\n"
    + "... nofbaccel : %d\n"
    + "... config : %s\n"
    + "... debug : %s\n"
    + "... noaccel : %d\n"
    + "... modeset : %d\n"
    + "... runpm : %d\n"
    + "... vram_pushbuf : %d\n"
    + "... hdmimhz : %d\n"
    + , nouveau_tv_disable
    + , nouveau_ignorelid
    + , nouveau_duallink
    + , nouveau_nofbaccel
    + , nouveau_config
    + , nouveau_debug
    + , nouveau_noaccel
    + , nouveau_modeset
    + , nouveau_runtime_pm
    + , nouveau_vram_pushbuf
    + , nouveau_hdmimhz);
    }

    static const struct dev_pm_ops nouveau_pm_ops = {
    --
    2.31.1
    \
     
     \ /
      Last update: 2021-08-31 22:23    [W:2.953 / U:0.512 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site