Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10407594ybi; Wed, 24 Jul 2019 22:40:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsa803wpRRQuaLDkSO9KYc5Ezo/Kc9H/dYuHZsOhI/+GvmnaJ8rCAijPzQcUWRvbM4nHMf X-Received: by 2002:a17:90a:3247:: with SMTP id k65mr47802972pjb.49.1564033208725; Wed, 24 Jul 2019 22:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564033208; cv=none; d=google.com; s=arc-20160816; b=SzjAQZ6zpranhCQLZPfg9hxtdXbrjRui2r1UYA4/Q/lDBsXOZsRw4SiUbzxouYOffv /jkRYVlIKlZrtWgad4mUaTW2+ep7wjc5c94ahExoadoTFjAIl0QhAF0g8C2PGDHODdef c7D4MpHTgqswvOB58Ka1JcWwN90WFxpGsU8OS2KugLIzBjjAi4YJANvtZ2YnkzbDHkGP iAiULzJXIH9zzQQUOPZQdgnHj+PY5zPlaTDxQtizL0PwcRGvdRQlokRveNDp3s1fMQH7 Vt3MB0u0zRsr3klAjTAjnA1KVX390gsO9p8jiW2BIIafFpn7tFs0hT29pShm360Xq/pC 0KaA== 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=TwZ1ju7ZHmXIg0rvbVGfkEaRxhdcBr7MwIavE2pjcec=; b=uHxj2YRKFvRteiJ9mDgLT9udXQc5UG5529yUmlMMGo8Zhif/yTgzWqYBEZPvmbPzUO VoKKlAV+HTajSwj5A0LW9ZRdYOQHyP+eR6k4rcJQsQDhX4tDSI5dR1fr8AQslxzZ/YLE E1HUIC8OWj2Ti9mHJuOid2/UnDEPrvon8aMGfRypMv/4TTMVHnGVz5N8LI1Lr/6xEAs/ r/gNj83bJjY/I3vQEzlHoEqlRG8x7HmYHwaXo6ixT/5Z3odNQpbUBMPk7LnSK9cIcsPq reSzLCmnNroLxI7tVAJkg/LddmTZcvNhqL5TLoN+eRwGVHNT+VV8aRpywhJCbm79WE8i qsgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1PEk1Wlb; 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 u1si14325517plb.234.2019.07.24.22.39.53; Wed, 24 Jul 2019 22:40:08 -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=1PEk1Wlb; 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 S2405351AbfGXUBK (ORCPT + 99 others); Wed, 24 Jul 2019 16:01:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:49658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391853AbfGXUBH (ORCPT ); Wed, 24 Jul 2019 16:01:07 -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 30B0F206BA; Wed, 24 Jul 2019 20:01:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563998466; bh=CqM/3sez9hDpYLVaIcw1Q3PHotGioltshOsUtlzve/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1PEk1Wlb73wMRPM5gNw34rOlPGRQe78bz/b4eIA9Mx/4WVVaIthe1dv59qe5R+wPC dw0HXEfRAAm0bz36EKs8pGYLjWg27cdWIOyH62LqeEnybHe2NSfytjbZJuXjPxXN+6 dUaLbqPvBgpVr7pnLNgXgDJU7ZQy9kh6MR9htdL4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Steve Longerbeam , Philipp Zabel Subject: [PATCH 5.1 346/371] gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM Date: Wed, 24 Jul 2019 21:21:38 +0200 Message-Id: <20190724191749.725185400@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191724.382593077@linuxfoundation.org> References: <20190724191724.382593077@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 @@ -257,7 +257,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) |