Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp850772ybi; Fri, 12 Jul 2019 05:41:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnnTTjvVno4spp7djsAciL7T7goAqq3kHUugFmf0rOl0iep0uOG5d5kbzJfXfzSn6pkp+o X-Received: by 2002:a17:90a:c58e:: with SMTP id l14mr11503567pjt.104.1562935317226; Fri, 12 Jul 2019 05:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562935317; cv=none; d=google.com; s=arc-20160816; b=ryZKV0VnVuJJ+brUiw1uGO/qtnkJEVANlO+7LlOE4w4T4NnzTFiV23A1Cw1XrFITFr 7nG+NXPvaMeC/peQp0S7QZkW8jAbMpWYhdPSXqF193DkpuoCPH3O1wtLMm8EL4fLLDea bcq2jgjsS3/w/DyJYLVLkDaea7OpuN5NOAAVoEKlgBXQpEpEonGUHtkKzPM03t1BJyRe 1fROkFc5VG7te0RKYQvf1akKC5pXXIt3lH7pRS/HtnqlTccOJbhybKOYe/d1IKgiELqD luAsFgx9sooq+kM+7u/rVD5s3fjB7QQMF8dt4ZDKiKoBgBTaHVrDW7bIrpowvCUngL1g 2Scw== 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=6Ed2KS8pM5QzCg888YeYa+Ft8zWumOuei5Oh3qQaS/4=; b=f3pOSbqiP4mel1WPK6q2O/Ptqccp2DSEvqHo283H3naJGn43ks6WOBocNqyIopgnEP PRyHHHwvFY4gLjwDueoWasFbzawvhS3EuvipKI2zP1jTd7pFhT32ipxprIhYevtWRNhz DTnUrSDIR/kfMylbYopEd0Dy8zfCq77Wz7ZRF3wibGZi2KW9nUNX634bU/q6hHGiyOaL AojedY2KEX4KJ8FC5xdHn1wREwGsvsYLvPyDHCPa+YZXAUS5MR1ohPE4vf5nDSeGfFrM Y/MiWJiSVSs3fkPgMF/hqlzrxrRGAjBEgOyGZT1P4IYR1ORAIlk5PoZWxNaQSDODiSZN i9vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TV4RC2Ao; 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 w3si8058799pgl.499.2019.07.12.05.41.41; Fri, 12 Jul 2019 05:41:57 -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=TV4RC2Ao; 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 S1728317AbfGLM12 (ORCPT + 99 others); Fri, 12 Jul 2019 08:27:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:39852 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726582AbfGLM10 (ORCPT ); Fri, 12 Jul 2019 08:27:26 -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 2E8C521670; Fri, 12 Jul 2019 12:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934444; bh=kS6jlmcfOV62aSYlSuRPkwC/U2Uh1K3KCN3XX9LHkoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TV4RC2AorHVPYJVltdPFcQkZ8uwe1+o7tGzUkbIvzzmGUHODhZsale56Wf3Y6YIHb pZ6NFCQ4u8rCjioZklsyG9KI0XNbnh8iCJ6Nf3CMJ4RqraSld+VEs6K+RBjT5JXOAA 0ae+YL9HJlmiAzLKhPpVpMWRtkb5T94os7PJ2dBA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bartosz Golaszewski , Sekhar Nori , Sasha Levin Subject: [PATCH 5.1 056/138] ARM: davinci: da8xx: specify dma_coherent_mask for lcdc Date: Fri, 12 Jul 2019 14:18:40 +0200 Message-Id: <20190712121630.821511892@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121628.731888964@linuxfoundation.org> References: <20190712121628.731888964@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 [ Upstream commit 68f2515bb31a664ba3e2bc1eb78dd9f529b10067 ] The lcdc device is missing the dma_coherent_mask definition causing the following warning on da850-evm: da8xx_lcdc da8xx_lcdc.0: found Sharp_LK043T1DG01 panel ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1 at kernel/dma/mapping.c:247 dma_alloc_attrs+0xc8/0x110 Modules linked in: CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.0-rc3-00077-g16d72dd4891f #18 Hardware name: DaVinci DA850/OMAP-L138/AM18x EVM [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [] (show_stack) from [] (__warn+0xec/0x114) [] (__warn) from [] (warn_slowpath_null+0x3c/0x48) [] (warn_slowpath_null) from [] (dma_alloc_attrs+0xc8/0x110) [] (dma_alloc_attrs) from [] (fb_probe+0x228/0x5a8) [] (fb_probe) from [] (platform_drv_probe+0x48/0x9c) [] (platform_drv_probe) from [] (really_probe+0x1d8/0x2d4) [] (really_probe) from [] (driver_probe_device+0x5c/0x168) [] (driver_probe_device) from [] (device_driver_attach+0x58/0x60) [] (device_driver_attach) from [] (__driver_attach+0x80/0xbc) [] (__driver_attach) from [] (bus_for_each_dev+0x64/0xb4) [] (bus_for_each_dev) from [] (bus_add_driver+0xe4/0x1d8) [] (bus_add_driver) from [] (driver_register+0x78/0x10c) [] (driver_register) from [] (do_one_initcall+0x48/0x1bc) [] (do_one_initcall) from [] (kernel_init_freeable+0x10c/0x1d8) [] (kernel_init_freeable) from [] (kernel_init+0x8/0xf4) [] (kernel_init) from [] (ret_from_fork+0x14/0x34) Exception stack(0xc6837fb0 to 0xc6837ff8) 7fa0: 00000000 00000000 00000000 00000000 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ---[ end trace 8a8073511be81dd2 ]--- Add a 32-bit mask to the platform device's definition. Signed-off-by: Bartosz Golaszewski Signed-off-by: Sekhar Nori Signed-off-by: Sasha Levin --- arch/arm/mach-davinci/devices-da8xx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index b8dc674e06bc..261240913b45 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c @@ -686,6 +686,9 @@ static struct platform_device da8xx_lcdc_device = { .id = 0, .num_resources = ARRAY_SIZE(da8xx_lcdc_resources), .resource = da8xx_lcdc_resources, + .dev = { + .coherent_dma_mask = DMA_BIT_MASK(32), + } }; int __init da8xx_register_lcdc(struct da8xx_lcdc_platform_data *pdata) -- 2.20.1