From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751421AbdBXPm2 (ORCPT ); Fri, 24 Feb 2017 10:42:28 -0500 Received: from mailoutvs4.siol.net ([213.250.19.137]:33609 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751249AbdBXPm0 (ORCPT ); Fri, 24 Feb 2017 10:42:26 -0500 From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Rob Herring Cc: Maxime Ripard , Icenowy Zheng , Chen-Yu Tsai , David Airlie , Jean-Francois Moine , linux-clk , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dri-devel , linux-sunxi Subject: Re: [PATCH 4/8] drm/sun4i: add support for sun8i DE2 mixers and display engines Date: Fri, 24 Feb 2017 16:30:17 +0100 Message-ID: <1634001.dRmL8h9ofd@jernej-laptop> In-Reply-To: References: <20170222152310.3719-5-icenowy@aosc.xyz> <20170222200947.3ikrhvv76ymfu5tv@lukather> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Dne petek, 24. februar 2017 ob 14:30:36 CET je Rob Herring napisal(a): > On Wed, Feb 22, 2017 at 2:09 PM, Maxime Ripard > > wrote: > > Hi, > > > > On Wed, Feb 22, 2017 at 11:23:06PM +0800, Icenowy Zheng wrote: > >> Allwinner have a new "Display Engine 2.0" in there new SoCs, which comes > >> in a new "Display Engine" (mixers instead of old backends and > >> frontends). > >> > >> Add support for the mixer on Allwinner V3s SoC; it's the simplest one. > >> > >> Signed-off-by: Icenowy Zheng > >> --- > > [...] > > >> diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c > >> b/drivers/gpu/drm/sun4i/sun8i_mixer.c new file mode 100644 > >> index 000000000000..9427b57240d3 > >> --- /dev/null > >> +++ b/drivers/gpu/drm/sun4i/sun8i_mixer.c > >> @@ -0,0 +1,417 @@ > >> +/* > >> + * Copyright (C) 2017 Icenowy Zheng > >> + * > >> + * Based on sun4i_backend.c, which is: > >> + * Copyright (C) 2015 Free Electrons > >> + * Copyright (C) 2015 NextThing Co > >> + * > >> + * This program is free software; you can redistribute it and/or > >> + * modify it under the terms of the GNU General Public License as > >> + * published by the Free Software Foundation; either version 2 of > >> + * the License, or (at your option) any later version. > >> + */ > >> + > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> + > >> +#include > >> +#include > >> +#include > >> + > >> +#include "sun8i_mixer.h" > >> +#include "sun4i_drv.h" > >> + > >> +#define SUN8I_DRAM_OFFSET 0x40000000 > > > > PHYS_OFFSET? > > PHYS_OFFSET is not portable. __pa(PAGE_OFFSET) instead. > > If your DMA addresses are different from CPU addresses (i.e. have some > offset), then use "dma-ranges" in DT. > > Rob That adjustment is not needed and should be removed. Such adjusment breaks DE on boards with 2 GiB of RAM. Regards, Jernej