Re: [PATCH] drm: xlnx: zynqmp_dpsub: Modify mismatched function name

2022-10-30 Thread Randy Dunlap
On 10/30/22 22:26, Jiapeng Chong wrote: > No functional modification involved. > > drivers/gpu/drm/xlnx/zynqmp_dp.c:793: warning: expecting prototype for > zynqmp_dp_link_train(). Prototype was for zynqmp_dp_train() instead. > Note that this warning is from scripts/kernel-doc. Acked-by:

[PATCH] drm: xlnx: zynqmp_dpsub: Modify mismatched function name

2022-10-30 Thread Jiapeng Chong
No functional modification involved. drivers/gpu/drm/xlnx/zynqmp_dp.c:793: warning: expecting prototype for zynqmp_dp_link_train(). Prototype was for zynqmp_dp_train() instead. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2666 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong ---

[PATCH] drm/i915/hwmon: Don't use FIELD_PREP

2022-10-30 Thread Ashutosh Dixit
FIELD_PREP and REG_FIELD_PREP have checks requiring a compile time constant mask. When the mask comes in as the argument of a function these checks can can fail depending on the compiler (gcc vs clang), optimization level, etc. Use a simpler local version of FIELD_PREP which skips these checks.

Re: [PATCH] dma-buf: fix racing conflict of dma_heap_add()

2022-10-30 Thread Andrew Davis
On 10/30/22 6:37 AM, Dawei Li wrote: Racing conflict could be: task A task B list_for_each_entry strcmp(h->name)) list_for_each_entry strcmp(h->name) kzallockzalloc .. . device_create

Re: [PATCH 3/3] drm: omapdrm: Do no allocate non-scanout GEMs through DMM/TILER

2022-10-30 Thread H. Nikolaus Schaller
Hi Ivaylo, it took a while until I found time to test newer kernels (mainline + Letux additions) on the OMAP5 Pyra but unfortunately I did not get screen display for v6.1. Even worse, the console was flooded by [ 39.419846] WARNING: CPU: 0 PID: 3673 at drivers/bus/omap_l3_noc.c:139

Re: [6.1][regression] after commit dd80d9c8eecac8c516da5b240d01a35660ba6cb6 some games (Cyberpunk 2077, Forza Horizon 4/5) hang at start

2022-10-30 Thread Mikhail Gavrilov
On Wed, Oct 26, 2022 at 12:29 PM Christian König wrote: > > Attached is the original test patch rebased on current amd-staging-drm-next. > > Can you test if this is enough to make sure that the games start without > crashing by fetching the userptrs? 1. Over the past week the list of games

Re: [PATCH] drm/nouveau: Adding support to control backlight using bl_power for nva3.

2022-10-30 Thread Sam Ravnborg
On Sat, Oct 29, 2022 at 03:48:50PM -0300, antoniospg wrote: > Test plan: > > * Turn off: > echo 1 > /sys/class/backlight/nv_backlight/bl_power > > * Turn on: > echo 0 > /sys/class/backlight/nv_backlight/bl_power > > Signed-off-by: antoniospg > --- > drivers/gpu/drm/nouveau/nouveau_backlight.c

Re: [GIT PULL] fbdev fixes for v6.1-rc3

2022-10-30 Thread pr-tracker-bot
The pull request you sent on Sun, 30 Oct 2022 18:08:30 +0100: > http://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev.git > tags/fbdev-for-6.1-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b72018ab8236c3ae427068adeb94bdd3f20454ec Thank you! --

[PATCH v2 2/2] media: docs: Add Synpatics tile modifiers

2022-10-30 Thread Hsia-Jun Li
From: Randy Li The pixel formats used in Synpatics video smart platform are too many. It is impossible to store them in fourcc namespace. Signed-off-by: Randy Li --- .../media/v4l/pixfmt-synaptics.rst| 80 +++ .../userspace-api/media/v4l/pixfmt.rst| 1 + 2

[PATCH v2 1/2] drm/fourcc: Add Synaptics VideoSmart tiled modifiers

2022-10-30 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Memory Traffic Reduction(MTR) is a module in Synaptics VideoSmart platform could process lossless compression image and cache the tile memory line. Those modifiers only record the parameters would effort pixel layout or memory layout. Whether physical memory page

[PATCH v2 0/2] Add pixel formats used in Synatpics SoC

2022-10-30 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Those pixel formats are used in Synaptics's VideoSmart series SoCs, likes VS640, VS680. I just disclose the pixel formats used in the video codecs and display pipeline this time. Actually any device connected to the MTR module could support those tiled and compressed

[GIT PULL] fbdev fixes for v6.1-rc3

2022-10-30 Thread Helge Deller
Hi Linus, please pull some fbdev fixes for kernel 6.1-rc3. A use-after-free bugfix in the smscufx driver. The other patches are minor. Thanks, Helge The following changes since commit 9abf2313adc1ca1b6180c508c25f22f9395cc780: Linux 6.1-rc1 (2022-10-16 15:36:24 -0700) are available in the

[Bug 213145] AMDGPU resets, timesout and crashes after "*ERROR* Waiting for fences timed out!"

2022-10-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=213145 --- Comment #27 from nvaert1986 (nvaert1...@hotmail.com) --- (In reply to rv1sr from comment #24) > Do you guys by any chance use KWin? > > Had experienced this exact issue on a daily basis (kernel 5.19 + amdgpu), > especially while running

[PATCH v2 1/2] dma-buf: Make locking consistent in dma_buf_detach()

2022-10-30 Thread Dmitry Osipenko
The dma_buf_detach() locks attach->dmabuf->resv and then unlocks dmabuf->resv, which could be a two different locks from a static code checker perspective. In particular this triggers Smatch to report the "double unlock" error. Make the locking pointers consistent. Reported-by: Dan Carpenter

[PATCH v2 2/2] drm/client: Prevent NULL dereference in drm_client_buffer_delete()

2022-10-30 Thread Dmitry Osipenko
The drm_gem_vunmap() will crash with a NULL dereference if the passed object pointer is NULL. It wasn't a problem before we added the locking support to drm_gem_vunmap function because the mapping argument was always NULL together with the object. Make drm_client_buffer_delete() to check whether

[PATCH v2 0/2] Fixes for dma-buf locking issues found by Smatch

2022-10-30 Thread Dmitry Osipenko
Hello, Here are the two patches fixing minor problems introduced by my "dma-buf locking convention" series. Thanks to Dan Carpenter who checked linux-next with Smatch and reported the found issues. Changelog: v2: - Added ack from Christian König to the dma-buf patch and improved the

Re: [PATCH v3] drm/i915/gvt: fix double free bug in split_2MB_gtt_entry

2022-10-30 Thread Zheng Hacker
Dave Airlie 于2022年10月27日周四 13:12写道: > I'll add some more people who can probably look at it. > > Dave. Got it, Thanks Dave. Regards, Zheng Wang

Re: [Intel-gfx] [PATCH v7 0/9] dyndbg: drm.debug adaptation

2022-10-30 Thread jim . cromie
On Thu, Oct 27, 2022 at 2:10 PM Ville Syrjälä wrote: > > On Thu, Oct 27, 2022 at 01:55:39PM -0600, jim.cro...@gmail.com wrote: > > On Thu, Oct 27, 2022 at 9:59 AM Ville Syrjälä > > wrote: > > > > > > On Thu, Oct 27, 2022 at 09:37:52AM -0600, jim.cro...@gmail.com wrote: > > > > On Thu, Oct 27,

Re: [PATCH] drm/nouveau: Adding support to control backlight using bl_power for nva3.

2022-10-30 Thread Bagas Sanjaya
On Sat, Oct 29, 2022 at 03:48:50PM -0300, antoniospg wrote: > Test plan: > > * Turn off: > echo 1 > /sys/class/backlight/nv_backlight/bl_power > > * Turn on: > echo 0 > /sys/class/backlight/nv_backlight/bl_power > You sent this patch twice, so I reply to the latest one. What is it doing?

[PATCH] dma-buf: fix racing conflict of dma_heap_add()

2022-10-30 Thread Dawei Li
Racing conflict could be: task A task B list_for_each_entry strcmp(h->name)) list_for_each_entry strcmp(h->name) kzallockzalloc .. . device_create device_create list_add

Subject: [PATCH] driver: gpu: add failure check for ftell

2022-10-30 Thread 沈言峰
add return-value check of ftell to improve robustness(and avoid abnormal behavior) Signed-off-by: SPeak Signed-off-by: shenyanfeng --- drivers/gpu/drm/radeon/mkregtable.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/mkregtable.c

[PATCH] drm/nouveau: Adding support to control backlight using bl_power for nva3.

2022-10-30 Thread antoniospg
Test plan: * Turn off: echo 1 > /sys/class/backlight/nv_backlight/bl_power * Turn on: echo 0 > /sys/class/backlight/nv_backlight/bl_power Signed-off-by: antoniospg --- drivers/gpu/drm/nouveau/nouveau_backlight.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git

[PATCH] drm/amd/display: add parameter backlight_min

2022-10-30 Thread Filip Moc
There are some devices on which amdgpu won't allow user to set brightness to sufficiently low values even though the hardware would support it just fine. This usually happens in two cases when either configuration of brightness levels via ACPI/ATIF is not available and amdgpu falls back to

[PATCH] drm/nouveau: Adding support to control backlight using bl_power for nva3.

2022-10-30 Thread antoniospg
Test plan: * Turn off: echo 1 > /sys/class/backlight/nv_backlight/bl_power * Turn on: echo 0 > /sys/class/backlight/nv_backlight/bl_power Signed-off-by: antoniospg --- drivers/gpu/drm/nouveau/nouveau_backlight.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git