Re: [PATCH] accel/qaic: Support for 0 resize slice execution in BO

2023-10-29 Thread Stanislaw Gruszka
On Fri, Oct 27, 2023 at 10:43:30AM -0600, Jeffrey Hugo wrote: > From: Pranjal Ramajor Asha Kanojiya > > Add support to partially execute a slice which is resized to zero. > Executing a zero size slice in a BO should mean that there is no DMA > transfers involved but you should still configure doo

Re: [PATCH] accel/qaic: Quiet array bounds check on DMA abort message

2023-10-29 Thread Stanislaw Gruszka
On Fri, Oct 27, 2023 at 12:08:10PM -0600, Jeffrey Hugo wrote: > From: Carl Vanderlip > > Current wrapper is right-sized to the message being transferred; > however, this is smaller than the structure defining message wrappers > since the trailing element is a union of message/transfer headers of

Re: [PATCH Resend] Fix line Length

2023-10-29 Thread Julia Lawall
On Mon, 30 Oct 2023, Bagas Sanjaya wrote: > On Sun, Oct 29, 2023 at 04:11:01PM +0100, Julia Lawall wrote: > > > > > > On Sun, 29 Oct 2023, Dorine Tipo wrote: > > > > > Signed-off-by: Dorine Tipo > > > > > > Fix the line lengths of lines 8 and 49 > > > > The Signed off by line should be here, b

Re: [RFC v4 0/5] Proposal to use netlink for RAS and Telemetry across drm subsystem

2023-10-29 Thread Aravind Iddamsetty
On 26/10/23 15:34, Lazar, Lijo wrote: Hi Lijo, Thank you for your comments. > > > On 10/23/2023 8:59 PM, Alex Deucher wrote: >> On Fri, Oct 20, 2023 at 7:42 PM Aravind Iddamsetty >> wrote: >>> >>> Our hardware supports RAS(Reliability, Availability, Serviceability) by >>> reporting the errors

Re: [PATCH] accel/ivpu: avoid build failure with CONFIG_PM=n

2023-10-29 Thread Stanislaw Gruszka
On Fri, Oct 27, 2023 at 05:26:23PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The usage count of struct dev_pm_info is an implementation detail that > is only available if CONFIG_PM is enabled, so printing it in a debug message > causes a build failure in configurations without PM: >

Re: [PATCH 3/8] drm/loongson: Allow attach drm bridge driver by calling lsdc_output_init()

2023-10-29 Thread Sui Jingfeng
Hi, On 2023/10/30 07:10, Dmitry Baryshkov wrote: + +/* Built-in HDMI encoder funcs on display pipe 0 */ + +static void lsdc_pipe0_hdmi_encoder_reset(struct drm_encoder *encoder) +{ + struct drm_device *ddev = encoder->dev; + struct lsdc_device *ldev = to_lsdc(ddev); + u32 val;

Re: [PATCH 1/8] drm/loongson: Introduce a minimal support for Loongson VBIOS

2023-10-29 Thread Sui Jingfeng
Hi, Thanks a lot for reviewing! On 2023/10/30 06:59, Dmitry Baryshkov wrote: On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wrote: Because some boards are equipped with non-transparent display bridges, which need the VBIOS to provided parameters. Signed-off-by: Sui Jingfeng --- drivers/gpu/

Re: [PATCH 5/8] drm/loongson: Using vbios for the LS7A2000 output initialization

2023-10-29 Thread kernel test robot
Hi Sui, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linus/master v6.6-rc7 next-20231027] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

[PATCH 1/2] nouveau: fix r535 build on 32-bit arm.

2023-10-29 Thread Dave Airlie
From: Dave Airlie This needs the proper division macros. Signed-off-by: Dave Airlie --- drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c b/drivers/gpu/drm/nouveau/nvkm/engine/fif

[PATCH 2/2] nouveau/disp: fix post-gsp build on 32-bit arm.

2023-10-29 Thread Dave Airlie
From: Dave Airlie This converts a bunch of divides into the proper macros. Signed-off-by: Dave Airlie --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gp

Re: [PATCH 3/8] drm/loongson: Allow attach drm bridge driver by calling lsdc_output_init()

2023-10-29 Thread kernel test robot
Hi Sui, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linus/master v6.6-rc7 next-20231027] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH Resend] Fix line Length

2023-10-29 Thread Bagas Sanjaya
On Sun, Oct 29, 2023 at 04:11:01PM +0100, Julia Lawall wrote: > > > On Sun, 29 Oct 2023, Dorine Tipo wrote: > > > Signed-off-by: Dorine Tipo > > > > Fix the line lengths of lines 8 and 49 > > The Signed off by line should be here, below the log message. Please see > the patches sent by others

Re: [PATCH 7/8] drm/loongson: Support to infer DC reversion from CPU's PRID value

2023-10-29 Thread Dmitry Baryshkov
On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wrote: > > Due to the fact that the same display IP core has been integrated into > different platform, there is a need to differentiate them on the runtime. > The DC in LS7A1000/LS2K1000 has the PCI vendor & device ID of 0x0014:0x7A06 > The DC in LS7A200

Re: [PATCH 6/8] drm/loongson: Clean up the output part of LS7A2000

2023-10-29 Thread Dmitry Baryshkov
On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wrote: > > Since the majority of sharable subroutines have been move to lsdc_output.c, > and functional changes are done with previous patch. We finally see the > light to cleanup, no functional change. Please refactor your patches so that code moves can

Re: [PATCH 4/8] drm/loongson: Started to attach display bridge driver for LS7A1000

2023-10-29 Thread Dmitry Baryshkov
On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wrote: > > Loongson ML5B_MA board using ITE IT66121 HDMI transmitter to support HDMI > display output, with the vbios provided the necessary information, we are > able to create a minimal drm bridge driver for it. After apply this patch > we are able to c

Re: [PATCH 3/8] drm/loongson: Allow attach drm bridge driver by calling lsdc_output_init()

2023-10-29 Thread Dmitry Baryshkov
On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wrote: > > Move the sharable subroutine into lsdc_output.c and refactor. > > Signed-off-by: Sui Jingfeng > --- > drivers/gpu/drm/loongson/Makefile | 1 + > drivers/gpu/drm/loongson/lsdc_drv.h| 17 - > drivers/gpu/drm/loongson/lsdc_output.c |

[PATCH v18 14/26] drm/lima: Explicitly get and put drm-shmem pages

2023-10-29 Thread Dmitry Osipenko
To simplify the drm-shmem refcnt handling, we're moving away from the implicit get_pages() that is used by get_pages_sgt(). From now on drivers will have to pin pages while they use sgt. Lima driver doesn't have shrinker, hence pages are pinned and sgt is valid as long as pages' use-count > 0. Sig

[PATCH v18 25/26] drm/virtio: Support shmem shrinking

2023-10-29 Thread Dmitry Osipenko
Support generic drm-shmem memory shrinker and add new madvise IOCTL to the VirtIO-GPU driver. BO cache manager of Mesa driver will mark BOs as "don't need" using the new IOCTL to let shrinker purge the marked BOs on OOM, the shrinker will also evict unpurgeable shmem BOs from memory if guest suppor

[PATCH v18 08/26] drm/shmem-helper: Add and use lockless drm_gem_shmem_get_pages()

2023-10-29 Thread Dmitry Osipenko
Add lockless drm_gem_shmem_get_pages() helper that skips taking reservation lock if pages_use_count is non-zero, leveraging from atomicity of the refcount_t. Make drm_gem_shmem_mmap() to utilize the new helper. Reviewed-by: Boris Brezillon Suggested-by: Boris Brezillon Signed-off-by: Dmitry Osip

[PATCH v18 19/26] drm/shmem-helper: Add common memory shrinker

2023-10-29 Thread Dmitry Osipenko
Introduce common drm-shmem shrinker for DRM drivers. To start using drm-shmem shrinker drivers should do the following: 1. Implement evict() callback of GEM object where driver should check whether object is purgeable or evictable using drm-shmem helpers and perform the shrinking action 2.

[PATCH v18 13/26] drm/shmem-helper: Add drm_gem_shmem_put_pages()

2023-10-29 Thread Dmitry Osipenko
We're going to move away from having implicit get_pages() done by get_pages_sgt() to ease simplify refcnt handling. Drivers will manage get/put_pages() by themselves. Add drm_gem_shmem_put_pages(). Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 20 +++

[PATCH v18 12/26] drm/shmem-helper: Make drm_gem_shmem_get_pages() public

2023-10-29 Thread Dmitry Osipenko
We're going to move away from having implicit get_pages() done by get_pages_sgt() to ease simplify refcnt handling. Drivers will manage get/put_pages() by themselves. Expose the drm_gem_shmem_get_pages() in a public drm-shmem API. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_

[PATCH v18 18/26] drm/shmem-helper: Change sgt allocation policy

2023-10-29 Thread Dmitry Osipenko
In a preparation to addition of drm-shmem memory shrinker support, change the SGT allocation policy in this way: 1. SGT can be allocated only if shmem pages are pinned at the time of allocation, otherwise allocation fails. 2. Drivers must ensure that pages are pinned during the time of SGT usage

[PATCH v18 26/26] drm/panfrost: Switch to generic memory shrinker

2023-10-29 Thread Dmitry Osipenko
Replace Panfrost's custom memory shrinker with a common drm-shmem memory shrinker. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/panfrost/Makefile | 1 - drivers/gpu/drm/panfrost/panfrost_device.h| 4 - drivers/gpu/drm/panfrost/panfrost_drv.c | 27 ++-- drivers/gp

[PATCH AUTOSEL 4.14 09/11] fbdev: core: syscopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit e8e4a470b677511f9d1ad4f3cef32adc1d9a60ca ] In sys_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH v18 06/26] drm/shmem-helper: Add and use pages_pin_count

2023-10-29 Thread Dmitry Osipenko
Add separate pages_pin_count for tracking of whether drm-shmem pages are moveable or not. With the addition of memory shrinker support to drm-shmem, the pages_use_count will no longer determine whether pages are hard-pinned in memory, but whether pages exist and are soft-pinned (and could be swappe

[PATCH v18 22/26] drm/shmem-helper: Don't free refcounted GEM

2023-10-29 Thread Dmitry Osipenko
Don't free refcounted shmem object to prevent use-after-free bug that is worse than a memory leak. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/driver

[PATCH v18 24/26] drm/virtio: Attach shmem BOs dynamically

2023-10-29 Thread Dmitry Osipenko
Prepare for addition of memory shrinker support by attaching shmem pages to host dynamically on first use. Previously the attachment vq command wasn't fenced and there was no vq kick made in the BO creation code path, hence the attachment already was happening dynamically, but implicitly. Making at

[PATCH v18 11/26] drm/shmem-helper: Prepare drm_gem_shmem_free() to shrinker addition

2023-10-29 Thread Dmitry Osipenko
Prepare drm_gem_shmem_free() to addition of memory shrinker support to drm-shmem by adding and using variant of put_pages() that doesn't touch reservation lock. Reservation shouldn't be touched because lockdep will trigger a bogus warning about locking contention with fs_reclaim code paths that can

[PATCH v18 05/26] drm/shmem-helper: Remove obsoleted is_iomem test

2023-10-29 Thread Dmitry Osipenko
Everything that uses the mapped buffer should be agnostic to is_iomem. The only reason for the is_iomem test is that we're setting shmem->vaddr to the returned map->vaddr. Now that the shmem->vaddr code is gone, remove the obsoleted is_iomem test to clean up the code. Suggested-by: Thomas Zimmerma

[PATCH v18 17/26] drm/v3d: Explicitly get and put drm-shmem pages

2023-10-29 Thread Dmitry Osipenko
To simplify the drm-shmem refcnt handling, we're moving away from the implicit get_pages() that is used by get_pages_sgt(). From now on drivers will have to pin pages while they use sgt. V3D driver doesn't support shrinker, hence pages are pinned and sgt is valid as long as pages' use-count > 0. S

[PATCH v18 20/26] drm/shmem-helper: Export drm_gem_shmem_get_pages_sgt_locked()

2023-10-29 Thread Dmitry Osipenko
Export drm_gem_shmem_get_pages_sgt_locked() that will be used by virtio-gpu shrinker during GEM swap-in operation done under the held reservation lock. Reviewed-by: Boris Brezillon Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 22 +- include/drm

[PATCH v18 07/26] drm/shmem-helper: Use refcount_t for pages_use_count

2023-10-29 Thread Dmitry Osipenko
Use atomic refcount_t helper for pages_use_count to optimize pin/unpin functions by skipping reservation locking while GEM's pin refcount > 1. Reviewed-by: Boris Brezillon Suggested-by: Boris Brezillon Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 33 +++-

[PATCH v18 21/26] drm/shmem-helper: Optimize unlocked get_pages_sgt()

2023-10-29 Thread Dmitry Osipenko
SGT isn't refcounted. Once SGT pointer has been obtained, it remains the same for both locked and unlocked get_pages_sgt(). Return cached SGT directly without taking a potentially expensive lock. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 3 +++ 1 file changed, 3

[PATCH v18 09/26] drm/shmem-helper: Switch drm_gem_shmem_vmap/vunmap to use pin/unpin

2023-10-29 Thread Dmitry Osipenko
The vmapped pages shall be pinned in memory and previously get/put_pages() were implicitly hard-pinning/unpinning the pages. This will no longer be the case with addition of memory shrinker because pages_use_count > 0 won't determine anymore whether pages are hard-pinned (they will be soft-pinned),

[PATCH v18 23/26] drm/virtio: Pin display framebuffer BO

2023-10-29 Thread Dmitry Osipenko
Prepare to addition of memory shrinker support by pinning display framebuffer BO pages in memory while they are in use by display on host. Shrinker is free to relocate framebuffer BO pages if it doesn't know that pages are in use, thus pin the pages to disallow shrinker to move them. Acked-by: Ger

[PATCH v18 16/26] drm/virtio: Explicitly get and put drm-shmem pages

2023-10-29 Thread Dmitry Osipenko
We're moving away from implicit get_pages() that is done by get_pages_sgt() to simplify the refcnt handling. Drivers will have to pin pages while they use sgt. VirtIO-GPU doesn't support shrinker, hence pages are pinned and sgt is valid as long as pages' use-count > 0. Signed-off-by: Dmitry Osipen

[PATCH v18 10/26] drm/shmem-helper: Use refcount_t for vmap_use_count

2023-10-29 Thread Dmitry Osipenko
Use refcount_t helper for vmap_use_count to make refcounting consistent with pages_use_count and pages_pin_count that use refcount_t. This also makes vmapping to benefit from the refcount_t's overflow checks. Reviewed-by: Boris Brezillon Suggested-by: Boris Brezillon Signed-off-by: Dmitry Osipen

[PATCH v18 15/26] drm/panfrost: Explicitly get and put drm-shmem pages

2023-10-29 Thread Dmitry Osipenko
To simplify the drm-shmem refcnt handling, we're moving away from the implicit get_pages() that is used by get_pages_sgt(). From now on drivers will have to pin pages while they use sgt. Panfrost's shrinker doesn't support swapping out BOs, hence pages are pinned and sgt is valid as long as pages'

[PATCH v18 03/26] drm/shmem-helper: Make all exported symbols GPL

2023-10-29 Thread Dmitry Osipenko
Make all drm-shmem exported symbols GPL to make them consistent with the rest of drm-shmem symbols. Reviewed-by: Boris Brezillon Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers

[PATCH AUTOSEL 4.14 08/11] fbdev: core: cfbcopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit 7f33df94cf0156f64eee9509bd9b4a178990f613 ] In cfb_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH v18 04/26] drm/shmem-helper: Refactor locked/unlocked functions

2023-10-29 Thread Dmitry Osipenko
Add locked and remove unlocked postfixes from drm-shmem function names, making names consistent with the drm/gem core code. Reviewed-by: Boris Brezillon Suggested-by: Boris Brezillon Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c| 64 +-- driv

[PATCH v18 01/26] drm/gem: Change locked/unlocked postfix of drm_gem_v/unmap() function names

2023-10-29 Thread Dmitry Osipenko
Make drm/gem API function names consistent by having locked function use the _locked postfix in the name, while the unlocked variants don't use the _unlocked postfix. Rename drm_gem_v/unmap() function names to make them consistent with the rest of the API functions. Reviewed-by: Boris Brezillon S

[PATCH v18 02/26] drm/gem: Add _locked postfix to functions that have unlocked counterpart

2023-10-29 Thread Dmitry Osipenko
Add _locked postfix to drm_gem functions that have unlocked counterpart functions to make GEM functions naming more consistent and intuitive in regards to the locking requirements. Reviewed-by: Boris Brezillon Suggested-by: Boris Brezillon Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm

[PATCH AUTOSEL 4.14 07/11] fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()

2023-10-29 Thread Sasha Levin
From: Jorge Maidana [ Upstream commit 1022e7e2f40574c74ed32c3811b03d26b0b81daf ] Delete the v86d netlink only after all the VBE tasks have been completed. Fixes initial state restore on module unload: uvesafb: VBE state restore call failed (eax=0x4f04, err=-19) Signed-off-by: Jorge Maidana Si

[PATCH v18 00/26] Add generic memory shrinker to VirtIO-GPU and Panfrost DRM drivers

2023-10-29 Thread Dmitry Osipenko
This series: 1. Adds common drm-shmem memory shrinker 2. Enables shrinker for VirtIO-GPU driver 3. Switches Panfrost driver to the common shrinker 4. Fixes bugs and improves drm-shmem code Mesa: https://gitlab.freedesktop.org/digetx/mesa/-/commits/virgl-madvise IGT: https://gitlab.freed

[PATCH AUTOSEL 4.14 01/11] fbdev: atyfb: only use ioremap_uc() on i386 and ia64

2023-10-29 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit c1a8d1d0edb71dec15c9649cb56866c71c1ecd9e ] ioremap_uc() is only meaningful on old x86-32 systems with the PAT extension, and on ia64 with its slightly unconventional ioremap() behavior, everywhere else this is the same as ioremap() anyway. Change the only d

[PATCH AUTOSEL 4.19 09/12] fbdev: core: syscopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit e8e4a470b677511f9d1ad4f3cef32adc1d9a60ca ] In sys_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 4.19 08/12] fbdev: core: cfbcopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit 7f33df94cf0156f64eee9509bd9b4a178990f613 ] In cfb_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 4.19 07/12] fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()

2023-10-29 Thread Sasha Levin
From: Jorge Maidana [ Upstream commit 1022e7e2f40574c74ed32c3811b03d26b0b81daf ] Delete the v86d netlink only after all the VBE tasks have been completed. Fixes initial state restore on module unload: uvesafb: VBE state restore call failed (eax=0x4f04, err=-19) Signed-off-by: Jorge Maidana Si

[PATCH AUTOSEL 4.19 01/12] fbdev: atyfb: only use ioremap_uc() on i386 and ia64

2023-10-29 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit c1a8d1d0edb71dec15c9649cb56866c71c1ecd9e ] ioremap_uc() is only meaningful on old x86-32 systems with the PAT extension, and on ia64 with its slightly unconventional ioremap() behavior, everywhere else this is the same as ioremap() anyway. Change the only d

[PATCH AUTOSEL 5.4 10/13] fbdev: core: syscopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit e8e4a470b677511f9d1ad4f3cef32adc1d9a60ca ] In sys_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 5.4 09/13] fbdev: core: cfbcopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit 7f33df94cf0156f64eee9509bd9b4a178990f613 ] In cfb_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 5.4 08/13] fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()

2023-10-29 Thread Sasha Levin
From: Jorge Maidana [ Upstream commit 1022e7e2f40574c74ed32c3811b03d26b0b81daf ] Delete the v86d netlink only after all the VBE tasks have been completed. Fixes initial state restore on module unload: uvesafb: VBE state restore call failed (eax=0x4f04, err=-19) Signed-off-by: Jorge Maidana Si

[PATCH AUTOSEL 5.4 01/13] fbdev: atyfb: only use ioremap_uc() on i386 and ia64

2023-10-29 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit c1a8d1d0edb71dec15c9649cb56866c71c1ecd9e ] ioremap_uc() is only meaningful on old x86-32 systems with the PAT extension, and on ia64 with its slightly unconventional ioremap() behavior, everywhere else this is the same as ioremap() anyway. Change the only d

[PATCH AUTOSEL 5.10 11/16] fbdev: core: syscopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit e8e4a470b677511f9d1ad4f3cef32adc1d9a60ca ] In sys_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 5.10 10/16] fbdev: core: cfbcopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit 7f33df94cf0156f64eee9509bd9b4a178990f613 ] In cfb_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 5.10 09/16] fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()

2023-10-29 Thread Sasha Levin
From: Jorge Maidana [ Upstream commit 1022e7e2f40574c74ed32c3811b03d26b0b81daf ] Delete the v86d netlink only after all the VBE tasks have been completed. Fixes initial state restore on module unload: uvesafb: VBE state restore call failed (eax=0x4f04, err=-19) Signed-off-by: Jorge Maidana Si

[PATCH AUTOSEL 5.10 01/16] fbdev: atyfb: only use ioremap_uc() on i386 and ia64

2023-10-29 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit c1a8d1d0edb71dec15c9649cb56866c71c1ecd9e ] ioremap_uc() is only meaningful on old x86-32 systems with the PAT extension, and on ia64 with its slightly unconventional ioremap() behavior, everywhere else this is the same as ioremap() anyway. Change the only d

[PATCH AUTOSEL 5.15 21/28] fbdev: core: cfbcopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit 7f33df94cf0156f64eee9509bd9b4a178990f613 ] In cfb_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 5.15 22/28] fbdev: core: syscopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit e8e4a470b677511f9d1ad4f3cef32adc1d9a60ca ] In sys_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 5.15 20/28] fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()

2023-10-29 Thread Sasha Levin
From: Jorge Maidana [ Upstream commit 1022e7e2f40574c74ed32c3811b03d26b0b81daf ] Delete the v86d netlink only after all the VBE tasks have been completed. Fixes initial state restore on module unload: uvesafb: VBE state restore call failed (eax=0x4f04, err=-19) Signed-off-by: Jorge Maidana Si

[PATCH AUTOSEL 5.15 19/28] drm/ttm: Reorder sys manager cleanup step

2023-10-29 Thread Sasha Levin
From: Karolina Stolarek [ Upstream commit 3b401e30c249849d803de6c332dad2a595a58658 ] With the current cleanup flow, we could trigger a NULL pointer dereference if there is a delayed destruction of a BO with a system resource that gets executed on drain_workqueue() call, as we attempt to free a r

Re: [PATCH 1/8] drm/loongson: Introduce a minimal support for Loongson VBIOS

2023-10-29 Thread Dmitry Baryshkov
On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wrote: > > Because some boards are equipped with non-transparent display bridges, > which need the VBIOS to provided parameters. > > Signed-off-by: Sui Jingfeng > --- > drivers/gpu/drm/loongson/Makefile | 3 +- > drivers/gpu/drm/loongson/loon

[PATCH AUTOSEL 5.15 01/28] fbdev: atyfb: only use ioremap_uc() on i386 and ia64

2023-10-29 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit c1a8d1d0edb71dec15c9649cb56866c71c1ecd9e ] ioremap_uc() is only meaningful on old x86-32 systems with the PAT extension, and on ia64 with its slightly unconventional ioremap() behavior, everywhere else this is the same as ioremap() anyway. Change the only d

[PATCH AUTOSEL 6.1 39/39] drm/amdgpu: Reserve fences for VM update

2023-10-29 Thread Sasha Levin
From: Felix Kuehling [ Upstream commit 316baf09d355aec1179981b6dfe28eba50c5ee5b ] In amdgpu_dma_buf_move_notify reserve fences for the page table updates in amdgpu_vm_clear_freed and amdgpu_vm_handle_moved. This fixes a BUG_ON in dma_resv_add_fence when using SDMA for page table updates. Signed

[PATCH AUTOSEL 6.1 29/39] gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET

2023-10-29 Thread Sasha Levin
From: Luben Tuikov [ Upstream commit fa8391ad68c16716e2c06ada397e99ceed2fb647 ] Eliminate DRM_SCHED_PRIORITY_UNSET, value of -2, whose only user was amdgpu. Furthermore, eliminate an index bug, in that when amdgpu boots, it calls drm_sched_entity_init() with DRM_SCHED_PRIORITY_UNSET, which uses

[PATCH AUTOSEL 6.1 28/39] drm/amdgpu: Unset context priority is now invalid

2023-10-29 Thread Sasha Levin
From: Luben Tuikov [ Upstream commit eab0261967aeab528db4d0a51806df8209aec179 ] A context priority value of AMD_CTX_PRIORITY_UNSET is now invalid--instead of carrying it around and passing it to the Direct Rendering Manager--and it becomes AMD_CTX_PRIORITY_NORMAL in amdgpu_ctx_ioctl(), the gatew

[PATCH AUTOSEL 6.1 26/39] fbdev: core: syscopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit e8e4a470b677511f9d1ad4f3cef32adc1d9a60ca ] In sys_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 6.1 25/39] fbdev: core: cfbcopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit 7f33df94cf0156f64eee9509bd9b4a178990f613 ] In cfb_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 6.1 24/39] fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()

2023-10-29 Thread Sasha Levin
From: Jorge Maidana [ Upstream commit 1022e7e2f40574c74ed32c3811b03d26b0b81daf ] Delete the v86d netlink only after all the VBE tasks have been completed. Fixes initial state restore on module unload: uvesafb: VBE state restore call failed (eax=0x4f04, err=-19) Signed-off-by: Jorge Maidana Si

[PATCH AUTOSEL 6.1 23/39] fbdev: omapfb: fix some error codes

2023-10-29 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit dc608db793731426938baa2f0e75a4a3cce5f5cf ] Return negative -ENXIO instead of positive ENXIO. Signed-off-by: Dan Carpenter Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/omap/omapfb_main.c | 4 ++-- 1 file changed, 2 inser

[PATCH AUTOSEL 6.1 22/39] drm/ttm: Reorder sys manager cleanup step

2023-10-29 Thread Sasha Levin
From: Karolina Stolarek [ Upstream commit 3b401e30c249849d803de6c332dad2a595a58658 ] With the current cleanup flow, we could trigger a NULL pointer dereference if there is a delayed destruction of a BO with a system resource that gets executed on drain_workqueue() call, as we attempt to free a r

[PATCH AUTOSEL 6.1 01/39] fbdev: atyfb: only use ioremap_uc() on i386 and ia64

2023-10-29 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit c1a8d1d0edb71dec15c9649cb56866c71c1ecd9e ] ioremap_uc() is only meaningful on old x86-32 systems with the PAT extension, and on ia64 with its slightly unconventional ioremap() behavior, everywhere else this is the same as ioremap() anyway. Change the only d

[PATCH AUTOSEL 6.5 52/52] drm/amdgpu: Reserve fences for VM update

2023-10-29 Thread Sasha Levin
From: Felix Kuehling [ Upstream commit 316baf09d355aec1179981b6dfe28eba50c5ee5b ] In amdgpu_dma_buf_move_notify reserve fences for the page table updates in amdgpu_vm_clear_freed and amdgpu_vm_handle_moved. This fixes a BUG_ON in dma_resv_add_fence when using SDMA for page table updates. Signed

[PATCH AUTOSEL 6.5 50/52] Revert "accel/ivpu: Use cached buffers for FW loading"

2023-10-29 Thread Sasha Levin
From: Stanislaw Gruszka [ Upstream commit 610b5d219d1ccac8064556310cc0e62e3c202389 ] This reverts commit 645d694559cab36fe6a57c717efcfa27d9321396. The commit cause issues with memory access from the device side. Switch back to write-combined memory mappings until the issues will be properly add

[PATCH AUTOSEL 6.5 39/52] gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET

2023-10-29 Thread Sasha Levin
From: Luben Tuikov [ Upstream commit fa8391ad68c16716e2c06ada397e99ceed2fb647 ] Eliminate DRM_SCHED_PRIORITY_UNSET, value of -2, whose only user was amdgpu. Furthermore, eliminate an index bug, in that when amdgpu boots, it calls drm_sched_entity_init() with DRM_SCHED_PRIORITY_UNSET, which uses

[PATCH AUTOSEL 6.5 38/52] drm/amdgpu: Unset context priority is now invalid

2023-10-29 Thread Sasha Levin
From: Luben Tuikov [ Upstream commit eab0261967aeab528db4d0a51806df8209aec179 ] A context priority value of AMD_CTX_PRIORITY_UNSET is now invalid--instead of carrying it around and passing it to the Direct Rendering Manager--and it becomes AMD_CTX_PRIORITY_NORMAL in amdgpu_ctx_ioctl(), the gatew

[PATCH AUTOSEL 6.5 35/52] fbdev: core: syscopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit e8e4a470b677511f9d1ad4f3cef32adc1d9a60ca ] In sys_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 6.5 34/52] fbdev: core: cfbcopyarea: fix sloppy typing

2023-10-29 Thread Sasha Levin
From: Sergey Shtylyov [ Upstream commit 7f33df94cf0156f64eee9509bd9b4a178990f613 ] In cfb_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived fr

[PATCH AUTOSEL 6.5 33/52] fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()

2023-10-29 Thread Sasha Levin
From: Jorge Maidana [ Upstream commit 1022e7e2f40574c74ed32c3811b03d26b0b81daf ] Delete the v86d netlink only after all the VBE tasks have been completed. Fixes initial state restore on module unload: uvesafb: VBE state restore call failed (eax=0x4f04, err=-19) Signed-off-by: Jorge Maidana Si

[PATCH AUTOSEL 6.5 32/52] fbdev: omapfb: fix some error codes

2023-10-29 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit dc608db793731426938baa2f0e75a4a3cce5f5cf ] Return negative -ENXIO instead of positive ENXIO. Signed-off-by: Dan Carpenter Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/omap/omapfb_main.c | 4 ++-- 1 file changed, 2 inser

[PATCH AUTOSEL 6.5 31/52] drm/ttm: Reorder sys manager cleanup step

2023-10-29 Thread Sasha Levin
From: Karolina Stolarek [ Upstream commit 3b401e30c249849d803de6c332dad2a595a58658 ] With the current cleanup flow, we could trigger a NULL pointer dereference if there is a delayed destruction of a BO with a system resource that gets executed on drain_workqueue() call, as we attempt to free a r

[PATCH AUTOSEL 6.5 01/52] fbdev: atyfb: only use ioremap_uc() on i386 and ia64

2023-10-29 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit c1a8d1d0edb71dec15c9649cb56866c71c1ecd9e ] ioremap_uc() is only meaningful on old x86-32 systems with the PAT extension, and on ia64 with its slightly unconventional ioremap() behavior, everywhere else this is the same as ioremap() anyway. Change the only d

Re: [PATCH 2/8] drm/loongson: Introduce a drm bridge driver for it66121 HDMI transmitter

2023-10-29 Thread Dmitry Baryshkov
On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wrote: > > The IT66121 is a DVO to HDMI converter, LS3A5000+LS7A1000 ML5A_MB use this > chip to support HDMI output. Thus add a drm bridge based driver for it. > This patch is developed with drivers/gpu/drm/bridge/ite-it66121.c as base. Please use the or

[PATCH 4/8] drm/loongson: Started to attach display bridge driver for LS7A1000

2023-10-29 Thread Sui Jingfeng
Loongson ML5B_MA board using ITE IT66121 HDMI transmitter to support HDMI display output, with the vbios provided the necessary information, we are able to create a minimal drm bridge driver for it. After apply this patch we are able to change mode freely. Tested on LS3A5000+LS7A1000 ML5B_MA board

[PATCH 2/8] drm/loongson: Introduce a drm bridge driver for it66121 HDMI transmitter

2023-10-29 Thread Sui Jingfeng
The IT66121 is a DVO to HDMI converter, LS3A5000+LS7A1000 ML5A_MB use this chip to support HDMI output. Thus add a drm bridge based driver for it. This patch is developed with drivers/gpu/drm/bridge/ite-it66121.c as base. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/loongson/Kconfig

[PATCH 6/8] drm/loongson: Clean up the output part of LS7A2000

2023-10-29 Thread Sui Jingfeng
Since the majority of sharable subroutines have been move to lsdc_output.c, and functional changes are done with previous patch. We finally see the light to cleanup, no functional change. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/loongson/lsdc_output_7a2000.c | 469 -- 1 fi

[PATCH 3/8] drm/loongson: Allow attach drm bridge driver by calling lsdc_output_init()

2023-10-29 Thread Sui Jingfeng
Move the sharable subroutine into lsdc_output.c and refactor. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/loongson/Makefile | 1 + drivers/gpu/drm/loongson/lsdc_drv.h| 17 - drivers/gpu/drm/loongson/lsdc_output.c | 640 + drivers/gpu/drm/loongson/lsdc_outp

[PATCH 8/8] drm/loongson: Add support for the display subsystem in LS2K2000

2023-10-29 Thread Sui Jingfeng
Before apply this patch, drm/loongson is basically works on LS2K2000. Because majority of hardware features of the DC are same with LS7A2000's counterpart. Despite LS2K2000 is a SoC, it don't has a dedicated VRAM. But the firmware will carve out part of system RAM as VRAM, and write the base addres

[PATCH 5/8] drm/loongson: Using vbios for the LS7A2000 output initialization

2023-10-29 Thread Sui Jingfeng
For LS7A2000, the built-in VGA encoder is transparent. Connect another external transmitter with this internal VGA encoder is not sane, thus is not allowed. Because there are two internal encoders hardware resource on the first display pipe, call loongson_vbios_query_encoder_info() to know what exa

[PATCH 1/8] drm/loongson: Introduce a minimal support for Loongson VBIOS

2023-10-29 Thread Sui Jingfeng
Because some boards are equipped with non-transparent display bridges, which need the VBIOS to provided parameters. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/loongson/Makefile | 3 +- drivers/gpu/drm/loongson/loongson_device.c | 4 + drivers/gpu/drm/loongson/loongson_vbios.c

[PATCH 7/8] drm/loongson: Support to infer DC reversion from CPU's PRID value

2023-10-29 Thread Sui Jingfeng
Due to the fact that the same display IP core has been integrated into different platform, there is a need to differentiate them on the runtime. The DC in LS7A1000/LS2K1000 has the PCI vendor & device ID of 0x0014:0x7A06 The DC in LS7A2000/LS2K2000 has the PCI vendor & device ID of 0x0014:0x7A36 B

[PATCH 0/8] drm/loongson: Submit a mini VBIOS support and a display bridge driver

2023-10-29 Thread Sui Jingfeng
Loongson boards using various external display bridges to extend output display interface. To complete the support, we have to introduce VBIOS( or DT/ACPI support) and display bridge drivers. Sui Jingfeng (8): drm/loongson: Introduce a minimal support for Loongson VBIOS drm/loongson: Introduce

Re: [PATCH v2 6/6] drm/vs: Add hdmi driver

2023-10-29 Thread Dmitry Baryshkov
On Thu, 26 Oct 2023 at 14:53, Maxime Ripard wrote: > > On Thu, Oct 26, 2023 at 11:57:22AM +0300, Dmitry Baryshkov wrote: > > On Thu, 26 Oct 2023 at 11:07, Maxime Ripard wrote: > > > > > > On Thu, Oct 26, 2023 at 01:23:53AM +0300, Dmitry Baryshkov wrote: > > > > > +static int starfive_hdmi_registe

Re: [PATCH v2 1/2] drm/msm: Small uabi fixes

2023-10-29 Thread Dmitry Baryshkov
On Sun, 29 Oct 2023 at 17:07, Rob Clark wrote: > > From: Rob Clark > > Correct the minor version exposed and error return value for > MSM_INFO_GET_NAME. > > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/msm/msm_drv.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: D

Re: [PATCH v2 2/2] drm/msm/gem: Add metadata

2023-10-29 Thread Dmitry Baryshkov
On Sun, 29 Oct 2023 at 17:07, Rob Clark wrote: > > From: Rob Clark > > The EXT_external_objects extension is a bit awkward as it doesn't pass > explicit modifiers, leaving the importer to guess with incomplete > information. In the case of vk (turnip) exporting and gl (freedreno) > importing, th

[PATCH v2 2/2] drm/msm/gem: Add metadata

2023-10-29 Thread Rob Clark
From: Rob Clark The EXT_external_objects extension is a bit awkward as it doesn't pass explicit modifiers, leaving the importer to guess with incomplete information. In the case of vk (turnip) exporting and gl (freedreno) importing, the "OPTIMAL_TILING_EXT" layout depends on VkImageCreateInfo fl

[PATCH v2 1/2] drm/msm: Small uabi fixes

2023-10-29 Thread Rob Clark
From: Rob Clark Correct the minor version exposed and error return value for MSM_INFO_GET_NAME. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index

[PATCH v2 0/2] drm/msm/gem: Add metadata uapi

2023-10-29 Thread Rob Clark
From: Rob Clark Add metadata mechanism to provide a back-channel to communicate image layout information between vk and gl, because EXT_external_objects doesn't support explicit modifiers and "OPTIMAL_TILING_EXT" is not enough information for the importer to deduce the layout. Rob Clark (2): d

  1   2   >