aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-03-20 21:46:05 -0400
committerDave Airlie <airlied@redhat.com>2018-03-20 21:46:05 -0400
commit287d2ac36b6f2830ea4ef66c110abc0f47a9a658 (patch)
tree04214f156461a95c2f7ca5a8821063cad7fc515e /drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
parent963976cfe9c54d4d9e725e61c90c47a4af6b5ea2 (diff)
parent6da2b9332c572fcda94de9631f8fa514f574388a (diff)
Merge branch 'drm-next-4.17' of git://people.freedesktop.org/~agd5f/linux into drm-next
- Continued cleanup and restructuring of powerplay - Fetch VRAM type from vbios rather than hardcoding for SOC15 asics - Allow ttm to drop its backing store when drivers don't need it - DC bandwidth calc updates - Enable DC backlight control pre-DCE11 asics - Enable DC on all supported asics - DC Fixes for planes due to the way our hw is ordered vs what drm expects - DC CTM/regamma fixes - Misc cleanup and bug fixes * 'drm-next-4.17' of git://people.freedesktop.org/~agd5f/linux: (89 commits) amdgpu/dm: Default PRE_VEGA ASIC support to 'y' drm/amd/pp: Remove the cgs wrapper for notify smu version on APU drm/amd/display: fix dereferencing possible ERR_PTR() drm/amd/display: Refine disable VGA drm/amdgpu: Improve documentation of bo_ptr in amdgpu_bo_create_kernel drm/radeon: Don't turn off DP sink when disconnected drm/amd/pp: Rename file name cz_* to smu8_* drm/amd/pp: Replace function/struct name cz_* with smu8_* drm/amd/pp: Remove unneeded void * casts in cz_hwmgr.c/cz_smumgr.c drm/amd/pp: Mv cz uvd/vce pg/dpm functions to cz_hwmgr.c drm/amd/pp: Remove dead header file pp_asicblocks.h drm/amd/pp: Delete dead code on cz_clockpowergating.c drm/amdgpu: Call amdgpu_ucode_fini_bo in amd_powerplay.c drm/amdgpu: Remove wrapper layer of smu ip functions drm/amdgpu: Don't compared ip_block_type with ip_block_index drm/amdgpu: Plus NULL function pointer check drm/amd/pp: Move helper functions to smu_help.c drm/amd/pp: Replace rv_* with smu10_* drm/amd/pp: Fix function parameter not correct drm/amd/pp: Add rv_copy_table_from/to_smc to smu backend function table ...
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h30
1 files changed, 1 insertions, 29 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
index d9533bbc467c..d6416ee52e32 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
@@ -350,6 +350,7 @@ struct amdgpu_mode_info {
350 u16 firmware_flags; 350 u16 firmware_flags;
351 /* pointer to backlight encoder */ 351 /* pointer to backlight encoder */
352 struct amdgpu_encoder *bl_encoder; 352 struct amdgpu_encoder *bl_encoder;
353 u8 bl_level; /* saved backlight level */
353 struct amdgpu_audio audio; /* audio stuff */ 354 struct amdgpu_audio audio; /* audio stuff */
354 int num_crtc; /* number of crtcs */ 355 int num_crtc; /* number of crtcs */
355 int num_hpd; /* number of hpd pins */ 356 int num_hpd; /* number of hpd pins */
@@ -550,14 +551,6 @@ struct amdgpu_connector {
550 /* we need to mind the EDID between detect 551 /* we need to mind the EDID between detect
551 and get modes due to analog/digital/tvencoder */ 552 and get modes due to analog/digital/tvencoder */
552 struct edid *edid; 553 struct edid *edid;
553 /* number of modes generated from EDID at 'dc_sink' */
554 int num_modes;
555 /* The 'old' sink - before an HPD.
556 * The 'current' sink is in dc_link->sink. */
557 struct dc_sink *dc_sink;
558 struct dc_link *dc_link;
559 struct dc_sink *dc_em_sink;
560 const struct dc_stream *stream;
561 void *con_priv; 554 void *con_priv;
562 bool dac_load_detect; 555 bool dac_load_detect;
563 bool detected_by_load; /* if the connection status was determined by load */ 556 bool detected_by_load; /* if the connection status was determined by load */
@@ -568,27 +561,6 @@ struct amdgpu_connector {
568 enum amdgpu_connector_audio audio; 561 enum amdgpu_connector_audio audio;
569 enum amdgpu_connector_dither dither; 562 enum amdgpu_connector_dither dither;
570 unsigned pixelclock_for_modeset; 563 unsigned pixelclock_for_modeset;
571
572 struct drm_dp_mst_topology_mgr mst_mgr;
573 struct amdgpu_dm_dp_aux dm_dp_aux;
574 struct drm_dp_mst_port *port;
575 struct amdgpu_connector *mst_port;
576 struct amdgpu_encoder *mst_encoder;
577 struct semaphore mst_sem;
578
579 /* TODO see if we can merge with ddc_bus or make a dm_connector */
580 struct amdgpu_i2c_adapter *i2c;
581
582 /* Monitor range limits */
583 int min_vfreq ;
584 int max_vfreq ;
585 int pixel_clock_mhz;
586
587 /*freesync caps*/
588 struct mod_freesync_caps caps;
589
590 struct mutex hpd_lock;
591
592}; 564};
593 565
594/* TODO: start to use this struct and remove same field from base one */ 566/* TODO: start to use this struct and remove same field from base one */