Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4711223imu; Tue, 29 Jan 2019 06:19:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN4c47FB9vLSPRghcF0nVTaGqo45GWxKEyQ6t1dEkEo0RCexdsjnbr7yK1UJ04gcvdt2Enpb X-Received: by 2002:a17:902:8ec9:: with SMTP id x9mr26474176plo.27.1548771549064; Tue, 29 Jan 2019 06:19:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548771549; cv=none; d=google.com; s=arc-20160816; b=Jms0vnQQyo/sCELJeez5S9PUYW7VVQwYna3H5r6zWl9aUbZNTJTWdKH0myKF3Th5I0 3f847pmtlTsBQNKZnZ+nGss3MXlV41rqo8otnyrVoDpyeLOlDxo+ZEp32tIR+JegaWJU dY1yxITug9Z4pk/1bnZGHll3VWia5HBXnG/48/NHTemH9db2VaTUtAEFHa9EIO+y367/ yEg0tXFWZBr0Wsb0Qqyx3g+kimeWo72GYx9+Zoqn2enc+RiW31LI8+A4oCfsxk7yL+0r Dta8w17WI85K1FSl19+qNZ+KRZDfkqZCOvGjdQwlGBtAN02fcV830afa8HDWyNNsHEh+ fGkA== 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:date:cc:to:from:subject:message-id; bh=lrkKeDiplUz+7tE7ktmDgp8ap62C7UpOOkImBM5CoqU=; b=XtIhvAimCQ7alk64E0zHgX1vzRtMUQCfSPvJTbz6BdZsodYDSImRDZZUs+vcnCOL5e 3Pw+Rkd8qV6PLwtslJatdZNlPe/swwmOHaE615nLrXDyk1nRqOfs798afUeD43dI6KFH 7IHT3SGPjfG2OYxBtQvA3+pKPFRg5kz/mYuXqIVm5AyEIz7p4NqSUFiU7tXMCNS3+LME V0wkoxH8+Yirfsza7x++CJSlDlwug0J4VZRYgD4J4cUKdQ/2XHvwf6Z2Oh0Vvz4QuAWf +xsYrJvPOJwZ0mNnqMwQe3rlDoikjdUuMMFs0gJ93Ef7hJs5nx2OW3mmyX5U3FyqH2eq 2BAQ== 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 q64si33498228pga.280.2019.01.29.06.18.52; Tue, 29 Jan 2019 06:19:09 -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; 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 S1727773AbfA2OSR (ORCPT + 99 others); Tue, 29 Jan 2019 09:18:17 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:55857 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725811AbfA2OSR (ORCPT ); Tue, 29 Jan 2019 09:18:17 -0500 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1goUDJ-0003Cx-PE; Tue, 29 Jan 2019 15:18:09 +0100 Message-ID: <1548771487.6869.5.camel@pengutronix.de> Subject: Re: [PATCH] ARC: [plat-hsdk]: Add support of Vivante GPU From: Lucas Stach To: Eugeniy Paltsev , linux-snps-arc@lists.infradead.org, Vineet Gupta Cc: linux-kernel@vger.kernel.org, Alexey Brodkin , Rob Herring , devicetree@vger.kernel.org Date: Tue, 29 Jan 2019 15:18:07 +0100 In-Reply-To: <20190129124146.5398-1-Eugeniy.Paltsev@synopsys.com> References: <20190129124146.5398-1-Eugeniy.Paltsev@synopsys.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, den 29.01.2019, 15:41 +0300 schrieb Eugeniy Paltsev: > HSDK board has built-in Vivante GPU IP which works perfectly fine > with Etnaviv driver, so let's use it. > > > Signed-off-by: Eugeniy Paltsev > --- > NOTE: >  * this patch has prerequisite: >    https://patchwork.kernel.org/patch/10766265/ > >  arch/arc/boot/dts/hsdk.dts      | 6 ++++++ >  arch/arc/configs/hsdk_defconfig | 2 +- >  2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts > index 43f17b51ee89..ef892994f024 100644 > --- a/arch/arc/boot/dts/hsdk.dts > +++ b/arch/arc/boot/dts/hsdk.dts > @@ -237,6 +237,12 @@ > >   reg = <0>; > >   }; > >   }; > + > > > + gpu_3d: gpu@90000 { > > + compatible = "vivante,gc"; > > + reg = <0x90000 0x4000>; > + interrupts = <28>; Really no clock inputs? While the driver does not enforce this due to backward compatibility issues, the binding says that some of the clocks are mandatory. So I would really like to see them hooked up here, even if it's just fixed always-on clocks. Regards, Lucas > + }; > >   }; >   > >   memory@80000000 { > diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig > index 87b23b7fb781..915e1cca31f8 100644 > --- a/arch/arc/configs/hsdk_defconfig > +++ b/arch/arc/configs/hsdk_defconfig > @@ -52,6 +52,7 @@ CONFIG_GPIO_DWAPB=y >  CONFIG_DRM=y >  # CONFIG_DRM_FBDEV_EMULATION is not set >  CONFIG_DRM_UDL=y > +CONFIG_DRM_ETNAVIV=y >  CONFIG_FB=y >  CONFIG_FRAMEBUFFER_CONSOLE=y >  CONFIG_USB_EHCI_HCD=y > @@ -63,7 +64,6 @@ CONFIG_MMC=y >  CONFIG_MMC_SDHCI=y >  CONFIG_MMC_SDHCI_PLTFM=y >  CONFIG_MMC_DW=y > -# CONFIG_IOMMU_SUPPORT is not set >  CONFIG_EXT3_FS=y >  CONFIG_VFAT_FS=y >  CONFIG_TMPFS=y