[PATCH v2 3/5] lib/igt_gt: Add igt_open_forcewake_handle_for_pcidev()
Lucas De Marchi
lucas.demarchi at intel.com
Tue Sep 24 02:06:52 UTC 2024
On Mon, Sep 23, 2024 at 05:11:44PM GMT, Lucas De Marchi wrote:
>+int igt_open_forcewake_handle_for_pcidev(const struct pci_device *pci_dev)
>+{
>+ static const char *FORCEWAKE_FILES[] = {
>+ "forcewake_all", "i915_forcewake_user",
>+ NULL
>+ };
>+ const char *debugfs_root = igt_debugfs_mount(), **fn;
>+ char path[PATH_MAX];
>+ int dirlen, ret;
>+
>+ if (!debugfs_root)
>+ return -ENOENT;
>+
>+ ret = snprintf(path, sizeof(path), "%s/dri/%04u:%02u:%02u.%u",
oops, these were supposed to be x, not u.
Lucas De Marchi
More information about the igt-dev
mailing list