* [Intel-gfx] [PATCH v3 00/10] Clean-up Xe FBC additions
@ 2023-06-02 10:39 Jouni Högander
2023-06-02 10:39 ` [Intel-gfx] [PATCH v3 01/10] Revert "drm/i915/display: Make FBC check stolen at use time." Jouni Högander
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jouni Högander @ 2023-06-02 10:39 UTC (permalink / raw)
To: intel-gfx; +Cc: Jani Nikula, Rodrigo Vivi
This patch set cleans up Xe FBC additions. All stolen memory details are
moved to i915_gem_stolen header and source files. Also some fence handling
details are move away from FBC code. This allows removing all ifdefs added
into fbc code.
v3:
- Move all the ifdef removals to fixup patch
- Revert as necessary instead of modifying
- intel_gt_fence_count -> intel_gt_legacy_fencing_support
- Add !WARN_ON(1) to i915_gem_stolen defines that are not supposed to be
used in case of Xe
v2: add missing intel_gt_types.h header
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Jouni Högander (10):
Revert "drm/i915/display: Make FBC check stolen at use time."
Revert "drm/i915/fbc: set compressed_fb to NULL on error"
Revert "drm/i915/display: Implement FBC support"
fixup! drm/i915/display: Remaining changes to make xe compile
drm/i915: Move stolen memory handling into i915_gem_stolen
drm/xe: Xe stolen memory handling for fbc support
drm/xe: Add i915_gem.h compatibility header
drm/i915/fbc: Make FBC check stolen at use time
drm/i915/fbc: Moved fence related code away from intel_fbc
drm/xe: Add Xe implementation for fence checks used by fbc code
drivers/gpu/drm/i915/display/intel_fbc.c | 139 ++++--------------
drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 37 +++++
drivers/gpu/drm/i915/gem/i915_gem_stolen.h | 13 ++
drivers/gpu/drm/i915/gt/intel_gt_types.h | 2 +
drivers/gpu/drm/i915/i915_vma.h | 5 +
.../gpu/drm/xe/compat-i915-headers/i915_drv.h | 3 +
.../gpu/drm/xe/compat-i915-headers/i915_gem.h | 9 ++
.../xe/compat-i915-headers/i915_gem_stolen.h | 79 ++++++++++
.../gpu/drm/xe/compat-i915-headers/i915_vma.h | 2 +
.../xe/compat-i915-headers/intel_gt_types.h | 11 ++
10 files changed, 188 insertions(+), 112 deletions(-)
create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/i915_gem.h
create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/i915_gem_stolen.h
create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/intel_gt_types.h
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Intel-gfx] [PATCH v3 01/10] Revert "drm/i915/display: Make FBC check stolen at use time."
2023-06-02 10:39 [Intel-gfx] [PATCH v3 00/10] Clean-up Xe FBC additions Jouni Högander
@ 2023-06-02 10:39 ` Jouni Högander
2023-06-02 10:39 ` [Intel-gfx] [PATCH v3 02/10] Revert "drm/i915/fbc: set compressed_fb to NULL on error" Jouni Högander
2023-06-02 10:46 ` [Intel-gfx] [PATCH v3 00/10] Clean-up Xe FBC additions Hogander, Jouni
2 siblings, 0 replies; 4+ messages in thread
From: Jouni Högander @ 2023-06-02 10:39 UTC (permalink / raw)
To: intel-gfx
This reverts commit 21e4ad64271f79f821e808a3a84bc145f4c5b2cb.
As a part of clean-up we want to revert this patch and introduce required
changes as a set of patches.
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
drivers/gpu/drm/i915/display/intel_fbc.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c
index 0e8e899f596b..0a9b081c18b8 100644
--- a/drivers/gpu/drm/i915/display/intel_fbc.c
+++ b/drivers/gpu/drm/i915/display/intel_fbc.c
@@ -1134,13 +1134,6 @@ static int intel_fbc_check_plane(struct intel_atomic_state *state,
if (!fbc)
return 0;
-#ifndef I915
- if (!i915_gem_stolen_initialized(i915)) {
- plane_state->no_fbc_reason = "stolen memory not initialised";
- return 0;
- }
-#endif
-
if (intel_vgpu_active(i915)) {
plane_state->no_fbc_reason = "VGPU active";
return 0;
@@ -1794,10 +1787,8 @@ void intel_fbc_init(struct drm_i915_private *i915)
{
enum intel_fbc_id fbc_id;
-#ifdef I915
if (!i915_gem_stolen_initialized(i915))
RUNTIME_INFO(i915)->fbc_mask = 0;
-#endif
if (need_fbc_vtd_wa(i915))
RUNTIME_INFO(i915)->fbc_mask = 0;
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Intel-gfx] [PATCH v3 02/10] Revert "drm/i915/fbc: set compressed_fb to NULL on error"
2023-06-02 10:39 [Intel-gfx] [PATCH v3 00/10] Clean-up Xe FBC additions Jouni Högander
2023-06-02 10:39 ` [Intel-gfx] [PATCH v3 01/10] Revert "drm/i915/display: Make FBC check stolen at use time." Jouni Högander
@ 2023-06-02 10:39 ` Jouni Högander
2023-06-02 10:46 ` [Intel-gfx] [PATCH v3 00/10] Clean-up Xe FBC additions Hogander, Jouni
2 siblings, 0 replies; 4+ messages in thread
From: Jouni Högander @ 2023-06-02 10:39 UTC (permalink / raw)
To: intel-gfx
This reverts commit a85e885ec8004b465d477a37ef6dd3ea4e714bef.
As a part of clean-up we want to revert this patch and introduce required
changes as a set of patches.
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
---
drivers/gpu/drm/i915/display/intel_fbc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c
index 0a9b081c18b8..3dc9620552e9 100644
--- a/drivers/gpu/drm/i915/display/intel_fbc.c
+++ b/drivers/gpu/drm/i915/display/intel_fbc.c
@@ -76,7 +76,7 @@ static int i915_gem_stolen_insert_node_in_range(struct xe_device *xe, struct xe_
ttm_bo_type_kernel, flags);
if (IS_ERR(*bo)) {
err = PTR_ERR(*bo);
- *bo = NULL;
+ bo = NULL;
return err;
}
err = xe_bo_pin(*bo);
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Intel-gfx] [PATCH v3 00/10] Clean-up Xe FBC additions
2023-06-02 10:39 [Intel-gfx] [PATCH v3 00/10] Clean-up Xe FBC additions Jouni Högander
2023-06-02 10:39 ` [Intel-gfx] [PATCH v3 01/10] Revert "drm/i915/display: Make FBC check stolen at use time." Jouni Högander
2023-06-02 10:39 ` [Intel-gfx] [PATCH v3 02/10] Revert "drm/i915/fbc: set compressed_fb to NULL on error" Jouni Högander
@ 2023-06-02 10:46 ` Hogander, Jouni
2 siblings, 0 replies; 4+ messages in thread
From: Hogander, Jouni @ 2023-06-02 10:46 UTC (permalink / raw)
To: intel-gfx@lists.freedesktop.org
Hello,
Sent this to wrong mailing list. Please ignore. Full set now sent
to intel-xe@lists.freedesktop.org. Sorry for the inconvenience.
BR,
Jouni Högander
On Fri, 2023-06-02 at 13:39 +0300, Jouni Högander wrote:
> This patch set cleans up Xe FBC additions. All stolen memory details
> are
> moved to i915_gem_stolen header and source files. Also some fence
> handling
> details are move away from FBC code. This allows removing all ifdefs
> added
> into fbc code.
>
> v3:
> - Move all the ifdef removals to fixup patch
> - Revert as necessary instead of modifying
> - intel_gt_fence_count -> intel_gt_legacy_fencing_support
> - Add !WARN_ON(1) to i915_gem_stolen defines that are not supposed
> to be
> used in case of Xe
> v2: add missing intel_gt_types.h header
>
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
>
> Jouni Högander (10):
> Revert "drm/i915/display: Make FBC check stolen at use time."
> Revert "drm/i915/fbc: set compressed_fb to NULL on error"
> Revert "drm/i915/display: Implement FBC support"
> fixup! drm/i915/display: Remaining changes to make xe compile
> drm/i915: Move stolen memory handling into i915_gem_stolen
> drm/xe: Xe stolen memory handling for fbc support
> drm/xe: Add i915_gem.h compatibility header
> drm/i915/fbc: Make FBC check stolen at use time
> drm/i915/fbc: Moved fence related code away from intel_fbc
> drm/xe: Add Xe implementation for fence checks used by fbc code
>
> drivers/gpu/drm/i915/display/intel_fbc.c | 139 ++++------------
> --
> drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 37 +++++
> drivers/gpu/drm/i915/gem/i915_gem_stolen.h | 13 ++
> drivers/gpu/drm/i915/gt/intel_gt_types.h | 2 +
> drivers/gpu/drm/i915/i915_vma.h | 5 +
> .../gpu/drm/xe/compat-i915-headers/i915_drv.h | 3 +
> .../gpu/drm/xe/compat-i915-headers/i915_gem.h | 9 ++
> .../xe/compat-i915-headers/i915_gem_stolen.h | 79 ++++++++++
> .../gpu/drm/xe/compat-i915-headers/i915_vma.h | 2 +
> .../xe/compat-i915-headers/intel_gt_types.h | 11 ++
> 10 files changed, 188 insertions(+), 112 deletions(-)
> create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/i915_gem.h
> create mode 100644 drivers/gpu/drm/xe/compat-i915-
> headers/i915_gem_stolen.h
> create mode 100644 drivers/gpu/drm/xe/compat-i915-
> headers/intel_gt_types.h
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-02 10:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-02 10:39 [Intel-gfx] [PATCH v3 00/10] Clean-up Xe FBC additions Jouni Högander
2023-06-02 10:39 ` [Intel-gfx] [PATCH v3 01/10] Revert "drm/i915/display: Make FBC check stolen at use time." Jouni Högander
2023-06-02 10:39 ` [Intel-gfx] [PATCH v3 02/10] Revert "drm/i915/fbc: set compressed_fb to NULL on error" Jouni Högander
2023-06-02 10:46 ` [Intel-gfx] [PATCH v3 00/10] Clean-up Xe FBC additions Hogander, Jouni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox