OSDN Git Service

amdgpu: Add context priority override function.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 28 Jan 2019 21:20:20 +0000 (22:20 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 18 Apr 2019 08:39:32 +0000 (10:39 +0200)
commit232dc3305d55d199f4765968d299bfc2a249d920
tree7dc4b87c620f3d3a32c77a1ff2dcc1f46db68edb
parent0b474eab3dd37c09f7f05e55176fcaea76fb4f92
amdgpu: Add context priority override function.

This way we can override the priority of a single context using a
master fd.

Since we cannot usefully create an amdgpu device of a master fd
without the fd deduplication kicking in this takes a plain fd.

This can be used by e.g. radv to get high priority contexts using
a master fd from the primary node or a lease.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
amdgpu/amdgpu-symbol-check
amdgpu/amdgpu.h
amdgpu/amdgpu_cs.c