Skip to content

Commit fc62c4f

Browse files
committed
drm/asahi: file: Remove sync limit
Signed-off-by: Asahi Lina <[email protected]>
1 parent 00eda4a commit fc62c4f

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

drivers/gpu/drm/asahi/file.rs

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use kernel::{dma_fence, drm, uapi, xarray};
2121

2222
const DEBUG_CLASS: DebugFlags = DebugFlags::File;
2323

24-
const MAX_SYNCS_PER_SUBMISSION: u32 = 64;
2524
const MAX_COMMANDS_PER_SUBMISSION: u32 = 64;
2625
pub(crate) const MAX_COMMANDS_IN_FLIGHT: u32 = 1024;
2726

@@ -248,7 +247,7 @@ impl File {
248247
vm_shader_start: VM_SHADER_START,
249248
vm_shader_end: VM_SHADER_END,
250249

251-
max_syncs_per_submission: MAX_SYNCS_PER_SUBMISSION,
250+
max_syncs_per_submission: 0,
252251
max_commands_per_submission: MAX_COMMANDS_PER_SUBMISSION,
253252
max_commands_in_flight: MAX_COMMANDS_IN_FLIGHT,
254253
max_attachments: crate::microseq::MAX_ATTACHMENTS as u32,
@@ -719,24 +718,6 @@ impl File {
719718
cls_pr_debug!(Errors, "submit: Unexpected flags {:#x}\n", data.flags);
720719
return Err(EINVAL);
721720
}
722-
if data.in_sync_count > MAX_SYNCS_PER_SUBMISSION {
723-
cls_pr_debug!(
724-
Errors,
725-
"submit: Too many in syncs: {} > {}\n",
726-
data.in_sync_count,
727-
MAX_SYNCS_PER_SUBMISSION
728-
);
729-
return Err(EINVAL);
730-
}
731-
if data.out_sync_count > MAX_SYNCS_PER_SUBMISSION {
732-
cls_pr_debug!(
733-
Errors,
734-
"submit: Too many out syncs: {} > {}\n",
735-
data.out_sync_count,
736-
MAX_SYNCS_PER_SUBMISSION
737-
);
738-
return Err(EINVAL);
739-
}
740721
if data.command_count > MAX_COMMANDS_PER_SUBMISSION {
741722
cls_pr_debug!(
742723
Errors,

0 commit comments

Comments
 (0)