Revision 26d2b757fff02bbe971abc39071e263aa0cab924 authored by Janusz Krzysztofik on 22 February 2024, 11:32:40 UTC, committed by Joonas Lahtinen on 06 March 2024, 13:33:57 UTC
Third argument of i915_request_wait() accepts a timeout value in jiffies.
Most users pass either a simple HZ based expression, or a result of
msecs_to_jiffies(), or MAX_SCHEDULE_TIMEOUT, or a very small number not
exceeding 4 if applicable as that value.  However, there is one user --
intel_selftest_wait_for_rq() -- that passes a WAIT_FOR_RESET_TIME symbol,
defined as a large constant value that most probably represents a desired
timeout in ms.  While that usage results in the intended value of timeout
on usual x86_64 kernel configurations, it is not portable across different
architectures and custom kernel configs.

Rename the symbol to clearly indicate intended units and convert it to
jiffies before use.

Fixes: 3a4bfa091c46 ("drm/i915/selftest: Fix workarounds selftest for GuC submission")
Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Cc: Rahul Kumar Singh <rahul.kumar.singh@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240222113347.648945-2-janusz.krzysztofik@linux.intel.com
(cherry picked from commit 6ee3f54b880c91ab2e244eb4ffd4bfed37832b25)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
1 parent 0b385be
History
File Mode Size
9p
adfs
affs
afs
autofs
bcachefs
befs
bfs
btrfs
cachefiles
ceph
coda
configfs
cramfs
crypto
debugfs
devpts
dlm
ecryptfs
efivarfs
efs
erofs
exfat
exportfs
ext2
ext4
f2fs
fat
freevxfs
fuse
gfs2
hfs
hfsplus
hostfs
hpfs
hugetlbfs
iomap
isofs
jbd2
jffs2
jfs
kernfs
lockd
minix
netfs
nfs
nfs_common
nfsd
nilfs2
nls
notify
ntfs
ntfs3
ocfs2
omfs
openpromfs
orangefs
overlayfs
proc
pstore
qnx4
qnx6
quota
ramfs
reiserfs
romfs
smb
squashfs
sysfs
sysv
tracefs
ubifs
udf
ufs
unicode
vboxsf
verity
xfs
zonefs
Kconfig -rw-r--r-- 10.0 KB
Kconfig.binfmt -rw-r--r-- 6.2 KB
Makefile -rw-r--r-- 4.4 KB
aio.c -rw-r--r-- 61.4 KB
anon_inodes.c -rw-r--r-- 8.4 KB
attr.c -rw-r--r-- 15.4 KB
backing-file.c -rw-r--r-- 7.9 KB
bad_inode.c -rw-r--r-- 5.6 KB
binfmt_elf.c -rw-r--r-- 55.9 KB
binfmt_elf_fdpic.c -rw-r--r-- 43.5 KB
binfmt_elf_test.c -rw-r--r-- 2.7 KB
binfmt_flat.c -rw-r--r-- 25.8 KB
binfmt_misc.c -rw-r--r-- 26.2 KB
binfmt_script.c -rw-r--r-- 4.2 KB
buffer.c -rw-r--r-- 82.3 KB
char_dev.c -rw-r--r-- 16.6 KB
compat_binfmt_elf.c -rw-r--r-- 3.8 KB
coredump.c -rw-r--r-- 29.4 KB
d_path.c -rw-r--r-- 11.4 KB
dax.c -rw-r--r-- 55.2 KB
dcache.c -rw-r--r-- 83.6 KB
direct-io.c -rw-r--r-- 38.4 KB
drop_caches.c -rw-r--r-- 1.9 KB
eventfd.c -rw-r--r-- 11.3 KB
eventpoll.c -rw-r--r-- 66.0 KB
exec.c -rw-r--r-- 52.4 KB
fcntl.c -rw-r--r-- 23.4 KB
fhandle.c -rw-r--r-- 7.0 KB
file.c -rw-r--r-- 36.0 KB
file_table.c -rw-r--r-- 12.3 KB
filesystems.c -rw-r--r-- 6.5 KB
fs-writeback.c -rw-r--r-- 80.7 KB
fs_context.c -rw-r--r-- 19.2 KB
fs_parser.c -rw-r--r-- 10.7 KB
fs_pin.c -rw-r--r-- 1.9 KB
fs_struct.c -rw-r--r-- 3.4 KB
fs_types.c -rw-r--r-- 2.5 KB
fsopen.c -rw-r--r-- 11.6 KB
init.c -rw-r--r-- 6.0 KB
inode.c -rw-r--r-- 69.1 KB
internal.h -rw-r--r-- 9.0 KB
ioctl.c -rw-r--r-- 24.0 KB
kernel_read_file.c -rw-r--r-- 4.4 KB
libfs.c -rw-r--r-- 52.5 KB
locks.c -rw-r--r-- 75.8 KB
mbcache.c -rw-r--r-- 12.6 KB
mnt_idmapping.c -rw-r--r-- 8.7 KB
mount.h -rw-r--r-- 4.2 KB
mpage.c -rw-r--r-- 18.5 KB
namei.c -rw-r--r-- 139.8 KB
namespace.c -rw-r--r-- 134.6 KB
nsfs.c -rw-r--r-- 6.3 KB
open.c -rw-r--r-- 40.0 KB
pipe.c -rw-r--r-- 36.8 KB
pnode.c -rw-r--r-- 16.2 KB
pnode.h -rw-r--r-- 2.1 KB
posix_acl.c -rw-r--r-- 31.3 KB
proc_namespace.c -rw-r--r-- 7.9 KB
read_write.c -rw-r--r-- 40.6 KB
readdir.c -rw-r--r-- 15.1 KB
remap_range.c -rw-r--r-- 14.1 KB
select.c -rw-r--r-- 34.7 KB
seq_file.c -rw-r--r-- 25.7 KB
signalfd.c -rw-r--r-- 8.7 KB
splice.c -rw-r--r-- 46.6 KB
stack.c -rw-r--r-- 2.6 KB
stat.c -rw-r--r-- 23.2 KB
statfs.c -rw-r--r-- 9.7 KB
super.c -rw-r--r-- 58.0 KB
sync.c -rw-r--r-- 10.4 KB
sysctls.c -rw-r--r-- 784 bytes
timerfd.c -rw-r--r-- 13.9 KB
userfaultfd.c -rw-r--r-- 59.8 KB
utimes.c -rw-r--r-- 7.7 KB
xattr.c -rw-r--r-- 36.0 KB

back to top