[PATCH] drm/amd/display: remove unused header

2022-08-18 Thread Magali Lemes
dml_wrapper* files were removed in commit 724449e30433 ("drm/amd/display: Remove unused code"), as they are not used anywhere. However, the header file wasn't removed, so remove the header as well. Signed-off-by: Magali Lemes --- .../gpu/drm/amd/display/dc/inc/dml_wrapper.h | 34

Requests For Proposals for hosting XDC 2023 are now open

2022-08-18 Thread Lyude Paul
Hello everyone! The X.org board is soliciting proposals to host XDC in 2023. Since XDC 2022 is being held in North America this year, XDC 2023 is expected to be in Europe. However, the board is open to other locations, especially if there's an interesting co-location with another conference. If

Re: [PATCH v3 17/31] ACPI: video: Add Nvidia WMI EC brightness control detection (v2)

2022-08-18 Thread Daniel Dadap
On 8/18/22 1:42 PM, Hans de Goede wrote: 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

Re: [PATCH v3 19/31] platform/x86: nvidia-wmi-ec-backlight: Use acpi_video_get_backlight_type()

2022-08-18 Thread Daniel Dadap
On 8/18/22 1:42 PM, Hans de Goede wrote: Add an acpi_video_get_backlight_type() == acpi_backlight_nvidia_wmi_ec check. This will make nvidia-wmi-ec-backlight properly honor the user selecting a different backlight driver through the acpi_backlight=... kernel commandline option. Since the

Re: [PATCH v3 15/31] platform/x86: nvidia-wmi-ec-backlight: Move fw interface definitions to a header

2022-08-18 Thread Daniel Dadap
On 8/18/22 1:42 PM, Hans de Goede wrote: Move the WMI interface definitions to a header, so that the definitions can be shared with drivers/acpi/video_detect.c . Suggested-by: Daniel Dadap Signed-off-by: Hans de Goede --- MAINTAINERS | 1 +

Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")

2022-08-18 Thread Randy Dunlap
Hi-- On 8/18/22 12:15, Sudip Mukherjee wrote: > On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap wrote: >> >> >> >> On 8/18/22 03:43, Sudip Mukherjee wrote: >>> On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap wrote: On 8/17/22 19:01, Alex Deucher wrote: > On Wed, Aug 17, 2022

Re: build failure of next-20220817 for amdgpu due to 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core")

2022-08-18 Thread Sudip Mukherjee
On Thu, Aug 18, 2022 at 4:10 PM Randy Dunlap wrote: > > > > On 8/18/22 03:43, Sudip Mukherjee wrote: > > On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap wrote: > >> > >> > >> > >> On 8/17/22 19:01, Alex Deucher wrote: > >>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink) > >>> wrote: >

Re: [PATCH] drm/amdgpu: Remove the additional kfd pre reset call for sriov

2022-08-18 Thread Felix Kuehling
Am 2022-08-18 um 14:19 schrieb shaoyunl: The additional call is caused by merge conflict Signed-off-by: shaoyunl Reviewed-by: Felix Kuehling --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH v3 21/31] platform/x86: toshiba_acpi: Stop using acpi_video_set_dmi_backlight_type()

2022-08-18 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,

[PATCH v3 19/31] platform/x86: nvidia-wmi-ec-backlight: Use acpi_video_get_backlight_type()

2022-08-18 Thread Hans de Goede
Add an acpi_video_get_backlight_type() == acpi_backlight_nvidia_wmi_ec check. This will make nvidia-wmi-ec-backlight properly honor the user selecting a different backlight driver through the acpi_backlight=... kernel commandline option. Since the auto-detect code check for

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

2022-08-18 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

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

2022-08-18 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

[PATCH v3 30/31] ACPI: video: Fix indentation of video_detect_dmi_table[] entries

2022-08-18 Thread Hans de Goede
The video_detect_dmi_table[] uses an unusual indentation for before the ".name = ..." named struct initializers. Instead of being indented with an extra tab compared to the previous line's '{' these are indented to with only a single space to allow for long DMI_MATCH() lines without wrapping.

[PATCH v3 08/31] ACPI: video: Simplify acpi_video_unregister_backlight()

2022-08-18 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(-)

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

2022-08-18 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

[PATCH v3 07/31] ACPI: video: Remove acpi_video_bus from list before tearing it down

2022-08-18 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

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

2022-08-18 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 ---

[PATCH v3 13/31] drm/amdgpu: Register ACPI video backlight when skipping amdgpu backlight registration

2022-08-18 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

[PATCH v3 16/31] ACPI: video: Refactor acpi_video_get_backlight_type() a bit

2022-08-18 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.

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

2022-08-18 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 ---

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

2022-08-18 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

[PATCH v3 14/31] drm/radeon: Register ACPI video backlight when skipping radeon backlight registration

2022-08-18 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

[PATCH v3 15/31] platform/x86: nvidia-wmi-ec-backlight: Move fw interface definitions to a header

2022-08-18 Thread Hans de Goede
Move the WMI interface definitions to a header, so that the definitions can be shared with drivers/acpi/video_detect.c . Suggested-by: Daniel Dadap Signed-off-by: Hans de Goede --- MAINTAINERS | 1 + .../platform/x86/nvidia-wmi-ec-backlight.c| 66

[PATCH v3 06/31] ACPI: video: Drop backlight_device_get_by_type() call from acpi_video_get_backlight_type()

2022-08-18 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.

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

2022-08-18 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

[PATCH v3 28/31] ACPI: video: Drop "Samsung X360" acpi_backlight=native quirk

2022-08-18 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

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

2022-08-18 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"))

[PATCH v3 02/31] drm/i915: Don't register backlight when another backlight should be used

2022-08-18 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

[PATCH v3 01/31] ACPI: video: Add acpi_video_backlight_use_native() helper

2022-08-18 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

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

2022-08-18 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

[PATCH v3 27/31] ACPI: video: Remove acpi_video_set_dmi_backlight_type()

2022-08-18 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,

[PATCH v3 17/31] ACPI: video: Add Nvidia WMI EC brightness control detection (v2)

2022-08-18 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

[PATCH v3 18/31] ACPI: video: Add Apple GMUX brightness control detection

2022-08-18 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

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

2022-08-18 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

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

2022-08-18 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

[PATCH v3 12/31] drm/nouveau: Register ACPI video backlight when nv_backlight registration fails

2022-08-18 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

[PATCH v3 11/31] drm/i915: Call acpi_video_register_backlight() (v2)

2022-08-18 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

[PATCH v3 05/31] drm/nouveau: Don't register backlight when another backlight should be used

2022-08-18 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

[PATCH v3 10/31] ACPI: video: Remove code to unregister acpi_video backlight when a native backlight registers

2022-08-18 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

Re: [PATCH] drm/amd/display: fix i386 frame size warning

2022-08-18 Thread Aurabindo Pillai
On 2022-08-18 12:48, Hamza Mahfooz wrote: Addresses the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c:3596:6: error: stack frame size (2092) exceeds limit (2048) in 'dml30_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than] void

[PATCH] drm/amdgpu: Remove the additional kfd pre reset call for sriov

2022-08-18 Thread shaoyunl
The additional call is caused by merge conflict Signed-off-by: shaoyunl --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 4cd87dbb108c..d7eb23b8d692

Re: Radeon HD 2600 XT, DVI outputs

2022-08-18 Thread Alex Deucher
On Thu, Aug 18, 2022 at 8:29 AM Andriy Gapon wrote: > > On 2022-08-16 12:01, Christian König wrote: > > Hi Andriy, > > > > well first of all can you please test that with Linux? If this works on > > Linux then there is probably just something missing on the FreeBSD port. > > Thank you for the

[linux-next:master] BUILD REGRESSION 5b6a4bf680d61b1dd26629840f848d0df8983c62

2022-08-18 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 5b6a4bf680d61b1dd26629840f848d0df8983c62 Add linux-next specific files for 20220818 Error/Warning: (recently discovered and may have been fixed) drivers/base/regmap/regmap-mmio.c:231:17: error

[PATCH] drm/amd/display: fix i386 frame size warning

2022-08-18 Thread Hamza Mahfooz
Addresses the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c:3596:6: error: stack frame size (2092) exceeds limit (2048) in 'dml30_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than] void

Re: mainline build failure for x86_64 allmodconfig with clang

2022-08-18 Thread Nathan Chancellor
Hi Arnd, Doubling back around to this now since I think this is the only thing breaking x86_64 allmodconfig with clang 11 through 15. On Fri, Aug 05, 2022 at 09:32:13PM +0200, Arnd Bergmann wrote: > On Fri, Aug 5, 2022 at 8:02 PM Nathan Chancellor wrote: > > On Fri, Aug 05, 2022 at 06:16:45PM

Re: build failure of next-20220817 for amdgpu

2022-08-18 Thread Randy Dunlap
On 8/18/22 03:43, Sudip Mukherjee wrote: > On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap wrote: >> >> >> >> On 8/17/22 19:01, Alex Deucher wrote: >>> On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink) >>> wrote: Hi All, Not sure if it has been reported, build of

Re: build failure of next-20220817 for amdgpu

2022-08-18 Thread Sudip Mukherjee
On Thu, Aug 18, 2022 at 3:09 AM Randy Dunlap wrote: > > > > On 8/17/22 19:01, Alex Deucher wrote: > > On Wed, Aug 17, 2022 at 6:03 PM Sudip Mukherjee (Codethink) > > wrote: > >> > >> Hi All, > >> > >> Not sure if it has been reported, build of next-20220817 fails with the > >> error: > >> > >>

[PATCH] drm/amd/display: Include missing header

2022-08-18 Thread Maíra Canal
The file amdgpu_dm_plane.c missed the header amdgpu_dm_plane.h, which resulted on the following warning: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1046:5: warning: no previous prototype for 'fill_dc_scaling_info' [-Wmissing-prototypes]

Re: [PATCH 0/6] amdgpu: Allow explicitly synchronized submissions.

2022-08-18 Thread Christian König
Hi Bas, I've just pushed the branch drm-exec to my fdo repository: https://gitlab.freedesktop.org/ckoenig/linux-drm.git This branch contains all the gang submit patches as well as the latest drm-exec stuff. VCN3/4 video decoding has some issues on it, but that probably shouldn't bother your

Re: Radeon HD 2600 XT, DVI outputs

2022-08-18 Thread Andriy Gapon
On 2022-08-16 12:01, Christian König wrote: Hi Andriy, well first of all can you please test that with Linux? If this works on Linux then there is probably just something missing on the FreeBSD port. Thank you for the suggestion. This is something that I should have tested from the start.

Re: [PATCH 1/6] drm/ttm: Add usage to ttm_validate_buffer.

2022-08-18 Thread Christian König
Am 18.08.22 um 02:30 schrieb Bas Nieuwenhuizen: On Thu, Aug 18, 2022 at 12:04 AM Felix Kuehling wrote: Am 2022-08-12 um 21:27 schrieb Bas Nieuwenhuizen: This way callsites can choose between READ/BOOKKEEP reservations. Signed-off-by: Bas Nieuwenhuizen ---

RE: [PATCH] drm/amdgpu: Check num_gfx_rings for gfx v9_0 rb setup.

2022-08-18 Thread Zhang, Hawking
Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: amd-gfx On Behalf Of Candice Li Sent: Thursday, August 18, 2022 11:26 To: amd-gfx@lists.freedesktop.org Cc: Li, Candice Subject: [PATCH] drm/amdgpu: Check num_gfx_rings for gfx v9_0 rb setup. No need to set up rb

[PATCH -next] drm/amd/display: remove unneeded semicolon

2022-08-18 Thread Yang Li
Semicolon is not required after curly braces. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1918 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git