Skip to content

Remove libdrm remnants in i915 code

Zbigniew Kempczyński igt-dev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest11 patches 1 replyIn review
  2. v411 patches 4 repliesSuperseded
  3. v311 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches1 replySuperseded
v11 patch0 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11tests/i915_pipe_stress: Remove unused bufmgr fieldtests/i915/i915_pipe_stress.c+0 -10 replies
2/11tests/prime_udl: Remove intel-libdrm dependencytests/prime_udl.c+21 -430 replies
3/11tests/prime_nv: Remove intel-libdrm callstests/prime_nv_api.c tests/prime_nv_pcopy.c tests/prime_nv_test.c+173 -2470 replies
4/11tests/drm_import_export: Remove the testtests/drm_import_export.c tests/meson.build+0 -3050 replies
5/11benchmarks/intel_upload_blit_*: Remove libdrm in upload blitsbenchmarks/intel_upload_blit_large.c benchmarks/intel_upload_blit_large_gtt.c benchmarks/intel_upload_blit_large_map.c +2 more+315 -2300 replies
6/11lib/intel_batchbuffer: Get rid of libdrm batchbufferlib/intel_batchbuffer.c lib/intel_batchbuffer.h+2 -8210 replies
7/11lib/intel_decode: Get drm decode code and adopt to use in igtlib/i915/intel_decode.c lib/i915/intel_decode.h lib/meson.build+4005 -00 replies
8/11tools/intel_dump|error_decode: Use local igt decode codetools/intel_dump_decode.c tools/intel_error_decode.c+15 -150 replies
9/11lib/ioctl_wrappers: Remove gem_handle_to_libdrm_bolib/ioctl_wrappers.c lib/ioctl_wrappers.h+0 -360 replies
10/11tools/meson: Move tools out of libdrm scopetools/meson.build+5 -100 replies
11/11lib/meson: Remove libdrm configuration and intel_bufmgr stubslib/meson.build lib/stubs/drm/README lib/stubs/drm/intel_bufmgr.c +1 more+0 -6260 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchPetri Latvala
1/11A-b
2/11A-b
3/11A-b
4/11A-b
5/11A-b
6/11A-b
7/11A-b
8/11A-b
9/11A-b
10/11A-b
11/11A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [igt-dev] [PATCH i-g-t v5 00/11] Remove libdrm remnants in i915 code

v2: rewrite instead of prime_udl/prime_nv_* removals.
v3: remove all references to libdrm-intel/intel_bufmgr
v4: rebase
v5: acked, re-verify before merge

I want finally remove all libdrm stuff, to get this I had to:

1. remove missed bufmgr field in i915_pipe_stress

2. rewrite prime_udl test - it is not used in CI due to lack of DisplayLink hardware and I also don't have such hardware so this is blind rewrite

3. rewrite prime_nv_* tests - similar to prime_udl (blind rewrite)

4. remove drm_import_export test, it exercises libdrm prime caps

5. rewrite intel_upload_blit_* benchmarks - I tried to mimic behavior as much as possible but there'e some minor differences in execution time. I think it is related to libdrm internals (how it caches handles/mappings). I'm not sure but it shouldn't much affect what benchmark is exercising.

6. remove all intel_batchbuffer_* code

7. get libdrm decode code and adopt to use in igt

8. use local decode code (taken from libdrm) in intel_dump|error_decode tools

9. remove unused functions in ioctl_wrappers

10 remove libdrm definitions in tools/meson.build

11. remove libdrm/stubs definitions in lib/meson.build + libdrm stubs

Cc Petri Latvala <[email protected]>

Zbigniew Kempczyński (11):
tests/i915_pipe_stress: Remove unused bufmgr field tests/prime_udl: Remove intel-libdrm dependency tests/prime_nv: Remove intel-libdrm calls tests/drm_import_export: Remove the test benchmarks/intel_upload_blit_*: Remove libdrm in upload blits lib/intel_batchbuffer: Get rid of libdrm batchbuffer lib/intel_decode: Get drm decode code and adopt to use in igt tools/intel_dump|error_decode: Use local igt decode code lib/ioctl_wrappers: Remove gem_handle_to_libdrm_bo tools/meson: Move tools out of libdrm scope lib/meson: Remove libdrm configuration and intel_bufmgr stubs

 benchmarks/intel_upload_blit_large.c     |  131 +-
 benchmarks/intel_upload_blit_large_gtt.c |  130 +-
 benchmarks/intel_upload_blit_large_map.c |  132 +-
 benchmarks/intel_upload_blit_small.c     |  139 +-
 benchmarks/meson.build                   |   13 +-
 lib/i915/intel_decode.c                  | 3962 ++++++++++++++++++++++
 lib/i915/intel_decode.h                  |   42 +
 lib/intel_batchbuffer.c                  |  575 +---
 lib/intel_batchbuffer.h                  |  248 --
 lib/ioctl_wrappers.c                     |   31 -
 lib/ioctl_wrappers.h                     |    5 -
 lib/meson.build                          |    8 +-
 lib/stubs/drm/README                     |    4 -
 lib/stubs/drm/intel_bufmgr.c             |  292 --
 lib/stubs/drm/intel_bufmgr.h             |  323 --
 tests/drm_import_export.c                |  304 --
 tests/i915/i915_pipe_stress.c            |    1 -
 tests/meson.build                        |    1 -
 tests/prime_nv_api.c                     |  151 +-
 tests/prime_nv_pcopy.c                   |  107 +-
 tests/prime_nv_test.c                    |  162 +-
 tests/prime_udl.c                        |   64 +-
 tools/intel_dump_decode.c                |   16 +-
 tools/intel_error_decode.c               |   14 +-
 tools/meson.build                        |   15 +-
 25 files changed, 4536 insertions(+), 2334 deletions(-)
 create mode 100644 lib/i915/intel_decode.c
 create mode 100644 lib/i915/intel_decode.h
 delete mode 100644 lib/stubs/drm/README
 delete mode 100644 lib/stubs/drm/intel_bufmgr.c
 delete mode 100644 lib/stubs/drm/intel_bufmgr.h
 delete mode 100644 tests/drm_import_export.c
Signature · 1 line
2.34.1