Skip to contentSkip to conversation

DC Patches May 12, 2017

PATCH In review Harry Wentland 2 participants 34 messages May 12, 2017 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover DC Patches May 12, 2017

* Fix deadlock when plugging MST display
* Fix DVI->HDMI dongles
* Bunch of raven bandwidth changes
* Some more cleanup for i2c/aux

Amy Zhang (1):
drm/amd/display: Move output transfer function to stream updates

Andrey Grodzovsky (4):
drm/amd/display: i2c Remove link index.
drm/amd/display: DP aux Remove link index.
drm/amd/display: i2c/aux Remove link index.
drm/amd/display: Fix race.

Anthony Koo (2):
drm/amd/display: use signal type to decide whether to set backlight drm/amd/display: Implement support for backlight optimization

Charlene Liu (1):
drm/amd/display: single channel bandwidth verses dual channel
bandwidth

Corbin McElhanney (1):
drm/amd/display: fix freesync not working on raven

Dmytro Laktyushkin (9):
drm/amd/display: bw debug options now apply to dml as well drm/amd/display: prevent assert on error of 1 in calc_freesync_range drm/amd/display: refactor bw related variable structure in val_ctx drm/amd/display: switch to using calc_clk and cur_clk for dcn bw
setting
drm/amd/display: enable watermark range reporting to pplib drm/amd/display: fix scaling calculation for proper surface input
format
drm/amd/display: add yuv pixel formats to pixel_format_to_bpp() drm/amd/display: fix scaling info based surface update type check drm/amd/display: add explanation for surface_update_type

Harry Wentland (6):
drm/amd/display: Don't call PSR func if DMCU is off drm/amd/display: Keep DVI_SINGLE_LINK signal if low clk drm/amd/display: ifdef some code only needed for DCN drm/amd/display: Use MED update type if clip position changes drm/amd/display: Add mem_input header to non-DCN builds drm/amd/display: DCE12 num_timing_generators should be 6

Ken Chalmers (1):
drm/amd/display: Continue with stream enable if DP link training
fails.

Leon Elazar (1):
drm/amd/display: Allow MPO on Raven

Pratik Vishwakarma (1):
drm/amd/display: get_atomic_property missing for drm_connector_funcs

Sun peng Li (1):
drm/amd/display: Reverting locks around updating freesync property

Tony Cheng (1):
drm/amd/display: do not set_mpc_tree if tree is already setup

Yongqiang Sun (2):
drm/amd/display: Only apply ctx for specific surface. drm/amd/display: Add 64KB_S_T and 64KB_D_T swizzle mode.

 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h           |   6 +-
 .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c    |  38 +++---
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.c    |  82 +++++++++---
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.h    |   6 +
 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c   |  18 +--
 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c   | 131 +++++++++++--------
 drivers/gpu/drm/amd/display/dc/core/dc.c           | 140 ++++++++-------------
 drivers/gpu/drm/amd/display/dc/core/dc_link.c      |  59 +++++----
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c   |   4 +-
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c  |  69 ++++++----
 drivers/gpu/drm/amd/display/dc/dc.h                |  51 +++++---
 drivers/gpu/drm/amd/display/dc/dc_hw_types.h       |  20 +--
 drivers/gpu/drm/amd/display/dc/dce/dce_abm.c       |  36 ++++--
 drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c    |  11 +-
 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c |   6 +-
 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h |  12 +-
 .../amd/display/dc/dce100/dce100_hw_sequencer.c    |   9 +-
 .../drm/amd/display/dc/dce100/dce100_resource.c    |   4 +-
 .../amd/display/dc/dce110/dce110_hw_sequencer.c    | 100 ++++++++-------
 .../drm/amd/display/dc/dce110/dce110_mem_input.c   |  12 +-
 .../drm/amd/display/dc/dce110/dce110_mem_input.h   |   6 +-
 .../drm/amd/display/dc/dce110/dce110_mem_input_v.c |  30 ++---
 .../drm/amd/display/dc/dce110/dce110_mem_input_v.h |   6 +-
 .../drm/amd/display/dc/dce110/dce110_resource.c    |  63 +++++-----
 .../drm/amd/display/dc/dce112/dce112_resource.c    |  63 +++++-----
 .../drm/amd/display/dc/dce120/dce120_resource.c    |   4 +-
 .../gpu/drm/amd/display/dc/dce80/dce80_resource.c  |   4 +-
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  | 121 +++++++++++++-----
 .../gpu/drm/amd/display/dc/dcn10/dcn10_mem_input.c |   6 +-
 .../gpu/drm/amd/display/dc/dcn10/dcn10_resource.c  |   4 +-
 drivers/gpu/drm/amd/display/dc/inc/core_status.h   |   1 +
 drivers/gpu/drm/amd/display/dc/inc/core_types.h    |  61 +++++++--
 drivers/gpu/drm/amd/display/dc/inc/dce_calcs.h     |  29 +----
 drivers/gpu/drm/amd/display/dc/inc/hw/abm.h        |   2 +
 drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h        |   2 +
 drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h  |  20 +--
 drivers/gpu/drm/amd/display/dc/inc/hw/opp.h        |   2 +
 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h  |   1 -
 .../drm/amd/display/modules/freesync/freesync.c    |  16 ++-
 39 files changed, 741 insertions(+), 514 deletions(-)
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20170512152104.5354-1-harry.wentland-5C7GfCeVMHo@public.gmane.org

#2 lore raw

PATCH 1/31 drm/amd/display: get_atomic_property missing for drm_connector_funcs

From: Pratik Vishwakarma <[email protected]>

DRM_IOCTL_MODE_GETCONNECTOR fails with EINVAL on enabling DRIVER_ATOMIC With this DRM_IOCTL_MODE_GETCONNECTOR returns all the connector properties. freesync_property and freesync_capable_property return 0 currently.

TESTS(On Chromium OS on Stoney Only)
* Builds without compilation errors.
* 'atomictest' proceeds after applying patch and fails with vblank event timed out.
* Chromium OS ui comes up.

Change-Id Ia020a085e27a95492b15934223f8da8ee6b635bf
---
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.c    | 53 +++++++++++++++++++++-
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.h    |  6 +++
 2 files changed, 58 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c +52 -1
index 9e5ff1cf1fc2..1fd5d1a17019 100644
@@ -1367,6 +1367,56 @@ int amdgpu_dm_connector_atomic_set_property(
 	return ret;
 }
 
+int amdgpu_dm_connector_atomic_get_property(
+	struct drm_connector *connector,
+	const struct drm_connector_state *state,
+	struct drm_property *property,
+	uint64_t *val)
+{
+	struct drm_device *dev = connector->dev;
+	struct amdgpu_device *adev = dev->dev_private;
+	struct dm_connector_state *dm_state =
+		to_dm_connector_state(state);
+	int ret = -EINVAL;
+
+	if (property == dev->mode_config.scaling_mode_property) {
+		switch (dm_state->scaling) {
+		case RMX_CENTER:
+			*val = DRM_MODE_SCALE_CENTER;
+			break;
+		case RMX_ASPECT:
+			*val = DRM_MODE_SCALE_ASPECT;
+			break;
+		case RMX_FULL:
+			*val = DRM_MODE_SCALE_FULLSCREEN;
+			break;
+		case RMX_OFF:
+		default:
+			*val = DRM_MODE_SCALE_NONE;
+			break;
+		}
+		ret = 0;
+	} else if (property == adev->mode_info.underscan_hborder_property) {
+		*val = dm_state->underscan_hborder;
+		ret = 0;
+	} else if (property == adev->mode_info.underscan_vborder_property) {
+		*val = dm_state->underscan_vborder;
+		ret = 0;
+	} else if (property == adev->mode_info.underscan_property) {
+		*val = dm_state->underscan_enable;
+		ret = 0;
+	} else if (property == adev->mode_info.freesync_property) {
+		//TODO
+		*val = 0;
+		ret = 0;
+	} else if (property == adev->mode_info.freesync_capable_property) {
+		//TODO
+		*val = 0;
+		ret = 0;
+	}
+	return ret;
+}
+
 void amdgpu_dm_connector_destroy(struct drm_connector *connector)
 {
 	struct amdgpu_connector *aconnector = to_amdgpu_connector(connector);
@@ -1438,7 +1488,8 @@ static const struct drm_connector_funcs amdgpu_dm_connector_funcs = {
 	.destroy = amdgpu_dm_connector_destroy,
 	.atomic_duplicate_state = amdgpu_dm_connector_atomic_duplicate_state,
 	.atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
-	.atomic_set_property = amdgpu_dm_connector_atomic_set_property
+	.atomic_set_property = amdgpu_dm_connector_atomic_set_property,
+	.atomic_get_property = amdgpu_dm_connector_atomic_get_property
 };
 
 static struct drm_encoder *best_encoder(struct drm_connector *connector)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.h +6 -0
index ab6d51dbbf4b..b69c86826b1a 100644
@@ -71,6 +71,12 @@ int amdgpu_dm_connector_atomic_set_property(
 	struct drm_property *property,
 	uint64_t val);
 
+int amdgpu_dm_connector_atomic_get_property(
+	struct drm_connector *connector,
+	const struct drm_connector_state *state,
+	struct drm_property *property,
+	uint64_t *val);
+
 int amdgpu_dm_get_encoder_crtc_mask(struct amdgpu_device *adev);
 
 void amdgpu_dm_connector_init_helper(
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#3 lore raw

PATCH 2/31 drm/amd/display: Don't call PSR func if DMCU is off

In reply to a message not in the archive
Change-Id I3e5b4f95429a959d0981ba57f23bd4d9fc60a604
---
 drivers/gpu/drm/amd/display/dc/core/dc_link.c   |  8 --------
 drivers/gpu/drm/amd/display/dc/dce/dce_abm.c    | 23 +++++++++++++++--------
 drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c | 11 ++++++++---
 drivers/gpu/drm/amd/display/dc/inc/hw/abm.h     |  1 +
 4 files changed, 24 insertions(+), 19 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +0 -8
index 6f78403e2d64..95d042a15409 100644
@@ -46,14 +46,6 @@
 #include "dce/dce_11_0_enum.h"
 #include "dce/dce_11_0_sh_mask.h"
 
-#ifndef mmDMCU_STATUS__UC_IN_RESET__SHIFT
-#define mmDMCU_STATUS__UC_IN_RESET__SHIFT 0x0
-#endif
-
-#ifndef mmDMCU_STATUS__UC_IN_RESET_MASK
-#define mmDMCU_STATUS__UC_IN_RESET_MASK 0x00000001L
-#endif
-
 #define LINK_INFO(...) \
 	dm_logger_write(dc_ctx->logger, LOG_HW_HOTPLUG, \
 		__VA_ARGS__)
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c +15 -8
index 45a3079c0973..393c43559825 100644
@@ -366,6 +366,16 @@ static bool dce_abm_init_backlight(struct abm *abm)
 	return true;
 }
 
+static bool is_dmcu_initialized(struct abm *abm)
+{
+	struct dce_abm *abm_dce = TO_DCE_ABM(abm);
+	unsigned int dmcu_uc_reset;
+
+	REG_GET(DMCU_STATUS, UC_IN_RESET, &dmcu_uc_reset);
+
+	return !dmcu_uc_reset;
+}
+
 static bool dce_abm_set_backlight_level(
 		struct abm *abm,
 		unsigned int backlight_level,
@@ -373,23 +383,19 @@ static bool dce_abm_set_backlight_level(
 		unsigned int controller_id)
 {
 	struct dce_abm *abm_dce = TO_DCE_ABM(abm);
-	unsigned int dmcu_uc_reset;
 
 	dm_logger_write(abm->ctx->logger, LOG_BACKLIGHT,
 			"New Backlight level: %d (0x%X)\n",
 			backlight_level, backlight_level);
 
-	REG_GET(DMCU_STATUS, UC_IN_RESET, &dmcu_uc_reset);
-
 	/* If DMCU is in reset state, DMCU is uninitialized */
-	if (dmcu_uc_reset) {
-		driver_set_backlight_level(abm_dce, backlight_level);
-	} else {
+	if (is_dmcu_initialized(abm))
 		dmcu_set_backlight_level(abm_dce,
 				backlight_level,
 				frame_ramp,
 				controller_id);
-	}
+	else
+		driver_set_backlight_level(abm_dce, backlight_level);
 
 	return true;
 }
@@ -398,7 +404,8 @@ static const struct abm_funcs dce_funcs = {
 	.abm_init = dce_abm_init,
 	.set_abm_level = dce_abm_set_level,
 	.init_backlight = dce_abm_init_backlight,
-	.set_backlight_level = dce_abm_set_backlight_level
+	.set_backlight_level = dce_abm_set_backlight_level,
+	.is_dmcu_initialized = is_dmcu_initialized
 };
 
 static void dce_abm_construct(
drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c +8 -3
index 6e56d8308d66..8bc0d0ff3a2e 100644
@@ -29,11 +29,15 @@
 #include "fixed32_32.h"
 #include "bios_parser_interface.h"
 #include "dc.h"
+#include "core_dc.h"
+#include "dce_abm.h"
 #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 #include "dcn_calcs.h"
 #include "core_dc.h"
 #endif
 
+
+
 #define TO_DCE_CLOCKS(clocks)\
 	container_of(clocks, struct dce_disp_clk, base)
 
@@ -374,6 +378,8 @@ static void dce112_set_clock(
 	struct dce_disp_clk *clk_dce = TO_DCE_CLOCKS(clk);
 	struct bp_set_dce_clock_parameters dce_clk_params;
 	struct dc_bios *bp = clk->ctx->dc_bios;
+	struct core_dc *core_dc = DC_TO_CORE(clk->ctx->dc);
+	struct abm *abm =  core_dc->res_pool->abm;
 
 	/* Prepare to program display clock*/
 	memset(&dce_clk_params, 0, sizeof(dce_clk_params));
@@ -404,9 +410,8 @@ static void dce112_set_clock(
 
 	bp->funcs->set_dce_clock(bp, &dce_clk_params);
 
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
-	dce_psr_wait_loop(clk_dce, requested_clk_khz);
-#endif
+	if (abm->funcs->is_dmcu_initialized(abm))
+		dce_psr_wait_loop(clk_dce, requested_clk_khz);
 
 }
 
drivers/gpu/drm/amd/display/dc/inc/hw/abm.h +1 -0
index 7d07b7922391..ceabbd3bf5f8 100644
@@ -40,6 +40,7 @@ struct abm_funcs {
 			unsigned int backlight_level,
 			unsigned int frame_ramp,
 			unsigned int controller_id);
+	bool (*is_dmcu_initialized)(struct abm *abm);
 };
 
 #endif
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#4 lore raw

PATCH 3/31 drm/amd/display: i2c Remove link index.

In reply to a message not in the archive

From: Andrey Grodzovsky <[email protected]>

Header change for DAL change under same name.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +2 -2
index 9362a04eaa59..013e796b0a40 100644
@@ -567,8 +567,8 @@ struct amdgpu_dm_dp_aux {
 
 struct amdgpu_i2c_adapter {
 	struct i2c_adapter base;
-	struct amdgpu_display_manager *dm;
-	uint32_t link_index;
+
+	struct ddc_service *ddc_service;
 };
 
 #define TO_DM_AUX(x) container_of((x), struct amdgpu_dm_dp_aux, aux)
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#5 lore raw

PATCH 4/31 drm/amd/display: DP aux Remove link index.

In reply to a message not in the archive

From: Andrey Grodzovsky <[email protected]>

Header change for DAL change under same name.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +1 -1
index 013e796b0a40..b3a9fcc2cee2 100644
@@ -562,7 +562,7 @@ enum amdgpu_connector_dither {
 
 struct amdgpu_dm_dp_aux {
 	struct drm_dp_aux aux;
-	uint32_t link_index;
+	struct ddc_service *ddc_service;
 };
 
 struct amdgpu_i2c_adapter {
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#6 lore raw

PATCH 5/31 drm/amd/display: Keep DVI_SINGLE_LINK signal if low clk

In reply to a message not in the archive

If user is using DVI->HDMI dongle dual link signal might pose a problem. Keep single link signal type if clk is lower than max tmds clk.

Change-Id I6ad1009bb195e0d1ba91a9801c6125778419f739
---
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +6 -3
index ae8b221c85aa..9588217e0220 100644
@@ -1283,9 +1283,12 @@ static void update_stream_signal(struct core_stream *stream)
 		stream->signal = stream->public.output_signal;
 	}
 
-	if (stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK &&
-		stream->public.timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK_IN_KHZ)
-		stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK;
+	if (dc_is_dvi_signal(stream->signal)) {
+		if (stream->public.timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK_IN_KHZ)
+			stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK;
+		else
+			stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK;
+	}
 }
 
 bool resource_is_stream_unchanged(
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#7 lore raw

PATCH 6/31 drm/amd/display: i2c/aux Remove link index.

In reply to a message not in the archive

From: Andrey Grodzovsky <[email protected]>

Link index is an unnecessery level of inderection when calling from kernel i2c/aux transfer into DAL.

Change-Id I3413e46e12a8134f6be521a39884688f6caa1b56
Change-Id If9962dc66a4e0298b02fdc61c9579c843f959cdd
---
 .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c    | 38 +++++++++++-----------
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.c    | 22 +++++++++----
 drivers/gpu/drm/amd/display/dc/core/dc.c           | 19 ++++-------
 drivers/gpu/drm/amd/display/dc/core/dc_link.c      | 28 ++++++++--------
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c   |  4 +--
 drivers/gpu/drm/amd/display/dc/dc.h                |  9 ++---
 drivers/gpu/drm/amd/display/dc/inc/core_types.h    |  1 -
 7 files changed, 58 insertions(+), 63 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +19 -19
index 0e79ba920b06..8c767ef5abf4 100644
@@ -33,6 +33,8 @@
 #include "dc.h"
 #include "dm_helpers.h"
 
+#include "dc_link_ddc.h"
+
 /* #define TRACE_DPCD */
 
 #ifdef TRACE_DPCD
@@ -77,43 +79,41 @@ void log_dpcd(uint8_t type,
 
 static ssize_t dm_dp_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)
 {
-	struct pci_dev *pdev = to_pci_dev(aux->dev);
-	struct drm_device *drm_dev = pci_get_drvdata(pdev);
-	struct amdgpu_device *adev = drm_dev->dev_private;
-	struct dc *dc = adev->dm.dc;
 	enum i2c_mot_mode mot = (msg->request & DP_AUX_I2C_MOT) ? I2C_MOT_TRUE : I2C_MOT_FALSE;
-	bool res;
+	enum ddc_result res;
 
 	switch (msg->request & ~DP_AUX_I2C_MOT) {
 	case DP_AUX_NATIVE_READ:
-		res = dc_read_aux_dpcd(
-				dc,
-				TO_DM_AUX(aux)->link_index,
+		res = dal_ddc_service_read_dpcd_data(
+				TO_DM_AUX(aux)->ddc_service,
+				false,
+				I2C_MOT_UNDEF,
 				msg->address,
 				msg->buffer,
 				msg->size);
 		break;
 	case DP_AUX_NATIVE_WRITE:
-		res = dc_write_aux_dpcd(
-				dc,
-				TO_DM_AUX(aux)->link_index,
+		res = dal_ddc_service_write_dpcd_data(
+				TO_DM_AUX(aux)->ddc_service,
+				false,
+				I2C_MOT_UNDEF,
 				msg->address,
 				msg->buffer,
 				msg->size);
 		break;
 	case DP_AUX_I2C_READ:
-		res = dc_read_aux_i2c(
-				dc,
-				TO_DM_AUX(aux)->link_index,
+		res = dal_ddc_service_read_dpcd_data(
+				TO_DM_AUX(aux)->ddc_service,
+				true,
 				mot,
 				msg->address,
 				msg->buffer,
 				msg->size);
 		break;
 	case DP_AUX_I2C_WRITE:
-		res = dc_write_aux_i2c(
-				dc,
-				TO_DM_AUX(aux)->link_index,
+		res = dal_ddc_service_write_dpcd_data(
+				TO_DM_AUX(aux)->ddc_service,
+				true,
 				mot,
 				msg->address,
 				msg->buffer,
@@ -128,7 +128,7 @@ static ssize_t dm_dp_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg
 			msg->address,
 			msg->buffer,
 			msg->size,
-			res);
+			r == DDC_RESULT_SUCESSFULL);
 #endif
 
 	return msg->size;
@@ -446,7 +446,7 @@ void amdgpu_dm_initialize_dp_connector(
 	aconnector->dm_dp_aux.aux.name = "dmdc";
 	aconnector->dm_dp_aux.aux.dev = dm->adev->dev;
 	aconnector->dm_dp_aux.aux.transfer = dm_dp_aux_transfer;
-	aconnector->dm_dp_aux.link_index = aconnector->connector_id;
+	aconnector->dm_dp_aux.ddc_service = aconnector->dc_link->ddc;
 
 	drm_dp_aux_register(&aconnector->dm_dp_aux.aux);
 	aconnector->mst_mgr.cbs = &dm_mst_cbs;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c +15 -7
index 1fd5d1a17019..9ba16cc512cb 100644
@@ -51,6 +51,8 @@
 
 #include "modules/inc/mod_freesync.h"
 
+#include "i2caux_interface.h"
+
 struct dm_connector_state {
 	struct drm_connector_state base;
 
@@ -2183,6 +2185,7 @@ int amdgpu_dm_i2c_xfer(struct i2c_adapter *i2c_adap,
 		      struct i2c_msg *msgs, int num)
 {
 	struct amdgpu_i2c_adapter *i2c = i2c_get_adapdata(i2c_adap);
+	struct ddc_service *ddc_service = i2c->ddc_service;
 	struct i2c_command cmd;
 	int i;
 	int result = -EIO;
@@ -2203,11 +2206,13 @@ int amdgpu_dm_i2c_xfer(struct i2c_adapter *i2c_adap,
 		cmd.payloads[i].data = msgs[i].buf;
 	}
 
-	if (dc_submit_i2c(i2c->dm->dc, i2c->link_index, &cmd))
+	if (dal_i2caux_submit_i2c_command(
+			ddc_service->ctx->i2caux,
+			ddc_service->ddc_pin,
+			&cmd))
 		result = num;
 
 	kfree(cmd.payloads);
-
 	return result;
 }
 
@@ -2221,19 +2226,22 @@ static const struct i2c_algorithm amdgpu_dm_i2c_algo = {
 	.functionality = amdgpu_dm_i2c_func,
 };
 
-struct amdgpu_i2c_adapter *create_i2c(unsigned int link_index, struct amdgpu_display_manager *dm, int *res)
+static struct amdgpu_i2c_adapter *create_i2c(
+		struct ddc_service *ddc_service,
+		int link_index,
+		int *res)
 {
+	struct amdgpu_device *adev = ddc_service->ctx->driver_context;
 	struct amdgpu_i2c_adapter *i2c;
 
 	i2c = kzalloc(sizeof (struct amdgpu_i2c_adapter), GFP_KERNEL);
-	i2c->dm = dm;
 	i2c->base.owner = THIS_MODULE;
 	i2c->base.class = I2C_CLASS_DDC;
-	i2c->base.dev.parent = &dm->adev->pdev->dev;
+	i2c->base.dev.parent = &adev->pdev->dev;
 	i2c->base.algo = &amdgpu_dm_i2c_algo;
 	snprintf(i2c->base.name, sizeof (i2c->base.name), "AMDGPU DM i2c hw bus %d", link_index);
-	i2c->link_index = link_index;
 	i2c_set_adapdata(&i2c->base, i2c);
+	i2c->ddc_service = ddc_service;
 
 	return i2c;
 }
@@ -2255,7 +2263,7 @@ int amdgpu_dm_connector_init(
 
 	DRM_DEBUG_KMS("%s()\n", __func__);
 
-	i2c = create_i2c(link->link_index, dm, &res);
+	i2c = create_i2c(link->ddc, link->link_index, &res);
 	aconnector->i2c = i2c;
 	res = i2c_add_adapter(&i2c->base);
 
drivers/gpu/drm/amd/display/dc/core/dc.c +6 -13
index 738acf0cc7db..d063a252ccd9 100644
@@ -1525,13 +1525,6 @@ const struct graphics_object_id dc_get_link_id_at_index(
 	return core_dc->links[link_index]->link_id;
 }
 
-const struct ddc_service *dc_get_ddc_at_index(
-	struct dc *dc, uint32_t link_index)
-{
-	struct core_dc *core_dc = DC_TO_CORE(dc);
-	return core_dc->links[link_index]->ddc;
-}
-
 enum dc_irq_source dc_get_hpd_irq_source_at_index(
 	struct dc *dc, uint32_t link_index)
 {
@@ -1639,7 +1632,7 @@ bool dc_read_aux_dpcd(
 
 	struct core_link *link = core_dc->links[link_index];
 	enum ddc_result r = dal_ddc_service_read_dpcd_data(
-			link->ddc,
+			link->public.ddc,
 			false,
 			I2C_MOT_UNDEF,
 			address,
@@ -1659,7 +1652,7 @@ bool dc_write_aux_dpcd(
 	struct core_link *link = core_dc->links[link_index];
 
 	enum ddc_result r = dal_ddc_service_write_dpcd_data(
-			link->ddc,
+			link->public.ddc,
 			false,
 			I2C_MOT_UNDEF,
 			address,
@@ -1680,7 +1673,7 @@ bool dc_read_aux_i2c(
 
 		struct core_link *link = core_dc->links[link_index];
 		enum ddc_result r = dal_ddc_service_read_dpcd_data(
-			link->ddc,
+			link->public.ddc,
 			true,
 			mot,
 			address,
@@ -1701,7 +1694,7 @@ bool dc_write_aux_i2c(
 	struct core_link *link = core_dc->links[link_index];
 
 	enum ddc_result r = dal_ddc_service_write_dpcd_data(
-			link->ddc,
+			link->public.ddc,
 			true,
 			mot,
 			address,
@@ -1724,7 +1717,7 @@ bool dc_query_ddc_data(
 	struct core_link *link = core_dc->links[link_index];
 
 	bool result = dal_ddc_service_query_ddc_data(
-			link->ddc,
+			link->public.ddc,
 			address,
 			write_buf,
 			write_size,
@@ -1742,7 +1735,7 @@ bool dc_submit_i2c(
 	struct core_dc *core_dc = DC_TO_CORE(dc);
 
 	struct core_link *link = core_dc->links[link_index];
-	struct ddc_service *ddc = link->ddc;
+	struct ddc_service *ddc = link->public.ddc;
 
 	return dal_i2caux_submit_i2c_command(
 		ddc->ctx->i2caux,
drivers/gpu/drm/amd/display/dc/core/dc_link.c +14 -14
index 95d042a15409..97cfd5bd3853 100644
@@ -66,8 +66,8 @@ static void destruct(struct core_link *link)
 {
 	int i;
 
-	if (link->ddc)
-		dal_ddc_service_destroy(&link->ddc);
+	if (link->public.ddc)
+		dal_ddc_service_destroy(&link->public.ddc);
 
 	if(link->link_enc)
 		link->link_enc->funcs->destroy(&link->link_enc);
@@ -320,7 +320,7 @@ static bool is_dp_sink_present(struct core_link *link)
 		((connector_id == CONNECTOR_ID_DISPLAY_PORT) ||
 		(connector_id == CONNECTOR_ID_EDP));
 
-	ddc = dal_ddc_service_get_ddc_pin(link->ddc);
+	ddc = dal_ddc_service_get_ddc_pin(link->public.ddc);
 
 	if (!ddc) {
 		BREAK_TO_DEBUGGER();
@@ -526,7 +526,7 @@ static void detect_dp(
 		}
 	} else {
 		/* DP passive dongles */
-		sink_caps->signal = dp_passive_dongle_detection(link->ddc,
+		sink_caps->signal = dp_passive_dongle_detection(link->public.ddc,
 				sink_caps,
 				audio_support);
 	}
@@ -629,11 +629,11 @@ bool dc_link_detect(const struct dc_link *dc_link, bool boot)
 				link->dpcd_sink_count = 1;
 
 		dal_ddc_service_set_transaction_type(
-						link->ddc,
+						link->public.ddc,
 						sink_caps.transaction_type);
 
 		link->public.aux_mode = dal_ddc_service_is_in_aux_transaction_mode(
-				link->ddc);
+				link->public.ddc);
 
 		sink_init_data.link = &link->public;
 		sink_init_data.sink_signal = sink_caps.signal;
@@ -784,7 +784,7 @@ static enum channel_id get_ddc_line(struct core_link *link)
 	struct ddc *ddc;
 	enum channel_id channel = CHANNEL_ID_UNKNOWN;
 
-	ddc = dal_ddc_service_get_ddc_pin(link->ddc);
+	ddc = dal_ddc_service_get_ddc_pin(link->public.ddc);
 
 	if (ddc) {
 		switch (dal_ddc_get_line(ddc)) {
@@ -971,16 +971,16 @@ static bool construct(
 	ddc_service_init_data.ctx = link->ctx;
 	ddc_service_init_data.id = link->link_id;
 	ddc_service_init_data.link = link;
-	link->ddc = dal_ddc_service_create(&ddc_service_init_data);
+	link->public.ddc = dal_ddc_service_create(&ddc_service_init_data);
 
-	if (NULL == link->ddc) {
+	if (link->public.ddc == NULL) {
 		DC_ERROR("Failed to create ddc_service!\n");
 		goto ddc_create_fail;
 	}
 
 	link->public.ddc_hw_inst =
 		dal_ddc_get_line(
-			dal_ddc_service_get_ddc_pin(link->ddc));
+			dal_ddc_service_get_ddc_pin(link->public.ddc));
 
 	enc_init_data.ctx = dc_ctx;
 	bp_funcs->get_src_obj(dc_ctx->dc_bios, link->link_id, 0, &enc_init_data.encoder);
@@ -1049,7 +1049,7 @@ static bool construct(
 device_tag_fail:
 	link->link_enc->funcs->destroy(&link->link_enc);
 link_enc_create_fail:
-	dal_ddc_service_destroy(&link->ddc);
+	dal_ddc_service_destroy(&link->public.ddc);
 ddc_create_fail:
 create_fail:
 
@@ -1256,7 +1256,7 @@ static void enable_link_hdmi(struct pipe_ctx *pipe_ctx)
 
 	if (dc_is_hdmi_signal(pipe_ctx->stream->signal))
 		dal_ddc_service_write_scdc_data(
-			stream->sink->link->ddc,
+			stream->sink->link->public.ddc,
 			stream->phy_pix_clk,
 			stream->public.timing.flags.LTE_340MCSC_SCRAMBLE);
 
@@ -1276,7 +1276,7 @@ static void enable_link_hdmi(struct pipe_ctx *pipe_ctx)
 			stream->phy_pix_clk);
 
 	if (pipe_ctx->stream->signal == SIGNAL_TYPE_HDMI_TYPE_A)
-		dal_ddc_service_read_scdc_data(link->ddc);
+		dal_ddc_service_read_scdc_data(link->public.ddc);
 }
 
 /****************************enable_link***********************************/
@@ -1474,7 +1474,7 @@ bool dc_link_setup_psr(const struct dc_link *dc_link,
 			&psr_configuration.raw,
 			sizeof(psr_configuration.raw));
 
-		psr_context.channel = link->ddc->ddc_pin->hw_info.ddc_channel;
+		psr_context.channel = link->public.ddc->ddc_pin->hw_info.ddc_channel;
 		psr_context.transmitterId = link->link_enc->transmitter;
 		psr_context.engineId = link->link_enc->preferred_engine;
 
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +2 -2
index a0d192774a22..98048fe6239e 100644
@@ -1913,7 +1913,7 @@ static void get_active_converter_info(
 	/* decode converter info*/
 	if (!ds_port.fields.PORT_PRESENT) {
 		link->dpcd_caps.dongle_type = DISPLAY_DONGLE_NONE;
-		ddc_service_set_dongle_type(link->ddc,
+		ddc_service_set_dongle_type(link->public.ddc,
 				link->dpcd_caps.dongle_type);
 		return;
 	}
@@ -1983,7 +1983,7 @@ static void get_active_converter_info(
 		}
 	}
 
-	ddc_service_set_dongle_type(link->ddc, link->dpcd_caps.dongle_type);
+	ddc_service_set_dongle_type(link->public.ddc, link->dpcd_caps.dongle_type);
 
 	{
 		struct dp_device_vendor_id dp_id;
drivers/gpu/drm/amd/display/dc/dc.h +2 -7
index d74bbdce1090..c7e503a91f45 100644
@@ -646,6 +646,8 @@ struct dc_link {
 
 	void *priv;
 	bool aux_mode;
+
+	struct ddc_service *ddc;
 };
 
 struct dpcd_caps {
@@ -829,13 +831,6 @@ void dc_set_power_state(
 		enum dc_acpi_cm_power_state power_state);
 void dc_resume(const struct dc *dc);
 
-/*******************************************************************************
- * DDC Interfaces
- ******************************************************************************/
-
-const struct ddc_service *dc_get_ddc_at_index(
-		struct dc *dc, uint32_t link_index);
-
 /*
  * DPCD access interfaces
  */
drivers/gpu/drm/amd/display/dc/inc/core_types.h +0 -1
index c1273d6142c4..fcda3c7db818 100644
@@ -151,7 +151,6 @@ struct core_link {
 	struct dc_context *ctx; /* TODO: AUTO remove 'dal' when DC is complete*/
 
 	struct link_encoder *link_enc;
-	struct ddc_service *ddc;
 	struct graphics_object_id link_id;
 	union ddi_channel_mapping ddi_channel_mapping;
 	struct connector_device_tag_info device_tag;
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#8 lore raw

PATCH 7/31 drm/amd/display: bw debug options now apply to dml as well

In reply to a message not in the archive

From: Dmytro Laktyushkin <[email protected]>

Change-Id I998aadaee02116230951c3899e784708487225e5
---
 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 41 ++++++++++++++++++++----
 1 file changed, 34 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c +34 -7
index eb81edf3afa9..22d98ef69a77 100644
@@ -614,23 +614,49 @@ static void calc_wm_sets_and_perf_params(
 		context->watermarks.d = context->watermarks.a;
 }
 
-static void dcn_bw_apply_registry_override(struct core_dc *dc)
+static bool dcn_bw_apply_registry_override(struct core_dc *dc)
 {
+	bool updated = false;
+
 	kernel_fpu_begin();
-	if (dc->public.debug.sr_exit_time_ns)
+	if ((int)(dc->dcn_soc.sr_exit_time * 1000) != dc->public.debug.sr_exit_time_ns
+			&& dc->public.debug.sr_exit_time_ns) {
+		updated = true;
 		dc->dcn_soc.sr_exit_time = dc->public.debug.sr_exit_time_ns / 1000.0;
-	if (dc->public.debug.sr_enter_plus_exit_time_ns)
+	}
+
+	if ((int)(dc->dcn_soc.sr_enter_plus_exit_time * 1000)
+				!= dc->public.debug.sr_enter_plus_exit_time_ns
+			&& dc->public.debug.sr_enter_plus_exit_time_ns) {
+		updated = true;
 		dc->dcn_soc.sr_enter_plus_exit_time =
 				dc->public.debug.sr_enter_plus_exit_time_ns / 1000.0;
-	if (dc->public.debug.urgent_latency_ns)
+	}
+
+	if ((int)(dc->dcn_soc.urgent_latency * 1000) != dc->public.debug.urgent_latency_ns
+			&& dc->public.debug.urgent_latency_ns) {
+		updated = true;
 		dc->dcn_soc.urgent_latency = dc->public.debug.urgent_latency_ns / 1000.0;
-	if (dc->public.debug.percent_of_ideal_drambw)
+	}
+
+	if ((int)(dc->dcn_soc.percent_of_ideal_drambw_received_after_urg_latency * 1000)
+				!= dc->public.debug.percent_of_ideal_drambw
+			&& dc->public.debug.percent_of_ideal_drambw) {
+		updated = true;
 		dc->dcn_soc.percent_of_ideal_drambw_received_after_urg_latency =
 				dc->public.debug.percent_of_ideal_drambw;
-	if (dc->public.debug.dram_clock_change_latency_ns)
+	}
+
+	if ((int)(dc->dcn_soc.dram_clock_change_latency * 1000)
+				!= dc->public.debug.dram_clock_change_latency_ns
+			&& dc->public.debug.dram_clock_change_latency_ns) {
+		updated = true;
 		dc->dcn_soc.dram_clock_change_latency =
 				dc->public.debug.dram_clock_change_latency_ns / 1000.0;
+	}
 	kernel_fpu_end();
+
+	return updated;
 }
 
 bool dcn_validate_bandwidth(
@@ -642,7 +668,8 @@ bool dcn_validate_bandwidth(
 	int i, input_idx;
 	int vesa_sync_start, asic_blank_end, asic_blank_start;
 
-	dcn_bw_apply_registry_override(DC_TO_CORE(&dc->public));
+	if (dcn_bw_apply_registry_override(DC_TO_CORE(&dc->public)))
+		dcn_bw_sync_calcs_and_dml(DC_TO_CORE(&dc->public));
 
 	memset(v, 0, sizeof(*v));
 	kernel_fpu_begin();
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#9 lore raw

PATCH 8/31 drm/amd/display: Only apply ctx for specific surface.

In reply to a message not in the archive

From: Yongqiang Sun <[email protected]>

Change-Id Ifcf2bba5d0ac0200ae406e27407afdf237d13aa2
---
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +8 -6
index fb4eb4364bc7..ece8c96f3636 100644
@@ -1689,19 +1689,21 @@ static void dcn10_apply_ctx_for_surface(
 {
 	int i;
 
-	memcpy(context->res_ctx.mpc_tree,
-			dc->current_context->res_ctx.mpc_tree,
-			sizeof(struct mpc_tree_cfg) * dc->res_pool->pipe_count);
-
 	for (i = 0; i < dc->res_pool->pipe_count; i++) {
 		struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i];
 
-		if (!pipe_ctx->surface)
+		if (!pipe_ctx->surface || pipe_ctx->surface != surface)
 			continue;
 
+
 		/* looking for top pipe to program */
-		if (!pipe_ctx->top_pipe)
+		if (!pipe_ctx->top_pipe) {
+			memcpy(context->res_ctx.mpc_tree,
+					dc->current_context->res_ctx.mpc_tree,
+					sizeof(struct mpc_tree_cfg) * dc->res_pool->pipe_count);
+
 			program_all_pipe_in_tree(dc, pipe_ctx, context);
+		}
 	}
 
 	for (i = 0; i < dc->res_pool->pipe_count; i++) {
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#10 lore raw

PATCH 9/31 drm/amd/display: Allow MPO on Raven

In reply to a message not in the archive

From: Leon Elazar <[email protected]>

Change-Id Ib83bcc1d2cb23b409af8765b725f82d5ec5ca574
---
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c +2 -0
index 121eb3009445..41613ab5ca69 100644
@@ -1292,6 +1292,8 @@ static bool construct(
 	dc->public.caps.i2c_speed_in_khz = 100;
 	dc->public.caps.max_cursor_size = 256;
 
+	dc->public.caps.max_slave_planes = 1;
+
 	if (dc->ctx->dce_environment == DCE_ENV_PRODUCTION_DRV)
 		dc->public.debug = debug_defaults_drv;
 	else
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#11 lore raw

PATCH 10/31 drm/amd/display: Reverting locks around updating freesync property

In reply to a message not in the archive

From: Sun peng Li <[email protected]>

Revert "SWDEV-114487 - dm/amdgpu: Add lock around updating freesync property"

This reverts commit b54fd07f238a01f1155c9e2b378e148e5df2c548.

Change-Id Id0e10630bfc730eddcd964bdb654a9445d498032
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c +0 -3
index 9ba16cc512cb..6fddf31cc4e4 100644
@@ -1216,7 +1216,6 @@ static int amdgpu_freesync_update_property_atomic(
 	dev  = connector->dev;
 	adev = dev->dev_private;
 
-	drm_modeset_lock(&dev->mode_config.connection_mutex, NULL);
 	ret = drm_object_property_get_value(
 			&connector->base,
 			adev->mode_info.freesync_property,
@@ -1226,8 +1225,6 @@ static int amdgpu_freesync_update_property_atomic(
 				&connector->base,
 				adev->mode_info.freesync_property,
 				val_capable);
-	drm_modeset_unlock(&dev->mode_config.connection_mutex);
-
 	return ret;
 
 }
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#12 lore raw

PATCH 11/31 drm/amd/display: use signal type to decide whether to set backlight

In reply to a message not in the archive

From: Anthony Koo <[email protected]>

Change-Id Ie7955fcbbd19540fee0cb656a8bae5cace7bc4aa
---
 drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +1 -1
index 97cfd5bd3853..5d374cb8128b 100644
@@ -1389,7 +1389,7 @@ bool dc_link_set_backlight_level(const struct dc_link *dc_link, uint32_t level,
 	dm_logger_write(link->ctx->logger, LOG_BACKLIGHT,
 			"New Backlight level: %d (0x%X)\n", level, level);
 
-	if (link->device_tag.dev_id.device_type == DEVICE_TYPE_LCD) {
+	if (dc_is_embedded_signal(dc_link->connector_signal)) {
 		if (stream != NULL) {
 			core_stream = DC_STREAM_TO_CORE(stream);
 			for (i = 0; i < MAX_PIPES; i++) {
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#13 lore raw

PATCH 12/31 drm/amd/display: do not set_mpc_tree if tree is already setup

In reply to a message not in the archive

From: Tony Cheng <[email protected]>

Change-Id I7140155a62c2a25ba888cb02e93ecff5df54f61e
---
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  | 30 +++++++++++++++++-----
 1 file changed, 23 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +23 -7
index ece8c96f3636..41a6fa507982 100644
@@ -828,7 +828,7 @@ static void reset_front_end_for_pipe(
 	/* TODO: build stream pipes group id. For now, use stream otg
 	 * id as pipe group id
 	 */
-	tree_cfg = &context->res_ctx.mpc_tree[pipe_ctx->mpc_idx];
+	tree_cfg = &dc->current_context->res_ctx.mpc_tree[pipe_ctx->mpc_idx];
 
 	if (pipe_ctx->top_pipe == NULL)
 		dcn10_delete_mpc_tree(mpc, tree_cfg);
@@ -1523,6 +1523,8 @@ static void update_dchubp_dpp(
 	struct tg_color black_color = {0};
 	struct dcn10_mpc *mpc = TO_DCN10_MPC(dc->res_pool->mpc);
 
+	struct pipe_ctx *cur_pipe_ctx = &dc->current_context->res_ctx.pipe_ctx[pipe_ctx->pipe_idx];
+
 	/* depends on DML calculation, DPP clock value may change dynamically */
 	enable_dppclk(
 		dc->ctx,
@@ -1566,6 +1568,7 @@ static void update_dchubp_dpp(
 	 */
 	pipe_ctx->mpc_idx = pipe_ctx->tg->inst;
 	tree_cfg = &context->res_ctx.mpc_tree[pipe_ctx->mpc_idx];
+
 	/* enable when bottom pipe is present and
 	 * it does not share a surface with current pipe
 	 */
@@ -1576,21 +1579,29 @@ static void update_dchubp_dpp(
 		pipe_ctx->scl_data.lb_params.alpha_en = 0;
 		tree_cfg->mode = TOP_PASSTHRU;
 	}
-	if (!pipe_ctx->top_pipe) {
+	if (!pipe_ctx->top_pipe && !cur_pipe_ctx->bottom_pipe) {
 		/* primary pipe, set mpc tree index 0 only */
 		tree_cfg->num_pipes = 1;
 		tree_cfg->opp_id = pipe_ctx->tg->inst;
 		tree_cfg->dpp[0] = pipe_ctx->pipe_idx;
 		tree_cfg->mpcc[0] = pipe_ctx->pipe_idx;
-		dcn10_set_mpc_tree(mpc, tree_cfg);
-	} else {
-		/* TODO: add position is hard code to 1 for now
-		 * If more than 2 pipes are supported, calculate position
-		 */
+	}
+
+	if (!cur_pipe_ctx->top_pipe && !pipe_ctx->top_pipe) {
+
+		if (!cur_pipe_ctx->bottom_pipe)
+			dcn10_set_mpc_tree(mpc, tree_cfg);
+
+	} else if (!cur_pipe_ctx->top_pipe && pipe_ctx->top_pipe) {
+
 		dcn10_add_dpp(mpc, tree_cfg,
 			pipe_ctx->pipe_idx, pipe_ctx->pipe_idx, 1);
+	} else {
+		/* nothing to be done here */
+		ASSERT(cur_pipe_ctx->top_pipe && pipe_ctx->top_pipe);
 	}
 
+
 	color_space = pipe_ctx->stream->public.output_color_space;
 	color_space_to_black_color(dc, color_space, &black_color);
 	dcn10_set_mpc_background_color(mpc, pipe_ctx->pipe_idx, &black_color);
@@ -1641,13 +1652,18 @@ static void program_all_pipe_in_tree(
 					pipe_ctx->mi, &context->watermarks, ref_clk_mhz);
 			lock_otg_master_update(dc->ctx, pipe_ctx->tg->inst);
 		}
+
 		pipe_ctx->tg->dlg_otg_param.vready_offset = pipe_ctx->pipe_dlg_param.vready_offset;
 		pipe_ctx->tg->dlg_otg_param.vstartup_start = pipe_ctx->pipe_dlg_param.vstartup_start;
 		pipe_ctx->tg->dlg_otg_param.vupdate_offset = pipe_ctx->pipe_dlg_param.vupdate_offset;
 		pipe_ctx->tg->dlg_otg_param.vupdate_width = pipe_ctx->pipe_dlg_param.vupdate_width;
 		pipe_ctx->tg->dlg_otg_param.signal =  pipe_ctx->stream->signal;
+
 		pipe_ctx->tg->funcs->program_global_sync(
 				pipe_ctx->tg);
+
+
+
 		update_dchubp_dpp(dc, pipe_ctx, context);
 	}
 
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#14 lore raw

PATCH 13/31 drm/amd/display: Continue with stream enable if DP link training fails.

In reply to a message not in the archive

From: Ken Chalmers <[email protected]>

Not necessarily a fatal problem - some monitors will recover and show the stream anyway if link training fails.

Change-Id I9c6245066c3a8b80b8c40155086fe3c330752208
---
 drivers/gpu/drm/amd/display/dc/core/dc_link.c    | 21 +++++++++++++++++----
 drivers/gpu/drm/amd/display/dc/inc/core_status.h |  1 +
 2 files changed, 18 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +17 -4
index 5d374cb8128b..ffc0eeaad175 100644
@@ -1225,7 +1225,7 @@ static enum dc_status enable_link_dp(struct pipe_ctx *pipe_ctx)
 		status = DC_OK;
 	}
 	else
-		status = DC_ERROR_UNEXPECTED;
+		status = DC_FAIL_DP_LINK_TRAINING;
 
 	enable_stream_features(pipe_ctx);
 
@@ -1833,9 +1833,22 @@ void core_link_enable_stream(struct pipe_ctx *pipe_ctx)
 {
 	struct core_dc *core_dc = DC_TO_CORE(pipe_ctx->stream->ctx->dc);
 
-	if (DC_OK != enable_link(pipe_ctx)) {
-			BREAK_TO_DEBUGGER();
-			return;
+	enum dc_status status = enable_link(pipe_ctx);
+
+	if (status != DC_OK) {
+			dm_logger_write(pipe_ctx->stream->ctx->logger,
+			LOG_WARNING, "enabling link %u failed: %d\n",
+			pipe_ctx->stream->sink->link->public.link_index,
+			status);
+
+			/* Abort stream enable *unless* the failure was due to
+			 * DP link training - some DP monitors will recover and
+			 * show the stream anyway.
+			 */
+			if (status != DC_FAIL_DP_LINK_TRAINING) {
+				BREAK_TO_DEBUGGER();
+				return;
+			}
 	}
 
 	/* turn off otg test pattern if enable */
drivers/gpu/drm/amd/display/dc/inc/core_status.h +1 -0
index 128617dabc4a..b5759c0e5a2f 100644
@@ -41,6 +41,7 @@ enum dc_status {
 	DC_SURFACE_PIXEL_FORMAT_UNSUPPORTED = 11,
 	DC_FAIL_BANDWIDTH_VALIDATE = 12, /* BW and Watermark validation */
 	DC_FAIL_SCALING = 13,
+	DC_FAIL_DP_LINK_TRAINING = 14,
 
 	DC_ERROR_UNEXPECTED = -1
 };
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#15 lore raw

PATCH 14/31 drm/amd/display: Implement support for backlight optimization

In reply to a message not in the archive

From: Anthony Koo <[email protected]>

- Add functionality to get real hw backlight level as opposed to user level, meaning the level that takes into account backlight ramping over time and backlight reduction due to Varibright
- Add backlight optimization which allows for a second OS state that is able to control ABM

Change-Id Ieff9c0d9083ee77d3eba3a7636d39bcbe689980a
---
 drivers/gpu/drm/amd/display/dc/dce/dce_abm.c | 13 +++++++++++--
 drivers/gpu/drm/amd/display/dc/inc/hw/abm.h  |  1 +
 2 files changed, 12 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c +11 -2
index 393c43559825..cefffe164fe0 100644
@@ -60,7 +60,7 @@ struct abm_backlight_registers {
 static struct abm_backlight_registers stored_backlight_registers = {0};
 
 
-static unsigned int get_current_backlight(struct dce_abm *abm_dce)
+static unsigned int get_current_backlight_16_bit(struct dce_abm *abm_dce)
 {
 	uint64_t current_backlight;
 	uint32_t round_result;
@@ -252,7 +252,7 @@ static void dmcu_set_backlight_level(
 static void dce_abm_init(struct abm *abm)
 {
 	struct dce_abm *abm_dce = TO_DCE_ABM(abm);
-	unsigned int backlight = get_current_backlight(abm_dce);
+	unsigned int backlight = get_current_backlight_16_bit(abm_dce);
 
 	REG_WRITE(DC_ABM1_HG_SAMPLE_RATE, 0x103);
 	REG_WRITE(DC_ABM1_HG_SAMPLE_RATE, 0x101);
@@ -289,6 +289,14 @@ static void dce_abm_init(struct abm *abm)
 			ABM1_BL_REG_READ_MISSED_FRAME_CLEAR, 1);
 }
 
+static unsigned int dce_abm_get_current_backlight_8_bit(struct abm *abm)
+{
+	struct dce_abm *abm_dce = TO_DCE_ABM(abm);
+	unsigned int backlight = REG_READ(BL1_PWM_CURRENT_ABM_LEVEL);
+
+	return (backlight >> 8);
+}
+
 static bool dce_abm_set_level(struct abm *abm, uint32_t level)
 {
 	struct dce_abm *abm_dce = TO_DCE_ABM(abm);
@@ -405,6 +413,7 @@ static const struct abm_funcs dce_funcs = {
 	.set_abm_level = dce_abm_set_level,
 	.init_backlight = dce_abm_init_backlight,
 	.set_backlight_level = dce_abm_set_backlight_level,
+	.get_current_backlight_8_bit = dce_abm_get_current_backlight_8_bit,
 	.is_dmcu_initialized = is_dmcu_initialized
 };
 
drivers/gpu/drm/amd/display/dc/inc/hw/abm.h +1 -0
index ceabbd3bf5f8..da465b3e98e8 100644
@@ -40,6 +40,7 @@ struct abm_funcs {
 			unsigned int backlight_level,
 			unsigned int frame_ramp,
 			unsigned int controller_id);
+	unsigned int (*get_current_backlight_8_bit)(struct abm *abm);
 	bool (*is_dmcu_initialized)(struct abm *abm);
 };
 
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#16 lore raw

PATCH 15/31 drm/amd/display: ifdef some code only needed for DCN

In reply to a message not in the archive
Change-Id Ia910c1f4467c5bdbc7d1ee28ed9265c090cc184e
---
 drivers/gpu/drm/amd/display/dc/inc/core_types.h | 4 ++++
 drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h     | 2 ++
 drivers/gpu/drm/amd/display/dc/inc/hw/opp.h     | 2 ++
 3 files changed, 8 insertions(+)
drivers/gpu/drm/amd/display/dc/inc/core_types.h +4 -0
index fcda3c7db818..919c6632ee3e 100644
@@ -31,8 +31,10 @@
 #include "dcn_calcs.h"
 #include "ddc_service_types.h"
 #include "dc_bios_types.h"
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 #include "mem_input.h"
 #include "mpc.h"
+#endif
 
 struct core_stream;
 
@@ -256,7 +258,9 @@ struct resource_pool {
 
 	struct abm *abm;
 	struct dmcu *dmcu;
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 	struct mpc *mpc;
+#endif
 
 	const struct resource_funcs *funcs;
 	const struct resource_caps *res_cap;
drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h +2 -0
index 0f952e5b3ae8..1298d306db69 100644
@@ -122,7 +122,9 @@ struct ipp_funcs {
 		struct input_pixel_processor *ipp,
 		const struct pwl_params *params);
 
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 	void (*ipp_destroy)(struct input_pixel_processor **ipp);
+#endif
 };
 
 #endif /* __DAL_IPP_H__ */
drivers/gpu/drm/amd/display/dc/inc/hw/opp.h +2 -0
index 64d43257db96..a101f4b5e0c7 100644
@@ -27,7 +27,9 @@
 #define __DAL_OPP_H__
 
 #include "hw_shared.h"
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 #include "dc_hw_types.h"
+#endif
 #include "transform.h"
 
 struct fixed31_32;
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#17 lore raw

PATCH 16/31 drm/amd/display: Fix race.

In reply to a message not in the archive

From: Andrey Grodzovsky <[email protected]>

Problem :
A race between two adjecent page flips makes the earlier one
to release an alocated frame buffer for the subsequent one -
since there are 2 frambuffer swapped back and forth between flips, the 'new' fb of the later flip is actually the 'previous' fb for the earlier flip. Fix:
Don't set fb->address = 0 in cleanup hook, this is unnecessery and erases the newly cached adress that was set in prepare_fb of the second flip.

Change-Id I852ad2ee5122222e49dfc9c05e7488843d6a8915
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c +1 -3
index 6fddf31cc4e4..8aeb10786b94 100644
@@ -1795,9 +1795,7 @@ static void dm_plane_helper_cleanup_fb(
 		amdgpu_bo_unpin(rbo);
 		amdgpu_bo_unreserve(rbo);
 		amdgpu_bo_unref(&rbo);
-	}
-
-	afb->address = 0;
+	};
 }
 
 int dm_create_validation_set_for_connector(struct drm_connector *connector,
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#18 lore raw

PATCH 17/31 drm/amd/display: prevent assert on error of 1 in calc_freesync_range

In reply to a message not in the archive

From: Dmytro Laktyushkin <[email protected]>

Change-Id I9d88231521821e01f79dc7aa942659ba240d1eac
---
 drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/modules/freesync/freesync.c +4 -2
index c5330f3cc1de..05a086c7b31a 100644
@@ -422,12 +422,14 @@ static void calc_freesync_range(struct core_freesync *core_freesync,
 
 	/* In case of 4k free sync monitor, vmin or vmax cannot be less than vtotal */
 	if (state->freesync_range.vmin < vtotal) {
-		ASSERT(false);
+		/* Error of 1 is permissible */
+		ASSERT((state->freesync_range.vmin + 1) >= vtotal);
 		state->freesync_range.vmin = vtotal;
 	}
 
 	if (state->freesync_range.vmax < vtotal) {
-		ASSERT(false);
+		/* Error of 1 is permissible */
+		ASSERT((state->freesync_range.vmax + 1) >= vtotal);
 		state->freesync_range.vmax = vtotal;
 	}
 
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#19 lore raw

PATCH 18/31 drm/amd/display: refactor bw related variable structure in val_ctx

In reply to a message not in the archive

From: Dmytro Laktyushkin <[email protected]>

Change-Id I69c6358b9dd01f4cb399b017d4b23ffc67bb710a
---
 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c   | 18 ++---
 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c   | 79 +++++++++++-----------
 drivers/gpu/drm/amd/display/dc/core/dc.c           | 20 +-----
 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c |  6 +-
 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h | 12 ++--
 .../amd/display/dc/dce100/dce100_hw_sequencer.c    |  9 ++-
 .../drm/amd/display/dc/dce100/dce100_resource.c    |  4 +-
 .../amd/display/dc/dce110/dce110_hw_sequencer.c    | 65 +++++++++---------
 .../drm/amd/display/dc/dce110/dce110_mem_input.c   | 12 ++--
 .../drm/amd/display/dc/dce110/dce110_mem_input.h   |  6 +-
 .../drm/amd/display/dc/dce110/dce110_mem_input_v.c | 30 ++++----
 .../drm/amd/display/dc/dce110/dce110_mem_input_v.h |  6 +-
 .../drm/amd/display/dc/dce110/dce110_resource.c    | 63 +++++++++--------
 .../drm/amd/display/dc/dce112/dce112_resource.c    | 63 +++++++++--------
 .../gpu/drm/amd/display/dc/dce80/dce80_resource.c  |  4 +-
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  | 38 +++++------
 .../gpu/drm/amd/display/dc/dcn10/dcn10_mem_input.c |  6 +-
 drivers/gpu/drm/amd/display/dc/inc/core_types.h    | 56 +++++++++++----
 drivers/gpu/drm/amd/display/dc/inc/dce_calcs.h     | 29 +-------
 drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h  | 20 ++++--
 20 files changed, 269 insertions(+), 277 deletions(-)
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c +9 -9
index 627b7582394a..87666987429e 100644
@@ -2557,7 +2557,7 @@ void bw_calcs_init(struct bw_calcs_dceip *bw_dceip,
  */
 static bool is_display_configuration_supported(
 	const struct bw_calcs_vbios *vbios,
-	const struct bw_calcs_output *calcs_output)
+	const struct dce_bw_output *calcs_output)
 {
 	uint32_t int_max_clk;
 
@@ -2568,7 +2568,7 @@ static bool is_display_configuration_supported(
 
 	int_max_clk = bw_fixed_to_int(vbios->high_sclk);
 	int_max_clk *= 1000; /* MHz to kHz */
-	if (calcs_output->required_sclk > int_max_clk)
+	if (calcs_output->sclk_khz > int_max_clk)
 		return false;
 
 	return true;
@@ -2790,7 +2790,7 @@ bool bw_calcs(struct dc_context *ctx,
 	const struct bw_calcs_vbios *vbios,
 	const struct pipe_ctx pipe[],
 	int pipe_count,
-	struct bw_calcs_output *calcs_output)
+	struct dce_bw_output *calcs_output)
 {
 	struct bw_calcs_data *data = dm_alloc(sizeof(struct bw_calcs_data));
 
@@ -2831,20 +2831,20 @@ bool bw_calcs(struct dc_context *ctx,
 					bw_int_to_fixed(1000)));
 		calcs_output->blackout_recovery_time_us =
 			bw_fixed_to_int(data->blackout_recovery_time);
-		calcs_output->required_sclk =
+		calcs_output->sclk_khz =
 			bw_fixed_to_int(bw_mul(data->required_sclk,
 					bw_int_to_fixed(1000)));
-		calcs_output->required_sclk_deep_sleep =
+		calcs_output->sclk_deep_sleep_khz =
 			bw_fixed_to_int(bw_mul(data->sclk_deep_sleep,
 					bw_int_to_fixed(1000)));
 		if (yclk_lvl == 0)
-			calcs_output->required_yclk = bw_fixed_to_int(
+			calcs_output->yclk_khz = bw_fixed_to_int(
 				bw_mul(low_yclk, bw_int_to_fixed(1000)));
 		else if (yclk_lvl == 1)
-			calcs_output->required_yclk = bw_fixed_to_int(
+			calcs_output->yclk_khz = bw_fixed_to_int(
 				bw_mul(mid_yclk, bw_int_to_fixed(1000)));
 		else
-			calcs_output->required_yclk = bw_fixed_to_int(
+			calcs_output->yclk_khz = bw_fixed_to_int(
 				bw_mul(high_yclk, bw_int_to_fixed(1000)));
 
 		/* units: nanosecond, 16bit storage. */
@@ -3245,7 +3245,7 @@ bool bw_calcs(struct dc_context *ctx,
 		calcs_output->cpup_state_change_enable = true;
 		calcs_output->stutter_mode_enable = true;
 		calcs_output->dispclk_khz = 0;
-		calcs_output->required_sclk = 0;
+		calcs_output->sclk_khz = 0;
 	}
 
 	dm_free(data);
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c +39 -40

135 lines not on this page · raw message

drivers/gpu/drm/amd/display/dc/core/dc.c +1 -19
index d063a252ccd9..b30d4bc7b040 100644
@@ -970,13 +970,7 @@ bool dc_post_update_surfaces_to_stream(struct dc *dc)
 {
 	int i;
 	struct core_dc *core_dc = DC_TO_CORE(dc);
-	struct validate_context *context = dm_alloc(sizeof(struct validate_context));
-
-	if (!context) {
-		dm_error("%s: failed to create validate ctx\n", __func__);
-		return false;
-	}
-	dc_resource_validate_ctx_copy_construct(core_dc->current_context, context);
+	struct validate_context *context = core_dc->current_context;
 
 	post_surface_trace(dc);
 
@@ -986,21 +980,9 @@ bool dc_post_update_surfaces_to_stream(struct dc *dc)
 			core_dc->hwss.power_down_front_end(
 					core_dc, &context->res_ctx.pipe_ctx[i]);
 		}
-	if (!core_dc->res_pool->funcs->validate_bandwidth(core_dc, context)) {
-		BREAK_TO_DEBUGGER();
-		dc_resource_validate_ctx_destruct(context);
-		dm_free(context);
-		return false;
-	}
 
 	core_dc->hwss.set_bandwidth(core_dc, context, true);
 
-	if (core_dc->current_context) {
-		dc_resource_validate_ctx_destruct(core_dc->current_context);
-		dm_free(core_dc->current_context);
-	}
-	core_dc->current_context = context;
-
 	return true;
 }
 
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c +3 -3
index 884f453d91b0..9da539db287c 100644
@@ -218,9 +218,9 @@ static void program_stutter_watermark(struct mem_input *mi,
 }
 
 void dce_mem_input_program_display_marks(struct mem_input *mi,
-	struct bw_watermarks nbp,
-	struct bw_watermarks stutter,
-	struct bw_watermarks urgent,
+	struct dce_watermarks nbp,
+	struct dce_watermarks stutter,
+	struct dce_watermarks urgent,
 	uint32_t total_dest_line_time_ns)
 {
 	uint32_t stutter_en = mi->ctx->dc->debug.disable_stutter ? 0 : 1;
drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h +7 -5
index 6af533bdf98c..be37f52e9ba1 100644
@@ -25,6 +25,10 @@
 #ifndef __DCE_MEM_INPUT_H__
 #define __DCE_MEM_INPUT_H__
 
+#include "dc_hw_types.h"
+struct dce_watermarks;
+struct mem_input;
+
 #define MI_DCE_BASE_REG_LIST(id)\
 	SRI(GRPH_ENABLE, DCP, id),\
 	SRI(GRPH_CONTROL, DCP, id),\
@@ -262,8 +266,6 @@ struct dce_mem_input_wa {
 	uint8_t single_head_rdreq_dmif_limit;
 };
 
-struct mem_input;
-
 void dce_mem_input_program_pte_vm(struct mem_input *mi,
 	enum surface_pixel_format format,
 	union dc_tiling_info *tiling_info,
@@ -288,9 +290,9 @@ void dce_mem_input_free_dmif(struct mem_input *mi,
 	uint32_t total_stream_num);
 
 void dce_mem_input_program_display_marks(struct mem_input *mi,
-	struct bw_watermarks nbp,
-	struct bw_watermarks stutter,
-	struct bw_watermarks urgent,
+	struct dce_watermarks nbp,
+	struct dce_watermarks stutter,
+	struct dce_watermarks urgent,
 	uint32_t total_dest_line_time_ns);
 
 #endif /*__DCE_MEM_INPUT_H__*/
drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.c +4 -5
index 30c197f378dc..843f50a08e21 100644
@@ -114,7 +114,7 @@ static void dce100_pplib_apply_display_requirements(
 
 	pp_display_cfg->avail_mclk_switch_time_us =
 						dce110_get_min_vblank_time_us(context);
-	pp_display_cfg->min_memory_clock_khz = context->bw_results.required_yclk
+	pp_display_cfg->min_memory_clock_khz = context->bw.dce.yclk_khz
 		/ MEMORY_TYPE_MULTIPLIER;
 
 	dce110_fill_display_configs(context, pp_display_cfg);
@@ -131,12 +131,11 @@ void dce100_set_bandwidth(
 		struct validate_context *context,
 		bool decrease_allowed)
 {
-	if (decrease_allowed || context->dispclk_khz > dc->current_context->dispclk_khz) {
+	if (decrease_allowed || context->bw.dce.dispclk_khz > dc->current_context->bw.dce.dispclk_khz) {
 		dc->res_pool->display_clock->funcs->set_clock(
 				dc->res_pool->display_clock,
-				context->dispclk_khz * 115 / 100);
-		dc->current_context->bw_results.dispclk_khz = context->dispclk_khz;
-		dc->current_context->dispclk_khz = context->dispclk_khz;
+				context->bw.dce.dispclk_khz * 115 / 100);
+		dc->current_context->bw.dce.dispclk_khz = context->bw.dce.dispclk_khz;
 	}
 	dce100_pplib_apply_display_requirements(dc, context);
 }
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c +2 -2
index f0700706d7c9..254f9e4d0fc8 100644
@@ -764,8 +764,8 @@ bool dce100_validate_bandwidth(
 	struct validate_context *context)
 {
 	/* TODO implement when needed but for now hardcode max value*/
-	context->dispclk_khz = 681000;
-	context->bw_results.required_yclk = 250000 * MEMORY_TYPE_MULTIPLIER;
+	context->bw.dce.dispclk_khz = 681000;
+	context->bw.dce.yclk_khz = 250000 * MEMORY_TYPE_MULTIPLIER;
 
 	return true;
 }
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +32 -33

139 lines not on this page · raw message

drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input.c +6 -6
index a20feaedfca4..45e1a8d15d9b 100644
@@ -166,7 +166,7 @@ bool dce110_mem_input_program_surface_flip_and_addr(
 static void program_urgency_watermark(
 	const struct dc_context *ctx,
 	const uint32_t offset,
-	struct bw_watermarks marks_low,
+	struct dce_watermarks marks_low,
 	uint32_t total_dest_line_time_ns)
 {
 	/* register value */
@@ -224,7 +224,7 @@ static void program_urgency_watermark(
 static void program_stutter_watermark(
 	const struct dc_context *ctx,
 	const uint32_t offset,
-	struct bw_watermarks marks)
+	struct dce_watermarks marks)
 {
 	/* register value */
 	uint32_t stutter_cntl = 0;
@@ -289,7 +289,7 @@ static void program_stutter_watermark(
 static void program_nbp_watermark(
 	const struct dc_context *ctx,
 	const uint32_t offset,
-	struct bw_watermarks marks)
+	struct dce_watermarks marks)
 {
 	uint32_t value;
 	uint32_t addr;
@@ -372,9 +372,9 @@ static void program_nbp_watermark(
 
 void dce110_mem_input_program_display_marks(
 	struct mem_input *mem_input,
-	struct bw_watermarks nbp,
-	struct bw_watermarks stutter,
-	struct bw_watermarks urgent,
+	struct dce_watermarks nbp,
+	struct dce_watermarks stutter,
+	struct dce_watermarks urgent,
 	uint32_t total_dest_line_time_ns)
 {
 	struct dce110_mem_input *bm_dce110 = TO_DCE110_MEM_INPUT(mem_input);
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input.h +3 -3
index 4aec18c94c49..5f10f266f096 100644
@@ -55,9 +55,9 @@ bool dce110_mem_input_construct(
  */
 void dce110_mem_input_program_display_marks(
 	struct mem_input *mem_input,
-	struct bw_watermarks nbp,
-	struct bw_watermarks stutter,
-	struct bw_watermarks urgent,
+	struct dce_watermarks nbp,
+	struct dce_watermarks stutter,
+	struct dce_watermarks urgent,
 	uint32_t total_dest_line_time_ns);
 
 /*
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c +15 -15
index 9c32b5bbdff5..02739d3efa97 100644
@@ -679,7 +679,7 @@ static void program_urgency_watermark(
 	const struct dc_context *ctx,
 	const uint32_t urgency_addr,
 	const uint32_t wm_addr,
-	struct bw_watermarks marks_low,
+	struct dce_watermarks marks_low,
 	uint32_t total_dest_line_time_ns)
 {
 	/* register value */
@@ -734,7 +734,7 @@ static void program_urgency_watermark(
 
 static void program_urgency_watermark_l(
 	const struct dc_context *ctx,
-	struct bw_watermarks marks_low,
+	struct dce_watermarks marks_low,
 	uint32_t total_dest_line_time_ns)
 {
 	program_urgency_watermark(
@@ -747,7 +747,7 @@ static void program_urgency_watermark_l(
 
 static void program_urgency_watermark_c(
 	const struct dc_context *ctx,
-	struct bw_watermarks marks_low,
+	struct dce_watermarks marks_low,
 	uint32_t total_dest_line_time_ns)
 {
 	program_urgency_watermark(
@@ -762,7 +762,7 @@ static void program_stutter_watermark(
 	const struct dc_context *ctx,
 	const uint32_t stutter_addr,
 	const uint32_t wm_addr,
-	struct bw_watermarks marks)
+	struct dce_watermarks marks)
 {
 	/* register value */
 	uint32_t stutter_cntl = 0;
@@ -822,7 +822,7 @@ static void program_stutter_watermark(
 
 static void program_stutter_watermark_l(
 	const struct dc_context *ctx,
-	struct bw_watermarks marks)
+	struct dce_watermarks marks)
 {
 	program_stutter_watermark(ctx,
 			mmDPGV0_PIPE_STUTTER_CONTROL,
@@ -832,7 +832,7 @@ static void program_stutter_watermark_l(
 
 static void program_stutter_watermark_c(
 	const struct dc_context *ctx,
-	struct bw_watermarks marks)
+	struct dce_watermarks marks)
 {
 	program_stutter_watermark(ctx,
 			mmDPGV1_PIPE_STUTTER_CONTROL,
@@ -844,7 +844,7 @@ static void program_nbp_watermark(
 	const struct dc_context *ctx,
 	const uint32_t wm_mask_ctrl_addr,
 	const uint32_t nbp_pstate_ctrl_addr,
-	struct bw_watermarks marks)
+	struct dce_watermarks marks)
 {
 	uint32_t value;
 
@@ -926,7 +926,7 @@ static void program_nbp_watermark(
 
 static void program_nbp_watermark_l(
 	const struct dc_context *ctx,
-	struct bw_watermarks marks)
+	struct dce_watermarks marks)
 {
 	program_nbp_watermark(ctx,
 			mmDPGV0_WATERMARK_MASK_CONTROL,
@@ -936,7 +936,7 @@ static void program_nbp_watermark_l(
 
 static void program_nbp_watermark_c(
 	const struct dc_context *ctx,
-	struct bw_watermarks marks)
+	struct dce_watermarks marks)
 {
 	program_nbp_watermark(ctx,
 			mmDPGV1_WATERMARK_MASK_CONTROL,
@@ -946,9 +946,9 @@ static void program_nbp_watermark_c(
 
 void dce110_mem_input_v_program_display_marks(
 	struct mem_input *mem_input,
-	struct bw_watermarks nbp,
-	struct bw_watermarks stutter,
-	struct bw_watermarks urgent,
+	struct dce_watermarks nbp,
+	struct dce_watermarks stutter,
+	struct dce_watermarks urgent,
 	uint32_t total_dest_line_time_ns)
 {
 	program_urgency_watermark_l(
@@ -968,9 +968,9 @@ void dce110_mem_input_v_program_display_marks(
 
 void dce110_mem_input_program_chroma_display_marks(
 	struct mem_input *mem_input,
-	struct bw_watermarks nbp,
-	struct bw_watermarks stutter,
-	struct bw_watermarks urgent,
+	struct dce_watermarks nbp,
+	struct dce_watermarks stutter,
+	struct dce_watermarks urgent,
 	uint32_t total_dest_line_time_ns)
 {
 	program_urgency_watermark_c(
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.h +3 -3
index 44cf066279c0..b2667eefa3d0 100644
@@ -38,9 +38,9 @@ bool dce110_mem_input_v_construct(
  */
 void dce110_mem_input_v_program_display_marks(
 	struct mem_input *mem_input,
-	struct bw_watermarks nbp,
-	struct bw_watermarks stutter,
-	struct bw_watermarks urgent,
+	struct dce_watermarks nbp,
+	struct dce_watermarks stutter,
+	struct dce_watermarks urgent,
 	uint32_t total_dest_line_time_ns);
 
 /*
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +31 -32

91 lines not on this page · raw message

drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +31 -32

91 lines not on this page · raw message

drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c +2 -2
index 0aa128e5ed84..5735914a8737 100644
@@ -781,8 +781,8 @@ bool dce80_validate_bandwidth(
 	struct validate_context *context)
 {
 	/* TODO implement when needed but for now hardcode max value*/
-	context->dispclk_khz = 681000;
-	context->bw_results.required_yclk = 250000 * MEMORY_TYPE_MULTIPLIER;
+	context->bw.dce.dispclk_khz = 681000;
+	context->bw.dce.yclk_khz = 250000 * MEMORY_TYPE_MULTIPLIER;
 
 	return true;
 }
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +19 -19
index 41a6fa507982..a62c4e72f21a 100644
@@ -1428,7 +1428,7 @@ static void dcn10_power_on_fe(
 		enable_dcfclk(dc->ctx,
 				pipe_ctx->pipe_idx,
 				pipe_ctx->pix_clk_params.requested_pix_clk,
-				context->dppclk_div);
+				context->bw.dcn.calc_clk.dppclk_div);
 
 		if (dc_surface) {
 			dm_logger_write(dc->ctx->logger, LOG_DC,
@@ -1530,7 +1530,7 @@ static void update_dchubp_dpp(
 		dc->ctx,
 		pipe_ctx->pipe_idx,
 		pipe_ctx->pix_clk_params.requested_pix_clk,
-		context->dppclk_div);
+		context->bw.dcn.calc_clk.dppclk_div);
 
 	select_vtg(dc->ctx, pipe_ctx->pipe_idx, pipe_ctx->tg->inst);
 
@@ -1649,7 +1649,7 @@ static void program_all_pipe_in_tree(
 		if (pipe_ctx->top_pipe == NULL) {
 			/* watermark is for all pipes */
 			pipe_ctx->mi->funcs->program_watermarks(
-					pipe_ctx->mi, &context->watermarks, ref_clk_mhz);
+					pipe_ctx->mi, &context->bw.dcn.watermarks, ref_clk_mhz);
 			lock_otg_master_update(dc->ctx, pipe_ctx->tg->inst);
 		}
 
@@ -1679,16 +1679,16 @@ static void dcn10_pplib_apply_display_requirements(
 
 	pp_display_cfg->all_displays_in_sync = false;/*todo*/
 	pp_display_cfg->nb_pstate_switch_disable = false;
-	pp_display_cfg->min_engine_clock_khz = context->dcfclk_khz;
-	pp_display_cfg->min_memory_clock_khz = context->fclk_khz;
-	pp_display_cfg->min_engine_clock_deep_sleep_khz = context->dcfclk_deep_sleep_khz;
-	pp_display_cfg->min_dcfc_deep_sleep_clock_khz = context->dcfclk_deep_sleep_khz;
+	pp_display_cfg->min_engine_clock_khz = context->bw.dcn.calc_clk.dcfclk_khz;
+	pp_display_cfg->min_memory_clock_khz = context->bw.dcn.calc_clk.fclk_khz;
+	pp_display_cfg->min_engine_clock_deep_sleep_khz = context->bw.dcn.calc_clk.dcfclk_deep_sleep_khz;
+	pp_display_cfg->min_dcfc_deep_sleep_clock_khz = context->bw.dcn.calc_clk.dcfclk_deep_sleep_khz;
 	pp_display_cfg->avail_mclk_switch_time_us =
-			context->dram_ccm_us > 0 ? context->dram_ccm_us : 0;
+			context->bw.dcn.calc_clk.dram_ccm_us > 0 ? context->bw.dcn.calc_clk.dram_ccm_us : 0;
 	pp_display_cfg->avail_mclk_switch_time_in_disp_active_us =
-			context->min_active_dram_ccm_us > 0 ? context->min_active_dram_ccm_us : 0;
-	pp_display_cfg->min_dcfclock_khz = context->dcfclk_khz;
-	pp_display_cfg->disp_clk_khz = context->dispclk_khz;
+			context->bw.dcn.calc_clk.min_active_dram_ccm_us > 0 ? context->bw.dcn.calc_clk.min_active_dram_ccm_us : 0;
+	pp_display_cfg->min_dcfclock_khz = context->bw.dcn.calc_clk.dcfclk_khz;
+	pp_display_cfg->disp_clk_khz = context->bw.dcn.calc_clk.dispclk_khz;
 	dce110_fill_display_configs(context, pp_display_cfg);
 
 	if (memcmp(&dc->prev_display_config, pp_display_cfg, sizeof(
@@ -1755,22 +1755,22 @@ static void dcn10_set_bandwidth(
 	if (IS_FPGA_MAXIMUS_DC(dc->ctx->dce_environment))
 		return;
 
-	if (decrease_allowed || context->dispclk_khz > dc->current_context->dispclk_khz) {
+	if (decrease_allowed || context->bw.dcn.calc_clk.dispclk_khz > dc->current_context->bw.dcn.calc_clk.dispclk_khz) {
 		dc->res_pool->display_clock->funcs->set_clock(
 				dc->res_pool->display_clock,
-				context->dispclk_khz);
-		dc->current_context->dispclk_khz = context->dispclk_khz;
+				context->bw.dcn.calc_clk.dispclk_khz);
+		dc->current_context->bw.dcn.calc_clk.dispclk_khz = context->bw.dcn.calc_clk.dispclk_khz;
 	}
-	if (decrease_allowed || context->dcfclk_khz > dc->current_context->dcfclk_khz) {
+	if (decrease_allowed || context->bw.dcn.calc_clk.dcfclk_khz > dc->current_context->bw.dcn.calc_clk.dcfclk_khz) {
 		clock.clk_type = DM_PP_CLOCK_TYPE_DCFCLK;
-		clock.clocks_in_khz = context->dcfclk_khz;
+		clock.clocks_in_khz = context->bw.dcn.calc_clk.dcfclk_khz;
 		dm_pp_apply_clock_for_voltage_request(dc->ctx, &clock);
 	}
-	if (decrease_allowed || context->fclk_khz > dc->current_context->fclk_khz) {
+	if (decrease_allowed || context->bw.dcn.calc_clk.fclk_khz > dc->current_context->bw.dcn.calc_clk.fclk_khz) {
 		clock.clk_type = DM_PP_CLOCK_TYPE_FCLK;
-		clock.clocks_in_khz = context->fclk_khz;
+		clock.clocks_in_khz = context->bw.dcn.calc_clk.fclk_khz;
 		dm_pp_apply_clock_for_voltage_request(dc->ctx, &clock);
-		dc->current_context->fclk_khz = clock.clocks_in_khz ;
+		dc->current_context->bw.dcn.calc_clk.fclk_khz = clock.clocks_in_khz;
 	}
 	dcn10_pplib_apply_display_requirements(dc, context);
 }
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mem_input.c +3 -3
index bf89608b30e4..50b24456d495 100644
@@ -820,9 +820,9 @@ static void program_watermarks(
 
 static void mem_input_program_display_marks(
 	struct mem_input *mem_input,
-	struct bw_watermarks nbp,
-	struct bw_watermarks stutter,
-	struct bw_watermarks urgent,
+	struct dce_watermarks nbp,
+	struct dce_watermarks stutter,
+	struct dce_watermarks urgent,
 	uint32_t total_dest_line_time_ns)
 {
 	/* only for dce
drivers/gpu/drm/amd/display/dc/inc/core_types.h +44 -12

71 lines not on this page · raw message

drivers/gpu/drm/amd/display/dc/inc/dce_calcs.h +2 -27
index 580dee95e57a..36c48f7d3f56 100644
@@ -35,6 +35,7 @@
 struct pipe_ctx;
 struct core_dc;
 struct validate_context;
+struct dce_bw_output;
 
 enum bw_calcs_version {
 	BW_CALCS_VERSION_INVALID,
@@ -454,32 +455,6 @@ struct bw_calcs_data {
 	struct bw_fixed dmif_required_sclk_for_urgent_latency[6];
 };
 
-/*******************************************************************************
- * Output data structures.
- ******************************************************************************/
-struct bw_watermarks {
-	uint32_t a_mark;
-	uint32_t b_mark;
-	uint32_t c_mark;
-	uint32_t d_mark;
-};
-
-struct bw_calcs_output {
-	bool cpuc_state_change_enable;
-	bool cpup_state_change_enable;
-	bool stutter_mode_enable;
-	bool nbp_state_change_enable;
-	bool all_displays_in_sync;
-	struct bw_watermarks urgent_wm_ns[6];
-	struct bw_watermarks stutter_exit_wm_ns[6];
-	struct bw_watermarks nbp_state_change_wm_ns[6];
-	uint32_t required_sclk;
-	uint32_t required_sclk_deep_sleep;
-	uint32_t required_yclk;
-	uint32_t dispclk_khz;
-	int blackout_recovery_time_us;
-};
-
 /**
  * Initialize structures with data which will NOT change at runtime.
  */
@@ -500,7 +475,7 @@ bool bw_calcs(
 	const struct bw_calcs_vbios *vbios,
 	const struct pipe_ctx *pipe,
 	int pipe_count,
-	struct bw_calcs_output *calcs_output);
+	struct dce_bw_output *calcs_output);
 
 #endif /* __BANDWIDTH_CALCS_H__ */
 
drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h +13 -7
index 0880ce98c90c..c4aea24d4574 100644
@@ -27,7 +27,6 @@
 
 #include "dc.h"
 #include "include/grph_object_id.h"
-#include "inc/dce_calcs.h"
 
 #include "dce/dce_mem_input.h" /* temporary */
 
@@ -55,6 +54,13 @@ struct dcn_watermark_set {
 
 #endif
 
+struct dce_watermarks {
+	int a_mark;
+	int b_mark;
+	int c_mark;
+	int d_mark;
+};
+
 struct stutter_modes {
 	bool enhanced;
 	bool quad_dmif_buffer;
@@ -95,16 +101,16 @@ struct mem_input_funcs {
 
 	void (*mem_input_program_display_marks)(
 		struct mem_input *mem_input,
-		struct bw_watermarks nbp,
-		struct bw_watermarks stutter,
-		struct bw_watermarks urgent,
+		struct dce_watermarks nbp,
+		struct dce_watermarks stutter,
+		struct dce_watermarks urgent,
 		uint32_t total_dest_line_time_ns);
 
 	void (*mem_input_program_chroma_display_marks)(
 			struct mem_input *mem_input,
-			struct bw_watermarks nbp,
-			struct bw_watermarks stutter,
-			struct bw_watermarks urgent,
+			struct dce_watermarks nbp,
+			struct dce_watermarks stutter,
+			struct dce_watermarks urgent,
 			uint32_t total_dest_line_time_ns);
 
 	void (*allocate_mem_input)(
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#20 lore raw

PATCH 19/31 drm/amd/display: switch to using calc_clk and cur_clk for dcn bw setting

In reply to a message not in the archive

From: Dmytro Laktyushkin <[email protected]>

Change-Id I9da890ac9e52292092f8579449550b8e79c8f1fb
---
 .../amd/display/dc/dce110/dce110_hw_sequencer.c    | 50 +++++++++++-------
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  | 59 +++++++++++++++++-----
 2 files changed, 79 insertions(+), 30 deletions(-)
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +32 -18
index 41aeceba5ae5..150c8a4e7b61 100644
@@ -1647,24 +1647,38 @@ enum dc_status dce110_apply_ctx_to_hw(
 	apply_min_clocks(dc, context, &clocks_state, true);
 
 #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
-	if (context->bw.dcn.calc_clk.fclk_khz
-			> dc->current_context->bw.dcn.calc_clk.fclk_khz) {
-		struct dm_pp_clock_for_voltage_req clock;
-
-		clock.clk_type = DM_PP_CLOCK_TYPE_FCLK;
-		clock.clocks_in_khz = context->bw.dcn.calc_clk.fclk_khz;
-		dm_pp_apply_clock_for_voltage_request(dc->ctx, &clock);
-		dc->current_context->bw.dcn.calc_clk.fclk_khz = clock.clocks_in_khz;
-	}
-	if (context->bw.dcn.calc_clk.dcfclk_khz
-			> dc->current_context->bw.dcn.calc_clk.dcfclk_khz) {
-		struct dm_pp_clock_for_voltage_req clock;
-
-		clock.clk_type = DM_PP_CLOCK_TYPE_DCFCLK;
-		clock.clocks_in_khz = context->bw.dcn.calc_clk.dcfclk_khz;
-		dm_pp_apply_clock_for_voltage_request(dc->ctx, &clock);
-		dc->current_context->bw.dcn.calc_clk.dcfclk_khz = clock.clocks_in_khz;
-	}
+	if (resource_parse_asic_id(dc->ctx->asic_id) == DCN_VERSION_1_0) {
+		if (context->bw.dcn.calc_clk.fclk_khz
+				> dc->current_context->bw.dcn.cur_clk.fclk_khz) {
+			struct dm_pp_clock_for_voltage_req clock;
+
+			clock.clk_type = DM_PP_CLOCK_TYPE_FCLK;
+			clock.clocks_in_khz = context->bw.dcn.calc_clk.fclk_khz;
+			dm_pp_apply_clock_for_voltage_request(dc->ctx, &clock);
+			dc->current_context->bw.dcn.cur_clk.fclk_khz = clock.clocks_in_khz;
+			context->bw.dcn.cur_clk.fclk_khz = clock.clocks_in_khz;
+		}
+		if (context->bw.dcn.calc_clk.dcfclk_khz
+				> dc->current_context->bw.dcn.cur_clk.dcfclk_khz) {
+			struct dm_pp_clock_for_voltage_req clock;
+
+			clock.clk_type = DM_PP_CLOCK_TYPE_DCFCLK;
+			clock.clocks_in_khz = context->bw.dcn.calc_clk.dcfclk_khz;
+			dm_pp_apply_clock_for_voltage_request(dc->ctx, &clock);
+			dc->current_context->bw.dcn.cur_clk.dcfclk_khz = clock.clocks_in_khz;
+			context->bw.dcn.cur_clk.dcfclk_khz = clock.clocks_in_khz;
+		}
+		if (context->bw.dcn.calc_clk.dispclk_khz
+				> dc->current_context->bw.dcn.cur_clk.dispclk_khz) {
+			dc->res_pool->display_clock->funcs->set_clock(
+					dc->res_pool->display_clock,
+					context->bw.dcn.calc_clk.dispclk_khz);
+			dc->current_context->bw.dcn.cur_clk.dispclk_khz =
+					context->bw.dcn.calc_clk.dispclk_khz;
+			context->bw.dcn.cur_clk.dispclk_khz =
+					context->bw.dcn.calc_clk.dispclk_khz;
+		}
+	} else
 #endif
 	if (context->bw.dce.dispclk_khz
 			> dc->current_context->bw.dce.dispclk_khz) {
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +47 -12

97 lines not on this page · raw message

Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#21 lore raw

PATCH 20/31 drm/amd/display: Add 64KB_S_T and 64KB_D_T swizzle mode.

In reply to a message not in the archive

From: Yongqiang Sun <[email protected]>

Change-Id I7e8bdb19296bb703e47d906c5213e7ad6e187cf4
---
 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c +2 -0
index 1b9edfda2b98..26587bcdba96 100644
@@ -236,6 +236,7 @@ static void pipe_ctx_to_e2e_pipe_params (
 		break;
 	case DC_SW_64KB_S:
 	case DC_SW_64KB_S_X:
+	case DC_SW_64KB_S_T:
 		input->src.is_display_sw = 0;
 		input->src.macro_tile_size = dm_64k_tile;
 		break;
@@ -253,6 +254,7 @@ static void pipe_ctx_to_e2e_pipe_params (
 		break;
 	case DC_SW_64KB_D:
 	case DC_SW_64KB_D_X:
+	case DC_SW_64KB_D_T:
 		input->src.is_display_sw = 1;
 		input->src.macro_tile_size = dm_64k_tile;
 		break;
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#22 lore raw

PATCH 21/31 drm/amd/display: Use MED update type if clip position changes

In reply to a message not in the archive
Change-Id I62c019ec028d66339dea98dbbae00da07873aa92
---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +3 -4
index b30d4bc7b040..3c2554381a25 100644
@@ -1143,7 +1143,7 @@ static enum surface_update_type  get_scaling_info_update_type(
 		return UPDATE_TYPE_FULL;
 
 	/* Check Clip rectangles if not equal
-	 * difference is in offsets == > UPDATE_TYPE_FAST
+	 * difference is in offsets == > UPDATE_TYPE_MED
 	 * difference is in dimensions == > UPDATE_TYPE_FULL
 	 */
 	if (memcmp(&u->scaling_info->clip_rect,
@@ -1152,7 +1152,7 @@ static enum surface_update_type  get_scaling_info_update_type(
 			u->surface->clip_rect.height) &&
 			(u->scaling_info->clip_rect.width ==
 			u->surface->clip_rect.width)) {
-			return UPDATE_TYPE_FAST;
+			return UPDATE_TYPE_MED;
 		} else {
 			return UPDATE_TYPE_FULL;
 		}
@@ -1326,8 +1326,7 @@ void dc_update_surfaces_and_stream(struct dc *dc,
 					srf_updates[i].plane_info->dcc;
 		}
 
-		/* not sure if we still need this */
-		if (update_type == UPDATE_TYPE_FULL) {
+		if (update_type >= UPDATE_TYPE_MED) {
 			for (j = 0; j < core_dc->res_pool->pipe_count; j++) {
 				struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j];
 
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#23 lore raw

PATCH 22/31 drm/amd/display: single channel bandwidth verses dual channel bandwidth

In reply to a message not in the archive

From: Charlene Liu <[email protected]>

[Description]
DPM0, FCLK=MCLK, single channel bandwidth = dual channel bandwidth
for the rest of the DPM levels, single channel bandwidth = 1/2 dual channel bandwidth

Change-Id I0761edfe3346a0a8162e3acbb4a193bcc313727d
---
 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c +6 -3
index 26587bcdba96..6d8bc6c74a73 100644
@@ -920,6 +920,10 @@ bool dcn_validate_bandwidth(
 		calc_wm_sets_and_perf_params(context, v);
 		context->bw.dcn.calc_clk.fclk_khz = (int)(bw_consumed * 1000000 /
 				(ddr4_dram_factor_single_Channel * v->number_of_channels));
+		if (bw_consumed == v->fabric_and_dram_bandwidth_vmin0p65) {
+			context->bw.dcn.calc_clk.fclk_khz = (int)(bw_consumed * 1000000 / 32);
+		}
+
 		context->bw.dcn.calc_clk.dram_ccm_us = (int)(v->dram_clock_change_margin);
 		context->bw.dcn.calc_clk.min_active_dram_ccm_us = (int)(v->min_active_dram_clock_change_margin);
 		context->bw.dcn.calc_clk.dcfclk_deep_sleep_khz = (int)(v->dcf_clk_deep_sleep * 1000);
@@ -1178,8 +1182,7 @@ void dcn_bw_update_from_pplib(struct core_dc *dc)
 			ctx, DM_PP_CLOCK_TYPE_FCLK, &clks) &&
 			clks.num_levels != 0) {
 		ASSERT(clks.num_levels >= 3);
-		dc->dcn_soc.fabric_and_dram_bandwidth_vmin0p65 = dc->dcn_soc.number_of_channels *
-			(clks.data[0].clocks_in_khz / 1000.0) * ddr4_dram_factor_single_Channel / 1000.0;
+		dc->dcn_soc.fabric_and_dram_bandwidth_vmin0p65 = 32 * (clks.data[0].clocks_in_khz / 1000.0) / 1000.0;
 		if (clks.num_levels > 2) {
 			dc->dcn_soc.fabric_and_dram_bandwidth_vmid0p72 = dc->dcn_soc.number_of_channels *
 					(clks.data[clks.num_levels - 3].clocks_in_khz / 1000.0) * ddr4_dram_factor_single_Channel / 1000.0;
@@ -1240,7 +1243,7 @@ void dcn_bw_notify_pplib_of_wm_ranges(struct core_dc *dc)
 	kernel_fpu_begin();
 	max_fclk_khz = dc->dcn_soc.fabric_and_dram_bandwidth_vmax0p9 * 1000000 / factor;
 	nom_fclk_khz = dc->dcn_soc.fabric_and_dram_bandwidth_vnom0p8 * 1000000 / factor;
-	min_fclk_khz = dc->dcn_soc.fabric_and_dram_bandwidth_vmin0p65 * 1000000 / factor;
+	min_fclk_khz = dc->dcn_soc.fabric_and_dram_bandwidth_vmin0p65 * 1000000 / 32;
 	max_dcfclk_khz = dc->dcn_soc.dcfclkv_max0p9 * 1000;
 	nom_dcfclk_khz = dc->dcn_soc.dcfclkv_nom0p8 * 1000;
 	min_dcfclk_khz = dc->dcn_soc.dcfclkv_min0p65 * 1000;
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#24 lore raw

PATCH 23/31 drm/amd/display: enable watermark range reporting to pplib

In reply to a message not in the archive

From: Dmytro Laktyushkin <[email protected]>

Change-Id I3ebf4168ab6669017c593d43707d812d20c4163b
---
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c +1 -1
index 41613ab5ca69..4e5b225a2a08 100644
@@ -432,7 +432,7 @@ static const struct dc_debug debug_defaults_drv = {
 		.force_abm_enable = false,
 		.timing_trace = false,
 		.disable_pplib_clock_request = true,
-		.disable_pplib_wm_range = true,
+		.disable_pplib_wm_range = false,
 #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 		.use_dml_wm = false,
 		.use_max_voltage = true
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#25 lore raw

PATCH 24/31 drm/amd/display: fix freesync not working on raven

In reply to a message not in the archive

From: Corbin McElhanney <[email protected]>

Change-Id I4e62756222da304a8ba378c2436ca8cda626273e
---
 drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/gpu/drm/amd/display/modules/freesync/freesync.c +10 -0
index 05a086c7b31a..9a073bc55144 100644
@@ -1130,6 +1130,7 @@ void mod_freesync_notify_mode_change(struct mod_freesync *mod_freesync,
 	unsigned int stream_index, map_index;
 	struct freesync_state *state;
 	struct core_freesync *core_freesync = NULL;
+	struct dc_static_screen_events triggers = {0};
 
 	if (mod_freesync == NULL)
 		return;
@@ -1157,6 +1158,7 @@ void mod_freesync_notify_mode_change(struct mod_freesync *mod_freesync,
 			/* Update the stream */
 			update_stream(core_freesync, streams[stream_index]);
 
+
 			/* Calculate vmin/vmax and refresh rate for
 			 * current mode
 			 */
@@ -1164,6 +1166,14 @@ void mod_freesync_notify_mode_change(struct mod_freesync *mod_freesync,
 				core_freesync->map[map_index].caps->
 				min_refresh_in_micro_hz,
 				state->nominal_refresh_rate_in_micro_hz);
+
+			/* Update mask */
+			triggers.overlay_update = true;
+			triggers.surface_update = true;
+
+			core_freesync->dc->stream_funcs.set_static_screen_events(
+				core_freesync->dc, streams, num_streams,
+				&triggers);
 		}
 	}
 
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#26 lore raw

PATCH 25/31 drm/amd/display: Move output transfer function to stream updates

In reply to a message not in the archive

From: Amy Zhang <[email protected]>

Change-Id I110d0986279259a912c3b44545fbde52091b4690
---
 drivers/gpu/drm/amd/display/dc/core/dc.c           | 46 ++++++++++++++--------
 drivers/gpu/drm/amd/display/dc/dc.h                | 14 +++----
 .../amd/display/dc/dce110/dce110_hw_sequencer.c    |  1 -
 .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  |  4 +-
 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h  |  1 -
 5 files changed, 37 insertions(+), 29 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +29 -17
index 3c2554381a25..1e6952bde25b 100644
@@ -201,11 +201,10 @@ static bool stream_get_crtc_position(struct dc *dc,
 	return ret;
 }
 
-static bool set_gamut_remap(struct dc *dc,
-			const struct dc_stream **stream, int num_streams)
+static bool set_gamut_remap(struct dc *dc, const struct dc_stream *stream)
 {
 	struct core_dc *core_dc = DC_TO_CORE(dc);
-	struct core_stream *core_stream = DC_STREAM_TO_CORE(stream[0]);
+	struct core_stream *core_stream = DC_STREAM_TO_CORE(stream);
 	int i = 0;
 	bool ret = false;
 	struct pipe_ctx *pipes;
@@ -1182,7 +1181,6 @@ static enum surface_update_type det_surface_update(
 		overall_type = type;
 
 	if (u->in_transfer_func ||
-		u->out_transfer_func ||
 		u->hdr_static_metadata) {
 		if (overall_type < UPDATE_TYPE_MED)
 			overall_type = UPDATE_TYPE_MED;
@@ -1279,8 +1277,28 @@ void dc_update_surfaces_and_stream(struct dc *dc,
 
 	/* update current stream with the new updates */
 	if (stream_update) {
-		stream->public.src = stream_update->src;
-		stream->public.dst = stream_update->dst;
+		if ((stream_update->src.height != 0) &&
+				(stream_update->src.width != 0))
+			stream->public.src = stream_update->src;
+
+		if ((stream_update->dst.height != 0) &&
+				(stream_update->dst.width != 0))
+			stream->public.dst = stream_update->dst;
+
+		if (stream_update->out_transfer_func &&
+				stream_update->out_transfer_func !=
+				dc_stream->out_transfer_func) {
+			if (stream_update->out_transfer_func->type !=
+					TF_TYPE_UNKNOWN) {
+				if (dc_stream->out_transfer_func != NULL)
+					dc_transfer_func_release
+					(dc_stream->out_transfer_func);
+				dc_transfer_func_retain(stream_update->
+					out_transfer_func);
+				stream->public.out_transfer_func =
+					stream_update->out_transfer_func;
+			}
+		}
 	}
 
 	/* save update parameters into surface */
@@ -1361,13 +1379,6 @@ void dc_update_surfaces_and_stream(struct dc *dc,
 					srf_updates[i].in_transfer_func;
 		}
 
-		if (srf_updates[i].out_transfer_func &&
-			srf_updates[i].out_transfer_func != dc_stream->out_transfer_func) {
-			if (dc_stream->out_transfer_func != NULL)
-				dc_transfer_func_release(dc_stream->out_transfer_func);
-			dc_transfer_func_retain(srf_updates[i].out_transfer_func);
-			stream->public.out_transfer_func = srf_updates[i].out_transfer_func;
-		}
 		if (srf_updates[i].hdr_static_metadata)
 			surface->public.hdr_static_ctx =
 				*(srf_updates[i].hdr_static_metadata);
@@ -1436,11 +1447,12 @@ void dc_update_surfaces_and_stream(struct dc *dc,
 						pipe_ctx, pipe_ctx->surface);
 
 			if (is_new_pipe_surface ||
-					srf_updates[i].out_transfer_func)
+				(stream_update != NULL &&
+					stream_update->out_transfer_func !=
+							NULL)) {
 				core_dc->hwss.set_output_transfer_func(
-						pipe_ctx,
-						pipe_ctx->surface,
-						pipe_ctx->stream);
+						pipe_ctx, pipe_ctx->stream);
+			}
 
 			if (srf_updates[i].hdr_static_metadata) {
 				resource_build_info_frame(pipe_ctx);
drivers/gpu/drm/amd/display/dc/dc.h +5 -9
index c7e503a91f45..7dd145b6e927 100644
@@ -122,7 +122,7 @@ struct dc_stream_funcs {
 			const struct rect *dst);
 
 	bool (*set_gamut_remap)(struct dc *dc,
-			const struct dc_stream **stream, int num_streams);
+			const struct dc_stream *stream);
 
 	void (*set_static_screen_events)(struct dc *dc,
 			const struct dc_stream **stream,
@@ -265,7 +265,8 @@ struct dc_hdr_static_metadata {
 enum dc_transfer_func_type {
 	TF_TYPE_PREDEFINED,
 	TF_TYPE_DISTRIBUTED_POINTS,
-	TF_TYPE_BYPASS
+	TF_TYPE_BYPASS,
+	TF_TYPE_UNKNOWN
 };
 
 struct dc_transfer_func_distributed_points {
@@ -349,11 +350,8 @@ struct dc_surface_update {
 	 */
 	/* gamma TO BE REMOVED */
 	struct dc_gamma *gamma;
-	struct dc_hdr_static_metadata *hdr_static_metadata;
 	struct dc_transfer_func *in_transfer_func;
-	struct dc_transfer_func *out_transfer_func;
-
-
+	struct dc_hdr_static_metadata *hdr_static_metadata;
 };
 /*
  * This structure is filled in by dc_surface_get_status and contains
@@ -473,11 +471,9 @@ struct dc_stream {
 };
 
 struct dc_stream_update {
-
 	struct rect src;
-
 	struct rect dst;
-
+	struct dc_transfer_func *out_transfer_func;
 };
 
 
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +0 -1
index 150c8a4e7b61..8a663003017c 100644
@@ -631,7 +631,6 @@ static bool dce110_translate_regamma_to_hw_format(const struct dc_transfer_func
 
 static bool dce110_set_output_transfer_func(
 	struct pipe_ctx *pipe_ctx,
-	const struct core_surface *surface, /* Surface - To be removed */
 	const struct core_stream *stream)
 {
 	struct output_pixel_processor *opp = pipe_ctx->opp;
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +3 -1
index f5638ad6e9fc..6cb3924225da 100644
@@ -1301,11 +1301,13 @@ static bool dcn10_translate_regamma_to_hw_format(const struct dc_transfer_func
 
 static bool dcn10_set_output_transfer_func(
 	struct pipe_ctx *pipe_ctx,
-	const struct core_surface *surface,
 	const struct core_stream *stream)
 {
 	struct output_pixel_processor *opp = pipe_ctx->opp;
 
+	if (opp == NULL)
+		return false;
+
 	opp->regamma_params.hw_points_num = GAMMA_HW_POINTS_NUM;
 
 	if (stream->public.out_transfer_func &&
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h +0 -1
index afdb8605a30f..b53e1206dfb3 100644
@@ -80,7 +80,6 @@ struct hw_sequencer_funcs {
 
 	bool (*set_output_transfer_func)(
 				struct pipe_ctx *pipe_ctx,
-				const struct core_surface *surface,
 				const struct core_stream *stream);
 
 	void (*power_down)(struct core_dc *dc);
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#27 lore raw

PATCH 26/31 drm/amd/display: Add mem_input header to non-DCN builds

In reply to a message not in the archive
Change-Id I0446e77334b14287614b21fe847afe44e4c5bac4
---
 drivers/gpu/drm/amd/display/dc/inc/core_types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/inc/core_types.h +1 -1
index 52ac6d19adec..46bd0318e6be 100644
@@ -31,8 +31,8 @@
 #include "dcn_calcs.h"
 #include "ddc_service_types.h"
 #include "dc_bios_types.h"
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 #include "mem_input.h"
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 #include "mpc.h"
 #endif
 
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#28 lore raw

PATCH 27/31 drm/amd/display: DCE12 num_timing_generators should be 6

In reply to a message not in the archive

We should also use it to determine pipe count.

Change-Id I8ce59db6cbe6a2fe020a9797cd988dcfc79caa06
---
 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c +2 -2
index b6bdd1d52922..b13abb025e1b 100644
@@ -426,7 +426,7 @@ static const struct bios_registers bios_regs = {
 };
 
 static const struct resource_caps res_cap = {
-		.num_timing_generator = 3,
+		.num_timing_generator = 6,
 		.num_audio = 7,
 		.num_stream_encoder = 6,
 		.num_pll = 6,
@@ -909,7 +909,7 @@ static bool construct(
 	pool->base.funcs = &dce120_res_pool_funcs;
 
 	/* TODO: Fill more data from GreenlandAsicCapability.cpp */
-	pool->base.pipe_count = 6;
+	pool->base.pipe_count = res_cap.num_timing_generator;
 	pool->base.underlay_pipe_index = NO_UNDERLAY_PIPE;
 
 	dc->public.caps.max_downscale_ratio = 200;
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#29 lore raw

PATCH 28/31 drm/amd/display: fix scaling calculation for proper surface input format

In reply to a message not in the archive

From: Dmytro Laktyushkin <[email protected]>

Change-Id Icc68c0d9e6fc589492148a2bd122d34ada78555b
---
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 60 +++++++++++++++--------
 drivers/gpu/drm/amd/display/dc/dc_hw_types.h      | 20 ++++----
 2 files changed, 49 insertions(+), 31 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +39 -21
index 9588217e0220..7ca03d1ad163 100644
@@ -431,6 +431,7 @@ static void calculate_viewport(struct pipe_ctx *pipe_ctx)
 	const struct dc_surface *surface = &pipe_ctx->surface->public;
 	const struct dc_stream *stream = &pipe_ctx->stream->public;
 	struct scaler_data *data = &pipe_ctx->scl_data;
+	struct rect surf_src = surface->src_rect;
 	struct rect clip = { 0 };
 	int vpc_div = (data->format == PIXEL_FORMAT_420BPP12
 			|| data->format == PIXEL_FORMAT_420BPP15) ? 2 : 1;
@@ -444,6 +445,11 @@ static void calculate_viewport(struct pipe_ctx *pipe_ctx)
 		pri_split = false;
 		sec_split = false;
 	}
+
+	if (pipe_ctx->surface->public.rotation == ROTATION_ANGLE_90 ||
+			pipe_ctx->surface->public.rotation == ROTATION_ANGLE_270)
+		rect_swap_helper(&surf_src);
+
 	/* The actual clip is an intersection between stream
 	 * source and surface clip
 	 */
@@ -463,18 +469,18 @@ static void calculate_viewport(struct pipe_ctx *pipe_ctx)
 			stream->src.y + stream->src.height - clip.y :
 			surface->clip_rect.y + surface->clip_rect.height - clip.y ;
 
-	/* offset = src.ofs + (clip.ofs - surface->dst_rect.ofs) * scl_ratio
+	/* offset = surf_src.ofs + (clip.ofs - surface->dst_rect.ofs) * scl_ratio
 	 * num_pixels = clip.num_pix * scl_ratio
 	 */
-	data->viewport.x = surface->src_rect.x + (clip.x - surface->dst_rect.x) *
-			surface->src_rect.width / surface->dst_rect.width;
+	data->viewport.x = surf_src.x + (clip.x - surface->dst_rect.x) *
+			surf_src.width / surface->dst_rect.width;
 	data->viewport.width = clip.width *
-			surface->src_rect.width / surface->dst_rect.width;
+			surf_src.width / surface->dst_rect.width;
 
-	data->viewport.y = surface->src_rect.y + (clip.y - surface->dst_rect.y) *
-			surface->src_rect.height / surface->dst_rect.height;
+	data->viewport.y = surf_src.y + (clip.y - surface->dst_rect.y) *
+			surf_src.height / surface->dst_rect.height;
 	data->viewport.height = clip.height *
-			surface->src_rect.height / surface->dst_rect.height;
+			surf_src.height / surface->dst_rect.height;
 
 	/* Round down, compensate in init */
 	data->viewport_c.x = data->viewport.x / vpc_div;
@@ -523,16 +529,21 @@ static void calculate_recout(struct pipe_ctx *pipe_ctx, struct view *recout_skip
 {
 	const struct dc_surface *surface = &pipe_ctx->surface->public;
 	struct core_stream *stream = pipe_ctx->stream;
-	struct rect clip = surface->clip_rect;
+	struct rect surf_src = surface->src_rect;
+	struct rect surf_clip = surface->clip_rect;
 	int recout_full_x, recout_full_y;
 
+	if (pipe_ctx->surface->public.rotation == ROTATION_ANGLE_90 ||
+			pipe_ctx->surface->public.rotation == ROTATION_ANGLE_270)
+		rect_swap_helper(&surf_src);
+
 	pipe_ctx->scl_data.recout.x = stream->public.dst.x;
-	if (stream->public.src.x < clip.x)
-		pipe_ctx->scl_data.recout.x += (clip.x
+	if (stream->public.src.x < surf_clip.x)
+		pipe_ctx->scl_data.recout.x += (surf_clip.x
 			- stream->public.src.x) * stream->public.dst.width
 						/ stream->public.src.width;
 
-	pipe_ctx->scl_data.recout.width = clip.width *
+	pipe_ctx->scl_data.recout.width = surf_clip.width *
 			stream->public.dst.width / stream->public.src.width;
 	if (pipe_ctx->scl_data.recout.width + pipe_ctx->scl_data.recout.x >
 			stream->public.dst.x + stream->public.dst.width)
@@ -541,12 +552,12 @@ static void calculate_recout(struct pipe_ctx *pipe_ctx, struct view *recout_skip
 						- pipe_ctx->scl_data.recout.x;
 
 	pipe_ctx->scl_data.recout.y = stream->public.dst.y;
-	if (stream->public.src.y < clip.y)
-		pipe_ctx->scl_data.recout.y += (clip.y
+	if (stream->public.src.y < surf_clip.y)
+		pipe_ctx->scl_data.recout.y += (surf_clip.y
 			- stream->public.src.y) * stream->public.dst.height
 						/ stream->public.src.height;
 
-	pipe_ctx->scl_data.recout.height = clip.height *
+	pipe_ctx->scl_data.recout.height = surf_clip.height *
 			stream->public.dst.height / stream->public.src.height;
 	if (pipe_ctx->scl_data.recout.height + pipe_ctx->scl_data.recout.y >
 			stream->public.dst.y + stream->public.dst.height)
@@ -569,7 +580,7 @@ static void calculate_recout(struct pipe_ctx *pipe_ctx, struct view *recout_skip
 			pipe_ctx->scl_data.recout.width += pipe_ctx->scl_data.recout.width % 2;
 		}
 	} else if (pipe_ctx->bottom_pipe &&
-			   pipe_ctx->bottom_pipe->surface == pipe_ctx->surface) {
+			pipe_ctx->bottom_pipe->surface == pipe_ctx->surface) {
 		if (stream->public.timing.timing_3d_format ==
 			TIMING_3D_FORMAT_TOP_AND_BOTTOM)
 			pipe_ctx->scl_data.recout.height /= 2;
@@ -577,17 +588,17 @@ static void calculate_recout(struct pipe_ctx *pipe_ctx, struct view *recout_skip
 			pipe_ctx->scl_data.recout.width /= 2;
 	}
 
-	/* Unclipped recout offset = stream dst offset + ((surf dst offset - stream src offset)
-	 * 				* 1/ stream scaling ratio) - (surf src offset * 1/ full scl
+	/* Unclipped recout offset = stream dst offset + ((surf dst offset - stream surf_src offset)
+	 * 				* 1/ stream scaling ratio) - (surf surf_src offset * 1/ full scl
 	 * 				ratio)
 	 */
 	recout_full_x = stream->public.dst.x + (surface->dst_rect.x -  stream->public.src.x)
 					* stream->public.dst.width / stream->public.src.width -
-			surface->src_rect.x * surface->dst_rect.width / surface->src_rect.width
+			surf_src.x * surface->dst_rect.width / surf_src.width
 					* stream->public.dst.width / stream->public.src.width;
 	recout_full_y = stream->public.dst.y + (surface->dst_rect.y -  stream->public.src.y)
 					* stream->public.dst.height / stream->public.src.height -
-			surface->src_rect.y * surface->dst_rect.height / surface->src_rect.height
+			surf_src.y * surface->dst_rect.height / surf_src.height
 					* stream->public.dst.height / stream->public.src.height;
 
 	recout_skip->width = pipe_ctx->scl_data.recout.x - recout_full_x;
@@ -598,16 +609,21 @@ static void calculate_scaling_ratios(struct pipe_ctx *pipe_ctx)
 {
 	const struct dc_surface *surface = &pipe_ctx->surface->public;
 	struct core_stream *stream = pipe_ctx->stream;
+	struct rect surf_src = surface->src_rect;
 	const int in_w = stream->public.src.width;
 	const int in_h = stream->public.src.height;
 	const int out_w = stream->public.dst.width;
 	const int out_h = stream->public.dst.height;
 
+	if (pipe_ctx->surface->public.rotation == ROTATION_ANGLE_90 ||
+			pipe_ctx->surface->public.rotation == ROTATION_ANGLE_270)
+		rect_swap_helper(&surf_src);
+
 	pipe_ctx->scl_data.ratios.horz = dal_fixed31_32_from_fraction(
-					surface->src_rect.width,
+					surf_src.width,
 					surface->dst_rect.width);
 	pipe_ctx->scl_data.ratios.vert = dal_fixed31_32_from_fraction(
-					surface->src_rect.height,
+					surf_src.height,
 					surface->dst_rect.height);
 
 	if (surface->stereo_format == PLANE_STEREO_FORMAT_SIDE_BY_SIDE)
@@ -637,8 +653,10 @@ static void calculate_inits_and_adj_vp(struct pipe_ctx *pipe_ctx, struct view *r
 	int vpc_div = (data->format == PIXEL_FORMAT_420BPP12
 			|| data->format == PIXEL_FORMAT_420BPP15) ? 2 : 1;
 
+
 	if (pipe_ctx->surface->public.rotation == ROTATION_ANGLE_90 ||
 			pipe_ctx->surface->public.rotation == ROTATION_ANGLE_270) {
+		rect_swap_helper(&src);
 		rect_swap_helper(&data->viewport_c);
 		rect_swap_helper(&data->viewport);
 	}
drivers/gpu/drm/amd/display/dc/dc_hw_types.h +10 -10
index 1a7ce061258f..58a3bcd5131f 100644
@@ -99,15 +99,15 @@ struct dc_plane_address {
 };
 
 struct dc_size {
-	uint32_t width;
-	uint32_t height;
+	int width;
+	int height;
 };
 
 struct rect {
 	int x;
 	int y;
-	uint32_t width;
-	uint32_t height;
+	int width;
+	int height;
 };
 
 union plane_size {
@@ -123,7 +123,7 @@ union plane_size {
 		 * In LINEAR_GENERAL mode, pitch
 		 * is 32 pixel aligned.
 		 */
-		uint32_t surface_pitch;
+		int surface_pitch;
 	} grph;
 
 	struct {
@@ -132,14 +132,14 @@ union plane_size {
 		 * In LINEAR_GENERAL mode, pitch is
 		 * 32 pixel aligned.
 		 */
-		uint32_t luma_pitch;
+		int luma_pitch;
 
 		struct rect chroma_size;
 		/* Graphic surface pitch in pixels.
 		 * In LINEAR_GENERAL mode, pitch is
 		 * 32 pixel aligned.
 		 */
-		uint32_t chroma_pitch;
+		int chroma_pitch;
 	} video;
 };
 
@@ -148,15 +148,15 @@ struct dc_plane_dcc_param {
 
 	union {
 		struct {
-			uint32_t meta_pitch;
+			int meta_pitch;
 			bool independent_64b_blks;
 		} grph;
 
 		struct {
-			uint32_t meta_pitch_l;
+			int meta_pitch_l;
 			bool independent_64b_blks_l;
 
-			uint32_t meta_pitch_c;
+			int meta_pitch_c;
 			bool independent_64b_blks_c;
 		} video;
 	};
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#30 lore raw

PATCH 29/31 drm/amd/display: add yuv pixel formats to pixel_format_to_bpp()

In reply to a message not in the archive

From: Dmytro Laktyushkin <[email protected]>

Change-Id I8a8430148070cb3356273c498516d73bfeb986c8
---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/display/dc/core/dc.c +5 -0
index 1e6952bde25b..bc9808180346 100644
@@ -1051,8 +1051,13 @@ static bool is_surface_in_context(
 static unsigned int pixel_format_to_bpp(enum surface_pixel_format format)
 {
 	switch (format) {
+	case SURFACE_PIXEL_FORMAT_VIDEO_420_YCbCr:
+	case SURFACE_PIXEL_FORMAT_VIDEO_420_YCrCb:
+		return 12;
 	case SURFACE_PIXEL_FORMAT_GRPH_ARGB1555:
 	case SURFACE_PIXEL_FORMAT_GRPH_RGB565:
+	case SURFACE_PIXEL_FORMAT_VIDEO_420_10bpc_YCbCr:
+	case SURFACE_PIXEL_FORMAT_VIDEO_420_10bpc_YCrCb:
 		return 16;
 	case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888:
 	case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888:
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#31 lore raw

PATCH 30/31 drm/amd/display: fix scaling info based surface update type check

In reply to a message not in the archive

From: Dmytro Laktyushkin <[email protected]>

Change-Id I8747a1bb298e57824515f126990429dbbca05ecd
---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 47 +++++++++-----------------------
 1 file changed, 13 insertions(+), 34 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +13 -34
index bc9808180346..6d56cb0c29cc 100644
@@ -1122,45 +1122,24 @@ static enum surface_update_type get_plane_info_update_type(
 static enum surface_update_type  get_scaling_info_update_type(
 		const struct dc_surface_update *u)
 {
-	struct dc_scaling_info temp_scaling_info = { { 0 } };
-
 	if (!u->scaling_info)
 		return UPDATE_TYPE_FAST;
 
-	/* Copy all parameters that will cause a full update
-	 * from current surface, the rest of the parameters
-	 * from provided plane configuration.
-	 * Perform memory compare and special validation
-	 * for those that can cause fast/medium updates
-	 */
-
-	/* Full Update Parameters */
-	temp_scaling_info.dst_rect = u->surface->dst_rect;
-	temp_scaling_info.src_rect = u->surface->src_rect;
-	temp_scaling_info.scaling_quality = u->surface->scaling_quality;
-
-	/* Special validation required */
-	temp_scaling_info.clip_rect = u->scaling_info->clip_rect;
-
-	if (memcmp(u->scaling_info, &temp_scaling_info,
-			sizeof(struct dc_scaling_info)) != 0)
+	if (u->scaling_info->src_rect.width != u->surface->src_rect.width
+			|| u->scaling_info->src_rect.height != u->surface->src_rect.height
+			|| u->scaling_info->clip_rect.width != u->surface->clip_rect.width
+			|| u->scaling_info->clip_rect.height != u->surface->clip_rect.height
+			|| u->scaling_info->dst_rect.width != u->surface->dst_rect.width
+			|| u->scaling_info->dst_rect.height != u->surface->dst_rect.height)
 		return UPDATE_TYPE_FULL;
 
-	/* Check Clip rectangles if not equal
-	 * difference is in offsets == > UPDATE_TYPE_MED
-	 * difference is in dimensions == > UPDATE_TYPE_FULL
-	 */
-	if (memcmp(&u->scaling_info->clip_rect,
-			&u->surface->clip_rect, sizeof(struct rect)) != 0) {
-		if ((u->scaling_info->clip_rect.height ==
-			u->surface->clip_rect.height) &&
-			(u->scaling_info->clip_rect.width ==
-			u->surface->clip_rect.width)) {
-			return UPDATE_TYPE_MED;
-		} else {
-			return UPDATE_TYPE_FULL;
-		}
-	}
+	if (u->scaling_info->src_rect.x != u->surface->src_rect.x
+			|| u->scaling_info->src_rect.y != u->surface->src_rect.y
+			|| u->scaling_info->clip_rect.x != u->surface->clip_rect.x
+			|| u->scaling_info->clip_rect.y != u->surface->clip_rect.y
+			|| u->scaling_info->dst_rect.x != u->surface->dst_rect.x
+			|| u->scaling_info->dst_rect.y != u->surface->dst_rect.y)
+		return UPDATE_TYPE_MED;
 
 	return UPDATE_TYPE_FAST;
 }
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#32 lore raw

PATCH 31/31 drm/amd/display: add explanation for surface_update_type

In reply to a message not in the archive

From: Dmytro Laktyushkin <[email protected]>

Change-Id I7ce6668c865e9f8542a3bf5cc15d7474c0578eb5
---
 drivers/gpu/drm/amd/display/dc/dc.h | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dc.h +27 -1
index 7dd145b6e927..9a19d6f5a6a3 100644
@@ -434,9 +434,35 @@ bool dc_post_update_surfaces_to_stream(
 void dc_update_surfaces_for_stream(struct dc *dc, struct dc_surface_update *updates,
 		int surface_count, const struct dc_stream *stream);
 
+/* Surface update type is used by dc_update_surfaces_and_stream
+ * The update type is determined at the very beginning of the function based
+ * on parameters passed in and decides how much programming (or updating) is
+ * going to be done during the call.
+ *
+ * UPDATE_TYPE_FAST is used for really fast updates that do not require much
+ * logical calculations or hardware register programming. This update MUST be
+ * ISR safe on windows. Currently fast update will only be used to flip surface
+ * address.
+ *
+ * UPDATE_TYPE_MED is used for slower updates which require significant hw
+ * re-programming however do not affect bandwidth consumption or clock
+ * requirements. At present, this is the level at which front end updates
+ * that do not require us to run bw_calcs happen. These are in/out transfer func
+ * updates, viewport offset changes, recout size changes and pixel depth changes.
+ * This update can be done at ISR, but we want to minimize how often this happens.
+ *
+ * UPDATE_TYPE_FULL is slow. Really slow. This requires us to recalculate our
+ * bandwidth and clocks, possibly rearrange some pipes and reprogram anything front
+ * end related. Any time viewport dimensions, recout dimensions, scaling ratios or
+ * gamma need to be adjusted or pipe needs to be turned on (or disconnected) we do
+ * a full update. This cannot be done at ISR level and should be a rare event.
+ * Unless someone is stress testing mpo enter/exit, playing with colour or adjusting
+ * underscan we don't expect to see this call at all.
+ */
+
 enum surface_update_type {
 	UPDATE_TYPE_FAST, /* super fast, safe to execute in isr */
-	UPDATE_TYPE_MED,  /* a lot of programming needed.  may need to alloc */
+	UPDATE_TYPE_MED,  /* ISR safe, most of programming needed, no bw/clk change*/
 	UPDATE_TYPE_FULL, /* may need to shuffle resources */
 };
 
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#33 lore raw
In reply to a message not in the archive

Still getting noise in dmesg with DCN enabled on my carrizo/vega10 setup. It's otherwise fine.

Tom

Quoted 98 lines · Harry Wentland

* Fix deadlock when plugging MST display
* Fix DVI->HDMI dongles
* Bunch of raven bandwidth changes
* Some more cleanup for i2c/aux

Amy Zhang (1):
drm/amd/display: Move output transfer function to stream updates

Andrey Grodzovsky (4):
drm/amd/display: i2c Remove link index.
drm/amd/display: DP aux Remove link index.
drm/amd/display: i2c/aux Remove link index.
drm/amd/display: Fix race.

Anthony Koo (2):
drm/amd/display: use signal type to decide whether to set backlight drm/amd/display: Implement support for backlight optimization

Charlene Liu (1):
drm/amd/display: single channel bandwidth verses dual channel
bandwidth

Corbin McElhanney (1):
drm/amd/display: fix freesync not working on raven

Dmytro Laktyushkin (9):
drm/amd/display: bw debug options now apply to dml as well drm/amd/display: prevent assert on error of 1 in calc_freesync_range drm/amd/display: refactor bw related variable structure in val_ctx drm/amd/display: switch to using calc_clk and cur_clk for dcn bw
setting
drm/amd/display: enable watermark range reporting to pplib drm/amd/display: fix scaling calculation for proper surface input
format
drm/amd/display: add yuv pixel formats to pixel_format_to_bpp() drm/amd/display: fix scaling info based surface update type check drm/amd/display: add explanation for surface_update_type

Harry Wentland (6):
drm/amd/display: Don't call PSR func if DMCU is off drm/amd/display: Keep DVI_SINGLE_LINK signal if low clk drm/amd/display: ifdef some code only needed for DCN drm/amd/display: Use MED update type if clip position changes drm/amd/display: Add mem_input header to non-DCN builds drm/amd/display: DCE12 num_timing_generators should be 6

Ken Chalmers (1):
drm/amd/display: Continue with stream enable if DP link training
fails.

Leon Elazar (1):
drm/amd/display: Allow MPO on Raven

Pratik Vishwakarma (1):
drm/amd/display: get_atomic_property missing for drm_connector_funcs

Sun peng Li (1):
drm/amd/display: Reverting locks around updating freesync property

Tony Cheng (1):
drm/amd/display: do not set_mpc_tree if tree is already setup

Yongqiang Sun (2):
drm/amd/display: Only apply ctx for specific surface. drm/amd/display: Add 64KB_S_T and 64KB_D_T swizzle mode.

  drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h           |   6 +-
  .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c    |  38 +++---
  .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.c    |  82 +++++++++---
  .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.h    |   6 +
  drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c   |  18 +--
  drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c   | 131 +++++++++++--------
  drivers/gpu/drm/amd/display/dc/core/dc.c           | 140 ++++++++-------------
  drivers/gpu/drm/amd/display/dc/core/dc_link.c      |  59 +++++----
  drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c   |   4 +-
  drivers/gpu/drm/amd/display/dc/core/dc_resource.c  |  69 ++++++----
  drivers/gpu/drm/amd/display/dc/dc.h                |  51 +++++---
  drivers/gpu/drm/amd/display/dc/dc_hw_types.h       |  20 +--
  drivers/gpu/drm/amd/display/dc/dce/dce_abm.c       |  36 ++++--
  drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c    |  11 +-
  drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c |   6 +-
  drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h |  12 +-
  .../amd/display/dc/dce100/dce100_hw_sequencer.c    |   9 +-
  .../drm/amd/display/dc/dce100/dce100_resource.c    |   4 +-
  .../amd/display/dc/dce110/dce110_hw_sequencer.c    | 100 ++++++++-------
  .../drm/amd/display/dc/dce110/dce110_mem_input.c   |  12 +-
  .../drm/amd/display/dc/dce110/dce110_mem_input.h   |   6 +-
  .../drm/amd/display/dc/dce110/dce110_mem_input_v.c |  30 ++---
  .../drm/amd/display/dc/dce110/dce110_mem_input_v.h |   6 +-
  .../drm/amd/display/dc/dce110/dce110_resource.c    |  63 +++++-----
  .../drm/amd/display/dc/dce112/dce112_resource.c    |  63 +++++-----
  .../drm/amd/display/dc/dce120/dce120_resource.c    |   4 +-
  .../gpu/drm/amd/display/dc/dce80/dce80_resource.c  |   4 +-
  .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  | 121 +++++++++++++-----
  .../gpu/drm/amd/display/dc/dcn10/dcn10_mem_input.c |   6 +-
  .../gpu/drm/amd/display/dc/dcn10/dcn10_resource.c  |   4 +-
  drivers/gpu/drm/amd/display/dc/inc/core_status.h   |   1 +
  drivers/gpu/drm/amd/display/dc/inc/core_types.h    |  61 +++++++--
Quoted 9 lines
  drivers/gpu/drm/amd/display/dc/inc/dce_calcs.h     |  29 +----
  drivers/gpu/drm/amd/display/dc/inc/hw/abm.h        |   2 +
  drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h        |   2 +
  drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h  |  20 +--
  drivers/gpu/drm/amd/display/dc/inc/hw/opp.h        |   2 +
  drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h  |   1 -
  .../drm/amd/display/modules/freesync/freesync.c    |  16 ++-
  39 files changed, 741 insertions(+), 514 deletions(-)
[    0.000000] Linux version 4.9.0+ (root@carrizo) (gcc version 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC) ) #4 SMP Tue May 9 08:29:14 EDT 2017
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.9.0+ root=UUID=94d1a188-a2a5-49a3-9638-fc955e2e8334 ro rhgb quiet LANG=en_CA.UTF-8 rdblacklist=amdgpu,radeon
[    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[    0.000000] x86/fpu: Using 'eager' FPU context switches.
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000087fff] usable
[    0.000000] BIOS-e820: [mem 0x0000000000088000-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000bedbefff] usable
[    0.000000] BIOS-e820: [mem 0x00000000bedbf000-0x00000000bf8befff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000bf8bf000-0x00000000bfbbefff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x00000000bfbbf000-0x00000000bfbfefff] ACPI data
[    0.000000] BIOS-e820: [mem 0x00000000bfbff000-0x00000000bfbfffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000d1000000-0x00000000d10fffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fec10000-0x00000000fec10fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fed80000-0x00000000fed80fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000021effffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] e820: update [mem 0xb8234018-0xb8243c57] usable ==> usable
[    0.000000] e820: update [mem 0xb8225018-0xb8233257] usable ==> usable
[    0.000000] extended physical RAM map:
[    0.000000] reserve setup_data: [mem 0x0000000000000000-0x0000000000087fff] usable
[    0.000000] reserve setup_data: [mem 0x0000000000088000-0x000000000009ffff] reserved
[    0.000000] reserve setup_data: [mem 0x0000000000100000-0x00000000b8225017] usable
[    0.000000] reserve setup_data: [mem 0x00000000b8225018-0x00000000b8233257] usable
[    0.000000] reserve setup_data: [mem 0x00000000b8233258-0x00000000b8234017] usable
[    0.000000] reserve setup_data: [mem 0x00000000b8234018-0x00000000b8243c57] usable
[    0.000000] reserve setup_data: [mem 0x00000000b8243c58-0x00000000bedbefff] usable
[    0.000000] reserve setup_data: [mem 0x00000000bedbf000-0x00000000bf8befff] reserved
[    0.000000] reserve setup_data: [mem 0x00000000bf8bf000-0x00000000bfbbefff] ACPI NVS
[    0.000000] reserve setup_data: [mem 0x00000000bfbbf000-0x00000000bfbfefff] ACPI data
[    0.000000] reserve setup_data: [mem 0x00000000bfbff000-0x00000000bfbfffff] usable
[    0.000000] reserve setup_data: [mem 0x00000000d1000000-0x00000000d10fffff] reserved
[    0.000000] reserve setup_data: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
[    0.000000] reserve setup_data: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
[    0.000000] reserve setup_data: [mem 0x00000000fec10000-0x00000000fec10fff] reserved
[    0.000000] reserve setup_data: [mem 0x00000000fed80000-0x00000000fed80fff] reserved
[    0.000000] reserve setup_data: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
[    0.000000] reserve setup_data: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
[    0.000000] reserve setup_data: [mem 0x0000000100000000-0x000000021effffff] usable
[    0.000000] efi: EFI v2.40 by INSYDE Corp.
[    0.000000] efi:  SMBIOS=0xbf065000  ESRT=0xbf069a18  ACPI 2.0=0xbfbfe014 
[    0.000000] SMBIOS 2.7 present.
[    0.000000] DMI: AMD Myrtle/Myrtle, BIOS TMY1100A 03/23/2016
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] e820: last_pfn = 0x21f000 max_arch_pfn = 0x400000000
[    0.000000] MTRR default type: uncachable
[    0.000000] MTRR fixed ranges enabled:
[    0.000000]   00000-9FFFF write-back
[    0.000000]   A0000-BFFFF uncachable
[    0.000000]   C0000-FFFFF write-through
[    0.000000] MTRR variable ranges enabled:
[    0.000000]   0 base 000000000000 mask FFFF80000000 write-back
[    0.000000]   1 base 000080000000 mask FFFFC0000000 write-back
[    0.000000]   2 base 0000FF000000 mask FFFFFF000000 write-protect
[    0.000000]   3 disabled
[    0.000000]   4 disabled
[    0.000000]   5 disabled
[    0.000000]   6 disabled
[    0.000000]   7 disabled
[    0.000000] TOM2: 000000023f000000 aka 9200M
[    0.000000] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WC  UC- WT  
[    0.000000] e820: last_pfn = 0xbfc00 max_arch_pfn = 0x400000000
[    0.000000] esrt: Reserving ESRT space from 0x00000000bf069a18 to 0x00000000bf069a50.
[    0.000000] Scanning 1 areas for low memory corruption
[    0.000000] Base memory trampoline at [ffff880000029000] 29000 size 24576
[    0.000000] Using GB pages for direct mapping
[    0.000000] BRK [0x01eef000, 0x01eeffff] PGTABLE
[    0.000000] BRK [0x01ef0000, 0x01ef0fff] PGTABLE
[    0.000000] BRK [0x01ef1000, 0x01ef1fff] PGTABLE
[    0.000000] BRK [0x01ef2000, 0x01ef2fff] PGTABLE
[    0.000000] BRK [0x01ef3000, 0x01ef3fff] PGTABLE
[    0.000000] RAMDISK: [mem 0x3eaae000-0x3fffafff]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x00000000BFBFE014 000024 (v02 AMD   )
[    0.000000] ACPI: XSDT 0x00000000BFBFE120 0000BC (v01 AMD    Myrtle   00000001      01000013)
[    0.000000] ACPI: FACP 0x00000000BFBF8000 00010C (v05 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: DSDT 0x00000000BFBEC000 00643D (v01 AMD    Myrtle   00040000 ACPI 00040000)
[    0.000000] ACPI: FACS 0x00000000BFBA1000 000040
[    0.000000] ACPI: UEFI 0x00000000BFBFC000 001036 (v01 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: UEFI 0x00000000BFBFB000 000042 (v01 AMD    Myrtle   00000000 ACPI 00040000)
[    0.000000] ACPI: ASF! 0x00000000BFBFA000 0000A5 (v32 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: BOOT 0x00000000BFBF9000 000028 (v01 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: HPET 0x00000000BFBF7000 000038 (v01 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: APIC 0x00000000BFBF6000 000090 (v03 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: MCFG 0x00000000BFBF5000 00003C (v01 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: SSDT 0x00000000BFBF3000 000D40 (v01 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: SSDT 0x00000000BFBEA000 0002FF (v02 AMD    Myrtle   00000002 ACPI 00040000)
[    0.000000] ACPI: IVRS 0x00000000BFBE9000 0000D0 (v02 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: CRAT 0x00000000BFBE8000 000528 (v01 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: SSDT 0x00000000BFBE7000 00044D (v01 AMD    Myrtle   00001000 ACPI 00040000)
[    0.000000] ACPI: TPM2 0x00000000BFBE6000 000034 (v03 AMD    Myrtle   00000000 ACPI 00040000)
[    0.000000] ACPI: SSDT 0x00000000BFBE5000 000692 (v01 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: SSDT 0x00000000BFBE3000 001492 (v01 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: SSDT 0x00000000BFBE1000 001650 (v01 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: FPDT 0x00000000BFBE0000 000044 (v01 AMD    Myrtle   00000002 ACPI 00040000)
[    0.000000] ACPI: BGRT 0x00000000BFBF4000 000038 (v01 AMD    Myrtle   00000001 ACPI 00040000)
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at [mem 0x0000000000000000-0x000000021effffff]
[    0.000000] NODE_DATA(0) allocated [mem 0x21effa000-0x21effdfff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000000]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000021effffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000001000-0x0000000000087fff]
[    0.000000]   node   0: [mem 0x0000000000100000-0x00000000bedbefff]
[    0.000000]   node   0: [mem 0x00000000bfbff000-0x00000000bfbfffff]
[    0.000000]   node   0: [mem 0x0000000100000000-0x000000021effffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000021effffff]
[    0.000000] On node 0 totalpages: 1957191
[    0.000000]   DMA zone: 64 pages used for memmap
[    0.000000]   DMA zone: 1134 pages reserved
[    0.000000]   DMA zone: 3975 pages, LIFO batch:0
[    0.000000]   DMA32 zone: 12151 pages used for memmap
[    0.000000]   DMA32 zone: 777664 pages, LIFO batch:31
[    0.000000]   Normal zone: 18368 pages used for memmap
[    0.000000]   Normal zone: 1175552 pages, LIFO batch:31
[    0.000000] ACPI: PM-Timer IO Port: 0x408
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1])
[    0.000000] IOAPIC[0]: apic_id 4, version 33, address 0xfec00000, GSI 0-23
[    0.000000] IOAPIC[1]: apic_id 5, version 33, address 0xfec01000, GSI 24-55
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] ACPI: HPET id: 0x10228210 base: 0xfed00000
[    0.000000] smpboot: Allowing 4 CPUs, 0 hotplug CPUs
[    0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.000000] PM: Registered nosave memory: [mem 0x00088000-0x0009ffff]
[    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000fffff]
[    0.000000] PM: Registered nosave memory: [mem 0xb8225000-0xb8225fff]
[    0.000000] PM: Registered nosave memory: [mem 0xb8233000-0xb8233fff]
[    0.000000] PM: Registered nosave memory: [mem 0xb8234000-0xb8234fff]
[    0.000000] PM: Registered nosave memory: [mem 0xb8243000-0xb8243fff]
[    0.000000] PM: Registered nosave memory: [mem 0xbedbf000-0xbf8befff]
[    0.000000] PM: Registered nosave memory: [mem 0xbf8bf000-0xbfbbefff]
[    0.000000] PM: Registered nosave memory: [mem 0xbfbbf000-0xbfbfefff]
[    0.000000] PM: Registered nosave memory: [mem 0xbfc00000-0xd0ffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xd1000000-0xd10fffff]
[    0.000000] PM: Registered nosave memory: [mem 0xd1100000-0xf7ffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xf8000000-0xfbffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfc000000-0xfebfffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec01000-0xfec0ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec10000-0xfec10fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec11000-0xfed7ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed80000-0xfed80fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed81000-0xfedfffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfee00000-0xfee00fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfee01000-0xfeffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xff000000-0xffffffff]
[    0.000000] e820: [mem 0xd1100000-0xf7ffffff] available for PCI devices
[    0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[    0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:4 nr_node_ids:1
[    0.000000] percpu: Embedded 34 pages/cpu @ffff88021ec00000 s100632 r8192 d30440 u524288
[    0.000000] pcpu-alloc: s100632 r8192 d30440 u524288 alloc=1*2097152
[    0.000000] pcpu-alloc: [0] 0 1 2 3 
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 1925474
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-4.9.0+ root=UUID=94d1a188-a2a5-49a3-9638-fc955e2e8334 ro rhgb quiet LANG=en_CA.UTF-8 rdblacklist=amdgpu,radeon
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Calgary: detecting Calgary via BIOS EBDA area
[    0.000000] Calgary: Unable to locate Rio Grande table in EBDA - bailing!
[    0.000000] Memory: 7538156K/7828764K available (7723K kernel code, 1074K rwdata, 2408K rodata, 1088K init, 796K bss, 290608K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 64.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=4
[    0.000000] NR_IRQS:4352 nr_irqs:1000 16
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled
[    0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
[    0.000000] hpet clockevent registered
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 3799.701 MHz processor
[    0.000017] Calibrating delay loop (skipped), value calculated using timer frequency.. 7599.40 BogoMIPS (lpj=3799701)
[    0.000018] pid_max: default: 32768 minimum: 301
[    0.000021] ACPI: Core revision 20160831
[    0.002756] ACPI: 7 ACPI AML tables successfully acquired and loaded
[    0.005398] Security Framework initialized
[    0.005400] SELinux:  Initializing.
[    0.005404] SELinux:  Starting in permissive mode
[    0.005664] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[    0.007532] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[    0.008421] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
[    0.008427] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes)
[    0.008652] CPU: Physical Processor ID: 0
[    0.008653] CPU: Processor Core ID: 0
[    0.008663] mce: CPU supports 7 MCE banks
[    0.008669] LVT offset 1 assigned for vector 0xf9
[    0.008674] [Firmware Bug]: CPU0: APIC id mismatch. Firmware: 10 CPUID: 0
[    0.008679] [Firmware Bug]: CPU0: Using firmware package id 1 instead of 0
[    0.008682] Last level iTLB entries: 4KB 512, 2MB 1024, 4MB 512
[    0.008682] Last level dTLB entries: 4KB 1024, 2MB 1024, 4MB 512, 1GB 0
[    0.009010] Freeing SMP alternatives memory: 32K (ffffffff81e1e000 - ffffffff81e26000)
[    0.014224] smpboot: APIC(10) Converting physical 1 to logical package 0
[    0.014226] smpboot: Max logical packages: 2
[    0.014600] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.126183] smpboot: CPU0: AMD A12-9800 RADEON R7, 12 COMPUTE CORES 4C+8G (family: 0x15, model: 0x65, stepping: 0x1)
[    0.126186] Performance Events: Fam15h core perfctr, AMD PMU driver.
[    0.126190] ... version:                0
[    0.126190] ... bit width:              48
[    0.126191] ... generic registers:      6
[    0.126191] ... value mask:             0000ffffffffffff
[    0.126191] ... max period:             00007fffffffffff
[    0.126192] ... fixed-purpose events:   0
[    0.126192] ... event mask:             000000000000003f
[    0.126508] MCE: In-kernel MCE decoding enabled.
[    0.126620] x86: Booting SMP configuration:
[    0.126621] .... node  #0, CPUs:      #1
[    0.126773] [Firmware Bug]: CPU1: APIC id mismatch. Firmware: 11 CPUID: 1
[    0.126774] [Firmware Bug]: CPU1: Using firmware package id 1 instead of 0
[    0.137312]  #2
[    0.137519] [Firmware Bug]: CPU2: APIC id mismatch. Firmware: 12 CPUID: 2
[    0.137520] [Firmware Bug]: CPU2: Using firmware package id 1 instead of 0
[    0.148568]  #3
[    0.148770] [Firmware Bug]: CPU3: APIC id mismatch. Firmware: 13 CPUID: 3
[    0.148771] [Firmware Bug]: CPU3: Using firmware package id 1 instead of 0
[    0.159406] x86: Booted up 1 node, 4 CPUs
[    0.159478] smpboot: Total of 4 processors activated (30344.49 BogoMIPS)
[    0.161359] devtmpfs: initialized
[    0.161932] PM: Registering ACPI NVS region [mem 0xbf8bf000-0xbfbbefff] (3145728 bytes)
[    0.162071] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.162133] RTC time: 22:23:35, date: 05/10/17
[    0.162293] NET: Registered protocol family 16
[    0.162373] kworker/u8:0 (30) used greatest stack depth: 14872 bytes left
[    0.162416] kworker/u8:0 (31) used greatest stack depth: 14088 bytes left
[    0.167372] cpuidle: using governor menu
[    0.167500] Simple Boot Flag at 0x44 set to 0x80
[    0.167526] ACPI: bus type PCI registered
[    0.167632] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xf8000000-0xfbffffff] (base 0xf8000000)
[    0.167648] PCI: MMCONFIG at [mem 0xf8000000-0xfbffffff] reserved in E820
[    0.167652] PCI: Using configuration type 1 for base access
[    0.168494] kworker/u8:3 (99) used greatest stack depth: 13992 bytes left
[    0.176789] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.176942] ACPI: Added _OSI(Module Device)
[    0.176943] ACPI: Added _OSI(Processor Device)
[    0.176944] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.176945] ACPI: Added _OSI(Processor Aggregator Device)
[    0.177108] ACPI: Executed 1 blocks of module-level executable AML code
[    0.179935] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    0.184726] ACPI: Interpreter enabled
[    0.184742] ACPI: (supports S0 S3 S4 S5)
[    0.184743] ACPI: Using IOAPIC for interrupt routing
[    0.184834] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.185158] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[    0.186107] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[    0.186529] ACPI: Power Resource [P0U2] (off)
[    0.186563] ACPI: Power Resource [P3U2] (off)
[    0.186661] ACPI: Power Resource [P0U3] (off)
[    0.186687] ACPI: Power Resource [P3U3] (off)
[    0.187395] ACPI: Power Resource [P0ST] (on)
[    0.187435] ACPI: Power Resource [P3ST] (on)
[    0.187956] ACPI: Power Resource [P0SD] (off)
[    0.187982] ACPI: Power Resource [P3SD] (off)
[    0.190528] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    0.190533] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[    0.190693] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[    0.190700] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[    0.190751] acpi PNP0A08:00: ignoring host bridge window [mem 0x000cc000-0x000cffff window] (conflicts with Video ROM [mem 0x000c0000-0x000ce1ff])
[    0.190774] PCI host bridge to bus 0000:00
[    0.190775] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    0.190777] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]
[    0.190778] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[    0.190779] pci_bus 0000:00: root bus resource [mem 0x000c0000-0x000c3fff window]
[    0.190780] pci_bus 0000:00: root bus resource [mem 0x000c4000-0x000c7fff window]
[    0.190781] pci_bus 0000:00: root bus resource [mem 0x000c8000-0x000cbfff window]
[    0.190782] pci_bus 0000:00: root bus resource [mem 0x000d0000-0x000d3fff window]
[    0.190782] pci_bus 0000:00: root bus resource [mem 0x000d4000-0x000d7fff window]
[    0.190783] pci_bus 0000:00: root bus resource [mem 0x000d8000-0x000dbfff window]
[    0.190784] pci_bus 0000:00: root bus resource [mem 0x000dc000-0x000dffff window]
[    0.190785] pci_bus 0000:00: root bus resource [mem 0x000e0000-0x000e3fff window]
[    0.190786] pci_bus 0000:00: root bus resource [mem 0x000e4000-0x000e7fff window]
[    0.190787] pci_bus 0000:00: root bus resource [mem 0x000e8000-0x000ebfff window]
[    0.190788] pci_bus 0000:00: root bus resource [mem 0x000ec000-0x000effff window]
[    0.190789] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xf7ffffff window]
[    0.190790] pci_bus 0000:00: root bus resource [mem 0xfc000000-0xfebfffff window]
[    0.190791] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.190835] pci 0000:00:00.0: [1022:1576] type 00 class 0x060000
[    0.190933] pci 0000:00:00.2: [1022:1577] type 00 class 0x080600
[    0.191021] pci 0000:00:01.0: [1002:9874] type 00 class 0x030000
[    0.191031] pci 0000:00:01.0: reg 0x10: [mem 0xe0000000-0xefffffff 64bit pref]
[    0.191038] pci 0000:00:01.0: reg 0x18: [mem 0xd0800000-0xd0ffffff 64bit pref]
[    0.191042] pci 0000:00:01.0: reg 0x20: [io  0x3000-0x30ff]
[    0.191046] pci 0000:00:01.0: reg 0x24: [mem 0xd1400000-0xd143ffff]
[    0.191050] pci 0000:00:01.0: reg 0x30: [mem 0xfffe0000-0xffffffff pref]
[    0.191077] pci 0000:00:01.0: supports D1 D2
[    0.191078] pci 0000:00:01.0: PME# supported from D1 D2 D3hot
[    0.191145] pci 0000:00:01.1: [1002:9840] type 00 class 0x040300
[    0.191154] pci 0000:00:01.1: reg 0x10: [mem 0xd1460000-0xd1463fff 64bit]
[    0.191192] pci 0000:00:01.1: supports D1 D2
[    0.191250] pci 0000:00:02.0: [1022:157b] type 00 class 0x060000
[    0.191343] pci 0000:00:03.0: [1022:157b] type 00 class 0x060000
[    0.191407] pci 0000:00:03.1: [1022:157c] type 01 class 0x060400
[    0.191458] pci 0000:00:03.1: PME# supported from D0 D3hot D3cold
[    0.191900] pci 0000:00:03.1: System wakeup disabled by ACPI
[    0.192005] pci 0000:00:08.0: [1022:1578] type 00 class 0x108000
[    0.192014] pci 0000:00:08.0: reg 0x10: [mem 0xd1440000-0xd145ffff 64bit pref]
[    0.192018] pci 0000:00:08.0: reg 0x18: [mem 0xd1100000-0xd11fffff]
[    0.192021] pci 0000:00:08.0: reg 0x1c: [mem 0xd146f000-0xd146ffff]
[    0.192027] pci 0000:00:08.0: reg 0x24: [mem 0xd146a000-0xd146bfff]
[    0.192096] pci 0000:00:09.0: [1022:157d] type 00 class 0x060000
[    0.192161] pci 0000:00:09.2: [1022:157a] type 00 class 0x040300
[    0.192168] pci 0000:00:09.2: reg 0x10: [mem 0xd1464000-0xd1467fff]
[    0.192196] pci 0000:00:09.2: PME# supported from D0 D3hot D3cold
[    0.192268] pci 0000:00:10.0: [1022:7914] type 00 class 0x0c0330
[    0.192288] pci 0000:00:10.0: reg 0x10: [mem 0xd1468000-0xd1469fff 64bit]
[    0.192383] pci 0000:00:10.0: PME# supported from D0 D3hot D3cold
[    0.192421] pci 0000:00:10.0: System wakeup disabled by ACPI
[    0.192459] pci 0000:00:11.0: [1022:7904] type 00 class 0x010601
[    0.192472] pci 0000:00:11.0: reg 0x10: [io  0x3118-0x311f]
[    0.192479] pci 0000:00:11.0: reg 0x14: [io  0x3124-0x3127]
[    0.192487] pci 0000:00:11.0: reg 0x18: [io  0x3110-0x3117]
[    0.192503] pci 0000:00:11.0: reg 0x1c: [io  0x3120-0x3123]
[    0.192511] pci 0000:00:11.0: reg 0x20: [io  0x3100-0x310f]
[    0.192518] pci 0000:00:11.0: reg 0x24: [mem 0xd146d000-0xd146d3ff]
[    0.192561] pci 0000:00:11.0: PME# supported from D3hot
[    0.192618] pci 0000:00:14.0: [1022:790b] type 00 class 0x0c0500
[    0.192755] pci 0000:00:14.3: [1022:790e] type 00 class 0x060100
[    0.192909] pci 0000:00:14.7: [1022:7906] type 00 class 0x080501
[    0.192926] pci 0000:00:14.7: reg 0x10: [mem 0xd146c000-0xd146c0ff 64bit]
[    0.192987] pci 0000:00:14.7: PME# supported from D3cold
[    0.193075] pci 0000:00:18.0: [1022:1570] type 00 class 0x060000
[    0.193167] pci 0000:00:18.1: [1022:1571] type 00 class 0x060000
[    0.193232] pci 0000:00:18.2: [1022:1572] type 00 class 0x060000
[    0.193296] pci 0000:00:18.3: [1022:1573] type 00 class 0x060000
[    0.193354] pci 0000:00:18.4: [1022:1574] type 00 class 0x060000
[    0.193414] pci 0000:00:18.5: [1022:1575] type 00 class 0x060000
[    0.193528] pci 0000:01:00.0: [1022:1470] type 01 class 0x060400
[    0.193540] pci 0000:01:00.0: reg 0x10: [mem 0xd1300000-0xd1303fff]
[    0.193652] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.196382] pci 0000:00:03.1: PCI bridge to [bus 01-03]
[    0.196387] pci 0000:00:03.1:   bridge window [io  0x2000-0x2fff]
[    0.196390] pci 0000:00:03.1:   bridge window [mem 0xd1200000-0xd13fffff]
[    0.196393] pci 0000:00:03.1:   bridge window [mem 0xc0000000-0xd01fffff 64bit pref]
[    0.196462] pci 0000:02:00.0: [1022:1471] type 01 class 0x060400
[    0.196606] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    0.196713] pci 0000:01:00.0: PCI bridge to [bus 02-03]
[    0.196717] pci 0000:01:00.0:   bridge window [io  0x2000-0x2fff]
[    0.196719] pci 0000:01:00.0:   bridge window [mem 0xd1200000-0xd12fffff]
[    0.196724] pci 0000:01:00.0:   bridge window [mem 0xc0000000-0xd01fffff 64bit pref]
[    0.196768] pci 0000:03:00.0: [1002:687f] type 00 class 0x030000
[    0.196795] pci 0000:03:00.0: reg 0x10: [mem 0xc0000000-0xcfffffff 64bit pref]
[    0.196805] pci 0000:03:00.0: reg 0x18: [mem 0xd0000000-0xd01fffff 64bit pref]
[    0.196812] pci 0000:03:00.0: reg 0x20: [io  0x2000-0x20ff]
[    0.196819] pci 0000:03:00.0: reg 0x24: [mem 0xd1200000-0xd127ffff]
[    0.196826] pci 0000:03:00.0: reg 0x30: [mem 0xfffe0000-0xffffffff pref]
[    0.196881] pci 0000:03:00.0: PME# supported from D1 D2 D3hot D3cold
[    0.196980] pci 0000:03:00.1: [1002:aaf8] type 00 class 0x040300
[    0.197025] pci 0000:03:00.1: reg 0x10: [mem 0xd1280000-0xd1283fff]
[    0.197104] pci 0000:03:00.1: PME# supported from D1 D2 D3hot D3cold
[    0.197168] pci 0000:02:00.0: PCI bridge to [bus 03]
[    0.197172] pci 0000:02:00.0:   bridge window [io  0x2000-0x2fff]
[    0.197174] pci 0000:02:00.0:   bridge window [mem 0xd1200000-0xd12fffff]
[    0.197178] pci 0000:02:00.0:   bridge window [mem 0xc0000000-0xd01fffff 64bit pref]
[    0.197812] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 5 6 10 11) *0, disabled.
[    0.197852] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 5 6 10 11) *0, disabled.
[    0.197884] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 5 6 10 11) *0, disabled.
[    0.197924] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 5 6 10 11) *0, disabled.
[    0.197961] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 5 6 10 11) *0, disabled.
[    0.197991] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 5 6 10 11) *0, disabled.
[    0.198021] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 5 6 10 11) *0, disabled.
[    0.198050] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 5 6 10 11) *0, disabled.
[    0.198456] vgaarb: setting as boot device: PCI:0000:00:01.0
[    0.198459] vgaarb: device added: PCI:0000:00:01.0,decodes=io+mem,owns=io+mem,locks=none
[    0.198475] vgaarb: device added: PCI:0000:03:00.0,decodes=io+mem,owns=io+mem,locks=none
[    0.198476] vgaarb: loaded
[    0.198476] vgaarb: overriding boot device: PCI:0000:03:00.0
[    0.198476] vgaarb: bridge control possible 0000:03:00.0
[    0.198477] vgaarb: no bridge control possible 0000:00:01.0
[    0.198544] SCSI subsystem initialized
[    0.198593] libata version 3.00 loaded.
[    0.198639] ACPI: bus type USB registered
[    0.198666] usbcore: registered new interface driver usbfs
[    0.198683] usbcore: registered new interface driver hub
[    0.198703] usbcore: registered new device driver usb
[    0.198727] pps_core: LinuxPPS API ver. 1 registered
[    0.198728] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.198733] PTP clock support registered
[    0.198868] Registered efivars operations
[    0.206837] Advanced Linux Sound Architecture Driver Initialized.
[    0.206857] PCI: Using ACPI for IRQ routing
[    0.208619] PCI: pci_cache_line_size set to 64 bytes
[    0.208658] e820: reserve RAM buffer [mem 0x00088000-0x0008ffff]
[    0.208659] e820: reserve RAM buffer [mem 0xb8225018-0xbbffffff]
[    0.208660] e820: reserve RAM buffer [mem 0xb8234018-0xbbffffff]
[    0.208661] e820: reserve RAM buffer [mem 0xbedbf000-0xbfffffff]
[    0.208661] e820: reserve RAM buffer [mem 0xbfc00000-0xbfffffff]
[    0.208662] e820: reserve RAM buffer [mem 0x21f000000-0x21fffffff]
[    0.208765] NetLabel: Initializing
[    0.208766] NetLabel:  domain hash size = 128
[    0.208766] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.208776] NetLabel:  unlabeled traffic allowed by default
[    0.208817] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.208820] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.210900] clocksource: Switched to clocksource hpet
[    0.215175] VFS: Disk quotas dquot_6.6.0
[    0.215195] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.215275] pnp: PnP ACPI init
[    0.215433] system 00:00: [mem 0xfec00000-0xfec01fff] could not be reserved
[    0.215435] system 00:00: [mem 0xfee00000-0xfee00fff] has been reserved
[    0.215436] system 00:00: [mem 0xd1000000-0xd10fffff] has been reserved
[    0.215439] system 00:00: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.215526] pnp 00:01: Plug and Play ACPI device, IDs PNP0b00 (active)
[    0.215563] system 00:02: [io  0x0400-0x04cf] has been reserved
[    0.215565] system 00:02: [io  0x04d0-0x04d1] has been reserved
[    0.215566] system 00:02: [io  0x04d6] has been reserved
[    0.215567] system 00:02: [io  0x0c00-0x0c01] has been reserved
[    0.215568] system 00:02: [io  0x0c14] has been reserved
[    0.215569] system 00:02: [io  0x0c50-0x0c52] has been reserved
[    0.215570] system 00:02: [io  0x0c6c] has been reserved
[    0.215571] system 00:02: [io  0x0c6f] has been reserved
[    0.215572] system 00:02: [io  0x0cd0-0x0cdb] has been reserved
[    0.215574] system 00:02: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.215616] system 00:03: [mem 0x000e0000-0x000fffff] could not be reserved
[    0.215618] system 00:03: [mem 0xff000000-0xffffffff] has been reserved
[    0.215621] system 00:03: Plug and Play ACPI device, IDs PNP0c01 (active)
[    0.215930] pnp: PnP ACPI: found 4 devices
[    0.222345] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.222354] pci 0000:00:01.0: can't claim BAR 6 [mem 0xfffe0000-0xffffffff pref]: no compatible bridge window
[    0.222356] pci 0000:03:00.0: can't claim BAR 6 [mem 0xfffe0000-0xffffffff pref]: no compatible bridge window
[    0.222385] pci 0000:00:01.0: BAR 6: assigned [mem 0xd0200000-0xd021ffff pref]
[    0.222388] pci 0000:03:00.0: BAR 6: assigned [mem 0xd12a0000-0xd12bffff pref]
[    0.222390] pci 0000:02:00.0: PCI bridge to [bus 03]
[    0.222392] pci 0000:02:00.0:   bridge window [io  0x2000-0x2fff]
[    0.222396] pci 0000:02:00.0:   bridge window [mem 0xd1200000-0xd12fffff]
[    0.222398] pci 0000:02:00.0:   bridge window [mem 0xc0000000-0xd01fffff 64bit pref]
[    0.222402] pci 0000:01:00.0: PCI bridge to [bus 02-03]
[    0.222404] pci 0000:01:00.0:   bridge window [io  0x2000-0x2fff]
[    0.222407] pci 0000:01:00.0:   bridge window [mem 0xd1200000-0xd12fffff]
[    0.222410] pci 0000:01:00.0:   bridge window [mem 0xc0000000-0xd01fffff 64bit pref]
[    0.222415] pci 0000:00:03.1: PCI bridge to [bus 01-03]
[    0.222416] pci 0000:00:03.1:   bridge window [io  0x2000-0x2fff]
[    0.222419] pci 0000:00:03.1:   bridge window [mem 0xd1200000-0xd13fffff]
[    0.222421] pci 0000:00:03.1:   bridge window [mem 0xc0000000-0xd01fffff 64bit pref]
[    0.222425] pci_bus 0000:00: resource 4 [io  0x0000-0x0cf7 window]
[    0.222426] pci_bus 0000:00: resource 5 [io  0x0d00-0xffff window]
[    0.222427] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[    0.222428] pci_bus 0000:00: resource 7 [mem 0x000c0000-0x000c3fff window]
[    0.222429] pci_bus 0000:00: resource 8 [mem 0x000c4000-0x000c7fff window]
[    0.222430] pci_bus 0000:00: resource 9 [mem 0x000c8000-0x000cbfff window]
[    0.222431] pci_bus 0000:00: resource 10 [mem 0x000d0000-0x000d3fff window]
[    0.222431] pci_bus 0000:00: resource 11 [mem 0x000d4000-0x000d7fff window]
[    0.222432] pci_bus 0000:00: resource 12 [mem 0x000d8000-0x000dbfff window]
[    0.222433] pci_bus 0000:00: resource 13 [mem 0x000dc000-0x000dffff window]
[    0.222434] pci_bus 0000:00: resource 14 [mem 0x000e0000-0x000e3fff window]
[    0.222435] pci_bus 0000:00: resource 15 [mem 0x000e4000-0x000e7fff window]
[    0.222435] pci_bus 0000:00: resource 16 [mem 0x000e8000-0x000ebfff window]
[    0.222436] pci_bus 0000:00: resource 17 [mem 0x000ec000-0x000effff window]
[    0.222437] pci_bus 0000:00: resource 18 [mem 0xc0000000-0xf7ffffff window]
[    0.222438] pci_bus 0000:00: resource 19 [mem 0xfc000000-0xfebfffff window]
[    0.222439] pci_bus 0000:01: resource 0 [io  0x2000-0x2fff]
[    0.222440] pci_bus 0000:01: resource 1 [mem 0xd1200000-0xd13fffff]
[    0.222441] pci_bus 0000:01: resource 2 [mem 0xc0000000-0xd01fffff 64bit pref]
[    0.222442] pci_bus 0000:02: resource 0 [io  0x2000-0x2fff]
[    0.222442] pci_bus 0000:02: resource 1 [mem 0xd1200000-0xd12fffff]
[    0.222443] pci_bus 0000:02: resource 2 [mem 0xc0000000-0xd01fffff 64bit pref]
[    0.222444] pci_bus 0000:03: resource 0 [io  0x2000-0x2fff]
[    0.222445] pci_bus 0000:03: resource 1 [mem 0xd1200000-0xd12fffff]
[    0.222446] pci_bus 0000:03: resource 2 [mem 0xc0000000-0xd01fffff 64bit pref]
[    0.222502] NET: Registered protocol family 2
[    0.222659] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[    0.222814] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.223102] TCP: Hash tables configured (established 65536 bind 65536)
[    0.223149] UDP hash table entries: 4096 (order: 5, 131072 bytes)
[    0.223180] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes)
[    0.223252] NET: Registered protocol family 1
[    0.223384] RPC: Registered named UNIX socket transport module.
[    0.223385] RPC: Registered udp transport module.
[    0.223385] RPC: Registered tcp transport module.
[    0.223386] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.240508] pci 0000:03:00.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[    0.240512] PCI: CLS 64 bytes, default 64
[    0.240560] Unpacking initramfs...
[    0.500758] Freeing initrd memory: 21812K (ffff88003eaae000 - ffff88003fffb000)
[    0.570339] AMD-Vi: IOMMU performance counters supported
[    0.570485] pci 0000:00:00.2: can't derive routing for PCI INT A
[    0.570499] pci 0000:00:00.2: PCI INT A: not connected
[    0.570638] iommu: Adding device 0000:00:01.0 to group 0
[    0.570696] iommu: Using direct mapping for device 0000:00:01.0
[    0.570723] iommu: Adding device 0000:00:01.1 to group 0
[    0.570759] iommu: Adding device 0000:00:02.0 to group 1
[    0.570832] iommu: Adding device 0000:00:03.0 to group 2
[    0.570842] iommu: Adding device 0000:00:03.1 to group 2
[    0.570871] iommu: Adding device 0000:00:08.0 to group 3
[    0.570908] iommu: Adding device 0000:00:09.0 to group 4
[    0.570918] iommu: Adding device 0000:00:09.2 to group 4
[    0.571007] iommu: Adding device 0000:00:10.0 to group 5
[    0.571054] iommu: Adding device 0000:00:11.0 to group 6
[    0.571099] iommu: Adding device 0000:00:14.0 to group 7
[    0.571111] iommu: Adding device 0000:00:14.3 to group 7
[    0.571121] iommu: Adding device 0000:00:14.7 to group 7
[    0.571176] iommu: Adding device 0000:00:18.0 to group 8
[    0.571186] iommu: Adding device 0000:00:18.1 to group 8
[    0.571205] iommu: Adding device 0000:00:18.2 to group 8
[    0.571216] iommu: Adding device 0000:00:18.3 to group 8
[    0.571264] iommu: Adding device 0000:00:18.4 to group 8
[    0.571274] iommu: Adding device 0000:00:18.5 to group 8
[    0.571284] iommu: Adding device 0000:01:00.0 to group 2
[    0.571293] iommu: Adding device 0000:02:00.0 to group 2
[    0.571335] iommu: Adding device 0000:03:00.0 to group 2
[    0.571357] iommu: Adding device 0000:03:00.1 to group 2
[    0.571774] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40
[    0.571775] AMD-Vi: Extended features (0x37ef22294ada):
[    0.571775]  PPR NX GT IA GA PC GA_vAPIC
[    0.572064] AMD-Vi: Lazy IO/TLB flushing enabled
[    0.573119] perf: AMD NB counters detected
[    0.573220] LVT offset 0 assigned for vector 0x400
[    0.573259] perf: AMD IBS detected (0x000007ff)
[    0.573263] perf: amd_iommu: Detected. (0 banks, 0 counters/bank)
[    0.573595] Scanning for low memory corruption every 60 seconds
[    0.573804] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.573821] audit: initializing netlink subsys (disabled)
[    0.573834] audit: type=2000 audit(1494455014.463:1): initialized
[    0.574136] workingset: timestamp_bits=56 max_order=21 bucket_order=0
[    0.575737] NFS: Registering the id_resolver key type
[    0.575744] Key type id_resolver registered
[    0.575745] Key type id_legacy registered
[    0.575831] SELinux:  Registering netfilter hooks
[    0.577031] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.577033] io scheduler noop registered
[    0.577033] io scheduler deadline registered
[    0.577038] io scheduler cfq registered (default)
[    0.577491] pcieport 0000:00:03.1: Signaling PME through PCIe PME interrupt
[    0.577493] pcieport 0000:01:00.0: Signaling PME through PCIe PME interrupt
[    0.577493] pcieport 0000:02:00.0: Signaling PME through PCIe PME interrupt
[    0.577494] pci 0000:03:00.0: Signaling PME through PCIe PME interrupt
[    0.577495] pci 0000:03:00.1: Signaling PME through PCIe PME interrupt
[    0.577497] pcie_pme 0000:00:03.1:pcie001: service driver pcie_pme loaded
[    0.577503] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.577520] efifb: probing for efifb
[    0.577538] efifb: framebuffer at 0xc0000000, using 8100k, total 8100k
[    0.577538] efifb: mode is 1920x1080x32, linelength=7680, pages=1
[    0.577539] efifb: scrolling: redraw
[    0.577540] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[    0.581398] Console: switching to colour frame buffer device 240x67
[    0.584716] fb0: EFI VGA frame buffer device
[    0.584836] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[    0.584838] ACPI: Power Button [PWRB]
[    0.584886] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[    0.584887] ACPI: Power Button [PWRF]
[    0.584971] ACPI: Video Device [VGA] (multi-head: yes  rom: no  post: no)
[    0.584993] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[    0.585007] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[    0.585227] acpi device:00: registered as cooling_device0
[    0.585268] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input2
[    0.585305] ACPI: Video Device [VGA1] (multi-head: yes  rom: no  post: no)
[    0.585487] acpi device:1f: registered as cooling_device1
[    0.585519] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/LNXVIDEO:01/input/input3
[    0.585866] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.586338] Non-volatile memory driver v1.3
[    0.586362] Linux agpgart interface v0.103
[    0.586522] [drm] Initialized
[    0.587658] loop: module loaded
[    0.587768] ahci 0000:00:11.0: version 3.0
[    0.587972] ahci 0000:00:11.0: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
[    0.587974] ahci 0000:00:11.0: flags: 64bit ncq sntf ilck pm led clo pmp fbs pio slum part 
[    0.588166] scsi host0: ahci
[    0.588208] ata1: SATA max UDMA/133 abar m1024@0xd146d000 port 0xd146d100 irq 19
[    0.588309] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
[    0.588310] e100: Copyright(c) 1999-2006 Intel Corporation
[    0.588334] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    0.588335] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.588347] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.588347] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.588364] sky2: driver version 1.30
[    0.588496] usbcore: registered new interface driver usblp
[    0.588504] usbcore: registered new interface driver usb-storage
[    0.588532] i8042: PNP: No PS/2 controller found. Probing ports directly.
[    1.061133] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.068138] ata1.00: ATA-8: KINGSTON SV300S37A120G, 608ABBF0, max UDMA/133
[    1.068140] ata1.00: 234441648 sectors, multi 1: LBA48 NCQ (depth 31/32), AA
[    1.076907] ata1.00: configured for UDMA/133
[    1.077191] scsi 0:0:0:0: Direct-Access     ATA      KINGSTON SV300S3 BBF0 PQ: 0 ANSI: 5
[    1.642100] i8042: No controller found
[    1.642139] tsc: Refined TSC clocksource calibration: 3799.997 MHz
[    1.642143] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x6d8cab05ec1, max_idle_ns: 881590646801 ns
[    1.642199] mousedev: PS/2 mouse device common for all mice
[    1.642399] rtc_cmos 00:01: RTC can wake from S4
[    1.642489] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
[    1.642516] rtc_cmos 00:01: alarms up to one month, 114 bytes nvram, hpet irqs
[    1.642613] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: [email protected]
[    1.642615] EFI Variables Facility v0.08 2004-May-17
[    1.652322] hidraw: raw HID events driver (C) Jiri Kosina
[    1.652542] usbcore: registered new interface driver usbhid
[    1.652542] usbhid: USB HID core driver
[    1.652844] snd_hda_intel 0000:00:01.1: Force to non-snoop mode
[    1.653184] Netfilter messages via NETLINK v0.30.
[    1.653375] nf_conntrack version 0.5.0 (65536 buckets, 262144 max)
[    1.653428] ctnetlink v0.93: registering with nfnetlink.
[    1.653521] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.653536] Initializing XFRM netlink socket
[    1.653653] NET: Registered protocol family 10
[    1.653906] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    1.653983] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.654145] NET: Registered protocol family 17
[    1.654161] Key type dns_resolver registered
[    1.654435] microcode: CPU0: patch_level=0x06006115
[    1.654441] microcode: CPU1: patch_level=0x06006115
[    1.654444] microcode: CPU2: patch_level=0x06006115
[    1.654450] microcode: CPU3: patch_level=0x06006115
[    1.654473] microcode: Microcode Update Driver: v2.01 <[email protected]>, Peter Oruba
[    1.654603] registered taskstats version 1
[    1.654787]   Magic number: 1:901:400
[    1.654829] console [netcon0] enabled
[    1.654830] netconsole: network logging started
[    1.654907] acpi_cpufreq: overriding BIOS provided _PSD data
[    1.655062] PM: Hibernation image not present or could not be loaded.
[    1.655063] ALSA device list:
[    1.655063]   No soundcards found.
[    1.656329] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/112 GiB)
[    1.656439] sd 0:0:0:0: [sda] Write Protect is off
[    1.656441] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.656466] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.656613] hdaudio hdaudioC0D0: Unable to bind the codec
[    1.656730] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    1.657290] hdaudio hdaudioC2D0: Unable to bind the codec
[    1.659599]  sda: sda1 sda2 sda3 sda4
[    1.659992] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.660736] Freeing unused kernel memory: 1088K (ffffffff81d0e000 - ffffffff81e1e000)
[    1.660738] Write protecting the kernel read-only data: 12288k
[    1.660961] Freeing unused kernel memory: 448K (ffff880001790000 - ffff880001800000)
[    1.661618] random: fast init done
[    1.663007] hdaudio hdaudioC1D0: Unable to bind the codec
[    1.663536] Freeing unused kernel memory: 1688K (ffff880001a5a000 - ffff880001c00000)
[    1.679217] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    1.679340] systemd[1]: Detected architecture x86-64.
[    1.679341] systemd[1]: Running in initial RAM disk.
[    1.679350] systemd[1]: Set hostname to <carrizo>.
[    1.710675] systemd[1]: Listening on udev Kernel Socket.
[    1.710781] systemd[1]: Listening on Journal Socket.
[    1.710806] systemd[1]: Listening on udev Control Socket.
[    1.710824] systemd[1]: Reached target Swap.
[    1.710835] systemd[1]: Reached target Local File Systems.
[    1.710857] systemd[1]: Listening on Journal Socket (/dev/log).
[    1.718455] audit: type=1130 audit(1494455015.608:2): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-tmpfiles-setup-dev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    1.718650] audit: type=1130 audit(1494455015.608:3): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-sysctl comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    1.720581] systemd-cgroups (1149) used greatest stack depth: 13976 bytes left
[    1.732189] audit: type=1130 audit(1494455015.622:4): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-journald comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    1.767036] audit: type=1130 audit(1494455015.656:5): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-vconsole-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    1.769018] audit: type=1130 audit(1494455015.658:6): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-cmdline comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    1.796054] audit: type=1130 audit(1494455015.686:7): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-pre-udev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    1.799745] audit: type=1130 audit(1494455015.689:8): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-udevd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    1.830858] audit: type=1130 audit(1494455015.720:9): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-pre-trigger comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    1.871021] audit: type=1130 audit(1494455015.760:10): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-udev-trigger comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    1.893281] xhci_hcd 0000:00:10.0: xHCI Host Controller
[    1.893341] xhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
[    1.998267] xhci_hcd 0000:00:10.0: hcc params 0x014040c3 hci version 0x100 quirks 0x00000410
[    1.998453] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.998454] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.998455] usb usb1: Product: xHCI Host Controller
[    1.998456] usb usb1: Manufacturer: Linux 4.9.0+ xhci-hcd
[    1.998457] usb usb1: SerialNumber: 0000:00:10.0
[    1.998599] hub 1-0:1.0: USB hub found
[    1.998608] hub 1-0:1.0: 4 ports detected
[    1.998769] xhci_hcd 0000:00:10.0: xHCI Host Controller
[    1.998814] xhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
[    2.005059] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.005075] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    2.005076] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.005077] usb usb2: Product: xHCI Host Controller
[    2.005078] usb usb2: Manufacturer: Linux 4.9.0+ xhci-hcd
[    2.005079] usb usb2: SerialNumber: 0000:00:10.0
[    2.005177] hub 2-0:1.0: USB hub found
[    2.005186] hub 2-0:1.0: 4 ports detected
[    2.025697] systemd-udevd (1843) used greatest stack depth: 13744 bytes left
[    2.026801] systemd-udevd (1858) used greatest stack depth: 12464 bytes left
[    2.054775] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
[    2.275489] systemd-journald[1136]: Received SIGTERM from PID 1 (systemd).
[    2.292631] systemd: 15 output lines suppressed due to ratelimiting
[    2.309085] usb 1-2: new high-speed USB device number 2 using xhci_hcd
[    2.329010] SELinux:  Disabled at runtime.
[    2.329025] SELinux:  Unregistering netfilter hooks
[    2.426338] usb 1-2: New USB device found, idVendor=0409, idProduct=005a
[    2.426341] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.427101] hub 1-2:1.0: USB hub found
[    2.427457] hub 1-2:1.0: 4 ports detected
[    2.469363] EXT4-fs (sda4): re-mounted. Opts: (null)
[    2.538111] usb 2-4: new SuperSpeed USB device number 2 using xhci_hcd
[    2.559473] usb 2-4: New USB device found, idVendor=2001, idProduct=4a00
[    2.559476] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.559477] usb 2-4: Product: D-Link DUB-1312
[    2.559478] usb 2-4: Manufacturer: D-Link Elec. Corp.
[    2.559479] usb 2-4: SerialNumber: 000000000018A9
[    2.573604] systemd-journald[2013]: Received request to flush runtime journal from PID 1
[    2.645158] clocksource: Switched to clocksource tsc
[    2.708251] Adding 7734268k swap on /dev/sda3.  Priority:-1 extents:1 across:7734268k SS
[    2.714115] usb 1-2.4: new low-speed USB device number 3 using xhci_hcd
[    2.881274] usb 1-2.4: New USB device found, idVendor=046d, idProduct=c31c
[    2.881277] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.881278] usb 1-2.4: Product: USB Keyboard
[    2.881279] usb 1-2.4: Manufacturer: Logitech
[    2.938706] input: Logitech USB Keyboard as /devices/pci0000:00/0000:00:10.0/usb1/1-2/1-2.4/1-2.4:1.0/0003:046D:C31C.0001/input/input4
[    2.997624] hid-generic 0003:046D:C31C.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech USB Keyboard] on usb-0000:00:10.0-2.4/input0
[    3.073267] input: Logitech USB Keyboard as /devices/pci0000:00/0000:00:10.0/usb1/1-2/1-2.4/1-2.4:1.1/0003:046D:C31C.0002/input/input5
[    3.126253] hid-generic 0003:046D:C31C.0002: input,hidraw1: USB HID v1.10 Device [Logitech USB Keyboard] on usb-0000:00:10.0-2.4/input1
[    3.149289] input: Logitech USB Keyboard as /devices/pci0000:00/0000:00:10.0/usb1/1-2/1-2.4/1-2.4:1.2/0003:046D:C31C.0003/input/input6
[    3.149410] hid-generic 0003:046D:C31C.0003: input,hidraw2: USB HID v1.10 Mouse [Logitech USB Keyboard] on usb-0000:00:10.0-2.4/input2
[    4.074224] ax88179_178a 2-4:1.0 eth0: register 'ax88179_178a' at usb-0000:00:10.0-4, D-Link DUB-1312 USB 3.0 to Gigabit Ethernet Adapter, 54:b8:0a:ef:ed:d7
[    4.074247] usbcore: registered new interface driver ax88179_178a
[    4.086748] ax88179_178a 2-4:1.0 enp0s16u4: renamed from eth0
[    4.155112] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    4.577758] random: crng init done
[    4.654999] IPv6: ADDRCONF(NETDEV_UP): enp0s16u4: link is not ready
[    4.994444] IPv6: ADDRCONF(NETDEV_UP): enp0s16u4: link is not ready
[    7.509763] ax88179_178a 2-4:1.0 enp0s16u4: ax88179 - Link status is: 1
[    7.524275] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s16u4: link becomes ready
[   65.750863] [drm] amdgpu kernel modesetting enabled.
[   65.750883] checking generic (c0000000 7e9000) vs hw (e0000000 10000000)
[   65.751750] [drm] initializing kernel modesetting (CARRIZO 0x1002:0x9874 0x1002:0x1E10 0xE1).
[   65.751756] amdgpu 0000:00:01.0: VM size (-1) must be a power of 2
[   65.751777] [drm] register mmio base: 0xD1400000
[   65.751778] [drm] register mmio size: 262144
[   65.751859] ACPI Error: [\_SB_.ALIB] Namespace lookup failure, AE_NOT_FOUND (20160831/psargs-359)
[   65.751904] ACPI Error: Method parse/execution failed [\_SB.PCI0.VGA.ATC0] (Node ffff8802168a2e38), AE_NOT_FOUND (20160831/psparse-543)
[   65.751954] ACPI Error: Method parse/execution failed [\_SB.PCI0.VGA.ATCS] (Node ffff8802168a2e10), AE_NOT_FOUND (20160831/psparse-543)
[   65.752005] [drm] UVD is enabled in physical mode
[   65.752007] [drm] VCE enabled in physical mode
[   65.763659] ATOM BIOS: 109-C95010-001
[   65.763668] [drm] GPU post is not needed
[   65.763692] [drm] vm size is 64 GB, block size is 13-bit
[   65.763698] amdgpu 0000:00:01.0: VRAM: 512M 0x0000000000000000 - 0x000000001FFFFFFF (512M used)
[   65.763699] amdgpu 0000:00:01.0: GTT: 3072M 0x0000000020000000 - 0x00000000DFFFFFFF
[   65.763706] [drm] Detected VRAM RAM=512M, BAR=512M
[   65.763706] [drm] RAM width 64bits UNKNOWN
[   65.764201] [TTM] Zone  kernel: Available graphics memory: 3846492 kiB
[   65.764202] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[   65.764202] [TTM] Initializing pool allocator
[   65.764207] [TTM] Initializing DMA pool allocator
[   65.764238] [drm] amdgpu: 512M of VRAM memory ready
[   65.764239] [drm] amdgpu: 3072M of GTT memory ready.
[   65.764256] [drm] GART: num cpu pages 786432, num gpu pages 786432
[   65.765532] [drm] PCIE GART of 3072M enabled (table at 0x0000000000040000).
[   65.765590] amdgpu 0000:00:01.0: amdgpu: using MSI.
[   65.765607] [drm] amdgpu: irq initialized.
[   65.765617] amdgpu: [powerplay] amdgpu: powerplay sw initialized
[   65.769793] [drm] Chained IB support enabled!
[   65.773277] amdgpu 0000:00:01.0: fence driver on ring 0 use gpu addr 0x0000000020000010, cpu addr 0xffff880211fe0010
[   65.773676] amdgpu 0000:00:01.0: fence driver on ring 1 use gpu addr 0x0000000020000020, cpu addr 0xffff880211fe0020
[   65.774068] amdgpu 0000:00:01.0: fence driver on ring 2 use gpu addr 0x0000000020000030, cpu addr 0xffff880211fe0030
[   65.774240] amdgpu 0000:00:01.0: fence driver on ring 3 use gpu addr 0x0000000020000040, cpu addr 0xffff880211fe0040
[   65.774270] amdgpu 0000:00:01.0: fence driver on ring 4 use gpu addr 0x0000000020000050, cpu addr 0xffff880211fe0050
[   65.774371] amdgpu 0000:00:01.0: fence driver on ring 5 use gpu addr 0x0000000020000060, cpu addr 0xffff880211fe0060
[   65.774407] amdgpu 0000:00:01.0: fence driver on ring 6 use gpu addr 0x0000000020000070, cpu addr 0xffff880211fe0070
[   65.774441] amdgpu 0000:00:01.0: fence driver on ring 7 use gpu addr 0x0000000020000080, cpu addr 0xffff880211fe0080
[   65.774477] amdgpu 0000:00:01.0: fence driver on ring 8 use gpu addr 0x0000000020000090, cpu addr 0xffff880211fe0090
[   65.774495] amdgpu 0000:00:01.0: fence driver on ring 9 use gpu addr 0x00000000200000a4, cpu addr 0xffff880211fe00a4
[   65.775699] amdgpu 0000:00:01.0: fence driver on ring 10 use gpu addr 0x00000000200000b4, cpu addr 0xffff880211fe00b4
[   65.776379] amdgpu 0000:00:01.0: fence driver on ring 11 use gpu addr 0x00000000200000c4, cpu addr 0xffff880211fe00c4
[   65.777695] [drm] Found UVD firmware Version: 1.91 Family ID: 11
[   65.778300] amdgpu 0000:00:01.0: fence driver on ring 12 use gpu addr 0x0000000000695560, cpu addr 0xffffc90009842560
[   65.779442] [drm] Found VCE firmware Version: 52.4 Binary ID: 3
[   65.780093] amdgpu 0000:00:01.0: fence driver on ring 13 use gpu addr 0x00000000200000e4, cpu addr 0xffff880211fe00e4
[   65.780183] amdgpu 0000:00:01.0: fence driver on ring 14 use gpu addr 0x00000000200000f4, cpu addr 0xffff880211fe00f4
[   65.784509] [drm] DAL is enabled
[   65.784680] [drm] DM_PPLIB: values for Engine clock
[   65.784681] [drm] DM_PPLIB:	 45000
[   65.784682] [drm] DM_PPLIB:	 57600
[   65.784682] [drm] DM_PPLIB:	 68572
[   65.784682] [drm] DM_PPLIB:	 80000
[   65.784683] [drm] DM_PPLIB:	 90000
[   65.784683] [drm] DM_PPLIB:	 96000
[   65.784683] [drm] DM_PPLIB:	 102858
[   65.784684] [drm] DM_PPLIB:	 110770
[   65.784684] [drm] DM_PPLIB: Validation clocks:
[   65.784685] [drm] DM_PPLIB:    engine_max_clock: 110770
[   65.784685] [drm] DM_PPLIB:    memory_max_clock: 120000
[   65.784685] [drm] DM_PPLIB:    level           : 0
[   65.784686] [drm] DM_PPLIB: values for Display clock
[   65.784687] [drm] DM_PPLIB:	 30000
[   65.784687] [drm] DM_PPLIB:	 40000
[   65.784687] [drm] DM_PPLIB:	 49656
[   65.784687] [drm] DM_PPLIB:	 62609
[   65.784688] [drm] DM_PPLIB:	 68572
[   65.784688] [drm] DM_PPLIB:	 75790
[   65.784688] [drm] DM_PPLIB:	 80000
[   65.784689] [drm] DM_PPLIB:	 84706
[   65.784689] [drm] DM_PPLIB: Validation clocks:
[   65.784689] [drm] DM_PPLIB:    engine_max_clock: 110770
[   65.784690] [drm] DM_PPLIB:    memory_max_clock: 120000
[   65.784690] [drm] DM_PPLIB:    level           : 0
[   65.784691] [drm] DM_PPLIB: values for Memory clock
[   65.784691] [drm] DM_PPLIB:	 66700
[   65.784691] [drm] DM_PPLIB:	 120000
[   65.784692] [drm] DM_PPLIB: Validation clocks:
[   65.784692] [drm] DM_PPLIB:    engine_max_clock: 110770
[   65.784692] [drm] DM_PPLIB:    memory_max_clock: 120000
[   65.784693] [drm] DM_PPLIB:    level           : 0
[   65.784694] [drm] DC: create_links: connectors_num: physical:3, virtual:0
[   65.784698] [drm] Connector[0] description:signal 32
[   65.784702] [drm] Using channel: CHANNEL_ID_DDC1 [1]
[   65.784717] [drm] Connector[1] description:signal 4
[   65.784718] [drm] Using channel: CHANNEL_ID_DDC2 [2]
[   65.784758] [drm] Connector[2] description:signal 4
[   65.784761] [drm] Using channel: CHANNEL_ID_DDC3 [3]
[   66.089349] [drm:hwss_wait_for_blank_complete [amdgpu]] *ERROR* DC: failed to blank crtc!
[   66.089396] [drm] Display Core initialized
[   66.089400] [drm] amdgpu: freesync_module init done ffff8802154cd800.
[   66.089643] [drm] link=0, dc_sink_in=          (null) is now Disconnected
[   66.089644] [drm] DCHPD: connector_id=0: dc_sink didn't change.
[   66.089704] [drm] link=1, dc_sink_in=          (null) is now Disconnected
[   66.089705] [drm] DCHPD: connector_id=1: dc_sink didn't change.
[   66.089759] [drm] link=2, dc_sink_in=          (null) is now Disconnected
[   66.089759] [drm] DCHPD: connector_id=2: dc_sink didn't change.
[   66.089769] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   66.089770] [drm] Driver supports precise vblank timestamp query.
[   66.089770] [drm] KMS initialized.
[   66.091120] [drm] ring test on 0 succeeded in 3 usecs
[   66.091350] [drm] ring test on 9 succeeded in 6 usecs
[   66.091365] [drm] ring test on 1 succeeded in 7 usecs
[   66.091390] [drm] ring test on 2 succeeded in 13 usecs
[   66.091408] [drm] ring test on 3 succeeded in 9 usecs
[   66.091426] [drm] ring test on 4 succeeded in 9 usecs
[   66.091443] [drm] ring test on 5 succeeded in 9 usecs
[   66.091462] [drm] ring test on 6 succeeded in 9 usecs
[   66.091479] [drm] ring test on 7 succeeded in 9 usecs
[   66.091497] [drm] ring test on 8 succeeded in 9 usecs
[   66.091532] [drm] ring test on 10 succeeded in 3 usecs
[   66.091537] [drm] ring test on 11 succeeded in 3 usecs
[   67.118567] [drm] ring test on 12 succeeded in 1 usecs
[   67.118569] [drm] UVD initialized successfully.
[   67.319628] [drm] ring test on 13 succeeded in 8 usecs
[   67.319640] [drm] ring test on 14 succeeded in 2 usecs
[   67.319640] [drm] VCE initialized successfully.
[   67.319964] [drm] ib test on ring 0 succeeded
[   67.320031] [drm] ib test on ring 1 succeeded
[   67.320419] [drm] ib test on ring 2 succeeded
[   67.320567] [drm] ib test on ring 3 succeeded
[   67.320591] [drm] ib test on ring 4 succeeded
[   67.320634] [drm] ib test on ring 5 succeeded
[   67.320646] [drm] ib test on ring 6 succeeded
[   67.320671] [drm] ib test on ring 7 succeeded
[   67.320682] [drm] ib test on ring 8 succeeded
[   67.320710] [drm] ib test on ring 9 succeeded
[   67.320721] [drm] ib test on ring 10 succeeded
[   67.320730] [drm] ib test on ring 11 succeeded
[   67.322020] [drm] ib test on ring 12 succeeded
[   67.322302] [drm] ib test on ring 13 succeeded
[   67.322334] amdgpu 0000:00:01.0: No connectors reported connected with modes
[   67.322336] [drm] Cannot find any crtc or sizes - going 1024x768
[   67.322935] [drm] fb mappable at 0x21FA18000
[   67.322936] [drm] vram apper at 0x21F000000
[   67.322936] [drm] size 3145728
[   67.322937] [drm] fb depth is 24
[   67.322938] [drm]    pitch is 4096
[   67.322940] checking generic (c0000000 7e9000) vs hw (21f000000 20000000)
[   67.323416] amdgpu 0000:00:01.0: fb1: amdgpudrmfb frame buffer device
[   67.328587] amdgpu: [powerplay] min_core_set_clock not set
[   67.330247] ACPI Error: [\_SB_.ALIB] Namespace lookup failure, AE_NOT_FOUND (20160831/psargs-359)
[   67.330306] ACPI Error: Method parse/execution failed [\_SB.PCI0.VGA.ATC0] (Node ffff8802168a2e38), AE_NOT_FOUND (20160831/psparse-543)
[   67.330393] ACPI Error: Method parse/execution failed [\_SB.PCI0.VGA.ATCS] (Node ffff8802168a2e10), AE_NOT_FOUND (20160831/psparse-543)
[   67.330519] [drm] Initialized amdgpu 3.16.0 20150101 for 0000:00:01.0 on minor 0
[   67.330552] checking generic (c0000000 7e9000) vs hw (c0000000 10000000)
[   67.330553] fb: switching to amdgpudrmfb from EFI VGA
[   67.330594] Console: switching to colour dummy device 80x25
[   67.331593] [drm] initializing kernel modesetting (VEGA10 0x1002:0x687F 0x1002:0x6B76 0xC1).
[   67.331598] amdgpu 0000:03:00.0: VM size (-1) must be a power of 2
[   67.331611] [drm] register mmio base: 0xD1200000
[   67.331612] [drm] register mmio size: 524288
[   67.336176] [drm] probing gen 2 caps for device 1022:1471 = 700d03/e
[   67.336179] [drm] probing mlw for device 1022:1471 = 700d03
[   67.336188] [drm] UVD is enabled in VM mode
[   67.336188] [drm] UVD ENC is enabled in VM mode
[   67.336239] [drm] VCE enabled in VM mode
[   67.365025] [drm] BIOS signature incorrect 0 0
[   67.366026] ATOM BIOS: 113-D0500200-001
[   67.366033] [drm] GPU post is not needed
[   67.366035] [drm] Changing default dispclk from 2Mhz to 600Mhz
[   67.366054] [drm] vm size is 262144 GB, block size is 9-bit
[   67.366061] amdgpu 0000:03:00.0: VRAM: 8176M 0x000000F400000000 - 0x000000F5FEFFFFFF (8176M used)
[   67.366062] amdgpu 0000:03:00.0: GTT: 8176M 0x000000F5FF000000 - 0x000000F7FDFFFFFF
[   67.366065] [drm] Detected VRAM RAM=8176M, BAR=256M
[   67.366066] [drm] RAM width 2048bits HBM
[   67.366081] [drm] amdgpu: 8176M of VRAM memory ready
[   67.366081] [drm] amdgpu: 8176M of GTT memory ready.
[   67.366094] [drm] GART: num cpu pages 2093056, num gpu pages 2093056
[   67.366282] [drm] mmhub_v1_0_gart_enable -- in
[   67.366322] [drm] PCIE GART of 8176M enabled (table at 0x000000F400040000).
[   67.366541] amdgpu 0000:03:00.0: amdgpu: using MSI.
[   67.366629] [drm] amdgpu: irq initialized.
[   67.395869] amdgpu: [powerplay] amdgpu: powerplay sw initialized
[   67.398828] amdgpu 0000:03:00.0: fence driver on ring 0 use gpu addr 0x000000f5ff000008, cpu addr 0xffff880211a26008
[   67.398949] amdgpu 0000:03:00.0: fence driver on ring 1 use gpu addr 0x000000f5ff000010, cpu addr 0xffff880211a26010
[   67.398988] amdgpu 0000:03:00.0: fence driver on ring 2 use gpu addr 0x000000f5ff000018, cpu addr 0xffff880211a26018
[   67.399025] amdgpu 0000:03:00.0: fence driver on ring 3 use gpu addr 0x000000f5ff000028, cpu addr 0xffff880211a26028
[   67.399061] amdgpu 0000:03:00.0: fence driver on ring 4 use gpu addr 0x000000f5ff000030, cpu addr 0xffff880211a26030
[   67.399097] amdgpu 0000:03:00.0: fence driver on ring 5 use gpu addr 0x000000f5ff000038, cpu addr 0xffff880211a26038
[   67.399133] amdgpu 0000:03:00.0: fence driver on ring 6 use gpu addr 0x000000f5ff000048, cpu addr 0xffff880211a26048
[   67.399171] amdgpu 0000:03:00.0: fence driver on ring 7 use gpu addr 0x000000f5ff000050, cpu addr 0xffff880211a26050
[   67.399219] amdgpu 0000:03:00.0: fence driver on ring 8 use gpu addr 0x000000f5ff000058, cpu addr 0xffff880211a26058
[   67.399834] [drm] use_doorbell being set to: [true]
[   67.399862] amdgpu 0000:03:00.0: fence driver on ring 9 use gpu addr 0x000000f5ff000068, cpu addr 0xffff880211a26068
[   67.399889] [drm] use_doorbell being set to: [true]
[   67.399918] amdgpu 0000:03:00.0: fence driver on ring 10 use gpu addr 0x000000f5ff000070, cpu addr 0xffff880211a26070
[   67.401108] [drm] Found UVD firmware Version: 1.50 Family ID: 17
[   67.401137] [drm] PSP loading UVD firmware
[   67.401362] amdgpu 0000:03:00.0: fence driver on ring 11 use gpu addr 0x000000f4010c9600, cpu addr 0xffffc9000b05a600
[   67.401398] amdgpu 0000:03:00.0: fence driver on ring 12 use gpu addr 0x000000f5ff000098, cpu addr 0xffff880211a26098
[   67.401425] amdgpu 0000:03:00.0: fence driver on ring 13 use gpu addr 0x000000f5ff0000b0, cpu addr 0xffff880211a260b0
[   67.402242] [drm] Found VCE firmware Version: 53.19 Binary ID: 4
[   67.402251] [drm] PSP loading VCE firmware
[   67.402494] amdgpu 0000:03:00.0: fence driver on ring 14 use gpu addr 0x000000f5ff0000c8, cpu addr 0xffff880211a260c8
[   67.402531] amdgpu 0000:03:00.0: fence driver on ring 15 use gpu addr 0x000000f5ff0000d8, cpu addr 0xffff880211a260d8
[   67.402558] amdgpu 0000:03:00.0: fence driver on ring 16 use gpu addr 0x000000f5ff0000f0, cpu addr 0xffff880211a260f0
[   67.513435] [drm] DAL is enabled
[   67.513836] [drm] DC: create_links: connectors_num: physical:4, virtual:0
[   67.513841] [drm] Connector[0] description:signal 32
[   67.513844] [drm] Using channel: CHANNEL_ID_DDC1 [1]
[   67.513856] [drm] Connector[1] description:signal 32
[   67.513857] [drm] Using channel: CHANNEL_ID_DDC2 [2]
[   67.513867] [drm] Connector[2] description:signal 32
[   67.513869] [drm] Using channel: CHANNEL_ID_DDC5 [5]
[   67.513880] [drm] Connector[3] description:signal 4
[   67.513882] [drm] Using channel: CHANNEL_ID_DDC6 [6]
[   67.514042] [drm] Display Core initialized
[   67.514046] [drm] amdgpu: freesync_module init done ffff880215446fa0.
[   67.514301] [drm] link=0, dc_sink_in=          (null) is now Disconnected
[   67.514303] [drm] DCHPD: connector_id=0: dc_sink didn't change.
[   67.514539] [drm] link=1, dc_sink_in=          (null) is now Disconnected
[   67.514540] [drm] DCHPD: connector_id=1: dc_sink didn't change.
[   67.522869] [drm] [Detect]	[DP][ConnIdx:2] Type 1 DP-HDMI passive dongle 165Mhz: 44 50 2D 48 44 4D 49 20 41 44 41 50 54 4F 52 04 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ^
[   67.538280] [drm] SADs count is: -2, don't need to read it
[   67.538299] [drm] [Detect]	[DVI][ConnIdx:2] 2228W: [Block 0] 00 FF FF FF FF FF FF 00 05 E3 28 22 01 01 01 01 18 19 01 03 80 30 1B 78 2A AD 45 A3 57 52 A1 27 0D 50 54 BF EF 00 D1 C0 B3 00 95 00 81 80 81 40 81 C0 01 01 01 01 02 3A 80 18 71 38 2D 40 58 2C 45 00 DD 0C 11 00 00 1E 00 00 00 FF 00 42 32 38 46 36 51 41 30 30 30 33 39 33 00 00 00 FD 00 32 4C 1E 53 11 00 0A 20 20 20 20 20 20 00 00 00 FC 00 32 32 32 38 57 0A 20 20 20 20 20 20 20 00 64 ^
[   67.538301] [drm] dc_link_detect: manufacturer_id = E305, product_id = 2228, serial_number = 1010101, manufacture_week = 24, manufacture_year = 25, display_name = 2228W, speaker_flag = 0, audio_mode_count = 0
[   67.538319] [drm] link=2, dc_sink_in=ffff8802153da000 is now Connected
[   67.538321] [drm] DCHPD: connector_id=2: Old sink=          (null) New sink=ffff8802153da000
[   67.538464] [drm] link=3, dc_sink_in=          (null) is now Disconnected
[   67.538465] [drm] DCHPD: connector_id=3: dc_sink didn't change.
[   67.538479] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   67.538480] [drm] Driver supports precise vblank timestamp query.
[   67.538480] [drm] KMS initialized.
[   67.540474] [drm] ring test on 0 succeeded in 2 usecs
[   67.540503] [drm] ring test on 1 succeeded in 6 usecs
[   67.540535] [drm] ring test on 2 succeeded in 7 usecs
[   67.540547] [drm] ring test on 3 succeeded in 2 usecs
[   67.540563] [drm] ring test on 4 succeeded in 3 usecs
[   67.540579] [drm] ring test on 5 succeeded in 3 usecs
[   67.540595] [drm] ring test on 6 succeeded in 3 usecs
[   67.540611] [drm] ring test on 7 succeeded in 3 usecs
[   67.540627] [drm] ring test on 8 succeeded in 3 usecs
[   67.540765] [drm] In Ring test func
[   67.540786] [drm] ring test on 9 succeeded in 14 usecs
[   67.540817] [drm] In Ring test func
[   67.540836] [drm] ring test on 10 succeeded in 14 usecs
[   67.562067] [drm] ring test on 11 succeeded in 1 usecs
[   67.562180] [drm] ring test on 12 succeeded in 27 usecs
[   67.562248] [drm] ring test on 13 succeeded in 5 usecs
[   67.562248] [drm] UVD and UVD ENC initialized successfully.
[   67.662420] [drm] ring test on 14 succeeded in 9 usecs
[   67.662569] [drm] ring test on 15 succeeded in 37 usecs
[   67.662707] [drm] ring test on 16 succeeded in 34 usecs
[   67.662707] [drm] VCE initialized successfully.
[   67.663157] [drm] ib test on ring 0 succeeded
[   67.663379] [drm] ib test on ring 1 succeeded
[   67.663429] [drm] ib test on ring 2 succeeded
[   67.663469] [drm] ib test on ring 3 succeeded
[   67.663507] [drm] ib test on ring 4 succeeded
[   67.663543] [drm] ib test on ring 5 succeeded
[   67.663577] [drm] ib test on ring 6 succeeded
[   67.663618] [drm] ib test on ring 7 succeeded
[   67.663655] [drm] ib test on ring 8 succeeded
[   67.663695] [drm] ib test on ring 9 succeeded
[   67.663734] [drm] ib test on ring 10 succeeded
[   67.664566] [drm] ib test on ring 11 succeeded
[   67.667809] [drm] ib test on ring 12 succeeded
[   67.670989] [drm] ib test on ring 13 succeeded
[   67.671491] [drm] ib test on ring 14 succeeded
[   67.677235] [drm] fb mappable at 0xC1600000
[   67.677236] [drm] vram apper at 0xC0000000
[   67.677237] [drm] size 8294400
[   67.677237] [drm] fb depth is 24
[   67.677238] [drm]    pitch is 7680
[   67.677325] fbcon: amdgpudrmfb (fb0) is primary device
[   67.677646] [drm] Atomic commit: SET crtc id 0: [ffff880211aa2000]
[   67.677648] [drm] dc_commit_streams: 1 streams
[   67.677650] [drm] core_stream 0x153d8c00: src: 0, 0, 1920, 1080; dst: 0, 0, 1920, 1080, colorSpace:1
[   67.677651] [drm] 	pix_clk_khz: 148500, h_total: 2200, v_total: 1125, pixelencoder:1, displaycolorDepth:2
[   67.677651] [drm] 	sink name: 2228W, serial: 16843009
[   67.677652] [drm] 	link: 2
[   67.689973] ------------[ cut here ]------------
[   67.690108] WARNING: CPU: 3 PID: 3067 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1003 dcn_find_normalized_clock_vdd_Level.part.2+0x286/0x2b0 [amdgpu]
[   67.690111] Modules linked in: amdgpu(+) ttm ax88179_178a usbnet xhci_pci xhci_hcd efivarfs
[   67.690114] CPU: 3 PID: 3067 Comm: modprobe Not tainted 4.9.0+ #4
[   67.690114] Hardware name: AMD Myrtle/Myrtle, BIOS TMY1100A 03/23/2016
[   67.690117]  ffffc9000871f088 ffffffff8132c787 0000000000000000 0000000000000000
[   67.690118]  ffffc9000871f0c8 ffffffff8105b6a6 000003eb0000ffff ffff880211abfb18
[   67.690119]  ffff880211d6c000 0000000000000000 0000ffff0000ffff 00007fff00007fff
[   67.690120] Call Trace:
[   67.690124]  [<ffffffff8132c787>] dump_stack+0x4d/0x66
[   67.690125]  [<ffffffff8105b6a6>] __warn+0xc6/0xe0
[   67.690126]  [<ffffffff8105b778>] warn_slowpath_null+0x18/0x20
[   67.690164]  [<ffffffffa01743e6>] dcn_find_normalized_clock_vdd_Level.part.2+0x286/0x2b0 [amdgpu]
[   67.690202]  [<ffffffffa0175e5c>] dcn_find_dcfclk_suits_all+0x13c/0x1b0 [amdgpu]
[   67.690279]  [<ffffffffa018e5ab>] dce_apply_clock_voltage_request+0x10b/0x190 [amdgpu]
[   67.690320]  [<ffffffffa01d295f>] apply_min_clocks+0x1af/0x210 [amdgpu]
[   67.690356]  [<ffffffffa01d2b49>] dce110_apply_ctx_to_hw+0x189/0x730 [amdgpu]
[   67.690396]  [<ffffffffa0161978>] ? bios_set_scratch_acc_mode_change+0x58/0x90 [amdgpu]
[   67.690433]  [<ffffffffa01dd061>] dc_commit_streams+0x211/0x610 [amdgpu]
[   67.690435]  [<ffffffff81337b68>] ? pointer+0xd8/0x3e0
[   67.690437]  [<ffffffff8114df49>] ? kmalloc_order_trace+0x29/0xd0
[   67.690439]  [<ffffffff81087389>] ? sched_clock_cpu+0x99/0xb0
[   67.690440]  [<ffffffff810a43f0>] ? log_store+0x1b0/0x270
[   67.690480]  [<ffffffffa0156c11>] amdgpu_dm_atomic_commit_tail+0x201/0xa00 [amdgpu]
[   67.690520]  [<ffffffffa0155761>] ? dm_plane_helper_prepare_fb+0x101/0x170 [amdgpu]
[   67.690522]  [<ffffffff81423663>] ? drm_atomic_helper_wait_for_dependencies+0xb3/0x180
[   67.690523]  [<ffffffff81423a29>] commit_tail+0x39/0x60
[   67.690524]  [<ffffffff81423af7>] drm_atomic_helper_commit+0x97/0xe0
[   67.690525]  [<ffffffff814413b4>] drm_atomic_commit+0x44/0x50
[   67.690526]  [<ffffffff81425ae7>] restore_fbdev_mode+0x147/0x270
[   67.690527]  [<ffffffff8142764f>] drm_fb_helper_restore_fbdev_mode_unlocked+0x2f/0x70
[   67.690528]  [<ffffffff814276b8>] drm_fb_helper_set_par+0x28/0x50
[   67.690530]  [<ffffffff8137e054>] fbcon_init+0x574/0x5f0
[   67.690531]  [<ffffffff813e43e1>] visual_init+0xd1/0x130
[   67.690532]  [<ffffffff813e59f5>] do_bind_con_driver+0x1d5/0x3c0
[   67.690533]  [<ffffffff813e5f11>] do_take_over_console+0x111/0x180
[   67.690534]  [<ffffffff81379f87>] do_fbcon_takeover+0x57/0xb0
[   67.690535]  [<ffffffff8137e24d>] set_con2fb_map+0x17d/0x3d0
[   67.690536]  [<ffffffff81129b02>] ? printk+0x43/0x4b
[   67.690537]  [<ffffffff8137e787>] fbcon_event_notify+0x2e7/0x890
[   67.690538]  [<ffffffff81079f85>] notifier_call_chain+0x45/0x70
[   67.690539]  [<ffffffff8107a282>] __blocking_notifier_call_chain+0x42/0x60
[   67.690540]  [<ffffffff8107a2b1>] blocking_notifier_call_chain+0x11/0x20
[   67.690541]  [<ffffffff81381016>] fb_notifier_call_chain+0x16/0x20
[   67.690542]  [<ffffffff813830a2>] register_framebuffer+0x202/0x340
[   67.690543]  [<ffffffff8142793c>] drm_fb_helper_initial_config+0x25c/0x400
[   67.690576]  [<ffffffffa0072667>] amdgpu_fbdev_init+0xc7/0xf0 [amdgpu]
[   67.690607]  [<ffffffffa005cea8>] amdgpu_device_init+0x1198/0x1420 [amdgpu]
[   67.690610]  [<ffffffffa0006e69>] ? xhci_setup_device+0x389/0x640 [xhci_hcd]
[   67.690641]  [<ffffffffa005feba>] amdgpu_driver_load_kms+0x4a/0x1b0 [amdgpu]
[   67.690642]  [<ffffffff81430b02>] drm_dev_register+0xa2/0xd0
[   67.690643]  [<ffffffff814329c7>] drm_get_pci_dev+0x97/0x1c0
[   67.690674]  [<ffffffffa0059427>] amdgpu_pci_probe+0xb7/0xe0 [amdgpu]
[   67.690675]  [<ffffffff81360410>] local_pci_probe+0x40/0xa0
[   67.690677]  [<ffffffff813617bc>] pci_device_probe+0xdc/0x130
[   67.690678]  [<ffffffff81452d57>] driver_probe_device+0x187/0x2d0
[   67.690679]  [<ffffffff81452f36>] __driver_attach+0x96/0xa0
[   67.690679]  [<ffffffff81452ea0>] ? driver_probe_device+0x2d0/0x2d0
[   67.690680]  [<ffffffff81450e4b>] bus_for_each_dev+0x5b/0x90
[   67.690682]  [<ffffffff81452609>] driver_attach+0x19/0x20
[   67.690683]  [<ffffffff8145218c>] bus_add_driver+0x11c/0x220
[   67.690683]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.690684]  [<ffffffff8145375b>] driver_register+0x5b/0xd0
[   67.690685]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.690686]  [<ffffffff8135fd87>] __pci_register_driver+0x47/0x50
[   67.690687]  [<ffffffff81432bd1>] drm_pci_init+0xe1/0xf0
[   67.690687]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.690712]  [<ffffffffa02d2088>] amdgpu_init+0x88/0x9b [amdgpu]
[   67.690714]  [<ffffffff81000408>] do_one_initcall+0x38/0x140
[   67.690715]  [<ffffffff81166ffc>] ? __vunmap+0x7c/0xc0
[   67.690716]  [<ffffffff8117be83>] ? kmem_cache_alloc_trace+0x33/0x150
[   67.690717]  [<ffffffff81129da3>] do_init_module+0x5a/0x1c9
[   67.690718]  [<ffffffff810d1fb0>] load_module+0x1de0/0x2400
[   67.690719]  [<ffffffff810cf350>] ? __symbol_put+0x40/0x40
[   67.690721]  [<ffffffff8118b5ee>] ? kernel_read_file+0x19e/0x1c0
[   67.690722]  [<ffffffff8118b6c4>] ? kernel_read_file_from_fd+0x44/0x70
[   67.690722]  [<ffffffff810d27ba>] SYSC_finit_module+0xba/0xc0
[   67.690723]  [<ffffffff810d27d9>] SyS_finit_module+0x9/0x10
[   67.690725]  [<ffffffff817862e0>] entry_SYSCALL_64_fastpath+0x13/0x94
[   67.690728] ---[ end trace 7e2a465a618d9b83 ]---
[   67.690729] ------------[ cut here ]------------
[   67.690768] WARNING: CPU: 3 PID: 3067 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1105 dcn_find_dcfclk_suits_all+0x191/0x1b0 [amdgpu]
[   67.690770] Modules linked in: amdgpu(+) ttm ax88179_178a usbnet xhci_pci xhci_hcd efivarfs
[   67.690771] CPU: 3 PID: 3067 Comm: modprobe Tainted: G        W       4.9.0+ #4
[   67.690771] Hardware name: AMD Myrtle/Myrtle, BIOS TMY1100A 03/23/2016
[   67.690772]  ffffc9000871f098 ffffffff8132c787 0000000000000000 0000000000000000
[   67.690773]  ffffc9000871f0d8 ffffffff8105b6a6 0000045111d6c000 ffff880211abfb18
[   67.690774]  ffff880211d6c000 0000000000000004 0000ffff0000ffff 00007fff00007fff
[   67.690774] Call Trace:
[   67.690775]  [<ffffffff8132c787>] dump_stack+0x4d/0x66
[   67.690776]  [<ffffffff8105b6a6>] __warn+0xc6/0xe0
[   67.690777]  [<ffffffff8105b778>] warn_slowpath_null+0x18/0x20
[   67.690817]  [<ffffffffa0175eb1>] dcn_find_dcfclk_suits_all+0x191/0x1b0 [amdgpu]
[   67.690856]  [<ffffffffa018e5ab>] dce_apply_clock_voltage_request+0x10b/0x190 [amdgpu]
[   67.690892]  [<ffffffffa01d295f>] apply_min_clocks+0x1af/0x210 [amdgpu]
[   67.690929]  [<ffffffffa01d2b49>] dce110_apply_ctx_to_hw+0x189/0x730 [amdgpu]
[   67.690969]  [<ffffffffa0161978>] ? bios_set_scratch_acc_mode_change+0x58/0x90 [amdgpu]
[   67.691005]  [<ffffffffa01dd061>] dc_commit_streams+0x211/0x610 [amdgpu]
[   67.691006]  [<ffffffff81337b68>] ? pointer+0xd8/0x3e0
[   67.691007]  [<ffffffff8114df49>] ? kmalloc_order_trace+0x29/0xd0
[   67.691008]  [<ffffffff81087389>] ? sched_clock_cpu+0x99/0xb0
[   67.691009]  [<ffffffff810a43f0>] ? log_store+0x1b0/0x270
[   67.691085]  [<ffffffffa0156c11>] amdgpu_dm_atomic_commit_tail+0x201/0xa00 [amdgpu]
[   67.691123]  [<ffffffffa0155761>] ? dm_plane_helper_prepare_fb+0x101/0x170 [amdgpu]
[   67.691124]  [<ffffffff81423663>] ? drm_atomic_helper_wait_for_dependencies+0xb3/0x180
[   67.691124]  [<ffffffff81423a29>] commit_tail+0x39/0x60
[   67.691125]  [<ffffffff81423af7>] drm_atomic_helper_commit+0x97/0xe0
[   67.691126]  [<ffffffff814413b4>] drm_atomic_commit+0x44/0x50
[   67.691127]  [<ffffffff81425ae7>] restore_fbdev_mode+0x147/0x270
[   67.691128]  [<ffffffff8142764f>] drm_fb_helper_restore_fbdev_mode_unlocked+0x2f/0x70
[   67.691129]  [<ffffffff814276b8>] drm_fb_helper_set_par+0x28/0x50
[   67.691130]  [<ffffffff8137e054>] fbcon_init+0x574/0x5f0
[   67.691131]  [<ffffffff813e43e1>] visual_init+0xd1/0x130
[   67.691132]  [<ffffffff813e59f5>] do_bind_con_driver+0x1d5/0x3c0
[   67.691133]  [<ffffffff813e5f11>] do_take_over_console+0x111/0x180
[   67.691134]  [<ffffffff81379f87>] do_fbcon_takeover+0x57/0xb0
[   67.691134]  [<ffffffff8137e24d>] set_con2fb_map+0x17d/0x3d0
[   67.691135]  [<ffffffff81129b02>] ? printk+0x43/0x4b
[   67.691136]  [<ffffffff8137e787>] fbcon_event_notify+0x2e7/0x890
[   67.691137]  [<ffffffff81079f85>] notifier_call_chain+0x45/0x70
[   67.691138]  [<ffffffff8107a282>] __blocking_notifier_call_chain+0x42/0x60
[   67.691139]  [<ffffffff8107a2b1>] blocking_notifier_call_chain+0x11/0x20
[   67.691139]  [<ffffffff81381016>] fb_notifier_call_chain+0x16/0x20
[   67.691140]  [<ffffffff813830a2>] register_framebuffer+0x202/0x340
[   67.691141]  [<ffffffff8142793c>] drm_fb_helper_initial_config+0x25c/0x400
[   67.691172]  [<ffffffffa0072667>] amdgpu_fbdev_init+0xc7/0xf0 [amdgpu]
[   67.691202]  [<ffffffffa005cea8>] amdgpu_device_init+0x1198/0x1420 [amdgpu]
[   67.691203]  [<ffffffffa0006e69>] ? xhci_setup_device+0x389/0x640 [xhci_hcd]
[   67.691273]  [<ffffffffa005feba>] amdgpu_driver_load_kms+0x4a/0x1b0 [amdgpu]
[   67.691274]  [<ffffffff81430b02>] drm_dev_register+0xa2/0xd0
[   67.691274]  [<ffffffff814329c7>] drm_get_pci_dev+0x97/0x1c0
[   67.691305]  [<ffffffffa0059427>] amdgpu_pci_probe+0xb7/0xe0 [amdgpu]
[   67.691306]  [<ffffffff81360410>] local_pci_probe+0x40/0xa0
[   67.691308]  [<ffffffff813617bc>] pci_device_probe+0xdc/0x130
[   67.691308]  [<ffffffff81452d57>] driver_probe_device+0x187/0x2d0
[   67.691309]  [<ffffffff81452f36>] __driver_attach+0x96/0xa0
[   67.691310]  [<ffffffff81452ea0>] ? driver_probe_device+0x2d0/0x2d0
[   67.691311]  [<ffffffff81450e4b>] bus_for_each_dev+0x5b/0x90
[   67.691312]  [<ffffffff81452609>] driver_attach+0x19/0x20
[   67.691313]  [<ffffffff8145218c>] bus_add_driver+0x11c/0x220
[   67.691313]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.691314]  [<ffffffff8145375b>] driver_register+0x5b/0xd0
[   67.691315]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.691316]  [<ffffffff8135fd87>] __pci_register_driver+0x47/0x50
[   67.691317]  [<ffffffff81432bd1>] drm_pci_init+0xe1/0xf0
[   67.691327]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.691351]  [<ffffffffa02d2088>] amdgpu_init+0x88/0x9b [amdgpu]
[   67.691352]  [<ffffffff81000408>] do_one_initcall+0x38/0x140
[   67.691353]  [<ffffffff81166ffc>] ? __vunmap+0x7c/0xc0
[   67.691354]  [<ffffffff8117be83>] ? kmem_cache_alloc_trace+0x33/0x150
[   67.691355]  [<ffffffff81129da3>] do_init_module+0x5a/0x1c9
[   67.691356]  [<ffffffff810d1fb0>] load_module+0x1de0/0x2400
[   67.691356]  [<ffffffff810cf350>] ? __symbol_put+0x40/0x40
[   67.691358]  [<ffffffff8118b5ee>] ? kernel_read_file+0x19e/0x1c0
[   67.691359]  [<ffffffff8118b6c4>] ? kernel_read_file_from_fd+0x44/0x70
[   67.691359]  [<ffffffff810d27ba>] SYSC_finit_module+0xba/0xc0
[   67.691360]  [<ffffffff810d27d9>] SyS_finit_module+0x9/0x10
[   67.691361]  [<ffffffff817862e0>] entry_SYSCALL_64_fastpath+0x13/0x94
[   67.691364] ---[ end trace 7e2a465a618d9b84 ]---
[   67.691365] ------------[ cut here ]------------
[   67.691404] WARNING: CPU: 3 PID: 3067 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1003 dcn_find_normalized_clock_vdd_Level.part.2+0x286/0x2b0 [amdgpu]
[   67.691406] Modules linked in: amdgpu(+) ttm ax88179_178a usbnet xhci_pci xhci_hcd efivarfs
[   67.691407] CPU: 3 PID: 3067 Comm: modprobe Tainted: G        W       4.9.0+ #4
[   67.691407] Hardware name: AMD Myrtle/Myrtle, BIOS TMY1100A 03/23/2016
[   67.691408]  ffffc9000871f088 ffffffff8132c787 0000000000000000 0000000000000000
[   67.691409]  ffffc9000871f0c8 ffffffff8105b6a6 000003eb0871f0d8 ffff880211abfb18
[   67.691410]  ffff880211d6c000 0000000000000000 0000ffff0000ffff 00007fff00007fff
[   67.691410] Call Trace:
[   67.691411]  [<ffffffff8132c787>] dump_stack+0x4d/0x66
[   67.691412]  [<ffffffff8105b6a6>] __warn+0xc6/0xe0
[   67.691413]  [<ffffffff8105b778>] warn_slowpath_null+0x18/0x20
[   67.691452]  [<ffffffffa01743e6>] dcn_find_normalized_clock_vdd_Level.part.2+0x286/0x2b0 [amdgpu]
[   67.691491]  [<ffffffffa0175e5c>] dcn_find_dcfclk_suits_all+0x13c/0x1b0 [amdgpu]
[   67.691530]  [<ffffffffa018e5ab>] dce_apply_clock_voltage_request+0x10b/0x190 [amdgpu]
[   67.691567]  [<ffffffffa01d298f>] apply_min_clocks+0x1df/0x210 [amdgpu]
[   67.691604]  [<ffffffffa01d2b49>] dce110_apply_ctx_to_hw+0x189/0x730 [amdgpu]
[   67.691644]  [<ffffffffa0161978>] ? bios_set_scratch_acc_mode_change+0x58/0x90 [amdgpu]
[   67.691681]  [<ffffffffa01dd061>] dc_commit_streams+0x211/0x610 [amdgpu]
[   67.691682]  [<ffffffff81337b68>] ? pointer+0xd8/0x3e0
[   67.691683]  [<ffffffff8114df49>] ? kmalloc_order_trace+0x29/0xd0
[   67.691684]  [<ffffffff81087389>] ? sched_clock_cpu+0x99/0xb0
[   67.691685]  [<ffffffff810a43f0>] ? log_store+0x1b0/0x270
[   67.691724]  [<ffffffffa0156c11>] amdgpu_dm_atomic_commit_tail+0x201/0xa00 [amdgpu]
[   67.691764]  [<ffffffffa0155761>] ? dm_plane_helper_prepare_fb+0x101/0x170 [amdgpu]
[   67.691765]  [<ffffffff81423663>] ? drm_atomic_helper_wait_for_dependencies+0xb3/0x180
[   67.691766]  [<ffffffff81423a29>] commit_tail+0x39/0x60
[   67.691767]  [<ffffffff81423af7>] drm_atomic_helper_commit+0x97/0xe0
[   67.691768]  [<ffffffff814413b4>] drm_atomic_commit+0x44/0x50
[   67.691768]  [<ffffffff81425ae7>] restore_fbdev_mode+0x147/0x270
[   67.691769]  [<ffffffff8142764f>] drm_fb_helper_restore_fbdev_mode_unlocked+0x2f/0x70
[   67.691770]  [<ffffffff814276b8>] drm_fb_helper_set_par+0x28/0x50
[   67.691771]  [<ffffffff8137e054>] fbcon_init+0x574/0x5f0
[   67.691772]  [<ffffffff813e43e1>] visual_init+0xd1/0x130
[   67.691773]  [<ffffffff813e59f5>] do_bind_con_driver+0x1d5/0x3c0
[   67.691774]  [<ffffffff813e5f11>] do_take_over_console+0x111/0x180
[   67.691775]  [<ffffffff81379f87>] do_fbcon_takeover+0x57/0xb0
[   67.691776]  [<ffffffff8137e24d>] set_con2fb_map+0x17d/0x3d0
[   67.691777]  [<ffffffff81129b02>] ? printk+0x43/0x4b
[   67.691778]  [<ffffffff8137e787>] fbcon_event_notify+0x2e7/0x890
[   67.691779]  [<ffffffff81079f85>] notifier_call_chain+0x45/0x70
[   67.691780]  [<ffffffff8107a282>] __blocking_notifier_call_chain+0x42/0x60
[   67.691781]  [<ffffffff8107a2b1>] blocking_notifier_call_chain+0x11/0x20
[   67.691781]  [<ffffffff81381016>] fb_notifier_call_chain+0x16/0x20
[   67.691782]  [<ffffffff813830a2>] register_framebuffer+0x202/0x340
[   67.691783]  [<ffffffff8142793c>] drm_fb_helper_initial_config+0x25c/0x400
[   67.691816]  [<ffffffffa0072667>] amdgpu_fbdev_init+0xc7/0xf0 [amdgpu]
[   67.691847]  [<ffffffffa005cea8>] amdgpu_device_init+0x1198/0x1420 [amdgpu]
[   67.691849]  [<ffffffffa0006e69>] ? xhci_setup_device+0x389/0x640 [xhci_hcd]
[   67.691880]  [<ffffffffa005feba>] amdgpu_driver_load_kms+0x4a/0x1b0 [amdgpu]
[   67.691881]  [<ffffffff81430b02>] drm_dev_register+0xa2/0xd0
[   67.691881]  [<ffffffff814329c7>] drm_get_pci_dev+0x97/0x1c0
[   67.691912]  [<ffffffffa0059427>] amdgpu_pci_probe+0xb7/0xe0 [amdgpu]
[   67.691913]  [<ffffffff81360410>] local_pci_probe+0x40/0xa0
[   67.691914]  [<ffffffff813617bc>] pci_device_probe+0xdc/0x130
[   67.691915]  [<ffffffff81452d57>] driver_probe_device+0x187/0x2d0
[   67.691916]  [<ffffffff81452f36>] __driver_attach+0x96/0xa0
[   67.691917]  [<ffffffff81452ea0>] ? driver_probe_device+0x2d0/0x2d0
[   67.691918]  [<ffffffff81450e4b>] bus_for_each_dev+0x5b/0x90
[   67.691919]  [<ffffffff81452609>] driver_attach+0x19/0x20
[   67.691920]  [<ffffffff8145218c>] bus_add_driver+0x11c/0x220
[   67.691920]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.691921]  [<ffffffff8145375b>] driver_register+0x5b/0xd0
[   67.691922]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.691923]  [<ffffffff8135fd87>] __pci_register_driver+0x47/0x50
[   67.691923]  [<ffffffff81432bd1>] drm_pci_init+0xe1/0xf0
[   67.691924]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.691949]  [<ffffffffa02d2088>] amdgpu_init+0x88/0x9b [amdgpu]
[   67.691950]  [<ffffffff81000408>] do_one_initcall+0x38/0x140
[   67.691950]  [<ffffffff81166ffc>] ? __vunmap+0x7c/0xc0
[   67.691951]  [<ffffffff8117be83>] ? kmem_cache_alloc_trace+0x33/0x150
[   67.691952]  [<ffffffff81129da3>] do_init_module+0x5a/0x1c9
[   67.691953]  [<ffffffff810d1fb0>] load_module+0x1de0/0x2400
[   67.691954]  [<ffffffff810cf350>] ? __symbol_put+0x40/0x40
[   67.691955]  [<ffffffff8118b5ee>] ? kernel_read_file+0x19e/0x1c0
[   67.691956]  [<ffffffff8118b6c4>] ? kernel_read_file_from_fd+0x44/0x70
[   67.691957]  [<ffffffff810d27ba>] SYSC_finit_module+0xba/0xc0
[   67.691958]  [<ffffffff810d27d9>] SyS_finit_module+0x9/0x10
[   67.691959]  [<ffffffff817862e0>] entry_SYSCALL_64_fastpath+0x13/0x94
[   67.691959] ---[ end trace 7e2a465a618d9b85 ]---
[   67.691960] ------------[ cut here ]------------
[   67.691999] WARNING: CPU: 3 PID: 3067 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1105 dcn_find_dcfclk_suits_all+0x191/0x1b0 [amdgpu]
[   67.692001] Modules linked in: amdgpu(+) ttm ax88179_178a usbnet xhci_pci xhci_hcd efivarfs
[   67.692001] CPU: 3 PID: 3067 Comm: modprobe Tainted: G        W       4.9.0+ #4
[   67.692002] Hardware name: AMD Myrtle/Myrtle, BIOS TMY1100A 03/23/2016
[   67.692003]  ffffc9000871f098 ffffffff8132c787 0000000000000000 0000000000000000
[   67.692003]  ffffc9000871f0d8 ffffffff8105b6a6 0000045111d6c000 ffff880211abfb18
[   67.692004]  ffff880211d6c000 0000000000000004 0000ffff0000ffff 00007fff00007fff
[   67.692013] Call Trace:
[   67.692014]  [<ffffffff8132c787>] dump_stack+0x4d/0x66
[   67.692015]  [<ffffffff8105b6a6>] __warn+0xc6/0xe0
[   67.692016]  [<ffffffff8105b778>] warn_slowpath_null+0x18/0x20
[   67.692092]  [<ffffffffa0175eb1>] dcn_find_dcfclk_suits_all+0x191/0x1b0 [amdgpu]
[   67.692129]  [<ffffffffa018e5ab>] dce_apply_clock_voltage_request+0x10b/0x190 [amdgpu]
[   67.692164]  [<ffffffffa01d298f>] apply_min_clocks+0x1df/0x210 [amdgpu]
[   67.692199]  [<ffffffffa01d2b49>] dce110_apply_ctx_to_hw+0x189/0x730 [amdgpu]
[   67.692276]  [<ffffffffa0161978>] ? bios_set_scratch_acc_mode_change+0x58/0x90 [amdgpu]
[   67.692313]  [<ffffffffa01dd061>] dc_commit_streams+0x211/0x610 [amdgpu]
[   67.692314]  [<ffffffff81337b68>] ? pointer+0xd8/0x3e0
[   67.692315]  [<ffffffff8114df49>] ? kmalloc_order_trace+0x29/0xd0
[   67.692328]  [<ffffffff81087389>] ? sched_clock_cpu+0x99/0xb0
[   67.692329]  [<ffffffff810a43f0>] ? log_store+0x1b0/0x270
[   67.692369]  [<ffffffffa0156c11>] amdgpu_dm_atomic_commit_tail+0x201/0xa00 [amdgpu]
[   67.692408]  [<ffffffffa0155761>] ? dm_plane_helper_prepare_fb+0x101/0x170 [amdgpu]
[   67.692409]  [<ffffffff81423663>] ? drm_atomic_helper_wait_for_dependencies+0xb3/0x180
[   67.692410]  [<ffffffff81423a29>] commit_tail+0x39/0x60
[   67.692411]  [<ffffffff81423af7>] drm_atomic_helper_commit+0x97/0xe0
[   67.692412]  [<ffffffff814413b4>] drm_atomic_commit+0x44/0x50
[   67.692412]  [<ffffffff81425ae7>] restore_fbdev_mode+0x147/0x270
[   67.692413]  [<ffffffff8142764f>] drm_fb_helper_restore_fbdev_mode_unlocked+0x2f/0x70
[   67.692414]  [<ffffffff814276b8>] drm_fb_helper_set_par+0x28/0x50
[   67.692415]  [<ffffffff8137e054>] fbcon_init+0x574/0x5f0
[   67.692416]  [<ffffffff813e43e1>] visual_init+0xd1/0x130
[   67.692417]  [<ffffffff813e59f5>] do_bind_con_driver+0x1d5/0x3c0
[   67.692418]  [<ffffffff813e5f11>] do_take_over_console+0x111/0x180
[   67.692419]  [<ffffffff81379f87>] do_fbcon_takeover+0x57/0xb0
[   67.692420]  [<ffffffff8137e24d>] set_con2fb_map+0x17d/0x3d0
[   67.692421]  [<ffffffff81129b02>] ? printk+0x43/0x4b
[   67.692421]  [<ffffffff8137e787>] fbcon_event_notify+0x2e7/0x890
[   67.692422]  [<ffffffff81079f85>] notifier_call_chain+0x45/0x70
[   67.692423]  [<ffffffff8107a282>] __blocking_notifier_call_chain+0x42/0x60
[   67.692424]  [<ffffffff8107a2b1>] blocking_notifier_call_chain+0x11/0x20
[   67.692425]  [<ffffffff81381016>] fb_notifier_call_chain+0x16/0x20
[   67.692426]  [<ffffffff813830a2>] register_framebuffer+0x202/0x340
[   67.692427]  [<ffffffff8142793c>] drm_fb_helper_initial_config+0x25c/0x400
[   67.692460]  [<ffffffffa0072667>] amdgpu_fbdev_init+0xc7/0xf0 [amdgpu]
[   67.692491]  [<ffffffffa005cea8>] amdgpu_device_init+0x1198/0x1420 [amdgpu]
[   67.692492]  [<ffffffffa0006e69>] ? xhci_setup_device+0x389/0x640 [xhci_hcd]
[   67.692524]  [<ffffffffa005feba>] amdgpu_driver_load_kms+0x4a/0x1b0 [amdgpu]
[   67.692524]  [<ffffffff81430b02>] drm_dev_register+0xa2/0xd0
[   67.692525]  [<ffffffff814329c7>] drm_get_pci_dev+0x97/0x1c0
[   67.692556]  [<ffffffffa0059427>] amdgpu_pci_probe+0xb7/0xe0 [amdgpu]
[   67.692557]  [<ffffffff81360410>] local_pci_probe+0x40/0xa0
[   67.692558]  [<ffffffff813617bc>] pci_device_probe+0xdc/0x130
[   67.692559]  [<ffffffff81452d57>] driver_probe_device+0x187/0x2d0
[   67.692560]  [<ffffffff81452f36>] __driver_attach+0x96/0xa0
[   67.692560]  [<ffffffff81452ea0>] ? driver_probe_device+0x2d0/0x2d0
[   67.692561]  [<ffffffff81450e4b>] bus_for_each_dev+0x5b/0x90
[   67.692562]  [<ffffffff81452609>] driver_attach+0x19/0x20
[   67.692563]  [<ffffffff8145218c>] bus_add_driver+0x11c/0x220
[   67.692564]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.692565]  [<ffffffff8145375b>] driver_register+0x5b/0xd0
[   67.692565]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.692566]  [<ffffffff8135fd87>] __pci_register_driver+0x47/0x50
[   67.692567]  [<ffffffff81432bd1>] drm_pci_init+0xe1/0xf0
[   67.692567]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.692592]  [<ffffffffa02d2088>] amdgpu_init+0x88/0x9b [amdgpu]
[   67.692593]  [<ffffffff81000408>] do_one_initcall+0x38/0x140
[   67.692594]  [<ffffffff81166ffc>] ? __vunmap+0x7c/0xc0
[   67.692595]  [<ffffffff8117be83>] ? kmem_cache_alloc_trace+0x33/0x150
[   67.692596]  [<ffffffff81129da3>] do_init_module+0x5a/0x1c9
[   67.692597]  [<ffffffff810d1fb0>] load_module+0x1de0/0x2400
[   67.692597]  [<ffffffff810cf350>] ? __symbol_put+0x40/0x40
[   67.692598]  [<ffffffff8118b5ee>] ? kernel_read_file+0x19e/0x1c0
[   67.692599]  [<ffffffff8118b6c4>] ? kernel_read_file_from_fd+0x44/0x70
[   67.692600]  [<ffffffff810d27ba>] SYSC_finit_module+0xba/0xc0
[   67.692601]  [<ffffffff810d27d9>] SyS_finit_module+0x9/0x10
[   67.692602]  [<ffffffff817862e0>] entry_SYSCALL_64_fastpath+0x13/0x94
[   67.692605] ---[ end trace 7e2a465a618d9b86 ]---
[   67.692605] ------------[ cut here ]------------
[   67.692645] WARNING: CPU: 3 PID: 3067 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1003 dcn_find_normalized_clock_vdd_Level.part.2+0x286/0x2b0 [amdgpu]
[   67.692646] Modules linked in: amdgpu(+) ttm ax88179_178a usbnet xhci_pci xhci_hcd efivarfs
[   67.692647] CPU: 3 PID: 3067 Comm: modprobe Tainted: G        W       4.9.0+ #4
[   67.692647] Hardware name: AMD Myrtle/Myrtle, BIOS TMY1100A 03/23/2016
[   67.692648]  ffffc9000871f088 ffffffff8132c787 0000000000000000 0000000000000000
[   67.692649]  ffffc9000871f0c8 ffffffff8105b6a6 000003eb0871f0d8 ffff880211abfb18
[   67.692650]  ffff880211d6c000 0000000000000000 0000ffff0000ffff 00007fff00007fff
[   67.692650] Call Trace:
[   67.692651]  [<ffffffff8132c787>] dump_stack+0x4d/0x66
[   67.692652]  [<ffffffff8105b6a6>] __warn+0xc6/0xe0
[   67.692653]  [<ffffffff8105b778>] warn_slowpath_null+0x18/0x20
[   67.692692]  [<ffffffffa01743e6>] dcn_find_normalized_clock_vdd_Level.part.2+0x286/0x2b0 [amdgpu]
[   67.692731]  [<ffffffffa0175e5c>] dcn_find_dcfclk_suits_all+0x13c/0x1b0 [amdgpu]
[   67.692770]  [<ffffffffa018e5ab>] dce_apply_clock_voltage_request+0x10b/0x190 [amdgpu]
[   67.692807]  [<ffffffffa01d29ae>] apply_min_clocks+0x1fe/0x210 [amdgpu]
[   67.692844]  [<ffffffffa01d2b49>] dce110_apply_ctx_to_hw+0x189/0x730 [amdgpu]
[   67.692884]  [<ffffffffa0161978>] ? bios_set_scratch_acc_mode_change+0x58/0x90 [amdgpu]
[   67.692920]  [<ffffffffa01dd061>] dc_commit_streams+0x211/0x610 [amdgpu]
[   67.692921]  [<ffffffff81337b68>] ? pointer+0xd8/0x3e0
[   67.692922]  [<ffffffff8114df49>] ? kmalloc_order_trace+0x29/0xd0
[   67.692923]  [<ffffffff81087389>] ? sched_clock_cpu+0x99/0xb0
[   67.692924]  [<ffffffff810a43f0>] ? log_store+0x1b0/0x270
[   67.692964]  [<ffffffffa0156c11>] amdgpu_dm_atomic_commit_tail+0x201/0xa00 [amdgpu]
[   67.693004]  [<ffffffffa0155761>] ? dm_plane_helper_prepare_fb+0x101/0x170 [amdgpu]
[   67.693005]  [<ffffffff81423663>] ? drm_atomic_helper_wait_for_dependencies+0xb3/0x180
[   67.693006]  [<ffffffff81423a29>] commit_tail+0x39/0x60
[   67.693006]  [<ffffffff81423af7>] drm_atomic_helper_commit+0x97/0xe0
[   67.693007]  [<ffffffff814413b4>] drm_atomic_commit+0x44/0x50
[   67.693008]  [<ffffffff81425ae7>] restore_fbdev_mode+0x147/0x270
[   67.693009]  [<ffffffff8142764f>] drm_fb_helper_restore_fbdev_mode_unlocked+0x2f/0x70
[   67.693010]  [<ffffffff814276b8>] drm_fb_helper_set_par+0x28/0x50
[   67.693011]  [<ffffffff8137e054>] fbcon_init+0x574/0x5f0
[   67.693012]  [<ffffffff813e43e1>] visual_init+0xd1/0x130
[   67.693013]  [<ffffffff813e59f5>] do_bind_con_driver+0x1d5/0x3c0
[   67.693014]  [<ffffffff813e5f11>] do_take_over_console+0x111/0x180
[   67.693015]  [<ffffffff81379f87>] do_fbcon_takeover+0x57/0xb0
[   67.693016]  [<ffffffff8137e24d>] set_con2fb_map+0x17d/0x3d0
[   67.693017]  [<ffffffff81129b02>] ? printk+0x43/0x4b
[   67.693017]  [<ffffffff8137e787>] fbcon_event_notify+0x2e7/0x890
[   67.693018]  [<ffffffff81079f85>] notifier_call_chain+0x45/0x70
[   67.693019]  [<ffffffff8107a282>] __blocking_notifier_call_chain+0x42/0x60
[   67.693020]  [<ffffffff8107a2b1>] blocking_notifier_call_chain+0x11/0x20
[   67.693022]  [<ffffffff81381016>] fb_notifier_call_chain+0x16/0x20
[   67.693022]  [<ffffffff813830a2>] register_framebuffer+0x202/0x340
[   67.693061]  [<ffffffff8142793c>] drm_fb_helper_initial_config+0x25c/0x400
[   67.693092]  [<ffffffffa0072667>] amdgpu_fbdev_init+0xc7/0xf0 [amdgpu]
[   67.693121]  [<ffffffffa005cea8>] amdgpu_device_init+0x1198/0x1420 [amdgpu]
[   67.693123]  [<ffffffffa0006e69>] ? xhci_setup_device+0x389/0x640 [xhci_hcd]
[   67.693153]  [<ffffffffa005feba>] amdgpu_driver_load_kms+0x4a/0x1b0 [amdgpu]
[   67.693154]  [<ffffffff81430b02>] drm_dev_register+0xa2/0xd0
[   67.693154]  [<ffffffff814329c7>] drm_get_pci_dev+0x97/0x1c0
[   67.693184]  [<ffffffffa0059427>] amdgpu_pci_probe+0xb7/0xe0 [amdgpu]
[   67.693185]  [<ffffffff81360410>] local_pci_probe+0x40/0xa0
[   67.693186]  [<ffffffff813617bc>] pci_device_probe+0xdc/0x130
[   67.693186]  [<ffffffff81452d57>] driver_probe_device+0x187/0x2d0
[   67.693187]  [<ffffffff81452f36>] __driver_attach+0x96/0xa0
[   67.693188]  [<ffffffff81452ea0>] ? driver_probe_device+0x2d0/0x2d0
[   67.693189]  [<ffffffff81450e4b>] bus_for_each_dev+0x5b/0x90
[   67.693190]  [<ffffffff81452609>] driver_attach+0x19/0x20
[   67.693191]  [<ffffffff8145218c>] bus_add_driver+0x11c/0x220
[   67.693191]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.693192]  [<ffffffff8145375b>] driver_register+0x5b/0xd0
[   67.693192]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.693193]  [<ffffffff8135fd87>] __pci_register_driver+0x47/0x50
[   67.693194]  [<ffffffff81432bd1>] drm_pci_init+0xe1/0xf0
[   67.693195]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.693257]  [<ffffffffa02d2088>] amdgpu_init+0x88/0x9b [amdgpu]
[   67.693258]  [<ffffffff81000408>] do_one_initcall+0x38/0x140
[   67.693259]  [<ffffffff81166ffc>] ? __vunmap+0x7c/0xc0
[   67.693260]  [<ffffffff8117be83>] ? kmem_cache_alloc_trace+0x33/0x150
[   67.693260]  [<ffffffff81129da3>] do_init_module+0x5a/0x1c9
[   67.693261]  [<ffffffff810d1fb0>] load_module+0x1de0/0x2400
[   67.693262]  [<ffffffff810cf350>] ? __symbol_put+0x40/0x40
[   67.693263]  [<ffffffff8118b5ee>] ? kernel_read_file+0x19e/0x1c0
[   67.693264]  [<ffffffff8118b6c4>] ? kernel_read_file_from_fd+0x44/0x70
[   67.693265]  [<ffffffff810d27ba>] SYSC_finit_module+0xba/0xc0
[   67.693266]  [<ffffffff810d27d9>] SyS_finit_module+0x9/0x10
[   67.693267]  [<ffffffff817862e0>] entry_SYSCALL_64_fastpath+0x13/0x94
[   67.693269] ---[ end trace 7e2a465a618d9b87 ]---
[   67.693269] ------------[ cut here ]------------
[   67.693308] WARNING: CPU: 3 PID: 3067 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1105 dcn_find_dcfclk_suits_all+0x191/0x1b0 [amdgpu]
[   67.693310] Modules linked in: amdgpu(+) ttm ax88179_178a usbnet xhci_pci xhci_hcd efivarfs
[   67.693311] CPU: 3 PID: 3067 Comm: modprobe Tainted: G        W       4.9.0+ #4
[   67.693311] Hardware name: AMD Myrtle/Myrtle, BIOS TMY1100A 03/23/2016
[   67.693312]  ffffc9000871f098 ffffffff8132c787 0000000000000000 0000000000000000
[   67.693313]  ffffc9000871f0d8 ffffffff8105b6a6 0000045111d6c000 ffff880211abfb18
[   67.693314]  ffff880211d6c000 0000000000000004 0000ffff0000ffff 00007fff00007fff
[   67.693327] Call Trace:
[   67.693328]  [<ffffffff8132c787>] dump_stack+0x4d/0x66
[   67.693329]  [<ffffffff8105b6a6>] __warn+0xc6/0xe0
[   67.693329]  [<ffffffff8105b778>] warn_slowpath_null+0x18/0x20
[   67.693369]  [<ffffffffa0175eb1>] dcn_find_dcfclk_suits_all+0x191/0x1b0 [amdgpu]
[   67.693408]  [<ffffffffa018e5ab>] dce_apply_clock_voltage_request+0x10b/0x190 [amdgpu]
[   67.693445]  [<ffffffffa01d29ae>] apply_min_clocks+0x1fe/0x210 [amdgpu]
[   67.693482]  [<ffffffffa01d2b49>] dce110_apply_ctx_to_hw+0x189/0x730 [amdgpu]
[   67.693521]  [<ffffffffa0161978>] ? bios_set_scratch_acc_mode_change+0x58/0x90 [amdgpu]
[   67.693558]  [<ffffffffa01dd061>] dc_commit_streams+0x211/0x610 [amdgpu]
[   67.693559]  [<ffffffff81337b68>] ? pointer+0xd8/0x3e0
[   67.693560]  [<ffffffff8114df49>] ? kmalloc_order_trace+0x29/0xd0
[   67.693561]  [<ffffffff81087389>] ? sched_clock_cpu+0x99/0xb0
[   67.693562]  [<ffffffff810a43f0>] ? log_store+0x1b0/0x270
[   67.693601]  [<ffffffffa0156c11>] amdgpu_dm_atomic_commit_tail+0x201/0xa00 [amdgpu]
[   67.693641]  [<ffffffffa0155761>] ? dm_plane_helper_prepare_fb+0x101/0x170 [amdgpu]
[   67.693642]  [<ffffffff81423663>] ? drm_atomic_helper_wait_for_dependencies+0xb3/0x180
[   67.693642]  [<ffffffff81423a29>] commit_tail+0x39/0x60
[   67.693643]  [<ffffffff81423af7>] drm_atomic_helper_commit+0x97/0xe0
[   67.693644]  [<ffffffff814413b4>] drm_atomic_commit+0x44/0x50
[   67.693645]  [<ffffffff81425ae7>] restore_fbdev_mode+0x147/0x270
[   67.693646]  [<ffffffff8142764f>] drm_fb_helper_restore_fbdev_mode_unlocked+0x2f/0x70
[   67.693647]  [<ffffffff814276b8>] drm_fb_helper_set_par+0x28/0x50
[   67.693648]  [<ffffffff8137e054>] fbcon_init+0x574/0x5f0
[   67.693649]  [<ffffffff813e43e1>] visual_init+0xd1/0x130
[   67.693650]  [<ffffffff813e59f5>] do_bind_con_driver+0x1d5/0x3c0
[   67.693651]  [<ffffffff813e5f11>] do_take_over_console+0x111/0x180
[   67.693652]  [<ffffffff81379f87>] do_fbcon_takeover+0x57/0xb0
[   67.693652]  [<ffffffff8137e24d>] set_con2fb_map+0x17d/0x3d0
[   67.693653]  [<ffffffff81129b02>] ? printk+0x43/0x4b
[   67.693654]  [<ffffffff8137e787>] fbcon_event_notify+0x2e7/0x890
[   67.693655]  [<ffffffff81079f85>] notifier_call_chain+0x45/0x70
[   67.693656]  [<ffffffff8107a282>] __blocking_notifier_call_chain+0x42/0x60
[   67.693657]  [<ffffffff8107a2b1>] blocking_notifier_call_chain+0x11/0x20
[   67.693658]  [<ffffffff81381016>] fb_notifier_call_chain+0x16/0x20
[   67.693658]  [<ffffffff813830a2>] register_framebuffer+0x202/0x340
[   67.693660]  [<ffffffff8142793c>] drm_fb_helper_initial_config+0x25c/0x400
[   67.693692]  [<ffffffffa0072667>] amdgpu_fbdev_init+0xc7/0xf0 [amdgpu]
[   67.693723]  [<ffffffffa005cea8>] amdgpu_device_init+0x1198/0x1420 [amdgpu]
[   67.693725]  [<ffffffffa0006e69>] ? xhci_setup_device+0x389/0x640 [xhci_hcd]
[   67.693756]  [<ffffffffa005feba>] amdgpu_driver_load_kms+0x4a/0x1b0 [amdgpu]
[   67.693756]  [<ffffffff81430b02>] drm_dev_register+0xa2/0xd0
[   67.693757]  [<ffffffff814329c7>] drm_get_pci_dev+0x97/0x1c0
[   67.693788]  [<ffffffffa0059427>] amdgpu_pci_probe+0xb7/0xe0 [amdgpu]
[   67.693789]  [<ffffffff81360410>] local_pci_probe+0x40/0xa0
[   67.693790]  [<ffffffff813617bc>] pci_device_probe+0xdc/0x130
[   67.693791]  [<ffffffff81452d57>] driver_probe_device+0x187/0x2d0
[   67.693791]  [<ffffffff81452f36>] __driver_attach+0x96/0xa0
[   67.693792]  [<ffffffff81452ea0>] ? driver_probe_device+0x2d0/0x2d0
[   67.693793]  [<ffffffff81450e4b>] bus_for_each_dev+0x5b/0x90
[   67.693794]  [<ffffffff81452609>] driver_attach+0x19/0x20
[   67.693795]  [<ffffffff8145218c>] bus_add_driver+0x11c/0x220
[   67.693796]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.693796]  [<ffffffff8145375b>] driver_register+0x5b/0xd0
[   67.693797]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.693798]  [<ffffffff8135fd87>] __pci_register_driver+0x47/0x50
[   67.693799]  [<ffffffff81432bd1>] drm_pci_init+0xe1/0xf0
[   67.693799]  [<ffffffffa02d2000>] ? 0xffffffffa02d2000
[   67.693824]  [<ffffffffa02d2088>] amdgpu_init+0x88/0x9b [amdgpu]
[   67.693825]  [<ffffffff81000408>] do_one_initcall+0x38/0x140
[   67.693826]  [<ffffffff81166ffc>] ? __vunmap+0x7c/0xc0
[   67.693827]  [<ffffffff8117be83>] ? kmem_cache_alloc_trace+0x33/0x150
[   67.693828]  [<ffffffff81129da3>] do_init_module+0x5a/0x1c9
[   67.693828]  [<ffffffff810d1fb0>] load_module+0x1de0/0x2400
[   67.693829]  [<ffffffff810cf350>] ? __symbol_put+0x40/0x40
[   67.693830]  [<ffffffff8118b5ee>] ? kernel_read_file+0x19e/0x1c0
[   67.693831]  [<ffffffff8118b6c4>] ? kernel_read_file_from_fd+0x44/0x70
[   67.693832]  [<ffffffff810d27ba>] SYSC_finit_module+0xba/0xc0
[   67.693833]  [<ffffffff810d27d9>] SyS_finit_module+0x9/0x10
[   67.693834]  [<ffffffff817862e0>] entry_SYSCALL_64_fastpath+0x13/0x94
[   67.693835] ---[ end trace 7e2a465a618d9b88 ]---
[   67.695538] amdgpu: [powerplay] Cannot find requested DCEFCLK!
[   67.695538] [drm] [Mode]	[DVI][ConnIdx:2] {1920x1080, 2200x1125@148500Khz}^
[   67.711393] Console: switching to colour frame buffer device 240x67
[   67.722885] amdgpu 0000:03:00.0: fb0: amdgpudrmfb frame buffer device
[   67.722967] amdgpu 0000:03:00.0: ring 0(gfx) uses VM inv eng 3 on hub 0
[   67.722968] amdgpu 0000:03:00.0: ring 1(comp_1.0.0) uses VM inv eng 4 on hub 0
[   67.722969] amdgpu 0000:03:00.0: ring 2(comp_1.0.1) uses VM inv eng 5 on hub 0
[   67.722970] amdgpu 0000:03:00.0: ring 3(comp_1.0.2) uses VM inv eng 6 on hub 0
[   67.722971] amdgpu 0000:03:00.0: ring 4(comp_1.0.3) uses VM inv eng 7 on hub 0
[   67.722972] amdgpu 0000:03:00.0: ring 5(comp_1.0.4) uses VM inv eng 8 on hub 0
[   67.722973] amdgpu 0000:03:00.0: ring 6(comp_1.0.5) uses VM inv eng 9 on hub 0
[   67.722974] amdgpu 0000:03:00.0: ring 7(comp_1.0.6) uses VM inv eng 10 on hub 0
[   67.722975] amdgpu 0000:03:00.0: ring 8(comp_1.0.7) uses VM inv eng 11 on hub 0
[   67.722976] amdgpu 0000:03:00.0: ring 9(sdma0) uses VM inv eng 3 on hub 1
[   67.722977] amdgpu 0000:03:00.0: ring 10(sdma1) uses VM inv eng 4 on hub 1
[   67.722978] amdgpu 0000:03:00.0: ring 11(uvd) uses VM inv eng 5 on hub 1
[   67.722979] amdgpu 0000:03:00.0: ring 12(uvd_enc0) uses VM inv eng 6 on hub 1
[   67.722979] amdgpu 0000:03:00.0: ring 13(uvd_enc1) uses VM inv eng 7 on hub 1
[   67.722980] amdgpu 0000:03:00.0: ring 14(vce0) uses VM inv eng 8 on hub 1
[   67.722982] amdgpu 0000:03:00.0: ring 15(vce1) uses VM inv eng 9 on hub 1
[   67.722982] amdgpu 0000:03:00.0: ring 16(vce2) uses VM inv eng 10 on hub 1
[   67.723524] amdgpu: [powerplay] Cannot find requested DCEFCLK!
[   67.991941] [drm] Initialized amdgpu 3.16.0 20150101 for 0000:03:00.0 on minor 1
[   67.992233] modprobe (3067) used greatest stack depth: 10520 bytes left

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): a8662bbf-a72b-4bba-76be-a78947e07ccc-5C7GfCeVMHo@public.gmane.org

#35 lore raw

Yeah, there's still a patch in the queue that should fix it. Just didn't make this push.

Harry

Quoted 121 lines · Tom St Denis

Still getting noise in dmesg with DCN enabled on my carrizo/vega10 setup. It's otherwise fine.

Tom

Quoted 102 lines · Harry Wentland

* Fix deadlock when plugging MST display
* Fix DVI->HDMI dongles
* Bunch of raven bandwidth changes
* Some more cleanup for i2c/aux

Amy Zhang (1):
drm/amd/display: Move output transfer function to stream updates

Andrey Grodzovsky (4):
drm/amd/display: i2c Remove link index.
drm/amd/display: DP aux Remove link index.
drm/amd/display: i2c/aux Remove link index.
drm/amd/display: Fix race.

Anthony Koo (2):
drm/amd/display: use signal type to decide whether to set backlight drm/amd/display: Implement support for backlight optimization

Charlene Liu (1):
drm/amd/display: single channel bandwidth verses dual channel
bandwidth

Corbin McElhanney (1):
drm/amd/display: fix freesync not working on raven

Dmytro Laktyushkin (9):
drm/amd/display: bw debug options now apply to dml as well drm/amd/display: prevent assert on error of 1 in calc_freesync_range drm/amd/display: refactor bw related variable structure in val_ctx drm/amd/display: switch to using calc_clk and cur_clk for dcn bw
setting
drm/amd/display: enable watermark range reporting to pplib drm/amd/display: fix scaling calculation for proper surface input
format
drm/amd/display: add yuv pixel formats to pixel_format_to_bpp() drm/amd/display: fix scaling info based surface update type check drm/amd/display: add explanation for surface_update_type

Harry Wentland (6):
drm/amd/display: Don't call PSR func if DMCU is off drm/amd/display: Keep DVI_SINGLE_LINK signal if low clk drm/amd/display: ifdef some code only needed for DCN drm/amd/display: Use MED update type if clip position changes drm/amd/display: Add mem_input header to non-DCN builds drm/amd/display: DCE12 num_timing_generators should be 6

Ken Chalmers (1):
drm/amd/display: Continue with stream enable if DP link training
fails.

Leon Elazar (1):
drm/amd/display: Allow MPO on Raven

Pratik Vishwakarma (1):
drm/amd/display: get_atomic_property missing for drm_connector_funcs

Sun peng Li (1):
drm/amd/display: Reverting locks around updating freesync property

Tony Cheng (1):
drm/amd/display: do not set_mpc_tree if tree is already setup

Yongqiang Sun (2):
drm/amd/display: Only apply ctx for specific surface. drm/amd/display: Add 64KB_S_T and 64KB_D_T swizzle mode.

  drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h           |   6 +-
  .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c    |  38 +++---
  .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.c    |  82 +++++++++---
  .../drm/amd/display/amdgpu_dm/amdgpu_dm_types.h    |   6 +
  drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c   |  18 +--
  drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c   | 131
+++++++++++--------
  drivers/gpu/drm/amd/display/dc/core/dc.c           | 140
++++++++-------------
  drivers/gpu/drm/amd/display/dc/core/dc_link.c      |  59 +++++----
  drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c   |   4 +-
  drivers/gpu/drm/amd/display/dc/core/dc_resource.c  |  69 ++++++----
  drivers/gpu/drm/amd/display/dc/dc.h                |  51 +++++---
  drivers/gpu/drm/amd/display/dc/dc_hw_types.h       |  20 +--
  drivers/gpu/drm/amd/display/dc/dce/dce_abm.c       |  36 ++++--
  drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c    |  11 +-
  drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c |   6 +-
  drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h |  12 +-
  .../amd/display/dc/dce100/dce100_hw_sequencer.c    |   9 +-
  .../drm/amd/display/dc/dce100/dce100_resource.c    |   4 +-
  .../amd/display/dc/dce110/dce110_hw_sequencer.c    | 100
++++++++-------
  .../drm/amd/display/dc/dce110/dce110_mem_input.c   |  12 +-
  .../drm/amd/display/dc/dce110/dce110_mem_input.h   |   6 +-
  .../drm/amd/display/dc/dce110/dce110_mem_input_v.c |  30 ++---
  .../drm/amd/display/dc/dce110/dce110_mem_input_v.h |   6 +-
  .../drm/amd/display/dc/dce110/dce110_resource.c    |  63 +++++-----
  .../drm/amd/display/dc/dce112/dce112_resource.c    |  63 +++++-----
  .../drm/amd/display/dc/dce120/dce120_resource.c    |   4 +-
  .../gpu/drm/amd/display/dc/dce80/dce80_resource.c  |   4 +-
  .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c  | 121
+++++++++++++-----
  .../gpu/drm/amd/display/dc/dcn10/dcn10_mem_input.c |   6 +-
  .../gpu/drm/amd/display/dc/dcn10/dcn10_resource.c  |   4 +-
  drivers/gpu/drm/amd/display/dc/inc/core_status.h   |   1 +
  drivers/gpu/drm/amd/display/dc/inc/core_types.h    |  61 +++++++--
Quoted 9 lines
  drivers/gpu/drm/amd/display/dc/inc/dce_calcs.h     |  29 +----
  drivers/gpu/drm/amd/display/dc/inc/hw/abm.h        |   2 +
  drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h        |   2 +
  drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h  |  20 +--
  drivers/gpu/drm/amd/display/dc/inc/hw/opp.h        |   2 +
  drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h  |   1 -
  .../drm/amd/display/modules/freesync/freesync.c    |  16 ++-
  39 files changed, 741 insertions(+), 514 deletions(-)
Quoted 5 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx