Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3812366ybi; Mon, 29 Jul 2019 13:06:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbw5KBbh0ba824INJyKIdWis3wMs0/gHzL2tpgzBpfxovtIASPns3eMjNvfhuO14Zvr4y/ X-Received: by 2002:a63:6f81:: with SMTP id k123mr107841057pgc.12.1564430806077; Mon, 29 Jul 2019 13:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564430806; cv=none; d=google.com; s=arc-20160816; b=wP6Ikryj5xqEnP4+xg0hIqXOJweCUM272sZcH3QZjZFu6ZXuKVuau+KizerQVf+H5s vjajWxUfVFdFw6tJAUeZdFWzWvZsO+CRxiPeKO2vDPTKYkL/LRcmO6k5lcUHWumjECHB NV1r4tTNVEoSAzUZdojpxQNOUrRuOv5sYRuYhle9ngIZoJXf3HI+Fyvr4RL94WXmTXiZ Xb57R7A9N/Y/gYOogFq3GRFP6OZwfKj0/soB+vWef6aT9gGqfLM84D9C7e041QjlI6t1 +5xd44m+8FESs8jbYQjnsUbD+JRLuwpttD0prcJ/GmCb8dVn+9FQVQ+555prS0nY+cNG BU6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WyG+ZdLrQ46kKD36ml3VzeU6Tm/7U00B/Iap2cJflao=; b=vFmrDtY007TGbcaMpuMoepXF7kZOKFESze4jOq8Yk3afcseay8KlKdUDWDBOF6voFi AMKnnIGzoZ5CQzBXNWpqj5TPrsujqcqmT4hziPG2rDA7tyXBMlAE9GY4BlMDozo1Y+8Q si3sS4CdC7lvLUS7koZ7sJqwM63EuWDHnOfa8aja7tOVkN/m8K7XhiYBkK8k4r5OF4Pt 2CcWLiJaEDlnLsDtJyeeKcYk0G1/yiHMl8/PS1g74XOZNrwI0Kze7qPmepHjdd1p2MrG wQOR97uFh4CpWP1DTvs4Oqfj2Z+KYsQ7Pi5vzsCgc6r/EEknhHFN2zFitBf6t+sl2i6L qSMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kYTDqltI; 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 n128si27601400pgn.82.2019.07.29.13.06.30; Mon, 29 Jul 2019 13:06:46 -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; dkim=pass header.i=@kernel.org header.s=default header.b=kYTDqltI; 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 S1729993AbfG2UEH (ORCPT + 99 others); Mon, 29 Jul 2019 16:04:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:34916 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390032AbfG2Tpx (ORCPT ); Mon, 29 Jul 2019 15:45:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E2AE12171F; Mon, 29 Jul 2019 19:45:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429552; bh=ZY24zMzUl487W9Xmc++d2mlHBn6l28pMRDTmBKYGDcA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kYTDqltIi04W86xvV6nXTkqTrJqgj/a/7Fk4rKXOwcISil7WlehuDbb7lHIVruReh TRiC6ekB0bmsGHq9KxrFlmOVb24MYwJkfeoI2msv3ZGOU/9NR8SIbI5LZOGrcSPwu4 2DCBGdmATRJjeJ9Wv31f3W+/l8dLPc4gcaCS2lRY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicholas Kazlauskas , Roman Li , Bhawanpreet Lakha , Alex Deucher , Sasha Levin Subject: [PATCH 5.2 020/215] drm/amd/display: Fill prescale_params->scale for RGB565 Date: Mon, 29 Jul 2019 21:20:16 +0200 Message-Id: <20190729190743.225595152@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 1352c779cb74d427f4150cbe779a2f7886f70cae ] [Why] An assertion is thrown when using SURFACE_PIXEL_FORMAT_GRPH_RGB565 formats on DCE since the prescale_params->scale wasn't being filled. Found by a dmesg-fail when running the igt@kms_plane@pixel-format-pipe-a-planes test on Baffin. [How] Fill in the scale parameter. Signed-off-by: Nicholas Kazlauskas Reviewed-by: Roman Li Acked-by: Bhawanpreet Lakha Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c index 7ac50ab1b762..7d7e93c87c28 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c @@ -242,6 +242,9 @@ static void build_prescale_params(struct ipp_prescale_params *prescale_params, prescale_params->mode = IPP_PRESCALE_MODE_FIXED_UNSIGNED; switch (plane_state->format) { + case SURFACE_PIXEL_FORMAT_GRPH_RGB565: + prescale_params->scale = 0x2082; + break; case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888: case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888: prescale_params->scale = 0x2020; -- 2.20.1