[Intel-gfx] ✓ Fi.CI.BAT: success for Begin enabling Xe_HP SDV and DG2 platforms (rev5)

2021-07-13 Thread Patchwork
== Series Details == Series: Begin enabling Xe_HP SDV and DG2 platforms (rev5) URL : https://patchwork.freedesktop.org/series/92135/ State : success == Summary == CI Bug Log - changes from CI_DRM_10344 -> Patchwork_20594 Summary ---

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915: Fix wm params for ccs

2021-07-13 Thread Patchwork
== Series Details == Series: drm/i915: Fix wm params for ccs URL : https://patchwork.freedesktop.org/series/92491/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10342_full -> Patchwork_20589_full Summary --- **FAILUR

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Begin enabling Xe_HP SDV and DG2 platforms (rev5)

2021-07-13 Thread Patchwork
== Series Details == Series: Begin enabling Xe_HP SDV and DG2 platforms (rev5) URL : https://patchwork.freedesktop.org/series/92135/ 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/d

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Begin enabling Xe_HP SDV and DG2 platforms (rev5)

2021-07-13 Thread Patchwork
== Series Details == Series: Begin enabling Xe_HP SDV and DG2 platforms (rev5) URL : https://patchwork.freedesktop.org/series/92135/ State : warning == Summary == $ dim checkpatch origin/drm-tip 7a5fbcb1f150 drm/i915: Add XE_HP initial definitions 8bb98dab1d23 drm/i915: Fork DG1 interrupt hand

[Intel-gfx] [PATCH v2 24/50] drm/i915/dg2: DG2 uses the same sseu limits as XeHP SDV

2021-07-13 Thread Matt Roper
DG2 supports compute DSS and has the same maximum number of DSS and EU as XeHP SDV. Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/gt/intel_sseu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/intel_sseu.c b/drivers/gpu/drm/i915/gt/intel_sseu.c

[Intel-gfx] [PATCH v2 28/50] drm/i915/dg2: Add new LRI reg offsets

2021-07-13 Thread Matt Roper
From: Akeem G Abodunrin New LRI register offsets were introduced for DG2, this patch adds those extra registers, and create new register table for setting offsets to compare with HW generated context image - especially for gt_lrc test. Also updates general purpose register with scratch offset for

[Intel-gfx] [PATCH v2 49/50] drm/i915/dg2: Update to bigjoiner path

2021-07-13 Thread Matt Roper
From: Animesh Manna In verify_mpllb_state() encoder is retrieved from best_encoder of connector_state. As there will be only one connector_state for bigjoiner and checking encoder may not be needed for bigjoiner-slave. This code path related to mpll is done on dg2 and need this fix to avoid null

[Intel-gfx] [PATCH v2 41/50] drm/i915/dg2: Add MPLLB programming for SNPS PHY

2021-07-13 Thread Matt Roper
DG2's SNPS PHYs incorporate a dedicated port PLL called MPLLB which takes the place of the shared DPLLs we've used on past platforms. Let's add the MPLLB programming sequences; they'll be plugged into the rest of the code in future patches. Bspec: 54032 Bspec: 53881 Cc: Lucas De Marchi Signed-of

[Intel-gfx] [PATCH v2 46/50] drm/i915/dg2: Wait for SNPS PHY calibration during display init

2021-07-13 Thread Matt Roper
Initialization of the PHY is handled by the hardware/firmware, but the driver should wait up to 25ms for the PHY to report that its calibration has completed. Bspec: 49189 Bspec: 50107 Cc: Matt Atwood Signed-off-by: Matt Roper --- .../gpu/drm/i915/display/intel_display_power.c| 5 + dr

[Intel-gfx] [PATCH v2 39/50] drm/i915/dg2: Don't read DRAM info

2021-07-13 Thread Matt Roper
DG2 does not use system DRAM information for BW_BUDDY programming or watermark workarounds, so there's no need to read this out at startup. Cc: Anusha Srivatsa Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/intel_dram.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[Intel-gfx] [PATCH v2 40/50] drm/i915/dg2: DG2 has fixed memory bandwidth

2021-07-13 Thread Matt Roper
DG2 doesn't have a SAGV or QGV points that determine memory bandwidth. Instead it has a constant amount of memory bandwidth available to display that does not need to be reduced based on the number of active planes. For simplicity, we'll just modify driver initialization to create a single dummy Q

[Intel-gfx] [PATCH v2 27/50] drm/i915/dg2: Add SQIDI steering

2021-07-13 Thread Matt Roper
Although DG2_G10 platforms will always have all SQIDI's present and don't need steering for registers in a SQIDI MMIO range, this isn't true for DG2_G11 platforms; only SQIDI's 2 and 3 can be used on those. We handle SQIDI ranges a bit differently from other types of explicit steering. The SQIDI

[Intel-gfx] [PATCH v2 16/50] drm/i915/xehp: Changes to ss/eu definitions

2021-07-13 Thread Matt Roper
From: Matthew Auld Xe_HP no longer has "slices" in the same way that old platforms did. There are new concepts (gslices, cslices, mslices) that apply in various contexts, but for the purposes of fusing slices no longer exist and we just have one large pool of dual-subslices (DSS) to work with. Fu

[Intel-gfx] [PATCH v2 21/50] drm/i915/xehpsdv: factor out function to read RP_STATE_CAP

2021-07-13 Thread Matt Roper
From: Lucas De Marchi Instead of maintaining the same if ladder in 3 different places, add a function to read RP_STATE_CAP. Signed-off-by: Lucas De Marchi Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/gt/debugfs_gt_pm.c | 8 +++- drivers/gpu/drm/i915/gt/intel_rps.c | 17

[Intel-gfx] [PATCH v2 42/50] drm/i915/dg2: Add MPLLB programming for HDMI

2021-07-13 Thread Matt Roper
At the moment we don't have a proper algorithm that can be used to calculate PHY settings for arbitrary HDMI link rates. The PHY tables here should support the regular modes of real-world HDMI monitors. Bspec: 54032 Cc: Matt Atwood Signed-off-by: Matt Roper Signed-off-by: Vandita Kulkarni ---

[Intel-gfx] [PATCH v2 35/50] drm/i915/dg2: Don't wait for AUX power well enable ACKs

2021-07-13 Thread Matt Roper
On DG2 we're supposed to just wait 600us after programming the well before moving on; there won't be an ack from the hardware. Bspec: 49296 Signed-off-by: Matt Roper --- .../gpu/drm/i915/display/intel_display_power.c | 16 .../gpu/drm/i915/display/intel_display_power.h | 6

[Intel-gfx] [PATCH v2 31/50] drm/i915/dg2: Define MOCS table for DG2

2021-07-13 Thread Matt Roper
Bspec: 45101, 45427 Cc: Ramalingam C (v5) Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/gt/intel_mocs.c | 35 +++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/intel_mocs.c b/drivers/gpu/drm/i915/gt/intel_mocs.c index 0c9d0b93

[Intel-gfx] [PATCH v2 50/50] drm/i915/dg2: Configure PCON in DP pre-enable path

2021-07-13 Thread Matt Roper
From: Ankit Nautiyal Add the functions to configure HDMI2.1 pcon for DG2, before DP link training. Signed-off-by: Ankit Nautiyal Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_ddi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_ddi

[Intel-gfx] [PATCH v2 26/50] drm/i915/dg2: Update LNCF steering ranges

2021-07-13 Thread Matt Roper
DG2's replicated register ranges are almost the same at XeHP SDV with the exception of one LNCF sub-range that switches to gslice steering. We can re-use the XeHP SDV mslice steering table and just provide a DG2-specific LNCF steering table. Bspec: 66534 Cc: Daniele Ceraolo Spurio Signed-off-by:

[Intel-gfx] [PATCH v2 18/50] drm/i915/xehpsdv: Add compute DSS type

2021-07-13 Thread Matt Roper
From: Stuart Summers Starting in XeHP, the concept of slice has been removed in favor of DSS (Dual-Subslice) masks for various workload types. These workloads have been divided into those enabled for geometry and those enabled for compute. i915 currently maintains a single set of S/SS/EU masks f

[Intel-gfx] [PATCH v2 17/50] drm/i915/xehpsdv: Add maximum sseu limits

2021-07-13 Thread Matt Roper
Due to the removal of legacy slices and the transition to a gslice/cslice/mslice/etc. design, we'll internally store all DSS under "slice0." Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/gt/intel_sseu.c | 5 - drivers/gpu/drm/i915/gt/intel_sseu.h | 2 +- drivers/gpu/drm/

[Intel-gfx] [PATCH v2 25/50] drm/i915/dg2: Add forcewake table

2021-07-13 Thread Matt Roper
The DG2 forcewake table is very similar to the one used by XeHP SDV (and both platforms are even presented as a single table in the bspec). For the most part DG2 starts using a few additional ranges that were 'reserved' on XeHP SDV and stops using some others. However there is a single range (0xd

[Intel-gfx] [PATCH v2 32/50] drm/i915/dg2: Add fake PCH

2021-07-13 Thread Matt Roper
As with DG1, DG2 has an ICL-style south display interface provided on the same PCI device. Add a fake PCH to ensure DG2 takes the appropriate codepaths for south display handling. Bspec: 54871, 50062, 49961, 53673 Cc: Lucas De Marchi Signed-off-by: Matt Roper Signed-off-by: Aditya Swarup Signe

[Intel-gfx] [PATCH v2 15/50] drm/i915/xehpsdv: add initial XeHP SDV definitions

2021-07-13 Thread Matt Roper
From: Lucas De Marchi XeHP SDV is a Intel® dGPU without display. This is just the definition of some basic platform macros, by large a copy of current state of Tigerlake which does not reflect the end state of this platform. v2: - Switch to intel_step infrastructure for stepping matches. (Jani)

[Intel-gfx] [PATCH v2 36/50] drm/i915/dg2: Setup display outputs

2021-07-13 Thread Matt Roper
DG2 has outputs on DDI A-D attached to what the bspec diagram shows as "Combo PHY A-D." Note that despite being labelled "combo" the PHYs on these outputs are Synopsys PHYs rather than traditional Intel combo PHY technology. Cc: Anusha Srivatsa Signed-off-by: Matt Roper --- drivers/gpu/drm/i91

[Intel-gfx] [PATCH v2 37/50] drm/i915/dg2: Add dbuf programming

2021-07-13 Thread Matt Roper
DG2 extends our DDB to four DBuf slices; pipes A+B only have access to the first two slices, whereas pipes C+D only have access to the second two. Confusingly, our bspec decided to switch from 1-based numbering of dbuf slices (S1, S2) to 0-based numbering (S0, S1, S2, S3) in Display13. At the mom

[Intel-gfx] [PATCH v2 44/50] drm/i915/dg2: Update modeset sequences

2021-07-13 Thread Matt Roper
DG2 has some changes to the expected modesetting sequences when compared to gen12. Adjust our driver logic accordingly. Although the DP sequence is pretty similar to TGL's, there are some steps that change, so let's split the handling for that out into a separate function. v2: - Switch wait_for

[Intel-gfx] [PATCH v2 38/50] drm/i915/dg2: Don't program BW_BUDDY registers

2021-07-13 Thread Matt Roper
Although the BW_BUDDY registers still exist, they are not used for anything on DG2. This change is expected to hold true for future dgpu's too. Bspec: 49218 Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_display_power.c | 4 1 file changed, 4 insertions(+) diff --git a/d

[Intel-gfx] [PATCH v2 20/50] drm/i915/xehpsdv: Define MOCS table for XeHP SDV

2021-07-13 Thread Matt Roper
From: Lucas De Marchi Like DG1, XeHP SDV doesn't have LLC/eDRAM control values due to being a dgfx card. XeHP SDV adds 2 more bits: L3_GLBGO to "push the Go point to memory for L3 destined transaction" and L3_LKP to "enable Lookup for uncacheable accesses". Bspec: 45101 Cc: Daniele Ceraolo Spuri

[Intel-gfx] [PATCH v2 23/50] drm/i915/dg2: add DG2 platform info

2021-07-13 Thread Matt Roper
DG2 has Xe_LPD display (version 13) and Xe_HPG (version 12.55) graphics. There are two variants (treated as subplatforms in the code): DG2-G10 and DG2-G11 that require independent programming in some areas (e.g., workarounds). Bspec: 44472, 44474, 46197, 48028, 48077 Cc: Anusha Srivatsa Signed-o

[Intel-gfx] [PATCH v2 19/50] drm/i915/xehpsdv: Define steering tables

2021-07-13 Thread Matt Roper
Define and initialize the MMIO ranges for which XeHP SDV requires MSLICE and LNCF steering. Bspec: 66534 Cc: Tvrtko Ursulin Cc: Daniele Ceraolo Spurio Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/gt/intel_gt.c | 19 ++- drivers/gpu/drm/i915/gt/intel_workarounds.c

[Intel-gfx] [PATCH v2 43/50] drm/i915/dg2: Add vswing programming for SNPS phys

2021-07-13 Thread Matt Roper
Vswing programming for SNPS PHYs is just a single step -- look up the value that corresponds to the voltage level from a table and program it into the SNPS_PHY_TX_EQ register. Bspec: 53920 Cc: Matt Atwood Signed-off-by: Matt Roper Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/int

[Intel-gfx] [PATCH v2 48/50] drm/i915/dg2: Add DG2 to the PSR2 defeature list

2021-07-13 Thread Matt Roper
From: José Roberto de Souza PSR2 is not supported on DG2. Cc: Caz Yokoyama Cc: Gwan-gyeong Mun Signed-off-by: José Roberto de Souza Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_psr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i9

[Intel-gfx] [PATCH v2 33/50] drm/i915/dg2: Add cdclk table and reference clock

2021-07-13 Thread Matt Roper
Note that DG2 only has a single possible refclk frequency (38.4 MHz). Bspec: 54034 Cc: Lucas De Marchi Signed-off-by: Anusha Srivatsa Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_cdclk.c | 24 -- 1 file changed, 22 insertions(+), 2 deletions(-) diff --g

[Intel-gfx] [PATCH v2 45/50] drm/i915/dg2: Classify DG2 PHY types

2021-07-13 Thread Matt Roper
Although the bspec labels four of DG2's outputs as "combo PHY," the underlying PHYs in both cases are actually Synopsys PHYs that are programmed completely differently than the traditional Intel "combo" PHY units. As such, we don't want intel_phy_is_combo to take us down legacy programming paths,

[Intel-gfx] [PATCH v2 47/50] drm/i915/dg2: Update lane disable power state during PSR

2021-07-13 Thread Matt Roper
From: Gwan-gyeong Mun The PSR enable/disable sequences now require that we program an extra register in the PHY to adjust the lane disable power setting. Bspec: 49274 Bspec: 53885 Cc: Anusha Srivatsa Signed-off-by: Matt Roper Signed-off-by: Gwan-gyeong Mun --- drivers/gpu/drm/i915/display/in

[Intel-gfx] [PATCH v2 30/50] drm/i915/dg2: Report INSTDONE_GEOM values in error state

2021-07-13 Thread Matt Roper
Xe_HPG adds some additional INSTDONE_GEOM debug registers; the Mesa team has indicated that having these reported in the error state would be useful for debugging GPU hangs. These registers are replicated per-DSS with gslice steering. Cc: Lionel Landwerlin Signed-off-by: Matt Roper Acked-by: Li

[Intel-gfx] [PATCH v2 34/50] drm/i915/dg2: Skip shared DPLL handling

2021-07-13 Thread Matt Roper
DG2 has no shared DPLL's or DDI clock muxing. The Port PLL is embedded within the PHY. Bspec: 54032 Bspec: 54034 Cc: Lucas De Marchi Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_display.c | 10 +++--- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 5 - 2 files ch

[Intel-gfx] [PATCH v2 29/50] drm/i915/dg2: Maintain backward-compatible nested batch behavior

2021-07-13 Thread Matt Roper
For tgl+, the per-context setting of MI_MODE[12] determines whether the bits of a nested MI_BATCH_BUFFER_START instruction should be interpreted in the traditional manner or whether they should instead use a new tgl+ meaning that breaks backward compatibility, but allows nesting into 3rd-level batc

[Intel-gfx] [PATCH v2 12/50] drm/i915/xehp: New engine context offsets

2021-07-13 Thread Matt Roper
From: Prathap Kumar Valsan The layout of some engine contexts has changed on Xe_HP. Define the new offsets. Bspec: 45585, 46256 Signed-off-by: Prathap Kumar Valsan Signed-off-by: Ramalingam C Signed-off-by: Venkata Ramana Nayana Signed-off-by: Akeem G Abodunrin Signed-off-by: Matt Roper --

[Intel-gfx] [PATCH v2 22/50] drm/i915/xehpsdv: Read correct RP_STATE_CAP register

2021-07-13 Thread Matt Roper
The RP_STATE_CAP register is no longer part of the MCHBAR on XEHPSDV; this register is now a per-tile register at GTTMMADDR offset 0x250014. Cc: Rodrigo Vivi Signed-off-by: Matt Roper Signed-off-by: Lucas De Marchi Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/gt/intel_rps.c | 4 +++- dr

[Intel-gfx] [PATCH v2 14/50] drm/i915/xehp: Loop over all gslices for INSTDONE processing

2021-07-13 Thread Matt Roper
We no longer have traditional slices on Xe_HP platforms, but the INSTDONE registers are replicated according to gslice representation which is similar. We can mostly re-use the existing instdone code with just a few modifications: * Create an alternate instdone loop macro that will iterate over

[Intel-gfx] [PATCH v2 09/50] drm/i915/xehp: Xe_HP forcewake support

2021-07-13 Thread Matt Roper
Implement Xe_HP forcewake handling. While we're at it, let's reorder to the forcewake assignment if/else ladder to match our usual driver conventions. Co-authored-by: Daniele Ceraolo Spurio Signed-off-by: Daniele Ceraolo Spurio Signed-off-by: Stuart Summers Signed-off-by: Matt Roper --- .../

[Intel-gfx] [PATCH v2 11/50] drm/i915/xehp: Handle new device context ID format

2021-07-13 Thread Matt Roper
From: Stuart Summers Xe_HP changes the format of the context ID from past platforms. Signed-off-by: Stuart Summers Signed-off-by: Umesh Nerlige Ramappa Signed-off-by: Matt Roper --- .../drm/i915/gt/intel_execlists_submission.c | 74 --- drivers/gpu/drm/i915/gt/intel_lrc.c

[Intel-gfx] [PATCH v2 08/50] drm/i915/xehp: Extra media engines - Part 3 (reset)

2021-07-13 Thread Matt Roper
From: John Harrison Xe_HP can have a lot of extra media engines. This patch adds the reset support for them. Signed-off-by: John Harrison Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/gt/intel_reset.c | 6 ++ drivers/gpu/drm/i915/i915_reg.h | 8 2 files changed, 14 ins

[Intel-gfx] [PATCH v2 13/50] drm/i915/xehp: handle new steering options

2021-07-13 Thread Matt Roper
From: Daniele Ceraolo Spurio Xe_HP is more modular then its predecessors and as a consequence it has more types of replicated registers. As with l3bank regions on previous platforms, we may need to explicitly re-steer accesses to these new types of ranges at runtime if we can't find a single def

[Intel-gfx] [PATCH v2 05/50] drm/i915/selftests: Allow for larger engine counts

2021-07-13 Thread Matt Roper
From: John Harrison Increasing the engine count causes a couple of local array variables to exceed the kernel stack limit. So make them dynamic allocations instead. Signed-off-by: John Harrison Signed-off-by: Daniele Ceraolo Spurio Signed-off-by: Matt Roper Reviewed-by: Lucas De Marchi ---

[Intel-gfx] [PATCH v2 10/50] drm/i915/xehp: Define multicast register ranges

2021-07-13 Thread Matt Roper
Since we can't steer multicast register reads during ring-based workaround verification, we need to define the multicast ranges where failure to steer could potentially cause us to read back from a fused-off register instance. As with gen12, we can ignore the multicast ranges that the bspec descri

[Intel-gfx] [PATCH v2 06/50] drm/i915/xehp: Extra media engines - Part 1 (engine definitions)

2021-07-13 Thread Matt Roper
From: John Harrison Xe_HP can have a lot of extra media engines. This patch adds the basic definitions for them. v2: - Re-order intel_gt_info and intel_device_info slightly to avoid unnecessary padding now that we've increased the size of intel_engine_mask_t. (Tvrtko) Cc: Tvrtko Ursulin

[Intel-gfx] [PATCH v2 07/50] drm/i915/xehp: Extra media engines - Part 2 (interrupts)

2021-07-13 Thread Matt Roper
From: John Harrison Xe_HP can have a lot of extra media engines. This patch adds the interrupt handler support for them. Cc: Tvrtko Ursulin Cc: Daniele Ceraolo Spurio Signed-off-by: John Harrison Signed-off-by: Matt Roper Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/gt/intel_gt_irq

[Intel-gfx] [PATCH v2 00/50] Begin enabling Xe_HP SDV and DG2 platforms

2021-07-13 Thread Matt Roper
This series provides some of the initial enablement patches for two upcoming discrete GPUs: * XeHP SDV: Xe_HP (version 12.50) graphics IP, no display IP * DG2: Xe_HPG (version 12.55) graphics IP, Xe_LPD (version 13) display IP Both platforms will need additional enablement patches beyond what'

[Intel-gfx] [PATCH v2 01/50] drm/i915: Add XE_HP initial definitions

2021-07-13 Thread Matt Roper
From: Lucas De Marchi Our _FEATURES macro went back to GEN7, extending each other, making it difficult to grasp what was really enabled/disabled. Take the opportunity of the GEN -> XE_HP name break and also break with the feature inheritance. For XE_HP this basically goes from GEN12 back to GEN7

[Intel-gfx] [PATCH v2 04/50] drm/i915/gen12: Use fuse info to enable SFC

2021-07-13 Thread Matt Roper
From: Venkata Sandeep Dhanalakota In Gen12 there are various fuse combinations and in each configuration vdbox engine may be connected to SFC depending on which engines are available, so we need to set the SFC capability based on fuse value from the hardware. Even numbered physical instance alway

[Intel-gfx] [PATCH v2 02/50] drm/i915: Fork DG1 interrupt handler

2021-07-13 Thread Matt Roper
From: Paulo Zanoni The current interrupt handler is getting increasingly complicated and Xe_HP changes will bring even more complexity. Let's split off a new interrupt handler starting with DG1 (i.e., when the master tile interrupt register was added to the design) and use that as the basis for

[Intel-gfx] [PATCH v2 03/50] drm/i915/xehp: VDBOX/VEBOX fusing registers are enable-based

2021-07-13 Thread Matt Roper
From: Tvrtko Ursulin On Xe_HP the fusing register is renamed and changed to have the "enable" semantics, but otherwise remains compatible (mmio address, bitmask ranges) with older platforms. To simplify things we do not add a new register definition but just stop inverting the fusing masks befor

Re: [Intel-gfx] [PATCH 06/16] drm/i915/guc/slpc: Allocate, initialize and release slpc

2021-07-13 Thread Belgaumkar, Vinay
On 7/10/2021 9:05 AM, Michal Wajdeczko wrote: On 10.07.2021 03:20, Vinay Belgaumkar wrote: Allocate data structures for SLPC and functions for initializing on host side. Signed-off-by: Vinay Belgaumkar Signed-off-by: Sundaresan Sujaritha --- drivers/gpu/drm/i915/gt/uc/intel_guc.c |

Re: [Intel-gfx] [PATCH 1/4] iommu/vt-d: Disable superpage for Geminilake igfx

2021-07-13 Thread Lu Baolu
On 7/14/21 4:30 AM, Ville Syrjälä wrote: On Tue, Jul 13, 2021 at 09:34:09AM +0800, Lu Baolu wrote: On 7/12/21 11:47 PM, Ville Syrjälä wrote: On Mon, Jul 12, 2021 at 07:23:07AM +0800, Lu Baolu wrote: On 7/10/21 12:47 AM, Ville Syrjala wrote: From: Ville Syrjälä While running "gem_exec_big --r

[Intel-gfx] ✗ Fi.CI.BAT: failure for shmem helpers for vgem (rev6)

2021-07-13 Thread Patchwork
== Series Details == Series: shmem helpers for vgem (rev6) URL : https://patchwork.freedesktop.org/series/90670/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10343 -> Patchwork_20593 Summary --- **FAILURE** Serio

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for shmem helpers for vgem (rev6)

2021-07-13 Thread Patchwork
== Series Details == Series: shmem helpers for vgem (rev6) URL : https://patchwork.freedesktop.org/series/90670/ State : warning == Summary == $ dim checkpatch origin/drm-tip 00c2c63016d4 dma-buf: Require VM_PFNMAP vma for mmap -:34: WARNING:TYPO_SPELLING: 'entires' may be misspelled - perhaps

[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Tweaked Wa_14010685332 for all PCHs (rev4)

2021-07-13 Thread Patchwork
== Series Details == Series: drm/i915: Tweaked Wa_14010685332 for all PCHs (rev4) URL : https://patchwork.freedesktop.org/series/88435/ State : failure == Summary == Applying: drm/i915: Tweaked Wa_14010685332 for all PCHs error: patch failed: drivers/gpu/drm/i915/display/intel_display_power.c:

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/fb-helper: Try to protect cleanup against delayed setup

2021-07-13 Thread Patchwork
== Series Details == Series: drm/fb-helper: Try to protect cleanup against delayed setup URL : https://patchwork.freedesktop.org/series/92478/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10341_full -> Patchwork_20587_full

Re: [Intel-gfx] [PATCH 05/16] drm/i915/guc/slpc: Adding slpc communication interfaces

2021-07-13 Thread Belgaumkar, Vinay
On 7/10/2021 8:52 AM, Michal Wajdeczko wrote: On 10.07.2021 03:20, Vinay Belgaumkar wrote: Replicate the SLPC header file in GuC for the most part. There are what you mean by "replicate" here? some SLPC mode based parameters which haven't been included since we are not using them. Signe

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/ehl: Resolve insufficient header credits in MIPI DSI

2021-07-13 Thread Patchwork
== Series Details == Series: drm/i915/ehl: Resolve insufficient header credits in MIPI DSI URL : https://patchwork.freedesktop.org/series/92498/ State : success == Summary == CI Bug Log - changes from CI_DRM_10343 -> Patchwork_20591 Summary

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/ehl: Resolve insufficient header credits in MIPI DSI

2021-07-13 Thread Patchwork
== Series Details == Series: drm/i915/ehl: Resolve insufficient header credits in MIPI DSI URL : https://patchwork.freedesktop.org/series/92498/ State : warning == Summary == $ dim checkpatch origin/drm-tip fa23f279ade1 drm/i915/ehl: Resolve insufficient header credits in MIPI DSI -:6: WARNING

[Intel-gfx] ✓ Fi.CI.BAT: success for Minor revid/stepping and workaround cleanup (rev5)

2021-07-13 Thread Patchwork
== Series Details == Series: Minor revid/stepping and workaround cleanup (rev5) URL : https://patchwork.freedesktop.org/series/92299/ State : success == Summary == CI Bug Log - changes from CI_DRM_10343 -> Patchwork_20590 Summary ---

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Minor revid/stepping and workaround cleanup (rev5)

2021-07-13 Thread Patchwork
== Series Details == Series: Minor revid/stepping and workaround cleanup (rev5) URL : https://patchwork.freedesktop.org/series/92299/ State : warning == Summary == $ dim checkpatch origin/drm-tip 486210f705f0 drm/i915/step: s/_revid_tbl/_revids 5a7f5fb477f9 drm/i915: Make pre-production detect

[Intel-gfx] [PATCH v4 4/4] drm/vgem: use shmem helpers

2021-07-13 Thread Daniel Vetter
Aside from deleting lots of code the real motivation here is to switch the mmap over to VM_PFNMAP, to be more consistent with what real gpu drivers do. They're all VM_PFNMP, which means get_user_pages doesn't work, and even if you try and there's a struct page behind that, touching it and mucking a

[Intel-gfx] [PATCH v4 3/4] drm/shmem-helpers: Allocate wc pages on x86

2021-07-13 Thread Daniel Vetter
intel-gfx-ci realized that something is not quite coherent anymore on some platforms for our i915+vgem tests, when I tried to switch vgem over to shmem helpers. After lots of head-scratching I realized that I've removed calls to drm_clflush. And we need those. To make this a bit cleaner use the sa

[Intel-gfx] [PATCH v4 2/4] drm/shmem-helper: Switch to vmf_insert_pfn

2021-07-13 Thread Daniel Vetter
We want to stop gup, which isn't the case if we use vmf_insert_page and VM_MIXEDMAP, because that does not set pte_special. v2: With this shmem gem helpers now definitely need CONFIG_MMU (0day) v3: add more depends on MMU. For usb drivers this is a bit awkward, but really it's correct: To be able

[Intel-gfx] [PATCH v4 1/4] dma-buf: Require VM_PFNMAP vma for mmap

2021-07-13 Thread Daniel Vetter
tldr; DMA buffers aren't normal memory, expecting that you can use them like that (like calling get_user_pages works, or that they're accounting like any other normal memory) cannot be guaranteed. Since some userspace only runs on integrated devices, where all buffers are actually all resident sys

[Intel-gfx] [PATCH v4 0/4] shmem helpers for vgem

2021-07-13 Thread Daniel Vetter
Hi all I've found another potential issue, so lets try this again and see what intel-gfx-ci says. Also Thomas tried to unify vgem more, which motivated me to dig this all out again. Test-with: 20210527140732.5762-1-daniel.vet...@ffwll.ch Review very much welcome, as always! Cheers, Daniel Dani

Re: [Intel-gfx] [REBASED v2] drm/i915: Tweaked Wa_14010685332 for all PCHs

2021-07-13 Thread Box, David E
Tested and confirmed working on TGL-H Dell platforms. David Box Linux Power Management IAGS/SSE From: Gupta, Anshuman Sent: Monday, July 12, 2021 12:09 AM To: intel-gfx@lists.freedesktop.org Cc: Box, David E ; Gupta, Anshuman ; Roper, Matthew D ; Vivi, Rodrigo

Re: [Intel-gfx] [PATCH 1/4] iommu/vt-d: Disable superpage for Geminilake igfx

2021-07-13 Thread Ville Syrjälä
On Tue, Jul 13, 2021 at 09:34:09AM +0800, Lu Baolu wrote: > On 7/12/21 11:47 PM, Ville Syrjälä wrote: > > On Mon, Jul 12, 2021 at 07:23:07AM +0800, Lu Baolu wrote: > >> On 7/10/21 12:47 AM, Ville Syrjala wrote: > >>> From: Ville Syrjälä > >>> > >>> While running "gem_exec_big --r single" from igt-g

[Intel-gfx] [PATCH] drm/i915/ehl: Resolve insufficient header credits in MIPI DSI

2021-07-13 Thread Aria Kraft
MIPI DSI initialization on EHL can fail due to not enough header credits available. To resolve this failure, this patch adds a header count to the existing 100us wait function. It then adds a call to this modified function to request a single header credit during initialization. Reviewed-by:

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Fix wm params for ccs

2021-07-13 Thread Patchwork
== Series Details == Series: drm/i915: Fix wm params for ccs URL : https://patchwork.freedesktop.org/series/92491/ State : success == Summary == CI Bug Log - changes from CI_DRM_10342 -> Patchwork_20589 Summary --- **SUCCESS** No

Re: [Intel-gfx] [PATCH] drm/i915/gt: Fix -EDEADLK handling regression

2021-07-13 Thread Ville Syrjälä
On Tue, Jul 13, 2021 at 09:59:18PM +0200, Daniel Vetter wrote: > On Tue, Jul 13, 2021 at 9:58 PM Daniel Vetter wrote: > > > > On Thu, Jul 1, 2021 at 9:07 AM Maarten Lankhorst > > wrote: > > > Op 30-06-2021 om 18:44 schreef Ville Syrjala: > > > > From: Ville Syrjälä > > > > > > > > The conversion

Re: [Intel-gfx] [PATCH] drm/fb-helper: Try to protect cleanup against delayed setup

2021-07-13 Thread Sam Ravnborg
Hi Daniel, On Tue, Jul 13, 2021 at 03:59:22PM +0200, Daniel Vetter wrote: > Some vague evidences suggests this can go wrong. Try to prevent it by > holding the right mutex and clearing ->deferred_setup to make sure we > later on don't accidentally try to re-register the fbdev when the > driver tho

Re: [Intel-gfx] [PATCH] drm/i915/gt: Fix -EDEADLK handling regression

2021-07-13 Thread Rodrigo Vivi
On Tue, Jul 13, 2021 at 09:59:18PM +0200, Daniel Vetter wrote: > On Tue, Jul 13, 2021 at 9:58 PM Daniel Vetter wrote: > > > > On Thu, Jul 1, 2021 at 9:07 AM Maarten Lankhorst > > wrote: > > > Op 30-06-2021 om 18:44 schreef Ville Syrjala: > > > > From: Ville Syrjälä > > > > > > > > The conversion

Re: [Intel-gfx] [PATCH] drm/i915: Fix wm params for ccs

2021-07-13 Thread Lucas De Marchi
On Tue, Jul 13, 2021 at 09:44:21PM +0300, Juha-Pekka Heikkila wrote: skl_compute_plane_wm_params() didn't take into account ccs modifiers on graphics ver >= 12 Signed-off-by: Juha-Pekka Heikkila Reviewed-by: Lucas De Marchi Lucas De Marchi --- drivers/gpu/drm/i915/intel_pm.c | 6 ++ 1

Re: [Intel-gfx] [PATCH v4 02/18] drm/sched: Barriers are needed for entity->last_scheduled

2021-07-13 Thread Andrey Grodzovsky
On 2021-07-13 5:10 a.m., Daniel Vetter wrote: On Tue, Jul 13, 2021 at 9:25 AM Christian König wrote: Am 13.07.21 um 08:50 schrieb Daniel Vetter: On Tue, Jul 13, 2021 at 8:35 AM Christian König wrote: Am 12.07.21 um 19:53 schrieb Daniel Vetter: It might be good enough on x86 with just READ_

Re: [Intel-gfx] [CI v4 03/12] drm/i915/skl: Use revid->stepping tables

2021-07-13 Thread Lucas De Marchi
On Tue, Jul 13, 2021 at 12:36:26PM -0700, Matt Roper wrote: Switch SKL to use a revid->stepping table as we're trying to do on all platforms going forward. Also drop the preproduction revisions and add the newer steppings we hadn't already handled. Note that SKL has a case where a newer revisio

Re: [Intel-gfx] [PATCH v2 07/12] drm/i915/icl: Use revid->stepping tables

2021-07-13 Thread Lucas De Marchi
On Tue, Jul 13, 2021 at 12:59:53PM -0700, Matt Roper wrote: On Tue, Jul 13, 2021 at 12:57:07PM -0700, Lucas De Marchi wrote: On Fri, Jul 09, 2021 at 08:37:19PM -0700, Matt Roper wrote: > Switch ICL to use a revid->stepping table as we're trying to do on all > platforms going forward. While we'r

Re: [Intel-gfx] [PATCH v2 07/12] drm/i915/icl: Use revid->stepping tables

2021-07-13 Thread Matt Roper
On Tue, Jul 13, 2021 at 12:57:07PM -0700, Lucas De Marchi wrote: > On Fri, Jul 09, 2021 at 08:37:19PM -0700, Matt Roper wrote: > > Switch ICL to use a revid->stepping table as we're trying to do on all > > platforms going forward. While we're at it, let's include some > > additional steppings that

Re: [Intel-gfx] [PATCH] drm/i915/gt: Fix -EDEADLK handling regression

2021-07-13 Thread Daniel Vetter
On Tue, Jul 13, 2021 at 9:58 PM Daniel Vetter wrote: > > On Thu, Jul 1, 2021 at 9:07 AM Maarten Lankhorst > wrote: > > Op 30-06-2021 om 18:44 schreef Ville Syrjala: > > > From: Ville Syrjälä > > > > > > The conversion to ww mutexes failed to address the fence code which > > > already returns -ED

Re: [Intel-gfx] [PATCH] drm/i915/gt: Fix -EDEADLK handling regression

2021-07-13 Thread Daniel Vetter
On Thu, Jul 1, 2021 at 9:07 AM Maarten Lankhorst wrote: > Op 30-06-2021 om 18:44 schreef Ville Syrjala: > > From: Ville Syrjälä > > > > The conversion to ww mutexes failed to address the fence code which > > already returns -EDEADLK when we run out of fences. Ww mutexes on > > the other hand trea

Re: [Intel-gfx] [PATCH v2 07/12] drm/i915/icl: Use revid->stepping tables

2021-07-13 Thread Lucas De Marchi
On Fri, Jul 09, 2021 at 08:37:19PM -0700, Matt Roper wrote: Switch ICL to use a revid->stepping table as we're trying to do on all platforms going forward. While we're at it, let's include some additional steppings that have popped up, even if we don't yet have any workarounds tied to those step

[Intel-gfx] ✓ Fi.CI.BAT: success for Minor revid/stepping and workaround cleanup (rev4)

2021-07-13 Thread Patchwork
== Series Details == Series: Minor revid/stepping and workaround cleanup (rev4) URL : https://patchwork.freedesktop.org/series/92299/ State : success == Summary == CI Bug Log - changes from CI_DRM_10342 -> Patchwork_20588 Summary ---

[Intel-gfx] [CI v4 10/12] drm/i915/dg1: Use revid->stepping tables

2021-07-13 Thread Matt Roper
Switch DG1 to use a revid->stepping table as we're trying to do on all platforms going forward. This removes the last use of IS_REVID() and REVID_FOREVER, so remove those now-unused macros as well to prevent their accidental use on future platforms. v2: - Use COMMON_STEP() macro in table. (Anus

[Intel-gfx] [CI v4 03/12] drm/i915/skl: Use revid->stepping tables

2021-07-13 Thread Matt Roper
Switch SKL to use a revid->stepping table as we're trying to do on all platforms going forward. Also drop the preproduction revisions and add the newer steppings we hadn't already handled. Note that SKL has a case where a newer revision ID corresponds to an older GT/disp stepping (0x9 -> STEP_J0,

[Intel-gfx] [CI v4 11/12] drm/i915/cnl: Drop all workarounds

2021-07-13 Thread Matt Roper
All of the Cannon Lake hardware that came out had graphics fused off, and our userspace drivers have already dropped their support for the platform; CNL-specific code in i915 that isn't inherited by subsequent platforms is effectively dead code. Let's remove all of the CNL-specific workarounds as

[Intel-gfx] [CI v4 08/12] drm/i915/jsl_ehl: Use revid->stepping tables

2021-07-13 Thread Matt Roper
Switch JSL/EHL to use a revid->stepping table as we're trying to do on all platforms going forward. v2: - Use COMMON_STEP(). (Anusha) Bspec: 29153 Cc: Anusha Srivatsa Signed-off-by: Matt Roper Reviewed-by: Anusha Srivatsa --- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 2 +- drivers/gpu

[Intel-gfx] [CI v4 00/12] Minor revid/stepping and workaround cleanup

2021-07-13 Thread Matt Roper
PCI revision IDs don't always map to GT and display IP steppings in an intuitive/sensible way. On many of our recent platforms we've switched to using revid->stepping lookup tables with the infrastructure in intel_step.c to handle stepping lookups and comparisons. This series converts several of

[Intel-gfx] [CI v4 12/12] drm/i915/icl: Drop workarounds that only apply to pre-production steppings

2021-07-13 Thread Matt Roper
We're past the point at which we usually drop workarounds that were never needed on production hardware. The driver will already print an error and apply taint if loaded on pre-production hardware. Signed-off-by: Matt Roper Reviewed-by: Anusha Srivatsa --- drivers/gpu/drm/i915/gt/intel_workaro

[Intel-gfx] [CI v4 07/12] drm/i915/icl: Use revid->stepping tables

2021-07-13 Thread Matt Roper
Switch ICL to use a revid->stepping table as we're trying to do on all platforms going forward. While we're at it, let's include some additional steppings that have popped up, even if we don't yet have any workarounds tied to those steppings (we probably need to audit our workaround list soon to s

[Intel-gfx] [CI v4 09/12] drm/i915/rkl: Use revid->stepping tables

2021-07-13 Thread Matt Roper
Switch RKL to use a revid->stepping table as we're trying to do on all platforms going forward. Bspec: 44501 Signed-off-by: Matt Roper Reviewed-by: Anusha Srivatsa --- drivers/gpu/drm/i915/display/intel_psr.c | 4 ++-- drivers/gpu/drm/i915/i915_drv.h | 8 ++-- drivers/gpu/drm/i915/

[Intel-gfx] [CI v4 01/12] drm/i915/step: s/_revid_tbl/_revids

2021-07-13 Thread Matt Roper
From: Anusha Srivatsa Simplify the stepping info array name. Cc: Jani Nikula Signed-off-by: Anusha Srivatsa Reviewed-by: Jani Nikula --- drivers/gpu/drm/i915/intel_step.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/i915/intel

[Intel-gfx] [CI v4 02/12] drm/i915: Make pre-production detection use direct revid comparison

2021-07-13 Thread Matt Roper
Although we're converting our workarounds to use a revid->stepping lookup table, the function that detects pre-production hardware should continue to compare against PCI revision ID values directly. These are listed in the bspec as integers, so it's easier to confirm their correctness if we just u

[Intel-gfx] [CI v4 05/12] drm/i915/bxt: Use revid->stepping tables

2021-07-13 Thread Matt Roper
Switch BXT to use a revid->stepping table as we're trying to do on all platforms going forward. Note that the REVID macros we had before weren't being used anywhere in the code and weren't even correct; the table values come from the bspec (and omits all the placeholder and preproduction revisions

[Intel-gfx] [CI v4 06/12] drm/i915/glk: Use revid->stepping tables

2021-07-13 Thread Matt Roper
Switch GLK to use a revid->stepping table as we're trying to do on all platforms going forward. Pre-production and placeholder revisions are omitted. Although nothing in the code is using the data from this table at the moment, we expect some upcoming DMC patches to start utilizing it. Bspec: 19

[Intel-gfx] [CI v4 04/12] drm/i915/kbl: Drop pre-production revision from stepping table

2021-07-13 Thread Matt Roper
We're long past the point where we need to care about pre-production hardware, and we already warn the user and taint the kernel if we detect the driver is being loaded on pre-production hardware. Bspec: 18329 Signed-off-by: Matt Roper Reviewed-by: Anusha Srivatsa --- drivers/gpu/drm/i915/intel

  1   2   >