Re: [Intel-gfx] [PATCH v7 1/3] gpu: drm: separate panel orientation property creating and value setting

2022-02-07 Thread Ville Syrjälä
On Tue, Feb 08, 2022 at 03:37:12PM +0800, Hsin-Yi Wang wrote: > +int drm_connector_init_panel_orientation_property( > + struct drm_connector *connector) > +{ > + struct drm_device *dev = connector->dev; > + struct drm_property *prop; > + > + prop = drm_property_create_enum(dev, DRM_

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [v7,1/3] gpu: drm: separate panel orientation property creating and value setting

2022-02-07 Thread Patchwork
== Series Details == Series: series starting with [v7,1/3] gpu: drm: separate panel orientation property creating and value setting URL : https://patchwork.freedesktop.org/series/99815/ State : warning == Summary == $ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, eac

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [v7,1/3] gpu: drm: separate panel orientation property creating and value setting

2022-02-07 Thread Patchwork
== Series Details == Series: series starting with [v7,1/3] gpu: drm: separate panel orientation property creating and value setting URL : https://patchwork.freedesktop.org/series/99815/ State : warning == Summary == $ dim checkpatch origin/drm-tip da6aee85bf29 gpu: drm: separate panel orienta

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/guc: Use temporary memory for regset

2022-02-07 Thread Patchwork
== Series Details == Series: drm/i915/guc: Use temporary memory for regset URL : https://patchwork.freedesktop.org/series/99813/ State : success == Summary == CI Bug Log - changes from CI_DRM_11199 -> Patchwork_22197 Summary --- **SU

Re: [Intel-gfx] [PATCH 2/2] drm/msm/dp: Implement oob_hotplug_event()

2022-02-07 Thread Greg Kroah-Hartman
On Mon, Feb 07, 2022 at 08:43:28PM -0800, Bjorn Andersson wrote: > The Qualcomm DisplayPort driver contains traces of the necessary > plumbing to hook up USB HPD, in the form of the dp_hpd module and the > dp_usbpd_cb struct. Use this as basis for implementing the > oob_hotplug_event() callback, by

[Intel-gfx] [PATCH v7 3/3] arm64: dts: mt8183: Add panel rotation

2022-02-07 Thread Hsin-Yi Wang
krane, kakadu, and kodama boards have a default panel rotation. Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra Tested-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/

[Intel-gfx] [PATCH v7 2/3] drm/mediatek: init panel orientation property

2022-02-07 Thread Hsin-Yi Wang
Init panel orientation property after connector is initialized. Let the panel driver decides the orientation value later. Signed-off-by: Hsin-Yi Wang Acked-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/mediate

[Intel-gfx] [PATCH v7 1/3] gpu: drm: separate panel orientation property creating and value setting

2022-02-07 Thread Hsin-Yi Wang
drm_dev_register() sets connector->registration_state to DRM_CONNECTOR_REGISTERED and dev->registered to true. If drm_connector_set_panel_orientation() is first called after drm_dev_register(), it will fail several checks and results in following warning. Add a function to create panel orientation

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915/guc: Use temporary memory for regset

2022-02-07 Thread Patchwork
== Series Details == Series: drm/i915/guc: Use temporary memory for regset URL : https://patchwork.freedesktop.org/series/99813/ State : warning == Summary == $ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[Intel-gfx] [PATCH 1/2] drm/i915/guc: Prepare for error propagation

2022-02-07 Thread Lucas De Marchi
Currently guc_mmio_reg_add() relies on having enough memory available in the array to add a new slot. It uses `GEM_BUG_ON(count >= regset->size);` to protect going above the threshold. In order to allow guc_mmio_reg_add() to handle the memory allocation by itself, it must return an error in case o

[Intel-gfx] [PATCH 2/2] drm/i915/guc: Use a single pass to calculate regset

2022-02-07 Thread Lucas De Marchi
The ADS initialitazion was using 2 passes to calculate the regset sent to GuC to initialize each engine: the first pass to just have the final object size and the second to set each register in place in the final gem object. However in order to maintain an ordered set of registers to pass to guc,

[Intel-gfx] [PATCH 0/2] drm/i915/guc: Use temporary memory for regset

2022-02-07 Thread Lucas De Marchi
Extract the 2 commits not related to iosys_map from drm/i915/guc: Refactor ADS access to use iosys_map (https://patchwork.freedesktop.org/series/99711/). The conversion of the rest of ADS initializon will take more time to review. So let's take these by themselves as suggested by Daniele. Lucas De

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/guc: Fix flag query to not modify state

2022-02-07 Thread Patchwork
== Series Details == Series: drm/i915/guc: Fix flag query to not modify state URL : https://patchwork.freedesktop.org/series/99803/ State : success == Summary == CI Bug Log - changes from CI_DRM_11199_full -> Patchwork_22195_full Summary --

Re: [Intel-gfx] [PATCH 2/2] drm/i915/gem: Don't try to map and fence large scanout buffers (v6)

2022-02-07 Thread Ville Syrjälä
On Tue, Feb 08, 2022 at 05:10:42AM +, Kasireddy, Vivek wrote: > Hi Tvrtko, Ville, > > > On 07/02/2022 13:24, Ville Syrjälä wrote: > > > On Mon, Feb 07, 2022 at 11:47:16AM +, Tvrtko Ursulin wrote: > > >> > > >> On 07/02/2022 10:58, Ville Syrjälä wrote: > > >>> On Thu, Feb 03, 2022 at 05:22:

Re: [Intel-gfx] [PATCH 2/2] drm/i915/gem: Don't try to map and fence large scanout buffers (v6)

2022-02-07 Thread Kasireddy, Vivek
Hi Tvrtko, Ville, > On 07/02/2022 13:24, Ville Syrjälä wrote: > > On Mon, Feb 07, 2022 at 11:47:16AM +, Tvrtko Ursulin wrote: > >> > >> On 07/02/2022 10:58, Ville Syrjälä wrote: > >>> On Thu, Feb 03, 2022 at 05:22:10PM -0800, Vivek Kasireddy wrote: > On platforms capable of allowing 8K (7

Re: [Intel-gfx] [PATCH v6 6/6] drm: Add arch arm64 for drm_clflush_virt_range

2022-02-07 Thread kernel test robot
Hi Michael, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on drm-tip/drm-tip drm/drm-next v5.17-rc3 next-20220207] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [Intel-gfx] [PATCH v6 6/6] drm: Add arch arm64 for drm_clflush_virt_range

2022-02-07 Thread kernel test robot
Hi Michael, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on drm-tip/drm-tip drm/drm-next v5.17-rc3 next-20220207] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

[Intel-gfx] ✗ Fi.CI.BAT: failure for Prep work for next GuC release

2022-02-07 Thread Patchwork
== Series Details == Series: Prep work for next GuC release URL : https://patchwork.freedesktop.org/series/99805/ State : failure == Summary == CI Bug Log - changes from CI_DRM_11199 -> Patchwork_22196 Summary --- **FAILURE** Seri

[Intel-gfx] ✗ Fi.CI.DOCS: warning for Prep work for next GuC release

2022-02-07 Thread Patchwork
== Series Details == Series: Prep work for next GuC release URL : https://patchwork.freedesktop.org/series/99805/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 ./drivers/gpu/drm/i915/gt/uc/intel_guc.h:233: warning: Function parameter or member 'submission_initiali

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Prep work for next GuC release

2022-02-07 Thread Patchwork
== Series Details == Series: Prep work for next GuC release URL : https://patchwork.freedesktop.org/series/99805/ State : warning == Summary == $ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/guc: Fix flag query to not modify state

2022-02-07 Thread Patchwork
== Series Details == Series: drm/i915/guc: Fix flag query to not modify state URL : https://patchwork.freedesktop.org/series/99803/ State : success == Summary == CI Bug Log - changes from CI_DRM_11199 -> Patchwork_22195 Summary --- *

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/psr: Disable PSR2 selective fetch for all TGL steps

2022-02-07 Thread Patchwork
== Series Details == Series: drm/i915/psr: Disable PSR2 selective fetch for all TGL steps URL : https://patchwork.freedesktop.org/series/99796/ State : success == Summary == CI Bug Log - changes from CI_DRM_11198_full -> Patchwork_22194_full

[Intel-gfx] [PATCH 6/8] drm/i915/guc: Rename desc_idx to ctx_id

2022-02-07 Thread John . C . Harrison
From: John Harrison The LRC descriptor pool is going away. So, stop naming context ids as descriptor pool indecies. While at it, add a bunch of missing line feeds to some error messages. Signed-off-by: John Harrison --- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 56 +-- 1

[Intel-gfx] [PATCH 4/8] drm/i915/guc: Split guc_lrc_desc_pin apart

2022-02-07 Thread John . C . Harrison
From: John Harrison The LRC descriptor pool is going away. Further, the function that was populating it was also doing a bunch of logic about the context registration sequence. So, split that code apart into separate state setup and try to register functions. Note that some of those 'try to regis

[Intel-gfx] [PATCH 5/8] drm/i915/guc: Move lrc desc setup to where it is needed

2022-02-07 Thread John . C . Harrison
From: John Harrison The LRC descriptor was being initialised early on in the context registration sequence. It could then be determined that the actual registration needs to be delayed and the descriptor would be wiped out. This is inefficient, so move the setup to later in the process after the

[Intel-gfx] [PATCH 7/8] drm/i915/guc: Drop obsolete H2G definitions

2022-02-07 Thread John . C . Harrison
From: John Harrison The CTB registration process changed significantly a while back using a single KLV based H2G. So drop the original and now obsolete H2G definitions. Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/abi/guc_actions_abi.h | 2 -- 1 file changed, 2 deletions(-) dif

[Intel-gfx] [PATCH 8/8] drm/i915/guc: Fix potential invalid pointer dereferences when decoding G2Hs

2022-02-07 Thread John . C . Harrison
From: John Harrison Some G2H handlers were reading the context id field from the payload before checking the payload met the minimum length required. Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

[Intel-gfx] [PATCH 3/8] drm/i915/guc: Better name for context id limit

2022-02-07 Thread John . C . Harrison
From: John Harrison The LRC descriptor pool is going away. So, stop using it as the limit for how many context ids are available. While at it, also update a kzalloc(sizeof()*count) to be a kcalloc(count,size). Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/intel_context.c |

[Intel-gfx] [PATCH 1/8] drm/i915/guc: Do not conflate lrc_desc with GuC id for registration

2022-02-07 Thread John . C . Harrison
From: John Harrison The LRC descriptor pool is going away. So, stop using it as a check for context registration, use the GuC id instead (being the thing that actually gets registered with the GuC). Signed-off-by: John Harrison --- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 69 ++-

[Intel-gfx] [PATCH 2/8] drm/i915/guc: Add an explicit 'submission_initialized' flag

2022-02-07 Thread John . C . Harrison
From: John Harrison The LRC descriptor pool is going away. So, stop using it as a check for whether submission has been initialised or not. Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_guc.h| 2 ++ drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 8 +---

[Intel-gfx] [PATCH 0/8] Prep work for next GuC release

2022-02-07 Thread John . C . Harrison
From: John Harrison The next GuC firmware release includes some significant backwards breaking API changes. One such is that there is no longer an LRC descriptor pool. A bunch of prep work for that change can be done in advance - the descriptor pool was being used for things it shouldn't really h

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/guc: Fix flag query to not modify state

2022-02-07 Thread Patchwork
== Series Details == Series: drm/i915/guc: Fix flag query to not modify state URL : https://patchwork.freedesktop.org/series/99803/ State : warning == Summary == $ dim checkpatch origin/drm-tip 98f0397a8054 drm/i915/guc: Fix flag query to not modify state -:30: CHECK:FROM_SIGN_OFF_MISMATCH: Fr

[Intel-gfx] [PATCH] drm/i915/guc: Fix flag query to not modify state

2022-02-07 Thread John . C . Harrison
From: John Harrison A flag query helper was actually writing to the flags word rather than just reading. Fix that. Also update the function's comment as it was out of date. Fixes: 0f7976506de61 ("drm/i915/guc: Rework and simplify locking") Signed-off-by: John Harrison --- drivers/gpu/drm/i915/

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/dg2: Define GuC firmware version for DG2

2022-02-07 Thread Patchwork
== Series Details == Series: drm/i915/dg2: Define GuC firmware version for DG2 URL : https://patchwork.freedesktop.org/series/99793/ State : failure == Summary == CI Bug Log - changes from CI_DRM_11198_full -> Patchwork_22193_full Summary -

Re: [Intel-gfx] [PATCH 3/4] drm/i915/uapi: Add struct drm_i915_query_hwconfig_blob_item

2022-02-07 Thread kernel test robot
Hi Jordan, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on drm-tip/drm-tip drm-exynos/exynos-drm-next drm/drm-next tegra-drm/drm/tegra/for-next v5.17-rc3 next-20220207] [cannot apply to airlied/drm-next] [If your

Re: [Intel-gfx] [PATCH 10/10] drm/i915: Change bigjoiner state tracking to use the pipe bitmask

2022-02-07 Thread Navare, Manasi
On Mon, Feb 07, 2022 at 09:31:19AM +0200, Ville Syrjälä wrote: > On Fri, Feb 04, 2022 at 03:58:29PM -0800, Navare, Manasi wrote: > > On Thu, Feb 03, 2022 at 08:38:23PM +0200, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > Get rid of the inflexible bigjoiner_linked_crtc pointer thing >

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/psr: Disable PSR2 selective fetch for all TGL steps

2022-02-07 Thread Patchwork
== Series Details == Series: drm/i915/psr: Disable PSR2 selective fetch for all TGL steps URL : https://patchwork.freedesktop.org/series/99796/ State : success == Summary == CI Bug Log - changes from CI_DRM_11198 -> Patchwork_22194 Summary

Re: [Intel-gfx] [PATCH 4/4] drm/i915/guc: Verify hwconfig blob matches supported format

2022-02-07 Thread kernel test robot
Hi Jordan, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on drm-tip/drm-tip drm-exynos/exynos-drm-next drm/drm-next tegra-drm/drm/tegra/for-next v5.17-rc3 next-20220207] [cannot apply to airlied/drm-next] [If your

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/dg2: Define GuC firmware version for DG2

2022-02-07 Thread Patchwork
== Series Details == Series: drm/i915/dg2: Define GuC firmware version for DG2 URL : https://patchwork.freedesktop.org/series/99793/ State : success == Summary == CI Bug Log - changes from CI_DRM_11198 -> Patchwork_22193 Summary ---

Re: [Intel-gfx] [PATCH 4/4] drm/i915/guc: Verify hwconfig blob matches supported format

2022-02-07 Thread kernel test robot
Hi Jordan, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next drm/drm-next tegra-drm/drm/tegra/for-next v5.17-rc3 next-20220207] [cannot apply to airlied/drm-next

Re: [Intel-gfx] [PATCH 4/4] drm/i915/guc: Verify hwconfig blob matches supported format

2022-02-07 Thread kernel test robot
Hi Jordan, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next drm/drm-next tegra-drm/drm/tegra/for-next v5.17-rc3 next-20220207] [If your patch is applied to the

Re: [Intel-gfx] [PATCH v5 10/10] drm/i915/guc: Print the GuC error capture output register list.

2022-02-07 Thread Umesh Nerlige Ramappa
On Wed, Jan 26, 2022 at 02:48:22AM -0800, Alan Previn wrote: Print the GuC captured error state register list (string names and values) when gpu_coredump_state printout is invoked via the i915 debugfs for flushing the gpu error-state that was captured prior. Since GuC could have reported multipl

[Intel-gfx] [PATCH] drm/i915/psr: Disable PSR2 selective fetch for all TGL steps

2022-02-07 Thread Lyude Paul
As we've unfortunately started to come to expect from PSR on Intel platforms, PSR2 selective fetch is not at all ready to be enabled on Tigerlake as it results in severe flickering issues - at least on this ThinkPad X1 Carbon 9th generation. The easiest way I've found of reproducing these issues is

Re: [Intel-gfx] [PATCH v3] drm/i915/dg2: Define GuC firmware version for DG2

2022-02-07 Thread John Harrison
Hmm, this is actually v1 not v3! Had something stale when posting. John. On 2/7/2022 12:36, john.c.harri...@intel.com wrote: From: John Harrison First release of GuC for DG2. Signed-off-by: John Harrison CC: Tomasz Mistat CC: Ramalingam C CC: Daniele Ceraolo Spurio --- drivers/gpu/drm

[Intel-gfx] ✗ Fi.CI.BAT: failure for Use drm_clflush* instead of clflush (rev5)

2022-02-07 Thread Patchwork
== Series Details == Series: Use drm_clflush* instead of clflush (rev5) URL : https://patchwork.freedesktop.org/series/99450/ State : failure == Summary == CI Bug Log - changes from CI_DRM_11197 -> Patchwork_22192 Summary --- **FAILU

[Intel-gfx] [PATCH v3] drm/i915/dg2: Define GuC firmware version for DG2

2022-02-07 Thread John . C . Harrison
From: John Harrison First release of GuC for DG2. Signed-off-by: John Harrison CC: Tomasz Mistat CC: Ramalingam C CC: Daniele Ceraolo Spurio --- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c b/drivers/g

Re: [Intel-gfx] [PATCH 04/19] drm/i915/gt: Add helper for shmem copy to iosys_map

2022-02-07 Thread Lucas De Marchi
On Fri, Feb 04, 2022 at 08:15:12PM +0100, Thomas Zimmermann wrote: Hi Am 04.02.22 um 18:44 schrieb Lucas De Marchi: Add a variant of shmem_read() that takes a iosys_map pointer rather than a plain pointer as argument. It's mostly a copy __shmem_rw() but adapting the api and removing the write s

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Use drm_clflush* instead of clflush (rev5)

2022-02-07 Thread Patchwork
== Series Details == Series: Use drm_clflush* instead of clflush (rev5) URL : https://patchwork.freedesktop.org/series/99450/ State : warning == Summary == $ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Use drm_clflush* instead of clflush (rev5)

2022-02-07 Thread Patchwork
== Series Details == Series: Use drm_clflush* instead of clflush (rev5) URL : https://patchwork.freedesktop.org/series/99450/ State : warning == Summary == $ dim checkpatch origin/drm-tip 01334f06e3af drm/i915/gt: Re-work intel_write_status_page 5f2ab439de24 drm/i915/gt: Drop invalidate_csb_en

[Intel-gfx] [PATCH v6 5/6] drm/i915/gt: replace cache_clflush_range

2022-02-07 Thread Michael Cheng
Replace all occurance of cache_clflush_range with drm_clflush_virt_range. This will prevent compile errors on non-x86 platforms. Signed-off-by: Michael Cheng --- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 12 ++-- drivers/gpu/drm/i915/gt/intel_execlists_submission.c | 2 +-

[Intel-gfx] [PATCH v6 6/6] drm: Add arch arm64 for drm_clflush_virt_range

2022-02-07 Thread Michael Cheng
Use flush_tlb_kernel_range when invoking drm_clflush_virt_range on arm64 platforms. Using flush_tlb_kernel_range will: 1. Make sure prior page-table updates have been completed 2. Invalidate the TLB 3. Check if the TLB invalidation has been completed Signed-off-by: Michael Cheng --- drivers/gpu

[Intel-gfx] [PATCH v6 2/6] drm/i915/gt: Drop invalidate_csb_entries

2022-02-07 Thread Michael Cheng
Drop invalidate_csb_entries and directly call drm_clflush_virt_range. This allows for one less function call, and prevent complier errors when building for non-x86 architectures. v2(Michael Cheng): Drop invalidate_csb_entries function and directly invoke drm_clflush_virt_range.

[Intel-gfx] [PATCH v6 4/6] drm/i915/: Re-work clflush_write32

2022-02-07 Thread Michael Cheng
Use drm_clflush_virt_range instead of clflushopt and remove the memory barrier, since drm_clflush_virt_range takes care of that. Signed-off-by: Michael Cheng --- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH v6 3/6] drm/i915/gt: Re-work reset_csb

2022-02-07 Thread Michael Cheng
Use drm_clflush_virt_range instead of directly invoking clflush. This will prevent compiler errors when building for non-x86 architectures. v2(Michael Cheng): Remove extra clflush v3(Michael Cheng): Remove memory barrier since drm_clflush_virt_range takes care of it. Signed-of

[Intel-gfx] [PATCH v6 1/6] drm/i915/gt: Re-work intel_write_status_page

2022-02-07 Thread Michael Cheng
Re-work intel_write_status_page to use drm_clflush_virt_range. This will prevent compiler errors when building for non-x86 architectures. Signed-off-by: Michael Cheng --- drivers/gpu/drm/i915/gt/intel_engine.h | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/driv

[Intel-gfx] [PATCH v6 0/6] Use drm_clflush* instead of clflush

2022-02-07 Thread Michael Cheng
This patch series re-work a few i915 functions to use drm_clflush_virt_range instead of calling clflush or clflushopt directly. This will prevent errors when building for non-x86 architectures.

[Intel-gfx] ✗ Fi.CI.IGT: failure for Add fallback inside memcpy_from_wc functions

2022-02-07 Thread Patchwork
== Series Details == Series: Add fallback inside memcpy_from_wc functions URL : https://patchwork.freedesktop.org/series/99774/ State : failure == Summary == CI Bug Log - changes from CI_DRM_11197_full -> Patchwork_22190_full Summary --

[Intel-gfx] [CI] PR for GuC v69.0.3 for DG2

2022-02-07 Thread John . C . Harrison
The following changes since commit eb8ea1b46893c42edbd516f971a93b4d097730ab: Merge branch 'v1.1.7' of https://github.com/irui-wang/linux_fw_vpu_v1.1.7 into main (2022-01-24 06:49:52 -0500) are available in the Git repository at: git://anongit.freedesktop.org/drm/drm-firmware dg2_guc_v69.0.3

[Intel-gfx] ✗ Fi.CI.BUILD: failure for GuC HWCONFIG with documentation

2022-02-07 Thread Patchwork
== Series Details == Series: GuC HWCONFIG with documentation URL : https://patchwork.freedesktop.org/series/99787/ State : failure == Summary == CALLscripts/checksyscalls.sh CALLscripts/atomic/check-atomics.sh DESCEND objtool CHK include/generated/compile.h CC [M] drivers/

[Intel-gfx] [PATCH 4/4] drm/i915/guc: Verify hwconfig blob matches supported format

2022-02-07 Thread Jordan Justen
Signed-off-by: Jordan Justen --- .../gpu/drm/i915/gt/uc/intel_guc_hwconfig.c | 26 +++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c index ce6088f112d4..695ef7a8f519 100644 --- a/

[Intel-gfx] [PATCH 3/4] drm/i915/uapi: Add struct drm_i915_query_hwconfig_blob_item

2022-02-07 Thread Jordan Justen
Also, document DRM_I915_QUERY_HWCONFIG_BLOB with this struct. Cc: Daniel Vetter Signed-off-by: Jordan Justen --- include/uapi/drm/i915_drm.h | 24 1 file changed, 24 insertions(+) diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h index 069d2fadfbd9

[Intel-gfx] [PATCH 2/4] drm/i915/uapi: Add query for hwconfig blob

2022-02-07 Thread Jordan Justen
From: Rodrigo Vivi The DRM_I915_QUERY_HWCONFIG_BLOB query item returns a blob of data which it receives from the GuC software. This blob provides some useful data about the hardware for drivers. Although the blob is not fully documented at this time, the basic format is an array of u32 values. T

[Intel-gfx] [PATCH 1/4] drm/i915/guc: Add fetch of hwconfig table

2022-02-07 Thread Jordan Justen
From: John Harrison Implement support for fetching the hardware description table from the GuC. The call is made twice - once without a destination buffer to query the size and then a second time to fill in the buffer. Note that the table is only available on ADL-P and later platforms. Cc: Mich

[Intel-gfx] [PATCH 0/4] GuC HWCONFIG with documentation

2022-02-07 Thread Jordan Justen
This is John/Rodrigo's 2 patches with some minor changes, and I added 2 patches. "drm/i915/uapi: Add query for hwconfig blob" was changed: * Rename DRM_I915_QUERY_HWCONFIG_TABLE to DRM_I915_QUERY_HWCONFIG_BLOB as requested by Joonas. * Reword commit message * I added Acked-by to this patc

Re: [Intel-gfx] [PATCH v5 04/10] drm/i915/guc: Add Gen9 registers for GuC error state capture.

2022-02-07 Thread Umesh Nerlige Ramappa
lgtm, Reviewed-by: Umesh Nerlige Ramappa Umesh On Wed, Jan 26, 2022 at 02:48:16AM -0800, Alan Previn wrote: Abstract out a Gen9 register list as the default for all other platforms we don't yet formally support GuC submission on. Signed-off-by: Alan Previn --- .../gpu/drm/i915/gt/uc/intel_g

Re: [Intel-gfx] [PATCH v5 2/5] drm/i915/gt: Drop invalidate_csb_entries

2022-02-07 Thread Michael Cheng
Ah, sorry thanks for pointing that out. We did discuss previously. I will go ahead and change it. On 2022-02-07 3:57 a.m., Tvrtko Ursulin wrote: On 04/02/2022 16:37, Michael Cheng wrote: Drop invalidate_csb_entries and directly call drm_clflush_virt_range. This allows for one less function ca

[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/2] drm/i195: Fix dbuf slice config lookup

2022-02-07 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i195: Fix dbuf slice config lookup URL : https://patchwork.freedesktop.org/series/99764/ State : failure == Summary == CI Bug Log - changes from CI_DRM_11196_full -> Patchwork_22188_full ===

[Intel-gfx] ✓ Fi.CI.BAT: success for Add fallback inside memcpy_from_wc functions

2022-02-07 Thread Patchwork
== Series Details == Series: Add fallback inside memcpy_from_wc functions URL : https://patchwork.freedesktop.org/series/99774/ State : success == Summary == CI Bug Log - changes from CI_DRM_11197 -> Patchwork_22190 Summary --- **SUC

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Add fallback inside memcpy_from_wc functions

2022-02-07 Thread Patchwork
== Series Details == Series: Add fallback inside memcpy_from_wc functions URL : https://patchwork.freedesktop.org/series/99774/ State : warning == Summary == $ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. +drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 5/5] drm/i915/guc: Allow user to override driver load failure without GuC

2022-02-07 Thread Daniele Ceraolo Spurio
On 1/28/2022 10:52 AM, Ramalingam C wrote: From: Stuart Summers The driver is set currently to fail modprobe when GuC is disabled (enable_guc=0) after GuC has been loaded on a previous modprobe. For GuC deprivilege, the BIOS is setting the locked bit, so the driver always considers the GuC t

Re: [Intel-gfx] [PATCH 1/2] drm/i195: Fix dbuf slice config lookup

2022-02-07 Thread Ville Syrjälä
On Mon, Feb 07, 2022 at 03:26:59PM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Apparently I totally fumbled the loop condition when I > removed the ARRAY_SIZE() stuff from the dbuf slice config > lookup. Comparing the loop index with the active_pipes bitmask > is utter nonsense, what we

[Intel-gfx] [PATCH v2 1/1] drm/i915: Add fallback inside memcpy_from_wc functions

2022-02-07 Thread Balasubramani Vivekanandan
memcpy_from_wc functions can fail if SSE4.1 is not supported or the supplied addresses are not 16-byte aligned. It was then upto to the caller to use memcpy as fallback. Now fallback to memcpy is implemented inside memcpy_from_wc functions relieving the user from checking the return value of i915_m

[Intel-gfx] [PATCH v2 0/1] Add fallback inside memcpy_from_wc functions

2022-02-07 Thread Balasubramani Vivekanandan
Fallback function implemented inside memcpy_from_wc functions when copying using accelerated read is not possible. v2: Fixed Sparse warnings Balasubramani Vivekanandan (1): drm/i915: Add fallback inside memcpy_from_wc functions drivers/gpu/drm/i915/gem/i915_gem_object.c | 5 +- drivers/gpu/d

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i195: Fix dbuf slice config lookup

2022-02-07 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i195: Fix dbuf slice config lookup URL : https://patchwork.freedesktop.org/series/99764/ State : success == Summary == CI Bug Log - changes from CI_DRM_11196 -> Patchwork_22188 Sum

[Intel-gfx] ✗ Fi.CI.BUILD: failure for My patch queue

2022-02-07 Thread Patchwork
== Series Details == Series: My patch queue URL : https://patchwork.freedesktop.org/series/99770/ State : failure == Summary == Applying: KVM: x86: SVM: don't passthrough SMAP/SMEP/PKE bits in !NPT && !gCR0.PG case error: sha1 information is lacking or useless (arch/x86/kvm/svm/svm.c). error:

Re: [Intel-gfx] [RFC PATCH 0/1] Splitting up platform-specific calls

2022-02-07 Thread Tvrtko Ursulin
On 20/01/2022 22:16, Casey Bowman wrote: In this RFC I would like to ask the community their thoughts on how we can best handle splitting architecture-specific calls. I would like to address the following: 1. How do we want to split architecture calls? Different object files per platform? Sep

[Intel-gfx] [PATCH 30/30] KVM: x86: get rid of KVM_REQ_GET_NESTED_STATE_PAGES

2022-02-07 Thread Maxim Levitsky
As it turned out this request isn't really needed, and it complicates the nested migration. In theory this patch can break userspace if userspace relies on updating KVM's memslots after setting nested state but there is little reason for it to rely on this. However this is undocumented and there

[Intel-gfx] [PATCH 29/30] KVM: VMX: implement force_intercept_exceptions_mask

2022-02-07 Thread Maxim Levitsky
All exceptions are supported. Some bugs might remain in regard to KVM own interception of #PF but since this is strictly debug feature this should be OK. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/vmx/nested.c | 8 +++ arch/x86/kvm/vmx/vmcs.h | 6 + arch/x86/kvm/vmx/vmx.c| 47

[Intel-gfx] [PATCH 28/30] KVM: SVM: implement force_intercept_exceptions_mask

2022-02-07 Thread Maxim Levitsky
Currently #TS interception is only done once. Also exception interception is not enabled for SEV guests. Signed-off-by: Maxim Levitsky --- arch/x86/include/asm/kvm_host.h | 2 + arch/x86/include/uapi/asm/kvm.h | 1 + arch/x86/kvm/svm/svm.c | 92 - arch/

[Intel-gfx] [PATCH 27/30] KVM: x86: add force_intercept_exceptions_mask

2022-02-07 Thread Maxim Levitsky
This parameter will be used by VMX and SVM code to force interception of a set of exceptions, given by a bitmask for guest debug and/or kvm debug. This is based on an idea first shown here: https://patchwork.kernel.org/project/kvm/patch/20160301192822.gd22...@pd.tnic/ CC: Borislav Petkov Signed-

[Intel-gfx] [PATCH 26/30] KVM: x86: nSVM: implement nested vGIF

2022-02-07 Thread Maxim Levitsky
In case L1 enables vGIF for L2, the L2 cannot affect L1's GIF, regardless of STGI/CLGI intercepts, and since VM entry enables GIF, this means that L1's GIF is always 1 while L2 is running. Thus in this case leave L1's vGIF in vmcb01, while letting L2 control the vGIF thus implementing nested vGIF.

Re: [Intel-gfx] [RFC 2/2] drm/i915/migrate: Evict and restore the ccs data

2022-02-07 Thread Ramalingam C
On 2022-02-07 at 20:52:33 +0530, Hellstrom, Thomas wrote: > On Mon, 2022-02-07 at 20:44 +0530, Ramalingam C wrote: > > On 2022-02-07 at 20:25:42 +0530, Hellstrom, Thomas wrote: > > > Hi, Ram, > > > > > > A couple of quick questions before starting a more detailed review: > > > > > > 1) Does this al

[Intel-gfx] [PATCH 25/30] KVM: x86: nSVM: support PAUSE filter threshold and count when cpu_pm=on

2022-02-07 Thread Maxim Levitsky
Allow L1 to use these settings if L0 disables PAUSE interception (AKA cpu_pm=on) Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 6 ++ arch/x86/kvm/svm/svm.c| 17 + arch/x86/kvm/svm/svm.h| 2 ++ 3 files changed, 25 insertions(+) diff --git a/arch/x86/

[Intel-gfx] [PATCH 24/30] KVM: x86: nSVM: implement nested VMLOAD/VMSAVE

2022-02-07 Thread Maxim Levitsky
This was tested by booting L1,L2,L3 (all Linux) and checking that no VMLOAD/VMSAVE vmexits happened. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 35 +-- arch/x86/kvm/svm/svm.c| 7 +++ arch/x86/kvm/svm/svm.h| 8 +++- 3 files chan

[Intel-gfx] [PATCH 23/30] KVM: x86: nSVM: implement nested LBR virtualization

2022-02-07 Thread Maxim Levitsky
This was tested with kvm-unit-test that was developed for this purpose. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 21 +++-- arch/x86/kvm/svm/svm.c| 8 arch/x86/kvm/svm/svm.h| 1 + 3 files changed, 28 insertions(+), 2 deletions(-) diff --git

[Intel-gfx] [PATCH 22/30] KVM: x86: nSVM: correctly virtualize LBR msrs when L2 is running

2022-02-07 Thread Maxim Levitsky
When L2 is running without LBR virtualization, we should ensure that L1's LBR msrs continue to update as usual. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 11 + arch/x86/kvm/svm/svm.c| 98 +++ arch/x86/kvm/svm/svm.h| 2 + 3 file

[Intel-gfx] [PATCH 21/30] x86: KVMGT: use kvm_page_track_write_tracking_enable

2022-02-07 Thread Maxim Levitsky
This allows to enable the write tracking only when KVMGT is actually used and doesn't carry any penalty otherwise. Tested by booting a VM with a kvmgt mdev device. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/Kconfig | 3 --- arch/x86/kvm/mmu/mmu.c | 2 +- drivers/gpu/dr

[Intel-gfx] [PATCH 20/30] KVM: x86: mmu: allow to enable write tracking externally

2022-02-07 Thread Maxim Levitsky
This will be used to enable write tracking from nested AVIC code and can also be used to enable write tracking in GVT-g module when it actually uses it as opposed to always enabling it, when the module is compiled in the kernel. No functional change intended. Signed-off-by: Maxim Levitsky --- a

[Intel-gfx] [PATCH 19/30] KVM: x86: mmu: add gfn_in_memslot helper

2022-02-07 Thread Maxim Levitsky
This is a tiny refactoring, and can be useful to check if a GPA/GFN is within a memslot a bit more cleanly. Signed-off-by: Maxim Levitsky --- include/linux/kvm_host.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h

[Intel-gfx] [PATCH 18/30] KVM: x86: mmu: add strict mmu mode

2022-02-07 Thread Maxim Levitsky
Add an (mostly debug) option to force KVM's shadow mmu to never have unsync pages. This is useful in some cases to debug it. It is also useful for some legacy guest OSes which don't flush TLBs correctly, and thus don't work on modern CPUs which have speculative MMUs. Using this option together w

[Intel-gfx] [PATCH 17/30] KVM: x86: mmu: trace kvm_mmu_set_spte after the new SPTE was set

2022-02-07 Thread Maxim Levitsky
It makes more sense to print new SPTE value than the old value. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/mmu/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c index 296f8723f9ae9..43c7abdd6b70f 100644 --- a/arch/x86/kv

[Intel-gfx] [PATCH 16/30] KVM: x86: SVM: allow to force AVIC to be enabled

2022-02-07 Thread Maxim Levitsky
Apparently on some systems AVIC is disabled in CPUID but still usable. Allow the user to override the CPUID if the user is willing to take the risk. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/svm.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/x86/

[Intel-gfx] [PATCH 15/30] KVM: x86: SVM: remove avic's broken code that updated APIC ID

2022-02-07 Thread Maxim Levitsky
Now that KVM doesn't allow to change APIC ID in case AVIC is enabled, remove buggy AVIC code that tried to do so. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/avic.c | 35 --- 1 file changed, 35 deletions(-) diff --git a/arch/x86/kvm/svm/avic.c b/arch/x86/k

[Intel-gfx] [PATCH 14/30] KVM: x86: lapic: don't allow to change local apic id when using older x2apic api

2022-02-07 Thread Maxim Levitsky
KVM allowed to set non boot apic id via setting apic state if using older non x2apic 32 bit apic id userspace api. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/lapic.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lap

[Intel-gfx] [PATCH 13/30] KVM: x86: lapic: don't allow to change APIC ID when apic acceleration is enabled

2022-02-07 Thread Maxim Levitsky
No normal guest has any reason to change physical APIC IDs, and allowing this introduces bugs into APIC acceleration code. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/lapic.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/arch/x86/kvm/lapic.c

[Intel-gfx] [PATCH 12/30] KVM: x86: SVM: allow AVIC to co-exist with a nested guest running

2022-02-07 Thread Maxim Levitsky
Inhibit the AVIC of the vCPU that is running nested for the duration of the nested run, so that all interrupts arriving from both its vCPU siblings and from KVM are delivered using normal IPIs and cause that vCPU to vmexit. Note that unlike normal AVIC inhibition, there is no need to update the AV

[Intel-gfx] [PATCH 11/30] KVM: x86: SVM: use vmcb01 in avic_init_vmcb

2022-02-07 Thread Maxim Levitsky
Out of precation use vmcb01 when enabling host AVIC. No functional change intended. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/avic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/svm/avic.c b/arch/x86/kvm/svm/avic.c index 4c2d622b3b9f0..c6072245f7fbb

[Intel-gfx] [PATCH 10/30] KVM: x86: SVM: fix race between interrupt delivery and AVIC inhibition

2022-02-07 Thread Maxim Levitsky
If svm_deliver_avic_intr is called just after the target vcpu's AVIC got inhibited, it might read a stale value of vcpu->arch.apicv_active which can lead to the target vCPU not noticing the interrupt. To fix this use load-acquire/store-release so that, if the target vCPU is IN_GUEST_MODE, we're gu

[Intel-gfx] [PATCH 09/30] KVM: x86: SVM: move avic definitions from AMD's spec to svm.h

2022-02-07 Thread Maxim Levitsky
asm/svm.h is the correct place for all values that are defined in the SVM spec, and that includes AVIC. Also add some values from the spec that were not defined before and will be soon useful. Signed-off-by: Maxim Levitsky --- arch/x86/include/asm/msr-index.h | 1 + arch/x86/include/asm/svm.h

[Intel-gfx] [PATCH 08/30] KVM: x86: lapic: don't touch irr_pending in kvm_apic_update_apicv when inhibiting it

2022-02-07 Thread Maxim Levitsky
kvm_apic_update_apicv is called when AVIC is still active, thus IRR bits can be set by the CPU after it is called, and don't cause the irr_pending to be set to true. Also logic in avic_kick_target_vcpu doesn't expect a race with this function so to make it simple, just keep irr_pending set to true

  1   2   >