-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'R-base' of https://github.com/atndko/Neptune_kernel_sm8…
…150_oneplus into R * 'R-base' of https://github.com/atndko/Neptune_kernel_sm8150_oneplus: version: bump qemu: increase default dmesg log size qemu: add disgusting hacks for RHEL 8 allowedips: add missing __rcu annotation to satisfy sparse allowedips: free empty intermediate nodes when removing single node allowedips: allocate nodes in kmem_cache allowedips: remove nodes in O(1) allowedips: initialize list head in selftest peer: allocate in kmem_cache global: use synchronize_net rather than synchronize_rcu kbuild: do not use -O3 netns: make sure rp_filter is disabled on vethc fuse: Set fuse request error upon fuse abort connection msm: adsprpc: Clean buffers on remote invocation failure Release 5.2.022.7Z qcacld-3.0: Drop mcast and plaintext frags in protected network Release 5.2.022.7Y qcacld-3.0: wma_send_peer_assoc() sets incorrect peer state qcacld-3.0: Drop EAPOL frame with DA different from SAP vdev mac addr qcacld-3.0: Enable config flag to disable EAPOL intrabss fwd qcacld-3.0: Flush frags for peer on add key request qcacld-3.0: Add support to flush fragments for a particular peer qcacmn: Drop fragmented multicast/broadcast frames qcacmn: Enable peer authorize by default qcacmn: Do not intrabss forward EAPOL frames qcacmn: Modify check to ensure consecutive PN for frags qcacmn: Register API to flush frags in dp peer ops qcacmn: Add CDP intf to flush fragments for a particular peer Release 5.2.022.7X qcacld-3.0: Do not intrabss fwd EAPOL frames in IPA exc path qcacld-3.0: Drop non-EAPOL/WAPI frames from unauthorized peer Release 5.2.022.7W qcacld-3.0: Reject pre CAC request when DBS is not supported Release 5.2.022.7V qcacld-3.0: Do not intrabss fwd frag EAPOL frames in HL qcacld-3.0: Do not intrabss forward fragmented EAPOL frames Release 5.2.022.7U qcacld-3.0: Modify check to ensure consecutive PN for frags qcacmn: Do not drop the beacon in case of RSN len is less than 2 Release 5.2.022.7T qcacld-3.0: Set HIF PM link state on in RTPM suspend failure flow Release 5.2.022.7S usb: dwc3: Avoid resume_work flush in pm_freeze/restore msm: adsprpc: fix compilation errors in fastrpc driver msm: adsprpc: remove PM vote counter in fastrpc driver msm: adsprpc: do pm stay awake vote in rpmsg callback soc: qcom: hgsl: Fix OOB qcacmn: Get vdev based on vdev id usb: gadget: f_cdev: Fix use after free of port in f_cdev usb: dwc3: Avoid resume_work flush in pm_suspend/pm_resume disp: msm: avoid removing BW vote when layers are staged disp: msm: increase delay times while waiting to turn off rscc clocks qcacld-3.0: Stop opportunistic timer for NAN cmds in HL platforms disp: msm: update min prefill lines for sde rsc rev3 disp: msm: avoid vsync wait during dms mode switch disp: msm: increase rsc min_threshold time disp: msm: update clk and cmd state switch sequence disp: msm: sde: update BW_INDICATION programing sequence tty: Fix ->pgrp locking in tiocspgrp() msm: adsprpc: vote for CPU to stay awake during RPC call disp: msm: sde: add msm_preclose operation as part of msm_release disp: msm: sde: remove fb's attached to a drm_file in preclose disp: msm: sde: clear dim_layers as part of null commit diag: Use valid data_source for a valid token disp: msm: sde: add helper function for setting crtc to conn state disp: msm: avoid deadlock by prepending connection_mutex dmabuf: fix use-after-free of dmabuf's file->f_inode dma-buf: Move dma_buf_release() from fops to dentry_ops Signed-off-by: atndko <[email protected]> Conflicts: drivers/gpu/drm/msm/sde/sde_kms.c
- Loading branch information
Showing
36 changed files
with
573 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. | ||
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. | ||
* Copyright (C) 2014 Red Hat | ||
* Author: Rob Clark <[email protected]> | ||
* | ||
|
@@ -805,6 +805,16 @@ int msm_atomic_commit(struct drm_device *dev, | |
c->plane_mask |= (1 << drm_plane_index(plane)); | ||
} | ||
|
||
/* Protection for prepare_fence callback */ | ||
retry: | ||
ret = drm_modeset_lock(&state->dev->mode_config.connection_mutex, | ||
state->acquire_ctx); | ||
|
||
if (ret == -EDEADLK) { | ||
drm_modeset_backoff(state->acquire_ctx); | ||
goto retry; | ||
} | ||
|
||
/* | ||
* Wait for pending updates on any of the same crtc's and then | ||
* mark our set of crtc's as busy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved. | ||
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. | ||
* Copyright (C) 2013 Red Hat | ||
* Author: Rob Clark <[email protected]> | ||
* | ||
|
@@ -1544,6 +1544,13 @@ static int msm_release(struct inode *inode, struct file *filp) | |
kfree(node); | ||
} | ||
|
||
msm_preclose(dev, file_priv); | ||
|
||
/** | ||
* Handle preclose operation here for removing fb's whose | ||
* refcount > 1. This operation is not triggered from upstream | ||
* drm as msm_driver does not support DRIVER_LEGACY feature. | ||
*/ | ||
return drm_release(inode, filp); | ||
} | ||
|
||
|
@@ -1698,7 +1705,6 @@ static struct drm_driver msm_driver = { | |
DRIVER_ATOMIC | | ||
DRIVER_MODESET, | ||
.open = msm_open, | ||
.preclose = msm_preclose, | ||
.postclose = msm_postclose, | ||
.lastclose = msm_lastclose, | ||
.irq_handler = msm_irq, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved. | ||
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved. | ||
* Copyright (C) 2013 Red Hat | ||
* Author: Rob Clark <[email protected]> | ||
* | ||
|
@@ -3145,17 +3145,16 @@ static void _sde_crtc_set_input_fence_timeout(struct sde_crtc_state *cstate) | |
cstate->input_fence_timeout_ns *= NSEC_PER_MSEC; | ||
} | ||
|
||
/** | ||
* _sde_crtc_clear_dim_layers_v1 - clear all dim layer settings | ||
* @cstate: Pointer to sde crtc state | ||
*/ | ||
static void _sde_crtc_clear_dim_layers_v1(struct sde_crtc_state *cstate) | ||
void _sde_crtc_clear_dim_layers_v1(struct drm_crtc_state *state) | ||
{ | ||
u32 i; | ||
struct sde_crtc_state *cstate; | ||
|
||
if (!cstate) | ||
if (!state) | ||
return; | ||
|
||
cstate = to_sde_crtc_state(state); | ||
|
||
for (i = 0; i < cstate->num_dim_layers; i++) | ||
memset(&cstate->dim_layer[i], 0, sizeof(cstate->dim_layer[i])); | ||
|
||
|
@@ -3191,7 +3190,7 @@ static void _sde_crtc_set_dim_layer_v1(struct drm_crtc *crtc, | |
|
||
if (!usr_ptr) { | ||
/* usr_ptr is null when setting the default property value */ | ||
_sde_crtc_clear_dim_layers_v1(cstate); | ||
_sde_crtc_clear_dim_layers_v1(&cstate->base); | ||
SDE_DEBUG("dim_layer data removed\n"); | ||
return; | ||
} | ||
|
@@ -4281,6 +4280,9 @@ static void sde_crtc_atomic_begin(struct drm_crtc *crtc, | |
sde_encoder_trigger_kickoff_pending(encoder); | ||
} | ||
|
||
/* update performance setting */ | ||
sde_core_perf_crtc_update(crtc, 1, false); | ||
|
||
/* | ||
* If no mixers have been allocated in sde_crtc_atomic_check(), | ||
* it means we are trying to flush a CRTC whose state is disabled: | ||
|
@@ -4427,9 +4429,6 @@ static void sde_crtc_atomic_flush(struct drm_crtc *crtc, | |
cstate->rsc_update = true; | ||
} | ||
|
||
/* update performance setting before crtc kickoff */ | ||
sde_core_perf_crtc_update(crtc, 1, false); | ||
|
||
/* | ||
* Final plane updates: Give each plane a chance to complete all | ||
* required writes/flushing before crtc's "flush | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2015-2020 The Linux Foundation. All rights reserved. | ||
* Copyright (c) 2015-2021 The Linux Foundation. All rights reserved. | ||
* Copyright (C) 2013 Red Hat | ||
* Author: Rob Clark <[email protected]> | ||
* | ||
|
@@ -864,4 +864,9 @@ int sde_crtc_calc_vpadding_param(struct drm_crtc_state *state, | |
int sde_crtc_get_num_datapath(struct drm_crtc *crtc, | ||
struct drm_connector *connector); | ||
|
||
/** | ||
* _sde_crtc_clear_dim_layers_v1 - clear all dim layer settings | ||
* @cstate: Pointer to drm crtc state | ||
*/ | ||
void _sde_crtc_clear_dim_layers_v1(struct drm_crtc_state *state); | ||
#endif /* _SDE_CRTC_H_ */ |
Oops, something went wrong.