Re: [Intel-gfx] [PATCH 1/5] drm/i915: audit bo->resource usage v3

2023-01-25 Thread Matthew Auld
On Wed, 25 Jan 2023 at 11:35, Christian König wrote: > > Am 25.01.23 um 11:21 schrieb Matthew Auld: > > On Wed, 25 Jan 2023 at 10:07, Christian König > > wrote: > >> Am 25.01.23 um 10:56 schrieb Matthew Auld: > >>> On Tue, 24 Jan 2023 at 17:15, Matthew Auld > >>> wrote: > On Tue, 24 Jan

Re: [Intel-gfx] [PATCH v2 06/10] drm/fb-helper: Initialize fb-helper's preferred BPP in prepare function

2023-01-25 Thread kernel test robot
/0day-ci/archive/20230125/202301252016.vm7ksfra-...@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross

Re: [PATCH v2 02/13] spi: Replace all spi->chip_select and spi->cs_gpiod references with function call

2023-01-25 Thread William Zhang
On 01/19/2023 10:53 AM, 'Amit Kumar Mahapatra' via BCM-KERNEL-FEEDBACK-LIST,PDL wrote: > diff --git a/drivers/spi/spi-bcm63xx-hsspi.c > b/drivers/spi/spi-bcm63xx-hsspi.c > index b871fd810d80..dc179c4677d4 100644 > --- a/drivers/spi/spi-bcm63xx-hsspi.c > +++ b/drivers/spi/spi-bcm63xx-hsspi.c > @@

RE: [PATCH] PM / devfreq: Fix build issues with devfreq disabled

2023-01-25 Thread MyungJoo Ham
>Sender : Rob Clark  >Date : 2023-01-24 00:37 (GMT+9) >Title : [PATCH] PM / devfreq: Fix build issues with devfreq disabled >  >From: Rob Clark > >The existing no-op shims for when PM_DEVFREQ (or an individual governor) >only do half the job.  The governor specific config/tuning structs need >to

fbcon font is reset after GPU is loaded

2023-01-25 Thread novenary
Hi, This appears to be a pretty common problem. systemd includes a udev rule[1] which loads a console font from userspace, using setfont from the kbd package, when a vtcon device is added. According to udev debug logs, this event only fires once. This actually works fine all the way until the

RE: Re: [PATCH] PM / devfreq: Fix build issues with devfreq disabled

2023-01-25 Thread MyungJoo Ham
>On Tue, Jan 24, 2023 at 8:04 PM MyungJoo Ham wrote: >> >> >Sender : Rob Clark >> >Date : 2023-01-24 00:37 (GMT+9) >> >Title : [PATCH] PM / devfreq: Fix build issues with devfreq disabled >> > >> >From: Rob Clark >> > >> >The existing no-op shims for when PM_DEVFREQ (or an individual governor)

Re: Assertion failure in i915 intel_display.c#assert_plane() after resume from hibernation

2023-01-25 Thread наб
Booted with both, hibernated, resumed; full dmesg below. Best, -- >8 -- [0.00] Linux version 6.1.0-2-686-pae (debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian 6.1.7-1 (2023-01-18) [0.00]

Re: [PATCH v2 1/4] memcg: Track exported dma-buffers

2023-01-25 Thread Michal Hocko
On Tue 24-01-23 10:55:21, T.J. Mercier wrote: > On Tue, Jan 24, 2023 at 7:00 AM Michal Hocko wrote: > > > > On Mon 23-01-23 19:17:23, T.J. Mercier wrote: > > > When a buffer is exported to userspace, use memcg to attribute the > > > buffer to the allocating cgroup until all buffer references are

Re: [PATCH v2 1/4] memcg: Track exported dma-buffers

2023-01-25 Thread Michal Hocko
On Tue 24-01-23 19:46:28, Shakeel Butt wrote: > On Tue, Jan 24, 2023 at 03:59:58PM +0100, Michal Hocko wrote: > > On Mon 23-01-23 19:17:23, T.J. Mercier wrote: > > > When a buffer is exported to userspace, use memcg to attribute the > > > buffer to the allocating cgroup until all buffer references

[PATCH 3/9] drm/display/dp_mst: Add drm_atomic_get_old_mst_topology_state()

2023-01-25 Thread Imre Deak
Add a function to get the old MST topology state, required by a follow-up i915 patch. While at it clarify the code comment of drm_atomic_get_new_mst_topology_state(). Cc: Lyude Paul Cc: sta...@vger.kernel.org # 6.1 Cc: dri-devel@lists.freedesktop.org Signed-off-by: Imre Deak ---

[PATCH 5/9] drm/display/dp_mst: Fix the payload VCPI check in drm_dp_mst_dump_topology()

2023-01-25 Thread Imre Deak
Fix an off-by-one error in the VCPI check in drm_dp_mst_dump_topology(). Cc: Lyude Paul Cc: dri-devel@lists.freedesktop.org Signed-off-by: Imre Deak --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 8/9] drm/display/dp_mst: Add a helper to verify the MST payload state

2023-01-25 Thread Imre Deak
Add a function drivers can use to verify the MST payload state tracking and compare this to the sink's payload table. Cc: Lyude Paul Cc: dri-devel@lists.freedesktop.org Signed-off-by: Imre Deak --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 169 ++

[PATCH 2/9] drm/display/dp_mst: Handle old/new payload states in drm_dp_remove_payload()

2023-01-25 Thread Imre Deak
Atm, drm_dp_remove_payload() uses the same payload state to both get the vc_start_slot required for the payload removal DPCD message and to deduct time_slots from vc_start_slot of all payloads after the one being removed. The above isn't always correct, as vc_start_slot must be the up-to-date

Re: [PATCH v2 2/4] drm/amdkfd: Use cursor start instead of ttm resource start

2023-01-25 Thread Christian König
Am 25.01.23 um 11:48 schrieb Somalapuram Amaranath: cleanup PAGE_SHIFT operation and replacing ttm_resource resource->start with cursor start using amdgpu_res_first API v1 -> v2: reorder patch sequence Signed-off-by: Somalapuram Amaranath ---

Re: [PATCH v2 1/4] drm/amdgpu: Use cursor start instead of ttm resource start

2023-01-25 Thread Christian König
Am 25.01.23 um 11:48 schrieb Somalapuram Amaranath: cleanup PAGE_SHIFT operation and replacing ttm_resource resource->start with cursor start using amdgpu_res_first API. v1 -> v2: reorder patch sequence Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 11

Re: [PATCH] dt-bindings: Add missing (unevaluated|additional)Properties on child node schemas

2023-01-25 Thread Mark Brown
On Tue, Jan 24, 2023 at 05:02:28PM -0600, Rob Herring wrote: > Just as unevaluatedProperties or additionalProperties are required at > the top level of schemas, they should (and will) also be required for > child node schemas. That ensures only documented properties are > present. > > Add

Re: [PATCH] dt-bindings: Add missing (unevaluated|additional)Properties on child node schemas

2023-01-25 Thread Mark Brown
On Tue, Jan 24, 2023 at 05:00:48PM -0600, Rob Herring wrote: > Just as unevaluatedProperties or additionalProperties are required at > the top level of schemas, they should (and will) also be required for > child node schemas. That ensures only documented properties are > present. > > Add

[PATCH v7 5/6] drm/tidss: Add IO CTRL and Power support for OLDI TX in am625

2023-01-25 Thread Aradhya Bhatia
The ctrl mmr module of the AM625 is different from the AM65X SoC. Thus the ctrl mmr registers that supported the OLDI TX power have become different in AM625 SoC. The common mode voltage of the LVDS buffers becomes random when the bandgap reference is turned off. This causes uncertainity in the

[PATCH v7 4/6] drm/tidss: Add support to configure OLDI mode for am625-dss

2023-01-25 Thread Aradhya Bhatia
The newer version of DSS (AM625-DSS) has 2 OLDI TXes at its disposal. These can be configured to support the following modes: 1. OLDI_SINGLE_LINK_SINGLE_MODE Single Output over OLDI 0. +--++-+ +---+ | || | | | | CRTC +--->+ ENCODER

[PATCH v7 3/6] drm/tidss: Add support for AM625 DSS

2023-01-25 Thread Aradhya Bhatia
Add support for the DSS controller on TI's new AM625 SoC in the tidss driver. The first video port (VP0) in am625-dss can output OLDI signals through 2 OLDI TXes. A 3rd output port has been added with "DISPC_PORT_OLDI" bus type. Signed-off-by: Aradhya Bhatia ---

[PATCH v7 6/6] drm/tidss: Enable Dual and Duplicate Modes for OLDI

2023-01-25 Thread Aradhya Bhatia
The AM625 DSS IP contains 2 OLDI TXes which can work together to enable 2 cloned displays of or even a single dual-link display with higher resolutions like WUXGA (1920x1200@60fps) with a reduced OLDI clock frequency. Configure the necessary register to enable and disable the OLDI TXes with

[PATCH v7 2/6] dt-bindings: display: ti, am65x-dss: Add support for am625 dss

2023-01-25 Thread Aradhya Bhatia
The DSS controller on TI's AM625 SoC is an update from that on TI's AM65X SoC. The former has an additional OLDI TX on its first video port (VP0) that helps output cloned video or WUXGA (1920x1200@60fps) resolution video output over a dual-link mode to reduce the required OLDI clock output. Add

[PATCH v7 1/6] drm/tidss: Remove Video Port to Output Port coupling

2023-01-25 Thread Aradhya Bhatia
Make DSS Video Ports agnostic of output bus types. DSS controllers have had a 1-to-1 coupling between its VPs and its output ports. This no longer stands true for the new AM625 DSS. This coupling, hence, has been removed by renaming the 'vp_bus_type' to 'output_port_bus_type' because the VPs are

[PATCH v7 0/6] Add DSS support for AM625 SoC

2023-01-25 Thread Aradhya Bhatia
This patch series adds a new compatible for the Display SubSystem (DSS) controller on TI's AM625 SoC. It further adds the required support for the same in the tidss driver. The AM625-DSS is a newer version of the DSS from the AM65X version with the major change being the addition of another OLDI

Re: [Intel-gfx] [PATCH 1/5] drm/i915: audit bo->resource usage v3

2023-01-25 Thread Christian König
Am 25.01.23 um 11:21 schrieb Matthew Auld: On Wed, 25 Jan 2023 at 10:07, Christian König wrote: Am 25.01.23 um 10:56 schrieb Matthew Auld: On Tue, 24 Jan 2023 at 17:15, Matthew Auld wrote: On Tue, 24 Jan 2023 at 13:48, Matthew Auld wrote: On Tue, 24 Jan 2023 at 12:57, Christian König

Re: [Intel-gfx] [PATCH 5/5] drm/ttm: replace busy placement with flags v2

2023-01-25 Thread kernel test robot
-tip drm-tip patch link: https://lore.kernel.org/r/20230124125726.13323-5-christian.koenig%40amd.com patch subject: [Intel-gfx] [PATCH 5/5] drm/ttm: replace busy placement with flags v2 config: i386-defconfig (https://download.01.org/0day-ci/archive/20230125/202301251900.qqxh4bli-...@intel.com

[CI v8 4/4] drm/i915/panel: move panel fixed EDID to struct intel_panel

2023-01-25 Thread Jani Nikula
It's a bit confusing to have two cached EDIDs in struct intel_connector with slightly different purposes. Make the distinction a bit clearer by moving the EDID cached for eDP and LVDS panels at connector init time to struct intel_panel, and name it fixed_edid. That's what it is, a fixed EDID for

[CI v8 3/4] drm/i915/opregion: convert intel_opregion_get_edid() to struct drm_edid

2023-01-25 Thread Jani Nikula
Simplify validation and use by converting to drm_edid. Cc: Ville Syrjälä Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp.c | 10 ++- drivers/gpu/drm/i915/display/intel_opregion.c | 29 +++

[CI v8 2/4] drm/i915/bios: convert intel_bios_init_panel() to drm_edid

2023-01-25 Thread Jani Nikula
Try to use struct drm_edid where possible, even if having to fall back to looking into struct edid down low via drm_edid_raw(). v2: Rebase Cc: Ville Syrjälä Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 23 ---

[CI v8 1/4] drm/i915/edid: convert DP, HDMI and LVDS to drm_edid

2023-01-25 Thread Jani Nikula
Convert all the connectors that use cached connector edid and detect_edid to drm_edid. Since drm_get_edid() calls drm_connector_update_edid_property() while drm_edid_read*() do not, we need to call drm_edid_connector_update() separately, in part due to the EDID caching behaviour in HDMI and DP.

[CI v8 0/4] drm/i915: switch to drm_edid and enable HF-EEODB support

2023-01-25 Thread Jani Nikula
Here are the drm/i915 patches from [1], re-submitted to CI now that the drm/edid dependencies from that series have been merged to drm-misc-next, merged to drm-next, and backmerged to drm-misc-next. Fingers crossed. This has been a long journey. [1]

Re: [PATCH v3 00/10] Let iommufd charge IOPTE allocations to the memory cgroup

2023-01-25 Thread Joerg Roedel
On Mon, Jan 23, 2023 at 04:35:53PM -0400, Jason Gunthorpe wrote: > Jason Gunthorpe (10): > iommu: Add a gfp parameter to iommu_map() > iommu: Remove iommu_map_atomic() > iommu: Add a gfp parameter to iommu_map_sg() > iommu/dma: Use the gfp parameter in __iommu_dma_alloc_noncontiguous() >

Re: [Intel-gfx] [PATCH v4] drm/i915/uncore: Use GT message helpers in uncore

2023-01-25 Thread Tvrtko Ursulin
On 24/01/2023 20:54, john.c.harri...@intel.com wrote: From: John Harrison Uncore is really part of the GT. So use the GT specific debug/error message helpers so as to get the GT index in the prints. Conversion looks good to me and on balance it's better to include the origin in logs even

[PATCH v2 4/4] drm/amdgpu: Support allocate of amdgpu_gtt_mgr from pages to bytes

2023-01-25 Thread Somalapuram Amaranath
Change the GTT manager init and allocate from pages to bytes v1 -> v2: reorder patch sequence Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git

[PATCH v2 2/4] drm/amdkfd: Use cursor start instead of ttm resource start

2023-01-25 Thread Somalapuram Amaranath
cleanup PAGE_SHIFT operation and replacing ttm_resource resource->start with cursor start using amdgpu_res_first API v1 -> v2: reorder patch sequence Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH v2 3/4] drm/amdgpu: Movie the amdgpu_gtt_mgr start and size from pages to bytes

2023-01-25 Thread Somalapuram Amaranath
To support GTT manager amdgpu_res_first, amdgpu_res_next from pages to bytes and clean up PAGE_SHIFT operation. v1 -> v2: reorder patch sequence Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[PATCH v2 1/4] drm/amdgpu: Use cursor start instead of ttm resource start

2023-01-25 Thread Somalapuram Amaranath
cleanup PAGE_SHIFT operation and replacing ttm_resource resource->start with cursor start using amdgpu_res_first API. v1 -> v2: reorder patch sequence Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 11 --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c

Re: [PATCH] drm/bridge: Kconfig: fix a spelling mistake

2023-01-25 Thread Jagan Teki
On Wed, Jan 25, 2023 at 5:04 AM Randy Dunlap wrote: > > Correct a spelling mistake (reported by codespell). > > Signed-off-by: Randy Dunlap > Cc: Jagan Teki > Cc: Andrzej Hajda > Cc: Neil Armstrong > Cc: Robert Foss > Cc: David Airlie > Cc: Daniel Vetter > Cc:

Re: [PATCH] dt-bindings: Add missing (unevaluated|additional)Properties on child node schemas

2023-01-25 Thread Ulf Hansson
On Wed, 25 Jan 2023 at 00:00, Rob Herring wrote: > > Just as unevaluatedProperties or additionalProperties are required at > the top level of schemas, they should (and will) also be required for > child node schemas. That ensures only documented properties are > present. > > Add

Re: [Intel-gfx] [PATCH 1/5] drm/i915: audit bo->resource usage v3

2023-01-25 Thread Matthew Auld
On Wed, 25 Jan 2023 at 10:07, Christian König wrote: > > > > Am 25.01.23 um 10:56 schrieb Matthew Auld: > > On Tue, 24 Jan 2023 at 17:15, Matthew Auld > > wrote: > >> On Tue, 24 Jan 2023 at 13:48, Matthew Auld > >> wrote: > >>> On Tue, 24 Jan 2023 at 12:57, Christian König > >>> wrote: >

[PATCH v2] drm/msm/dpu: Add DSC hardware blocks to register snapshot

2023-01-25 Thread Marijn Suijten
Add missing DSC hardware block register ranges to the snapshot utility to include them in dmesg (on MSM_DISP_SNAPSHOT_DUMP_IN_CONSOLE) and the kms debugfs file. Signed-off-by: Marijn Suijten Reviewed-by: Neil Armstrong --- Changes since v1: - Rebase on next-20230125 to solve conflicts

Re: [PATCH] dt-bindings: Add missing (unevaluated|additional)Properties on child node schemas

2023-01-25 Thread Krzysztof Kozlowski
On 25/01/2023 00:02, Rob Herring wrote: > Just as unevaluatedProperties or additionalProperties are required at > the top level of schemas, they should (and will) also be required for > child node schemas. That ensures only documented properties are > present. > > Add unevaluatedProperties or

Re: [Intel-gfx] [PATCH 1/5] drm/i915: audit bo->resource usage v3

2023-01-25 Thread Christian König
Am 25.01.23 um 10:56 schrieb Matthew Auld: On Tue, 24 Jan 2023 at 17:15, Matthew Auld wrote: On Tue, 24 Jan 2023 at 13:48, Matthew Auld wrote: On Tue, 24 Jan 2023 at 12:57, Christian König wrote: From: Christian König Make sure we can at least move and alloc TT objects without backing

Re: [PATCH 1/4] drm/amdgpu: Movie the amdgpu_gtt_mgr start and size from pages to bytes

2023-01-25 Thread Christian König
Am 25.01.23 um 11:00 schrieb Somalapuram Amaranath: To support GTT manager amdgpu_res_first, amdgpu_res_next from pages to bytes and clean up PAGE_SHIFT operation. You really need to think more about the order and integrity of your patches. Keep in mind that each patch on its own should be

[PATCH v4 4/4] drm/i915: Clean up page shift operation

2023-01-25 Thread Somalapuram Amaranath
Remove page shift operations as ttm_resource moved from num_pages to size_t size in bytes. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/i915/i915_scatterlist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_scatterlist.c

[PATCH v4 3/4] drm/amdgpu: GDS/GWS/OA cleanup the page shift operation

2023-01-25 Thread Somalapuram Amaranath
Remove page shift operations as ttm_resource moved from num_pages to size_t size in bytes. v1 – v4: adding missing related to amdgpu_ttm_init_on_chip Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c| 12 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

[PATCH v4 2/4] drm/ttm: Clean up page shift operation

2023-01-25 Thread Somalapuram Amaranath
Remove page shift operations as ttm_resource moved from num_pages to size_t size in bytes. v1 -> v2: fix missing page shift to fpfn and lpfn v2 -> v3: separate patches based on driver module Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/ttm/ttm_range_manager.c | 13 ++--- 1

[PATCH v4 1/4] drm/gem: Remove BUG_ON in drm_gem_private_object_init

2023-01-25 Thread Somalapuram Amaranath
ttm_resource can allocate size in bytes to support less than page size Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/drm_gem.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index 59a0bb5ebd85..ee8b5c2b6c60 100644 ---

[PATCH 4/4] drm/amdkfd: Use cursor start instead of ttm resource start

2023-01-25 Thread Somalapuram Amaranath
cleanup PAGE_SHIFT operation and replacing ttm_resource resource->start with cursor start using amdgpu_res_first API Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH 3/4] drm/amdgpu: Use cursor start instead of ttm resource start

2023-01-25 Thread Somalapuram Amaranath
cleanup PAGE_SHIFT operation and replacing ttm_resource resource->start with cursor start using amdgpu_res_first API. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 11 --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c| 10 +++--- 2 files

[PATCH 2/4] drm/amdgpu: Support allocate of amdgpu_gtt_mgr from pages to bytes

2023-01-25 Thread Somalapuram Amaranath
Change the GTT manager init and allocate from pages to bytes Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c

[PATCH 1/4] drm/amdgpu: Movie the amdgpu_gtt_mgr start and size from pages to bytes

2023-01-25 Thread Somalapuram Amaranath
To support GTT manager amdgpu_res_first, amdgpu_res_next from pages to bytes and clean up PAGE_SHIFT operation. Signed-off-by: Somalapuram Amaranath --- drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [Intel-gfx] [PATCH 1/5] drm/i915: audit bo->resource usage v3

2023-01-25 Thread Matthew Auld
On Tue, 24 Jan 2023 at 17:15, Matthew Auld wrote: > > On Tue, 24 Jan 2023 at 13:48, Matthew Auld > wrote: > > > > On Tue, 24 Jan 2023 at 12:57, Christian König > > wrote: > > > > > > From: Christian König > > > > > > Make sure we can at least move and alloc TT objects without backing store. >

Re: [PATCH v2 10/10] drm/fbdev-generic: Rename struct fb_info 'fbi' to 'info'

2023-01-25 Thread Javier Martinez Canillas
On 1/24/23 14:40, Thomas Zimmermann wrote: > The generic fbdev emulation names variables of type struct fb_info > both 'fbi' and 'info'. The latter seems to be more common in fbdev > code, so name fbi accordingly. > > Also replace the duplicate variable in drm_fbdev_fb_destroy(). > >

Re: [PATCH v2 09/10] drm/fbdev-generic: Inline clean-up helpers into drm_fbdev_fb_destroy()

2023-01-25 Thread Javier Martinez Canillas
On 1/24/23 14:40, Thomas Zimmermann wrote: > The fbdev framebuffer cleanup in drm_fbdev_fb_destroy() calls > drm_fbdev_release() and drm_fbdev_cleanup(). Inline both into the > caller. No functional changes. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas --

Re: [PATCH v2 08/10] drm/fbdev-generic: Minimize client unregistering

2023-01-25 Thread Javier Martinez Canillas
On 1/24/23 14:40, Thomas Zimmermann wrote: > For uninitialized framebuffers, only release the DRM client and > free the fbdev memory. Do not attempt to clean up the framebuffer. > > DRM fbdev clients have a two-step initialization: first create > the DRM client; then create the framebuffer device

Re: [PATCH v2 07/10] drm/fbdev-generic: Minimize hotplug error handling

2023-01-25 Thread Javier Martinez Canillas
On 1/24/23 14:40, Thomas Zimmermann wrote: > Call drm_fb_helper_init() in the generic-fbdev hotplug helper drm_fb_helper_fini() > to revert the effects of drm_fb_helper_init(). No full cleanup > is required. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas --

Re: [PATCH v2 06/10] drm/fb-helper: Initialize fb-helper's preferred BPP in prepare function

2023-01-25 Thread Javier Martinez Canillas
On 1/24/23 14:40, Thomas Zimmermann wrote: > Initialize the fb-helper's preferred_bpp field early from within > drm_fb_helper_prepare(); instead of the later client hot-plugging > callback. This simplifies the generic fbdev setup function. > > No real changes, but all drivers' fbdev code has to

Re: [PATCH v2 05/10] drm/fb-helper: Remove preferred_bpp parameter from fbdev internals

2023-01-25 Thread Javier Martinez Canillas
On 1/24/23 14:40, Thomas Zimmermann wrote: > Store the console's preferred BPP value in struct drm_fb_helper > and remove the respective function parameters from the internal > fbdev code. > > The BPP value is only required as a fallback and will now always > be available in the fb-helper

Re: [PATCH v2 04/10] drm/fbdev-generic: Initialize fb-helper structure in generic setup

2023-01-25 Thread Javier Martinez Canillas
On 1/24/23 14:40, Thomas Zimmermann wrote: > Initialize the fb-helper structure immediately after its allocation > in drm_fbdev_generic_setup(). That will make it easier to fill it with > driver-specific values, such as the preferred BPP. > > Signed-off-by: Thomas Zimmermann > --- [...] > @@

Re: [PATCH v3 2/2] drm/probe_helper: sort out poll_running vs poll_enabled

2023-01-25 Thread Neil Armstrong
Hi, On 24/01/2023 11:45, Dmitry Baryshkov wrote: There are two flags attemting to guard connector polling: poll_enabled and poll_running. While poll_enabled semantics is clearly defined and fully adhered (mark that drm_kms_helper_poll_init() was called and not finalized by the _fini() call),

Re: [PATCH v2 03/10] drm/fb-helper: Introduce drm_fb_helper_unprepare()

2023-01-25 Thread Javier Martinez Canillas
On 1/24/23 14:40, Thomas Zimmermann wrote: > Move the fb-helper clean-up code into drm_fb_helper_unprepare(). No > functional changes. > > v2: > * declare as static inline (kernel test robot) > > Signed-off-by: Thomas Zimmermann > --- > drivers/gpu/drm/drm_fb_helper.c | 14 +-

Re: [PATCH] drm/bridge: Kconfig: fix a spelling mistake

2023-01-25 Thread Neil Armstrong
On 25/01/2023 00:34, Randy Dunlap wrote: Correct a spelling mistake (reported by codespell). Signed-off-by: Randy Dunlap Cc: Jagan Teki Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Robert Foss Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Reviewed-by: Neil

Re: [PATCH] drm/msm/dpu: Add DSC hardware blocks to register snapshot

2023-01-25 Thread Neil Armstrong
On 25/01/2023 10:13, Marijn Suijten wrote: Add missing DSC hardware block register ranges to the snapshot utility to include them in dmesg (on MSM_DISP_SNAPSHOT_DUMP_IN_CONSOLE) and the kms debugfs file. Signed-off-by: Marijn Suijten --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 5 + 1

[PATCH] drm/msm/dpu: Add DSC hardware blocks to register snapshot

2023-01-25 Thread Marijn Suijten
Add missing DSC hardware block register ranges to the snapshot utility to include them in dmesg (on MSM_DISP_SNAPSHOT_DUMP_IN_CONSOLE) and the kms debugfs file. Signed-off-by: Marijn Suijten --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH v1 12/14] drm/msm/disp/dpu1: revise timing engine programming to work for DSC

2023-01-25 Thread Neil Armstrong
On 25/01/2023 00:36, Marijn Suijten wrote: On 2023-01-24 09:55:24, Kuogee Hsieh wrote: This timing engine code is derived from our downstream code directly and it has been used at many mobile devices by many vendors for many years already. On the other words, it had been tested very

Re: [PATCH v2 02/10] drm/client: Add hotplug_failed flag

2023-01-25 Thread Javier Martinez Canillas
On 1/24/23 14:40, Thomas Zimmermann wrote: > Signal failed hotplugging with a flag in struct drm_client_dev. If set, > the client helpers will not further try to set up the fbdev display. > > This used to be signalled with a combination of cleared pointers in > struct drm_fb_helper, which

Re: [PATCH v1 13/14] drm/msm/disp/dpu1: add dsc supporting functions to dpu encoder

2023-01-25 Thread Neil Armstrong
On 23/01/2023 19:24, Kuogee Hsieh wrote: Since display Port is an external peripheral, runtime compression detection is added to handle plug in and unplugged events. Currently only DSC compression supported. Once DSC compression detected, topology is static added and used to allocate system

Re: [PATCH v2 01/10] drm/client: Test for connectors before sending hotplug event

2023-01-25 Thread Javier Martinez Canillas
Hello Thomas, On 1/24/23 14:40, Thomas Zimmermann wrote: > Test for connectors in the client code and remove a similar test > from the generic fbdev emulation. Do nothing if the test fails. > Not having connectors indicates a driver bug. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by:

Re: [PATCH v3 0/6] drm/rockchip: vop2: add support for the rgb output block

2023-01-25 Thread Sascha Hauer
On Tue, Jan 24, 2023 at 06:47:00AM +0100, Michael Riesch wrote: > Hi all, > > This series adds support for the RGB output block that can be found in the > Rockchip Video Output Processor (VOP) 2. Version 2 of this series > incorporates the feedback by Dan Carpenter and Sascha Hauer. Version 3 >

[PATCH v7 2/6] drm/i915/pxp: add device link between i915 and mei_pxp

2023-01-25 Thread Alan Previn
From: Alexander Usyskin Add device link with i915 as consumer and mei_pxp as supplier to ensure proper ordering of power flows. V2: condition on absence of heci_pxp to filter out DG Signed-off-by: Alexander Usyskin Signed-off-by: Alan Previn --- drivers/gpu/drm/i915/pxp/intel_pxp_tee.c |

[PATCH v7 4/6] drm/i915/pxp: Invalidate all PXP fw sessions during teardown

2023-01-25 Thread Alan Previn
A gap was recently discovered where if an application did not invalidate all of the stream keys (intentionally or not), and the driver did a full PXP global teardown on the GT subsystem, we find that future session creation would fail on the security firmware's side of the equation. i915 is the

[PATCH v7 3/6] mei: clean pending read with vtag on bus

2023-01-25 Thread Alan Previn
From: Alexander Usyskin Client on bus have only one vtag map slot and should disregard the vtag value when cleaning pending read flag. Fixes read flow control message unexpectedly generated when clent on bus send messages with different vtags. Signed-off-by: Alexander Usyskin Reviewed-by:

[PATCH v7 6/6] drm/i915/pxp: Pxp hw init should be in resume_complete

2023-01-25 Thread Alan Previn
During suspend flow, i915 currently achors' on the pm_suspend_prepare callback as the location where we quiesce the entire GPU and perform all necessary cleanup in order to go into suspend. PXP is also called during this time to perform the arbitration session teardown (with the assurance no

[PATCH v7 1/6] mei: mei-me: resume device in prepare

2023-01-25 Thread Alan Previn
From: Alexander Usyskin Asynchronous runtime resume is not possible while the system is suspending. The power management subsystem resumes the device only in the suspend phase, not in the prepare phase. Force resume device in prepare to allow drivers on mei bus to communicate in their prepare

[PATCH v7 5/6] drm/i915/pxp: Trigger the global teardown for before suspending

2023-01-25 Thread Alan Previn
A driver bug was recently discovered where the security firmware was receiving internal HW signals indicating that session key expirations had occurred. Architecturally, the firmware was expecting a response from the GuC to acknowledge the event with the firmware side. However the OS was in a

[PATCH v7 0/6] drm/i915/pxp: Add missing cleanup steps for PXP global-teardown

2023-01-25 Thread Alan Previn
A customer issue was recently discovered and in the process a gap in i915's PXP interaction with HW+FW architecure was also realized. This series adds those missing pieces. This fix includes changes where i915 calls into the mei component interface in order to submit requests to the security

[PATCH v3 7/8] drm/i915/pxp: On MTL, KCR enabling doesn't wait on tee component

2023-01-25 Thread Alan Previn
On legacy platforms, KCR HW enabling is done at the time the mei component interface is bound. It's also disabled during unbind. However, for MTL onwards, we don't depend on a tee component to start sending GSC-CS firmware messages. Thus, immediately enable (or disable) KCR HW on PXP's init, fini

[PATCH v3 5/8] drm/i915/pxp: Add ARB session creation with new PXP API Ver4.3

2023-01-25 Thread Alan Previn
Add MTL's function for ARB session creation using PXP firmware version 4.3 ABI structure format. Before checking the return status, look at the GSC-CS-Mem-Header's pending-bit which means the GSC firmware is busy and we should resubmit. Signed-off-by: Alan Previn ---

[PATCH v3 6/8] drm/i915/pxp: MTL-KCR interrupt ctrl's are in GT-0

2023-01-25 Thread Alan Previn
Despite KCR subsystem being in the media-tile (close to the GSC-CS), the IRQ controls for it are on GT-0 with other global IRQ controls. Thus, add a helper for KCR hw interrupt enable/disable functions to get the correct gt structure (for uncore) for MTL. In the helper, we get GT-0's handle for

[PATCH v3 4/8] drm/i915/pxp: Add GSC-CS backend to send GSC fw messages

2023-01-25 Thread Alan Previn
Add GSC engine based method for sending PXP firmware packets to the GSC firmware for MTL (and future) products. Use the newly added helpers to populate the GSC-CS memory header and send the message packet to the FW by dispatching the GSC_HECI_CMD_PKT instruction on the GSC engine. We use

[PATCH v3 0/8] drm/i915/pxp: Add MTL PXP Support

2023-01-25 Thread Alan Previn
This series enables PXP on MTL. On ADL/TGL platforms, we rely on the mei driver via the i915-mei PXP component interface to establish a connection to the security firmware via the HECI device interface. That interface is used to create and teardown the PXP ARB session. PXP ARB session is created

[PATCH v3 8/8] drm/i915/pxp: Enable PXP with MTL-GSC-CS

2023-01-25 Thread Alan Previn
Enable PXP with MTL-GSC-CS: add the has_pxp into device info and increase the timeouts for new GSC-CS + firmware specs. Signed-off-by: Alan Previn --- drivers/gpu/drm/i915/i915_pci.c | 1 + drivers/gpu/drm/i915/pxp/intel_pxp_session.c | 2 +- 2 files changed, 2 insertions(+), 1

[PATCH v3 3/8] drm/i915/pxp: Add MTL helpers to submit Heci-Cmd-Packet to GSC

2023-01-25 Thread Alan Previn
Add helper functions into a new file for heci-packet-submission. The helpers will handle generating the MTL GSC-CS Memory-Header and submission of the Heci-Cmd-Packet instructions to the engine. NOTE1: These common functions for heci-packet-submission will be used by different i915 callers:

[PATCH v3 2/8] drm/i915/pxp: Add MTL hw-plumbing enabling for KCR operation

2023-01-25 Thread Alan Previn
Add MTL hw-plumbing enabling for KCR operation under PXP which includes: 1. Updating 'pick-gt' to get the media tile for KCR interrupt handling 2. Adding MTL's KCR registers for PXP operation (init, status-checking, etc.). While doing #2, lets create a separate registers header file for

[PATCH v3 1/8] drm/i915/pxp: Add GSC-CS back-end resource init and cleanup

2023-01-25 Thread Alan Previn
For MTL, the PXP back-end transport uses the GSC engine to submit HECI packets through the HW to the GSC firmware for PXP arb session management. This submission uses a non-priveleged batch buffer, a buffer for the command packet and of course a context targeting the GSC-CS. Thus for MTL, we need

<    1   2   3