Re: [PATCH v2] drm/panel/panel-sitronix-st7701: Fix RTNI calculation

2022-10-18 Thread Marek Vasut
On 10/18/22 10:53, Linus Walleij wrote: On Thu, Oct 13, 2022 at 12:12 AM Marek Vasut wrote: The RTNI field is multiplied by 16 and incremented by 512 before being used as the minimum number of pixel clock per horizontal line, hence it is necessary to subtract those 512 bytes from htotal and

Re: i915 "GPU HANG", bisected to a2daa27c0c61 "swiotlb: simplify swiotlb_max_segment"

2022-10-18 Thread Jan Beulich
On 18.10.2022 10:24, Christoph Hellwig wrote: > @@ -127,19 +128,22 @@ static inline unsigned int i915_sg_dma_sizes(struct > scatterlist *sg) > return page_sizes; > } > > -static inline unsigned int i915_sg_segment_size(void) > +static inline unsigned int i915_sg_segment_size(struct

Re: [PATCH v2] drm/panel/panel-sitronix-st7701: Fix RTNI calculation

2022-10-18 Thread Linus Walleij
On Thu, Oct 13, 2022 at 12:12 AM Marek Vasut wrote: > The RTNI field is multiplied by 16 and incremented by 512 before being > used as the minimum number of pixel clock per horizontal line, hence > it is necessary to subtract those 512 bytes from htotal and then divide > the result by 16 before

Re: [PATCH] drm/vc4: vec: Add support for PAL-60

2022-10-18 Thread Maxime Ripard
Hi, On Sun, Oct 16, 2022 at 09:46:49PM +0200, Mateusz Kwiatkowski wrote: > @@ -308,14 +324,15 @@ static const struct vc4_vec_tv_mode vc4_vec_tv_modes[] > = { > }; > > static inline const struct vc4_vec_tv_mode * > -vc4_vec_tv_mode_lookup(unsigned int mode) > +vc4_vec_tv_mode_lookup(unsigned

Re: [PATCH] fbdev: gbefb: convert sysfs snprintf to sysfs_emit

2022-10-18 Thread Helge Deller
On 10/18/22 09:51, Xuezhi Zhang wrote: From: Xuezhi Zhang Follow the advice of the Documentation/filesystems/sysfs.rst and show() should only use sysfs_emit() or sysfs_emit_at() when formatting the value to be returned to user space. Signed-off-by: Xuezhi Zhang applied. Thanks! Helge ---

Re: [PATCH v5 19/22] drm/vc4: vec: Check for VEC output constraints

2022-10-18 Thread Maxime Ripard
Hi, On Sun, Oct 16, 2022 at 08:16:32PM +0200, Mateusz Kwiatkowski wrote: > W dniu 13.10.2022 o 15:19, Maxime Ripard pisze: > > From: Mateusz Kwiatkowski > > > > The VEC can accept pretty much any relatively reasonable mode, but still > > has a bunch of constraints to meet. > > > > Let's create

[PATCH] drm/mipi-dsi: fix possible memory leak in mipi_dsi_device_register_full()

2022-10-18 Thread Yang Yingliang
If mipi_dsi_device_add() fails, the refcount of device is not 0, the name allocated in dev_set_name() is leaked. Fix this by calling put_device(), so that it will be freed in callback function kobject_cleanup(). Fixes: 068a00233969 ("drm: Add MIPI DSI bus support") Signed-off-by: Yang Yingliang

[PATCH] gma500: Remove the unused function gma_pipe_event()

2022-10-18 Thread Jiapeng Chong
The function gma_pipe_event() is defined in the psb_irq.c file, but not called elsewhere, so remove this unused function. drivers/gpu/drm/gma500/psb_irq.c:35:19: warning: unused function 'gma_pipe_event'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2428 Reported-by: Abaci Robot

Re: not ok 1 - single_pixel_source_buffer: The buggy address belongs to the physical page

2022-10-18 Thread David Gow
On Tue, Oct 18, 2022 at 3:54 PM Javier Martinez Canillas wrote: > > [adding a few folks to Cc list that might help with this issue] > > Hello Naresh, > > Thanks a lot for your report. > > On 10/18/22 08:40, Naresh Kamboju wrote: > > Following kunit tests started failing on Linux mainline. > > -

Re: [PATCH v5 06/22] drm/modes: Add a function to generate analog display modes

2022-10-18 Thread Maxime Ripard
Hi, On Sun, Oct 16, 2022 at 07:34:12PM +0200, Mateusz Kwiatkowski wrote: > Hi Maxime & everyone, > > Sorry for being inactive in the discussions about this patchset for the last > couple of weeks. > > > +const static struct analog_parameters tv_modes_parameters[] = { > > +

[PATCH] drm/amdgpu/discovery: fix possible memory leak

2022-10-18 Thread Yang Yingliang
If kset_register() fails, the refcount of device is not 0, the name allocated in dev_set_name() is leaked. Fix this by calling kset_put(), so that it will be freed in callback function kobject_cleanup(). Fixes: a6c40b178092 ("drm/amdgpu: Show IP discovery in sysfs") Signed-off-by: Yang Yingliang

[PATCH] drm/kmb: Remove some unused functions

2022-10-18 Thread Jiapeng Chong
Functions set_test_mode_src_osc_freq_target_low_bits() and set_test_mode_src_osc_freq_target_hi_bits() are defined in the kmb_dsi.c file, but not called elsewhere, so remove these unused functions. drivers/gpu/drm/kmb/kmb_dsi.c:822:2: warning: unused function

Re: logging:convert dev_info to drm_info

2022-10-18 Thread Jani Nikula
On Tue, 18 Oct 2022, jianengchencool wrote: > I want to convert logging dev_info/warn/err to drm_info/warn/err in > drivers/gpu/drm/pl111, so I want to ask if this work will be merged? Where are the patches? BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center

Re: [PATCH v5 08/22] drm/modes: Move named modes parsing to a separate function

2022-10-18 Thread Maxime Ripard
On Sun, Oct 16, 2022 at 06:11:21PM +0200, Noralf Trønnes wrote: > Den 13.10.2022 15.18, skrev Maxime Ripard: > > The current construction of the named mode parsing doesn't allow to extend > > it easily. Let's move it to a separate function so we can add more > > parameters and modes. > > > > In

Re: not ok 1 - single_pixel_source_buffer: The buggy address belongs to the physical page

2022-10-18 Thread Javier Martinez Canillas
[adding a few folks to Cc list that might help with this issue] Hello Naresh, Thanks a lot for your report. On 10/18/22 08:40, Naresh Kamboju wrote: > Following kunit tests started failing on Linux mainline. > - drm_format_helper_test — FAIL > - drm_test_fb_xrgb_to_xrgb2101010 — FAIL > -

[PATCH] fbdev: gbefb: convert sysfs snprintf to sysfs_emit

2022-10-18 Thread Xuezhi Zhang
From: Xuezhi Zhang Follow the advice of the Documentation/filesystems/sysfs.rst and show() should only use sysfs_emit() or sysfs_emit_at() when formatting the value to be returned to user space. Signed-off-by: Xuezhi Zhang --- drivers/video/fbdev/gbefb.c | 4 ++-- 1 file changed, 2

Paletted pixel formats could be supported in Wayland

2022-10-18 Thread Pekka Paalanen
Hi all, once again I read some comments about how important paletted pixel formats still are to some users. Here are some musings about how they could be supported in Wayland, because I want to underline that Wayland in no way denies paletted pixel formats; not for apps and not for compositors.

[PATCH v2] video: fbdev: sm501fb: convert sysfs snprintf to sysfs_emit

2022-10-18 Thread Xuezhi Zhang
From: Xuezhi Zhang Follow the advice of the Documentation/filesystems/sysfs.rst and show() should only use sysfs_emit() or sysfs_emit_at() when formatting the value to be returned to user space. Signed-off-by: Xuezhi Zhang --- v2:change onvert to convert in subject. ---

Re: [PATCH v4 11/30] drm/modes: Add a function to generate analog display modes

2022-10-18 Thread Maxime Ripard
Hi, On Sat, Oct 15, 2022 at 05:04:50PM +0200, Noralf Trønnes wrote: > Den 13.10.2022 10.36, skrev Maxime Ripard: > > On Sat, Oct 01, 2022 at 02:52:06PM +0200, Noralf Trønnes wrote: > >> Den 29.09.2022 18.31, skrev Maxime Ripard: > >>> Multiple drivers (meson, vc4, sun4i) define analog TV

Re: [PATCH v3 1/7] firmware: raspberrypi: Introduce rpi_firmware_find_node()

2022-10-18 Thread Maxime Ripard
Hi Florian On Fri, Oct 14, 2022 at 12:43:38PM -0700, Florian Fainelli wrote: > On 10/13/22 02:13, Maxime Ripard wrote: > > A significant number of RaspberryPi drivers using the firmware don't > > have a phandle to it, so end up scanning the device tree to find a node > > with the firmware

Re: [PATCH] fbdev: da8xx-fb: Fix error handling in .remove()

2022-10-18 Thread Uwe Kleine-König
On Tue, Oct 18, 2022 at 08:08:49AM +0200, Helge Deller wrote: > On 10/17/22 21:52, Uwe Kleine-König wrote: > > Even in the presence of problems (here: regulator_disable() might fail), > > it's important to unregister all resources acquired during .probe() and > > disable the device (i.e. DMA

logging:convert dev_info to drm_info

2022-10-18 Thread jianengchencool
Hi,I want to convert logging dev_info/warn/err to drm_info/warn/err  in drivers/gpu/drm/pl111, so I want to ask if this work will be merged?Thanks!TODO list below:Convert logging to drm_* functions with drm_device paramater¶For drivers which could have multiple instances, it is

[PATCH v4 10/17] drm/i915/vm_bind: Abstract out common execbuf functions

2022-10-18 Thread Niranjana Vishwanathapura
The new execbuf3 ioctl path and the legacy execbuf ioctl paths have many common functionalities. Abstract out the common execbuf functionalities into a separate file where possible, thus allowing code sharing. Reviewed-by: Andi Shyti Acked-by: Matthew Auld Signed-off-by: Niranjana

[PATCH v4 08/17] drm/i915/vm_bind: Support persistent vma activeness tracking

2022-10-18 Thread Niranjana Vishwanathapura
Do not use i915_vma activeness tracking for persistent vmas. As persistent vmas are part of working set for each execbuf submission on that address space (VM), a persistent vma is active if the VM active. As vm->root_obj->base.resv will be updated for each submission on that VM, it correctly

[PATCH v4 17/17] drm/i915/vm_bind: Add uapi for user to enable vm_bind_mode

2022-10-18 Thread Niranjana Vishwanathapura
Add getparam support for VM_BIND capability version. Add VM creation time flag to enable vm_bind_mode for the VM. v2: update kernel-doc v3: create vm->root_obj only upon I915_VM_CREATE_FLAGS_USE_VM_BIND v4: replace vm->vm_bind_mode check with i915_gem_vm_is_vm_bind_mode() Reviewed-by: Matthew

[PATCH v4 06/17] drm/i915/vm_bind: Support for VM private BOs

2022-10-18 Thread Niranjana Vishwanathapura
Each VM creates a root_obj and shares it with all of its private objects to use it as dma_resv object. This has a performance advantage as it requires a single dma_resv object update for all private BOs vs list of dma_resv objects update for shared BOs, in the execbuf path. VM private BOs can be

[PATCH v4 14/17] drm/i915/vm_bind: Expose i915_request_await_bind()

2022-10-18 Thread Niranjana Vishwanathapura
Rename __i915_request_await_bind() as i915_request_await_bind() and make it non-static as it will be used in execbuf3 ioctl path. Reviewed-by: Andi Shyti Signed-off-by: Niranjana Vishwanathapura --- drivers/gpu/drm/i915/i915_vma.c | 8 +--- drivers/gpu/drm/i915/i915_vma.h | 6 ++ 2

[PATCH v4 13/17] drm/i915/vm_bind: Update i915_vma_verify_bind_complete()

2022-10-18 Thread Niranjana Vishwanathapura
Ensure i915_vma_verify_bind_complete() handles case where bind is not initiated. Also make it non static, add documentation and move it out of CONFIG_DRM_I915_DEBUG_GEM. Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/i915_vma.c | 16 +++-

[PATCH v4 15/17] drm/i915/vm_bind: Handle persistent vmas in execbuf3

2022-10-18 Thread Niranjana Vishwanathapura
Handle persistent (VM_BIND) mappings during the request submission in the execbuf3 path. v2: Ensure requests wait for bindings to complete. v3: Remove short term pinning with PIN_VALIDATE flag. Individualize fences before adding to dma_resv obj. Signed-off-by: Niranjana Vishwanathapura

[PATCH v4 12/17] drm/i915/vm_bind: Implement I915_GEM_EXECBUFFER3 ioctl

2022-10-18 Thread Niranjana Vishwanathapura
Implement new execbuf3 ioctl (I915_GEM_EXECBUFFER3) which only works in vm_bind mode. The vm_bind mode only works with this new execbuf3 ioctl. The new execbuf3 ioctl will not have any list of objects to validate bind as all required objects binding would have been requested by the userspace

[PATCH v4 09/17] drm/i915/vm_bind: Add out fence support

2022-10-18 Thread Niranjana Vishwanathapura
Add support for handling out fence for vm_bind call. v2: Reset vma->vm_bind_fence.syncobj to NULL at the end of vm_bind call. v3: Remove vm_unbind out fence uapi which is not supported yet. Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Andi Shyti ---

[PATCH v4 03/17] drm/i915/vm_bind: Expose i915_gem_object_max_page_size()

2022-10-18 Thread Niranjana Vishwanathapura
Expose i915_gem_object_max_page_size() function non-static which will be used by the vm_bind feature. Reviewed-by: Matthew Auld Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gem/i915_gem_create.c | 18 +-

[PATCH v4 16/17] drm/i915/vm_bind: userptr dma-resv changes

2022-10-18 Thread Niranjana Vishwanathapura
For persistent (vm_bind) vmas of userptr BOs, handle the user page pinning by using the i915_gem_object_userptr_submit_init() /done() functions v2: Do not double add vma to vm->userptr_invalidated_list Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Andi Shyti ---

[PATCH v4 07/17] drm/i915/vm_bind: Add support to handle object evictions

2022-10-18 Thread Niranjana Vishwanathapura
Support eviction by maintaining a list of evicted persistent vmas for rebinding during next submission. Ensure the list do not include persistent vmas that are being purged. v2: Remove unused I915_VMA_PURGED definition. v3: Properly handle __i915_vma_unbind_async() case. Reviewed-by: Matthew

[PATCH v4 11/17] drm/i915/vm_bind: Use common execbuf functions in execbuf path

2022-10-18 Thread Niranjana Vishwanathapura
Update the execbuf path to use common execbuf functions to reduce code duplication with the newer execbuf3 path. Reviewed-by: Matthew Auld Signed-off-by: Niranjana Vishwanathapura --- .../gpu/drm/i915/gem/i915_gem_execbuffer.c| 507 ++ 1 file changed, 38 insertions(+), 469

[PATCH v4 01/17] drm/i915/vm_bind: Expose vm lookup function

2022-10-18 Thread Niranjana Vishwanathapura
Make i915_gem_vm_lookup() function non-static as it will be used by the vm_bind feature. Reviewed-by: Matthew Auld Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 11 ++- drivers/gpu/drm/i915/gem/i915_gem_context.h |

[PATCH v4 05/17] drm/i915/vm_bind: Implement bind and unbind of object

2022-10-18 Thread Niranjana Vishwanathapura
Add uapi and implement support for bind and unbind of an object at the specified GPU virtual addresses. The vm_bind mode is not supported in legacy execbuf2 ioctl. It will be supported only in the newer execbuf3 ioctl. v2: On older platforms ctx->vm is not set, check for it. In vm_bind call,

[PATCH v4 04/17] drm/i915/vm_bind: Add support to create persistent vma

2022-10-18 Thread Niranjana Vishwanathapura
Add i915_vma_instance_persistent() to create persistent vmas. Persistent vmas will use i915_gtt_view to support partial binding. vma_lookup is tied to segment of the object instead of section of VA space. Hence, it do not support aliasing. ie., multiple mappings (at different VA) point to the

[PATCH v4 00/17] drm/i915/vm_bind: Add VM_BIND functionality

2022-10-18 Thread Niranjana Vishwanathapura
DRM_I915_GEM_VM_BIND/UNBIND ioctls allows UMD to bind/unbind GEM buffer objects (BOs) or sections of a BOs at specified GPU virtual addresses on a specified address space (VM). Multiple mappings can map to the same physical pages of an object (aliasing). These mappings (also referred to as

[PATCH v4 02/17] drm/i915/vm_bind: Add __i915_sw_fence_await_reservation()

2022-10-18 Thread Niranjana Vishwanathapura
Add function __i915_sw_fence_await_reservation() for asynchronous wait on a dma-resv object with specified dma_resv_usage. This is required for async vma unbind with vm_bind. Reviewed-by: Matthew Auld Signed-off-by: Niranjana Vishwanathapura --- drivers/gpu/drm/i915/i915_sw_fence.c | 28

Re: [RFC PATCH v5 4/6] drm/tidss: Add support to configure OLDI mode for am625-dss.

2022-10-18 Thread Aradhya Bhatia
Hi Tomi Thank you for the comprehensive feedback across all the patches. I am working on them. I do have some concerns which I have talked about, below. On 12-Oct-22 17:53, Tomi Valkeinen wrote: On 28/09/2022 20:52, Aradhya Bhatia wrote: The newer version of DSS (AM625-DSS) has 2 OLDI TXes

Re: [PATCH] video: fbdev: sm501fb: onvert sysfs snprintf to sysfs_emit

2022-10-18 Thread Helge Deller
On 10/18/22 08:25, Xuezhi Zhang wrote: From: Xuezhi Zhang Follow the advice of the Documentation/filesystems/sysfs.rst and show() should only use sysfs_emit() or sysfs_emit_at() when formatting the value to be returned to user space. Signed-off-by: Xuezhi Zhang applied. Thanks! Helge ---

not ok 1 - single_pixel_source_buffer: The buggy address belongs to the physical page

2022-10-18 Thread Naresh Kamboju
Following kunit tests started failing on Linux mainline. - drm_format_helper_test — FAIL - drm_test_fb_xrgb_to_xrgb2101010 — FAIL - single_pixel_source_buffer — FAIL Good: v6.0-3015-g2bca25eaeba6 Bad: v6.0-5118-g833477fce7a1 Reported-by: Linux Kernel Functional Testing [ 50.320990]

[PATCH 9/9] drm/i915: Use kmap_local_page() in gem/i915_gem_execbuffer.c

2022-10-18 Thread Zhao Liu
From: Zhao Liu The use of kmap_atomic() is being deprecated in favor of kmap_local_page()[1]. The main difference between atomic and local mappings is that local mappings doesn't disable page faults or preemption. In i915_gem_execbuffer.c, eb->reloc_cache.vaddr is mapped by kmap_atomic() in

[PATCH 8/9] drm/i915: Use kmap_local_page() in i915_cmd_parser.c

2022-10-18 Thread Zhao Liu
From: Zhao Liu The use of kmap_atomic() is being deprecated in favor of kmap_local_page()[1]. The main difference between atomic and local mappings is that local mappings doesn't disable page faults or preemption. There're 2 reasons why function copy_batch() doesn't need to disable pagefaults

[RESEND PATCH v2] drm/bridge: dw-hdmi-i2s: set insert_pcuv bit if hardware supports it

2022-10-18 Thread Geraldo Nascimento
Hi Mark, resending this as it failed to apply in my last submission. Added Neil Armstrong to Cc: as hopefully he will be able to better review this. Thanks, Geraldo Nascimento --- Starting with version 2.10a of Synopsys DesignWare HDMI controller the insert_pcuv bit was introduced. On RK3399pro

[PATCH 7/9] drm/i915: Use memcpy_from_page() in gt/uc/intel_uc_fw.c

2022-10-18 Thread Zhao Liu
From: Zhao Liu The use of kmap_atomic() is being deprecated in favor of kmap_local_page()[1]. The main difference between atomic and local mappings is that local mappings doesn't disable page faults or preemption. In drm/i915/gt/uc/intel_us_fw.c, the function intel_uc_fw_copy_rsa() just use

Re: [PATCH v1] drm/panel: simple: set bpc field for logic technologies displays

2022-10-18 Thread Francesco Dolcini
On Wed, Aug 31, 2022 at 04:16:22PM +0200, Francesco Dolcini wrote: > From: Aishwarya Kothari > > In case bpc is not set for a panel it then throws a WARN(). Add bpc to > the panels logictechno_lt170410_2whc and logictechno_lt161010_2nh. > > Fixes: 5728fe7fa539 ("drm/panel: simple: add display

[PATCH 3/9] drm/i915: Use kmap_local_page() in gem/i915_gem_shmem.c

2022-10-18 Thread Zhao Liu
From: Zhao Liu The use of kmap_atomic() is being deprecated in favor of kmap_local_page()[1]. The main difference between atomic and local mappings is that local mappings doesn't disable page faults or preemption. In drm/i915/gem/i915_gem_shmem.c, the function shmem_pwrite() need to disable

[PATCH v3] x86/hyperv: Replace kmap() with kmap_local_page()

2022-10-18 Thread Zhao Liu
From: Zhao Liu kmap() is being deprecated in favor of kmap_local_page()[1]. There are two main problems with kmap(): (1) It comes with an overhead as mapping space is restricted and protected by a global lock for synchronization and (2) it also requires global TLB invalidation when the kmap's

[PATCH 5/9] drm/i915: Use kmap_local_page() in gem/selftests/i915_gem_coherency.c

2022-10-18 Thread Zhao Liu
From: Zhao Liu The use of kmap_atomic() is being deprecated in favor of kmap_local_page()[1]. The main difference between atomic and local mappings is that local mappings doesn't disable page faults or preemption. In drm/i915/gem/selftests/i915_gem_coherency.c, functions cpu_set() and

[PATCH 6/9] drm/i915: Use kmap_local_page() in gem/selftests/i915_gem_context.c

2022-10-18 Thread Zhao Liu
From: Zhao Liu The use of kmap_atomic() is being deprecated in favor of kmap_local_page()[1]. The main difference between atomic and local mappings is that local mappings doesn't disable page faults or preemption. In drm/i915/gem/selftests/i915_gem_context.c, functions cpu_fill() and

[PATCH 1/9] drm/i915: Use kmap_local_page() in gem/i915_gem_object.c

2022-10-18 Thread Zhao Liu
From: Zhao Liu The use of kmap_atomic() is being deprecated in favor of kmap_local_page()[1]. The main difference between atomic and local mappings is that local mappings doesn't disable page faults or preemption. There're 2 reasons why i915_gem_object_read_from_page_kmap() doesn't need to

[PATCH 0/9] drm/i915: Replace kmap_atomic() with kmap_local_page()

2022-10-18 Thread Zhao Liu
From: Zhao Liu The use of kmap_atomic() is being deprecated in favor of kmap_local_page()[1]. In the following patches, we can convert the calls of kmap_atomic() / kunmap_atomic() to kmap_local_page() / kunmap_local(), which can instead do the mapping / unmapping regardless of the context.

Re: [PATCH v6 0/7] treewide cleanup of random integer usage

2022-10-18 Thread liulongfang
On 2022/10/11 7:06, Jason A. Donenfeld Wrote: > Changes v5->v6: > - Added a few missing conversions that weren't in my older tree, so now > this should be ready to go, as well as a couple nits people had from > v5. Barring something large and unforeseen, this is the "final > version", as

Re: [PATCH v3] x86/hyperv: Replace kmap() with kmap_local_page()

2022-10-18 Thread Zhao Liu
Sorry, please ignore the last hyperv patch, I made a mistake. Zhao On Mon, Oct 17, 2022 at 05:37:26PM +0800, Zhao Liu wrote: > Date: Mon, 17 Oct 2022 17:37:26 +0800 > From: Zhao Liu > Subject: [PATCH v3] x86/hyperv: Replace kmap() with kmap_local_page() > X-Mailer: git-send-email 2.34.1 > >

[PATCH 2/9] drm/i915: Use kmap_local_page() in gem/i915_gem_pyhs.c

2022-10-18 Thread Zhao Liu
From: Zhao Liu The use of kmap_atomic() is being deprecated in favor of kmap_local_page()[1]. The main difference between atomic and local mappings is that local mappings doesn't disable page faults or preemption. In drm/i915/gem/i915_gem_phys.c, the functions i915_gem_object_get_pages_phys()

[PATCH 4/9] drm/i915: Use kmap_local_page() in gem/selftests/huge_pages.c

2022-10-18 Thread Zhao Liu
From: Zhao Liu The use of kmap_atomic() is being deprecated in favor of kmap_local_page()[1]. The main difference between atomic and local mappings is that local mappings doesn't disable page faults or preemption. In drm/i915/gem/selftests/huge_pages.c, function __cpu_check_shmem() mainly uses

[PATCH] video: fbdev: sm501fb: onvert sysfs snprintf to sysfs_emit

2022-10-18 Thread Xuezhi Zhang
From: Xuezhi Zhang Follow the advice of the Documentation/filesystems/sysfs.rst and show() should only use sysfs_emit() or sysfs_emit_at() when formatting the value to be returned to user space. Signed-off-by: Xuezhi Zhang --- drivers/video/fbdev/sm501fb.c | 2 +- 1 file changed, 1

Re: [PATCH] fbdev: da8xx-fb: Fix error handling in .remove()

2022-10-18 Thread Helge Deller
On 10/17/22 21:52, Uwe Kleine-König wrote: Even in the presence of problems (here: regulator_disable() might fail), it's important to unregister all resources acquired during .probe() and disable the device (i.e. DMA activity) because even if .remove() returns an error code, the device is

kunit: drm_framebuffer: kernel BUG at drivers/gpu/drm/drm_buddy.c

2022-10-18 Thread Naresh Kamboju
Following kernel BUG reported while running kunit drm_framebuffer tests on Linux mainline 6.1.0-rc1. Started happening from Linux next 6.0.0-rc1-next-20220818. Stared happening on Linux mainline from git_sha: 833477fce7a14d43ae4c07f8ddc32fa5119471a2 Reported-by: Linux Kernel Functional Testing

<    1   2