From patchwork Thu Nov 7 20:17:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 178829 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1581565ilf; Thu, 7 Nov 2019 12:17:32 -0800 (PST) X-Google-Smtp-Source: APXvYqx5SAlh9ELZ5V5LU2fVcDz+3clXTz3j7CXbRmz+seNGBv6C+FGM76azKxDkvHVtSYegm3Tq X-Received: by 2002:a50:9254:: with SMTP id j20mr6181368eda.0.1573157852707; Thu, 07 Nov 2019 12:17:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573157852; cv=none; d=google.com; s=arc-20160816; b=NeNzlTTmXC05ECJ0gZ9Dxyv634/rkoX1XZwVnCQD4BbhIVdvr7/hPeBj5sMD4xmzPh gNlO/FDgtSP4ADbWS4cGH6+2F+FItDJ3bbhtv1U64oO06HNABGS6ghx1RJB7PF0yzFlF tbzJpE0UMRFe9STSBKtK0FZigSCI5bqgRuXKXscTOksOWKrseY7wKSjJovFwgEdzd/yG 5KR7xI4IJL1V8uAtzpjzF23K7QCFxClzcfZpI44Yq4F0MIb7k0LdrWS7PmQuPU5Nlfxe q5PV5UFgtuLOzrHx1ApikroGoEBEQPO1nV2S1+CCYyxbOxsFhZ9uPB7zXYLKm7tDxFgP +xEw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=T+zsluzS/T4QlV+amlXXzj5zuhGksPk6IuGM8tASFHM=; b=ZkWqMA+aVu59g9H4+3RQC564BGwY8mePQFHoWs3CkWlwvIBmUi+v7MQHENYvHmRgv5 Jmla/JVB3ppq4MhpqfUKcluFE3jkpdTZoQudAXXOZF6tyqrE+dmx8GQRIEJNBUtBsj2a GO89fEW5Yn8lzeoePkfCaBhsu2h58sZoBAnTYt4OMd7mO+/qoM8f0qbECbYPdL31KJlf 4TKxubJUpFy+7i6R6mvxigg3FzsI3NBn0BXJfyAO5QkVa76yW9/e/gTxhMt7Medo49lF g3nqye+NRlh6/yAfttkOFt+fnVd6++CjVOo4J5WIGm0+6pD9lVVVogEjrFoogv7fsyXI e4QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J69UedwD; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si2137345ejb.49.2019.11.07.12.17.32; Thu, 07 Nov 2019 12:17:32 -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=@linaro.org header.s=google header.b=J69UedwD; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727458AbfKGURa (ORCPT + 26 others); Thu, 7 Nov 2019 15:17:30 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33176 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbfKGURP (ORCPT ); Thu, 7 Nov 2019 15:17:15 -0500 Received: by mail-wm1-f66.google.com with SMTP id a17so4944470wmb.0 for ; Thu, 07 Nov 2019 12:17:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=T+zsluzS/T4QlV+amlXXzj5zuhGksPk6IuGM8tASFHM=; b=J69UedwDH6qm/d/QY5IaFKnLBYOqIVP0y9qtbza0hVQLaDDn7dW1HHq4iXHHLyTBzl JzG4DDQFjUi576WuidaONs8q5hxghV9y8rlC42ZmP9n2OsIwUVPwixWPTssgCO9YMvNy AoesUy4qA7O2zzgNtS25nLDcg1ZDEzqVmwEcYnC2AkDw90FIdravTeMVzm1qhn9Zy+0D y26p6Cw4cEHXgX+8uwo6/w9xkh8XeGuJ89KNrHujCwCo6q0GNXGbht7l32zcYBNKClYn LAVreQ2L6G19/YDVCyUnvStjOXvozavkSHR25B5mQYDeV6Cpt/k5Jlbte9FkaUBo8n5O QoIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=T+zsluzS/T4QlV+amlXXzj5zuhGksPk6IuGM8tASFHM=; b=GvsB+0bthF0azLPug3IM6nkmWItGojnROsxmq2ayqjin+BgL3r8FLwhrXK/+Deuyfz icviSc+PNiuWlg11C3++HJdY9VZGffSSgZZYDe90h9b2vBCLOP5R78wouEwMXFLXMDVI LvJknm2ZA0xp6Ub8VQei74ZZ/r1oAs9UnPnsCW3G13c5sTjkwULjKqWEw6XRqHiJlfnU LbdJ/6jWg1WqXdiUNyDiG2v3cWRX8axGP+Arly2KN+55WkEx96a7oBEWIUg8VI0DEKuU z3d2xL8jgFtphejfSC+C5AqeNqFZ+YEYKGHSRcctzgYVNRV3ESys3v432tkEJ8bzPqFw shVg== X-Gm-Message-State: APjAAAXBHaVxgmzudg1lPeyT/CFl0LctFxD0Gv66iZ+cOs7M5uU/m47i CkZZH/pJeUoOZytAp/VCs1TQGA== X-Received: by 2002:a1c:2155:: with SMTP id h82mr4601632wmh.94.1573157834195; Thu, 07 Nov 2019 12:17:14 -0800 (PST) Received: from localhost.localdomain ([95.147.198.88]) by smtp.gmail.com with ESMTPSA id d11sm3215162wrn.28.2019.11.07.12.17.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 12:17:13 -0800 (PST) From: Lee Jones To: gregkh@google.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Sekhar Nori , Sasha Levin , Lee Jones Subject: [PATCH 09/10] ARM: davinci: da8xx: specify dma_coherent_mask for lcdc Date: Thu, 7 Nov 2019 20:17:01 +0000 Message-Id: <20191107201702.27023-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191107201702.27023-1-lee.jones@linaro.org> References: <20191107201702.27023-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski [ 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 Signed-off-by: Lee Jones Change-Id: I835e72dbeb9ded2ffc7be0561f8f3544c3cc29ed --- arch/arm/mach-davinci/devices-da8xx.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.24.0 diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index e83874ba6e6d..49716ba0bbb1 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c @@ -626,6 +626,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)