lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250816143752.397973-1-rongqianfeng@vivo.com>
Date: Sat, 16 Aug 2025 22:37:49 +0800
From: Qianfeng Rong <rongqianfeng@...o.com>
To: Lyude Paul <lyude@...hat.com>,
	Danilo Krummrich <dakr@...nel.org>,
	David Airlie <airlied@...il.com>,
	Simona Vetter <simona@...ll.ch>,
	Alex Deucher <alexander.deucher@....com>,
	Christian König <christian.koenig@....com>,
	dri-devel@...ts.freedesktop.org (open list:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS),
	nouveau@...ts.freedesktop.org (open list:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS),
	linux-kernel@...r.kernel.org (open list),
	amd-gfx@...ts.freedesktop.org (open list:RADEON and AMDGPU DRM DRIVERS)
Cc: Qianfeng Rong <rongqianfeng@...o.com>
Subject: [PATCH 0/2] drm: Use vmalloc_array and vcalloc to simplify code

Remove array_size() calls and replace vmalloc() and vzalloc() with
vmalloc_array() and vcalloc() respectively to simplify the code.

vmalloc_array() is also optimized better, resulting in less instructions
being used [1].

[1]: https://lore.kernel.org/lkml/abc66ec5-85a4-47e1-9759-2f60ab111971@vivo.com/

Qianfeng Rong (2):
  drm/nouveau: Use vmalloc_array to simplify code
  drm/radeon: Use vmalloc_array and vcalloc to simplify code

 drivers/gpu/drm/nouveau/nv84_fence.c | 2 +-
 drivers/gpu/drm/radeon/radeon_gart.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ