Re: [PATCH v2 02/17] drm/i915/xehpsdv: set min page-size to 64K

2021-10-21 Thread Lucas De Marchi
discrete cards that support 64k pages we should be using it since 4K page support ... Reviewed-by: Lucas De Marchi Lucas De Marhci Signed-off-by: Matthew Auld Signed-off-by: Stuart Summers Signed-off-by: Ramalingam C Cc: Joonas Lahtinen Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/gem

Re: [Intel-gfx] [PATCH] drm/i915: remove CNL leftover

2021-10-21 Thread Lucas De Marchi
On Thu, Oct 21, 2021 at 10:05:40PM +0300, Ville Syrjälä wrote: On Thu, Oct 21, 2021 at 11:18:47AM -0700, Lucas De Marchi wrote: We left the definition IS_CANNONLAKE() macro while removing it from the tree due to having to merge the changes in different branches. Now that everything is back in

[PATCH] drm/i915: remove CNL leftover

2021-10-21 Thread Lucas De Marchi
We left the definition IS_CANNONLAKE() macro while removing it from the tree due to having to merge the changes in different branches. Now that everything is back in sync and nobody is using IS_CANNONLAKE(), we can safely ditch it. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915

[PATCH 0/2] Nuke PAGE_KERNEL_IO

2021-10-21 Thread Lucas De Marchi
Last user of PAGE_KERNEL_IO is the i915 driver. While removing it from there as we seek to bring the driver to other architectures, Daniel suggested that we could finish the cleanup and remove it altogether, through the tip tree. So here I'm sending both commits needed for that. Lucas De M

[PATCH 2/2] x86/mm: nuke PAGE_KERNEL_IO

2021-10-21 Thread Lucas De Marchi
specific _PAGE_IOMAP PTE flag"), so today they are just the same. With the last users outside arch/x86 being remove we can now remove PAGE_KERNEL_IO. Signed-off-by: Lucas De Marchi --- arch/x86/include/asm/fixmap.h| 2 +- arch/x86/include/asm/pgtable_types.h | 7 -

[PATCH 1/2] drm/i915/gem: stop using PAGE_KERNEL_IO

2021-10-21 Thread Lucas De Marchi
("microblaze: Provide pgprot_device/writecombine macros for nommu"). So, just use PAGE_KERNEL, and just use pgprot_writecombine(). Signed-off-by: Lucas De Marchi Reviewed-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20211020090625.1037517-1-lucas.demar..

[PATCH] io-mapping: remove fallback for writecombine

2021-10-20 Thread Lucas De Marchi
c: Daniel Vetter Cc: Joonas Lahtinen Cc: linux...@kvack.org Cc: Peter Zijlstra Cc: Andrew Morton Signed-off-by: Lucas De Marchi --- include/linux/io-mapping.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/include/linux/io-mapping.h b/include/linux/io-mapping.h index e9743cfd8585..66a77

Re: [Intel-gfx] [PATCH 2/4] mm: add a io_mapping_map_user helper

2021-10-20 Thread Lucas De Marchi
ommit 0e4fe0c9f2f9 ("Revert "i915: use io_mapping_map_user"") Is this something we want to re-attempt moving to mm/ ? thanks Lucas De Marchi diff --git a/mm/Kconfig b/mm/Kconfig index 24c045b24b9506..6b0f2cfbfac0f3 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -872,4 +872,7 @@ con

[PATCH] drm/i915/gem: stop using PAGE_KERNEL_IO

2021-10-20 Thread Lucas De Marchi
ombine() and pgprot_noncached_wc(). From the commit message and linked issue, the fallback was needed for arm, but apparently today all the variants there also have pgprot_writecombine(). So, just use PAGE_KERNEL, and just use pgprot_writecombine(). Signed-off-by: Lucas De Marchi --- drivers/gpu/d

Re: [Intel-gfx] [PATCH v5] drm/i915/gt: move remaining debugfs interfaces into gt

2021-10-14 Thread Lucas De Marchi
On Thu, Oct 14, 2021 at 02:11:34AM +0200, Andi Shyti wrote: Hi Lucas, On Wed, Oct 13, 2021 at 05:04:27PM -0700, Lucas De Marchi wrote: On Wed, Oct 13, 2021 at 12:17:38AM +0200, Andi Shyti wrote: > From: Andi Shyti > > The following interfaces: > > i915_wedged > i915_forc

Re: [Intel-gfx] [PATCH v5] drm/i915/gt: move remaining debugfs interfaces into gt

2021-10-13 Thread Lucas De Marchi
Cc: Chris Wilson Reviewed-by: Lucas De Marchi do you want me to push this? Lucas De Marchi

Re: [PATCH 14/14] Doc/gpu/rfc/i915: i915 DG2 uAPI

2021-10-11 Thread Lucas De Marchi
re/ > +It is managed by userspace and has an associated set of userspace managed > page tables > +used by hardware for address translation. > + > +In Gen 12.5 devices(XEXPSDV and DG2) Flat CCS is introduced to replace the > userspace There is no such thing as Gen 12.5. The "

Re: [PATCH v4] drm/i915/gt: move remaining debugfs interfaces into gt

2021-10-09 Thread Lucas De Marchi
frequency", &frequency_fops, NULL }, > { "forcewake", &fw_domains_fops, NULL }, > + { "forcewake_user", &forcewake_user_fops, NULL}, > { "llc", &llc_fops, llc_eval }, > { "rps_boost", &rps_boost_fops, rps_eval }, > }; > diff --git a/drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h > b/drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h > index 2b824289582be..fe306412b996d 100644 > --- a/drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h > +++ b/drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h > @@ -13,4 +13,8 @@ struct drm_printer; > void intel_gt_pm_debugfs_register(struct intel_gt *gt, struct dentry *root); > void intel_gt_pm_frequency_dump(struct intel_gt *gt, struct drm_printer *m); > > +/* functions that need to be accessed by the upper level non-gt interfaces */ > +int __forcewake_user_open(struct intel_gt *gt); > +int __forcewake_user_release(struct intel_gt *gt); same thing here. Other than those renames, Reviewed-by: Lucas De Marchi thanks Lucas De Marchi

Re: [PATCH v2] drm/i915/gt: move remaining debugfs interfaces into gt

2021-10-08 Thread Lucas De Marchi
tile, and > this would be your "promise". multi-gt is irrelevant here. This patch without any "promise" should do what the commit message says: *move*. The only reason to keep the old entrypoint around is because it's missing the igt conversion. If you are going to support a per-device entrypoint and do for_each_gt(), or do a symlink to the root tile, or whatever, it isn't very relevant to this patch. Right now we have just a single directory, gt. Lucas De Marchi

Re: [PATCH v2] drm/i915/gt: move remaining debugfs interfaces into gt

2021-10-07 Thread Lucas De Marchi
/i915: deduplicate frequency dump on debugfs") Alternative would be to prepare igt already and then add a Test-with: in this patch series But I think it makes more sense to support both locations for some time and then later remove the previous one. Thanks Lucas De Marchi

Re: [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood

2021-10-05 Thread Lucas De Marchi
t see real opposition to it. Is there a tree you plan to take this through? thanks Lucas De Marchi [1] https://lore.kernel.org/lkml/20211005212634.3223113-1-lucas.demar...@intel.com/T/#u Signed-off-by: Andy Shevchenko --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c| 6 +- driver

[PATCH v3] drm/i915: remove IS_ACTIVE

2021-10-05 Thread Lucas De Marchi
; context) As talked with Dan Carpenter, that logic will be added in smatch as well, so it will also stop warning about it. Signed-off-by: Lucas De Marchi Acked-by: Jani Nikula --- drivers/gpu/drm/i915/gem/i915_gem_context.c| 2 +- drivers/gpu/drm/i915/gem/i915_gem_mman.c |

Re: [Intel-gfx] [PATCH] drm/i915: remove IS_ACTIVE

2021-10-05 Thread Lucas De Marchi
On Tue, Oct 05, 2021 at 09:19:39AM +0300, Dan Carpenter wrote: On Mon, Oct 04, 2021 at 01:52:27PM -0700, Lucas De Marchi wrote: Cc'ing Dan Carpenter On Fri, Oct 01, 2021 at 12:57:13PM +0300, Jani Nikula wrote: > On Fri, 01 Oct 2021, Chris Wilson wrote: > > Quoting Lucas De Marc

Re: [Intel-gfx] [PATCH] drm/i915: remove IS_ACTIVE

2021-10-04 Thread Lucas De Marchi
Cc'ing Dan Carpenter On Fri, Oct 01, 2021 at 12:57:13PM +0300, Jani Nikula wrote: On Fri, 01 Oct 2021, Chris Wilson wrote: Quoting Lucas De Marchi (2021-10-01 08:40:41) When trying to bring IS_ACTIVE to linux/kconfig.h I thought it wouldn't provide much value just encapsulati

Re: [Intel-gfx] [PATCH] drm/i915: remove IS_ACTIVE

2021-10-01 Thread Lucas De Marchi
On Fri, Oct 01, 2021 at 12:57:13PM +0300, Jani Nikula wrote: On Fri, 01 Oct 2021, Chris Wilson wrote: Quoting Lucas De Marchi (2021-10-01 08:40:41) When trying to bring IS_ACTIVE to linux/kconfig.h I thought it wouldn't provide much value just encapsulating it in a boolean context. So I

[PATCH] drm/i915: remove IS_ACTIVE

2021-10-01 Thread Lucas De Marchi
intain consistency. However let's try first the simplest form though, hopefully we don't hit broken compilers spitting a warning: Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gem/i915_gem_context.c| 2 +- drivers/gpu/drm/i915/gem/i915_gem_mman.c

Re: [PATCH v2 3/3] Move IS_CONFIG_NONZERO() to kconfig.h

2021-09-30 Thread Lucas De Marchi
On Thu, Sep 30, 2021 at 11:01:36PM +0900, Masahiro Yamada wrote: On Thu, Sep 30, 2021 at 3:34 AM Lucas De Marchi wrote: The check for config value doesn't really belong to i915_utils.h - we are trying to eliminate that utils helper and share them when possible with other driver

Re: [PATCH v2 1/3] drm/i915: rename IS_ACTIVE

2021-09-30 Thread Lucas De Marchi
On Thu, Sep 30, 2021 at 01:46:21PM +0300, Jani Nikula wrote: On Wed, 29 Sep 2021, Lucas De Marchi wrote: It took me some time to understand the need for IS_ACTIVE and why we couldn't use kconfig.h. For anyone else wondering, the clues are in babaab2f4738 ("drm/i915: Encapsula

Re: [PATCH v2 2/3] drm/i915/utils: do not depend on config being defined

2021-09-30 Thread Lucas De Marchi
On Thu, Sep 30, 2021 at 11:00:06AM +0100, Steven Price wrote: On 29/09/2021 19:33, Lucas De Marchi wrote: Like the IS_ENABLED() counterpart, we can make IS_CONFIG_NONZERO() to return the right thing when the config is not defined rather than a build error, with the limitation that it can'

Re: [PATCH v2 2/3] drm/i915/utils: do not depend on config being defined

2021-09-29 Thread Lucas De Marchi
On Wed, Sep 29, 2021 at 11:08:18PM +0200, Andrzej Hajda wrote: W dniu 29.09.2021 o 20:33, Lucas De Marchi pisze: Like the IS_ENABLED() counterpart, we can make IS_CONFIG_NONZERO() to return the right thing when the config is not defined rather than a build error, with the limitation that it

[PATCH v2 2/3] drm/i915/utils: do not depend on config being defined

2021-09-29 Thread Lucas De Marchi
size drivers/gpu/drm/i915/gem/i915_gem_context.o.* textdata bss dec hex filename 520211070 232 53323d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.new 52021 1070 232 53323d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.old Signed-off-by: Lucas De Ma

[PATCH v2 1/3] drm/i915: rename IS_ACTIVE

2021-09-29 Thread Lucas De Marchi
but I think this is slightly better than "active". Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gem/i915_gem_context.c| 2 +- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine.h | 4 ++-- drivers/

[PATCH v2 3/3] Move IS_CONFIG_NONZERO() to kconfig.h

2021-09-29 Thread Lucas De Marchi
de boolean predicates") whereas later it is improved to not break the build if used with undefined configs. The caveat is detailed in the documentation: unlike IS_ENABLED(): it's not preprocessor-only logic so can't be used for things like `#if IS_CONFIG_NONZERO(...)` Signe

[PATCH v2 0/3] Rename IS_ACTIVE() and move to kconfig.h

2021-09-29 Thread Lucas De Marchi
t fixed up - no changes to the patches. Lucas De Marchi (3): drm/i915: rename IS_ACTIVE drm/i915/utils: do not depend on config being defined Move IS_CONFIG_NONZERO() to kconfig.h drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 2

[PATCH 2/3] drm/i915/utils: do not depend on config being defined

2021-09-29 Thread Lucas De Marchi
size drivers/gpu/drm/i915/gem/i915_gem_context.o.* textdata bss dec hex filename 520211070 232 53323d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.new 52021 1070 232 53323d04b drivers/gpu/drm/i915/gem/i915_gem_context.o.old Signed-off-by: Lucas De Ma

[PATCH 3/3] Move IS_CONFIG_NONZERO() to kconfig.h

2021-09-29 Thread Lucas De Marchi
de boolean predicates") whereas later it is improved to not break the build if used with undefined configs. The caveat is detailed in the documentation: unlike IS_ENABLED(): it's not preprocessor-only logic so can't be used for things like `#if IS_CONFIG_NONZERO(...)` Signe

[PATCH 0/3] Rename IS_ACTIVE() and move to kconfig.h

2021-09-29 Thread Lucas De Marchi
As we try to reduce our i915-only helpers, let's try to improve IS_ACTIVE() logic and move to kconfig.h. I'm not 100% happy with the name, but it's the best I could come up with, hopefully a little better than trying to add IS_ACTIVE() to be used broadly. Lucas De Marchi (3): d

[PATCH 1/3] drm/i915: rename IS_ACTIVE

2021-09-29 Thread Lucas De Marchi
but I think this is slightly better than "active". Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gem/i915_gem_context.c| 2 +- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine.h | 4 ++-- drivers/

Re: [Intel-gfx] [PATCH] drm/i915/guc/slpc: remove unneeded clflush calls

2021-09-22 Thread Lucas De Marchi
On Tue, Sep 21, 2021 at 04:06:00PM +0300, Ville Syrjälä wrote: On Mon, Sep 20, 2021 at 10:47:08PM -0700, Lucas De Marchi wrote: On Wed, Sep 15, 2021 at 12:29:12PM -0700, John Harrison wrote: >On 9/15/2021 12:24, Belgaumkar, Vinay wrote: >>On 9/14/2021 12:51 PM, Lucas De Marchi wrot

Re: [Intel-gfx] [PATCH 14/19] drm/i915/oprom: Basic sanitization

2021-09-22 Thread Lucas De Marchi
: [Intel-gfx] [PATCH 14/19] drm/i915/oprom: Basic sanitization On Fri, 17 Sep 2021, Lucas De Marchi wrote: > On Mon, May 17, 2021 at 02:57:33PM +0300, Jani Nikula wrote: >>On Mon, 12 Apr 2021, Matthew Auld wrote: >>> From: Anshuman Gupta >>> >>> Sanitize OPROM

Re: [Intel-gfx] [PATCH] drm/i915: fix blank screen booting crashes

2021-09-22 Thread Lucas De Marchi
On Tue, Sep 21, 2021 at 06:40:41PM -0700, Matthew Brost wrote: On Tue, Sep 21, 2021 at 04:29:31PM -0700, Lucas De Marchi wrote: On Tue, Sep 21, 2021 at 03:55:15PM -0700, Matthew Brost wrote: > On Tue, Sep 21, 2021 at 11:46:37AM -0700, Lucas De Marchi wrote: > > On Tue, Sep 21, 2021

Re: [Intel-gfx] [PATCH] drm/i915: fix blank screen booting crashes

2021-09-21 Thread Lucas De Marchi
On Tue, Sep 21, 2021 at 03:55:15PM -0700, Matthew Brost wrote: On Tue, Sep 21, 2021 at 11:46:37AM -0700, Lucas De Marchi wrote: On Tue, Sep 21, 2021 at 10:43:32AM -0700, Matthew Brost wrote: > From: Hugh Dickins > > 5.15-rc1 crashes with blank screen when booting up on two ThinkPad

Re: [PATCH v2 6/6] drm/i915/dg2: Add DG2-specific shadow register table

2021-09-21 Thread Lucas De Marchi
) * One register is added (0xC4E0) Signed-off-by: Matt Roper I did the conversion from the table to this array and arrived at the same result. Reviewed-by: Lucas De Marchi Lucas De Marchi

Re: [Intel-gfx] [PATCH] drm/i915: fix blank screen booting crashes

2021-09-21 Thread Lucas De Marchi
aren't you just going to use uninitialized memory later? At least in the selftests, which allocate it with kmalloc()... I didn't check others. For the bug fix we could just add the __aligned(4) and leave the rest to a separate patch. Lucas De Marchi fence->flag

Re: [PATCH v2 5/6] drm/i915/uncore: Drop gen11 mmio read handlers

2021-09-21 Thread Lucas De Marchi
chain? gen < 6 don't have forcewake so afaics we cover all the platforms. this can be done as a separate patch though. Reviewed-by: Lucas De Marchi Lucas De Marchi } else if (IS_GRAPHICS_VER(i915, 9, 10)) { ASSIGN_FW_DOMAINS_TABLE(uncore, __gen9_fw_ranges);

Re: [PATCH] drm/i915/guc/slpc: remove unneeded clflush calls

2021-09-20 Thread Lucas De Marchi
On Wed, Sep 15, 2021 at 12:29:12PM -0700, John Harrison wrote: On 9/15/2021 12:24, Belgaumkar, Vinay wrote: On 9/14/2021 12:51 PM, Lucas De Marchi wrote: The clflush calls here aren't doing anything since we are not writting something and flushing the cache lines to be visible to GuC. Her

Re: [Intel-gfx] [PATCH 14/19] drm/i915/oprom: Basic sanitization

2021-09-17 Thread Lucas De Marchi
ng it from spi is already the fallback and looks much more complex. Yes, it's pretty detailed and document the format pretty well, but it still looks more complex than the initial code. Do you see additional benefit in this one? Lucas De Marchi

Re: [Intel-gfx] [PATCH 13/19] drm/i915/dg1: Read OPROM via SPI controller

2021-09-17 Thread Lucas De Marchi
don't have this patch applied. There is some coding style to fix, but if we don't have it we are basically relying on the fallback of using a fake/hardcoded vbt. I will do some fixups and re-submit. Lucas De Marchi v2 by Jani: - switch to intel_uncore_read/intel_uncore_write Cc: Vi

[PATCH] drm/i915/guc/slpc: remove unneeded clflush calls

2021-09-14 Thread Lucas De Marchi
wrong instruction to use. >From code inspection on the other clflush() calls in i915/gt/uc/ these are the only ones with this behavrior. The others are apparently making sure what we write is visible to GuC. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 3 ---

Re: [Intel-gfx] [PATCH 1/4] drm/i915: rename debugfs_gt files

2021-09-14 Thread Lucas De Marchi
On Tue, Sep 14, 2021 at 12:16:13PM +0300, Jani Nikula wrote: On Wed, 08 Sep 2021, Lucas De Marchi wrote: We shouldn't be using debugfs_ namespace for this functionality. Rename debugfs_gt.[ch] to intel_gt_debugfs.[ch] and then make functions, defines and structs follow suit. While at i

Re: [Intel-gfx] [PATCH 3/4] drm/i915: rename debugfs_gt_pm files

2021-09-10 Thread Lucas De Marchi
On Fri, Sep 10, 2021 at 09:14:37PM +, Yokoyama, Caz wrote: On Fri, 2021-09-10 at 10:52 -0700, Lucas De Marchi wrote: On Wed, Sep 08, 2021 at 05:49:40PM -0700, Lucas De Marchi wrote: > We shouldn't be using debugfs_ namespace for this functionality. > Rename > debugfs

Re: [Intel-gfx] [PATCH 3/4] drm/i915: rename debugfs_gt_pm files

2021-09-10 Thread Lucas De Marchi
On Wed, Sep 08, 2021 at 05:49:40PM -0700, Lucas De Marchi wrote: We shouldn't be using debugfs_ namespace for this functionality. Rename debugfs_gt_pm.[ch] to intel_gt_pm_debugfs.[ch] and then make functions, defines and structs follow suit. Signed-off-by: Lucas De Marchi --- drivers/gp

[PATCH 1/4] drm/i915: rename debugfs_gt files

2021-09-08 Thread Lucas De Marchi
We shouldn't be using debugfs_ namespace for this functionality. Rename debugfs_gt.[ch] to intel_gt_debugfs.[ch] and then make functions, defines and structs follow suit. While at it and since we are renaming the header, sort the includes alphabetically. Signed-off-by: Lucas De M

[PATCH 3/4] drm/i915: rename debugfs_gt_pm files

2021-09-08 Thread Lucas De Marchi
We shouldn't be using debugfs_ namespace for this functionality. Rename debugfs_gt_pm.[ch] to intel_gt_pm_debugfs.[ch] and then make functions, defines and structs follow suit. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/Makefile | 2 +- drivers/gpu/drm/i9

[PATCH 2/4] drm/i915: rename debugfs_engines files

2021-09-08 Thread Lucas De Marchi
We shouldn't be using debugfs_ namespace for this functionality. Rename debugfs_engines.[ch] to intel_gt_engines_debugfs.[ch] and then make functions, defines and structs follow suit. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/Makefile | 2 +- drivers/gp

[PATCH 4/4] drm/i915: deduplicate frequency dump on debugfs

2021-09-08 Thread Lucas De Marchi
DOWN THRESHOLD and RP DOWN EI. These came in as part of commit 9c878557b1eb ("drm/i915/gt: Use the RPM config register to determine clk frequencies"), which didn't change both places. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c | 127 +

Re: [PATCH] drm/edid: fix edid field name

2021-08-11 Thread Lucas De Marchi
On Wed, Aug 11, 2021 at 09:32:49PM +, Simon Ser wrote: Reviewed-by: Simon Ser Do you need me to push this? yes, please. I'm a committer only on drm-intel and I guess this should go through another tree. thanks Lucas De Marchi

[PATCH] drm/edid: fix edid field name

2021-08-11 Thread Lucas De Marchi
Byte 26 in a edid struct is supposed to be "Blue and white least-significant 2 bits", not "black and white". Rename the field accordingly. This field is not used anywhere, so just renaming it here for correctness. Signed-off-by: Lucas De Marchi --- include/drm/drm_edid.h |

Re: [Intel-gfx] [PATCH] drm/i915/xehp: Fix missing sentinel on mcr_ranges_xehp

2021-07-30 Thread Lucas De Marchi
I guess I forgot to Cc dri-devel. Doing it now. Lucas De Marchi On Fri, Jul 30, 2021 at 12:18:59PM -0700, Matt Roper wrote: On Fri, Jul 30, 2021 at 12:11:15PM -0700, Lucas De Marchi wrote: There's a missing sentinel since we are not using ARRAY_SIZE(), but rather checking that the .start

[PATCH 2/4] drm/i915/gt: remove explicit CNL handling from intel_sseu.c

2021-07-28 Thread Lucas De Marchi
ually increase the number of subslices so the number of slices remain 1. Signed-off-by: Lucas De Marchi Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/gt/intel_sseu.c | 79 drivers/gpu/drm/i915/gt/intel_sseu.h | 2 +- 2 files changed, 1 insertion(+), 80 deletions(-)

[PATCH 4/4] drm/i915/gt: remove GRAPHICS_VER == 10

2021-07-28 Thread Lucas De Marchi
Replace all remaining handling of GRAPHICS_VER {==,>=} 10 with {==,>=} 11. With the removal of CNL, there is no platform with graphics version equals 10. Signed-off-by: Lucas De Marchi Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/gt/debugfs_gt_pm.c | 10 ++--- drivers/gpu/dr

[PATCH 0/4] Remove CNL - for drm-intel-gt-next

2021-07-28 Thread Lucas De Marchi
This the part of https://patchwork.freedesktop.org/series/93056/ that should go through drm-intel-gt-next branch. Lucas De Marchi (4): drm/i915/gt: remove explicit CNL handling from intel_mocs.c drm/i915/gt: remove explicit CNL handling from intel_sseu.c drm/i915/gt: rename CNL references

[PATCH 1/4] drm/i915/gt: remove explicit CNL handling from intel_mocs.c

2021-07-28 Thread Lucas De Marchi
Only one reference to CNL that is not needed, but code is the same for GEN9_BC, so leave the code around and just remove the special case for CNL. Signed-off-by: Lucas De Marchi Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/gt/intel_mocs.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 3/4] drm/i915/gt: rename CNL references in intel_engine.h

2021-07-28 Thread Lucas De Marchi
With the removal of CNL, let's consider ICL as the first platform using that index. Signed-off-by: Lucas De Marchi Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/gt/intel_engine.h | 2 +- drivers/gpu/drm/i915/i915_drv.h| 4 ++-- 2 files changed, 3 insertions(+), 3 dele

Re: [Intel-gfx] [PATCH 30/30] drm/i915: switch num_scalers/num_sprites to consider DISPLAY_VER

2021-07-26 Thread Lucas De Marchi
On Mon, Jul 26, 2021 at 06:13:10AM -0400, Rodrigo Vivi wrote: On Fri, Jul 23, 2021 at 05:11:14PM -0700, Lucas De Marchi wrote: The numbers of scalers and sprites depend on the display version, so use it instead of GRAPHICS_VER. We were mixing both, which let me confused while removing CNL and

Re: [PATCH 04/30] drm/i915/display: remove explicit CNL handling from intel_cdclk.c

2021-07-26 Thread Lucas De Marchi
On Sat, Jul 24, 2021 at 11:12:07AM -0700, Matt Roper wrote: On Fri, Jul 23, 2021 at 05:10:48PM -0700, Lucas De Marchi wrote: The only real platform with DISPLAY_VER == 10 is GLK, so we don't need any checks and supporting code for CNL. Remove code and rename functions/macros accord

Re: [PATCH 18/30] drm/i915: remove explicit CNL handling from i915_irq.c

2021-07-26 Thread Lucas De Marchi
On Mon, Jul 26, 2021 at 06:59:35AM -0400, Rodrigo Vivi wrote: On Fri, Jul 23, 2021 at 05:11:02PM -0700, Lucas De Marchi wrote: Remove special handling of PORT_F in i915_irq.c and only do it for DISPLAY_VER == 11. oh! ignore my previous thought about removing the port F... of course I only

Re: [Intel-gfx] [PATCH 02/30] drm/i915/display: split DISPLAY_VER 9 and 10 in intel_setup_outputs()

2021-07-26 Thread Lucas De Marchi
On Mon, Jul 26, 2021 at 06:20:03AM -0400, Rodrigo Vivi wrote: On Sat, Jul 24, 2021 at 10:02:15PM -0700, Lucas De Marchi wrote: On Sat, Jul 24, 2021 at 06:41:21PM +0100, Christoph Hellwig wrote: > Still tests fine: > > Tested-by: Christoph Hellwig I just pushed this to drm-intel-nex

Re: [PATCH 02/30] drm/i915/display: split DISPLAY_VER 9 and 10 in intel_setup_outputs()

2021-07-24 Thread Lucas De Marchi
the port mask, too. Thanks for the bug report and test. Lucas De Marchi

[PATCH 27/30] drm/i915: remove GRAPHICS_VER == 10

2021-07-23 Thread Lucas De Marchi
Replace all remaining handling of GRAPHICS_VER {==,>=} 10 with {==,>=} 11. With the removal of CNL, there is no platform with graphics version equals 10. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gem/i915_gem_stolen.c| 1 - drivers/gpu/drm/i915/gt/debugfs_gt_pm.c

[PATCH 28/30] drm/i915: rename/remove CNL registers

2021-07-23 Thread Lucas De Marchi
Remove registers that are not used anymore due to CNL removal and rename those that are. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/i915_reg.h | 192 ++- drivers/gpu/drm/i915/intel_device_info.c | 2 +- 2 files changed, 48 insertions(+), 146 deletions

[PATCH 29/30] drm/i915: replace random CNL comments

2021-07-23 Thread Lucas De Marchi
Cleanup remaining cases that we find CNL in the codebase. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_bios.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 2 +- drivers/gpu/drm/i915/display/intel_dp_aux.c | 1 - drivers/gpu/drm/i915/display

[PATCH 19/30] drm/i915: remove explicit CNL handling from intel_pm.c

2021-07-23 Thread Lucas De Marchi
Remove support for CNL as it's highly untested, probably broken, and there is no real platform that requires this code. This is part of CNL removal from i915. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/i915_reg.h | 2 +- drivers/gpu/drm/i915/intel_pm.c

[PATCH 21/30] drm/i915: remove explicit CNL handling from intel_pch.c

2021-07-23 Thread Lucas De Marchi
Remove references for CNL from pch detection. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/intel_pch.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pch.c b/drivers/gpu/drm/i915/intel_pch.c index cc44164e242b..d1d4b97b86f5 100644

[PATCH 22/30] drm/i915: remove explicit CNL handling from intel_wopcm.c

2021-07-23 Thread Lucas De Marchi
Consider the new WOPCM size as starting in ICL rather than CNL since the latter is being removed from the driver. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/intel_wopcm.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915

[PATCH 17/30] drm/i915/display: rename CNL references in skl_scaler.c

2021-07-23 Thread Lucas De Marchi
With the removal of CNL, let's consider GLK as the first platform using those constants since GLK has DISPLAY_VER == 10. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/skl_scaler.c | 10 +- drivers/gpu/drm/i915/i915_reg.h | 4 ++-- 2 files chang

[PATCH 15/30] drm/i915/display: remove explicit CNL handling from intel_display_power.c

2021-07-23 Thread Lucas De Marchi
The only real platform with DISPLAY_VER == 10 is GLK. We don't need to handle CNL explicitly in intel_display_power.c. Signed-off-by: Lucas De Marchi --- .../drm/i915/display/intel_display_power.c| 289 -- .../drm/i915/display/intel_display_power.h| 2 - driver

[PATCH 13/30] drm/i915/display: remove explicit CNL handling from intel_vdsc.c

2021-07-23 Thread Lucas De Marchi
Only one reference to CNL that is not needed, but code is the same for DISPLAY_VER >= 11, so leave the code around and just remove the special case for CNL. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_vdsc.c | 5 - 1 file changed, 4 insertions(+), 1 delet

[PATCH 26/30] drm/i915: finish removal of CNL

2021-07-23 Thread Lucas De Marchi
With all the users removed, finish removing the CNL platform definitions. We will leave the PCI IDs around as those are exposed to userspace. Even if mesa doesn't support CNL anymore, let's avoid build breakages due to changing the headers. Signed-off-by: Lucas De Marchi --- drive

[PATCH 14/30] drm/i915/display: remove explicit CNL handling from skl_universal_plane.c

2021-07-23 Thread Lucas De Marchi
The only real platform with DISPLAY_VER == 10 is GLK. We don't need to handle CNL explicitly in skl_universal_plane.c. Remove code and rename functions/macros accordingly to use ICL prefix. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/skl_universal_plane.c

[PATCH 23/30] drm/i915/gt: remove explicit CNL handling from intel_sseu.c

2021-07-23 Thread Lucas De Marchi
ually increase the number of subslices so the number of slices remain 1. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/intel_sseu.c | 79 drivers/gpu/drm/i915/gt/intel_sseu.h | 2 +- 2 files changed, 1 insertion(+), 80 deletions(-) diff --git a/drivers/gp

[PATCH 30/30] drm/i915: switch num_scalers/num_sprites to consider DISPLAY_VER

2021-07-23 Thread Lucas De Marchi
The numbers of scalers and sprites depend on the display version, so use it instead of GRAPHICS_VER. We were mixing both, which let me confused while removing CNL and GRAPHICS_VER == 10. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/intel_device_info.c | 8 1 file changed, 4

[PATCH 20/30] drm/i915: remove explicit CNL handling from intel_mocs.c

2021-07-23 Thread Lucas De Marchi
Only one reference to CNL that is not needed, but code is the same for GEN9_BC, so leave the code around and just remove the special case for CNL. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/intel_mocs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 06/30] drm/i915/display: remove explicit CNL handling from intel_combo_phy.c

2021-07-23 Thread Lucas De Marchi
The only real platform with DISPLAY_VER == 10 is GLK, that doesn't have combo phys. We don't need to handle CNL explicitly in intel_combo_phy.c. Remove code and rename functions/macros accordingly to use ICL prefix. Signed-off-by: Lucas De Marchi --- .../gpu/drm/i915/display/intel_c

[PATCH 05/30] drm/i915/display: remove explicit CNL handling from intel_color.c

2021-07-23 Thread Lucas De Marchi
The only real platform with DISPLAY_VER == 10 is GLK, so we don't need any checks and supporting code for CNL. For DISPLAY_VER >= 11, ilk_load_csc_matrix() is not used, so make it handle GLK only. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_color.c | 5 ++---

[PATCH 24/30] drm/i915: rename CNL references in intel_dram.c

2021-07-23 Thread Lucas De Marchi
With the removal of CNL, let's consider ICL as the first platform using those constants. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/i915_reg.h | 24 +++ drivers/gpu/drm/i915/intel_dram.c | 32 +++ 2 files changed, 28 inser

[PATCH 16/30] drm/i915/display: remove CNL ddi buf translation tables

2021-07-23 Thread Lucas De Marchi
The only real platform with DISPLAY_VER == 10 is GLK. We don't need to handle CNL explicitly. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_ddi.c | 12 +- .../drm/i915/display/intel_ddi_buf_trans.c| 616 +- .../drm/i915/di

[PATCH 25/30] drm/i915/gt: rename CNL references in intel_engine.h

2021-07-23 Thread Lucas De Marchi
With the removal of CNL, let's consider ICL as the first platform using that index. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/intel_engine.h | 2 +- drivers/gpu/drm/i915/i915_drv.h| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gp

[PATCH 09/30] drm/i915/display: remove explicit CNL handling from intel_display_debugfs.c

2021-07-23 Thread Lucas De Marchi
Only one reference to CNL that is not needed, but code is the same for DISPLAY_VER >= 11, so leave the code around and just remove the special case for CNL. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH 12/30] drm/i915/display: remove explicit CNL handling from intel_dpll_mgr.c

2021-07-23 Thread Lucas De Marchi
only caller, in ICL. Remove code and rename functions/macros accordingly to use ICL prefix for those that are still needed. Verified with: make EXTRA_CFLAGS=-Wunused drivers/gpu/drm/i915/display/intel_dpll_mgr.o Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_dpll_

[PATCH 11/30] drm/i915/display: remove explicit CNL handling from intel_dp.c

2021-07-23 Thread Lucas De Marchi
The only real platform with DISPLAY_VER == 10 is GLK. We don't need to handle CNL explicitly in intel_dp.c. Remove code and rename functions/macros accordingly to use ICL prefix. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_dp.c | 35 - 1

[PATCH 08/30] drm/i915/display: remove explicit CNL handling from intel_ddi.c

2021-07-23 Thread Lucas De Marchi
later when we get rid of the additional CNL tables. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_ddi.c | 254 ++- 1 file changed, 20 insertions(+), 234 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i9

[PATCH 18/30] drm/i915: remove explicit CNL handling from i915_irq.c

2021-07-23 Thread Lucas De Marchi
Remove special handling of PORT_F in i915_irq.c and only do it for DISPLAY_VER == 11. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/i915_irq.c | 7 +++ drivers/gpu/drm/i915/i915_reg.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915

[PATCH 03/30] drm/i915/display: remove PORT_F workaround for CNL

2021-07-23 Thread Lucas De Marchi
ndled separately (GLK). Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_bios.c| 6 +++--- drivers/gpu/drm/i915/display/intel_display.c | 7 --- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/di

[PATCH 07/30] drm/i915/display: remove explicit CNL handling from intel_crtc.c

2021-07-23 Thread Lucas De Marchi
No need for special CNL handling as there is no real platform with that configuration. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_crtc.c b/drivers/gpu/drm

[PATCH 04/30] drm/i915/display: remove explicit CNL handling from intel_cdclk.c

2021-07-23 Thread Lucas De Marchi
The only real platform with DISPLAY_VER == 10 is GLK, so we don't need any checks and supporting code for CNL. Remove code and rename functions/macros accordingly. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_cdclk.c | 72 +- drivers/gpu/drm

[PATCH 10/30] drm/i915/display: remove explicit CNL handling from intel_dmc.c

2021-07-23 Thread Lucas De Marchi
Remove DMC firmware for CNL. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_dmc.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dmc.c b/drivers/gpu/drm/i915/display/intel_dmc.c index 9895fd957df9..3c3c6cb5c0df 100644 --- a

[PATCH 02/30] drm/i915/display: split DISPLAY_VER 9 and 10 in intel_setup_outputs()

2021-07-23 Thread Lucas De Marchi
ph Hellwig Signed-off-by: Lucas De Marchi Reviewed-by: Rodrigo Vivi Reviewed-by: Matt Roper Link: https://patchwork.freedesktop.org/patch/msgid/20210722232922.3796835-1-lucas.demar...@intel.com --- drivers/gpu/drm/i915/display/intel_display.c | 8 +++- 1 file changed, 7 insertions(+), 1

[PATCH 00/30] Remove CNL support

2021-07-23 Thread Lucas De Marchi
name functions and macros where appropriate (usually to GLK when dealing with display or with ICL otherwise). It starts with display, which is more straightforward, and then proceed to the rest of i915. diff stat removing 1600 lines of dead code seems to pay the pain of doing this. Lucas De Marchi

[PATCH 01/30] drm/i915: fix not reading DSC disable fuse in GLK

2021-07-23 Thread Lucas De Marchi
TGL_DFSM_PIPE_D_DISABLE, we don't have to do anything as the bit has disable semantic and RKL doesn't have pipe D. Bspec: 50075, 7548 Fixes: 2b5a4562edd0 ("drm/i915/display: Simplify GLK display version tests") Cc: Matt Roper Signed-off-by: Lucas De Marchi ---

[PATCH v2] drm/i915/gt: nuke gen6_hw_id

2021-07-22 Thread Lucas De Marchi
h the direct register address instead of calculating from the legacy HW_ID (Matt Roper) Signed-off-by: Lucas De Marchi Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/gt/intel_engine_cs.c| 6 -- drivers/gpu/drm/i915/gt/intel_engine_types.h | 10 +- drivers/gpu/drm/i915/i915_

Re: [Intel-gfx] [PATCH 3/4] drm/i915/gt: rename legacy engine->hw_id to engine->gen6_hw_id

2021-07-21 Thread Lucas De Marchi
On Wed, Jul 21, 2021 at 3:51 PM Matt Roper wrote: > > On Tue, Jul 20, 2021 at 04:20:13PM -0700, Lucas De Marchi wrote: > > We kept adding new engines and for that increasing hw_id unnecessarily: > > it's not used since GRAPHICS_VER == 8. Prepend "gen6" to the fi

Re: [PATCH 2/4] drm/i915/gt: nuke unused legacy engine hw_id

2021-07-21 Thread Lucas De Marchi
On Wed, Jul 21, 2021 at 03:47:22PM -0700, Matt Roper wrote: On Tue, Jul 20, 2021 at 04:20:12PM -0700, Lucas De Marchi wrote: The engine hw_id is only used by RING_FAULT_REG(), which is not used since GRAPHICS_VER == 8. We tend to keep adding new defines just to be consistent, but let's t

Re: [Intel-gfx] [PATCH 4/4] drm/i915/gt: nuke gen6_hw_id

2021-07-21 Thread Lucas De Marchi
On Wed, Jul 21, 2021 at 10:25:59AM +0100, Tvrtko Ursulin wrote: On 21/07/2021 00:20, Lucas De Marchi wrote: This is only used by GRAPHICS_VER == 6 and GRAPHICS_VER == 7. All other recent platforms do not depend on this field, so it doesn't make much sense to keep it generic like that. In

[PATCH 0/4] Nuke legacy hw_id

2021-07-20 Thread Lucas De Marchi
n zero'ed, let's refactor the code so we don't keep them around: they aren't used since GRAPHICS_VER == 8. I'd say last patch is a stretch due to the use of _PICK() and hardcoding the map, but to me it seems to avoid making it more complex elsewhere. Lucas De Marchi (4):

<    3   4   5   6   7   8   9   10   >