mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] drm/panthor: Add GPU specific initialization and feature detection
@ 2024-12-19 17:05 Karunika Choo
  2024-12-19 17:05 ` [RFC PATCH 1/4] drm/panthor: Add 64-bit register accessors Karunika Choo
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Karunika Choo @ 2024-12-19 17:05 UTC (permalink / raw)
  To: dri-devel
  Cc: nd, Boris Brezillon, Steven Price, Liviu Dudau,
	Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Simona Vetter, linux-kernel

This patchset attempts to define a HW abstraction framework with the
hopes of standardizing and simplifying the bring up of subsequent Mali
GPU support.

It provides abstractions to handle GPU register and register set changes,
IRQ name changes, and functional changes of subsequent GPUs based on the
architecture ID (comprised of arch_major, arch_minor and arch_rev), in
addition to arch-based feature detection.

Patch 1/4 adds 64-bit GPU register accessors with the intention of
simplifying a number of HW operations throughout the driver.

Patch 2/4 prepares the foundation for the HW abstraction layer by
providing parsing of the GPU_ID register to compose the architecture ID.
It also reduces the recurring use of MACROS throughout the driver to
parse stored register values, instead only parsing them once on
initialization while providing a common structure to access the parsed
properties.

Patch 3/4 implements the GPU specific initialization framework.

Patch 4/4 provides an example of feature detection by performing cache
flushes via the GPU_COMMAND register in place of the AS_COMMAND register
when a feature bit ise set.

Karunika Choo (4):
  drm/panthor: Add 64-bit register accessors
  drm/panthor: Add parsed gpu properties
  drm/panthor: Add gpu specific initialization framework
  drm/panthor: Use GPU_COMMAND.FLUSH_CACHES for cache maintenance

 drivers/gpu/drm/panthor/Makefile         |   2 +
 drivers/gpu/drm/panthor/panthor_device.c |  23 +-
 drivers/gpu/drm/panthor/panthor_device.h |  32 ++-
 drivers/gpu/drm/panthor/panthor_fw.c     |  31 ++-
 drivers/gpu/drm/panthor/panthor_gpu.c    | 274 +++++------------------
 drivers/gpu/drm/panthor/panthor_gpu.h    |   1 +
 drivers/gpu/drm/panthor/panthor_heap.c   |   6 +-
 drivers/gpu/drm/panthor/panthor_hw.c     |  97 ++++++++
 drivers/gpu/drm/panthor/panthor_hw.h     |  96 ++++++++
 drivers/gpu/drm/panthor/panthor_mmu.c    | 118 ++++++----
 drivers/gpu/drm/panthor/panthor_props.c  | 151 +++++++++++++
 drivers/gpu/drm/panthor/panthor_props.h  |  70 ++++++
 drivers/gpu/drm/panthor/panthor_regs.h   | 114 +++++++---
 drivers/gpu/drm/panthor/panthor_sched.c  |   7 +-
 14 files changed, 702 insertions(+), 320 deletions(-)
 create mode 100644 drivers/gpu/drm/panthor/panthor_hw.c
 create mode 100644 drivers/gpu/drm/panthor/panthor_hw.h
 create mode 100644 drivers/gpu/drm/panthor/panthor_props.c
 create mode 100644 drivers/gpu/drm/panthor/panthor_props.h

-- 
2.47.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-12-23 17:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-19 17:05 [RFC PATCH 0/4] drm/panthor: Add GPU specific initialization and feature detection Karunika Choo
2024-12-19 17:05 ` [RFC PATCH 1/4] drm/panthor: Add 64-bit register accessors Karunika Choo
2024-12-23 17:06   ` Steven Price
2024-12-19 17:05 ` [RFC PATCH 2/4] drm/panthor: Add parsed gpu properties Karunika Choo
2024-12-23 16:55   ` Steven Price
2024-12-19 17:05 ` [RFC PATCH 3/4] drm/panthor: Add gpu specific initialization framework Karunika Choo
2024-12-23 17:02   ` Steven Price
2024-12-19 17:05 ` [RFC PATCH 4/4] drm/panthor: Use GPU_COMMAND.FLUSH_CACHES for cache maintenance Karunika Choo
2024-12-23 17:05   ` Steven Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®