drm/i915: Skip remap_io_mapping() for non-x86 platforms
Subsystems (2)
PATCH 1/1 drm/i915: Skip remap_io_mapping() for non-x86 platforms
From: Siva Mullati <[email protected]>
Only hw that supports mappable aperture would hit this path vm_fault_gtt/vm_fault_tmm, So we never hit this function remap_io_mapping() in discrete, So skip this code for non-x86 architectures.
--- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 8 ------ drivers/gpu/drm/i915/i915_mm.c | 1 + drivers/gpu/drm/i915/i915_mm.h | 32 ++++++++++++++++++++++++ 4 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 drivers/gpu/drm/i915/i915_mm.h
drivers/gpu/drm/i915/gem/i915_gem_mman.c +1 -0
@@ -17,6 +17,7 @@#include "i915_gem_ioctls.h" #include "i915_gem_object.h" #include "i915_gem_mman.h" +#include "i915_mm.h" #include "i915_trace.h" #include "i915_user_extensions.h" #include "i915_gem_ttm.h"
drivers/gpu/drm/i915/i915_drv.h +0 -8
@@ -1967,14 +1967,6 @@ mkwrite_device_info(struct drm_i915_private *dev_priv)int i915_reg_read_ioctl (struct drm_device *dev,void *data,struct drm_file *file); -/* i915_mm.c */ -int remap_io_mapping (struct vm_area_struct *vma, -unsigned long addr,unsigned long pfn,unsigned long size, -struct io_mapping *iomap); -int remap_io_sg (struct vm_area_struct *vma, -unsigned long addr,unsigned long size, -struct scatterlist *sgl,resource_size_t iobase); -static inline int intel_hws_csb_write_index (struct drm_i915_private *i915) {if (GRAPHICS_VER (i915) >=11 )
drivers/gpu/drm/i915/i915_mm.c +1 -0
@@ -27,6 +27,7 @@#include "i915_drv.h" +#include "i915_mm.h" struct remap_pfn {struct mm_struct *mm;
drivers/gpu/drm/i915/i915_mm.h new file +32 -0
@@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2021 Intel Corporation +*/ + +#ifndef __I915_MM_H__ +#define __I915_MM_H__ + +#include <linux/types.h> + +struct vm_area_struct ; +struct io_mapping ; +struct scatterlist ; + +#if IS_ENABLED (CONFIG_X86 ) +int remap_io_mapping (struct vm_area_struct *vma, +unsigned long addr,unsigned long pfn,unsigned long size, +struct io_mapping *iomap); +#else +static inline int remap_io_mapping (struct vm_area_struct *vma, +unsigned long addr,unsigned long pfn,unsigned long size, +struct io_mapping *iomap) +{ +return 0 ; +} +#endif + +int remap_io_sg (struct vm_area_struct *vma, +unsigned long addr,unsigned long size, +struct scatterlist *sgl,resource_size_t iobase); + +#endif /* __I915_MM_H__ */
Signature · 1 line
2.33.0
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Skip remap_io_mapping() for non-x86 platforms (rev3)
== Series Details ==
== Series Details ==
Series: drm/i915: Skip remap_io_mapping() for non-x86 platforms (rev3)
URL : https://patchwork.freedesktop.org/series/96855/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 235bc0244f4a drm/i915: Skip remap_io_mapping() for non-x86 platforms -:57: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #57: new file mode 100644
-:78: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #78: FILE: drivers/gpu/drm/i915/i915_mm.h:17:
+int remap_io_mapping(struct vm_area_struct *vma,
+ unsigned long addr, unsigned long pfn, unsigned long size,
-:82: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #82: FILE: drivers/gpu/drm/i915/i915_mm.h:21:
+static inline int remap_io_mapping(struct vm_area_struct *vma,
+ unsigned long addr, unsigned long pfn, unsigned long size,
total: 0 errors, 1 warnings, 2 checks, 60 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Skip remap_io_mapping() for non-x86 platforms (rev3)
In reply to Mullati Siva== Series Details ==
== Series Details ==
Series: drm/i915: Skip remap_io_mapping() for non-x86 platforms (rev3)
URL : https://patchwork.freedesktop.org/series/96855/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Skip remap_io_mapping() for non-x86 platforms (rev3)
In reply to Mullati Siva== Series Details ==
== Series Details ==
Series: drm/i915: Skip remap_io_mapping() for non-x86 platforms (rev3)
URL : https://patchwork.freedesktop.org/series/96855/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10915 -> Patchwork_21655
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_21655 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_21655, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/index.html
Participating hosts (41 -> 35)
------------------------------
Additional (2): fi-kbl-soraka fi-icl-u2
Missing (8): bat-dg1-6 fi-tgl-u2 bat-dg1-5 fi-bsw-cyan bat-adlp-6 bat-adlp-4 bat-jsl-2 bat-jsl-1
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_21655:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_suspend@basic-s3:
- fi-skl-6600u: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10915/fi-skl-6600u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-skl-6600u/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_21655 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@fork-gfx0:
- fi-icl-u2: NOTRUN -> [SKIP][3] ([fdo#109315]) +17 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-icl-u2/igt@amdgpu/[email protected]
* igt@amdgpu/amd_cs_nop@sync-gfx0:
- fi-bsw-n3050: NOTRUN -> [SKIP][4] ([fdo#109271]) +17 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-bsw-n3050/igt@amdgpu/[email protected]
* igt@gem_exec_fence@basic-busy@bcs0:
- fi-kbl-soraka: NOTRUN -> [SKIP][5] ([fdo#109271]) +12 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-kbl-soraka/igt@gem_exec_fence@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#2190])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-kbl-soraka/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][7] ([i915#2190])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-icl-u2/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- fi-icl-u2: NOTRUN -> [SKIP][8] ([i915#4555]) +3 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-icl-u2/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][9] ([i915#1886] / [i915#2291])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-soraka: NOTRUN -> [SKIP][10] ([fdo#109271] / [fdo#111827]) +8 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-kbl-soraka/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-icl-u2: NOTRUN -> [SKIP][11] ([fdo#111827]) +8 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-icl-u2/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- fi-icl-u2: NOTRUN -> [SKIP][12] ([fdo#109278]) +2 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-icl-u2/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- fi-icl-u2: NOTRUN -> [SKIP][13] ([fdo#109285])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-icl-u2/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-kbl-soraka: NOTRUN -> [SKIP][14] ([fdo#109271] / [i915#533])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-kbl-soraka/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-icl-u2: NOTRUN -> [SKIP][15] ([i915#3301])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-icl-u2/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@gtt:
- {fi-tgl-dsi}: [FAIL][16] ([i915#2927]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10915/fi-tgl-dsi/igt@i915_selftest@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-tgl-dsi/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@late_gt_pm:
- fi-bsw-n3050: [DMESG-FAIL][18] ([i915#2927] / [i915#3428]) -> [PASS][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10915/fi-bsw-n3050/igt@i915_selftest@live@late_gt_pm.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/fi-bsw-n3050/igt@i915_selftest@live@late_gt_pm.html
{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#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2291]: https://gitlab.freedesktop.org/drm/intel/issues/2291
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2927]: https://gitlab.freedesktop.org/drm/intel/issues/2927
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3428]: https://gitlab.freedesktop.org/drm/intel/issues/3428
[i915#4555]: https://gitlab.freedesktop.org/drm/intel/issues/4555
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
Build changes
-------------
* Linux: CI_DRM_10915 -> Patchwork_21655
CI-20190529: 20190529
CI_DRM_10915: 84c86240b97d22658b6939903d77b644764a0ae8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6286: cdcbf81f734fdb1d102e84490e49e9fec23760cd @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_21655: 235bc0244f4a6324c6ab882adbfc34d2eb11377c @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
235bc0244f4a drm/i915: Skip remap_io_mapping() for non-x86 platforms
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21655/index.html
Quoted 78 lines · Mullati Siva
From: Siva Mullati <[email protected]>
Only hw that supports mappable aperture would hit this path vm_fault_gtt/vm_fault_tmm, So we never hit this function
remap_io_mapping()in discrete, So skip this code for non-x86 architectures.Signed-off-by Siva Mullati <[email protected]>---
drivers/gpu/drm/i915/gem/i915_gem_mman.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 8 ------ drivers/gpu/drm/i915/i915_mm.c | 1 + drivers/gpu/drm/i915/i915_mm.h | 32 ++++++++++++++++++++++++ 4 files changed, 34 insertions(+), 8 deletions(-)create mode 100644
drivers/gpu/drm/i915/i915_mm.hdrivers/gpu/drm/i915/gem/i915_gem_mman.c +1
-0@@ -17,6 +17,7 @@#include "i915_gem_ioctls.h" #include "i915_gem_object.h" #include "i915_gem_mman.h" +#include "i915_mm.h" #include "i915_trace.h" #include "i915_user_extensions.h" #include "i915_gem_ttm.h" drivers/gpu/drm/i915/i915_drv.h +0
-8@@ -1967,14 +1967,6 @@ mkwrite_device_info(struct drm_i915_private *dev_priv)int i915_reg_read_ioctl (struct drm_device *dev,void *data,struct drm_file *file); -/* i915_mm.c */ -int remap_io_mapping (struct vm_area_struct *vma, -unsigned long addr,unsigned long pfn,unsigned long size, -struct io_mapping *iomap); -int remap_io_sg (struct vm_area_struct *vma, -unsigned long addr,unsigned long size, -struct scatterlist *sgl,resource_size_t iobase); -static inline int intel_hws_csb_write_index (struct drm_i915_private *i915) {if (GRAPHICS_VER (i915) >=11 )drivers/gpu/drm/i915/i915_mm.c +1
-0@@ -27,6 +27,7 @@#include "i915_drv.h" +#include "i915_mm.h" struct remap_pfn {struct mm_struct *mm;drivers/gpu/drm/i915/i915_mm.h new file +13
-0@@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2021 Intel Corporation +*/ + +#ifndef __I915_MM_H__ +#define __I915_MM_H__ + +#include <linux/types.h> + +struct vm_area_struct ; +struct io_mapping ; +struct scatterlist ;
drivers/gpu/drm/i915/i915_mm.h line 23
Quoted 10 lines
drivers/gpu/drm/i915/i915_mm.h new file +10
-0+ +#if IS_ENABLED (CONFIG_X86 ) +int remap_io_mapping (struct vm_area_struct *vma, +unsigned long addr,unsigned long pfn,unsigned long size, +struct io_mapping *iomap); +#else +static inline int remap_io_mapping (struct vm_area_struct *vma, +unsigned long addr,unsigned long pfn,unsigned long size, +struct io_mapping *iomap) +{
would probably be good to add:
pr_err("Architecture has no remap_io_mapping() and shouldn't be calling this function\n");
WARN_ON_ONCE(1);the same way that is done in drivers/gpu/drm/drm_cache.c
Other than that:
Since you're adding this header, can you follow up with one additional patch to move the rest of the prototypes off i915_drv.h and into this new header?
thanks
Lucas De Marchi
Quoted 12 lines
drivers/gpu/drm/i915/i915_mm.h new file +9
-0+return 0 ; +} +#endif + +int remap_io_sg (struct vm_area_struct *vma, +unsigned long addr,unsigned long size, +struct scatterlist *sgl,resource_size_t iobase); + +#endif /* __I915_MM_H__ */ Signature · 1 line
2.33.0
Quoted 97 lines · Lucas De Marchi
Quoted 78 lines · Mullati Siva
From: Siva Mullati <[email protected]>
Only hw that supports mappable aperture would hit this path vm_fault_gtt/vm_fault_tmm, So we never hit this function
remap_io_mapping()in discrete, So skip this code for non-x86 architectures.Signed-off-by Siva Mullati <[email protected]>---
drivers/gpu/drm/i915/gem/i915_gem_mman.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 8 ------ drivers/gpu/drm/i915/i915_mm.c | 1 + drivers/gpu/drm/i915/i915_mm.h | 32 ++++++++++++++++++++++++ 4 files changed, 34 insertions(+), 8 deletions(-)create mode 100644
drivers/gpu/drm/i915/i915_mm.hdrivers/gpu/drm/i915/gem/i915_gem_mman.c +1
-0@@ -17,6 +17,7 @@#include "i915_gem_ioctls.h" #include "i915_gem_object.h" #include "i915_gem_mman.h" +#include "i915_mm.h" #include "i915_trace.h" #include "i915_user_extensions.h" #include "i915_gem_ttm.h" drivers/gpu/drm/i915/i915_drv.h +0
-8@@ -1967,14 +1967,6 @@ mkwrite_device_info(struct drm_i915_private *dev_priv)int i915_reg_read_ioctl (struct drm_device *dev,void *data,struct drm_file *file); -/* i915_mm.c */ -int remap_io_mapping (struct vm_area_struct *vma, -unsigned long addr,unsigned long pfn,unsigned long size, -struct io_mapping *iomap); -int remap_io_sg (struct vm_area_struct *vma, -unsigned long addr,unsigned long size, -struct scatterlist *sgl,resource_size_t iobase); -static inline int intel_hws_csb_write_index (struct drm_i915_private *i915) {if (GRAPHICS_VER (i915) >=11 )drivers/gpu/drm/i915/i915_mm.c +1
-0@@ -27,6 +27,7 @@#include "i915_drv.h" +#include "i915_mm.h" struct remap_pfn {struct mm_struct *mm;drivers/gpu/drm/i915/i915_mm.h new file +13
-0@@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2021 Intel Corporation +*/ + +#ifndef __I915_MM_H__ +#define __I915_MM_H__ + +#include <linux/types.h> + +struct vm_area_struct ; +struct io_mapping ; +struct scatterlist ;drivers/gpu/drm/i915/i915_mm.h line 23
Quoted 10 lines
drivers/gpu/drm/i915/i915_mm.h new file +10
-0+ +#if IS_ENABLED (CONFIG_X86 ) +int remap_io_mapping (struct vm_area_struct *vma, +unsigned long addr,unsigned long pfn,unsigned long size, +struct io_mapping *iomap); +#else +static inline int remap_io_mapping (struct vm_area_struct *vma, +unsigned long addr,unsigned long pfn,unsigned long size, +struct io_mapping *iomap) +{would probably be good to add:
pr_err("Architecture has no remap_io_mapping() and shouldn't be calling this function\n"); WARN_ON_ONCE(1);the same way that is done in
drivers/gpu/drm/drm_cache.c
Quoted 8 lines
Other than that:
Reviewed-by Lucas De Marchi <[email protected]>Since you're adding this header, can you follow up with one additional patch to move the rest of the prototypes off
i915_drv.hand into this new header?
There's only the two functions?
BR,
Jani.
Quoted 18 lines
thanks
Lucas De MarchiQuoted 12 lines
drivers/gpu/drm/i915/i915_mm.h new file +9
-0+return 0 ; +} +#endif + +int remap_io_sg (struct vm_area_struct *vma, +unsigned long addr,unsigned long size, +struct scatterlist *sgl,resource_size_t iobase); + +#endif /* __I915_MM_H__ */ Signature · 1 line
2.33.0
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center