public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v3 00/11] Remove libdrm remnants in i915 code
Date: Tue, 29 Nov 2022 16:12:09 +0100	[thread overview]
Message-ID: <20221129151220.131979-1-zbigniew.kempczynski@intel.com> (raw)

v2: rewrite instead of prime_udl/prime_nv_* removals.
v3: remove all references to libdrm-intel/intel_bufmgr

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 <petri.latvala@intel.com>

Zbigniew Kempczyński (4):
  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

-- 
2.34.1

             reply	other threads:[~2022-11-29 15:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-29 15:12 Zbigniew Kempczyński [this message]
2022-11-29 15:12 ` [igt-dev] [PATCH i-g-t v3 01/11] tests/i915_pipe_stress: Remove unused bufmgr field Zbigniew Kempczyński
2022-12-05 16:48   ` Kamil Konieczny
2022-11-29 15:12 ` [igt-dev] [PATCH i-g-t v3 02/11] tests/prime_udl: Remove intel-libdrm dependency Zbigniew Kempczyński
2022-11-29 15:12 ` [igt-dev] [PATCH i-g-t v3 03/11] tests/prime_nv: Remove intel-libdrm calls Zbigniew Kempczyński
2022-11-29 15:12 ` [igt-dev] [PATCH i-g-t v3 04/11] tests/drm_import_export: Remove the test Zbigniew Kempczyński
2022-11-29 15:12 ` [igt-dev] [PATCH i-g-t v3 05/11] benchmarks/intel_upload_blit_*: Remove libdrm in upload blits Zbigniew Kempczyński
2022-11-29 15:12 ` [igt-dev] [PATCH i-g-t v3 06/11] lib/intel_batchbuffer: Get rid of libdrm batchbuffer Zbigniew Kempczyński
2022-11-29 15:12 ` [igt-dev] [PATCH i-g-t v3 07/11] lib/intel_decode: Get drm decode code and adopt to use in igt Zbigniew Kempczyński
2022-11-29 15:12 ` [igt-dev] [PATCH i-g-t v3 08/11] tools/intel_dump|error_decode: Use local igt decode code Zbigniew Kempczyński
2022-11-29 15:12 ` [igt-dev] [PATCH i-g-t v3 09/11] lib/ioctl_wrappers: Remove gem_handle_to_libdrm_bo Zbigniew Kempczyński
2022-11-29 15:12 ` [igt-dev] [PATCH i-g-t v3 10/11] tools/meson: Move tools out of libdrm scope Zbigniew Kempczyński
2022-11-29 15:12 ` [igt-dev] [PATCH i-g-t v3 11/11] lib/meson: Remove libdrm configuration and intel_bufmgr stubs Zbigniew Kempczyński
2022-11-29 17:02 ` [igt-dev] ✓ Fi.CI.BAT: success for Remove libdrm remnants in i915 code (rev3) Patchwork
2022-11-29 21:53 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-11-30 15:05   ` Zbigniew Kempczyński

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=20221129151220.131979-1-zbigniew.kempczynski@intel.com \
    --to=zbigniew.kempczynski@intel.com \
    --cc=igt-dev@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