dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Bug 93199] IGT: Couldn't map MMIO region
       [not found] <bug-93199-502@http.bugs.freedesktop.org/>
@ 2017-03-29 12:39 ` bugzilla-daemon
  2017-10-02 21:34 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2017-03-29 12:39 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 924 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93199

Jari Tahvanainen <jari.tahvanainen@intel.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|DRM/Intel                   |IGT
           Assignee|intel-gfx-bugs@lists.freede |dri-devel@lists.freedesktop
                   |sktop.org                   |.org
         QA Contact|intel-gfx-bugs@lists.freede |
                   |sktop.org                   |
             Status|REOPENED                    |NEEDINFO

--- Comment #23 from Jari Tahvanainen <jari.tahvanainen@intel.com> ---
Moving this from DRM/Intel to IGT, since it seems to be problem with that.
Sean, Jonathan, Dimitry and Rami - please check if this problem is still valid
with the latest igt.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2568 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 93199] IGT: Couldn't map MMIO region
       [not found] <bug-93199-502@http.bugs.freedesktop.org/>
  2017-03-29 12:39 ` [Bug 93199] IGT: Couldn't map MMIO region bugzilla-daemon
@ 2017-10-02 21:34 ` bugzilla-daemon
  2017-10-02 21:35 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2017-10-02 21:34 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 4522 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93199

--- Comment #24 from oskar@cetex.se ---
(In reply to Jari Tahvanainen from comment #23)
> Moving this from DRM/Intel to IGT, since it seems to be problem with that.
> Sean, Jonathan, Dimitry and Rami - please check if this problem is still
> valid with the latest igt.

I've found i have the same issue, running as root:

root@oskar-ThinkPad-X270:/sys/bus/pci/devices/0000:00:02.0# intel_gpu_top 
(intel_gpu_top:6971) intel-mmio-CRITICAL: Test assertion failure function
intel_mmio_use_pci_bar, file ../../lib/intel_mmio.c:145:
(intel_gpu_top:6971) intel-mmio-CRITICAL: Failed assertion: !(error != 0)
(intel_gpu_top:6971) intel-mmio-CRITICAL: Last errno: 1, Operation not
permitted
(intel_gpu_top:6971) intel-mmio-CRITICAL: Couldn't map MMIO region
Stack trace:
  #0 [_init+0x7369]
  #1 [_init+0x4fd0]
  #2 [_init+0x98e]
  #3 [__libc_start_main+0xf1]
  #4 [_init+0x1752]
  #5 [<unknown>+0x1752]
Test (null) failed.
**** DEBUG ****
(intel_gpu_top:6971) intel-chipset-DEBUG: Test requirement passed: pci_dev
(intel_gpu_top:6971) intel-mmio-CRITICAL: Test assertion failure function
intel_mmio_use_pci_bar, file ../../lib/intel_mmio.c:145:
(intel_gpu_top:6971) intel-mmio-CRITICAL: Failed assertion: !(error != 0)
(intel_gpu_top:6971) intel-mmio-CRITICAL: Last errno: 1, Operation not
permitted
(intel_gpu_top:6971) intel-mmio-CRITICAL: Couldn't map MMIO region
****  END  ****
FAIL (-1.000s)


strace shows failure on opening resource0:
open("/sys/bus/pci/devices/0000:00:02.0/resource", O_RDONLY|O_CLOEXEC) = 4
read(4, "0x00000000e0000000 0x00000000e0f"..., 512) = 512
close(4)                                = 0
open("/sys/bus/pci/devices/0000:00:02.0/resource0", O_RDWR|O_CLOEXEC) = 4
mmap(NULL, 2097152, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) = -1 EPERM
(Operation not permitted)
close(4)                                = 0
write(2, "(intel_gpu_top:7094) intel-mmio-"..., 131(intel_gpu_top:7094)
intel-mmio-CRITICAL: Test assertion failure function intel_mmio_use_pci_bar,
file ../../lib/intel_mmio.c:145:
) = 131
write(2, "(intel_gpu_top:7094) intel-mmio-"..., 74(intel_gpu_top:7094)
intel-mmio-CRITICAL: Failed assertion: !(error != 0)
) = 74
write(2, "(intel_gpu_top:7094) intel-mmio-"..., 81(intel_gpu_top:7094)
intel-mmio-CRITICAL: Last errno: 1, Operation not permitted
) = 81
write(2, "(intel_gpu_top:7094) intel-mmio-"..., 67(intel_gpu_top:7094)
intel-mmio-CRITICAL: Couldn't map MMIO region
) = 67

checking if readable with cat:
root@oskar-ThinkPad-X270:/sys/bus/pci/devices/0000:00:02.0# cat resource
0x00000000e0000000 0x00000000e0ffffff 0x0000000000140204
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x00000000c0000000 0x00000000dfffffff 0x000000000014220c
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x000000000000e000 0x000000000000e03f 0x0000000000040101
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x00000000000c0000 0x00000000000dffff 0x0000000000000212
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
root@oskar-ThinkPad-X270:/sys/bus/pci/devices/0000:00:02.0# cat resource0
cat: resource0: Input/output error
root@oskar-ThinkPad-X270:/sys/bus/pci/devices/0000:00:02.0# cat resource2
cat: resource2: Input/output error
root@oskar-ThinkPad-X270:/sys/bus/pci/devices/0000:00:02.0# cat resource2_wc
cat: resource2_wc: Input/output error
root@oskar-ThinkPad-X270:/sys/bus/pci/devices/0000:00:02.0# cat resource4
cat: resource4: Invalid argument

root@oskar-ThinkPad-X270:/sys/bus/pci/devices/0000:00:02.0# ls -la resource*
-r--r--r-- 1 root root      4096 okt  2 22:38 resource
-rw------- 1 root root  16777216 okt  2 22:30 resource0
-rw------- 1 root root 536870912 okt  2 22:38 resource2
-rw------- 1 root root 536870912 okt  2 22:38 resource2_wc
-rw------- 1 root root        64 okt  2 22:38 resource4

root@oskar-ThinkPad-X270:/sys/bus/pci/devices/0000:00:02.0# uname -a
Linux oskar-ThinkPad-X270 4.10.0-35-generic #39-Ubuntu SMP Wed Sep 13 07:46:59
UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


I wonder if it could be related to secure_boot?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 5439 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 93199] IGT: Couldn't map MMIO region
       [not found] <bug-93199-502@http.bugs.freedesktop.org/>
  2017-03-29 12:39 ` [Bug 93199] IGT: Couldn't map MMIO region bugzilla-daemon
  2017-10-02 21:34 ` bugzilla-daemon
@ 2017-10-02 21:35 ` bugzilla-daemon
  2018-05-09 21:07 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2017-10-02 21:35 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 254 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93199

--- Comment #25 from oskar@cetex.se ---
Forgot to mention this is ubuntu 17.04 and i intel-gpu-tools are version 1.17-1

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 986 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 93199] IGT: Couldn't map MMIO region
       [not found] <bug-93199-502@http.bugs.freedesktop.org/>
                   ` (2 preceding siblings ...)
  2017-10-02 21:35 ` bugzilla-daemon
@ 2018-05-09 21:07 ` bugzilla-daemon
  2018-08-31  7:02 ` bugzilla-daemon
  2018-08-31  7:02 ` bugzilla-daemon
  5 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-05-09 21:07 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 365 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93199

--- Comment #26 from Christian Kellner <gicmo@gnome.org> ---
Just stumbled into the same issue, disabled secure boot, and the issue
disappeared. Now I am having a different issue, but I think it is just my
version being too old.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1128 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 93199] IGT: Couldn't map MMIO region
       [not found] <bug-93199-502@http.bugs.freedesktop.org/>
                   ` (3 preceding siblings ...)
  2018-05-09 21:07 ` bugzilla-daemon
@ 2018-08-31  7:02 ` bugzilla-daemon
  2018-08-31  7:02 ` bugzilla-daemon
  5 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-08-31  7:02 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1016 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93199

Jani Nikula <jani.nikula@intel.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOTOURBUG
             Status|NEEDINFO                    |RESOLVED

--- Comment #27 from Jani Nikula <jani.nikula@intel.com> ---
Based on an IRC chat with Joonas and Dave, looks like this is indeed kernel
lockdown on UEFI secure boot doing its magic. The kernel lockdown patches
haven't been merged upstream, so you should not be able to reproduce this on
kernel.org upstream kernels. Please file your bugs against your distro if this
remains an issue for you.

See e.g. https://mjg59.dreamwidth.org/50577.html for background.

Sorry it took us so long to get this; we're obviously not running non-upstream
kernels with lockdown enabled.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2526 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 93199] IGT: Couldn't map MMIO region
       [not found] <bug-93199-502@http.bugs.freedesktop.org/>
                   ` (4 preceding siblings ...)
  2018-08-31  7:02 ` bugzilla-daemon
@ 2018-08-31  7:02 ` bugzilla-daemon
  5 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-08-31  7:02 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 371 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93199

Jani Nikula <jani.nikula@intel.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1070 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-08-31  7:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-93199-502@http.bugs.freedesktop.org/>
2017-03-29 12:39 ` [Bug 93199] IGT: Couldn't map MMIO region bugzilla-daemon
2017-10-02 21:34 ` bugzilla-daemon
2017-10-02 21:35 ` bugzilla-daemon
2018-05-09 21:07 ` bugzilla-daemon
2018-08-31  7:02 ` bugzilla-daemon
2018-08-31  7:02 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).