[igt-dev] [PATCH i-g-t v2 1/3] lib: Add support for opening lima devices

Kamil Konieczny kamil.konieczny at linux.intel.com
Mon Jun 5 10:51:24 UTC 2023


On 2023-05-26 at 14:59:59 +0200, Erico Nunes wrote:
> This will be to test the lima drm driver specific ioctls, so adding lima
> to the list.
> 
> Signed-off-by: Erico Nunes <nunes.erico at gmail.com>

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

> ---
>  lib/drmtest.c | 3 +++
>  lib/drmtest.h | 1 +
>  2 files changed, 4 insertions(+)
> 
> diff --git a/lib/drmtest.c b/lib/drmtest.c
> index aa2e6b08..677f411c 100644
> --- a/lib/drmtest.c
> +++ b/lib/drmtest.c
> @@ -195,6 +195,7 @@ static const struct module {
>  } modules[] = {
>  	{ DRIVER_AMDGPU, "amdgpu" },
>  	{ DRIVER_INTEL, "i915", modprobe_i915 },
> +	{ DRIVER_LIMA, "lima" },
>  	{ DRIVER_MSM, "msm" },
>  	{ DRIVER_PANFROST, "panfrost" },
>  	{ DRIVER_V3D, "v3d" },
> @@ -596,6 +597,8 @@ static const char *chipset_to_str(int chipset)
>  		return "xe";
>  	case DRIVER_VMWGFX:
>  		return "vmwgfx";
> +	case DRIVER_LIMA:
> +		return "lima";
>  	case DRIVER_ANY:
>  		return "any";
>  	default:
> diff --git a/lib/drmtest.h b/lib/drmtest.h
> index ae86ee19..cedac89b 100644
> --- a/lib/drmtest.h
> +++ b/lib/drmtest.h
> @@ -53,6 +53,7 @@
>  #define DRIVER_MSM	(1 << 6)
>  #define DRIVER_XE	(1 << 7)
>  #define DRIVER_VMWGFX   (1 << 8)
> +#define DRIVER_LIMA	(1 << 9)
>  
>  /*
>   * Exclude DRVER_VGEM from DRIVER_ANY since if you run on a system
> -- 
> 2.40.1
> 


More information about the lima mailing list