Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: "Cavitt, Jonathan" <jonathan.cavitt@intel.com>,
	"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v2 4/7] drm/xe/tests: Convert xe_dma_buf live tests
Date: Wed, 17 Jul 2024 23:54:38 +0200	[thread overview]
Message-ID: <8088e74f-d753-4acd-a679-4f5d2fbab94b@intel.com> (raw)
In-Reply-To: <CH0PR11MB5444E83BC6DE82E5141F711DE5A32@CH0PR11MB5444.namprd11.prod.outlook.com>



On 17.07.2024 22:17, Cavitt, Jonathan wrote:
> -----Original Message-----
> From: Intel-xe <intel-xe-bounces@lists.freedesktop.org> On Behalf Of Michal Wajdeczko
> Sent: Wednesday, July 17, 2024 12:52 PM
> To: intel-xe@lists.freedesktop.org
> Cc: Wajdeczko, Michal <Michal.Wajdeczko@intel.com>
> Subject: [PATCH v2 4/7] drm/xe/tests: Convert xe_dma_buf live tests
>>
>> Convert xe_dma_buf live tests to parameterized style.
>>
>> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> 
> Just read this after the third patch.  I wonder if it wouldn't be better
> to perform this parameterization on all unparameterized tests in the
> same patch?  There's probably some benefit to keeping them
> separate, just in case one set of tests needs to get reverted back to
> the old style, though, so no blocks from me here.

IMO its easier to review small patches, so if we can split changes into
separate standalone patches, keeping in mind what is a 'logical change',
then we should do it.

[1]
https://docs.kernel.org/process/submitting-patches.html#separate-your-changes

> 
> Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
> -Jonathan Cavitt

Thanks!

> 
>> ---
>>  drivers/gpu/drm/xe/tests/xe_dma_buf.c | 8 ++++++--
>>  1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/xe/tests/xe_dma_buf.c b/drivers/gpu/drm/xe/tests/xe_dma_buf.c
>> index 4f9dc41e13de..c24c8509227e 100644
>> --- a/drivers/gpu/drm/xe/tests/xe_dma_buf.c
>> +++ b/drivers/gpu/drm/xe/tests/xe_dma_buf.c
>> @@ -8,6 +8,7 @@
>>  #include <kunit/test.h>
>>  #include <kunit/visibility.h>
>>  
>> +#include "tests/xe_kunit_helpers.h"
>>  #include "tests/xe_pci_test.h"
>>  
>>  #include "xe_pci.h"
>> @@ -275,11 +276,13 @@ static int dma_buf_run_device(struct xe_device *xe)
>>  
>>  static void xe_dma_buf_kunit(struct kunit *test)
>>  {
>> -	xe_call_for_each_device(dma_buf_run_device);
>> +	struct xe_device *xe = test->priv;
>> +
>> +	dma_buf_run_device(xe);
>>  }
>>  
>>  static struct kunit_case xe_dma_buf_tests[] = {
>> -	KUNIT_CASE(xe_dma_buf_kunit),
>> +	KUNIT_CASE_PARAM(xe_dma_buf_kunit, xe_pci_live_device_gen_param),
>>  	{}
>>  };
>>  
>> @@ -287,5 +290,6 @@ VISIBLE_IF_KUNIT
>>  struct kunit_suite xe_dma_buf_test_suite = {
>>  	.name = "xe_dma_buf",
>>  	.test_cases = xe_dma_buf_tests,
>> +	.init = xe_kunit_helper_xe_device_live_test_init,
>>  };
>>  EXPORT_SYMBOL_IF_KUNIT(xe_dma_buf_test_suite);
>> -- 
>> 2.43.0
>>
>>

  reply	other threads:[~2024-07-17 21:54 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-17 19:51 [PATCH v2 0/7] Convert live tests to parameterized style Michal Wajdeczko
2024-07-17 19:51 ` [PATCH v2 1/7] drm/xe: Introduce const cast helper Michal Wajdeczko
2024-07-17 20:07   ` Cavitt, Jonathan
2024-07-17 21:38     ` Michal Wajdeczko
2024-07-19 16:32   ` Lucas De Marchi
2024-07-19 16:55     ` Michal Wajdeczko
2024-07-19 17:06       ` Lucas De Marchi
2024-07-17 19:51 ` [PATCH v2 2/7] drm/xe/tests: Add helpers for use in live tests Michal Wajdeczko
2024-07-17 20:14   ` Cavitt, Jonathan
2024-07-19 16:37   ` Lucas De Marchi
2024-07-19 17:20     ` Michal Wajdeczko
2024-07-17 19:51 ` [PATCH v2 3/7] drm/xe/tests: Convert xe_bo " Michal Wajdeczko
2024-07-17 20:15   ` Cavitt, Jonathan
2024-07-17 19:51 ` [PATCH v2 4/7] drm/xe/tests: Convert xe_dma_buf " Michal Wajdeczko
2024-07-17 20:17   ` Cavitt, Jonathan
2024-07-17 21:54     ` Michal Wajdeczko [this message]
2024-07-17 19:51 ` [PATCH v2 5/7] drm/xe/tests: Convert xe_migrate " Michal Wajdeczko
2024-07-17 20:17   ` Cavitt, Jonathan
2024-07-17 19:51 ` [PATCH v2 6/7] drm/xe/tests: Convert xe_mocs " Michal Wajdeczko
2024-07-17 20:18   ` Cavitt, Jonathan
2024-07-19 16:40   ` Lucas De Marchi
2024-07-17 19:51 ` [PATCH v2 7/7] drm/xe/tests: Skip xe_mocs live tests on VF device Michal Wajdeczko
2024-07-17 20:19   ` Cavitt, Jonathan
2024-07-19 16:41   ` Lucas De Marchi
2024-07-17 19:58 ` ✓ CI.Patch_applied: success for Convert live tests to parameterized style (rev2) Patchwork
2024-07-17 19:59 ` ✓ CI.checkpatch: " Patchwork
2024-07-17 20:00 ` ✓ CI.KUnit: " Patchwork
2024-07-17 20:12 ` ✓ CI.Build: " Patchwork
2024-07-17 20:14 ` ✓ CI.Hooks: " Patchwork
2024-07-17 20:16 ` ✓ CI.checksparse: " Patchwork
2024-07-17 20:40 ` ✗ CI.BAT: failure " Patchwork
2024-07-17 21:34   ` Michal Wajdeczko
2024-07-18  1:53 ` ✗ CI.FULL: " Patchwork
2024-07-18  7:11   ` Michal Wajdeczko

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=8088e74f-d753-4acd-a679-4f5d2fbab94b@intel.com \
    --to=michal.wajdeczko@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jonathan.cavitt@intel.com \
    /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