From patchwork Fri Mar 2 09:09:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 130492 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1049618lja; Fri, 2 Mar 2018 01:10:28 -0800 (PST) X-Google-Smtp-Source: AG47ELt7ba304DUtyqWlBNYgDQyTugngNX5/bAUtzjMqgKeZtJVK7vBIxbEkIwANAatojOys2oK1 X-Received: by 2002:a17:902:506:: with SMTP id 6-v6mr4761211plf.365.1519981828452; Fri, 02 Mar 2018 01:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519981828; cv=none; d=google.com; s=arc-20160816; b=dS4v+zg2aztbQMSUdygaqd6dP78kUkGkUBVbZOEZ0r6lTYCAinWekOwxbmNIBLvSXl SHM7P6whpSl5zmSwSG+T8tzrT6qdrc+unKTNrOP9b+bsojSvjVYztiEVxnEo1+175xST j/SVSB8ZlfGy00tOrJwNVlMlSnqIDGFfLu5MCIUHJbc1mnyYss/htb9NfATGwAzz9HTV 3F0W8L12SIgA7ziieWTSCTxz+GsRaPO91mSkDuIZc1O9/o3W68f/8p0COp/HypyDNimE 49opdvzHhaSqaQyNpt5IWuhWwNgHF2MZtpy+zZkHaeWAzJfbnuPqs+BR3FiHT1EUOuFV KlcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=W9wNSlwTbYRH/izHvs0kAzoyFxstDqxn33Biv4+arTc=; b=xbwuX8SRQFD1P2H6OmoDO3MKcMwyZmIIs883NWJPf5bUchu8cYwpiAFayI+E/lPAK+ 4Wt9eXRx605tiEUPtThQ3eWhkX5FUOIKA6Hlmq5VlBvXZo+lQgoQcJEEQAYUWDMxeokf zqFdTHYPBJK0b7lOi/MjIJYjvY/zwnoaQFKbFqfpmO+Wu0VthU3DsWDN/Z22+XFtYkjH 8ZGvyLC0n6PRBAfmKOHOZSUHytTplzr2V8DtlZpqg07nzT4U3vN9LykxbwpXJ0M54CkB WVst/ZUVquLvR319LoyLnGW17DjxKGa/EggG0ULJc6PIYu/CGK8azv9g63CvqIQ/Olmx 1jrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HTAfHDdy; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id t11-v6si4506670plr.411.2018.03.02.01.10.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Mar 2018 01:10:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HTAfHDdy; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4CD9E6EE32; Fri, 2 Mar 2018 09:09:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 77CB46EE32 for ; Fri, 2 Mar 2018 09:09:55 +0000 (UTC) Received: by mail-lf0-x244.google.com with SMTP id y19so12360596lfd.4 for ; Fri, 02 Mar 2018 01:09:55 -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; bh=tQEPmrefeKb+vV1tictxhFlkBZX3jwLjK5mMKED+TmY=; b=HTAfHDdy+CgvS28hwwc+ZTCJFVp2MblwDWmZGeCc4vs1fbVLz3ZqOq3AFa8NW0nLPF 2eN9S6mUWI4qdSBJae3C9QCAThMWLImDRPTTqB0eevRgP2FpxL2hImuvnIe6jtjsb6ya 9kmumTvBHi1rYpsItPSmrNy7DDqNl82OomX5g= 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; bh=tQEPmrefeKb+vV1tictxhFlkBZX3jwLjK5mMKED+TmY=; b=Ivjq5siW8r+2N07pPArXm99jJmjn4beVVmDrQJ6APSwDjpjFBAz9EbW2R4OtLcZi2e RyIj4JK+Lu9NAASAYGap/+iXOQ3JGuaPaUKYV5HmBn8TD4gUYNwuq+qSI6vhDC9svPfK guTeQK7NFFZ7sK9k68pfMnrcmLA0R1oQz79b3fEzJdZb69GgPD+ie5H6W+JF885ZLhKo psnjkL2zja6jboG8Wv61bpc7a5efJDqaAm3ybH+U7b0sxFFob+dvCijbWeO8Gg3XOTOc a9+d+iyNZsLjolneOn0BdVBYYdKw76RcFOR8+ZDEXm7i/1T4MD6J4+2si2Ypxy0+mwcS IfUw== X-Gm-Message-State: APf1xPCDNzPcTXEGz+FkZO/gHXswc32vFFetJfrEv4D3xKbd6XYxo0TC M7j2xkRJvdpqBs/eouBQDi0YPg== X-Received: by 10.46.29.23 with SMTP id d23mr3355875ljd.7.1519981793800; Fri, 02 Mar 2018 01:09:53 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id c63sm1242729lfg.82.2018.03.02.01.09.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Mar 2018 01:09:52 -0800 (PST) From: Linus Walleij To: Daniel Vetter , Jani Nikula , Sean Paul , Eric Anholt , Liviu Dudau Subject: [PATCH 0/4] drm/pl111: RealView and Versatile Express Date: Fri, 2 Mar 2018 10:09:44 +0100 Message-Id: <20180302090948.6399-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is the base for finally getting RealView and Versatile Express supported in the PL111 DRM driver. We have then moved all the way up from the first ARM Integrator versions to the last Versatile Express reference designs using PL111. After this, forked hardware such as Nomadik and SPEAr remains to be moved over. Some infrastructure for adjusting depth (ARGB5551) etc on the Integrator and some bridge fixups are still needed but this is the core of the support for these platforms and the rest can be done on top before switching over. Also the Versatile Express CLCD on the motherboard has a dedicated video memory, and cannot use CMA (ha! complex!) and I will need to figure out a way to work around that. The CLCDs synthesized on the core tiles for CA9 work fine with this though. Linus Walleij (4): drm/pl111: Make the default BPP a per-variant variable drm/pl111: Use max memory bandwidth for resolution drm/pl111: Handle the RealView variant separately drm/pl111: Support the Versatile Express drivers/gpu/drm/pl111/Makefile | 1 + drivers/gpu/drm/pl111/pl111_display.c | 36 +++++++++++ drivers/gpu/drm/pl111/pl111_drm.h | 6 +- drivers/gpu/drm/pl111/pl111_drv.c | 10 ++- drivers/gpu/drm/pl111/pl111_versatile.c | 80 +++++++++++++++++++++++- drivers/gpu/drm/pl111/pl111_vexpress.c | 106 ++++++++++++++++++++++++++++++++ drivers/gpu/drm/pl111/pl111_vexpress.h | 22 +++++++ 7 files changed, 258 insertions(+), 3 deletions(-) create mode 100644 drivers/gpu/drm/pl111/pl111_vexpress.c create mode 100644 drivers/gpu/drm/pl111/pl111_vexpress.h