Displaying 5 results from an estimated 5 matches for "drmmode_uevent_init".
2017 Mar 29
2
[PATCH xf86-video-nouveau] Do not register hotplug without RandR
...rc/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -1556,6 +1556,15 @@ drmmode_udev_notify(int fd, int notify, void *data)
}
#endif
+static bool has_randr(void)
+{
+#if HAS_DIXREGISTERPRIVATEKEY
+ return dixPrivateKeyRegistered(rrPrivKey);
+#else
+ return *rrPrivKey;
+#endif
+}
+
static void
drmmode_uevent_init(ScrnInfoPtr scrn)
{
@@ -1564,6 +1573,12 @@ drmmode_uevent_init(ScrnInfoPtr scrn)
struct udev *u;
struct udev_monitor *mon;
+ /* RandR will be disabled if Xinerama is active, and so generating
+ * RR hotplug events is then forbidden.
+ */
+ if (!has_randr())
+ return;
+
u = udev_new();...
2017 Mar 29
0
[PATCH xf86-video-nouveau] Do not register hotplug without RandR
...udev_notify(int fd, int notify, void *data)
> }
> #endif
>
> +static bool has_randr(void)
> +{
> +#if HAS_DIXREGISTERPRIVATEKEY
> + return dixPrivateKeyRegistered(rrPrivKey);
> +#else
> + return *rrPrivKey;
> +#endif
> +}
> +
> static void
> drmmode_uevent_init(ScrnInfoPtr scrn)
> {
> @@ -1564,6 +1573,12 @@ drmmode_uevent_init(ScrnInfoPtr scrn)
> struct udev *u;
> struct udev_monitor *mon;
>
> + /* RandR will be disabled if Xinerama is active, and so generating
> + * RR hotplug events is then forbidden.
&...
2019 Mar 06
0
[ANNOUNCE] xf86-video-ati 19.0.0
...de_crtc_scanout_update
Automatically try re-enabling TearFree after a flip failed
Drop RADEONInfoRec::cursor_bo array
Use drmIoctl in drmmode_show_cursor
Update cursor position in drmmode_show_cursor if hotspot changed
Use two HW cursor buffers per CRTC
Only call drmmode_uevent_init if RandR is enabled
Only call drmmode_validate_leases if RandR is enabled
dri3: Flush if necessary in dri3_fd_from_pixmap
dri2: Flush in dri2_create_buffer2 after calling glamor_set_pixmap_bo
glamor: Avoid glamor_create_pixmap for pixmaps backing windows
Don't allo...
2019 Mar 06
0
[ANNOUNCE] xf86-video-amdgpu 19.0.0
...ode_show_cursor if hotspot changed
Use two HW cursor buffers per CRTC
Don't clear info->flip_window in present_unflip
Remove superfluous vrr_flipping field and clean up related code
gitlab-ci: Use kaniko instead of docker-in-docker for image generation
Only call drmmode_uevent_init if RandR is enabled
Only call drmmode_validate_leases if RandR is enabled
dri3: Flush if necessary in dri3_fd_from_pixmap
dri2: Flush in dri2_create_buffer2 after calling glamor_set_pixmap_bo
glamor: Avoid glamor_create_pixmap for pixmaps backing windows
Don't allo...
2015 May 16
5
[Bug 90482] New: Xorg take 100% CPU when using multiple independent screen configuration
...se data was not read, and again, and again, resulting in 100%
CPU core consumption.
Now, some details (based on xf86-video-nouveau-1.0.11 source code)
To add a socket in the xorg server list AddGeneralSocket is used.
In src/drmmode_display.c AddGeneralSocket is called in two places: line 1605
(via drmmode_uevent_init and line 1554) and 1610. If line 1608 condition is not
meet, a socket is added without an handler so drmmode_wakeup_handler will never
be called with correct data.
My solution is to add a new handler that will only handle the udev part when
line 1608 condition is not meet. See attached patch.
--...