From: Arunpravin <Arunpravin.PaneerSelvam@amd.com> To: <dri-devel@lists.freedesktop.org>, <intel-gfx@lists.freedesktop.org>, <amd-gfx@lists.freedesktop.org> Cc: <daniel@ffwll.ch>, <christian.koenig@amd.com>, <alexander.deucher@amd.com>, <matthew.auld@intel.com>, <tzimmermann@suse.de>, <jani.nikula@linux.intel.com>, Arunpravin <Arunpravin.PaneerSelvam@amd.com> Subject: [PATCH 4/8] drm/i915: add top-down alloc support to i915 Date: Mon, 25 Oct 2021 18:30:27 +0530 [thread overview] Message-ID: <20211025130033.1547667-2-Arunpravin.PaneerSelvam@amd.com> (raw) In-Reply-To: <20211025130033.1547667-1-Arunpravin.PaneerSelvam@amd.com> add top down allocation support to i915 driver Signed-off-by: Arunpravin <Arunpravin.PaneerSelvam@amd.com> --- drivers/gpu/drm/i915/i915_ttm_buddy_manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_ttm_buddy_manager.c b/drivers/gpu/drm/i915/i915_ttm_buddy_manager.c index 75197ba6e40d..963468228392 100644 --- a/drivers/gpu/drm/i915/i915_ttm_buddy_manager.c +++ b/drivers/gpu/drm/i915/i915_ttm_buddy_manager.c @@ -53,6 +53,9 @@ static int i915_ttm_buddy_man_alloc(struct ttm_resource_manager *man, INIT_LIST_HEAD(&bman_res->blocks); bman_res->mm = mm; + if (place->flags & TTM_PL_FLAG_TOPDOWN) + bman_res->flags |= DRM_BUDDY_TOPDOWN_ALLOCATION; + if (place->fpfn || lpfn != man->size) bman_res->flags |= DRM_BUDDY_RANGE_ALLOCATION; -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: Arunpravin <Arunpravin.PaneerSelvam@amd.com> To: <dri-devel@lists.freedesktop.org>, <intel-gfx@lists.freedesktop.org>, <amd-gfx@lists.freedesktop.org> Cc: <daniel@ffwll.ch>, <christian.koenig@amd.com>, <alexander.deucher@amd.com>, <matthew.auld@intel.com>, <tzimmermann@suse.de>, <jani.nikula@linux.intel.com>, Arunpravin <Arunpravin.PaneerSelvam@amd.com> Subject: [Intel-gfx] [PATCH 4/8] drm/i915: add top-down alloc support to i915 Date: Mon, 25 Oct 2021 18:30:27 +0530 [thread overview] Message-ID: <20211025130033.1547667-2-Arunpravin.PaneerSelvam@amd.com> (raw) In-Reply-To: <20211025130033.1547667-1-Arunpravin.PaneerSelvam@amd.com> add top down allocation support to i915 driver Signed-off-by: Arunpravin <Arunpravin.PaneerSelvam@amd.com> --- drivers/gpu/drm/i915/i915_ttm_buddy_manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_ttm_buddy_manager.c b/drivers/gpu/drm/i915/i915_ttm_buddy_manager.c index 75197ba6e40d..963468228392 100644 --- a/drivers/gpu/drm/i915/i915_ttm_buddy_manager.c +++ b/drivers/gpu/drm/i915/i915_ttm_buddy_manager.c @@ -53,6 +53,9 @@ static int i915_ttm_buddy_man_alloc(struct ttm_resource_manager *man, INIT_LIST_HEAD(&bman_res->blocks); bman_res->mm = mm; + if (place->flags & TTM_PL_FLAG_TOPDOWN) + bman_res->flags |= DRM_BUDDY_TOPDOWN_ALLOCATION; + if (place->fpfn || lpfn != man->size) bman_res->flags |= DRM_BUDDY_RANGE_ALLOCATION; -- 2.25.1
next prev parent reply other threads:[~2021-10-25 13:01 UTC|newest] Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-25 13:00 [PATCH 3/8] drm: implement top-down allocation method Arunpravin 2021-10-25 13:00 ` [Intel-gfx] " Arunpravin 2021-10-25 13:00 ` Arunpravin [this message] 2021-10-25 13:00 ` [Intel-gfx] [PATCH 4/8] drm/i915: add top-down alloc support to i915 Arunpravin 2021-10-25 13:00 ` [PATCH 5/8] drm: Implement method to free unused pages Arunpravin 2021-10-25 13:00 ` [Intel-gfx] " Arunpravin 2021-11-03 19:16 ` Matthew Auld 2021-11-03 19:16 ` Matthew Auld 2021-11-03 19:16 ` [Intel-gfx] " Matthew Auld 2021-11-09 14:06 ` Arunpravin 2021-11-09 14:06 ` [Intel-gfx] " Arunpravin 2021-11-09 14:06 ` Arunpravin 2021-10-25 13:00 ` [PATCH 6/8] drm/i915: add free_unused_pages support to i915 Arunpravin 2021-10-25 13:00 ` [Intel-gfx] " Arunpravin 2021-11-03 19:18 ` Matthew Auld 2021-11-03 19:18 ` Matthew Auld 2021-11-03 19:18 ` [Intel-gfx] " Matthew Auld 2021-11-08 22:04 ` Arunpravin 2021-11-08 22:04 ` [Intel-gfx] " Arunpravin 2021-11-08 22:04 ` Arunpravin 2021-10-25 13:00 ` [PATCH 7/8] drm/amdgpu: move vram inline functions into a header Arunpravin 2021-10-25 13:00 ` [Intel-gfx] " Arunpravin 2021-10-25 13:00 ` [PATCH 8/8] drm/amdgpu: add drm buddy support to amdgpu Arunpravin 2021-10-25 13:00 ` [Intel-gfx] " Arunpravin 2021-11-03 19:25 ` Matthew Auld 2021-11-03 19:25 ` Matthew Auld 2021-11-03 19:25 ` [Intel-gfx] " Matthew Auld 2021-11-04 7:34 ` Christian König 2021-11-04 7:34 ` Christian König 2021-11-04 7:34 ` [Intel-gfx] " Christian König 2021-11-04 8:49 ` Matthew Auld 2021-11-04 8:49 ` Matthew Auld 2021-11-04 8:49 ` [Intel-gfx] " Matthew Auld 2021-11-04 8:54 ` Christian König 2021-11-04 8:54 ` Christian König 2021-11-04 8:54 ` [Intel-gfx] " Christian König 2021-11-08 22:08 ` Arunpravin 2021-11-08 22:08 ` [Intel-gfx] " Arunpravin 2021-11-08 22:08 ` Arunpravin 2021-10-25 13:00 ` [PATCH v2 1/8] drm: move the buddy allocator from i915 into common drm Arunpravin 2021-10-25 13:00 ` [Intel-gfx] " Arunpravin 2021-10-25 13:00 ` [PATCH v2 2/8] drm: improve drm_buddy_alloc function Arunpravin 2021-10-25 13:00 ` [Intel-gfx] " Arunpravin 2021-11-03 18:41 ` Matthew Auld 2021-11-03 18:41 ` Matthew Auld 2021-11-03 18:41 ` [Intel-gfx] " Matthew Auld 2021-11-08 19:50 ` Arunpravin 2021-11-08 19:50 ` [Intel-gfx] " Arunpravin 2021-11-08 19:50 ` Arunpravin 2021-11-15 21:52 ` Arunpravin 2021-11-15 21:52 ` [Intel-gfx] " Arunpravin 2021-10-25 13:56 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for series starting with [v2,1/8] drm: move the buddy allocator from i915 into common drm Patchwork 2021-11-03 18:44 ` [PATCH 3/8] drm: implement top-down allocation method Matthew Auld 2021-11-03 18:44 ` Matthew Auld 2021-11-03 18:44 ` [Intel-gfx] " Matthew Auld 2021-11-08 21:45 ` Arunpravin 2021-11-08 21:45 ` [Intel-gfx] " Arunpravin 2021-11-08 21:45 ` Arunpravin
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=20211025130033.1547667-2-Arunpravin.PaneerSelvam@amd.com \ --to=arunpravin.paneerselvam@amd.com \ --cc=alexander.deucher@amd.com \ --cc=amd-gfx@lists.freedesktop.org \ --cc=christian.koenig@amd.com \ --cc=daniel@ffwll.ch \ --cc=dri-devel@lists.freedesktop.org \ --cc=intel-gfx@lists.freedesktop.org \ --cc=jani.nikula@linux.intel.com \ --cc=matthew.auld@intel.com \ --cc=tzimmermann@suse.de \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.