All of lore.kernel.org
 help / color / mirror / Atom feed
* DRM IOCTLS  come regularly(every minute) still even after screen off
@ 2021-09-16  3:15 Quan, Evan
  2021-09-16  6:27 ` Christian König
  0 siblings, 1 reply; 6+ messages in thread
From: Quan, Evan @ 2021-09-16  3:15 UTC (permalink / raw)
  To: 'Michel Dänzer'
  Cc: Deucher, Alexander, Koenig, Christian,
	'amd-gfx@lists.freedesktop.org'

[-- Attachment #1: Type: text/plain, Size: 7677 bytes --]

[AMD Official Use Only]

Hi Michel,

After the system idle for a while, the screen will be off(blank out) and AMD GPU will be put into a very low power state(BACO) due to runpm.
However, I found there will be still DRM IOCTLS(which I paste below) coming regularly.
And those IOCTLS(especially those for AMDGPU) will wake and back our GPU into normal state.
To me, that's a little weird as the system was just left there for nothing. I do not know what and why these DRM IOCTLs come for.
Per Alex, it seems "desktop environments poll for display updates at regular intervals". Do you also think so? Or any other insights?

[68528.542455] [drm] comm="gnome-shel:cs0" pid=1306, dev=0xe281, auth=1, AMDGPU_CS
[68531.186534] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.197027] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.205649] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.216308] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.224912] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.233533] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.242097] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.250631] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.259269] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.267788] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.276401] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.284942] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.293477] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETRESOURCES
[68531.302091] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETRESOURCES
[68531.310689] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_LIST_LESSEES
[68531.319346] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_LIST_LESSEES
[68531.327880] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.336495] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.344985] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.355652] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.364217] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.372657] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.381089] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPBLOB
[68531.389519] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPBLOB
[68531.398702] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.407148] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.415572] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.424147] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.432682] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.441192] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.449754] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.458232] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.466723] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.475140] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.483608] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPBLOB
[68531.492056] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.500520] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.508919] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.517270] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.525752] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.534235] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.542665] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.551169] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.559684] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.568152] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.576624] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.585143] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.593620] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.602075] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.610515] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.618989] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETPROPERTY
[68531.627481] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.636060] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.644614] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.653131] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.661702] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.670250] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.678805] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.687356] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.695931] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.704526] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.713078] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.731981] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.740552] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.759552] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.768152] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETRESOURCES
[68531.776663] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETRESOURCES
[68531.785214] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_LIST_LESSEES
[68531.793774] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_LIST_LESSEES
[68531.802380] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.810882] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.819460] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.838377] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.847004] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.866051] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCONNECTOR
[68531.874725] [drm] comm="Xorg:cs0" pid=1133, dev=0xe201, auth=1, AMDGPU_CS


BR
Evan

[-- Attachment #2: Type: text/html, Size: 13973 bytes --]

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

* Re: DRM IOCTLS come regularly(every minute) still even after screen off
  2021-09-16  3:15 DRM IOCTLS come regularly(every minute) still even after screen off Quan, Evan
@ 2021-09-16  6:27 ` Christian König
  2021-09-16  8:12   ` Michel Dänzer
  0 siblings, 1 reply; 6+ messages in thread
From: Christian König @ 2021-09-16  6:27 UTC (permalink / raw)
  To: Quan, Evan, 'Michel Dänzer'
  Cc: Deucher, Alexander, Koenig, Christian,
	'amd-gfx@lists.freedesktop.org'

[-- Attachment #1: Type: text/plain, Size: 8670 bytes --]

Good morning,

for the background I advised to contact you Michel since we couldn't 
find an explanation.

Alex explanation might be correct, but the CS seems to come from the X 
server and is always roughly 60 seconds after going into power save.

Any idea what that could be?

Thanks,
Christian.

Am 16.09.21 um 05:15 schrieb Quan, Evan:
>
> [AMD Official Use Only]
>
>
> Hi Michel,
>
> After the system idle for a while, the screen will be off(blank out) 
> and AMD GPU will be put into a very low power state(BACO) due to runpm.
>
> However, I found there will be still DRM IOCTLS(which I paste below) 
> coming regularly.
>
> And those IOCTLS(especially those for AMDGPU) will wake and back our 
> GPU into normal state.
>
> To me, that’s a little weird as the system was just left there for 
> nothing. I do not know what and why these DRM IOCTLs come for.
>
> Per Alex, it seems “desktop environments poll for display updates at 
> regular intervals”. Do you also think so? Or any other insights?
>
> /[68528.542455] [drm] comm="gnome-shel:cs0" pid=1306, dev=0xe281, 
> auth=1, AMDGPU_CS/
>
> /[68531.186534] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.197027] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.205649] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.216308] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.224912] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.233533] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.242097] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.250631] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.259269] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.267788] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.276401] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.284942] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.293477] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETRESOURCES/
>
> /[68531.302091] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETRESOURCES/
>
> /[68531.310689] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_LIST_LESSEES/
>
> /[68531.319346] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_LIST_LESSEES/
>
> /[68531.327880] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.336495] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.344985] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.355652] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.364217] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.372657] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.381089] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPBLOB/
>
> /[68531.389519] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPBLOB/
>
> /[68531.398702] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.407148] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.415572] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.424147] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.432682] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.441192] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.449754] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.458232] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.466723] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.475140] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.483608] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPBLOB/
>
> /[68531.492056] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.500520] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.508919] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.517270] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.525752] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.534235] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.542665] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.551169] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.559684] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.568152] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.576624] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.585143] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.593620] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.602075] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.610515] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.618989] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETPROPERTY/
>
> /[68531.627481] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.636060] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.644614] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.653131] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.661702] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.670250] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.678805] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.687356] [drm] comm="Xorg" pid=1035, dev=0xe201, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.695931] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.704526] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.713078] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.731981] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.740552] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.759552] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.768152] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETRESOURCES/
>
> /[68531.776663] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETRESOURCES/
>
> /[68531.785214] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_LIST_LESSEES/
>
> /[68531.793774] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_LIST_LESSEES/
>
> /[68531.802380] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.810882] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.819460] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.838377] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.847004] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.866051] [drm] comm="Xorg" pid=1035, dev=0xe200, auth=1, 
> DRM_IOCTL_MODE_GETCONNECTOR/
>
> /[68531.874725] [drm] comm="Xorg:cs0" pid=1133, dev=0xe201, auth=1, 
> AMDGPU_CS/
>
> BR
>
> Evan
>


[-- Attachment #2: Type: text/html, Size: 15135 bytes --]

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

* Re: DRM IOCTLS come regularly(every minute) still even after screen off
  2021-09-16  6:27 ` Christian König
@ 2021-09-16  8:12   ` Michel Dänzer
  2021-09-17  2:58     ` Quan, Evan
  0 siblings, 1 reply; 6+ messages in thread
From: Michel Dänzer @ 2021-09-16  8:12 UTC (permalink / raw)
  To: Christian König, Quan, Evan
  Cc: Deucher, Alexander, Koenig, Christian,
	'amd-gfx@lists.freedesktop.org'

On 2021-09-16 08:27, Christian König wrote:
> Good morning,
> 
> for the background I advised to contact you Michel since we couldn't find an explanation.
> 
> Alex explanation might be correct, but the CS seems to come from the X server and is always roughly 60 seconds after going into power save.
> 
> Any idea what that could be?

For the DRM_IOCTL_MODE_* ioctls, attaching gdb to Xorg and setting a breakpoint on drmIoctl should show where they're coming from.

The AMDGPU_CS ioctls are probably from glamor calling OpenGL, most likely for X11 drawing protocol requests. Note that in this case drmIoctl/ioctl will likely be called from a separate thread. Pierre / Marek should be able to help you find out where the OpenGL calls are coming from.


In general, Xorg only ever does anything in response to:

* X11 protocol requests, i.e. on behalf of clients.
* Input events, i.e. on behalf of the user.
* Other kernel events, e.g. hotplug events.


FWIW, with only xfwm4 & xterm running on Xorg, I'm not seeing any drmIoctl calls during DPMS off. So the ioctls you're seeing are most likely triggered by clients.


-- 
Earthling Michel Dänzer               |               https://redhat.com
Libre software enthusiast             |             Mesa and X developer

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

* RE: DRM IOCTLS come regularly(every minute) still even after screen off
  2021-09-16  8:12   ` Michel Dänzer
@ 2021-09-17  2:58     ` Quan, Evan
  2021-09-18  7:19       ` Marek Olšák
  0 siblings, 1 reply; 6+ messages in thread
From: Quan, Evan @ 2021-09-17  2:58 UTC (permalink / raw)
  To: Michel Dänzer, Christian König
  Cc: Deucher, Alexander, Koenig, Christian,
	'amd-gfx@lists.freedesktop.org'

[Public]



> -----Original Message-----
> From: Michel Dänzer <michel@daenzer.net>
> Sent: Thursday, September 16, 2021 4:12 PM
> To: Christian König <ckoenig.leichtzumerken@gmail.com>; Quan, Evan
> <Evan.Quan@amd.com>
> Cc: Deucher, Alexander <Alexander.Deucher@amd.com>; Koenig, Christian
> <Christian.Koenig@amd.com>; 'amd-gfx@lists.freedesktop.org' <amd-
> gfx@lists.freedesktop.org>
> Subject: Re: DRM IOCTLS come regularly(every minute) still even after screen
> off
> 
> On 2021-09-16 08:27, Christian König wrote:
> > Good morning,
> >
> > for the background I advised to contact you Michel since we couldn't find
> an explanation.
> >
> > Alex explanation might be correct, but the CS seems to come from the X
> server and is always roughly 60 seconds after going into power save.
> >
> > Any idea what that could be?
> 
> For the DRM_IOCTL_MODE_* ioctls, attaching gdb to Xorg and setting a
> breakpoint on drmIoctl should show where they're coming from.
> 
> The AMDGPU_CS ioctls are probably from glamor calling OpenGL, most likely
> for X11 drawing protocol requests. Note that in this case drmIoctl/ioctl will
> likely be called from a separate thread. Pierre / Marek should be able to help
> you find out where the OpenGL calls are coming from.
> 
> 
> In general, Xorg only ever does anything in response to:
> 
> * X11 protocol requests, i.e. on behalf of clients.
> * Input events, i.e. on behalf of the user.
> * Other kernel events, e.g. hotplug events.
> 
Thanks for sharing these.
> 
> FWIW, with only xfwm4 & xterm running on Xorg, I'm not seeing any drmIoctl
> calls during DPMS off. So the ioctls you're seeing are most likely triggered by
> clients.
> 
Got it. Thanks!

Evan
> 
> --
> Earthling Michel Dänzer               |
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fredh
> at.com%2F&amp;data=04%7C01%7CEvan.Quan%40amd.com%7C296d316427
> b4469f8eb908d978e9b46a%7C3dd8961fe4884e608e11a82d994e183d%7C0%7
> C0%7C637673767426116632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4w
> LjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&am
> p;sdata=gBj4idZGCuaPdyaH1g1mfuDqPCcKhFMjPCbqpM8drlg%3D&amp;res
> erved=0
> Libre software enthusiast             |             Mesa and X developer

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

* Re: DRM IOCTLS come regularly(every minute) still even after screen off
  2021-09-17  2:58     ` Quan, Evan
@ 2021-09-18  7:19       ` Marek Olšák
  2021-09-18  9:16         ` Michel Dänzer
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Olšák @ 2021-09-18  7:19 UTC (permalink / raw)
  To: Quan, Evan
  Cc: Michel Dänzer, Christian König, Deucher, Alexander,
	Koenig, Christian, amd-gfx

[-- Attachment #1: Type: text/plain, Size: 2680 bytes --]

Hi,

Printing the backtrace from si_flush_gfx_cs while /etc/environment contains
GALLIUM_THREAD=0 at boot should show which GL call and X call caused the
flush.

Marek

On Thu, Sep 16, 2021 at 10:58 PM Quan, Evan <Evan.Quan@amd.com> wrote:

> [Public]
>
>
>
> > -----Original Message-----
> > From: Michel Dänzer <michel@daenzer.net>
> > Sent: Thursday, September 16, 2021 4:12 PM
> > To: Christian König <ckoenig.leichtzumerken@gmail.com>; Quan, Evan
> > <Evan.Quan@amd.com>
> > Cc: Deucher, Alexander <Alexander.Deucher@amd.com>; Koenig, Christian
> > <Christian.Koenig@amd.com>; 'amd-gfx@lists.freedesktop.org' <amd-
> > gfx@lists.freedesktop.org>
> > Subject: Re: DRM IOCTLS come regularly(every minute) still even after
> screen
> > off
> >
> > On 2021-09-16 08:27, Christian König wrote:
> > > Good morning,
> > >
> > > for the background I advised to contact you Michel since we couldn't
> find
> > an explanation.
> > >
> > > Alex explanation might be correct, but the CS seems to come from the X
> > server and is always roughly 60 seconds after going into power save.
> > >
> > > Any idea what that could be?
> >
> > For the DRM_IOCTL_MODE_* ioctls, attaching gdb to Xorg and setting a
> > breakpoint on drmIoctl should show where they're coming from.
> >
> > The AMDGPU_CS ioctls are probably from glamor calling OpenGL, most likely
> > for X11 drawing protocol requests. Note that in this case drmIoctl/ioctl
> will
> > likely be called from a separate thread. Pierre / Marek should be able
> to help
> > you find out where the OpenGL calls are coming from.
> >
> >
> > In general, Xorg only ever does anything in response to:
> >
> > * X11 protocol requests, i.e. on behalf of clients.
> > * Input events, i.e. on behalf of the user.
> > * Other kernel events, e.g. hotplug events.
> >
> Thanks for sharing these.
> >
> > FWIW, with only xfwm4 & xterm running on Xorg, I'm not seeing any
> drmIoctl
> > calls during DPMS off. So the ioctls you're seeing are most likely
> triggered by
> > clients.
> >
> Got it. Thanks!
>
> Evan
> >
> > --
> > Earthling Michel Dänzer               |
> > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fredh
> > at.com%2F&amp;data=04%7C01%7CEvan.Quan%40amd.com%7C296d316427
> > b4469f8eb908d978e9b46a%7C3dd8961fe4884e608e11a82d994e183d%7C0%7
> > C0%7C637673767426116632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4w
> > LjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&am
> > p;sdata=gBj4idZGCuaPdyaH1g1mfuDqPCcKhFMjPCbqpM8drlg%3D&amp;res
> > erved=0
> > Libre software enthusiast             |             Mesa and X developer
>

[-- Attachment #2: Type: text/html, Size: 4298 bytes --]

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

* Re: DRM IOCTLS come regularly(every minute) still even after screen off
  2021-09-18  7:19       ` Marek Olšák
@ 2021-09-18  9:16         ` Michel Dänzer
  0 siblings, 0 replies; 6+ messages in thread
From: Michel Dänzer @ 2021-09-18  9:16 UTC (permalink / raw)
  To: Marek Olšák, Quan, Evan
  Cc: Christian König, Deucher, Alexander, Koenig, Christian, amd-gfx

On 2021-09-18 09:19, Marek Olšák wrote:
> Hi,
> 
> Printing the backtrace fromsi_flush_gfx_cs while /etc/environment contains GALLIUM_THREAD=0 at boot should show which GL call and X call caused the flush.

That will most likely be glFlush in (_)glamor_block_handler, or maybe in glamor_sync_fence_set_triggered. 

The former do not get called directly from the X11 request handler which triggers the drawing. I suggest e.g. st_draw_gallium instead.


-- 
Earthling Michel Dänzer               |               https://redhat.com
Libre software enthusiast             |             Mesa and X developer

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

end of thread, other threads:[~2021-09-18  9:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16  3:15 DRM IOCTLS come regularly(every minute) still even after screen off Quan, Evan
2021-09-16  6:27 ` Christian König
2021-09-16  8:12   ` Michel Dänzer
2021-09-17  2:58     ` Quan, Evan
2021-09-18  7:19       ` Marek Olšák
2021-09-18  9:16         ` Michel Dänzer

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.