Skip to contentSkip to conversation

drm/i915/gvt: rename kvmgt.c to kvmgt_module.c

PATCH In review Jani Nikula 4 participants 8 messages Nov 20 – Nov 23

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

PATCH 1/2 drm/i915/gvt: rename kvmgt.c to kvmgt_module.c

Make space for building the kvmgt.ko within gvt/. Otherwise, the names would clash.

---
 drivers/gpu/drm/i915/gvt/Makefile                    | 2 +-
 drivers/gpu/drm/i915/gvt/{kvmgt.c => kvmgt_module.c} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename drivers/gpu/drm/i915/gvt/{kvmgt.c => kvmgt_module.c} (100%)
drivers/gpu/drm/i915/gvt/Makefile +1 -1
index 1699f644298e..47f4f6f43c15 100644
@@ -14,7 +14,7 @@ kvmgt-$(CONFIG_DRM_I915_GVT) += \
 	gvt/gtt.o \
 	gvt/handlers.o \
 	gvt/interrupt.o \
-	gvt/kvmgt.o \
+	gvt/kvmgt_module.o \
 	gvt/mmio.o \
 	gvt/mmio_context.o \
 	gvt/opregion.o \
drivers/gpu/drm/i915/gvt/kvmgt_module.c renamed from drivers/gpu/drm/i915/gvt/kvmgt.c +0 -0
similarity index 100%
rename from drivers/gpu/drm/i915/gvt/kvmgt.c
rename to drivers/gpu/drm/i915/gvt/kvmgt_module.c
Signature · 1 line
2.47.3
#1 lore raw

PATCH 2/2 drm/i915/gvt: Descend to GVT Makefile through kbuild, not include

Treat the gvt/ subdirectory and Makefile like a regular kernel driver directory, and descend to it through kbuild, not Makefile include.

The main change is that the resulting kvmgt.ko is also placed in the gvt/ subdirectory in the build directory.

---
 drivers/gpu/drm/i915/Makefile     |  4 +--
 drivers/gpu/drm/i915/gvt/Makefile | 48 ++++++++++++++++---------------
 2 files changed, 27 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/Makefile +2 -2
index d4e7764621e1..ba7eecfffdca 100644
@@ -433,10 +433,10 @@ i915-y += \
 i915-$(CONFIG_DRM_I915_GVT) += \
 	intel_gvt.o \
 	intel_gvt_mmio_table.o
-include $(src)/gvt/Makefile
 
 obj-$(CONFIG_DRM_I915) += i915.o
-obj-$(CONFIG_DRM_I915_GVT_KVMGT) += kvmgt.o
+
+obj-$(CONFIG_DRM_I915_GVT_KVMGT) += gvt/
 
 # kernel-doc test
 #
drivers/gpu/drm/i915/gvt/Makefile +25 -23

50 lines not on this page · raw message

Signature · 1 line
2.47.3
#2 lore raw

Re: [PATCH 2/2] drm/i915/gvt: Descend to GVT Makefile through kbuild, not include

Quoted 5 lines · Jani Nikula

Treat the gvt/ subdirectory and Makefile like a regular kernel driver directory, and descend to it through kbuild, not Makefile include.

The main change is that the resulting kvmgt.ko is also placed in the gvt/ subdirectory in the build directory.

Does this also change where the module gets installed finally?

Quoted 81 lines
---
 drivers/gpu/drm/i915/Makefile     |  4 +--
 drivers/gpu/drm/i915/gvt/Makefile | 48 ++++++++++++++++---------------
 2 files changed, 27 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/Makefile +2 -2
index d4e7764621e1..ba7eecfffdca 100644
@@ -433,10 +433,10 @@ i915-y += \
 i915-$(CONFIG_DRM_I915_GVT) += \
 	intel_gvt.o \
 	intel_gvt_mmio_table.o
-include $(src)/gvt/Makefile
 
 obj-$(CONFIG_DRM_I915) += i915.o
-obj-$(CONFIG_DRM_I915_GVT_KVMGT) += kvmgt.o
+
+obj-$(CONFIG_DRM_I915_GVT_KVMGT) += gvt/
 
 # kernel-doc test
 #
drivers/gpu/drm/i915/gvt/Makefile +25 -23
index 47f4f6f43c15..dfbf813f672c 100644
@@ -1,25 +1,27 @@
 # SPDX-License-Identifier: GPL-2.0
 
-kvmgt-$(CONFIG_DRM_I915_GVT) += \
-	gvt/aperture_gm.o \
-	gvt/cfg_space.o \
-	gvt/cmd_parser.o \
-	gvt/debugfs.o \
-	gvt/display.o \
-	gvt/dmabuf.o \
-	gvt/edid.o \
-	gvt/execlist.o \
-	gvt/fb_decoder.o \
-	gvt/firmware.o \
-	gvt/gtt.o \
-	gvt/handlers.o \
-	gvt/interrupt.o \
-	gvt/kvmgt_module.o \
-	gvt/mmio.o \
-	gvt/mmio_context.o \
-	gvt/opregion.o \
-	gvt/page_track.o \
-	gvt/sched_policy.o \
-	gvt/scheduler.o \
-	gvt/trace_points.o \
-	gvt/vgpu.o
+kvmgt-y += \
+	aperture_gm.o \
+	cfg_space.o \
+	cmd_parser.o \
+	debugfs.o \
+	display.o \
+	dmabuf.o \
+	edid.o \
+	execlist.o \
+	fb_decoder.o \
+	firmware.o \
+	gtt.o \
+	handlers.o \
+	interrupt.o \
+	kvmgt_module.o \
+	mmio.o \
+	mmio_context.o \
+	opregion.o \
+	page_track.o \
+	sched_policy.o \
+	scheduler.o \
+	trace_points.o \
+	vgpu.o
+
+obj-$(CONFIG_DRM_I915_GVT_KVMGT) += kvmgt.o
Signature · 1 line
2.47.3
Signature · 2 lines
Ville Syrjälä
Intel
#3 lore raw

Re: [PATCH 2/2] drm/i915/gvt: Descend to GVT Makefile through kbuild, not include

Quoted 8 lines · Ville Syrjälä
Quoted 5 lines · Jani Nikula

Treat the gvt/ subdirectory and Makefile like a regular kernel driver directory, and descend to it through kbuild, not Makefile include.

The main change is that the resulting kvmgt.ko is also placed in the gvt/ subdirectory in the build directory.

Does this also change where the module gets installed finally?

Probably. If anyone depends on the exact location, they'll be hosed.

BR,
Jani.

Quoted 82 lines
Quoted 82 lines
---
 drivers/gpu/drm/i915/Makefile     |  4 +--
 drivers/gpu/drm/i915/gvt/Makefile | 48 ++++++++++++++++---------------
 2 files changed, 27 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/Makefile +2 -2
index d4e7764621e1..ba7eecfffdca 100644
@@ -433,10 +433,10 @@ i915-y += \
 i915-$(CONFIG_DRM_I915_GVT) += \
 	intel_gvt.o \
 	intel_gvt_mmio_table.o
-include $(src)/gvt/Makefile
 
 obj-$(CONFIG_DRM_I915) += i915.o
-obj-$(CONFIG_DRM_I915_GVT_KVMGT) += kvmgt.o
+
+obj-$(CONFIG_DRM_I915_GVT_KVMGT) += gvt/
 
 # kernel-doc test
 #
drivers/gpu/drm/i915/gvt/Makefile +25 -23
index 47f4f6f43c15..dfbf813f672c 100644
@@ -1,25 +1,27 @@
 # SPDX-License-Identifier: GPL-2.0
 
-kvmgt-$(CONFIG_DRM_I915_GVT) += \
-	gvt/aperture_gm.o \
-	gvt/cfg_space.o \
-	gvt/cmd_parser.o \
-	gvt/debugfs.o \
-	gvt/display.o \
-	gvt/dmabuf.o \
-	gvt/edid.o \
-	gvt/execlist.o \
-	gvt/fb_decoder.o \
-	gvt/firmware.o \
-	gvt/gtt.o \
-	gvt/handlers.o \
-	gvt/interrupt.o \
-	gvt/kvmgt_module.o \
-	gvt/mmio.o \
-	gvt/mmio_context.o \
-	gvt/opregion.o \
-	gvt/page_track.o \
-	gvt/sched_policy.o \
-	gvt/scheduler.o \
-	gvt/trace_points.o \
-	gvt/vgpu.o
+kvmgt-y += \
+	aperture_gm.o \
+	cfg_space.o \
+	cmd_parser.o \
+	debugfs.o \
+	display.o \
+	dmabuf.o \
+	edid.o \
+	execlist.o \
+	fb_decoder.o \
+	firmware.o \
+	gtt.o \
+	handlers.o \
+	interrupt.o \
+	kvmgt_module.o \
+	mmio.o \
+	mmio_context.o \
+	opregion.o \
+	page_track.o \
+	sched_policy.o \
+	scheduler.o \
+	trace_points.o \
+	vgpu.o
+
+obj-$(CONFIG_DRM_I915_GVT_KVMGT) += kvmgt.o
Signature · 1 line
2.47.3
Signature · 1 line
Jani Nikula, Intel
Reviewed-by
#4 lore raw

Re: [PATCH 2/2] drm/i915/gvt: Descend to GVT Makefile through kbuild, not include

Quoted 11 lines · Jani Nikula
Quoted 8 lines · Ville Syrjälä
Quoted 5 lines · Jani Nikula

Treat the gvt/ subdirectory and Makefile like a regular kernel driver directory, and descend to it through kbuild, not Makefile include.

The main change is that the resulting kvmgt.ko is also placed in the gvt/ subdirectory in the build directory.

Does this also change where the module gets installed finally?

Probably. If anyone depends on the exact location, they'll be hosed.

I suspect this thing is niche enough that we can go for it without fear of drowning in bug reports afterwards.

Should highlight the change in installation directory in the commit message regardless.

With that, the series is

Quoted 90 lines

BR,
Jani.

Quoted 82 lines
Quoted 82 lines
---
 drivers/gpu/drm/i915/Makefile     |  4 +--
 drivers/gpu/drm/i915/gvt/Makefile | 48 ++++++++++++++++---------------
 2 files changed, 27 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/Makefile +2 -2
index d4e7764621e1..ba7eecfffdca 100644
@@ -433,10 +433,10 @@ i915-y += \
 i915-$(CONFIG_DRM_I915_GVT) += \
 	intel_gvt.o \
 	intel_gvt_mmio_table.o
-include $(src)/gvt/Makefile
 
 obj-$(CONFIG_DRM_I915) += i915.o
-obj-$(CONFIG_DRM_I915_GVT_KVMGT) += kvmgt.o
+
+obj-$(CONFIG_DRM_I915_GVT_KVMGT) += gvt/
 
 # kernel-doc test
 #
drivers/gpu/drm/i915/gvt/Makefile +25 -23
index 47f4f6f43c15..dfbf813f672c 100644
@@ -1,25 +1,27 @@
 # SPDX-License-Identifier: GPL-2.0
 
-kvmgt-$(CONFIG_DRM_I915_GVT) += \
-	gvt/aperture_gm.o \
-	gvt/cfg_space.o \
-	gvt/cmd_parser.o \
-	gvt/debugfs.o \
-	gvt/display.o \
-	gvt/dmabuf.o \
-	gvt/edid.o \
-	gvt/execlist.o \
-	gvt/fb_decoder.o \
-	gvt/firmware.o \
-	gvt/gtt.o \
-	gvt/handlers.o \
-	gvt/interrupt.o \
-	gvt/kvmgt_module.o \
-	gvt/mmio.o \
-	gvt/mmio_context.o \
-	gvt/opregion.o \
-	gvt/page_track.o \
-	gvt/sched_policy.o \
-	gvt/scheduler.o \
-	gvt/trace_points.o \
-	gvt/vgpu.o
+kvmgt-y += \
+	aperture_gm.o \
+	cfg_space.o \
+	cmd_parser.o \
+	debugfs.o \
+	display.o \
+	dmabuf.o \
+	edid.o \
+	execlist.o \
+	fb_decoder.o \
+	firmware.o \
+	gtt.o \
+	handlers.o \
+	interrupt.o \
+	kvmgt_module.o \
+	mmio.o \
+	mmio_context.o \
+	opregion.o \
+	page_track.o \
+	sched_policy.o \
+	scheduler.o \
+	trace_points.o \
+	vgpu.o
+
+obj-$(CONFIG_DRM_I915_GVT_KVMGT) += kvmgt.o
Signature · 1 line
2.47.3
Signature · 1 line
Jani Nikula, Intel
Signature · 2 lines
Ville Syrjälä
Intel
reviewer Reviewed-by
#5 lore raw

Re: [PATCH 2/2] drm/i915/gvt: Descend to GVT Makefile through kbuild, not include

In reply to Jani Nikula
Quoted 5 lines · Jani Nikula
Quoted 4 lines · Ville Syrjälä
Quoted 3 lines · Jani Nikula

Treat the gvt/ subdirectory and Makefile like a regular kernel driver directory, and descend to it through kbuild, not Makefile include.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

The main change is that the resulting kvmgt.ko is also placed in the gvt/ subdirectory in the build directory.

Does this also change where the module gets installed finally?

Probably. If anyone depends on the exact location, they'll be hosed.

No, I don't think anyone depends on that, as long as module deps handled it fine.

#6 lore raw

Re: [PATCH 2/2] drm/i915/gvt: Descend to GVT Makefile through kbuild, not include

Quoted 11 lines · Zhenyu Wang
Quoted 10 lines · Jani Nikula
Quoted 8 lines · Ville Syrjälä
Quoted 5 lines · Jani Nikula

Treat the gvt/ subdirectory and Makefile like a regular kernel driver directory, and descend to it through kbuild, not Makefile include.

The main change is that the resulting kvmgt.ko is also placed in the gvt/ subdirectory in the build directory.

Does this also change where the module gets installed finally?

Quoted 7 lines
Quoted 2 lines

Probably. If anyone depends on the exact location, they'll be hosed.

No, I don't think anyone depends on that, as long as module deps handled it fine.

Thanks, pushed to din, with slightly tweaked commit message as requested by Ville.

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel
#7 lore raw

✓ i915.CI.BAT: success for series starting with [1/2] drm/i915/gvt: rename kvmgt.c to kvmgt_module.c

In reply to Jani Nikula
== Series Details ==

== Series Details ==

Series: series starting with [1/2] drm/i915/gvt: rename kvmgt.c to kvmgt_module.c
URL : https://patchwork.freedesktop.org/series/179226/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_19574 -> Patchwork_179226v1
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

Participating hosts (39 -> 39)
------------------------------

Additional (1): bat-adls-6
Missing (1): bat-dg2-13

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_lmem_swapping@parallel-random-engines:
- bat-adls-6: NOTRUN -> [SKIP][1] ([i915#4613]) +3 other tests skip
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179226v1/bat-adls-6/igt@[email protected]

* igt@gem_tiled_pread_basic@basic:
- bat-adls-6: NOTRUN -> [SKIP][2] ([i915#15656])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179226v1/bat-adls-6/igt@[email protected]

* igt@intel_hwmon@hwmon-read:
- bat-adls-6: NOTRUN -> [SKIP][3] ([i915#7707]) +1 other test skip
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179226v1/bat-adls-6/igt@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-adls-6: NOTRUN -> [SKIP][4] ([i915#4103]) +1 other test skip
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179226v1/bat-adls-6/igt@[email protected]

* igt@kms_dsc@dsc-basic:
- bat-adls-6: NOTRUN -> [SKIP][5] ([i915#16361])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179226v1/bat-adls-6/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- bat-adls-6: NOTRUN -> [SKIP][6] ([i915#17452])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179226v1/bat-adls-6/igt@[email protected]

* igt@kms_pm_backlight@basic-brightness:
- bat-adls-6: NOTRUN -> [SKIP][7] ([i915#5354])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179226v1/bat-adls-6/igt@[email protected]

* igt@kms_psr@psr-primary-mmap-gtt:
- bat-adls-6: NOTRUN -> [SKIP][8] ([i915#1072] / [i915#9732]) +3 other tests skip
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179226v1/bat-adls-6/igt@[email protected]

* igt@kms_setmode@basic-clone-single-crtc:
- bat-adls-6: NOTRUN -> [SKIP][9] ([i915#3555])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179226v1/bat-adls-6/igt@[email protected]

* igt@prime_vgem@basic-fence-read:
- bat-adls-6: NOTRUN -> [SKIP][10] ([i915#17448] / [i915#3291]) +2 other tests skip
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_179226v1/bat-adls-6/igt@[email protected]

[i915#1072]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1072
[i915#15656]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15656
[i915#16361]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/16361
[i915#17448]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/17448
[i915#17452]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/17452
[i915#3291]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3291
[i915#3555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3555
[i915#4103]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4103
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
[i915#5354]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5354
[i915#7707]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7707
[i915#9732]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9732

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

* Linux: CI_DRM_19574 -> Patchwork_179226v1

CI-20190529: 20190529
CI_DRM_19574: 90b50d97b3af2f55a75116f1ec76e0cf62914418 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_9200: 9200
Patchwork_179226v1: 90b50d97b3af2f55a75116f1ec76e0cf62914418 @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

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