public inbox for linux-arm-msm@vger.kernel.org
 help / color / mirror / Atom feed
From: Connor Abbott <cwabbott0@gmail.com>
To: Rob Clark <robdclark@gmail.com>,
	Abhinav Kumar <quic_abhinavk@quicinc.com>,
	Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
	Sean Paul <sean@poorly.run>,
	Marijn Suijten <marijn.suijten@somainline.org>,
	linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org
Cc: Connor Abbott <cwabbott0@gmail.com>
Subject: [PATCH 5/6] drm/msm: Add MSM_PARAM_RAYTRACING uapi
Date: Thu, 25 Apr 2024 14:43:53 +0100	[thread overview]
Message-ID: <20240425134354.1233862-6-cwabbott0@gmail.com> (raw)
In-Reply-To: <20240425134354.1233862-1-cwabbott0@gmail.com>

Expose the value of the software fuse to userspace.

Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
---
 drivers/gpu/drm/msm/adreno/adreno_gpu.c | 3 +++
 include/uapi/drm/msm_drm.h              | 1 +
 2 files changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/drm/msm/adreno/adreno_gpu.c
index 074fb498706f..99ad651857b2 100644
--- a/drivers/gpu/drm/msm/adreno/adreno_gpu.c
+++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.c
@@ -376,6 +376,9 @@ int adreno_get_param(struct msm_gpu *gpu, struct msm_file_private *ctx,
 	case MSM_PARAM_HIGHEST_BANK_BIT:
 		*value = adreno_gpu->ubwc_config.highest_bank_bit;
 		return 0;
+	case MSM_PARAM_RAYTRACING:
+		*value = adreno_gpu->has_ray_tracing;
+		return 0;
 	default:
 		DBG("%s: invalid param: %u", gpu->name, param);
 		return -EINVAL;
diff --git a/include/uapi/drm/msm_drm.h b/include/uapi/drm/msm_drm.h
index d8a6b3472760..3fca72f73861 100644
--- a/include/uapi/drm/msm_drm.h
+++ b/include/uapi/drm/msm_drm.h
@@ -87,6 +87,7 @@ struct drm_msm_timespec {
 #define MSM_PARAM_VA_START   0x0e  /* RO: start of valid GPU iova range */
 #define MSM_PARAM_VA_SIZE    0x0f  /* RO: size of valid GPU iova range (bytes) */
 #define MSM_PARAM_HIGHEST_BANK_BIT 0x10 /* RO */
+#define MSM_PARAM_RAYTRACING 0x11 /* RO */
 
 /* For backwards compat.  The original support for preemption was based on
  * a single ring per priority level so # of priority levels equals the #
-- 
2.31.1


  parent reply	other threads:[~2024-04-25 13:44 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-25 13:43 [PATCH 0/6] drm/msm: Support a750 "software fuse" for raytracing Connor Abbott
2024-04-25 13:43 ` [PATCH 1/6] arm64: dts: qcom: sm8650: Fix GPU cx_mem size Connor Abbott
2024-04-25 13:43 ` [PATCH 3/6] drm/msm: Update a6xx registers Connor Abbott
2024-04-25 13:43 ` [PATCH 4/6] drm/msm/a7xx: Initialize a750 "software fuse" Connor Abbott
2024-04-25 23:02   ` Dmitry Baryshkov
2024-04-26 12:35     ` Connor Abbott
2024-04-26 12:54       ` Connor Abbott
2024-04-26 13:37         ` Dmitry Baryshkov
2024-04-26 13:31       ` Dmitry Baryshkov
2024-04-26 14:05         ` Connor Abbott
2024-04-26 14:53           ` Dmitry Baryshkov
2024-04-26 15:08             ` Connor Abbott
2024-04-26 15:24               ` Dmitry Baryshkov
2024-04-26 15:36                 ` Connor Abbott
2024-04-26 15:38                   ` Dmitry Baryshkov
2024-04-26 16:02                 ` Rob Clark
2024-04-26 12:45     ` Rob Clark
2024-04-26 13:28       ` Dmitry Baryshkov
2024-04-25 13:43 ` Connor Abbott [this message]
2024-04-25 23:03   ` [PATCH 5/6] drm/msm: Add MSM_PARAM_RAYTRACING uapi Dmitry Baryshkov
2024-04-25 13:43 ` [PATCH 6/6] drm/msm/a7xx: Add missing register writes from downstream Connor Abbott
2024-04-25 15:03 ` [PATCH 0/6] drm/msm: Support a750 "software fuse" for raytracing Dmitry Baryshkov
2024-04-25 15:13 ` [PATCH 2/6] firmware: qcom_scm: Add gpu_init_regs call Connor Abbott

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=20240425134354.1233862-6-cwabbott0@gmail.com \
    --to=cwabbott0@gmail.com \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=quic_abhinavk@quicinc.com \
    --cc=robdclark@gmail.com \
    --cc=sean@poorly.run \
    /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