All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Huang, Ray" <Ray.Huang-5C7GfCeVMHo@public.gmane.org>
To: "Liu, Aaron" <Aaron.Liu-5C7GfCeVMHo@public.gmane.org>
Cc: "Olsak, Marek" <Marek.Olsak-5C7GfCeVMHo@public.gmane.org>,
	"amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
	"Tuikov, Luben" <Luben.Tuikov-5C7GfCeVMHo@public.gmane.org>,
	"Deucher,
	Alexander" <Alexander.Deucher-5C7GfCeVMHo@public.gmane.org>,
	"Liu, Leo" <Leo.Liu-5C7GfCeVMHo@public.gmane.org>,
	"Koenig,
	Christian" <Christian.Koenig-5C7GfCeVMHo@public.gmane.org>
Subject: Re: [PATCH 10/12] tests/amdgpu: add test to submit a gfx command with secure context
Date: Fri, 15 Nov 2019 10:06:49 +0000	[thread overview]
Message-ID: <MN2PR12MB330923D11E08F0DC172F8F1DEC700@MN2PR12MB3309.namprd12.prod.outlook.com> (raw)
In-Reply-To: <1573788895-3936-10-git-send-email-aaron.liu-5C7GfCeVMHo@public.gmane.org>

On Fri, Nov 15, 2019 at 11:34:53AM +0800, Liu, Aaron wrote:
> This patch is to test the command submission with secure context.
> 
> Signed-off-by: Aaron Liu <aaron.liu@amd.com>

Reviewed-by: Huang Rui <ray.huang@amd.com>

> ---
>  tests/amdgpu/security_tests.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/tests/amdgpu/security_tests.c b/tests/amdgpu/security_tests.c
> index a3807ee..0bb4ad2 100644
> --- a/tests/amdgpu/security_tests.c
> +++ b/tests/amdgpu/security_tests.c
> @@ -32,6 +32,7 @@ static uint32_t major_version;
>  static uint32_t minor_version;
>  
>  static void amdgpu_security_alloc_buf_test(void);
> +static void amdgpu_security_gfx_submission_test(void);
>  
>  CU_BOOL suite_security_tests_enable(void)
>  {
> @@ -75,6 +76,7 @@ int suite_security_tests_clean(void)
>  
>  CU_TestInfo security_tests[] = {
>  	{ "allocate secure buffer test", amdgpu_security_alloc_buf_test },
> +	{ "graphics secure command submission", amdgpu_security_gfx_submission_test },
>  	CU_TEST_INFO_NULL,
>  };
>  
> @@ -113,3 +115,10 @@ static void amdgpu_security_alloc_buf_test(void)
>  	r = gpu_mem_free(bo, va_handle, bo_mc, 4096);
>  	CU_ASSERT_EQUAL(r, 0);
>  }
> +
> +static void amdgpu_security_gfx_submission_test(void)
> +{
> +	amdgpu_command_submission_write_linear_helper_with_secure(device_handle,
> +								  AMDGPU_HW_IP_GFX,
> +								  true);
> +}
> -- 
> 2.7.4
> 
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

WARNING: multiple messages have this Message-ID (diff)
From: "Huang, Ray" <Ray.Huang@amd.com>
To: "Liu, Aaron" <Aaron.Liu@amd.com>
Cc: "Olsak, Marek" <Marek.Olsak@amd.com>,
	"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>,
	"Tuikov, Luben" <Luben.Tuikov@amd.com>,
	"Deucher,  Alexander" <Alexander.Deucher@amd.com>,
	"Liu, Leo" <Leo.Liu@amd.com>,
	"Koenig, Christian" <Christian.Koenig@amd.com>
Subject: Re: [PATCH 10/12] tests/amdgpu: add test to submit a gfx command with secure context
Date: Fri, 15 Nov 2019 10:06:49 +0000	[thread overview]
Message-ID: <MN2PR12MB330923D11E08F0DC172F8F1DEC700@MN2PR12MB3309.namprd12.prod.outlook.com> (raw)
Message-ID: <20191115100649.fTkt6abTfTYEacADl2bjZtRm0uczYa-cTmyCIpoVO1Q@z> (raw)
In-Reply-To: <1573788895-3936-10-git-send-email-aaron.liu@amd.com>

On Fri, Nov 15, 2019 at 11:34:53AM +0800, Liu, Aaron wrote:
> This patch is to test the command submission with secure context.
> 
> Signed-off-by: Aaron Liu <aaron.liu@amd.com>

Reviewed-by: Huang Rui <ray.huang@amd.com>

> ---
>  tests/amdgpu/security_tests.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/tests/amdgpu/security_tests.c b/tests/amdgpu/security_tests.c
> index a3807ee..0bb4ad2 100644
> --- a/tests/amdgpu/security_tests.c
> +++ b/tests/amdgpu/security_tests.c
> @@ -32,6 +32,7 @@ static uint32_t major_version;
>  static uint32_t minor_version;
>  
>  static void amdgpu_security_alloc_buf_test(void);
> +static void amdgpu_security_gfx_submission_test(void);
>  
>  CU_BOOL suite_security_tests_enable(void)
>  {
> @@ -75,6 +76,7 @@ int suite_security_tests_clean(void)
>  
>  CU_TestInfo security_tests[] = {
>  	{ "allocate secure buffer test", amdgpu_security_alloc_buf_test },
> +	{ "graphics secure command submission", amdgpu_security_gfx_submission_test },
>  	CU_TEST_INFO_NULL,
>  };
>  
> @@ -113,3 +115,10 @@ static void amdgpu_security_alloc_buf_test(void)
>  	r = gpu_mem_free(bo, va_handle, bo_mc, 4096);
>  	CU_ASSERT_EQUAL(r, 0);
>  }
> +
> +static void amdgpu_security_gfx_submission_test(void)
> +{
> +	amdgpu_command_submission_write_linear_helper_with_secure(device_handle,
> +								  AMDGPU_HW_IP_GFX,
> +								  true);
> +}
> -- 
> 2.7.4
> 
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2019-11-15 10:06 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-15  3:34 [PATCH 01/12] amdgpu: add UAPI for creating encrypted buffers Aaron Liu
2019-11-15  3:34 ` Aaron Liu
     [not found] ` <1573788895-3936-1-git-send-email-aaron.liu-5C7GfCeVMHo@public.gmane.org>
2019-11-15  3:34   ` [PATCH 02/12] tests/amdgpu: add security test suite (v2) Aaron Liu
2019-11-15  3:34     ` Aaron Liu
2019-11-15  3:34   ` [PATCH 03/12] tests/amdgpu: add secure buffer allocation test for system memory Aaron Liu
2019-11-15  3:34     ` Aaron Liu
2019-11-15  3:34   ` [PATCH 04/12] tests/amdgpu: add secure buffer allocation test for invisible VRAM Aaron Liu
2019-11-15  3:34     ` Aaron Liu
2019-11-15  3:34   ` [PATCH 05/12] tests/amdgpu: expand write linear helper for security (v3) Aaron Liu
2019-11-15  3:34     ` Aaron Liu
     [not found]     ` <1573788895-3936-5-git-send-email-aaron.liu-5C7GfCeVMHo@public.gmane.org>
2019-11-20  1:57       ` Luben Tuikov
2019-11-20  1:57         ` Luben Tuikov
2019-11-15  3:34   ` [PATCH 06/12] tests/amdgpu: add device handle as input param for exec_cs_helper and write_linear_helper (v4) Aaron Liu
2019-11-15  3:34     ` Aaron Liu
     [not found]     ` <1573788895-3936-6-git-send-email-aaron.liu-5C7GfCeVMHo@public.gmane.org>
2019-11-20  2:00       ` Luben Tuikov
2019-11-20  2:00         ` Luben Tuikov
2019-11-15  3:34   ` [PATCH 07/12] amdgpu: using IB flags for TMZ or non-TMZ Aaron Liu
2019-11-15  3:34     ` Aaron Liu
     [not found]     ` <20191115093220.GA20622@ray.huang@amd.com>
     [not found]       ` <20191115093220.GA20622-i1F8m7ETrFbYtjvyW6yDsg@public.gmane.org@amd.com>
2019-11-15 12:50         ` Christian König
2019-11-15 12:50           ` Christian König
     [not found]           ` <ea9f95d8-a444-270c-85e6-ab062954320f-5C7GfCeVMHo@public.gmane.org>
2019-11-18  9:19             ` Liu, Aaron
2019-11-18  9:19               ` Liu, Aaron
     [not found]               ` <MN2PR12MB3838B600C9A44A584ECFF53EF04D0-rweVpJHSKTrcE+Ck/nypMAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-11-18 11:31                 ` Christian König
2019-11-18 11:31                   ` Christian König
2019-11-15  3:34   ` [PATCH 08/12] tests/amdgpu: expand secure param for exec_cs_helper Aaron Liu
2019-11-15  3:34     ` Aaron Liu
     [not found]     ` <1573788895-3936-8-git-send-email-aaron.liu-5C7GfCeVMHo@public.gmane.org>
2019-11-15  9:55       ` Huang, Ray
2019-11-15  9:55         ` Huang, Ray
2019-11-15  9:56       ` Huang, Ray
2019-11-15  9:56         ` Huang, Ray
2019-11-15  3:34   ` [PATCH 09/12] tests/amdgpu: add atomic_mem cp_packet to verify the secure buffer Aaron Liu
2019-11-15  3:34     ` Aaron Liu
     [not found]     ` <1573788895-3936-9-git-send-email-aaron.liu-5C7GfCeVMHo@public.gmane.org>
2019-11-15  9:44       ` Huang, Ray
2019-11-15  9:44         ` Huang, Ray
2019-11-15 10:04       ` Huang, Ray
2019-11-15 10:04         ` Huang, Ray
2019-11-15  3:34   ` [PATCH 10/12] tests/amdgpu: add test to submit a gfx command with secure context Aaron Liu
2019-11-15  3:34     ` Aaron Liu
     [not found]     ` <1573788895-3936-10-git-send-email-aaron.liu-5C7GfCeVMHo@public.gmane.org>
2019-11-15 10:06       ` Huang, Ray [this message]
2019-11-15 10:06         ` Huang, Ray
2019-11-15  3:34   ` [PATCH 11/12] tests/amdgpu: add atomic dma command to verify the secure buffer Aaron Liu
2019-11-15  3:34     ` Aaron Liu
     [not found]     ` <1573788895-3936-11-git-send-email-aaron.liu-5C7GfCeVMHo@public.gmane.org>
2019-11-15 10:03       ` Huang, Ray
2019-11-15 10:03         ` Huang, Ray
2019-11-15  3:34   ` [PATCH 12/12] tests/amdgpu: add test to submit a sdma command with secure context Aaron Liu
2019-11-15  3:34     ` Aaron Liu
     [not found]     ` <1573788895-3936-12-git-send-email-aaron.liu-5C7GfCeVMHo@public.gmane.org>
2019-11-15 10:07       ` Huang, Ray
2019-11-15 10:07         ` Huang, Ray
2019-11-15 12:56   ` [PATCH 01/12] amdgpu: add UAPI for creating encrypted buffers Christian König
2019-11-15 12:56     ` Christian König
     [not found]     ` <06a979a0-0795-88cb-f1d9-80255165f0e4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-11-15 14:49       ` Deucher, Alexander
2019-11-15 14:49         ` Deucher, Alexander
     [not found]         ` <DM5PR12MB182063DB1ACAD38C768ECAC3F7700-2J9CzHegvk8qWyLXlBb1HgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-11-15 15:08           ` Koenig, Christian
2019-11-15 15:08             ` Koenig, Christian
     [not found]             ` <1f6819bc-cf46-4f34-a569-9ba39a9c6559-2ueSQiBKiTY7tOexoI0I+QC/G2K4zDHf@public.gmane.org>
2019-11-15 19:34               ` Olsak, Marek
2019-11-15 19:34                 ` Olsak, Marek
     [not found]                 ` <DM6PR12MB32097BA0BE4D40FF431A6E11F9700-lmeGfMZKVrEA9tGwT7oCEgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-11-15 19:52                   ` Olsak, Marek
2019-11-15 19:52                     ` Olsak, Marek
     [not found]                     ` <DM6PR12MB3209676F6F84150C08400C93F9700-lmeGfMZKVrEA9tGwT7oCEgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-11-18  9:28                       ` Liu, Aaron
2019-11-18  9:28                         ` Liu, Aaron
2019-11-20  1:52   ` Luben Tuikov
2019-11-20  1:52     ` Luben Tuikov
     [not found]     ` <6cba1e53-1c0d-d408-4d16-cae93ec9e62e-5C7GfCeVMHo@public.gmane.org>
2019-11-20  2:41       ` Marek Olšák
2019-11-20  2:41         ` Marek Olšák
     [not found]         ` <CAAxE2A6ZdjfV1vWh1KQmTR+gVFq0n098Gg8bWjprwdqvUQGQoQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-11-20 16:49           ` Luben Tuikov
2019-11-20 16:49             ` Luben Tuikov
     [not found]             ` <60f3793f-c568-798c-a516-870d2d20d8d8-5C7GfCeVMHo@public.gmane.org>
2019-11-20 17:05               ` Harry Wentland
2019-11-20 17:05                 ` Harry Wentland
     [not found]                 ` <3e6f8c10-6cfe-73c7-c656-1b2ad69f5eb2-5C7GfCeVMHo@public.gmane.org>
2019-11-20 17:39                   ` Harry Wentland
2019-11-20 17:39                     ` Harry Wentland
2019-11-20 17:16               ` Christian König
2019-11-20 17:16                 ` Christian König
     [not found]                 ` <cac7e351-dba8-125b-dc5d-b2fdec77731b-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-11-20 17:24                   ` Christian König
2019-11-20 17:24                     ` Christian König
     [not found]                     ` <0622cbcb-9b04-eed3-ad1e-7a40cc03c73a-5C7GfCeVMHo@public.gmane.org>
2019-11-20 17:50                       ` Luben Tuikov
2019-11-20 17:50                         ` Luben Tuikov
     [not found]                         ` <31a1cde2-18ab-96f5-47a4-6f113cbc9e4a-5C7GfCeVMHo@public.gmane.org>
2019-11-20 18:40                           ` Christian König
2019-11-20 18:40                             ` Christian König
     [not found]                             ` <069abbd5-564d-aca7-ddfb-2336d56982eb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-11-20 19:08                               ` Luben Tuikov
2019-11-20 19:08                                 ` Luben Tuikov
     [not found]                                 ` <6ddda4a0-ed0e-eb29-e2f2-ba1e5cdbde1b-5C7GfCeVMHo@public.gmane.org>
2019-11-26 10:08                                   ` Christian König
2019-11-26 10:08                                     ` Christian König

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=MN2PR12MB330923D11E08F0DC172F8F1DEC700@MN2PR12MB3309.namprd12.prod.outlook.com \
    --to=ray.huang-5c7gfcevmho@public.gmane.org \
    --cc=Aaron.Liu-5C7GfCeVMHo@public.gmane.org \
    --cc=Alexander.Deucher-5C7GfCeVMHo@public.gmane.org \
    --cc=Christian.Koenig-5C7GfCeVMHo@public.gmane.org \
    --cc=Leo.Liu-5C7GfCeVMHo@public.gmane.org \
    --cc=Luben.Tuikov-5C7GfCeVMHo@public.gmane.org \
    --cc=Marek.Olsak-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.