linux_dsm_epyc7002/drivers/gpu/drm/amd/amdkfd
Oded Gabbay b8cbab042c drm/amdkfd: Allow user to limit only queues per device
This patch replaces the two current amdkfd module parameters with a new one.

The current parameters that are being replaced are:

- Maximum number of HSA processes
- Maximum number of queues per process

The new parameter that replaces them is called "Maximum queues per device"

This replacement achieves two goals:

- Allows the user to have as many HSA processes as it wants (until
  a maximum of 512 HSA processes in Kaveri).

- Removes the limitation the user had on maximum number of queues per HSA
  process. E.g. the user can now have processes which only have one queue and
  other processes which have hundreds of queues, while before the user
  couldn't have more than 128 queues per process (as default).

The default value of the new parameter is 4096 (32 * 128, which were the
defaults of the old parameters). There is almost no additional GART memory
required for the default case. As a reminder, this amount of queues requires a
little bit below 4MB of GART memory.

v2:
In addition, This patch defines a new counter for queues accounting in the DQM
structure. This is done because the current counter only counts active queues
which allows the user to create more queues than the
max_num_of_queues_per_device module parameter allows.

However, we need the current counter for the runlist packet build process, so
the solution is to have a dedicated counter for this accounting.

Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Ben Goz <ben.goz@amd.com>
2015-01-18 13:18:01 +02:00
..
cik_regs.h amdkfd: Add mqd_manager module 2014-07-17 00:36:17 +03:00
Kconfig amdkfd: Remove DRM_AMDGPU dependency from Kconfig 2014-11-21 22:36:09 +02:00
kfd_chardev.c drm/amdkfd: rewrite kfd_ioctl() according to drm_ioctl() 2015-01-06 19:44:36 +02:00
kfd_crat.h
kfd_device_queue_manager.c drm/amdkfd: Allow user to limit only queues per device 2015-01-18 13:18:01 +02:00
kfd_device_queue_manager.h drm/amdkfd: Allow user to limit only queues per device 2015-01-18 13:18:01 +02:00
kfd_device.c drm/amdkfd: Allow user to limit only queues per device 2015-01-18 13:18:01 +02:00
kfd_doorbell.c amdkfd: explicitely include io.h in kfd_doorbell.c 2014-11-21 22:04:44 +02:00
kfd_flat_memory.c amdkfd: init aperture once per process 2014-11-18 13:56:23 +02:00
kfd_kernel_queue.c amdkfd: Set *buffer_ptr to NULL in case of error 2014-12-04 14:09:02 +02:00
kfd_kernel_queue.h amdkfd: Add kernel queue module 2014-07-17 00:45:35 +03:00
kfd_module.c drm/amdkfd: Allow user to limit only queues per device 2015-01-18 13:18:01 +02:00
kfd_mqd_manager.c drm/amd: Fixing typos in kfd<->kgd interface 2014-12-09 12:00:09 +02:00
kfd_mqd_manager.h amdkfd: Add mqd_manager module 2014-07-17 00:36:17 +03:00
kfd_packet_manager.c amdkfd: Add packet manager module 2014-07-17 00:55:28 +03:00
kfd_pasid.c drm/amdkfd: Allow user to limit only queues per device 2015-01-18 13:18:01 +02:00
kfd_pm4_headers.h amdkfd: Add kernel queue module 2014-07-17 00:45:35 +03:00
kfd_pm4_opcodes.h amdkfd: Add kernel queue module 2014-07-17 00:45:35 +03:00
kfd_priv.h drm/amdkfd: Allow user to limit only queues per device 2015-01-18 13:18:01 +02:00
kfd_process_queue_manager.c drm/amdkfd: Allow user to limit only queues per device 2015-01-18 13:18:01 +02:00
kfd_process.c amdkfd: init aperture once per process 2014-11-18 13:56:23 +02:00
kfd_queue.c amdkfd: Add queue module 2014-07-17 00:18:51 +03:00
kfd_topology.c amdkfd: Fixing topology bug in building sysfs nodes 2014-12-02 16:41:08 +02:00
kfd_topology.h
Makefile drm/amdkfd: Drop interrupt SW ring buffer 2015-01-08 13:27:15 +09:00