Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3097676ybi; Thu, 18 Jul 2019 20:59:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAOF2f3/kWnXu9KLi0wz6ei+ZVqVqb4c6frMfywA/yk5MlbBHpaCdqapn8JcJX4cApWxzA X-Received: by 2002:a17:902:aa95:: with SMTP id d21mr52114796plr.185.1563508783547; Thu, 18 Jul 2019 20:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563508783; cv=none; d=google.com; s=arc-20160816; b=txEpZMYV6GEY79bl/rvCJ46Hzwsg1EKuLG3e6hWurvwVm4SgPxqTamp0nShYFeZ0uU WUqabTKV8TMfqMltiN95tRonvJXNSFOzPgowiTHSuxGF6Hy7V4RfwO3ydEpkGj0kRvHb c1lIFlimWwhAiBYAw34+6fF2z1tXcJrW8Bk9CqpJcpRYIaKnYIWmhGhVlCiEZjL3OFJY tu3O7jMe119T/TRPapTIsTIgZDrlpMryGMFhyAsIXNgCVIphfHZQqKloyISLvb3h2iIL oka/ML4ICNnI1AZXUoO9FQBrtEJ12TgLcIut3UgGEsmRjjGaxk/t3FVnfdJko5zLwOPI tv6w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OZI0h4qr01Z5/QxJvKzvj4DE1GdDB10F2FQeSiujmkI=; b=D8CV5I/kUw1X+bUzLZ7EKKII2lsk/SU2FXT0Zg/NO2WyxX6SnwKZPNlINnYIYATToI F7H0vN3OsQ7mc5VdJ/6gwwb3lE5skKYam/KMgpcSyoR4FJcZ9xPZ19oPP5zFeekWAvGS ElWenhvwHspn48QG1hqI93HbJUbUmr7/JUR7tskLAlVwTLSB1C6jKwjb51fivTa8Z9/z ogHyzIloqKe8NTTQVxFfIKU0h/bDtcPubmm8AxE5i9p4lM0R091oDtLCI9q0EXYFEZg9 f+it0V+EhVv7J6pfX3Gtnhu8+Hle9s+6EkFphcpmL+C2AuzxAlR5erIVrewsKrqrIwOK Hz5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BQ5HxR2N; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si2203985pls.69.2019.07.18.20.59.28; Thu, 18 Jul 2019 20:59:43 -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=BQ5HxR2N; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727365AbfGSD5c (ORCPT + 99 others); Thu, 18 Jul 2019 23:57:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:56716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727331AbfGSD52 (ORCPT ); Thu, 18 Jul 2019 23:57:28 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DD60F2082E; Fri, 19 Jul 2019 03:57:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563508647; bh=yEuq9qmtwlQ6EVFE9yGT/ICC0dbzEFSnl182tenkVHo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BQ5HxR2NCzkF2FnFF3WHVEpY/BmK3GTS4oxT1gjVF4bpXBWjxWNf77paiELhgchpz 6HNSOGB2Zp941KOD4iLflfWEi7EohtCIWpzDF83XJjxpskRXQIYPYhaL3q5MStUKoZ C8TLTlSvIURW7AejpVItLIMg+B2EVMglNiuh1ilY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nicholas Kazlauskas , Roman Li , Bhawanpreet Lakha , Alex Deucher , Sasha Levin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.2 018/171] drm/amd/display: Fill prescale_params->scale for RGB565 Date: Thu, 18 Jul 2019 23:54:09 -0400 Message-Id: <20190719035643.14300-18-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190719035643.14300-1-sashal@kernel.org> References: <20190719035643.14300-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicholas Kazlauskas [ 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