All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 106258] AMD Xorg start failes with non-4K page sizes
@ 2018-04-26 21:12 bugzilla-daemon
  2018-04-26 21:14 ` bugzilla-daemon
                   ` (41 more replies)
  0 siblings, 42 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-04-26 21:12 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 106258
           Summary: AMD Xorg start failes with non-4K page sizes
           Product: DRI
           Version: unspecified
          Hardware: PowerPC
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: freedesktop@bluematt.me

Have two nearly-identical boxes, both running Debian testing with a 4.16
kernel, only major difference is one is configured with a 4k page size, one
with Debian's default 64K page size (on PPC64LE). This results in a corrupted
output when running X (with a non-corrupt mouse overlayed on top) and the
following WARN in dmesg:

[   33.990146] WARNING: CPU: 8 PID: 1401 at
/build/linux-z743uR/linux-4.16/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c:326
amdgpu_sa_bo_new+0x630/0x6b0 [amdgpu]
[   33.990148] Modules linked in: ext4 crc16 mbcache jbd2 fscrypto amdgpu chash
evdev ast gpu_sched ttm snd_hda_codec_hdmi drm_kms_helper snd_hda_intel
ghash_generic snd_hda_codec gf128mul drm ctr snd_hda_core snd_hwdep cbc sg
snd_pcm vmx_crypto drm_panel_orientation_quirks syscopyarea ofpart snd_timer
sysfillrect ipmi_powernv sysimgblt snd powernv_flash ipmi_devintf fb_sys_fops
mtd ipmi_msghandler i2c_algo_bit opal_prd soundcore at24 ip_tables x_tables
autofs4 btrfs crc32c_generic xor zstd_decompress zstd_compress xxhash raid6_pq
ecb xts algif_skcipher af_alg hid_generic usbhid hid sd_mod dm_crypt dm_mod
xhci_pci xhci_hcd mpt3sas usbcore tg3 raid_class scsi_transport_sas libphy
usb_common
[   33.990187] CPU: 8 PID: 1401 Comm: gnome-shell Not tainted
4.16.0-trunk-powerpc64le #1 Debian 4.16-1~exp1
[   33.990189] NIP:  c00800000e08bfe8 LR: c00800000e0940d4 CTR:
0000000000000000
[   33.990190] REGS: c000000fac573260 TRAP: 0700   Not tainted 
(4.16.0-trunk-powerpc64le Debian 4.16-1~exp1)
[   33.990191] MSR:  9000000000029033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 24828848 
XER: 20040000
[   33.990196] CFAR: c00800000e08ba14 SOFTE: 0 
               GPR00: c00800000e0940d4 c000000fac5734e0 c00800000e2e1c00
c000000ff4673318 
               GPR04: c000000feedc5a58 0000000009fff138 0000000000000100
0000000ffacf0000 
               GPR08: 0000000000000010 0000000000100000 0000000000000000
c00800000e246b98 
               GPR12: 0000000000008000 c00000000fa85800 c000000ff4670000
c000000ff45067e0 
               GPR16: 00000000000e69ff c000000feedc5a58 00000000fffe2000
ffffffffffffffef 
               GPR20: 0000000009fff138 c000000ff4670000 0000000000000100
0000000000000000 
               GPR24: 00000000000e69ff 0000000000104a00 c000000ff4673318
0000000116000000 
               GPR28: c000000ff4670000 0000000000000000 c000000feedc5a58
0000000009fff138 
[   33.990228] NIP [c00800000e08bfe8] amdgpu_sa_bo_new+0x630/0x6b0 [amdgpu]
[   33.990244] LR [c00800000e0940d4] amdgpu_ib_get+0x8c/0x120 [amdgpu]
[   33.990245] Call Trace:
[   33.990261] [c000000fac5734e0] [c00800000e08bae4]
amdgpu_sa_bo_new+0x12c/0x6b0 [amdgpu] (unreliable)
[   33.990278] [c000000fac573740] [c00800000e0940d4] amdgpu_ib_get+0x8c/0x120
[amdgpu]
[   33.990298] [c000000fac5737c0] [c00800000e176db8]
amdgpu_job_alloc_with_ib+0x90/0x110 [amdgpu]
[   33.990316] [c000000fac573800] [c00800000e090be8]
amdgpu_vm_bo_update_mapping+0x360/0x4b0 [amdgpu]
[   33.990332] [c000000fac5738f0] [c00800000e091084]
amdgpu_vm_bo_update+0x34c/0x710 [amdgpu]
[   33.990350] [c000000fac573a00] [c00800000e0768b0]
amdgpu_gem_va_ioctl+0x5f8/0x620 [amdgpu]
[   33.990356] [c000000fac573b50] [c00800000cd88f48]
drm_ioctl_kernel+0xa0/0x140 [drm]
[   33.990361] [c000000fac573ba0] [c00800000cd89424] drm_ioctl+0x1bc/0x4f0
[drm]
[   33.990376] [c000000fac573cf0] [c00800000e050078] amdgpu_drm_ioctl+0x70/0xd0
[amdgpu]
[   33.990379] [c000000fac573d40] [c0000000003dd8dc] do_vfs_ioctl+0xdc/0x8a0
[   33.990381] [c000000fac573de0] [c0000000003de164] SyS_ioctl+0xc4/0x130
[   33.990383] [c000000fac573e30] [c00000000000b8e0] system_call+0x58/0x6c
[   33.990384] Instruction dump:
[   33.990386] 7fc3f378 38210260 e8010010 81810008 ea21ff88 ea81ffa0 eac1ffb0
eb41ffd0 
[   33.990389] ebc1fff0 7c0803a6 7d908120 4e800020 <0fe00000> 3bc0ffea 7fc3f378
38210260 
[   33.990393] ---[ end trace 59adbd4db83fa3b4 ]---
[   33.990397] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[   33.990501] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[   34.007673] amdgpu 0000:01:00.0: failed to get a new IB (-22)

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

[-- Attachment #1.2: Type: text/html, Size: 5978 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
@ 2018-04-26 21:14 ` bugzilla-daemon
  2018-04-26 21:17 ` bugzilla-daemon
                   ` (40 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-04-26 21:14 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #1 from Timothy Pearson <tpearson@raptorengineering.com> ---
This also affects the WX7100, same symptoms.  Shows up as soon as an OpenGL
application tries to use the accelerated graphics.  Kernel 4.16.

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

[-- Attachment #1.2: Type: text/html, Size: 1137 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
  2018-04-26 21:14 ` bugzilla-daemon
@ 2018-04-26 21:17 ` bugzilla-daemon
  2018-04-26 21:19 ` bugzilla-daemon
                   ` (39 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-04-26 21:17 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #2 from Matt Corallo <freedesktop@bluematt.me> ---
Oops, forgot to specify this is on a WX4100.

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

[-- Attachment #1.2: Type: text/html, Size: 1020 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
  2018-04-26 21:14 ` bugzilla-daemon
  2018-04-26 21:17 ` bugzilla-daemon
@ 2018-04-26 21:19 ` bugzilla-daemon
  2018-04-26 21:22 ` bugzilla-daemon
                   ` (38 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-04-26 21:19 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #3 from Timothy Pearson <tpearson@raptorengineering.com> ---
(In reply to Timothy Pearson from comment #1)
> This also affects the WX7100, same symptoms.  Shows up as soon as an OpenGL
> application tries to use the accelerated graphics.  Kernel 4.16.

On our end Ureal Engine 4 would reliably trigger the problem.  A number of
other open source 3D applications worked without issues.

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

[-- Attachment #1.2: Type: text/html, Size: 1398 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (2 preceding siblings ...)
  2018-04-26 21:19 ` bugzilla-daemon
@ 2018-04-26 21:22 ` bugzilla-daemon
  2018-04-27 20:25 ` bugzilla-daemon
                   ` (37 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-04-26 21:22 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #4 from Matt Corallo <freedesktop@bluematt.me> ---
Oops, looks like we got our wires crossed on what has and hasn't been tested.
It only *may* be PAGE_SIZE related, but seems relevant 3d stuff was never
tested on PPC64LE with 4K pages, only 64K.

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

[-- Attachment #1.2: Type: text/html, Size: 1172 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (3 preceding siblings ...)
  2018-04-26 21:22 ` bugzilla-daemon
@ 2018-04-27 20:25 ` bugzilla-daemon
  2018-05-01 10:08 ` bugzilla-daemon
                   ` (36 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-04-27 20:25 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #5 from Matt Corallo <freedesktop@bluematt.me> ---
Just checked with today's linus/master (somwehere between 4.17-rc2 and
4.17-rc3) and the issue is still present.

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

[-- Attachment #1.2: Type: text/html, Size: 1089 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (4 preceding siblings ...)
  2018-04-27 20:25 ` bugzilla-daemon
@ 2018-05-01 10:08 ` bugzilla-daemon
  2018-05-01 13:02 ` bugzilla-daemon
                   ` (35 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-01 10:08 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #6 from Timothy Pearson <tpearson@raptorengineering.com> ---
This looks like something that should be filed at bugzilla.kernel.org against
the amdgpu driver itself.  It will get more visibility by the right people
there.

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

[-- Attachment #1.2: Type: text/html, Size: 1157 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (5 preceding siblings ...)
  2018-05-01 10:08 ` bugzilla-daemon
@ 2018-05-01 13:02 ` bugzilla-daemon
  2018-05-01 13:06 ` bugzilla-daemon
                   ` (34 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-01 13:02 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #7 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Timothy Pearson from comment #6)
> This looks like something that should be filed at bugzilla.kernel.org
> against the amdgpu driver itself.  It will get more visibility by the right
> people there.

No, we prefer this bugzilla for tracking kernel driver issues as well.

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

[-- Attachment #1.2: Type: text/html, Size: 1335 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (6 preceding siblings ...)
  2018-05-01 13:02 ` bugzilla-daemon
@ 2018-05-01 13:06 ` bugzilla-daemon
  2018-05-01 16:05 ` bugzilla-daemon
                   ` (33 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-01 13:06 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #8 from Andrey Grodzovsky <andrey.grodzovsky@amd.com> ---
I Wonder is there a way to reproduce this on x86 platform, from looking in
kflags there is no  CONFIG_x86_4/16/64K_PAGES flags.

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

[-- Attachment #1.2: Type: text/html, Size: 1118 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (7 preceding siblings ...)
  2018-05-01 13:06 ` bugzilla-daemon
@ 2018-05-01 16:05 ` bugzilla-daemon
  2018-05-02  9:22 ` bugzilla-daemon
                   ` (32 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-01 16:05 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #9 from Matt Corallo <freedesktop@bluematt.me> ---
Switched the machine over to a 4k-PAGE_SIZE kernel and it works fine, so that
does appear to be the issue here.

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

[-- Attachment #1.2: Type: text/html, Size: 1088 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (8 preceding siblings ...)
  2018-05-01 16:05 ` bugzilla-daemon
@ 2018-05-02  9:22 ` bugzilla-daemon
  2018-05-02 19:54 ` bugzilla-daemon
                   ` (31 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-02  9:22 UTC (permalink / raw)
  To: dri-devel


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

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

Dan Horák <dan@danny.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bcrocker@redhat.com

--- Comment #10 from Dan Horák <dan@danny.cz> ---
(In reply to Andrey Grodzovsky from comment #8)
> I Wonder is there a way to reproduce this on x86 platform, from looking in
> kflags there is no  CONFIG_x86_4/16/64K_PAGES flags.

AFAIK there is only 4k page size on x86 possible for regular pages (non-huge).

Adding Ben to CC, he might have some ideas based on his work on the graphic
drivers for ppc64le in RHEL.

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

[-- Attachment #1.2: Type: text/html, Size: 2174 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (9 preceding siblings ...)
  2018-05-02  9:22 ` bugzilla-daemon
@ 2018-05-02 19:54 ` bugzilla-daemon
  2018-05-02 20:38 ` bugzilla-daemon
                   ` (30 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-02 19:54 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #11 from Timothy Pearson <tpearson@raptorengineering.com> ---
We could get you direct access to test hardware if that would help.  Basically,
these systems are completely controllable via BMC, so we could give remote
access to a Talos machine with a WX7100 installed for you guys to run tests on.
 Would that help?

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

[-- Attachment #1.2: Type: text/html, Size: 1253 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (10 preceding siblings ...)
  2018-05-02 19:54 ` bugzilla-daemon
@ 2018-05-02 20:38 ` bugzilla-daemon
  2018-05-02 20:38 ` bugzilla-daemon
                   ` (29 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-02 20:38 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #12 from Andrey Grodzovsky <andrey.grodzovsky@amd.com> ---
(In reply to Timothy Pearson from comment #11)
> We could get you direct access to test hardware if that would help. 
> Basically, these systems are completely controllable via BMC, so we could
> give remote access to a Talos machine with a WX7100 installed for you guys
> to run tests on.  Would that help?

That a good idea since I don't think we have any non x86 systems here t
experiment with. I am currently handling another issue, once I am done and
assuming no one else jumped in to fix it I will use your system to debug.

Andrey

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

[-- Attachment #1.2: Type: text/html, Size: 1620 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (11 preceding siblings ...)
  2018-05-02 20:38 ` bugzilla-daemon
@ 2018-05-02 20:38 ` bugzilla-daemon
  2018-05-02 22:12 ` bugzilla-daemon
                   ` (28 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-02 20:38 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #13 from Andrey Grodzovsky <andrey.grodzovsky@amd.com> ---
(In reply to Timothy Pearson from comment #11)
> We could get you direct access to test hardware if that would help. 
> Basically, these systems are completely controllable via BMC, so we could
> give remote access to a Talos machine with a WX7100 installed for you guys
> to run tests on.  Would that help?

That a good idea since I don't think we have any non x86 systems here t
experiment with. I am currently handling another issue, once I am done and
assuming no one else jumped in to fix it I will use your system to debug.

Andrey

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

[-- Attachment #1.2: Type: text/html, Size: 1620 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (12 preceding siblings ...)
  2018-05-02 20:38 ` bugzilla-daemon
@ 2018-05-02 22:12 ` bugzilla-daemon
  2018-05-06  3:09 ` bugzilla-daemon
                   ` (27 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-02 22:12 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #14 from Timothy Pearson <tpearson@raptorengineering.com> ---
(In reply to Andrey Grodzovsky from comment #13)
> (In reply to Timothy Pearson from comment #11)
> > We could get you direct access to test hardware if that would help. 
> > Basically, these systems are completely controllable via BMC, so we could
> > give remote access to a Talos machine with a WX7100 installed for you guys
> > to run tests on.  Would that help?
> 
> That a good idea since I don't think we have any non x86 systems here t
> experiment with. I am currently handling another issue, once I am done and
> assuming no one else jumped in to fix it I will use your system to debug.
> 
> Andrey

Works for me.  Just let me know when you're ready and we'll get you access.

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

[-- Attachment #1.2: Type: text/html, Size: 1851 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (13 preceding siblings ...)
  2018-05-02 22:12 ` bugzilla-daemon
@ 2018-05-06  3:09 ` bugzilla-daemon
  2018-05-15 11:54 ` bugzilla-daemon
                   ` (26 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-06  3:09 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #15 from Ben Crocker <bcrocker@redhat.com> ---
Hello Matt, Timothy, Michel, Andrey, and Dan,

I have been testing some older cards (FirePro 2270, Embedded Radeon
E6465) on a Power8 system with no problems of the type you're
describing; I've run the Piglit test suite and the Khronos OpenGL
Conformance Test Suite.

Direct access to a Talos machine could be beneficial, OR perhaps one
of you (Timothy, Michel, Andrey) could send me a WX 7100 for testing;
I've been meaning to ask for one of these anyway for a while now.

Just out of curiosity, what (other) differences in behavior do you see
between PPC64LE systems configured for 64K pages and systems
configured for 4K pages?

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

[-- Attachment #1.2: Type: text/html, Size: 1611 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (14 preceding siblings ...)
  2018-05-06  3:09 ` bugzilla-daemon
@ 2018-05-15 11:54 ` bugzilla-daemon
  2018-05-25 18:04 ` bugzilla-daemon
                   ` (25 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-15 11:54 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #16 from Timothy Pearson <tpearson@raptorengineering.com> ---
(In reply to Ben Crocker from comment #15)
> Hello Matt, Timothy, Michel, Andrey, and Dan,
> 
> I have been testing some older cards (FirePro 2270, Embedded Radeon
> E6465) on a Power8 system with no problems of the type you're
> describing; I've run the Piglit test suite and the Khronos OpenGL
> Conformance Test Suite.
> 
> Direct access to a Talos machine could be beneficial, OR perhaps one
> of you (Timothy, Michel, Andrey) could send me a WX 7100 for testing;
> I've been meaning to ask for one of these anyway for a while now.
> 
> Just out of curiosity, what (other) differences in behavior do you see
> between PPC64LE systems configured for 64K pages and systems
> configured for 4K pages?

OK, I have a Talos II machine up with a WX4100 installed.  Debian is loaded on
it right now, and I can grant direct BMC access if anyone wants to take a crack
at debug.

Email me directly for login credentials.

Thanks!

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

[-- Attachment #1.2: Type: text/html, Size: 2053 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (15 preceding siblings ...)
  2018-05-15 11:54 ` bugzilla-daemon
@ 2018-05-25 18:04 ` bugzilla-daemon
  2018-05-25 19:07 ` bugzilla-daemon
                   ` (24 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-25 18:04 UTC (permalink / raw)
  To: dri-devel


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

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

Timothy Pearson <tpearson@raptorengineering.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #17 from Timothy Pearson <tpearson@raptorengineering.com> ---
We have been unable to replicate this with the latest AMD GPU firmware from
https://people.freedesktop.org/~agd5f/radeon_ucode/polaris/ .  Xorg starts fine
with no errors.

System: Debian Testing
Kernel: 4.17.0-rc6

$ getconf PAGESIZE
65536

If you still experience the issues please give detailed instructions on how to
reproduce your test environment, including OS installed and packages /
configuration files in use.

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

[-- Attachment #1.2: Type: text/html, Size: 2324 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (16 preceding siblings ...)
  2018-05-25 18:04 ` bugzilla-daemon
@ 2018-05-25 19:07 ` bugzilla-daemon
  2018-05-25 19:09 ` bugzilla-daemon
                   ` (23 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-25 19:07 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #18 from Timothy Pearson <tpearson@raptorengineering.com> ---
(In reply to Timothy Pearson from comment #17)
> We have been unable to replicate this with the latest AMD GPU firmware from
> https://people.freedesktop.org/~agd5f/radeon_ucode/polaris/ .  Xorg starts
> fine with no errors.
> 
> System: Debian Testing
> Kernel: 4.17.0-rc6
> 
> $ getconf PAGESIZE
> 65536
> 
> If you still experience the issues please give detailed instructions on how
> to reproduce your test environment, including OS installed and packages /
> configuration files in use.

To clarify, please install all of the files in that directory into your
/lib/firmware/amdgpu/ directory (on Debian), then test to see if the issue
persists.  The WX7100 uses the polaris10* files, the WX4100 uses the polaris11*
files.

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

[-- Attachment #1.2: Type: text/html, Size: 1945 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (17 preceding siblings ...)
  2018-05-25 19:07 ` bugzilla-daemon
@ 2018-05-25 19:09 ` bugzilla-daemon
  2018-05-30 17:16 ` bugzilla-daemon
                   ` (22 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-25 19:09 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #19 from Alex Deucher <alexdeucher@gmail.com> ---
(In reply to Timothy Pearson from comment #17)
> We have been unable to replicate this with the latest AMD GPU firmware from
> https://people.freedesktop.org/~agd5f/radeon_ucode/polaris/ .  Xorg starts
> fine with no errors.

Those are old firmware files I posted for testing a while ago.  Please test
with the latest firmware from the linux-firmware tree:
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

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

[-- Attachment #1.2: Type: text/html, Size: 1675 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (18 preceding siblings ...)
  2018-05-25 19:09 ` bugzilla-daemon
@ 2018-05-30 17:16 ` bugzilla-daemon
  2018-06-05 15:52 ` bugzilla-daemon
                   ` (21 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-05-30 17:16 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #20 from Ben Crocker <bcrocker@redhat.com> ---
Please note that the path to the firmware,

/lib/firmware/amdgpu,

is correct for Red Hat products (RHEL, Fedora, CentOS) as well.

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

[-- Attachment #1.2: Type: text/html, Size: 1122 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (19 preceding siblings ...)
  2018-05-30 17:16 ` bugzilla-daemon
@ 2018-06-05 15:52 ` bugzilla-daemon
  2018-06-05 16:10 ` bugzilla-daemon
                   ` (20 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-05 15:52 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #21 from foxbat@ruin.net ---
I am still getting amdgpu crashes on POWER9 (ppc64le) using the latest AMD
firmware and on kernel 4.17 (release). My card is a WX5100 - Polaris 10. I can
reliably reproduce this by having spectacle attempt to capture an area of the
screen. However I also experience crashes randomly while moving a window.
Here is the dmesg output:

[   75.701274] CPU: 37 PID: 3391 Comm: spectacle Not tainted 4.17.0-foxbat-64k
#1
[   75.701275] NIP:  c00800001748cd08 LR: c008000017495944 CTR:
0000000000000000
[   75.701278] REGS: c000001f8ea53230 TRAP: 0700   Not tainted 
(4.17.0-foxbat-64k)
[   75.701278] MSR:  9000000000029033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 24828848 
XER: 20040000
[   75.701284] CFAR: c00800001748c724 SOFTE: 0
               GPR00: c008000017495944 c000001f8ea534b0 c0080000176e6400
c000201cb2303418
               GPR04: c000201ca9cfce60 0000000009fff138 0000000000000100
00000000000005a3
               GPR08: 3817b594461fff5f 0000000000100000 0000000000000000
c008000017649dd0
               GPR12: 0000000000008000 c000001ffffd5600 c000201cb2300000
c000001fe89d9d20
               GPR16: 00000000027ffc4e c000201ca9cfce60 00000000fffe2000
ffffffffffffffef
               GPR20: 0000000009fff138 0000000000000100 c000201cb23066a8
0000000000000000
               GPR24: 00000000027ffc4e 00000000000e5fff c000201cb2303418
00000001fe000000
               GPR28: c000201cb2300000 0000000000000000 c000201ca9cfce60
0000000009fff138
[   75.701323] NIP [c00800001748cd08] amdgpu_sa_bo_new+0x640/0x6c0 [amdgpu]
[   75.701347] LR [c008000017495944] amdgpu_ib_get+0x8c/0x120 [amdgpu]
[   75.701348] Call Trace:
[   75.701370] [c000001f8ea534b0] [c00800001748c7f8]
amdgpu_sa_bo_new+0x130/0x6c0 [amdgpu] (unreliable)
[   75.701395] [c000001f8ea53710] [c008000017495944] amdgpu_ib_get+0x8c/0x120
[amdgpu]
[   75.701421] [c000001f8ea53790] [c008000017572558]
amdgpu_job_alloc_with_ib+0x90/0x110 [amdgpu]
[   75.701442] [c000001f8ea537d0] [c008000017492124]
amdgpu_vm_bo_update_mapping+0x35c/0x480 [amdgpu]
[   75.701469] [c000001f8ea538c0] [c0080000174925c8]
amdgpu_vm_bo_update+0x380/0x740 [amdgpu]
[   75.701489] [c000001f8ea539d0] [c008000017476d10]
amdgpu_gem_va_ioctl+0x5f8/0x620 [amdgpu]
[   75.701496] [c000001f8ea53b20] [c008000015348ce8]
drm_ioctl_kernel+0xa0/0x140 [drm]
[   75.701502] [c000001f8ea53b70] [c0080000153491b4] drm_ioctl+0x1ac/0x4d0
[drm]
[   75.701518] [c000001f8ea53cb0] [c008000017450078] amdgpu_drm_ioctl+0x70/0xd0
[amdgpu]
[   75.701521] [c000001f8ea53d00] [c0000000003e216c] do_vfs_ioctl+0xdc/0x8a0
[   75.701523] [c000001f8ea53da0] [c0000000003e2a34] ksys_ioctl+0x104/0x120
[   75.701525] [c000001f8ea53df0] [c0000000003e2a90] sys_ioctl+0x40/0xa0
[   75.701528] [c000001f8ea53e30] [c00000000000b9e0] system_call+0x58/0x6c
[   75.701529] Instruction dump:
[   75.701531] 7fc3f378 38210260 e8010010 81810008 ea21ff88 ea81ffa0 eaa1ffa8
eb41ffd0
[   75.701535] ebc1fff0 7c0803a6 7d908120 4e800020 <0fe00000> 3bc0ffea 7fc3f378
38210260
[   75.701540] ---[ end trace 838930e3a806a76d ]---
[   75.701557] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[   75.701637] [drm:amdgpu_gem_va_ioctl [amdgpu]] *ERROR* Couldn't update BO_VA
(-22)
[   75.702847] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[   75.736208] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[   75.741527] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[   75.741602] [drm:amdgpu_gem_va_ioctl [amdgpu]] *ERROR* Couldn't update BO_VA
(-22)
[   75.743120] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[   75.743182] [drm:amdgpu_gem_va_ioctl [amdgpu]] *ERROR* Couldn't update BO_VA
(-22)

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

[-- Attachment #1.2: Type: text/html, Size: 4621 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (20 preceding siblings ...)
  2018-06-05 15:52 ` bugzilla-daemon
@ 2018-06-05 16:10 ` bugzilla-daemon
  2018-06-05 17:17 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-05 16:10 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #22 from Michel Dänzer <michel@daenzer.net> ---
(In reply to foxbat from comment #21)
> [   75.701323] NIP [c00800001748cd08] amdgpu_sa_bo_new+0x640/0x6c0 [amdgpu]

What does

 scripts/faddr2line drivers/gpu/drm/amd/amdgpu/amdgpu.ko
amdgpu_sa_bo_new+0x640/0x6c0

say in the kernel build tree?

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

[-- Attachment #1.2: Type: text/html, Size: 1316 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (21 preceding siblings ...)
  2018-06-05 16:10 ` bugzilla-daemon
@ 2018-06-05 17:17 ` bugzilla-daemon
  2018-06-06  7:18 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-05 17:17 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #23 from foxbat@ruin.net ---
(In reply to Michel Dänzer from comment #22)
> (In reply to foxbat from comment #21)
> > [   75.701323] NIP [c00800001748cd08] amdgpu_sa_bo_new+0x640/0x6c0 [amdgpu]
> 
> What does
> 
>  scripts/faddr2line drivers/gpu/drm/amd/amdgpu/amdgpu.ko
> amdgpu_sa_bo_new+0x640/0x6c0
> 
> say in the kernel build tree?

foxbat@colossus:~/build/linux-4.17$ scripts/faddr2line
drivers/gpu/drm/amd/amdgpu/amdgpu.ko amdgpu_sa_bo_new+0x640/0x6c0 

skipping amdgpu_sa_bo_new address at 0x3cd08 due to size mismatch (0x6c0 !=
0x18e) no match for amdgpu_sa_bo_new+0x640/0x6c0

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

[-- Attachment #1.2: Type: text/html, Size: 1659 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (22 preceding siblings ...)
  2018-06-05 17:17 ` bugzilla-daemon
@ 2018-06-06  7:18 ` bugzilla-daemon
  2018-06-06 20:39 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-06  7:18 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #24 from Michel Dänzer <michel@daenzer.net> ---
Created attachment 140046
  --> https://bugs.freedesktop.org/attachment.cgi?id=140046&action=edit
Add some debugging output to amdgpu_sa_bo_new

This patch should tell us which of the WARN_ON_ONCE in amdgpu_sa_bo_new is hit,
and what the values are.

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

[-- Attachment #1.2: Type: text/html, Size: 1514 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (23 preceding siblings ...)
  2018-06-06  7:18 ` bugzilla-daemon
@ 2018-06-06 20:39 ` bugzilla-daemon
  2018-06-06 21:10 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-06 20:39 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #25 from foxbat@ruin.net ---
(In reply to Michel Dänzer from comment #24)
> Created attachment 140046 [details] [review]
> Add some debugging output to amdgpu_sa_bo_new
> 
> This patch should tell us which of the WARN_ON_ONCE in amdgpu_sa_bo_new is
> hit, and what the values are.

Hello,

I have reproduced the error with the provided patch. Here is the output:

[  175.501689] WARNING: CPU: 24 PID: 3212 at
drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c:288 amdgpu_sa_bo_new+0x648/0x6d0
[amdgpu]
[  175.501692] Modules linked in: binfmt_misc snd_usb_audio snd_usbmidi_lib
snd_rawmidi snd_seq_device amdgpu evdev snd_hda_codec_hdmi chash ast gpu_sched
snd_hda_intel ttm snd_hda_codec ghash_generic drm_kms_helper gf128mul ecb
snd_hda_core drm xts snd_hwdep snd_pcm drm_panel_orientation_quirks syscopyarea
ctr sysfillrect sysimgblt snd_timer fb_sys_fops cbc vmx_crypto snd i2c_algo_bit
sg soundcore ofpart ipmi_powernv powernv_flash ipmi_devintf opal_prd mtd
ipmi_msghandler at24 ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2
fscrypto raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor
async_tx hid_generic usbhid hid xor raid6_pq libcrc32c crc32c_generic raid1
raid0 multipath linear sd_mod md_mod ses enclosure xhci_pci xhci_hcd mpt3sas
raid_class usbcore scsi_transport_sas nvme tg3 nvme_core
[  175.501731]  aacraid libphy
[  175.501735] CPU: 24 PID: 3212 Comm: spectacle Not tainted 4.17.0-foxbat-64k
#2
[  175.501736] NIP:  c00800001885cd10 LR: c008000018865944 CTR:
0000000000000000
[  175.501738] REGS: c000001f618b71f0 TRAP: 0700   Not tainted 
(4.17.0-foxbat-64k)
[  175.501738] MSR:  9000000000029033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 24828848 
XER: 20040000
[  175.501744] CFAR: c00800001885c724 SOFTE: 0 
               GPR00: c008000018865944 c000001f618b7470 c008000018ab6400
c000001fdbea3418 
               GPR04: c000201ca9246260 0000000000100000 0000000000000100
00000000000017c1 
               GPR08: 3817b594461fff5f c000201ca9246000 0000000000000000
c008000018a19dd0 
               GPR12: 0000000000008000 c000001ffffe4000 c000001fdbea0000
c000001feab786a0 
               GPR16: 00000000027ffc4e c000201ca9246260 00000000fffe2000
ffffffffffffffef 
               GPR20: 0000000009fff138 0000000000000100 c000001fdbea6980
0000000000000000 
               GPR24: 00000000027ffc4e 00000000000e5fff c000001fdbea3418
00000001fe000000 
               GPR28: c000001fdbea0000 0000000000000000 c000201ca9246260
0000000009fff138 
[  175.501780] NIP [c00800001885cd10] amdgpu_sa_bo_new+0x648/0x6d0 [amdgpu]
[  175.501798] LR [c008000018865944] amdgpu_ib_get+0x8c/0x120 [amdgpu]
[  175.501799] Call Trace:
[  175.501820] [c000001f618b7470] [c00800001885c7f8]
amdgpu_sa_bo_new+0x130/0x6d0 [amdgpu] (unreliable)
[  175.501840] [c000001f618b7710] [c008000018865944] amdgpu_ib_get+0x8c/0x120
[amdgpu]
[  175.501861] [c000001f618b7790] [c008000018942558]
amdgpu_job_alloc_with_ib+0x90/0x110 [amdgpu]
[  175.501880] [c000001f618b77d0] [c008000018862124]
amdgpu_vm_bo_update_mapping+0x35c/0x480 [amdgpu]
[  175.501899] [c000001f618b78c0] [c0080000188625c8]
amdgpu_vm_bo_update+0x380/0x740 [amdgpu]
[  175.501916] [c000001f618b79d0] [c008000018846d10]
amdgpu_gem_va_ioctl+0x5f8/0x620 [amdgpu]
[  175.501923] [c000001f618b7b20] [c008000017748ce8]
drm_ioctl_kernel+0xa0/0x140 [drm]
[  175.501928] [c000001f618b7b70] [c0080000177491b4] drm_ioctl+0x1ac/0x4d0
[drm]
[  175.501943] [c000001f618b7cb0] [c008000018820078] amdgpu_drm_ioctl+0x70/0xd0
[amdgpu]
[  175.501946] [c000001f618b7d00] [c0000000003e216c] do_vfs_ioctl+0xdc/0x8a0
[  175.501948] [c000001f618b7da0] [c0000000003e2a34] ksys_ioctl+0x104/0x120
[  175.501950] [c000001f618b7df0] [c0000000003e2a90] sys_ioctl+0x40/0xa0
[  175.501953] [c000001f618b7e30] [c00000000000b9e0] system_call+0x58/0x6c
[  175.501954] Instruction dump:
[  175.501956] 892a0000 2f890000 409efd4c 3c620000 e8639aa0 39200001 7ea4ab78
992a0000 
[  175.501959] 481bee31 e8410018 4bfffd2c 60000000 <0fe00000> 3d420000 e94a9a98
3bc0ffea 
[  175.501963] ---[ end trace b955b8bff21188f9 ]---
[  175.501965] [drm] size=167768376 > sa_manager->size=1048576
[  175.501968] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[  175.502036] [drm:amdgpu_gem_va_ioctl [amdgpu]] *ERROR* Couldn't update BO_VA
(-22)
[  175.502153] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[  175.535050] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[  175.539783] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[  175.539870] [drm:amdgpu_gem_va_ioctl [amdgpu]] *ERROR* Couldn't update BO_VA
(-22)
[  175.540410] amdgpu 0000:01:00.0: failed to get a new IB (-22)
[  175.540489] [drm:amdgpu_gem_va_ioctl [amdgpu]] *ERROR* Couldn't update BO_VA
(-22)

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

[-- Attachment #1.2: Type: text/html, Size: 6115 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (24 preceding siblings ...)
  2018-06-06 20:39 ` bugzilla-daemon
@ 2018-06-06 21:10 ` bugzilla-daemon
  2018-06-07  7:14 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-06 21:10 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #26 from Ben Crocker <bcrocker@redhat.com> ---
foxbat, thanks for posting this!

> [  175.501965] [drm] size=167768376 > sa_manager->size=1048576

Well, isn't THAT interesting!
Requested size is ALMOST, but not quite, 160 MB, while what
the sub-allocation manager has left is 1 MB.

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

[-- Attachment #1.2: Type: text/html, Size: 1265 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (25 preceding siblings ...)
  2018-06-06 21:10 ` bugzilla-daemon
@ 2018-06-07  7:14 ` bugzilla-daemon
  2018-06-18 17:37 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-07  7:14 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #27 from Christian König <ckoenig.leichtzumerken@gmail.com> ---
(In reply to Ben Crocker from comment #26)
> foxbat, thanks for posting this!
> 
> > [  175.501965] [drm] size=167768376 > sa_manager->size=1048576
> 
> Well, isn't THAT interesting!
> Requested size is ALMOST, but not quite, 160 MB, while what
> the sub-allocation manager has left is 1 MB.

Sounds like we have an overrun in amdgpu_vm_bo_update_mapping() while
calculating how many bytes we need to allocate from the sa_manager.

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

[-- Attachment #1.2: Type: text/html, Size: 1563 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (26 preceding siblings ...)
  2018-06-07  7:14 ` bugzilla-daemon
@ 2018-06-18 17:37 ` bugzilla-daemon
  2018-06-18 22:24 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-18 17:37 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #28 from Ben Crocker <bcrocker@redhat.com> ---
Created attachment 140208
  --> https://bugs.freedesktop.org/attachment.cgi?id=140208&action=edit
Patches for additional debug info

foxbat, could you please apply the three attached patches and provide dmesg
output again?

Thanks!

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

[-- Attachment #1.2: Type: text/html, Size: 1470 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (27 preceding siblings ...)
  2018-06-18 17:37 ` bugzilla-daemon
@ 2018-06-18 22:24 ` bugzilla-daemon
  2018-06-19  9:07 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-18 22:24 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #29 from foxbat@ruin.net ---
(In reply to Ben Crocker from comment #28)

Hi Ben,

Please see the dmesg output at https://pastebin.com/i7sZhUKr
I reproduced the graphics "crash" at around 950.

However, one thing I did find out is I am able to get video back by simply
pressing a key on my keyboard. After doing this video appears to act normally.

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

[-- Attachment #1.2: Type: text/html, Size: 1363 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (28 preceding siblings ...)
  2018-06-18 22:24 ` bugzilla-daemon
@ 2018-06-19  9:07 ` bugzilla-daemon
  2018-06-20  1:14 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-19  9:07 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #30 from Michel Dänzer <michel@daenzer.net> ---
I suspect there's an issue in amdgpu_vm_bo_split_mapping, e.g. this code looks
suspicious:

                if (pages_addr) {
                        uint64_t count;

                        max_entries = min(max_entries, 16ull * 1024ull);
                        for (count = 1; count < max_entries; ++count) {
                                uint64_t idx = pfn + count;

                                if (pages_addr[idx] !=
                                    (pages_addr[idx - 1] + PAGE_SIZE))
                                        break;
                        }

count is compared to max_entries, which is a number of GPU pages, but is also
added to pfn, which is a number of CPU pages.

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

[-- Attachment #1.2: Type: text/html, Size: 1707 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (29 preceding siblings ...)
  2018-06-19  9:07 ` bugzilla-daemon
@ 2018-06-20  1:14 ` bugzilla-daemon
  2018-06-20 21:50 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-20  1:14 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #31 from Ben Crocker <bcrocker@redhat.com> ---
Created attachment 140239
  --> https://bugs.freedesktop.org/attachment.cgi?id=140239&action=edit
More patches (2) for additional debug info

Hi foxbat,

Could you please apply these two patches on top of the patches I supplied
yesterday, and post the output?  (The patch to amdgpu_job.c is a corrected
version of yesterday's patch.)

  Thanks,
  Ben

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

[-- Attachment #1.2: Type: text/html, Size: 1611 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (30 preceding siblings ...)
  2018-06-20  1:14 ` bugzilla-daemon
@ 2018-06-20 21:50 ` bugzilla-daemon
  2018-06-20 22:39 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-20 21:50 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #32 from foxbat@ruin.net ---
Created attachment 140252
  --> https://bugs.freedesktop.org/attachment.cgi?id=140252&action=edit
amdgpu dmesg output

Crash is at 246.306571

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

[-- Attachment #1.2: Type: text/html, Size: 1218 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (31 preceding siblings ...)
  2018-06-20 21:50 ` bugzilla-daemon
@ 2018-06-20 22:39 ` bugzilla-daemon
  2018-06-20 22:57 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-20 22:39 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #33 from Ben Crocker <bcrocker@redhat.com> ---
Created attachment 140253
  --> https://bugs.freedesktop.org/attachment.cgi?id=140253&action=edit
Refining the amdgpu_vm.c:amdgpu_vm_bo_split_mapping further

Print max_entries in both decimal and hex.

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

[-- Attachment #1.2: Type: text/html, Size: 1489 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (32 preceding siblings ...)
  2018-06-20 22:39 ` bugzilla-daemon
@ 2018-06-20 22:57 ` bugzilla-daemon
  2018-06-21  9:29 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-20 22:57 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #34 from Ben Crocker <bcrocker@redhat.com> ---
Things start to go haywire at 246.305790, which appears to be the first time
the do-loop in amdgpu_vm_bo_update_mapping executes more than once.
The value of max_entries is obviously absurd; a little later, the value of
start (0x104000) is consistent with the first trip through the loop, but
the value of last (0xe5fff) looks wrong, starting with the fact that it
is LESS than start.

[  246.305139] [drm] amdgpu_vm_bo_split_mapping nodes->size=512 pfn=0
max_entries=8192
[  246.305230] [drm] amdgpu_vm_bo_split_mapping: addr=0x1e2000000
vram_base_offset=0x0
[  246.305322] [drm] amdgpu_vm_bo_split_mapping: start=0x102000 last=0x103fff
[  246.305400] [drm] amdgpu_vm_bo_update_mapping l.1304: ndw=64 ncmds=9
fragment_size=9
[  246.305474] [drm] amdgpu_vm_bo_update_mapping l.1310: resulting ndw=334
[  246.305533] [drm] amdgpu_vm_bo_update_mapping calls
amdgpu_job_alloc_with_ib(..., ndw*4 = 1336 (00000538))
[  246.305630] [drm] amdgpu_job_alloc_with_ib calls amdgpu_ib_get(...,
size=1336 (00000538))
[  246.305704] [drm] amdgpu_ib_get calls amdgpu_sa_bo_new(..., size=1336
(00000538), align=256
Things go haywire:
[  246.305790] [drm] amdgpu_vm_bo_split_mapping nodes->size=512 pfn=8192
max_entries=18446744073709428736
[  246.305878] [drm] amdgpu_vm_bo_split_mapping: addr=0x1e2000000
vram_base_offset=0x0
[  246.305970] [drm] amdgpu_vm_bo_split_mapping: start=0x104000 last=0xe5fff
[  246.306029] [drm] amdgpu_vm_bo_update_mapping l.1304: ndw=64 ncmds=4194185
fragment_size=9
[  246.306111] [drm] amdgpu_vm_bo_update_mapping l.1310: resulting ndw=41942094
[  246.306197] [drm] amdgpu_vm_bo_update_mapping calls
amdgpu_job_alloc_with_ib(..., ndw*4 = 167768376 (09FFF138))
[  246.306322] [drm] amdgpu_job_alloc_with_ib calls amdgpu_ib_get(...,
size=167768376 (09fff138))
[  246.306429] [drm] amdgpu_ib_get calls amdgpu_sa_bo_new(..., size=167768376
(09fff138), align=256
[  246.306571] WARNING: CPU: 67 PID: 21839 at amdgpu_sa_bo_new+0x628/0x6b0
[amdgpu]
[  246.306645] Modules linked in: binfmt_misc ext4 crc16 mbcache jbd2 fscrypto
evdev snd_usb_audio amdgpu snd_usbmidi_lib snd_rawmidi snd_seq_device
ghash_generic gf128mul ecb xts ctr snd_hda_codec_hdmi chash ast gpu_sched cbc
ttm snd_hda_intel vmx_crypto snd_hda_codec drm_kms_helper snd_hda_core drm
snd_hwdep snd_pcm snd_timer ofpart drm_panel_orientation_quirks syscopyarea snd
sysfillrect ipmi_powernv sysimgblt fb_sys_fops ipmi_devintf i2c_algo_bit sg
powernv_flash soundcore mtd ipmi_msghandler opal_prd at24 sunrpc ecryptfs
ip_tables x_tables autofs4 zfs(PO) zunicode(PO) zavl(PO) icp(PO) zcommon(PO)
znvpair(PO) spl(O) raid10 raid456 async_raid6_recov async_memcpy async_pq
async_xor async_tx hid_generic usbhid hid xor raid6_pq libcrc32c crc32c_generic
raid1 raid0 multipath linear sd_mod md_mod ses

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

[-- Attachment #1.2: Type: text/html, Size: 3810 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (33 preceding siblings ...)
  2018-06-20 22:57 ` bugzilla-daemon
@ 2018-06-21  9:29 ` bugzilla-daemon
  2018-06-21 10:22 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-21  9:29 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #35 from Michel Dänzer <michel@daenzer.net> ---
Created attachment 140257
  --> https://bugs.freedesktop.org/attachment.cgi?id=140257&action=edit
drm/amdgpu: GPU vs CPU page size fixes in  amdgpu_vm_bo_split_mapping

Does this patch help?

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

[-- Attachment #1.2: Type: text/html, Size: 1502 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (34 preceding siblings ...)
  2018-06-21  9:29 ` bugzilla-daemon
@ 2018-06-21 10:22 ` bugzilla-daemon
  2018-06-21 10:34 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-21 10:22 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #36 from foxbat@ruin.net ---
(In reply to Michel Dänzer from comment #35)
> Created attachment 140257 [details] [review]
> drm/amdgpu: GPU vs CPU page size fixes in  amdgpu_vm_bo_split_mapping
> 
> Does this patch help?

It looks like the patch isn't fully applying (using tree 4.17):

patching file drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
Hunk #1 FAILED at 1577.
Hunk #2 succeeded at 1463 with fuzz 2 (offset -127 lines).
Hunk #3 succeeded at 1480 (offset -125 lines).
1 out of 3 hunks FAILED -- saving rejects to file
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c.rej

rejects:

--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -1577,7 +1577,9 @@ static int amdgpu_vm_bo_split_mapping(struct
amdgpu_device *adev,
                        uint64_t count;

                        max_entries = min(max_entries, 16ull * 1024ull);
-                       for (count = 1; count < max_entries; ++count) {
+                       for (count = 1;
+                            count < max_entries / (PAGE_SIZE /
AMDGPU_GPU_PAGE_SIZE);
+                            ++count) {
                                uint64_t idx = pfn + count;

                                if (pages_addr[idx] !=

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

[-- Attachment #1.2: Type: text/html, Size: 2643 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (35 preceding siblings ...)
  2018-06-21 10:22 ` bugzilla-daemon
@ 2018-06-21 10:34 ` bugzilla-daemon
  2018-06-21 11:17 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-21 10:34 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #37 from Michel Dänzer <michel@daenzer.net> ---
(In reply to foxbat from comment #36)
> It looks like the patch isn't fully applying (using tree 4.17):

It should apply to 4.17. Did you revert Ben's debugging patches before applying
it?

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

[-- Attachment #1.2: Type: text/html, Size: 1256 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (36 preceding siblings ...)
  2018-06-21 10:34 ` bugzilla-daemon
@ 2018-06-21 11:17 ` bugzilla-daemon
  2018-06-21 22:32 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-21 11:17 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #38 from foxbat@ruin.net ---
(In reply to Michel Dänzer from comment #37)
> (In reply to foxbat from comment #36)
> > It looks like the patch isn't fully applying (using tree 4.17):
> 
> It should apply to 4.17. Did you revert Ben's debugging patches before
> applying it?

Sorry, I did not. The patch does apply after reverting the debug patches. I'll
be able to test this afternoon (US eastern time).

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

[-- Attachment #1.2: Type: text/html, Size: 1453 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (37 preceding siblings ...)
  2018-06-21 11:17 ` bugzilla-daemon
@ 2018-06-21 22:32 ` bugzilla-daemon
  2018-06-24  9:15 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-21 22:32 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #39 from foxbat@ruin.net ---
(In reply to Michel Dänzer from comment #35)
> Created attachment 140257 [details] [review]
> drm/amdgpu: GPU vs CPU page size fixes in  amdgpu_vm_bo_split_mapping
> 
> Does this patch help?

Hi Michel,

I have applied the patch and so far it appears to help a lot. I have not been
able to reproduce any amdgpu crashes/errors so far. I will continue running
with the patch and let you know if I have any issues.

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

[-- Attachment #1.2: Type: text/html, Size: 1825 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (38 preceding siblings ...)
  2018-06-21 22:32 ` bugzilla-daemon
@ 2018-06-24  9:15 ` bugzilla-daemon
  2018-06-28  9:12 ` bugzilla-daemon
  2018-07-12 11:51 ` bugzilla-daemon
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-24  9:15 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #40 from Timothy Pearson <tpearson@raptorengineering.com> ---
(In reply to foxbat from comment #39)
> (In reply to Michel Dänzer from comment #35)
> > Created attachment 140257 [details] [review] [review]
> > drm/amdgpu: GPU vs CPU page size fixes in  amdgpu_vm_bo_split_mapping
> > 
> > Does this patch help?
> 
> Hi Michel,
> 
> I have applied the patch and so far it appears to help a lot. I have not
> been able to reproduce any amdgpu crashes/errors so far. I will continue
> running with the patch and let you know if I have any issues.

I can confirm that Michel's patch, along with the following patches, also
enable full 3D acceleration via 64-bit DMA across a wide range of tested
applications:

https://lists.ozlabs.org/pipermail/linuxppc-dev/2018-June/174985.html

https://scm.raptorengineering.com/scm/#changesetPanel;6IQvJHpVSM;578e2d761554130f7c6abfe821c2509912a00ac6;commit

https://scm.raptorengineering.com/scm/#changesetPanel;6IQvJHpVSM;461333cedd470140eb1e1667608da2a6d65a58e5;commit

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

All of these patches have been submitted upstream to the respective maintainers
for review.  When Michel's is submitted and merged, we should try to get some
of this downstream into the various distros as well.

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

[-- Attachment #1.2: Type: text/html, Size: 3299 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (39 preceding siblings ...)
  2018-06-24  9:15 ` bugzilla-daemon
@ 2018-06-28  9:12 ` bugzilla-daemon
  2018-07-12 11:51 ` bugzilla-daemon
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-06-28  9:12 UTC (permalink / raw)
  To: dri-devel


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

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

Michel Dänzer <michel@daenzer.net> changed:

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

--- Comment #41 from Michel Dänzer <michel@daenzer.net> ---
Thanks for the report and help tracking down the problem. The fix is queued for
4.18, and will be backported to stable branches:

https://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-fixes-4.18&id=38e624a18f9a05b8c894409be6b14709a7206c7c

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

[-- Attachment #1.2: Type: text/html, Size: 2365 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] 43+ messages in thread

* [Bug 106258] AMD Xorg start failes with non-4K page sizes
  2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
                   ` (40 preceding siblings ...)
  2018-06-28  9:12 ` bugzilla-daemon
@ 2018-07-12 11:51 ` bugzilla-daemon
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2018-07-12 11:51 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #42 from Dan Horák <dan@danny.cz> ---
for the record output of "git describe 38e624a18f9a05b"
v4.18-rc1-36-g38e624a18f9a

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

[-- Attachment #1.2: Type: text/html, Size: 1097 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] 43+ messages in thread

end of thread, other threads:[~2018-07-12 11:51 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-26 21:12 [Bug 106258] AMD Xorg start failes with non-4K page sizes bugzilla-daemon
2018-04-26 21:14 ` bugzilla-daemon
2018-04-26 21:17 ` bugzilla-daemon
2018-04-26 21:19 ` bugzilla-daemon
2018-04-26 21:22 ` bugzilla-daemon
2018-04-27 20:25 ` bugzilla-daemon
2018-05-01 10:08 ` bugzilla-daemon
2018-05-01 13:02 ` bugzilla-daemon
2018-05-01 13:06 ` bugzilla-daemon
2018-05-01 16:05 ` bugzilla-daemon
2018-05-02  9:22 ` bugzilla-daemon
2018-05-02 19:54 ` bugzilla-daemon
2018-05-02 20:38 ` bugzilla-daemon
2018-05-02 20:38 ` bugzilla-daemon
2018-05-02 22:12 ` bugzilla-daemon
2018-05-06  3:09 ` bugzilla-daemon
2018-05-15 11:54 ` bugzilla-daemon
2018-05-25 18:04 ` bugzilla-daemon
2018-05-25 19:07 ` bugzilla-daemon
2018-05-25 19:09 ` bugzilla-daemon
2018-05-30 17:16 ` bugzilla-daemon
2018-06-05 15:52 ` bugzilla-daemon
2018-06-05 16:10 ` bugzilla-daemon
2018-06-05 17:17 ` bugzilla-daemon
2018-06-06  7:18 ` bugzilla-daemon
2018-06-06 20:39 ` bugzilla-daemon
2018-06-06 21:10 ` bugzilla-daemon
2018-06-07  7:14 ` bugzilla-daemon
2018-06-18 17:37 ` bugzilla-daemon
2018-06-18 22:24 ` bugzilla-daemon
2018-06-19  9:07 ` bugzilla-daemon
2018-06-20  1:14 ` bugzilla-daemon
2018-06-20 21:50 ` bugzilla-daemon
2018-06-20 22:39 ` bugzilla-daemon
2018-06-20 22:57 ` bugzilla-daemon
2018-06-21  9:29 ` bugzilla-daemon
2018-06-21 10:22 ` bugzilla-daemon
2018-06-21 10:34 ` bugzilla-daemon
2018-06-21 11:17 ` bugzilla-daemon
2018-06-21 22:32 ` bugzilla-daemon
2018-06-24  9:15 ` bugzilla-daemon
2018-06-28  9:12 ` bugzilla-daemon
2018-07-12 11:51 ` bugzilla-daemon

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.