[PATCH v6 34/36] media: pci: fix common ALSA DMA-mapping related codes

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of entries passed to dma_map_sg. The sg_table->nents in

[PATCH v10 1/2] ACPI / APEI: Add support to notify the vendor specific HW errors

2020-06-18 Thread Shiju Jose
Add support to report the vendor specific non-fatal HW errors to the drivers for the error recovery. The interface functions ghes_register_event_notifier() and ghes_unregister_event_notifier() enables the drivers to register and unregister the vendor specific error handlers. The interface uses wor

[PATCH v10 0/2] ACPI / APEI: Add support to notify the vendor specific HW errors

2020-06-18 Thread Shiju Jose
Presently the vendor drivers are unable to do the recovery for the vendor specific recoverable HW errors because APEI driver does not support reporting the error to the vendor drivers. patch set 1. add new interface to the APEI driver for reporting the vendor specific non-fatal HW errors to th

[PATCH v6 35/36] videobuf2: use sgtable-based scatterlist wrappers

2020-06-18 Thread Marek Szyprowski
Use recently introduced common wrappers operating directly on the struct sg_table objects and scatterlist page iterators to make the code a bit more compact, robust, easier to follow and copy/paste safe. No functional change, because the code already properly did all the scaterlist related calls.

[PATCH v6 32/36] rapidio: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v6 26/36] drm: rcar-du: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v6 31/36] misc: fastrpc: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v6 29/36] staging: ion: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH] ARM: configs: at91: sama5: Enable CLASSD

2020-06-18 Thread Codrin Ciubotariu
CLASSD is present on SAMA5d2 SoCs. Signed-off-by: Codrin Ciubotariu --- arch/arm/configs/sama5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index 8e1f78c19920..f688443fe7bf 100644 --- a/arch/arm/configs/sama5_de

[PATCH v6 30/36] staging: tegra-vde: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

Re: [PATCH v5 3/3] net: phy: mscc: handle the clkout control on some phy variants

2020-06-18 Thread Heiko Stübner
Am Donnerstag, 18. Juni 2020, 15:41:02 CEST schrieb Russell King - ARM Linux admin: > On Thu, Jun 18, 2020 at 03:28:22PM +0200, Andrew Lunn wrote: > > On Thu, Jun 18, 2020 at 02:11:39PM +0200, Heiko Stuebner wrote: > > > From: Heiko Stuebner > > > > > > At least VSC8530/8531/8540/8541 contain a

[PATCH v6 28/36] staging: ion: remove dead code

2020-06-18 Thread Marek Szyprowski
ion_heap_pages_zero() function is not used at all, so remove it to simplify the ion_heap_sglist_zero() function later. Signed-off-by: Marek Szyprowski --- drivers/staging/android/ion/ion.h | 1 - drivers/staging/android/ion/ion_heap.c | 9 - 2 files changed, 10 deletions(-) diff --

[PATCH v6 06/36] drm: etnaviv: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v6 25/36] drm: host1x: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v6 02/36] drm: prime: use sgtable iterators in drm_prime_sg_to_page_addr_arrays()

2020-06-18 Thread Marek Szyprowski
Replace the current hand-crafted code for extracting pages and DMA addresses from the given scatterlist by the much more robust code based on the generic scatterlist iterators and recently introduced sg_table-based wrappers. The resulting code is simple and easy to understand, so the comment descri

[PATCH v6 03/36] drm: core: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v6 08/36] drm: exynos: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v10 2/2] PCI: hip: Add handling of HiSilicon HIP PCIe controller errors

2020-06-18 Thread Shiju Jose
From: Yicong Yang The HiSilicon HIP PCIe controller is capable of handling errors on root port and perform port reset separately at each root port. Add error handling driver for HIP PCIe controller to log and report recoverable errors. Perform root port reset and restore link status after the re

[PATCH v6 17/36] drm: radeon: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v6 27/36] dmabuf: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v6 07/36] drm: exynos: use common helper for a scatterlist contiguity check

2020-06-18 Thread Marek Szyprowski
Use common helper for checking the contiguity of the imported dma-buf. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 23 +++ 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/d

[PATCH v6 09/36] drm: i915: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v6 18/36] drm: rockchip: use common helper for a scatterlist contiguity check

2020-06-18 Thread Marek Szyprowski
Use common helper for checking the contiguity of the imported dma-buf. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gp

[PATCH v6 19/36] drm: rockchip: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v6 10/36] drm: lima: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

[PATCH v6 12/36] drm: mediatek: use common helper for extracting pages array

2020-06-18 Thread Marek Szyprowski
Use common helper for converting a sg_table object into struct page pointer array. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/mediatek/mtk_drm_gem.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_gem.c b/drivers/gpu/drm/med

Re: New mode DM-Verity error handling

2020-06-18 Thread Mike Snitzer
On Thu, Jun 18 2020 at 2:56am -0400, JeongHyeon Lee wrote: > Hello, Dear devcice-mapper maintainers. > > I'm JeongHyeon Lee, work in Samsung. I'm chage of DM-Verity feature with > Mr. sunwook eom. > I have a patch or suggestion about DM-Verity error handling. > > Our device (smart phone) need

Re: [PATCH] driver core:Export the symbol device_is_bound

2020-06-18 Thread Matthias Kaehlcke
Hi Greg, On Thu, Jun 18, 2020 at 10:14:43AM +0200, Greg Kroah-Hartman wrote: > On Wed, Jun 03, 2020 at 12:09:52AM +0530, Sandeep Maheswaram wrote: > > Export the symbol device_is_bound so that it can be used by the modules. > > What modules need this? drivers/usb/dwc3/dwc3-qcom.c (and probably o

Re: [PATCH v5 3/3] net: phy: mscc: handle the clkout control on some phy variants

2020-06-18 Thread Russell King - ARM Linux admin
On Thu, Jun 18, 2020 at 05:41:54PM +0200, Heiko Stübner wrote: > Am Donnerstag, 18. Juni 2020, 15:41:02 CEST schrieb Russell King - ARM Linux > admin: > > On Thu, Jun 18, 2020 at 03:28:22PM +0200, Andrew Lunn wrote: > > > On Thu, Jun 18, 2020 at 02:11:39PM +0200, Heiko Stuebner wrote: > > > > From

Re: [PATCH v5 3/3] net: phy: mscc: handle the clkout control on some phy variants

2020-06-18 Thread Jakub Kicinski
On Thu, 18 Jun 2020 14:11:39 +0200 Heiko Stuebner wrote: > From: Heiko Stuebner > > At least VSC8530/8531/8540/8541 contain a clock output that can emit > a predefined rate of 25, 50 or 125MHz. > > This may then feed back into the network interface as source clock. > So expose a clock-provider f

Re: [PATCH 1/7] x86/entry: Fix #UD vs WARN more

2020-06-18 Thread Peter Zijlstra
On Thu, Jun 18, 2020 at 07:57:35AM -0700, Andy Lutomirski wrote: > > > > On Jun 18, 2020, at 7:50 AM, Peter Zijlstra wrote: > > > > vmlinux.o: warning: objtool: exc_invalid_op()+0x47: call to > > probe_kernel_read() leaves .noinstr.text section > > > > Since we use UD2 as a short-cut for 'CA

Re: [PATCH v2] drm/etnaviv: convert get_user_pages() --> pin_user_pages()

2020-06-18 Thread Lucas Stach
Am Montag, den 25.05.2020, 16:49 -0700 schrieb John Hubbard: > This code was using get_user_pages*(), in a "Case 2" scenario > (DMA/RDMA), using the categorization from [1]. That means that it's > time to convert the get_user_pages*() + put_page() calls to > pin_user_pages*() + unpin_user_pages() c

Re: [PATCH v2 2/6] media: ov5647: Add support for PWDN GPIO.

2020-06-18 Thread Jacopo Mondi
Hi Roman, On Tue, May 19, 2020 at 04:16:17AM +0300, Roman Kovalivskyi wrote: > From: Dave Stevenson > > Add support for an optional GPIO connected to PWDN on the sensor. This > allows the use of hardware standby mode where internal device clock > and circuit activities are halted. > > Please noth

Re: [PATCH v6 6/7] clk: mediatek: add UART0 clock support

2020-06-18 Thread Matthias Brugger
On 18/06/2020 13:33, Hanks Chen wrote: > Add MT6779 UART0 clock support. > Please a dd fixes tag: Fixes: 710774e04861 ("clk: mediatek: Add MT6779 clock support") > Signed-off-by: Hanks Chen > Signed-off-by: mtk01761 Must be a real name not "mtk01761" > --- > drivers/clk/mediatek/clk-mt6

Re: [PATCH v2] net: macb: undo operations in case of failure

2020-06-18 Thread Nicolas Ferre
On 18/06/2020 at 10:37, Claudiu Beznea wrote: Undo previously done operation in case macb_phylink_connect() fails. Since macb_reset_hw() is the 1st undo operation the napi_exit label was renamed to reset_hw. Fixes: 7897b071ac3b ("net: macb: convert to phylink") Signed-off-by: Claudiu Beznea A

Re: [PATCH 4/4] X86: Use KVM CR pin MSRs

2020-06-18 Thread Andersen, John
On Thu, Jun 18, 2020 at 08:38:06AM -0700, Dave Hansen wrote: > On 6/18/20 8:26 AM, Andersen, John wrote: > > On Thu, Jun 18, 2020 at 07:41:04AM -0700, Dave Hansen wrote: > >>> +config PARAVIRT_CR_PIN > >>> + bool "Paravirtual bit pinning for CR0 and CR4" > >>> + depends on KVM_GUEST > >

Re: [RESEND PATCH v2 0/4] drm/etnaviv: Tidy up clocks handling

2020-06-18 Thread Lucas Stach
Am Dienstag, den 16.06.2020, 23:21 +0200 schrieb Lubomir Rintel: > Hi, > > please consider applying patches that are chained to this message. Thanks, I've applied all of them to etnaviv/next. Regards, Lucas > They make getting/enabling the clocks in the etnaviv driver slightly nicer, > first tw

drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:999:32: sparse: sparse: cast to restricted __le32

2020-06-18 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1b5044021070efa3259f3e9548dc35d1eb6aa844 commit: 6698a3d05fda57f37add68c55a0696bfa7100413 drm/amdgpu: add mcbp unit test in debugfs (v3) date: 12 months ago config: riscv-randconfig-s032-20200618

[PATCH] pci: pcie: AER: Fix logging of Correctable errors

2020-06-18 Thread Matt Jolly
The AER documentation indicates that correctable (severity=Corrected) errors should be output as a warning so that users can filter these errors if they choose to; This functionality does not appear to have been implemented. This patch modifies the functions aer_print_error and __aer_print_error

Re: [PATCH v10 2/2] PCI: hip: Add handling of HiSilicon HIP PCIe controller errors

2020-06-18 Thread Andy Shevchenko
On Thu, Jun 18, 2020 at 04:40:51PM +0100, Shiju Jose wrote: > From: Yicong Yang > > The HiSilicon HIP PCIe controller is capable of handling errors > on root port and perform port reset separately at each root port. > > Add error handling driver for HIP PCIe controller to log > and report recove

Re: [PATCH] driver core:Export the symbol device_is_bound

2020-06-18 Thread Greg Kroah-Hartman
On Thu, Jun 18, 2020 at 08:45:55AM -0700, Matthias Kaehlcke wrote: > Hi Greg, > > On Thu, Jun 18, 2020 at 10:14:43AM +0200, Greg Kroah-Hartman wrote: > > On Wed, Jun 03, 2020 at 12:09:52AM +0530, Sandeep Maheswaram wrote: > > > Export the symbol device_is_bound so that it can be used by the module

[PATCH] sched, mm: Optimize current_gfp_context()

2020-06-18 Thread Waiman Long
The current_gfp_context() converts a number of PF_MEMALLOC_* per-process flags into the corresponding GFP_* flags for memory allocation. In that function, current->flags is accessed 3 times. That may lead to duplicated access of the same memory location. This is not usually a problem with minimal

Re: [PATCH v4 7/7] iommu/mediatek: Add mt6779 basic support

2020-06-18 Thread Matthias Brugger
On 18/06/2020 13:54, chao hao wrote: > On Wed, 2020-06-17 at 11:33 +0200, Matthias Brugger wrote: >> >> On 17/06/2020 05:00, Chao Hao wrote: >>> 1. Start from mt6779, INVLDT_SEL move to offset=0x2c, so we add >>>REG_MMU_INV_SEL_GEN2 definition and mt6779 uses it. >>> 2. Change PROTECT_PA_ALI

[PATCH v6 36/36] drm: xen: fix common struct sg_table related issues

2020-06-18 Thread Marek Szyprowski
The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the original number of the entries passed to the dma_

Re: [PATCH v5 3/3] net: phy: mscc: handle the clkout control on some phy variants

2020-06-18 Thread Heiko Stübner
Am Donnerstag, 18. Juni 2020, 17:47:48 CEST schrieb Russell King - ARM Linux admin: > On Thu, Jun 18, 2020 at 05:41:54PM +0200, Heiko Stübner wrote: > > Am Donnerstag, 18. Juni 2020, 15:41:02 CEST schrieb Russell King - ARM > > Linux admin: > > > On Thu, Jun 18, 2020 at 03:28:22PM +0200, Andrew L

Re: [PATCH v3 19/21] dyndbg: extend ddebug_parse_flags to accept optional leading filter-flags

2020-06-18 Thread Petr Mladek
On Thu 2020-06-18 08:54:58, jim.cro...@gmail.com wrote: > On Thu, Jun 18, 2020 at 6:44 AM Petr Mladek wrote: > > > > On Wed 2020-06-17 10:25:34, Jim Cromie wrote: > > > Change ddebug_parse_flags to accept optional filterflags before the > > > required operator [-+=]. Read the flags into the filte

Re: [PATCH 4/4] pci: export untrusted attribute in sysfs

2020-06-18 Thread Greg Kroah-Hartman
On Thu, Jun 18, 2020 at 08:03:49AM -0700, Rajat Jain wrote: > Hello, > > On Thu, Jun 18, 2020 at 2:14 AM Andy Shevchenko > wrote: > > > > On Thu, Jun 18, 2020 at 11:36 AM Greg Kroah-Hartman > > wrote: > > > > > > On Thu, Jun 18, 2020 at 11:12:56AM +0300, Andy Shevchenko wrote: > > > > On Wed, Ju

[PATCH 01/11] evm: Execute evm_inode_init_security() only when the HMAC key is loaded

2020-06-18 Thread Roberto Sassu
evm_inode_init_security() requires the HMAC key to calculate the HMAC on initial xattrs provided by LSMs. Unfortunately, with the evm_key_loaded() check, the function continues even if the HMAC key is not loaded (evm_key_loaded() returns true also if EVM has been initialized only with a public key)

[PATCH 02/11] evm: Load EVM key in ima_load_x509() to avoid appraisal

2020-06-18 Thread Roberto Sassu
Public keys do not need to be appraised by IMA as the restriction on the IMA/EVM keyrings ensures that a key is loaded only if it is signed with a key in the primary or secondary keyring. However, when evm_load_x509() is loaded, appraisal is already enabled and a valid IMA signature must be added

[PATCH 03/11] evm: Refuse EVM_ALLOW_METADATA_WRITES only if the HMAC key is loaded

2020-06-18 Thread Roberto Sassu
Granting metadata write is safe if the HMAC key is not loaded, as it won't let an attacker obtain a valid HMAC from corrupted xattrs. evm_write_key() however does not allow it if any key is loaded, including a public key, which should not be a problem. This patch allows setting EVM_ALLOW_METADATA_

[PATCH 05/11] evm: Allow xattr/attr operations for portable signatures if check fails

2020-06-18 Thread Roberto Sassu
If files with portable signatures are copied from one location to another or are extracted from an archive, verification can temporarily fail until all xattrs/attrs are set in the destination. Portable signatures are the only ones that can be moved to different files, as they don't depend on system

[PATCH 04/11] evm: Check size of security.evm before using it

2020-06-18 Thread Roberto Sassu
This patch checks the size for the EVM_IMA_XATTR_DIGSIG and EVM_XATTR_PORTABLE_DIGSIG types to ensure that the algorithm is read from the buffer returned by vfs_getxattr_alloc(). Cc: sta...@vger.kernel.org # 4.19.x Fixes: 5feeb61183dde ("evm: Allow non-SHA1 digital signatures") Signed-off-by: Robe

[PATCH 06/11] evm: Allow setxattr() and setattr() if metadata digest won't change

2020-06-18 Thread Roberto Sassu
If metadata are immutable, they cannot be changed. If metadata are already set to the final value before cp and tar restore the value from the source, those applications display an error even if the operation is legitimate (they don't change the value). This patch determines whether setxattr()/set

[PATCH 09/11] ima: Don't remove security.ima if file must not be appraised

2020-06-18 Thread Roberto Sassu
Files might come from a remote source and might have xattrs, including security.ima. It should not be IMA task to decide whether security.ima should be kept or not. This patch removes the removexattr() system call in ima_inode_post_setattr(). Signed-off-by: Roberto Sassu --- security/integrity/i

[PATCH 08/11] ima: Allow imasig requirement to be satisfied by EVM portable signatures

2020-06-18 Thread Roberto Sassu
System administrators can require that all accessed files have a signature by specifying appraise_type=imasig in a policy rule. Currently, only IMA signatures satisfy this requirement. IMA signatures ensure data source authentication for file content and prevent any change. EVM signatures instead

[PATCH 07/11] evm: Set IMA_CHANGE_XATTR/ATTR bit if EVM_ALLOW_METADATA_WRITES is set

2020-06-18 Thread Roberto Sassu
When EVM_ALLOW_METADATA_WRITES is set, EVM allows any operation on metadata. Its main purpose is to allow users to freely set metadata when they are protected by a portable signature, until the HMAC key is loaded. However, IMA is not notified about metadata changes and, after the first appraisal,

Re: [PATCH] sched, mm: Optimize current_gfp_context()

2020-06-18 Thread Peter Zijlstra
On Thu, Jun 18, 2020 at 11:58:47AM -0400, Waiman Long wrote: > The current_gfp_context() converts a number of PF_MEMALLOC_* per-process > flags into the corresponding GFP_* flags for memory allocation. In > that function, current->flags is accessed 3 times. That may lead to > duplicated access of t

[PATCH 10/11] ima: Don't ignore errors from crypto_shash_update()

2020-06-18 Thread Roberto Sassu
Errors returned by crypto_shash_update() are not checked in ima_calc_boot_aggregate_tfm() and thus can be overwritten at the next iteration of the loop. This patch adds a check after calling crypto_shash_update() and returns immediately if the result is not zero. Cc: sta...@vger.kernel.org Fixes:

Re: [PATCH v6 01/36] drm: prime: add common helper to check scatterlist contiguity

2020-06-18 Thread Robin Murphy
On 2020-06-18 16:39, Marek Szyprowski wrote: It is a common operation done by DRM drivers to check the contiguity of the DMA-mapped buffer described by a scatterlist in the sg_table object. Let's add a common helper for this operation. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/drm_g

[PATCH 11/11] ima: Remove semicolon at the end of ima_get_binary_runtime_size()

2020-06-18 Thread Roberto Sassu
This patch removes the unnecessary semicolon at the end of ima_get_binary_runtime_size(). Cc: sta...@vger.kernel.org Fixes: d158847ae89a2 ("ima: maintain memory size needed for serializing the measurement list") Signed-off-by: Roberto Sassu --- security/integrity/ima/ima_queue.c | 2 +- 1 file

Re: [PATCHv4 1/4] dt-bindings: watchdog: Add support for TI K3 RTI watchdog

2020-06-18 Thread Jan Kiszka
On 12.03.20 10:58, Tero Kristo wrote: > TI K3 SoCs contain an RTI (Real Time Interrupt) module which can be > used to implement a windowed watchdog functionality. Windowed watchdog > will generate an error if it is petted outside the time window, either > too early or too late. > > Cc: Rob Herring

Re: [PATCH 2/2] nvmet: remove workarounds for gcc bug wrt unnamed fields in initializers

2020-06-18 Thread Niklas Cassel
On Thu, Jun 18, 2020 at 03:23:21PM +, Chaitanya Kulkarni wrote: > On 6/18/20 7:32 AM, Niklas Cassel wrote: > > drivers/nvme/target/rdma.c | 23 --- > > 1 file changed, 12 insertions(+), 11 deletions(-) > > > > diff --git a/drivers/nvme/target/rdma.c b/drivers/nvme/target

Re: [PATCH v6 6/7] clk: mediatek: add UART0 clock support

2020-06-18 Thread Hanks Chen
On Thu, 2020-06-18 at 17:51 +0200, Matthias Brugger wrote: > > On 18/06/2020 13:33, Hanks Chen wrote: > > Add MT6779 UART0 clock support. > > > > Please a dd fixes tag: > > Fixes: 710774e04861 ("clk: mediatek: Add MT6779 clock support") Got it, I'll add it in next version. > > > Signed-off-b

Re: [PATCH v5 7/9] media: adv748x: only activate DAI if it is described in device tree

2020-06-18 Thread Kieran Bingham
Hi Alex, On 02/04/2020 19:34, Alex Riesen wrote: > To avoid setting it up even if the hardware is not actually connected > to anything physically. > > Besides, the bindings explicitly notes that port definitions are > "optional if they are not connected to anything at the hardware level". > > Si

Re: [PATCH net] net: dsa: bcm_sf2: Fix node reference count

2020-06-18 Thread Florian Fainelli
On 6/18/2020 5:56 AM, Andrew Lunn wrote: > On Wed, Jun 17, 2020 at 08:42:44PM -0700, Florian Fainelli wrote: >> of_find_node_by_name() will do an of_node_put() on the "from" argument. > >> Fixes: afa3b592953b ("net: dsa: bcm_sf2: Ensure correct sub-node is parsed") >> Signed-off-by: Florian Fai

[PATCH 2/2] init: annotate init_task as __init_task_data for all arches

2020-06-18 Thread Masahiro Yamada
__init_task_data is no-op when CONFIG_ARCH_TASK_STRUCT_ON_STACK=n, so you can always annotate init_task as __init_task_data. Signed-off-by: Masahiro Yamada --- init/init_task.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/init/init_task.c b/init/init_task.c index 150

[PATCH v2] ARM: dts: imx6qdl-gw: add Gateworks System Controller support

2020-06-18 Thread Tim Harvey
Add Gateworks System Controller support to Gateworks Ventana boards: - add dt bindings for GSC mfd driver and hwmon driver for ADC's and fan controllers. - add dt bindings for gpio-keys driver for push-button and interrupt events Signed-off-by: Tim Harvey --- v2: - use keycode bindings from li

[PATCH 1/2] sched: fix thread_union::task visibility

2020-06-18 Thread Masahiro Yamada
When CONFIG_ARCH_TASK_STRUCT_ON_STACK=y (i.e. ARCH=ia64), task_struct and the thread stack are shared. The ifdef condition of CONFIG_ARCH_TASK_STRUCT_ON_STACK is opposite. Now that the init thread stack is constructed by the linker script, this is not a practical problem, but let's fix the code j

Re: [PATCH v3 20/21] dyndbg: add user-flag, negating-flags, and filtering on flags

2020-06-18 Thread Petr Mladek
On Wed 2020-06-17 10:25:35, Jim Cromie wrote: > 1. Add a user-flag [u] which works like the [pfmlt] flags, but has no > effect on callsite behavior; it allows incremental marking of > arbitrary sets of callsites. > > 2. Add [PFMLTU] flags, which negate their counterparts; P===!p etc. > And in ddeb

Re: [PATCH] sparse: use identifiers to define address spaces

2020-06-18 Thread kernel test robot
Hi Luc, I love your patch! Perhaps something to improve: [auto build test WARNING on linux/master] [also build test WARNING on linus/master v5.8-rc1 next-20200618] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as documented

Re: [PATCH -next] lib: fix test_hmm.c reference after free

2020-06-18 Thread Ralph Campbell
On 6/17/20 10:31 PM, Randy Dunlap wrote: From: Randy Dunlap Coccinelle scripts report the following errors: lib/test_hmm.c:523:20-26: ERROR: reference preceded by free on line 521 lib/test_hmm.c:524:21-27: ERROR: reference preceded by free on line 521 lib/test_hmm.c:523:28-35: ERROR: devmem

Re: [PATCH v5 6/9] media: adv748x: prepare/enable mclk when the audio is used

2020-06-18 Thread Kieran Bingham
Hi Alex, On 02/04/2020 19:34, Alex Riesen wrote: > As there is nothing else (the consumers are supposed to do that) which > enables the clock, do it in the driver. > > Signed-off-by: Alexander Riesen > -- > > v3: added > --- > drivers/media/i2c/adv748x/adv748x-dai.c | 14 +- > 1 fi

Re: [PATCH 4/4] pci: export untrusted attribute in sysfs

2020-06-18 Thread Raj, Ashok
Hi Greg, On Thu, Jun 18, 2020 at 06:02:12PM +0200, Greg Kroah-Hartman wrote: > On Thu, Jun 18, 2020 at 08:03:49AM -0700, Rajat Jain wrote: > > Hello, > > > > On Thu, Jun 18, 2020 at 2:14 AM Andy Shevchenko > > wrote: > > > > > > On Thu, Jun 18, 2020 at 11:36 AM Greg Kroah-Hartman > > > wrote:

Re: [PATCH 6/6] smp: Cleanup smp_call_function*()

2020-06-18 Thread Peter Zijlstra
On Wed, Jun 17, 2020 at 11:51:07PM -0700, Christoph Hellwig wrote: > Much better. Although if we touch all the callers we might as well > pass the csd as the argument to the callback, as with that we can > pretty trivially remove the private data field later. My plan was to introduce a new functi

Re: [PATCH v5 8/9] dt-bindings: adv748x: add information about serial audio interface (I2S/TDM)

2020-06-18 Thread Kieran Bingham
Hi Alex, On 02/04/2020 19:35, Alex Riesen wrote: > As the driver has some support for the audio interface of the device, > the bindings file should mention it. > > Signed-off-by: Alexander Riesen > Reviewed-by: Rob Herring > Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham > -- >

Re: [PATCH v4 1/2] thermal: add support for the MCU controlled FAN on Khadas boards

2020-06-18 Thread Lee Jones
On Thu, 18 Jun 2020, Neil Armstrong wrote: > The new Khadas VIM2 and VIM3 boards controls the cooling fan via the > on-board microcontroller. > > This implements the FAN control as thermal devices and as cell of the Khadas > MCU MFD driver. > > Signed-off-by: Neil Armstrong > Reviewed-by: Amit

Re: [PATCH v5 9/9] arm64: dts: renesas: salvator: add a connection from adv748x codec (HDMI input) to the R-Car SoC

2020-06-18 Thread Kieran Bingham
Hi Alex, On 02/04/2020 19:35, Alex Riesen wrote: > As all known variants of the Salvator board have the HDMI decoder > chip (the ADV7482) connected to the SSI4 on R-Car SoC, the ADV7482 > endpoint and the connection definitions are placed in the common board > file. > > For the same reason, the C

[PATCH v2] tracing/boottime: Fix kprobe multiple events

2020-06-18 Thread Sascha Ortmann
Fix boottime kprobe events to report and abort after each failure when adding probes. As an example, when we try to set multiprobe kprobe events in bootconfig like this: ftrace.event.kprobes.vfsevents { probes = "vfs_read $arg1 $arg2,, !error! not reported;?", // leads to

Re: [PATCH v3 03/15] arm64: kvm: Add build rules for separate nVHE object files

2020-06-18 Thread Marc Zyngier
Hi David, On 2020-06-18 13:25, David Brazdil wrote: Add new folder arch/arm64/kvm/hyp/nvhe and a Makefile for building code that runs in EL2 under nVHE KVM. Compile each source file into a `.hyp.tmp.o` object first, then prefix all its symbols with "__kvm_nvhe_" using `objcopy` and produce a

RE: [PATCH v10 2/2] PCI: hip: Add handling of HiSilicon HIP PCIe controller errors

2020-06-18 Thread Shiju Jose
Hi Andy, >-Original Message- >From: Andy Shevchenko [mailto:andriy.shevche...@linux.intel.com] >Sent: 18 June 2020 16:56 >To: Shiju Jose >Cc: linux-a...@vger.kernel.org; linux-...@vger.kernel.org; linux- >ker...@vger.kernel.org; r...@rjwysocki.net; helg...@kernel.org; >b...@alien8.de; jam

Re: [PATCH v3 1/2] mfd: da9063: Fix revision handling to correctly select reg tables

2020-06-18 Thread Lee Jones
On Thu, 18 Jun 2020, Adam Thomson wrote: > On 18 June 2020 12:15, Lee Jones wrote: > > > > > > The current implementation performs checking in the i2c_probe() > > > > > function of the variant_code but does this immediately after the > > > > > containing struct has been initialised as all zero. T

RE: [PATCH] x86/asm/64: Align start of __clear_user() loop to 16-bytes

2020-06-18 Thread David Laight
From: Alexey Dobriyan > Sent: 18 June 2020 14:17 ... > > > diff --git a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c > > > index fff28c6f73a2..b0dfac3d3df7 100644 > > > --- a/arch/x86/lib/usercopy_64.c > > > +++ b/arch/x86/lib/usercopy_64.c > > > @@ -24,6 +24,7 @@ unsigned long __clear_

Re: [Cluster-devel] [PATCH v11 16/25] fs: Convert mpage_readpages to mpage_readahead

2020-06-18 Thread Andreas Gruenbacher
On Thu, Jun 18, 2020 at 5:03 PM Matthew Wilcox wrote: > > On Thu, Jun 18, 2020 at 02:46:03PM +0200, Andreas Gruenbacher wrote: > > On Wed, Jun 17, 2020 at 4:22 AM Matthew Wilcox wrote: > > > On Wed, Jun 17, 2020 at 02:57:14AM +0200, Andreas Grünbacher wrote: > > > > Right, the approach from the

Re: [PATCH v5 3/3] net: phy: mscc: handle the clkout control on some phy variants

2020-06-18 Thread Russell King - ARM Linux admin
On Thu, Jun 18, 2020 at 06:01:29PM +0200, Heiko Stübner wrote: > Am Donnerstag, 18. Juni 2020, 17:47:48 CEST schrieb Russell King - ARM Linux > admin: > > On Thu, Jun 18, 2020 at 05:41:54PM +0200, Heiko Stübner wrote: > > > Though I'm not sure how this fits in the whole bringup of ethernet phys. >

Re: [PATCH 12/29] dt: update a reference for reneases pcar file renamed to yaml

2020-06-18 Thread Rob Herring
On Mon, 15 Jun 2020 08:46:51 +0200, Mauro Carvalho Chehab wrote: > This file was renamed, but its reference at pfc-pinctl.txt is > still pointing to the old file. > > Fixes: 7f7d408e5a00 ("dt-bindings: gpio: rcar: Convert to json-schema") > Signed-off-by: Mauro Carvalho Chehab > --- > .../device

Re: [PATCH] tracing: Use linker magic instead of recasting ftrace_ops_list_func()

2020-06-18 Thread Steven Rostedt
On Thu, 18 Jun 2020 01:12:37 +0200 Jann Horn wrote: > static ftrace_func_t ftrace_ops_get_list_func(struct ftrace_ops *ops) > +static ftrace_asm_func_t ftrace_ops_get_list_func(struct ftrace_ops *ops) > { > +#if FTRACE_FORCE_LIST_FUNC > + return ftrace_ops_list_func; > +#else > /*

Re: [PATCH 13/29] dt: fix broken links due to txt->yaml renames

2020-06-18 Thread Rob Herring
On Mon, 15 Jun 2020 08:46:52 +0200, Mauro Carvalho Chehab wrote: > There are some new broken doc links due to yaml renames > at DT. Developers should really run: > > ./scripts/documentation-file-ref-check > > in order to solve those issues while submitting patches. > This tool can even fix

Re: [PATCH 1/2] spi: spidev: fix a race between spidev_release and spidev_remove

2020-06-18 Thread Mark Brown
On Thu, 18 Jun 2020 11:21:24 +0800, Zhenzhong Duan wrote: > Imagine below scene, spidev is referenced after it's freed. > > spidev_release()spidev_remove() > ... > spin_lock_irq(&spidev->spi_lock); > spidev->spi =

[PATCH v1 5/6] console: Propagate error code from console ->setup()

2020-06-18 Thread Andy Shevchenko
Since console ->setup() hook returns meaningful error codes, propagate it to the caller of try_enable_new_console(). Signed-off-by: Andy Shevchenko Cc: Benjamin Herrenschmidt --- kernel/printk/printk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/printk/print

Re: [PATCH v3 0/5] spi: spi-geni-qcom: Fixes / perf improvements

2020-06-18 Thread Mark Brown
On Tue, 16 Jun 2020 03:40:45 -0700, Douglas Anderson wrote: > This patch series is a new version of the previous patch posted: > [PATCH v2] spi: spi-geni-qcom: Speculative fix of "nobody cared" about > interrupt > > https://lore.kernel.org/r/20200317133653.v2.1.I752ebdcfd5e8bf0de06d66e767b897

[PATCH v1 4/6] tty: hvc: Return proper error code from console ->setup() hook

2020-06-18 Thread Andy Shevchenko
For unifying console ->setup() handling, which is pure documented, return error code, rather than non-zero arbitrary number. Signed-off-by: Andy Shevchenko --- drivers/tty/hvc/hvsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/hvc/hvsi.c b/drivers/tty/hvc/hvsi

[PATCH v1 2/6] serial: sunsab: Return proper error code from console ->setup() hook

2020-06-18 Thread Andy Shevchenko
For unifying console ->setup() handling, which is pure documented, return error code, rather than non-zero arbitrary number. Signed-off-by: Andy Shevchenko Cc: "David S. Miller" --- drivers/tty/serial/sunsab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/seria

[PATCH v1 0/6] console: unify return codes from ->setup() hook

2020-06-18 Thread Andy Shevchenko
Some of the console providers treat error code, returned by ->setup() hook, differently. Here is the unification of the behaviour. The drivers checked by one of the below criteria: 1/ the driver has explicit struct console .setup assignment 2/ the driver has assigned callback to the setup member

Re: [PATCH] ASoC: rockchip: Fix a reference count leak.

2020-06-18 Thread Mark Brown
On Sat, 13 Jun 2020 15:51:58 -0500, wu000...@umn.edu wrote: > Calling pm_runtime_get_sync increments the counter even in case of > failure, causing incorrect ref count if pm_runtime_put is not called in > error handling paths. Call pm_runtime_put if pm_runtime_get_sync fails. Applied to https:

[PATCH v1 1/6] mips: Return proper error code from console ->setup() hook

2020-06-18 Thread Andy Shevchenko
For unifying console ->setup() handling, which is pure documented, return error code, rather than non-zero arbitrary number. Signed-off-by: Andy Shevchenko Cc: Thomas Bogendoerfer --- arch/mips/fw/arc/arc_con.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/mips/fw/

[PATCH v1 6/6] console: Fix trivia typo 'change' -> 'chance'

2020-06-18 Thread Andy Shevchenko
I bet the word 'chance' has to be used in 'had a chance to be called', but, alas, I'm not native speaker... Signed-off-by: Andy Shevchenko Cc: Benjamin Herrenschmidt --- kernel/printk/printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel/pr

[PATCH v1 3/6] serial: sunzilog: Return proper error code from console ->setup() hook

2020-06-18 Thread Andy Shevchenko
For unifying console ->setup() handling, which is pure documented, return error code, rather than non-zero arbitrary number. Signed-off-by: Andy Shevchenko Cc: "David S. Miller" --- drivers/tty/serial/sunzilog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/ser

Re: [dm-devel] New mode DM-Verity error handling

2020-06-18 Thread Sami Tolvanen
On Thu, Jun 18, 2020 at 11:44:45AM -0400, Mike Snitzer wrote: > I do not accept that panicing the system because of verity failure is > reasonable. > > In fact, even rebooting (via DM_VERITY_MODE_RESTART) looks very wrong. > > The device should be put in a failed state and left for admin recovery

Re: [PATCH v3 04/15] arm64: kvm: Handle calls to prefixed hyp functions

2020-06-18 Thread Marc Zyngier
Hi David, On 2020-06-18 13:25, David Brazdil wrote: From: Andrew Scull This patch is part of a series which builds KVM's non-VHE hyp code separately from VHE and the rest of the kernel. Once hyp functions are moved to a hyp object, they will have prefixed symbols. This change declares and

Re: [PATCH] driver core:Export the symbol device_is_bound

2020-06-18 Thread Matthias Kaehlcke
On Thu, Jun 18, 2020 at 05:58:20PM +0200, Greg Kroah-Hartman wrote: > On Thu, Jun 18, 2020 at 08:45:55AM -0700, Matthias Kaehlcke wrote: > > Hi Greg, > > > > On Thu, Jun 18, 2020 at 10:14:43AM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Jun 03, 2020 at 12:09:52AM +0530, Sandeep Maheswaram wrote

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