[PULL] drm-misc-next

2021-09-16 Thread Maxime Ripard
Hi Dave, Daniel, Here's the first drm-misc-next PR for 5.16 Thanks! Maxime drm-misc-next-2021-09-16: drm-misc-next for $kernel-version: UAPI Changes: Cross-subsystem Changes: - dma-buf: Avoid a warning with some allocations, Remove DMA_FENCE_TRACE macros Core Changes: - bridge: New he

[PATCH] drm: panel: nt36672a: Removed extra whitespace.

2021-09-16 Thread Cai Huoqing
Removed extra whitespace before dev_err_probe() according to coding style. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/panel/panel-novatek-nt36672a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36672a.c b/drivers/gpu/drm/panel/pan

[PATCH] drm/stm: dsi: Improve use of dev_err_probe()

2021-09-16 Thread Cai Huoqing
Return dev_err_probe() directly, because the return value of dev_err_probe() is the appropriate error code, and it can reduce code size, simplify the code. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --g

[PATCH] drm/tegra: plane: Improve use of dev_err_probe()

2021-09-16 Thread Cai Huoqing
Return dev_err_probe() directly, because the return value of dev_err_probe() is the appropriate error code, and it can reduce code size, simplify the code. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/tegra/plane.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff -

[PATCH] drm/vmwgfx: Fix spelling mistake "vmw_surface_cach" -> "vmw_surface_cache"

2021-09-16 Thread Colin King
From: Colin Ian King There is a spelling mistake in the cache argument in the comment block, fix it. Signed-off-by: Colin Ian King --- drivers/gpu/drm/vmwgfx/vmw_surface_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vmwgfx/vmw_surface_cache.h b/dr

[Bug 214427] New: Amdgpu hangs kernel on boot trying init debugfs

2021-09-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=214427 Bug ID: 214427 Summary: Amdgpu hangs kernel on boot trying init debugfs Product: Drivers Version: 2.5 Kernel Version: 5.14.4 Hardware: x86-64 OS: Linux Tree:

[Bug 214427] Amdgpu hangs kernel on boot trying init debugfs

2021-09-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=214427 --- Comment #1 from Ilia (infer...@gmail.com) --- Created attachment 298833 --> https://bugzilla.kernel.org/attachment.cgi?id=298833&action=edit Kernel config -- You may reply to this email to add a comment. You are receiving this mail becaus

[Bug 214427] Amdgpu hangs kernel on boot trying init debugfs

2021-09-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=214427 --- Comment #2 from Ilia (infer...@gmail.com) --- Also my GPU is Polaris RX460 (ASUS ROG 4Gb) flashed with bios from RX560. Past 3 years all was working good. -- You may reply to this email to add a comment. You are receiving this mail because:

Re: [Intel-gfx] [PATCH] drm/i915: zero fill vma name buffer

2021-09-16 Thread Tvrtko Ursulin
On 15/09/2021 20:23, Tim Gardner wrote: In capture_vma() Coverity complains of a possible buffer overrun. Even though this is a static function where all call sites can be checked, limiting the copy length could save some future grief. CID 93300 (#1 of 1): Copy into fixed size buffer (STRING_O

Re: [PATCH 1/9] drm/connector: Add support for privacy-screen properties (v4)

2021-09-16 Thread Jani Nikula
On Wed, 15 Sep 2021, Lyude Paul wrote: > On Mon, 2021-09-06 at 09:35 +0200, Hans de Goede wrote: >>   >> +   /** >> +    * @privacy_screen_sw_state: See :ref:`Standard Connector >> +    * Properties` >> +    */ > > So THAT'S how you reference other sections. I've always wondered!

Re: [PATCH V5 00/11] PCI/VGA: Rework default VGA device selection

2021-09-16 Thread Huacai Chen
Hi, Bjorn, On Wed, Sep 15, 2021 at 3:18 AM Bjorn Helgaas wrote: > > On Sat, Sep 11, 2021 at 05:30:45PM +0800, Huacai Chen wrote: > > My original work is at [1]. > > > > Current default VGA device selection fails in some cases: > > > > - On BMC system, the AST2500 bridge [1a03:1150] does not imp

[PATCH V6 00/12] PCI/VGA: Rework default VGA device selection

2021-09-16 Thread Huacai Chen
My original work is at [1]. Current default VGA device selection fails in some cases: - On BMC system, the AST2500 bridge [1a03:1150] does not implement PCI_BRIDGE_CTL_VGA [1]. This is perfectly legal but means the legacy VGA resources won't reach downstream devices unless they're

Re: [Intel-gfx] [PATCH 08/27] drm/i915: Add logical engine mapping

2021-09-16 Thread Tvrtko Ursulin
On 15/09/2021 17:58, Matthew Brost wrote: On Wed, Sep 15, 2021 at 09:24:15AM +0100, Tvrtko Ursulin wrote: On 14/09/2021 19:04, Matthew Brost wrote: On Tue, Sep 14, 2021 at 09:34:08AM +0100, Tvrtko Ursulin wrote: 8< Today we have: for_each intel_engines: // intel_engines is a flat list

[PATCH V6 01/12] PCI/VGA: Prefer vga_default_device()

2021-09-16 Thread Huacai Chen
Use the vga_default_device() interface consistently instead of directly testing vga_default. No functional change intended. Signed-off-by: Huacai Chen Signed-off-by: Bjorn Helgaas --- drivers/gpu/vga/vgaarb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu

[PATCH V6 02/12] PCI/VGA: Move vga_arb_integrated_gpu() earlier in file

2021-09-16 Thread Huacai Chen
Move vga_arb_integrated_gpu() earlier in file to prepare for future patch. No functional change intended. Signed-off-by: Huacai Chen Signed-off-by: Bjorn Helgaas --- drivers/gpu/vga/vgaarb.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drive

[PATCH V6 03/12] PCI/VGA: Split out vga_arb_update_default_device()

2021-09-16 Thread Huacai Chen
This patch is the first step of the rework: If there's no default VGA device, and we find a VGA device that owns the legacy VGA resources, we make that device the default. Split this logic out from vga_arbiter_add_ pci_device() into a new function, vga_arb_update_default_device(). Signed-off-by: H

[PATCH V6 04/12] PCI/VGA: Prefer VGA device with legacy I/O enabled

2021-09-16 Thread Huacai Chen
This patch is the second step of the rework: A VGA device with legacy I/O resources enabled is more preferred than those not enabled. Signed-off-by: Huacai Chen Signed-off-by: Bjorn Helgaas --- drivers/gpu/vga/vgaarb.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-)

[PATCH V6 05/12] PCI/VGA: Prefer VGA device belongs to integrated GPU

2021-09-16 Thread Huacai Chen
This patch is the third step of the rework: A VGA device belongs to integrated GPU is more preferred than those not belong to. Signed-off-by: Huacai Chen Signed-off-by: Bjorn Helgaas --- drivers/gpu/vga/vgaarb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/vga/vgaarb.c b

[PATCH V6 06/12] PCI/VGA: Prefer VGA device owns the firmware framebuffer

2021-09-16 Thread Huacai Chen
This patch is the fourth step of the rework: On X86 and IA64 platform, update default VGA device if the new found device owns the firmware framebuffer because it is the most preferred. Signed-off-by: Huacai Chen Signed-off-by: Bjorn Helgaas --- drivers/gpu/vga/vgaarb.c | 45

[PATCH V6 07/12] PCI/VGA: Remove vga_arb_select_default_device()

2021-09-16 Thread Huacai Chen
This patch is the last step of the rework: Since vga_arb_update_default_ device() is complete, we can remove vga_arb_select_default_device() and its call-site. Signed-off-by: Huacai Chen Signed-off-by: Bjorn Helgaas --- drivers/gpu/vga/vgaarb.c | 89 1 f

[PATCH V6 08/12] PCI/VGA: Remove empty vga_arb_device_card_gone()

2021-09-16 Thread Huacai Chen
From: Bjorn Helgaas vga_arb_device_card_gone() has always been empty. Remove it. Signed-off-by: Bjorn Helgaas Signed-off-by: Huacai Chen --- drivers/gpu/vga/vgaarb.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vg

[PATCH V6 09/12] PCI/VGA: Log bridge control messages when adding devices

2021-09-16 Thread Huacai Chen
Previously vga_arb_device_init() iterated through all VGA devices and indicated whether legacy VGA routing to each could be controlled by an upstream bridge. But we determine that information in vga_arbiter_add_pci_device(), which we call for every device, so we can log it there without iterating

[PATCH V6 10/12] PCI/VGA: Use unsigned format string to print lock counts

2021-09-16 Thread Huacai Chen
From: Bjorn Helgaas In struct vga_device, io_lock_cnt and mem_lock_cnt are unsigned, but we previously printed them with "%d", the signed decimal format. Print them with the unsigned format "%u" instead. Signed-off-by: Bjorn Helgaas Signed-off-by: Huacai Chen --- drivers/gpu/vga/vgaarb.c | 2

[PATCH V6 11/12] PCI/VGA: Replace full MIT license text with SPDX identifier

2021-09-16 Thread Huacai Chen
From: Bjorn Helgaas Per Documentation/process/license-rules.rst, the SPDX MIT identifier is equivalent to including the entire MIT license text from LICENSES/preferred/MIT. Replace the MIT license text with the equivalent SPDX identifier. Signed-off-by: Bjorn Helgaas Signed-off-by: Huacai Chen

[PATCH V6 12/12] PCI/VGA: Move vgaarb to drivers/pci

2021-09-16 Thread Huacai Chen
From: Bjorn Helgaas The VGA arbiter is really PCI-specific and doesn't depend on any GPU things. Move it to the PCI subsystem. Signed-off-by: Bjorn Helgaas Signed-off-by: Huacai Chen --- drivers/gpu/vga/Kconfig | 19 --- drivers/gpu/vga/Makefile | 1 - dri

Re: [PATCH 2/9] drm: Add privacy-screen class (v3)

2021-09-16 Thread Hans de Goede
Hi Lyude, Thank you very much for the review of this series. On 9/15/21 10:01 PM, Lyude Paul wrote: > On Mon, 2021-09-06 at 09:35 +0200, Hans de Goede wrote: >> On some new laptops the LCD panel has a builtin electronic privacy-screen. >> We want to export this functionality as a property on the

Re: [PATCH 01/14] dma-buf: add dma_resv_for_each_fence_unlocked

2021-09-16 Thread Christian König
Am 14.09.21 um 19:04 schrieb Daniel Vetter: On Fri, Sep 10, 2021 at 10:26:42AM +0200, Christian König wrote: Abstract the complexity of iterating over all the fences in a dma_resv object. The new loop handles the whole RCU and retry dance and returns only fences where we can be sure we grabbed

Re: [PATCH 3/9] drm/privacy-screen: Add X86 specific arch init code

2021-09-16 Thread Jani Nikula
On Mon, 06 Sep 2021, Hans de Goede wrote: > Add X86 specific arch init code, which fills the privacy-screen lookup > table by checking for various vendor specific ACPI interfaces for > controlling the privacy-screen. > > This initial version only checks for the Lenovo Thinkpad specific ACPI > meth

Re: [PATCH v3 06/12] drm/ttm: add TTM_PAGE_FLAG_EXTERNAL_MAPPABLE

2021-09-16 Thread Thomas Hellström
On Thu, 2021-09-16 at 08:55 +0200, Christian König wrote: > > > Am 15.09.21 um 20:59 schrieb Matthew Auld: > > In commit: > > > > commit 667a50db0477d47fdff01c666f5ee1ce26b5264c > > Author: Thomas Hellstrom > > Date:   Fri Jan 3 11:17:18 2014 +0100 > > > > drm/ttm: Refuse to fault (prime-

Re: [PATCH 4/9] drm/privacy-screen: Add notifier support

2021-09-16 Thread Hans de Goede
Hi, On 9/15/21 10:26 PM, Lyude Paul wrote: > On Mon, 2021-09-06 at 09:35 +0200, Hans de Goede wrote: >> Add support for privacy-screen consumers to register a notifier to >> be notified of external (e.g. done by the hw itself on a hotkey press) >> state changes. >> >> Reviewed-by: Emil Velikov >>

Re: [PATCH 8/9] platform/x86: thinkpad_acpi: Register a privacy-screen device

2021-09-16 Thread Hans de Goede
Hi, On 9/15/21 10:55 PM, Lyude Paul wrote: > On Mon, 2021-09-06 at 09:35 +0200, Hans de Goede wrote: >> Register a privacy-screen device on laptops with a privacy-screen, >> this exports the PrivacyGuard features to user-space using a >> standardized vendor-agnostic sysfs interface. Note the sysfs

Re: [PATCH 9/9] drm/i915: Add privacy-screen support

2021-09-16 Thread Hans de Goede
Hi, On 9/15/21 11:11 PM, Lyude Paul wrote: > On Mon, 2021-09-06 at 09:35 +0200, Hans de Goede wrote: >> Add support for eDP panels with a built-in privacy screen using the >> new drm_privacy_screen class. >> >> One thing which stands out here is the addition of these 2 lines to >> intel_atomic_com

[PATCH 00/24] Fix some issues at documentation

2021-09-16 Thread Mauro Carvalho Chehab
Hi John, The first patch in this series fix a bad character used instead of a "(c)" UTF-8 symbol. The remaining ones fix several broken references to files under Documentation/, several due to DT schema conversions from .txt to .yaml. Mauro Carvalho Chehab (24): visorbus: fix a copyright symbo

[PATCH 03/24] dt-bindings: arm: mediatek: mmsys: update mediatek, mmsys.yaml reference

2021-09-16 Thread Mauro Carvalho Chehab
Changeset cba3c40d1f97 ("dt-bindings: arm: mediatek: mmsys: convert to YAML format") renamed: Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt to: Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml. Update its cross-reference accordingly. Fixes: cba3c40d1f97 ("dt

Re: [PATCH 3/9] drm/privacy-screen: Add X86 specific arch init code

2021-09-16 Thread Hans de Goede
Hi, On 9/16/21 10:51 AM, Jani Nikula wrote: > On Mon, 06 Sep 2021, Hans de Goede wrote: >> Add X86 specific arch init code, which fills the privacy-screen lookup >> table by checking for various vendor specific ACPI interfaces for >> controlling the privacy-screen. >> >> This initial version only

Re: New uAPI for color management proposal and feedback request v2

2021-09-16 Thread Pekka Paalanen
On Tue, 3 Aug 2021 11:38:19 +0200 Werner Sembach wrote: > Greetings, > > Original proposal: > https://www.mail-archive.com/amd-gfx@lists.freedesktop.org/msg62387.html > > Abstract: Add "preferred color format", "active color format", "active bpc", > and "active Broadcast RGB" drm properties,

Re: [PATCH 0/9] drm: Add privacy-screen class and connector properties

2021-09-16 Thread Hans de Goede
Hi, On 9/15/21 11:12 PM, Lyude Paul wrote: > OK! Looked over all of these patches. Patches 2 and 4 have some comments that > should be addressed, but otherwise this series is: > > Reviewed-by: Lyude Paul Thank you! > Let me know when/if you need help pushing this upstream My plan was to just

Re: [Intel-gfx] [RFC PATCH 2/2] drm/i915/gt: Use spin_lock_irq() instead of local_irq_disable() + spin_lock()

2021-09-16 Thread Maarten Lankhorst
Op 08-09-2021 om 20:57 schreef Sebastian Andrzej Siewior: > execlists_dequeue() is invoked from a function which uses > local_irq_disable() to disable interrupts so the spin_lock() behaves > like spin_lock_irq(). > This breaks PREEMPT_RT because local_irq_disable() + spin_lock() is not > the same a

Re: [PATCH 9/9] drm/i915: Add privacy-screen support

2021-09-16 Thread Jani Nikula
Cc: Ville for input here, see question inline. On Mon, 06 Sep 2021, Hans de Goede wrote: > Add support for eDP panels with a built-in privacy screen using the > new drm_privacy_screen class. > > One thing which stands out here is the addition of these 2 lines to > intel_atomic_commit_tail: > >

[PATCH 1/6] lib/scatterlist: Add contiguous DMA chunks helpers

2021-09-16 Thread Thierry Reding
From: Thierry Reding Add a few helpers to count the number of contiguous DMA chunks found in an SG table. This is useful to determine whether or not a mapping can be used by drivers whose devices need contiguous memory. Signed-off-by: Thierry Reding --- include/linux/scatterlist.h | 11 +++

[PATCH 2/6] drm/tegra: Implement correct DMA-BUF semantics

2021-09-16 Thread Thierry Reding
From: Thierry Reding DMA-BUF requires that each device that accesses a DMA-BUF attaches to it separately. To do so the host1x_bo_pin() and host1x_bo_unpin() functions need to be reimplemented so that they can return a mapping, which either represents an attachment or a map of the driver's own GEM

[PATCH 4/6] drm/tegra: Do not reference tegra_plane_funcs directly

2021-09-16 Thread Thierry Reding
From: Thierry Reding Instead of referencing the tegra_plane_funcs struct directly, use each plane's vtable instead. This makes it more future-proof in case any of the planes ever use a different set of functions. Signed-off-by: Thierry Reding --- drivers/gpu/drm/tegra/dc.c | 4 ++-- 1 file cha

[PATCH 3/6] drm/tegra: Implement buffer object cache

2021-09-16 Thread Thierry Reding
From: Thierry Reding This cache is used to avoid mapping and unmapping buffer objects unnecessarily. Mappings are cached per client and stay hot until the buffer object is destroyed. Signed-off-by: Thierry Reding --- drivers/gpu/drm/tegra/gem.c | 14 +-- drivers/gpu/drm/tegra/plane.c |

[PATCH 6/6] drm/tegra: Support asynchronous commits for cursor

2021-09-16 Thread Thierry Reding
From: Thierry Reding This adds support for asynchronously updating the cursor plane, which enables support for the legacy cursor IOCTLs. Signed-off-by: Thierry Reding --- drivers/gpu/drm/tegra/dc.c | 80 -- 1 file changed, 76 insertions(+), 4 deletions(-) d

[PATCH 5/6] drm/tegra: Propagate errors from drm_gem_plane_helper_prepare_fb()

2021-09-16 Thread Thierry Reding
From: Thierry Reding Currently this function doesn't return an error, but that may change in the future, so make sure to propagate any error codes that it might return. Signed-off-by: Thierry Reding --- drivers/gpu/drm/tegra/plane.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) di

[PATCH v2 00/23] Fix some issues at documentation

2021-09-16 Thread Mauro Carvalho Chehab
Hi John, Please ignore the previous series I sent today [1]. I forgot that I had already submitted a first version of this series. [1] https://lore.kernel.org/all/cover.1631783482.git.mchehab+hua...@kernel.org/ The first patch in this series fix a bad character used instead of a "(c)" UTF-8 s

[PATCH v2 03/23] dt-bindings: arm: mediatek: mmsys: update mediatek, mmsys.yaml reference

2021-09-16 Thread Mauro Carvalho Chehab
Changeset cba3c40d1f97 ("dt-bindings: arm: mediatek: mmsys: convert to YAML format") renamed: Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt to: Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml. Update its cross-reference accordingly. Fixes: cba3c40d1f97 ("dt

Re: [PATCH v3 06/12] drm/ttm: add TTM_PAGE_FLAG_EXTERNAL_MAPPABLE

2021-09-16 Thread Matthew Auld
On 16/09/2021 10:03, Thomas Hellström wrote: On Thu, 2021-09-16 at 08:55 +0200, Christian König wrote: Am 15.09.21 um 20:59 schrieb Matthew Auld: In commit: commit 667a50db0477d47fdff01c666f5ee1ce26b5264c Author: Thomas Hellstrom Date:   Fri Jan 3 11:17:18 2014 +0100 drm/ttm: Refuse

Re: [PATCH v3 06/12] drm/ttm: add TTM_PAGE_FLAG_EXTERNAL_MAPPABLE

2021-09-16 Thread Thomas Hellström
On 9/16/21 11:58 AM, Matthew Auld wrote: On 16/09/2021 10:03, Thomas Hellström wrote: On Thu, 2021-09-16 at 08:55 +0200, Christian König wrote: Am 15.09.21 um 20:59 schrieb Matthew Auld: In commit: commit 667a50db0477d47fdff01c666f5ee1ce26b5264c Author: Thomas Hellstrom Date:   Fri Jan 3

[PATCH] drm/bridge/tc358775: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/

[PATCH] drm/mcde: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/

Re: [PATCH 0/9] drm: Add privacy-screen class and connector properties

2021-09-16 Thread Jani Nikula
On Thu, 16 Sep 2021, Hans de Goede wrote: > Hi, > > On 9/15/21 11:12 PM, Lyude Paul wrote: >> OK! Looked over all of these patches. Patches 2 and 4 have some comments that >> should be addressed, but otherwise this series is: >> >> Reviewed-by: Lyude Paul > > Thank you! > >> Let me know when/if

Re: [PATCH v3 1/6] drm/i915/ttm: Implement a function to copy the contents of two TTM-based objects

2021-09-16 Thread Matthew Auld
On 14/09/2021 20:31, Thomas Hellström wrote: When backing up or restoring contents of pinned objects at suspend / resume time we need to allocate a new object as the backup. Add a function to facilitate copies between the two. Some data needs to be copied before the migration context is ready for

Re: [PATCH v3 2/6] drm/i915/gem: Implement a function to process all gem objects of a region

2021-09-16 Thread Matthew Auld
On 14/09/2021 20:31, Thomas Hellström wrote: An upcoming common pattern is to traverse the region object list and perform certain actions on all objects in a region. It's a little tricky to get the list locking right, in particular since a gem object may change region unless it's pinned or the ob

Re: [PATCH 9/9] drm/i915: Add privacy-screen support

2021-09-16 Thread Hans de Goede
Hi, On 9/16/21 11:40 AM, Jani Nikula wrote: > > Cc: Ville for input here, see question inline. > > On Mon, 06 Sep 2021, Hans de Goede wrote: >> Add support for eDP panels with a built-in privacy screen using the >> new drm_privacy_screen class. >> >> One thing which stands out here is the addit

Re: [PATCH 3/6] drm/tegra: Implement buffer object cache

2021-09-16 Thread Mikko Perttunen
On 9/16/21 12:44 PM, Thierry Reding wrote: From: Thierry Reding ... diff --git a/drivers/gpu/drm/tegra/uapi.c b/drivers/gpu/drm/tegra/uapi.c index 794c400c38b1..66fe8717e747 100644 --- a/drivers/gpu/drm/tegra/uapi.c +++ b/drivers/gpu/drm/tegra/uapi.c @@ -201,7 +201,8 @@ int tegra_drm_ioctl_chann

[PATCH] drm/panel: ej030na: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/

[PATCH] drm/panel: fy07024di26a30d: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- .../drm/panel/pa

[PATCH] drm/panel: ili9881c: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/

[PATCH] drm/panel: k101-im2ba02: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/

Re: [Intel-gfx] [PATCH] drm/i915: zero fill vma name buffer

2021-09-16 Thread Jani Nikula
On Thu, 16 Sep 2021, Tvrtko Ursulin wrote: > On 15/09/2021 20:23, Tim Gardner wrote: >> In capture_vma() Coverity complains of a possible buffer overrun. Even >> though this is a static function where all call sites can be checked, >> limiting the copy length could save some future grief. >> >> C

[PATCH] drm/panel: ls037v7dw01: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- .../gpu/drm/panel/pa

[PATCH] drm/panel: nt39016: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/pane

[PATCH] drm/panel: s6e63j0x03: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- .../gpu/drm/panel/pa

[PATCH] drm/panel: sofef00: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/pane

[PATCH] drm/panel: td043mtea1: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/pane

[PATCH] drm/panel: xpp055c272: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- .../gpu/drm/panel/pa

[PATCH] drm/panel: y030xx067a: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/pane

[Bug 214427] Amdgpu hangs kernel on boot trying init debugfs

2021-09-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=214427 --- Comment #3 from Ilia (infer...@gmail.com) --- Created attachment 298835 --> https://bugzilla.kernel.org/attachment.cgi?id=298835&action=edit config patch It seems like amdgpu strongly requires access to debugfs and panics when CONFIG_DEBUG_

[PATCH] drm/sun4i: dsi: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/sun4

[PATCH] drm/sun4i: dw-hdmi: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/sun4

[PATCH] drm/tegra: dsi: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/tegr

[PATCH] drm/tegra: sor: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/tegr

Re: [Intel-gfx] [PATCH v9 04/17] drm/i915/pxp: allocate a vcs context for pxp usage

2021-09-16 Thread Jani Nikula
On Wed, 15 Sep 2021, Rodrigo Vivi wrote: > On Wed, Sep 15, 2021 at 04:53:35PM +0300, Jani Nikula wrote: >> On Fri, 10 Sep 2021, Daniele Ceraolo Spurio >> wrote: >> > diff --git a/drivers/gpu/drm/i915/pxp/intel_pxp.h >> > b/drivers/gpu/drm/i915/pxp/intel_pxp.h >> > new file mode 100644 >> > inde

Re: [PATCH] drm/panel: k101-im2ba02: Make use of the helper function dev_err_probe()

2021-09-16 Thread Icenowy Zheng
在 2021-09-16星期四的 18:42 +0800,Cai Huoqing写道: > When possible use dev_err_probe help to properly deal with the > PROBE_DEFER error, the benefit is that DEFER issue will be logged > in the devices_deferred debugfs file. > And using dev_err_probe() can reduce code size, and the error value > gets print

Re: [PATCH 3/3] drm/v3d: add multiple syncobjs support

2021-09-16 Thread Iago Toral
I think this looks good overall, I have a few questions/commments below: On Wed, 2021-08-18 at 18:57 +0100, Melissa Wen wrote: > Using the generic extension support set in the previous patch, this > patch enables more than one in/out binary syncobj per job submission. > Arrays of syncobjs are set

Deploying new iterator interface for dma-buf

2021-09-16 Thread Christian König
Next round for that one here, maybe the CI systems are now more gracefully with me :) I'm pretty sure that a couple of those dma_resv_for_each_fence_unlocked should actually be replaced with lock+dma_resv_for_each_fence, but that needs more auditing. Please review and comment. Thanks, Christian.

[PATCH 01/26] dma-buf: add dma_resv_for_each_fence_unlocked v2

2021-09-16 Thread Christian König
Abstract the complexity of iterating over all the fences in a dma_resv object. The new loop handles the whole RCU and retry dance and returns only fences where we can be sure we grabbed the right one. v2: fix accessing the shared fences while they might be freed, improve kerneldoc, rename _cu

[PATCH 03/26] dma-buf: use new iterator in dma_resv_copy_fences

2021-09-16 Thread Christian König
This makes the function much simpler since the complex retry logic is now handled else where. Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 81 +++--- 1 file changed, 32 insertions(+), 49 deletions(-) diff --git a/drivers/dma-buf/dma-resv.c b/dr

[PATCH 04/26] dma-buf: use new iterator in dma_resv_get_fences v2

2021-09-16 Thread Christian König
This makes the function much simpler since the complex retry logic is now handled elsewhere. v2: use sizeof(void*) instead Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 110 + 1 file changed, 37 insertions(+), 73 deletions(-) diff --git a/d

[PATCH 02/26] dma-buf: add dma_resv_for_each_fence

2021-09-16 Thread Christian König
A simpler version of the iterator to be used when the dma_resv object is locked. Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 37 + include/linux/dma-resv.h | 18 ++ 2 files changed, 55 insertions(+) diff --git a/drivers/d

[PATCH 06/26] dma-buf: use new iterator in dma_resv_test_signaled

2021-09-16 Thread Christian König
This makes the function much simpler since the complex retry logic is now handled elsewhere. Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 54 +- 1 file changed, 7 insertions(+), 47 deletions(-) diff --git a/drivers/dma-buf/dma-resv.c b/driv

[PATCH 05/26] dma-buf: use new iterator in dma_resv_wait_timeout

2021-09-16 Thread Christian König
This makes the function much simpler since the complex retry logic is now handled elsewhere. Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 64 +- 1 file changed, 7 insertions(+), 57 deletions(-) diff --git a/drivers/dma-buf/dma-resv.c b/driv

[PATCH 08/26] drm/amdgpu: use the new iterator in amdgpu_sync_resv

2021-09-16 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 44 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c index 862eb3

[PATCH 09/26] drm/amdgpu: use new iterator in amdgpu_ttm_bo_eviction_valuable

2021-09-16 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 1129e17e9f09..b3859c

[PATCH 10/26] drm/msm: use new iterator in msm_gem_describe

2021-09-16 Thread Christian König
Simplifying the code a bit. Also drop the RCU read side lock since the object is locked anyway. Untested since I can't get the driver to compile on !ARM. Signed-off-by: Christian König --- drivers/gpu/drm/msm/msm_gem.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-)

[PATCH 13/26] drm/i915: use the new iterator in i915_gem_busy_ioctl

2021-09-16 Thread Christian König
This makes the function much simpler since the complex retry logic is now handled else where. Signed-off-by: Christian König --- drivers/gpu/drm/i915/gem/i915_gem_busy.c | 30 +++- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_ge

[PATCH 07/26] drm/ttm: use the new iterator in ttm_bo_flush_all_fences

2021-09-16 Thread Christian König
This is probably a fix since we didn't even grabed a reference to the fences. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 3b22c0

[PATCH 19/26] drm/i915: use new cursor in intel_prepare_plane_fb v2

2021-09-16 Thread Christian König
Simplifying the code a bit. v2: add rcu_read_lock()/unlock() Signed-off-by: Christian König --- drivers/gpu/drm/i915/display/intel_display.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/displa

[PATCH 21/26] drm: use new iterator in drm_gem_plane_helper_prepare_fb v2

2021-09-16 Thread Christian König
Makes the handling a bit more complex, but avoids the use of dma_resv_get_excl_unlocked(). v2: add missing rcu_read_lock()/unlock() Signed-off-by: Christian König --- drivers/gpu/drm/drm_gem_atomic_helper.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH 16/26] drm/i915: use new iterator in i915_gem_object_wait_reservation v2

2021-09-16 Thread Christian König
Simplifying the code a bit. v2: add missing rcu read unlock. Signed-off-by: Christian König --- drivers/gpu/drm/i915/gem/i915_gem_wait.c | 57 +++- 1 file changed, 15 insertions(+), 42 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_wait.c b/drivers/gpu/drm/i91

[PATCH 14/26] drm/i915: use the new iterator in i915_sw_fence_await_reservation v2

2021-09-16 Thread Christian König
Simplifying the code a bit. v2: use dma_resv_for_each_fence instead, according to Tvrtko the lock is held here anyway. Signed-off-by: Christian König --- drivers/gpu/drm/i915/i915_sw_fence.c | 51 +--- 1 file changed, 9 insertions(+), 42 deletions(-) diff --git a/dr

[PATCH 17/26] drm/i915: use new iterator in i915_gem_object_wait_priority v2

2021-09-16 Thread Christian König
Simplifying the code a bit. v2: add missing rcu_read_lock()/unlock() Signed-off-by: Christian König --- drivers/gpu/drm/i915/gem/i915_gem_wait.c | 33 +++- 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_wait.c b/drivers/gpu/

[PATCH 20/26] drm: use new iterator in drm_gem_fence_array_add_implicit v2

2021-09-16 Thread Christian König
Simplifying the code a bit. v2: add missing rcu_read_lock()/unlock() Signed-off-by: Christian König --- drivers/gpu/drm/drm_gem.c | 36 +--- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c inde

[PATCH 23/26] drm/nouveau: use the new interator in nv50_wndw_prepare_fb v2

2021-09-16 Thread Christian König
Makes the handling a bit more complex, but avoids the use of dma_resv_get_excl_unlocked(). v2: add missing rcu_read_lock()/unlock() Signed-off-by: Christian König --- drivers/gpu/drm/nouveau/dispnv50/wndw.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/

[PATCH 22/26] drm/nouveau: use the new iterator in nouveau_fence_sync

2021-09-16 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/nouveau/nouveau_fence.c | 48 +++-- 1 file changed, 12 insertions(+), 36 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_fence.c b/drivers/gpu/drm/nouveau/nouveau_fence.c index 05d0b3eb

[PATCH 12/26] drm/scheduler: use new iterator in drm_sched_job_add_implicit_dependencies v2

2021-09-16 Thread Christian König
Simplifying the code a bit. v2: use dma_resv_for_each_fence Signed-off-by: Christian König --- drivers/gpu/drm/scheduler/sched_main.c | 26 ++ 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/schedul

[PATCH 18/26] drm/i915: use new iterator in i915_gem_object_last_write_engine v2

2021-09-16 Thread Christian König
This is maybe even a fix since the RCU usage here looks incorrect. v2: add missing rcu_read_lock()/unlock() Signed-off-by: Christian König --- drivers/gpu/drm/i915/gem/i915_gem_object.h | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i9

[PATCH 15/26] drm/i915: use the new iterator in i915_request_await_object v2

2021-09-16 Thread Christian König
Simplifying the code a bit. v2: add missing rcu_read_lock()/rcu_read_unlock() Signed-off-by: Christian König --- drivers/gpu/drm/i915/i915_request.c | 40 - 1 file changed, 11 insertions(+), 29 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers

[PATCH 11/26] drm/radeon: use new iterator in radeon_sync_resv

2021-09-16 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/radeon/radeon_sync.c | 22 +++--- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_sync.c b/drivers/gpu/drm/radeon/radeon_sync.c index 9257b60144c4..23fa98d

  1   2   3   >