* [igt-dev] [PATCH i-g-t] Introduced partial FreeBSD compatibility
@ 2022-09-28 20:21 Jake Freeland
2022-09-28 23:53 ` [igt-dev] ✓ Fi.CI.BAT: success for Introduced partial FreeBSD compatibility (rev6) Patchwork
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Jake Freeland @ 2022-09-28 20:21 UTC (permalink / raw)
To: igt-dev; +Cc: Jake Freeland
FreeBSD's Linux compatbility layer, LinuxKPI, has introduced
modern drm drivers to the FreeBSD desktop. With drm drivers,
comes the need for drm testing. This patch allows a portion
of igt-gpu-tools to compile on FreeBSD
Signed-off-by: Jake Freeland <jfree@freebsd.org>
---
benchmarks/gem_exec_tracer.c | 4 ++
benchmarks/gem_syslatency.c | 6 ++
include/linux-uapi/sync_file.h | 5 ++
lib/i915/intel_memory_region.c | 4 ++
lib/i915/perf.c | 2 +
lib/igt_audio.c | 4 ++
lib/igt_aux.c | 2 +
lib/igt_aux.h | 6 +-
lib/igt_core.c | 8 ++-
lib/igt_core.h | 7 ++
lib/igt_debugfs.c | 2 +
lib/igt_device.c | 2 +
lib/igt_device_scan.c | 4 ++
lib/igt_eld.c | 4 ++
lib/igt_frame.c | 4 ++
lib/igt_freebsd.h | 121 +++++++++++++++++++++++++++++++++
lib/igt_kmod.h | 2 +
lib/igt_kms.c | 4 ++
lib/igt_os.c | 19 ++++++
lib/igt_perf.c | 2 +
lib/igt_perf.h | 4 ++
lib/igt_pm.c | 2 +
lib/igt_sysfs.c | 2 +
lib/tests/igt_exit_handler.c | 4 ++
lib/tests/igt_fork.c | 2 +-
lib/tests/igt_tests_common.h | 9 +++
runner/executor.c | 6 ++
runner/job_list.c | 5 ++
tests/i915/gem_close_race.c | 2 +
tests/i915/gem_mmap_gtt.c | 2 +-
tests/i915/gem_mmap_offset.c | 2 +-
tests/i915/i915_module_load.c | 2 +
tests/i915/i915_pm_backlight.c | 4 ++
tests/i915/i915_pm_rpm.c | 8 +++
tests/kms_content_protection.c | 2 +
tests/kms_flip.c | 4 ++
tests/kms_sysfs_edid_timing.c | 4 ++
tests/tools_test.c | 4 ++
tools/intel_gvtg_test.c | 4 ++
39 files changed, 274 insertions(+), 10 deletions(-)
create mode 100644 lib/igt_freebsd.h
diff --git a/benchmarks/gem_exec_tracer.c b/benchmarks/gem_exec_tracer.c
index e6973991..7e86473e 100644
--- a/benchmarks/gem_exec_tracer.c
+++ b/benchmarks/gem_exec_tracer.c
@@ -41,6 +41,10 @@
#include "intel_aub.h"
#include "intel_chipset.h"
+#ifdef __FreeBSD__
+#include "igt_freebsd.h"
+#endif
+
static int (*libc_close)(int fd);
static int (*libc_ioctl)(int fd, unsigned long request, void *argp);
diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c
index 035ee934..dafc6ac0 100644
--- a/benchmarks/gem_syslatency.c
+++ b/benchmarks/gem_syslatency.c
@@ -42,12 +42,18 @@
#include <limits.h>
#include "drm.h"
+#ifdef __linux__
#include <linux/unistd.h>
+#elif defined(__FreeBSD__)
+#include "igt_freebsd.h"
+#endif
#include "i915/gem_create.h"
#include "i915/gem_ring.h"
+#ifdef __linux__
#define sigev_notify_thread_id _sigev_un._tid
+#endif
static volatile int done;
diff --git a/include/linux-uapi/sync_file.h b/include/linux-uapi/sync_file.h
index b4f2db00..270c1cbc 100644
--- a/include/linux-uapi/sync_file.h
+++ b/include/linux-uapi/sync_file.h
@@ -12,8 +12,13 @@
#ifndef _LINUX_SYNC_H
#define _LINUX_SYNC_H
+#ifdef __linux__
#include <linux/ioctl.h>
#include <linux/types.h>
+#elif defined(__FreeBSD__)
+#include <sys/ioctl.h>
+#include "igt_freebsd.h"
+#endif
/**
* struct sync_merge_data - data passed to merge ioctl
diff --git a/lib/i915/intel_memory_region.c b/lib/i915/intel_memory_region.c
index 568bace9..0a59f290 100644
--- a/lib/i915/intel_memory_region.c
+++ b/lib/i915/intel_memory_region.c
@@ -21,7 +21,11 @@
* IN THE SOFTWARE.
*/
+#ifdef __linux__
#include <linux/limits.h>
+#elif defined(__FreeBSD__)
+#include <limits.h>
+#endif
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/time.h>
diff --git a/lib/i915/perf.c b/lib/i915/perf.c
index d88835ff..beda6b8a 100644
--- a/lib/i915/perf.c
+++ b/lib/i915/perf.c
@@ -29,7 +29,9 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
+#ifdef __linux__
#include <sys/sysmacros.h>
+#endif
#include <sys/types.h>
#include <unistd.h>
diff --git a/lib/igt_audio.c b/lib/igt_audio.c
index e0b1bafe..201a39c6 100644
--- a/lib/igt_audio.c
+++ b/lib/igt_audio.c
@@ -26,6 +26,10 @@
#include "config.h"
+#ifdef __FreeBSD__
+#include <limits.h>
+#endif
+
#include <errno.h>
#include <fcntl.h>
#include <gsl/gsl_fft_real.h>
diff --git a/lib/igt_aux.c b/lib/igt_aux.c
index edb53425..d7e2714f 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -52,7 +52,9 @@
#include <assert.h>
#include <grp.h>
+#ifdef __linux__
#include <proc/readproc.h>
+#endif
#include <libudev.h>
#include "drmtest.h"
diff --git a/lib/igt_aux.h b/lib/igt_aux.h
index c8d487b6..912f36c1 100644
--- a/lib/igt_aux.h
+++ b/lib/igt_aux.h
@@ -34,9 +34,7 @@
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
-#ifdef __linux__
-# include <sys/syscall.h>
-#endif
+#include <sys/syscall.h>
#include <i915/gem_submission.h>
@@ -48,8 +46,8 @@
# ifndef HAVE_GETTID
# define gettid() (pid_t)(syscall(__NR_gettid))
# endif
-#endif
#define sigev_notify_thread_id _sigev_un._tid
+#endif
/* auxialiary igt helpers from igt_aux.c */
/* generally useful helpers */
diff --git a/lib/igt_core.c b/lib/igt_core.c
index e7425326..17d5e013 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -43,9 +43,7 @@
#include <unistd.h>
#include <sys/wait.h>
#include <sys/types.h>
-#ifdef __linux__
#include <sys/syscall.h>
-#endif
#include <pthread.h>
#include <sys/utsname.h>
#include <termios.h>
@@ -786,6 +784,7 @@ static void print_usage(const char *help_str, bool output_on_stderr)
static void oom_adjust_for_doom(void)
{
+#ifdef __linux__
int fd;
const char always_kill[] = "1000";
@@ -793,7 +792,7 @@ static void oom_adjust_for_doom(void)
igt_assert(fd != -1);
igt_assert(write(fd, always_kill, sizeof(always_kill)) == sizeof(always_kill));
close(fd);
-
+#endif
}
/**
@@ -2224,6 +2223,9 @@ bool __igt_fork_helper(struct igt_helper_process *proc)
case 0:
reset_helper_process_list();
oom_adjust_for_doom();
+#ifdef __FreeBSD__
+ raise(SIGTERM);
+#endif
return true;
default:
diff --git a/lib/igt_core.h b/lib/igt_core.h
index aa98e8ed..18e1009d 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -31,7 +31,11 @@
#define IGT_CORE_H
#include <assert.h>
+#ifdef __linux__
#include <byteswap.h>
+#elif defined(__FreeBSD__)
+#include <sys/endian.h>
+#endif
#include <setjmp.h>
#include <stdbool.h>
#include <stdint.h>
@@ -47,6 +51,9 @@
#define IGT_LOG_DOMAIN (NULL)
#endif
+#ifdef __FreeBSD__
+#include "igt_freebsd.h"
+#endif
#ifndef STATIC_ANALYSIS_BUILD
#if defined(__clang_analyzer__) || defined(__COVERITY__) || defined(__KLOCWORK__)
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index a56688a5..fa1e3b69 100644
--- a/lib/igt_debugfs.c
+++ b/lib/igt_debugfs.c
@@ -25,7 +25,9 @@
#include <inttypes.h>
#include <sys/stat.h>
#include <sys/mount.h>
+#ifdef __linux__
#include <sys/sysmacros.h>
+#endif
#include <dirent.h>
#include <errno.h>
#include <stdio.h>
diff --git a/lib/igt_device.c b/lib/igt_device.c
index fddfba72..49b77122 100644
--- a/lib/igt_device.c
+++ b/lib/igt_device.c
@@ -25,7 +25,9 @@
#include <fcntl.h>
#include <sys/stat.h>
+#ifdef __linux__
#include <sys/sysmacros.h>
+#endif
#include "igt.h"
#include "igt_device.h"
#include "igt_sysfs.h"
diff --git a/lib/igt_device_scan.c b/lib/igt_device_scan.c
index eb6b45b8..6a921d52 100644
--- a/lib/igt_device_scan.c
+++ b/lib/igt_device_scan.c
@@ -32,7 +32,11 @@
#include <fcntl.h>
#include <glib.h>
#include <libudev.h>
+#ifdef __linux__
#include <linux/limits.h>
+#elif defined(__FreeBSD__)
+#include <limits.h>
+#endif
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
diff --git a/lib/igt_eld.c b/lib/igt_eld.c
index ef6625df..e05ad6de 100644
--- a/lib/igt_eld.c
+++ b/lib/igt_eld.c
@@ -23,6 +23,10 @@
* Authors: Simon Ser <simon.ser@intel.com>
*/
+#ifdef __FreeBSD__
+#include <limits.h>
+#endif
+
#include "config.h"
#include <dirent.h>
diff --git a/lib/igt_frame.c b/lib/igt_frame.c
index 45523a79..ab74e678 100644
--- a/lib/igt_frame.c
+++ b/lib/igt_frame.c
@@ -24,6 +24,10 @@
* Paul Kocialkowski <paul.kocialkowski@linux.intel.com>
*/
+#ifdef __FreeBSD__
+#include <limits.h>
+#endif
+
#include "config.h"
#include <fcntl.h>
diff --git a/lib/igt_freebsd.h b/lib/igt_freebsd.h
new file mode 100644
index 00000000..81ba5c01
--- /dev/null
+++ b/lib/igt_freebsd.h
@@ -0,0 +1,121 @@
+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright (c) 2022, Jake Freeland <jfree@FreeBSD.org>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#if !defined(IGT_FREEBSD_H) && defined(__FreeBSD__)
+#define IGT_FREEBSD_H
+
+#include <sys/errno.h>
+#include <sys/mman.h>
+#include <sys/mount.h>
+#include <sys/sched.h>
+#include <sys/types.h>
+#include <sys/watchdog.h>
+
+#include <pthread.h>
+#include <setjmp.h>
+#include <signal.h>
+#include <unistd.h>
+
+/*
+ * Proper substitutions:
+ * The following macros replace Linux-specific functions
+ * and macros with their FreeBSD equivalents.
+ */
+
+#define __s32 int32_t
+#define __u32 uint32_t
+#define __u64 uint64_t
+
+#define sighandler_t sig_t
+#define ino64_t ino_t
+
+#define jmp_buf sigjmp_buf
+
+#define PTRACE_TRACEME PT_TRACE_ME
+#define PTRACE_ATTACH PT_ATTACH
+#define PTRACE_PEEKDATA PT_READ_D
+#define PTRACE_POKEDATA PT_WRITE_D
+#define PTRACE_DETACH PT_DETACH
+
+#define I2C_RDWR I2CRDWR
+#define I2C_M_RD IIC_M_RD
+#define i2c_msg iic_msg
+#define i2c_rdwr_ioctl_data iic_rdwr_data
+
+#define _IOC_TYPE(nr) (((nr) >> 8) & 255)
+
+#define SYS_getdents64 SYS_freebsd11_getdents
+
+#define mount(src, dest, fstype, flags, data) \
+ mount(fstype, dest, flags, data)
+
+/*
+ * Improper substitutions:
+ * The following macros are temporary replacements for functions
+ * and macros that exist on Linux and do not exist on FreeBSD.
+ */
+
+#define ETIME ETIMEDOUT
+
+#define MAP_POPULATE MAP_PREFAULT_READ
+
+#define MADV_HUGEPAGE MADV_SEQUENTIAL
+#define MADV_DONTFORK MADV_NOSYNC
+
+#define WDIOC_KEEPALIVE WDIOCPATPAT
+
+#define SCHED_RESET_ON_FORK 0
+#define SCHED_IDLE SCHED_OTHER
+
+#define gettid() getpid()
+
+#define pthread_sigqueue(pid, signo, value) \
+ sigqueue(pid, signo, value)
+
+#define signalfd(fd, mask, flags) -ENOSYS
+#define timerfd_create(c, f) -ENOSYS
+#define timerfd_settime(fd, f, n, o) -ENOSYS
+
+/*
+ * Macro conflict resolution.
+ */
+
+#undef ALIGN
+#undef PAGE_SIZE
+
+struct signalfd_siginfo {
+ uint32_t ssi_signo;
+ uint32_t ssi_pid;
+};
+
+struct kmod_module {
+ size_t size;
+};
+
+typedef struct {
+ char state;
+} proc_t;
+
+#endif /* IGT_FREEBSD_H */
diff --git a/lib/igt_kmod.h b/lib/igt_kmod.h
index f98dd29f..6596092b 100644
--- a/lib/igt_kmod.h
+++ b/lib/igt_kmod.h
@@ -24,7 +24,9 @@
#ifndef IGT_KMOD_H
#define IGT_KMOD_H
+#ifdef __linux__
#include <libkmod.h>
+#endif
#include "igt_list.h"
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 665594aa..532a3aa8 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -43,6 +43,10 @@
#include <sys/kd.h>
#endif
+#ifdef __FreeBSD__
+#include <sys/consio.h>
+#endif
+
#include <libudev.h>
#include <poll.h>
#include <errno.h>
diff --git a/lib/igt_os.c b/lib/igt_os.c
index bdd5d933..bb6994e1 100644
--- a/lib/igt_os.c
+++ b/lib/igt_os.c
@@ -44,6 +44,9 @@
#include <sys/sysinfo.h>
#elif defined(HAVE_SWAPCTL) /* Solaris */
#include <sys/swap.h>
+#elif defined(__FreeBSD__)
+#include <sys/sysctl.h>
+#include <sys/types.h>
#endif
#include <sys/resource.h>
@@ -148,6 +151,15 @@ igt_get_avail_ram_mb(void)
npages = sysconf(_SC_AVPHYS_PAGES);
retval = (uint64_t) pagesize * npages;
+#elif defined(__FreeBSD__)
+ uint64_t npages, pagesize;
+ size_t npages_len = sizeof(npages);
+ size_t pagesize_len = sizeof(pagesize);
+
+ sysctlbyname("vm.stats.vm.v_free_count", &npages, &npages_len, NULL, 0);
+ sysctlbyname("vm.stats.vm.v_page_size", &pagesize, &pagesize_len, NULL, 0);
+
+ retval = pagesize * npages;
#else
#error "Unknown how to get available RAM for this OS"
#endif
@@ -210,6 +222,13 @@ igt_get_total_swap_mb(void)
free(buf);
retval = (uint64_t) pagesize * totalpages;
+#elif defined(__FreeBSD__)
+ uint64_t swap_total;
+ size_t swap_total_len = sizeof(swap_total);
+
+ sysctlbyname("vm.swap_total", &swap_total, &swap_total_len, NULL, 0);
+
+ retval = swap_total;
#else
#warning "Unknown how to get swap size for this OS"
return 0;
diff --git a/lib/igt_perf.c b/lib/igt_perf.c
index b743859f..11c91c5f 100644
--- a/lib/igt_perf.c
+++ b/lib/igt_perf.c
@@ -4,8 +4,10 @@
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
+#ifdef __linux__
#include <sys/sysinfo.h>
#include <sys/sysmacros.h>
+#endif
#include <time.h>
#include <unistd.h>
diff --git a/lib/igt_perf.h b/lib/igt_perf.h
index a8328c70..0cd91386 100644
--- a/lib/igt_perf.h
+++ b/lib/igt_perf.h
@@ -27,10 +27,13 @@
#include <stdint.h>
+#ifdef __linux__
#include <linux/perf_event.h>
+#endif
#include "igt_gt.h"
+#ifdef __linux__
static inline int
perf_event_open(struct perf_event_attr *attr,
pid_t pid,
@@ -50,6 +53,7 @@ perf_event_open(struct perf_event_attr *attr,
attr->size = sizeof(*attr);
return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags);
}
+#endif /* __linux__ */
uint64_t igt_perf_type_id(const char *device);
int igt_perf_open(uint64_t type, uint64_t config);
diff --git a/lib/igt_pm.c b/lib/igt_pm.c
index 312288d0..1e6e9ed3 100644
--- a/lib/igt_pm.c
+++ b/lib/igt_pm.c
@@ -33,7 +33,9 @@
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
+#ifdef __linux__
#include <sys/sysmacros.h>
+#endif
#include <sys/types.h>
#include <dirent.h>
diff --git a/lib/igt_sysfs.c b/lib/igt_sysfs.c
index 9c307694..a913be4c 100644
--- a/lib/igt_sysfs.c
+++ b/lib/igt_sysfs.c
@@ -24,7 +24,9 @@
#include <inttypes.h>
#include <sys/stat.h>
+#ifdef __linux__
#include <sys/sysmacros.h>
+#endif
#include <sys/mount.h>
#include <errno.h>
#include <stdarg.h>
diff --git a/lib/tests/igt_exit_handler.c b/lib/tests/igt_exit_handler.c
index 892a7f14..d2381944 100644
--- a/lib/tests/igt_exit_handler.c
+++ b/lib/tests/igt_exit_handler.c
@@ -125,5 +125,9 @@ int main(int argc, char **argv)
internal_assert_wexited(status, IGT_EXIT_SKIP);
status = testfunc(SIG);
+#ifdef __linux__
internal_assert_wsignaled(status, SIGTERM);
+#elif defined(__FreeBSD__)
+ internal_assert(status == 0);
+#endif
}
diff --git a/lib/tests/igt_fork.c b/lib/tests/igt_fork.c
index d19d0945..c7193b06 100644
--- a/lib/tests/igt_fork.c
+++ b/lib/tests/igt_fork.c
@@ -109,7 +109,7 @@ __noreturn static void igt_fork_timeout_leak(void)
__noreturn static void subtest_leak(void)
{
pid_t *children =
- mmap(0, 4096, PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
+ mmap(0, 4096, PROT_WRITE | PROT_READ, MAP_SHARED | MAP_ANON, -1, 0);
const int num_children = 4096 / sizeof(*children);
igt_subtest_init(fake_argc, fake_argv);
diff --git a/lib/tests/igt_tests_common.h b/lib/tests/igt_tests_common.h
index 058f6265..e8183897 100644
--- a/lib/tests/igt_tests_common.h
+++ b/lib/tests/igt_tests_common.h
@@ -48,8 +48,17 @@ static inline void internal_assert_wexited(int wstatus, int exitcode)
static inline void internal_assert_wsignaled(int wstatus, int signal)
{
+#ifdef __linux__
internal_assert(WIFSIGNALED(wstatus) &&
WTERMSIG(wstatus) == signal);
+#elif defined(__FreeBSD__)
+ if (WIFSIGNALED(wstatus))
+ internal_assert(WTERMSIG(wstatus) == signal);
+ else if (WIFEXITED(wstatus))
+ internal_assert(WEXITSTATUS(wstatus) == signal + 128);
+ else
+ internal_assert(0);
+#endif
}
static inline void internal_assert_not_wsignaled(int wstatus)
diff --git a/runner/executor.c b/runner/executor.c
index 964d0063..c54072cf 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -2,7 +2,9 @@
#include <errno.h>
#include <fcntl.h>
#include <glib.h>
+#ifdef __linux__
#include <linux/watchdog.h>
+#endif
#if HAVE_OPING
#include <oping.h>
#endif
@@ -33,6 +35,10 @@
#define KMSG_HEADER "[IGT] "
#define KMSG_WARN 4
+#ifdef __FreeBSD__
+#include <sys/watchdog.h>
+#endif
+
static struct {
int *fds;
size_t num_dogs;
diff --git a/runner/job_list.c b/runner/job_list.c
index 520a98da..6bfa7162 100644
--- a/runner/job_list.c
+++ b/runner/job_list.c
@@ -1,7 +1,12 @@
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#ifdef __linux__
#include <linux/limits.h>
+#elif defined(__FreeBSD__)
+#include <sys/wait.h>
+#include <limits.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/i915/gem_close_race.c b/tests/i915/gem_close_race.c
index 938fde8f..42fe1657 100644
--- a/tests/i915/gem_close_race.c
+++ b/tests/i915/gem_close_race.c
@@ -61,7 +61,9 @@ static bool has_softpin;
static uint64_t exec_addr;
static uint64_t data_addr;
+#ifdef __linux__
#define sigev_notify_thread_id _sigev_un._tid
+#endif
static void selfcopy(int fd, uint32_t ctx, uint32_t handle, int loops)
{
diff --git a/tests/i915/gem_mmap_gtt.c b/tests/i915/gem_mmap_gtt.c
index e39b9047..4f05eb18 100644
--- a/tests/i915/gem_mmap_gtt.c
+++ b/tests/i915/gem_mmap_gtt.c
@@ -566,7 +566,7 @@ test_ptrace(int fd)
for (int i = 0; i < sz / sizeof(long); i++) {
long ret;
- ret = ptrace(PTRACE_PEEKDATA, pid, gtt + i);
+ ret = ptrace(PTRACE_PEEKDATA, pid, gtt + i, NULL);
igt_assert_eq_u64(ret, CC);
cpy[i] = ret;
diff --git a/tests/i915/gem_mmap_offset.c b/tests/i915/gem_mmap_offset.c
index 7e8c02d1..fc4245f6 100644
--- a/tests/i915/gem_mmap_offset.c
+++ b/tests/i915/gem_mmap_offset.c
@@ -520,7 +520,7 @@ static void test_ptrace(int i915)
for (int i = 0; i < SZ / sizeof(long); i++) {
long ret;
- ret = ptrace(PTRACE_PEEKDATA, pid, ptr + i);
+ ret = ptrace(PTRACE_PEEKDATA, pid, ptr + i, NULL);
igt_assert_eq_u64(ret, CC);
cpy[i] = ret;
diff --git a/tests/i915/i915_module_load.c b/tests/i915/i915_module_load.c
index 4c72157c..9bec4c18 100644
--- a/tests/i915/i915_module_load.c
+++ b/tests/i915/i915_module_load.c
@@ -23,7 +23,9 @@
#include "igt.h"
#include <dirent.h>
#include <sys/utsname.h>
+#ifdef __linux__
#include <linux/limits.h>
+#endif
#include <signal.h>
#include <libgen.h>
#include <signal.h>
diff --git a/tests/i915/i915_pm_backlight.c b/tests/i915/i915_pm_backlight.c
index cafae7f7..c520cf20 100644
--- a/tests/i915/i915_pm_backlight.c
+++ b/tests/i915/i915_pm_backlight.c
@@ -46,6 +46,10 @@ struct context {
#define FADESTEPS 10
#define FADESPEED 100 /* milliseconds between steps */
+#ifdef __FreeBSD__
+#include <libgen.h>
+#endif
+
IGT_TEST_DESCRIPTION("Basic backlight sysfs test");
static int backlight_read(int *result, const char *fname)
diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index e95875dc..761e76f9 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -40,8 +40,10 @@
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef __linux__
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
+#endif
#include <drm.h>
@@ -54,6 +56,12 @@
#include "igt_device.h"
#include "igt_edid.h"
+#ifdef __FreeBSD__
+#include <limits.h>
+#include <dev/iicbus/iic.h>
+#define addr slave
+#endif
+
#define MSR_PC8_RES 0x630
#define MSR_PC9_RES 0x631
#define MSR_PC10_RES 0x632
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index 3041f1cd..e0e5af78 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -24,7 +24,9 @@
#include <poll.h>
#include <fcntl.h>
+#ifdef __linux__
#include <sys/epoll.h>
+#endif
#include <sys/stat.h>
#include <libudev.h>
#include "igt.h"
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 0567edea..1127e418 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -45,6 +45,10 @@
#include "i915/gem_create.h"
#include "igt_stats.h"
+#ifdef __FreeBSD__
+#include <sys/consio.h>
+#endif
+
#define TEST_DPMS (1 << 0)
#define TEST_PAN (1 << 3)
diff --git a/tests/kms_sysfs_edid_timing.c b/tests/kms_sysfs_edid_timing.c
index 77521108..cd980c6a 100644
--- a/tests/kms_sysfs_edid_timing.c
+++ b/tests/kms_sysfs_edid_timing.c
@@ -26,6 +26,10 @@
#include <fcntl.h>
#include <sys/stat.h>
+#ifdef __FreeBSD__
+#include <limits.h>
+#endif
+
#define THRESHOLD_PER_CONNECTOR 150
#define THRESHOLD_PER_CONNECTOR_MEAN 140
#define THRESHOLD_ALL_CONNECTORS_MEAN 100
diff --git a/tests/tools_test.c b/tests/tools_test.c
index 237f0433..89a19d11 100644
--- a/tests/tools_test.c
+++ b/tests/tools_test.c
@@ -28,7 +28,11 @@
#include <fcntl.h>
#include <libgen.h>
#include <unistd.h>
+#ifdef __linux__
#include <linux/limits.h>
+#elif defined(__FreeBSD__)
+#include <limits.h>
+#endif
#define TOOLS "../tools/"
diff --git a/tools/intel_gvtg_test.c b/tools/intel_gvtg_test.c
index ad5ee6a6..3e53c6d9 100644
--- a/tools/intel_gvtg_test.c
+++ b/tools/intel_gvtg_test.c
@@ -55,6 +55,10 @@
#include <limits.h>
#include <dirent.h>
+#ifdef __FreeBSD__
+#include <sys/wait.h>
+#endif
+
#define RANDOM(x) (rand() % x)
--
2.37.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for Introduced partial FreeBSD compatibility (rev6)
2022-09-28 20:21 [igt-dev] [PATCH i-g-t] Introduced partial FreeBSD compatibility Jake Freeland
@ 2022-09-28 23:53 ` Patchwork
2022-09-29 23:15 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-10-04 9:41 ` [igt-dev] [PATCH i-g-t] Introduced partial FreeBSD compatibility Petri Latvala
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2022-09-28 23:53 UTC (permalink / raw)
To: Jake Freeland; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 8074 bytes --]
== Series Details ==
Series: Introduced partial FreeBSD compatibility (rev6)
URL : https://patchwork.freedesktop.org/series/108081/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12197 -> IGTPW_7877
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/index.html
Participating hosts (45 -> 45)
------------------------------
Additional (2): fi-rkl-guc fi-tgl-dsi
Missing (2): fi-icl-u2 fi-bdw-samus
Known issues
------------
Here are the changes found in IGTPW_7877 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_lmem_swapping@basic:
- fi-rkl-guc: NOTRUN -> [SKIP][1] ([i915#4613]) +3 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-rkl-guc/igt@gem_lmem_swapping@basic.html
* igt@gem_tiled_pread_basic:
- fi-rkl-guc: NOTRUN -> [SKIP][2] ([i915#3282])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-rkl-guc/igt@gem_tiled_pread_basic.html
* igt@i915_pm_backlight@basic-brightness:
- fi-rkl-guc: NOTRUN -> [SKIP][3] ([i915#3012])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-rkl-guc/igt@i915_pm_backlight@basic-brightness.html
* igt@i915_pm_rps@basic-api:
- fi-rkl-guc: NOTRUN -> [SKIP][4] ([i915#6621])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-rkl-guc/igt@i915_pm_rps@basic-api.html
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-hsw-4770: NOTRUN -> [SKIP][5] ([fdo#109271] / [fdo#111827])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-hsw-4770/igt@kms_chamelium@common-hpd-after-suspend.html
- bat-dg1-5: NOTRUN -> [SKIP][6] ([fdo#111827])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/bat-dg1-5/igt@kms_chamelium@common-hpd-after-suspend.html
* igt@kms_chamelium@hdmi-crc-fast:
- fi-rkl-guc: NOTRUN -> [SKIP][7] ([fdo#111827]) +8 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-rkl-guc/igt@kms_chamelium@hdmi-crc-fast.html
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor:
- fi-rkl-guc: NOTRUN -> [SKIP][8] ([i915#4103])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-rkl-guc/igt@kms_cursor_legacy@basic-busy-flip-before-cursor.html
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size:
- fi-bsw-kefka: [PASS][9] -> [FAIL][10] ([i915#6298])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/fi-bsw-kefka/igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-bsw-kefka/igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size.html
* igt@kms_force_connector_basic@force-load-detect:
- fi-rkl-guc: NOTRUN -> [SKIP][11] ([fdo#109285])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-rkl-guc/igt@kms_force_connector_basic@force-load-detect.html
* igt@kms_pipe_crc_basic@suspend-read-crc:
- bat-dg1-5: NOTRUN -> [SKIP][12] ([i915#4078])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/bat-dg1-5/igt@kms_pipe_crc_basic@suspend-read-crc.html
* igt@kms_psr@sprite_plane_onoff:
- fi-rkl-guc: NOTRUN -> [SKIP][13] ([i915#1072]) +3 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-rkl-guc/igt@kms_psr@sprite_plane_onoff.html
* igt@kms_setmode@basic-clone-single-crtc:
- fi-rkl-guc: NOTRUN -> [SKIP][14] ([i915#3555] / [i915#4098])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-rkl-guc/igt@kms_setmode@basic-clone-single-crtc.html
* igt@prime_vgem@basic-userptr:
- fi-rkl-guc: NOTRUN -> [SKIP][15] ([fdo#109295] / [i915#3301] / [i915#3708])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-rkl-guc/igt@prime_vgem@basic-userptr.html
* igt@prime_vgem@basic-write:
- fi-rkl-guc: NOTRUN -> [SKIP][16] ([fdo#109295] / [i915#3291] / [i915#3708]) +2 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-rkl-guc/igt@prime_vgem@basic-write.html
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3@smem:
- {bat-adlm-1}: [DMESG-WARN][17] ([i915#2867]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/bat-adlm-1/igt@gem_exec_suspend@basic-s3@smem.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/bat-adlm-1/igt@gem_exec_suspend@basic-s3@smem.html
* igt@i915_selftest@live@gt_engines:
- bat-dg1-5: [INCOMPLETE][19] ([i915#4418]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/bat-dg1-5/igt@i915_selftest@live@gt_engines.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/bat-dg1-5/igt@i915_selftest@live@gt_engines.html
* igt@i915_selftest@live@hangcheck:
- fi-hsw-4770: [INCOMPLETE][21] ([i915#4785]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/fi-hsw-4770/igt@i915_selftest@live@hangcheck.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/fi-hsw-4770/igt@i915_selftest@live@hangcheck.html
* igt@kms_pipe_crc_basic@suspend-read-crc@pipe-d-dp-2:
- {bat-dg2-11}: [FAIL][23] ([i915#6818]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/bat-dg2-11/igt@kms_pipe_crc_basic@suspend-read-crc@pipe-d-dp-2.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/bat-dg2-11/igt@kms_pipe_crc_basic@suspend-read-crc@pipe-d-dp-2.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1759]: https://gitlab.freedesktop.org/drm/intel/issues/1759
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4418]: https://gitlab.freedesktop.org/drm/intel/issues/4418
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#6298]: https://gitlab.freedesktop.org/drm/intel/issues/6298
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6818]: https://gitlab.freedesktop.org/drm/intel/issues/6818
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6668 -> IGTPW_7877
CI-20190529: 20190529
CI_DRM_12197: cafa326de8e7860d45639e61bf66ec9c218207b1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7877: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/index.html
IGT_6668: 5f29c9369550164b35b65baaaeba4b370f434cf1 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/index.html
[-- Attachment #2: Type: text/html, Size: 9138 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [igt-dev] ✗ Fi.CI.IGT: failure for Introduced partial FreeBSD compatibility (rev6)
2022-09-28 20:21 [igt-dev] [PATCH i-g-t] Introduced partial FreeBSD compatibility Jake Freeland
2022-09-28 23:53 ` [igt-dev] ✓ Fi.CI.BAT: success for Introduced partial FreeBSD compatibility (rev6) Patchwork
@ 2022-09-29 23:15 ` Patchwork
2022-10-04 9:41 ` [igt-dev] [PATCH i-g-t] Introduced partial FreeBSD compatibility Petri Latvala
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2022-09-29 23:15 UTC (permalink / raw)
To: Jake Freeland; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 49277 bytes --]
== Series Details ==
Series: Introduced partial FreeBSD compatibility (rev6)
URL : https://patchwork.freedesktop.org/series/108081/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12197_full -> IGTPW_7877_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_7877_full absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_7877_full, please notify your bug team to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/index.html
Participating hosts (12 -> 9)
------------------------------
Missing (3): pig-skl-6260u pig-kbl-iris pig-glk-j5005
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_7877_full:
### IGT changes ###
#### Possible regressions ####
* {igt@gem_mmap_offset@ptrace@lmem0-fixed} (NEW):
- {shard-dg1}: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-dg1-13/igt@gem_mmap_offset@ptrace@lmem0-fixed.html
* igt@kms_atomic_transition@plane-toggle-modeset-transition@pipe-a-edp-1:
- shard-tglb: [PASS][2] -> [INCOMPLETE][3]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-tglb7/igt@kms_atomic_transition@plane-toggle-modeset-transition@pipe-a-edp-1.html
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb8/igt@kms_atomic_transition@plane-toggle-modeset-transition@pipe-a-edp-1.html
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses.
They do not affect the overall result.
* igt@kms_plane_alpha_blend@pipe-d-constant-alpha-mid:
- {shard-rkl}: NOTRUN -> [SKIP][4] +59 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-1/igt@kms_plane_alpha_blend@pipe-d-constant-alpha-mid.html
* igt@prime_nv_api@i915_self_import_to_different_fd:
- {shard-dg1}: NOTRUN -> [SKIP][5] +57 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-dg1-15/igt@prime_nv_api@i915_self_import_to_different_fd.html
New tests
---------
New tests have been introduced between CI_DRM_12197_full and IGTPW_7877_full:
### New IGT tests (31) ###
* igt@gem_mmap_offset@ptrace@lmem0-fixed:
- Statuses : 1 fail(s)
- Exec time: [0.03] s
* igt@gem_mmap_offset@ptrace@smem0-fixed:
- Statuses : 1 pass(s)
- Exec time: [0.03] s
* igt@kms_color@degamma@pipe-b-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [0.43] s
* igt@kms_cursor_crc@cursor-onscreen-256x85@pipe-a-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [3.36] s
* igt@kms_cursor_crc@cursor-onscreen-256x85@pipe-b-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [3.32] s
* igt@kms_cursor_crc@cursor-onscreen-256x85@pipe-c-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [3.39] s
* igt@kms_cursor_crc@cursor-onscreen-256x85@pipe-d-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [3.35] s
* igt@kms_cursor_crc@cursor-rapid-movement-128x42@pipe-a-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.40] s
* igt@kms_cursor_crc@cursor-rapid-movement-128x42@pipe-b-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.25] s
* igt@kms_cursor_crc@cursor-rapid-movement-128x42@pipe-c-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.23] s
* igt@kms_cursor_crc@cursor-rapid-movement-128x42@pipe-d-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.24] s
* igt@kms_lease@empty_lease@pipe-a-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.14] s
* igt@kms_lease@empty_lease@pipe-b-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.03] s
* igt@kms_lease@empty_lease@pipe-c-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.03] s
* igt@kms_lease@empty_lease@pipe-d-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.03] s
* igt@kms_lease@lease_revoke@pipe-a-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.25] s
* igt@kms_lease@lease_revoke@pipe-b-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.11] s
* igt@kms_lease@lease_revoke@pipe-c-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.11] s
* igt@kms_lease@lease_revoke@pipe-d-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.11] s
* igt@kms_lease@lessee_list@pipe-a-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.15] s
* igt@kms_lease@lessee_list@pipe-b-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.03] s
* igt@kms_lease@lessee_list@pipe-c-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.03] s
* igt@kms_lease@lessee_list@pipe-d-hdmi-a-4:
- Statuses : 1 pass(s)
- Exec time: [0.03] s
* igt@kms_lease@setcrtc_implicit_plane@pipe-a-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [0.31] s
* igt@kms_lease@setcrtc_implicit_plane@pipe-b-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [0.15] s
* igt@kms_lease@setcrtc_implicit_plane@pipe-c-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [0.15] s
* igt@kms_lease@setcrtc_implicit_plane@pipe-d-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [0.14] s
* igt@kms_plane_cursor@viewport@pipe-b-hdmi-a-3-size-128:
- Statuses : 1 pass(s)
- Exec time: [3.10] s
* igt@kms_plane_cursor@viewport@pipe-b-hdmi-a-3-size-256:
- Statuses : 1 pass(s)
- Exec time: [3.13] s
* igt@kms_plane_cursor@viewport@pipe-b-hdmi-a-3-size-64:
- Statuses : 1 pass(s)
- Exec time: [3.10] s
* igt@kms_rmfb@rmfb-ioctl@pipe-b-hdmi-a-3:
- Statuses : 1 pass(s)
- Exec time: [0.20] s
Known issues
------------
Here are the changes found in IGTPW_7877_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_balancer@parallel-bb-first:
- shard-iclb: [PASS][6] -> [SKIP][7] ([i915#4525]) +1 similar issue
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb1/igt@gem_exec_balancer@parallel-bb-first.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb6/igt@gem_exec_balancer@parallel-bb-first.html
* igt@gem_exec_fair@basic-none-vip@rcs0:
- shard-tglb: NOTRUN -> [FAIL][8] ([i915#2842])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb8/igt@gem_exec_fair@basic-none-vip@rcs0.html
- shard-glk: NOTRUN -> [FAIL][9] ([i915#2842])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-glk1/igt@gem_exec_fair@basic-none-vip@rcs0.html
- shard-iclb: NOTRUN -> [FAIL][10] ([i915#2842])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb2/igt@gem_exec_fair@basic-none-vip@rcs0.html
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-apl: [PASS][11] -> [FAIL][12] ([i915#2842])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-apl8/igt@gem_exec_fair@basic-pace-share@rcs0.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl8/igt@gem_exec_fair@basic-pace-share@rcs0.html
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [PASS][13] -> [FAIL][14] ([i915#2842]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb1/igt@gem_exec_fair@basic-throttle@rcs0.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb8/igt@gem_exec_fair@basic-throttle@rcs0.html
* igt@gem_exec_params@no-bsd:
- shard-iclb: NOTRUN -> [SKIP][15] ([fdo#109283])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb3/igt@gem_exec_params@no-bsd.html
- shard-tglb: NOTRUN -> [SKIP][16] ([fdo#109283])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb7/igt@gem_exec_params@no-bsd.html
* igt@gem_lmem_swapping@parallel-random-verify:
- shard-apl: NOTRUN -> [SKIP][17] ([fdo#109271] / [i915#4613]) +4 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl8/igt@gem_lmem_swapping@parallel-random-verify.html
- shard-tglb: NOTRUN -> [SKIP][18] ([i915#4613]) +3 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb7/igt@gem_lmem_swapping@parallel-random-verify.html
* igt@gem_lmem_swapping@random-engines:
- shard-glk: NOTRUN -> [SKIP][19] ([fdo#109271] / [i915#4613]) +4 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-glk8/igt@gem_lmem_swapping@random-engines.html
* igt@gem_lmem_swapping@verify:
- shard-iclb: NOTRUN -> [SKIP][20] ([i915#4613]) +3 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb5/igt@gem_lmem_swapping@verify.html
* igt@gem_pxp@protected-raw-src-copy-not-readible:
- shard-iclb: NOTRUN -> [SKIP][21] ([i915#4270])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb2/igt@gem_pxp@protected-raw-src-copy-not-readible.html
- shard-tglb: NOTRUN -> [SKIP][22] ([i915#4270])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb8/igt@gem_pxp@protected-raw-src-copy-not-readible.html
* igt@gem_render_copy@y-tiled-to-vebox-y-tiled:
- shard-iclb: NOTRUN -> [SKIP][23] ([i915#768])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb3/igt@gem_render_copy@y-tiled-to-vebox-y-tiled.html
* igt@gem_userptr_blits@dmabuf-unsync:
- shard-tglb: NOTRUN -> [SKIP][24] ([i915#3297])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb8/igt@gem_userptr_blits@dmabuf-unsync.html
- shard-iclb: NOTRUN -> [SKIP][25] ([i915#3297])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb7/igt@gem_userptr_blits@dmabuf-unsync.html
* igt@gen9_exec_parse@unaligned-jump:
- shard-iclb: NOTRUN -> [SKIP][26] ([i915#2856])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb1/igt@gen9_exec_parse@unaligned-jump.html
- shard-tglb: NOTRUN -> [SKIP][27] ([i915#2527] / [i915#2856])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb1/igt@gen9_exec_parse@unaligned-jump.html
* igt@i915_selftest@perf@engine_cs:
- shard-snb: [PASS][28] -> [SKIP][29] ([fdo#109271])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-snb4/igt@i915_selftest@perf@engine_cs.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-snb5/igt@i915_selftest@perf@engine_cs.html
* igt@i915_selftest@perf@region:
- shard-iclb: [PASS][30] -> [DMESG-WARN][31] ([i915#2867])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb3/igt@i915_selftest@perf@region.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb6/igt@i915_selftest@perf@region.html
* igt@kms_big_fb@4-tiled-8bpp-rotate-0:
- shard-tglb: NOTRUN -> [SKIP][32] ([i915#5286])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb7/igt@kms_big_fb@4-tiled-8bpp-rotate-0.html
- shard-iclb: NOTRUN -> [SKIP][33] ([i915#5286])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb6/igt@kms_big_fb@4-tiled-8bpp-rotate-0.html
* igt@kms_big_fb@linear-16bpp-rotate-90:
- shard-iclb: NOTRUN -> [SKIP][34] ([fdo#110725] / [fdo#111614])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb2/igt@kms_big_fb@linear-16bpp-rotate-90.html
- shard-tglb: NOTRUN -> [SKIP][35] ([fdo#111614])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb8/igt@kms_big_fb@linear-16bpp-rotate-90.html
* igt@kms_big_fb@yf-tiled-8bpp-rotate-180:
- shard-iclb: NOTRUN -> [SKIP][36] ([fdo#110723])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb6/igt@kms_big_fb@yf-tiled-8bpp-rotate-180.html
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip:
- shard-tglb: NOTRUN -> [SKIP][37] ([fdo#111615]) +3 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb2/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html
* igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][38] ([fdo#109271] / [i915#3886]) +6 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-glk9/igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_rc_ccs:
- shard-iclb: NOTRUN -> [SKIP][39] ([fdo#109278]) +7 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb4/igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_rc_ccs.html
* igt@kms_ccs@pipe-b-bad-pixel-format-4_tiled_dg2_rc_ccs_cc:
- shard-tglb: NOTRUN -> [SKIP][40] ([i915#3689] / [i915#6095]) +1 similar issue
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb5/igt@kms_ccs@pipe-b-bad-pixel-format-4_tiled_dg2_rc_ccs_cc.html
* igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs:
- shard-apl: NOTRUN -> [SKIP][41] ([fdo#109271] / [i915#3886]) +11 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl6/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html
- shard-tglb: NOTRUN -> [SKIP][42] ([i915#3689] / [i915#3886])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb8/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html
- shard-iclb: NOTRUN -> [SKIP][43] ([fdo#109278] / [i915#3886]) +2 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb2/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][44] ([i915#3689]) +2 similar issues
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb1/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_ccs.html
* igt@kms_ccs@pipe-d-random-ccs-data-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][45] ([fdo#111615] / [i915#3689]) +2 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb2/igt@kms_ccs@pipe-d-random-ccs-data-yf_tiled_ccs.html
* igt@kms_chamelium@dp-hpd:
- shard-glk: NOTRUN -> [SKIP][46] ([fdo#109271] / [fdo#111827]) +4 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-glk8/igt@kms_chamelium@dp-hpd.html
* igt@kms_chamelium@hdmi-audio:
- shard-snb: NOTRUN -> [SKIP][47] ([fdo#109271] / [fdo#111827]) +3 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-snb4/igt@kms_chamelium@hdmi-audio.html
- shard-tglb: NOTRUN -> [SKIP][48] ([fdo#109284] / [fdo#111827]) +2 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb1/igt@kms_chamelium@hdmi-audio.html
* igt@kms_chamelium@hdmi-cmp-planar-formats:
- shard-iclb: NOTRUN -> [SKIP][49] ([fdo#109284] / [fdo#111827]) +2 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb2/igt@kms_chamelium@hdmi-cmp-planar-formats.html
* igt@kms_chamelium@vga-hpd-after-suspend:
- shard-apl: NOTRUN -> [SKIP][50] ([fdo#109271] / [fdo#111827]) +7 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl3/igt@kms_chamelium@vga-hpd-after-suspend.html
* igt@kms_color@ctm-0-75@pipe-a-edp-1:
- shard-iclb: NOTRUN -> [FAIL][51] ([i915#315] / [i915#6946]) +2 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb8/igt@kms_color@ctm-0-75@pipe-a-edp-1.html
* igt@kms_color@ctm-0-75@pipe-c-edp-1:
- shard-tglb: NOTRUN -> [FAIL][52] ([i915#315]) +3 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb5/igt@kms_color@ctm-0-75@pipe-c-edp-1.html
* igt@kms_content_protection@uevent:
- shard-apl: NOTRUN -> [FAIL][53] ([i915#2105])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl6/igt@kms_content_protection@uevent.html
* igt@kms_cursor_crc@cursor-suspend@pipe-c-dp-1:
- shard-apl: NOTRUN -> [DMESG-WARN][54] ([i915#180]) +1 similar issue
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl2/igt@kms_cursor_crc@cursor-suspend@pipe-c-dp-1.html
* igt@kms_cursor_legacy@cursora-vs-flipb@atomic:
- shard-iclb: NOTRUN -> [SKIP][55] ([fdo#109274]) +5 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb6/igt@kms_cursor_legacy@cursora-vs-flipb@atomic.html
* igt@kms_cursor_legacy@cursora-vs-flipb@varying-size:
- shard-tglb: NOTRUN -> [SKIP][56] ([fdo#109274] / [fdo#111825]) +5 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb5/igt@kms_cursor_legacy@cursora-vs-flipb@varying-size.html
* igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions-varying-size:
- shard-glk: [PASS][57] -> [FAIL][58] ([i915#2346])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-glk8/igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions-varying-size.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-glk5/igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions-varying-size.html
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-apl: [PASS][59] -> [INCOMPLETE][60] ([i915#180] / [i915#1982] / [i915#4939])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-apl7/igt@kms_fbcon_fbt@fbc-suspend.html
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl1/igt@kms_fbcon_fbt@fbc-suspend.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-downscaling@pipe-a-default-mode:
- shard-iclb: NOTRUN -> [SKIP][61] ([i915#3555])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb2/igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-downscaling@pipe-a-default-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-upscaling@pipe-a-valid-mode:
- shard-iclb: NOTRUN -> [SKIP][62] ([i915#2587] / [i915#2672]) +2 similar issues
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb4/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-upscaling@pipe-a-valid-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tile-upscaling@pipe-a-default-mode:
- shard-iclb: NOTRUN -> [SKIP][63] ([i915#2672]) +3 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb3/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tile-upscaling@pipe-a-default-mode.html
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-blt:
- shard-tglb: NOTRUN -> [SKIP][64] ([fdo#109280] / [fdo#111825]) +10 similar issues
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb1/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-indfb-msflip-blt:
- shard-iclb: NOTRUN -> [SKIP][65] ([fdo#109280]) +11 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb8/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-indfb-msflip-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-draw-blt:
- shard-snb: NOTRUN -> [SKIP][66] ([fdo#109271]) +190 similar issues
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-snb2/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-rgb101010-draw-mmap-wc:
- shard-tglb: NOTRUN -> [SKIP][67] ([i915#6497]) +3 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb2/igt@kms_frontbuffer_tracking@fbcpsr-rgb101010-draw-mmap-wc.html
* igt@kms_pipe_b_c_ivb@enable-pipe-c-while-b-has-3-lanes:
- shard-tglb: NOTRUN -> [SKIP][68] ([fdo#109289])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb8/igt@kms_pipe_b_c_ivb@enable-pipe-c-while-b-has-3-lanes.html
- shard-iclb: NOTRUN -> [SKIP][69] ([fdo#109289])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb4/igt@kms_pipe_b_c_ivb@enable-pipe-c-while-b-has-3-lanes.html
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-tglb: NOTRUN -> [SKIP][70] ([i915#6988]) +33 similar issues
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb1/igt@kms_plane_alpha_blend@pipe-b-coverage-7efc.html
* igt@kms_plane_alpha_blend@pipe-c-alpha-basic:
- shard-apl: NOTRUN -> [SKIP][71] ([fdo#109271]) +236 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl1/igt@kms_plane_alpha_blend@pipe-c-alpha-basic.html
* igt@kms_plane_alpha_blend@pipe-c-alpha-transparent-fb:
- shard-iclb: NOTRUN -> [SKIP][72] ([i915#6988]) +33 similar issues
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb7/igt@kms_plane_alpha_blend@pipe-c-alpha-transparent-fb.html
* igt@kms_psr2_sf@plane-move-sf-dmg-area:
- shard-apl: NOTRUN -> [SKIP][73] ([fdo#109271] / [i915#658]) +1 similar issue
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl6/igt@kms_psr2_sf@plane-move-sf-dmg-area.html
- shard-tglb: NOTRUN -> [SKIP][74] ([i915#2920])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb5/igt@kms_psr2_sf@plane-move-sf-dmg-area.html
- shard-glk: NOTRUN -> [SKIP][75] ([fdo#109271] / [i915#658]) +1 similar issue
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-glk7/igt@kms_psr2_sf@plane-move-sf-dmg-area.html
- shard-iclb: NOTRUN -> [SKIP][76] ([fdo#111068] / [i915#658])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb6/igt@kms_psr2_sf@plane-move-sf-dmg-area.html
* igt@kms_psr2_su@page_flip-xrgb8888:
- shard-iclb: [PASS][77] -> [SKIP][78] ([fdo#109642] / [fdo#111068] / [i915#658])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb2/igt@kms_psr2_su@page_flip-xrgb8888.html
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb4/igt@kms_psr2_su@page_flip-xrgb8888.html
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: [PASS][79] -> [SKIP][80] ([fdo#109441]) +1 similar issue
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb1/igt@kms_psr@psr2_primary_page_flip.html
* igt@kms_vblank@pipe-b-ts-continuation-modeset-rpm:
- shard-iclb: [PASS][81] -> [SKIP][82] ([fdo#109278])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb2/igt@kms_vblank@pipe-b-ts-continuation-modeset-rpm.html
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb6/igt@kms_vblank@pipe-b-ts-continuation-modeset-rpm.html
* igt@kms_vblank@pipe-d-wait-idle:
- shard-apl: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#533])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl8/igt@kms_vblank@pipe-d-wait-idle.html
* igt@kms_writeback@writeback-invalid-parameters:
- shard-glk: NOTRUN -> [SKIP][84] ([fdo#109271] / [i915#2437])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-glk9/igt@kms_writeback@writeback-invalid-parameters.html
* igt@nouveau_crc@pipe-b-source-outp-inactive:
- shard-tglb: NOTRUN -> [SKIP][85] ([i915#6971]) +44 similar issues
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb2/igt@nouveau_crc@pipe-b-source-outp-inactive.html
* igt@nouveau_crc@pipe-d-ctx-flip-detection:
- shard-glk: NOTRUN -> [SKIP][86] ([fdo#109271]) +167 similar issues
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-glk2/igt@nouveau_crc@pipe-d-ctx-flip-detection.html
* igt@prime_nv_test@i915_blt_fill_nv_read:
- shard-iclb: NOTRUN -> [SKIP][87] ([i915#6971]) +46 similar issues
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb2/igt@prime_nv_test@i915_blt_fill_nv_read.html
* igt@syncobj_wait@wait-delayed-signal:
- shard-glk: [PASS][88] -> [DMESG-WARN][89] ([i915#118])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-glk7/igt@syncobj_wait@wait-delayed-signal.html
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-glk8/igt@syncobj_wait@wait-delayed-signal.html
* igt@sysfs_clients@sema-25:
- shard-apl: NOTRUN -> [SKIP][90] ([fdo#109271] / [i915#2994]) +1 similar issue
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl3/igt@sysfs_clients@sema-25.html
- shard-tglb: NOTRUN -> [SKIP][91] ([i915#2994]) +1 similar issue
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb2/igt@sysfs_clients@sema-25.html
- shard-glk: NOTRUN -> [SKIP][92] ([fdo#109271] / [i915#2994]) +1 similar issue
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-glk8/igt@sysfs_clients@sema-25.html
* igt@sysfs_clients@split-10:
- shard-iclb: NOTRUN -> [SKIP][93] ([i915#2994]) +1 similar issue
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb6/igt@sysfs_clients@split-10.html
#### Possible fixes ####
* igt@gem_ctx_persistence@engines-hostile@bcs0:
- {shard-dg1}: [FAIL][94] ([i915#4883]) -> [PASS][95] +3 similar issues
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-dg1-13/igt@gem_ctx_persistence@engines-hostile@bcs0.html
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-dg1-16/igt@gem_ctx_persistence@engines-hostile@bcs0.html
* igt@gem_exec_balancer@parallel:
- shard-iclb: [SKIP][96] ([i915#4525]) -> [PASS][97]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb6/igt@gem_exec_balancer@parallel.html
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb2/igt@gem_exec_balancer@parallel.html
* igt@gem_exec_endless@dispatch@bcs0:
- {shard-rkl}: [SKIP][98] ([i915#6247]) -> [PASS][99]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-5/igt@gem_exec_endless@dispatch@bcs0.html
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-1/igt@gem_exec_endless@dispatch@bcs0.html
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-tglb: [FAIL][100] ([i915#2842]) -> [PASS][101]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-tglb2/igt@gem_exec_fair@basic-pace-share@rcs0.html
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb7/igt@gem_exec_fair@basic-pace-share@rcs0.html
* igt@gem_exec_reloc@basic-cpu-read:
- {shard-rkl}: [SKIP][102] ([i915#3281]) -> [PASS][103] +5 similar issues
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-2/igt@gem_exec_reloc@basic-cpu-read.html
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-5/igt@gem_exec_reloc@basic-cpu-read.html
* igt@gem_pwrite_snooped:
- {shard-rkl}: [SKIP][104] ([i915#3282]) -> [PASS][105] +1 similar issue
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-6/igt@gem_pwrite_snooped.html
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-5/igt@gem_pwrite_snooped.html
* igt@gem_workarounds@suspend-resume:
- {shard-tglu}: [DMESG-WARN][106] ([i915#5122]) -> [PASS][107]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-tglu-3/igt@gem_workarounds@suspend-resume.html
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglu-5/igt@gem_workarounds@suspend-resume.html
* igt@gen9_exec_parse@allowed-all:
- shard-glk: [DMESG-WARN][108] ([i915#5566] / [i915#716]) -> [PASS][109]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-glk5/igt@gen9_exec_parse@allowed-all.html
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-glk5/igt@gen9_exec_parse@allowed-all.html
* igt@gen9_exec_parse@secure-batches:
- {shard-rkl}: [SKIP][110] ([i915#2527]) -> [PASS][111] +1 similar issue
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-2/igt@gen9_exec_parse@secure-batches.html
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-5/igt@gen9_exec_parse@secure-batches.html
* igt@i915_hangman@engine-engine-error@bcs0:
- {shard-rkl}: [SKIP][112] ([i915#6258]) -> [PASS][113]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-5/igt@i915_hangman@engine-engine-error@bcs0.html
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-4/igt@i915_hangman@engine-engine-error@bcs0.html
* igt@i915_module_load@reload-no-display:
- shard-snb: [DMESG-WARN][114] ([i915#4528]) -> [PASS][115]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-snb5/igt@i915_module_load@reload-no-display.html
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-snb7/igt@i915_module_load@reload-no-display.html
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][116] ([i915#3989] / [i915#454]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb6/igt@i915_pm_dc@dc6-psr.html
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb8/igt@i915_pm_dc@dc6-psr.html
* igt@i915_pm_dc@dc9-dpms:
- {shard-rkl}: [SKIP][118] ([i915#3361]) -> [PASS][119]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-5/igt@i915_pm_dc@dc9-dpms.html
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-4/igt@i915_pm_dc@dc9-dpms.html
* igt@i915_pm_rpm@pm-tiling:
- {shard-rkl}: [SKIP][120] ([fdo#109308]) -> [PASS][121] +1 similar issue
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-5/igt@i915_pm_rpm@pm-tiling.html
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-6/igt@i915_pm_rpm@pm-tiling.html
* igt@i915_pm_rps@engine-order:
- shard-apl: [FAIL][122] ([i915#6537]) -> [PASS][123]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-apl7/igt@i915_pm_rps@engine-order.html
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl8/igt@i915_pm_rps@engine-order.html
* igt@i915_suspend@sysfs-reader:
- shard-apl: [DMESG-WARN][124] ([i915#180]) -> [PASS][125] +2 similar issues
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-apl6/igt@i915_suspend@sysfs-reader.html
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl8/igt@i915_suspend@sysfs-reader.html
* igt@kms_dp_aux_dev:
- {shard-rkl}: [SKIP][126] ([i915#1257]) -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-1/igt@kms_dp_aux_dev.html
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-6/igt@kms_dp_aux_dev.html
* igt@kms_fbcon_fbt@fbc-suspend:
- {shard-tglu}: [FAIL][128] ([i915#4767]) -> [PASS][129]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-tglu-4/igt@kms_fbcon_fbt@fbc-suspend.html
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglu-2/igt@kms_fbcon_fbt@fbc-suspend.html
* igt@kms_flip@flip-vs-expired-vblank@b-dp1:
- shard-apl: [FAIL][130] ([i915#79]) -> [PASS][131] +1 similar issue
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-apl2/igt@kms_flip@flip-vs-expired-vblank@b-dp1.html
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-apl3/igt@kms_flip@flip-vs-expired-vblank@b-dp1.html
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-move:
- {shard-rkl}: [SKIP][132] ([i915#1849] / [i915#4098]) -> [PASS][133] +13 similar issues
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-5/igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-move.html
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-6/igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-move.html
* igt@kms_plane_scaling@plane-scaler-with-clipping-clamping-pixel-formats@pipe-b-edp-1:
- shard-iclb: [SKIP][134] ([i915#5176]) -> [PASS][135] +1 similar issue
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb3/igt@kms_plane_scaling@plane-scaler-with-clipping-clamping-pixel-formats@pipe-b-edp-1.html
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb6/igt@kms_plane_scaling@plane-scaler-with-clipping-clamping-pixel-formats@pipe-b-edp-1.html
* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-a-edp-1:
- shard-iclb: [SKIP][136] ([i915#5235]) -> [PASS][137] +2 similar issues
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb2/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-a-edp-1.html
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb7/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-a-edp-1.html
* igt@kms_properties@crtc-properties-legacy:
- {shard-rkl}: [SKIP][138] ([i915#1849]) -> [PASS][139]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-2/igt@kms_properties@crtc-properties-legacy.html
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-6/igt@kms_properties@crtc-properties-legacy.html
* igt@kms_psr@no_drrs:
- {shard-rkl}: [SKIP][140] ([i915#1072]) -> [PASS][141]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-5/igt@kms_psr@no_drrs.html
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-6/igt@kms_psr@no_drrs.html
* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [SKIP][142] ([fdo#109441]) -> [PASS][143]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb1/igt@kms_psr@psr2_cursor_render.html
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
* igt@kms_universal_plane@cursor-fb-leak-pipe-b:
- {shard-rkl}: [SKIP][144] ([i915#1845] / [i915#4070] / [i915#4098]) -> [PASS][145]
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-1/igt@kms_universal_plane@cursor-fb-leak-pipe-b.html
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-6/igt@kms_universal_plane@cursor-fb-leak-pipe-b.html
* igt@kms_universal_plane@universal-plane-pageflip-windowed-pipe-a:
- {shard-rkl}: [SKIP][146] ([i915#4070] / [i915#4098]) -> [PASS][147]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-1/igt@kms_universal_plane@universal-plane-pageflip-windowed-pipe-a.html
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-6/igt@kms_universal_plane@universal-plane-pageflip-windowed-pipe-a.html
* igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend:
- {shard-rkl}: [SKIP][148] ([i915#1845] / [i915#4098]) -> [PASS][149] +18 similar issues
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-rkl-2/igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend.html
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-rkl-6/igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend.html
* igt@perf@polling-small-buf:
- shard-tglb: [FAIL][150] ([i915#1722]) -> [PASS][151]
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-tglb8/igt@perf@polling-small-buf.html
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb7/igt@perf@polling-small-buf.html
#### Warnings ####
* igt@kms_content_protection@mei_interface:
- shard-tglb: [SKIP][152] ([i915#1063]) -> [SKIP][153] ([fdo#109300])
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-tglb2/igt@kms_content_protection@mei_interface.html
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-tglb7/igt@kms_content_protection@mei_interface.html
- shard-iclb: [SKIP][154] ([fdo#109300] / [fdo#111066]) -> [SKIP][155] ([fdo#109300])
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb8/igt@kms_content_protection@mei_interface.html
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb5/igt@kms_content_protection@mei_interface.html
* igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-sf:
- shard-iclb: [SKIP][156] ([i915#2920]) -> [SKIP][157] ([i915#658]) +1 similar issue
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb2/igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-sf.html
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb4/igt@kms_psr2_sf@cursor-plane-move-continuous-exceed-sf.html
* igt@kms_psr2_sf@overlay-plane-update-continuous-sf:
- shard-iclb: [SKIP][158] ([fdo#111068] / [i915#658]) -> [SKIP][159] ([i915#2920])
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb8/igt@kms_psr2_sf@overlay-plane-update-continuous-sf.html
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb2/igt@kms_psr2_sf@overlay-plane-update-continuous-sf.html
* igt@kms_psr2_su@page_flip-p010:
- shard-iclb: [SKIP][160] ([fdo#109642] / [fdo#111068] / [i915#658]) -> [FAIL][161] ([i915#5939])
[160]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12197/shard-iclb7/igt@kms_psr2_su@page_flip-p010.html
[161]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/shard-iclb2/igt@kms_psr2_su@page_flip-p010.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109300]: https://bugs.freedesktop.org/show_bug.cgi?id=109300
[fdo#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
[fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110254]: https://bugs.freedesktop.org/show_bug.cgi?id=110254
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#110725]: https://bugs.freedesktop.org/show_bug.cgi?id=110725
[fdo#111066]: https://bugs.freedesktop.org/show_bug.cgi?id=111066
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1063]: https://gitlab.freedesktop.org/drm/intel/issues/1063
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1257]: https://gitlab.freedesktop.org/drm/intel/issues/1257
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1722]: https://gitlab.freedesktop.org/drm/intel/issues/1722
[i915#1769]: https://gitlab.freedesktop.org/drm/intel/issues/1769
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2105]: https://gitlab.freedesktop.org/drm/intel/issues/2105
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2433]: https://gitlab.freedesktop.org/drm/intel/issues/2433
[i915#2436]: https://gitlab.freedesktop.org/drm/intel/issues/2436
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#284]: https://gitlab.freedesktop.org/drm/intel/issues/284
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#2994]: https://gitlab.freedesktop.org/drm/intel/issues/2994
[i915#3002]: https://gitlab.freedesktop.org/drm/intel/issues/3002
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3361]: https://gitlab.freedesktop.org/drm/intel/issues/3361
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3558]: https://gitlab.freedesktop.org/drm/intel/issues/3558
[i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3810]: https://gitlab.freedesktop.org/drm/intel/issues/3810
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#3989]: https://gitlab.freedesktop.org/drm/intel/issues/3989
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#4387]: https://gitlab.freedesktop.org/drm/intel/issues/4387
[i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
[i915#4525]: https://gitlab.freedesktop.org/drm/intel/issues/4525
[i915#4528]: https://gitlab.freedesktop.org/drm/intel/issues/4528
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#4565]: https://gitlab.freedesktop.org/drm/intel/issues/4565
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4767]: https://gitlab.freedesktop.org/drm/intel/issues/4767
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4855]: https://gitlab.freedesktop.org/drm/intel/issues/4855
[i915#4859]: https://gitlab.freedesktop.org/drm/intel/issues/4859
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4874]: https://gitlab.freedesktop.org/drm/intel/issues/4874
[i915#4879]: https://gitlab.freedesktop.org/drm/intel/issues/4879
[i915#4880]: https://gitlab.freedesktop.org/drm/intel/issues/4880
[i915#4883]: https://gitlab.freedesktop.org/drm/intel/issues/4883
[i915#4884]: https://gitlab.freedesktop.org/drm/intel/issues/4884
[i915#4885]: https://gitlab.freedesktop.org/drm/intel/issues/4885
[i915#4939]: https://gitlab.freedesktop.org/drm/intel/issues/4939
[i915#4958]: https://gitlab.freedesktop.org/drm/intel/issues/4958
[i915#4991]: https://gitlab.freedesktop.org/drm/intel/issues/4991
[i915#5122]: https://gitlab.freedesktop.org/drm/intel/issues/5122
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#5639]: https://gitlab.freedesktop.org/drm/intel/issues/5639
[i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
[i915#5939]: https://gitlab.freedesktop.org/drm/intel/issues/5939
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6227]: https://gitlab.freedesktop.org/drm/intel/issues/6227
[i915#6247]: https://gitlab.freedesktop.org/drm/intel/issues/6247
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6258]: https://gitlab.freedesktop.org/drm/intel/issues/6258
[i915#6301]: https://gitlab.freedesktop.org/drm/intel/issues/6301
[i915#6344]: https://gitlab.freedesktop.org/drm/intel/issues/6344
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#6537]: https://gitlab.freedesktop.org/drm/intel/issues/6537
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#6971]: https://gitlab.freedesktop.org/drm/intel/issues/6971
[i915#6988]: https://gitlab.freedesktop.org/drm/intel/issues/6988
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#768]: https://gitlab.freedesktop.org/drm/intel/issues/768
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6668 -> IGTPW_7877
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_12197: cafa326de8e7860d45639e61bf66ec9c218207b1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7877: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/index.html
IGT_6668: 5f29c9369550164b35b65baaaeba4b370f434cf1 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7877/index.html
[-- Attachment #2: Type: text/html, Size: 53628 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] Introduced partial FreeBSD compatibility
2022-09-28 20:21 [igt-dev] [PATCH i-g-t] Introduced partial FreeBSD compatibility Jake Freeland
2022-09-28 23:53 ` [igt-dev] ✓ Fi.CI.BAT: success for Introduced partial FreeBSD compatibility (rev6) Patchwork
2022-09-29 23:15 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
@ 2022-10-04 9:41 ` Petri Latvala
2022-10-06 2:30 ` Jake Freeland
2 siblings, 1 reply; 5+ messages in thread
From: Petri Latvala @ 2022-10-04 9:41 UTC (permalink / raw)
To: Jake Freeland; +Cc: igt-dev, Jake Freeland
On Wed, Sep 28, 2022 at 03:21:52PM -0500, Jake Freeland wrote:
> FreeBSD's Linux compatbility layer, LinuxKPI, has introduced
> modern drm drivers to the FreeBSD desktop. With drm drivers,
> comes the need for drm testing. This patch allows a portion
> of igt-gpu-tools to compile on FreeBSD
>
> Signed-off-by: Jake Freeland <jfree@freebsd.org>
> ---
> benchmarks/gem_exec_tracer.c | 4 ++
> benchmarks/gem_syslatency.c | 6 ++
> include/linux-uapi/sync_file.h | 5 ++
> lib/i915/intel_memory_region.c | 4 ++
> lib/i915/perf.c | 2 +
> lib/igt_audio.c | 4 ++
> lib/igt_aux.c | 2 +
> lib/igt_aux.h | 6 +-
> lib/igt_core.c | 8 ++-
> lib/igt_core.h | 7 ++
> lib/igt_debugfs.c | 2 +
> lib/igt_device.c | 2 +
> lib/igt_device_scan.c | 4 ++
> lib/igt_eld.c | 4 ++
> lib/igt_frame.c | 4 ++
> lib/igt_freebsd.h | 121 +++++++++++++++++++++++++++++++++
> lib/igt_kmod.h | 2 +
> lib/igt_kms.c | 4 ++
> lib/igt_os.c | 19 ++++++
> lib/igt_perf.c | 2 +
> lib/igt_perf.h | 4 ++
> lib/igt_pm.c | 2 +
> lib/igt_sysfs.c | 2 +
> lib/tests/igt_exit_handler.c | 4 ++
> lib/tests/igt_fork.c | 2 +-
> lib/tests/igt_tests_common.h | 9 +++
> runner/executor.c | 6 ++
> runner/job_list.c | 5 ++
> tests/i915/gem_close_race.c | 2 +
> tests/i915/gem_mmap_gtt.c | 2 +-
> tests/i915/gem_mmap_offset.c | 2 +-
> tests/i915/i915_module_load.c | 2 +
> tests/i915/i915_pm_backlight.c | 4 ++
> tests/i915/i915_pm_rpm.c | 8 +++
> tests/kms_content_protection.c | 2 +
> tests/kms_flip.c | 4 ++
> tests/kms_sysfs_edid_timing.c | 4 ++
> tests/tools_test.c | 4 ++
> tools/intel_gvtg_test.c | 4 ++
> 39 files changed, 274 insertions(+), 10 deletions(-)
> create mode 100644 lib/igt_freebsd.h
>
> diff --git a/benchmarks/gem_exec_tracer.c b/benchmarks/gem_exec_tracer.c
> index e6973991..7e86473e 100644
> --- a/benchmarks/gem_exec_tracer.c
> +++ b/benchmarks/gem_exec_tracer.c
> @@ -41,6 +41,10 @@
> #include "intel_aub.h"
> #include "intel_chipset.h"
>
> +#ifdef __FreeBSD__
> +#include "igt_freebsd.h"
> +#endif
> +
> static int (*libc_close)(int fd);
> static int (*libc_ioctl)(int fd, unsigned long request, void *argp);
>
> diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c
> index 035ee934..dafc6ac0 100644
> --- a/benchmarks/gem_syslatency.c
> +++ b/benchmarks/gem_syslatency.c
> @@ -42,12 +42,18 @@
> #include <limits.h>
> #include "drm.h"
>
> +#ifdef __linux__
> #include <linux/unistd.h>
> +#elif defined(__FreeBSD__)
> +#include "igt_freebsd.h"
> +#endif
>
> #include "i915/gem_create.h"
> #include "i915/gem_ring.h"
>
> +#ifdef __linux__
> #define sigev_notify_thread_id _sigev_un._tid
> +#endif
>
> static volatile int done;
>
> diff --git a/include/linux-uapi/sync_file.h b/include/linux-uapi/sync_file.h
> index b4f2db00..270c1cbc 100644
> --- a/include/linux-uapi/sync_file.h
> +++ b/include/linux-uapi/sync_file.h
> @@ -12,8 +12,13 @@
> #ifndef _LINUX_SYNC_H
> #define _LINUX_SYNC_H
>
> +#ifdef __linux__
> #include <linux/ioctl.h>
> #include <linux/types.h>
> +#elif defined(__FreeBSD__)
> +#include <sys/ioctl.h>
> +#include "igt_freebsd.h"
> +#endif
>
> /**
> * struct sync_merge_data - data passed to merge ioctl
> diff --git a/lib/i915/intel_memory_region.c b/lib/i915/intel_memory_region.c
> index 568bace9..0a59f290 100644
> --- a/lib/i915/intel_memory_region.c
> +++ b/lib/i915/intel_memory_region.c
> @@ -21,7 +21,11 @@
> * IN THE SOFTWARE.
> */
>
> +#ifdef __linux__
> #include <linux/limits.h>
> +#elif defined(__FreeBSD__)
> +#include <limits.h>
> +#endif
> #include <signal.h>
> #include <sys/ioctl.h>
> #include <sys/time.h>
> diff --git a/lib/i915/perf.c b/lib/i915/perf.c
> index d88835ff..beda6b8a 100644
> --- a/lib/i915/perf.c
> +++ b/lib/i915/perf.c
> @@ -29,7 +29,9 @@
> #include <fcntl.h>
> #include <sys/ioctl.h>
> #include <sys/stat.h>
> +#ifdef __linux__
> #include <sys/sysmacros.h>
> +#endif
> #include <sys/types.h>
> #include <unistd.h>
>
> diff --git a/lib/igt_audio.c b/lib/igt_audio.c
> index e0b1bafe..201a39c6 100644
> --- a/lib/igt_audio.c
> +++ b/lib/igt_audio.c
> @@ -26,6 +26,10 @@
>
> #include "config.h"
>
> +#ifdef __FreeBSD__
> +#include <limits.h>
> +#endif
> +
> #include <errno.h>
> #include <fcntl.h>
> #include <gsl/gsl_fft_real.h>
> diff --git a/lib/igt_aux.c b/lib/igt_aux.c
> index edb53425..d7e2714f 100644
> --- a/lib/igt_aux.c
> +++ b/lib/igt_aux.c
> @@ -52,7 +52,9 @@
> #include <assert.h>
> #include <grp.h>
>
> +#ifdef __linux__
> #include <proc/readproc.h>
> +#endif
> #include <libudev.h>
>
> #include "drmtest.h"
> diff --git a/lib/igt_aux.h b/lib/igt_aux.h
> index c8d487b6..912f36c1 100644
> --- a/lib/igt_aux.h
> +++ b/lib/igt_aux.h
> @@ -34,9 +34,7 @@
> #include <sys/time.h>
> #include <sys/types.h>
> #include <unistd.h>
> -#ifdef __linux__
> -# include <sys/syscall.h>
> -#endif
> +#include <sys/syscall.h>
>
> #include <i915/gem_submission.h>
>
> @@ -48,8 +46,8 @@
> # ifndef HAVE_GETTID
> # define gettid() (pid_t)(syscall(__NR_gettid))
> # endif
> -#endif
> #define sigev_notify_thread_id _sigev_un._tid
> +#endif
>
> /* auxialiary igt helpers from igt_aux.c */
> /* generally useful helpers */
> diff --git a/lib/igt_core.c b/lib/igt_core.c
> index e7425326..17d5e013 100644
> --- a/lib/igt_core.c
> +++ b/lib/igt_core.c
> @@ -43,9 +43,7 @@
> #include <unistd.h>
> #include <sys/wait.h>
> #include <sys/types.h>
> -#ifdef __linux__
> #include <sys/syscall.h>
> -#endif
> #include <pthread.h>
> #include <sys/utsname.h>
> #include <termios.h>
> @@ -786,6 +784,7 @@ static void print_usage(const char *help_str, bool output_on_stderr)
>
> static void oom_adjust_for_doom(void)
> {
> +#ifdef __linux__
> int fd;
> const char always_kill[] = "1000";
>
> @@ -793,7 +792,7 @@ static void oom_adjust_for_doom(void)
> igt_assert(fd != -1);
> igt_assert(write(fd, always_kill, sizeof(always_kill)) == sizeof(always_kill));
> close(fd);
> -
> +#endif
> }
>
> /**
> @@ -2224,6 +2223,9 @@ bool __igt_fork_helper(struct igt_helper_process *proc)
> case 0:
> reset_helper_process_list();
> oom_adjust_for_doom();
> +#ifdef __FreeBSD__
> + raise(SIGTERM);
> +#endif
Can't say I understand why this is added. Is this a /* TODO */ of some
description?
--
Petri Latvala
>
> return true;
> default:
> diff --git a/lib/igt_core.h b/lib/igt_core.h
> index aa98e8ed..18e1009d 100644
> --- a/lib/igt_core.h
> +++ b/lib/igt_core.h
> @@ -31,7 +31,11 @@
> #define IGT_CORE_H
>
> #include <assert.h>
> +#ifdef __linux__
> #include <byteswap.h>
> +#elif defined(__FreeBSD__)
> +#include <sys/endian.h>
> +#endif
> #include <setjmp.h>
> #include <stdbool.h>
> #include <stdint.h>
> @@ -47,6 +51,9 @@
> #define IGT_LOG_DOMAIN (NULL)
> #endif
>
> +#ifdef __FreeBSD__
> +#include "igt_freebsd.h"
> +#endif
>
> #ifndef STATIC_ANALYSIS_BUILD
> #if defined(__clang_analyzer__) || defined(__COVERITY__) || defined(__KLOCWORK__)
> diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
> index a56688a5..fa1e3b69 100644
> --- a/lib/igt_debugfs.c
> +++ b/lib/igt_debugfs.c
> @@ -25,7 +25,9 @@
> #include <inttypes.h>
> #include <sys/stat.h>
> #include <sys/mount.h>
> +#ifdef __linux__
> #include <sys/sysmacros.h>
> +#endif
> #include <dirent.h>
> #include <errno.h>
> #include <stdio.h>
> diff --git a/lib/igt_device.c b/lib/igt_device.c
> index fddfba72..49b77122 100644
> --- a/lib/igt_device.c
> +++ b/lib/igt_device.c
> @@ -25,7 +25,9 @@
> #include <fcntl.h>
>
> #include <sys/stat.h>
> +#ifdef __linux__
> #include <sys/sysmacros.h>
> +#endif
> #include "igt.h"
> #include "igt_device.h"
> #include "igt_sysfs.h"
> diff --git a/lib/igt_device_scan.c b/lib/igt_device_scan.c
> index eb6b45b8..6a921d52 100644
> --- a/lib/igt_device_scan.c
> +++ b/lib/igt_device_scan.c
> @@ -32,7 +32,11 @@
> #include <fcntl.h>
> #include <glib.h>
> #include <libudev.h>
> +#ifdef __linux__
> #include <linux/limits.h>
> +#elif defined(__FreeBSD__)
> +#include <limits.h>
> +#endif
> #include <sys/stat.h>
> #include <sys/time.h>
> #include <sys/types.h>
> diff --git a/lib/igt_eld.c b/lib/igt_eld.c
> index ef6625df..e05ad6de 100644
> --- a/lib/igt_eld.c
> +++ b/lib/igt_eld.c
> @@ -23,6 +23,10 @@
> * Authors: Simon Ser <simon.ser@intel.com>
> */
>
> +#ifdef __FreeBSD__
> +#include <limits.h>
> +#endif
> +
> #include "config.h"
>
> #include <dirent.h>
> diff --git a/lib/igt_frame.c b/lib/igt_frame.c
> index 45523a79..ab74e678 100644
> --- a/lib/igt_frame.c
> +++ b/lib/igt_frame.c
> @@ -24,6 +24,10 @@
> * Paul Kocialkowski <paul.kocialkowski@linux.intel.com>
> */
>
> +#ifdef __FreeBSD__
> +#include <limits.h>
> +#endif
> +
> #include "config.h"
>
> #include <fcntl.h>
> diff --git a/lib/igt_freebsd.h b/lib/igt_freebsd.h
> new file mode 100644
> index 00000000..81ba5c01
> --- /dev/null
> +++ b/lib/igt_freebsd.h
> @@ -0,0 +1,121 @@
> +/*
> + * SPDX-License-Identifier: MIT
> + *
> + * Copyright (c) 2022, Jake Freeland <jfree@FreeBSD.org>
> + *
> + * Permission is hereby granted, free of charge, to any person obtaining a
> + * copy of this software and associated documentation files (the "Software"),
> + * to deal in the Software without restriction, including without limitation
> + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
> + * and/or sell copies of the Software, and to permit persons to whom the
> + * Software is furnished to do so, subject to the following conditions:
> + *
> + * The above copyright notice and this permission notice (including the next
> + * paragraph) shall be included in all copies or substantial portions of the
> + * Software.
> + *
> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
> + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
> + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
> + * IN THE SOFTWARE.
> + */
> +
> +#if !defined(IGT_FREEBSD_H) && defined(__FreeBSD__)
> +#define IGT_FREEBSD_H
> +
> +#include <sys/errno.h>
> +#include <sys/mman.h>
> +#include <sys/mount.h>
> +#include <sys/sched.h>
> +#include <sys/types.h>
> +#include <sys/watchdog.h>
> +
> +#include <pthread.h>
> +#include <setjmp.h>
> +#include <signal.h>
> +#include <unistd.h>
> +
> +/*
> + * Proper substitutions:
> + * The following macros replace Linux-specific functions
> + * and macros with their FreeBSD equivalents.
> + */
> +
> +#define __s32 int32_t
> +#define __u32 uint32_t
> +#define __u64 uint64_t
> +
> +#define sighandler_t sig_t
> +#define ino64_t ino_t
> +
> +#define jmp_buf sigjmp_buf
> +
> +#define PTRACE_TRACEME PT_TRACE_ME
> +#define PTRACE_ATTACH PT_ATTACH
> +#define PTRACE_PEEKDATA PT_READ_D
> +#define PTRACE_POKEDATA PT_WRITE_D
> +#define PTRACE_DETACH PT_DETACH
> +
> +#define I2C_RDWR I2CRDWR
> +#define I2C_M_RD IIC_M_RD
> +#define i2c_msg iic_msg
> +#define i2c_rdwr_ioctl_data iic_rdwr_data
> +
> +#define _IOC_TYPE(nr) (((nr) >> 8) & 255)
> +
> +#define SYS_getdents64 SYS_freebsd11_getdents
> +
> +#define mount(src, dest, fstype, flags, data) \
> + mount(fstype, dest, flags, data)
> +
> +/*
> + * Improper substitutions:
> + * The following macros are temporary replacements for functions
> + * and macros that exist on Linux and do not exist on FreeBSD.
> + */
> +
> +#define ETIME ETIMEDOUT
> +
> +#define MAP_POPULATE MAP_PREFAULT_READ
> +
> +#define MADV_HUGEPAGE MADV_SEQUENTIAL
> +#define MADV_DONTFORK MADV_NOSYNC
> +
> +#define WDIOC_KEEPALIVE WDIOCPATPAT
> +
> +#define SCHED_RESET_ON_FORK 0
> +#define SCHED_IDLE SCHED_OTHER
> +
> +#define gettid() getpid()
> +
> +#define pthread_sigqueue(pid, signo, value) \
> + sigqueue(pid, signo, value)
> +
> +#define signalfd(fd, mask, flags) -ENOSYS
> +#define timerfd_create(c, f) -ENOSYS
> +#define timerfd_settime(fd, f, n, o) -ENOSYS
> +
> +/*
> + * Macro conflict resolution.
> + */
> +
> +#undef ALIGN
> +#undef PAGE_SIZE
> +
> +struct signalfd_siginfo {
> + uint32_t ssi_signo;
> + uint32_t ssi_pid;
> +};
> +
> +struct kmod_module {
> + size_t size;
> +};
> +
> +typedef struct {
> + char state;
> +} proc_t;
> +
> +#endif /* IGT_FREEBSD_H */
> diff --git a/lib/igt_kmod.h b/lib/igt_kmod.h
> index f98dd29f..6596092b 100644
> --- a/lib/igt_kmod.h
> +++ b/lib/igt_kmod.h
> @@ -24,7 +24,9 @@
> #ifndef IGT_KMOD_H
> #define IGT_KMOD_H
>
> +#ifdef __linux__
> #include <libkmod.h>
> +#endif
>
> #include "igt_list.h"
>
> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> index 665594aa..532a3aa8 100644
> --- a/lib/igt_kms.c
> +++ b/lib/igt_kms.c
> @@ -43,6 +43,10 @@
> #include <sys/kd.h>
> #endif
>
> +#ifdef __FreeBSD__
> +#include <sys/consio.h>
> +#endif
> +
> #include <libudev.h>
> #include <poll.h>
> #include <errno.h>
> diff --git a/lib/igt_os.c b/lib/igt_os.c
> index bdd5d933..bb6994e1 100644
> --- a/lib/igt_os.c
> +++ b/lib/igt_os.c
> @@ -44,6 +44,9 @@
> #include <sys/sysinfo.h>
> #elif defined(HAVE_SWAPCTL) /* Solaris */
> #include <sys/swap.h>
> +#elif defined(__FreeBSD__)
> +#include <sys/sysctl.h>
> +#include <sys/types.h>
> #endif
> #include <sys/resource.h>
>
> @@ -148,6 +151,15 @@ igt_get_avail_ram_mb(void)
> npages = sysconf(_SC_AVPHYS_PAGES);
>
> retval = (uint64_t) pagesize * npages;
> +#elif defined(__FreeBSD__)
> + uint64_t npages, pagesize;
> + size_t npages_len = sizeof(npages);
> + size_t pagesize_len = sizeof(pagesize);
> +
> + sysctlbyname("vm.stats.vm.v_free_count", &npages, &npages_len, NULL, 0);
> + sysctlbyname("vm.stats.vm.v_page_size", &pagesize, &pagesize_len, NULL, 0);
> +
> + retval = pagesize * npages;
> #else
> #error "Unknown how to get available RAM for this OS"
> #endif
> @@ -210,6 +222,13 @@ igt_get_total_swap_mb(void)
> free(buf);
>
> retval = (uint64_t) pagesize * totalpages;
> +#elif defined(__FreeBSD__)
> + uint64_t swap_total;
> + size_t swap_total_len = sizeof(swap_total);
> +
> + sysctlbyname("vm.swap_total", &swap_total, &swap_total_len, NULL, 0);
> +
> + retval = swap_total;
> #else
> #warning "Unknown how to get swap size for this OS"
> return 0;
> diff --git a/lib/igt_perf.c b/lib/igt_perf.c
> index b743859f..11c91c5f 100644
> --- a/lib/igt_perf.c
> +++ b/lib/igt_perf.c
> @@ -4,8 +4,10 @@
> #include <stdlib.h>
> #include <string.h>
> #include <sys/stat.h>
> +#ifdef __linux__
> #include <sys/sysinfo.h>
> #include <sys/sysmacros.h>
> +#endif
> #include <time.h>
> #include <unistd.h>
>
> diff --git a/lib/igt_perf.h b/lib/igt_perf.h
> index a8328c70..0cd91386 100644
> --- a/lib/igt_perf.h
> +++ b/lib/igt_perf.h
> @@ -27,10 +27,13 @@
>
> #include <stdint.h>
>
> +#ifdef __linux__
> #include <linux/perf_event.h>
> +#endif
>
> #include "igt_gt.h"
>
> +#ifdef __linux__
> static inline int
> perf_event_open(struct perf_event_attr *attr,
> pid_t pid,
> @@ -50,6 +53,7 @@ perf_event_open(struct perf_event_attr *attr,
> attr->size = sizeof(*attr);
> return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags);
> }
> +#endif /* __linux__ */
>
> uint64_t igt_perf_type_id(const char *device);
> int igt_perf_open(uint64_t type, uint64_t config);
> diff --git a/lib/igt_pm.c b/lib/igt_pm.c
> index 312288d0..1e6e9ed3 100644
> --- a/lib/igt_pm.c
> +++ b/lib/igt_pm.c
> @@ -33,7 +33,9 @@
> #include <string.h>
> #include <unistd.h>
> #include <sys/stat.h>
> +#ifdef __linux__
> #include <sys/sysmacros.h>
> +#endif
> #include <sys/types.h>
> #include <dirent.h>
>
> diff --git a/lib/igt_sysfs.c b/lib/igt_sysfs.c
> index 9c307694..a913be4c 100644
> --- a/lib/igt_sysfs.c
> +++ b/lib/igt_sysfs.c
> @@ -24,7 +24,9 @@
>
> #include <inttypes.h>
> #include <sys/stat.h>
> +#ifdef __linux__
> #include <sys/sysmacros.h>
> +#endif
> #include <sys/mount.h>
> #include <errno.h>
> #include <stdarg.h>
> diff --git a/lib/tests/igt_exit_handler.c b/lib/tests/igt_exit_handler.c
> index 892a7f14..d2381944 100644
> --- a/lib/tests/igt_exit_handler.c
> +++ b/lib/tests/igt_exit_handler.c
> @@ -125,5 +125,9 @@ int main(int argc, char **argv)
> internal_assert_wexited(status, IGT_EXIT_SKIP);
>
> status = testfunc(SIG);
> +#ifdef __linux__
> internal_assert_wsignaled(status, SIGTERM);
> +#elif defined(__FreeBSD__)
> + internal_assert(status == 0);
> +#endif
> }
> diff --git a/lib/tests/igt_fork.c b/lib/tests/igt_fork.c
> index d19d0945..c7193b06 100644
> --- a/lib/tests/igt_fork.c
> +++ b/lib/tests/igt_fork.c
> @@ -109,7 +109,7 @@ __noreturn static void igt_fork_timeout_leak(void)
> __noreturn static void subtest_leak(void)
> {
> pid_t *children =
> - mmap(0, 4096, PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
> + mmap(0, 4096, PROT_WRITE | PROT_READ, MAP_SHARED | MAP_ANON, -1, 0);
> const int num_children = 4096 / sizeof(*children);
>
> igt_subtest_init(fake_argc, fake_argv);
> diff --git a/lib/tests/igt_tests_common.h b/lib/tests/igt_tests_common.h
> index 058f6265..e8183897 100644
> --- a/lib/tests/igt_tests_common.h
> +++ b/lib/tests/igt_tests_common.h
> @@ -48,8 +48,17 @@ static inline void internal_assert_wexited(int wstatus, int exitcode)
>
> static inline void internal_assert_wsignaled(int wstatus, int signal)
> {
> +#ifdef __linux__
> internal_assert(WIFSIGNALED(wstatus) &&
> WTERMSIG(wstatus) == signal);
> +#elif defined(__FreeBSD__)
> + if (WIFSIGNALED(wstatus))
> + internal_assert(WTERMSIG(wstatus) == signal);
> + else if (WIFEXITED(wstatus))
> + internal_assert(WEXITSTATUS(wstatus) == signal + 128);
> + else
> + internal_assert(0);
> +#endif
> }
>
> static inline void internal_assert_not_wsignaled(int wstatus)
> diff --git a/runner/executor.c b/runner/executor.c
> index 964d0063..c54072cf 100644
> --- a/runner/executor.c
> +++ b/runner/executor.c
> @@ -2,7 +2,9 @@
> #include <errno.h>
> #include <fcntl.h>
> #include <glib.h>
> +#ifdef __linux__
> #include <linux/watchdog.h>
> +#endif
> #if HAVE_OPING
> #include <oping.h>
> #endif
> @@ -33,6 +35,10 @@
> #define KMSG_HEADER "[IGT] "
> #define KMSG_WARN 4
>
> +#ifdef __FreeBSD__
> +#include <sys/watchdog.h>
> +#endif
> +
> static struct {
> int *fds;
> size_t num_dogs;
> diff --git a/runner/job_list.c b/runner/job_list.c
> index 520a98da..6bfa7162 100644
> --- a/runner/job_list.c
> +++ b/runner/job_list.c
> @@ -1,7 +1,12 @@
> #include <ctype.h>
> #include <errno.h>
> #include <fcntl.h>
> +#ifdef __linux__
> #include <linux/limits.h>
> +#elif defined(__FreeBSD__)
> +#include <sys/wait.h>
> +#include <limits.h>
> +#endif
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> diff --git a/tests/i915/gem_close_race.c b/tests/i915/gem_close_race.c
> index 938fde8f..42fe1657 100644
> --- a/tests/i915/gem_close_race.c
> +++ b/tests/i915/gem_close_race.c
> @@ -61,7 +61,9 @@ static bool has_softpin;
> static uint64_t exec_addr;
> static uint64_t data_addr;
>
> +#ifdef __linux__
> #define sigev_notify_thread_id _sigev_un._tid
> +#endif
>
> static void selfcopy(int fd, uint32_t ctx, uint32_t handle, int loops)
> {
> diff --git a/tests/i915/gem_mmap_gtt.c b/tests/i915/gem_mmap_gtt.c
> index e39b9047..4f05eb18 100644
> --- a/tests/i915/gem_mmap_gtt.c
> +++ b/tests/i915/gem_mmap_gtt.c
> @@ -566,7 +566,7 @@ test_ptrace(int fd)
> for (int i = 0; i < sz / sizeof(long); i++) {
> long ret;
>
> - ret = ptrace(PTRACE_PEEKDATA, pid, gtt + i);
> + ret = ptrace(PTRACE_PEEKDATA, pid, gtt + i, NULL);
> igt_assert_eq_u64(ret, CC);
> cpy[i] = ret;
>
> diff --git a/tests/i915/gem_mmap_offset.c b/tests/i915/gem_mmap_offset.c
> index 7e8c02d1..fc4245f6 100644
> --- a/tests/i915/gem_mmap_offset.c
> +++ b/tests/i915/gem_mmap_offset.c
> @@ -520,7 +520,7 @@ static void test_ptrace(int i915)
> for (int i = 0; i < SZ / sizeof(long); i++) {
> long ret;
>
> - ret = ptrace(PTRACE_PEEKDATA, pid, ptr + i);
> + ret = ptrace(PTRACE_PEEKDATA, pid, ptr + i, NULL);
> igt_assert_eq_u64(ret, CC);
> cpy[i] = ret;
>
> diff --git a/tests/i915/i915_module_load.c b/tests/i915/i915_module_load.c
> index 4c72157c..9bec4c18 100644
> --- a/tests/i915/i915_module_load.c
> +++ b/tests/i915/i915_module_load.c
> @@ -23,7 +23,9 @@
> #include "igt.h"
> #include <dirent.h>
> #include <sys/utsname.h>
> +#ifdef __linux__
> #include <linux/limits.h>
> +#endif
> #include <signal.h>
> #include <libgen.h>
> #include <signal.h>
> diff --git a/tests/i915/i915_pm_backlight.c b/tests/i915/i915_pm_backlight.c
> index cafae7f7..c520cf20 100644
> --- a/tests/i915/i915_pm_backlight.c
> +++ b/tests/i915/i915_pm_backlight.c
> @@ -46,6 +46,10 @@ struct context {
> #define FADESTEPS 10
> #define FADESPEED 100 /* milliseconds between steps */
>
> +#ifdef __FreeBSD__
> +#include <libgen.h>
> +#endif
> +
> IGT_TEST_DESCRIPTION("Basic backlight sysfs test");
>
> static int backlight_read(int *result, const char *fname)
> diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
> index e95875dc..761e76f9 100644
> --- a/tests/i915/i915_pm_rpm.c
> +++ b/tests/i915/i915_pm_rpm.c
> @@ -40,8 +40,10 @@
> #include <sys/mman.h>
> #include <sys/types.h>
> #include <sys/stat.h>
> +#ifdef __linux__
> #include <linux/i2c.h>
> #include <linux/i2c-dev.h>
> +#endif
>
> #include <drm.h>
>
> @@ -54,6 +56,12 @@
> #include "igt_device.h"
> #include "igt_edid.h"
>
> +#ifdef __FreeBSD__
> +#include <limits.h>
> +#include <dev/iicbus/iic.h>
> +#define addr slave
> +#endif
> +
> #define MSR_PC8_RES 0x630
> #define MSR_PC9_RES 0x631
> #define MSR_PC10_RES 0x632
> diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
> index 3041f1cd..e0e5af78 100644
> --- a/tests/kms_content_protection.c
> +++ b/tests/kms_content_protection.c
> @@ -24,7 +24,9 @@
>
> #include <poll.h>
> #include <fcntl.h>
> +#ifdef __linux__
> #include <sys/epoll.h>
> +#endif
> #include <sys/stat.h>
> #include <libudev.h>
> #include "igt.h"
> diff --git a/tests/kms_flip.c b/tests/kms_flip.c
> index 0567edea..1127e418 100755
> --- a/tests/kms_flip.c
> +++ b/tests/kms_flip.c
> @@ -45,6 +45,10 @@
> #include "i915/gem_create.h"
> #include "igt_stats.h"
>
> +#ifdef __FreeBSD__
> +#include <sys/consio.h>
> +#endif
> +
> #define TEST_DPMS (1 << 0)
>
> #define TEST_PAN (1 << 3)
> diff --git a/tests/kms_sysfs_edid_timing.c b/tests/kms_sysfs_edid_timing.c
> index 77521108..cd980c6a 100644
> --- a/tests/kms_sysfs_edid_timing.c
> +++ b/tests/kms_sysfs_edid_timing.c
> @@ -26,6 +26,10 @@
> #include <fcntl.h>
> #include <sys/stat.h>
>
> +#ifdef __FreeBSD__
> +#include <limits.h>
> +#endif
> +
> #define THRESHOLD_PER_CONNECTOR 150
> #define THRESHOLD_PER_CONNECTOR_MEAN 140
> #define THRESHOLD_ALL_CONNECTORS_MEAN 100
> diff --git a/tests/tools_test.c b/tests/tools_test.c
> index 237f0433..89a19d11 100644
> --- a/tests/tools_test.c
> +++ b/tests/tools_test.c
> @@ -28,7 +28,11 @@
> #include <fcntl.h>
> #include <libgen.h>
> #include <unistd.h>
> +#ifdef __linux__
> #include <linux/limits.h>
> +#elif defined(__FreeBSD__)
> +#include <limits.h>
> +#endif
>
> #define TOOLS "../tools/"
>
> diff --git a/tools/intel_gvtg_test.c b/tools/intel_gvtg_test.c
> index ad5ee6a6..3e53c6d9 100644
> --- a/tools/intel_gvtg_test.c
> +++ b/tools/intel_gvtg_test.c
> @@ -55,6 +55,10 @@
> #include <limits.h>
> #include <dirent.h>
>
> +#ifdef __FreeBSD__
> +#include <sys/wait.h>
> +#endif
> +
> #define RANDOM(x) (rand() % x)
>
>
> --
> 2.37.3
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] Introduced partial FreeBSD compatibility
2022-10-04 9:41 ` [igt-dev] [PATCH i-g-t] Introduced partial FreeBSD compatibility Petri Latvala
@ 2022-10-06 2:30 ` Jake Freeland
0 siblings, 0 replies; 5+ messages in thread
From: Jake Freeland @ 2022-10-06 2:30 UTC (permalink / raw)
To: Petri Latvala; +Cc: igt-dev, Jake Freeland
[-- Attachment #1: Type: text/plain, Size: 27289 bytes --]
Hi Petri,
The oom_adjust_for_doom() function sets the process up for termination.
I had #ifdef'd the entire oom_adjust_for_doom() definition because
FreeBSD's procfs implementation does not have a oom_score_adj file for
process score adjustment. The block that you're mentioning sends the
SIGTERM to the process, artificially reproducing oom_score_adj().
I just submitted a new patch revision that moves the `raise(SIGTERM)` into
the oom_score_adj() function for FreeBSD. I have documented this behavior
in a comment to minimize confusion until FreeBSD has a fully featured
procfs.
Thank you,
Jake Freeland
On Tue, Oct 4, 2022 at 4:42 AM Petri Latvala <petri.latvala@intel.com>
wrote:
> On Wed, Sep 28, 2022 at 03:21:52PM -0500, Jake Freeland wrote:
> > FreeBSD's Linux compatbility layer, LinuxKPI, has introduced
> > modern drm drivers to the FreeBSD desktop. With drm drivers,
> > comes the need for drm testing. This patch allows a portion
> > of igt-gpu-tools to compile on FreeBSD
> >
> > Signed-off-by: Jake Freeland <jfree@freebsd.org>
> > ---
> > benchmarks/gem_exec_tracer.c | 4 ++
> > benchmarks/gem_syslatency.c | 6 ++
> > include/linux-uapi/sync_file.h | 5 ++
> > lib/i915/intel_memory_region.c | 4 ++
> > lib/i915/perf.c | 2 +
> > lib/igt_audio.c | 4 ++
> > lib/igt_aux.c | 2 +
> > lib/igt_aux.h | 6 +-
> > lib/igt_core.c | 8 ++-
> > lib/igt_core.h | 7 ++
> > lib/igt_debugfs.c | 2 +
> > lib/igt_device.c | 2 +
> > lib/igt_device_scan.c | 4 ++
> > lib/igt_eld.c | 4 ++
> > lib/igt_frame.c | 4 ++
> > lib/igt_freebsd.h | 121 +++++++++++++++++++++++++++++++++
> > lib/igt_kmod.h | 2 +
> > lib/igt_kms.c | 4 ++
> > lib/igt_os.c | 19 ++++++
> > lib/igt_perf.c | 2 +
> > lib/igt_perf.h | 4 ++
> > lib/igt_pm.c | 2 +
> > lib/igt_sysfs.c | 2 +
> > lib/tests/igt_exit_handler.c | 4 ++
> > lib/tests/igt_fork.c | 2 +-
> > lib/tests/igt_tests_common.h | 9 +++
> > runner/executor.c | 6 ++
> > runner/job_list.c | 5 ++
> > tests/i915/gem_close_race.c | 2 +
> > tests/i915/gem_mmap_gtt.c | 2 +-
> > tests/i915/gem_mmap_offset.c | 2 +-
> > tests/i915/i915_module_load.c | 2 +
> > tests/i915/i915_pm_backlight.c | 4 ++
> > tests/i915/i915_pm_rpm.c | 8 +++
> > tests/kms_content_protection.c | 2 +
> > tests/kms_flip.c | 4 ++
> > tests/kms_sysfs_edid_timing.c | 4 ++
> > tests/tools_test.c | 4 ++
> > tools/intel_gvtg_test.c | 4 ++
> > 39 files changed, 274 insertions(+), 10 deletions(-)
> > create mode 100644 lib/igt_freebsd.h
> >
> > diff --git a/benchmarks/gem_exec_tracer.c b/benchmarks/gem_exec_tracer.c
> > index e6973991..7e86473e 100644
> > --- a/benchmarks/gem_exec_tracer.c
> > +++ b/benchmarks/gem_exec_tracer.c
> > @@ -41,6 +41,10 @@
> > #include "intel_aub.h"
> > #include "intel_chipset.h"
> >
> > +#ifdef __FreeBSD__
> > +#include "igt_freebsd.h"
> > +#endif
> > +
> > static int (*libc_close)(int fd);
> > static int (*libc_ioctl)(int fd, unsigned long request, void *argp);
> >
> > diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c
> > index 035ee934..dafc6ac0 100644
> > --- a/benchmarks/gem_syslatency.c
> > +++ b/benchmarks/gem_syslatency.c
> > @@ -42,12 +42,18 @@
> > #include <limits.h>
> > #include "drm.h"
> >
> > +#ifdef __linux__
> > #include <linux/unistd.h>
> > +#elif defined(__FreeBSD__)
> > +#include "igt_freebsd.h"
> > +#endif
> >
> > #include "i915/gem_create.h"
> > #include "i915/gem_ring.h"
> >
> > +#ifdef __linux__
> > #define sigev_notify_thread_id _sigev_un._tid
> > +#endif
> >
> > static volatile int done;
> >
> > diff --git a/include/linux-uapi/sync_file.h
> b/include/linux-uapi/sync_file.h
> > index b4f2db00..270c1cbc 100644
> > --- a/include/linux-uapi/sync_file.h
> > +++ b/include/linux-uapi/sync_file.h
> > @@ -12,8 +12,13 @@
> > #ifndef _LINUX_SYNC_H
> > #define _LINUX_SYNC_H
> >
> > +#ifdef __linux__
> > #include <linux/ioctl.h>
> > #include <linux/types.h>
> > +#elif defined(__FreeBSD__)
> > +#include <sys/ioctl.h>
> > +#include "igt_freebsd.h"
> > +#endif
> >
> > /**
> > * struct sync_merge_data - data passed to merge ioctl
> > diff --git a/lib/i915/intel_memory_region.c
> b/lib/i915/intel_memory_region.c
> > index 568bace9..0a59f290 100644
> > --- a/lib/i915/intel_memory_region.c
> > +++ b/lib/i915/intel_memory_region.c
> > @@ -21,7 +21,11 @@
> > * IN THE SOFTWARE.
> > */
> >
> > +#ifdef __linux__
> > #include <linux/limits.h>
> > +#elif defined(__FreeBSD__)
> > +#include <limits.h>
> > +#endif
> > #include <signal.h>
> > #include <sys/ioctl.h>
> > #include <sys/time.h>
> > diff --git a/lib/i915/perf.c b/lib/i915/perf.c
> > index d88835ff..beda6b8a 100644
> > --- a/lib/i915/perf.c
> > +++ b/lib/i915/perf.c
> > @@ -29,7 +29,9 @@
> > #include <fcntl.h>
> > #include <sys/ioctl.h>
> > #include <sys/stat.h>
> > +#ifdef __linux__
> > #include <sys/sysmacros.h>
> > +#endif
> > #include <sys/types.h>
> > #include <unistd.h>
> >
> > diff --git a/lib/igt_audio.c b/lib/igt_audio.c
> > index e0b1bafe..201a39c6 100644
> > --- a/lib/igt_audio.c
> > +++ b/lib/igt_audio.c
> > @@ -26,6 +26,10 @@
> >
> > #include "config.h"
> >
> > +#ifdef __FreeBSD__
> > +#include <limits.h>
> > +#endif
> > +
> > #include <errno.h>
> > #include <fcntl.h>
> > #include <gsl/gsl_fft_real.h>
> > diff --git a/lib/igt_aux.c b/lib/igt_aux.c
> > index edb53425..d7e2714f 100644
> > --- a/lib/igt_aux.c
> > +++ b/lib/igt_aux.c
> > @@ -52,7 +52,9 @@
> > #include <assert.h>
> > #include <grp.h>
> >
> > +#ifdef __linux__
> > #include <proc/readproc.h>
> > +#endif
> > #include <libudev.h>
> >
> > #include "drmtest.h"
> > diff --git a/lib/igt_aux.h b/lib/igt_aux.h
> > index c8d487b6..912f36c1 100644
> > --- a/lib/igt_aux.h
> > +++ b/lib/igt_aux.h
> > @@ -34,9 +34,7 @@
> > #include <sys/time.h>
> > #include <sys/types.h>
> > #include <unistd.h>
> > -#ifdef __linux__
> > -# include <sys/syscall.h>
> > -#endif
> > +#include <sys/syscall.h>
> >
> > #include <i915/gem_submission.h>
> >
> > @@ -48,8 +46,8 @@
> > # ifndef HAVE_GETTID
> > # define gettid() (pid_t)(syscall(__NR_gettid))
> > # endif
> > -#endif
> > #define sigev_notify_thread_id _sigev_un._tid
> > +#endif
> >
> > /* auxialiary igt helpers from igt_aux.c */
> > /* generally useful helpers */
> > diff --git a/lib/igt_core.c b/lib/igt_core.c
> > index e7425326..17d5e013 100644
> > --- a/lib/igt_core.c
> > +++ b/lib/igt_core.c
> > @@ -43,9 +43,7 @@
> > #include <unistd.h>
> > #include <sys/wait.h>
> > #include <sys/types.h>
> > -#ifdef __linux__
> > #include <sys/syscall.h>
> > -#endif
> > #include <pthread.h>
> > #include <sys/utsname.h>
> > #include <termios.h>
> > @@ -786,6 +784,7 @@ static void print_usage(const char *help_str, bool
> output_on_stderr)
> >
> > static void oom_adjust_for_doom(void)
> > {
> > +#ifdef __linux__
> > int fd;
> > const char always_kill[] = "1000";
> >
> > @@ -793,7 +792,7 @@ static void oom_adjust_for_doom(void)
> > igt_assert(fd != -1);
> > igt_assert(write(fd, always_kill, sizeof(always_kill)) ==
> sizeof(always_kill));
> > close(fd);
> > -
> > +#endif
> > }
> >
> > /**
> > @@ -2224,6 +2223,9 @@ bool __igt_fork_helper(struct igt_helper_process
> *proc)
> > case 0:
> > reset_helper_process_list();
> > oom_adjust_for_doom();
> > +#ifdef __FreeBSD__
> > + raise(SIGTERM);
> > +#endif
>
> Can't say I understand why this is added. Is this a /* TODO */ of some
> description?
>
>
> --
> Petri Latvala
>
>
>
> >
> > return true;
> > default:
> > diff --git a/lib/igt_core.h b/lib/igt_core.h
> > index aa98e8ed..18e1009d 100644
> > --- a/lib/igt_core.h
> > +++ b/lib/igt_core.h
> > @@ -31,7 +31,11 @@
> > #define IGT_CORE_H
> >
> > #include <assert.h>
> > +#ifdef __linux__
> > #include <byteswap.h>
> > +#elif defined(__FreeBSD__)
> > +#include <sys/endian.h>
> > +#endif
> > #include <setjmp.h>
> > #include <stdbool.h>
> > #include <stdint.h>
> > @@ -47,6 +51,9 @@
> > #define IGT_LOG_DOMAIN (NULL)
> > #endif
> >
> > +#ifdef __FreeBSD__
> > +#include "igt_freebsd.h"
> > +#endif
> >
> > #ifndef STATIC_ANALYSIS_BUILD
> > #if defined(__clang_analyzer__) || defined(__COVERITY__) ||
> defined(__KLOCWORK__)
> > diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
> > index a56688a5..fa1e3b69 100644
> > --- a/lib/igt_debugfs.c
> > +++ b/lib/igt_debugfs.c
> > @@ -25,7 +25,9 @@
> > #include <inttypes.h>
> > #include <sys/stat.h>
> > #include <sys/mount.h>
> > +#ifdef __linux__
> > #include <sys/sysmacros.h>
> > +#endif
> > #include <dirent.h>
> > #include <errno.h>
> > #include <stdio.h>
> > diff --git a/lib/igt_device.c b/lib/igt_device.c
> > index fddfba72..49b77122 100644
> > --- a/lib/igt_device.c
> > +++ b/lib/igt_device.c
> > @@ -25,7 +25,9 @@
> > #include <fcntl.h>
> >
> > #include <sys/stat.h>
> > +#ifdef __linux__
> > #include <sys/sysmacros.h>
> > +#endif
> > #include "igt.h"
> > #include "igt_device.h"
> > #include "igt_sysfs.h"
> > diff --git a/lib/igt_device_scan.c b/lib/igt_device_scan.c
> > index eb6b45b8..6a921d52 100644
> > --- a/lib/igt_device_scan.c
> > +++ b/lib/igt_device_scan.c
> > @@ -32,7 +32,11 @@
> > #include <fcntl.h>
> > #include <glib.h>
> > #include <libudev.h>
> > +#ifdef __linux__
> > #include <linux/limits.h>
> > +#elif defined(__FreeBSD__)
> > +#include <limits.h>
> > +#endif
> > #include <sys/stat.h>
> > #include <sys/time.h>
> > #include <sys/types.h>
> > diff --git a/lib/igt_eld.c b/lib/igt_eld.c
> > index ef6625df..e05ad6de 100644
> > --- a/lib/igt_eld.c
> > +++ b/lib/igt_eld.c
> > @@ -23,6 +23,10 @@
> > * Authors: Simon Ser <simon.ser@intel.com>
> > */
> >
> > +#ifdef __FreeBSD__
> > +#include <limits.h>
> > +#endif
> > +
> > #include "config.h"
> >
> > #include <dirent.h>
> > diff --git a/lib/igt_frame.c b/lib/igt_frame.c
> > index 45523a79..ab74e678 100644
> > --- a/lib/igt_frame.c
> > +++ b/lib/igt_frame.c
> > @@ -24,6 +24,10 @@
> > * Paul Kocialkowski <paul.kocialkowski@linux.intel.com>
> > */
> >
> > +#ifdef __FreeBSD__
> > +#include <limits.h>
> > +#endif
> > +
> > #include "config.h"
> >
> > #include <fcntl.h>
> > diff --git a/lib/igt_freebsd.h b/lib/igt_freebsd.h
> > new file mode 100644
> > index 00000000..81ba5c01
> > --- /dev/null
> > +++ b/lib/igt_freebsd.h
> > @@ -0,0 +1,121 @@
> > +/*
> > + * SPDX-License-Identifier: MIT
> > + *
> > + * Copyright (c) 2022, Jake Freeland <jfree@FreeBSD.org>
> > + *
> > + * Permission is hereby granted, free of charge, to any person
> obtaining a
> > + * copy of this software and associated documentation files (the
> "Software"),
> > + * to deal in the Software without restriction, including without
> limitation
> > + * the rights to use, copy, modify, merge, publish, distribute,
> sublicense,
> > + * and/or sell copies of the Software, and to permit persons to whom the
> > + * Software is furnished to do so, subject to the following conditions:
> > + *
> > + * The above copyright notice and this permission notice (including the
> next
> > + * paragraph) shall be included in all copies or substantial portions
> of the
> > + * Software.
> > + *
> > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
> EXPRESS OR
> > + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> MERCHANTABILITY,
> > + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
> SHALL
> > + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
> OTHER
> > + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
> ARISING
> > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
> DEALINGS
> > + * IN THE SOFTWARE.
> > + */
> > +
> > +#if !defined(IGT_FREEBSD_H) && defined(__FreeBSD__)
> > +#define IGT_FREEBSD_H
> > +
> > +#include <sys/errno.h>
> > +#include <sys/mman.h>
> > +#include <sys/mount.h>
> > +#include <sys/sched.h>
> > +#include <sys/types.h>
> > +#include <sys/watchdog.h>
> > +
> > +#include <pthread.h>
> > +#include <setjmp.h>
> > +#include <signal.h>
> > +#include <unistd.h>
> > +
> > +/*
> > + * Proper substitutions:
> > + * The following macros replace Linux-specific functions
> > + * and macros with their FreeBSD equivalents.
> > + */
> > +
> > +#define __s32 int32_t
> > +#define __u32 uint32_t
> > +#define __u64 uint64_t
> > +
> > +#define sighandler_t sig_t
> > +#define ino64_t ino_t
> > +
> > +#define jmp_buf sigjmp_buf
> > +
> > +#define PTRACE_TRACEME PT_TRACE_ME
> > +#define PTRACE_ATTACH PT_ATTACH
> > +#define PTRACE_PEEKDATA PT_READ_D
> > +#define PTRACE_POKEDATA PT_WRITE_D
> > +#define PTRACE_DETACH PT_DETACH
> > +
> > +#define I2C_RDWR I2CRDWR
> > +#define I2C_M_RD IIC_M_RD
> > +#define i2c_msg iic_msg
> > +#define i2c_rdwr_ioctl_data iic_rdwr_data
> > +
> > +#define _IOC_TYPE(nr) (((nr) >> 8) & 255)
> > +
> > +#define SYS_getdents64 SYS_freebsd11_getdents
> > +
> > +#define mount(src, dest, fstype, flags, data) \
> > + mount(fstype, dest, flags, data)
> > +
> > +/*
> > + * Improper substitutions:
> > + * The following macros are temporary replacements for functions
> > + * and macros that exist on Linux and do not exist on FreeBSD.
> > + */
> > +
> > +#define ETIME ETIMEDOUT
> > +
> > +#define MAP_POPULATE MAP_PREFAULT_READ
> > +
> > +#define MADV_HUGEPAGE MADV_SEQUENTIAL
> > +#define MADV_DONTFORK MADV_NOSYNC
> > +
> > +#define WDIOC_KEEPALIVE WDIOCPATPAT
> > +
> > +#define SCHED_RESET_ON_FORK 0
> > +#define SCHED_IDLE SCHED_OTHER
> > +
> > +#define gettid() getpid()
> > +
> > +#define pthread_sigqueue(pid, signo, value) \
> > + sigqueue(pid, signo, value)
> > +
> > +#define signalfd(fd, mask, flags) -ENOSYS
> > +#define timerfd_create(c, f) -ENOSYS
> > +#define timerfd_settime(fd, f, n, o) -ENOSYS
> > +
> > +/*
> > + * Macro conflict resolution.
> > + */
> > +
> > +#undef ALIGN
> > +#undef PAGE_SIZE
> > +
> > +struct signalfd_siginfo {
> > + uint32_t ssi_signo;
> > + uint32_t ssi_pid;
> > +};
> > +
> > +struct kmod_module {
> > + size_t size;
> > +};
> > +
> > +typedef struct {
> > + char state;
> > +} proc_t;
> > +
> > +#endif /* IGT_FREEBSD_H */
> > diff --git a/lib/igt_kmod.h b/lib/igt_kmod.h
> > index f98dd29f..6596092b 100644
> > --- a/lib/igt_kmod.h
> > +++ b/lib/igt_kmod.h
> > @@ -24,7 +24,9 @@
> > #ifndef IGT_KMOD_H
> > #define IGT_KMOD_H
> >
> > +#ifdef __linux__
> > #include <libkmod.h>
> > +#endif
> >
> > #include "igt_list.h"
> >
> > diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> > index 665594aa..532a3aa8 100644
> > --- a/lib/igt_kms.c
> > +++ b/lib/igt_kms.c
> > @@ -43,6 +43,10 @@
> > #include <sys/kd.h>
> > #endif
> >
> > +#ifdef __FreeBSD__
> > +#include <sys/consio.h>
> > +#endif
> > +
> > #include <libudev.h>
> > #include <poll.h>
> > #include <errno.h>
> > diff --git a/lib/igt_os.c b/lib/igt_os.c
> > index bdd5d933..bb6994e1 100644
> > --- a/lib/igt_os.c
> > +++ b/lib/igt_os.c
> > @@ -44,6 +44,9 @@
> > #include <sys/sysinfo.h>
> > #elif defined(HAVE_SWAPCTL) /* Solaris */
> > #include <sys/swap.h>
> > +#elif defined(__FreeBSD__)
> > +#include <sys/sysctl.h>
> > +#include <sys/types.h>
> > #endif
> > #include <sys/resource.h>
> >
> > @@ -148,6 +151,15 @@ igt_get_avail_ram_mb(void)
> > npages = sysconf(_SC_AVPHYS_PAGES);
> >
> > retval = (uint64_t) pagesize * npages;
> > +#elif defined(__FreeBSD__)
> > + uint64_t npages, pagesize;
> > + size_t npages_len = sizeof(npages);
> > + size_t pagesize_len = sizeof(pagesize);
> > +
> > + sysctlbyname("vm.stats.vm.v_free_count", &npages, &npages_len,
> NULL, 0);
> > + sysctlbyname("vm.stats.vm.v_page_size", &pagesize, &pagesize_len,
> NULL, 0);
> > +
> > + retval = pagesize * npages;
> > #else
> > #error "Unknown how to get available RAM for this OS"
> > #endif
> > @@ -210,6 +222,13 @@ igt_get_total_swap_mb(void)
> > free(buf);
> >
> > retval = (uint64_t) pagesize * totalpages;
> > +#elif defined(__FreeBSD__)
> > + uint64_t swap_total;
> > + size_t swap_total_len = sizeof(swap_total);
> > +
> > + sysctlbyname("vm.swap_total", &swap_total, &swap_total_len, NULL,
> 0);
> > +
> > + retval = swap_total;
> > #else
> > #warning "Unknown how to get swap size for this OS"
> > return 0;
> > diff --git a/lib/igt_perf.c b/lib/igt_perf.c
> > index b743859f..11c91c5f 100644
> > --- a/lib/igt_perf.c
> > +++ b/lib/igt_perf.c
> > @@ -4,8 +4,10 @@
> > #include <stdlib.h>
> > #include <string.h>
> > #include <sys/stat.h>
> > +#ifdef __linux__
> > #include <sys/sysinfo.h>
> > #include <sys/sysmacros.h>
> > +#endif
> > #include <time.h>
> > #include <unistd.h>
> >
> > diff --git a/lib/igt_perf.h b/lib/igt_perf.h
> > index a8328c70..0cd91386 100644
> > --- a/lib/igt_perf.h
> > +++ b/lib/igt_perf.h
> > @@ -27,10 +27,13 @@
> >
> > #include <stdint.h>
> >
> > +#ifdef __linux__
> > #include <linux/perf_event.h>
> > +#endif
> >
> > #include "igt_gt.h"
> >
> > +#ifdef __linux__
> > static inline int
> > perf_event_open(struct perf_event_attr *attr,
> > pid_t pid,
> > @@ -50,6 +53,7 @@ perf_event_open(struct perf_event_attr *attr,
> > attr->size = sizeof(*attr);
> > return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd,
> flags);
> > }
> > +#endif /* __linux__ */
> >
> > uint64_t igt_perf_type_id(const char *device);
> > int igt_perf_open(uint64_t type, uint64_t config);
> > diff --git a/lib/igt_pm.c b/lib/igt_pm.c
> > index 312288d0..1e6e9ed3 100644
> > --- a/lib/igt_pm.c
> > +++ b/lib/igt_pm.c
> > @@ -33,7 +33,9 @@
> > #include <string.h>
> > #include <unistd.h>
> > #include <sys/stat.h>
> > +#ifdef __linux__
> > #include <sys/sysmacros.h>
> > +#endif
> > #include <sys/types.h>
> > #include <dirent.h>
> >
> > diff --git a/lib/igt_sysfs.c b/lib/igt_sysfs.c
> > index 9c307694..a913be4c 100644
> > --- a/lib/igt_sysfs.c
> > +++ b/lib/igt_sysfs.c
> > @@ -24,7 +24,9 @@
> >
> > #include <inttypes.h>
> > #include <sys/stat.h>
> > +#ifdef __linux__
> > #include <sys/sysmacros.h>
> > +#endif
> > #include <sys/mount.h>
> > #include <errno.h>
> > #include <stdarg.h>
> > diff --git a/lib/tests/igt_exit_handler.c b/lib/tests/igt_exit_handler.c
> > index 892a7f14..d2381944 100644
> > --- a/lib/tests/igt_exit_handler.c
> > +++ b/lib/tests/igt_exit_handler.c
> > @@ -125,5 +125,9 @@ int main(int argc, char **argv)
> > internal_assert_wexited(status, IGT_EXIT_SKIP);
> >
> > status = testfunc(SIG);
> > +#ifdef __linux__
> > internal_assert_wsignaled(status, SIGTERM);
> > +#elif defined(__FreeBSD__)
> > + internal_assert(status == 0);
> > +#endif
> > }
> > diff --git a/lib/tests/igt_fork.c b/lib/tests/igt_fork.c
> > index d19d0945..c7193b06 100644
> > --- a/lib/tests/igt_fork.c
> > +++ b/lib/tests/igt_fork.c
> > @@ -109,7 +109,7 @@ __noreturn static void igt_fork_timeout_leak(void)
> > __noreturn static void subtest_leak(void)
> > {
> > pid_t *children =
> > - mmap(0, 4096, PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
> > + mmap(0, 4096, PROT_WRITE | PROT_READ, MAP_SHARED |
> MAP_ANON, -1, 0);
> > const int num_children = 4096 / sizeof(*children);
> >
> > igt_subtest_init(fake_argc, fake_argv);
> > diff --git a/lib/tests/igt_tests_common.h b/lib/tests/igt_tests_common.h
> > index 058f6265..e8183897 100644
> > --- a/lib/tests/igt_tests_common.h
> > +++ b/lib/tests/igt_tests_common.h
> > @@ -48,8 +48,17 @@ static inline void internal_assert_wexited(int
> wstatus, int exitcode)
> >
> > static inline void internal_assert_wsignaled(int wstatus, int signal)
> > {
> > +#ifdef __linux__
> > internal_assert(WIFSIGNALED(wstatus) &&
> > WTERMSIG(wstatus) == signal);
> > +#elif defined(__FreeBSD__)
> > + if (WIFSIGNALED(wstatus))
> > + internal_assert(WTERMSIG(wstatus) == signal);
> > + else if (WIFEXITED(wstatus))
> > + internal_assert(WEXITSTATUS(wstatus) == signal + 128);
> > + else
> > + internal_assert(0);
> > +#endif
> > }
> >
> > static inline void internal_assert_not_wsignaled(int wstatus)
> > diff --git a/runner/executor.c b/runner/executor.c
> > index 964d0063..c54072cf 100644
> > --- a/runner/executor.c
> > +++ b/runner/executor.c
> > @@ -2,7 +2,9 @@
> > #include <errno.h>
> > #include <fcntl.h>
> > #include <glib.h>
> > +#ifdef __linux__
> > #include <linux/watchdog.h>
> > +#endif
> > #if HAVE_OPING
> > #include <oping.h>
> > #endif
> > @@ -33,6 +35,10 @@
> > #define KMSG_HEADER "[IGT] "
> > #define KMSG_WARN 4
> >
> > +#ifdef __FreeBSD__
> > +#include <sys/watchdog.h>
> > +#endif
> > +
> > static struct {
> > int *fds;
> > size_t num_dogs;
> > diff --git a/runner/job_list.c b/runner/job_list.c
> > index 520a98da..6bfa7162 100644
> > --- a/runner/job_list.c
> > +++ b/runner/job_list.c
> > @@ -1,7 +1,12 @@
> > #include <ctype.h>
> > #include <errno.h>
> > #include <fcntl.h>
> > +#ifdef __linux__
> > #include <linux/limits.h>
> > +#elif defined(__FreeBSD__)
> > +#include <sys/wait.h>
> > +#include <limits.h>
> > +#endif
> > #include <stdio.h>
> > #include <stdlib.h>
> > #include <string.h>
> > diff --git a/tests/i915/gem_close_race.c b/tests/i915/gem_close_race.c
> > index 938fde8f..42fe1657 100644
> > --- a/tests/i915/gem_close_race.c
> > +++ b/tests/i915/gem_close_race.c
> > @@ -61,7 +61,9 @@ static bool has_softpin;
> > static uint64_t exec_addr;
> > static uint64_t data_addr;
> >
> > +#ifdef __linux__
> > #define sigev_notify_thread_id _sigev_un._tid
> > +#endif
> >
> > static void selfcopy(int fd, uint32_t ctx, uint32_t handle, int loops)
> > {
> > diff --git a/tests/i915/gem_mmap_gtt.c b/tests/i915/gem_mmap_gtt.c
> > index e39b9047..4f05eb18 100644
> > --- a/tests/i915/gem_mmap_gtt.c
> > +++ b/tests/i915/gem_mmap_gtt.c
> > @@ -566,7 +566,7 @@ test_ptrace(int fd)
> > for (int i = 0; i < sz / sizeof(long); i++) {
> > long ret;
> >
> > - ret = ptrace(PTRACE_PEEKDATA, pid, gtt + i);
> > + ret = ptrace(PTRACE_PEEKDATA, pid, gtt + i, NULL);
> > igt_assert_eq_u64(ret, CC);
> > cpy[i] = ret;
> >
> > diff --git a/tests/i915/gem_mmap_offset.c b/tests/i915/gem_mmap_offset.c
> > index 7e8c02d1..fc4245f6 100644
> > --- a/tests/i915/gem_mmap_offset.c
> > +++ b/tests/i915/gem_mmap_offset.c
> > @@ -520,7 +520,7 @@ static void test_ptrace(int i915)
> > for (int i = 0; i < SZ / sizeof(long);
> i++) {
> > long ret;
> >
> > - ret = ptrace(PTRACE_PEEKDATA, pid,
> ptr + i);
> > + ret = ptrace(PTRACE_PEEKDATA, pid,
> ptr + i, NULL);
> > igt_assert_eq_u64(ret, CC);
> > cpy[i] = ret;
> >
> > diff --git a/tests/i915/i915_module_load.c
> b/tests/i915/i915_module_load.c
> > index 4c72157c..9bec4c18 100644
> > --- a/tests/i915/i915_module_load.c
> > +++ b/tests/i915/i915_module_load.c
> > @@ -23,7 +23,9 @@
> > #include "igt.h"
> > #include <dirent.h>
> > #include <sys/utsname.h>
> > +#ifdef __linux__
> > #include <linux/limits.h>
> > +#endif
> > #include <signal.h>
> > #include <libgen.h>
> > #include <signal.h>
> > diff --git a/tests/i915/i915_pm_backlight.c
> b/tests/i915/i915_pm_backlight.c
> > index cafae7f7..c520cf20 100644
> > --- a/tests/i915/i915_pm_backlight.c
> > +++ b/tests/i915/i915_pm_backlight.c
> > @@ -46,6 +46,10 @@ struct context {
> > #define FADESTEPS 10
> > #define FADESPEED 100 /* milliseconds between steps */
> >
> > +#ifdef __FreeBSD__
> > +#include <libgen.h>
> > +#endif
> > +
> > IGT_TEST_DESCRIPTION("Basic backlight sysfs test");
> >
> > static int backlight_read(int *result, const char *fname)
> > diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
> > index e95875dc..761e76f9 100644
> > --- a/tests/i915/i915_pm_rpm.c
> > +++ b/tests/i915/i915_pm_rpm.c
> > @@ -40,8 +40,10 @@
> > #include <sys/mman.h>
> > #include <sys/types.h>
> > #include <sys/stat.h>
> > +#ifdef __linux__
> > #include <linux/i2c.h>
> > #include <linux/i2c-dev.h>
> > +#endif
> >
> > #include <drm.h>
> >
> > @@ -54,6 +56,12 @@
> > #include "igt_device.h"
> > #include "igt_edid.h"
> >
> > +#ifdef __FreeBSD__
> > +#include <limits.h>
> > +#include <dev/iicbus/iic.h>
> > +#define addr slave
> > +#endif
> > +
> > #define MSR_PC8_RES 0x630
> > #define MSR_PC9_RES 0x631
> > #define MSR_PC10_RES 0x632
> > diff --git a/tests/kms_content_protection.c
> b/tests/kms_content_protection.c
> > index 3041f1cd..e0e5af78 100644
> > --- a/tests/kms_content_protection.c
> > +++ b/tests/kms_content_protection.c
> > @@ -24,7 +24,9 @@
> >
> > #include <poll.h>
> > #include <fcntl.h>
> > +#ifdef __linux__
> > #include <sys/epoll.h>
> > +#endif
> > #include <sys/stat.h>
> > #include <libudev.h>
> > #include "igt.h"
> > diff --git a/tests/kms_flip.c b/tests/kms_flip.c
> > index 0567edea..1127e418 100755
> > --- a/tests/kms_flip.c
> > +++ b/tests/kms_flip.c
> > @@ -45,6 +45,10 @@
> > #include "i915/gem_create.h"
> > #include "igt_stats.h"
> >
> > +#ifdef __FreeBSD__
> > +#include <sys/consio.h>
> > +#endif
> > +
> > #define TEST_DPMS (1 << 0)
> >
> > #define TEST_PAN (1 << 3)
> > diff --git a/tests/kms_sysfs_edid_timing.c
> b/tests/kms_sysfs_edid_timing.c
> > index 77521108..cd980c6a 100644
> > --- a/tests/kms_sysfs_edid_timing.c
> > +++ b/tests/kms_sysfs_edid_timing.c
> > @@ -26,6 +26,10 @@
> > #include <fcntl.h>
> > #include <sys/stat.h>
> >
> > +#ifdef __FreeBSD__
> > +#include <limits.h>
> > +#endif
> > +
> > #define THRESHOLD_PER_CONNECTOR 150
> > #define THRESHOLD_PER_CONNECTOR_MEAN 140
> > #define THRESHOLD_ALL_CONNECTORS_MEAN 100
> > diff --git a/tests/tools_test.c b/tests/tools_test.c
> > index 237f0433..89a19d11 100644
> > --- a/tests/tools_test.c
> > +++ b/tests/tools_test.c
> > @@ -28,7 +28,11 @@
> > #include <fcntl.h>
> > #include <libgen.h>
> > #include <unistd.h>
> > +#ifdef __linux__
> > #include <linux/limits.h>
> > +#elif defined(__FreeBSD__)
> > +#include <limits.h>
> > +#endif
> >
> > #define TOOLS "../tools/"
> >
> > diff --git a/tools/intel_gvtg_test.c b/tools/intel_gvtg_test.c
> > index ad5ee6a6..3e53c6d9 100644
> > --- a/tools/intel_gvtg_test.c
> > +++ b/tools/intel_gvtg_test.c
> > @@ -55,6 +55,10 @@
> > #include <limits.h>
> > #include <dirent.h>
> >
> > +#ifdef __FreeBSD__
> > +#include <sys/wait.h>
> > +#endif
> > +
> > #define RANDOM(x) (rand() % x)
> >
> >
> > --
> > 2.37.3
> >
>
[-- Attachment #2: Type: text/html, Size: 35853 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-10-06 2:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-28 20:21 [igt-dev] [PATCH i-g-t] Introduced partial FreeBSD compatibility Jake Freeland
2022-09-28 23:53 ` [igt-dev] ✓ Fi.CI.BAT: success for Introduced partial FreeBSD compatibility (rev6) Patchwork
2022-09-29 23:15 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-10-04 9:41 ` [igt-dev] [PATCH i-g-t] Introduced partial FreeBSD compatibility Petri Latvala
2022-10-06 2:30 ` Jake Freeland
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.