Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3785428ybi; Mon, 29 Jul 2019 12:34:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzF0tsRAPKQbGDvpqnmNVkq3oW+cv8uUVkCa1r+zxvaKPzYFwN0f2CTl+0ml63G0FoM1oQO X-Received: by 2002:a17:902:7782:: with SMTP id o2mr28204306pll.12.1564428890777; Mon, 29 Jul 2019 12:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564428890; cv=none; d=google.com; s=arc-20160816; b=Z5RYUyCo3f5mS6fulM9XL5Vf2ZE/Lfh6/SzciswadiwAPIVcqoNHWP6AfBg2G14mU9 7noQ0OZ08DR7LPcVyB7I8SLlKz80TocCxB1I3FBNpqeTcZknvMkPp7nRewdhIn9RLW8Y epWyorsQKdkuQwxz41lUQFETFlAMMWiZ7Tl+B6sHbEukGrl5qdM3rcn6M1booJ7Qwgwo U5lfcZmV+1St0V3FMLzdGb8+/PY4YWNsh/UqK5jYbCkpZcP23MdEUp1IJACG5kV0k4Cv 6J7YAGwsE7GepQ7cA5RbTARPsGujiKZ2BSTOgUpBsjSrNdU1dWgnYhYpI5rfGyXOHzs/ q29Q== 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=JFivqJPIpmPowQGYnW/+yL9Db9mPlKQoKOyYY/HX6VM=; b=mNCM8qGA0eat3VB8rNZBozwEpakpqvO5A3lv40lAy6S/mEU7J9dcQxOJ1bMivMChHm paJZubg9dGXJ76Vt8Jg6jlBB1BwIpp/WWe2RiwxbIDGiBeSaafQ3Vo/Imy3Pv1rAK4Q8 XQNBl+1B815lNJRCyYD0ceyfZsTOdvZzjEmui6w23A7g4pm/VhtSUEFif07LKcm95wgc PRZIHOokMhmCqdd+JCe/5gazMR3n4a6Z+NaF5YYAmTLLDhAGLj5Um1Uy84JS373rDijO xmz6s2hbYjvPJJZjW7SgDd7hpSvQqnUxgBSw26PlJldmYlyRrqLypDhcKyEPjacgdS65 QRbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PTKspnlv; 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 d34si26470368pld.54.2019.07.29.12.34.35; Mon, 29 Jul 2019 12:34:50 -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=PTKspnlv; 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 S1730205AbfG2TcC (ORCPT + 99 others); Mon, 29 Jul 2019 15:32:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:45058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730202AbfG2Tb6 (ORCPT ); Mon, 29 Jul 2019 15:31:58 -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 BB10F21773; Mon, 29 Jul 2019 19:31:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564428717; bh=6EyA4BUqKDgjHynT9MTmCSzzqmkbv0iQoAtfbugv96Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PTKspnlvZrVy8k04dQrJs4Ycg0V508YJY0XOs6F0nmM8LGLCUfGOnSrXCIlOglKCE lwcCmfMGVZ49S6fkXGG5E+790u5Md34tIYofaWPwPBKZtqP5ILWNgnPMG8sp0LPNVe Cj2cqfaSglx5KCyvP02uo+usX8PLK/WkVPqYtc5g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Steve Longerbeam , Philipp Zabel Subject: [PATCH 4.14 164/293] gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM Date: Mon, 29 Jul 2019 21:20:55 +0200 Message-Id: <20190729190837.128133198@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@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 From: Steve Longerbeam commit 3d1f62c686acdedf5ed9642b763f3808d6a47d1e upstream. The saturation bit was being set at bit 9 in the second 32-bit word of the TPMEM CSC. This isn't correct, the saturation bit is bit 42, which is bit 10 of the second word. Fixes: 1aa8ea0d2bd5d ("gpu: ipu-v3: Add Image Converter unit") Signed-off-by: Steve Longerbeam Reviewed-by: Philipp Zabel Cc: stable@vger.kernel.org Signed-off-by: Philipp Zabel Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/ipu-v3/ipu-ic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/ipu-v3/ipu-ic.c +++ b/drivers/gpu/ipu-v3/ipu-ic.c @@ -256,7 +256,7 @@ static int init_csc(struct ipu_ic *ic, writel(param, base++); param = ((a[0] & 0x1fe0) >> 5) | (params->scale << 8) | - (params->sat << 9); + (params->sat << 10); writel(param, base++); param = ((a[1] & 0x1f) << 27) | ((c[0][1] & 0x1ff) << 18) |