drm/amdgpu: remove legacy non-DC display support code
Subsystems (3)
PATCH 1/3 drm/amdgpu: remove legacy non-DC display support code
From: Alex Deucher <[email protected]>
This removes all of the common support code for the non-DC display code.
--- drivers/gpu/drm/amd/amdgpu/Makefile | 10 +- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 - drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c | 106 - drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 408 ---- drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h | 9 - .../gpu/drm/amd/amdgpu/amdgpu_connectors.c | 2063 ---------------- .../gpu/drm/amd/amdgpu/amdgpu_connectors.h | 41 - drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 14 +- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 670 ------ drivers/gpu/drm/amd/amdgpu/amdgpu_display.h | 13 - drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 24 - drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c | 262 -- drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | 123 - drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h | 4 - drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 90 - drivers/gpu/drm/amd/amdgpu/atombios_crtc.c | 885 ------- drivers/gpu/drm/amd/amdgpu/atombios_crtc.h | 60 - drivers/gpu/drm/amd/amdgpu/atombios_dp.c | 770 ------ drivers/gpu/drm/amd/amdgpu/atombios_dp.h | 42 - .../gpu/drm/amd/amdgpu/atombios_encoders.c | 2126 ----------------- .../gpu/drm/amd/amdgpu/atombios_encoders.h | 78 - .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 - 23 files changed, 11 insertions(+), 7799 deletions(-) delete mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.h delete mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_crtc.h delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_dp.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_dp.h delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h
drivers/gpu/drm/amd/amdgpu/Makefile +5 -5
@@ -52,15 +52,15 @@ amdgpu-y := amdgpu_drv.o # add KMS driver amdgpu-y += amdgpu_device.o amdgpu_reg_access.o amdgpu_doorbell_mgr.o amdgpu_kms.o \ - amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \ + amdgpu_atombios.o \ atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \ - amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \ + amdgpu_display.o amdgpu_i2c.o \ amdgpu_gem.o amdgpu_ring.o \ amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o \ - atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \ - atombios_encoders.o amdgpu_sa.o atombios_i2c.o \ + amdgpu_trace_points.o \ + amdgpu_sa.o atombios_i2c.o \ amdgpu_dma_buf.o amdgpu_vm.o amdgpu_vm_pt.o amdgpu_vm_tlb_fence.o \ - amdgpu_ib.o amdgpu_pll.o \ + amdgpu_ib.o \ amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o \ amdgpu_gtt_mgr.o amdgpu_preempt_mgr.o amdgpu_vram_mgr.o amdgpu_virt.o \ amdgpu_atomfirmware.o amdgpu_vf_error.o amdgpu_sched.o \
drivers/gpu/drm/amd/amdgpu/amdgpu.h +0 -4
@@ -163,7 +163,6 @@ extern int amdgpu_gart_size;extern int amdgpu_gtt_size;extern int amdgpu_moverate;extern int amdgpu_audio; -extern int amdgpu_disp_priority;extern int amdgpu_hw_i2c;extern int amdgpu_pcie_gen2;extern int amdgpu_msi;
@@ -182,7 +181,6 @@ extern int amdgpu_vm_fault_stop;extern int amdgpu_vm_debug;extern int amdgpu_vm_update_mode;extern int amdgpu_exp_hw_support; -extern int amdgpu_dc;extern int amdgpu_sched_jobs;extern int amdgpu_sched_hw_submission;extern uint amdgpu_pcie_gen_cap;
@@ -1044,8 +1042,6 @@ size_t amdgpu_device_aper_access(struct amdgpu_device *adev, loff_t pos,void amdgpu_device_vram_access (struct amdgpu_device *adev,loff_t pos,void *buf,size_t size,bool write);u32 amdgpu_device_get_rev_id (struct amdgpu_device *adev); -bool amdgpu_device_asic_has_dc_support (struct pci_dev *pdev, -enum amd_asic_type asic_type);bool amdgpu_device_has_dc_support (struct amdgpu_device *adev);void amdgpu_device_set_sriov_virtual_display (struct amdgpu_device *adev);
drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c deleted +0 -106
106 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0 -408
426 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h +0 -9
@@ -129,19 +129,11 @@ struct atom_voltage_table {struct atom_voltage_table_entry entries[MAX_VOLTAGE_ENTRIES ]; }; -struct amdgpu_gpio_rec -amdgpu_atombios_lookup_gpio (struct amdgpu_device *adev, -u8 id); -struct amdgpu_i2c_bus_rec amdgpu_atombios_lookup_i2c_gpio (struct amdgpu_device *adev,uint8_t id);void amdgpu_atombios_i2c_init (struct amdgpu_device *adev);void amdgpu_atombios_oem_i2c_init (struct amdgpu_device *adev,u8 i2c_id); -bool amdgpu_atombios_has_dce_engine_info (struct amdgpu_device *adev); - -bool amdgpu_atombios_get_connector_info_from_object_table (struct amdgpu_device *adev); -int amdgpu_atombios_get_clock_info (struct amdgpu_device *adev);int amdgpu_atombios_get_gfx_info (struct amdgpu_device *adev);
@@ -192,7 +184,6 @@ int amdgpu_atombios_get_svi2_info(struct amdgpu_device *adev,bool amdgpu_atombios_has_gpu_virtualization_table (struct amdgpu_device *adev); -void amdgpu_atombios_scratch_regs_lock (struct amdgpu_device *adev,bool lock);void amdgpu_atombios_scratch_regs_engine_hung (struct amdgpu_device *adev,bool hung); void amdgpu_atombios_scratch_regs_set_backlight_level(struct amdgpu_device *adev,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0 -2063
2,063 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.h deleted +0 -41
41 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +6 -8
@@ -3525,8 +3525,8 @@ static void amdgpu_device_detect_sriov_bios(struct amdgpu_device *adev)* Check if there is DC (new modesetting infrastructre) support for an asic. * returns true if DC has support, false if not. */ -bool amdgpu_device_asic_has_dc_support (struct pci_dev *pdev, -enum amd_asic_type asic_type) +static bool amdgpu_device_asic_has_dc_support (struct pci_dev *pdev, +enum amd_asic_type asic_type) {switch (asic_type) {#ifdef CONFIG_DRM_AMDGPU_SI
@@ -3540,15 +3540,13 @@ bool amdgpu_device_asic_has_dc_support(struct pci_dev *pdev,case CHIP_PITCAIRN :case CHIP_VERDE :case CHIP_OLAND : -return amdgpu_dc !=0 &&IS_ENABLED (CONFIG_DRM_AMD_DC_SI ); +return IS_ENABLED (CONFIG_DRM_AMD_DC_SI );default : -return amdgpu_dc !=0 ; +return true;#else default : -if (amdgpu_dc >0 ) -dev_info_once ( - &pdev->dev, -"Display Core has been requested via kernel parameter but isn't supported by ASIC, ignoring\n" ); +dev_info_once (&pdev->dev, +"Driver built without display support\n" );return false;#endif }
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0 -670
267 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_display.h +0 -13
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0 -24
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0 -262
262 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c +0 -123
123 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h +0 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +0 -90
90 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0 -885
885 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/atombios_crtc.h deleted +0 -60
60 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0 -770
770 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/atombios_dp.h deleted +0 -42
42 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0 -2126
2,126 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0 -78
78 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -7
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.43.0
Part of the diff is not shown here. View the raw message.
AMD General
Yikes. Please ignore this. Bad rebase
Kent
Quoted 9,756 lines
-----Original Message-----
From: Russell, Kent <[email protected]>
Sent: November 16, 2026 4:51 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Timur Kristóf <[email protected]>; Russell, Kent <[email protected]>
Subject: [PATCH 1/3] drm/amdgpu: remove legacy non-DC display support codeFrom: Alex Deucher <[email protected]>
This removes all of the common support code for the non-DC display code.
Reviewed-by Timur Kristóf <[email protected]>Signed-off-by Alex Deucher <[email protected]>Signed-off-by Kent Russell <[email protected]>--- drivers/gpu/drm/amd/amdgpu/Makefile | 10 +- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 - drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c | 106 - drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 408 ---- drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h | 9 - .../gpu/drm/amd/amdgpu/amdgpu_connectors.c | 2063 ---------------- .../gpu/drm/amd/amdgpu/amdgpu_connectors.h | 41 - drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 14 +- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 670 ------ drivers/gpu/drm/amd/amdgpu/amdgpu_display.h | 13 - drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 24 - drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c | 262 -- drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | 123 - drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h | 4 - drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 90 - drivers/gpu/drm/amd/amdgpu/atombios_crtc.c | 885 ------- drivers/gpu/drm/amd/amdgpu/atombios_crtc.h | 60 - drivers/gpu/drm/amd/amdgpu/atombios_dp.c | 770 ------ drivers/gpu/drm/amd/amdgpu/atombios_dp.h | 42 - .../gpu/drm/amd/amdgpu/atombios_encoders.c | 2126 ----------------- .../gpu/drm/amd/amdgpu/atombios_encoders.h | 78 - .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 - 23 files changed, 11 insertions(+), 7799 deletions(-) delete mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.h delete mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_crtc.h delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_dp.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_dp.h delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c delete mode 100644 drivers/gpu/drm/amd/amdgpu/atombios_encoders.hdrivers/gpu/drm/amd/amdgpu/Makefile +5
-5@@ -52,15 +52,15 @@ amdgpu-y := amdgpu_drv.o # add KMS driver amdgpu-y += amdgpu_device.o amdgpu_reg_access.o amdgpu_doorbell_mgr.o amdgpu_kms.o \ - amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \ + amdgpu_atombios.o \ atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \ - amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \ + amdgpu_display.o amdgpu_i2c.o \ amdgpu_gem.o amdgpu_ring.o \ amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o \ - atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \ - atombios_encoders.o amdgpu_sa.o atombios_i2c.o \ + amdgpu_trace_points.o \ + amdgpu_sa.o atombios_i2c.o \ amdgpu_dma_buf.o amdgpu_vm.o amdgpu_vm_pt.o amdgpu_vm_tlb_fence.o \ - amdgpu_ib.o amdgpu_pll.o \ + amdgpu_ib.o \amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o \
amdgpu_gtt_mgr.o amdgpu_preempt_mgr.o amdgpu_vram_mgr.oamdgpu_virt.o \ amdgpu_atomfirmware.o amdgpu_vf_error.o amdgpu_sched.o \drivers/gpu/drm/amd/amdgpu/amdgpu.h +0
-4@@ -163,7 +163,6 @@ extern int amdgpu_gart_size;extern int amdgpu_gtt_size;extern int amdgpu_moverate;extern int amdgpu_audio; -extern int amdgpu_disp_priority;extern int amdgpu_hw_i2c;extern int amdgpu_pcie_gen2;extern int amdgpu_msi;@@ -182,7 +181,6 @@ extern int amdgpu_vm_fault_stop;extern int amdgpu_vm_debug;extern int amdgpu_vm_update_mode;extern int amdgpu_exp_hw_support; -extern int amdgpu_dc;extern int amdgpu_sched_jobs;extern int amdgpu_sched_hw_submission;extern uint amdgpu_pcie_gen_cap;@@ -1044,8 +1042,6 @@ size_t amdgpu_device_aper_access(struct amdgpu_device *adev, loff_t pos, void amdgpu_device_vram_access(struct amdgpu_device *adev, loff_t pos,void *buf,size_t size,bool write);u32 amdgpu_device_get_rev_id (struct amdgpu_device *adev); -bool amdgpu_device_asic_has_dc_support (struct pci_dev *pdev, -enum amd_asic_type asic_type);bool amdgpu_device_has_dc_support (struct amdgpu_device *adev);void
amdgpu_device_set_sriov_virtual_display(struct amdgpu_device *adev);drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c deleted +0
-16@@ -1,106 +0,0 @@ -/* -* Copyright 2008 Advanced Micro Devices, Inc. -* Copyright 2008 Red Hat Inc. -* Copyright 2009 Christian König. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- * Authors: Christian König
- */drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c deleted +0
-10-#include <linux/hdmi.h> -#include <linux/gcd.h> - -#include <drm/amdgpu_drm.h> -#include "amdgpu.h" - -static const struct amdgpu_afmt_acr amdgpu_afmt_predefined_acr[] = { -/* 32kHz 44.1kHz 48kHz */ -/* Clock N CTS N CTS N CTS */ - {25175 ,4096 ,25175 ,28224 ,125875 ,6144 ,25175 },/* 25,20/1.001 MHz */
drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c deleted +0
-8- { 25200, 4096, 25200, 6272, 28000, 6144, 25200 }, /* 25.20 MHz */ - { 27000, 4096, 27000, 6272, 30000, 6144, 27000 }, /* 27.00 MHz */ - { 27027, 4096, 27027, 6272, 30030, 6144, 27027 }, /* 27.00*1.001 MHz */ - { 54000, 4096, 54000, 6272, 60000, 6144, 54000 }, /* 54.00 MHz */ - { 54054, 4096, 54054, 6272, 60060, 6144, 54054 }, /* 54.00*1.001 MHz */ - { 74176, 4096, 74176, 5733, 75335, 6144, 74176 }, /* 74.25/1.001 MHz */ - { 74250, 4096, 74250, 6272, 82500, 6144, 74250 }, /* 74.25 MHz */ - { 148352, 4096, 148352, 5733, 150670, 6144, 148352 }, /* 148.50/1.001MHz */
drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c deleted +0
-34- { 148500, 4096, 148500, 6272, 165000, 6144, 148500 }, /* 148.50 MHz */ -}; - - -/* -* calculate CTS and N values if they are not found in the table -*/ -static void amdgpu_afmt_calc_cts (uint32_t clock,int *CTS ,int *N ,int freq) -{ -int n, cts; -unsigned long div, mul; - -/* Safe, but overly large values */ - n =128 * freq; - cts = clock *1000 ; - -/* Smallest valid fraction */ - div =gcd (n, cts); - - n /= div; - cts /= div; - -/* -* The optimal N is 128*freq/1000. Calculate the closest larger -* value that doesn't truncate any bits. -*/ - mul = ((128 *freq/1000 ) + (n-1 ))/n; - - n *= mul; - cts *= mul; - -/* Check that we are in spec (not always possible) */ -if (n < (128 *freq/1500 )) - pr_warn("Calculated ACR N value is too small. You mayexperience audio problems.\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c deleted +0
-2-if (n > (128 *freq/300 )) - pr_warn("Calculated ACR N value is too large. You mayexperience audio problems.\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c deleted +0
-5- - *N = n; - *CTS = cts; - - DRM_DEBUG("Calculated ACR timing N=%d CTS=%d for frequency%d\n",
drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c deleted +0
-17- *N, *CTS, freq); -} - -struct amdgpu_afmt_acr amdgpu_afmt_acr (uint32_t clock) -{ -struct amdgpu_afmt_acr res; -u8 i; - -/* Precalculated values for common clocks */ -for (i =0 ; i <ARRAY_SIZE (amdgpu_afmt_predefined_acr); i++) { -if (amdgpu_afmt_predefined_acr[i].clock == clock) -return amdgpu_afmt_predefined_acr[i]; - } - -/* And odd clocks get manually calculated */ -amdgpu_afmt_calc_cts (clock, &res.cts_32khz, &res.n_32khz,32000 ); - amdgpu_afmt_calc_cts(clock, &res.cts_44_1khz, &res.n_44_1khz,44100);
drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c deleted +0
-5-amdgpu_afmt_calc_cts (clock, &res.cts_48khz, &res.n_48khz,48000 ); - res.clock = clock; - -return res; -}drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-20@@ -33,7 +33,6 @@#include "atom.h" #include "atom-bits.h" -#include "atombios_encoders.h" #include "bif/bif_4_1_d.h" /* VBIOS-reported table size is unchecked against the image; cap iterations and @@ -188,396 +187,6 @@ void amdgpu_atombios_oem_i2c_init(struct amdgpu_device *adev, u8 i2c_id) } } -struct amdgpu_gpio_rec -amdgpu_atombios_lookup_gpio (struct amdgpu_device *adev, -u8 id) -{ -struct atom_context *ctx = adev->mode_info.atom_context; -struct amdgpu_gpio_rec gpio; -int index =GetIndexIntoMasterTable (DATA , GPIO_Pin_LUT); -struct _ATOM_GPIO_PIN_LUT *gpio_info; -ATOM_GPIO_PIN_ASSIGNMENT *pin; -u16 data_offset, size; -int i, num_indices; - -memset (&gpio,0 ,sizeof (struct amdgpu_gpio_rec )); - gpio.valid = false; - -if (amdgpu_atom_parse_data_header (ctx, index, &size,NULL ,NULL , &data_offset)) { - gpio_info = (struct _ATOM_GPIO_PIN_LUT *)(ctx->bios + data_offset); - - num_indices = (size -sizeof (ATOM_COMMON_TABLE_HEADER ))/
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-14-sizeof (ATOM_GPIO_PIN_ASSIGNMENT ); - - pin = gpio_info->asGPIO_Pin; -for (i =0 ; i < num_indices; i++) { -if (id == pin->ucGPIO_ID) { - gpio.id = pin->ucGPIO_ID; - gpio.reg =le16_to_cpu (pin->usGpioPin_AIndex); - gpio.shift = pin->ucGpioPinBitShift; - gpio.mask = (1 << pin->ucGpioPinBitShift); - gpio.valid = true; -break ; - } - pin = (ATOM_GPIO_PIN_ASSIGNMENT *) - ((u8 *)pin +
sizeof(ATOM_GPIO_PIN_ASSIGNMENT));drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-83- } - } - -return gpio; -} - -static struct amdgpu_hpd -amdgpu_atombios_get_hpd_info_from_gpio (struct amdgpu_device *adev, -struct amdgpu_gpio_rec *gpio) -{ -struct amdgpu_hpd hpd; -u32 reg; - -memset (&hpd,0 ,sizeof (struct amdgpu_hpd )); - - reg =amdgpu_display_hpd_get_gpio_reg (adev); - - hpd.gpio = *gpio; -if (gpio->reg == reg) { -switch (gpio->mask) { -case (1 <<0 ): - hpd.hpd =AMDGPU_HPD_1 ; -break ; -case (1 <<8 ): - hpd.hpd =AMDGPU_HPD_2 ; -break ; -case (1 <<16 ): - hpd.hpd =AMDGPU_HPD_3 ; -break ; -case (1 <<24 ): - hpd.hpd =AMDGPU_HPD_4 ; -break ; -case (1 <<26 ): - hpd.hpd =AMDGPU_HPD_5 ; -break ; -case (1 <<28 ): - hpd.hpd =AMDGPU_HPD_6 ; -break ; -default : - hpd.hpd =AMDGPU_HPD_NONE ; -break ; - } - }else - hpd.hpd =AMDGPU_HPD_NONE ; -return hpd; -} - -static const int object_connector_convert[] = { - DRM_MODE_CONNECTOR_Unknown, -DRM_MODE_CONNECTOR_DVII , -DRM_MODE_CONNECTOR_DVII , -DRM_MODE_CONNECTOR_DVID , -DRM_MODE_CONNECTOR_DVID , -DRM_MODE_CONNECTOR_VGA , - DRM_MODE_CONNECTOR_Composite, -DRM_MODE_CONNECTOR_SVIDEO , - DRM_MODE_CONNECTOR_Unknown, - DRM_MODE_CONNECTOR_Unknown, - DRM_MODE_CONNECTOR_9PinDIN, - DRM_MODE_CONNECTOR_Unknown, -DRM_MODE_CONNECTOR_HDMIA , -DRM_MODE_CONNECTOR_HDMIB , -DRM_MODE_CONNECTOR_LVDS , - DRM_MODE_CONNECTOR_9PinDIN, - DRM_MODE_CONNECTOR_Unknown, - DRM_MODE_CONNECTOR_Unknown, - DRM_MODE_CONNECTOR_Unknown, - DRM_MODE_CONNECTOR_DisplayPort, - DRM_MODE_CONNECTOR_eDP, - DRM_MODE_CONNECTOR_Unknown -}; - -bool amdgpu_atombios_has_dce_engine_info(struct amdgpu_device *adev) -{ - struct amdgpu_mode_info *mode_info = &adev->mode_info; - struct atom_context *ctx = mode_info->atom_context; - int index = GetIndexIntoMasterTable(DATA, Object_Header); - u16 size, data_offset; - u8 frev, crev; - ATOM_DISPLAY_OBJECT_PATH_TABLE *path_obj; - ATOM_OBJECT_HEADER *obj_header; - - if (!amdgpu_atom_parse_data_header(ctx, index, &size, &frev, &crev,
&data_offset))drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-17-return false; - -if (crev <2 ) -return false; - - obj_header = (ATOM_OBJECT_HEADER *) (ctx->bios + data_offset); - path_obj = (ATOM_DISPLAY_OBJECT_PATH_TABLE *) - (ctx->bios + data_offset + -le16_to_cpu (obj_header->usDisplayPathTableOffset)); - -if (path_obj->ucNumOfDispPath) -return true; -else -return false; -} - -bool amdgpu_atombios_get_connector_info_from_object_table(struct
amdgpu_device*adev)drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-20-{ - struct amdgpu_mode_info *mode_info = &adev->mode_info; - struct atom_context *ctx = mode_info->atom_context; - int index = GetIndexIntoMasterTable(DATA, Object_Header); - u16 size, data_offset; - u8 frev, crev; - ATOM_CONNECTOR_OBJECT_TABLE *con_obj; - ATOM_ENCODER_OBJECT_TABLE *enc_obj; - ATOM_OBJECT_TABLE *router_obj; - ATOM_DISPLAY_OBJECT_PATH_TABLE *path_obj; - ATOM_OBJECT_HEADER *obj_header; - int i, j, k, path_size, device_support; - int connector_type; - u16 conn_id, connector_object_id; - struct amdgpu_i2c_bus_rec ddc_bus; - struct amdgpu_router router; - struct amdgpu_gpio_rec gpio; - struct amdgpu_hpd hpd; - - if (!amdgpu_atom_parse_data_header(ctx, index, &size, &frev, &crev,
&data_offset))drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-31-return false; - -if (crev <2 ) -return false; - - obj_header = (ATOM_OBJECT_HEADER *) (ctx->bios + data_offset); - path_obj = (ATOM_DISPLAY_OBJECT_PATH_TABLE *) - (ctx->bios + data_offset + -le16_to_cpu (obj_header->usDisplayPathTableOffset)); - con_obj = (ATOM_CONNECTOR_OBJECT_TABLE *) - (ctx->bios + data_offset + -le16_to_cpu (obj_header->usConnectorObjectTableOffset)); - enc_obj = (ATOM_ENCODER_OBJECT_TABLE *) - (ctx->bios + data_offset + -le16_to_cpu (obj_header->usEncoderObjectTableOffset)); - router_obj = (ATOM_OBJECT_TABLE *) - (ctx->bios + data_offset + -le16_to_cpu (obj_header->usRouterObjectTableOffset)); - device_support =le16_to_cpu (obj_header->usDeviceSupport); - - path_size =0 ; -for (i =0 ; i < path_obj->ucNumOfDispPath; i++) { -uint8_t *addr = (uint8_t *) path_obj->asDispPath; -ATOM_DISPLAY_OBJECT_PATH *path; - addr += path_size; - path = (ATOM_DISPLAY_OBJECT_PATH *) addr; - path_size +=le16_to_cpu (path->usSize); - -if (device_support &le16_to_cpu (path->usDeviceTag)) { - uint8_t con_obj_id = - (le16_to_cpu(path->usConnObjectId) &
OBJECT_ID_MASK)drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-10- >> OBJECT_ID_SHIFT; - -/* Skip TV/CV support */ -if ((le16_to_cpu (path->usDeviceTag) == -ATOM_DEVICE_TV1_SUPPORT ) || - (le16_to_cpu (path->usDeviceTag) == -ATOM_DEVICE_CV_SUPPORT )) -continue ; - - if (con_obj_id >=
ARRAY_SIZE(object_connector_convert)) {
- DRM_ERROR("invalidcon_obj_id%d for device
tag 0x%04x\n",
-con_obj_id, le16_to_cpu(path-Quoted 1 line
usDeviceTag));
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-8-continue ; - } - - connector_type = - object_connector_convert[con_obj_id]; - connector_object_id = con_obj_id; - - if (connector_type ==
DRM_MODE_CONNECTOR_Unknown)drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-8-continue ; - - router.ddc_valid = false; - router.cd_valid = false; -for (j =0 ; j < ((le16_to_cpu (path->usSize) -8 ) /2 ); j++) { -uint8_t grph_obj_type = - (le16_to_cpu (path->usGraphicObjIds[j]) & - OBJECT_TYPE_MASK) >>
OBJECT_TYPE_SHIFT;drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-2- - if (grph_obj_type ==
GRAPH_OBJECT_TYPE_ENCODER) {
- for (k = 0; k < enc_obj-Quoted 1 line
ucNumberOfObjects; k++) {
- u16
encoder_obj=le16_to_cpu(enc_obj->asObjects[k].usObjectID);
- if (le16_to_cpu(path-Quoted 1 line
usGraphicObjIds[j]) ==
encoder_obj) {-
ATOM_COMMON_RECORD_HEADER*record =
(ATOM_COMMON_RECORD_HEADER*)
- (ctx->bios+data_offset+
-le16_to_cpu(enc_obj->asObjects[k].usRecordOffset));drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-4-ATOM_ENCODER_CAP_RECORD *cap_record; -u16 caps =0 ; - - while (record-Quoted 1 line
ucRecordSize > 0 &&
- record-
Quoted 1 line
ucRecordType > 0 &&
- record-
Quoted 1 line
ucRecordType <=
ATOM_MAX_OBJECT_RECORD_NUMBER) {- switch (record-
Quoted 1 line
ucRecordType) {
- case
ATOM_ENCODER_CAP_RECORD_TYPE:drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-3- cap_record =(ATOM_ENCODER_CAP_RECORD *) - record; - caps =
le16_to_cpu(cap_record->usEncoderCap);drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-3-break ; - } - record =(
ATOM_COMMON_RECORD_HEADER*)
- ((char
*)record +record->ucRecordSize);drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-7- } -amdgpu_display_add_encoder (adev, encoder_obj, -le16_to_cpu (path->usDeviceTag), - caps); - } - } - } else if (grph_obj_type ==
GRAPH_OBJECT_TYPE_ROUTER) {
- for (k = 0; k < router_obj-Quoted 1 line
ucNumberOfObjects; k++) {
- u16
router_obj_id=le16_to_cpu(router_obj->asObjects[k].usObjectID);
- if (le16_to_cpu(path-Quoted 1 line
usGraphicObjIds[j]) ==
router_obj_id) {-
ATOM_COMMON_RECORD_HEADER*record =
(ATOM_COMMON_RECORD_HEADER*)
- (ctx->bios+data_offset+
-le16_to_cpu(router_obj->asObjects[k].usRecordOffset));
-ATOM_I2C_RECORD*i2c_record;drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-6-ATOM_I2C_ID_CONFIG_ACCESS *i2c_config; -ATOM_ROUTER_DDC_PATH_SELECT_RECORD *ddc_path; -ATOM_ROUTER_DATA_CLOCK_PATH_SELECT_RECORD *cd_path; -ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT *router_src_dst_table = - (ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT *) - (ctx->bios +
data_offset+
-le16_to_cpu(router_obj->asObjects[k].usSrcDstTableOffset));
- u8*num_dst_objs=
(u8 *)
- ((u8
*)router_src_dst_table + 1 +
-
(router_src_dst_table->ucNumberOfSrc* 2));
- u16*dst_objs= (u16
*)(num_dst_objs + 1);drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-3-int enum_id; - - router.router_id =
router_obj_id;
- for (enum_id= 0;enum_id< (*num_dst_objs); enum_id++) {
- if
(le16_to_cpu(path->usConnObjectId)==
-le16_to_cpu(dst_objs[enum_id]))drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-4-break ; - } - - while (record-Quoted 1 line
ucRecordSize > 0 &&
- record-
Quoted 1 line
ucRecordType > 0 &&
- record-
Quoted 1 line
ucRecordType <=
ATOM_MAX_OBJECT_RECORD_NUMBER) {- switch (record-
Quoted 1 line
ucRecordType) {
- case
ATOM_I2C_RECORD_TYPE:drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-13- i2c_record = - (ATOM_I2C_RECORD *) - record; - i2c_config = - (ATOM_I2C_ID_CONFIG_ACCESS *) - &i2c_record->sucI2cId; - router.i2c_info = -amdgpu_atombios_lookup_i2c_gpio (adev, - i2c_config-> - ucAccess); - router.i2c_addr = i2c_record->ucI2CAddr >>1 ; -break ; - case
ATOM_ROUTER_DDC_PATH_SELECT_RECORD_TYPE:drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-8- ddc_path = (ATOM_ROUTER_DDC_PATH_SELECT_RECORD *) - record; - router.ddc_valid = true; - router.ddc_mux_type = ddc_path->ucMuxType; - router.ddc_mux_control_pin = ddc_path->ucMuxControlPin; - router.ddc_mux_state = ddc_path->ucMuxState[enum_id]; -break ; - case
ATOM_ROUTER_DATA_CLOCK_PATH_SELECT_RECORD_TYPE:drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-9- cd_path = (ATOM_ROUTER_DATA_CLOCK_PATH_SELECT_RECORD *) - record; - router.cd_valid = true; - router.cd_mux_type = cd_path->ucMuxType; - router.cd_mux_control_pin = cd_path->ucMuxControlPin; - router.cd_mux_state = cd_path->ucMuxState[enum_id]; -break ; - } - record =(
ATOM_COMMON_RECORD_HEADER*)
- ((char
*)record +record->ucRecordSize);drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-11- } - } - } - } - } - -/* look up gpio for ddc, hpd */ - ddc_bus.valid = false; - hpd.hpd =AMDGPU_HPD_NONE ; - if ((le16_to_cpu(path->usDeviceTag) & - (ATOM_DEVICE_TV_SUPPORT |
ATOM_DEVICE_CV_SUPPORT)) == 0) {
- for (j = 0; j <con_obj->ucNumberOfObjects; j++)
{
- if (le16_to_cpu(path->usConnObjectId)
==drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-5- le16_to_cpu(con_obj->asObjects[j]. - usObjectID)) { -ATOM_COMMON_RECORD_HEADER - *record = -(
ATOM_COMMON_RECORD_HEADERdrivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-5- *) - (ctx->bios + data_offset + - le16_to_cpu(con_obj-> - asObjects[j]. -usRecordOffset));
-ATOM_I2C_RECORD*i2c_record;
-ATOM_HPD_INT_RECORD*hpd_record;drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-3-ATOM_I2C_ID_CONFIG_ACCESS *i2c_config; - - while (record->ucRecordSize >0 &&
-record->ucRecordType> 0
&&
-record->ucRecordType<=ATOM_MAX_OBJECT_RECORD_NUMBER) {
- switch (record-Quoted 1 line
ucRecordType) {
- case
ATOM_I2C_RECORD_TYPE:drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-2- i2c_record = -(
ATOM_I2C_RECORD*)drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-5- record; - i2c_config = - (ATOM_I2C_ID_CONFIG_ACCESS *) - &i2c_record->sucI2cId; - ddc_bus =amdgpu_atombios_lookup_i2c_gpio(adev,
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-4- i2c_config-> - ucAccess); -break ; - case
ATOM_HPD_INT_RECORD_TYPE:drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-4- hpd_record = - (ATOM_HPD_INT_RECORD *) - record; - gpio =amdgpu_atombios_lookup_gpio(adev,
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-2- hpd_record->ucHPDIntGPIOID); - hpd =
amdgpu_atombios_get_hpd_info_from_gpio(adev, &gpio);drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-5- hpd.plugged_state = hpd_record->ucPlugged_PinState; -break ; - } - record = -(
ATOM_COMMON_RECORD_HEADERdrivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-18- *) ((char *)record - + - record-> - ucRecordSize); - } -break ; - } - } - } - -/* needed for aux chan transactions */ - ddc_bus.hpd = hpd.hpd; - - conn_id =le16_to_cpu (path->usConnObjectId); - - amdgpu_display_add_connector(adev, - conn_id, - le16_to_cpu(path-Quoted 1 line
usDeviceTag),
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +0
-30- connector_type, &ddc_bus, - connector_object_id, - &hpd, - &router); - - } - } - -amdgpu_link_encoder_connector (adev_to_drm (adev)); - -return true; -} -union firmware_info {ATOM_FIRMWARE_INFO info;ATOM_FIRMWARE_INFO_V1_2 info_12;@@ -1567,23 +1176,6 @@ bool amdgpu_atombios_has_gpu_virtualization_table(struct amdgpu_device *adev) return false; } -void amdgpu_atombios_scratch_regs_lock (struct amdgpu_device *adev,bool lock) -{ -uint32_t bios_6_scratch; - - bios_6_scratch =RREG32 (adev->bios_scratch_reg_offset +6 ); - -if (lock) { - bios_6_scratch |=ATOM_S6_CRITICAL_STATE ; - bios_6_scratch &= ~ATOM_S6_ACC_MODE ; - }else { - bios_6_scratch &= ~ATOM_S6_CRITICAL_STATE ; - bios_6_scratch |=ATOM_S6_ACC_MODE ; - } - -WREG32 (adev->bios_scratch_reg_offset +6 , bios_6_scratch); -} - static void amdgpu_atombios_scratch_regs_init(struct amdgpu_device *adev){ uint32_t bios_2_scratch, bios_6_scratch;drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h +0
-8@@ -129,19 +129,11 @@ struct atom_voltage_table {struct atom_voltage_table_entry entries[MAX_VOLTAGE_ENTRIES ]; }; -struct amdgpu_gpio_rec -amdgpu_atombios_lookup_gpio (struct amdgpu_device *adev, -u8 id); -struct amdgpu_i2c_bus_rec amdgpu_atombios_lookup_i2c_gpio (struct amdgpu_device *adev,uint8_t id);void amdgpu_atombios_i2c_init (struct amdgpu_device *adev);void amdgpu_atombios_oem_i2c_init (struct amdgpu_device *adev,u8 i2c_id); -bool amdgpu_atombios_has_dce_engine_info (struct amdgpu_device *adev); - -bool amdgpu_atombios_get_connector_info_from_object_table (struct amdgpu_device *adev); -int amdgpu_atombios_get_clock_info (struct amdgpu_device *adev);int
amdgpu_atombios_get_gfx_info(struct amdgpu_device *adev);drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h +0
-1@@ -192,7 +184,6 @@ int amdgpu_atombios_get_svi2_info(structamdgpu_device *adev, bool amdgpu_atombios_has_gpu_virtualization_table(struct amdgpu_device *adev); -void amdgpu_atombios_scratch_regs_lock (struct amdgpu_device *adev,bool lock);void amdgpu_atombios_scratch_regs_engine_hung(struct
amdgpu_device*adev,bool hung);void amdgpu_atombios_scratch_regs_set_backlight_level(struct
amdgpu_device
*adev,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-15@@ -1,2063 +0,0 @@ -/* -* Copyright 2007-8 Advanced Micro Devices, Inc. -* Copyright 2008 Red Hat Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- * Authors: Dave Airlie
- * Alex Deucher
- */drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-22- -#include <drm/display/drm_dp_helper.h> -#include <drm/drm_crtc_helper.h> -#include <drm/drm_edid.h> -#include <drm/drm_modeset_helper_vtables.h> -#include <drm/drm_probe_helper.h> -#include <drm/amdgpu_drm.h> -#include "amdgpu.h" -#include "atom.h" -#include "atombios_encoders.h" -#include "atombios_dp.h" -#include "amdgpu_connectors.h" -#include "amdgpu_i2c.h" -#include "amdgpu_display.h" - -#include <linux/pm_runtime.h> - -void amdgpu_connector_hotplug (struct drm_connector *connector) -{ -struct drm_device *dev = connector->dev; -struct amdgpu_device *adev =drm_to_adev (dev); - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-15- -/* bail if the connector does not have hpd pin, e.g., -* VGA, TV, etc. -*/ -if (amdgpu_connector->hpd.hpd ==AMDGPU_HPD_NONE ) -return ; - -amdgpu_display_hpd_set_polarity (adev, amdgpu_connector->hpd.hpd); - -/* if the connector is already off, don't turn it back on */ -if (connector->dpms !=DRM_MODE_DPMS_ON ) -return ; - -/* just deal with DP (not eDP) here. */ - if (connector->connector_type ==
DRM_MODE_CONNECTOR_DisplayPort) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-struct amdgpu_connector_atom_dig *dig_connector = - amdgpu_connector->con_priv; - -/* if existing sink type was not DP no need to retrain */ - if (dig_connector->dp_sink_type !=
CONNECTOR_OBJECT_ID_DISPLAYPORT)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4-return ; - -/* first get sink type as it may be reset after (un)plug */ - dig_connector->dp_sink_type =
amdgpu_atombios_dp_get_sinktype(amdgpu_connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4-/* don't do anything if sink is not display port, i.e., -* passive dp->(dvi|hdmi) adaptor -*/ - if (dig_connector->dp_sink_type ==
CONNECTOR_OBJECT_ID_DISPLAYPORT&&
- amdgpu_display_hpd_sense(adev, amdgpu_connector-Quoted 1 line
hpd.hpd) &&
-
amdgpu_atombios_dp_needs_link_train(amdgpu_connector))
{drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-/* Don't start link training before we have the DPCD */ -if (amdgpu_atombios_dp_get_dpcd (amdgpu_connector)) -return ; - -/* Turn the connector off and back on immediately, which
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-* will trigger link training -*/ - drm_helper_connector_dpms(connector,
DRM_MODE_DPMS_OFF);
- drm_helper_connector_dpms(connector,DRM_MODE_DPMS_ON);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5- } - } -} - -static void amdgpu_connector_property_change_mode(struct drm_encoder*encoder)
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-12-{ -struct drm_crtc *crtc = encoder->crtc; - -if (crtc && crtc->enabled) { -drm_crtc_helper_set_mode (crtc, &crtc->mode, - crtc->x, crtc->y, crtc->primary->fb); - } -} - -int amdgpu_connector_get_monitor_bpc (struct drm_connector *connector) -{ - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-24-struct amdgpu_connector_atom_dig *dig_connector; -int bpc =8 ; -unsigned int mode_clock, max_tmds_clock; - -switch (connector->connector_type) { -case DRM_MODE_CONNECTOR_DVII : -case DRM_MODE_CONNECTOR_HDMIB : -if (amdgpu_connector->use_digital) { -if (connector->display_info.is_hdmi) { -if (connector->display_info.bpc) - bpc = connector->display_info.bpc; - } - } -break ; -case DRM_MODE_CONNECTOR_DVID : -case DRM_MODE_CONNECTOR_HDMIA : -if (connector->display_info.is_hdmi) { -if (connector->display_info.bpc) - bpc = connector->display_info.bpc; - } -break ; -case DRM_MODE_CONNECTOR_DisplayPort: - dig_connector = amdgpu_connector->con_priv; - if ((dig_connector->dp_sink_type ==
CONNECTOR_OBJECT_ID_DISPLAYPORT) ||
- (dig_connector->dp_sink_type==CONNECTOR_OBJECT_ID_eDP) ||drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-11- connector->display_info.is_hdmi) { -if (connector->display_info.bpc) - bpc = connector->display_info.bpc; - } -break ; -case DRM_MODE_CONNECTOR_eDP: -case DRM_MODE_CONNECTOR_LVDS : -if (connector->display_info.bpc) - bpc = connector->display_info.bpc; -else { - const struct drm_connector_helper_funcs
*connector_funcs=drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- connector->helper_private; - struct drm_encoder *encoder = connector_funcs-Quoted 1 line
best_encoder(connector);- struct
amdgpu_encoder*amdgpu_encoder=to_amdgpu_encoder(encoder);
- structamdgpu_encoder_atom_dig*dig =amdgpu_encoder->enc_priv;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- - if (dig->lcd_misc &
ATOM_PANEL_MISC_V13_6BIT_PER_COLOR)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- bpc =6 ; - else if (dig->lcd_misc &
ATOM_PANEL_MISC_V13_8BIT_PER_COLOR)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-8- bpc =8 ; - } -break ; - } - -if (connector->display_info.is_hdmi) { -/* -* Pre DCE-8 hw can't handle > 12 bpc, and more than 12 bpc doesn't make
- * much sense without support for > 12 bpc framebuffers. RGB
4:4:4 atdrivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-* 12 bpc is always supported on hdmi deep color sinks, as this is -* required by the HDMI-1.3 spec. Clamp to a safe 12 bpc maximum.
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-*/ -if (bpc >12 ) { - DRM_DEBUG("%s: HDMI deep color %d bpcunsupported. Using 12 bpc.\n",
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5- connector->name, bpc); - bpc =12 ; - } - -/* Any defined maximum tmds clock limit we must not exceed? */
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-if (connector->display_info.max_tmds_clock >0 ) { -/* mode_clock is clock in kHz for mode to be modeset on this connector */
-mode_clock= amdgpu_connector-Quoted 1 line
pixelclock_for_modeset;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- -/* Maximum allowable input clock in kHz */ - max_tmds_clock = connector-Quoted 1 line
display_info.max_tmds_clock;
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- - DRM_DEBUG("%s: hdmi mode dotclock %d kHz, maxtmds input clock %d kHz.\n",
-connector->name,mode_clock,max_tmds_clock);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- -/* Check if bpc is within clock limit. Try to degrade gracefully otherwise */
- if ((bpc == 12) && (mode_clock* 3/2 >max_tmds_clock)) {
- if ((connector-Quoted 1 line
display_info.edid_hdmi_rgb444_dc_modes &
DRM_EDID_HDMI_DC_30) &&drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6- (mode_clock * 5/4 <= max_tmds_clock)) - bpc =10 ; - else - bpc =8 ; - - DRM_DEBUG("%s: HDMI deep color 12 bpcexceeds max tmds clock. Using %d bpc.\n",
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- connector->name, bpc); - } - - if ((bpc == 10) && (mode_clock * 5/4 >
max_tmds_clock)) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- bpc =8 ; - DRM_DEBUG("%s: HDMI deep color 10 bpcexceeds max tmds clock. Using %d bpc.\n",
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- connector->name, bpc); - } - }else if (bpc >8 ) { -/* max_tmds_clock missing, but hdmi spec mandates it for deep color. */
- DRM_DEBUG("%s: Required max tmds clock for HDMI
deep color missing. Using 8 bpc.\n",drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-7- connector->name); - bpc =8 ; - } - } - -if ((amdgpu_deep_color ==0 ) && (bpc >8 )) { - DRM_DEBUG("%s: Deep color disabled. Set amdgpu moduleparam deep_color=1 to enable.\n",
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-17- connector->name); - bpc =8 ; - } - -DRM_DEBUG ("%s: Display bpc=%d, returned bpc=%d\n" , - connector->name, connector->display_info.bpc, bpc); - -return bpc; -} - -static void -amdgpu_connector_update_scratch_regs (struct drm_connector *connector, -enum drm_connector_status status) -{ -struct drm_encoder *best_encoder; -struct drm_encoder *encoder; - const struct drm_connector_helper_funcs *connector_funcs = connector-Quoted 1 line
helper_private;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6-bool connected; - - best_encoder = connector_funcs->best_encoder (connector); - -drm_connector_for_each_possible_encoder (connector, encoder) { - if ((encoder == best_encoder) && (status ==
connector_status_connected))drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5- connected = true; - else - connected = false; - - amdgpu_atombios_encoder_set_bios_scratch_regs(connector,encoder, connected);
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-28- } -} - -static struct drm_encoder * -amdgpu_connector_find_encoder (struct drm_connector *connector, -int encoder_type) -{ -struct drm_encoder *encoder; - -drm_connector_for_each_possible_encoder (connector, encoder) { -if (encoder->encoder_type == encoder_type) -return encoder; - } - -return NULL ; -} - -static const struct drm_edid * -amdgpu_connector_get_hardcoded_edid (struct amdgpu_device *adev) -{ -return drm_edid_dup (adev->mode_info.bios_hardcoded_edid); -} - -static void amdgpu_connector_get_edid (struct drm_connector *connector) -{ -struct drm_device *dev = connector->dev; -struct amdgpu_device *adev =drm_to_adev (dev); - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-9- -if (amdgpu_connector->edid) -return ; - -/* on hw with routers, select right port */ -if (amdgpu_connector->router.ddc_valid) -amdgpu_i2c_router_select_ddc_port (amdgpu_connector); - - if ((amdgpu_connector_encoder_get_dp_bridge_encoder_id(connector)!=
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- ENCODER_OBJECT_ID_NONE) && - amdgpu_connector->ddc_bus->has_aux) { - amdgpu_connector->edid = drm_edid_read_ddc(connector, - &amdgpu_connector-Quoted 1 line
ddc_bus->aux.ddc);- } else if ((
connector->connector_type==DRM_MODE_CONNECTOR_DisplayPort) ||
- (connector->connector_type==DRM_MODE_CONNECTOR_eDP)) {
- structamdgpu_connector_atom_dig*dig = amdgpu_connector-Quoted 1 line
con_priv;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- - if ((dig->dp_sink_type ==
CONNECTOR_OBJECT_ID_DISPLAYPORT||drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- dig->dp_sink_type == CONNECTOR_OBJECT_ID_eDP) && - amdgpu_connector->ddc_bus->has_aux) - amdgpu_connector->edid =drm_edid_read_ddc(connector,
-&amdgpu_connector->ddc_bus->aux.ddc);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-else if (amdgpu_connector->ddc_bus) - amdgpu_connector->edid =drm_edid_read_ddc(connector,
-&amdgpu_connector->ddc_bus->adapter);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- }else if (amdgpu_connector->ddc_bus) { - amdgpu_connector->edid = drm_edid_read_ddc(connector, - &amdgpu_connector-Quoted 1 line
ddc_bus->adapter);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5- } - -if (!amdgpu_connector->edid) { -/* some laptops provide a hardcoded edid in rom for LCDs */ - if (((connector->connector_type ==
DRM_MODE_CONNECTOR_LVDS) ||
- (connector->connector_type==DRM_MODE_CONNECTOR_eDP))) {
-amdgpu_connector->edid=amdgpu_connector_get_hardcoded_edid(adev);
- drm_edid_connector_update(connector,amdgpu_connector->edid);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-7- } - } -} - -static int amdgpu_connector_ddc_get_modes (struct drm_connector *connector) -{ - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4-int ret; - -if (amdgpu_connector->edid) { - drm_edid_connector_update(connector, amdgpu_connector-Quoted 1 line
edid);
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-22- ret =drm_edid_connector_add_modes (connector); -return ret; - } -drm_edid_connector_update (connector,NULL ); -return 0 ; -} - -static struct drm_encoder * -amdgpu_connector_best_single_encoder (struct drm_connector *connector) -{ -struct drm_encoder *encoder; - -/* pick the first one */ -drm_connector_for_each_possible_encoder (connector, encoder) -return encoder; - -return NULL ; -} - -static void amdgpu_get_native_mode (struct drm_connector *connector) -{ - struct drm_encoder *encoder =
amdgpu_connector_best_single_encoder(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-23-struct amdgpu_encoder *amdgpu_encoder; - -if (encoder ==NULL ) -return ; - - amdgpu_encoder =to_amdgpu_encoder (encoder); - -if (!list_empty (&connector->probed_modes)) { -struct drm_display_mode *preferred_mode = -list_first_entry (&connector->probed_modes, - struct drm_display_mode, head); - - amdgpu_encoder->native_mode = *preferred_mode; - }else { - amdgpu_encoder->native_mode.clock =0 ; - } -} - -static struct drm_display_mode * -amdgpu_connector_lcd_native_mode (struct drm_encoder *encoder) -{ -struct drm_device *dev = encoder->dev; - struct amdgpu_encoder *amdgpu_encoder =
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-struct drm_display_mode *mode =NULL ; - struct drm_display_mode *native_mode = &amdgpu_encoder-Quoted 1 line
native_mode;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-9- -if (native_mode->hdisplay !=0 && - native_mode->vdisplay !=0 && - native_mode->clock !=0 ) { - mode =drm_mode_duplicate (dev, native_mode); -if (!mode) -return NULL ; - - mode->type = DRM_MODE_TYPE_PREFERRED |
DRM_MODE_TYPE_DRIVER;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-drm_mode_set_name (mode); - - DRM_DEBUG_KMS("Adding native panel mode %s\n", mode-Quoted 1 line
name);
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-10- }else if (native_mode->hdisplay !=0 && - native_mode->vdisplay !=0 ) { -/* mac laptops without an edid */ -/* Note that this is not necessarily the exact panel mode, -* but an approximation based on the cvt formula. For these -* systems we should ideally read the mode info out of the -* registers or add a mode table, but this works and is much -* simpler. -*/ - mode = drm_cvt_mode(dev, native_mode->hdisplay,
native_mode->vdisplay, 60, true, false, false);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4-if (!mode) -return NULL ; - - mode->type = DRM_MODE_TYPE_PREFERRED |
DRM_MODE_TYPE_DRIVER;
- DRM_DEBUG_KMS("Adding cvt approximation of native panel
mode %s\n",mode->name);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5- } -return mode; -} - -static void amdgpu_connector_add_common_modes(struct drm_encoder*encoder,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- struct drm_connector *connector) -{ -struct drm_device *dev = encoder->dev; - struct amdgpu_encoder *amdgpu_encoder =
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-struct drm_display_mode *mode =NULL ; - struct drm_display_mode *native_mode = &amdgpu_encoder-Quoted 1 line
native_mode;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-24-int i; -int n; -struct mode_size { -char name[DRM_DISPLAY_MODE_LEN ]; -int w; -int h; - } common_modes[] = { - {"640x480" ,640 ,480 }, - {"800x600" ,800 ,600 }, - {"1024x768" ,1024 ,768 }, - {"1280x720" ,1280 ,720 }, - {"1280x800" ,1280 ,800 }, - {"1280x1024" ,1280 ,1024 }, - {"1440x900" ,1440 ,900 }, - {"1680x1050" ,1680 ,1050 }, - {"1600x1200" ,1600 ,1200 }, - {"1920x1080" ,1920 ,1080 }, - {"1920x1200" ,1920 ,1200 } - }; - - n =ARRAY_SIZE (common_modes); - -for (i =0 ; i < n; i++) { -if (amdgpu_encoder->devices & (ATOM_DEVICE_TV_SUPPORT )){
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-if (common_modes[i].w >1024 || - common_modes[i].h >768 ) -continue ; - } - if (amdgpu_encoder->devices &(
ATOM_DEVICE_LCD_SUPPORT)) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-8-if (common_modes[i].w > native_mode->hdisplay || - common_modes[i].h > native_mode->vdisplay || - (common_modes[i].w == native_mode->hdisplay && - common_modes[i].h == native_mode->vdisplay)) -continue ; - } - - mode = drm_cvt_mode(dev, common_modes[i].w,common_modes[i].h, 60, false, false, false);
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-if (!mode) -return ; - strscpy(mode->name, common_modes[i].name,
DRM_DISPLAY_MODE_LEN);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-20- -drm_mode_probed_add (connector, mode); - } -} - -static int amdgpu_connector_set_property (struct drm_connector *connector, -struct drm_property *property, -uint64_t val) -{ -struct drm_device *dev = connector->dev; -struct amdgpu_device *adev =drm_to_adev (dev); -struct drm_encoder *encoder; -struct amdgpu_encoder *amdgpu_encoder; - -if (property == adev->mode_info.coherent_mode_property) { -struct amdgpu_encoder_atom_dig *dig; -bool new_coherent_mode; - -/* need to find digital encoder on connector */ - encoder = amdgpu_connector_find_encoder(connector,
DRM_MODE_ENCODER_TMDS);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-18-if (!encoder) -return 0 ; - - amdgpu_encoder =to_amdgpu_encoder (encoder); - -if (!amdgpu_encoder->enc_priv) -return 0 ; - - dig = amdgpu_encoder->enc_priv; - new_coherent_mode = val ? true : false; -if (dig->coherent_mode != new_coherent_mode) { - dig->coherent_mode = new_coherent_mode; -amdgpu_connector_property_change_mode (&amdgpu_encoder->base); - } - } - -if (property == adev->mode_info.audio_property) { - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-/* need to find digital encoder on connector */ - encoder = amdgpu_connector_find_encoder(connector,
DRM_MODE_ENCODER_TMDS);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-13-if (!encoder) -return 0 ; - - amdgpu_encoder =to_amdgpu_encoder (encoder); - -if (amdgpu_connector->audio != val) { - amdgpu_connector->audio = val; -amdgpu_connector_property_change_mode (&amdgpu_encoder->base); - } - } - -if (property == adev->mode_info.dither_property) { - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-/* need to find digital encoder on connector */ - encoder = amdgpu_connector_find_encoder(connector,
DRM_MODE_ENCODER_TMDS);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-14-if (!encoder) -return 0 ; - - amdgpu_encoder =to_amdgpu_encoder (encoder); - -if (amdgpu_connector->dither != val) { - amdgpu_connector->dither = val; -amdgpu_connector_property_change_mode (&amdgpu_encoder->base); - } - } - -if (property == adev->mode_info.underscan_property) { -/* need to find digital encoder on connector */ - encoder = amdgpu_connector_find_encoder(connector,
DRM_MODE_ENCODER_TMDS);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-14-if (!encoder) -return 0 ; - - amdgpu_encoder =to_amdgpu_encoder (encoder); - -if (amdgpu_encoder->underscan_type != val) { - amdgpu_encoder->underscan_type = val; -amdgpu_connector_property_change_mode (&amdgpu_encoder->base); - } - } - -if (property == adev->mode_info.underscan_hborder_property) { -/* need to find digital encoder on connector */ - encoder = amdgpu_connector_find_encoder(connector,
DRM_MODE_ENCODER_TMDS);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-14-if (!encoder) -return 0 ; - - amdgpu_encoder =to_amdgpu_encoder (encoder); - -if (amdgpu_encoder->underscan_hborder != val) { - amdgpu_encoder->underscan_hborder = val; -amdgpu_connector_property_change_mode (&amdgpu_encoder->base); - } - } - -if (property == adev->mode_info.underscan_vborder_property) { -/* need to find digital encoder on connector */ - encoder = amdgpu_connector_find_encoder(connector,
DRM_MODE_ENCODER_TMDS);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-26-if (!encoder) -return 0 ; - - amdgpu_encoder =to_amdgpu_encoder (encoder); - -if (amdgpu_encoder->underscan_vborder != val) { - amdgpu_encoder->underscan_vborder = val; -amdgpu_connector_property_change_mode (&amdgpu_encoder->base); - } - } - -if (property == adev->mode_info.load_detect_property) { -struct amdgpu_connector *amdgpu_connector = -to_amdgpu_connector (connector); - -if (val ==0 ) - amdgpu_connector->dac_load_detect = false; -else - amdgpu_connector->dac_load_detect = true; - } - -if (property == dev->mode_config.scaling_mode_property) { -enum amdgpu_rmx_type rmx_type; - -if (connector->encoder) { - amdgpu_encoder = to_amdgpu_encoder(connector-Quoted 1 line
encoder);
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- }else { - const struct drm_connector_helper_funcs
*connector_funcs=connector->helper_private;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- - amdgpu_encoder =to_amdgpu_encoder(connector_funcs->best_encoder(connector));
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-39- } - -switch (val) { -default : -case DRM_MODE_SCALE_NONE : - rmx_type =RMX_OFF ; -break ; -case DRM_MODE_SCALE_CENTER : - rmx_type =RMX_CENTER ; -break ; -case DRM_MODE_SCALE_ASPECT : - rmx_type =RMX_ASPECT ; -break ; -case DRM_MODE_SCALE_FULLSCREEN : - rmx_type =RMX_FULL ; -break ; - } - -if (amdgpu_encoder->rmx_type == rmx_type) -return 0 ; - -if ((rmx_type !=DRM_MODE_SCALE_NONE ) && - (amdgpu_encoder->native_mode.clock ==0 )) -return 0 ; - - amdgpu_encoder->rmx_type = rmx_type; - -amdgpu_connector_property_change_mode (&amdgpu_encoder->base); - } - -return 0 ; -} - -static void -amdgpu_connector_fixup_lcd_native_mode (struct drm_encoder *encoder, -struct drm_connector *connector) -{ -struct amdgpu_encoder *amdgpu_encoder =to_amdgpu_encoder (encoder); - struct drm_display_mode *native_mode = &amdgpu_encoder-Quoted 1 line
native_mode;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-14-struct drm_display_mode *t, *mode; - -/* If the EDID preferred mode doesn't match the native mode, use it */ -list_for_each_entry_safe (mode, t, &connector->probed_modes, head) { -if (mode->type &DRM_MODE_TYPE_PREFERRED ) { -if (mode->hdisplay != native_mode->hdisplay || - mode->vdisplay != native_mode->vdisplay) -drm_mode_copy (native_mode, mode); - } - } - -/* Try to get native mode details from EDID if necessary */ -if (!native_mode->clock) { - list_for_each_entry_safe(mode, t, &connector->probed_modes,head) {
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4-if (mode->hdisplay == native_mode->hdisplay && - mode->vdisplay == native_mode->vdisplay) { -drm_mode_copy (native_mode, mode); - drm_mode_set_crtcinfo(native_mode,
CRTC_INTERLACE_HALVE_V);
- DRM_DEBUG_KMS("Determined LVDS native
mode details from EDID\n");drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-7-break ; - } - } - } - -if (!native_mode->clock) { - DRM_DEBUG_KMS("No LVDS native mode details, disablingRMX\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-16- amdgpu_encoder->rmx_type =RMX_OFF ; - } -} - -static int amdgpu_connector_lvds_get_modes (struct drm_connector *connector) -{ -struct drm_encoder *encoder; -int ret =0 ; -struct drm_display_mode *mode; - -amdgpu_connector_get_edid (connector); - ret =amdgpu_connector_ddc_get_modes (connector); -if (ret >0 ) { - encoder =amdgpu_connector_best_single_encoder (connector); -if (encoder) { - amdgpu_connector_fixup_lcd_native_mode(encoder,connector);
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-/* add scaled modes */ - amdgpu_connector_add_common_modes(encoder,connector);
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-24- } -return ret; - } - - encoder =amdgpu_connector_best_single_encoder (connector); -if (!encoder) -return 0 ; - -/* we have no EDID modes */ - mode =amdgpu_connector_lcd_native_mode (encoder); -if (mode) { - ret =1 ; -drm_mode_probed_add (connector, mode); -/* add the width/height from vbios tables if available */ - connector->display_info.width_mm = mode->width_mm; - connector->display_info.height_mm = mode->height_mm; -/* add scaled modes */ -amdgpu_connector_add_common_modes (encoder, connector); - } - -return ret; -} - -static enum drm_mode_status amdgpu_connector_lvds_mode_valid(struct
drm_connector*connector,
- const structdrm_display_mode
*mode)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-{ - struct drm_encoder *encoder =
amdgpu_connector_best_single_encoder(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6- -if ((mode->hdisplay <320 ) || (mode->vdisplay <240 )) -return MODE_PANEL ; - -if (encoder) { - struct amdgpu_encoder *amdgpu_encoder =
to_amdgpu_encoder(encoder);
- structdrm_display_mode*native_mode= &amdgpu_encoder-Quoted 1 line
native_mode;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- -/* AVIVO hardware supports downscaling modes larger than the panel
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-21-* to the panel size, but I'm not sure this is desirable. -*/ -if ((mode->hdisplay > native_mode->hdisplay) || - (mode->vdisplay > native_mode->vdisplay)) -return MODE_PANEL ; - -/* if scaling is disabled, block non-native modes */ -if (amdgpu_encoder->rmx_type ==RMX_OFF ) { -if ((mode->hdisplay != native_mode->hdisplay) || - (mode->vdisplay != native_mode->vdisplay)) -return MODE_PANEL ; - } - } - -return MODE_OK ; -} - -static enum drm_connector_status -amdgpu_connector_lvds_detect (struct drm_connector *connector,bool force) -{ - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);
- structdrm_encoder*encoder =amdgpu_connector_best_single_encoder(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-13-enum drm_connector_status ret = connector_status_disconnected; -int r; - -if (!drm_kms_helper_is_poll_worker ()) { - r =pm_runtime_get_sync (connector->dev->dev); -if (r <0 ) { -pm_runtime_put_autosuspend (connector->dev->dev); -return connector_status_disconnected; - } - } - -if (encoder) { - struct amdgpu_encoder *amdgpu_encoder =
to_amdgpu_encoder(encoder);
- structdrm_display_mode*native_mode= &amdgpu_encoder-Quoted 1 line
native_mode;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- -/* check if panel is valid */ - if (native_mode->hdisplay >= 320 && native_mode->vdisplay >=240)
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-21- ret = connector_status_connected; - - } - -/* check for edid as well */ -amdgpu_connector_get_edid (connector); -if (amdgpu_connector->edid) - ret = connector_status_connected; -/* check acpi lid status ??? */ - -amdgpu_connector_update_scratch_regs (connector, ret); - -if (!drm_kms_helper_is_poll_worker ()) -pm_runtime_put_autosuspend (connector->dev->dev); - -return ret; -} - -static void amdgpu_connector_unregister (struct drm_connector *connector) -{ - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- - if (amdgpu_connector->ddc_bus && amdgpu_connector->ddc_bus-Quoted 1 line
has_aux) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-8-drm_dp_aux_unregister (&amdgpu_connector->ddc_bus->aux); - amdgpu_connector->ddc_bus->has_aux = false; - } -} - -static void amdgpu_connector_destroy (struct drm_connector *connector) -{ - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-9- -drm_edid_free (amdgpu_connector->edid); -kfree (amdgpu_connector->con_priv); -drm_connector_unregister (connector); -drm_connector_cleanup (connector); -kfree (connector); -} - -static int amdgpu_connector_set_lcd_property(struct drm_connector*connector,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-15- struct drm_property *property, - uint64_t value) -{ -struct drm_device *dev = connector->dev; -struct amdgpu_encoder *amdgpu_encoder; -enum amdgpu_rmx_type rmx_type; - -DRM_DEBUG_KMS ("\n" ); -if (property != dev->mode_config.scaling_mode_property) -return 0 ; - -if (connector->encoder) - amdgpu_encoder =to_amdgpu_encoder (connector->encoder); -else { - const struct drm_connector_helper_funcs *connector_funcs =
connector->helper_private;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- - amdgpu_encoder = to_amdgpu_encoder(connector_funcs-Quoted 1 line
best_encoder(connector));drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-29- } - -switch (value) { -case DRM_MODE_SCALE_NONE : - rmx_type =RMX_OFF ; -break ; -case DRM_MODE_SCALE_CENTER : - rmx_type =RMX_CENTER ; -break ; -case DRM_MODE_SCALE_ASPECT : - rmx_type =RMX_ASPECT ; -break ; -default : -case DRM_MODE_SCALE_FULLSCREEN : - rmx_type =RMX_FULL ; -break ; - } - -if (amdgpu_encoder->rmx_type == rmx_type) -return 0 ; - - amdgpu_encoder->rmx_type = rmx_type; - -amdgpu_connector_property_change_mode (&amdgpu_encoder->base); -return 0 ; -} - - -static const struct drm_connector_helper_funcs
amdgpu_connector_lvds_helper_funcs= {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-26- .get_modes = amdgpu_connector_lvds_get_modes, - .mode_valid = amdgpu_connector_lvds_mode_valid, - .best_encoder = amdgpu_connector_best_single_encoder, -}; - -static const struct drm_connector_funcs amdgpu_connector_lvds_funcs = { - .dpms = drm_helper_connector_dpms, - .detect = amdgpu_connector_lvds_detect, - .fill_modes = drm_helper_probe_single_connector_modes, - .early_unregister = amdgpu_connector_unregister, - .destroy = amdgpu_connector_destroy, - .set_property = amdgpu_connector_set_lcd_property, -}; - -static int amdgpu_connector_vga_get_modes (struct drm_connector *connector) -{ -int ret; - -amdgpu_connector_get_edid (connector); - ret =amdgpu_connector_ddc_get_modes (connector); -amdgpu_get_native_mode (connector); - -return ret; -} - -static enum drm_mode_status amdgpu_connector_vga_mode_valid(struct
drm_connector*connector,
- const structdrm_display_mode
*mode)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-16-{ -struct drm_device *dev = connector->dev; -struct amdgpu_device *adev =drm_to_adev (dev); - -/* XXX check mode bandwidth */ - -if ((mode->clock /10 ) > adev->clock.max_pixel_clock) -return MODE_CLOCK_HIGH ; - -return MODE_OK ; -} - -static enum drm_connector_status -amdgpu_connector_vga_detect (struct drm_connector *connector,bool force) -{ - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-36-struct drm_encoder *encoder; -const struct drm_encoder_helper_funcs *encoder_funcs; -bool dret = false; -enum drm_connector_status ret = connector_status_disconnected; -int r; - -if (!drm_kms_helper_is_poll_worker ()) { - r =pm_runtime_get_sync (connector->dev->dev); -if (r <0 ) { -pm_runtime_put_autosuspend (connector->dev->dev); -return connector_status_disconnected; - } - } - - encoder =amdgpu_connector_best_single_encoder (connector); -if (!encoder) - ret = connector_status_disconnected; - -if (amdgpu_connector->ddc_bus) - dret =amdgpu_display_ddc_probe (amdgpu_connector, false); -if (dret) { - amdgpu_connector->detected_by_load = false; -drm_edid_free (amdgpu_connector->edid); - amdgpu_connector->edid =NULL ; -amdgpu_connector_get_edid (connector); - -if (!amdgpu_connector->edid) { -drm_err (connector->dev, -"%s: probed a monitor but no|invalid EDID\n" , - connector->name); - ret = connector_status_connected; - }else { - amdgpu_connector->use_digital = -drm_edid_is_digital (amdgpu_connector->edid); - -/* some oems have boards with separate digital and analog connectors
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-* with a shared ddc line (often vga + hdmi) -*/ - if (amdgpu_connector->use_digital &&
amdgpu_connector->shared_ddc) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-37-drm_edid_free (amdgpu_connector->edid); - amdgpu_connector->edid =NULL ; - ret = connector_status_disconnected; - }else { - ret = connector_status_connected; - } - } - }else { - -/* if we aren't forcing don't do destructive polling */ -if (!force) { -/* only return the previous status if we last -* detected a monitor via load. -*/ -if (amdgpu_connector->detected_by_load) - ret = connector->status; - goto out; - } - -if (amdgpu_connector->dac_load_detect && encoder) { - encoder_funcs = encoder->helper_private; - ret = encoder_funcs->detect (encoder, connector); -if (ret != connector_status_disconnected) - amdgpu_connector->detected_by_load = true; - } - } - -amdgpu_connector_update_scratch_regs (connector, ret); - -out: -if (!drm_kms_helper_is_poll_worker ()) -pm_runtime_put_autosuspend (connector->dev->dev); - -return ret; -} - -static const struct drm_connector_helper_funcs
amdgpu_connector_vga_helper_funcs= {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-16- .get_modes = amdgpu_connector_vga_get_modes, - .mode_valid = amdgpu_connector_vga_mode_valid, - .best_encoder = amdgpu_connector_best_single_encoder, -}; - -static const struct drm_connector_funcs amdgpu_connector_vga_funcs = { - .dpms = drm_helper_connector_dpms, - .detect = amdgpu_connector_vga_detect, - .fill_modes = drm_helper_probe_single_connector_modes, - .early_unregister = amdgpu_connector_unregister, - .destroy = amdgpu_connector_destroy, - .set_property = amdgpu_connector_set_property, -}; - -static bool -amdgpu_connector_check_hpd_status_unchanged(struct drm_connector*connector)
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4-{ -struct drm_device *dev = connector->dev; -struct amdgpu_device *adev =drm_to_adev (dev); - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4-enum drm_connector_status status; - -if (amdgpu_connector->hpd.hpd !=AMDGPU_HPD_NONE ) { - if (amdgpu_display_hpd_sense(adev, amdgpu_connector-Quoted 1 line
hpd.hpd))
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-13- status = connector_status_connected; - else - status = connector_status_disconnected; -if (connector->status == status) -return true; - } - -return false; -} - -static void amdgpu_connector_shared_ddc (enum drm_connector_status *status, -struct drm_connector *connector, - struct amdgpu_connector
*amdgpu_connector)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-8-{ - struct drm_connector *list_connector; - struct drm_connector_list_iter iter; - struct amdgpu_connector *list_amdgpu_connector; - struct drm_device *dev = connector->dev; - struct amdgpu_device *adev = drm_to_adev(dev); - - if (amdgpu_connector->shared_ddc && *status ==
connector_status_connected) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6-drm_connector_list_iter_begin (dev, &iter); -drm_for_each_connector_iter (list_connector, - &iter) { -if (connector == list_connector) -continue ; - list_amdgpu_connector =
to_amdgpu_connector(list_connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-if (list_amdgpu_connector->shared_ddc && - list_amdgpu_connector->ddc_bus->rec.i2c_id == - amdgpu_connector->ddc_bus->rec.i2c_id) { -/* cases where both connectors are digital */ - if (list_connector->connector_type !=
DRM_MODE_CONNECTOR_VGA) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-/* hpd is our only option in this case */ - if (!amdgpu_display_hpd_sense(adev, -
amdgpu_connector->hpd.hpd)) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-drm_edid_free (amdgpu_connector->edid); - amdgpu_connector->edid =NULL;
- *status =connector_status_disconnected;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-25- } - } - } - } -drm_connector_list_iter_end (&iter); - } -} - -/* -* DVI is complicated -* Do a DDC probe, if DDC probe passes, get the full EDID so -* we can do analog/digital monitor detection at this point. -* If the monitor is an analog monitor or we got no DDC, -* we need to find the DAC encoder object for this connector. -* If we got no DDC, we do load detection on the DAC encoder object. -* If we got analog DDC or load detection passes on the DAC encoder -* we have to check if this analog encoder is shared with anyone else (TV) -* if its shared we have to set the other connector to disconnected. -*/ -static enum drm_connector_status -amdgpu_connector_dvi_detect (struct drm_connector *connector,bool force) -{ -struct drm_device *dev = connector->dev; -struct amdgpu_device *adev =drm_to_adev (dev); - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-19-const struct drm_encoder_helper_funcs *encoder_funcs; -int r; -enum drm_connector_status ret = connector_status_disconnected; -bool dret = false, broken_edid = false; - -if (!drm_kms_helper_is_poll_worker ()) { - r =pm_runtime_get_sync (connector->dev->dev); -if (r <0 ) { -pm_runtime_put_autosuspend (connector->dev->dev); -return connector_status_disconnected; - } - } - -if (amdgpu_connector->detected_hpd_without_ddc) { - force = true; - amdgpu_connector->detected_hpd_without_ddc = false; - } - - if (!force &&
amdgpu_connector_check_hpd_status_unchanged(connector)) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-14- ret = connector->status; - goto exit; - } - - if (amdgpu_connector->ddc_bus) { - dret = amdgpu_display_ddc_probe(amdgpu_connector, false); - - /* Sometimes the pins required for the DDC probe on DVI - * connectors don't make contact at the same time that the ones - * for HPD do. If the DDC probe fails even though we had an HPD - * signal, try again later - */ - if (!dret && !force && - amdgpu_display_hpd_sense(adev, amdgpu_connector-Quoted 1 line
hpd.hpd)) {
- DRM_DEBUG_KMS("hpd detected without ddc, retrying
in 1 second\n");drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-14- amdgpu_connector->detected_hpd_without_ddc = true; -schedule_delayed_work (&adev->hotplug_work, -msecs_to_jiffies (1000 )); - goto exit; - } - } -if (dret) { - amdgpu_connector->detected_by_load = false; -drm_edid_free (amdgpu_connector->edid); - amdgpu_connector->edid =NULL ; -amdgpu_connector_get_edid (connector); - -if (!amdgpu_connector->edid) { - drm_err(adev_to_drm(adev), "%s: probed a monitor butno|invalid EDID\n",
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-8- connector->name); - ret = connector_status_connected; - broken_edid = true;/* defer use_digital to later */ - }else { - amdgpu_connector->use_digital = -drm_edid_is_digital (amdgpu_connector->edid); - -/* some oems have boards with separate digital and analog connectors
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-* with a shared ddc line (often vga + hdmi) -*/ - if ((!amdgpu_connector->use_digital) &&
amdgpu_connector->shared_ddc) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-8-drm_edid_free (amdgpu_connector->edid); - amdgpu_connector->edid =NULL ; - ret = connector_status_disconnected; - }else { - ret = connector_status_connected; - } - -/* This gets complicated. We have boards with VGA + HDMI with a
- * shared DDC line and we have boards with DVI-D +
HDMI with a shared
- * DDC line. The latter is more complex because with
DVI<->HDMI adapters
- * you don't really know what's connected to which port
as both are digital.drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-*/ - amdgpu_connector_shared_ddc(&ret, connector,
amdgpu_connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- } - } - - if ((ret == connector_status_connected) && (amdgpu_connector-Quoted 1 line
use_digital== true))drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-22- goto out; - -/* DVI-D and HDMI-A are digital only */ -if ((connector->connector_type ==DRM_MODE_CONNECTOR_DVID ) || - (connector->connector_type ==DRM_MODE_CONNECTOR_HDMIA )) - goto out; - -/* if we aren't forcing don't do destructive polling */ -if (!force) { -/* only return the previous status if we last -* detected a monitor via load. -*/ -if (amdgpu_connector->detected_by_load) - ret = connector->status; - goto out; - } - -/* find analog encoder */ -if (amdgpu_connector->dac_load_detect) { -struct drm_encoder *encoder; - -drm_connector_for_each_possible_encoder (connector, encoder){
- if (encoder->encoder_type!=DRM_MODE_ENCODER_DAC&&
-encoder->encoder_type!=DRM_MODE_ENCODER_TVDAC)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-7-continue ; - - encoder_funcs = encoder->helper_private; -if (encoder_funcs->detect) { -if (!broken_edid) { -if (ret != connector_status_connected) { -/* deal with analog monitors without DDC */
- ret = encoder_funcs-Quoted 1 line
detect(encoder, connector);- if (ret ==
connector_status_connected) {
- amdgpu_connector-Quoted 1 line
use_digital= false;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- } - if (ret !=
connector_status_disconnected)
- amdgpu_connector-Quoted 1 line
detected_by_load= true;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- } - }else { -enum drm_connector_status lret; -/* assume digital unless load detected otherwise */
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- amdgpu_connector->use_digital = true; - lret = encoder_funcs->detect(encoder,connector);
- DRM_DEBUG_KMS("load_detect %x
returned: %x\n",
-encoder->encoder_type,
lret);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-if (lret == connector_status_connected) - amdgpu_connector-Quoted 1 line
use_digital= false;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-8- } -break ; - } - } - } - -out: -/* updated in get modes as well since we need to know if it's analog or digital */
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-14-amdgpu_connector_update_scratch_regs (connector, ret); - -exit: -if (!drm_kms_helper_is_poll_worker ()) -pm_runtime_put_autosuspend (connector->dev->dev); - -return ret; -} - -/* okay need to be smart in here about which encoder to pick */ -static struct drm_encoder * -amdgpu_connector_dvi_encoder (struct drm_connector *connector) -{ - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-struct drm_encoder *encoder; - -drm_connector_for_each_possible_encoder (connector, encoder) { -if (amdgpu_connector->use_digital == true) { - if (encoder->encoder_type ==
DRM_MODE_ENCODER_TMDS)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-return encoder; - }else { - if (encoder->encoder_type ==
DRM_MODE_ENCODER_DAC||
-encoder->encoder_type==DRM_MODE_ENCODER_TVDAC)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-17-return encoder; - } - } - -/* see if we have a default encoder TODO */ - -/* then check use digitial */ -/* pick the first one */ -drm_connector_for_each_possible_encoder (connector, encoder) -return encoder; - -return NULL ; -} - -static void amdgpu_connector_dvi_force (struct drm_connector *connector) -{ - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-9- -if (connector->force ==DRM_FORCE_ON ) - amdgpu_connector->use_digital = false; -if (connector->force ==DRM_FORCE_ON_DIGITAL ) - amdgpu_connector->use_digital = true; -} - -/** -* amdgpu_max_hdmi_pixel_clock - Return max supported HDMI (TMDS) pixel clock
- * @adev: pointer toamdgpu_device
- *
- * Return: maximum supported HDMI (TMDS) pixel clock in KHz.
- */drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-12-static int amdgpu_max_hdmi_pixel_clock (const struct amdgpu_device *adev) -{ -if (adev->asic_type >=CHIP_POLARIS10 ) -return 600000 ; -else if (adev->asic_type >=CHIP_TONGA ) -return 300000 ; -else -return 297000 ; -} - -/** -* amdgpu_connector_dvi_mode_valid - Validate a mode on DVI/HDMI connectors
- * @connector: DRM connector to validate the mode on
- * @mode: display mode to validate
- *
- * Validate the given display mode on DVI and HDMI connectors, including
- * analog signals on DVI-I.
- *
- * Return:drm_mode_statusindicating whether the mode is valid.
- */
-static enumdrm_mode_statusamdgpu_connector_dvi_mode_valid(structdrm_connector*connector,
- const structdrm_display_mode
*mode)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4-{ -struct drm_device *dev = connector->dev; -struct amdgpu_device *adev =drm_to_adev (dev); - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-14-const int max_hdmi_pixel_clock =amdgpu_max_hdmi_pixel_clock (adev); -const int max_dvi_single_link_pixel_clock =165000 ; -int max_digital_pixel_clock_khz; - -/* XXX check mode bandwidth */ - -if (amdgpu_connector->use_digital) { -switch (amdgpu_connector->connector_object_id) { -case CONNECTOR_OBJECT_ID_HDMI_TYPE_A : - max_digital_pixel_clock_khz = max_hdmi_pixel_clock; -break ; -case CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I : -case CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D : - max_digital_pixel_clock_khz =
max_dvi_single_link_pixel_clock;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-break ; -case CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I : -case CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D : -case CONNECTOR_OBJECT_ID_HDMI_TYPE_B : - max_digital_pixel_clock_khz =
max_dvi_single_link_pixel_clock* 2;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-24-break ; -default : -return MODE_BAD ; - } - -/* When the display EDID claims that it's an HDMI display, -* we use the HDMI encoder mode of the display HW, -* so we should verify against the max HDMI clock here. -*/ -if (connector->display_info.is_hdmi) - max_digital_pixel_clock_khz = max_hdmi_pixel_clock; - -if (mode->clock > max_digital_pixel_clock_khz) -return MODE_CLOCK_HIGH ; - } - -/* check against the max pixel clock */ -if ((mode->clock /10 ) > adev->clock.max_pixel_clock) -return MODE_CLOCK_HIGH ; - -return MODE_OK ; -} - -static const struct drm_connector_helper_funcs
amdgpu_connector_dvi_helper_funcs= {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-18- .get_modes = amdgpu_connector_vga_get_modes, - .mode_valid = amdgpu_connector_dvi_mode_valid, - .best_encoder = amdgpu_connector_dvi_encoder, -}; - -static const struct drm_connector_funcs amdgpu_connector_dvi_funcs = { - .dpms = drm_helper_connector_dpms, - .detect = amdgpu_connector_dvi_detect, - .fill_modes = drm_helper_probe_single_connector_modes, - .set_property = amdgpu_connector_set_property, - .early_unregister = amdgpu_connector_unregister, - .destroy = amdgpu_connector_destroy, - .force = amdgpu_connector_dvi_force, -}; - -static int amdgpu_connector_dp_get_modes (struct drm_connector *connector) -{ - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);
- structamdgpu_connector_atom_dig*amdgpu_dig_connector=amdgpu_connector->con_priv;
- structdrm_encoder*encoder =amdgpu_connector_best_single_encoder(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-7-int ret; - -if ((connector->connector_type == DRM_MODE_CONNECTOR_eDP) || - (connector->connector_type ==DRM_MODE_CONNECTOR_LVDS )) { -struct drm_display_mode *mode; - - if (connector->connector_type ==
DRM_MODE_CONNECTOR_eDP) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-if (!amdgpu_dig_connector->edp_on) - amdgpu_atombios_encoder_set_edp_panel_power(connector, -
ATOM_TRANSMITTER_ACTION_POWER_ON);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-amdgpu_connector_get_edid (connector); - ret =amdgpu_connector_ddc_get_modes (connector); -if (!amdgpu_dig_connector->edp_on) - amdgpu_atombios_encoder_set_edp_panel_power(connector, -
ATOM_TRANSMITTER_ACTION_POWER_OFF);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- }else { -/* need to setup ddc on the bridge */ - if(
amdgpu_connector_encoder_get_dp_bridge_encoder_id(connector)!=drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-27- ENCODER_OBJECT_ID_NONE) { -if (encoder) -amdgpu_atombios_encoder_setup_ext_encoder_ddc (encoder); - } -amdgpu_connector_get_edid (connector); - ret =amdgpu_connector_ddc_get_modes (connector); - } - -if (ret >0 ) { -if (encoder) { -amdgpu_connector_fixup_lcd_native_mode (encoder, connector); -/* add scaled modes */ -amdgpu_connector_add_common_modes (encoder, connector); - } -return ret; - } - -if (!encoder) -return 0 ; - -/* we have no EDID modes */ - mode =amdgpu_connector_lcd_native_mode (encoder); -if (mode) { - ret =1 ; -drm_mode_probed_add (connector, mode); -/* add the width/height from vbios tables if available */ - connector->display_info.width_mm = mode-Quoted 1 line
width_mm;-
connector->display_info.height_mm= mode-Quoted 1 line
height_mm;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-/* add scaled modes */ - amdgpu_connector_add_common_modes(encoder,connector);
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- } - }else { -/* need to setup ddc on the bridge */ - if(
amdgpu_connector_encoder_get_dp_bridge_encoder_id(connector)!=drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-14- ENCODER_OBJECT_ID_NONE) { -if (encoder) -amdgpu_atombios_encoder_setup_ext_encoder_ddc (encoder); - } -amdgpu_connector_get_edid (connector); - ret =amdgpu_connector_ddc_get_modes (connector); - -amdgpu_get_native_mode (connector); - } - -return ret; -} - -u16 amdgpu_connector_encoder_get_dp_bridge_encoder_id(struct
drm_connector*connector)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-20-{ -struct drm_encoder *encoder; -struct amdgpu_encoder *amdgpu_encoder; - -drm_connector_for_each_possible_encoder (connector, encoder) { - amdgpu_encoder =to_amdgpu_encoder (encoder); - -switch (amdgpu_encoder->encoder_id) { -case ENCODER_OBJECT_ID_TRAVIS : -case ENCODER_OBJECT_ID_NUTMEG : -return amdgpu_encoder->encoder_id; -default : -break ; - } - } - -return ENCODER_OBJECT_ID_NONE ; -} - -static bool amdgpu_connector_encoder_is_hbr2(struct drm_connector*connector)
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-8-{ -struct drm_encoder *encoder; -struct amdgpu_encoder *amdgpu_encoder; -bool found = false; - -drm_connector_for_each_possible_encoder (connector, encoder) { - amdgpu_encoder =to_amdgpu_encoder (encoder); - if (amdgpu_encoder->caps &
ATOM_ENCODER_CAP_RECORD_HBR2)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-25- found = true; - } - -return found; -} - -bool amdgpu_connector_is_dp12_capable (struct drm_connector *connector) -{ -struct drm_device *dev = connector->dev; -struct amdgpu_device *adev =drm_to_adev (dev); - -if ((adev->clock.default_dispclk >=53900 ) && -amdgpu_connector_encoder_is_hbr2 (connector)) { -return true; - } - -return false; -} - -static enum drm_connector_status -amdgpu_connector_dp_detect (struct drm_connector *connector,bool force) -{ -struct drm_device *dev = connector->dev; -struct amdgpu_device *adev =drm_to_adev (dev); - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-enum drm_connector_status ret = connector_status_disconnected; - struct amdgpu_connector_atom_dig *amdgpu_dig_connector =
amdgpu_connector->con_priv;
- structdrm_encoder*encoder =amdgpu_connector_best_single_encoder(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-11-int r; - -if (!drm_kms_helper_is_poll_worker ()) { - r =pm_runtime_get_sync (connector->dev->dev); -if (r <0 ) { -pm_runtime_put_autosuspend (connector->dev->dev); -return connector_status_disconnected; - } - } - - if (!force &&
amdgpu_connector_check_hpd_status_unchanged(connector)) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-11- ret = connector->status; - goto out; - } - -drm_edid_free (amdgpu_connector->edid); - amdgpu_connector->edid =NULL ; - -if ((connector->connector_type == DRM_MODE_CONNECTOR_eDP) || - (connector->connector_type ==DRM_MODE_CONNECTOR_LVDS )) { -if (encoder) { - struct amdgpu_encoder *amdgpu_encoder =
to_amdgpu_encoder(encoder);
- structdrm_display_mode*native_mode=&amdgpu_encoder->native_mode;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- -/* check if panel is valid */ - if (native_mode->hdisplay >= 320 && native_mode-Quoted 1 line
vdisplay >= 240)
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- ret = connector_status_connected; - } -/* eDP is always DP */ - amdgpu_dig_connector->dp_sink_type =
CONNECTOR_OBJECT_ID_DISPLAYPORT;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-if (!amdgpu_dig_connector->edp_on) - amdgpu_atombios_encoder_set_edp_panel_power(connector, -
ATOM_TRANSMITTER_ACTION_POWER_ON);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-if (!amdgpu_atombios_dp_get_dpcd (amdgpu_connector)) - ret = connector_status_connected; -if (!amdgpu_dig_connector->edp_on) - amdgpu_atombios_encoder_set_edp_panel_power(connector, -
ATOM_TRANSMITTER_ACTION_POWER_OFF);
- } else if
(amdgpu_connector_encoder_get_dp_bridge_encoder_id(connector)!=drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- ENCODER_OBJECT_ID_NONE) { -/* DP bridges are always DP */ - amdgpu_dig_connector->dp_sink_type =
CONNECTOR_OBJECT_ID_DISPLAYPORT;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-9-/* get the DPCD from the bridge */ -amdgpu_atombios_dp_get_dpcd (amdgpu_connector); - -if (encoder) { -/* setup ddc on the bridge */ -amdgpu_atombios_encoder_setup_ext_encoder_ddc (encoder); -/* bridge chips are always aux */ -/* try DDC */ - if (amdgpu_display_ddc_probe(amdgpu_connector,true))
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- ret = connector_status_connected; - else if (amdgpu_connector->dac_load_detect) { /* tryload detection */
- const structdrm_encoder_helper_funcs*encoder_funcs=encoder->helper_private;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- - ret = encoder_funcs->detect(encoder,connector);
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6- } - } - }else { - amdgpu_dig_connector->dp_sink_type = -amdgpu_atombios_dp_get_sinktype (amdgpu_connector); - if (amdgpu_display_hpd_sense(adev, amdgpu_connector-Quoted 1 line
hpd.hpd)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- ret = connector_status_connected; - if (amdgpu_dig_connector->dp_sink_type ==
CONNECTOR_OBJECT_ID_DISPLAYPORT)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-amdgpu_atombios_dp_get_dpcd (amdgpu_connector); - }else { - if (amdgpu_dig_connector->dp_sink_type ==
CONNECTOR_OBJECT_ID_DISPLAYPORT) {
- if
(!amdgpu_atombios_dp_get_dpcd(amdgpu_connector))drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- ret = connector_status_connected; - }else { -/* try non-aux ddc (DP to DVI/HDMI/etc. adapter) */
- if
(amdgpu_display_ddc_probe(amdgpu_connector,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-12- false)) - ret = connector_status_connected; - } - } - } - -amdgpu_connector_update_scratch_regs (connector, ret); -out: -if (!drm_kms_helper_is_poll_worker ()) -pm_runtime_put_autosuspend (connector->dev->dev); - - if (connector->connector_type ==
DRM_MODE_CONNECTOR_DisplayPort||drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- connector->connector_type == DRM_MODE_CONNECTOR_eDP) - drm_dp_set_subconnector_property(&amdgpu_connector-Quoted 1 line
base,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- ret, - amdgpu_dig_connector->dpcd, - amdgpu_dig_connector-Quoted 1 line
downstream_ports);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4-return ret; -} - -static enum drm_mode_status amdgpu_connector_dp_mode_valid(struct
drm_connector*connector,
- const structdrm_display_mode
*mode)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-{ - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);
- structamdgpu_connector_atom_dig*amdgpu_dig_connector=amdgpu_connector->con_priv;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6- -/* XXX check mode bandwidth */ - -if ((connector->connector_type == DRM_MODE_CONNECTOR_eDP) || - (connector->connector_type ==DRM_MODE_CONNECTOR_LVDS )) { - struct drm_encoder *encoder =
amdgpu_connector_best_single_encoder(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6- -if ((mode->hdisplay <320 ) || (mode->vdisplay <240 )) -return MODE_PANEL ; - -if (encoder) { - struct amdgpu_encoder *amdgpu_encoder =
to_amdgpu_encoder(encoder);
- structdrm_display_mode*native_mode=&amdgpu_encoder->native_mode;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- -/* AVIVO hardware supports downscaling modes larger than the panel
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-9-* to the panel size, but I'm not sure this is desirable. -*/ -if ((mode->hdisplay > native_mode->hdisplay) || - (mode->vdisplay > native_mode->vdisplay)) -return MODE_PANEL ; - -/* if scaling is disabled, block non-native modes */ -if (amdgpu_encoder->rmx_type ==RMX_OFF ) { - if ((mode->hdisplay != native_mode->hdisplay)||
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-7- (mode->vdisplay != native_mode->vdisplay)) -return MODE_PANEL ; - } - } -return MODE_OK ; - }else { - if ((amdgpu_dig_connector->dp_sink_type ==
CONNECTOR_OBJECT_ID_DISPLAYPORT) ||
- (amdgpu_dig_connector->dp_sink_type==CONNECTOR_OBJECT_ID_eDP)) {
- returnamdgpu_atombios_dp_mode_valid_helper(connector, mode);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-19- }else { -if (connector->display_info.is_hdmi) { -/* HDMI 1.3+ supports max clock of 340 Mhz */ -if (mode->clock >340000 ) -return MODE_CLOCK_HIGH ; - }else { -if (mode->clock >165000 ) -return MODE_CLOCK_HIGH ; - } - } - } - -return MODE_OK ; -} - -static int -amdgpu_connector_late_register (struct drm_connector *connector) -{ - struct amdgpu_connector *amdgpu_connector =
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4-int r =0 ; - -if (amdgpu_connector->ddc_bus->has_aux) { - amdgpu_connector->ddc_bus->aux.dev = amdgpu_connector-Quoted 1 line
base.kdev;
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-7- r =drm_dp_aux_register (&amdgpu_connector->ddc_bus->aux); - } - -return r; -} - -static const struct drm_connector_helper_funcs
amdgpu_connector_dp_helper_funcs= {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-64- .get_modes = amdgpu_connector_dp_get_modes, - .mode_valid = amdgpu_connector_dp_mode_valid, - .best_encoder = amdgpu_connector_dvi_encoder, -}; - -static const struct drm_connector_funcs amdgpu_connector_dp_funcs = { - .dpms = drm_helper_connector_dpms, - .detect = amdgpu_connector_dp_detect, - .fill_modes = drm_helper_probe_single_connector_modes, - .set_property = amdgpu_connector_set_property, - .early_unregister = amdgpu_connector_unregister, - .destroy = amdgpu_connector_destroy, - .force = amdgpu_connector_dvi_force, - .late_register = amdgpu_connector_late_register, -}; - -static const struct drm_connector_funcs amdgpu_connector_edp_funcs = { - .dpms = drm_helper_connector_dpms, - .detect = amdgpu_connector_dp_detect, - .fill_modes = drm_helper_probe_single_connector_modes, - .set_property = amdgpu_connector_set_lcd_property, - .early_unregister = amdgpu_connector_unregister, - .destroy = amdgpu_connector_destroy, - .force = amdgpu_connector_dvi_force, - .late_register = amdgpu_connector_late_register, -}; - -void -amdgpu_connector_add(struct amdgpu_device *adev, - uint32_t connector_id, - uint32_t supported_device, - int connector_type, - struct amdgpu_i2c_bus_rec *i2c_bus, - uint16_t connector_object_id, - struct amdgpu_hpd *hpd, - struct amdgpu_router *router) -{ - struct drm_device *dev = adev_to_drm(adev); - struct drm_connector *connector; - struct drm_connector_list_iter iter; - struct amdgpu_connector *amdgpu_connector; - struct amdgpu_connector_atom_dig *amdgpu_dig_connector; - struct drm_encoder *encoder; - struct amdgpu_encoder *amdgpu_encoder; - struct i2c_adapter *ddc = NULL; - uint32_t subpixel_order = SubPixelNone; - bool shared_ddc = false; - bool is_dp_bridge = false; - bool has_aux = false; - - if (connector_type == DRM_MODE_CONNECTOR_Unknown) - return; - - /* see if we already added it */ - drm_connector_list_iter_begin(dev, &iter); - drm_for_each_connector_iter(connector, &iter) { - amdgpu_connector = to_amdgpu_connector(connector); - if (amdgpu_connector->connector_id == connector_id) { - amdgpu_connector->devices |= supported_device; - drm_connector_list_iter_end(&iter); - return; - } - if (amdgpu_connector->ddc_bus && i2c_bus->valid) { - if (amdgpu_connector->ddc_bus->rec.i2c_id == i2c_bus-Quoted 1 line
i2c_id) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- amdgpu_connector->shared_ddc = true; - shared_ddc = true; - } - if (amdgpu_connector->router_bus && router-Quoted 1 line
ddc_valid&&- (
amdgpu_connector->router.router_id== router-Quoted 1 line
router_id)) {drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-37- amdgpu_connector->shared_ddc = false; - shared_ddc = false; - } - } - } -drm_connector_list_iter_end (&iter); - -/* check if it's a dp bridge */ -list_for_each_entry (encoder, &dev->mode_config.encoder_list, head) { - amdgpu_encoder =to_amdgpu_encoder (encoder); -if (amdgpu_encoder->devices & supported_device) { -switch (amdgpu_encoder->encoder_id) { -case ENCODER_OBJECT_ID_TRAVIS : -case ENCODER_OBJECT_ID_NUTMEG : - is_dp_bridge = true; -break ; -default : -break ; - } - } - } - - amdgpu_connector = kzalloc_obj(struct amdgpu_connector); -if (!amdgpu_connector) -return ; - - connector = &amdgpu_connector->base; - - amdgpu_connector->connector_id = connector_id; - amdgpu_connector->devices = supported_device; - amdgpu_connector->shared_ddc = shared_ddc; - amdgpu_connector->connector_object_id = connector_object_id; - amdgpu_connector->hpd = *hpd; - - amdgpu_connector->router = *router; -if (router->ddc_valid || router->cd_valid) { - amdgpu_connector->router_bus = amdgpu_i2c_lookup(adev,
&router->i2c_info);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-if (!amdgpu_connector->router_bus) - drm_err(adev_to_drm(adev), - "Failed to assign router i2c bus! Check dmesgfor i2c errors.\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- } - -if (is_dp_bridge) { - amdgpu_dig_connector = kzalloc_obj(struct
amdgpu_connector_atom_dig);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-if (!amdgpu_dig_connector) - goto failed; - amdgpu_connector->con_priv = amdgpu_dig_connector; -if (i2c_bus->valid) { - amdgpu_connector->ddc_bus =
amdgpu_i2c_lookup(adev, i2c_bus);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6-if (amdgpu_connector->ddc_bus) { - has_aux = true; - ddc = &amdgpu_connector->ddc_bus->adapter; - }else { - drm_err(adev_to_drm(adev), - "DP: Failed to assign ddc bus! Checkdmesg for i2c errors.\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-7- } - } -switch (connector_type) { -case DRM_MODE_CONNECTOR_VGA : -case DRM_MODE_CONNECTOR_DVIA : -default : - drm_connector_init_with_ddc(dev,
&amdgpu_connector->base,
-&amdgpu_connector_dp_funcs,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- connector_type, - ddc); - drm_connector_helper_add(&amdgpu_connector-Quoted 1 line
base,
-
&amdgpu_connector_dp_helper_funcs);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- connector->interlace_allowed = true; - connector->doublescan_allowed = true; - amdgpu_connector->dac_load_detect = true; - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.load_detect_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 1); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- dev-
Quoted 1 line
mode_config.scaling_mode_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-8- DRM_MODE_SCALE_NONE); -break ; -case DRM_MODE_CONNECTOR_DVII : -case DRM_MODE_CONNECTOR_DVID : -case DRM_MODE_CONNECTOR_HDMIA : -case DRM_MODE_CONNECTOR_HDMIB : -case DRM_MODE_CONNECTOR_DisplayPort: - drm_connector_init_with_ddc(dev,
&amdgpu_connector->base,
-&amdgpu_connector_dp_funcs,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- connector_type, - ddc); - drm_connector_helper_add(&amdgpu_connector-Quoted 1 line
base,
-
&amdgpu_connector_dp_helper_funcs);
- drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- UNDERSCAN_OFF); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_hborder_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 0); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_vborder_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- 0); - - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- dev-
Quoted 1 line
mode_config.scaling_mode_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- DRM_MODE_SCALE_NONE); - - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.dither_property,
-
AMDGPU_FMT_DITHER_DISABLE);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- -if (amdgpu_audio !=0 ) { - drm_object_attach_property(&amdgpu_connector->base.base, - adev-Quoted 1 line
mode_info.audio_property,
-
AMDGPU_AUDIO_AUTO);
-amdgpu_connector->audio=AMDGPU_AUDIO_AUTO;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5- } - - subpixel_order = SubPixelHorizontalRGB; - connector->interlace_allowed = true; - if (connector_type ==
DRM_MODE_CONNECTOR_HDMIB)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-7- connector->doublescan_allowed = true; - else - connector->doublescan_allowed = false; -if (connector_type ==DRM_MODE_CONNECTOR_DVII ) { - amdgpu_connector->dac_load_detect = true; - drm_object_attach_property(&amdgpu_connector->base.base, - adev-Quoted 1 line
mode_info.load_detect_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6- 1); - } -break ; -case DRM_MODE_CONNECTOR_LVDS : -case DRM_MODE_CONNECTOR_eDP: - drm_connector_init_with_ddc(dev,
&amdgpu_connector->base,
-&amdgpu_connector_edp_funcs,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- connector_type, - ddc); - drm_connector_helper_add(&amdgpu_connector-Quoted 1 line
base,
-
&amdgpu_connector_dp_helper_funcs);
- drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- dev-
Quoted 1 line
mode_config.scaling_mode_property,
-
DRM_MODE_SCALE_FULLSCREEN);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-10- subpixel_order = SubPixelHorizontalRGB; - connector->interlace_allowed = false; - connector->doublescan_allowed = false; -break ; - } - }else { -switch (connector_type) { -case DRM_MODE_CONNECTOR_VGA : -if (i2c_bus->valid) { - amdgpu_connector->ddc_bus =
amdgpu_i2c_lookup(adev, i2c_bus);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-if (!amdgpu_connector->ddc_bus) - drm_err(adev_to_drm(adev), - "VGA: Failed to assign ddc bus!Check dmesg for i2c errors.\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-else - ddc = &amdgpu_connector->ddc_bus-Quoted 1 line
adapter;
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- } - drm_connector_init_with_ddc(dev,
&amdgpu_connector->base,
-&amdgpu_connector_vga_funcs,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- connector_type, - ddc); - drm_connector_helper_add(&amdgpu_connector-Quoted 1 line
base,
&amdgpu_connector_vga_helper_funcs);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- amdgpu_connector->dac_load_detect = true; - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.load_detect_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 1); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- dev-
Quoted 1 line
mode_config.scaling_mode_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-9- DRM_MODE_SCALE_NONE); -/* no HPD on analog connectors */ - amdgpu_connector->hpd.hpd =AMDGPU_HPD_NONE ; - connector->interlace_allowed = true; - connector->doublescan_allowed = true; -break ; -case DRM_MODE_CONNECTOR_DVIA : -if (i2c_bus->valid) { - amdgpu_connector->ddc_bus =
amdgpu_i2c_lookup(adev, i2c_bus);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-if (!amdgpu_connector->ddc_bus) - drm_err(adev_to_drm(adev), - "DVIA: Failed to assign ddc bus!Check dmesg for i2c errors.\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-else - ddc = &amdgpu_connector->ddc_bus-Quoted 1 line
adapter;
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- } - drm_connector_init_with_ddc(dev,
&amdgpu_connector->base,
-&amdgpu_connector_vga_funcs,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- connector_type, - ddc); - drm_connector_helper_add(&amdgpu_connector-Quoted 1 line
base,
&amdgpu_connector_vga_helper_funcs);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- amdgpu_connector->dac_load_detect = true; - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.load_detect_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 1); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- dev-
Quoted 1 line
mode_config.scaling_mode_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-9- DRM_MODE_SCALE_NONE); -/* no HPD on analog connectors */ - amdgpu_connector->hpd.hpd =AMDGPU_HPD_NONE ; - connector->interlace_allowed = true; - connector->doublescan_allowed = true; -break ; -case DRM_MODE_CONNECTOR_DVII : -case DRM_MODE_CONNECTOR_DVID : - amdgpu_dig_connector = kzalloc_obj(struct
amdgpu_connector_atom_dig);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-if (!amdgpu_dig_connector) - goto failed; - amdgpu_connector->con_priv = amdgpu_dig_connector; -if (i2c_bus->valid) { - amdgpu_connector->ddc_bus =
amdgpu_i2c_lookup(adev, i2c_bus);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-if (!amdgpu_connector->ddc_bus) - drm_err(adev_to_drm(adev), - "DVI: Failed to assign ddc bus!Check dmesg for i2c errors.\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-else - ddc = &amdgpu_connector->ddc_bus-Quoted 1 line
adapter;
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- } - drm_connector_init_with_ddc(dev,
&amdgpu_connector->base,
-&amdgpu_connector_dvi_funcs,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- connector_type, - ddc); - drm_connector_helper_add(&amdgpu_connector-Quoted 1 line
base,
&amdgpu_connector_dvi_helper_funcs);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- subpixel_order = SubPixelHorizontalRGB; - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.coherent_mode_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 1); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- UNDERSCAN_OFF); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_hborder_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 0); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_vborder_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 0); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- dev-
Quoted 1 line
mode_config.scaling_mode_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5- DRM_MODE_SCALE_NONE); - -if (amdgpu_audio !=0 ) { - drm_object_attach_property(&amdgpu_connector->base.base, - adev-Quoted 1 line
mode_info.audio_property,
-
AMDGPU_AUDIO_AUTO);
-amdgpu_connector->audio=AMDGPU_AUDIO_AUTO;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- } - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.dither_property,
-
AMDGPU_FMT_DITHER_DISABLE);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4-if (connector_type ==DRM_MODE_CONNECTOR_DVII ) { - amdgpu_connector->dac_load_detect = true; - drm_object_attach_property(&amdgpu_connector->base.base, - adev-Quoted 1 line
mode_info.load_detect_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-11- 1); - } - connector->interlace_allowed = true; -if (connector_type ==DRM_MODE_CONNECTOR_DVII ) - connector->doublescan_allowed = true; -else - connector->doublescan_allowed = false; -break ; -case DRM_MODE_CONNECTOR_HDMIA : -case DRM_MODE_CONNECTOR_HDMIB : - amdgpu_dig_connector = kzalloc_obj(struct
amdgpu_connector_atom_dig);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-if (!amdgpu_dig_connector) - goto failed; - amdgpu_connector->con_priv = amdgpu_dig_connector; -if (i2c_bus->valid) { - amdgpu_connector->ddc_bus =
amdgpu_i2c_lookup(adev, i2c_bus);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-if (!amdgpu_connector->ddc_bus) - drm_err(adev_to_drm(adev), - "HDMI: Failed to assign ddcbus! Check dmesg for i2c errors.\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-else - ddc = &amdgpu_connector->ddc_bus-Quoted 1 line
adapter;
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- } - drm_connector_init_with_ddc(dev,
&amdgpu_connector->base,
-&amdgpu_connector_dvi_funcs,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- connector_type, - ddc); - drm_connector_helper_add(&amdgpu_connector-Quoted 1 line
base,
&amdgpu_connector_dvi_helper_funcs);- drm_object_attach_property(&amdgpu_connector-
Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.coherent_mode_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 1); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- UNDERSCAN_OFF); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_hborder_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 0); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_vborder_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 0); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- dev-
Quoted 1 line
mode_config.scaling_mode_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- DRM_MODE_SCALE_NONE); -if (amdgpu_audio !=0 ) { - drm_object_attach_property(&amdgpu_connector->base.base, - adev-Quoted 1 line
mode_info.audio_property,
-
AMDGPU_AUDIO_AUTO);
-amdgpu_connector->audio=AMDGPU_AUDIO_AUTO;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- } - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.dither_property,
-
AMDGPU_FMT_DITHER_DISABLE);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- subpixel_order = SubPixelHorizontalRGB; - connector->interlace_allowed = true; - if (connector_type ==
DRM_MODE_CONNECTOR_HDMIB)drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6- connector->doublescan_allowed = true; - else - connector->doublescan_allowed = false; -break ; -case DRM_MODE_CONNECTOR_DisplayPort: - amdgpu_dig_connector = kzalloc_obj(struct
amdgpu_connector_atom_dig);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-if (!amdgpu_dig_connector) - goto failed; - amdgpu_connector->con_priv = amdgpu_dig_connector; -if (i2c_bus->valid) { - amdgpu_connector->ddc_bus =
amdgpu_i2c_lookup(adev, i2c_bus);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-if (amdgpu_connector->ddc_bus) { - has_aux = true; - ddc = &amdgpu_connector->ddc_bus-Quoted 1 line
adapter;
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- }else { - drm_err(adev_to_drm(adev), - "DP: Failed to assign ddc bus!Check dmesg for i2c errors.\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- } - } - drm_connector_init_with_ddc(dev,
&amdgpu_connector->base,
-&amdgpu_connector_dp_funcs,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- connector_type, - ddc); - drm_connector_helper_add(&amdgpu_connector-Quoted 1 line
base,
&amdgpu_connector_dp_helper_funcs);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- subpixel_order = SubPixelHorizontalRGB; - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.coherent_mode_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 1); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- UNDERSCAN_OFF); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_hborder_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 0); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.underscan_vborder_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- 0); - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- dev-
Quoted 1 line
mode_config.scaling_mode_property,
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-4- DRM_MODE_SCALE_NONE); -if (amdgpu_audio !=0 ) { - drm_object_attach_property(&amdgpu_connector->base.base, - adev-Quoted 1 line
mode_info.audio_property,
-
AMDGPU_AUDIO_AUTO);
-amdgpu_connector->audio=AMDGPU_AUDIO_AUTO;drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- } - drm_object_attach_property(&amdgpu_connector-Quoted 1 line
base.base,
- adev-
Quoted 1 line
mode_info.dither_property,
-
AMDGPU_FMT_DITHER_DISABLE);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6- connector->interlace_allowed = true; -/* in theory with a DP to VGA converter... */ - connector->doublescan_allowed = false; -break ; -case DRM_MODE_CONNECTOR_eDP: - amdgpu_dig_connector = kzalloc_obj(struct
amdgpu_connector_atom_dig);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-if (!amdgpu_dig_connector) - goto failed; - amdgpu_connector->con_priv = amdgpu_dig_connector; -if (i2c_bus->valid) { - amdgpu_connector->ddc_bus =
amdgpu_i2c_lookup(adev, i2c_bus);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-if (amdgpu_connector->ddc_bus) { - has_aux = true; - ddc = &amdgpu_connector->ddc_bus-Quoted 1 line
adapter;
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- }else { - drm_err(adev_to_drm(adev), - "eDP: Failed to assign ddc bus!Check dmesg for i2c errors.\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- } - } - drm_connector_init_with_ddc(dev,
&amdgpu_connector->base,
-&amdgpu_connector_edp_funcs,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- connector_type, - ddc); - drm_connector_helper_add(&amdgpu_connector-Quoted 1 line
base,
&amdgpu_connector_dp_helper_funcs);- drm_object_attach_property(&amdgpu_connector-
Quoted 1 line
base.base,
- dev-
Quoted 1 line
mode_config.scaling_mode_property,
-
DRM_MODE_SCALE_FULLSCREEN);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-6- subpixel_order = SubPixelHorizontalRGB; - connector->interlace_allowed = false; - connector->doublescan_allowed = false; -break ; -case DRM_MODE_CONNECTOR_LVDS : - amdgpu_dig_connector = kzalloc_obj(struct
amdgpu_connector_atom_dig);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-5-if (!amdgpu_dig_connector) - goto failed; - amdgpu_connector->con_priv = amdgpu_dig_connector; -if (i2c_bus->valid) { - amdgpu_connector->ddc_bus =
amdgpu_i2c_lookup(adev, i2c_bus);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3-if (!amdgpu_connector->ddc_bus) - drm_err(adev_to_drm(adev), - "LVDS: Failed to assign ddc bus!Check dmesg for i2c errors.\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2-else - ddc = &amdgpu_connector->ddc_bus-Quoted 1 line
adapter;
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-2- } - drm_connector_init_with_ddc(dev,
&amdgpu_connector->base,
-&amdgpu_connector_lvds_funcs,drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-3- connector_type, - ddc); - drm_connector_helper_add(&amdgpu_connector-Quoted 1 line
base,
&amdgpu_connector_lvds_helper_funcs);- drm_object_attach_property(&amdgpu_connector-
Quoted 1 line
base.base,
- dev-
Quoted 1 line
mode_config.scaling_mode_property,
-
DRM_MODE_SCALE_FULLSCREEN);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-10- subpixel_order = SubPixelHorizontalRGB; - connector->interlace_allowed = false; - connector->doublescan_allowed = false; -break ; - } - } - -if (amdgpu_connector->hpd.hpd ==AMDGPU_HPD_NONE ) { -if (i2c_bus->valid) { - connector->polled =
DRM_CONNECTOR_POLL_CONNECT|drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c deleted +0
-22-DRM_CONNECTOR_POLL_DISCONNECT ; - } - }else - connector->polled =DRM_CONNECTOR_POLL_HPD ; - - connector->display_info.subpixel_order = subpixel_order; - -if (has_aux) -amdgpu_atombios_dp_aux_init (amdgpu_connector); - -if (connector_type == DRM_MODE_CONNECTOR_DisplayPort || - connector_type == DRM_MODE_CONNECTOR_eDP) { - drm_connector_attach_dp_subconnector_property(&amdgpu_connector ->base); - } - -return ; - -failed: -drm_connector_cleanup (connector); -kfree (connector); -}drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.h deleted +0
-14@@ -1,41 +0,0 @@ -/* -* Copyright 2014 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- */drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.h deleted +0
-7- -#ifndef __AMDGPU_CONNECTORS_H__ -#define __AMDGPU_CONNECTORS_H__ - -void amdgpu_connector_hotplug (struct drm_connector *connector); -int amdgpu_connector_get_monitor_bpc (struct drm_connector *connector); -u16 amdgpu_connector_encoder_get_dp_bridge_encoder_id(struct
drm_connector*connector);drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.h deleted +0
-12-bool amdgpu_connector_is_dp12_capable (struct drm_connector *connector); -void -amdgpu_connector_add (struct amdgpu_device *adev, -uint32_t connector_id, -uint32_t supported_device, -int connector_type, -struct amdgpu_i2c_bus_rec *i2c_bus, -uint16_t connector_object_id, -struct amdgpu_hpd *hpd, -struct amdgpu_router *router); - -#endif drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2
-2@@ -3525,8 +3525,8 @@ static void amdgpu_device_detect_sriov_bios(structamdgpu_device *adev) * Check if there is DC (new modesetting infrastructre) support for an asic. * returns true if DC has support, false if not. */ -bool amdgpu_device_asic_has_dc_support (struct pci_dev *pdev, -enum amd_asic_type asic_type) +static bool amdgpu_device_asic_has_dc_support (struct pci_dev *pdev, +enum amd_asic_type asic_type) {switch (asic_type) {#ifdef
CONFIG_DRM_AMDGPU_SIdrivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4
-6@@ -3540,15 +3540,13 @@ bool amdgpu_device_asic_has_dc_support(struct pci_dev *pdev, case CHIP_PITCAIRN:case CHIP_VERDE :case CHIP_OLAND : -return amdgpu_dc !=0 &&IS_ENABLED (CONFIG_DRM_AMD_DC_SI ); +return IS_ENABLED (CONFIG_DRM_AMD_DC_SI );default : -return amdgpu_dc !=0 ; +return true;#else default : -if (amdgpu_dc >0 ) - dev_info_once( - &pdev->dev, - "Display Core has been requested via kernel parameter but isn't supported by ASIC, ignoring\n"); +dev_info_once (&pdev->dev, +"Driver built without display support\n" );return false; #endif }drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-72@@ -28,7 +28,6 @@#include "amdgpu.h" #include "amdgpu_i2c.h" #include "atom.h" -#include "amdgpu_connectors.h" #include "amdgpu_display.h" #include "soc15_common.h" #include "gc/gc_11_0_0_offset.h" @@ -48,489 +47,11 @@#include <drm/drm_modeset_helper.h> #include <drm/drm_vblank.h> -/** -* amdgpu_display_hotplug_work_func - work handler for display hotplug event -* -* @work: work struct pointer -* -* This is the hotplug event work handler (all ASICs). -* The work gets scheduled from the IRQ handler if there -* was a hotplug interrupt. It walks through the connector table -* and calls hotplug handler for each connector. After this, it sends -* a DRM hotplug event to alert userspace. -* -* This design approach is required in order to defer hotplug event handling -* from the IRQ handler to a work handler because hotplug handler has to use -* mutexes which cannot be locked in an IRQ handler (since &mutex_lock may -* sleep). -*/ -void amdgpu_display_hotplug_work_func (struct work_struct *work) -{ - struct amdgpu_device *adev = container_of(work, struct amdgpu_device, - hotplug_work.work); -struct drm_device *dev =adev_to_drm (adev); -struct drm_mode_config *mode_config = &dev->mode_config; -struct drm_connector *connector; -struct drm_connector_list_iter iter; - -mutex_lock (&mode_config->mutex); -drm_connector_list_iter_begin (dev, &iter); -drm_for_each_connector_iter (connector, &iter) -amdgpu_connector_hotplug (connector); -drm_connector_list_iter_end (&iter); -mutex_unlock (&mode_config->mutex); -/* Just fire off a uevent and let userspace tell us what to do */ -drm_helper_hpd_irq_event (dev); -} - static int amdgpu_display_framebuffer_init(struct drm_device *dev,struct amdgpu_framebuffer *rfb,const struct drm_mode_fb_cmd2 *mode_cmd,struct drm_gem_object *obj); -static void amdgpu_display_flip_callback (struct dma_fence *f, -struct dma_fence_cb *cb) -{ -struct amdgpu_flip_work *work = - container_of(cb, struct amdgpu_flip_work, cb); - -dma_fence_put (f); -schedule_work (&work->flip_work.work); -} - -static bool amdgpu_display_flip_handle_fence (struct amdgpu_flip_work *work, -struct dma_fence **f) -{ -struct dma_fence *fence = *f; - -if (fence ==NULL ) -return false; - - *f =NULL ; - -if (!dma_fence_add_callback (fence, &work->cb, - amdgpu_display_flip_callback)) -return true; - -dma_fence_put (fence); -return false; -} - -static void amdgpu_display_flip_work_func (struct work_struct *__work) -{ -struct delayed_work *delayed_work = - container_of(__work, struct delayed_work, work); -struct amdgpu_flip_work *work = - container_of(delayed_work, struct amdgpu_flip_work, flip_work); -struct amdgpu_device *adev = work->adev; - struct amdgpu_crtc *amdgpu_crtc = adev->mode_info.crtcs[work-Quoted 1 line
crtc_id];drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-15- -struct drm_crtc *crtc = &amdgpu_crtc->base; -unsigned long flags; -unsigned int i; -int vpos, hpos; - -for (i =0 ; i < work->shared_count; ++i) -if (amdgpu_display_flip_handle_fence (work, &work->shared[i])) -return ; - -/* Wait until we're out of the vertical blank period before the one -* targeted by the flip -*/ - if (amdgpu_crtc->enabled && - (amdgpu_display_get_crtc_scanoutpos(adev_to_drm(adev), work-Quoted 1 line
crtc_id, 0,drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-3- &vpos, &hpos, NULL, NULL, - &crtc->hwmode) - & (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK))==
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-4- (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK) && - (int)(work->target_vblank - - amdgpu_get_vblank_counter_kms(crtc)) > 0) { - schedule_delayed_work(&work->flip_work,
usecs_to_jiffies(1000));drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-8-return ; - } - -/* We borrow the event spin lock for protecting flip_status */ -spin_lock_irqsave (&crtc->dev->event_lock, flags); - -/* Do the flip (mmio) */ - adev->mode_info.funcs->page_flip(adev, work->crtc_id, work->base,
work->async);drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-8- -/* Set the flip status */ - amdgpu_crtc->pflip_status =AMDGPU_FLIP_SUBMITTED ; -spin_unlock_irqrestore (&crtc->dev->event_lock, flags); - - - drm_dbg_vbl(adev_to_drm(adev), - "crtc:%d[%p], pflip_stat:AMDGPU_FLIP_SUBMITTED, work:%p,\n",
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-47- amdgpu_crtc->crtc_id, amdgpu_crtc, work); - -} - -/* -* Handle unpin events outside the interrupt handler proper. -*/ -static void amdgpu_display_unpin_work_func (struct work_struct *__work) -{ -struct amdgpu_flip_work *work = - container_of(__work, struct amdgpu_flip_work, unpin_work); -int r; - -/* unpin of the old buffer */ - r =amdgpu_bo_reserve (work->old_abo, true); -if (likely (r ==0 )) { -amdgpu_bo_unpin (work->old_abo); -amdgpu_bo_unreserve (work->old_abo); - }else -DRM_ERROR ("failed to reserve buffer after flip\n" ); - -amdgpu_bo_unref (&work->old_abo); -kfree (work->shared); -kfree (work); -} - -int amdgpu_display_crtc_page_flip_target (struct drm_crtc *crtc, -struct drm_framebuffer *fb, -struct drm_pending_vblank_event *event, -uint32_t page_flip_flags,uint32_t target, -struct drm_modeset_acquire_ctx *ctx) -{ -struct drm_device *dev = crtc->dev; -struct amdgpu_device *adev =drm_to_adev (dev); -struct amdgpu_crtc *amdgpu_crtc =to_amdgpu_crtc (crtc); -struct drm_gem_object *obj; -struct amdgpu_flip_work *work; -struct amdgpu_bo *new_abo; -unsigned long flags; -u64 tiling_flags; -int i, r; - - work =kzalloc_obj (*work); -if (work ==NULL ) -return -ENOMEM ; - - INIT_DELAYED_WORK(&work->flip_work,
amdgpu_display_flip_work_func);drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-26-INIT_WORK (&work->unpin_work, amdgpu_display_unpin_work_func); - - work->event = event; - work->adev = adev; - work->crtc_id = amdgpu_crtc->crtc_id; - work->async = (page_flip_flags &DRM_MODE_PAGE_FLIP_ASYNC ) !=0 ; - -/* schedule unpin of the old buffer */ - obj = crtc->primary->fb->obj[0 ]; - -/* take a reference to the old object */ - work->old_abo =gem_to_amdgpu_bo (obj); -amdgpu_bo_ref (work->old_abo); - - obj = fb->obj[0 ]; - new_abo =gem_to_amdgpu_bo (obj); - -/* pin the new buffer */ - r =amdgpu_bo_reserve (new_abo, false); -if (unlikely (r !=0 )) { -DRM_ERROR ("failed to reserve new abo buffer before flip\n" ); - goto cleanup; - } - -if (!adev->enable_virtual_display) { - new_abo->flags |=
AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS;drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2- r = amdgpu_bo_pin(new_abo, - amdgpu_display_supported_domains(adev,
new_abo->flags));drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2-if (unlikely (r !=0 )) { - DRM_ERROR("failed to pin new abo buffer beforeflip\n");
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-11- goto unreserve; - } - } - - r =amdgpu_ttm_alloc_gart (&new_abo->tbo); -if (unlikely (r !=0 )) { -DRM_ERROR ("%p bind failed\n" , new_abo); - goto unpin; - } - - r = dma_resv_get_fences(new_abo->tbo.base.resv,
DMA_RESV_USAGE_WRITE,drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-29- &work->shared_count, - &work->shared); -if (unlikely (r !=0 )) { -DRM_ERROR ("failed to get fences for buffer\n" ); - goto unpin; - } - -amdgpu_bo_get_tiling_flags (new_abo, &tiling_flags); -amdgpu_bo_unreserve (new_abo); - -if (!adev->enable_virtual_display) - work->base =amdgpu_bo_gpu_offset (new_abo); - work->target_vblank = target - (uint32_t )drm_crtc_vblank_count (crtc) + -amdgpu_get_vblank_counter_kms (crtc); - -/* we borrow the event spin lock for protecting flip_wrok */ -spin_lock_irqsave (&crtc->dev->event_lock, flags); -if (amdgpu_crtc->pflip_status !=AMDGPU_FLIP_NONE ) { -DRM_DEBUG_DRIVER ("flip queue: crtc already busy\n" ); -spin_unlock_irqrestore (&crtc->dev->event_lock, flags); - r = -EBUSY ; - goto pflip_cleanup; - } - - amdgpu_crtc->pflip_status =AMDGPU_FLIP_PENDING ; - amdgpu_crtc->pflip_works = work; - - - DRM_DEBUG_DRIVER("crtc:%d[%p],pflip_stat:AMDGPU_FLIP_PENDING, work: %p,\n",
-amdgpu_crtc->crtc_id,amdgpu_crtc,
work);drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-142-/* update crtc fb */ - crtc->primary->fb = fb; -spin_unlock_irqrestore (&crtc->dev->event_lock, flags); -amdgpu_display_flip_work_func (&work->flip_work.work); -return 0 ; - -pflip_cleanup: -if (unlikely (amdgpu_bo_reserve (new_abo, false) !=0 )) { -DRM_ERROR ("failed to reserve new abo in error path\n" ); - goto cleanup; - } -unpin: -if (!adev->enable_virtual_display) -amdgpu_bo_unpin (new_abo); - -unreserve: -amdgpu_bo_unreserve (new_abo); - -cleanup: -amdgpu_bo_unref (&work->old_abo); -for (i =0 ; i < work->shared_count; ++i) -dma_fence_put (work->shared[i]); -kfree (work->shared); -kfree (work); - -return r; -} - -int amdgpu_display_crtc_set_config (struct drm_mode_set *set, -struct drm_modeset_acquire_ctx *ctx) -{ -struct drm_device *dev; -struct amdgpu_device *adev; -struct drm_crtc *crtc; -bool active = false; -int ret; - -if (!set || !set->crtc) -return -EINVAL ; - - dev = set->crtc->dev; - - ret =pm_runtime_get_sync (dev->dev); -if (ret <0 ) - goto out; - - ret =drm_crtc_helper_set_config (set, ctx); - -list_for_each_entry (crtc, &dev->mode_config.crtc_list, head) -if (crtc->enabled) - active = true; - - adev =drm_to_adev (dev); -/* if we have active crtcs and we don't have a power ref, -* take the current one -*/ -if (active && !adev->have_disp_power_ref) { - adev->have_disp_power_ref = true; -return ret; - } -/* if we have no active crtcs, then go to -* drop the power ref we got before -*/ -if (!active && adev->have_disp_power_ref) - adev->have_disp_power_ref = false; -out: -/* drop the power reference we got coming in here */ -pm_runtime_put_autosuspend (dev->dev); -return ret; -} - -static const char *encoder_names[41 ] = { -"NONE" , -"INTERNAL_LVDS" , -"INTERNAL_TMDS1" , -"INTERNAL_TMDS2" , -"INTERNAL_DAC1" , -"INTERNAL_DAC2" , -"INTERNAL_SDVOA" , -"INTERNAL_SDVOB" , -"SI170B" , -"CH7303" , -"CH7301" , -"INTERNAL_DVO1" , -"EXTERNAL_SDVOA" , -"EXTERNAL_SDVOB" , -"TITFP513" , -"INTERNAL_LVTM1" , -"VT1623" , -"HDMI_SI1930" , -"HDMI_INTERNAL" , -"INTERNAL_KLDSCP_TMDS1" , -"INTERNAL_KLDSCP_DVO1" , -"INTERNAL_KLDSCP_DAC1" , -"INTERNAL_KLDSCP_DAC2" , -"SI178" , -"MVPU_FPGA" , -"INTERNAL_DDI" , -"VT1625" , -"HDMI_SI1932" , -"DP_AN9801" , -"DP_DP501" , -"INTERNAL_UNIPHY" , -"INTERNAL_KLDSCP_LVTMA" , -"INTERNAL_UNIPHY1" , -"INTERNAL_UNIPHY2" , -"NUTMEG" , -"TRAVIS" , -"INTERNAL_VCE" , -"INTERNAL_UNIPHY3" , -"HDMI_ANX9805" , -"INTERNAL_AMCLK" , -"VIRTUAL" , -}; - -static const char *hpd_names[6 ] = { -"HPD1" , -"HPD2" , -"HPD3" , -"HPD4" , -"HPD5" , -"HPD6" , -}; - -void amdgpu_display_print_display_setup (struct drm_device *dev) -{ -struct drm_connector *connector; -struct amdgpu_connector *amdgpu_connector; -struct drm_encoder *encoder; -struct amdgpu_encoder *amdgpu_encoder; -struct drm_connector_list_iter iter; -uint32_t devices; -int i =0 ; - -drm_connector_list_iter_begin (dev, &iter); -drm_info (dev,"AMDGPU Display Connectors\n" ); -drm_for_each_connector_iter (connector, &iter) { - amdgpu_connector =to_amdgpu_connector (connector); -drm_info (dev,"Connector %d:\n" , i); -drm_info (dev," %s\n" , connector->name); -if (amdgpu_connector->hpd.hpd !=AMDGPU_HPD_NONE ) - drm_info(dev, " %s\n", hpd_names[amdgpu_connector-Quoted 1 line
hpd.hpd]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2-if (amdgpu_connector->ddc_bus) { - drm_info(dev, " DDC: 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x0x%x 0x%x\n",
- amdgpu_connector->ddc_bus-Quoted 1 line
rec.mask_clk_reg,
- amdgpu_connector->ddc_bus-
Quoted 1 line
rec.mask_data_reg,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-4- amdgpu_connector->ddc_bus->rec.a_clk_reg, - amdgpu_connector->ddc_bus->rec.a_data_reg, - amdgpu_connector->ddc_bus->rec.en_clk_reg, - amdgpu_connector->ddc_bus-Quoted 1 line
rec.en_data_reg,
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2- amdgpu_connector->ddc_bus->rec.y_clk_reg,Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
rec.y_data_reg);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
router.ddc_mux_control_pin,
- amdgpu_connector-
Quoted 1 line
router.ddc_mux_state);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
0x%x/0x%x\n",
- amdgpu_connector-Quoted 1 line
router.cd_mux_control_pin,
- amdgpu_connector-
Quoted 1 line
router.cd_mux_state);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DRM_MODE_CONNECTOR_VGA||
-connector->connector_type==DRM_MODE_CONNECTOR_DVII||
-connector->connector_type==DRM_MODE_CONNECTOR_DVID||
-connector->connector_type==DRM_MODE_CONNECTOR_DVIA||- connector->connector_type == DRM_MODE_CONNECTOR_HDMIA || - connector->connector_type ==
DRM_MODE_CONNECTOR_HDMIB)
- drm_info(dev, " DDC: no ddc bus - possible BIOS
bug - please report to [email protected]\n");drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
head) {
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_connector->devices;drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
encoder_names[amdgpu_encoder->encoder_id]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
encoder_names[amdgpu_encoder->encoder_id]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
encoder_names[amdgpu_encoder->encoder_id]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
encoder_names[amdgpu_encoder->encoder_id]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
encoder_names[amdgpu_encoder->encoder_id]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
encoder_names[amdgpu_encoder->encoder_id]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
encoder_names[amdgpu_encoder->encoder_id]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
encoder_names[amdgpu_encoder->encoder_id]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
encoder_names[amdgpu_encoder->encoder_id]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
encoder_names[amdgpu_encoder->encoder_id]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
encoder_names[amdgpu_encoder->encoder_id]);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-34Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
msgs, 2);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
msgs, 2);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-66Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
native_mode.hdisplay ||
-
mode->vdisplay< amdgpu_encoder-Quoted 1 line
native_mode.vdisplay)
-
amdgpu_crtc->rmx_type= amdgpu_encoder-Quoted 1 line
rmx_type;drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-15Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
&&
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
underscan_hborder;drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
5) + 16;
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
underscan_vborder;drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
5) + 16;
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
2);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
* 2);
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-81Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo);drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS;
- r = amdgpu_bo_pin(aobj,AMDGPU_GEM_DOMAIN_VRAM);drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
BO (%d)\n", r);
-amdgpu_crtc->cursor_addr=amdgpu_bo_gpu_offset(aobj);drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-23Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_dm_set_pixel()
* they are called from the panic handler, and protected by thedrm_panic
spinlock.
*/drivers/gpu/drm/amd/amdgpu/amdgpu_display.h +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
bandwidth_update((adev))
-#define
amdgpu_display_page_flip(adev, crtc, base, async)(adev)-Quoted 1 line
mode_info.funcs->page_flip((adev), (crtc), (base), (async))#define
amdgpu_display_page_flip_get_scanoutpos(adev, crtc, vbl, pos)(adev)-Quoted 1 line
mode_info.funcs->page_flip_get_scanoutpos((adev), (crtc), (vbl), (pos))-#define
amdgpu_display_add_encoder(adev, e, s, c)(adev)->mode_info.funcs-Quoted 1 line
add_encoder((adev), (e), (s), (c))-#define
amdgpu_display_add_connector(adev, ci, sd, ct, ib, coi, h, r)(adev)-Quoted 1 line
mode_info.funcs->add_connector((adev), (ci), (sd), (ct), (ib), (coi), (h), (r))drivers/gpu/drm/amd/amdgpu/amdgpu_display.h +0
-5Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
The default is 0 (auto).
- */
-MODULE_PARM_DESC(disp_priority, "Display Priority (0 = auto, 1 = normal, 2 = high)");drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(Disabled).
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
default is -1 (automatic for each asic).
- */
-MODULE_PARM_DESC(dc, "Display Core driver (1 = enable, 0 = disable, -1 = auto (default))");drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
hardware support.\n"
"See modparam exp_hw_support\n");drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-15Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- * Authors: Dave Airlie
- * Alex Deucher
- */drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-23Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
head) {
drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
devices) {
- drm_connector_attach_encoder(connector,
encoder);
- if (amdgpu_encoder->devices&
(ATOM_DEVICE_LCD_SUPPORT)) {drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder;drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
devices &
amdgpu_connector->devices;- DRM_DEBUG_KMS("setting active device to %08x from
%08x %08x for encoder %d\n",
-amdgpu_encoder->active_device,amdgpu_encoder->devices,
-amdgpu_connector->devices, encoder-Quoted 1 line
encoder_type);drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
devices) {
drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-13Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-17Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*encoder)
drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
head) {
drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
devices))
drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_get_external_encoder(encoder);drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(other_encoder);drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-16Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);
- structdrm_display_mode*native_mode= &amdgpu_encoder-Quoted 1 line
native_mode;drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
hsync_start;- unsigned int
vsync_width=native_mode->vsync_end- native_mode-Quoted 1 line
vsync_start;drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
hsync_width;drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
vsync_width;drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
hover;
-adjusted_mode->crtc_hsync_end=adjusted_mode->crtc_hsync_start+hsync_width;drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
vover;
-adjusted_mode->crtc_vsync_end=adjusted_mode->crtc_vsync_start+vsync_width;drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-41Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
CONNECTOR_OBJECT_ID_DISPLAYPORT) ||
- (dig_connector->dp_sink_type==CONNECTOR_OBJECT_ID_eDP))drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c deleted +0
-19Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c +0
-65Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_connector)drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c +0
-31Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_connector)drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c +0
-27Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.h +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
#endif
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +0
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +0
-28Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
struct
amdgpu_framebuffer{drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +0
-26Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DVI, but ddc probing failed */
uint16_t connector_object_id; struct amdgpu_hpd hpd;drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +0
-28Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
int
amdgpu_display_crtc_idx_to_irq_type(struct amdgpu_device *adev, int crtc);bool amdgpu_crtc_get_scanout_position(struct
drm_crtc*crtc,drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
#endif
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-15Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- * Authors: Dave Airlie
- * Alex Deucher
- */drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-30Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
crtc_vdisplay-mode->crtc_vdisplay) / 2);- args.usOverscanBottom = cpu_to_le16((adjusted_mode-
Quoted 1 line
crtc_vdisplay-mode->crtc_vdisplay) / 2);- args.usOverscanLeft = cpu_to_le16((adjusted_mode-
Quoted 1 line
crtc_hdisplay-mode->crtc_hdisplay) / 2);- args.usOverscanRight = cpu_to_le16((adjusted_mode-
Quoted 1 line
crtc_hdisplay-mode->crtc_hdisplay) / 2);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
crtc_hdisplay- (a2 /mode->crtc_vdisplay)) / 2);- args.usOverscanRight = cpu_to_le16((adjusted_mode-
Quoted 1 line
crtc_hdisplay- (a2 /mode->crtc_vdisplay)) / 2);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
crtc_vdisplay- (a1 /mode->crtc_hdisplay)) / 2);- args.usOverscanBottom = cpu_to_le16((adjusted_mode-
Quoted 1 line
crtc_vdisplay- (a1 /mode->crtc_hdisplay)) / 2);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-29Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
UpdateCRTC_DoubleBufferRegisters);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-16Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-16Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EnableDispPowerGating);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EnableDispPowerGating);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
SetCRTC_UsingDTDTiming);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
h_border* 2));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
amdgpu_crtc->h_border* 2));
- args.usV_Size = cpu_to_le16(mode->crtc_vdisplay - (amdgpu_crtc-Quoted 1 line
v_border* 2));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
amdgpu_crtc->v_border* 2));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_crtc->h_border);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_crtc->v_border);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-20Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-16Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EnableSpreadSpectrumOnPPLL);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-31Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_SS_CENTRE_SPREAD_MODE_MASK;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PPLL_SS_TYPE_V3_P1PLL;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PPLL_SS_TYPE_V3_P2PLL;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PPLL_SS_TYPE_V3_DCPLL;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-15Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);
- structdrm_connector*connector =amdgpu_get_connector_for_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(encoder);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
clock);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DEVICE_DFP_SUPPORT)) ||
- (amdgpu_encoder_get_dp_bridge_encoder_id(encoder)!=ENCODER_OBJECT_ID_NONE)) {drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-12Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
AMDGPU_PLL_USE_REF_DIV;
-amdgpu_crtc->pll_reference_div=amdgpu_crtc->ss.refdiv;
-amdgpu_crtc->pll_flags|=AMDGPU_PLL_USE_FRAC_FB_DIV;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1)drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
AMDGPU_PLL_PREFER_CLOSEST_LOWER;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-28Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
index, &frev,
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-12Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
encoder_id;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
ss.percentage)
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
mode_info.atom_context,
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
10;
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
encoder_id;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
ss.percentage)
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(dp_clock / 10);
- } else if (amdgpu_encoder->devices&
(ATOM_DEVICE_DFP_SUPPORT)) {
- structamdgpu_encoder_atom_dig*dig =amdgpu_encoder->enc_priv;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
amdgpu_encoder_get_dp_bridge_encoder_id(encoder)!=drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
mode_info.atom_context,
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
le32_to_cpu(args.v3.sOutput.ulDispPllFreq)* 10;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
AMDGPU_PLL_USE_FRAC_FB_DIV;
-amdgpu_crtc->pll_flags|=AMDGPU_PLL_USE_REF_DIV;
-amdgpu_crtc->pll_reference_div=
args.v3.sOutput.ucRefDiv;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
AMDGPU_PLL_USE_FRAC_FB_DIV;
-amdgpu_crtc->pll_flags|=AMDGPU_PLL_USE_POST_DIV;
-amdgpu_crtc->pll_post_div=
args.v3.sOutput.ucPostDiv;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
crev);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-35Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
index, &frev,
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-29Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
crev);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-19Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
index, &frev,
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
/* 10kHz units */
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
mode_info.atom_context, index, (
uint32_t*)&args, sizeof(args));-
ret_freq=le32_to_cpu(args.v2_1.asParam.ulDCEClkFreq)* 10;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
crev);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-46Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
index, &frev,
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-37Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_MISC_CRTC_SEL_CRTC2;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_MISC_CRTC_SEL_CRTC1;
- if (ss_enabled&& (ss->type&ATOM_EXTERNAL_SS_MASK))
- args.v3.ucMiscInfo |=PIXEL_CLOCK_MISC_REF_DIV_SRC;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
100000);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_EXTERNAL_SS_MASK)) &&drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_V5_MISC_REF_DIV_SRC;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_V5_MISC_HDMI_24BPP;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
wrong */
- args.v5.ucMiscInfo |=PIXEL_CLOCK_V5_MISC_HDMI_32BPP;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
wrong */
- args.v5.ucMiscInfo |=PIXEL_CLOCK_V5_MISC_HDMI_30BPP;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
clock / 10);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
100000);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_EXTERNAL_SS_MASK)) &&drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
pll_id))
- args.v6.ucMiscInfo |=PIXEL_CLOCK_V6_MISC_REF_DIV_SRC;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_V6_MISC_HDMI_24BPP;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_V6_MISC_HDMI_30BPP_V6;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_V6_MISC_HDMI_36BPP_V6;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_V6_MISC_HDMI_48BPP;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
units */
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_V7_MISC_DVI_DUALLINK_EN;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_5_4;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_3_2;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_2_1;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
crev);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DEVICE_DFP_SUPPORT)) ||
- (amdgpu_encoder_get_dp_bridge_encoder_id(amdgpu_crtc->encoder)
!=ENCODER_OBJECT_ID_NONE)) {
- structamdgpu_encoder_atom_dig*dig = amdgpu_encoder-Quoted 1 line
enc_priv;drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
encoder);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*/
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_connector_get_monitor_bpc(connector);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
&amdgpu_crtc->ss,
-ASIC_INTERNAL_SS_ON_DP,drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
&amdgpu_crtc->ss,
- dig-Quoted 1 line
lcd_ss_id,-
mode->clock/
10);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
&amdgpu_crtc->ss,
-ASIC_INTERNAL_SS_ON_TMDS,
-mode->clock/
10);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
&amdgpu_crtc->ss,
-ASIC_INTERNAL_SS_ON_HDMI,
-mode->clock/
10);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
mode);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
drm_display_mode*mode)drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(amdgpu_crtc->encoder);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
HDMI */
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-24Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
&pll_clock,drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_crtc->pll_id,drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_crtc->pll_id,
-encoder_mode,amdgpu_encoder->encoder_id,
clock,drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
&amdgpu_crtc->ss);drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK;
-amdgpu_crtc->ss.amount|= ((amount - (amount / 10)) <<ATOM_PPLL_SS_AMOUNT_V2_NFRAC_SHIFT) &drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PPLL_SS_TYPE_V2_CENTRE_SPREAD)
-step_size= (4 * amount *ref_div* ((u32)amdgpu_crtc-Quoted 1 line
ss.rate * 2048)) /
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
ss.rate * 2048)) /
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_crtc->pll_id,
-amdgpu_crtc->crtc_id, &amdgpu_crtc-Quoted 1 line
ss);
drivers/gpu/drm/amd/amdgpu/atombios_crtc.c deleted +0
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/atombios_crtc.h deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- */drivers/gpu/drm/amd/amdgpu/atombios_crtc.h deleted +0
-38Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-15Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- * Authors: Dave Airlie
- * Alex Deucher
- * Jerome Glisse
- */drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-32Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*chan,
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ProcessAuxChannelTransaction);
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-20Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-29Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
false);
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-13Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
drm_dp_aux_msg*msg)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-21Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
atom
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
&ack);
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
atom
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
msg->size, delay, &ack);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-13Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_connector)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_dp_aux_transfer;
-amdgpu_connector->ddc_bus->aux.drm_dev= amdgpu_connector-Quoted 1 line
base.dev;
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
link_status[DP_LINK_STATUS_SIZE],
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
lane);
- u8this_p=drm_dp_get_adjust_request_pre_emphasis(link_status, lane);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
voltage %s
pre_emph%s\n",drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_TRAIN_VOLTAGE_SWING_SHIFT],
- pre_emph_names[this_p >>DP_TRAIN_PRE_EMPHASIS_SHIFT]);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
%s\n",
- voltage_names[(v &DP_TRAIN_VOLTAGE_SWING_MASK) >>DP_TRAIN_VOLTAGE_SWING_SHIFT],
- pre_emph_names[(p &DP_TRAIN_PRE_EMPHASIS_MASK) >>DP_TRAIN_PRE_EMPHASIS_SHIFT]);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-18Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*connector,
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*dp_rate)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
nitor_bpc(connector));drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
==
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
1) {
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
max_link_rate; i++) {
- for (lane_num= 1;lane_num<=max_lane_num;lane_num<<= 1) {
-max_pix_clock= (lane_num* link_rates[i] * 8) /
bpp;drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-27Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_connector)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DP_ACTION_GET_SINK_TYPE, 0,
- amdgpu_connector->ddc_bus-Quoted 1 line
rec.i2c_id, 0);
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_connector)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_connector->con_priv;drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_OUI_SUPPORT))drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_SINK_OUI, buf, 3) == 3)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_BRANCH_OUI, buf, 3) == 3)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_connector)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_connector->con_priv;drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_connector)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_connector->con_priv;drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_DPCD_REV,drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
dpcd),
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-15Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_connector_encoder_get_dp_bridge_encoder_id(connector);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
{
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_PANEL_MODE_INTERNAL_DP2_MODE;
- else if ((dp_bridge==ENCODER_OBJECT_ID_NUTMEG)
||drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_PANEL_MODE_INTERNAL_DP1_MODE;drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_PANEL_MODE_EXTERNAL_DP_MODE;drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
{
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
{
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_PANEL_MODE_INTERNAL_DP2_MODE;drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
CONNECTOR_OBJECT_ID_DISPLAYPORT) ||drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
dig_connector->dpcd,drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
dp_lane_count,- &dig_connector-
Quoted 1 line
dp_clock);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
dig_connector->dpcd,
-mode->clock,&dp_lanes,&dp_clock);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_connector)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
con_priv;drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*connector,
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-31Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_dp_link_train_info*dp_info)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH,
- 0, dp_info->train_set[0]); /* sets all
lanes at once */drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*dp_info, int tp)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-16Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
0);
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_dp_link_train_info*dp_info)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(dp_info->encoder);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_SET_POWER_D0);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_SPREAD_AMP_0_5);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_EDP_CONFIGURATION_SET, 1);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CMD_DP_LINK_TRAINING_START, 0);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_dp_link_train_info*dp_info)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE, 0);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_dp_link_train_info*dp_info)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-17Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
dpcd);
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
dp_lane_count)) {drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_TRAIN_MAX_SWING_REACHED) == 0)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
== voltage) {
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_TRAIN_VOLTAGE_SWING_MASK;drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
dp_info->dp_lane_count,drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
%d\n",
- dp_info->train_set[0] &DP_TRAIN_VOLTAGE_SWING_MASK,
- (dp_info->train_set[0] &DP_TRAIN_PRE_EMPHASIS_MASK) >>drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_dp_link_train_info*dp_info)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_TRAINING_PATTERN_3);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_TRAINING_PATTERN_2);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
dpcd);
drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
dp_lane_count)) {drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-12Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
dp_info->dp_lane_count,drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
%d\n",
- dp_info->train_set[0] &DP_TRAIN_VOLTAGE_SWING_MASK,
- (dp_info->train_set[0] &DP_TRAIN_PRE_EMPHASIS_MASK)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
CONNECTOR_OBJECT_ID_DISPLAYPORT) &&drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_MAX_LANE_COUNT, &tmp)drivers/gpu/drm/amd/amdgpu/atombios_dp.c deleted +0
-27Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/atombios_dp.h deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- */drivers/gpu/drm/amd/amdgpu/atombios_dp.h deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_connector);
-u8amdgpu_atombios_dp_get_sinktype(struct amdgpu_connector *amdgpu_connector);
-intamdgpu_atombios_dp_get_dpcd(struct amdgpu_connector *amdgpu_connector);drivers/gpu/drm/amd/amdgpu/atombios_dp.h deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_connector);
-void amdgpu_atombios_dp_set_rx_power_state(structdrm_connector*connector,drivers/gpu/drm/amd/amdgpu/atombios_dp.h deleted +0
-5Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-15Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- * Authors: Dave Airlie
- * Alex Deucher
- */drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-18Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_device*adev)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_S2_CURRENT_BL_LEVEL_MASK) >>drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*adev,
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_S2_CURRENT_BL_LEVEL_SHIFT) &drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_encoder)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_encoder,drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
dig->backlight_level);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_ACTION_LCD_BLOFF, 0, 0);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_ACTION_BL_BRIGHTNESS_CONTROL, 0, 0);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_ACTION_LCD_BLON, 0, 0);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*bd)
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-15Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
backlight_device*bd)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_backlight_level(bd));drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*bd)
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-15Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_encoder,drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-21Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
registration\n");
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-16Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
&amdgpu_atombios_encoder_backlight_ops, &props);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_backlight_brightness(bd);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-18Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_encoder)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
unloaded\n");
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-17Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
crtc_vdisplay+ 2;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-12Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DEVICE_LCD_SUPPORT)) ||
- (amdgpu_encoder_get_dp_bridge_encoder_id(encoder)!=ENCODER_OBJECT_ID_NONE)) {
- structdrm_connector*connector =amdgpu_get_connector_for_encoder(encoder);
- amdgpu_atombios_dp_set_link_config(connector,adjusted_mode);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DAC1EncoderControl);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DAC2EncoderControl);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
crtc);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-33Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
index, &frev, &crev))
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))
- args.ext_tmds.sXTmdsEncoder.ucMisc |=PANEL_ENCODER_MISC_DUAL;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PANEL_MISC_888RGB;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(amdgpu_encoder->pixel_clock / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DEVICE_DFP1_INDEX;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))
-args.dvo.sDVOEncoder.usDevAttr.sDigAttrib.ucAttribute |=
PANEL_ENCODER_MISC_DUAL;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(amdgpu_encoder->pixel_clock / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(amdgpu_encoder->pixel_clock / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_bpc(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
crev);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*encoder)
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENCODER_OBJECT_ID_NONE)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENCODER_OBJECT_ID_INTERNAL_DVO1) ||
- (amdgpu_encoder->encoder_id==ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-13Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
analog works fine */
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
AMDGPU_AUDIO_ENABLE))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
AMDGPU_AUDIO_AUTO))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-16Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
AMDGPU_AUDIO_ENABLE)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
AMDGPU_AUDIO_AUTO))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
CONNECTOR_OBJECT_ID_DISPLAYPORT) ||
- (dig_connector->dp_sink_type==CONNECTOR_OBJECT_ID_eDP)) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
AMDGPU_AUDIO_ENABLE)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
AMDGPU_AUDIO_AUTO))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-58Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_get_connector_for_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-15Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
index, &frev, &crev))
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
pixel_clock/ 10);- if (action ==
ATOM_ENCODER_CMD_SETUP_PANEL_MODE)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
dp_clock== 270000))
- args.v1.ucConfig |=ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CONFIG_V2_TRANSMITTER1;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENCODER_OBJECT_ID_INTERNAL_KLDSCP_LVTMA:
- args.v1.ucConfig =ATOM_ENCODER_CONFIG_V2_TRANSMITTER2;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CONFIG_V2_TRANSMITTER3;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CONFIG_LINKB;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CONFIG_LINKA;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
pixel_clock/ 10);- if (action ==
ATOM_ENCODER_CMD_SETUP_PANEL_MODE)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
dp_clock== 270000))
- args.v1.ucConfig |=ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_bpc(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
pixel_clock/ 10);- if (action ==
ATOM_ENCODER_CMD_SETUP_PANEL_MODE)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_bpc(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
action;
- args.v5.asDPPanelModeParam.ucPanelMode =panel_mode;
- args.v5.asDPPanelModeParam.ucDigId = dig-Quoted 1 line
dig_encoder;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
dig_encoder;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ENCODER_MODE_IS_DP(args.v5.asStreamParam.ucDigMode))
- args.v5.asStreamParam.ucLaneNum =dp_lane_count;
- else if
(amdgpu_dig_monitor_is_duallink(encoder,drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
8;
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
4;
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
pixel_clock/ 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
dp_clock/ 27000;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CMD_DP_LINK_TRAINING_START:
- caseATOM_ENCODER_CMD_DP_LINK_TRAINING_PATTERN1:
- caseATOM_ENCODER_CMD_DP_LINK_TRAINING_PATTERN2:
- caseATOM_ENCODER_CMD_DP_LINK_TRAINING_PATTERN3:
- caseATOM_ENCODER_CMD_DP_LINK_TRAINING_PATTERN4:
- caseATOM_ENCODER_CMD_DP_LINK_TRAINING_COMPLETE:drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
dig_encoder;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
action);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
crev);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*encoder, int action,
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-24Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
OBJECT_ID_MASK) >>OBJECT_ID_SHIFT;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
crtc);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encod er)))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DVOOutputControl);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
UNIPHYTransmitterControl);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
LVTMATransmitterControl);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
index, &frev, &crev))
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(connector_object_id);
- } else if (action ==ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(dp_clock / 10);
- else if
(amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock))
- args.v1.usPixelClock =cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(amdgpu_encoder->pixel_clock / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_CONFIG_LINKB;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_CONFIG_LINKA;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_CONFIG_COHERENT;
- else if (amdgpu_encoder->devices&
(ATOM_DEVICE_DFP_SUPPORT)) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_CONFIG_COHERENT;
- if (amdgpu_dig_monitor_is_duallink(encoder,amdgpu_encoder->pixel_clock))
- args.v1.ucConfig |=ATOM_TRANSMITTER_CONFIG_8LANE_LINK;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(connector_object_id);
- } else if (action ==ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(dp_clock / 10);
- else if
(amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock))
- args.v2.usPixelClock =cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(amdgpu_encoder->pixel_clock / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-22Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ATOM_DEVICE_DFP_SUPPORT)) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))
- args.v2.acConfig.fDualLinkConnector =
1;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(connector_object_id);
- } else if (action ==ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(dp_clock / 10);
- else if
(amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock))
- args.v3.usPixelClock =cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(amdgpu_encoder->pixel_clock / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP ref clock */
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
external src */
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-17Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
requires coherent */
- else if (amdgpu_encoder->devices&
(ATOM_DEVICE_DFP_SUPPORT)) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))
- args.v3.acConfig.fDualLinkConnector =
1;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(connector_object_id);
- } else if (action ==ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(dp_clock / 10);
- else if
(amdgpu_dig_monitor_is_duallink(encoder, amdgpu_encoder->pixel_clock))
- args.v4.usPixelClock =cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(amdgpu_encoder->pixel_clock / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-17Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENCODER_REFCLK_SRC_EXTCLK;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENCODER_REFCLK_SRC_DCPLL;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-17Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
requires coherent */
- else if (amdgpu_encoder->devices&
(ATOM_DEVICE_DFP_SUPPORT)) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))
- args.v4.acConfig.fDualLinkConnector =
1;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
10);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(amdgpu_encoder->pixel_clock / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYB;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYA;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYD;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYC;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYF;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYE;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENCODER_REFCLK_SRC_EXTCLK;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
requires coherent */
- else if (amdgpu_encoder->devices&
(ATOM_DEVICE_DFP_SUPPORT)) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
10);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le32(amdgpu_encoder->pixel_clock / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYB;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYA;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYD;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYC;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYF;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_PHY_ID_UNIPHYE;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->pixel_clock))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
crev);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*connector,
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
UNIPHYTransmitterControl);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
index, &frev, &crev))
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_connector->hpd.hpd))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-16Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*encoder,
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);
- structamdgpu_encoder*ext_amdgpu_encoder=to_amdgpu_encoder(ext_encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ExternalEncoderControl);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENUM_ID_MASK) >>ENUM_ID_SHIFT;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
OBJECT_ID_MASK) >>OBJECT_ID_SHIFT;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
index, &frev, &crev))
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-12Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(amdgpu_encoder->pixel_clock / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ENCODER_MODE_IS_DP(args.v1.sDigEncoder.ucEncoderMode)) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ;
- args.v1.sDigEncoder.ucLaneNum =dp_lane_count;
- } else if (amdgpu_dig_monitor_is_duallink(encoder,amdgpu_encoder->pixel_clock))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXTERNAL_ENCODER_ACTION_V3_ENCODER_INIT)
- args.v3.sExtEncoder.usConnectorId =cpu_to_le16(connector_object_id);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
cpu_to_le16(amdgpu_encoder->pixel_clock / 10);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ENCODER_MODE_IS_DP(args.v3.sExtEncoder.ucEncoderMode)) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXTERNAL_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXTERNAL_ENCODER_CONFIG_V3_DPLINKRATE_5_40GHZ;
- args.v3.sExtEncoder.ucLaneNum =dp_lane_count;
- } else if (amdgpu_dig_monitor_is_duallink(encoder,amdgpu_encoder->pixel_clock))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXTERNAL_ENCODER_CONFIG_V3_ENCODER1;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXTERNAL_ENCODER_CONFIG_V3_ENCODER2;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXTERNAL_ENCODER_CONFIG_V3_ENCODER3;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_bpc(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
crev);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);
- structdrm_encoder*ext_encoder=amdgpu_get_external_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_get_connector_for_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_PANEL_MODE_EXTERNAL_DP_MODE;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_dp_get_panel_mode(encoder, connector);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CMD_SETUP, 0);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CMD_SETUP_PANEL_MODE,drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ext_encoder,drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encod er))&&drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DRM_MODE_CONNECTOR_eDP) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_ACTION_POWER_ON);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_ACTION_ENABLE,drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encod er))&&drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_dp_link_train*/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CMD_DP_VIDEO_ON, 0);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ATOM_DEVICE_LCD_SUPPORT))
-
amdgpu_atombios_encoder_set_backlight_level(amdgpu_encoder, dig-Quoted 1 line
backlight_level);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ext_encoder,ATOM_ENABLE);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encod er))&&drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENCODER_CMD_DP_VIDEO_OFF, 0);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ext_encoder,ATOM_DISABLE);
- if (amdgpu_encoder->devices&
(ATOM_DEVICE_LCD_SUPPORT))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_ACTION_LCD_BLOFF, 0, 0);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encod er))&&drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DP_SET_POWER_D3);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_ACTION_DISABLE, 0, 0);
- if
(ENCODER_MODE_IS_DP(amdgpu_atombios_encoder_get_encoder_mode(encod er))&&drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DRM_MODE_CONNECTOR_eDP) {drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_ACTION_POWER_OFF);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
active_devices%08x\n",
-amdgpu_encoder->encoder_id, mode, amdgpu_encoder-Quoted 1 line
devices,
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENABLE);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DISABLE);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENABLE);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DISABLE);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_ENABLE);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DISABLE);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-20Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
index, &frev, &crev))
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENCODER_OBJECT_ID_INTERNAL_KLDSCP_TMDS1:
- args.v1.ucDevice =ATOM_DEVICE_DFP1_INDEX;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DEVICE_LCD1_SUPPORT)
- args.v1.ucDevice =ATOM_DEVICE_LCD1_INDEX;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DEVICE_DFP3_INDEX;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DEVICE_DFP2_INDEX;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ATOM_DEVICE_TV_SUPPORT))
- args.v1.ucDevice =ATOM_DEVICE_TV1_INDEX;
- else if (amdgpu_encoder->active_device&
(ATOM_DEVICE_CV_SUPPORT))
- args.v1.ucDevice =ATOM_DEVICE_CV_INDEX;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DEVICE_CRT1_INDEX;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ATOM_DEVICE_TV_SUPPORT))
- args.v1.ucDevice =ATOM_DEVICE_TV1_INDEX;
- else if (amdgpu_encoder->active_device&
(ATOM_DEVICE_CV_SUPPORT))
- args.v1.ucDevice =ATOM_DEVICE_CV_INDEX;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DEVICE_CRT2_INDEX;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
amdgpu_encoder_get_dp_bridge_encoder_id(encoder)!=ENCODER_OBJECT_ID_NONE) {
- structdrm_connector*connector =amdgpu_get_connector_for_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DRM_MODE_CONNECTOR_LVDS)
- args.v2.ucEncodeMode =ATOM_ENCODER_MODE_LVDS;
- else if (connector->connector_type==DRM_MODE_CONNECTOR_VGA)
- args.v2.ucEncodeMode =ATOM_ENCODER_MODE_CRT;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(encoder);
- } else if (amdgpu_encoder->devices&
(ATOM_DEVICE_LCD_SUPPORT)) {
- args.v2.ucEncodeMode =ATOM_ENCODER_MODE_LVDS;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENCODER_OBJECT_ID_INTERNAL_KLDSCP_LVTMA:drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG1_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG2_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG3_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG4_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG5_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG6_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG7_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DVO_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ATOM_DEVICE_TV_SUPPORT))
- args.v2.ucEncoderID =ASIC_INT_TV_ENCODER_ID;
- else if (amdgpu_encoder->active_device&
(ATOM_DEVICE_CV_SUPPORT))
- args.v2.ucEncoderID =ASIC_INT_TV_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DAC1_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ATOM_DEVICE_TV_SUPPORT))
- args.v2.ucEncoderID =ASIC_INT_TV_ENCODER_ID;
- else if (amdgpu_encoder->active_device&
(ATOM_DEVICE_CV_SUPPORT))
- args.v2.ucEncoderID =ASIC_INT_TV_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DAC2_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
amdgpu_encoder_get_dp_bridge_encoder_id(encoder)!=ENCODER_OBJECT_ID_NONE) {
- structdrm_connector*connector =amdgpu_get_connector_for_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DRM_MODE_CONNECTOR_LVDS)
- args.v2.ucEncodeMode =ATOM_ENCODER_MODE_LVDS;
- else if (connector->connector_type==DRM_MODE_CONNECTOR_VGA)
- args.v2.ucEncodeMode =ATOM_ENCODER_MODE_CRT;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(encoder);
- } else if (amdgpu_encoder->devices&
(ATOM_DEVICE_LCD_SUPPORT)) {
- args.v2.ucEncodeMode =ATOM_ENCODER_MODE_LVDS;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_encoder_mode(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_atombios_encoder_get_bpc(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENCODER_OBJECT_ID_INTERNAL_KLDSCP_LVTMA:drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG1_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG2_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG3_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG4_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG5_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG6_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DIG7_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DVO_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ATOM_DEVICE_TV_SUPPORT))
- args.v3.ucEncoderID =ASIC_INT_TV_ENCODER_ID;
- else if (amdgpu_encoder->active_device&
(ATOM_DEVICE_CV_SUPPORT))
- args.v3.ucEncoderID =ASIC_INT_TV_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DAC1_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ATOM_DEVICE_TV_SUPPORT))
- args.v3.ucEncoderID =ASIC_INT_TV_ENCODER_ID;
- else if (amdgpu_encoder->active_device&
(ATOM_DEVICE_CV_SUPPORT))
- args.v3.ucEncoderID =ASIC_INT_TV_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ASIC_INT_DAC2_ENCODER_ID;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);
- structdrm_encoder*ext_encoder=amdgpu_get_external_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_TRANSMITTER_ACTION_INIT,drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ext_encoder,drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-11Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);
- structamdgpu_connector*amdgpu_connector=to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DAC_LoadDetection);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
mode_info.atom_context, index, &frev, &crev))
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENCODER_OBJECT_ID_INTERNAL_DAC1) ||
- (amdgpu_encoder->encoder_id==ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_DEVICE_CRT1_SUPPORT)
- args.sDacload.usDeviceID =cpu_to_le16(ATOM_DEVICE_CRT1_SUPPORT);
- else if (amdgpu_connector->devices&ATOM_DEVICE_CRT2_SUPPORT)
- args.sDacload.usDeviceID =cpu_to_le16(ATOM_DEVICE_CRT2_SUPPORT);
- else if (amdgpu_connector->devices&ATOM_DEVICE_CV_SUPPORT) {
- args.sDacload.usDeviceID =cpu_to_le16(ATOM_DEVICE_CV_SUPPORT);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DAC_LOAD_MISC_YPrPb;
- } else if (amdgpu_connector->devices&ATOM_DEVICE_TV1_SUPPORT) {
- args.sDacload.usDeviceID =cpu_to_le16(ATOM_DEVICE_TV1_SUPPORT);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DAC_LOAD_MISC_YPrPb;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
index, (
uint32_t*)&args, sizeof(args));drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-13Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);
- structamdgpu_connector*amdgpu_connector=to_amdgpu_connector(connector);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->devices);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(ATOM_S0_CV_MASK|ATOM_S0_CV_MASK_A))
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_S0_TV1_COMPOSITE_A))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_S0_TV1_SVIDEO_A))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-12Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);
- structamdgpu_connector*amdgpu_connector=to_amdgpu_connector(connector);
- structdrm_encoder*ext_encoder=amdgpu_get_external_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ext_encoder,drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_encoder->devices);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-10Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(ATOM_S0_CV_MASK|ATOM_S0_CV_MASK_A))
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_S0_TV1_COMPOSITE_A))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ATOM_S0_TV1_SVIDEO_A))drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*encoder)
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_get_external_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ext_encoder,drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*connector,
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-8Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
to_amdgpu_encoder(encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-155Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENUM_ID_SHIFT;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
NULL,
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
data_offset);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
info.sLCDTiming.usHBlanking_Time);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +1
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
info.sLCDTiming.usVBlanking_Time);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +1
-9Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
info.sLCDTiming.susModeMiscInfo.usAccess);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DRM_MODE_FLAG_NVSYNC;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DRM_MODE_FLAG_NHSYNC;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DRM_MODE_FLAG_INTERLACE;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
DRM_MODE_FLAG_DBLSCAN;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
info.sLCDTiming.usImageHSize);
-
lvds->native_mode.height_mm= le16_to_cpu(lvds_info-Quoted 1 line
info.sLCDTiming.usImageVSize);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
CRTC_INTERLACE_HALVE_V);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*panel_res_record;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +1
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
info.usModePatchTableOffset));
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +1
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
info.usModePatchTableOffset));
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
LCD_MODE_PATCH_RECORD_MODE_TYPE:
- record +=sizeof(ATOM_PATCH_RECORD_MODE);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
sizeof(ATOM_LCD_RTS_RECORD);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
sizeof(ATOM_LCD_MODE_CONTROL_CAP);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ATOM_FAKE_EDID_PATCH_RECORD*)record;
- if (fake_edid_record-Quoted 1 line
ucFakeEDIDLength) {
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
ucFakeEDIDLength == 128)
-
edid_size=fake_edid_record->ucFakeEDIDLength;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
fake_edid_record->ucFakeEDIDLength* 128;
- edid =drm_edid_alloc(fake_edid_record->ucFakeEDIDString, edid_size);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 1 line
mode_info.bios_hardcoded_edid = edid;
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
struct_size(fake_edid_record,
-
ucFakeEDIDString,drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
be 3 bytes long */
- record +=sizeof(ATOM_FAKE_EDID_PATCH_RECORD)+ 1;drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-4Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
(
ATOM_PANEL_RESOLUTION_PATCH_RECORD*)record;
-lvds->native_mode.width_mm=panel_res_record->usHSize;
-lvds->native_mode.height_mm=panel_res_record->usVSize;
- record +=sizeof(ATOM_PANEL_RESOLUTION_PATCH_RECORD);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*record);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-13Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_encoder)drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
ENUM_ID_MASK) >>ENUM_ID_SHIFT;
- structamdgpu_encoder_atom_dig*dig = kzalloc_obj(structamdgpu_encoder_atom_dig);drivers/gpu/drm/amd/amdgpu/atombios_encoders.c deleted +0
-16Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-14Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- */drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
amdgpu_device*adev);drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*adev,
drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_encoder,drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_encoder,drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*encoder);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-5Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*encoder, int action,
drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-3Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*connector,
drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-15Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*encoder);
drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-2Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*connector,
drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-6Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
*amdgpu_encoder);drivers/gpu/drm/amd/amdgpu/atombios_encoders.h deleted +0
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0
-7Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
#if
defined(CONFIG_DEBUG_KERNEL_DC)
--
2.43.0
Part of the diff is not shown here. View the raw message.