Re: [PATCH] drm/doc: Fix comment typo

2022-06-27 Thread Simon Ser
Reviewed-by: Simon Ser Pushed to drm-misc-next, thanks!

Re: [PATCH] drm/i915/guc/slpc: Add a new SLPC selftest

2022-06-27 Thread Dixit, Ashutosh
On Mon, 27 Jun 2022 16:03:46 -0700, Vinay Belgaumkar wrote: > > /* Actual frequency should rise above min */ > - if (max_act_freq == slpc_min_freq) { > + if (max_act_freq <= slpc_min_freq) { > pr_err("Actual freq did not rise above

[Bug 216175] PowerColor Radeon Rx 6400 ITX does not work.

2022-06-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216175 --- Comment #9 from Nobiuki (nobutarounos...@gmail.com) --- Created attachment 301295 --> https://bugzilla.kernel.org/attachment.cgi?id=301295=edit journal with 4350G and amdgpu.runpm=0, 2nd boot. Next, I kept the hardware setting (RX 6400 was

[Bug 216175] PowerColor Radeon Rx 6400 ITX does not work.

2022-06-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216175 --- Comment #8 from Nobiuki (nobutarounos...@gmail.com) --- Created attachment 301294 --> https://bugzilla.kernel.org/attachment.cgi?id=301294=edit Journal with 4350G and amdgpu.runpm=0 Next, I change my output from RX 6400 to Ryzen 4350G. It

[Bug 216175] PowerColor Radeon Rx 6400 ITX does not work.

2022-06-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216175 --- Comment #7 from Nobiuki (nobutarounos...@gmail.com) --- Comment on attachment 301293 --> https://bugzilla.kernel.org/attachment.cgi?id=301293 journal with rx6400 and amdgpu.runpm=0 I put RX 6400 and output from RX 6400. It crashed and I

[Bug 216175] PowerColor Radeon Rx 6400 ITX does not work.

2022-06-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216175 --- Comment #6 from Nobiuki (nobutarounos...@gmail.com) --- Created attachment 301293 --> https://bugzilla.kernel.org/attachment.cgi?id=301293=edit journal with rx6400 and amdgpu.runpm=0 -- You may reply to this email to add a comment. You

Re: [PATCH v2] drm/bridge: imx: i.MX8 bridge drivers should depend on ARCH_MXC

2022-06-27 Thread Liu Ying
On Mon, 2022-06-27 at 14:22 +0200, Neil Armstrong wrote: > Hi, Hi, > > On 24/06/2022 14:10, Geert Uytterhoeven wrote: > > The various Freescale i.MX8 display bridges are only present on > > Freescale i.MX8 SoCs. Hence add a dependency on ARCH_MXC, to > > prevent > > asking the user about these

[PATCH AUTOSEL 4.9 08/13] video: fbdev: simplefb: Check before clk_put() not needed

2022-06-27 Thread Sasha Levin
From: Yihao Han [ Upstream commit 5491424d17bdeb7b7852a59367858251783f8398 ] clk_put() already checks the clk ptr using !clk and IS_ERR() so there is no need to check it again before calling it. Signed-off-by: Yihao Han Reviewed-by: Hans de Goede Signed-off-by: Helge Deller Signed-off-by:

[PATCH AUTOSEL 4.9 07/13] video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write

2022-06-27 Thread Sasha Levin
From: Hyunwoo Kim [ Upstream commit a09d2d00af53b43c6f11e6ab3cb58443c2cac8a7 ] In pxa3xx_gcu_write, a count parameter of type size_t is passed to words of type int. Then, copy_from_user() may cause a heap overflow because it is used as the third argument of copy_from_user(). Signed-off-by:

[PATCH AUTOSEL 4.9 06/13] video: fbdev: intelfb: Use aperture size from pci_resource_len

2022-06-27 Thread Sasha Levin
From: Petr Cvek [ Upstream commit 25c9a15fb7bbfafb94dd3b4e3165c18b8e1bd039 ] Aperture size for i9x5 variants is determined from PCI base address. if (pci_resource_start(pdev, 2) & 0x0800) *aperture_size = MB(128); ... This condition is incorrect as 128 MiB

[PATCH AUTOSEL 4.9 05/13] video: fbdev: skeletonfb: Fix syntax errors in comments

2022-06-27 Thread Sasha Levin
From: Xiang wangx [ Upstream commit fc378794a2f7a19cf26010dc33b89ba608d4c70f ] Delete the redundant word 'its'. Signed-off-by: Xiang wangx Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/skeletonfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH AUTOSEL 4.9 03/13] drm/vc4: crtc: Use an union to store the page flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 2523e9dcc3be91bf9fdc0d1e542557ca00bbef42 ] We'll need to extend the vc4_async_flip_state structure to rely on another callback implementation, so let's move the current one into a union. Reviewed-by: Melissa Wen Signed-off-by: Maxime Ripard Link:

[PATCH AUTOSEL 4.14 10/17] video: fbdev: simplefb: Check before clk_put() not needed

2022-06-27 Thread Sasha Levin
From: Yihao Han [ Upstream commit 5491424d17bdeb7b7852a59367858251783f8398 ] clk_put() already checks the clk ptr using !clk and IS_ERR() so there is no need to check it again before calling it. Signed-off-by: Yihao Han Reviewed-by: Hans de Goede Signed-off-by: Helge Deller Signed-off-by:

[PATCH AUTOSEL 4.14 09/17] video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write

2022-06-27 Thread Sasha Levin
From: Hyunwoo Kim [ Upstream commit a09d2d00af53b43c6f11e6ab3cb58443c2cac8a7 ] In pxa3xx_gcu_write, a count parameter of type size_t is passed to words of type int. Then, copy_from_user() may cause a heap overflow because it is used as the third argument of copy_from_user(). Signed-off-by:

[PATCH AUTOSEL 4.14 08/17] video: fbdev: intelfb: Use aperture size from pci_resource_len

2022-06-27 Thread Sasha Levin
From: Petr Cvek [ Upstream commit 25c9a15fb7bbfafb94dd3b4e3165c18b8e1bd039 ] Aperture size for i9x5 variants is determined from PCI base address. if (pci_resource_start(pdev, 2) & 0x0800) *aperture_size = MB(128); ... This condition is incorrect as 128 MiB

[PATCH AUTOSEL 4.14 07/17] video: fbdev: skeletonfb: Fix syntax errors in comments

2022-06-27 Thread Sasha Levin
From: Xiang wangx [ Upstream commit fc378794a2f7a19cf26010dc33b89ba608d4c70f ] Delete the redundant word 'its'. Signed-off-by: Xiang wangx Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/skeletonfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH AUTOSEL 4.14 04/17] drm/vc4: crtc: Use an union to store the page flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 2523e9dcc3be91bf9fdc0d1e542557ca00bbef42 ] We'll need to extend the vc4_async_flip_state structure to rely on another callback implementation, so let's move the current one into a union. Reviewed-by: Melissa Wen Signed-off-by: Maxime Ripard Link:

[PATCH AUTOSEL 4.19 21/22] drm/amdgpu: Adjust logic around GTT size (v3)

2022-06-27 Thread Sasha Levin
From: Alex Deucher [ Upstream commit f15345a377c6ea9c7cc74f079616af8856aff37f ] Certain GL unit tests for large textures can cause problems with the OOM killer since there is no way to link this memory to a process. This was originally mitigated (but not necessarily eliminated) by limiting the

[PATCH AUTOSEL 4.19 20/22] drm/sun4i: Add DMA mask and segment size

2022-06-27 Thread Sasha Levin
From: Jernej Skrabec [ Upstream commit f5aa16807aa4f99293044944590dde81364f434f ] Kernel occasionally complains that there is mismatch in segment size when trying to render HW decoded videos and rendering them directly with sun4i DRM driver. Following message can be observed on H6 SoC: [

[PATCH AUTOSEL 4.19 12/22] video: fbdev: simplefb: Check before clk_put() not needed

2022-06-27 Thread Sasha Levin
From: Yihao Han [ Upstream commit 5491424d17bdeb7b7852a59367858251783f8398 ] clk_put() already checks the clk ptr using !clk and IS_ERR() so there is no need to check it again before calling it. Signed-off-by: Yihao Han Reviewed-by: Hans de Goede Signed-off-by: Helge Deller Signed-off-by:

[PATCH AUTOSEL 4.19 11/22] video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write

2022-06-27 Thread Sasha Levin
From: Hyunwoo Kim [ Upstream commit a09d2d00af53b43c6f11e6ab3cb58443c2cac8a7 ] In pxa3xx_gcu_write, a count parameter of type size_t is passed to words of type int. Then, copy_from_user() may cause a heap overflow because it is used as the third argument of copy_from_user(). Signed-off-by:

[PATCH AUTOSEL 4.19 10/22] video: fbdev: intelfb: Use aperture size from pci_resource_len

2022-06-27 Thread Sasha Levin
From: Petr Cvek [ Upstream commit 25c9a15fb7bbfafb94dd3b4e3165c18b8e1bd039 ] Aperture size for i9x5 variants is determined from PCI base address. if (pci_resource_start(pdev, 2) & 0x0800) *aperture_size = MB(128); ... This condition is incorrect as 128 MiB

[PATCH AUTOSEL 4.19 09/22] video: fbdev: skeletonfb: Fix syntax errors in comments

2022-06-27 Thread Sasha Levin
From: Xiang wangx [ Upstream commit fc378794a2f7a19cf26010dc33b89ba608d4c70f ] Delete the redundant word 'its'. Signed-off-by: Xiang wangx Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/skeletonfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH AUTOSEL 4.19 05/22] drm/vc4: crtc: Move the BO handling out of common page-flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 4d12c36fb73b5c49fe2f95d06515fd9846010fd2 ] We'll soon introduce another completion callback source that won't need to use the BO reference counting, so let's move it around to create a function we will be able to share between both callbacks. Reviewed-by:

[PATCH AUTOSEL 4.19 04/22] drm/vc4: crtc: Use an union to store the page flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 2523e9dcc3be91bf9fdc0d1e542557ca00bbef42 ] We'll need to extend the vc4_async_flip_state structure to rely on another callback implementation, so let's move the current one into a union. Reviewed-by: Melissa Wen Signed-off-by: Maxime Ripard Link:

[PATCH AUTOSEL 5.4 25/27] drm/amdgpu: Adjust logic around GTT size (v3)

2022-06-27 Thread Sasha Levin
From: Alex Deucher [ Upstream commit f15345a377c6ea9c7cc74f079616af8856aff37f ] Certain GL unit tests for large textures can cause problems with the OOM killer since there is no way to link this memory to a process. This was originally mitigated (but not necessarily eliminated) by limiting the

[PATCH AUTOSEL 5.4 24/27] drm/sun4i: Return if frontend is not present

2022-06-27 Thread Sasha Levin
From: Saud Farooqui [ Upstream commit 85016f66af8506cb601fd4f4fde23ed327a266be ] Added return statement in sun4i_layer_format_mod_supported() in case frontend is not present. Signed-off-by: Saud Farooqui Signed-off-by: Maxime Ripard Link:

[PATCH AUTOSEL 5.4 23/27] drm/sun4i: Add DMA mask and segment size

2022-06-27 Thread Sasha Levin
From: Jernej Skrabec [ Upstream commit f5aa16807aa4f99293044944590dde81364f434f ] Kernel occasionally complains that there is mismatch in segment size when trying to render HW decoded videos and rendering them directly with sun4i DRM driver. Following message can be observed on H6 SoC: [

[PATCH AUTOSEL 5.4 14/27] video: fbdev: simplefb: Check before clk_put() not needed

2022-06-27 Thread Sasha Levin
From: Yihao Han [ Upstream commit 5491424d17bdeb7b7852a59367858251783f8398 ] clk_put() already checks the clk ptr using !clk and IS_ERR() so there is no need to check it again before calling it. Signed-off-by: Yihao Han Reviewed-by: Hans de Goede Signed-off-by: Helge Deller Signed-off-by:

[PATCH AUTOSEL 5.4 13/27] video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write

2022-06-27 Thread Sasha Levin
From: Hyunwoo Kim [ Upstream commit a09d2d00af53b43c6f11e6ab3cb58443c2cac8a7 ] In pxa3xx_gcu_write, a count parameter of type size_t is passed to words of type int. Then, copy_from_user() may cause a heap overflow because it is used as the third argument of copy_from_user(). Signed-off-by:

[PATCH AUTOSEL 5.4 12/27] video: fbdev: intelfb: Use aperture size from pci_resource_len

2022-06-27 Thread Sasha Levin
From: Petr Cvek [ Upstream commit 25c9a15fb7bbfafb94dd3b4e3165c18b8e1bd039 ] Aperture size for i9x5 variants is determined from PCI base address. if (pci_resource_start(pdev, 2) & 0x0800) *aperture_size = MB(128); ... This condition is incorrect as 128 MiB

[PATCH AUTOSEL 5.4 11/27] video: fbdev: skeletonfb: Fix syntax errors in comments

2022-06-27 Thread Sasha Levin
From: Xiang wangx [ Upstream commit fc378794a2f7a19cf26010dc33b89ba608d4c70f ] Delete the redundant word 'its'. Signed-off-by: Xiang wangx Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/skeletonfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH AUTOSEL 5.4 05/27] drm/vc4: crtc: Move the BO handling out of common page-flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 4d12c36fb73b5c49fe2f95d06515fd9846010fd2 ] We'll soon introduce another completion callback source that won't need to use the BO reference counting, so let's move it around to create a function we will be able to share between both callbacks. Reviewed-by:

[PATCH AUTOSEL 5.4 04/27] drm/vc4: crtc: Use an union to store the page flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 2523e9dcc3be91bf9fdc0d1e542557ca00bbef42 ] We'll need to extend the vc4_async_flip_state structure to rely on another callback implementation, so let's move the current one into a union. Reviewed-by: Melissa Wen Signed-off-by: Maxime Ripard Link:

[PATCH AUTOSEL 5.10 31/34] drm/amdgpu: Adjust logic around GTT size (v3)

2022-06-27 Thread Sasha Levin
From: Alex Deucher [ Upstream commit f15345a377c6ea9c7cc74f079616af8856aff37f ] Certain GL unit tests for large textures can cause problems with the OOM killer since there is no way to link this memory to a process. This was originally mitigated (but not necessarily eliminated) by limiting the

[PATCH AUTOSEL 5.10 29/34] drm/sun4i: Return if frontend is not present

2022-06-27 Thread Sasha Levin
From: Saud Farooqui [ Upstream commit 85016f66af8506cb601fd4f4fde23ed327a266be ] Added return statement in sun4i_layer_format_mod_supported() in case frontend is not present. Signed-off-by: Saud Farooqui Signed-off-by: Maxime Ripard Link:

[PATCH AUTOSEL 5.10 28/34] drm/sun4i: Add DMA mask and segment size

2022-06-27 Thread Sasha Levin
From: Jernej Skrabec [ Upstream commit f5aa16807aa4f99293044944590dde81364f434f ] Kernel occasionally complains that there is mismatch in segment size when trying to render HW decoded videos and rendering them directly with sun4i DRM driver. Following message can be observed on H6 SoC: [

[PATCH AUTOSEL 5.10 18/34] video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write

2022-06-27 Thread Sasha Levin
From: Hyunwoo Kim [ Upstream commit a09d2d00af53b43c6f11e6ab3cb58443c2cac8a7 ] In pxa3xx_gcu_write, a count parameter of type size_t is passed to words of type int. Then, copy_from_user() may cause a heap overflow because it is used as the third argument of copy_from_user(). Signed-off-by:

[PATCH AUTOSEL 5.10 17/34] video: fbdev: intelfb: Use aperture size from pci_resource_len

2022-06-27 Thread Sasha Levin
From: Petr Cvek [ Upstream commit 25c9a15fb7bbfafb94dd3b4e3165c18b8e1bd039 ] Aperture size for i9x5 variants is determined from PCI base address. if (pci_resource_start(pdev, 2) & 0x0800) *aperture_size = MB(128); ... This condition is incorrect as 128 MiB

[PATCH AUTOSEL 5.10 19/34] video: fbdev: simplefb: Check before clk_put() not needed

2022-06-27 Thread Sasha Levin
From: Yihao Han [ Upstream commit 5491424d17bdeb7b7852a59367858251783f8398 ] clk_put() already checks the clk ptr using !clk and IS_ERR() so there is no need to check it again before calling it. Signed-off-by: Yihao Han Reviewed-by: Hans de Goede Signed-off-by: Helge Deller Signed-off-by:

[PATCH AUTOSEL 5.10 16/34] video: fbdev: skeletonfb: Fix syntax errors in comments

2022-06-27 Thread Sasha Levin
From: Xiang wangx [ Upstream commit fc378794a2f7a19cf26010dc33b89ba608d4c70f ] Delete the redundant word 'its'. Signed-off-by: Xiang wangx Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/skeletonfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH AUTOSEL 5.10 08/34] drm/vc4: crtc: Move the BO handling out of common page-flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 4d12c36fb73b5c49fe2f95d06515fd9846010fd2 ] We'll soon introduce another completion callback source that won't need to use the BO reference counting, so let's move it around to create a function we will be able to share between both callbacks. Reviewed-by:

[PATCH AUTOSEL 5.10 07/34] drm/vc4: crtc: Use an union to store the page flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 2523e9dcc3be91bf9fdc0d1e542557ca00bbef42 ] We'll need to extend the vc4_async_flip_state structure to rely on another callback implementation, so let's move the current one into a union. Reviewed-by: Melissa Wen Signed-off-by: Maxime Ripard Link:

[PATCH AUTOSEL 5.15 38/41] drm/amdgpu: Adjust logic around GTT size (v3)

2022-06-27 Thread Sasha Levin
From: Alex Deucher [ Upstream commit f15345a377c6ea9c7cc74f079616af8856aff37f ] Certain GL unit tests for large textures can cause problems with the OOM killer since there is no way to link this memory to a process. This was originally mitigated (but not necessarily eliminated) by limiting the

[PATCH AUTOSEL 5.15 36/41] drm/sun4i: Return if frontend is not present

2022-06-27 Thread Sasha Levin
From: Saud Farooqui [ Upstream commit 85016f66af8506cb601fd4f4fde23ed327a266be ] Added return statement in sun4i_layer_format_mod_supported() in case frontend is not present. Signed-off-by: Saud Farooqui Signed-off-by: Maxime Ripard Link:

[PATCH AUTOSEL 5.15 35/41] drm/sun4i: Add DMA mask and segment size

2022-06-27 Thread Sasha Levin
From: Jernej Skrabec [ Upstream commit f5aa16807aa4f99293044944590dde81364f434f ] Kernel occasionally complains that there is mismatch in segment size when trying to render HW decoded videos and rendering them directly with sun4i DRM driver. Following message can be observed on H6 SoC: [

[PATCH AUTOSEL 5.15 22/41] video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write

2022-06-27 Thread Sasha Levin
From: Hyunwoo Kim [ Upstream commit a09d2d00af53b43c6f11e6ab3cb58443c2cac8a7 ] In pxa3xx_gcu_write, a count parameter of type size_t is passed to words of type int. Then, copy_from_user() may cause a heap overflow because it is used as the third argument of copy_from_user(). Signed-off-by:

[PATCH AUTOSEL 5.15 23/41] video: fbdev: simplefb: Check before clk_put() not needed

2022-06-27 Thread Sasha Levin
From: Yihao Han [ Upstream commit 5491424d17bdeb7b7852a59367858251783f8398 ] clk_put() already checks the clk ptr using !clk and IS_ERR() so there is no need to check it again before calling it. Signed-off-by: Yihao Han Reviewed-by: Hans de Goede Signed-off-by: Helge Deller Signed-off-by:

[PATCH AUTOSEL 5.15 20/41] video: fbdev: skeletonfb: Fix syntax errors in comments

2022-06-27 Thread Sasha Levin
From: Xiang wangx [ Upstream commit fc378794a2f7a19cf26010dc33b89ba608d4c70f ] Delete the redundant word 'its'. Signed-off-by: Xiang wangx Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/skeletonfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH AUTOSEL 5.15 21/41] video: fbdev: intelfb: Use aperture size from pci_resource_len

2022-06-27 Thread Sasha Levin
From: Petr Cvek [ Upstream commit 25c9a15fb7bbfafb94dd3b4e3165c18b8e1bd039 ] Aperture size for i9x5 variants is determined from PCI base address. if (pci_resource_start(pdev, 2) & 0x0800) *aperture_size = MB(128); ... This condition is incorrect as 128 MiB

Re: [PATCH][next] treewide: uapi: Replace zero-length arrays with flexible-array members

2022-06-27 Thread Gustavo A. R. Silva
On Tue, Jun 28, 2022 at 02:58:25AM +0200, Gustavo A. R. Silva wrote: > On Mon, Jun 27, 2022 at 09:40:52PM -0300, Jason Gunthorpe wrote: > > On Mon, Jun 27, 2022 at 08:27:37PM +0200, Daniel Borkmann wrote: > > > On 6/27/22 8:04 PM, Gustavo A. R. Silva wrote: > > > > There is a regular need in the

[PATCH AUTOSEL 5.15 10/41] drm/vc4: crtc: Move the BO handling out of common page-flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 4d12c36fb73b5c49fe2f95d06515fd9846010fd2 ] We'll soon introduce another completion callback source that won't need to use the BO reference counting, so let's move it around to create a function we will be able to share between both callbacks. Reviewed-by:

[PATCH AUTOSEL 5.15 09/41] drm/vc4: crtc: Use an union to store the page flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 2523e9dcc3be91bf9fdc0d1e542557ca00bbef42 ] We'll need to extend the vc4_async_flip_state structure to rely on another callback implementation, so let's move the current one into a union. Reviewed-by: Melissa Wen Signed-off-by: Maxime Ripard Link:

[PATCH AUTOSEL 5.15 08/41] drm/vc4: plane: Prevent async update if we don't have a dlist

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit cb468c7d84d174ab9cd638be9f5b3f1ba2b311a0 ] The vc4 planes are setup in hardware by creating a hardware descriptor in a dedicated RAM. As part of the process to setup a plane in KMS, we thus need to allocate some part of that dedicated RAM to store our

[PATCH AUTOSEL 5.18 50/53] drm/amdgpu: Adjust logic around GTT size (v3)

2022-06-27 Thread Sasha Levin
From: Alex Deucher [ Upstream commit f15345a377c6ea9c7cc74f079616af8856aff37f ] Certain GL unit tests for large textures can cause problems with the OOM killer since there is no way to link this memory to a process. This was originally mitigated (but not necessarily eliminated) by limiting the

[PATCH AUTOSEL 5.18 48/53] drm/sun4i: Return if frontend is not present

2022-06-27 Thread Sasha Levin
From: Saud Farooqui [ Upstream commit 85016f66af8506cb601fd4f4fde23ed327a266be ] Added return statement in sun4i_layer_format_mod_supported() in case frontend is not present. Signed-off-by: Saud Farooqui Signed-off-by: Maxime Ripard Link:

[PATCH AUTOSEL 5.18 47/53] drm/sun4i: Add DMA mask and segment size

2022-06-27 Thread Sasha Levin
From: Jernej Skrabec [ Upstream commit f5aa16807aa4f99293044944590dde81364f434f ] Kernel occasionally complains that there is mismatch in segment size when trying to render HW decoded videos and rendering them directly with sun4i DRM driver. Following message can be observed on H6 SoC: [

[PATCH AUTOSEL 5.18 38/53] drm/xen: Add missing VM_DONTEXPAND flag in mmap callback

2022-06-27 Thread Sasha Levin
From: Oleksandr Tyshchenko [ Upstream commit ca6969013d13282b42cb5edcc13db731a08e0ad8 ] With Xen PV Display driver in use the "expected" VM_DONTEXPAND flag is not set (neither explicitly nor implicitly), so the driver hits the code path in drm_gem_mmap_obj() which triggers the WARNING.

[PATCH AUTOSEL 5.18 34/53] video: fbdev: simplefb: Check before clk_put() not needed

2022-06-27 Thread Sasha Levin
From: Yihao Han [ Upstream commit 5491424d17bdeb7b7852a59367858251783f8398 ] clk_put() already checks the clk ptr using !clk and IS_ERR() so there is no need to check it again before calling it. Signed-off-by: Yihao Han Reviewed-by: Hans de Goede Signed-off-by: Helge Deller Signed-off-by:

[PATCH AUTOSEL 5.18 33/53] video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write

2022-06-27 Thread Sasha Levin
From: Hyunwoo Kim [ Upstream commit a09d2d00af53b43c6f11e6ab3cb58443c2cac8a7 ] In pxa3xx_gcu_write, a count parameter of type size_t is passed to words of type int. Then, copy_from_user() may cause a heap overflow because it is used as the third argument of copy_from_user(). Signed-off-by:

[PATCH AUTOSEL 5.18 31/53] video: fbdev: intelfb: Use aperture size from pci_resource_len

2022-06-27 Thread Sasha Levin
From: Petr Cvek [ Upstream commit 25c9a15fb7bbfafb94dd3b4e3165c18b8e1bd039 ] Aperture size for i9x5 variants is determined from PCI base address. if (pci_resource_start(pdev, 2) & 0x0800) *aperture_size = MB(128); ... This condition is incorrect as 128 MiB

[PATCH AUTOSEL 5.18 30/53] video: fbdev: skeletonfb: Fix syntax errors in comments

2022-06-27 Thread Sasha Levin
From: Xiang wangx [ Upstream commit fc378794a2f7a19cf26010dc33b89ba608d4c70f ] Delete the redundant word 'its'. Signed-off-by: Xiang wangx Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/skeletonfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH AUTOSEL 5.18 27/53] drm: panel-orientation-quirks: Add quirk for Aya Neo Next

2022-06-27 Thread Sasha Levin
From: Maya Matuszczyk [ Upstream commit be33d52ef5b4bdfec04cfdad39368c343bac97a3 ] The device is identified by "NEXT" in board name, however there are different versions of it, "Next Advance" and "Next Pro", that have different DMI board names. Due to a production error a batch or two have

[PATCH AUTOSEL 5.18 12/53] drm/vc4: crtc: Move the BO handling out of common page-flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 4d12c36fb73b5c49fe2f95d06515fd9846010fd2 ] We'll soon introduce another completion callback source that won't need to use the BO reference counting, so let's move it around to create a function we will be able to share between both callbacks. Reviewed-by:

[PATCH AUTOSEL 5.18 11/53] drm/vc4: crtc: Use an union to store the page flip callback

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit 2523e9dcc3be91bf9fdc0d1e542557ca00bbef42 ] We'll need to extend the vc4_async_flip_state structure to rely on another callback implementation, so let's move the current one into a union. Reviewed-by: Melissa Wen Signed-off-by: Maxime Ripard Link:

[PATCH AUTOSEL 5.18 10/53] drm/vc4: plane: Prevent async update if we don't have a dlist

2022-06-27 Thread Sasha Levin
From: Maxime Ripard [ Upstream commit cb468c7d84d174ab9cd638be9f5b3f1ba2b311a0 ] The vc4 planes are setup in hardware by creating a hardware descriptor in a dedicated RAM. As part of the process to setup a plane in KMS, we thus need to allocate some part of that dedicated RAM to store our

Re: [PATCH][next] treewide: uapi: Replace zero-length arrays with flexible-array members

2022-06-27 Thread Gustavo A. R. Silva
On Mon, Jun 27, 2022 at 09:40:52PM -0300, Jason Gunthorpe wrote: > On Mon, Jun 27, 2022 at 08:27:37PM +0200, Daniel Borkmann wrote: > > On 6/27/22 8:04 PM, Gustavo A. R. Silva wrote: > > > There is a regular need in the kernel to provide a way to declare > > > having a dynamically sized set of

Re: [PATCH][next] treewide: uapi: Replace zero-length arrays with flexible-array members

2022-06-27 Thread Jason Gunthorpe
On Mon, Jun 27, 2022 at 08:27:37PM +0200, Daniel Borkmann wrote: > On 6/27/22 8:04 PM, Gustavo A. R. Silva wrote: > > There is a regular need in the kernel to provide a way to declare > > having a dynamically sized set of trailing elements in a structure. > > Kernel code should always use

[PATCH] drm/doc: Fix comment typo

2022-06-27 Thread Marek Vasut
Replace apprpriately with appropriately. Fixes: 1e4d84c6589e9 ("drm/doc: Polish plane composition property docs") Signed-off-by: Marek Vasut Cc: Benjamin Gaignard Cc: Daniel Vetter Cc: Dmitry Baryshkov Cc: Maxime Ripard Cc: Sean Paul Cc: Simon Ser Cc: Ville Syrjälä ---

[PATCH v6 13/14] tools: add hmm gup tests for device coherent type

2022-06-27 Thread Alex Sierra
The intention is to test hmm device coherent type under different get user pages paths. Also, test gup with FOLL_LONGTERM flag set in device coherent pages. These pages should get migrated back to system memory. Signed-off-by: Alex Sierra Reviewed-by: Alistair Popple ---

[PATCH v6 11/14] tools: update hmm-test to support device coherent type

2022-06-27 Thread Alex Sierra
Test cases such as migrate_fault and migrate_multiple, were modified to explicit migrate from device to sys memory without the need of page faults, when using device coherent type. Snapshot test case updated to read memory device type first and based on that, get the proper returned results

[PATCH v6 09/14] lib: test_hmm add module param for zone device type

2022-06-27 Thread Alex Sierra
In order to configure device coherent in test_hmm, two module parameters should be passed, which correspond to the SP start address of each device (2) spm_addr_dev0 & spm_addr_dev1. If no parameters are passed, private device type is configured. Signed-off-by: Alex Sierra Acked-by: Felix

[PATCH v6 14/14] tools: add selftests to hmm for COW in device memory

2022-06-27 Thread Alex Sierra
The objective is to test device migration mechanism in pages marked as COW, for private and coherent device type. In case of writing to COW private page(s), a page fault will migrate pages back to system memory first. Then, these pages will be duplicated. In case of COW device coherent type, pages

[PATCH v6 10/14] lib: add support for device coherent type in test_hmm

2022-06-27 Thread Alex Sierra
Device Coherent type uses device memory that is coherently accesible by the CPU. This could be shown as SP (special purpose) memory range at the BIOS-e820 memory enumeration. If no SP memory is supported in system, this could be faked by setting CONFIG_EFI_FAKE_MEMMAP. Currently, test_hmm only

[PATCH v6 07/14] drm/amdkfd: add SPM support for SVM

2022-06-27 Thread Alex Sierra
When CPU is connected throug XGMI, it has coherent access to VRAM resource. In this case that resource is taken from a table in the device gmc aperture base. This resource is used along with the device type, which could be DEVICE_PRIVATE or DEVICE_COHERENT to create the device page map region.

[PATCH v6 06/14] mm: add device coherent checker to is_pinnable_page

2022-06-27 Thread Alex Sierra
is_device_coherent checker was added to is_pinnable_page and renamed to is_longterm_pinnable_page. The reason is that device coherent pages are not supported for longterm pinning. Signed-off-by: Alex Sierra --- include/linux/memremap.h | 25 + include/linux/mm.h |

[PATCH v6 12/14] tools: update test_hmm script to support SP config

2022-06-27 Thread Alex Sierra
Add two more parameters to set spm_addr_dev0 & spm_addr_dev1 addresses. These two parameters configure the start SP addresses for each device in test_hmm driver. Consequently, this configures zone device type as coherent. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling Reviewed-by: Alistair

[PATCH v6 08/14] lib: test_hmm add ioctl to get zone device type

2022-06-27 Thread Alex Sierra
new ioctl cmd added to query zone device type. This will be used once the test_hmm adds zone device coherent type. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling Reviewed-by: Alistair Poppple Signed-off-by: Christoph Hellwig --- lib/test_hmm.c | 11 +-- lib/test_hmm_uapi.h

[PATCH v6 03/14] mm: add device coherent vma selection for memory migration

2022-06-27 Thread Alex Sierra
This case is used to migrate pages from device memory, back to system memory. Device coherent type memory is cache coherent from device and CPU point of view. Signed-off-by: Alex Sierra Acked-by: Felix Kuehling Reviewed-by: Alistair Poppple Signed-off-by: Christoph Hellwig ---

[PATCH v6 04/14] mm: remove the vma check in migrate_vma_setup()

2022-06-27 Thread Alex Sierra
From: Alistair Popple migrate_vma_setup() checks that a valid vma is passed so that the page tables can be walked to find the pfns associated with a given address range. However in some cases the pfns are already known, such as when migrating device coherent pages during pin_user_pages() meaning

[PATCH v6 05/14] mm/gup: migrate device coherent pages when pinning instead of failing

2022-06-27 Thread Alex Sierra
From: Alistair Popple Currently any attempts to pin a device coherent page will fail. This is because device coherent pages need to be managed by a device driver, and pinning them would prevent a driver from migrating them off the device. However this is no reason to fail pinning of these

[PATCH v6 02/14] mm: handling Non-LRU pages returned by vm_normal_pages

2022-06-27 Thread Alex Sierra
With DEVICE_COHERENT, we'll soon have vm_normal_pages() return device-managed anonymous pages that are not LRU pages. Although they behave like normal pages for purposes of mapping in CPU page, and for COW. They do not support LRU lists, NUMA migration or THP. We also introduced a FOLL_LRU flag

[PATCH v6 01/14] mm: add zone device coherent type memory support

2022-06-27 Thread Alex Sierra
Device memory that is cache coherent from device and CPU point of view. This is used on platforms that have an advanced system bus (like CAPI or CXL). Any page of a process can be migrated to such memory. However, no one should be allowed to pin such memory so that it can always be evicted.

[PATCH v6 00/14] Add MEMORY_DEVICE_COHERENT for coherent device memory mapping

2022-06-27 Thread Alex Sierra
This is our MEMORY_DEVICE_COHERENT patch series rebased and updated for current 5.19.0-rc4 Changes since the last version: - Fixed problems with migration during long-term pinning in get_user_pages - Open coded vm_normal_lru_pages as suggested in previous code review - Update hmm_gup_test with

[Bug 216143] [bisected] garbled screen when starting X + dmesg cluttered with "[drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed in the dependencies handling -1431655766!"

2022-06-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216143 --- Comment #6 from Erhard F. (erhar...@mailbox.org) --- It does not apply on top of 5.18.7 nor on top of 5.19-rc4. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.

[Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390

2022-06-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216119 --- Comment #23 from Harald Judt (h.j...@gmx.at) --- Created attachment 301291 --> https://bugzilla.kernel.org/attachment.cgi?id=301291=edit mailing-list-patch-adapted-for-5.18.7.patch I had to adapt the patch for 5.18.7. I hope this is right,

Re: [PATCH v3 2/6] dt-bindings: Use new video interface bus type macros in examples

2022-06-27 Thread Laurent Pinchart
Hi Rob, On Mon, Jun 27, 2022 at 04:16:08PM -0600, Rob Herring wrote: > On Thu, Jun 16, 2022 at 01:14:06AM +0300, Laurent Pinchart wrote: > > Now that a header exists with macros for the media interface bus-type > > values, replace hardcoding numerical constants with the corresponding > > macros

Re: [PATCH 05/14] dt-bindings: timer: add Canaan k210 to Synopsys DesignWare timer

2022-06-27 Thread Rob Herring
On Sat, Jun 18, 2022 at 01:30:27PM +0100, Conor Dooley wrote: > From: Conor Dooley > > The Canaan k210 apparently has a Sysnopsys Designware timer but > according to the documentation & devicetree it has 2 interrupts rather > than the standard one. Add a custom compatible that supports the 2 >

Re: [PATCH 04/14] dt-bindings: dma: add Canaan k210 to Synopsys DesignWare DMA

2022-06-27 Thread Rob Herring
On Sat, Jun 18, 2022 at 01:30:26PM +0100, Conor Dooley wrote: > From: Conor Dooley > > The Canaan k210 apparently has a Sysnopsys Designware AXI DMA > controller, but according to the documentation & devicetree it has 6 > interrupts rather than the standard one. Add a custom compatible that >

Re: [PATCH 03/14] ASoC: dt-bindings: convert designware-i2s to dt-schema

2022-06-27 Thread Rob Herring
On Sat, Jun 18, 2022 at 01:30:25PM +0100, Conor Dooley wrote: > From: Conor Dooley > > Convert the Synopsys DesignWare I2S controller binding to dt-schema. > There was no listed maintainer but Jose Abreu was the last editor of the > txt binding so add him as maintainer. > > Signed-off-by: Conor

Re: [PATCH 01/14] dt-bindings: display: convert ilitek,ili9341.txt to dt-schema

2022-06-27 Thread Rob Herring
On Sat, 18 Jun 2022 13:30:23 +0100, Conor Dooley wrote: > From: Conor Dooley > > A dt-schema binding for the Ilitek ili9341 was created as > panel/ilitek,ili9341.yaml but the txt binding was ignored in the > process. Move the remaining items in the txt binding to the yaml one & > delete it. > >

Re: [PATCH v1 2/3] drm/msm/dp: decoupling dp->id out of dp controller_id at scxxxx_dp_cfg table

2022-06-27 Thread Doug Anderson
Hi, On Sat, Jun 25, 2022 at 1:48 AM Dmitry Baryshkov wrote: > > On Sat, 25 Jun 2022 at 04:23, Abhinav Kumar wrote: > > On 6/24/2022 5:11 PM, Dmitry Baryshkov wrote: > > > On Sat, 25 Jun 2022 at 03:03, Abhinav Kumar > > > wrote: > > >> On 6/24/2022 4:56 PM, Kuogee Hsieh wrote: > > >> diff

Re: [PATCH 02/14] dt-bindings: display: panel: allow ilitek,ili9341 in isolation

2022-06-27 Thread Rob Herring
On Sat, Jun 18, 2022 at 01:30:24PM +0100, Conor Dooley wrote: > From: Conor Dooley > > The dt-binding for the ilitek,ili9341 does not allow it to be used as a > compatible in isolation. This generates a warning for the Canaan kd233 > devicetree: > arch/riscv/boot/dts/canaan/canaan_kd233.dtb:

[PATCH] drm/i915/guc/slpc: Add a new SLPC selftest

2022-06-27 Thread Vinay Belgaumkar
This test will validate we can achieve actual frequency of RP0. Pcode grants frequencies based on what GuC is requesting. However, thermal throttling can limit what is being granted. Add a test to request for max, but don't fail the test if RP0 is not granted due to throttle reasons. Also

Re: [PATCH] drm/i915/guc/slpc: Add a new SLPC selftest

2022-06-27 Thread Belgaumkar, Vinay
On 6/24/2022 8:59 PM, Dixit, Ashutosh wrote: On Thu, 23 Jun 2022 16:33:20 -0700, Vinay Belgaumkar wrote: +static int max_granted_freq(struct intel_guc_slpc *slpc, struct intel_rps *rps, u32 *max_act_freq) +{ + struct intel_gt *gt = rps_to_gt(rps); + u32 perf_limit_reasons; +

Re: [Intel-gfx] [PATCH] drm/i915/guc/slpc: Add a new SLPC selftest

2022-06-27 Thread Belgaumkar, Vinay
On 6/24/2022 8:59 PM, Dixit, Ashutosh wrote: On Thu, 23 Jun 2022 16:21:46 -0700, Belgaumkar, Vinay wrote: On 6/22/2022 1:32 PM, Dixit, Ashutosh wrote: On Fri, 10 Jun 2022 16:47:12 -0700, Vinay Belgaumkar wrote: This test will validate we can achieve actual frequency of RP0. Pcode grants

Re: [PATCH] drm/i915/guc/slpc: Add a new SLPC selftest

2022-06-27 Thread Belgaumkar, Vinay
On 6/24/2022 8:59 PM, Dixit, Ashutosh wrote: On Thu, 23 Jun 2022 16:33:20 -0700, Vinay Belgaumkar wrote: +static int max_granted_freq(struct intel_guc_slpc *slpc, struct intel_rps *rps, u32 *max_act_freq) +{ + struct intel_gt *gt = rps_to_gt(rps); + u32 perf_limit_reasons; +

[CI 2/2] iosys-map: Add per-word write

2022-06-27 Thread Lucas De Marchi
Like was done for read, provide the equivalent for write. Even if current users are not in the hot path, this should future-proof it. v2: - Remove default from _Generic() - callers wanting to write more than u64 should use iosys_map_memcpy_to() - Add WRITE_ONCE() cases dereferencing the

[CI 1/2] iosys-map: Add per-word read

2022-06-27 Thread Lucas De Marchi
Instead of always falling back to memcpy_fromio() for any size, prefer using read{b,w,l}(). When reading struct members it's common to read individual integer variables individually. Going through memcpy_fromio() for each of them poses a high penalty. Employ a similar trick as __seqprop() by

Re: [PATCH v2 03/11] clk: fixed-factor: Introduce *clk_hw_register_fixed_factor_parent_hw()

2022-06-27 Thread Marijn Suijten
On 2022-06-10 12:01:10, Stephen Boyd wrote: > Quoting Marijn Suijten (2022-06-10 00:46:32) > > On 2022-06-09 15:12:09, Stephen Boyd wrote: > > > Quoting Dmitry Baryshkov (2022-06-02 03:20:19) > > > > On Thu, 2 Jun 2022 at 01:07, Marijn Suijten > > > > wrote: > > > > > diff --git

  1   2   3   >