Mesa (master): intel: Load the driver even if I915_PARAM_REVISION is not found.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Feb 6 09:24:12 UTC 2020
Module: Mesa
Branch: master
Commit: 4aa7af9e9a4c19e10afaf4a3c756e62cf4d352c3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4aa7af9e9a4c19e10afaf4a3c756e62cf4d352c3
Author: Rafael Antognolli <rafael.antognolli at intel.com>
Date: Mon Aug 19 12:28:55 2019 -0700
intel: Load the driver even if I915_PARAM_REVISION is not found.
This param is only available starting on kernel 4.1. Use a default
value of 0 if it is not found instead.
v2: Update commit message (Lionel)
Cc: Jordan Justen <jordan.l.justen at intel.com>
Cc: Mark Janes <mark.a.janes at intel.com>
Fixes: 96e1c945f2b ("i965: Move device info initialization to common
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3727>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3727>
---
src/intel/dev/gen_device_info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c
index 0649c0705ea..7a22476916b 100644
--- a/src/intel/dev/gen_device_info.c
+++ b/src/intel/dev/gen_device_info.c
@@ -1447,7 +1447,7 @@ gen_get_device_info_from_fd(int fd, struct gen_device_info *devinfo)
return false;
if (!getparam(fd, I915_PARAM_REVISION, &devinfo->revision))
- return false;
+ devinfo->revision = 0;
if (!query_topology(devinfo, fd)) {
if (devinfo->gen >= 10) {
More information about the mesa-commit
mailing list