mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
41f6f64858fea2b5b1101df392a0846a328c169b
According to the following commits: commit9d0e3cac35("drm/atomic: Allow vblank-enabled + self-refresh "disable"") commit2bdba9d4a3("drm/rockchip: vop: Leave vblank enabled in self-refresh") It is better to leave vblank enabled after entering the PSR mode, in order to ensure that the vblank APIs (like DRM_IOCTL_WAIT_VBLANK) can work in PSR mode. User space is not aware when the display system is already in PSR mode, so this appears to be an API violation. Without this patch, there may be a warning according to the following check in drivers/gpu/drm/drm_atomic_helper.c: static void disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state) { ...... ret = drm_crtc_vblank_get(crtc); /* * Self-refresh is not a true "disable"; ensure vblank remains * enabled. */ if (new_crtc_state->self_refresh_active) WARN_ONCE(ret != 0, "driver disabled vblank in self-refresh\n"); else WARN_ONCE(ret != -EINVAL, "driver forgot to call drm_crtc_vblank_off()\n"); if (ret == 0) drm_crtc_vblank_put(crtc); ...... } Change-Id: I95ee15864c1dfa1045c41c7a9ed2985bb6107f2b Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
…
…
…
…
…
…
…
…
…
…
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%