mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: add sched domain bind ioctl
Support binding TSGs to some other scheduling domain than the default one. Binding happens by name until a more robust interface appears in the future, as the name is a natural identifier for users. No other domains are actually created anywhere yet; that will happen in next patches. Jira NVGPU-6788 Change-Id: I5abcdea869b525b0a0e9937302f106f7eee94ec2 Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2628047 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
e692cd9913
commit
fe7ae02f5f
@@ -38,6 +38,12 @@ struct nvgpu_tsg_bind_channel_ex_args {
|
||||
__u8 reserved[16];
|
||||
};
|
||||
|
||||
struct nvgpu_tsg_bind_scheduling_domain_args {
|
||||
/* in: name of the domain this tsg will be bound to */
|
||||
__u8 domain_name[16];
|
||||
__u8 reserved[16];
|
||||
};
|
||||
|
||||
/*
|
||||
* This struct helps to report the SM error state of a single SM.
|
||||
* This acts upon the currently resident TSG context.
|
||||
@@ -131,11 +137,14 @@ struct nvgpu_tsg_set_l2_sector_promotion_args {
|
||||
#define NVGPU_TSG_IOCTL_SET_L2_SECTOR_PROMOTION \
|
||||
_IOW(NVGPU_TSG_IOCTL_MAGIC, 15, \
|
||||
struct nvgpu_tsg_set_l2_sector_promotion_args)
|
||||
#define NVGPU_TSG_IOCTL_BIND_SCHEDULING_DOMAIN \
|
||||
_IOW(NVGPU_TSG_IOCTL_MAGIC, 16, \
|
||||
struct nvgpu_tsg_bind_scheduling_domain_args)
|
||||
#define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \
|
||||
sizeof(struct nvgpu_tsg_bind_channel_ex_args)
|
||||
sizeof(struct nvgpu_tsg_bind_scheduling_domain_args)
|
||||
|
||||
#define NVGPU_TSG_IOCTL_LAST \
|
||||
_IOC_NR(NVGPU_TSG_IOCTL_SET_L2_SECTOR_PROMOTION)
|
||||
_IOC_NR(NVGPU_TSG_IOCTL_BIND_SCHEDULING_DOMAIN)
|
||||
|
||||
/*
|
||||
* /dev/nvhost-dbg-gpu device
|
||||
|
||||
Reference in New Issue
Block a user