Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentThis was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs
Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentThis was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs sed -i 's/\(alloc_objs*(.*\), GFP_KERNEL)/\1)/'to convert the new alloc_obj() users that had a simple GFP_KERNELargument to just drop that argument.Note that due to the extreme simplicity of the scripting, any slightlymore complex cases spread over multiple lines would not be triggered:they definitely exist, but this covers the vast bulk of the cases, andthe resulting diff is also then easier to check automatically.For the same reason the 'flex' versions will be done as a separateconversion.Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
show more ...
treewide: Replace kmalloc with kmalloc_obj for non-scalar typesThis is the result of running the Coccinelle script fromscripts/coccinelle/api/kmalloc_objs.cocci. The script is designed toavoid sc
treewide: Replace kmalloc with kmalloc_obj for non-scalar typesThis is the result of running the Coccinelle script fromscripts/coccinelle/api/kmalloc_objs.cocci. The script is designed toavoid scalar types (which need careful case-by-case checking), andinstead replace kmalloc-family calls that allocate struct or unionobject instances:Single allocations: kmalloc(sizeof(TYPE), ...)are replaced with: kmalloc_obj(TYPE, ...)Array allocations: kmalloc_array(COUNT, sizeof(TYPE), ...)are replaced with: kmalloc_objs(TYPE, COUNT, ...)Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...)are replaced with: kmalloc_flex(*PTR, FAM, COUNT, ...)(where TYPE may also be *VAR)The resulting allocations no longer return "void *", instead returning"TYPE *".Signed-off-by: Kees Cook <kees@kernel.org>
drm/nouveau: add support for GB20xThis commit adds support for the GB20x GPUs found on GeForce RTX 50xxseries boards.Beyond a few miscellaneous register moves and HW class ID plumbing,this reus
drm/nouveau: add support for GB20xThis commit adds support for the GB20x GPUs found on GeForce RTX 50xxseries boards.Beyond a few miscellaneous register moves and HW class ID plumbing,this reuses most of the code added to support GH100/GB10x.Signed-off-by: Ben Skeggs <bskeggs@nvidia.com>Reviewed-by: Dave Airlie <airlied@redhat.com>Reviewed-by: Timur Tabi <ttabi@nvidia.com>Tested-by: Timur Tabi <ttabi@nvidia.com>Signed-off-by: Dave Airlie <airlied@redhat.com>
drm/nouveau: add support for GB10xThis commit enables basic support for the GB100/GB102 Blackwell GPUs.Beyond HW class ID plumbing there's very little change here vs GH100.Signed-off-by: Ben Sk
drm/nouveau: add support for GB10xThis commit enables basic support for the GB100/GB102 Blackwell GPUs.Beyond HW class ID plumbing there's very little change here vs GH100.Signed-off-by: Ben Skeggs <bskeggs@nvidia.com>Reviewed-by: Dave Airlie <airlied@redhat.com>Reviewed-by: Timur Tabi <ttabi@nvidia.com>Tested-by: Timur Tabi <ttabi@nvidia.com>Signed-off-by: Dave Airlie <airlied@redhat.com>
drm/nouveau: add support for GH100This commit enables basic support for Hopper GPUs, and is intendedprimarily as a base supporting Blackwell GPUs, which reuse most ofthe code added here.Advance
drm/nouveau: add support for GH100This commit enables basic support for Hopper GPUs, and is intendedprimarily as a base supporting Blackwell GPUs, which reuse most ofthe code added here.Advanced features such as Confidential Compute are not supported.Beyond a few miscellaneous register moves and HW class ID plumbing,the bulk of the changes implemented here are to support the GSP-RMboot sequence used on Hopper/Blackwell GPUs, as well as a new pagetable layout.There should be no changes here that impact prior GPUs.Signed-off-by: Ben Skeggs <bskeggs@nvidia.com>Co-developed-by: Timur Tabi <ttabi@nvidia.com>Signed-off-by: Timur Tabi <ttabi@nvidia.com>Reviewed-by: Dave Airlie <airlied@redhat.com>Reviewed-by: Timur Tabi <ttabi@nvidia.com>Tested-by: Timur Tabi <ttabi@nvidia.com>Signed-off-by: Dave Airlie <airlied@redhat.com>