From: Andrzej Hajda <andrzej.hajda@intel.com>
To: "David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
Eric Dumazet <edumazet@google.com>
Cc: netdev@vger.kernel.org, Rodrigo Vivi <rodrigo.vivi@kernel.org>,
intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org,
Chris Wilson <chris@chris-wilson.co.uk>,
Daniel Vetter <daniel@ffwll.ch>,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
David Airlie <airlied@gmail.com>,
Dmitry Vyukov <dvyukov@google.com>
Subject: Re: [Intel-gfx] [PATCH v8 0/7] drm/i915: use ref_tracker library for tracking wakerefs
Date: Thu, 1 Jun 2023 19:14:50 +0200 [thread overview]
Message-ID: <b7811942-da09-7295-4774-46360715f147@intel.com> (raw)
In-Reply-To: <bb49bbd6-1ff2-8dba-11d1-6b6ab2ccd986@intel.com>
On 08.05.2023 19:16, Andrzej Hajda wrote:
> On 05.05.2023 22:06, Rodrigo Vivi wrote:
>> On Thu, May 04, 2023 at 06:27:53PM +0200, Andrzej Hajda wrote:
>>> Hi maintainers of net and i915,
>>>
>>> On 25.04.2023 00:05, Andrzej Hajda wrote:
>>>> This is revived patchset improving ref_tracker library and converting
>>>> i915 internal tracker to ref_tracker.
>>>> The old thread ended without consensus about small kernel allocations,
>>>> which are performed under spinlock.
>>>> I have tried to solve the problem by splitting the calls, but it
>>>> results
>>>> in complicated API, so I went back to original solution.
>>>> If there are better solutions I am glad to discuss them.
>>>> Meanwhile I send original patchset with addressed remaining comments.
Ping on the series, everything reviewed.
Eric, Dave, Jakub, could you take patches 1-4 via net tree?
Regards
Andrzej
>>>>
>>>> To: Jani Nikula <jani.nikula@linux.intel.com>
>>>> To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
>>>> To: Rodrigo Vivi <rodrigo.vivi@intel.com>
>>>> To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
>>>> To: David Airlie <airlied@gmail.com>
>>>> To: Daniel Vetter <daniel@ffwll.ch>
>>>> To: Eric Dumazet <edumazet@google.com>
>>>> Cc: linux-kernel@vger.kernel.org
>>>> Cc: intel-gfx@lists.freedesktop.org
>>>> Cc: dri-devel@lists.freedesktop.org
>>>> Cc: Chris Wilson <chris@chris-wilson.co.uk>
>>>> Cc: netdev@vger.kernel.org
>>>> Cc: Jakub Kicinski <kuba@kernel.org>
>>>> Cc: Dmitry Vyukov <dvyukov@google.com>
>>>> Cc: "David S. Miller" <davem@davemloft.net>
>>>> Cc: Andi Shyti <andi.shyti@linux.intel.com>
>>>> Cc: Das, Nirmoy <nirmoy.das@linux.intel.com>
>>>> Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
>>>>
>>>> ---
>>>> Changes in v8:
>>>> - addressed comments from Eric, Zhou and CI, thanks,
>>>> - added ref_tracker_dir_init name argument to all callers in one patch
>>>> - moved intel_wakeref_tracker_show to *.c
>>>> - s/intel_wakeref_tracker_show/intel_ref_tracker_show/
>>>> - removed 'default n' from Kconfig
>>>> - changed strlcpy to strscpy,
>>>> - removed assignement from if condition,
>>>> - removed long lines from patch description
>>>> - added tags
>>>> - Link to v7:
>>>> https://lore.kernel.org/r/20230224-track_gt-v7-0-11f08358c1ec@intel.com
>>>>
>>>> Changes in v7:
>>>> - removed 8th patch (hold wakeref), as it was already merged
>>>> - added tags (thx Andi)
>>>> - Link to v6:
>>>> https://lore.kernel.org/r/20230224-track_gt-v6-0-0dc8601fd02f@intel.com
>>>>
>>>> Changes in v6:
>>>> - rebased to solve minor conflict and allow CI testing
>>>> - Link to v5:
>>>> https://lore.kernel.org/r/20230224-track_gt-v5-0-77be86f2c872@intel.com
>>>>
>>>> Changes in v5 (thx Andi for review):
>>>> - use *_locked convention instead of __*,
>>>> - improved commit messages,
>>>> - re-worked i915 patches, squashed separation and conversion patches,
>>>> - added tags,
>>>> - Link to v4:
>>>> https://lore.kernel.org/r/20230224-track_gt-v4-0-464e8ab4c9ab@intel.com
>>>>
>>>> Changes in v4:
>>>> - split "Separate wakeref tracking" to smaller parts
>>>> - fixed typos,
>>>> - Link to v1-v3: https://patchwork.freedesktop.org/series/100327/
>>>>
>>>> ---
>>>> Andrzej Hajda (7):
>>>> lib/ref_tracker: add unlocked leak print helper
>>>> lib/ref_tracker: improve printing stats
>>>> lib/ref_tracker: add printing to memory buffer
>>>> lib/ref_tracker: remove warnings in case of allocation failure
>>>> drm/i915: Correct type of wakeref variable
>>>> drm/i915: Replace custom intel runtime_pm tracker with
>>>> ref_tracker library
>>>> drm/i915: Track gt pm wakerefs
>>>
>>> Finally all patches are reviewed.
>>> Question to network and i915 maintainers, how to merge this patchset:
>>> 1. Patches 1-4 belongs rather to network domain (especially patch 2).
>>> 2. Patches 5-7 are for i915.
>>
>> Well, probably the easiest way to avoid conflicts would be to send
>> this right now through the net repo.
>>
>> And hold patches 5-7 after drm-intel-next can backmerge them.
>>
>> At this point I believe we would be looking at 6.5-rc2
>> backmerge to drm-intel-next in likely 11 weeks from now.
>>
>> Do we have any urgency on them? Looking to all the changes in
>> i915 I believe we will get many conflicts if we let all these
>> i915 patches go through net tree as well.
>
>
> Eric, Dave, Jakub, could you take patches 1-4?
>
> Regards
> Andrzej
>
>
>>
>>>
>>> What would be the best way to do it?
>>>
>>> Regards
>>> Andrzej
>>>
>>>
>>>
>>>>
>>>> drivers/gpu/drm/i915/Kconfig.debug | 18 ++
>>>> drivers/gpu/drm/i915/display/intel_display_power.c | 2 +-
>>>> drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 7 +-
>>>> .../drm/i915/gem/selftests/i915_gem_coherency.c | 10 +-
>>>> drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c | 14 +-
>>>> drivers/gpu/drm/i915/gt/intel_breadcrumbs.c | 13 +-
>>>> drivers/gpu/drm/i915/gt/intel_breadcrumbs_types.h | 3 +-
>>>> drivers/gpu/drm/i915/gt/intel_context.h | 4 +-
>>>> drivers/gpu/drm/i915/gt/intel_context_types.h | 2 +
>>>> drivers/gpu/drm/i915/gt/intel_engine_pm.c | 7 +-
>>>> drivers/gpu/drm/i915/gt/intel_engine_types.h | 2 +
>>>> .../gpu/drm/i915/gt/intel_execlists_submission.c | 2 +-
>>>> drivers/gpu/drm/i915/gt/intel_gt_pm.c | 12 +-
>>>> drivers/gpu/drm/i915/gt/intel_gt_pm.h | 38 +++-
>>>> drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c | 4 +-
>>>> drivers/gpu/drm/i915/gt/selftest_engine_cs.c | 20 +-
>>>> drivers/gpu/drm/i915/gt/selftest_gt_pm.c | 5 +-
>>>> drivers/gpu/drm/i915/gt/selftest_reset.c | 10 +-
>>>> drivers/gpu/drm/i915/gt/selftest_rps.c | 17 +-
>>>> drivers/gpu/drm/i915/gt/selftest_slpc.c | 5 +-
>>>> drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 12 +-
>>>> drivers/gpu/drm/i915/i915_driver.c | 2 +-
>>>> drivers/gpu/drm/i915/i915_pmu.c | 16 +-
>>>> drivers/gpu/drm/i915/intel_runtime_pm.c | 221
>>>> ++-------------------
>>>> drivers/gpu/drm/i915/intel_runtime_pm.h | 11 +-
>>>> drivers/gpu/drm/i915/intel_wakeref.c | 35 +++-
>>>> drivers/gpu/drm/i915/intel_wakeref.h | 73 ++++++-
>>>> include/linux/ref_tracker.h | 25 ++-
>>>> lib/ref_tracker.c | 179
>>>> ++++++++++++++---
>>>> lib/test_ref_tracker.c | 2 +-
>>>> net/core/dev.c | 2 +-
>>>> net/core/net_namespace.c | 4 +-
>>>> 32 files changed, 445 insertions(+), 332 deletions(-)
>>>> ---
>>>> base-commit: 4d0066a1c0763d50b6fb017e27d12b081ce21b57
>>>> change-id: 20230224-track_gt-1b3da8bdacd7
>>>>
>>>> Best regards,
>>>
>
next prev parent reply other threads:[~2023-06-01 17:15 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-24 22:05 [PATCH v8 0/7] drm/i915: use ref_tracker library for tracking wakerefs Andrzej Hajda
2023-04-24 22:05 ` [PATCH v8 1/7] lib/ref_tracker: add unlocked leak print helper Andrzej Hajda
2023-04-24 22:05 ` [PATCH v8 2/7] lib/ref_tracker: improve printing stats Andrzej Hajda
2023-04-25 12:42 ` Eric Dumazet
2023-04-24 22:05 ` [PATCH v8 3/7] lib/ref_tracker: add printing to memory buffer Andrzej Hajda
2023-04-25 12:44 ` Eric Dumazet
2023-04-24 22:05 ` [PATCH v8 4/7] lib/ref_tracker: remove warnings in case of allocation failure Andrzej Hajda
2023-04-24 22:05 ` [PATCH v8 5/7] drm/i915: Correct type of wakeref variable Andrzej Hajda
2023-04-24 22:05 ` [PATCH v8 6/7] drm/i915: Replace custom intel runtime_pm tracker with ref_tracker library Andrzej Hajda
2023-04-25 19:25 ` Andi Shyti
2023-04-24 22:05 ` [PATCH v8 7/7] drm/i915: Track gt pm wakerefs Andrzej Hajda
2023-04-28 8:55 ` Andi Shyti
2023-04-25 20:01 ` [PATCH v8 0/7] drm/i915: use ref_tracker library for tracking wakerefs Andi Shyti
2023-05-04 16:27 ` [Intel-gfx] " Andrzej Hajda
2023-05-05 20:06 ` Rodrigo Vivi
2023-05-08 17:16 ` Andrzej Hajda
2023-06-01 17:14 ` Andrzej Hajda [this message]
2023-06-01 17:18 ` Jakub Kicinski
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=b7811942-da09-7295-4774-46360715f147@intel.com \
--to=andrzej.hajda@intel.com \
--cc=airlied@gmail.com \
--cc=chris@chris-wilson.co.uk \
--cc=daniel@ffwll.ch \
--cc=davem@davemloft.net \
--cc=dri-devel@lists.freedesktop.org \
--cc=dvyukov@google.com \
--cc=edumazet@google.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=rodrigo.vivi@intel.com \
--cc=rodrigo.vivi@kernel.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