[PATCH] MAINTAINERS: Add selftests to DMA-BUF HEAPS FRAMEWORK entry

2024-07-29 Thread Zenghui Yu
Include dmabuf-heaps selftests in the correct entry so that updates to it can be sent to the right place. Signed-off-by: Zenghui Yu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 42decde38320..b7f24c9fb0e2 100644 --- a/MAINTAINERS +++ b

Re: [PATCH v2] kselftests: dmabuf-heaps: Ensure the driver name is null-terminated

2024-07-29 Thread Zenghui Yu
On 2024/7/29 15:01, Daniel Vetter wrote: On Mon, Jul 29, 2024 at 10:46:04AM +0800, Zenghui Yu wrote: > Even if a vgem device is configured in, we will skip the import_vgem_fd() > test almost every time. > > TAP version 13 > 1..11 > # Te

[PATCH v2] kselftests: dmabuf-heaps: Ensure the driver name is null-terminated

2024-07-28 Thread Zenghui Yu
there is a name like "vgemfoo" that gets converted to "vgem\0" unexpectedly). Signed-off-by: Zenghui Yu --- * From v1 [1]: - Check version.name_len is exactly 4 bytes and return early otherwise [1] https://lore.kernel.org/r/20240708134654.1725-1-yuzeng...@huawei.com P.S., M

[PATCH] accel/qaic: Remove the description of DRM_IOCTL_QAIC_PART_DEV

2024-07-16 Thread Zenghui Yu
The partition device ioctl was removed during the development of the initial version of qaic driver. Remove its description from the documentation to avoid confusing readers. Signed-off-by: Zenghui Yu --- Documentation/accel/qaic/qaic.rst | 6 -- 1 file changed, 6 deletions(-) diff --git

Re: [PATCH 6/9] accel/rocket: Add a new driver for Rockchip's NPU

2024-07-09 Thread Zenghui Yu
On 2024/6/12 21:52, Tomeu Vizoso wrote: This initial version supports the NPU as shipped in the RK3588 SoC and described in the first part of its TRM, in Chapter 36. This NPU contains 3 independent cores that the driver can submit jobs to. This commit adds just hardware initialization and

Re: [PATCH] kselftests: dmabuf-heaps: Ensure the driver name is null-terminated

2024-07-09 Thread Zenghui Yu
On 2024/7/9 1:49, T.J. Mercier wrote: On Mon, Jul 8, 2024 at 6:47 AM Zenghui Yu wrote: > > Even if a vgem device is configured in, we will skip the import_vgem_fd() > test almost every time. > > TAP version 13 > 1..11 > #

[PATCH] kselftests: dmabuf-heaps: Ensure the driver name is null-terminated

2024-07-08 Thread Zenghui Yu
the DRM_IOCTL_VERSION ioctl to query the driver version information but leave the name field a non-null-terminated string. Terminate it properly to actually test against the vgem device. Signed-off-by: Zenghui Yu --- tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | 2 ++ 1 file changed, 2

Re: [PATCH] drm/i915: Free the returned object of acpi_evaluate_dsm()

2021-10-07 Thread Zenghui Yu
[+linux-acpi] ping On 2021/9/6 11:35, Zenghui Yu wrote: As per the comment on top of acpi_evaluate_dsm(): | * Evaluate device's _DSM method with specified GUID, revision id and | * function number. Caller needs to free the returned object. We should free the returned object

[PATCH] drm/i915: Free the returned object of acpi_evaluate_dsm()

2021-09-05 Thread Zenghui Yu
will be triggered at boot time (if we compile kernel with CONFIG_DEBUG_TEST_DRIVER_REMOVE=y). Fixes: 8e55f99c510f ("drm/i915: Invoke another _DSM to enable MUX on HP Workstation laptops") Cc: Kai-Heng Feng Signed-off-by: Zenghui Yu --- drivers/gpu/drm/i915/display/intel_acpi.c | 7

[PATCH] dt-bindings: display: remove zte,vou.txt binding doc

2021-08-30 Thread Zenghui Yu
The zte zx platform was removed in commit 89d4f98ae90d ("ARM: remove zte zx platform") and the zxdrm driver is going to be removed in v5.15 via drm tree. Let's remove the now obsolete binding doc. Cc: Arnd Bergmann Cc: Jun Nie Cc: Shawn Guo Signed-off-by: Zenghui Yu --- .../

Re: [PATCH] drm: remove zxdrm driver

2021-08-30 Thread Zenghui Yu
On 2021/8/31 0:12, Rob Herring wrote: On Thu, Aug 26, 2021 at 4:22 AM Daniel Vetter wrote: I just merged another patch to delete the zte driver. Unfortunately, that one missed the binding doc, so please send me a patch removing the binding doc. Okay I'll send it out today. I've searched

[PATCH] drm: remove zxdrm driver

2021-08-21 Thread Zenghui Yu
The zte zx platform had been removed in commit 89d4f98ae90d ("ARM: remove zte zx platform"), so this driver is no longer needed. Cc: Arnd Bergmann Cc: Jun Nie Cc: Shawn Guo Signed-off-by: Zenghui Yu --- .../devicetree/bindings/display/zte,vou.txt | 120 --- drivers/gpu/d

[PATCH] drm/hisilicon/hibmc: Move drm_fbdev_generic_setup() down to avoid the splat

2020-07-07 Thread Zenghui Yu
it down after drm_dev_register() which will follow the "Display driver example" documented by commit de99f0600a79 ("drm/drv: DOC: Add driver example code"). Signed-off-by: Zenghui Yu --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 5 +++-- 1 file changed, 3 insertions(+),

Re: [PATCH] drm/msm/dpu: Fix usage of ERR_PTR()

2020-06-22 Thread Zenghui Yu
ping for this obvious fix... On 2020/5/28 21:08, Zenghui Yu wrote: ERR_PTR() is used in the kernel to encode an usual *negative* errno code into a pointer. Passing a positive value (ENOMEM) to it will break the following IS_ERR() check. Though memory allocation is unlikely to fail, it's still

[PATCH] drm/msm/dpu: Fix usage of ERR_PTR()

2020-05-28 Thread Zenghui Yu
of ERR_PTR() in kernel. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Zenghui Yu --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm

Re: [RFC PATCH] fbcon: fix ypos over boundary issue

2019-07-23 Thread Zenghui Yu
Hi Bartlomiej, On 2019/7/23 23:59, Bartlomiej Zolnierkiewicz wrote: On 7/12/19 5:13 AM, Zenghui Yu wrote: From: Feng Tiantian While using "top" on a CentOS guest's VNC-client, then continuously press "Shift+PgUp", the guest kernel will get panic! Backtrace is attac

[RFC PATCH] fbcon: fix ypos over boundary issue

2019-07-11 Thread Zenghui Yu
exception >From our non-expert analysis, fbcon ypos will sometimes over boundary and then fbcon_putcs() access invalid VGA framebuffer address. We modify the real_y() to make sure fbcon ypos is always less than rows. Reported-by: Zengruan Ye Signed-off-by: Feng Tiantian Signed-off-by: Zenghui