From: Jean Delvare Subject: Re: [PATCH] drm/radeon/kms: bail on BTC parts if MC ucode is missing Date: Fri, 9 Dec 2011 20:52:35 +0100 Message-ID: <20111209205235.0d6bdbe1@endymion.delvare> References: <1323448314-8728-1-git-send-email-alexdeucher@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from services.gcu-squad.org (zone0.gcu-squad.org [212.85.147.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B7139E958 for ; Fri, 9 Dec 2011 11:52:46 -0800 (PST) In-Reply-To: <1323448314-8728-1-git-send-email-alexdeucher@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: alexdeucher@gmail.com Cc: Alex Deucher , stable@kernel.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Fri, 9 Dec 2011 11:31:54 -0500, alexdeucher@gmail.com wrote: > From: Alex Deucher > > We already do this for cayman, need to also do it for > BTC parts. The default memory and voltage setup is not > adequate for advanced operation. Continuing will > result in an unusable display. > > Signed-off-by: Alex Deucher > Cc: stable@kernel.org > Cc: Jean Delvare Thanks Alex. I tested this fix and it works to some degree, but it doesn't solve all the issues. What works: * No garbage on the screen. * X falls back to the vesa driver. What doesn't work: * No console messages displayed. * Trying to switch to a text console (e.g. Ctrl+Alt+F2) results in a permanent black screen, I couldn't return to X after that. So there must be some more integration work needed, probably not in the radeon driver but rather in the drm_fb layer. But anyway, the situation is definitely better with this patch than without, so it should be applied and go to stable trees too: Tested-by: Jean Delvare > --- > drivers/gpu/drm/radeon/evergreen.c | 12 ++++++++++++ > 1 files changed, 12 insertions(+), 0 deletions(-) > > diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c > index 3e8054c..93c0348 100644 > --- a/drivers/gpu/drm/radeon/evergreen.c > +++ b/drivers/gpu/drm/radeon/evergreen.c > @@ -3468,6 +3468,18 @@ int evergreen_init(struct radeon_device *rdev) > evergreen_pcie_gart_fini(rdev); > rdev->accel_working = false; > } > + > + /* Don't start up if the MC ucode is missing on BTC parts. > + * The default clocks and voltages before the MC ucode > + * is loaded are not suffient for advanced operations. > + */ > + if (ASIC_IS_DCE5(rdev)) { > + if (!rdev->mc_fw && !(rdev->flags & RADEON_IS_IGP)) { > + DRM_ERROR("radeon: MC ucode required for NI+.\n"); > + return -EINVAL; > + } > + } > + > return 0; > } > -- Jean Delvare