Re: [RFC PATCH 2/5] Documentation/amdgpu/display: add DC color caps info

2022-06-28 Thread Harry Wentland
On 6/19/22 18:31, Melissa Wen wrote: > Add details about color correction capabilities and explain a bit about > differences between DC hw generations and also how they are mapped > between DRM and DC interface. Two schemas for DCN 2.0 and 3.0 > (rasterized from the original png) is included to

[Bug 216173] amdgpu [gfxhub] page fault (src_id:0 ring:173 vmid:1 pasid:32769, for process Xorg pid 2994 thread Xorg:cs0 pid 3237)

2022-06-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216173 --- Comment #9 from Witold Baryluk (witold.baryluk+ker...@gmail.com) --- Bisected: 9cad937c0c58618fe5b0310fd539a854dc1ae95 is the first bad commit commit c9cad937c0c58618fe5b0310fd539a854dc1ae95 Author: Arunpravin Paneer Selvam Date: Fri Apr

linux-next: manual merge of the drm-misc tree with Linus' tree

2022-06-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: drivers/gpu/drm/vc4/vc4_drv.c between commit: 538f6061 ("drm/vc4: drv: Register a different driver on BCM2711") from Linus' tree and commit: da8e393e23ef ("drm/vc4: drv: Adopt the dma configuration from the

回复:[PATCH] usb: gadget: Fix unsigned comparison with less than zero

2022-06-28 Thread Jiapeng.Chong
Sorry, we didn't see this patch. commit c09b1f372e746aeeb61ef8ffe0fea3970fd9273e -- 发件人:Greg KH 发送时间:2022年6月24日(星期五) 19:45 收件人:Jiapeng Chong 抄 送:neal_liu ; balbi ; joel ; andrew ; sumit.semwal ; christian.koenig ; linux-aspeed ;

Re: [RFC PATCH 1/5] Documentation/amdgpu_dm: Add DM color correction documentation

2022-06-28 Thread Harry Wentland
On 2022-06-19 18:31, Melissa Wen wrote: > AMDGPU DM maps DRM color management properties (degamma, ctm and gamma) > to DC color correction entities. Part of this mapping is already > documented as code comments and can be converted as kernel docs. > > Signed-off-by: Melissa Wen > --- >

Re: 回复:[PATCH] usb: gadget: Fix unsigned comparison with less than zero

2022-06-28 Thread Greg KH
On Wed, Jun 29, 2022 at 01:51:01PM +0800, Jiapeng.Chong wrote: > Sorry, we didn't see this patch. > commit c09b1f372e746aeeb61ef8ffe0fea3970fd9273e I am sorry, I do not understand what you mean here at all. confused, greg k-h

Re: [PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-28 Thread Prashant Malani
On Tue, Jun 28, 2022 at 12:25 PM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-22 10:34:34) > > From: Pin-Yen Lin > > > > Add the callback function when the driver receives state > > changes of the Type-C port. The callback function configures the > > crosspoint switch of the anx7625

Re: [PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-28 Thread Prashant Malani
On Tue, Jun 28, 2022 at 1:40 PM Stephen Boyd wrote: > > Quoting Prashant Malani (2022-06-28 12:48:11) > > On Tue, Jun 28, 2022 at 12:25 PM Stephen Boyd wrote: > > > > > > Quoting Prashant Malani (2022-06-22 10:34:34) > > > > diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c > > > >

Re: [PATCH] gpu: drm: selftests: drop unexpected word 'for' in comments

2022-06-28 Thread Lyude Paul
Reviewed-by: Lyude Paul Going to change the name of the patch slightly so it's more obvious this is just about the MST selftests On Thu, 2022-06-23 at 18:06 +0800, Jiang Jian wrote: > there is an unexpected word 'for' in the comments that need to be dropped > > file -

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

2022-06-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216119 --- Comment #26 from Alex Deucher (alexdeuc...@gmail.com) --- Created attachment 301299 --> https://bugzilla.kernel.org/attachment.cgi?id=301299=edit patch 1/2 Can you try the attached 2 patches (without any previous patches) both with and

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

2022-06-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216119 --- Comment #27 from Alex Deucher (alexdeuc...@gmail.com) --- Created attachment 301300 --> https://bugzilla.kernel.org/attachment.cgi?id=301300=edit patch 2/2 -- You may reply to this email to add a comment. You are receiving this mail

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

2022-06-28 Thread Sierra Guiza, Alejandro (Alex)
On 6/28/2022 5:42 AM, David Hildenbrand wrote: On 28.06.22 02:14, Alex Sierra wrote: 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.

Re: [PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-28 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-28 12:48:11) > On Tue, Jun 28, 2022 at 12:25 PM Stephen Boyd wrote: > > > > Quoting Prashant Malani (2022-06-22 10:34:34) > > > diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c > > > b/drivers/gpu/drm/bridge/analogix/anx7625.c > > > index

Re: [PATCH v6 14/22] dma-buf: Introduce new locking convention

2022-06-28 Thread Intel
On 5/30/22 15:57, Dmitry Osipenko wrote: On 5/30/22 16:41, Christian König wrote: Hi Dmitry, Am 30.05.22 um 15:26 schrieb Dmitry Osipenko: Hello Christian, On 5/30/22 09:50, Christian König wrote: Hi Dmitry, First of all please separate out this patch from the rest of the series, since

[PATCH v2 25/32] drm/via: Add via_vt1632.c

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_vt1632.c | 583 +++ 1 file changed, 583 insertions(+) create mode 100644 drivers/gpu/drm/via/via_vt1632.c diff --git a/drivers/gpu/drm/via/via_vt1632.c b/drivers/gpu/drm/via/via_vt1632.c new

[PATCH v2 26/32] drm/via: Add via_drm.h

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- include/uapi/drm/via_drm.h | 309 + 1 file changed, 309 insertions(+) create mode 100644 include/uapi/drm/via_drm.h diff --git a/include/uapi/drm/via_drm.h b/include/uapi/drm/via_drm.h new file mode 100644

[PATCH v2 27/32] drm/via: Add new VIA Technologies Chrome supporting PCI IDs to DRM

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- include/drm/drm_pciids.h | 4 1 file changed, 4 insertions(+) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index b7e899ce44f0..e91b93d635fa 100644 --- a/include/drm/drm_pciids.h +++ b/include/drm/drm_pciids.h @@ -777,7

[PATCH v2 29/32] drm/via: Add new VIA Technologies PCI device IDs related to graphics

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- include/linux/pci_ids.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 0178823ce8c2..809c61a10fe1 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@

[PATCH v2 28/32] drm/via: Zero out chip type field

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- include/drm/drm_pciids.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index e91b93d635fa..a4567d2918a9 100644 --- a/include/drm/drm_pciids.h +++

[PATCH v2 30/32] drm/via: Add Kconfig

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/Kconfig | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 drivers/gpu/drm/via/Kconfig diff --git a/drivers/gpu/drm/via/Kconfig b/drivers/gpu/drm/via/Kconfig new file mode 100644 index

[PATCH v2 31/32] drm/via: Add Makefile

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/Makefile | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 drivers/gpu/drm/via/Makefile diff --git a/drivers/gpu/drm/via/Makefile b/drivers/gpu/drm/via/Makefile new file mode 100644 index

[PATCH v2 32/32] drm/via: Modify DRM core to be able to build OpenChrome DRM

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- drivers/gpu/drm/Kconfig | 2 ++ drivers/gpu/drm/Makefile | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index 30d5b91b717f..475d20c58da0 100644 --- a/drivers/gpu/drm/Kconfig +++

[Bug 201957] amdgpu: ring gfx timeout

2022-06-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201957 rafael castillo (jrch2...@gmail.com) changed: What|Removed |Added CC||jrch2...@gmail.com

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

2022-06-28 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

[PATCH v7 01/14] mm: rename is_pinnable_pages to is_pinnable_longterm_pages

2022-06-28 Thread Alex Sierra
is_pinnable_page() and folio_is_pinnable() were renamed to is_longterm_pinnable_page() and folio_is_longterm_pinnable() respectively. These functions are used in the FOLL_LONGTERM flag context. Signed-off-by: Alex Sierra --- include/linux/memremap.h | 24

Re: [PATCH v2 1/2] drm/msm/a6xx: Add support for a new 7c3 sku

2022-06-28 Thread Akhil P Oommen
On 6/29/2022 9:59 AM, Bjorn Andersson wrote: On Tue 10 May 02:53 CDT 2022, Akhil P Oommen wrote: Add a new sku to the fuse map of 7c3 gpu. Signed-off-by: Akhil P Oommen Is this series still needed/wanted? I've been waiting for patch 1 to be merged in the driver so that I can pick up the dts

Re: [PATCH v6 3/4] fbcon: Prevent that screen size is smaller than font size

2022-06-28 Thread Helge Deller
On 6/28/22 10:39, Geert Uytterhoeven wrote: > Hi Helge, > > On Sun, Jun 26, 2022 at 12:33 PM Helge Deller wrote: >> We need to prevent that users configure a screen size which is smaller than >> the >> currently selected font size. Otherwise rendering chars on the screen will >> access memory

[PATCH] fbdev: fbmem: Fix logo center image dx issue

2022-06-28 Thread Guiling Deng
Image.dx gets wrong value because of missing '()'. If xres == logo->width and n == 1, image.dx = -16. Signed-off-by: Guiling Deng --- drivers/video/fbdev/core/fbmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/core/fbmem.c

[PATCH v2 00/32] OpenChrome DRM for Linux 5.20

2022-06-28 Thread Kevin Brace
From: Kevin Brace OpenChrome DRM for Linux 5.20 Hi Dave and Daniel, This is my first attempt (this is not a RFC posting) in trying to get OpenChrome DRM pulled in for Linux 5.20. I started to work on this seriously around the summer of 2017, so it has been a long journey. I know that the code

[PATCH v1] drm/tegra: Fix vmapping of prime buffers

2022-06-28 Thread Dmitry Osipenko
The code assumes that Tegra GEM is permanently vmapped, which is not true for the scattered buffers. After converting Tegra video decoder driver to V4L API, we're now getting a BUG_ON from dma-buf core on playing video using libvdpau-tegra on T30+ because tegra_gem_prime_vmap() sets vaddr to NULL.

Re: [PATCH v6 00/22] Add generic memory shrinker to VirtIO-GPU and Panfrost DRM drivers

2022-06-28 Thread Dmitry Osipenko
On 6/28/22 19:48, Rob Clark wrote: > On Tue, Jun 28, 2022 at 5:51 AM Dmitry Osipenko > wrote: >> >> On 6/28/22 15:31, Robin Murphy wrote: >>> ->8- >>> [ 68.295951] == >>> [ 68.295956] WARNING: possible circular locking dependency

[PATCH] drm/i915: Remove __dma_fence_is_chain()

2022-06-28 Thread Rob Clark
From: Rob Clark drive-by cleanup Signed-off-by: Rob Clark --- drivers/gpu/drm/i915/gem/i915_gem_wait.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_wait.c b/drivers/gpu/drm/i915/gem/i915_gem_wait.c index

[PATCH v7 02/14] mm: add zone device coherent type memory support

2022-06-28 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 v7 12/14] tools: update test_hmm script to support SP config

2022-06-28 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 v7 11/14] tools: update hmm-test to support device coherent type

2022-06-28 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 v7 06/14] mm/gup: migrate device coherent pages when pinning instead of failing

2022-06-28 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 v7 13/14] tools: add hmm gup tests for device coherent type

2022-06-28 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 v7 10/14] lib: add support for device coherent type in test_hmm

2022-06-28 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 v7 07/14] drm/amdkfd: add SPM support for SVM

2022-06-28 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 v7 04/14] mm: add device coherent vma selection for memory migration

2022-06-28 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 v7 03/14] mm: handling Non-LRU pages returned by vm_normal_pages

2022-06-28 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. Callers to follow_page that expect

[PATCH v7 05/14] mm: remove the vma check in migrate_vma_setup()

2022-06-28 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 v7 08/14] lib: test_hmm add ioctl to get zone device type

2022-06-28 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 v7 09/14] lib: test_hmm add module param for zone device type

2022-06-28 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 v7 14/14] tools: add selftests to hmm for COW in device memory

2022-06-28 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

Re: [PATCH v1] drm/tegra: Fix vmapping of prime buffers

2022-06-28 Thread Dmitry Osipenko
On 6/29/22 01:42, Dmitry Osipenko wrote: > The code assumes that Tegra GEM is permanently vmapped, which is not > true for the scattered buffers. After converting Tegra video decoder > driver to V4L API, we're now getting a BUG_ON from dma-buf core on playing > video using libvdpau-tegra on T30+

Re: [PATCH] gpu: drm: selftests: drop unexpected word 'for' in comments

2022-06-28 Thread Lyude Paul
Oh-it's back up now! will push now :) On Tue, 2022-06-28 at 17:35 -0400, Lyude Paul wrote: > …ah, I totally forgot that gitlab happens to be down right now which part of > the DRM maintainer scripts rely on - so I can't actually push this patch > upstream right away. I will set this email as

Re: [PATCH RESEND] drm: i915: fix a possible refcount leak in intel_dp_add_mst_connector()

2022-06-28 Thread Lyude Paul
Ah-nevermind! Seems like someone already pushed this for you :) On Tue, 2022-06-28 at 18:55 -0400, Lyude Paul wrote: > Nice catch! > > Reviewed-by: Lyude Paul > > Will push to drm-intel-next > > On Fri, 2022-06-24 at 10:28 +0800, Hangyu Hua wrote: > > If drm_connector_init fails,

RE: [Intel-gfx] [PATCH 1/2] drm/i915/hpd: postpone HPD cancel work after last user suspension

2022-06-28 Thread Murthy, Arun R
> -Original Message- > From: Intel-gfx On Behalf Of > Andrzej Hajda > Sent: Thursday, June 23, 2022 10:08 PM > To: Jani Nikula ; Ville Syrjälä > > Cc: Hajda, Andrzej ; intel- > g...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; Vivi, Rodrigo > > Subject: [Intel-gfx] [PATCH

RE: [Intel-gfx] [PATCH 2/2] drm/i915/fbdev: suspend HPD before fbdev unregistration

2022-06-28 Thread Murthy, Arun R
> void intel_fbdev_unregister(struct drm_i915_private *dev_priv) { > struct intel_fbdev *ifbdev = dev_priv->fbdev; @@ -573,6 +594,8 @@ > void intel_fbdev_unregister(struct drm_i915_private *dev_priv) > if (!ifbdev) > return; > > +

Re: [PATCH v6 2/4] fbmem: Prevent invalid virtual screen sizes

2022-06-28 Thread Helge Deller
Hi Geert, On 6/28/22 10:36, Geert Uytterhoeven wrote: > On Sun, Jun 26, 2022 at 12:32 PM Helge Deller wrote: >> Prevent that drivers or the user sets the virtual screen resolution >> smaller than the physical screen resolution. This is important, because >> otherwise we may access memory

Re: [PATCH] drm/i915/reset: Handle reset timeouts under unrelated kernel hangs

2022-06-28 Thread Dixit, Ashutosh
On Tue, 28 Jun 2022 12:17:41 -0700, Ashutosh Dixit wrote: > > From: Chris Wilson > > When resuming after hibernate sometimes we see hangs in unrelated kernel > subsystems. These hangs often result in the following i915 trace: > > i915 :00:02.0: [drm] \ > *ERROR* intel_gt_reset_global

Re: [Linaro-mm-sig] [PATCH] drm/i915: Remove __dma_fence_is_chain()

2022-06-28 Thread Intel
On 6/29/22 01:35, Rob Clark wrote: From: Rob Clark drive-by cleanup Signed-off-by: Rob Clark Reviewed-by: Thomas Hellström --- drivers/gpu/drm/i915/gem/i915_gem_wait.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git

Re: [RFC PATCH 0/5] DRM CRTC 3D LUT interface for AMD DCN

2022-06-28 Thread Harry Wentland
On 2022-06-19 18:30, Melissa Wen wrote: > Hi, > > I've been working on a proposal to add 3D LUT interface to DRM CRTC > color mgmt, that means new **after-blending** properties for color > correction. As I'm targeting AMD display drivers, I need to map these > new properties to AMD DC

Re: [PATCH v6 01/22] drm/gem: Properly annotate WW context on drm_gem_lock_reservations() error

2022-06-28 Thread Intel
Hi, On 5/27/22 01:50, Dmitry Osipenko wrote: Use ww_acquire_fini() in the error code paths. Otherwise lockdep thinks that lock is held when lock's memory is freed after the drm_gem_lock_reservations() error. The WW needs to be annotated as "freed" s /WW/ww_acquire_context/ ? s

Re: [PATCH] drm/msm/dp: make eDP panel as the first connected connector

2022-06-28 Thread Dmitry Baryshkov
On 28 June 2022 18:20:06 GMT+03:00, Kuogee Hsieh wrote: >Some userspace presumes that the first connected connector is the main >display, where it's supposed to display e.g. the login screen. For >laptops, this should be the main panel. > >This patch call

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

2022-06-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216119 --- Comment #25 from Harald Judt (h.j...@gmx.at) --- Created attachment 301298 --> https://bugzilla.kernel.org/attachment.cgi?id=301298=edit dmesg.out I report success, partly. Setting amdgpu.dc=0 on the kernel command line also exhibits the

Re: [RFC PATCH 4/5] drm/drm_color_mgmt: add 3D LUT to color mgmt properties

2022-06-28 Thread Harry Wentland
On 6/19/22 18:31, Melissa Wen wrote: > Add 3D LUT for gammar correction using a 3D lookup table. The position > in the color correction pipeline where 3D LUT is applied depends on hw > design, being after CTM or gamma. If just after CTM, a shaper lut must > be set to shape the content for a

Re: [PATCH] gpu: drm: selftests: drop unexpected word 'for' in comments

2022-06-28 Thread Lyude Paul
…ah, I totally forgot that gitlab happens to be down right now which part of the DRM maintainer scripts rely on - so I can't actually push this patch upstream right away. I will set this email as unread so hopefully I don't lose track of this, but please feel free to ping me if I do end up

[PATCH v2 02/32] drm/via: Add via_3d_reg.h

2022-06-28 Thread Kevin Brace
From: Kevin Brace Originated from VIA Technologies. Currently unused. Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_3d_reg.h | 1863 ++ 1 file changed, 1863 insertions(+) create mode 100644 drivers/gpu/drm/via/via_3d_reg.h diff --git

[PATCH v2 07/32] drm/via: Add via_crtc.c

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_crtc.c | 2324 1 file changed, 2324 insertions(+) create mode 100644 drivers/gpu/drm/via/via_crtc.c diff --git a/drivers/gpu/drm/via/via_crtc.c b/drivers/gpu/drm/via/via_crtc.c new file

[PATCH v2 08/32] drm/via: Add via_crtc_hw.c

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_crtc_hw.c | 91 +++ 1 file changed, 91 insertions(+) create mode 100644 drivers/gpu/drm/via/via_crtc_hw.c diff --git a/drivers/gpu/drm/via/via_crtc_hw.c b/drivers/gpu/drm/via/via_crtc_hw.c

[PATCH v2 04/32] drm/via: Add via_disp_reg.h

2022-06-28 Thread Kevin Brace
From: Kevin Brace Likely originated from VIA Technologies. Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_disp_reg.h | 513 + 1 file changed, 513 insertions(+) create mode 100644 drivers/gpu/drm/via/via_disp_reg.h diff --git

[PATCH v2 05/32] drm/via: Add via_drv.h

2022-06-28 Thread Kevin Brace
From: Kevin Brace Main header file for the module. Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_drv.h | 437 ++ 1 file changed, 437 insertions(+) create mode 100644 drivers/gpu/drm/via/via_drv.h diff --git a/drivers/gpu/drm/via/via_drv.h

[PATCH v2 03/32] drm/via: Add via_crtc_hw.h

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_crtc_hw.h | 1048 + 1 file changed, 1048 insertions(+) create mode 100644 drivers/gpu/drm/via/via_crtc_hw.h diff --git a/drivers/gpu/drm/via/via_crtc_hw.h b/drivers/gpu/drm/via/via_crtc_hw.h

[PATCH v2 06/32] drm/via: Add via_regs.h

2022-06-28 Thread Kevin Brace
From: Kevin Brace Likely originated from VIA Technologies. Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_regs.h | 296 + 1 file changed, 296 insertions(+) create mode 100644 drivers/gpu/drm/via/via_regs.h diff --git a/drivers/gpu/drm/via/via_regs.h

[PATCH v2 09/32] drm/via: Add via_cursor.c

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_cursor.c | 419 +++ 1 file changed, 419 insertions(+) create mode 100644 drivers/gpu/drm/via/via_cursor.c diff --git a/drivers/gpu/drm/via/via_cursor.c b/drivers/gpu/drm/via/via_cursor.c new

[PATCH v2 11/32] drm/via: Add via_display.c

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_display.c | 125 ++ 1 file changed, 125 insertions(+) create mode 100644 drivers/gpu/drm/via/via_display.c diff --git a/drivers/gpu/drm/via/via_display.c b/drivers/gpu/drm/via/via_display.c

[PATCH v2 12/32] drm/via: Add via_drv.c

2022-06-28 Thread Kevin Brace
From: Kevin Brace Note that GPL is chosen as a license type. This is due to via_i2c.c being GPL based. Everything else is MIT license based. Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_drv.c | 313 ++ 1 file changed, 313 insertions(+) create mode

[PATCH v2 13/32] drm/via: Add via_encoder.c

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_encoder.c | 173 ++ 1 file changed, 173 insertions(+) create mode 100644 drivers/gpu/drm/via/via_encoder.c diff --git a/drivers/gpu/drm/via/via_encoder.c b/drivers/gpu/drm/via/via_encoder.c

[PATCH v2 10/32] drm/via: Add via_dac.c

2022-06-28 Thread Kevin Brace
From: Kevin Brace Signed-off-by: Kevin Brace --- drivers/gpu/drm/via/via_dac.c | 504 ++ 1 file changed, 504 insertions(+) create mode 100644 drivers/gpu/drm/via/via_dac.c diff --git a/drivers/gpu/drm/via/via_dac.c b/drivers/gpu/drm/via/via_dac.c new file mode

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

2022-06-28 Thread Geert Uytterhoeven
Hi Conor, On Tue, Jun 28, 2022 at 8:30 AM wrote: > On 28/06/2022 00:29, Rob Herring wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > On Sat, Jun 18, 2022 at 01:30:26PM +0100, Conor Dooley wrote: > >> From: Conor Dooley > >> > >>

Re: [PATCH] drm/bridge: Avoid uninitialized variable warning

2022-06-28 Thread Boris Brezillon
On Tue, 28 Jun 2022 09:59:51 +0300 Dan Carpenter wrote: > This works, but technically it uses "num_in_bus_fmts" before it has been > initialized so it leads to static checker warnings and probably KMEMsan > warnings at run time. Reverse the checks so it checks for failure first > and then check

Re: Annoying AMDGPU boot-time warning due to simplefb / amdgpu resource clash

2022-06-28 Thread Thomas Zimmermann
Hi Am 27.06.22 um 19:25 schrieb Linus Torvalds: On Mon, Jun 27, 2022 at 1:02 AM Javier Martinez Canillas wrote: The flag was dropped because it was causing drivers that requested their memory resource with pci_request_region() to fail with -EBUSY (e.g: the vmwgfx driver):

[PATCH 1/2] drm/panel-edp: Add eDP innolux panel support

2022-06-28 Thread Rex Nie
Add support for the 14" innolux,n140hca-eac eDP panel. Signed-off-by: Rex Nie Acked-by: Hsin-Yi Wang --- drivers/gpu/drm/panel/panel-edp.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c

Re: [PATCH] drm/bridge: Avoid uninitialized variable warning

2022-06-28 Thread Boris Brezillon
On Tue, 28 Jun 2022 10:45:19 +0300 Dan Carpenter wrote: > On Tue, Jun 28, 2022 at 09:26:09AM +0200, Boris Brezillon wrote: > > On Tue, 28 Jun 2022 09:59:51 +0300 > > Dan Carpenter wrote: > > > > > This works, but technically it uses "num_in_bus_fmts" before it has been > > > initialized so

[PATCH 2/2] dt-bindings: display: simple: Add InnoLux n140hca-eac panel

2022-06-28 Thread Rex Nie
Add support for InnoLux n140hca-eac display panel. It is a 14" eDP panel with 1920x1080 display resolution. Signed-off-by: Rex Nie Acked-by: Rob Herring --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH v2 02/68] drm/crtc: Introduce drmm_crtc_init_with_planes

2022-06-28 Thread Thomas Zimmermann
Hi Am 22.06.22 um 16:31 schrieb Maxime Ripard: The DRM-managed function to register a CRTC is drmm_crtc_alloc_with_planes(), which will allocate the underlying structure and initialisation the CRTC. However, we might want to separate the structure creation and the CRTC initialisation, for

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

2022-06-28 Thread Neil Armstrong
On 28/06/2022 04:31, Liu Ying wrote: 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

Re: [PATCH] drm: bridge: dw_hdmi: only trigger hotplug event on real link state change

2022-06-28 Thread Lucas Stach
Am Dienstag, dem 28.06.2022 um 09:16 +0200 schrieb Neil Armstrong: > Hi, > > On 27/06/2022 14:47, Lucas Stach wrote: > > There are two events that signal a real change of the link state: HPD going > > high means the sink is newly connected or wants the source to re-read the > > EDID, RX sense

Re: [PATCH v6 2/4] fbmem: Prevent invalid virtual screen sizes

2022-06-28 Thread Geert Uytterhoeven
Hi Helge, On Sun, Jun 26, 2022 at 12:32 PM Helge Deller wrote: > Prevent that drivers or the user sets the virtual screen resolution > smaller than the physical screen resolution. This is important, because > otherwise we may access memory outside of the graphics memory area. > > Signed-off-by:

Re: [PATCH v6 3/4] fbcon: Prevent that screen size is smaller than font size

2022-06-28 Thread Geert Uytterhoeven
Hi Helge, On Sun, Jun 26, 2022 at 12:33 PM Helge Deller wrote: > We need to prevent that users configure a screen size which is smaller than > the > currently selected font size. Otherwise rendering chars on the screen will > access memory outside the graphics memory region. > > This patch adds

Re: [PATCH v2 08/68] drm/connector: Introduce drmm_connector_init_with_ddc

2022-06-28 Thread Thomas Zimmermann
Hi Am 22.06.22 um 16:31 schrieb Maxime Ripard: Let's create a DRM-managed variant of drm_connector_init_with_ddc that will take care of an action of the connector cleanup. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_connector.c | 74 -

[PATCH v2 1/2] drm/panel-edp: Add eDP innolux panel support

2022-06-28 Thread Rex Nie
Add support for the 14" innolux,n140hca-eac eDP panel. Signed-off-by: Rex Nie Acked-by: Hsin-Yi Wang --- drivers/gpu/drm/panel/panel-edp.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c

Re: [PATCH] drm: bridge: dw_hdmi: only trigger hotplug event on real link state change

2022-06-28 Thread Neil Armstrong
Hi, On 27/06/2022 14:47, Lucas Stach wrote: There are two events that signal a real change of the link state: HPD going high means the sink is newly connected or wants the source to re-read the EDID, RX sense going low is a indication that the link has been disconnected. Ignore the other two

[PATCH 1/2] drm/panel-edp: Add eDP innolux panel support

2022-06-28 Thread Rex Nie
Add support for the 14" innolux,n140hca-eac eDP panel. Signed-off-by: Rex Nie --- drivers/gpu/drm/panel/panel-edp.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index

[PATCH v2 2/2] dt-bindings: display: simple: Add InnoLux n140hca-eac panel

2022-06-28 Thread Rex Nie
Add support for InnoLux n140hca-eac display panel. It is a 14" eDP panel with 1920x1080 display resolution. Signed-off-by: Rex Nie Acked-by: Rob Herring --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

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

2022-06-28 Thread Stephen Hemminger
On Mon, 27 Jun 2022 20:04:32 +0200 "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 “flexible array members”[1] for these > cases. The older style

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

2022-06-28 Thread Geert Uytterhoeven
Hi Gustavo, Thanks for your patch! On Mon, Jun 27, 2022 at 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 “flexible array members”[1] for

[PATCH 2/2] dt-bindings: display: simple: Add InnoLux n140hca-eac panel

2022-06-28 Thread Rex Nie
Add support for InnoLux n140hca-eac display panel. It is a 14" eDP panel with 1920x1080 display resolution. Signed-off-by: Rex Nie --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH v2 03/68] drm/encoder: Introduce drmm_encoder_init

2022-06-28 Thread Thomas Zimmermann
Hi Am 22.06.22 um 16:31 schrieb Maxime Ripard: The DRM-managed function to register an encoder is drmm_encoder_alloc() and its variants, which will allocate the underlying structure and initialisation the encoder. However, we might want to separate the structure creation and the encoder

[PATCH] drm/bridge: Avoid uninitialized variable warning

2022-06-28 Thread Dan Carpenter
This works, but technically it uses "num_in_bus_fmts" before it has been initialized so it leads to static checker warnings and probably KMEMsan warnings at run time. Reverse the checks so it checks for failure first and then check for unsupported formats next. Fixes: f32df58acc68 ("drm/bridge:

Re: [PATCH] drm/bridge: Avoid uninitialized variable warning

2022-06-28 Thread Dan Carpenter
On Tue, Jun 28, 2022 at 09:26:09AM +0200, Boris Brezillon wrote: > On Tue, 28 Jun 2022 09:59:51 +0300 > Dan Carpenter wrote: > > > This works, but technically it uses "num_in_bus_fmts" before it has been > > initialized so it leads to static checker warnings and probably KMEMsan > > warnings at

Re: [Intel-gfx] [PATCH v3 3/3] drm/doc/rfc: VM_BIND uapi definition

2022-06-28 Thread Tvrtko Ursulin
On 27/06/2022 19:58, Zeng, Oak wrote: Thanks, Oak -Original Message- From: Tvrtko Ursulin Sent: June 27, 2022 4:30 AM To: Zeng, Oak ; Landwerlin, Lionel G ; Vishwanathapura, Niranjana Cc: Zanoni, Paulo R ; intel- g...@lists.freedesktop.org; dri-devel@lists.freedesktop.org;

[PATCH 10/22] drm: amdgpu: amdgpu_device.c: fix a kernel-doc markup

2022-06-28 Thread Mauro Carvalho Chehab
The function was renamed without renaming also kernel-doc markup: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:5095: warning: expecting prototype for amdgpu_device_gpu_recover_imp(). Prototype was for amdgpu_device_gpu_recover() instead Signed-off-by: Mauro Carvalho Chehab --- To avoid

[PATCH 14/22] kfence: fix a kernel-doc parameter

2022-06-28 Thread Mauro Carvalho Chehab
The kernel-doc markup is missing the slab pointer description: include/linux/kfence.h:221: warning: Function parameter or member 'slab' not described in '__kfence_obj_info' Document it. Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only

[PATCH 11/22] drm: amd: amd_shared.h: Add missing doc for PP_GFX_DCS_MASK

2022-06-28 Thread Mauro Carvalho Chehab
This symbol is missing documentation: drivers/gpu/drm/amd/include/amd_shared.h:224: warning: Enum value 'PP_GFX_DCS_MASK' not described in enum 'PP_FEATURE_MASK' Document it. Fixes: 680602d6c2d6 ("drm/amd/pm: enable DCS") Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing

[PATCH 00/22] Fix kernel-doc warnings at linux-next

2022-06-28 Thread Mauro Carvalho Chehab
As we're currently discussing about making kernel-doc issues fatal when CONFIG_WERROR is enable, let's fix all 60 kernel-doc warnings inside linux-next: arch/x86/include/uapi/asm/sgx.h:19: warning: Enum value 'SGX_PAGE_MEASURE' not described in enum 'sgx_page_flags'

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

2022-06-28 Thread Serge Semin
On Tue, Jun 28, 2022 at 09:08:32AM +0200, Geert Uytterhoeven wrote: > Hi Conor, > > On Tue, Jun 28, 2022 at 8:30 AM wrote: > > On 28/06/2022 00:29, Rob Herring wrote: > > > EXTERNAL EMAIL: Do not click links or open attachments unless you know > > > the content is safe > > > > > > On Sat, Jun

Re: [PATCH v3 09/14] regulator: mt6370: Add mt6370 DisplayBias and VibLDO support

2022-06-28 Thread Andy Shevchenko
On Fri, Jun 24, 2022 at 12:33 PM ChiaEn Wu wrote: > Andy Shevchenko 於 2022年6月24日 週五 凌晨2:19寫道: > > On Thu, Jun 23, 2022 at 2:00 PM ChiaEn Wu wrote: ... > We got a notification from Mark telling us that this patch has been > applied to git. > ( >

  1   2   >