(I'm taking over this patchset from Alex, [1] as we agreed that it should
go through the drm-misc tree.)
When assigning a primary graphics device to VM through vfio-pci device
assignment, users often prevent binding of the native PCI graphics
driver to avoid device initialization conflicts, however firmware
console drivers may still be attached to the device which can often be
cumbersome to manually unbind or exclude via cmdline options.
This series proposes to move the DRM aperture helpers …
[View More]out to
drivers/video/ to make it more accessible to drivers like vfio-pci,
which have neither dependencies on DRM code nor a struct drm_driver
to present to existing interfaces. vfio-pci can then trivially call
into the aperture helpers to remove conflicting drivers, rather than
open coding it ourselves as was proposed with a new symbol export in
v1 of this series. [2]
v3:
* add aperture_ prefix to all interfaces (Javier)
* improved documentation (Javier)
* update MAINTAINERS [3] and add aperture helpers
[1] https://lore.kernel.org/all/165541020563.1955826.16350888595945658159.stgit…
[2] https://lore.kernel.org/all/165453797543.3592816.6381793341352595461.stgit@…
[3] https://lore.kernel.org/all/20220518183006.14548-2-tzimmermann@suse.de/
Alex Williamson (1):
vfio/pci: Remove console drivers
Thomas Zimmermann (2):
MAINTAINERS: Broaden scope of simpledrm entry
drm: Implement DRM aperture helpers under video/
Documentation/driver-api/aperture.rst | 13 +
Documentation/driver-api/index.rst | 1 +
MAINTAINERS | 6 +-
drivers/gpu/drm/drm_aperture.c | 178 +------------
drivers/gpu/drm/tiny/Kconfig | 1 +
drivers/vfio/pci/vfio_pci_core.c | 5 +
drivers/video/Kconfig | 6 +
drivers/video/Makefile | 2 +
drivers/video/aperture.c | 351 ++++++++++++++++++++++++++
drivers/video/console/Kconfig | 1 +
drivers/video/fbdev/Kconfig | 7 +-
include/linux/aperture.h | 56 ++++
12 files changed, 456 insertions(+), 171 deletions(-)
create mode 100644 Documentation/driver-api/aperture.rst
create mode 100644 drivers/video/aperture.c
create mode 100644 include/linux/aperture.h
base-commit: 7025c1f111b7a057243de45bd56c14b906242a53
--
2.36.1
[View Less]
Hi all,
After merging the drm-misc tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/gpu/drm/xlnx/zynqmp_disp.c: In function 'zynqmp_disp_create_planes':
drivers/gpu/drm/xlnx/zynqmp_disp.c:1260:17: error: implicit declaration of function 'drm_plane_create_zpos_immutable_property'; did you mean 'drm_plane_create_scaling_filter_property'? [-Werror=implicit-function-declaration]
1260 | drm_plane_create_zpos_immutable_property(&layer->plane, i);…
[View More]
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| drm_plane_create_scaling_filter_property
drivers/gpu/drm/xlnx/zynqmp_disp.c:1262:25: error: implicit declaration of function 'drm_plane_create_alpha_property'; did you mean 'drm_plane_create_color_properties'? [-Werror=implicit-function-declaration]
1262 | drm_plane_create_alpha_property(&layer->plane);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| drm_plane_create_color_properties
cc1: all warnings being treated as errors
Presumably caused by one of the commits that dropped includes from
drm-ctrc.h.
I have used the drm-misc tree from next-20220620 for today.
--
Cheers,
Stephen Rothwell
[View Less]
This is v2 for a previous patch series being discussed at
https://lore.kernel.org/dri-devel/20220517174216.381287-1-adrian.larumbe@co….
Mesa MR under review can be found at:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14034
Changes with respect to v1 of the same patch:
- Change the list of dumped registers to those of greatest debugging value.
- Fix bug where an invalid bomap header wouldn't be dumped
- Changed the way that a decision is made whether to dump a BOMAP header …
[View More]so
that no compiler warning supression has to be done.
- Changed magic number for header fields to something more representative.
- Changed the dump header format to a union whose members are the different
header types.
Adrián Larumbe (1):
drm/panfrost: Add support for devcoredump
drivers/gpu/drm/panfrost/Kconfig | 1 +
drivers/gpu/drm/panfrost/Makefile | 3 +-
drivers/gpu/drm/panfrost/panfrost_dump.c | 233 +++++++++++++++++++++++
drivers/gpu/drm/panfrost/panfrost_dump.h | 12 ++
drivers/gpu/drm/panfrost/panfrost_job.c | 3 +
include/uapi/drm/panfrost_drm.h | 44 +++++
6 files changed, 295 insertions(+), 1 deletion(-)
create mode 100644 drivers/gpu/drm/panfrost/panfrost_dump.c
create mode 100644 drivers/gpu/drm/panfrost/panfrost_dump.h
--
2.36.1
[View Less]
The hardware path of vdosys1 with DPTx output need to go through by several modules, such as, OVL_ADAPTOR and MERGE.
Add mmsys and mutex modules support by the patches below:
Changes in v24:
- fix reviewer comment
- refine mtk_mmsys_reset_update func
- rebase to next-20220622
Changes in v23:
- separate[7] mmsys/mutex and drm patches into two series
Changes in v22:
- rebase to next-20220525
- rebase to vdosys0 series v22
- separate dts to a new patch
Changes in v21:
- fix reviewer comment
…
[View More] - fix rdma and ethdr binding doc and dts
Changes in v20:
- fix reviewer comment
- update mmsys update bit api name
- add mtk_mmsys_update_bits error message if lose gce property
- list all mt8195 vdosys1 reset bits
Changes in v19:
- fix reviewer comment
- separate mt8195 mmsys component to a new patch
- separate mt8195 vdo0 and vdo1 routing table
- separate mmsys_write_reg api to a new patch and simplify write reg code
- separate mmsys 64 bit reset to a new patch
- separate mtk-mutex dp_intf1 component to a new patch
Changes in v18:
- fix reviewer comment
- fix rdma binding doc
- fix ethdr binding doc
- refine mmsys config cmdq support
- refine merge reset control flow, get reset control in probe function
- add ethdr reset control error handling and remove dbg log
- rebase to vdosys0 series v20 (ref [5])
Changes in v17:
- fix reviewer comment in v16
- separate ovl adaptor comp in mtk-mmsys and mtk-mutex
- separate mmsys config API
- move mdp_rdma binding yaml
- fix ovl adaptor pm runtime get sync timing issue
- rebase to vdosys0 series v19 (ref [5])
- rebase to [7] for modify vblank register change
Changes in v16:
- fix reviewer comment in v 15
- fix mtk_drm_ddp_comp.c alignment
- fix vdosys0 mmsys num before adding vdosys1 patch
Changes in v15:
- fix ethdr uppercase hex number in dts
Changes in v14:
- remove MTK_MMSYS 64 bit dependency
- add ethdr.yaml back and fix dt_schema check fail
Resend v13
- add related maintainer in maillist
Changes in v13:
- fix reviewer comment in v12
- fix rdma dt-binding format
- fix dts node naming
- fix 32 bit build error
- modify 64bit dependency for mtk-mmsys
- rebase to vdosys0 series v16. (ref [5])
Changes in v12:
- fix reviewer comment in v11
- modify mbox index
- refine dma dev for ovl_adaptor sub driver
Changes in v11:
- remove ethdr vblank spin lock
- refine ovl_adaptor print message
Changes in v10:
- refine ethdr reset control using devm_reset_control_array_get_optional_exclusive
- fix ovl_adaptor mtk_ovl_adaptor_clk_enable error handle issue
Changes in v9:
- rebase on kernel-5.16-rc1
- rebase on vdosys0 series v13. (ref [5])
- fix ovl_adaptor sub driver is brought up unintentionally
- fix clang build test fail- duplicate ethdr/mdp_rdma init_module/cleanup_module symbol issue
Changes in v8:
- separate merge async reset to new patch.
- separate drm ovl_adaptor sub driver to new patch.
- fix reviewer comment in v7.
Changes in v7:
- rebase on vdosys0 series v12 (ref[5])
- add dma description in ethdr binding document.
- refine vdosys1 bit definition of mmsys routing table.
- separate merge modification into 3 pathces.
- separate mutex modification into 2 patches.
- add plane color coding for mdp_rdma csc.
- move mdp_rdma pm control to ovl_adaptor.
- fix reviewer comment in v6.
Changes in v6:
- rebase on kernel-5.15-rc1.
- change mbox label to gce0 for dts node of vdosys1.
- modify mmsys reset num for mt8195.
- rebase on vdosys0 series v10. (ref [5])
- use drm to bring up ovl_adaptor driver.
- move drm iommu/mutex check from kms init to drm bind.
- modify rdma binding doc location. (Documentation/devicetree/bindings/arm/)
- modify for reviewer's comment in v5.
Changes in v5:
- add mmsys reset controller reference.
Changes in v4:
- use merge common driver for merge1~4.
- refine ovl_adaptor rdma driver.
- use ovl_adaptor ddp_comp function instead of ethdr.
- modify for reviewer's comment in v3.
Changes in v3:
- modify for reviewer's comment in v2.
- add vdosys1 2 pixels align limit.
- add mixer odd offset support.
Changes in v2:
- Merge PSEUDO_OVL and ETHDR into one DRM component.
- Add mmsys config API for vdosys1 hardware setting.
- Add mmsys reset control using linux reset framework.
Signed-off-by: Nancy.Lin <nancy.lin(a)mediatek.com>
This series are based on the following patch:
[1] arm64: dts: Add mediatek SoC mt8195 and evaluation board
20220112114724.1953-4-tinghan.shen(a)mediatek.com
[2] arm64: dts: mt8195: add IOMMU and smi nodes
20210615173233.26682-15-tinghan.shen(a)mediatek.com
[3] arm64: dts: mt8195: add gce node
20220126090109.32143-1-jason-jh.lin(a)mediatek.com
[4] [v2] arm64: dts: mt8195: add display node for vdosys0
20220225021535.2655-1-jason-jh.lin(a)mediatek.com
[5] Add MediaTek SoC DRM (vdosys0) support for mt8195 - v22 series
20220526102126.19756-1-jason-jh.lin(a)mediatek.com
[6] dt-bindings: mediatek: mt8195: Add binding for MM IOMMU
20220407075726.17771-2-yong.wu(a)mediatek.com
[7] Add MediaTek SoC DRM (vdosys1) support for mt8195
20220526110233.20080-1-nancy.lin(a)mediatek.com
Nancy.Lin (10):
dt-bindings: reset: mt8195: add vdosys1 reset control bit
soc: mediatek: add mtk-mmsys ethdr and mdp_rdma components
soc: mediatek: add mtk-mmsys support for mt8195 vdosys1
soc: mediatek: add mtk_mmsys_update_bits API
soc: mediatek: add mtk-mmsys config API for mt8195 vdosys1
soc: mediatek: add cmdq support of mtk-mmsys config API for mt8195
vdosys1
soc: mediatek: mmsys: add mmsys for support 64 reset bits
soc: mediatek: mmsys: add reset control for MT8195 vdosys1
soc: mediatek: add mtk-mutex component - dp_intf1
soc: mediatek: add mtk-mutex support for mt8195 vdosys1
drivers/soc/mediatek/mt8195-mmsys.h | 146 ++++++++++++++++++++++
drivers/soc/mediatek/mtk-mmsys.c | 134 +++++++++++++++-----
drivers/soc/mediatek/mtk-mmsys.h | 1 +
drivers/soc/mediatek/mtk-mutex.c | 37 ++++++
include/dt-bindings/reset/mt8195-resets.h | 45 +++++++
include/linux/soc/mediatek/mtk-mmsys.h | 25 ++++
6 files changed, 354 insertions(+), 34 deletions(-)
--
2.18.0
[View Less]
This series refactors i915's stolen memory region to use ttm.
v2: handle disabled stolen similar to legacy version.
relying on ttm to fail allocs works fine, but is dmesg noisy and causes testing
dmesg warning regressions.
v3: rebase to latest drm-tip.
fix v2 code refactor which could leave a buffer pinned.
locally passes fftl again now.
v4: - Allow memory regions creators to do allocation. Allows stolen region to track
it's own reservations.
- Pre-reserve first page of stolen mem (…
[View More]add back WaSkipStolenMemoryFirstPage:bdw+)
- Improve commit descritpion for "drm/i915: sanitize mem_flags for stolen buffers"
- replace i915_gem_object_pin_pages_unlocked() call with manual locking and pinning.
this avoids ww ctx class reuse during context creation -> ring vma obj alloc.
v5: - detect both types of stolen as stolen buffers in
"drm/i915: sanitize mem_flags for stolen buffers"
- in stolen_object_init limit page size to mem region minimum.
The range allocator expects the page_size to define the
alignment
v6: - Share first 4 patches from ttm for internal series as generic
i915 ttm fixes
- Drop patch 4 from v5. We don't need separate object ops just
to satisfy test interfaces. The tests have now been fixed via
checking whether the memory region is private to decide
whether to mmap
- Add new buffer pin alloc flag to allow creation of buffers in
their final ttm placement instead of deferring until
get_pages. This fixes legacy fallback paths for buffer
allocations during stolen memory pressure.
v7: - fix mock_region_get_pages() to correctly handle I915_BO_INVALID_OFFSET
v8: - Reserve I915_GEM_STOLEN_BIAS area from stolen
Robert Beckett (10):
drm/i915/ttm: dont trample cache_level overrides during ttm move
drm/i915: limit ttm to dma32 for i965G[M]
drm/i915/ttm: only trust snooping for dgfx when deciding default
cache_level
drm/i915/gem: selftest should not attempt mmap of private regions
drm/i915: instantiate ttm ranger manager for stolen memory
drm/i915: sanitize mem_flags for stolen buffers
drm/i915: ttm move/clear logic fix
drm/i915: allow memory region creators to alloc and free the region
drm/i915/ttm: add buffer pin on alloc flag
drm/i915: stolen memory use ttm backend
drivers/gpu/drm/i915/display/intel_fbc.c | 78 ++--
drivers/gpu/drm/i915/gem/i915_gem_object.c | 1 +
.../gpu/drm/i915/gem/i915_gem_object_types.h | 16 +-
drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 441 +++++++-----------
drivers/gpu/drm/i915/gem/i915_gem_stolen.h | 21 +-
drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 29 +-
drivers/gpu/drm/i915/gem/i915_gem_ttm.h | 7 +
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c | 47 +-
.../drm/i915/gem/selftests/i915_gem_mman.c | 3 +
drivers/gpu/drm/i915/gt/intel_rc6.c | 4 +-
drivers/gpu/drm/i915/gt/selftest_reset.c | 16 +-
drivers/gpu/drm/i915/i915_debugfs.c | 7 +-
drivers/gpu/drm/i915/i915_drv.h | 5 -
drivers/gpu/drm/i915/intel_memory_region.c | 16 +-
drivers/gpu/drm/i915/intel_memory_region.h | 2 +
drivers/gpu/drm/i915/intel_region_ttm.c | 80 +++-
drivers/gpu/drm/i915/intel_region_ttm.h | 8 +-
drivers/gpu/drm/i915/selftests/mock_region.c | 12 +-
18 files changed, 424 insertions(+), 369 deletions(-)
--
2.25.1
[View Less]
Hi Dave & Daniel -
drm-intel-fixes-2022-06-22:
drm/i915 fixes for v5.19-rc4:
- Revert low voltage SKU check removal to fix display issues
- Apply PLL DCO fraction workaround for ADL-S
- Don't show engine classes not present in client fdinfo
BR,
Jani.
The following changes since commit a111daf0c53ae91e71fd2bfe7497862d14132e3e:
Linux 5.19-rc3 (2022-06-19 15:06:47 -0500)
are available in the Git repository at:
git://anongit.freedesktop.org/drm/drm-intel tags/drm-intel-fixes-2022-06-…
[View More]22
for you to fetch changes up to c7b28f52f406bc89d15ca0ccbc47994f979f2fcd:
drm/i915/display: Re-add check for low voltage sku for max dp source rate (2022-06-20 19:39:00 +0300)
----------------------------------------------------------------
drm/i915 fixes for v5.19-rc4:
- Revert low voltage SKU check removal to fix display issues
- Apply PLL DCO fraction workaround for ADL-S
- Don't show engine classes not present in client fdinfo
----------------------------------------------------------------
Jason A. Donenfeld (1):
drm/i915/display: Re-add check for low voltage sku for max dp source rate
Tvrtko Ursulin (1):
drm/i915/fdinfo: Don't show engine classes not present
Ville Syrjälä (1):
drm/i915: Implement w/a 22010492432 for adl-s
drivers/gpu/drm/i915/display/intel_dp.c | 32 ++++++++++++++++++++++++---
drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 4 ++--
drivers/gpu/drm/i915/i915_drm_client.c | 5 +++--
3 files changed, 34 insertions(+), 7 deletions(-)
--
Jani Nikula, Intel Open Source Graphics Center
[View Less]
I have been working on mediatek driver development for a very long time,
and sent many patches to change the driver architecture. Add myself as
co-maintainer for mediatek vcodec driver.
Signed-off-by: Yunfei Dong <yunfei.dong(a)mediatek.com>
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index e22a79ffa4d0..1b3a30f33f0c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -12389,6 +12389,7 @@ F: drivers/media/platform/mediatek/vpu/
MEDIATEK MEDIA …
[View More]DRIVER
M: Tiffany Lin <tiffany.lin(a)mediatek.com>
M: Andrew-CT Chen <andrew-ct.chen(a)mediatek.com>
+M: Yunfei Dong <yunfei.dong(a)mediatek.com>
S: Supported
F: Documentation/devicetree/bindings/media/mediatek,vcodec*.yaml
F: Documentation/devicetree/bindings/media/mediatek-vpu.txt
--
2.25.1
[View Less]