Skip to content

Commit fded4da

Browse files
committed
drm/asahi: file: Remove sync limit
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 55c074e commit fded4da

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
@@ -22,7 +22,6 @@ use kernel::{dma_fence, drm, uapi, xarray};
2222

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

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

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

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

0 commit comments

Comments
 (0)