From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Rob Clark <robin.clark@oss.qualcomm.com>,
dri-devel@lists.freedesktop.org
Cc: linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Dmitry Baryshkov <lumag@kernel.org>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Jessica Zhang <jessica.zhang@oss.qualcomm.com>,
Sean Paul <sean@poorly.run>,
Marijn Suijten <marijn.suijten@somainline.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] drm/msm: Clean up split driver features
Date: Mon, 7 Jul 2025 13:42:14 +0200 [thread overview]
Message-ID: <6579c65c-877d-44fe-aa81-5b0e602b33f5@oss.qualcomm.com> (raw)
In-Reply-To: <20250705145242.781821-2-robin.clark@oss.qualcomm.com>
On 7/5/25 4:52 PM, Rob Clark wrote:
> Avoid the possibility of missing features between the split and unified
> drm driver cases by defining DRIVER_FEATURES_GPU / KMS and using those
> in the drm_driver initializations.
>
> Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
> ---
> drivers/gpu/drm/msm/msm_drv.c | 31 ++++++++++++++++---------------
> 1 file changed, 16 insertions(+), 15 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
> index b6efc5b9933b..5695de1bbae2 100644
> --- a/drivers/gpu/drm/msm/msm_drv.c
> +++ b/drivers/gpu/drm/msm/msm_drv.c
> @@ -816,14 +816,21 @@ static const struct file_operations fops = {
> .show_fdinfo = drm_show_fdinfo,
> };
>
> +#define DRIVER_FEATURES_GPU ( \
> + DRIVER_GEM | \
> + DRIVER_GEM_GPUVA | \
> + DRIVER_RENDER | \
> + DRIVER_SYNCOBJ_TIMELINE | \
> + 0 )
> +
> +#define DRIVER_FEATURES_KMS ( \
> + DRIVER_GEM | \
> + DRIVER_ATOMIC | \
> + DRIVER_MODESET | \
> + 0 )
Perhaps I'm missing some C lore, but do we need the "| 0"?
Konrad
next prev parent reply other threads:[~2025-07-07 11:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-05 14:52 [PATCH 0/2] drm/msm: Split gpu/kms cleanups Rob Clark
2025-07-05 14:52 ` [PATCH 1/2] drm/msm: Clean up split driver features Rob Clark
2025-07-05 15:45 ` Dmitry Baryshkov
2025-07-07 11:42 ` Konrad Dybcio [this message]
2025-07-07 17:09 ` Rob Clark
2025-07-05 14:52 ` [PATCH 2/2] drm/msm: Take the ioctls away from the KMS-only driver Rob Clark
2025-07-05 15:45 ` Dmitry Baryshkov
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=6579c65c-877d-44fe-aa81-5b0e602b33f5@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=airlied@gmail.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jessica.zhang@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=robin.clark@oss.qualcomm.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
/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