[PATCH AUTOSEL 5.2 57/85] lib/test_overflow.c: avoid tainting the kernel and fix wrap size

2019-07-26 Thread Sasha Levin
From: Kees Cook [ Upstream commit 8e060c21ae2c265a2b596e9e7f9f97ec274151a4 ] This adds __GFP_NOWARN to the kmalloc()-portions of the overflow test to avoid tainting the kernel. Additionally fixes up the math on wrap size to be architecture and page size agnostic. Link:

[PATCH AUTOSEL 5.2 54/85] x86/apic: Silence -Wtype-limits compiler warnings

2019-07-26 Thread Sasha Levin
From: Qian Cai [ Upstream commit ec6335586953b0df32f83ef696002063090c7aef ] There are many compiler warnings like this, In file included from ./arch/x86/include/asm/smp.h:13, from ./arch/x86/include/asm/mmzone_64.h:11, from ./arch/x86/include/asm/mmzone.h:5,

[PATCH AUTOSEL 5.2 45/85] ISDN: hfcsusb: checking idx of ep configuration

2019-07-26 Thread Sasha Levin
From: Phong Tran [ Upstream commit f384e62a82ba5d85408405fdd6aeff89354deaa9 ] The syzbot test with random endpoint address which made the idx is overflow in the table of endpoint configuations. this adds the checking for fixing the error report from syzbot KASAN: stack-out-of-bounds Read in

[PATCH AUTOSEL 5.2 48/85] libbpf: fix another GCC8 warning for strncpy

2019-07-26 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit 763ff0e7d9c72e7094b31e7fb84a859be9325635 ] Similar issue was fixed in cdfc7f888c2a ("libbpf: fix GCC8 warning for strncpy") already. This one was missed. Fixing now. Cc: Magnus Karlsson Signed-off-by: Andrii Nakryiko Acked-by: Magnus Karlsson

[PATCH AUTOSEL 5.2 50/85] mm/z3fold: don't try to use buddy slots after free

2019-07-26 Thread Sasha Levin
From: Vitaly Wool [ Upstream commit bb9a374dfa3a2f46581455ab66cd1d24c5e3d183 ] As reported by Henry Burns: Running z3fold stress testing with address sanitization showed zhdr->slots was being used after it was freed. z3fold_free(z3fold_pool, handle) free_handle(handle)

[PATCH AUTOSEL 5.2 46/85] KVM: nVMX: Ignore segment base for VMX memory operand when segment not FS or GS

2019-07-26 Thread Sasha Levin
From: Liran Alon [ Upstream commit 6694e48012826351036fd10fc506ca880023e25f ] As reported by Maxime at https://bugzilla.kernel.org/show_bug.cgi?id=204175: In vmx/nested.c::get_vmx_mem_address(), when the guest runs in long mode, the base address of the memory operand is computed with a simple:

[PATCH AUTOSEL 5.2 41/85] cifs: fix crash in cifs_dfs_do_automount

2019-07-26 Thread Sasha Levin
From: Ronnie Sahlberg [ Upstream commit ce465bf94b70f03136171a62b607864f00093b19 ] RHBZ: 1649907 Fix a crash that happens while attempting to mount a DFS referral from the same server on the root of a filesystem. Signed-off-by: Ronnie Sahlberg Signed-off-by: Steve French Signed-off-by:

[PATCH AUTOSEL 5.2 42/85] perf version: Fix segfault due to missing OPT_END()

2019-07-26 Thread Sasha Levin
From: Ravi Bangoria [ Upstream commit 916c31fff946fae0e05862f9b2435fdb29fd5090 ] 'perf version' on powerpc segfaults when used with non-supported option: # perf version -a Segmentation fault (core dumped) Fix this. Signed-off-by: Ravi Bangoria Reviewed-by: Kamalesh Babulal Tested-by:

[PATCH -next] scsi: initio: Make some functions static

2019-07-26 Thread YueHaibing
Fix sparse warnings: drivers/scsi/initio.c:881:22: warning: symbol 'initio_find_busy_scb' was not declared. Should it be static? drivers/scsi/initio.c:919:22: warning: symbol 'initio_find_done_scb' was not declared. Should it be static? drivers/scsi/initio.c:1657:5: warning: symbol

[PATCH AUTOSEL 5.2 36/85] virtio-mmio: add error check for platform_get_irq

2019-07-26 Thread Sasha Levin
From: Ihor Matushchak [ Upstream commit 5e663f0410fa2f355042209154029842ba1abd43 ] in vm_find_vqs() irq has a wrong type so, in case of no IRQ resource defined, wrong parameter will be passed to request_irq() Signed-off-by: Ihor Matushchak Signed-off-by: Michael S. Tsirkin Reviewed-by: Ivan

Re: [PATCH 1/1] perf tools: Add PMU event JSON files for ARM Cortex-A76 and, Neoverse N1.

2019-07-26 Thread James Clark
> IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended > recipient, please notify the sender immediately and do not disclose the > contents to any other person, use it for any purpose, or store or copy the

Re: [alsa-devel] [RFC PATCH 03/40] soundwire: cadence_master: align debugfs to 8 digits

2019-07-26 Thread Pierre-Louis Bossart
On 7/26/19 4:38 AM, Cezary Rojewski wrote: On 2019-07-26 01:39, Pierre-Louis Bossart wrote: SQUASHME Signed-off-by: Pierre-Louis Bossart ---   drivers/soundwire/cadence_master.c | 2 +-   1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soundwire/cadence_master.c

[PATCH AUTOSEL 5.2 35/85] ceph: return -ERANGE if virtual xattr value didn't fit in buffer

2019-07-26 Thread Sasha Levin
From: Jeff Layton [ Upstream commit 3b421018f48c482bdc9650f894aa1747cf90e51d ] The getxattr manpage states that we should return ERANGE if the destination buffer size is too small to hold the value. ceph_vxattrcb_layout does this internally, but we should be doing this for all vxattrs. Fix the

[PATCH AUTOSEL 5.2 39/85] selftests/bpf: do not ignore clang failures

2019-07-26 Thread Sasha Levin
From: Ilya Leoshkevich [ Upstream commit 9cae4ace80ef39005da106fbb89c952b27d7b89e ] When compiling an eBPF prog fails, make still returns 0, because failing clang command's output is piped to llc and therefore its exit status is ignored. When clang fails, pipe the string "clang failed" to llc.

Re: [PATCH] hung_task: Allow printing warnings every check interval

2019-07-26 Thread Dmitry Safonov
On 7/26/19 2:28 PM, Tetsuo Handa wrote: > On 2019/07/26 20:29, Tetsuo Handa wrote: >> On 2019/07/25 23:25, Dmitry Safonov wrote: >>> Yes, also current distributions already using the counter to print >>> warnings number of times and then silently ignore. I.e., on my Arch >>> Linux setup: >>>

[PATCH AUTOSEL 5.2 32/85] ceph: fix listxattr vxattr buffer length calculation

2019-07-26 Thread Sasha Levin
From: David Disseldorp [ Upstream commit 2b2abcac8c251d1c77a4cc9d9f248daefae0fb4e ] ceph_listxattr() incorrectly returns a length based on the static ceph_vxattrs_name_size() value, which only takes into account whether vxattrs are hidden, ignoring vxattr.exists_cb(). When filling the xattr

[PATCH AUTOSEL 5.2 38/85] scsi: zfcp: fix GCC compiler warning emitted with -Wmaybe-uninitialized

2019-07-26 Thread Sasha Levin
From: Benjamin Block [ Upstream commit 484647088826f2f651acbda6bcf9536b8a466703 ] GCC v9 emits this warning: CC drivers/s390/scsi/zfcp_erp.o drivers/s390/scsi/zfcp_erp.c: In function 'zfcp_erp_action_enqueue': drivers/s390/scsi/zfcp_erp.c:217:26: warning: 'erp_action' may be

[PATCH AUTOSEL 5.2 34/85] ceph: fix dir_lease_is_valid()

2019-07-26 Thread Sasha Levin
From: "Yan, Zheng" [ Upstream commit feab6ac25dbfe3ab96299cb741925dc8d2da0caf ] It should call __ceph_dentry_dir_lease_touch() under dentry->d_lock. Besides, ceph_dentry(dentry) can be NULL when called by LOOKUP_RCU d_revalidate() Signed-off-by: "Yan, Zheng" Reviewed-by: Jeff Layton

Re: [PATCH 3/5] sched/fair: rework load_balance

2019-07-26 Thread Srikar Dronamraju
> > The type of sched_group has been extended to better reflect the type of > imbalance. We now have : > group_has_spare > group_fully_busy > group_misfit_task > group_asym_capacity > group_imbalanced > group_overloaded How is group_fully_busy different from

[PATCH 1/5] firmware: arm_scmi: Add discovery of SCMI v2.0 performance fastchannels

2019-07-26 Thread Sudeep Holla
SCMI v2.0 adds support for "FastChannel", a lightweight unidirectional channel that is dedicated to a single SCMI message type for controlling a specific platform resource. They do not use a message header as they are specialized for a single message. Only PERFORMANCE_LIMITS_{SET,GET} and

[PATCH 0/5] firmware: arm_scmi: add SCMI v2.0 fastchannels and reset protocol support

2019-07-26 Thread Sudeep Holla
SCMI v2.0[1] released recently adds support for: 1. Performance protocol fast channels 2. Reset Management Protocol among several other features. This series adds support for the above 2. The code is based on the cleanup[2] and Rx/async/delayed response series[3] and is available @[4] --

[PATCH AUTOSEL 5.2 20/85] dmaengine: rcar-dmac: Reject zero-length slave DMA requests

2019-07-26 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit 78efb76ab4dfb8f74f290ae743f34162cd627f19 ] While the .device_prep_slave_sg() callback rejects empty scatterlists, it still accepts single-entry scatterlists with a zero-length segment. These may happen if a driver calls dmaengine_prep_slave_single()

[PATCH AUTOSEL 5.2 24/85] clk: sprd: Add check for return value of sprd_clk_regmap_init()

2019-07-26 Thread Sasha Levin
From: Chunyan Zhang [ Upstream commit c974c48deeb969c5e4250e4f06af91edd84b1f10 ] sprd_clk_regmap_init() doesn't always return success, adding check for its return value should make the code more strong. Signed-off-by: Chunyan Zhang Reviewed-by: Baolin Wang [sb...@kernel.org: Add a missing

[PATCH 2/5] firmware: arm_scmi: Make use SCMI v2.0 fastchannel for performance protocol

2019-07-26 Thread Sudeep Holla
SCMI v2.0 adds support for "FastChannel" which do not use a message header as they are specialized for a single message. Only PERFORMANCE_LIMITS_{SET,GET} and PERFORMANCE_LEVEL_{SET,GET} commands are supported over fastchannels. As they are optional, they need to be discovered by

[PATCH AUTOSEL 5.2 27/85] btrfs: fix minimum number of chunk errors for DUP

2019-07-26 Thread Sasha Levin
From: David Sterba [ Upstream commit 0ee5f8ae082e1f675a2fb6db601c31ac9958a134 ] The list of profiles in btrfs_chunk_max_errors lists DUP as a profile DUP able to tolerate 1 device missing. Though this profile is special with 2 copies, it still needs the device, unlike the others. Looking at

[PATCH AUTOSEL 5.2 25/85] arm64: dts: rockchip: Fix USB3 Type-C on rk3399-sapphire

2019-07-26 Thread Sasha Levin
From: Vicente Bergas [ Upstream commit e1d9149e8389f1690cdd4e4056766dd26488a0fe ] Before this patch, the Type-C port on the Sapphire board is dead. If setting the 'regulator-always-on' property to 'vcc5v0_typec0' then the port works for about 4 seconds at start-up. This is a sample trace with a

[PATCH AUTOSEL 5.2 30/85] btrfs: qgroup: Don't hold qgroup_ioctl_lock in btrfs_qgroup_inherit()

2019-07-26 Thread Sasha Levin
From: Qu Wenruo [ Upstream commit e88439debd0a7f969b3ddba6f147152cd0732676 ] [BUG] Lockdep will report the following circular locking dependency: WARNING: possible circular locking dependency detected 5.2.0-rc2-custom #24 Tainted: G O

[PATCH 4/5] firmware: arm_scmi: Add RESET protocol in SCMI v2.0

2019-07-26 Thread Sudeep Holla
SCMIv2.0 adds a new Reset Management Protocol to manage various reset states a given device or domain can enter. Device(s) that can be collectively reset through a common reset signal constitute a reset domain for the firmware. A reset domain can be reset autonomously or explicitly through

[PATCH 3/5] dt-bindings: arm: Extend SCMI to support new reset protocol

2019-07-26 Thread Sudeep Holla
SCMIv2.0 adds a new Reset Management Protocol to manage various reset states a given device or domain can enter. Extend the existing SCMI bindings to add reset protocol support by re-using the reset bindings for bothe reset providers and consumers. Cc: Philipp Zabel Cc: Rob Herring Cc: Mark

[PATCH AUTOSEL 5.2 29/85] remoteproc: copy parent dma_pfn_offset for vdev

2019-07-26 Thread Sasha Levin
From: Clement Leger [ Upstream commit 72f64cabc4bd6985c7355f5547bd3637c82762ac ] When preparing the subdevice for the vdev, also copy dma_pfn_offset since this is used for sub device dma allocations. Without that, there is incoherency between the parent dma settings and the childs one,

[PATCH AUTOSEL 5.2 16/85] soc: imx8: Fix potential kernel dump in error path

2019-07-26 Thread Sasha Levin
From: Anson Huang [ Upstream commit 1bcbe7300815e91fef18ee905b04f65490ad38c9 ] When SoC's revision value is 0, SoC driver will print out "unknown" in sysfs's revision node, this "unknown" is a static string which can NOT be freed, this will caused below kernel dump in later error path which

[PATCH AUTOSEL 5.2 19/85] MIPS: lantiq: Fix bitfield masking

2019-07-26 Thread Sasha Levin
From: Petr Cvek [ Upstream commit ba1bc0fcdeaf3bf583c1517bd2e3e29cf223c969 ] The modification of EXIN register doesn't clean the bitfield before the writing of a new value. After a few modifications the bitfield would accumulate only '1's. Signed-off-by: Petr Cvek Signed-off-by: Paul Burton

Re: [alsa-devel] [RFC PATCH 04/40] soundwire: intel: add debugfs register dump

2019-07-26 Thread Pierre-Louis Bossart
On 7/26/19 4:35 AM, Cezary Rojewski wrote: On 2019-07-26 01:39, Pierre-Louis Bossart wrote: +static void intel_debugfs_init(struct sdw_intel *sdw) +{ +    struct dentry *root = sdw->cdns.bus.debugfs; + +    if (!root) +    return; + +    sdw->fs = debugfs_create_dir("intel-sdw", root); + 

[PATCH 5/5] reset: Add support for resets provided by SCMI

2019-07-26 Thread Sudeep Holla
On some ARM based systems, a separate Cortex-M based System Control Processor(SCP) provides the overall power, clock, reset and system control. System Control and Management Interface(SCMI) Message Protocol is defined for the communication between the Application Cores(AP) and the SCP. Adds

[PATCH AUTOSEL 5.2 10/85] soc: imx: soc-imx8: Correct return value of error handle

2019-07-26 Thread Sasha Levin
From: Anson Huang [ Upstream commit 4c396a604a57da8f883a8b3368d83181680d6907 ] Current implementation of i.MX8 SoC driver returns -ENODEV for all cases of error during initialization, this is incorrect. This patch fixes them using correct return value according to different errors.

[PATCH AUTOSEL 5.2 13/85] kernel/module.c: Only return -EEXIST for modules that have finished loading

2019-07-26 Thread Sasha Levin
From: Prarit Bhargava [ Upstream commit 6e6de3dee51a439f76eb73c22ae2ffd2c9384712 ] Microsoft HyperV disables the X86_FEATURE_SMCA bit on AMD systems, and linux guests boot with repeated errors: amd64_edac_mod: Unknown symbol amd_unregister_ecc_decoder (err -2) amd64_edac_mod: Unknown symbol

[PATCH AUTOSEL 5.2 12/85] arm64: dts: rockchip: fix isp iommu clocks and power domain

2019-07-26 Thread Sasha Levin
From: Helen Koike [ Upstream commit c432a29d3fc9ee928caeca2f5cf68b3aebfa6817 ] isp iommu requires wrapper variants of the clocks. noc variants are always on and using the wrapper variants will activate {A,H}CLK_ISP{0,1} due to the hierarchy. Tested using the pending isp patch set (which is not

[PATCH AUTOSEL 5.2 15/85] firmware/psci: psci_checker: Park kthreads before stopping them

2019-07-26 Thread Sasha Levin
From: Jean-Philippe Brucker [ Upstream commit 92e074acf6f7694e96204265eb18ac113f546e80 ] Since commit 85f1abe0019f ("kthread, sched/wait: Fix kthread_parkme() completion issue"), kthreads that are bound to a CPU must be parked before being stopped. At the moment the PSCI checker calls

[PATCH AUTOSEL 5.2 18/85] swiotlb: fix phys_addr_t overflow warning

2019-07-26 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 9c106119f6538f65bdddb7948a157d90625effa7 ] On architectures that have a larger dma_addr_t than phys_addr_t, the swiotlb_tbl_map_single() function truncates its return code in the failure path, making it impossible to identify the error later, as we compare

Re: [RFC v1 0/4] arm64: MMU enabled kexec kernel relocation

2019-07-26 Thread James Morse
Hi Pavel, On 17/07/2019 20:13, Pavel Tatashin wrote: >> After a quick skim: >> >> This will map 'nomap' regions of memory with cacheable attributes. This is a >> non-starter. >> These regions were described by firmware as having content that was/is >> written with >> different attributes. The

Re: WARNING in __mmdrop

2019-07-26 Thread Jason Wang
On 2019/7/26 下午9:47, Michael S. Tsirkin wrote: On Fri, Jul 26, 2019 at 08:53:18PM +0800, Jason Wang wrote: On 2019/7/26 下午8:38, Michael S. Tsirkin wrote: On Fri, Jul 26, 2019 at 08:00:58PM +0800, Jason Wang wrote: On 2019/7/26 下午7:49, Michael S. Tsirkin wrote: On Thu, Jul 25, 2019 at

[PATCH AUTOSEL 5.2 17/85] arm64: qcom: qcs404: Add reset-cells to GCC node

2019-07-26 Thread Sasha Levin
From: Andy Gross [ Upstream commit 0763d0c2273a3c72247d325c48fbac3d918d6b87 ] This patch adds a reset-cells property to the gcc controller on the QCS404. Without this in place, we get warnings like the following if nodes reference a gcc reset: arch/arm64/boot/dts/qcom/qcs404.dtsi:261.38-310.5:

[PATCH AUTOSEL 5.2 07/85] arm64: dts: qcom: qcs404-evb: fix l3 min voltage

2019-07-26 Thread Sasha Levin
From: Niklas Cassel [ Upstream commit 887b528c958f40b064d53edd0bfa9fea3a69eccd ] The current l3 min voltage level is not supported by the regulator (the voltage is not a multiple of the regulator step size), so a driver requesting this exact voltage would fail, see discussion in:

Re: [PATCH] platform: release resource itself instead of resource tree

2019-07-26 Thread Greg KH
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Fri, Jul 26, 2019 at

[PATCH] drm/amdkfd: remove set but not used variable 'pdd'

2019-07-26 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c: In function restore_process_worker: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:949:29: warning: variable pdd set but not used [-Wunused-but-set-variable] It is not used since commit

Re: [PATCH 3/5] sched/fair: rework load_balance

2019-07-26 Thread Valentin Schneider
On 26/07/2019 13:30, Vincent Guittot wrote: >> We can avoid this entirely by going straight for an active balance when >> we are balancing misfit tasks (which we really should be doing TBH). > > but your misfit task might not be the running one anymore when > load_balance effectively happens >

[PATCH AUTOSEL 5.2 06/85] ftrace: Enable trampoline when rec count returns back to one

2019-07-26 Thread Sasha Levin
From: Cheng Jian [ Upstream commit a124692b698b00026a58d89831ceda2331b2e1d0 ] Custom trampolines can only be enabled if there is only a single ops attached to it. If there's only a single callback registered to a function, and the ops has a trampoline registered for it, then we can call the

[PATCH AUTOSEL 5.2 03/85] ARM: dts: rockchip: Make rk3288-veyron-mickey's emmc work again

2019-07-26 Thread Sasha Levin
From: Douglas Anderson [ Upstream commit 99fa066710f75f18f4d9a5bc5f6a711968a581d5 ] When I try to boot rk3288-veyron-mickey I totally fail to make the eMMC work. Specifically my logs (on Chrome OS 4.19): mmc_host mmc1: card is non-removable. mmc_host mmc1: Bus speed (slot 0) = 40Hz

Re: [alsa-devel] [RFC PATCH 06/40] soundwire: intel: prevent possible dereference in hw_params

2019-07-26 Thread Pierre-Louis Bossart
diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 68832e613b1e..497879dd9c0d 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -509,7 +509,7 @@ static int intel_config_stream(struct sdw_intel *sdw, struct snd_soc_dai *dai,

Re: [Regression] Commit "nvme/pci: Use host managed power state for suspend" has problems

2019-07-26 Thread Kai-Heng Feng
at 04:02, Rafael J. Wysocki wrote: On Thursday, July 25, 2019 9:52:59 PM CEST Keith Busch wrote: On Thu, Jul 25, 2019 at 09:48:57PM +0200, Rafael J. Wysocki wrote: NVME Identify Controller: vid : 0x1c5c ssvid : 0x1c5c sn : MS92N171312902J0N mn : PC401 NVMe SK hynix 256GB fr

[PATCH -next] staging: rtl8723bs: remove set but not used variable 'bWifiBusy'

2019-07-26 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: In function halbtc8723b1ant_TdmaDurationAdjustForAcl: drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:1761:7: warning: variable bWifiBusy set but not used [-Wunused-but-set-variable] It is never used so can be removed. Reported-by: Hulk Robot

Re: [RFC PATCH 01/40] soundwire: add debugfs support

2019-07-26 Thread Greg KH
On Thu, Jul 25, 2019 at 06:39:53PM -0500, Pierre-Louis Bossart wrote: > Add base debugfs mechanism for SoundWire bus by creating soundwire > root and master-N and slave-x hierarchy. > > Also add SDW Slave SCP, DP0 and DP-N register debug file. > > Registers not implemented will print as "XX" >

Re: [alsa-devel] [RFC PATCH 09/40] soundwire: cadence_master: fix usage of CONFIG_UPDATE

2019-07-26 Thread Pierre-Louis Bossart
@@ -943,7 +953,10 @@ int sdw_cdns_init(struct sdw_cdns *cdns) cdns_writel(cdns, CDNS_MCP_CONFIG, val); - return 0; + /* commit changes */ + ret = cdns_update_config(cdns); + + return ret; + return cdns_update_config(cdns); yes, will fix. thanks!

Re: [RFC PATCH 04/40] soundwire: intel: add debugfs register dump

2019-07-26 Thread Greg KH
On Thu, Jul 25, 2019 at 06:39:56PM -0500, Pierre-Louis Bossart wrote: > Add debugfs file to dump the Intel SoundWire registers > > Credits: this patch is based on an earlier internal contribution by > Vinod Koul, Sanyog Kale, Shreyas Nc and Hardik Shah. The main change > is the use of scnprintf

Re: [PATCH 4.19 079/271] x86/atomic: Fix smp_mb__{before,after}_atomic()

2019-07-26 Thread Jari Ruusu
On 7/26/19, Peter Zijlstra wrote: > On Fri, Jul 26, 2019 at 01:18:06PM +0300, Jari Ruusu wrote: >> Shouldn't those clobber contraints actually be: "memory","cc" >> That is because addl subl (and other) machine instructions >> actually modify the flags register too. >> >> gcc docs say: The "cc"

Re: [RFC PATCH 37/40] soundwire: cadence_master: add hw_reset capability in debugfs

2019-07-26 Thread Greg KH
On Thu, Jul 25, 2019 at 06:40:29PM -0500, Pierre-Louis Bossart wrote: > This is to kick devices into reset and see what software does > > Signed-off-by: Pierre-Louis Bossart > --- > drivers/soundwire/cadence_master.c | 22 ++ > 1 file changed, 22 insertions(+) > > diff

[PATCH -next] staging: rtl8723bs: remove set but not used variable 'pszBBRegMpFile'

2019-07-26 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c: In function phy_BB8723b_Config_ParaFile: drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c:436:77: warning: variable pszBBRegMpFile set but not used [-Wunused-but-set-variable] It is never used so can

Re: [RFC PATCH 02/40] soundwire: cadence_master: add debugfs register dump

2019-07-26 Thread Greg KH
On Thu, Jul 25, 2019 at 06:39:54PM -0500, Pierre-Louis Bossart wrote: > Add debugfs file to dump the Cadence master registers > > Credits: this patch is based on an earlier internal contribution by > Vinod Koul, Sanyog Kale, Shreyas Nc and Hardik Shah. The main change > is the use of scnprintf to

Re: [PATCH 3/5] sched/fair: rework load_balance

2019-07-26 Thread Valentin Schneider
On 26/07/2019 14:58, Srikar Dronamraju wrote: [...] >> @@ -8357,72 +8318,115 @@ static inline void calculate_imbalance(struct >> lb_env *env, struct sd_lb_stats *s >> if (busiest->group_type == group_imbalanced) { >> /* >> * In the group_imb case we cannot rely on

Re: [alsa-devel] [RFC PATCH 15/40] soundwire: cadence_master: handle multiple status reports per Slave

2019-07-26 Thread Pierre-Louis Bossart
diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence_master.c index 889fa2cd49ae..25d5c7267c15 100644 --- a/drivers/soundwire/cadence_master.c +++ b/drivers/soundwire/cadence_master.c @@ -643,13 +643,35 @@ static int cdns_update_slave_status(struct sdw_cdns *cdns,

Re: WARNING in __mmdrop

2019-07-26 Thread Michael S. Tsirkin
On Fri, Jul 26, 2019 at 10:00:20PM +0800, Jason Wang wrote: > > On 2019/7/26 下午9:47, Michael S. Tsirkin wrote: > > On Fri, Jul 26, 2019 at 08:53:18PM +0800, Jason Wang wrote: > > > On 2019/7/26 下午8:38, Michael S. Tsirkin wrote: > > > > On Fri, Jul 26, 2019 at 08:00:58PM +0800, Jason Wang wrote: >

Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool

2019-07-26 Thread Jon Hunter
On 25/07/2019 16:12, Jose Abreu wrote: > From: Jon Hunter > Date: Jul/25/2019, 15:25:59 (UTC+00:00) > >> >> On 25/07/2019 14:26, Jose Abreu wrote: >> >> ... >> >>> Well, I wasn't expecting that :/ >>> >>> Per documentation of barriers I think we should set descriptor fields >>> and then

Re: [alsa-devel] [RFC PATCH 16/40] soundwire: cadence_master: improve startup sequence with link hw_reset

2019-07-26 Thread Pierre-Louis Bossart
+static int do_reset(struct sdw_cdns *cdns) +{ + int ret; + + /* program maximum length reset to be safe */ + cdns_updatel(cdns, CDNS_MCP_CONTROL, +CDNS_MCP_CONTROL_RST_DELAY, +CDNS_MCP_CONTROL_RST_DELAY); + + /* use hardware

Re: [alsa-devel] [RFC PATCH 04/40] soundwire: intel: add debugfs register dump

2019-07-26 Thread Greg KH
On Fri, Jul 26, 2019 at 09:00:28AM -0500, Pierre-Louis Bossart wrote: > > > On 7/26/19 4:35 AM, Cezary Rojewski wrote: > > On 2019-07-26 01:39, Pierre-Louis Bossart wrote: > > > +static void intel_debugfs_init(struct sdw_intel *sdw) > > > +{ > > > +    struct dentry *root =

[PATCH 06/10] staging: rtl8723bs: os_dep: remove two set but not used variables

2019-07-26 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/rtl8723bs//os_dep/osdep_service.c: In function 'rtw_buf_free': drivers/staging/rtl8723bs//os_dep/osdep_service.c:321:6: warning: variable 'ori_len' set but not used [-Wunused-but-set-variable]

Re: [RFC PATCH 04/40] soundwire: intel: add debugfs register dump

2019-07-26 Thread Greg KH
On Fri, Jul 26, 2019 at 04:06:35PM +0200, Greg KH wrote: > On Thu, Jul 25, 2019 at 06:39:56PM -0500, Pierre-Louis Bossart wrote: > > Add debugfs file to dump the Intel SoundWire registers > > > > Credits: this patch is based on an earlier internal contribution by > > Vinod Koul, Sanyog Kale,

[CHANGE] sched: use rq_lock/unlock in online_fair_sched_group

2019-07-26 Thread Phil Auld
Enabling WARN_DOUBLE_CLOCK in /sys/kernel/debug/sched_features causes warning to fire in update_rq_clock. This seems to be caused by onlining a new fair sched group not using the rq lock wrappers. [ 612.379993] rq->clock_update_flags & RQCF_UPDATED [ 612.380007] WARNING: CPU: 6 PID: 21426 at

Re: [alsa-devel] [RFC PATCH 20/40] soundwire: prototypes for suspend/resume

2019-07-26 Thread Pierre-Louis Bossart
On 7/26/19 5:04 AM, Cezary Rojewski wrote: On 2019-07-26 01:40, Pierre-Louis Bossart wrote: Signed-off-by: Pierre-Louis Bossart ---   drivers/soundwire/cadence_master.h | 3 +++   1 file changed, 3 insertions(+) diff --git a/drivers/soundwire/cadence_master.h

[PATCH] brcmsmac: remove three set but not used variables

2019-07-26 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c: In function 'brcms_c_set_gmode': drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c:5257:7: warning: variable 'preamble_restrict' set but not used [-Wunused-but-set-variable]

[PATCH] net: rds: Fix possible null-pointer dereferences in rds_rdma_cm_event_handler_cmn()

2019-07-26 Thread Jia-Ju Bai
In rds_rdma_cm_event_handler_cmn(), there are some if statements to check whether conn is NULL, such as on lines 65, 96 and 112. But conn is not checked before being used on line 108: trans->cm_connect_complete(conn, event); and on lines 140-143: rdsdebug("DISCONNECT event - dropping

Re: [alsa-devel] [RFC PATCH 23/40] soundwire: stream: fix disable sequence

2019-07-26 Thread Pierre-Louis Bossart
On 7/26/19 5:14 AM, Cezary Rojewski wrote: On 2019-07-26 01:40, Pierre-Louis Bossart wrote: -    return do_bank_switch(stream); +    ret = do_bank_switch(stream); +    if (ret < 0) { +    dev_err(bus->dev, "Bank switch failed: %d\n", ret); +    return ret; +    } + +    /* make sure

[PATCH] iwlwifi: mvm: fix old-style declaration

2019-07-26 Thread YueHaibing
There expect the 'static' keyword to come first in a declaration, and we get a warning for this with "make W=1": drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:427:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]

[PATCH] rtw88: pci: remove set but not used variable 'ip_sel'

2019-07-26 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/realtek/rtw88/pci.c: In function 'rtw_pci_phy_cfg': drivers/net/wireless/realtek/rtw88/pci.c:993:6: warning: variable 'ip_sel' set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot Signed-off-by: YueHaibing ---

Re: [PATCH] net: tipc: Fix a possible null-pointer dereference in tipc_publ_purge()

2019-07-26 Thread Ying Xue
On 7/25/19 5:20 PM, Jia-Ju Bai wrote: > In tipc_publ_purge(), there is an if statement on 215 to > check whether p is NULL: > if (p) > > When p is NULL, it is used on line 226: > kfree_rcu(p, rcu); > > Thus, a possible null-pointer dereference may occur. > > To fix this bug, p is

ASSALAMU ALAIKUM

2019-07-26 Thread Miss Aysha Al-Gaddafi
ASSALAMU ALAIKUM, I have a business Proposal for you and I need mutual respect, trust, honesty, transparency, adequate support and assistance, Hope to hear from you for more details. Warmest regards Mrs Aisha Gaddafi السلام عليكم، لدي اقتراح عمل لك وأحتاج إلى الاحترام المتبادل والثقة والصدق

Re: [PATCH] isdn/gigaset: check endpoint null in gigaset_probe

2019-07-26 Thread Paul Bolle
Phong Tran schreef op vr 26-07-2019 om 20:35 [+0700]: > This fixed the potential reference NULL pointer while using variable > endpoint. > > Reported-by: syzbot+35b1c403a14f5c89e...@syzkaller.appspotmail.com > Tested by syzbot: >

Re: [alsa-devel] [RFC PATCH 24/40] soundwire: cadence_master: use BIOS defaults for frame shape

2019-07-26 Thread Pierre-Louis Bossart
On 7/26/19 5:20 AM, Cezary Rojewski wrote: On 2019-07-26 01:40, Pierre-Louis Bossart wrote: +static u32 cdns_set_default_frame_shape(int n_rows, int n_cols) +{ +    u32 val; +    int c; +    int r; + +    r = sdw_find_row_index(n_rows); +    c = sdw_find_col_index(n_cols); + +    val = (r <<

[PATCH] mmc: host: dw_mmc: Fix possible null-pointer dereferences in dw_mci_runtime_resume()

2019-07-26 Thread Jia-Ju Bai
In dw_mci_runtime_resume(), there is an if statement on line 3420 to check whether host->slot is NULL: if (host->slot && ...) When host->slot is NULL, it is used on line 3458: if (host->slot->mmc->pm_flags & MMC_PM_KEEP_POWER) and on line 3462: dw_mci_setup_bus(host->slot, true);

[PATCH -next] Input: melfas_mip4 - remove set but not used variables

2019-07-26 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/input/touchscreen/melfas_mip4.c: In function 'mip4_report_touch': drivers/input/touchscreen/melfas_mip4.c:474:5: warning: variable 'size' set but not used [-Wunused-but-set-variable] drivers/input/touchscreen/melfas_mip4.c:472:5: warning:

Re: [PATCH] net: rds: Fix possible null-pointer dereferences in rds_rdma_cm_event_handler_cmn()

2019-07-26 Thread santosh . shilimkar
On 7/26/19 7:17 AM, Jia-Ju Bai wrote: In rds_rdma_cm_event_handler_cmn(), there are some if statements to check whether conn is NULL, such as on lines 65, 96 and 112. But conn is not checked before being used on line 108: trans->cm_connect_complete(conn, event); and on lines 140-143:

Re: [alsa-devel] [RFC PATCH 26/40] soundwire: cadence_master: fix divider setting in clock register

2019-07-26 Thread Pierre-Louis Bossart
On 7/26/19 12:19 AM, Bard liao wrote: On 7/26/2019 7:40 AM, Pierre-Louis Bossart wrote: From: Rander Wang The existing code uses an OR operation which would mix the original divider setting with the new one, resulting in an invalid configuration that can make codecs hang. Add the mask

[PATCH] scsi/megaraid_sas: fix a compilation warning

2019-07-26 Thread Qian Cai
The commit de516379e85f ("scsi: megaraid_sas: changes to function prototypes") introduced a comilation warning due to it changed the function prototype of read_fw_status_reg() to take an instance pointer instead, but forgot to remove an unused variable.

[PATCH v2] Bluetooth: hci_ldisc: check for missing tty operations

2019-07-26 Thread Vladis Dronov
Certain ttys operations (pty_unix98_ops) lack tiocmget() and tiocmset() functions which are called by the certain HCI UART protocols (hci_ath, hci_bcm, hci_intel, hci_mrvl, hci_qca) via hci_uart_set_flow_control() or directly. This leads to an execution at NULL and can be triggered by an

Re: [PATCH net] mvpp2: refactor MTU change code

2019-07-26 Thread Matteo Croce
On Fri, Jul 26, 2019 at 2:50 PM Antoine Tenart wrote: > > Hi Matteo, > > On Fri, Jul 26, 2019 at 01:19:31AM +0200, Matteo Croce wrote: > > The MTU change code can call napi_disable() with the device already down, > > leading to a deadlock. Also, lot of code is duplicated unnecessarily. > > > >

[PATCH] intel_th: Use the correct style for SPDX License Identifier

2019-07-26 Thread Nishad Kamdar
This patch corrects the SPDX License Identifier style in header files related to Drivers for Intel(R) Trace Hub controller. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used) Changes made by using a script

Re: [PATCH] media: staging: davinci: remove vpfe driver

2019-07-26 Thread Sekhar Nori
On 23/07/19 4:14 PM, Arnd Bergmann wrote: > The davinci_vpfe driver was merged into staging back in 2012 by Manjunath > Hadli from TI, with a long TODO list. > > For all I can tell, since then it has only seen fixes for compile-time > issues and global cleanups, but nobody has actually worked on

[git pull] struct mount leak fix

2019-07-26 Thread Al Viro
Braino introduced in "switch the remnants of releasing the mountpoint away from fs_pin"; the most visible result is leaking struct mount when mounting btrfs, making it impossible to shut down. The following changes since commit 18253e034d2aeee140f82fc9fe89c4bce5c81799: Merge branch

Re: [PATCH v7 0/7] Solve postboot supplier cleanup and optimize probe ordering

2019-07-26 Thread Greg Kroah-Hartman
On Thu, Jul 25, 2019 at 02:04:23PM -0700, Frank Rowand wrote: > On 7/25/19 6:42 AM, Greg Kroah-Hartman wrote: > > On Tue, Jul 23, 2019 at 05:10:53PM -0700, Saravana Kannan wrote: > >> Add device-links to track functional dependencies between devices > >> after they are created (but before they are

Re: [PATCH net-next] mvpp2: document HW checksum behaviour

2019-07-26 Thread Matteo Croce
On Fri, Jul 26, 2019 at 2:57 PM Antoine Tenart wrote: > > Hi Matteo, > > On Fri, Jul 26, 2019 at 01:15:46AM +0200, Matteo Croce wrote: > > The hardware can only offload checksum calculation on first port due to > > the Tx FIFO size limitation. Document this in a comment. > > > > Fixes:

Re: Backlight in motorola Droid 4

2019-07-26 Thread Dan Murphy
Pavel On 7/24/19 10:22 AM, Dan Murphy wrote: Pavel On 7/24/19 7:45 AM, Pavel Machek wrote: +   static int lm3532_parse_node(struct lm3532_data *priv)   {   struct fwnode_handle *child = NULL; @@ -536,11 +579,13 @@ static int lm3532_parse_node(struct lm3532_data *priv)   ret =

[PATCH RESEND v8] PCI: imx6: limit DBI register length

2019-07-26 Thread Stefan Agner
Define the length of the DBI registers and limit config space to its length. This makes sure that the kernel does not access registers beyond that point, avoiding the following abort on a i.MX 6Quad: # cat /sys/devices/soc0/soc/1ffc000.pcie/pci\:00/\:00\:00.0/config [ 100.021433]

Re: linux-next: Tree for Jul 26 (regulator/act8865)

2019-07-26 Thread Randy Dunlap
On 7/25/19 10:23 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20190725: > on i386: ld: drivers/regulator/act8865-regulator.o: in function `act8865_pmic_probe': act8865-regulator.c:(.text+0x538): undefined reference to `devm_power_supply_register' ld:

Re: [alsa-devel] [RFC PATCH 27/40] soundwire: Add Intel resource management algorithm

2019-07-26 Thread Pierre-Louis Bossart
On 7/26/19 6:07 AM, Cezary Rojewski wrote: On 2019-07-26 01:40, Pierre-Louis Bossart wrote: This algorithm computes bus parameters like clock frequency, frame shape and port transport parameters based on active stream(s) running on the bus. This implementation is optimal for Intel

Re: [PATCH 23/79] libperf: Make libperf.a part of the build

2019-07-26 Thread Arnaldo Carvalho de Melo
Em Sun, Jul 21, 2019 at 01:24:10PM +0200, Jiri Olsa escreveu: > Adding empty libperf.a under toos/perf/lib and > linking it with perf. > > It can also be built separately with: > > $ cd tools/perf/lib && make > CC core.o > LD libperf-in.o > AR libperf.a > LINK

Re: [PATCH 3/5] sched/fair: rework load_balance

2019-07-26 Thread Vincent Guittot
On Fri, 26 Jul 2019 at 15:59, Srikar Dronamraju wrote: > > > > > The type of sched_group has been extended to better reflect the type of > > imbalance. We now have : > > group_has_spare > > group_fully_busy > > group_misfit_task > > group_asym_capacity > >

Re: [alsa-devel] [RFC PATCH 29/40] soundwire: intel_init: add kernel module parameter to filter out links

2019-07-26 Thread Pierre-Louis Bossart
On 7/26/19 5:30 AM, Cezary Rojewski wrote: On 2019-07-26 01:40, Pierre-Louis Bossart wrote: @@ -83,6 +87,9 @@ static struct sdw_intel_ctx   caps = ioread32(res->mmio_base + SDW_SHIM_BASE + SDW_SHIM_LCAP);   caps &= GENMASK(2, 0); +    dev_dbg(>dev, "SoundWire links: BIOS count %d

Re: [alsa-devel] [RFC PATCH 21/40] soundwire: export helpers to find row and column values

2019-07-26 Thread Guennadi Liakhovetski
On Thu, Jul 25, 2019 at 06:40:13PM -0500, Pierre-Louis Bossart wrote: > Add a prefix for common tables and export 2 helpers to set the frame > shapes based on row/col values. > > Signed-off-by: Pierre-Louis Bossart > --- > drivers/soundwire/bus.h| 7 +-- > drivers/soundwire/stream.c |

Re: [alsa-devel] [RFC PATCH 31/40] soundwire: intel: move shutdown() callback and don't export symbol

2019-07-26 Thread Pierre-Louis Bossart
On 7/26/19 5:38 AM, Cezary Rojewski wrote: On 2019-07-26 01:40, Pierre-Louis Bossart wrote: +void intel_shutdown(struct snd_pcm_substream *substream, +    struct snd_soc_dai *dai) +{ +    struct sdw_cdns_dma_data *dma; + +    dma = snd_soc_dai_get_dma_data(dai, substream); +    if

Re: [PATCH 3/5] sched/fair: rework load_balance

2019-07-26 Thread Vincent Guittot
On Fri, 26 Jul 2019 at 16:01, Valentin Schneider wrote: > > On 26/07/2019 13:30, Vincent Guittot wrote: > >> We can avoid this entirely by going straight for an active balance when > >> we are balancing misfit tasks (which we really should be doing TBH). > > > > but your misfit task might not be

Re: [PATCH] Documentation/admin-guide: Embargoed hardware security issues

2019-07-26 Thread Thomas Gleixner
On Thu, 25 Jul 2019, Jonathan Corbet wrote: > > Note, this document has gone through numerous reviews by a number of > > kernel developers, developers at some of the Linux distros, as well as > > all of the lawyers from almost all open source-related companies. It's > > been sitting on my local

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