[Intel-gfx] ✗ Fi.CI.IGT: failure for Fixes for damage clips handling (rev2)

2022-08-24 Thread Patchwork
== Series Details == Series: Fixes for damage clips handling (rev2) URL : https://patchwork.freedesktop.org/series/106388/ State : failure == Summary == CI Bug Log - changes from CI_DRM_12014_full -> Patchwork_106388v2_full Summary ---

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/4] drm/i915: Move display pcode requests to intel_de (rev2)

2022-08-24 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915: Move display pcode requests to intel_de (rev2) URL : https://patchwork.freedesktop.org/series/107610/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked se

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/4] drm/i915: Move display pcode requests to intel_de (rev2)

2022-08-24 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915: Move display pcode requests to intel_de (rev2) URL : https://patchwork.freedesktop.org/series/107610/ State : warning == Summary == Error: dim checkpatch failed 65b635139e84 drm/i915: Move display pcode requests to intel_de -:2

Re: [Intel-gfx] [PATCH 1/5] drm/i915/dp: Add helper to check DSC1.2 for HDMI2.1 DFP

2022-08-24 Thread Nautiyal, Ankit K
On 8/23/2022 4:32 PM, Jani Nikula wrote: On Mon, 22 Aug 2022, Ankit Nautiyal wrote: Add helper function to check if Downstream HDMI 2.1 sink supports DSC1.2. If we do this, are we going to add helpers for all the details in display_info, when there's no conversions being done? I think the an

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/4] drm/i915: Move display pcode requests to intel_de (rev2)

2022-08-24 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915: Move display pcode requests to intel_de (rev2) URL : https://patchwork.freedesktop.org/series/107610/ State : success == Summary == CI Bug Log - changes from CI_DRM_12018 -> Patchwork_107610v2 ==

Re: [Intel-gfx] [PATCH 3/5] drm/i915/dp: Fix DFP RGB->YCBCR conversion

2022-08-24 Thread Nautiyal, Ankit K
On 8/23/2022 4:33 PM, Jani Nikula wrote: On Mon, 22 Aug 2022, Ankit Nautiyal wrote: The decision to use DFP output format conversion capabilities should be during compute_config phase. This patch: -uses the members of intel_dp->dfp to only store the format conversion capabilities of the DP d

Re: [Intel-gfx] [PATCH v2 02/21] drm/i915: Parse and set stepping for platforms with GMD

2022-08-24 Thread Balasubramani Vivekanandan
On 18.08.2022 16:41, Radhakrishna Sripada wrote: > From: José Roberto de Souza > > The GMD step field do not properly match the current stepping convention > that we use(STEP_A0, STEP_A1, STEP_B0...). > > One platform could have { arch = 12, rel = 70, step = 1 } and the > actual stepping is STEP

Re: [Intel-gfx] [PATCH 3/5] drm/i915/dp: Fix DFP RGB->YCBCR conversion

2022-08-24 Thread Jani Nikula
On Wed, 24 Aug 2022, "Nautiyal, Ankit K" wrote: > On 8/23/2022 4:33 PM, Jani Nikula wrote: >> On Mon, 22 Aug 2022, Ankit Nautiyal wrote: >>> The decision to use DFP output format conversion capabilities should be >>> during compute_config phase. >>> >>> This patch: >>> -uses the members of intel_

[Intel-gfx] [PATCH v9 2/8] util_macros: Add exact_type macro to catch type mis-match while compiling

2022-08-24 Thread Gwan-gyeong Mun
It adds exact_type and exactly_pgoff_t macro to catch type mis-match while compiling. The existing typecheck() macro outputs build warnings, but the newly added exact_type() macro uses the BUILD_BUG_ON() macro to generate a build break when the types are different and can be used to detect explicit

[Intel-gfx] [PATCH v9 4/8] drm/i915: Check for integer truncation on scatterlist creation

2022-08-24 Thread Gwan-gyeong Mun
From: Chris Wilson There is an impedance mismatch between the scatterlist API using unsigned int and our memory/page accounting in unsigned long. That is we may try to create a scatterlist for a large object that overflows returning a small table into which we try to fit very many pages. As the o

[Intel-gfx] [PATCH v9 0/8] Fixes integer overflow or integer truncation issues in page lookups, ttm place configuration and scatterlist creation

2022-08-24 Thread Gwan-gyeong Mun
This patch series fixes integer overflow or integer truncation issues in page lookups, ttm place configuration and scatterlist creation, etc. We need to check that we avoid integer overflows when looking up a page, and so fix all the instances where we have mistakenly used a plain integer instead o

[Intel-gfx] [PATCH v9 6/8] drm/i915: Check if the size is too big while creating shmem file

2022-08-24 Thread Gwan-gyeong Mun
The __shmem_file_setup() function returns -EINVAL if size is greater than MAX_LFS_FILESIZE. To handle the same error as other code that returns -E2BIG when the size is too large, it add a code that returns -E2BIG when the size is larger than the size that can be handled. v4: If BITS_PER_LONG is 32

[Intel-gfx] [PATCH v9 3/8] drm/i915/gem: Typecheck page lookups

2022-08-24 Thread Gwan-gyeong Mun
From: Chris Wilson We need to check that we avoid integer overflows when looking up a page, and so fix all the instances where we have mistakenly used a plain integer instead of a more suitable long. Be pedantic and add integer typechecking to the lookup so that we can be sure that we are safe. A

[Intel-gfx] [PATCH v9 8/8] drm/i915: Remove truncation warning for large objects

2022-08-24 Thread Gwan-gyeong Mun
From: Chris Wilson Having addressed the issues surrounding incorrect types for local variables and potential integer truncation in using the scatterlist API, we have closed all the loop holes we had previously identified with dangerously large object creation. As such, we can eliminate the warnin

[Intel-gfx] [PATCH v9 7/8] drm/i915: Use error code as -E2BIG when the size of gem ttm object is too large

2022-08-24 Thread Gwan-gyeong Mun
The ttm_bo_init_reserved() functions returns -ENOSPC if the size is too big to add vma. The direct function that returns -ENOSPC is drm_mm_insert_node_in_range(). To handle the same error as other code returning -E2BIG when the size is too large, it converts return value to -E2BIG. Signed-off-by:

[Intel-gfx] [PATCH v9 1/8] overflow: Move and add few utility macros into overflow

2022-08-24 Thread Gwan-gyeong Mun
It moves overflows_type utility macro into overflow header from i915_utils header. The overflows_type can be used to catch the truncaion (overflow) between different data types. And it adds check_assign() macro which performs an assigning source value into destination ptr along with an overflow che

[Intel-gfx] [PATCH v9 5/8] drm/i915: Check for integer truncation on the configuration of ttm place

2022-08-24 Thread Gwan-gyeong Mun
There is an impedance mismatch between the first/last valid page frame number of ttm place in unsigned and our memory/page accounting in unsigned long. As the object size is under the control of userspace, we have to be prudent and catch the conversion errors. To catch the implicit truncation as we

Re: [Intel-gfx] [PATCH 6/7] drm/i915/guc: Make GuC log sizes runtime configurable

2022-08-24 Thread Joonas Lahtinen
NACK on this one. Let's get this reverted or fixed to eliminate new module parameters. What prevents us just from using the maximum sizes? Or alternatively we could check the already existing drm.debug variable or anything else but addding 3 new module parameters. For future reference, please do

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Fixes integer overflow or integer truncation issues in page lookups, ttm place configuration and scatterlist creation

2022-08-24 Thread Patchwork
== Series Details == Series: Fixes integer overflow or integer truncation issues in page lookups, ttm place configuration and scatterlist creation URL : https://patchwork.freedesktop.org/series/107667/ State : warning == Summary == Error: dim checkpatch failed fc66062eee1c overflow: Move and

Re: [Intel-gfx] [PATCH v8 1/8] overflow: Move and add few utility macros into overflow

2022-08-24 Thread Gwan-gyeong Mun
On 8/23/22 9:35 PM, Andrzej Hajda wrote: On 23.08.2022 12:17, Gwan-gyeong Mun wrote: It moves overflows_type utility macro into overflow header from i915_utils header. The overflows_type can be used to catch the truncaion (overflow) between different data types. And it adds check_assign() ma

Re: [Intel-gfx] [PATCH v9 1/8] overflow: Move and add few utility macros into overflow

2022-08-24 Thread Andrzej Hajda
On 24.08.2022 10:45, Gwan-gyeong Mun wrote: It moves overflows_type utility macro into overflow header from i915_utils header. The overflows_type can be used to catch the truncaion (overflow) between different data types. And it adds check_assign() macro which performs an assigning source valu

Re: [Intel-gfx] [PATCH v2 01/21] drm/i915: Read graphics/media/display arch version from hw

2022-08-24 Thread Jani Nikula
On Fri, 19 Aug 2022, Matt Roper wrote: > On Thu, Aug 18, 2022 at 04:41:42PM -0700, Radhakrishna Sripada wrote: >> From: Matt Roper >> >> Going forward, the hardware teams no longer consider new platforms to >> have a "generation" in the way we've defined it for past platforms. >> Instead, each I

Re: [Intel-gfx] [PATCH v3 01/14] drm/i915/guc: remove runtime info printing from time stamp logging

2022-08-24 Thread Jani Nikula
On Tue, 23 Aug 2022, John Harrison wrote: > On 8/19/2022 05:02, Jani Nikula wrote: >> Commit 368d179adbac ("drm/i915/guc: Add GuC <-> kernel time stamp >> translation information") added intel_device_info_print_runtime() in the >> time info dump for no obvious reason or explanation in the commit >

Re: [Intel-gfx] [PATCH v3 00/14] drm/i915: stop modifying "const" device info

2022-08-24 Thread Jani Nikula
On Fri, 19 Aug 2022, Jani Nikula wrote: > v3 of https://patchwork.freedesktop.org/series/105358/ > > Add a patch resolving guc time stamp logging related conflicts in the > front, and remove the last two patches, for now, to avoid any > potentially regressing functional changes. Leave them for lat

Re: [Intel-gfx] [PATCH 3/5] drm/i915/dp: Fix DFP RGB->YCBCR conversion

2022-08-24 Thread Nautiyal, Ankit K
On 8/24/2022 2:07 PM, Jani Nikula wrote: On Wed, 24 Aug 2022, "Nautiyal, Ankit K" wrote: On 8/23/2022 4:33 PM, Jani Nikula wrote: On Mon, 22 Aug 2022, Ankit Nautiyal wrote: The decision to use DFP output format conversion capabilities should be during compute_config phase. This patch: -us

Re: [Intel-gfx] [PATCH v3 8/9] media: videobuf2: Stop using internal dma-buf lock

2022-08-24 Thread Hans Verkuil
Nice! Acked-by: Hans Verkuil Regards, Hans On 24/08/2022 12:22, Dmitry Osipenko wrote: > All drivers that use dma-bufs have been moved to the updated locking > specification and now dma-buf reservation is guaranteed to be locked > by importers during the mapping operations. There is no

Re: [Intel-gfx] [PATCH 13/39] drm/i915: move dpll under display.dpll

2022-08-24 Thread Jani Nikula
On Tue, 16 Aug 2022, Lucas De Marchi wrote: > On Thu, Aug 11, 2022 at 06:07:24PM +0300, Jani Nikula wrote: >>diff --git a/drivers/gpu/drm/i915/display/intel_display_core.h >>b/drivers/gpu/drm/i915/display/intel_display_core.h >>index 748d2a84e20e..f12ff36fef07 100644 >>--- a/drivers/gpu/drm/i915/

Re: [Intel-gfx] [PATCH v6 3/4] drm/i915/display: add hotplug.suspended flag

2022-08-24 Thread Imre Deak
On Tue, Aug 23, 2022 at 11:48:01PM +0200, Andrzej Hajda wrote: > > > On 22.08.2022 19:27, Imre Deak wrote: > > On Fri, Jul 22, 2022 at 02:51:42PM +0200, Andrzej Hajda wrote: > > > HPD events during driver removal can be generated by hardware and > > > software frameworks - drm_dp_mst, the former

Re: [Intel-gfx] [PATCH v2] drm/i915/dg2: Add Wa_1509727124

2022-08-24 Thread Joonas Lahtinen
Quoting Matt Roper (2022-08-02 18:09:16) > On Mon, Aug 01, 2022 at 02:38:39PM -0700, Harish Chegondi wrote: > > Bspec: 46052 > > Reviewed-by: Matt Roper > > Signed-off-by: Harish Chegondi > > Applied to drm-intel-gt-next. Thanks for the patch. This patch is completely lacking the commit messag

Re: [Intel-gfx] [PATCH v2 01/29] ACPI: video: Add acpi_video_backlight_use_native() helper

2022-08-24 Thread Hans de Goede
Hi Daniel, On 8/17/22 22:18, Daniel Dadap wrote: > On 8/17/22 10:05 AM, Hans de Goede wrote: >>> One further potential difficulty that I anticipate is that not all dynamic >>> mux systems use the EC backlight driver (or a similar, GPU-agnostic >>> driver), and rather have whichever GPU happen

[Intel-gfx] [PULL] drm-intel-gt-next

2022-08-24 Thread Joonas Lahtinen
Hi Dave & Daniel, Here goes the first drm-intel-gt-next PR towards 6.1. Quite a small one. As primary things, there's the parallel support of GuC v69 and v70 which already went in via -fixes, improvements to the TLB invalidation performance regressions, further DG2 enabling and improved debugging

Re: [Intel-gfx] [PATCH] drm/edid: Handle EDID 1.4 range descriptor h/vfreq offsets

2022-08-24 Thread Ville Syrjälä
On Tue, Aug 23, 2022 at 08:15:48PM +0300, Jani Nikula wrote: > On Fri, 19 Aug 2022, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > EDID 1.4 introduced some extra flags in the range > > descriptor to support min/max h/vfreq >= 255. Consult them > > to correctly parse the vfreq limits. > > >

[Intel-gfx] [PATCH v4 00/31] drm/kms: Stop registering multiple /sys/class/backlight devs for a single display

2022-08-24 Thread Hans de Goede
Hi All, As mentioned in my RFC titled "drm/kms: control display brightness through drm_connector properties": https://lore.kernel.org/dri-devel/0d188965-d809-81b5-74ce-7d30c49fe...@redhat.com/ The first step towards this is to deal with some existing technical debt in backlight handling on x86/AC

[Intel-gfx] [PATCH v4 03/31] drm/amdgpu: Don't register backlight when another backlight should be used (v3)

2022-08-24 Thread Hans de Goede
Before this commit when we want userspace to use the acpi_video backlight device we register both the GPU's native backlight device and acpi_video's firmware acpi_video# backlight device. This relies on userspace preferring firmware type backlight devices over native ones. Registering 2 backlight

[Intel-gfx] [PATCH v4 01/31] ACPI: video: Add acpi_video_backlight_use_native() helper

2022-08-24 Thread Hans de Goede
ATM on x86 laptops where we want userspace to use the acpi_video backlight device we often register both the GPU's native backlight device and acpi_video's firmware acpi_video# backlight device. This relies on userspace preferring firmware type backlight devices over native ones, but registering 2

[Intel-gfx] [PATCH v4 04/31] drm/radeon: Don't register backlight when another backlight should be used (v3)

2022-08-24 Thread Hans de Goede
Before this commit when we want userspace to use the acpi_video backlight device we register both the GPU's native backlight device and acpi_video's firmware acpi_video# backlight device. This relies on userspace preferring firmware type backlight devices over native ones. Registering 2 backlight

[Intel-gfx] [PATCH v4 07/31] ACPI: video: Remove acpi_video_bus from list before tearing it down

2022-08-24 Thread Hans de Goede
Move the list_del removing an acpi_video_bus from video_bus_head on teardown to before the teardown is done, to avoid code iterating over the video_bus_head list seeing acpi_video_bus objects on there which are (partly) torn down already. Acked-by: Rafael J. Wysocki Signed-off-by: Hans de Goede

[Intel-gfx] [PATCH v4 06/31] ACPI: video: Drop backlight_device_get_by_type() call from acpi_video_get_backlight_type()

2022-08-24 Thread Hans de Goede
All x86/ACPI kms drivers which register native/BACKLIGHT_RAW type backlight devices call acpi_video_backlight_use_native() now. This sets __acpi_video_get_backlight_type()'s internal static native_available flag. This makes the backlight_device_get_by_type(BACKLIGHT_RAW) check unnecessary. Relyin

[Intel-gfx] [PATCH v4 08/31] ACPI: video: Simplify acpi_video_unregister_backlight()

2022-08-24 Thread Hans de Goede
When acpi_video_register() has not run yet the video_bus_head will be empty, so there is no need to check the register_count flag first. Acked-by: Rafael J. Wysocki Signed-off-by: Hans de Goede --- drivers/acpi/acpi_video.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) dif

[Intel-gfx] [PATCH v4 09/31] ACPI: video: Make backlight class device registration a separate step (v2)

2022-08-24 Thread Hans de Goede
On x86/ACPI boards the acpi_video driver will usually initialize before the kms driver (except i915). This causes /sys/class/backlight/acpi_video0 to show up and then the kms driver registers its own native backlight device after which the drivers/acpi/video_detect.c code unregisters the acpi_video

[Intel-gfx] [PATCH v4 10/31] ACPI: video: Remove code to unregister acpi_video backlight when a native backlight registers

2022-08-24 Thread Hans de Goede
Remove the code to unregister acpi_video backlight devices when a native backlight device gets registered later. Now that the acpi_video backlight device registration is a separate step which runs later, after the drm/kms driver is done setting up its own native backlight device, it is no longer n

[Intel-gfx] [PATCH v4 05/31] drm/nouveau: Don't register backlight when another backlight should be used (v2)

2022-08-24 Thread Hans de Goede
Before this commit when we want userspace to use the acpi_video backlight device we register both the GPU's native backlight device and acpi_video's firmware acpi_video# backlight device. This relies on userspace preferring firmware type backlight devices over native ones. Registering 2 backlight

[Intel-gfx] [PATCH v4 12/31] drm/nouveau: Register ACPI video backlight when nv_backlight registration fails (v2)

2022-08-24 Thread Hans de Goede
Typically the acpi_video driver will initialize before nouveau, which used to cause /sys/class/backlight/acpi_video0 to get registered and then nouveau would register its own nv_backlight device later. After which the drivers/acpi/video_detect.c code unregistered the acpi_video0 device to avoid the

[Intel-gfx] [PATCH v4 13/31] drm/amdgpu: Register ACPI video backlight when skipping amdgpu backlight registration

2022-08-24 Thread Hans de Goede
Typically the acpi_video driver will initialize before amdgpu, which used to cause /sys/class/backlight/acpi_video0 to get registered and then amdgpu would register its own amdgpu_bl# device later. After which the drivers/acpi/video_detect.c code unregistered the acpi_video0 device to avoid there b

[Intel-gfx] [PATCH v4 11/31] drm/i915: Call acpi_video_register_backlight() (v2)

2022-08-24 Thread Hans de Goede
On machins without an i915 opregion the acpi_video driver immediately probes the ACPI video bus and used to also immediately register acpi_video# backlight devices when supported. Once the drm/kms driver then loaded later and possibly registered a native backlight device then the drivers/acpi/vide

[Intel-gfx] [PATCH v4 17/31] ACPI: video: Add Nvidia WMI EC brightness control detection (v3)

2022-08-24 Thread Hans de Goede
On some new laptop designs a new Nvidia specific WMI interface is present which gives info about panel brightness control and may allow controlling the brightness through this interface when the embedded controller is used for brightness control. When this WMI interface is present and indicates th

[Intel-gfx] [PATCH v4 14/31] drm/radeon: Register ACPI video backlight when skipping radeon backlight registration

2022-08-24 Thread Hans de Goede
Typically the acpi_video driver will initialize before radeon, which used to cause /sys/class/backlight/acpi_video0 to get registered and then radeon would register its own radeon_bl# device later. After which the drivers/acpi/video_detect.c code unregistered the acpi_video0 device to avoid there b

[Intel-gfx] [PATCH v4 21/31] platform/x86: toshiba_acpi: Stop using acpi_video_set_dmi_backlight_type()

2022-08-24 Thread Hans de Goede
acpi_video_set_dmi_backlight_type() is troublesome because it may end up getting called after other backlight drivers have already called acpi_video_get_backlight_type() resulting in the other drivers already being registered even though they should not. In case of the acpi_video backlight, acpi_v

[Intel-gfx] [PATCH v4 20/31] platform/x86: apple-gmux: Stop calling acpi/video.h functions

2022-08-24 Thread Hans de Goede
Now that acpi_video_get_backlight_type() has apple-gmux detection (using apple_gmux_present()), it is no longer necessary for the apple-gmux code to manually remove possibly conflicting drivers. So remove the handling for this from the apple-gmux driver. Signed-off-by: Hans de Goede --- drivers

[Intel-gfx] [PATCH v4 16/31] ACPI: video: Refactor acpi_video_get_backlight_type() a bit

2022-08-24 Thread Hans de Goede
Refactor acpi_video_get_backlight_type() so that the heuristics / detection steps are stricly in order of descending precedence. Also move the comments describing the steps to when the various steps are actually done, to avoid the comments getting out of sync with the code. Acked-by: Rafael J. Wy

[Intel-gfx] [PATCH v4 18/31] ACPI: video: Add Apple GMUX brightness control detection

2022-08-24 Thread Hans de Goede
On Apple laptops with an Apple GMUX using this for brightness control, should take precedence of any other brightness control methods. Add apple-gmux detection to acpi_video_get_backlight_type() using the already existing apple_gmux_present() helper function. This will allow removig the (ab)use o

[Intel-gfx] [PATCH v4 23/31] platform/x86: asus-wmi: Drop DMI chassis-type check from backlight handling

2022-08-24 Thread Hans de Goede
Remove this check from the asus-wmi backlight handling: /* Some Asus desktop boards export an acpi-video backlight interface, stop this from showing up */ chassis_type = dmi_get_system_info(DMI_CHASSIS_TYPE); if (chassis_type && !strcmp(chassis_type, "3"))

[Intel-gfx] [PATCH v4 22/31] platform/x86: acer-wmi: Move backlight DMI quirks to acpi/video_detect.c

2022-08-24 Thread Hans de Goede
Move the backlight DMI quirks to acpi/video_detect.c, so that the driver no longer needs to call acpi_video_set_dmi_backlight_type(). acpi_video_set_dmi_backlight_type() is troublesome because it may end up getting called after other backlight drivers have already called acpi_video_get_backlight_t

[Intel-gfx] [PATCH v4 25/31] platform/x86: asus-wmi: Move acpi_backlight=native quirks to ACPI video_detect.c

2022-08-24 Thread Hans de Goede
Remove the asus-wmi quirk_entry.wmi_backlight_native quirk-flag, which called acpi_video_set_dmi_backlight_type(acpi_backlight_native) and replace it with acpi/video_detect.c video_detect_dmi_table[] entries using the video_detect_force_native callback. acpi_video_set_dmi_backlight_type() is troub

[Intel-gfx] [PATCH v4 24/31] platform/x86: asus-wmi: Move acpi_backlight=vendor quirks to ACPI video_detect.c

2022-08-24 Thread Hans de Goede
Remove the asus-wmi quirk_entry.wmi_backlight_power quirk-flag, which called acpi_video_set_dmi_backlight_type(acpi_backlight_vendor) and replace it with acpi/video_detect.c video_detect_dmi_table[] entries using the video_detect_force_vendor callback. acpi_video_set_dmi_backlight_type() is troubl

[Intel-gfx] [PATCH v4 31/31] drm/todo: Add entry about dealing with brightness control on devices with > 1 panel

2022-08-24 Thread Hans de Goede
Add an entry summarizing the discussion about dealing with brightness control on devices with more then 1 internal panel. The original discussion can be found here: https://lore.kernel.org/dri-devel/20220517152331.16217-1-hdego...@redhat.com/ Signed-off-by: Hans de Goede --- Documentation/gpu/t

[Intel-gfx] [PATCH v4 26/31] platform/x86: samsung-laptop: Move acpi_backlight=[vendor|native] quirks to ACPI video_detect.c

2022-08-24 Thread Hans de Goede
acpi_video_set_dmi_backlight_type() is troublesome because it may end up getting called after other backlight drivers have already called acpi_video_get_backlight_type() resulting in the other drivers already being registered even though they should not. Move all the acpi_backlight=[vendor|native]

[Intel-gfx] [PATCH v4 28/31] ACPI: video: Drop "Samsung X360" acpi_backlight=native quirk

2022-08-24 Thread Hans de Goede
acpi_backlight=native is the default for the "Samsung X360", but as the comment explains the quirk was still necessary because even briefly registering the acpi_video0 backlight; and then unregistering it once the native driver showed up, was leading to issues. After the "ACPI: video: Make backlig

[Intel-gfx] [PATCH v4 27/31] ACPI: video: Remove acpi_video_set_dmi_backlight_type()

2022-08-24 Thread Hans de Goede
acpi_video_set_dmi_backlight_type() is troublesome because it may end up getting called after other backlight drivers have already called acpi_video_get_backlight_type() resulting in the other drivers already being registered even though they should not. In case of the acpi_video backlight, acpi_v

Re: [Intel-gfx] [PATCHv3] drm/i915: Support Async Flip on Linear buffers

2022-08-24 Thread Ville Syrjälä
On Wed, Aug 24, 2022 at 03:02:33AM +, Murthy, Arun R wrote: > > -Original Message- > > From: Ville Syrjälä > > Sent: Tuesday, August 23, 2022 6:27 PM > > To: Murthy, Arun R > > Cc: intel-gfx@lists.freedesktop.org; Shankar, Uma > > Subject: Re: [PATCHv3] drm/i915: Support Async Flip o

[Intel-gfx] [PATCH v4 29/31] ACPI: video: Drop NL5x?U, PF4NU1F and PF5?U?? acpi_backlight=native quirks

2022-08-24 Thread Hans de Goede
acpi_backlight=native is the default for these, but as the comment explains the quirk was still necessary because even briefly registering the acpi_video0 backlight; and then unregistering it once the native driver showed up, was leading to issues. After the "ACPI: video: Make backlight class devi

Re: [Intel-gfx] [PATCH v4 11/31] drm/i915: Call acpi_video_register_backlight() (v2)

2022-08-24 Thread Jani Nikula
On Wed, 24 Aug 2022, Hans de Goede wrote: > On machins without an i915 opregion the acpi_video driver immediately > probes the ACPI video bus and used to also immediately register > acpi_video# backlight devices when supported. > > Once the drm/kms driver then loaded later and possibly registered

Re: [Intel-gfx] [PATCH v4 11/31] drm/i915: Call acpi_video_register_backlight() (v2)

2022-08-24 Thread Hans de Goede
Hi, On 8/24/22 14:47, Jani Nikula wrote: > On Wed, 24 Aug 2022, Hans de Goede wrote: >> On machins without an i915 opregion the acpi_video driver immediately >> probes the ACPI video bus and used to also immediately register >> acpi_video# backlight devices when supported. >> >> Once the drm/kms

Re: [Intel-gfx] [PATCH v4 02/31] drm/i915: Don't register backlight when another backlight should be used

2022-08-24 Thread Jani Nikula
On Wed, 24 Aug 2022, Hans de Goede wrote: > Before this commit when we want userspace to use the acpi_video backlight > device we register both the GPU's native backlight device and acpi_video's > firmware acpi_video# backlight device. This relies on userspace preferring > firmware type backlight

[Intel-gfx] [PATCH v2 00/38] drm/i915: add display sub-struct to drm_i915_private

2022-08-24 Thread Jani Nikula
v2 of https://patchwork.freedesktop.org/series/107170/ Mostly just rebases, commit message updates and some trivial checkpatch fixes, and dropping the clock gating function move patch. BR, Jani. Jani Nikula (38): drm/i915: add display sub-struct to drm_i915_private drm/i915: move cdclk_funcs

[Intel-gfx] [PATCH v2 03/38] drm/i915: move dpll_funcs to display.funcs

2022-08-24 Thread Jani Nikula
Move display dpll functions under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi Reviewed-by: Arun R Murthy --- .../gpu/drm/i915/display/intel_display_core.h | 4 drivers/gpu/drm/i915/display/intel_dpll.c | 24 +-- drivers

[Intel-gfx] [PATCH v2 05/38] drm/i915: move wm_disp funcs to display.funcs

2022-08-24 Thread Jani Nikula
Move display watermark functions under drm_i915_private display sub-struct. Rename struct drm_i915_wm_disp_funcs to intel_wm_funcs while at it. Signed-off-by: Jani Nikula Reviewed-by: Arun R Murthy Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_display.c | 34 +++

[Intel-gfx] [PATCH v2 01/38] drm/i915: add display sub-struct to drm_i915_private

2022-08-24 Thread Jani Nikula
In another long-overdue cleanup, add a display sub-struct to drm_i915_private, and start moving display related members there. Start with display funcs that need a rename anyway to not collide with the new display member. Add a new header under display/ for defining struct intel_display. Rename s

[Intel-gfx] [PATCH v2 04/38] drm/i915: move hotplug_funcs to display.funcs

2022-08-24 Thread Jani Nikula
Move display hotplug functions under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi Reviewed-by: Arun R Murthy --- .../gpu/drm/i915/display/intel_display_core.h | 4 drivers/gpu/drm/i915/i915_drv.h | 4 drivers/gpu/drm/i91

[Intel-gfx] [PATCH v2 07/38] drm/i915: move color_funcs to display.funcs

2022-08-24 Thread Jani Nikula
Move display color functions under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Arun R Murthy Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_color.c| 34 +-- .../gpu/drm/i915/display/intel_display_core.h | 4 +++ drivers

[Intel-gfx] [PATCH v2 09/38] drm/i915: move and group pps members under display.pps

2022-08-24 Thread Jani Nikula
Move display PPS related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Arun R Murthy Reviewed-by: Lucas De Marchi --- .../gpu/drm/i915/display/intel_display_core.h | 7 +++ drivers/gpu/drm/i915/display/intel_pps.c | 48 +-- dri

[Intel-gfx] [PATCH v2 06/38] drm/i915: move fdi_funcs to display.funcs

2022-08-24 Thread Jani Nikula
Move display fdi functions under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Arun R Murthy Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_display_core.h | 4 drivers/gpu/drm/i915/display/intel_fdi.c | 8 drivers/gpu/d

[Intel-gfx] [PATCH v2 02/38] drm/i915: move cdclk_funcs to display.funcs

2022-08-24 Thread Jani Nikula
Move display cdclk functions under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_cdclk.c| 70 +-- .../gpu/drm/i915/display/intel_display_core.h | 4 ++ drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH v2 13/38] drm/i915: move and group fbdev under display.fbdev

2022-08-24 Thread Jani Nikula
Move display fbdev related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi Reviewed-by: Arun R Murthy --- .../gpu/drm/i915/display/intel_display_core.h | 8 ++ .../drm/i915/display/intel_display_debugfs.c | 2 +- drivers/gpu/drm

[Intel-gfx] [PATCH v2 08/38] drm/i915: move and group gmbus members under display.gmbus

2022-08-24 Thread Jani Nikula
Move display gmbus related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Arun R Murthy Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_cdclk.c| 6 +-- .../gpu/drm/i915/display/intel_display_core.h | 23 ++ drivers/gp

[Intel-gfx] [PATCH v2 18/38] drm/i915: move and group sagv under display.sagv

2022-08-24 Thread Jani Nikula
Move display sagv related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_bw.c | 10 ++--- .../gpu/drm/i915/display/intel_display_core.h | 11 ++ drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH v2 22/38] drm/i915: move backlight to display.backlight

2022-08-24 Thread Jani Nikula
Move display backlight related members under drm_i915_private display sub-struct. Prefer adding anonymous sub-structs even for single members that aren't our own structs. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- .../gpu/drm/i915/display/intel_backlight.c| 28 +---

[Intel-gfx] [PATCH v2 21/38] drm/i915: move and group cdclk under display.cdclk

2022-08-24 Thread Jani Nikula
Move display cdclk related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/hsw_ips.c| 2 +- drivers/gpu/drm/i915/display/intel_audio.c| 6 +- .../gpu/drm/i915/display/intel_backlight.c

[Intel-gfx] [PATCH v2 23/38] drm/i915: move mipi_mmio_base to display.dsi

2022-08-24 Thread Jani Nikula
Move display DSI related members under drm_i915_private display sub-struct. Prefer adding anonymous sub-structs even for single members that aren't our own structs. Abstract mmio base member access in register definitions in a macro. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi ---

[Intel-gfx] [PATCH v2 19/38] drm/i915: move and group max_bw and bw_obj under display.bw

2022-08-24 Thread Jani Nikula
Move display bandwidth related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_bw.c | 42 +-- .../gpu/drm/i915/display/intel_display_core.h | 21 ++ .../drm/i915/displ

[Intel-gfx] [PATCH v2 15/38] drm/i915: move and group hdcp under display.hdcp

2022-08-24 Thread Jani Nikula
Move display hdcp related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi Reviewed-by: Arun R Murthy --- .../gpu/drm/i915/display/intel_display_core.h | 9 ++ drivers/gpu/drm/i915/display/intel_hdcp.c | 134 +- dr

[Intel-gfx] [PATCH v2 16/38] drm/i915: move hotplug to display.hotplug

2022-08-24 Thread Jani Nikula
Move display hotplug related members under drm_i915_private display sub-struct. Rename struct i915_hotplug to intel_hotplug while at it. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/g4x_dp.c | 4 +- drivers/gpu/drm/i915/display/intel_ddi.c

[Intel-gfx] [PATCH v2 20/38] drm/i915: move opregion to display.opregion

2022-08-24 Thread Jani Nikula
Move display opregion related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_bios.c | 4 +- .../gpu/drm/i915/display/intel_display_core.h | 2 + .../drm/i915/display/intel_display_debugfs.c

[Intel-gfx] [PATCH v2 25/38] drm/i915: move fbc to display.fbc

2022-08-24 Thread Jani Nikula
Move display FBC related members under drm_i915_private display sub-struct. Pointers and arrays of pointers to structs that we defined are fine without a sub-struct wrapping. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/i9xx_plane.c | 2 +-

[Intel-gfx] [PATCH v2 10/38] drm/i915: move dmc to display.dmc

2022-08-24 Thread Jani Nikula
Move display dmc related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- .../gpu/drm/i915/display/intel_display_core.h | 4 ++ .../drm/i915/display/intel_display_power.c| 18 +++ .../i915/display/intel_display_power_well.c

[Intel-gfx] [PATCH v2 26/38] drm/i915/vrr: drop window2_delay member from i915

2022-08-24 Thread Jani Nikula
The window2_delay member has been functionally unused (always set to 0) since it was added in commit bb265dbdf38d ("drm/i915/xelpd: Add VRR guardband for VRR CTL"). Replace it with a FIXME comment. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_di

[Intel-gfx] [PATCH v2 24/38] drm/i915: move vbt to display.vbt

2022-08-24 Thread Jani Nikula
Move display VBT related members under drm_i915_private display sub-struct. v2: Rebase Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_bios.c | 212 +- drivers/gpu/drm/i915/display/intel_crt.c | 4 +- drivers/gpu/drm/i91

[Intel-gfx] [PATCH v2 31/38] drm/i915: move dbuf under display sub-struct

2022-08-24 Thread Jani Nikula
Move display dbuf related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_display_core.h | 7 +++ drivers/gpu/drm/i915/display/intel_display_power.c | 6 +++--- .../drm/i915/display/intel_di

[Intel-gfx] [PATCH v2 11/38] drm/i915: move and split audio under display.audio and display.funcs

2022-08-24 Thread Jani Nikula
Move display audio related members under drm_i915_private display sub-struct. Split audio funcs to display.funcs to follow the same pattern as all the other display functions. Signed-off-by: Jani Nikula Reviewed-by: Arun R Murthy Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/i

[Intel-gfx] [PATCH v2 32/38] drm/i915: move and group modeset_wq and flip_wq under display.wq

2022-08-24 Thread Jani Nikula
Move display workqueue related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_display.c | 20 +-- .../gpu/drm/i915/display/intel_display_core.h | 8 drivers/gpu/drm/i915

[Intel-gfx] [PATCH v2 30/38] drm/i915: move INTEL_FRONTBUFFER_* macros to intel_frontbuffer.h

2022-08-24 Thread Jani Nikula
The macros clearly don't belong in i915_drv.h. Move to intel_frontbuffer.h. Also split the BUILD_BUG_ON()s to intel_frontbuffer_track() to avoid depending on some other macros in the header. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- .../gpu/drm/i915/display/intel_frontbuffer.

[Intel-gfx] [PATCH v2 36/38] drm/i915: move quirks under display sub-struct

2022-08-24 Thread Jani Nikula
Move display quirk related members under drm_i915_private display sub-struct. Prefer adding anonymous sub-structs even for single members that aren't our own structs. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_display_core.h | 4 drivers

[Intel-gfx] [PATCH v2 29/38] drm/i915: move fb_tracking under display sub-struct

2022-08-24 Thread Jani Nikula
Move display frontbuffer tracking related members under drm_i915_private display sub-struct. Rename struct i915_frontbuffer_tracking to intel_frontbuffer_tracking while at it. FIXME: fb_tracking.lock mutex init should be moved away from i915_gem_init_early(). Signed-off-by: Jani Nikula Reviewed

[Intel-gfx] [PATCH v2 35/38] drm/i915/quirks: abstract quirks further by making quirk ids an enum

2022-08-24 Thread Jani Nikula
Turn the quirk ids to enums instead of bits, and hide the masking inside intel_quirks.c. Define the enums in intel_quirks.h to declutter i915_drv.h while at it. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_quirks.c | 21 + dr

[Intel-gfx] [PATCH v2 33/38] drm/i915: split gem quirks from display quirks

2022-08-24 Thread Jani Nikula
The lone gem quirk is an outlier, not even handled by the common quirk code. Split it to a separate gem_quirks member. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/gem/i915_gem_pages.c| 2 +- drivers/gpu/drm/i915/gem/i915_gem_tiling.c

[Intel-gfx] [PATCH v2 28/38] drm/i915: move and group fdi members under display.fdi

2022-08-24 Thread Jani Nikula
Move display fdi related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_crt.c | 4 ++-- drivers/gpu/drm/i915/display/intel_display_core.h | 5 + drivers/gpu/drm/i915/display/intel_f

[Intel-gfx] [PATCH v2 17/38] drm/i915: move overlay to display.overlay

2022-08-24 Thread Jani Nikula
Move display overlay related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi Reviewed-by: Arun R Murthy --- drivers/gpu/drm/i915/display/intel_display_core.h | 2 ++ drivers/gpu/drm/i915/display/intel_overlay.c | 12 ++--

[Intel-gfx] [PATCH v2 14/38] drm/i915: move wm to display.wm

2022-08-24 Thread Jani Nikula
Move display watermark related members under drm_i915_private display sub-struct. It's a bit arbitrary when to define a named struct for grouping, but clearly intel_wm is big enough to warrant a separate definition. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi Reviewed-by: Arun R Mur

[Intel-gfx] [PATCH v2 37/38] drm/i915: move atomic_helper under display sub-struct

2022-08-24 Thread Jani Nikula
Move display atomic helper related members under drm_i915_private display sub-struct. Signed-off-by: Jani Nikula Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/i915/display/intel_display.c | 14 +++--- drivers/gpu/drm/i915/display/intel_display_core.h | 6 ++ drivers/gpu/drm

Re: [Intel-gfx] [PATCH v2 03/21] drm/i915/mtl: MMIO range is now 4MB

2022-08-24 Thread Balasubramani Vivekanandan
On 18.08.2022 16:41, Radhakrishna Sripada wrote: > From: Matt Roper > > Previously only dgfx platforms had a 4MB MMIO range, but starting with > MTL we now use the larger range for all platforms. > > Bspec: 63834, 63830 > Signed-off-by: Matt Roper > Signed-off-by: Radhakrishna Sripada Reviewe

  1   2   3   >