/linux-6.14.4/drivers/gpu/drm/ |
D | drm_client_modeset.c | 40 struct drm_mode_set *modeset; in drm_client_modeset_create() local 58 for (modeset = client->modesets; modeset->crtc; modeset++) { in drm_client_modeset_create() 59 modeset->connectors = kcalloc(max_connector_count, in drm_client_modeset_create() 60 sizeof(*modeset->connectors), GFP_KERNEL); in drm_client_modeset_create() 61 if (!modeset->connectors) in drm_client_modeset_create() 75 struct drm_mode_set *modeset; in drm_client_modeset_release() local 78 drm_client_for_each_modeset(modeset, client) { in drm_client_modeset_release() 79 drm_mode_destroy(client->dev, modeset->mode); in drm_client_modeset_release() 80 modeset->mode = NULL; in drm_client_modeset_release() 81 modeset->fb = NULL; in drm_client_modeset_release() [all …]
|
D | drm_modeset_lock.c | 63 * where all modeset locks need to be taken through drm_modeset_lock_all_ctx(). 65 * If all that is needed is a single modeset lock, then the &struct 129 * drm_modeset_lock_all - take all modeset locks 132 * This function takes all modeset locks, suitable where a more fine-grained 184 * drm_modeset_unlock_all - drop all modeset locks 187 * This function drops all modeset locks taken by a previous call to the 216 * drm_warn_on_modeset_not_all_locked - check that all modeset locks are locked 375 * drm_modeset_lock - take modeset lock 404 * drm_modeset_lock_single_interruptible - take a single modeset lock 419 * drm_modeset_unlock - drop modeset lock [all …]
|
D | drm_modeset_helper.c | 36 * anywhere else in the DRM modeset helper library. 100 * This is the minimal list of formats that seem to be safe for modeset use 176 * drm_mode_config_helper_suspend - Modeset suspend helper 179 * This helper function takes care of suspending the modeset side. It disables 223 * drm_mode_config_helper_resume - Modeset resume helper 226 * This helper function takes care of resuming the modeset side. It calls
|
D | drm_mode_object.c | 68 * drm_mode_object_add - allocate a new modeset identifier 95 * drm_mode_object_unregister - free a modeset identifier 102 * These modeset identifiers are _not_ reference counted. Hence don't use this 103 * for reference counted modeset objects like framebuffers. 172 * This function is used to look up a modeset object. It will acquire a 191 * This function decrements the object's refcount if it is a refcounted modeset 208 * This function increments the object's refcount if it is a refcounted modeset 222 * drm_object_attach_property - attach a property to a modeset object 223 * @obj: drm modeset object 227 * This attaches the given property to the modeset object with the given initial
|
D | drm_fb_helper.c | 104 * same time, drivers should initialize all modeset objects such as CRTCs, 843 struct drm_mode_set *modeset; in setcmap_legacy() local 849 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_legacy() 850 crtc = modeset->crtc; in setcmap_legacy() 931 struct drm_mode_set *modeset; in setcmap_atomic() local 947 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_atomic() 948 crtc = modeset->crtc; in setcmap_atomic() 981 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_atomic() 982 crtc = modeset->crtc; in setcmap_atomic() 1394 struct drm_mode_set *modeset; in pan_display_legacy() local [all …]
|
D | drm_atomic_helper.c | 54 * top of the CRTC modeset helper callbacks and the plane helper callbacks. It 63 * together with a driver private modeset implementation. 578 * drm_atomic_helper_check_modeset - validate state object for modeset changes 589 * 3. If it's determined a modeset is needed then all connectors on the affected 612 * without a full modeset) _must_ call this function after that change. It is 752 * has been called on them when a modeset is forced. in drm_atomic_helper_check_modeset() 1050 * This just wraps the two parts of the state checking for planes and modeset 1197 /* Shut down everything that needs a full modeset. */ in disable_outputs() 1240 * drm_atomic_helper_update_legacy_modeset_state - update legacy modeset state 1244 * This function updates all the various legacy modeset state pointers in [all …]
|
/linux-6.14.4/drivers/gpu/drm/i915/ |
D | i915_module.c | 28 * either the i915.modeset parameter or by the in i915_check_nomodeset() 32 if (i915_modparams.modeset == 0) in i915_check_nomodeset() 33 pr_warn("i915.modeset=0 is deprecated. Please use the 'nomodeset' kernel parameter instead.\n"); in i915_check_nomodeset() 34 else if (i915_modparams.modeset != -1) in i915_check_nomodeset() 35 …pr_warn("i915.modeset=%d is deprecated. Please remove it and the 'nomodeset' kernel parameter inst… in i915_check_nomodeset() 36 i915_modparams.modeset); in i915_check_nomodeset() 38 if (i915_modparams.modeset == 0) in i915_check_nomodeset() 41 if (drm_firmware_drivers_only() && i915_modparams.modeset == -1) in i915_check_nomodeset()
|
/linux-6.14.4/include/drm/ |
D | drm_modeset_lock.h | 78 * struct drm_modeset_lock - used for locking modeset resources. 83 * Used for locking CRTCs and other modeset resources. 87 * modeset lock 152 * DRM_MODESET_LOCK_ALL_BEGIN - Helper to acquire modeset locks 154 * @ctx: local modeset acquire context, will be dereferenced 158 * Use these macros to simplify grabbing all modeset locks using a local 162 * Any code run between BEGIN and END will be holding the modeset locks. 167 * Drivers can acquire additional modeset locks. If any lock acquisition 185 * DRM_MODESET_LOCK_ALL_END - Helper to release and cleanup modeset locks 187 * @ctx: local modeset acquire context, will be dereferenced
|
D | drm_client.h | 210 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation); 218 * @modeset: &drm_mode_set loop cursor 221 #define drm_client_for_each_modeset(modeset, client) \ argument 223 modeset = (client)->modesets; modeset->crtc; modeset++)
|
D | drm_modeset_helper_vtables.h | 44 * Because there is only one pointer per modeset object to hold a vfunc table 88 * This callback should prepare the CRTC for a subsequent modeset, which 103 * This callback should commit the new mode on the CRTC after a modeset, 157 * to adjusted_mode it should reject the modeset. See also 189 * True if an acceptable configuration is possible, false if the modeset 203 * modeset support. 243 * drm_crtc_helper_set_config() will fall back to a full modeset, using 245 * incompatible with atomic modeset support. 335 * This callback is used by the atomic modeset helpers, but it is 375 * This callback is used by the atomic modeset helpers, but it is [all …]
|
D | drm_module.h | 62 drm_pci_register_driver_if_modeset(struct pci_driver *pci_drv, int modeset) in drm_pci_register_driver_if_modeset() argument 64 if (drm_firmware_drivers_only() && modeset == -1) in drm_pci_register_driver_if_modeset() 66 if (modeset == 0) in drm_pci_register_driver_if_modeset() 73 drm_pci_unregister_driver_if_modeset(struct pci_driver *pci_drv, int modeset) in drm_pci_unregister_driver_if_modeset() argument
|
D | drm_property.h | 55 * struct drm_property - modeset object property 57 * This structure represent a modeset object property. It combines both the name 65 * symbolic property will have the same modeset object ID on all modeset 76 * IOCTL. Everything that was set directly in structures in the legacy modeset 125 * Object properties are used to link modeset objects. This is used 155 * Set for properties which encode atomic modeset state. Such
|
D | drm_mode_config.h | 114 * This is the only hook to validate an atomic modeset update. This 115 * function must reject any modeset and state changes which the hardware 148 * updates which require a full modeset (i.e. blanking the screen, or 161 * an atomic modeset update is described. 191 * This is the only hook to commit an atomic modeset update. The core 197 * an atomic modeset update is described. 211 * modeset this must be guaranteed. 265 * additional modeset locks). 363 * This is the big scary modeset BKL which protects everything that 496 * the display hardware or modeset software state, which the panic
|
D | drm_atomic.h | 35 * struct drm_crtc_commit - track modeset commits on a CRTC 37 * This structure is used to track pending modeset changes and atomic commit on 65 * and modeset state change. 294 * @lock: Modeset lock to protect the state object. 377 * Allow full modeset. This is used by the ATOMIC IOCTL handler to 454 * @acquire_ctx: acquire context for this atomic modeset state update 1085 * drm_atomic_crtc_needs_modeset - compute combined modeset need 1089 * whether the state CRTC changed enough to need a full modeset cycle: 1091 * combines these three to compute the overall need for a modeset for @state. 1094 * change them appropriately to accurately represent whether a modeset is [all …]
|
/linux-6.14.4/drivers/gpu/drm/ci/xfails/ |
D | rockchip-rk3399-fails.txt | 2 kms_atomic_transition@modeset-transition,Fail 3 kms_atomic_transition@modeset-transition-fencing,Fail 4 kms_atomic_transition@plane-toggle-modeset-transition,Fail 41 kms_cursor_legacy@long-nonblocking-modeset-vs-cursor-atomic,Fail 46 kms_flip@flip-vs-modeset-vs-hang,Fail 50 kms_flip@modeset-vs-vblank-race,Fail 51 kms_flip@modeset-vs-vblank-race-interruptible,Fail
|
D | amdgpu-stoney-fails.txt | 21 kms_atomic_transition@plane-all-modeset-transition-internal-panels,Fail 24 kms_atomic_transition@plane-toggle-modeset-transition,Fail 34 kms_flip@flip-vs-modeset-vs-hang,Fail
|
D | virtio_gpu-none-fails.txt | 148 kms_flip@flip-vs-modeset-vs-hang,Fail 151 kms_flip@modeset-vs-vblank-race,Fail 152 kms_flip@modeset-vs-vblank-race-interruptible,Fail 182 kms_vblank@ts-continuation-modeset,Fail 183 kms_vblank@ts-continuation-modeset-rpm,Fail
|
/linux-6.14.4/drivers/gpu/drm/i915/display/ |
D | intel_atomic.c | 25 * DOC: atomic modeset support 28 * dispatch required by the atomic modeset infrastructure. 137 * up in a modeset. in intel_digital_connector_atomic_check() 175 * intel_connector_needs_modeset - check if connector needs a modeset 176 * @state: the atomic state corresponding to this modeset 195 * intel_any_crtc_needs_modeset - check if any CRTC needs a modeset 196 * @state: the atomic state corresponding to this modeset 198 * Returns true if any CRTC in @state needs a modeset. 355 state->dpll_set = state->modeset = false; in intel_atomic_state_clear()
|
D | intel_display_driver.c | 243 display->wq.modeset = alloc_ordered_workqueue("i915_modeset", 0); in intel_display_driver_probe_noirq() 311 * are modeset commits and connector probing. 330 * are modeset commits and connector probing. For the current thread the 332 * programming (as the initial modeset during driver loading or the disabling 333 * modeset during driver unloading and system suspend/shutdown). This function 356 * are modeset commits and connector probing. This call should be either 374 * are modeset commits and connector probing. The resume thread should only 375 * perform HW init programming (as the restoring modeset). This function 392 * message if it doesn't. Such accesses are modeset commits and connector 522 drm_dbg_kms(display->drm, "Initial modeset failed, %d\n", ret); in intel_display_driver_probe() [all …]
|
D | intel_encoder.c | 49 * TODO: check and remove holding the modeset locks if none of in intel_encoder_suspend_all() 71 * TODO: check and remove holding the modeset locks if none of in intel_encoder_shutdown_all()
|
/linux-6.14.4/drivers/gpu/drm/loongson/ |
D | loongson_module.c | 13 MODULE_PARM_DESC(modeset, "Disable/Enable modesetting"); 14 module_param_named(modeset, loongson_modeset, int, 0400);
|
/linux-6.14.4/Documentation/gpu/ |
D | todo.rst | 47 3.19 has the atomic modeset interfaces and helpers, so drivers can now be 49 really want an atomic modeset interface, so this is all about the bright 60 .. [1] https://blog.ffwll.ch/2014/11/atomic-modeset-support-for-kms-drivers.html 107 For the first year the atomic modeset helpers didn't support asynchronous / 234 Convert drivers to use simple modeset suspend/resume 240 of the atomic suspend/resume code in older atomic modeset drivers. 380 Consolidate custom driver modeset properties 383 Before atomic modeset took place, many drivers where creating their own 482 drivers are used with a lot of different DRM modeset drivers they still 485 driver gets shutdown() _before_ the DRM modeset driver and the DRM modeset [all …]
|
/linux-6.14.4/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_mixer.c | 87 * without requiring a full modeset if we had already in mdp5_mixer_assign() 91 * result in the CRTC requiring a full modeset, even in mdp5_mixer_assign() 95 * a full modeset. in mdp5_mixer_assign()
|
/linux-6.14.4/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_vkms.c | 527 * vmw_vkms_modeset_lock - Protects access to crtc during modeset 531 * while a modeset operation is in process. We don't want the callbacks 533 * so we need to make sure they execute only when the modeset has 537 * entire atomic modeset with vmwgfx is impossible because kms prepare 570 * vmw_vkms_modeset_lock_relaxed - Protects access to crtc during modeset 574 * in a modeset it will return immediately. 576 * Returns true if actually locked vkms to modeset or false otherwise.
|
/linux-6.14.4/drivers/gpu/drm/rockchip/ |
D | rockchip_vop_reg.c | 200 .modeset = &rk3036_modeset, 244 .modeset = &rk3036_modeset, 372 .modeset = &px30_modeset, 389 .modeset = &px30_modeset, 514 .modeset = &rk3066_modeset, 621 .modeset = &rk3188_modeset, 770 .modeset = &rk3288_modeset, 877 .modeset = &rk3288_modeset, 899 .modeset = &rk3288_modeset, 1052 .modeset = &rk3288_modeset, [all …]
|