Received: by 10.213.65.68 with SMTP id h4csp1715540imn; Mon, 19 Mar 2018 11:15:54 -0700 (PDT) X-Google-Smtp-Source: AG47ELsJ2ayehSuNqKSKz6VZ6AZ0to+RLgE4S4UrAza9saUW9JMkcCCcxB3spvb8b5i41vwfrIPd X-Received: by 2002:a17:902:d892:: with SMTP id b18-v6mr13604009plz.241.1521483354267; Mon, 19 Mar 2018 11:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521483354; cv=none; d=google.com; s=arc-20160816; b=xnhhosBq1gPwoVxfvU4A2+nGRvXFpVBkvFtt6kR3pTgUaPcmVaZG/ipJ2yXgLcAia1 OYbxa01pGCHxRYPgakdbt9j3fuYbBuOS0u+TTJWfpY7mEVStr57Mb+Sl9clklW2kGYgE OhjdIJqna9MBCYINFYpkJITfzlJ3BJQPnWoPmx4poPIJ4RQtXy2hzj+vo3k6q5l/WEcS yYFfDBagwOSh3jHhlayIFVEx9UNCuThW/wRLFGCVidzZeER6EXi+cLtAjgx2geyXCiHU bH6BUPwr7gim1qd8PytqoM6O6u4fJW1I7AAx0c9FRK/epN8Env7cF9Rv1TCYmr8aiNMR QRQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Jh46KTMCAJeOJq/n6EhoObJYCICHGLgkX9ZFQYRmx48=; b=SCIGs0Z0wTsMHTRbddeQCDmlvsUUowahBuk+UgofoxSqbfIdPhqrjdfBDaFMwjB9Zy WfWGg/srd3xFY47Yad/gu/An+A9c6KD4K2RxvRsbL1cIRI4+78/p10swEN/D9nmSvR13 BpSed6wz8YuLFDO9o06QBMAi/wDZV6B0nXDPYuHiL/g2iE4KbN4EjlXNVEsyazDt1BEb rJV/f5eKSjoeC8Ee+2/FaNx9YAPiHQgQKlWR4ie3h7cPgCInKJfqYJ3V6mHXtbhcIbkB 1HGKVCe2tv9aK6uMxlR4tRJObTDZcsvMkH6zTlTYIuo0iu9qK4z3GwcCdNy8toOYxd5i HRew== ARC-Authentication-Results: i=1; mx.google.com; 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 m10-v6si407918pln.595.2018.03.19.11.15.40; Mon, 19 Mar 2018 11:15:54 -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; 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 S968875AbeCSSO1 (ORCPT + 99 others); Mon, 19 Mar 2018 14:14:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44086 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030664AbeCSSOW (ORCPT ); Mon, 19 Mar 2018 14:14:22 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B1D68EFE; Mon, 19 Mar 2018 18:14:20 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liam Beguin , Sylvain Lemieux , Vladimir Zapolskiy , Russell King , Bartlomiej Zolnierkiewicz , Sasha Levin Subject: [PATCH 4.4 058/134] video: ARM CLCD: fix dma allocation size Date: Mon, 19 Mar 2018 19:05:41 +0100 Message-Id: <20180319171857.710685292@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Liam Beguin [ Upstream commit 9a1c779e6b06855e41099caa6f15b3b584dfa88c ] This patch forces the frambuffer size to be aligned on kernel pages. During the board startup, the splash screed did appear; the "ts_test" program or our application were not able to start. The following error message was reported: error: failed to map framebuffer device to memory. LinuxFB: driver cannot connect The issue was discovered, on the LPC32xx platform, during the migration of the LCD definition from the board file to the device tree. Signed-off-by: Liam Beguin Signed-off-by: Sylvain Lemieux Cc: Vladimir Zapolskiy Cc: Russell King Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/amba-clcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/video/fbdev/amba-clcd.c +++ b/drivers/video/fbdev/amba-clcd.c @@ -759,8 +759,8 @@ static int clcdfb_of_dma_setup(struct cl if (err) return err; - framesize = fb->panel->mode.xres * fb->panel->mode.yres * - fb->panel->bpp / 8; + framesize = PAGE_ALIGN(fb->panel->mode.xres * fb->panel->mode.yres * + fb->panel->bpp / 8); fb->fb.screen_base = dma_alloc_coherent(&fb->dev->dev, framesize, &dma, GFP_KERNEL); if (!fb->fb.screen_base)