From: Alex Deucher <alexdeucher@gmail.com>
To: Dave Airlie <airlied@gmail.com>
Cc: Maling list - DRI developers <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH] drm/radeon: add cayman VM support for append packet.
Date: Fri, 22 Apr 2016 16:38:21 -0400 [thread overview]
Message-ID: <CADnq5_Mg7d5=ecsPK8F8XEddDKV951UEJLxX5=Go-PJqyVBodQ@mail.gmail.com> (raw)
In-Reply-To: <1461283583-17163-1-git-send-email-airlied@gmail.com>
On Thu, Apr 21, 2016 at 8:06 PM, Dave Airlie <airlied@gmail.com> wrote:
> From: Dave Airlie <airlied@redhat.com>
>
> This adds support for SET_APPEND_CNT packet3 to the VM paths.
>
> Signed-off-by: Dave Airlie <airlied@redhat.com>
Applied. Thanks!
Alex
> ---
> drivers/gpu/drm/radeon/evergreen_cs.c | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c
> index 18ddd75..0d3f744 100644
> --- a/drivers/gpu/drm/radeon/evergreen_cs.c
> +++ b/drivers/gpu/drm/radeon/evergreen_cs.c
> @@ -3483,6 +3483,27 @@ static int evergreen_vm_packet3_check(struct radeon_device *rdev,
> }
> }
> break;
> + case PACKET3_SET_APPEND_CNT: {
> + uint32_t areg;
> + uint32_t allowed_reg_base;
> +
> + if (pkt->count != 2) {
> + DRM_ERROR("bad SET_APPEND_CNT (invalid count)\n");
> + return -EINVAL;
> + }
> +
> + allowed_reg_base = GDS_APPEND_COUNT_0;
> + allowed_reg_base -= PACKET3_SET_CONTEXT_REG_START;
> + allowed_reg_base >>= 2;
> +
> + areg = idx_value >> 16;
> + if (areg < allowed_reg_base || areg > (allowed_reg_base + 11)) {
> + DRM_ERROR("forbidden register for append cnt 0x%08x at %d\n",
> + areg, idx);
> + return -EINVAL;
> + }
> + break;
> + }
> default:
> return -EINVAL;
> }
> --
> 2.1.0
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2016-04-22 20:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-22 0:06 [PATCH] drm/radeon: add cayman VM support for append packet Dave Airlie
2016-04-22 20:38 ` Alex Deucher [this message]
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='CADnq5_Mg7d5=ecsPK8F8XEddDKV951UEJLxX5=Go-PJqyVBodQ@mail.gmail.com' \
--to=alexdeucher@gmail.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
/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).