[PATCH] drm/bridge: icn6211: Convert to use maple tree register cache

2023-09-30 Thread Mark Brown
The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. Signed-off-by: Mark Brown --- drivers/gpu/drm/bridge/chipone-icn6211.c | 2

[PATCH] drm/bridge: tc358767: Convert to use maple tree register cache

2023-09-30 Thread Mark Brown
The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. Signed-off-by: Mark Brown --- drivers/gpu/drm/bridge/tc358767.c | 2 +- 1

[PATCH] drm/rockchip: vop2: Convert to use maple tree register cache

2023-09-30 Thread Mark Brown
The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. Signed-off-by: Mark Brown --- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

[PATCH] drm/bridge: dpc3433: Convert to use maple tree register cache

2023-09-30 Thread Mark Brown
The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. Signed-off-by: Mark Brown --- drivers/gpu/drm/bridge/ti-dlpc3433.c | 2 +-

[PATCH] iosys-map: fix kernel-doc typos

2023-09-30 Thread Randy Dunlap
Correct spelling of "beginning". Signed-off-by: Randy Dunlap Cc: Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org --- include/linux/iosys-map.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/include/linux/iosys-map.h b/include/linux/iosys-map.h ---

Re: [PATCH v4 07/10] drm/sched: Start submission before TDR in drm_sched_start

2023-09-30 Thread Luben Tuikov
On 2023-09-29 17:53, Luben Tuikov wrote: > Hi, > > On 2023-09-19 01:01, Matthew Brost wrote: >> If the TDR is set to a very small value it can fire before the >> submission is started in the function drm_sched_start. The submission is >> expected to running when the TDR fires, fix this ordering

[Bug 201957] amdgpu: ring gfx timeout

2023-09-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201957 --- Comment #96 from KC (kco...@gmail.com) --- The default is now -1. https://unix.stackexchange.com/questions/756281/kernel-6-5-2-seems-to-have-amdgpu-crash-on-no-retry-page-fault

[Bug 201957] amdgpu: ring gfx timeout

2023-09-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201957 --- Comment #95 from aspi...@gmail.com --- (In reply to KC from comment #94) Did you have it set to 1 previously? If not, I'm not sure if that was the silver bullet, because it looks like it defaults to 0.

[Bug 201957] amdgpu: ring gfx timeout

2023-09-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201957 --- Comment #94 from KC (kco...@gmail.com) --- In my case the fix was adding amdgpu.mcbp=0 to the kernel parameters. On Sat, Sep 30, 2023 at 8:57 PM wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=201957 > > aspi...@gmail.com changed: > >

[Bug 201957] amdgpu: ring gfx timeout

2023-09-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201957 aspi...@gmail.com changed: What|Removed |Added CC||aspi...@gmail.com --- Comment #93

Re: [PATCH 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array

2023-09-30 Thread Phillip Potter
On Fri, Sep 29, 2023 at 02:17:30PM +0200, Joel Granados wrote: > On Thu, Sep 28, 2023 at 03:36:55PM +0200, Greg Kroah-Hartman wrote: > > On Thu, Sep 28, 2023 at 03:21:26PM +0200, Joel Granados via B4 Relay wrote: > > > From: Joel Granados > > > > > > This commit comes at the tail end of a

Re: [PATCH 1/3] drm/tests: Fix kunit_release_action ctx argument

2023-09-30 Thread Maira Canal
Hi Arthur, On 9/27/23 19:52, Arthur Grillo wrote: On 27/09/23 19:47, Maira Canal wrote: Hi Arthur, On 9/20/23 03:11, Arthur Grillo wrote: The kunit_action_platform_driver_unregister is added with _platform_driver as ctx, but the kunit_release_action is called pdev as ctx. Fix that by

Re: [PATCH RESEND v3 0/2] Add KUnit tests for drm_fb_blit()

2023-09-30 Thread Maira Canal
Hi Arthur, On 9/18/23 20:51, Arthur Grillo wrote: This patchset tests the drm_fb_blit() function. As this function can be used with already tested formats, the first patch adds calls to drm_fb_blit() on the tests of supported formats. Some supported formats were not yet covered by the

Re: ti-sn65dsi86 linux driver using dsi clock source for pll

2023-09-30 Thread Douglas Cooper
Hi Doug That’s really good feedback. Thanks so much for taking the time to outline that. I’ll keep investigating and dig into those areas you mentioned. I should have mentioned I’m also using the chip in conjunction with a full size dp connector which appears to be supported. Also, besides the

[PATCH] add kernel docs for dc_dmub_caps

2023-09-30 Thread Sagar Vashnav
Add kernel documentation for the dc_dmub_caps structure. Signed-off-by: Sagar Vashnav --- drivers/gpu/drm/amd/display/dc/dc.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 8125839..14b4c50 100644

Re: [PATCH v2] drm: rcar-du: turn rcar_du_group_get() into void and remove its return value check

2023-09-30 Thread Laurent Pinchart
Hi Alexandra, On Wed, Sep 27, 2023 at 01:44:38PM +0300, Alexandra Diupina wrote: > rcar_du_group_get() never returns a negative > error code (always returns 0), so change the comment > about returned value, turn function into void (return > code of rcar_du_group_get has been redundant for a >

[Bug 216806] [Raven Ridge] console disappears after framebuffer device loads

2023-09-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216806 --- Comment #7 from Balazs Vinarz (viniba...@gmail.com) --- It turned out with the latest kernel the amd_iommu=off did the trick. https://gitlab.freedesktop.org/drm/amd/-/issues/2884 -- You may reply to this email to add a comment. You are

[PATCH] dt-bindings: display: fsl, imx6-hdmi: Change to 'unevaluatedProperties: false'

2023-09-30 Thread Fabio Estevam
From: Fabio Estevam fsl,imx6-hdmi.yaml makes a reference to synopsys,dw-hdmi.yaml. The 'interrupts'and 'reg' properties are described in synopsys,dw-hdmi.yaml, so use 'unevaluatedProperties: false' so that these two properties can be accepted. This fixes the following schema warnings:

[Bug 216806] [Raven Ridge] console disappears after framebuffer device loads

2023-09-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216806 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEEDINFO|CLOSED

[Bug 201957] amdgpu: ring gfx timeout

2023-09-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201957 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 217958] Crashes if I boot the computer with the second display connected to HDMI output

2023-09-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217958 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED

Re: [PATCH 06/15] platform/x86/amd/pmf: Add support to get inputs from other subsystems

2023-09-30 Thread Shyam Sundar S K
On 9/26/2023 10:38 PM, Ilpo Järvinen wrote: > On Fri, 22 Sep 2023, Shyam Sundar S K wrote: > >> PMF driver sends changing inputs from each subystem to TA for evaluating >> the conditions in the policy binary. >> >> Add initial support of plumbing in the PMF driver for Smart PC to get >>

[PATCH v2 15/16] platform/x86/amd/pmf: Add PMF-AMDSFH interface for HPD

2023-09-30 Thread Shyam Sundar S K
From: Basavaraj Natikar AMDSFH has information about the User presence information via the Human Presence Detection (HPD) sensor which is part of the AMD sensor fusion hub. Add PMF and AMDSFH interface to get this information. Co-developed-by: Shyam Sundar S K Signed-off-by: Shyam Sundar S K

[PATCH v2 16/16] platform/x86/amd/pmf: Add PMF-AMDSFH interface for ALS

2023-09-30 Thread Shyam Sundar S K
From: Basavaraj Natikar AMDSFH has information about the Ambient light via the Ambient Light Sensor (ALS) which is part of the AMD sensor fusion hub. Add PMF and AMDSFH interface to get this information. make amd_sfh_float_to_int() as non-static function so that this can be called outside of

[PATCH v2 14/16] HID: amd_sfh: rename float_to_int() to amd_sfh_float_to_int()

2023-09-30 Thread Shyam Sundar S K
From: Basavaraj Natikar Current amd_sfh driver has float_to_int() to convert units from float to int. This is fine until this function gets called outside of the current scope of file. Add a prefix "amd_sfh" to float_to_int() so that function represents the driver name. This function will be

[PATCH v2 12/16] platform/x86/amd/pmf: Add PMF-AMDGPU get interface

2023-09-30 Thread Shyam Sundar S K
In order to provide GPU inputs to TA for the Smart PC solution to work, we need to have interface between the PMF driver and the AMDGPU driver. Add the initial code path for get interface from AMDGPU. Co-developed-by: Mario Limonciello Signed-off-by: Mario Limonciello Signed-off-by: Shyam

[PATCH v2 13/16] platform/x86/amd/pmf: Add PMF-AMDGPU set interface

2023-09-30 Thread Shyam Sundar S K
For the Smart PC Solution to fully work, it has to enact to the actions coming from TA. Add the initial code path for set interface to AMDGPU. Change amd_pmf_apply_policies() return type, so that it can return errors when the call to retrieve information from amdgpu fails. Co-developed-by: Mario

[PATCH v2 10/16] platform/x86/amd/pmf: Add capability to sideload of policy binary

2023-09-30 Thread Shyam Sundar S K
A policy binary is OS agnostic, and the same policies are expected to work across the OSes. At times it becomes difficult to debug when the policies inside the policy binaries starts to misbehave. Add a way to sideload such policies independently to debug them via a debugfs entry. Reported-by:

[PATCH v2 11/16] platform/x86/amd/pmf: dump policy binary data

2023-09-30 Thread Shyam Sundar S K
Sometimes policy binary retrieved from the BIOS maybe incorrect that can end up in failing to enable the Smart PC solution feature. Use print_hex_dump_debug() to dump the policy binary in hex, so that we debug the issues related to the binary even before sending that to TA. Signed-off-by: Shyam

[PATCH v2 09/16] platform/x86/amd/pmf: Add facility to dump TA inputs

2023-09-30 Thread Shyam Sundar S K
PMF driver sends constant inputs to TA which its gets via the other subsystems in the kernel. To debug certain TA issues knowing what inputs being sent to TA becomes critical. Add debug facility to the driver which can isolate Smart PC and TA related issues. Also, make source_as_str() as

[PATCH v2 08/16] platform/x86/amd/pmf: Add support to update system state

2023-09-30 Thread Shyam Sundar S K
PMF driver based on the output actions from the TA can request to update the system states like entering s0i3, lock screen etc. by generating an uevent. Based on the udev rules set in the userspace the event id matching the uevent shall get updated accordingly using the systemctl. Sample udev

[PATCH v2 07/16] platform/x86/amd/pmf: Add support update p3t limit

2023-09-30 Thread Shyam Sundar S K
P3T (Peak Package Power Limit) is a metric within the SMU controller that can influence the power limits. Add support from the driver to update P3T limits accordingly. Reviewed-by: Mario Limonciello Signed-off-by: Shyam Sundar S K --- drivers/platform/x86/amd/pmf/pmf.h| 3 +++

[PATCH v2 06/16] platform/x86/amd/pmf: Add support to get inputs from other subsystems

2023-09-30 Thread Shyam Sundar S K
PMF driver sends changing inputs from each subystem to TA for evaluating the conditions in the policy binary. Add initial support of plumbing in the PMF driver for Smart PC to get information from other subsystems in the kernel. Signed-off-by: Shyam Sundar S K ---

[PATCH v2 05/16] platform/x86/amd/pmf: change amd_pmf_init_features() call sequence

2023-09-30 Thread Shyam Sundar S K
To sideload pmf policy binaries, the Smart PC Solution Builder provides a debugfs file called "update_policy"; that gets created under a new debugfs directory called "pb" and this new directory has to be associated with existing parent directory for PMF driver called "amd_pmf". In the current

[PATCH v2 04/16] platform/x86/amd/pmf: Add support for PMF Policy Binary

2023-09-30 Thread Shyam Sundar S K
PMF Policy binary is a encrypted and signed binary that will be part of the BIOS. PMF driver via the ACPI interface checks the existence of Smart PC bit. If the advertised bit is found, PMF driver walks the acpi namespace to find out the policy binary size and the address which has to be passed to

[PATCH v2 03/16] platform/x86/amd/pmf: Change return type of amd_pmf_set_dram_addr()

2023-09-30 Thread Shyam Sundar S K
In the current code, the metrics table information was required only for auto-mode or CnQF at a given time. Hence keeping the return type of amd_pmf_set_dram_addr() as static made sense. But with the addition of Smart PC builder feature, the metrics table information has to be shared by the Smart

[PATCH v2 02/16] platform/x86/amd/pmf: Add support PMF-TA interaction

2023-09-30 Thread Shyam Sundar S K
PMF TA (Trusted Application) loads via the TEE environment into the AMD ASP. PMF-TA supports two commands: 1) Init: Initialize the TA with the PMF Smart PC policy binary and start the policy engine. A policy is a combination of inputs and outputs, where; - the inputs are the changing dynamics of

[PATCH v2 01/16] platform/x86/amd/pmf: Add PMF TEE interface

2023-09-30 Thread Shyam Sundar S K
AMD PMF driver loads the PMF TA (Trusted Application) into the AMD ASP's (AMD Security Processor) TEE (Trusted Execution Environment). PMF Trusted Application is a secured firmware placed under /lib/firmware/amdtee gets loaded only when the TEE environment is initialized. Add the initial code

[PATCH v2 00/16] Introduce PMF Smart PC Solution Builder Feature

2023-09-30 Thread Shyam Sundar S K
Smart PC Solutions Builder allows for OEM to define a large number of custom system states to dynamically switch to. The system states are referred to as policies, and multiple policies can be loaded onto the system at any given time, however only one policy can be active at a given time. Policy

Re: [PATCH v2] drm: rcar-du: turn rcar_du_group_get() into void and remove its return value check

2023-09-30 Thread kernel test robot
://lore.kernel.org/r/20230927104438.30628-1-adiupina%40astralinux.ru patch subject: [PATCH v2] drm: rcar-du: turn rcar_du_group_get() into void and remove its return value check config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20230930/202309301402.ur7irqvj-...@intel.com/config) compiler: arm

[Bug 217958] New: Crashes if I boot the computer with the second display connected to HDMI output

2023-09-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217958 Bug ID: 217958 Summary: Crashes if I boot the computer with the second display connected to HDMI output Product: Drivers Version: 2.5 Hardware: All OS: