Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10433477ybi; Wed, 24 Jul 2019 23:07:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpiixos08rOB1c0YBwTScetFJjM19hHV7/ki1B8frG5N0wCmORiiMNUEuHEgRqg2k6lP4J X-Received: by 2002:a17:902:2a6b:: with SMTP id i98mr84580027plb.75.1564034873575; Wed, 24 Jul 2019 23:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564034873; cv=none; d=google.com; s=arc-20160816; b=ql3/g6wxw10vTJuVOGCphyLV/ACs6tBpnHeUZMdApbqXDBn2X+7t/iVtBP0JuhKtej B9bluW/3U3Rld8xf9dtw9t3v9y4AWU6LcAIQJBmNBMPn2BDfgbxn7DnUxSP6go3oG3xV GvrKk3GSX3uGdoS5wqaNOIVYMaluDHO+tyEnPEe6DmUcwJCYflToyInCT5P/z7DNcD1w lKqa3TdfUnAg+HDC8ZNmrB6t/pr1DiGmg3W1PzedpwPYb9eQ6xsvZLWtM2E2ayXFfKo7 LzEAVRr4fC0JZI6QoxsgWe1lwBkf2gAtruM4jp89Fa13/3jwJkaNvvi4LaABo1duWO+W zw7Q== 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=hM6u4i1pWIAwD+iIEMKyfv4YysvtaUffbG5Xh3AQ8VpAUol5mZaYzQbayvAlc8nrj3 8U/E8WNWTD3tIKjdgurYN0Iq0NsKYqnht/mtIMxEndDFulg+kZ6YrsRrHQIgYBUygvWU o9FDwt3TprI13vzntLtpj8ckBbzASHFjMIf/b2x+zWlZr4q9i7Eh8Smq+gpOdmaEYXEB /qoWIqupMDsPX3rM2zAZqIduSncZMsTkf0ZxnTmGJretRUYbAkv0TS+lCoz24yQewrAY x902qyODFw46iq+0+gC6wkELEmgdLvNBhZ7aslvJJDjwOpX7QkjlsFoFks7zHJO5P2g2 1jBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OD6qxEmd; 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 g31si16473943pld.8.2019.07.24.23.07.39; Wed, 24 Jul 2019 23:07:53 -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=OD6qxEmd; 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 S2387795AbfGYFqN (ORCPT + 99 others); Thu, 25 Jul 2019 01:46:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:33716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405319AbfGYFqK (ORCPT ); Thu, 25 Jul 2019 01:46:10 -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 D05C522BF3; Thu, 25 Jul 2019 05:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564033570; bh=CqM/3sez9hDpYLVaIcw1Q3PHotGioltshOsUtlzve/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OD6qxEmdggZdcMk/RuYadgQBfiKKSX2LfPqbeQm0iqjcJNqW94ttB76KpHqn5TV9q iQt1ketJ0pPCALv71Uqw3/UOcaRkB8O16yQACrSLm6k1mYFwZxH5XFa6oW9A5tz/W5 0QVVAsKsRJw+3egF6+6OGVQoKOotunCtHpwenZwM= 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.19 251/271] gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM Date: Wed, 24 Jul 2019 21:22:00 +0200 Message-Id: <20190724191716.694285664@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191655.268628197@linuxfoundation.org> References: <20190724191655.268628197@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) |