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/amd/display/dc/irq: Remove duplications of hpd_ack function from IRQThe major of dcn and dce irqs share a copy-pasted collectionof copy-pasted function, which is: hpd_ack.This patch removes
drm/amd/display/dc/irq: Remove duplications of hpd_ack function from IRQThe major of dcn and dce irqs share a copy-pasted collectionof copy-pasted function, which is: hpd_ack.This patch removes the multiple copy-pasted by moving them tothe irq_service.c and make the irq_service'scalls the functions implemented by the irq_service.cinstead.The hpd_ack function is replaced by hpd0_ack and hpd1_ack, therequired constants are also added.The changes were not tested on actual hardware. I am only ableto verify that the changes keep the code compileable and do mybest to look repeatedly if I am not actually changing any code.Signed-off-by: Sebastian Aguilera Novoa <saguileran@ime.usp.br>Reviewed-by: Alex Hung <alex.hung@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Add DCN35 IRQ[Why & How]- Add IRQ handling for DCN35- Update IRQ files for other DCNs in accordance to change in irq_service.hSigned-off-by: Qingqing Zhuo <Qingqing.Zhuo@amd.
drm/amd/display: Add DCN35 IRQ[Why & How]- Add IRQ handling for DCN35- Update IRQ files for other DCNs in accordance to change in irq_service.hSigned-off-by: Qingqing Zhuo <Qingqing.Zhuo@amd.com>Acked-by: Harry Wentland <Harry.Wentland@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: dc/irq: add support for DCE6 (v4)[Why]irq service requires changes for DCE6 support[How](v1) DCE6 targets are added replicating existing DCE8 implementation. due to missin
drm/amd/display: dc/irq: add support for DCE6 (v4)[Why]irq service requires changes for DCE6 support[How](v1) DCE6 targets are added replicating existing DCE8 implementation. due to missing CRTC_VERTICAL_INTERRUPT0_CONTROL registers/masks, dce/dce_8_0_{d,sh_mask}.h used instead of dce/dce_6_0_{d,sh_mask}.h(v2) DCE6 headers used adding the necessary vblank irq registers (INT_MASK and VBLANK_STATUS) and vblank irq masks as implemented in amdgpu driver. Add vblank_irq_info_funcs_dce60 with .set and .ack as per commit b10d51f ("drm/amd/display: Add interrupt entries for VBLANK isr.") and use it in vblank_int_entry(reg_num) macro definition(v3) updated due to following kernel 5.3 commit: 4fc4dca ("drm/amd: drop use of drmp.h in os_types.h")(v4) updated due to following kernel 5.6 commit: d9e3267 ("drm/amd/display: cleanup of construct and destruct funcs")Reviewed-by: Alex Deucher <alexander.deucher@amd.com>Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>