[PATCH 00/29] [Set 15] Finally rid W=1 warnings from GPU!

2021-01-15 Thread Lee Jones
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings. Last set! All clean after this for; Arm, Arm64, PPC, MIPS and x86. Lee Jones (29): drm/vmwgfx/vmwgfx_cmdbuf: Fix misnaming of 'headers' should b

[PATCH 35/40] drm/vmwgfx/vmwgfx_cmdbuf_res: Rename param description and remove another

2021-01-15 Thread Lee Jones
Also fix a small formatting issue. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:83: warning: Function parameter or member 'res_type' not described in 'vmw_cmdbuf_res_lookup' drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:83: warning: Excess function

[GIT PULL] arm64 fixes for 5.11-rc4

2021-01-15 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fixes below. Thanks. The following changes since commit 7c53f6b671f4aba70ff15e1b05148b10d58c2837: Linux 5.11-rc3 (2021-01-10 14:34:50 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes f

[PATCH 31/40] drm/gma500/gem: Do not rely on consumers to include drm/drm_device.h before gem.h

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/gem.h:13:57: warning: ‘struct drm_device’ declared inside parameter list will not be visible outside of this definition or declaration Cc: Patrik Jakobsson Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesk

[PATCH 30/40] drm/gma500/psb_intel_modes: Provide missing descriptions for function param 'adapter'

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/psb_intel_modes.c:17: warning: Function parameter or member 'adapter' not described in 'psb_intel_ddc_probe' drivers/gpu/drm/gma500/psb_intel_modes.c:51: warning: Function parameter or member 'adapter' not described in 'ps

[PATCH 21/40] drm/gma500/gma_display: Demote kernel-doc abuses to standard comment blocks

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/gma_display.c:27: warning: Function parameter or member 'crtc' not described in 'gma_pipe_has_type' drivers/gpu/drm/gma500/gma_display.c:27: warning: Function parameter or member 'type' not described in 'gma_pipe_has_type'

[PATCH 27/40] drm/vmwgfx/vmwgfx_bo: Remove superfluous param description and supply another

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_bo.c:142: warning: Excess function parameter 'pin' description in 'vmw_bo_pin_in_vram_or_gmr' drivers/gpu/drm/vmwgfx/vmwgfx_bo.c:647: warning: Function parameter or member 'p_base' not described in 'vmw_user_bo_allo

[PATCH 23/40] drm/vmwgfx/vmwgfx_overlay: Demote kernel-doc abuses to standard comment blocks

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:48: warning: cannot understand function prototype: 'struct vmw_overlay ' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:98: warning: Function parameter or member 'dev_priv' not described in 'vmw_overlay_send_put'

[PATCH 37/40] drm/vmwgfx/vmwgfx_cmdbuf: Fix a bunch of missing or incorrectly formatted/named params

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:58: warning: Function parameter or member 'block_submission' not described in 'vmw_cmdbuf_context' drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:109: warning: cannot understand function prototype: 'struct vmw_cmdb

[PATCH 29/40] drm/vmwgfx/vmwgfx_scrn: Demote unworthy kernel-doc headers and update others

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:90: warning: cannot understand function prototype: 'struct vmw_screen_object_unit ' drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:122: warning: Function parameter or member 'dev_priv' not described in 'vmw_sou_fifo_cr

[PATCH 38/40] drm/gma500/power: Remove excess param description 'state'

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/power.c:190: warning: Excess function parameter 'state' description in 'gma_power_suspend' Cc: Patrik Jakobsson Cc: David Airlie Cc: Daniel Vetter Cc: Benjamin Defnet Cc: Rajesh Poornachandran Cc: Alan Cox Cc: dri-de.

[PATCH 28/40] drm/vmwgfx/vmwgfx_context: Demote kernel-doc abuses

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_context.c:121: warning: Function parameter or member 'dev_priv' not described in 'vmw_context_cotables_unref' drivers/gpu/drm/vmwgfx/vmwgfx_context.c:121: warning: Function parameter or member 'uctx' not described i

[PATCH] kernel/time: Add hr_sleep syscall, a high-resolution sleep service

2021-01-15 Thread Marco Faltelli
hr_sleep is a new system call engineered for nanosecond time scale granularities. With respect to nanosleep, it uses a single value representation of the sleep period. hr_sleep achieves 15x improvement for microsecond scale timers w.r.t. nanosleep: the reason is the use of a CPU register for passin

[PATCH 17/40] drm/gma500/intel_i2c: Remove superflouous parameter description and rename another

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/intel_i2c.c:108: warning: Excess function parameter 'output' description in 'psb_intel_i2c_create' drivers/gpu/drm/gma500/intel_i2c.c:153: warning: Function parameter or member 'chan' not described in 'psb_intel_i2c_destro

[PATCH 32/40] drm/gma500/gem: Include our own header containing prototypes

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/gem.c:59:5: warning: no previous prototype for ‘psb_gem_create’ [-Wmissing-prototypes] Cc: Patrik Jakobsson Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gp

[PATCH 36/40] drm/vmwgfx/vmwgfx_shader: Demote kernel-doc abuses and fix-up worthy headers

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_shader.c:134: warning: Function parameter or member 'res' not described in 'vmw_res_to_shader' drivers/gpu/drm/vmwgfx/vmwgfx_shader.c:663: warning: Function parameter or member 'base' not described in 'vmw_user_shad

[PATCH 20/40] drm/vmwgfx/vmwgfx_kms: Update worthy function headers and demote others

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): In file included from drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:37: drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:483: warning: Function parameter or member 'new_state' not described in 'vmw_du_cursor_plane_atomic_check' drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:483:

[PATCH 40/40] drm/vmwgfx/vmwgfx_stdu: Add some missing param/member descriptions

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c:77: warning: Function parameter or member 'pitch' not described in 'vmw_stdu_dirty' drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c:125: warning: Function parameter or member 'content_fb_type' not described in 'vmw_scre

[PATCH 39/40] drm/vmwgfx/vmwgfx_cmdbuf_res: Remove unused variable 'ret'

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c: In function ‘vmw_cmdbuf_res_revert’: drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:162:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: VMware Graphics Cc: Roland Scheidegger

[PATCH 34/40] drm/gma500/mmu: Remove unused function 'psb_get_default_pd_addr'

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/mmu.c:420:10: warning: no previous prototype for ‘psb_get_default_pd_addr’ [-Wmissing-prototypes] Cc: Patrik Jakobsson Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org Signed-off-by: Lee Jones ---

[PATCH 18/40] drm/gma500/mmu: Make local function 'psb_mmu_pt_alloc_map_lock()' static

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/mmu.c:316:20: warning: no previous prototype for ‘psb_mmu_pt_alloc_map_lock’ [-Wmissing-prototypes] Cc: Patrik Jakobsson Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org Signed-off-by: Lee Jones --

[PATCH 33/40] drm/vmwgfx/vmwgfx_surface: Fix some kernel-doc related issues

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:55: warning: Function parameter or member 'prime' not described in 'vmw_user_surface' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:55: warning: Function parameter or member 'backup_base' not described in 'vmw_u

[PATCH 19/40] drm/gma500/power: Fix a bunch of *dev documentation issues

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/power.c:101: warning: Function parameter or member 'pdev' not described in 'gma_resume_display' drivers/gpu/drm/gma500/power.c:155: warning: Function parameter or member 'pdev' not described in 'gma_resume_pci' drivers/gp

[PATCH 01/40] drm/r128/r128_ioc32: Document headers do not make good kernel-doc candidates

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/r128/r128_ioc32.c:2: warning: Cannot understand * file r128_ioc32.c Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/r128/r128_ioc32.c | 2 +- 1 file changed,

[PATCH 13/40] drm/vmwgfx/vmwgfx_ldu: Supply descriptions for 'state' function parameter

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:55: warning: cannot understand function prototype: 'struct vmw_legacy_display_unit ' drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:218: warning: Function parameter or member 'state' not described in 'vmw_ldu_crtc_atomic

[PATCH 14/40] drm/gma500/framebuffer: Fix some possible doc-rot issues

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/framebuffer.c:171: warning: Function parameter or member 'obj' not described in 'psb_framebuffer_init' drivers/gpu/drm/gma500/framebuffer.c:171: warning: Excess function parameter 'gt' description in 'psb_framebuffer_init'

[PATCH 15/40] drm/gma500/gem: Add and rename some function parameter descriptions

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/gem.c:57:5: warning: no previous prototype for ‘psb_gem_create’ [-Wmissing-prototypes] drivers/gpu/drm/gma500/gem.c:59: warning: Function parameter or member 'stolen' not described in 'psb_gem_create' drivers/gpu/drm/gma5

[PATCH 24/40] drm/gma500/psb_intel_display: Demote kernel-doc formatting abuse

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/gma500/psb_intel_display.c:79: warning: Function parameter or member 'dev' not described in 'psb_intel_panel_fitter_pipe' Cc: Patrik Jakobsson Cc: David Airlie Cc: Daniel Vetter Cc: Eric Anholt Cc: dri-de...@lists.freedesktop.

[PATCH 05/40] drm/r128/r128_ioc32: Fix formatting issues in 'r128_compat_ioctl()'s header

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/r128/r128_ioc32.c:182: warning: Function parameter or member 'filp' not described in 'r128_compat_ioctl' drivers/gpu/drm/r128/r128_ioc32.c:182: warning: Function parameter or member 'cmd' not described in 'r128_compat_ioctl' dri

[PATCH 02/40] drm/mga/mga_ioc32: Document headers do not make good kernel-doc candidates

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/mga/mga_ioc32.c:2: warning: Cannot understand * file mga_ioc32.c Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/mga/mga_ioc32.c | 2 +- 1 file changed, 1 in

[PATCH 03/40] drm/vmwgfx/vmwgfx_execbuf: Fix some kernel-doc related issues

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:89: warning: Enum value 'vmw_res_rel_max' not described in enum 'vmw_resource_relocation_type' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:136: warning: Function parameter or member 'func' not described in 'vm

[PATCH 12/40] drm/vmwgfx/vmwgfx_fifo: Demote non-conformant kernel-doc header

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c:299: warning: Function parameter or member 'dev_priv' not described in 'vmw_local_fifo_reserve' drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c:299: warning: Function parameter or member 'bytes' not described in 'vmw_lo

[PATCH 11/40] drm/vmwgfx/vmwgfx_ttm_buffer: Supply some missing parameter descriptions

2021-01-15 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:275: warning: Function parameter or member 'p_offset' not described in 'vmw_piter_start' drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:676: warning: Function parameter or member 'evict' not described in 'v

[PATCH 00/40] [Set 14] Rid W=1 warnings from GPU

2021-01-15 Thread Lee Jones
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings. Penultimate set, promise. :) Lee Jones (40): drm/r128/r128_ioc32: Document headers do not make good kernel-doc candidates drm/mga/mga_ioc32

Re: [PATCH v4 08/10] mm/gup: limit number of gup migration failures, honor failures

2021-01-15 Thread Pavel Tatashin
On Wed, Jan 13, 2021 at 3:05 PM Pavel Tatashin wrote: > > > > > Oh, that existing logic is wrong too :( Another bug. > > > > > > I do not think there is a bug. > > > > > > > You can't skip pages in the pages[] array under the assumption they > > > > are contiguous. ie the i+=step is wrong. > > > >

Re: [PATCH 0/3] x86/KVM/VMX: Introduce and use try_cmpxchg64()

2021-01-15 Thread Sean Christopherson
On Tue, Dec 15, 2020, Uros Bizjak wrote: > This patch series introduces try_cmpxchg64() atomic locking function. > > try_cmpxchg64() provides the same interface for 64 bit and 32 bit targets, > emits CMPXCHGQ for 64 bit targets and CMPXCHG8B for 32 bit targets, > and provides appropriate fallbacks

Re: [PATCH v4 2/2] ARM: dts: am33xx-l4: change #pinctrl-cells from 1 to 2

2021-01-15 Thread Emmanuel Vadot
Hello Drew, On Wed, 1 Jul 2020 03:33:20 +0200 Drew Fustini wrote: > Increase #pinctrl-cells to 2 so that mux and conf be kept separate. This > requires the AM33XX_PADCONF macro in omap.h to also be modified to keep pin > conf and pin mux values separate. > > Signed-off-by: Drew Fustini > -

Re: [PATCH v3 2/2] kasan, arm64: fix pointer tags in KASAN reports

2021-01-15 Thread Andrey Konovalov
On Fri, Jan 15, 2021 at 6:59 PM Catalin Marinas wrote: > > On Fri, Jan 15, 2021 at 06:41:53PM +0100, Andrey Konovalov wrote: > > As of the "arm64: expose FAR_EL1 tag bits in siginfo" patch, the address > > that is passed to report_tag_fault has pointer tags in the format of 0x0X, > > while KASAN u

Re: [PATCH 1/2] dt-bindings: fpga: Add compatible value for Xilinx DFX AXI shutdown manger

2021-01-15 Thread Tom Rix
On 1/14/21 5:34 PM, Nava kishore Manne wrote: > This patch Adds compatible value for Xilinx Dynamic Function eXchnage(DFX) > AXI Shutdown manager IP. A multi patch set should have a cover letter. Use git format-patch --cover-letter > Signed-off-by: Nava kishore Manne > --- > .../bindings/fpg

[tip: x86/platform] x86/platform/geode: Convert geode LED to GPIO machine descriptor

2021-01-15 Thread tip-bot2 for Linus Walleij
The following commit has been merged into the x86/platform branch of tip: Commit-ID: ab20fda2a3da1b189a061ca045d9ca734e1db234 Gitweb: https://git.kernel.org/tip/ab20fda2a3da1b189a061ca045d9ca734e1db234 Author:Linus Walleij AuthorDate:Tue, 24 Nov 2020 09:53:38 +01:00 Commit

[tip: x86/platform] x86/platform/geode: Convert alix LED to GPIO machine descriptor

2021-01-15 Thread tip-bot2 for Linus Walleij
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 604303018221d00b58422e1d117ba29ce84295cb Gitweb: https://git.kernel.org/tip/604303018221d00b58422e1d117ba29ce84295cb Author:Linus Walleij AuthorDate:Tue, 24 Nov 2020 09:53:39 +01:00 Commit

[tip: x86/platform] x86/platform/geode: Convert net5501 LED to GPIO machine descriptor

2021-01-15 Thread tip-bot2 for Linus Walleij
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 3ff13602d7cae283bca1c52caacd0ca6426f37d2 Gitweb: https://git.kernel.org/tip/3ff13602d7cae283bca1c52caacd0ca6426f37d2 Author:Linus Walleij AuthorDate:Tue, 24 Nov 2020 09:53:37 +01:00 Commit

Re: [PATCH v2 1/2] vfio/iommu_type1: Populate full dirty when detach non-pinned group

2021-01-15 Thread Alex Williamson
On Fri, 15 Jan 2021 17:26:42 +0800 Keqian Zhu wrote: > If a group with non-pinned-page dirty scope is detached with dirty > logging enabled, we should fully populate the dirty bitmaps at the > time it's removed since we don't know the extent of its previous DMA, > nor will the group be present to

Re: [PATCH v3 2/2] kasan, arm64: fix pointer tags in KASAN reports

2021-01-15 Thread Vincenzo Frascino
On 1/15/21 5:41 PM, Andrey Konovalov wrote: > As of the "arm64: expose FAR_EL1 tag bits in siginfo" patch, the address > that is passed to report_tag_fault has pointer tags in the format of 0x0X, > while KASAN uses 0xFX format (note the difference in the top 4 bits). > > Fix up the pointer tag

Re: [PATCH v3 2/2] kasan, arm64: fix pointer tags in KASAN reports

2021-01-15 Thread Catalin Marinas
On Fri, Jan 15, 2021 at 06:41:53PM +0100, Andrey Konovalov wrote: > As of the "arm64: expose FAR_EL1 tag bits in siginfo" patch, the address > that is passed to report_tag_fault has pointer tags in the format of 0x0X, > while KASAN uses 0xFX format (note the difference in the top 4 bits). > > Fix

[PATCH 2/2] soc: sunxi: mbus: Remove DE2 display engine compatibles

2021-01-15 Thread Paul Kocialkowski
The DE2 display engine hardware takes physical addresses that do not need PHYS_BASE subtracted. As a result, they should not be present on the mbus driver match list. Remove them. This was tested on the A83T, along with the patch allowing the DMA range map to be non-NULL and restores a working dis

[PATCH 1/2] of: device: Allow DMA range map to be set before of_dma_configure_id

2021-01-15 Thread Paul Kocialkowski
A mechanism was recently introduced for the sunxi architecture where the DMA offset for specific devices (under the MBUS) is set by a common driver (sunxi_mbus). This driver calls dma_direct_set_offset to set the device's dma_range_map manually. However this information was overwritten by of_dma_c

Re: [PATCH v3 00/17] KVM: x86/pmu: Add support to enable Guest PEBS via DS

2021-01-15 Thread Sean Christopherson
On Fri, Jan 15, 2021, Xu, Like wrote: > Hi Sean, > > Thanks for your comments ! > > On 2021/1/15 3:10, Sean Christopherson wrote: > > On Mon, Jan 04, 2021, Like Xu wrote: > > > 2) Slow path (part 3, patch 0012-0017) > > > > > > This is when the host assigned physical PMC has a different index >

Re: [PATCH -next] usb: usbip: Use DEFINE_SPINLOCK() for spinlock

2021-01-15 Thread Shuah Khan
On 12/23/20 7:14 AM, Zheng Yongjun wrote: spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Signed-off-by: Zheng Yongjun --- drivers/usb/usbip/stub_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dr

[PATCH v4 04/15] kasan: add macros to simplify checking test constraints

2021-01-15 Thread Andrey Konovalov
Some KASAN tests require specific kernel configs to be enabled. Instead of copy-pasting the checks for these configs add a few helper macros and use them. Link: https://linux-review.googlesource.com/id/I237484a7fddfedf4a4aae9cc61ecbcdbe85a0a63 Suggested-by: Alexander Potapenko Reviewed-by: Marco

[PATCH v4 15/15] kasan: don't run tests when KASAN is not enabled

2021-01-15 Thread Andrey Konovalov
Don't run KASAN tests when it's disabled with kasan.mode=off to avoid corrupting kernel memory. Link: https://linux-review.googlesource.com/id/I6447af436a69a94bfc35477f6bf4e2122948355e Reviewed-by: Marco Elver Reviewed-by: Alexander Potapenko Signed-off-by: Andrey Konovalov --- lib/test_kasan

[PATCH v4 06/15] kasan, arm64: allow using KUnit tests with HW_TAGS mode

2021-01-15 Thread Andrey Konovalov
On a high level, this patch allows running KUnit KASAN tests with the hardware tag-based KASAN mode. Internally, this change reenables tag checking at the end of each KASAN test that triggers a tag fault and leads to tag checking being disabled. Also simplify is_write calculation in report_tag_fa

[PATCH v4 09/15] kasan: adapt kmalloc_uaf2 test to HW_TAGS mode

2021-01-15 Thread Andrey Konovalov
In the kmalloc_uaf2() test, the pointers to the two allocated memory blocks might happen to be the same, and the test will fail. With the software tag-based mode, the probability of the that is 1/254, so it's hard to observe the failure. For the hardware tag-based mode though, the probablity is 1/1

[PATCH v4 08/15] kasan: add compiler barriers to KUNIT_EXPECT_KASAN_FAIL

2021-01-15 Thread Andrey Konovalov
It might not be obvious to the compiler that the expression must be executed between writing and reading to fail_data. In this case, the compiler might reorder or optimize away some of the accesses, and the tests will fail. Add compiler barriers around the expression in KUNIT_EXPECT_KASAN_FAIL and

[PATCH v4 14/15] kasan: add a test for kmem_cache_alloc/free_bulk

2021-01-15 Thread Andrey Konovalov
Add a test for kmem_cache_alloc/free_bulk to make sure there are no false-positives when these functions are used. Link: https://linux-review.googlesource.com/id/I2a8bf797aecf81baeac61380c567308f319e263d Reviewed-by: Marco Elver Reviewed-by: Alexander Potapenko Signed-off-by: Andrey Konovalov

[PATCH v4 12/15] kasan: fix bug detection via ksize for HW_TAGS mode

2021-01-15 Thread Andrey Konovalov
The currently existing kasan_check_read/write() annotations are intended to be used for kernel modules that have KASAN compiler instrumentation disabled. Thus, they are only relevant for the software KASAN modes that rely on compiler instrumentation. However there's another use case for these anno

[PATCH v4 13/15] kasan: add proper page allocator tests

2021-01-15 Thread Andrey Konovalov
The currently existing page allocator tests rely on kmalloc fallback with large sizes that is only present for SLUB. Add proper tests that use alloc/free_pages(). Link: https://linux-review.googlesource.com/id/Ia173d5a1b215fe6b2548d814ef0f4433cf983570 Reviewed-by: Marco Elver Reviewed-by: Alexan

[PATCH v4 11/15] kasan: move _RET_IP_ to inline wrappers

2021-01-15 Thread Andrey Konovalov
Generic mm functions that call KASAN annotations that might report a bug pass _RET_IP_ to them as an argument. This allows KASAN to include the name of the function that called the mm function in its report's header. Now that KASAN has inline wrappers for all of its annotations, move _RET_IP_ to t

[PATCH v4 10/15] kasan: fix memory corruption in kasan_bitops_tags test

2021-01-15 Thread Andrey Konovalov
Since the hardware tag-based KASAN mode might not have a redzone that comes after an allocated object (when kasan.mode=prod is enabled), the kasan_bitops_tags() test ends up corrupting the next object in memory. Change the test so it always accesses the redzone that lies within the allocated objec

[PATCH v4 07/15] kasan: rename CONFIG_TEST_KASAN_MODULE

2021-01-15 Thread Andrey Konovalov
Rename CONFIG_TEST_KASAN_MODULE to CONFIG_KASAN_MODULE_TEST. This naming is more consistent with the existing CONFIG_KASAN_KUNIT_TEST. Link: https://linux-review.googlesource.com/id/Id347dfa5fe8788b7a1a189863e039f409da0ae5f Reviewed-by: Marco Elver Reviewed-by: Alexander Potapenko Signed-off-b

[PATCH v4 05/15] kasan: add match-all tag tests

2021-01-15 Thread Andrey Konovalov
Add 3 new tests for tag-based KASAN modes: 1. Check that match-all pointer tag is not assigned randomly. 2. Check that 0xff works as a match-all pointer tag. 3. Check that there are no match-all memory tags. Note, that test #3 causes a significant number (255) of KASAN reports to be printed durin

[PATCH v4 03/15] kasan: clean up comments in tests

2021-01-15 Thread Andrey Konovalov
Clarify and update comments in KASAN tests. Link: https://linux-review.googlesource.com/id/I6c816c51fa1e0eb7aa3dead6bda1f339d2af46c8 Reviewed-by: Marco Elver Reviewed-by: Alexander Potapenko Signed-off-by: Andrey Konovalov --- lib/test_kasan.c| 59 +

[PATCH v4 02/15] kasan: clarify HW_TAGS impact on TBI

2021-01-15 Thread Andrey Konovalov
Mention in the documentation that enabling CONFIG_KASAN_HW_TAGS always results in in-kernel TBI (Top Byte Ignore) being enabled. Also do a few minor documentation cleanups. Link: https://linux-review.googlesource.com/id/Iba2a6697e3c6304cb53f89ec61dedc77fa29e3ae Reviewed-by: Marco Elver Reviewed

[PATCH v4 01/15] kasan: prefix global functions with kasan_

2021-01-15 Thread Andrey Konovalov
There's a number of internal KASAN functions that are used across multiple source code files and therefore aren't marked as static inline. To avoid littering the kernel function names list with generic function names, prefix all such KASAN functions with kasan_. As a part of this change: - Rename

[PATCH v4 00/15] kasan: HW_TAGS tests support and fixes

2021-01-15 Thread Andrey Konovalov
This patchset adds support for running KASAN-KUnit tests with the hardware tag-based mode and also contains a few fixes. Changes v3->v4: - Fix using tabs instead of spaces in bulk tests. - Simplify is_write calculation in report_tag_fault(). - Add a comment about tests to report_tag_fault(). Andr

[PATCH v2 3/4] dt-bindings: phy: qcom,usb-snps-femto-v2: Add SM8250 and SM8350 bindings

2021-01-15 Thread Jack Pham
Add the compatible strings for the USB2 PHYs found on QCOM SM8250 & SM8350 SoCs. Note that the SM8250 compatible is already in use in the dts and driver implementation but was missing from the documentation. Signed-off-by: Jack Pham --- .../devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml

[PATCH v2 2/4] phy: qcom-qmp: Add SM8350 USB QMP PHYs

2021-01-15 Thread Jack Pham
Add support for the USB DP & UNI PHYs found on SM8350. These use version 5.0.0 of the QMP PHY IP and thus require new "V5" definitions of the register offset macros for the QSERDES RX and TX blocks. The QSERDES common and QPHY PCS blocks' register offsets are largely unchanged from V4 so some of th

[PATCH v2 4/4] dt-bindings: usb: qcom,dwc3: Add bindings for SM8150, SM8250, SM8350

2021-01-15 Thread Jack Pham
Add compatible strings for the USB DWC3 controller on QCOM SM8150, SM8250 and SM8350 SoCs. Note the SM8150 & SM8250 compatibles are already being used in the dts but was missing from the documentation. Signed-off-by: Jack Pham --- Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 3 +++ 1

Re: [RFC PATCH 3/3] hugetlb: convert PageHugeTemporary() to HPageTempSurplus

2021-01-15 Thread Mike Kravetz
On 1/15/21 2:16 AM, Oscar Salvador wrote: > On Mon, Jan 11, 2021 at 01:01:52PM -0800, Mike Kravetz wrote: >> Use new hugetlb specific flag HPageTempSurplus to replace the >> PageHugeTemporary() interfaces. >> >> Signed-off-by: Mike Kravetz >> --- >> mm/hugetlb.c | 38 +

[PATCH v2 1/4] dt-bindings: phy: qcom,qmp: Add SM8150, SM8250 and SM8350 USB PHY bindings

2021-01-15 Thread Jack Pham
Add the compatible strings for the USB3 PHYs found on SM8150, SM8250 and SM8350 SoCs. These require separate subschemas due to the different required clock entries. Note the SM8150 and SM8250 compatibles have already been in place in the dts as well as the driver implementation but were missing fr

[PATCH v2 0/4] SM8350 USB and dt-bindings updates

2021-01-15 Thread Jack Pham
This series adds support for the SM8350 USB PHY to the QMP PHY driver as well as adds the documentation for the QMP, SNPS PHY and DWC3 controller bindings. This also adds the bindings for SM8150 and SM8250 to the same docs which had not been added previously even though they are in use now. v2: Re

Re: [EXT] Re: Related work to MAINTAINERS truth and fiction

2021-01-15 Thread Wolfgang Mauerer
Am 15/01/2021 um 17:52 schrieb Jonathan Corbet: > On Fri, 15 Jan 2021 07:57:51 +0100 > Lukas Bulwahn wrote: > >> Pia Eichinger has done some related analysis and work in this area as >> part of her bachelor's thesis on Maintainers Expectations vs. >> Maintainers Reality: An Analysis of Organis

Re: [PATCH v2 1/3] bus: mhi: core: Clear devices when moving execution environments

2021-01-15 Thread Hemant Kumar
On 1/14/21 11:16 AM, Bhaumik Bhatt wrote: When moving from SBL to mission mode execution environment, there is no remove callback notification to MHI client drivers which operate on SBL mode only. Client driver devices are being created in SBL or AMSS(mission mode) and only destroyed after pow

Re: [PATCH v1 0/5] Enable fw_devlink=on by default

2021-01-15 Thread Saravana Kannan
On Fri, Jan 15, 2021 at 8:13 AM Jon Hunter wrote: > > > On 14/01/2021 21:50, Saravana Kannan wrote: > > On Thu, Jan 14, 2021 at 10:55 AM Jon Hunter wrote: > >> > >> > >> On 14/01/2021 16:52, Saravana Kannan wrote: > >> > >> ... > >> > >>> Thanks! I think you forgot to enable those logs though. Al

Re: [RFC PATCH 2/3] hugetlb: convert page_huge_active() to HPageMigratable flag

2021-01-15 Thread Mike Kravetz
On 1/15/21 1:17 AM, Oscar Salvador wrote: > On Mon, Jan 11, 2021 at 01:01:51PM -0800, Mike Kravetz wrote: >> Use the new hugetlb page specific flag to replace the page_huge_active >> interfaces. By it's name, page_huge_active implied that a huge page >> was on the active list. However, that is no

Re: [PATCH v3 04/17] perf: x86/ds: Handle guest PEBS overflow PMI and inject it to guest

2021-01-15 Thread Sean Christopherson
On Fri, Jan 15, 2021, Xu, Like wrote: > On 2021/1/15 2:55, Sean Christopherson wrote: > > On Mon, Jan 04, 2021, Like Xu wrote: > > > + * Note: KVM disables the co-existence of guest PEBS and host PEBS. > > By "KVM", do you mean KVM's loading of the MSRs provided by > > intel_guest_get_msrs()? > >

[PATCH v3 2/2] kasan, arm64: fix pointer tags in KASAN reports

2021-01-15 Thread Andrey Konovalov
As of the "arm64: expose FAR_EL1 tag bits in siginfo" patch, the address that is passed to report_tag_fault has pointer tags in the format of 0x0X, while KASAN uses 0xFX format (note the difference in the top 4 bits). Fix up the pointer tag for kernel pointers in do_tag_check_fault by setting them

[PATCH v3 0/2] kasan: fixes for 5.11-rc

2021-01-15 Thread Andrey Konovalov
Changes v2->v3: - Fix up kernel pointer tag in do_tag_check_fault() instead of report_tag_fault(). Andrey Konovalov (2): kasan, mm: fix conflicts with init_on_alloc/free kasan, arm64: fix pointer tags in KASAN reports arch/arm64/mm/fault.c | 7 --- mm/slub.c | 7 --- 2

[PATCH v3 1/2] kasan, mm: fix conflicts with init_on_alloc/free

2021-01-15 Thread Andrey Konovalov
A few places where SLUB accesses object's data or metadata were missed in a previous patch. This leads to false positives with hardware tag-based KASAN when bulk allocations are used with init_on_alloc/free. Fix the false-positives by resetting pointer tags during these accesses. (The kasan_reset

Re: [PATCH] driver core: Extend device_is_dependent()

2021-01-15 Thread Rafael J. Wysocki
On Fri, Jan 15, 2021 at 6:21 PM Saravana Kannan wrote: > > On Fri, Jan 15, 2021 at 5:03 AM Rafael J. Wysocki wrote: > > > > On Fri, Jan 15, 2021 at 11:03 AM Stephan Gerhold > > wrote: > > > > > > Hi, > > > > > > On Thu, Jan 14, 2021 at 11:31:12AM -0800, Saravana Kannan wrote: > > > > On Thu, Ja

Re: [PATCH 2/2] kasan, arm64: fix pointer tags in KASAN reports

2021-01-15 Thread Andrey Konovalov
On Fri, Jan 15, 2021 at 6:06 PM Catalin Marinas wrote: > > On Fri, Jan 15, 2021 at 06:00:36PM +0100, Andrey Konovalov wrote: > > On Fri, Jan 15, 2021 at 5:56 PM Catalin Marinas > > wrote: > > > > > > On Fri, Jan 15, 2021 at 05:30:40PM +0100, Andrey Konovalov wrote: > > > > On Wed, Jan 13, 2021 a

Re: [PATCH v4 3/3] iommu/iova: Flush CPU rcache for when a depot fills

2021-01-15 Thread Jean-Philippe Brucker
On Thu, Dec 10, 2020 at 02:23:09AM +0800, John Garry wrote: > Leizhen reported some time ago that IOVA performance may degrade over time > [0], but unfortunately his solution to fix this problem was not given > attention. > > To summarize, the issue is that as time goes by, the CPU rcache and depo

[PATCH v15 07/10] kexec: Use fdt_appendprop_addrrange() to add ima buffer to FDT

2021-01-15 Thread Lakshmi Ramasubramanian
fdt_appendprop_addrrange() function adds a property, with the given name, to the device tree at the given node offset, and also sets the address and size of the property. This function should be used to add "linux,ima-kexec-buffer" property to the device tree and set the address and size of the IM

[PATCH v15 09/10] arm64: Call kmalloc() to allocate DTB buffer

2021-01-15 Thread Lakshmi Ramasubramanian
create_dtb() function allocates kernel virtual memory for the device tree blob (DTB). This is not consistent with other architectures, such as powerpc, which calls kmalloc() for allocating memory for the DTB. Call kmalloc() to allocate memory for the DTB, and kfree() to free the allocated memory.

[PATCH v15 05/10] ima: Move arch_ima_add_kexec_buffer() to ima

2021-01-15 Thread Lakshmi Ramasubramanian
arch_ima_add_kexec_buffer() defined in "arch/powerpc/kexec/ima.c" sets up the address and size of the IMA measurement list in the architecture specific fields in kimage struct. This function does not have architecture specific code, but is currently limited to powerpc. Move arch_ima_add_kexec_buf

[PATCH v15 06/10] powerpc: Move arch independent ima kexec functions to drivers/of/kexec.c

2021-01-15 Thread Lakshmi Ramasubramanian
The functions defined in "arch/powerpc/kexec/ima.c" handle setting up and freeing the resources required to carry over the IMA measurement list from the current kernel to the next kernel across kexec system call. These functions do not have architecture specific code, but are currently limited to p

[PATCH v15 00/10] Carry forward IMA measurement log on kexec on ARM64

2021-01-15 Thread Lakshmi Ramasubramanian
On kexec file load Integrity Measurement Architecture (IMA) subsystem may verify the IMA signature of the kernel and initramfs, and measure it. The command line parameters passed to the kernel in the kexec call may also be measured by IMA. A remote attestation service can verify a TPM quote based

[PATCH v15 10/10] arm64: Add IMA log information in kimage used for kexec

2021-01-15 Thread Lakshmi Ramasubramanian
Address and size of the buffer containing the IMA measurement log need to be passed from the current kernel to the next kernel on kexec. Add address and size fields to "struct kimage_arch" for ARM64 platform to hold the address and size of the IMA measurement log buffer. Update CONFIG_KEXEC_FILE

[PATCH v15 02/10] of: Add a common kexec FDT setup function

2021-01-15 Thread Lakshmi Ramasubramanian
From: Rob Herring Both arm64 and powerpc do essentially the same FDT /chosen setup for kexec. The differences are either omissions that arm64 should have or additional properties that will be ignored. The setup code can be combined and shared by both powerpc and arm64. The differences relative

[PATCH v15 08/10] powerpc: Delete unused function delete_fdt_mem_rsv()

2021-01-15 Thread Lakshmi Ramasubramanian
delete_fdt_mem_rsv() defined in "arch/powerpc/kexec/file_load.c" has been renamed to fdt_find_and_del_mem_rsv(), and moved to "drivers/of/kexec.c". Remove delete_fdt_mem_rsv() in "arch/powerpc/kexec/file_load.c". Co-developed-by: Prakhar Srivastava Signed-off-by: Prakhar Srivastava Signed-off-b

Re: [PATCH] KVM: x86/pmu: Fix HW_REF_CPU_CYCLES event pseudo-encoding in intel_arch_events[]

2021-01-15 Thread Sean Christopherson
On Fri, Jan 15, 2021, Like Xu wrote: > Ping ? > > On 2020/12/30 16:19, Like Xu wrote: > > The HW_REF_CPU_CYCLES event on the fixed counter 2 is pseudo-encoded as > > 0x0300 in the intel_perfmon_event_map[]. Correct its usage. > > > > Fixes: 62079d8a4312 ("KVM: PMU: add proper support for fixed co

[PATCH v15 03/10] arm64: Use common of_kexec_setup_new_fdt()

2021-01-15 Thread Lakshmi Ramasubramanian
From: Rob Herring The code for setting up the /chosen node in the device tree and updating the memory reservation for the next kernel has been moved to of_kexec_setup_new_fdt() defined in "drivers/of/kexec.c". Use the common of_kexec_setup_new_fdt() to setup the device tree and update the memory

[PATCH v15 04/10] powerpc: Use common of_kexec_setup_new_fdt()

2021-01-15 Thread Lakshmi Ramasubramanian
From: Rob Herring The code for setting up the /chosen node in the device tree and updating the memory reservation for the next kernel has been moved to of_kexec_setup_new_fdt() defined in "drivers/of/kexec.c". Use the common of_kexec_setup_new_fdt() to setup the device tree and update the memory

[PATCH v15 01/10] powerpc: Rename kexec elfcorehdr_addr to elf_headers_mem

2021-01-15 Thread Lakshmi Ramasubramanian
From: Rob Herring The architecture specific field, elfcorehdr_addr in struct kimage_arch, that holds the address of the buffer in memory for ELF core header for powerpc has a different name than the one used for arm64. This makes it hard to have a common code for setting up the device tree for k

Re: [PATCH 2/2] of/fdt: Make sure no-map does not remove already reserved regions

2021-01-15 Thread Rob Herring
On Fri, 15 Jan 2021 11:45:44 +, Quentin Perret wrote: > From: Nicolas Boichat > > If the device tree is incorrectly configured, and attempts to > define a "no-map" reserved memory that overlaps with the kernel > data/code, the kernel would crash quickly after boot, with no > obvious clue abou

[PATCH v3] octeontx2-af: Fix missing check bugs in rvu_cgx.c

2021-01-15 Thread wangyingjie55
From: Yingjie Wang In rvu_mbox_handler_cgx_mac_addr_get() and rvu_mbox_handler_cgx_mac_addr_set(), the msg is expected only from PFs that are mapped to CGX LMACs. It should be checked before mapping, so we add the is_cgx_config_permitted() in the functions. Fixes: 96be2e0da85e ("octeontx2-af: Su

Re: [PATCH v5 5/6] drm/imx: Introduce i.MX8qm/qxp DPU DRM

2021-01-15 Thread Laurentiu Palcu
Hi Liu Ying, I promised I would have a second, more in-depth, look at this and I finally managed to do it. I have to admit it was a challenge. Partially because I'm not very familiar with DPU but mostly because of the abundance of macros used. It's true, macros make the code more compact. However

Re: [PATCH v4 2/3] iommu/iova: Avoid double-negatives in magazine helpers

2021-01-15 Thread Jean-Philippe Brucker
On Thu, Dec 10, 2020 at 02:23:08AM +0800, John Garry wrote: > A similar crash to the following could be observed if initial CPU rcache > magazine allocations fail in init_iova_rcaches(): Any idea why that's happening? This fix seems ok but if we're expecting allocation failures for the loaded mag

Re: [PATCH 1/2] fdt: Properly handle "no-map" field in the memory region

2021-01-15 Thread Rob Herring
On Fri, 15 Jan 2021 11:45:43 +, Quentin Perret wrote: > From: KarimAllah Ahmed > > Mark the memory region with NOMAP flag instead of completely removing it > from the memory blocks. That makes the FDT handling consistent with the EFI > memory map handling. > > Cc: Rob Herring > Cc: Frank Ro

Re: [PATCH v4 1/3] iommu/iova: Add free_all_cpu_cached_iovas()

2021-01-15 Thread Jean-Philippe Brucker
On Thu, Dec 10, 2020 at 02:23:07AM +0800, John Garry wrote: > Add a helper function to free the CPU rcache for all online CPUs. > > There also exists a function of the same name in > drivers/iommu/intel/iommu.c, but the parameters are different, and there > should be no conflict. > > Signed-off-b

<    1   2   3   4   5   6   7   8   9   10   >