Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1408953imm; Thu, 5 Jul 2018 22:49:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcvWwEEcw6ir/5qqsYt+9xSj1rDGrW9c5vKqR3n9WXCA7tjKYJV2gqtoMt5O26YrgXy8ON+ X-Received: by 2002:a17:902:1682:: with SMTP id h2-v6mr8997751plh.327.1530856176206; Thu, 05 Jul 2018 22:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530856176; cv=none; d=google.com; s=arc-20160816; b=Y8WMlZzYSZpA6orTeMwrh3QO2SzP+JCPhzu+dgJBkXOn5htRgJgAzkvy0yqmeFa2w/ vNeaUnkdvqF2OE+Lnd+vC7rKZopa0WjE0pZPTHjHFAo+dMJmr4foiQInV2EXU/Jj0zQi 9kbIFSOE3cWCxBA2/kH9/Y2oI0c8t60bdLrSWdRuYhgQ800WnkvqGp6iYo/g0BoEFumH NIECcugPqwUVHPbDrmZwRM6M6PvEBAVRSn2gg5BlZ1VgLfAdhGDXBnLmTMD+z94Y6TB3 yPk15ynRKJaEUt4eox05DFZ9YLlweSmm9ZANT1A4S6nlQF4X98HfpZ0gvjaEUwfrwJSz n4Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=0QL9KIhb0jYItwcbADaNxJ9qH5wUHCQNZ8sFKnKNWJk=; b=K+o5sdoYGZT/G27qjtKIUL7Ej2IIAd4+kKDpHuNMCGWYytcpBerxNjAXr5xDMLdauF QDY3B7ymsGKahlfOJ3gmqRyaC9ooZdntoIL9rDpNhQqVk+XmTUoGEcwIEkIE+hTTlRfo 4XbFD1RhrY1Dj4JhMHf1wfEazZNY0nGOVhCRE+VCUxnRTDLEMJmRPMpdkbx9DOtIK+1D NrerUAbQ1jw+6/jK7UwAgU1UrB4y27tIBAuZyXWvdphfUs0KLiUahWybg8xIFQ+LvDsK lRveoYZlG4a0W8iqNqUBub+ga3LAlLr4JqswWKy4gwTyyXh2b1YGMpjGZpE489Yy/2Tc fBxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si7324395plt.258.2018.07.05.22.49.22; Thu, 05 Jul 2018 22:49:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933286AbeGFFsY (ORCPT + 99 others); Fri, 6 Jul 2018 01:48:24 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59794 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933177AbeGFFsQ (ORCPT ); Fri, 6 Jul 2018 01:48:16 -0400 Received: from localhost (D57D388D.static.ziggozakelijk.nl [213.125.56.141]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 082CDB14; Fri, 6 Jul 2018 05:48:15 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Harry Wentland , Alex Deucher Subject: [PATCH 4.17 28/46] drm/amdgpu: Dont default to DC support for Kaveri and older Date: Fri, 6 Jul 2018 07:46:49 +0200 Message-Id: <20180706054525.936593740@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180706054524.595521988@linuxfoundation.org> References: <20180706054524.595521988@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Harry Wentland commit d9fda248046ac035f18a6e663f2f9245b4bf9470 upstream. We've had a number of users report failures to detect and light up display with DC with LVDS and VGA. These connector types are not currently supported with DC. I'd like to add support but unfortunately don't have a system with LVDS or VGA available. In order not to cause regressions we should probably fallback to the non-DC driver for ASICs that support VGA and LVDS. These ASICs are: * Bonaire * Kabini * Kaveri * Mullins ASIC support can always be force enabled with amdgpu.dc=1 v2: Keep Hawaii on DC v3: Added Mullins to the list Cc: stable@vger.kernel.org Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -2080,10 +2080,18 @@ bool amdgpu_device_asic_has_dc_support(e switch (asic_type) { #if defined(CONFIG_DRM_AMD_DC) case CHIP_BONAIRE: - case CHIP_HAWAII: case CHIP_KAVERI: case CHIP_KABINI: case CHIP_MULLINS: + /* + * We have systems in the wild with these ASICs that require + * LVDS and VGA support which is not supported with DC. + * + * Fallback to the non-DC driver here by default so as not to + * cause regressions. + */ + return amdgpu_dc > 0; + case CHIP_HAWAII: case CHIP_CARRIZO: case CHIP_STONEY: case CHIP_POLARIS11: