diff options
| author | Thomas Gleixner <[email protected]> | 2019-05-06 12:04:12 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-05-06 12:04:12 +0200 | 
| commit | fb4e0592654adb31bc6f3a738d6499b816a655d6 (patch) | |
| tree | e6edaf18cf3a7f49e93fb51de5a47f4b9e786f53 /drivers/gpu/drm/amd/display/amdgpu_dm | |
| parent | 471ba0e686cb13752bc1ff3216c54b69a2d250ea (diff) | |
| parent | 16e32c3cde7763ab875b9030b443ecbc8e352d8a (diff) | |
Merge tag 'irqchip-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/core
Pull irqchip updates from Marc Zyngier
- The huge (and terrifying) TI INTR/INTA set of drivers
- Rewrite of the stm32mp1-exti driver as a platform driver
- Update the IOMMU MSI mapping API to be RT friendly
- A number of cleanups and other low impact fixes
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm')
| -rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index fb27783d7a54..3082b55b1e77 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -4533,6 +4533,7 @@ static void handle_cursor_update(struct drm_plane *plane,  	amdgpu_crtc->cursor_width = plane->state->crtc_w;  	amdgpu_crtc->cursor_height = plane->state->crtc_h; +	memset(&attributes, 0, sizeof(attributes));  	attributes.address.high_part = upper_32_bits(address);  	attributes.address.low_part  = lower_32_bits(address);  	attributes.width             = plane->state->crtc_w; @@ -5429,9 +5430,11 @@ static void get_freesync_config_for_crtc(  	struct amdgpu_dm_connector *aconnector =  			to_amdgpu_dm_connector(new_con_state->base.connector);  	struct drm_display_mode *mode = &new_crtc_state->base.mode; +	int vrefresh = drm_mode_vrefresh(mode);  	new_crtc_state->vrr_supported = new_con_state->freesync_capable && -		aconnector->min_vfreq <= drm_mode_vrefresh(mode); +					vrefresh >= aconnector->min_vfreq && +					vrefresh <= aconnector->max_vfreq;  	if (new_crtc_state->vrr_supported) {  		new_crtc_state->stream->ignore_msa_timing_param = true; |