Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17513619ybl; Thu, 2 Jan 2020 06:54:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxYWEeWNoQEUXgfDsg05nS3/r2xTjHtRz58FoEa4ht/t4JWocwp6vGQqA10scK1OPROt9s1 X-Received: by 2002:a05:6830:155a:: with SMTP id l26mr95052346otp.339.1577976883982; Thu, 02 Jan 2020 06:54:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577976883; cv=none; d=google.com; s=arc-20160816; b=juBsayIA8TCFVQcbPDdCWy4wg/wEBE2UhRYhNy7Pu8l003KCN3WQoOx52iOsnf+ihp +V2dgU/e7h4KvelmpgQAyXAWA987oHYYDWCq3yuss5xeCf+cp1DltRHjUf2e9EqBhgDh V2vePY6ngvSHq7AoxC3FLalnGs2W7d1Zit6//scCB6dcvRc3cYT2H/OJpD+yfuEJFKCE lCP32MHMrv35iP5A0/isP4z3WQdLrWEO2ynUGtmx9YR3M9WLoS7QCVZ6y6oH4/YfJ1r9 G7xEbv21iZ59sDHcfl5updUSFFKO/OZQJnP89KVL+Vn5wVRPMIb/Y1jjR/3ZPjzFLPWE aSoA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature; bh=OAnAY2vaA2S1dqxbsSKJAdvKdXR2aLsZd3RWqY191tg=; b=PyagWaL7eCJcYvnziDq62/9s9iQ2vC94C3Sq4hILetfNtqk5mmuVoyX68rB5o6xp37 UbR+ZZmoOymgxzLsH6OtxrSIVZ/E8ZjL+rl1L5l2Hh+6Aw63gBYJQk/NAmReESlfREoh ZWKFdemn6w5/DhVs9ULfZPJBlGX+TaWw4UOyoazjsQOeAqZtxoJQRdNBh2SWB8pocFOQ M/KmhUyjf5RWPvwa6k5kzTXeKV0BllkQUwDVu5V11CUXCUp+wyLegHQPN9+wjU5OZcZs PY0hx6JrIKZ5m+jnyHWpC3Zmr95+omaJOMVbAAN1KNtfAvjS1hMjXJ8PCVVov5YTnsPx Spwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds201912 header.b=FizrheWO; 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 f23si28249180oto.205.2020.01.02.06.54.31; Thu, 02 Jan 2020 06:54:43 -0800 (PST) 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=fail header.i=@tronnes.org header.s=ds201912 header.b=FizrheWO; 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 S1728560AbgABOwt (ORCPT + 99 others); Thu, 2 Jan 2020 09:52:49 -0500 Received: from smtp.domeneshop.no ([194.63.252.55]:39335 "EHLO smtp.domeneshop.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728528AbgABOwt (ORCPT ); Thu, 2 Jan 2020 09:52:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org ; s=ds201912; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OAnAY2vaA2S1dqxbsSKJAdvKdXR2aLsZd3RWqY191tg=; b=FizrheWOtuPgPxIwSY3pmaukdy qcfrcCXhyJ6PVkypQHNu5mFvM7XrDvPEzrrRKiP03hLsAO4G2L1HMc04Cs+33YWU69ig1HQEq7GYE VgAE5hlIs5s8Bb8B/SejLyUKV9MSeAKRNv9ip9q67BqI4tJ1kitg6OfFn91jLhphnhaAwjApOmuLc QY8lCXBNPPyLLstZX7rFpVPgvJHZMfZXrTF1X1uJQ2bhns7A9fXy+RNa0g/SPaBTyaREIBafz/D0v WPZceY2kEttZHY9NJvwcmHtHspH8Z+nSnudItDpyH92lAGSCTWE4ujempd9WWAn+juyKvfcmVH8C9 aDSiBFUQ==; Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:57723 helo=[192.168.10.61]) by smtp.domeneshop.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1in1qA-0005O0-Jf; Thu, 02 Jan 2020 15:52:46 +0100 Subject: Re: [PATCH] drm/mipi_dbi: Fix off-by-one bugs in mipi_dbi_blank() To: Geert Uytterhoeven , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter Cc: Thierry Reding , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191230130604.31006-1-geert+renesas@glider.be> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Message-ID: <4702e72d-b452-2f87-6c5c-f46321eb071a@tronnes.org> Date: Thu, 2 Jan 2020 15:52:40 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191230130604.31006-1-geert+renesas@glider.be> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 30.12.2019 14.06, skrev Geert Uytterhoeven: > When configuring the frame memory window, the last column and row > numbers are written to the column resp. page address registers. These > numbers are thus one less than the actual window width resp. height. > > While this is handled correctly in mipi_dbi_fb_dirty() since commit > 03ceb1c8dfd1e293 ("drm/tinydrm: Fix setting of the column/page end > addresses."), it is not in mipi_dbi_blank(). The latter still forgets > to subtract one when calculating the most significant bytes of the > column and row numbers, thus programming wrong values when the display > width or height is a multiple of 256. > > Fixes: 02dd95fe31693626 ("drm/tinydrm: Add MIPI DBI support") > Signed-off-by: Geert Uytterhoeven > --- Thanks, applied to drm-misc-next. Noralf.