Skip to contentSkip to conversation

Compile out integrated

RFC In review Tvrtko Ursulin 4 participants 19 messages Feb 1, 2022 – Feb 8, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Compile out integrated

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked into that side.

 3884664  449681    6720 4341065  423d49 i915.ko.tip
 3599989  429034    6688 4035711  3d947f i915.ko.noigp

Note debug kconfig so everything is inflated. Whether or not the relative gain would change with production kconfig I am not sure.

P.S.
I was a bit curious there were no build errors around functions no longer used so either there were none (would mean patch is not really that effective), or something changed with compiler warnings/smarts. Haven't looked into it.

Tvrtko Ursulin (2):
igp kconfig
jsl/ehl

 drivers/gpu/drm/i915/Kconfig                  |   5 +
 drivers/gpu/drm/i915/Kconfig.platforms        |   7 +
 .../drm/i915/display/intel_ddi_buf_trans.c    |   4 +-
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c |   2 +-
 drivers/gpu/drm/i915/i915_drv.h               | 128 +++++++++++-------
 drivers/gpu/drm/i915/i915_pci.c               |  44 +++++-
 6 files changed, 134 insertions(+), 56 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/Kconfig.platforms
Signature · 1 line
2.32.0
#1 lore raw

RFC 1/2 igp kconfig

From: Tvrtko Ursulin <[email protected]>

---
 drivers/gpu/drm/i915/Kconfig           |   5 +
 drivers/gpu/drm/i915/Kconfig.platforms |   7 ++
 drivers/gpu/drm/i915/i915_drv.h        | 126 +++++++++++++++----------
 drivers/gpu/drm/i915/i915_pci.c        |  44 ++++++++-
 4 files changed, 129 insertions(+), 53 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/Kconfig.platforms
drivers/gpu/drm/i915/Kconfig +5 -0
index 2ac220bfd0ed..e8c2549ca433 100644
@@ -145,6 +145,11 @@ config DRM_I915_PXP
 	  protected session and manage the status of the alive software session,
 	  as well as its life cycle.
 
+menu "Platform support"
+depends on DRM_I915
+source "drivers/gpu/drm/i915/Kconfig.platforms"
+endmenu
+
 menu "drm/i915 Debugging"
 depends on DRM_I915
 depends on EXPERT
drivers/gpu/drm/i915/Kconfig.platforms new file +7 -0
new file mode 100644
index 000000000000..731be430cfad
@@ -0,0 +1,7 @@
+config DRM_I915_INTEGRATED_GPU_SUPPORT
+	bool "Support integrated GPUs"
+	default y
+	depends on DRM_I915
+	help
+	  Include support for integrated GPUs.
+
drivers/gpu/drm/i915/i915_drv.h +74 -52

194 lines not on this page · raw message

drivers/gpu/drm/i915/i915_pci.c +43 -1

294 lines not on this page · raw message

Signature · 1 line
2.32.0
#2 lore raw

RFC 2/2 jsl/ehl

In reply to Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

---
 drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c | 4 ++--
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c      | 2 +-
 drivers/gpu/drm/i915/i915_drv.h                    | 2 ++
 3 files changed, 5 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c +2 -2
index 0c32210bf503..37b48f7ab4fd 100644
@@ -1621,9 +1621,9 @@ void intel_ddi_buf_trans_init(struct intel_encoder *encoder)
 		else
 			encoder->get_buf_trans = tgl_get_dkl_buf_trans;
 	} else if (DISPLAY_VER(i915) == 11) {
-		if (IS_PLATFORM(i915, INTEL_JASPERLAKE))
+		if (IS_JASPERLAKE(i915))
 			encoder->get_buf_trans = jsl_get_combo_buf_trans;
-		else if (IS_PLATFORM(i915, INTEL_ELKHARTLAKE))
+		else if (IS_ELKHARTLAKE(i915))
 			encoder->get_buf_trans = ehl_get_combo_buf_trans;
 		else if (intel_phy_is_combo(i915, phy))
 			encoder->get_buf_trans = icl_get_combo_buf_trans;
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +1 -1
index 6723c3de5a80..0d9b970c453f 100644
@@ -2443,7 +2443,7 @@ static void icl_wrpll_params_populate(struct skl_wrpll_params *params,
 static bool
 ehl_combo_pll_div_frac_wa_needed(struct drm_i915_private *i915)
 {
-	return ((IS_PLATFORM(i915, INTEL_ELKHARTLAKE) &&
+	return ((IS_ELKHARTLAKE(i915) &&
 		 IS_JSL_EHL_DISPLAY_STEP(i915, STEP_B0, STEP_FOREVER)) ||
 		 IS_TIGERLAKE(i915) || IS_ALDERLAKE_P(i915)) &&
 		 i915->dpll.ref_clks.nssc == 38400;
drivers/gpu/drm/i915/i915_drv.h +2 -0
index 1d22d72163c1..241acd884135 100644
@@ -1271,6 +1271,8 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
 #define IS_COFFEELAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_COFFEELAKE)
 #define IS_COMETLAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_COMETLAKE)
 #define IS_ICELAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_ICELAKE)
+#define IS_JASPERLAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_JASPERLAKE)
+#define IS_ELKHARTLAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_ELKHARTLAKE)
 #define IS_JSL_EHL(dev_priv)	(IS_IGP_PLATFORM(dev_priv, INTEL_JASPERLAKE) || \
 				IS_IGP_PLATFORM(dev_priv, INTEL_ELKHARTLAKE))
 #define IS_TIGERLAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_TIGERLAKE)
Signature · 1 line
2.32.0
#3 lore raw

Re: [Intel-gfx] [RFC 2/2] jsl/ehl

Quoted 1 line · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Should be split out and posted independently.

Maybe we should consider s/IS_PLATFORM/__IS_PLATFORM/g too.

BR,
Jani.

Quoted 50 lines
---
 drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c | 4 ++--
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c      | 2 +-
 drivers/gpu/drm/i915/i915_drv.h                    | 2 ++
 3 files changed, 5 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c +2 -2
index 0c32210bf503..37b48f7ab4fd 100644
@@ -1621,9 +1621,9 @@ void intel_ddi_buf_trans_init(struct intel_encoder *encoder)
 		else
 			encoder->get_buf_trans = tgl_get_dkl_buf_trans;
 	} else if (DISPLAY_VER(i915) == 11) {
-		if (IS_PLATFORM(i915, INTEL_JASPERLAKE))
+		if (IS_JASPERLAKE(i915))
 			encoder->get_buf_trans = jsl_get_combo_buf_trans;
-		else if (IS_PLATFORM(i915, INTEL_ELKHARTLAKE))
+		else if (IS_ELKHARTLAKE(i915))
 			encoder->get_buf_trans = ehl_get_combo_buf_trans;
 		else if (intel_phy_is_combo(i915, phy))
 			encoder->get_buf_trans = icl_get_combo_buf_trans;
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +1 -1
index 6723c3de5a80..0d9b970c453f 100644
@@ -2443,7 +2443,7 @@ static void icl_wrpll_params_populate(struct skl_wrpll_params *params,
 static bool
 ehl_combo_pll_div_frac_wa_needed(struct drm_i915_private *i915)
 {
-	return ((IS_PLATFORM(i915, INTEL_ELKHARTLAKE) &&
+	return ((IS_ELKHARTLAKE(i915) &&
 		 IS_JSL_EHL_DISPLAY_STEP(i915, STEP_B0, STEP_FOREVER)) ||
 		 IS_TIGERLAKE(i915) || IS_ALDERLAKE_P(i915)) &&
 		 i915->dpll.ref_clks.nssc == 38400;
drivers/gpu/drm/i915/i915_drv.h +2 -0
index 1d22d72163c1..241acd884135 100644
@@ -1271,6 +1271,8 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
 #define IS_COFFEELAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_COFFEELAKE)
 #define IS_COMETLAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_COMETLAKE)
 #define IS_ICELAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_ICELAKE)
+#define IS_JASPERLAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_JASPERLAKE)
+#define IS_ELKHARTLAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_ELKHARTLAKE)
 #define IS_JSL_EHL(dev_priv)	(IS_IGP_PLATFORM(dev_priv, INTEL_JASPERLAKE) || \
 				IS_IGP_PLATFORM(dev_priv, INTEL_ELKHARTLAKE))
 #define IS_TIGERLAKE(dev_priv)	IS_IGP_PLATFORM(dev_priv, INTEL_TIGERLAKE)
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
#4 lore raw

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Compile out integrated

In reply to Tvrtko Ursulin
== Series Details ==

== Series Details ==

Series: Compile out integrated
URL : https://patchwork.freedesktop.org/series/99570/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
15e05554122b igp kconfig
-:7: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one

-:18: WARNING:EMBEDDED_FILENAME: It's generally not useful to have the filename in the file #18: FILE: drivers/gpu/drm/i915/Kconfig:150:
+source "drivers/gpu/drm/i915/Kconfig.platforms"

-:25: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #25:
new file mode 100644

-:30: WARNING:CONFIG_DESCRIPTION: please write a help paragraph that fully describes the config symbol #30: FILE: drivers/gpu/drm/i915/Kconfig.platforms:1:
+config DRM_I915_INTEGRATED_GPU_SUPPORT
+ bool "Support integrated GPUs"
+ default y
+ depends on DRM_I915
+ help
+ Include support for integrated GPUs.
+

-:50: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'i915' - possible side-effects? #50: FILE: drivers/gpu/drm/i915/i915_drv.h:1126:
+#define IS_GRAPHICS_VER(i915, from, until) \
+({ \
+ const unsigned int s_ = 12; \
+ const unsigned int e_ = UINT_MAX; \
+ unsigned int res_; \
+ \
+ if ((s_ > (from) ? (s_): (from)) <= ((e_) < (until)? (e_): (until))) \
+ res_ = GRAPHICS_VER(i915) >= (from) && \
+ GRAPHICS_VER(i915) <= (until); \
+ else \
+ res_ = 0; \
+ \
+ (res_); \
+})

-:50: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'from' - possible side-effects? #50: FILE: drivers/gpu/drm/i915/i915_drv.h:1126:
+#define IS_GRAPHICS_VER(i915, from, until) \
+({ \
+ const unsigned int s_ = 12; \
+ const unsigned int e_ = UINT_MAX; \
+ unsigned int res_; \
+ \
+ if ((s_ > (from) ? (s_): (from)) <= ((e_) < (until)? (e_): (until))) \
+ res_ = GRAPHICS_VER(i915) >= (from) && \
+ GRAPHICS_VER(i915) <= (until); \
+ else \
+ res_ = 0; \
+ \
+ (res_); \
+})

-:50: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'until' - possible side-effects? #50: FILE: drivers/gpu/drm/i915/i915_drv.h:1126:
+#define IS_GRAPHICS_VER(i915, from, until) \
+({ \
+ const unsigned int s_ = 12; \
+ const unsigned int e_ = UINT_MAX; \
+ unsigned int res_; \
+ \
+ if ((s_ > (from) ? (s_): (from)) <= ((e_) < (until)? (e_): (until))) \
+ res_ = GRAPHICS_VER(i915) >= (from) && \
+ GRAPHICS_VER(i915) <= (until); \
+ else \
+ res_ = 0; \
+ \
+ (res_); \
+})

-:55: WARNING:LEADING_SPACE: please, no spaces at the start of a line #55: FILE: drivers/gpu/drm/i915/i915_drv.h:1131:
+ \$

-:56: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #56: FILE: drivers/gpu/drm/i915/i915_drv.h:1132:
+ if ((s_ > (from) ? (s_): (from)) <= ((e_) < (until)? (e_): (until))) \
^

-:56: ERROR:SPACING: spaces required around that '?' (ctx:VxW) #56: FILE: drivers/gpu/drm/i915/i915_drv.h:1132:
+ if ((s_ > (from) ? (s_): (from)) <= ((e_) < (until)? (e_): (until))) \
^

-:56: ERROR:SPACING: spaces required around that ':' (ctx:VxW) #56: FILE: drivers/gpu/drm/i915/i915_drv.h:1132:
+ if ((s_ > (from) ? (s_): (from)) <= ((e_) < (until)? (e_): (until))) \
^

-:61: WARNING:LEADING_SPACE: please, no spaces at the start of a line #61: FILE: drivers/gpu/drm/i915/i915_drv.h:1137:
+ \$

-:145: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'dev_priv' - possible side-effects? #145: FILE: drivers/gpu/drm/i915/i915_drv.h:1274:
+#define IS_JSL_EHL(dev_priv) (IS_IGP_PLATFORM(dev_priv, INTEL_JASPERLAKE) || \
+ IS_IGP_PLATFORM(dev_priv, INTEL_ELKHARTLAKE))

-:162: WARNING:LONG_LINE: line length of 106 exceeds 100 columns #162: FILE: drivers/gpu/drm/i915/i915_drv.h:1288:
+ (IS_ALDERLAKE_S(dev_priv) && IS_SUBPLATFORM(dev_priv, INTEL_ALDERLAKE_S, INTEL_SUBPLATFORM_RPL_S))

-:165: WARNING:LONG_LINE: line length of 102 exceeds 100 columns #165: FILE: drivers/gpu/drm/i915/i915_drv.h:1290:
+ (IS_ALDERLAKE_P(dev_priv) && IS_SUBPLATFORM(dev_priv, INTEL_ALDERLAKE_P, INTEL_SUBPLATFORM_N))

-:207: WARNING:LONG_LINE: line length of 102 exceeds 100 columns #207: FILE: drivers/gpu/drm/i915/i915_drv.h:1327:
+ (IS_COFFEELAKE(dev_priv) && IS_SUBPLATFORM(dev_priv, INTEL_COFFEELAKE, INTEL_SUBPLATFORM_ULT))

-:210: WARNING:LONG_LINE: line length of 102 exceeds 100 columns #210: FILE: drivers/gpu/drm/i915/i915_drv.h:1329:
+ (IS_COFFEELAKE(dev_priv) && IS_SUBPLATFORM(dev_priv, INTEL_COFFEELAKE, INTEL_SUBPLATFORM_ULX))

total: 3 errors, 10 warnings, 4 checks, 506 lines checked 528a41163c0e jsl/ehl
-:7: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one

total: 0 errors, 1 warnings, 0 checks, 27 lines checked

#6 lore raw

[Intel-gfx] ✓ Fi.CI.BAT: success for Compile out integrated

In reply to Tvrtko Ursulin
== Series Details ==

== Series Details ==

Series: Compile out integrated
URL : https://patchwork.freedesktop.org/series/99570/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_11172 -> Patchwork_22149
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/index.html

Participating hosts (45 -> 44)
------------------------------

Additional (1): fi-pnv-d510
Missing (2): shard-tglu fi-bdw-samus

Known issues
------------

Here are the changes found in Patchwork_22149 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_flink_basic@bad-flink:
- fi-skl-6600u: [PASS][1] -> [FAIL][2] ([i915#4547])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/fi-skl-6600u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/fi-skl-6600u/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-pnv-d510: NOTRUN -> [SKIP][3] ([fdo#109271]) +57 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/fi-pnv-d510/igt@[email protected]

* igt@gem_lmem_swapping@verify-random:
- fi-bsw-nick: NOTRUN -> [SKIP][4] ([fdo#109271]) +62 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/fi-bsw-nick/igt@[email protected]

* igt@i915_selftest@live@hangcheck:
- fi-hsw-4770: [PASS][5] -> [INCOMPLETE][6] ([i915#3303])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/fi-hsw-4770/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/fi-hsw-4770/igt@i915_selftest@[email protected]

* igt@kms_chamelium@vga-edid-read:
- fi-bsw-nick: NOTRUN -> [SKIP][7] ([fdo#109271] / [fdo#111827]) +8 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/fi-bsw-nick/igt@[email protected]

* igt@runner@aborted:
- fi-hsw-4770: NOTRUN -> [FAIL][8] ([fdo#109271] / [i915#1436] / [i915#4312])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/fi-hsw-4770/igt@[email protected]

#### Possible fixes ####

* igt@gem_ctx_exec@basic:
- fi-bsw-nick: [DMESG-WARN][9] ([i915#3428]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/fi-bsw-nick/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/fi-bsw-nick/igt@[email protected]

#### Warnings ####

* igt@i915_selftest@live@requests:
- fi-blb-e6850: [DMESG-FAIL][11] ([i915#5026]) -> [DMESG-FAIL][12] ([i915#4528] / [i915#5026])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/fi-blb-e6850/igt@i915_selftest@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/fi-blb-e6850/igt@i915_selftest@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303
[i915#3428]: https://gitlab.freedesktop.org/drm/intel/issues/3428
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4528]: https://gitlab.freedesktop.org/drm/intel/issues/4528
[i915#4547]: https://gitlab.freedesktop.org/drm/intel/issues/4547
[i915#4898]: https://gitlab.freedesktop.org/drm/intel/issues/4898
[i915#5026]: https://gitlab.freedesktop.org/drm/intel/issues/5026

Build changes
-------------

* Linux: CI_DRM_11172 -> Patchwork_22149

CI-20190529: 20190529
CI_DRM_11172: 466c37c518256a1c79ed5f6ed4d3db1866c17910 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6337: 7c9c034619ef9dbfbfe041fbf3973a1cf1ac7a22 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_22149: 528a41163c0e7f41362b7fcbb2b0934797df1e21 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

528a41163c0e jsl/ehl
15e05554122b igp kconfig

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/index.html

#7 lore raw
In reply to Tvrtko Ursulin
Quoted 9 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked into that side.

3884664  449681    6720 4341065  423d49 i915.ko.tip
3599989  429034    6688 4035711  3d947f i915.ko.noigp

By these numbers probably it's hard to justify. Another thing to consider is that it's very common to have on the same system both integrated and discrete - doing this would remove at compile time any chance of driving the integrated one.

Lucas De Marchi

Quoted 25 lines

Note debug kconfig so everything is inflated. Whether or not the relative gain would change with production kconfig I am not sure.

P.S.
I was a bit curious there were no build errors around functions no longer used so either there were none (would mean patch is not really that effective), or something changed with compiler warnings/smarts. Haven't looked into it.

Tvrtko Ursulin (2):
igp kconfig
jsl/ehl

drivers/gpu/drm/i915/Kconfig                  |   5 +
drivers/gpu/drm/i915/Kconfig.platforms        |   7 +
.../drm/i915/display/intel_ddi_buf_trans.c    |   4 +-
drivers/gpu/drm/i915/display/intel_dpll_mgr.c |   2 +-
drivers/gpu/drm/i915/i915_drv.h               | 128 +++++++++++-------
drivers/gpu/drm/i915/i915_pci.c               |  44 +++++-
6 files changed, 134 insertions(+), 56 deletions(-)

create mode 100644 drivers/gpu/drm/i915/Kconfig.platforms

Signature · 1 line
2.32.0
#8 lore raw
Quoted 8 lines · Lucas De Marchi
Quoted 7 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked into that side.

Quoted 7 lines
Quoted 2 lines
3884664  449681    6720 4341065  423d49 i915.ko.tip
3599989  429034    6688 4035711  3d947f i915.ko.noigp

By these numbers probably it's hard to justify. Another thing to consider is that it's very common to have on the same system both integrated and discrete - doing this would remove at compile time any chance of driving the integrated one.

I guess the point was, the arm systems won't have integrated, and it's anyway going to be a separate build.

BR,
Jani.

Quoted 28 lines

Lucas De Marchi

Quoted 25 lines

Note debug kconfig so everything is inflated. Whether or not the relative gain would change with production kconfig I am not sure.

P.S.
I was a bit curious there were no build errors around functions no longer used so either there were none (would mean patch is not really that effective), or something changed with compiler warnings/smarts. Haven't looked into it.

Tvrtko Ursulin (2):
igp kconfig
jsl/ehl

drivers/gpu/drm/i915/Kconfig                  |   5 +
drivers/gpu/drm/i915/Kconfig.platforms        |   7 +
.../drm/i915/display/intel_ddi_buf_trans.c    |   4 +-
drivers/gpu/drm/i915/display/intel_dpll_mgr.c |   2 +-
drivers/gpu/drm/i915/i915_drv.h               | 128 +++++++++++-------
drivers/gpu/drm/i915/i915_pci.c               |  44 +++++-
6 files changed, 134 insertions(+), 56 deletions(-)

create mode 100644 drivers/gpu/drm/i915/Kconfig.platforms

Signature · 1 line
2.32.0
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
#9 lore raw
Quoted 12 lines · Jani Nikula
Quoted 11 lines · Lucas De Marchi
Quoted 9 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked into that side.

3884664  449681    6720 4341065  423d49 i915.ko.tip
3599989  429034    6688 4035711  3d947f i915.ko.noigp
Quoted 7 lines
Quoted 4 lines

By these numbers probably it's hard to justify. Another thing to consider is that it's very common to have on the same system both integrated and discrete - doing this would remove at compile time any chance of driving the integrated one.

I guess the point was, the arm systems won't have integrated, and it's anyway going to be a separate build.

so probably the focus and argument here should not be about size reduction. From patch 1 I see:

+config DRM_I915_INTEGRATED_GPU_SUPPORT

+       bool "Support integrated GPUs"
+       default y
+       depends on DRM_I915
+       help

+ Include support for integrated GPUs.

If it's something that depends on arch rather than providing an option in menuconfig, then I think it could be some interesting investigation. However, I can't see how it would help with removing some code paths in the driver (e.g. the clflush() calls we were talking about in another patch series) since the code elimination would all happen at link time.

Lucas De Marchi

Quoted 36 lines

BR,
Jani.

Quoted 28 lines

Lucas De Marchi

Quoted 25 lines

Note debug kconfig so everything is inflated. Whether or not the relative gain would change with production kconfig I am not sure.

P.S.
I was a bit curious there were no build errors around functions no longer used so either there were none (would mean patch is not really that effective), or something changed with compiler warnings/smarts. Haven't looked into it.

Tvrtko Ursulin (2):
igp kconfig
jsl/ehl

drivers/gpu/drm/i915/Kconfig                  |   5 +
drivers/gpu/drm/i915/Kconfig.platforms        |   7 +
.../drm/i915/display/intel_ddi_buf_trans.c    |   4 +-
drivers/gpu/drm/i915/display/intel_dpll_mgr.c |   2 +-
drivers/gpu/drm/i915/i915_drv.h               | 128 +++++++++++-------
drivers/gpu/drm/i915/i915_pci.c               |  44 +++++-
6 files changed, 134 insertions(+), 56 deletions(-)

create mode 100644 drivers/gpu/drm/i915/Kconfig.platforms

--
2.32.0

Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
#10 lore raw
Quoted 31 lines · Lucas De Marchi
Quoted 12 lines · Jani Nikula
Quoted 11 lines · Lucas De Marchi
Quoted 9 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked into that side.

3884664  449681    6720 4341065  423d49 i915.ko.tip 3599989  429034    6688 4035711  3d947f i915.ko.noigp

Quoted 7 lines
Quoted 4 lines

By these numbers probably it's hard to justify. Another thing to consider is that it's very common to have on the same system both integrated and discrete - doing this would remove at compile time any chance of driving the integrated one.

I guess the point was, the arm systems won't have integrated, and it's anyway going to be a separate build.

so probably the focus and argument here should not be about size reduction. From patch 1 I see:

+config DRM_I915_INTEGRATED_GPU_SUPPORT
+       bool "Support integrated GPUs"
+       default y
+       depends on DRM_I915
+       help
+         Include support for integrated GPUs.

Quoted 6 lines

If it's something that depends on arch rather than providing an option in menuconfig, then I think it could be some interesting investigation. However, I can't see how it would help with removing some code paths in the driver (e.g. the clflush() calls we were talking about in another patch series) since the code elimination would all happen at link time.

Clflush class of problems is yet another orthogonal set of problems.

Yes, idea was that the Kconfig option would be selected by Arm, or deselected by x86, whatever. But there is also a case for letting it be user visible.

In general, I thought at least, we should look into not building/deploying binary code for irrelevant hardware on Arm builds. If that is clear and agreeable then I think the approach how to get there is really multi-pronged.

1)
What you are partly doing with "clflush" type series. Make Arm relevant code paths actually compile on Arm.

2a)
What I sent in this series - it's simple/easy dead code elimination from a single compilation unit.

2b)
*If* we resurrected GRAPHICS_VER check where "ver" is part of the macro, eg. not doing "if (GRAPHICS_VER <=> N)" but "if (GRAPHICS_VERN)", or "if IS_GRAPHICS_VER(N, FOREVER)", then the same approach would be more effective.

Because if N or range is the macro parameter, we can make it dead code based on Kconfig.

This is what I demonstrated few years ago by being able to compile out ~3rd of a driver when selecting only execlists platforms, AFAIR.

And which is why I was a bit unhappy this was getting removed not so long ago.

3)
Complex step is putting LTO into use to allow dead code elimination between compilation units. Think:

file1.c:
RUNTIME_INFO->needs_blah = IS_PLATFORM && blah

file2.c
if (RUNTIME_INFO->needs_blah)
..dead code eliminated by LTO only..

Few years ago Andi Kleen had a proof of concept of KBuild LTO but I don't know what is the status of that. If LTO can be enabled then work from steps 2a&b automatically works much much better.

4)
If LTO is not there yet maybe see how to slightly refactor the code so that we can completely drop compilation units from the Makefile. Drop files like gt/intel_ring_submission.c, or similar if we have or can create candidates.

Regards,

Tvrtko

#11 lore raw
Quoted 68 lines · Tvrtko Ursulin
Quoted 35 lines · Lucas De Marchi
Quoted 15 lines · Jani Nikula
Quoted 14 lines · Lucas De Marchi
Quoted 12 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might
interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so
big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked
into that side.

3884664  449681    6720 4341065  423d49 i915.ko.tip 3599989  429034    6688 4035711  3d947f i915.ko.noigp

Quoted 8 lines
Quoted 5 lines

By these numbers probably it's hard to justify. Another thing to consider
is that it's very common to have on the same system both integrated and discrete - doing this would remove at compile time any chance of driving the integrated one.

I guess the point was, the arm systems won't have integrated, and it's anyway going to be a separate build.

so probably the focus and argument here should not be about size reduction. From patch 1 I see:

+config DRM_I915_INTEGRATED_GPU_SUPPORT
+       bool "Support integrated GPUs"
+       default y
+       depends on DRM_I915
+       help
+         Include support for integrated GPUs.

Quoted 6 lines

If it's something that depends on arch rather than providing an option in menuconfig, then I think it could be some interesting investigation. However, I can't see how it would help with removing some code paths in the driver (e.g. the clflush() calls we were talking about in another patch series) since the code elimination would all happen at link time.

Clflush class of problems is yet another orthogonal set of problems.

Yes, idea was that the Kconfig option would be selected by Arm, or deselected by x86, whatever. But there is also a case for letting it be user visible.

In general, I thought at least, we should look into not building/deploying binary code for irrelevant hardware on Arm builds. If that is clear and agreeable then I think the approach how to get there is really multi-pronged.

1)
What you are partly doing with "clflush" type series. Make Arm relevant code paths actually compile on Arm.

2a)
What I sent in this series - it's simple/easy dead code elimination from a single compilation unit.

2b)
*If* we resurrected GRAPHICS_VER check where "ver" is part of the macro, eg. not doing "if (GRAPHICS_VER <=> N)" but "if (GRAPHICS_VERN)", or "if IS_GRAPHICS_VER(N, FOREVER)", then the same approach would be more effective.

Quoted 8 lines

Because if N or range is the macro parameter, we can make it dead code based on Kconfig.

This is what I demonstrated few years ago by being able to compile out ~3rd of a driver when selecting only execlists platforms, AFAIR.

And which is why I was a bit unhappy this was getting removed not so long ago.

The main problem with that, as well as the Kconfig here, is maintenance.

If it's fancy but unused, it's just added complexity for no benefit, just the drawbacks. Every change needs to take the complexity into account. If it's unused and untested, it's just going to bitrot anyway.

For example, I think a config option for disabling igfx should have both build and runtime testing in place before we should consider taking on the burden of maintaining it. Otherwise it's just haphazard struggle, and the burden falls on a handful of interested people working on it on the side, occasionally fixing things as they break. And they'll break because nobody else cares.

If someone shows up and says i915.ko is too big, they need to be serious enough to invest in maintaining the configurable size reductions, per target platform.

BR,
Jani.

Quoted 25 lines

3)
Complex step is putting LTO into use to allow dead code elimination between compilation units. Think:

file1.c:
RUNTIME_INFO->needs_blah = IS_PLATFORM && blah

file2.c
if (RUNTIME_INFO->needs_blah)
..dead code eliminated by LTO only..

Few years ago Andi Kleen had a proof of concept of KBuild LTO but I don't know what is the status of that. If LTO can be enabled then work from steps 2a&b automatically works much much better.

4)
If LTO is not there yet maybe see how to slightly refactor the code so that we can completely drop compilation units from the Makefile. Drop files like gt/intel_ring_submission.c, or similar if we have or can create candidates.

Regards,

Tvrtko

Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
#12 lore raw
Quoted 91 lines · Jani Nikula
Quoted 68 lines · Tvrtko Ursulin
Quoted 35 lines · Lucas De Marchi
Quoted 15 lines · Jani Nikula
Quoted 14 lines · Lucas De Marchi
Quoted 12 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might
interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so
big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked
into that side.

3884664  449681    6720 4341065  423d49 i915.ko.tip 3599989  429034    6688 4035711  3d947f i915.ko.noigp

Quoted 8 lines
Quoted 5 lines

By these numbers probably it's hard to justify. Another thing to consider
is that it's very common to have on the same system both integrated and discrete - doing this would remove at compile time any chance of driving the integrated one.

I guess the point was, the arm systems won't have integrated, and it's anyway going to be a separate build.

so probably the focus and argument here should not be about size reduction. From patch 1 I see:

+config DRM_I915_INTEGRATED_GPU_SUPPORT
+       bool "Support integrated GPUs"
+       default y
+       depends on DRM_I915
+       help
+         Include support for integrated GPUs.

Quoted 6 lines

If it's something that depends on arch rather than providing an option in menuconfig, then I think it could be some interesting investigation. However, I can't see how it would help with removing some code paths in the driver (e.g. the clflush() calls we were talking about in another patch series) since the code elimination would all happen at link time.

Clflush class of problems is yet another orthogonal set of problems.

Yes, idea was that the Kconfig option would be selected by Arm, or deselected by x86, whatever. But there is also a case for letting it be user visible.

In general, I thought at least, we should look into not building/deploying binary code for irrelevant hardware on Arm builds. If that is clear and agreeable then I think the approach how to get there is really multi-pronged.

1)
What you are partly doing with "clflush" type series. Make Arm relevant code paths actually compile on Arm.

2a)
What I sent in this series - it's simple/easy dead code elimination from a single compilation unit.

2b)
*If* we resurrected GRAPHICS_VER check where "ver" is part of the macro, eg. not doing "if (GRAPHICS_VER <=> N)" but "if (GRAPHICS_VERN)", or "if IS_GRAPHICS_VER(N, FOREVER)", then the same approach would be more effective.

Quoted 8 lines

Because if N or range is the macro parameter, we can make it dead code based on Kconfig.

This is what I demonstrated few years ago by being able to compile out ~3rd of a driver when selecting only execlists platforms, AFAIR.

And which is why I was a bit unhappy this was getting removed not so long ago.

The main problem with that, as well as the Kconfig here, is maintenance.

If it's fancy but unused, it's just added complexity for no benefit, just the drawbacks. Every change needs to take the complexity into account. If it's unused and untested, it's just going to bitrot anyway.

For example, I think a config option for disabling igfx should have both build and runtime testing in place before we should consider taking on the burden of maintaining it. Otherwise it's just haphazard struggle, and the burden falls on a handful of interested people working on it on the side, occasionally fixing things as they break. And they'll break because nobody else cares.

Quoted 3 lines

If someone shows up and says i915.ko is too big, they need to be serious enough to invest in maintaining the configurable size reductions, per target platform.

Yeah no disagreement for the most part.

Whether there is a cheap way (as in maintenance/intrusiveness) which brings gains large enough.

In my view it is also not a question of "too big" per se, but a question of professional pride of doing things properly, even if it is hard, instead of padding the binaries with dead code and sending them on rounds over the world, to "use electrons" unreachable on uncountable hypothetical customer machines and travel as updates over undersea cables for no use. :D Just because we, sitting on the source/upstream, decided it's too hard.

Not pressuring anything though, we are not quite there yet to worry about scale deployments of Intel discrete on !x86. There is time. :) I've thrown some seeds out there, if they don't take, they don't. It is fine to tackle the "make it build and work" steps first.

Regards,

Tvrtko

#13 lore raw
Quoted 101 lines · Tvrtko Ursulin
Quoted 91 lines · Jani Nikula
Quoted 68 lines · Tvrtko Ursulin
Quoted 35 lines · Lucas De Marchi
Quoted 15 lines · Jani Nikula
Quoted 14 lines · Lucas De Marchi
Quoted 12 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might
interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so
big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked
into that side.

3884664  449681    6720 4341065  423d49 i915.ko.tip 3599989  429034    6688 4035711  3d947f i915.ko.noigp

Quoted 8 lines
Quoted 5 lines

By these numbers probably it's hard to justify. Another thing to consider
is that it's very common to have on the same system both integrated and discrete - doing this would remove at compile time any chance of driving the integrated one.

I guess the point was, the arm systems won't have integrated, and it's anyway going to be a separate build.

so probably the focus and argument here should not be about size reduction. From patch 1 I see:

+config DRM_I915_INTEGRATED_GPU_SUPPORT
+       bool "Support integrated GPUs"
+       default y
+       depends on DRM_I915
+       help
+         Include support for integrated GPUs.

Quoted 6 lines

If it's something that depends on arch rather than providing an option in menuconfig, then I think it could be some interesting investigation. However, I can't see how it would help with removing some code paths in the driver (e.g. the clflush() calls we were talking about in another patch series) since the code elimination would all happen at link time.

Clflush class of problems is yet another orthogonal set of problems.

Yes, idea was that the Kconfig option would be selected by Arm, or deselected by x86, whatever. But there is also a case for letting it be user visible.

In general, I thought at least, we should look into not building/deploying binary code for irrelevant hardware on Arm builds. If that is clear and agreeable then I think the approach how to get there is really multi-pronged.

1)
What you are partly doing with "clflush" type series. Make Arm relevant code paths actually compile on Arm.

2a)
What I sent in this series - it's simple/easy dead code elimination from a single compilation unit.

2b)
*If* we resurrected GRAPHICS_VER check where "ver" is part of the macro, eg. not doing "if (GRAPHICS_VER <=> N)" but "if (GRAPHICS_VERN)", or "if IS_GRAPHICS_VER(N, FOREVER)", then the same approach would be more effective.

Quoted 8 lines

Because if N or range is the macro parameter, we can make it dead code based on Kconfig.

This is what I demonstrated few years ago by being able to compile out ~3rd of a driver when selecting only execlists platforms, AFAIR.

And which is why I was a bit unhappy this was getting removed not so long ago.

The main problem with that, as well as the Kconfig here, is maintenance.

If it's fancy but unused, it's just added complexity for no benefit, just the drawbacks. Every change needs to take the complexity into account. If it's unused and untested, it's just going to bitrot anyway.

For example, I think a config option for disabling igfx should have both build and runtime testing in place before we should consider taking on the burden of maintaining it. Otherwise it's just haphazard struggle, and the burden falls on a handful of interested people working on it on the side, occasionally fixing things as they break. And they'll break because nobody else cares.

Quoted 3 lines

If someone shows up and says i915.ko is too big, they need to be serious enough to invest in maintaining the configurable size reductions, per target platform.

Yeah no disagreement for the most part.

Whether there is a cheap way (as in maintenance/intrusiveness) which brings gains large enough.

Quoted 7 lines

In my view it is also not a question of "too big" per se, but a question of professional pride of doing things properly, even if it is hard, instead of padding the binaries with dead code and sending them on rounds over the world, to "use electrons" unreachable on uncountable hypothetical customer machines and travel as updates over undersea cables for no use. :D Just because we, sitting on the source/upstream, decided it's too hard.

Well, not because it's too hard, but mostly because of picking the battles? Also a matter of taste in what constitutes as professional pride. If it's worth doing, it's worth doing properly?

But I guess we are, mostly, on the same page here.

BR,
Jani.

Quoted 9 lines

Not pressuring anything though, we are not quite there yet to worry about scale deployments of Intel discrete on !x86. There is time. :) I've thrown some seeds out there, if they don't take, they don't. It is fine to tackle the "make it build and work" steps first.

Regards,

Tvrtko

Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
#14 lore raw
In reply to Tvrtko Ursulin
Quoted 40 lines · Tvrtko Ursulin
Quoted 31 lines · Lucas De Marchi
Quoted 12 lines · Jani Nikula
Quoted 11 lines · Lucas De Marchi
Quoted 9 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked into that side.

3884664  449681    6720 4341065  423d49 i915.ko.tip 3599989  429034    6688 4035711  3d947f i915.ko.noigp

Quoted 7 lines
Quoted 4 lines

By these numbers probably it's hard to justify. Another thing to consider is that it's very common to have on the same system both integrated and discrete - doing this would remove at compile time any chance of driving the integrated one.

I guess the point was, the arm systems won't have integrated, and it's anyway going to be a separate build.

so probably the focus and argument here should not be about size reduction. From patch 1 I see:

+config DRM_I915_INTEGRATED_GPU_SUPPORT
+       bool "Support integrated GPUs"
+       default y
+       depends on DRM_I915
+       help
+         Include support for integrated GPUs.

Quoted 6 lines

If it's something that depends on arch rather than providing an option in menuconfig, then I think it could be some interesting investigation. However, I can't see how it would help with removing some code paths in the driver (e.g. the clflush() calls we were talking about in another patch series) since the code elimination would all happen at link time.

Quoted 8 lines

Clflush class of problems is yet another orthogonal set of problems.

Yes, idea was that the Kconfig option would be selected by Arm, or deselected by x86, whatever. But there is also a case for letting it be user visible.

In general, I thought at least, we should look into not building/deploying binary code for irrelevant hardware on Arm builds. If that is clear and agreeable then I think the approach how to get there is really multi-pronged.

1)
What you are partly doing with "clflush" type series. Make Arm relevant code paths actually compile on Arm.

to be clear, the goal is to be more architecture independent and this is being tested with arm64.

Quoted 8 lines

2a)
What I sent in this series - it's simple/easy dead code elimination from a single compilation unit.

2b)
*If* we resurrected GRAPHICS_VER check where "ver" is part of the macro, eg. not doing "if (GRAPHICS_VER <=> N)" but "if (GRAPHICS_VERN)", or "if IS_GRAPHICS_VER(N, FOREVER)", then the same approach would be more effective.

Because if N or range is the macro parameter, we can make it dead code based on Kconfig.

yes I remember that. But when it was done the IS_GRAPHICS_VER() was already not much used. I doubt the handful places it was used in would change much of the overall picture we had at that point.

Quoted 10 lines

This is what I demonstrated few years ago by being able to compile out ~3rd of a driver when selecting only execlists platforms, AFAIR.

And which is why I was a bit unhappy this was getting removed not so long ago.

3)
Complex step is putting LTO into use to allow dead code elimination between compilation units. Think:

file1.c:
RUNTIME_INFO->needs_blah = IS_PLATFORM && blah

Quoted 8 lines

file2.c
if (RUNTIME_INFO->needs_blah)
..dead code eliminated by LTO only..

Few years ago Andi Kleen had a proof of concept of KBuild LTO but I don't know what is the status of that. If LTO can be enabled then work from steps 2a&b automatically works much much better.

4)
If LTO is not there yet maybe see how to slightly refactor the code so that we can completely drop compilation units from the Makefile. Drop files like gt/intel_ring_submission.c, or similar if we have or can create candidates.

I think this is something we have to do and to go after. I think it's more future-proof to organize the code to have a better separation of platforms, instead of relying on the linker to do the dead code elimination based on user selection.

I'm fine with compiling out stuff on i915 right now because "this can only and will ever (as far as we know) work on x86". I'm more reluctant about adding a build option though. For the same reasons Jani mentioned and that it suddenly may open the doors for a matrix of configuration (e.g. build with/without display, or rc6, or dsi, or name-the-feature-you-dont-want).

Lucas De Marchi

Quoted 4 lines

Regards,

Tvrtko

#15 lore raw
Quoted 57 lines · Lucas De Marchi
Quoted 40 lines · Tvrtko Ursulin
Quoted 31 lines · Lucas De Marchi
Quoted 12 lines · Jani Nikula
Quoted 11 lines · Lucas De Marchi
Quoted 9 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked into that side.

3884664  449681    6720 4341065  423d49 i915.ko.tip 3599989  429034    6688 4035711  3d947f i915.ko.noigp

Quoted 7 lines
Quoted 4 lines

By these numbers probably it's hard to justify. Another thing to consider is that it's very common to have on the same system both integrated and discrete - doing this would remove at compile time any chance of driving the integrated one.

I guess the point was, the arm systems won't have integrated, and it's anyway going to be a separate build.

so probably the focus and argument here should not be about size reduction. From patch 1 I see:

+config DRM_I915_INTEGRATED_GPU_SUPPORT
+       bool "Support integrated GPUs"
+       default y
+       depends on DRM_I915
+       help
+         Include support for integrated GPUs.

Quoted 6 lines

If it's something that depends on arch rather than providing an option in menuconfig, then I think it could be some interesting investigation. However, I can't see how it would help with removing some code paths in the driver (e.g. the clflush() calls we were talking about in another patch series) since the code elimination would all happen at link time.

Quoted 8 lines

Clflush class of problems is yet another orthogonal set of problems.

Yes, idea was that the Kconfig option would be selected by Arm, or deselected by x86, whatever. But there is also a case for letting it be user visible.

In general, I thought at least, we should look into not building/deploying binary code for irrelevant hardware on Arm builds. If that is clear and agreeable then I think the approach how to get there is really multi-pronged.

1)
What you are partly doing with "clflush" type series. Make Arm relevant code paths actually compile on Arm.

to be clear, the goal is to be more architecture independent and this is being tested with arm64.

Quoted 4 lines

2a)
What I sent in this series - it's simple/easy dead code elimination from a single compilation unit.

Quoted 8 lines
Quoted 4 lines

2b)
*If* we resurrected GRAPHICS_VER check where "ver" is part of the macro, eg. not doing "if (GRAPHICS_VER <=> N)" but "if (GRAPHICS_VERN)", or "if IS_GRAPHICS_VER(N, FOREVER)", then the same approach would be more effective.

Because if N or range is the macro parameter, we can make it dead code based on Kconfig.

yes I remember that. But when it was done the IS_GRAPHICS_VER() was already not much used. I doubt the handful places it was used in would change much of the overall picture we had at that point.

Right, I was referring to the time when N is inside the macro. Like before IS_GEN(p, N) was replaced with GRAPHICS_VER, when N went outside the macro.

Quoted 16 lines
Quoted 16 lines

This is what I demonstrated few years ago by being able to compile out ~3rd of a driver when selecting only execlists platforms, AFAIR.

And which is why I was a bit unhappy this was getting removed not so long ago.

3)
Complex step is putting LTO into use to allow dead code elimination between compilation units. Think:

file1.c:
RUNTIME_INFO->needs_blah = IS_PLATFORM && blah

file2.c
if (RUNTIME_INFO->needs_blah)
  ..dead code eliminated by LTO only..

Few years ago Andi Kleen had a proof of concept of KBuild LTO but I don't know what is the status of that. If LTO can be enabled then work from steps 2a&b automatically works much much better.

Quoted 7 lines
Quoted 2 lines

4)
If LTO is not there yet maybe see how to slightly refactor the code so that we can completely drop compilation units from the Makefile. Drop files like gt/intel_ring_submission.c, or similar if we have or can create candidates.

I think this is something we have to do and to go after. I think it's more future-proof to organize the code to have a better separation of platforms, instead of relying on the linker to do the dead code elimination based on user selection.

Yes, definitely high level refactor. I just think it can't be fully done and some dead code elimination is cheap enough to have to handle the remaining parts.

Quoted 6 lines

I'm fine with compiling out stuff on i915 right now because "this can only and will ever (as far as we know) work on x86". I'm more reluctant about adding a build option though. For the same reasons Jani mentioned and that it suddenly may open the doors for a matrix of configuration (e.g.  build with/without display, or rc6, or dsi, or name-the-feature-you-dont-want).

Yeah okay, I was not saying it absolutely needs to be user visible. Just that it could be argued it could be. Think people building custom kernels and selecting AMD CPU and having Intel discrete graphics.

Regards,

Tvrtko

#16 lore raw
Quoted 96 lines · Tvrtko Ursulin
Quoted 57 lines · Lucas De Marchi
Quoted 40 lines · Tvrtko Ursulin
Quoted 31 lines · Lucas De Marchi
Quoted 12 lines · Jani Nikula
Quoted 11 lines · Lucas De Marchi
Quoted 9 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked into that side.

3884664  449681    6720 4341065  423d49 i915.ko.tip 3599989  429034    6688 4035711  3d947f i915.ko.noigp

Quoted 7 lines
Quoted 4 lines

By these numbers probably it's hard to justify. Another thing to consider is that it's very common to have on the same system both integrated and discrete - doing this would remove at compile time any chance of driving the integrated one.

I guess the point was, the arm systems won't have integrated, and it's anyway going to be a separate build.

so probably the focus and argument here should not be about size reduction. From patch 1 I see:

+config DRM_I915_INTEGRATED_GPU_SUPPORT
+       bool "Support integrated GPUs"
+       default y
+       depends on DRM_I915
+       help
+         Include support for integrated GPUs.

Quoted 6 lines

If it's something that depends on arch rather than providing an option in menuconfig, then I think it could be some interesting investigation. However, I can't see how it would help with removing some code paths in the driver (e.g. the clflush() calls we were talking about in another patch series) since the code elimination would all happen at link time.

Quoted 8 lines

Clflush class of problems is yet another orthogonal set of problems.

Yes, idea was that the Kconfig option would be selected by Arm, or deselected by x86, whatever. But there is also a case for letting it be user visible.

In general, I thought at least, we should look into not building/deploying binary code for irrelevant hardware on Arm builds. If that is clear and agreeable then I think the approach how to get there is really multi-pronged.

1)
What you are partly doing with "clflush" type series. Make Arm relevant code paths actually compile on Arm.

to be clear, the goal is to be more architecture independent and this is being tested with arm64.

Quoted 4 lines

2a)
What I sent in this series - it's simple/easy dead code elimination from a single compilation unit.

Quoted 8 lines
Quoted 4 lines

2b)
*If* we resurrected GRAPHICS_VER check where "ver" is part of the macro, eg. not doing "if (GRAPHICS_VER <=> N)" but "if (GRAPHICS_VERN)", or "if IS_GRAPHICS_VER(N, FOREVER)", then the same approach would be more effective.

Because if N or range is the macro parameter, we can make it dead code based on Kconfig.

yes I remember that. But when it was done the IS_GRAPHICS_VER() was already not much used. I doubt the handful places it was used in would change much of the overall picture we had at that point.

Right, I was referring to the time when N is inside the macro. Like before IS_GEN(p, N) was replaced with GRAPHICS_VER, when N went outside the macro.

Quoted 16 lines
Quoted 16 lines

This is what I demonstrated few years ago by being able to compile out ~3rd of a driver when selecting only execlists platforms, AFAIR.

And which is why I was a bit unhappy this was getting removed not so long ago.

3)
Complex step is putting LTO into use to allow dead code elimination between compilation units. Think:

file1.c:
RUNTIME_INFO->needs_blah = IS_PLATFORM && blah

file2.c
if (RUNTIME_INFO->needs_blah)
  ..dead code eliminated by LTO only..

Few years ago Andi Kleen had a proof of concept of KBuild LTO but I don't know what is the status of that. If LTO can be enabled then work from steps 2a&b automatically works much much better.

Quoted 7 lines
Quoted 2 lines

4)
If LTO is not there yet maybe see how to slightly refactor the code so that we can completely drop compilation units from the Makefile. Drop files like gt/intel_ring_submission.c, or similar if we have or can create candidates.

I think this is something we have to do and to go after. I think it's more future-proof to organize the code to have a better separation of platforms, instead of relying on the linker to do the dead code elimination based on user selection.

Yes, definitely high level refactor. I just think it can't be fully done and some dead code elimination is cheap enough to have to handle the remaining parts.

Quoted 8 lines
Quoted 6 lines

I'm fine with compiling out stuff on i915 right now because "this can only and will ever (as far as we know) work on x86". I'm more reluctant about adding a build option though. For the same reasons Jani mentioned and that it suddenly may open the doors for a matrix of configuration (e.g.  build with/without display, or rc6, or dsi, or name-the-feature-you-dont-want).

Yeah okay, I was not saying it absolutely needs to be user visible. Just that it could be argued it could be. Think people building custom kernels and selecting AMD CPU and having Intel discrete graphics.

maybe start with the non-user-visible: make the config selection depend on arch. Depending how it goes, we then allow it to be configurable in future.

Lucas De Marchi

Quoted 4 lines

Regards,

Tvrtko

#17 lore raw

[Intel-gfx] ✗ Fi.CI.IGT: failure for Compile out integrated

In reply to Tvrtko Ursulin
== Series Details ==

== Series Details ==

Series: Compile out integrated
URL : https://patchwork.freedesktop.org/series/99570/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_11172_full -> Patchwork_22149_full
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_22149_full absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_22149_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

Participating hosts (12 -> 11)
------------------------------

Missing (1): shard-rkl

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_22149_full:

### IGT changes ###

#### Possible regressions ####

* igt@i915_suspend@fence-restore-untiled:
- shard-skl: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl4/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl8/igt@[email protected]

* igt@kms_setmode@basic:
- shard-skl: NOTRUN -> [WARN][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl4/igt@[email protected]

Known issues
------------

Here are the changes found in Patchwork_22149_full that come from known issues:

### CI changes ###

#### Possible fixes ####

* boot:
- shard-skl: ([PASS][4], [PASS][5], [PASS][6], [PASS][7], [PASS][8], [PASS][9], [PASS][10], [PASS][11], [PASS][12], [PASS][13], [PASS][14], [PASS][15], [PASS][16], [PASS][17], [PASS][18], [FAIL][19], [PASS][20], [PASS][21], [PASS][22], [PASS][23], [PASS][24], [PASS][25], [PASS][26], [PASS][27]) -> ([PASS][28], [PASS][29], [PASS][30], [PASS][31], [PASS][32], [PASS][33], [PASS][34], [PASS][35], [PASS][36], [PASS][37], [PASS][38], [PASS][39], [PASS][40], [PASS][41], [PASS][42], [PASS][43], [PASS][44], [PASS][45], [PASS][46], [PASS][47], [PASS][48], [PASS][49], [PASS][50], [PASS][51])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl9/boot.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl9/boot.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl9/boot.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl9/boot.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl8/boot.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl8/boot.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl7/boot.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl7/boot.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl7/boot.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl6/boot.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl6/boot.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl6/boot.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl4/boot.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl4/boot.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl4/boot.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl3/boot.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl3/boot.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl3/boot.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl1/boot.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl1/boot.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl10/boot.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl10/boot.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl10/boot.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl10/boot.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl7/boot.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl7/boot.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl7/boot.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl6/boot.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl6/boot.html
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl6/boot.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl4/boot.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl4/boot.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl4/boot.html
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl4/boot.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl3/boot.html
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl3/boot.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl1/boot.html
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl1/boot.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl1/boot.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl10/boot.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl10/boot.html
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl8/boot.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl9/boot.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl9/boot.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl9/boot.html
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl8/boot.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl8/boot.html
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl8/boot.html

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_balancer@parallel:
- shard-iclb: [PASS][52] -> [SKIP][53] ([i915#4525]) +1 similar issue
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-iclb1/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb8/igt@[email protected]

* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-apl: [PASS][54] -> [FAIL][55] ([i915#2842])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-apl1/igt@gem_exec_fair@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-apl7/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vcs1:
- shard-kbl: [PASS][56] -> [FAIL][57] ([i915#2842])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-kbl6/igt@gem_exec_fair@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl7/igt@gem_exec_fair@[email protected]

* igt@gem_exec_schedule@preempt-other-chain@vecs0:
- shard-skl: [PASS][58] -> [DMESG-WARN][59] ([i915#1982])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl4/igt@gem_exec_schedule@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl8/igt@gem_exec_schedule@[email protected]

* igt@gem_lmem_swapping@basic:
- shard-kbl: NOTRUN -> [SKIP][60] ([fdo#109271] / [i915#4613]) +2 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl4/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random:
- shard-skl: NOTRUN -> [SKIP][61] ([fdo#109271] / [i915#4613]) +1 similar issue
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl4/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-engines:
- shard-tglb: NOTRUN -> [SKIP][62] ([i915#4613])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@[email protected]

* igt@gem_lmem_swapping@verify:
- shard-apl: NOTRUN -> [SKIP][63] ([fdo#109271] / [i915#4613])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-apl6/igt@[email protected]

* igt@gem_userptr_blits@dmabuf-sync:
- shard-kbl: NOTRUN -> [SKIP][64] ([fdo#109271] / [i915#3323])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl7/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][65] ([i915#3323])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@[email protected]

* igt@gem_userptr_blits@readonly-pwrite-unsync:
- shard-iclb: NOTRUN -> [SKIP][66] ([i915#3297]) +1 similar issue
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]

* igt@gen9_exec_parse@bb-large:
- shard-tglb: NOTRUN -> [SKIP][67] ([i915#2527] / [i915#2856])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@[email protected]

* igt@gen9_exec_parse@unaligned-jump:
- shard-iclb: NOTRUN -> [SKIP][68] ([i915#2856])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]

* igt@i915_pm_dc@dc3co-vpb-simulation:
- shard-tglb: NOTRUN -> [SKIP][69] ([i915#1904])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@[email protected]

* igt@kms_big_fb@linear-32bpp-rotate-0:
- shard-glk: [PASS][70] -> [DMESG-WARN][71] ([i915#118])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-glk2/igt@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-glk9/igt@[email protected]

* igt@kms_big_fb@x-tiled-16bpp-rotate-90:
- shard-iclb: NOTRUN -> [SKIP][72] ([fdo#110725] / [fdo#111614])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]

* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-async-flip:
- shard-skl: NOTRUN -> [FAIL][73] ([i915#3743]) +1 similar issue
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl3/igt@[email protected]

* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-hflip:
- shard-kbl: NOTRUN -> [SKIP][74] ([fdo#109271] / [i915#3777]) +3 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl7/igt@[email protected]

* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-async-flip:
- shard-skl: NOTRUN -> [FAIL][75] ([i915#3763])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl4/igt@[email protected]

* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-iclb: NOTRUN -> [SKIP][76] ([fdo#110723]) +1 similar issue
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb8/igt@[email protected]

* igt@kms_big_joiner@basic:
- shard-iclb: NOTRUN -> [SKIP][77] ([i915#2705])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]

* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc:
- shard-kbl: NOTRUN -> [SKIP][78] ([fdo#109271] / [i915#3886]) +7 similar issues
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl4/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_ccs@pipe-a-random-ccs-data-y_tiled_gen12_rc_ccs_cc:
- shard-skl: NOTRUN -> [SKIP][79] ([fdo#109271] / [i915#3886]) +3 similar issues
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl3/igt@kms_ccs@pipe-a-random-ccs-data-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_ccs@pipe-b-bad-rotation-90-yf_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][80] ([fdo#111615] / [i915#3689]) +2 similar issues
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@kms_ccs@pipe-b-bad-rotation-90-yf_tiled_ccs.html

* igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc:
- shard-iclb: NOTRUN -> [SKIP][81] ([fdo#109278] / [i915#3886]) +1 similar issue
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html
- shard-apl: NOTRUN -> [SKIP][82] ([fdo#109271] / [i915#3886]) +3 similar issues
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-apl7/igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][83] ([i915#3689])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_gen12_mc_ccs.html

* igt@kms_ccs@pipe-d-crc-primary-basic-yf_tiled_ccs:
- shard-iclb: NOTRUN -> [SKIP][84] ([fdo#109278]) +11 similar issues
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@kms_ccs@pipe-d-crc-primary-basic-yf_tiled_ccs.html

* igt@kms_color_chamelium@pipe-a-ctm-blue-to-red:
- shard-kbl: NOTRUN -> [SKIP][85] ([fdo#109271] / [fdo#111827]) +17 similar issues
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl6/igt@[email protected]

* igt@kms_color_chamelium@pipe-b-ctm-blue-to-red:
- shard-apl: NOTRUN -> [SKIP][86] ([fdo#109271] / [fdo#111827]) +1 similar issue
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-apl7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][87] ([fdo#109284] / [fdo#111827]) +1 similar issue
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]

* igt@kms_color_chamelium@pipe-b-ctm-max:
- shard-skl: NOTRUN -> [SKIP][88] ([fdo#109271] / [fdo#111827]) +10 similar issues
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl3/igt@[email protected]

* igt@kms_color_chamelium@pipe-b-degamma:
- shard-tglb: NOTRUN -> [SKIP][89] ([fdo#109284] / [fdo#111827]) +2 similar issues
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@[email protected]

* igt@kms_content_protection@legacy:
- shard-kbl: NOTRUN -> [TIMEOUT][90] ([i915#1319])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl4/igt@[email protected]

* igt@kms_content_protection@mei_interface:
- shard-iclb: NOTRUN -> [SKIP][91] ([fdo#109300] / [fdo#111066])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@kms_content_protection@mei_interface.html

* igt@kms_cursor_crc@pipe-a-cursor-32x10-offscreen:
- shard-tglb: NOTRUN -> [SKIP][92] ([i915#3359])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: NOTRUN -> [DMESG-WARN][93] ([i915#180]) +1 similar issue
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl7/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-512x170-sliding:
- shard-tglb: NOTRUN -> [SKIP][94] ([fdo#109279] / [i915#3359])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@[email protected]

* igt@kms_cursor_crc@pipe-c-cursor-512x512-sliding:
- shard-iclb: NOTRUN -> [SKIP][95] ([fdo#109278] / [fdo#109279]) +1 similar issue
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb8/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-max-size-onscreen:
- shard-apl: NOTRUN -> [SKIP][96] ([fdo#109271]) +70 similar issues
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-apl6/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-suspend:
- shard-kbl: NOTRUN -> [SKIP][97] ([fdo#109271]) +176 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl7/igt@[email protected]

* igt@kms_cursor_edge_walk@pipe-d-128x128-right-edge:
- shard-skl: NOTRUN -> [SKIP][98] ([fdo#109271]) +124 similar issues
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl4/igt@[email protected]

* igt@kms_cursor_legacy@cursorb-vs-flipb-legacy:
- shard-iclb: NOTRUN -> [SKIP][99] ([fdo#109274] / [fdo#109278])
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]

* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: NOTRUN -> [FAIL][100] ([i915#2346] / [i915#533])
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl9/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html

* igt@kms_fbcon_fbt@fbc-suspend:
- shard-kbl: [PASS][101] -> [INCOMPLETE][102] ([i915#180] / [i915#636])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-kbl3/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl6/igt@[email protected]

* igt@kms_flip@2x-blocking-absolute-wf_vblank:
- shard-tglb: NOTRUN -> [SKIP][103] ([fdo#109274] / [fdo#111825]) +1 similar issue
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@kms_flip@2x-blocking-absolute-wf_vblank.html

* igt@kms_flip@2x-blocking-wf_vblank:
- shard-iclb: NOTRUN -> [SKIP][104] ([fdo#109274]) +3 similar issues
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@kms_flip@2x-blocking-wf_vblank.html

* igt@kms_flip@flip-vs-absolute-wf_vblank-interruptible@a-edp1:
- shard-skl: [PASS][105] -> [FAIL][106] ([i915#2122])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl3/igt@kms_flip@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl8/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-suspend-interruptible@c-dp1:
- shard-apl: [PASS][107] -> [DMESG-WARN][108] ([i915#180]) +3 similar issues
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-apl7/igt@kms_flip@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-apl8/igt@kms_flip@[email protected]
- shard-kbl: [PASS][109] -> [INCOMPLETE][110] ([i915#636])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-kbl7/igt@kms_flip@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl3/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-kbl: [PASS][111] -> [DMESG-WARN][112] ([i915#180]) +4 similar issues
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-kbl4/igt@kms_flip@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl6/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-upscaling:
- shard-glk: [PASS][113] -> [FAIL][114] ([i915#4911])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-glk7/igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-upscaling.html
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-glk8/igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-upscaling.html

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-blt:
- shard-iclb: NOTRUN -> [SKIP][115] ([fdo#109280]) +11 similar issues
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-cur-indfb-draw-mmap-wc:
- shard-tglb: NOTRUN -> [SKIP][116] ([fdo#109280] / [fdo#111825]) +5 similar issues
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-cur-indfb-draw-mmap-wc.html

* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: NOTRUN -> [FAIL][117] ([i915#1188])
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl9/igt@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-d:
- shard-kbl: NOTRUN -> [SKIP][118] ([fdo#109271] / [i915#533]) +2 similar issues
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl4/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-apl: NOTRUN -> [FAIL][119] ([fdo#108145] / [i915#265]) +1 similar issue
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-apl6/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-b-alpha-opaque-fb:
- shard-skl: NOTRUN -> [FAIL][120] ([fdo#108145] / [i915#265]) +1 similar issue
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl3/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-max:
- shard-kbl: NOTRUN -> [FAIL][121] ([fdo#108145] / [i915#265])
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl4/igt@[email protected]

* igt@kms_plane_lowres@pipe-b-tiling-y:
- shard-iclb: NOTRUN -> [SKIP][122] ([i915#3536])
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]

* igt@kms_plane_multiple@atomic-pipe-c-tiling-yf:
- shard-tglb: NOTRUN -> [SKIP][123] ([fdo#111615])
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@[email protected]

* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area:
- shard-skl: NOTRUN -> [SKIP][124] ([fdo#109271] / [i915#658])
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl4/igt@[email protected]

* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area:
- shard-apl: NOTRUN -> [SKIP][125] ([fdo#109271] / [i915#658])
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-apl2/igt@[email protected]

* igt@kms_psr2_su@page_flip-xrgb8888:
- shard-kbl: NOTRUN -> [SKIP][126] ([fdo#109271] / [i915#658]) +1 similar issue
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl4/igt@kms_psr2_su@page_flip-xrgb8888.html

* igt@kms_psr@psr2_basic:
- shard-iclb: [PASS][127] -> [SKIP][128] ([fdo#109441]) +1 similar issue
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-iclb2/igt@kms_psr@psr2_basic.html
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb6/igt@kms_psr@psr2_basic.html

* igt@kms_psr@psr2_primary_mmap_gtt:
- shard-tglb: NOTRUN -> [FAIL][129] ([i915#132] / [i915#3467]) +1 similar issue
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@kms_psr@psr2_primary_mmap_gtt.html

* igt@kms_psr@psr2_sprite_mmap_cpu:
- shard-iclb: NOTRUN -> [SKIP][130] ([fdo#109441])
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@kms_psr@psr2_sprite_mmap_cpu.html

* igt@kms_setmode@basic:
- shard-apl: [PASS][131] -> [FAIL][132] ([i915#31])
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-apl1/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-apl2/igt@[email protected]

* igt@kms_vblank@pipe-d-wait-idle:
- shard-skl: NOTRUN -> [SKIP][133] ([fdo#109271] / [i915#533]) +1 similar issue
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl4/igt@[email protected]

* igt@kms_writeback@writeback-fb-id:
- shard-kbl: NOTRUN -> [SKIP][134] ([fdo#109271] / [i915#2437]) +1 similar issue
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][135] ([i915#2437])
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]

* igt@nouveau_crc@pipe-c-source-outp-complete:
- shard-tglb: NOTRUN -> [SKIP][136] ([i915#2530])
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@[email protected]

* igt@perf@polling-small-buf:
- shard-skl: NOTRUN -> [FAIL][137] ([i915#1722])
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl3/igt@[email protected]

* igt@prime_nv_api@i915_self_import_to_different_fd:
- shard-tglb: NOTRUN -> [SKIP][138] ([fdo#109291])
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglb2/igt@prime_nv_api@i915_self_import_to_different_fd.html

* igt@prime_vgem@fence-read-hang:
- shard-iclb: NOTRUN -> [SKIP][139] ([fdo#109295])
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]

* igt@sysfs_clients@fair-0:
- shard-skl: NOTRUN -> [SKIP][140] ([fdo#109271] / [i915#2994]) +1 similar issue
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl4/igt@[email protected]

* igt@sysfs_clients@fair-1:
- shard-iclb: NOTRUN -> [SKIP][141] ([i915#2994])
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][142] ([fdo#109271] / [i915#2994])
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-apl7/igt@[email protected]

* igt@sysfs_clients@sema-50:
- shard-kbl: NOTRUN -> [SKIP][143] ([fdo#109271] / [i915#2994]) +2 similar issues
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl6/igt@[email protected]

#### Possible fixes ####

* igt@gem_exec_balancer@parallel-balancer:
- shard-iclb: [SKIP][144] ([i915#4525]) -> [PASS][145] +1 similar issue
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-iclb6/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@[email protected]

* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-apl: [FAIL][146] ([i915#2842]) -> [PASS][147]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-apl2/igt@gem_exec_fair@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-apl3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vcs0:
- shard-kbl: [FAIL][148] ([i915#2842]) -> [PASS][149]
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-kbl6/igt@gem_exec_fair@[email protected]
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-kbl7/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: [FAIL][150] ([i915#2842]) -> [PASS][151]
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-glk8/igt@gem_exec_fair@[email protected]
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-glk5/igt@gem_exec_fair@[email protected]

* igt@gem_softpin@noreloc-s3:
- shard-skl: [INCOMPLETE][152] ([i915#4939]) -> [PASS][153]
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-skl6/igt@[email protected]
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-skl9/igt@[email protected]

* igt@i915_pm_backlight@fade_with_suspend:
- shard-iclb: [INCOMPLETE][154] -> [PASS][155]
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-iclb4/igt@i915_pm_backlight@fade_with_suspend.html
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-iclb4/igt@i915_pm_backlight@fade_with_suspend.html

* igt@i915_selftest@live@gt_pm:
- {shard-tglu}: [DMESG-FAIL][156] ([i915#3987]) -> [PASS][157]
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11172/shard-tglu-5/igt@i915_selftest@live@gt_pm.html
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/shard-tglu-3/igt@i915_selftest@live@gt_pm.html

* igt@i915

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22149/index.html

#18 lore raw
In reply to Tvrtko Ursulin
Quoted 7 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Quicky and dirty hack based on some old ideas. Thought maybe the approach might interest the Arm port guys. But with IS_GEN_RANGE removed easy gains are not so big so meh.. Maybe some more easy wins with IS_DISPLAY_VER but I haven't looked into that side.

Quoted 5 lines
  3884664  449681    6720 4341065  423d49 i915.ko.tip
  3599989  429034    6688 4035711  3d947f i915.ko.noigp

Note debug kconfig so everything is inflated. Whether or not the relative gain would change with production kconfig I am not sure.

Non debug build for the record:

text data bss dec hex filename

2188446   20528    2944 2211918  21c04e i915.ko.tip
1926865   17776    2944 1947585  1db7c1 i915.ko.noigpu

So around ~12% of the driver eliminated as dead code with the easy and incomplete approach. Not bad considering no clean split on Gen12, gen based if-ladder are mostly untouched and no LTO.

Regards,

Tvrtko