Skip to content
Snippets Groups Projects
Select Git revision
  • v4.15-rc9
  • master default
  • vpu-jpeg-h264-wip
  • vpu-ficus-v2
  • wip-vpu-jpeg-v1
  • m2m-mc-v3
  • vpu-ficus-wip
  • proc-cmdline
  • v4.18-rc1
  • v4.17
  • v4.17-rc7
  • v4.17-rc6
  • v4.17-rc5
  • v4.17-rc4
  • v4.17-rc3
  • v4.17-rc2
  • v4.17-rc1
  • v4.16
  • v4.16-rc7
  • v4.16-rc6
  • v4.16-rc5
  • v4.16-rc4
  • v4.16-rc3
  • v4.16-rc2
  • v4.16-rc1
  • v4.15
  • v4.15-rc8
27 results

ipc_sysctl.c

Blame
    • Manfred Spraul's avatar
      0050ee05
      ipc/msg: increase MSGMNI, remove scaling · 0050ee05
      Manfred Spraul authored
      
      SysV can be abused to allocate locked kernel memory.  For most systems, a
      small limit doesn't make sense, see the discussion with regards to SHMMAX.
      
      Therefore: increase MSGMNI to the maximum supported.
      
      And: If we ignore the risk of locking too much memory, then an automatic
      scaling of MSGMNI doesn't make sense.  Therefore the logic can be removed.
      
      The code preserves auto_msgmni to avoid breaking any user space applications
      that expect that the value exists.
      
      Notes:
      1) If an administrator must limit the memory allocations, then he can set
      MSGMNI as necessary.
      
      Or he can disable sysv entirely (as e.g. done by Android).
      
      2) MSGMAX and MSGMNB are intentionally not increased, as these values are used
      to control latency vs. throughput:
      If MSGMNB is large, then msgsnd() just returns and more messages can be queued
      before a task switch to a task that calls msgrcv() is forced.
      
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: default avatarManfred Spraul <manfred@colorfullife.com>
      Cc: Davidlohr Bueso <dave@stgolabs.net>
      Cc: Rafael Aquini <aquini@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0050ee05
      History
      ipc/msg: increase MSGMNI, remove scaling
      Manfred Spraul authored
      
      SysV can be abused to allocate locked kernel memory.  For most systems, a
      small limit doesn't make sense, see the discussion with regards to SHMMAX.
      
      Therefore: increase MSGMNI to the maximum supported.
      
      And: If we ignore the risk of locking too much memory, then an automatic
      scaling of MSGMNI doesn't make sense.  Therefore the logic can be removed.
      
      The code preserves auto_msgmni to avoid breaking any user space applications
      that expect that the value exists.
      
      Notes:
      1) If an administrator must limit the memory allocations, then he can set
      MSGMNI as necessary.
      
      Or he can disable sysv entirely (as e.g. done by Android).
      
      2) MSGMAX and MSGMNB are intentionally not increased, as these values are used
      to control latency vs. throughput:
      If MSGMNB is large, then msgsnd() just returns and more messages can be queued
      before a task switch to a task that calls msgrcv() is forced.
      
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: default avatarManfred Spraul <manfred@colorfullife.com>
      Cc: Davidlohr Bueso <dave@stgolabs.net>
      Cc: Rafael Aquini <aquini@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    amdgpu_dm.c 135.39 KiB
    /*
     * Copyright 2015 Advanced Micro Devices, Inc.
     *
     * Permission is hereby granted, free of charge, to any person obtaining a
     * copy of this software and associated documentation files (the "Software"),
     * to deal in the Software without restriction, including without limitation
     * the rights to use, copy, modify, merge, publish, distribute, sublicense,
     * and/or sell copies of the Software, and to permit persons to whom the
     * Software is furnished to do so, subject to the following conditions:
     *
     * The above copyright notice and this permission notice shall be included in
     * all copies or substantial portions of the Software.
     *
     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
     * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
     * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
     * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     * OTHER DEALINGS IN THE SOFTWARE.
     *
     * Authors: AMD
     *
     */
    
    #include "dm_services_types.h"
    #include "dc.h"
    #include "dc/inc/core_types.h"
    
    #include "vid.h"
    #include "amdgpu.h"
    #include "amdgpu_display.h"
    #include "atom.h"
    #include "amdgpu_dm.h"
    #include "amdgpu_pm.h"
    
    #include "amd_shared.h"
    #include "amdgpu_dm_irq.h"
    #include "dm_helpers.h"
    #include "dm_services_types.h"
    #include "amdgpu_dm_mst_types.h"
    
    #include "ivsrcid/ivsrcid_vislands30.h"
    
    #include <linux/module.h>
    #include <linux/moduleparam.h>
    #include <linux/version.h>
    #include <linux/types.h>
    
    #include <drm/drmP.h>
    #include <drm/drm_atomic.h>
    #include <drm/drm_atomic_helper.h>
    #include <drm/drm_dp_mst_helper.h>
    #include <drm/drm_fb_helper.h>
    #include <drm/drm_edid.h>
    
    #include "modules/inc/mod_freesync.h"
    
    #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
    #include "ivsrcid/irqsrcs_dcn_1_0.h"
    
    #include "dcn/dcn_1_0_offset.h"
    #include "dcn/dcn_1_0_sh_mask.h"
    #include "soc15ip.h"
    
    #include "soc15_common.h"
    #endif
    
    #include "modules/inc/mod_freesync.h"