Received: by 10.223.185.116 with SMTP id b49csp1086646wrg; Sat, 3 Mar 2018 15:10:43 -0800 (PST) X-Google-Smtp-Source: AG47ELtHxQQfcM3H2DvUeFKfhIvWgEhlEQ23udicDhgUqbseMUvMtagk4MWCHUFJSdDn5DsVtjJc X-Received: by 10.98.242.6 with SMTP id m6mr10279677pfh.230.1520118643197; Sat, 03 Mar 2018 15:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520118643; cv=none; d=google.com; s=arc-20160816; b=F62K8BAYbehBQDsVDuDoGpFTTtSGzvTY4uDGccOHFa/UBExPsXyCwdVJKSi2q35zcC 2WWQz4q+LjGmYnrVckccCheMXlbR6wtt7+a0cu5h6uQkvPouQ3X4cOLWQoBULRKNG0C5 m3ZpEH5jY6xeHKFZetztnmgJGHZ4qCVWfhOGDerpR4qxp2RdPUC8aoGYD+x9GRxMp4Cs FTvLLTEI9LpWG7v13ivkr4g2xX0M36Gc4jTFzWLOjunvm+EgPvNPzO4OTZRZ4P6MzQV1 wcIXlrLi5TKFys4xrlPndrRdsmrN5Z0d3plJLg6DyT4R4cj3Yb4WdsOXYkFRc6wPsj3B Wvlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=S0f+qTvCN6YfLN9wRBHManjzSjTWv+9nI7OMuajPrfo=; b=GTVRrtAnn/ipC34WGiEXqW3R32ZsreLInPU2L0QYq2kiOVHl1jRo9oE+Xxu/1aYa2Q zvmV4Uc3y5pTD55WQeJYhk7RVhsnQkcTFF+rQMxG2eLpftB/mGXd3qSvsHxGg6FASJBr C3r4GzhouMl2RGHDt4oUmc0UxMGJhM9W4JgxIfQTSJ7Xm90T4SezPbclI363FhE/KbO1 z5GhHEVUC+918hiD2lli11gSrTCn4a6zgqhNqzQR7TkM5EqZUzA4LB9Zpy8zP/PsiQ1B wCRCtFDVSIz+4j4nOYj8AbaarWJ7Jg33l8+vUhKR7KxuESxvodZYX9ODbmKh4Xj06J/n KNkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=i2blHvBI; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10-v6si3964221plq.458.2018.03.03.15.10.29; Sat, 03 Mar 2018 15:10: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=pass header.i=@microsoft.com header.s=selector1 header.b=i2blHvBI; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935351AbeCCXIq (ORCPT + 99 others); Sat, 3 Mar 2018 18:08:46 -0500 Received: from mail-co1nam03on0096.outbound.protection.outlook.com ([104.47.40.96]:45422 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934960AbeCCWjz (ORCPT ); Sat, 3 Mar 2018 17:39:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=S0f+qTvCN6YfLN9wRBHManjzSjTWv+9nI7OMuajPrfo=; b=i2blHvBIRky40bnZIcFbLBaHJ+wK380Le7h7SUmn1fZ4rhQfNwIGdC7fTU/PRNQgItOr21/hGvHxZs4Bi24usbT8Vvg8jm3w2PNGzuNSW/BNi9blxuICMQ5XbQ9u3UENHRoldw0NxoWfuO3Ph2hNAkl8WD/HQAEMuWubu2/L4e8= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MW2PR2101MB1113.namprd21.prod.outlook.com (52.132.149.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.588.1; Sat, 3 Mar 2018 22:39:53 +0000 Received: from MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0]) by MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0%3]) with mapi id 15.20.0567.006; Sat, 3 Mar 2018 22:39:53 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Liam Beguin , Sylvain Lemieux , Vladimir Zapolskiy , Russell King , Bartlomiej Zolnierkiewicz , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 063/115] video: ARM CLCD: fix dma allocation size Thread-Topic: [PATCH AUTOSEL for 4.4 063/115] video: ARM CLCD: fix dma allocation size Thread-Index: AQHTsz9d3MY32XLNe0OlWO8o7NRALw== Date: Sat, 3 Mar 2018 22:31:25 +0000 Message-ID: <20180303223010.27106-63-alexander.levin@microsoft.com> References: <20180303223010.27106-1-alexander.levin@microsoft.com> In-Reply-To: <20180303223010.27106-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MW2PR2101MB1113;7:vYuhiSHQ+3WdVUntuAZ/sEeO+mQSdaLxYXcfRoF53HeH/6tYvNlE9XKmubM0drfQU1fPoXDLfMEctyJ1lcpUkeOzzl/bDUIAm/THqhfkN1di8inRBKUNpOXsxvduoqqZFcqLtVH/aUyt9MdngFZ0qWejd4c5s+TVLB0wyqt8jhYuGJpDh2pj9SkDZAafy9Qp4reUi2/Ps46ObiJ/y1r+2G9mn/aPk6kIV1cAil3AwU/VVfdCH6JgAoAqAM5MCkDD x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d8441b9f-9a74-4831-8e7e-08d58157ae7d x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7193020);SRVR:MW2PR2101MB1113; x-ms-traffictypediagnostic: MW2PR2101MB1113: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(224015291044879)(21532816269658)(7411616537696); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(3231220)(944501244)(52105095)(10201501046)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:MW2PR2101MB1113;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB1113; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(366004)(346002)(39860400002)(396003)(376002)(199004)(189003)(68736007)(7736002)(10090500001)(6116002)(3846002)(1076002)(2906002)(5250100002)(6486002)(2501003)(6436002)(76176011)(86362001)(22452003)(6512007)(53936002)(66066001)(86612001)(99286004)(2900100001)(316002)(36756003)(54906003)(106356001)(110136005)(6506007)(102836004)(186003)(97736004)(26005)(6346003)(14454004)(3660700001)(8936002)(107886003)(10290500003)(5660300001)(81166006)(478600001)(3280700002)(105586002)(8676002)(81156014)(4326008)(72206003)(6666003)(2950100002)(305945005)(25786009)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB1113;H:MW2PR2101MB1034.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: V8UcyLUMgUKURe/8bj5iGxm/TGYlpZrnO3+toy9rupToAEKH1NRSGHsK93l6VpuH13/MRNDEQ9ElE/rcbJYYD25RLS/9bhYSHMNv4cGNhFuNbuDpI9onGuxsZmV5I4Oqp6vtEjb2fXiQKjLQpHQvsQLJKxHaWMPcLHTu1KgSb9I= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8441b9f-9a74-4831-8e7e-08d58157ae7d X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:31:25.4790 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB1113 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/video/fbdev/amba-clcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clc= d.c index 9362424c2340..924b3d6c3e9b 100644 --- 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 clcd_fb *fb) if (err) return err; =20 - framesize =3D fb->panel->mode.xres * fb->panel->mode.yres * - fb->panel->bpp / 8; + framesize =3D PAGE_ALIGN(fb->panel->mode.xres * fb->panel->mode.yres * + fb->panel->bpp / 8); fb->fb.screen_base =3D dma_alloc_coherent(&fb->dev->dev, framesize, &dma, GFP_KERNEL); if (!fb->fb.screen_base) --=20 2.14.1