linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sui Jingfeng <15330273260@189.cn>
To: Lucas Stach <l.stach@pengutronix.de>,
	Russell King <linux+etnaviv@armlinux.org.uk>,
	Christian Gmeiner <christian.gmeiner@gmail.com>,
	David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
	Rob Herring <robh+dt@kernel.org>,
	Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>,
	Sam Ravnborg <sam@ravnborg.org>,
	Tiezhu Yang <yangtiezhu@loongson.cn>,
	Qing Zhang <zhangqing@loongson.cn>,
	Jinyang He <hejinyang@loongson.cn>,
	Jiaxun Yang <jiaxun.yang@flygoat.com>,
	Xiaochuan Mao <maoxiaochuan@loongson.cn>,
	zhaoxiao <zhaoxiao@uniontech.com>,
	suijingfeng <suijingfeng@loongson.cn>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
	etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	devicetree@vger.kernel.org
Subject: drm/etnaviv: add pci device driver support for gpu in LS7A1000 and LS2K1000
Date: Sat, 20 Nov 2021 15:59:22 +0800	[thread overview]
Message-ID: <20211120075926.2671-1-15330273260@189.cn> (raw)

  There is a Vivante GC1000 V5037 in LS2K1000 and LS7A1000,
  the gpu is a PCI device and it have 2D and 3D in the same core.
  Therefore, this patch try to provide PCI device driver wrapper
  for it by mimic the platform counterpart.

  LS7A1000 is a bridge chip, this bridge chip typically use
  with LS3A4000 (4 core 1.8gHz, Mips64r5) and LS3A5000 (4 core
  loongarch 2.5Ghz). While LS2K1000 is a double core 1.0Ghz
  Mips64r2 SoC.

  loongson CPU's cache coherency is maintained by the hardware.

  Both LS7A1000 and LS2K1000 have a display controller integrated,
  named lsdc. The drm driver of this display controller is not
  upstream yet, but we have a demo version and it works.
  By using KMS-RO framework, lsdc and gc1000 made a compatible pair.

suijingfeng (4):
  dt-bindings: ls2k1000: add gpu device node
  drm/etnaviv: add pci device driver support
  loongson3_defconfig: enable etnaviv drm driver on default
  loongson2_defconfig: enable etnaviv drm driver on default

 .../boot/dts/loongson/loongson64-2k1000.dtsi  |  11 +
 arch/mips/configs/loongson2k_defconfig        |   1 +
 arch/mips/configs/loongson3_defconfig         |   1 +
 drivers/gpu/drm/etnaviv/Kconfig               |  12 ++
 drivers/gpu/drm/etnaviv/Makefile              |   2 +
 drivers/gpu/drm/etnaviv/etnaviv_drv.c         | 113 +++++++---
 drivers/gpu/drm/etnaviv/etnaviv_drv.h         |   8 +
 drivers/gpu/drm/etnaviv/etnaviv_gem.c         |  28 ++-
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c         |  94 +++++---
 drivers/gpu/drm/etnaviv/etnaviv_gpu.h         |   6 +
 drivers/gpu/drm/etnaviv/etnaviv_pci_drv.c     | 203 ++++++++++++++++++
 include/uapi/drm/etnaviv_drm.h                |  11 +-
 12 files changed, 422 insertions(+), 68 deletions(-)
 create mode 100644 drivers/gpu/drm/etnaviv/etnaviv_pci_drv.c

-- 
2.20.1


             reply	other threads:[~2021-11-20  7:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-20  7:59 Sui Jingfeng [this message]
2021-11-20  7:59 ` [PATCH 1/4] dt-bindings: ls2k1000: add gpu device node Sui Jingfeng
2021-11-20  7:59 ` [PATCH 2/4] drm/etnaviv: add pci device driver support Sui Jingfeng
2021-11-20  7:59 ` [PATCH 3/4] loongson3_defconfig: enable etnaviv drm driver on default Sui Jingfeng
2021-11-20  7:59 ` [PATCH 4/4] loongson2_defconfig: " Sui Jingfeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211120075926.2671-1-15330273260@189.cn \
    --to=15330273260@189.cn \
    --cc=airlied@linux.ie \
    --cc=andrey.zhizhikin@leica-geosystems.com \
    --cc=christian.gmeiner@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=etnaviv@lists.freedesktop.org \
    --cc=hejinyang@loongson.cn \
    --cc=jiaxun.yang@flygoat.com \
    --cc=krzk@kernel.org \
    --cc=l.stach@pengutronix.de \
    --cc=linux+etnaviv@armlinux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=maoxiaochuan@loongson.cn \
    --cc=robh+dt@kernel.org \
    --cc=sam@ravnborg.org \
    --cc=suijingfeng@loongson.cn \
    --cc=tsbogend@alpha.franken.de \
    --cc=yangtiezhu@loongson.cn \
    --cc=zhangqing@loongson.cn \
    --cc=zhaoxiao@uniontech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).