[PATCH 6/6] TEST-ONLY: media: uvcvideo: Add statistics for measuring performance

2020-11-24 Thread Ricardo Ribalda
From: Shik Chen Majorly based on [1], with the following tweaks: * Use div_u64 for u64 divisions * Calculate standard deviation * Fix an uninitialized |min| field for header * Apply clang-format [1]

[PATCH 1/6] dma-mapping: remove the {alloc,free}_noncoherent methods

2020-11-24 Thread Ricardo Ribalda
From: Christoph Hellwig It turns out allowing non-contigous allocations here was a rather bad idea, as we'll now need to define ways to get the pages for mmaping or dma_buf sharing. Revert this change and stick to the original concept. A different API for the use case of non-contigous

Re: [PATCH] fs/buffer.c: Revoke LRU when trying to drop buffers

2020-11-24 Thread Matthew Wilcox
On Mon, Nov 23, 2020 at 10:49:38PM -0800, Chris Goldsworthy wrote: > +static void __evict_bh_lru(void *arg) > +{ > + struct bh_lru *b = _cpu_var(bh_lrus); > + struct buffer_head *bh = arg; > + int i; > + > + for (i = 0; i < BH_LRU_SIZE; i++) { > + if (b->bhs[i] == bh) {

[PATCH 5/6] media: uvcvideo: Use dma_alloc_noncontiguos API

2020-11-24 Thread Ricardo Ribalda
On architectures where the is no coherent caching such as ARM use the dma_alloc_noncontiguos API and handle manually the cache flushing using dma_sync_single(). With this patch on the affected architectures we can measure up to 20x performance improvement in uvc_video_copy_data_work().

[PATCH 4/6] WIP: add a dma_alloc_contiguous API

2020-11-24 Thread Ricardo Ribalda
From: Christoph Hellwig Add a new API that returns a virtually non-contigous array of pages and dma address. This API is only implemented for dma-iommu and will not be implemented for non-iommu DMA API instances that have to allocate contiguous memory. It is up to the caller to check if the

[PATCH 2/6] dma-direct: use __GFP_ZERO in dma_direct_alloc_pages

2020-11-24 Thread Ricardo Ribalda
From: Christoph Hellwig Prepare for supporting the DMA_ATTR_NO_KERNEL_MAPPING flag in dma_alloc_pages. Signed-off-by: Christoph Hellwig --- kernel/dma/direct.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index

[PATCH 3/6] dma-iommu: remove __iommu_dma_mmap

2020-11-24 Thread Ricardo Ribalda
From: Christoph Hellwig The function has a single caller, so open code it there and take advantage of the precalculated page count variable. Signed-off-by: Christoph Hellwig --- drivers/iommu/dma-iommu.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git

Re: [PATCH] net: phy: fix auto-negotiation in case of 'down-shift'

2020-11-24 Thread Russell King - ARM Linux admin
On Tue, Nov 24, 2020 at 04:17:42PM +0100, Antonio Borneo wrote: > On Tue, 2020-11-24 at 14:56 +, Russell King - ARM Linux admin wrote: > > Userspace doesn't expect the advertising mask to change beneath it. > > Since updates from userspace are done using a read-modify-write of > > the

Re: [PATCH] spi: imx: fix the unbalanced spi runtime pm management

2020-11-24 Thread Mark Brown
On Tue, 24 Nov 2020 16:52:47 +0800, Clark Wang wrote: > If set active without increase the usage count of pm, the dont use > autosuspend function will call the suspend callback to close the two > clocks of spi because the usage count is reduced to -1. > This will cause the warning dump below when

Re: [PATCH v2] regulator: Kconfig: Fix REGULATOR_QCOM_RPMH dependencies to avoid build error

2020-11-24 Thread Mark Brown
On Mon, 23 Nov 2020 22:23:59 +, John Stultz wrote: > The kernel test robot reported the following build error: > > All errors (new ones prefixed by >>): > >xtensa-linux-ld: drivers/regulator/qcom-rpmh-regulator.o: in function > `rpmh_regulator_vrm_get_voltage_sel': >

Re: [RFC PATCH v2] tracing: Remove duplicate `type` field from regmap `regcache_sync` trace event

2020-11-24 Thread Mark Brown
On Tue, 24 Nov 2020 08:57:30 -0500, Philippe Duplessis-Guindon wrote: > I have an error saying that `regcache_sync` has 2 fields named `type` > while using libtraceevent. > > Erase the `int field` type, which is not assigned. This field is > introduced by mistake and this commit removes it. > >

Re: [PATCH v2 1/4] pwm: pca9685: Switch to atomic API

2020-11-24 Thread Sven Van Asbroeck
On Tue, Nov 24, 2020 at 10:29 AM Sven Van Asbroeck wrote: > > My pleasure ! We are fortunate that you take the time & effort to improve > this code. By "this code" I meant the pca9685 driver in general. Just making sure there's no possible misinterpretation :)

Re: [PATCH] soc: qcom: Introduce debugfs interface to smem

2020-11-24 Thread Vinod Koul
On 22-11-20, 23:21, Bjorn Andersson wrote: > Every now and then it's convenient to be able to inspect the content of > SMEM items. Rather than carrying some hack locally let's upstream a > driver that when inserted exposes a debugfs interface for dumping > available items. > > Signed-off-by:

Re: [RFC PATCH v2] tracing: Remove duplicate `type` field from regmap `regcache_sync` trace event

2020-11-24 Thread Mark Brown
On Tue, Nov 24, 2020 at 08:57:30AM -0500, Philippe Duplessis-Guindon wrote: > Fixes commit 593600890110c ("regmap: Add the regcache_sync trace event") > > Signed-off-by: Philippe Duplessis-Guindon Please follow the format for Fixes: tags documented in submitting-patches.rst and existing usage

Re: [PATCH] net: phy: fix auto-negotiation in case of 'down-shift'

2020-11-24 Thread Antonio Borneo
On Tue, 2020-11-24 at 15:17 +, Russell King - ARM Linux admin wrote: > On Tue, Nov 24, 2020 at 04:03:40PM +0100, Heiner Kallweit wrote: > > Am 24.11.2020 um 15:38 schrieb Antonio Borneo: > > > If the auto-negotiation fails to establish a gigabit link, the phy > > > can try to 'down-shift': it

RE: Oops (probably) unmounting /oldroot/firmware/efi/efivars.

2020-11-24 Thread David Laight
From: Ard Biesheuvel > Sent: 24 November 2020 15:02 > On Tue, 24 Nov 2020 at 15:58, David Laight wrote: > > > > From: Ard Biesheuvel > > > Sent: 24 November 2020 14:24 > > > > > > On Tue, 24 Nov 2020 at 15:22, David Laight > > > wrote: > > > > > > > > I've just updated to the head of Linus's

Re: [PATCH 01/29] iov_iter: Switch to using a table of operations

2020-11-24 Thread Jens Axboe
On 11/24/20 5:50 AM, David Howells wrote: > Pavel Begunkov wrote: > >> fio is relatively heavy, I'd suggest to try fio/t/io_uring with nullblk > > no patches: Here's what I get. nullb0 using blk-mq, and submit_queues==NPROC. iostats and merging disabled, using 8k bs for t/io_uring to ensure we

[PATCH] e1000e: Assign DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME to speed up s2ram

2020-11-24 Thread Chen Yu
The NIC is put in runtime suspend status when there is no wire connected. As a result, it is safe to keep this NIC in runtime suspended during s2ram because the system does not rely on the NIC plug event nor WOL to wake up the system. Unlike the s2idle, s2ram does not need to manipulate S0ix

Re: [PATCH v2 1/4] pwm: pca9685: Switch to atomic API

2020-11-24 Thread Sven Van Asbroeck
On Tue, Nov 24, 2020 at 10:19 AM Clemens Gruber wrote: > > Thanks for your review! My pleasure ! We are fortunate that you take the time & effort to improve this code.

Re: [PATCH 12/17] fs/cramfs: Use memcpy_from_page()

2020-11-24 Thread Nicolas Pitre
On Mon, 23 Nov 2020, ira.we...@intel.com wrote: > From: Ira Weiny > > Remove open coded kmap/memcpy/kunmap and use mempcy_from_page() instead. > > Cc: Nicolas Pitre > Signed-off-by: Ira Weiny Acked-by: Nicolas Pitre > --- > fs/cramfs/inode.c | 3 +-- > 1 file changed, 1 insertion(+), 2

Re: [PATCH v5 07/10] media: Add parsing for APP14 data segment in jpeg helpers

2020-11-24 Thread Mirela Rabulea
Hi Philipp, any thoughts on the jpeg helpers related patches from this patch set (7,8,9,10)? Thanks, Mirela On Thu, 2020-11-12 at 05:05 +0200, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > According to Rec. ITU-T T.872 (06/2012) 6.5.3 > APP14 segment is for color encoding, it contains

Re: [PATCH 2/3] mm: Extract might_alloc() debug check

2020-11-24 Thread Jason Gunthorpe
On Tue, Nov 24, 2020 at 03:34:11PM +0100, Daniel Vetter wrote: > On Fri, Nov 20, 2020 at 02:07:19PM -0400, Jason Gunthorpe wrote: > > On Fri, Nov 20, 2020 at 10:54:43AM +0100, Daniel Vetter wrote: > > > diff --git a/include/linux/sched/mm.h b/include/linux/sched/mm.h > > > index

Re: [PATCH] net: phy: fix auto-negotiation in case of 'down-shift'

2020-11-24 Thread Heiner Kallweit
Am 24.11.2020 um 16:17 schrieb Antonio Borneo: > On Tue, 2020-11-24 at 14:56 +, Russell King - ARM Linux admin wrote: >> On Tue, Nov 24, 2020 at 03:38:48PM +0100, Antonio Borneo wrote: >>> If the auto-negotiation fails to establish a gigabit link, the phy >>> can try to 'down-shift': it resets

[PATCH v1 5/6] powerpc/8xx: Use SPRN_SPRG_SCRATCH2 in DTLB miss exception

2020-11-24 Thread Christophe Leroy
Use SPRN_SPRG_SCRATCH2 in DTLB miss exception instead of DAR in order to be similar to ITLB miss exception. This also simplifies mpc8xx_pmu_del() Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_8xx.S | 9 - arch/powerpc/perf/8xx-pmu.c| 19 +++ 2 files

[PATCH v1 6/6] powerpc/ppc-opcode: Add PPC_RAW_MFSPR()

2020-11-24 Thread Christophe Leroy
Add PPC_RAW_MFSPR() to replace open coding done in 8xx-pmu.c Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc-opcode.h | 3 ++- arch/powerpc/perf/8xx-pmu.c | 5 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/include/asm/ppc-opcode.h

[PATCH v1 4/6] powerpc/8xx: Use SPRN_SPRG_SCRATCH2 in ITLB miss exception

2020-11-24 Thread Christophe Leroy
In order to re-enable MMU earlier, ensure ITLB miss exception cannot clobber SPRN_SPRG_SCRATCH0 and SPRN_SPRG_SCRATCH1. Do so by using SPRN_SPRG_SCRATCH2 and SPRN_M_TW instead, like the DTLB miss exception. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_8xx.S | 12 ++--

[PATCH v1 2/6] powerpc/8xx: Always pin kernel text TLB

2020-11-24 Thread Christophe Leroy
There is no big poing in not pinning kernel text anymore, as now we can keep pinned TLB even with things like DEBUG_PAGEALLOC. Remove CONFIG_PIN_TLB_TEXT, making it always right. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 3 +-- arch/powerpc/kernel/head_8xx.S

[PATCH v1 1/6] powerpc/8xx: DEBUG_PAGEALLOC doesn't require an ITLB miss exception handler

2020-11-24 Thread Christophe Leroy
Since commit e611939fc8ec ("powerpc/mm: Ensure change_page_attr() doesn't invalidate pinned TLBs"), pinned TLBs are not anymore invalidated by __kernel_map_pages() when CONFIG_DEBUG_PAGEALLOC is selected. Remove the dependency on CONFIG_DEBUG_PAGEALLOC. Signed-off-by: Christophe Leroy ---

[PATCH v1 3/6] powerpc/8xx: Simplify INVALIDATE_ADJACENT_PAGES_CPU15

2020-11-24 Thread Christophe Leroy
We now have r11 available as a scratch register so INVALIDATE_ADJACENT_PAGES_CPU15() can be simplified. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_8xx.S | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/kernel/head_8xx.S

Re: [PATCH][next] mwifiex: Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
On Tue, Nov 24, 2020 at 03:06:14PM +, Kalle Valo wrote: > "Gustavo A. R. Silva" wrote: > > > In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple > > warnings by explicitly adding multiple break statements instead of > > letting the code fall through to the next case. > >

Re: [PATCH 2/2] arm64: dts: qcom: sm8150-mtp: Enable WiFi node

2020-11-24 Thread Vinod Koul
On 20-11-20, 21:58, Bjorn Andersson wrote: > From: Jonathan Marek > > Enable the WiFi node and specify its supply regulators. Reviewed-by: Vinod Koul -- ~Vinod

Re: [PATCH 1/2] arm64: dts: qcom: sm8150: Add wifi node

2020-11-24 Thread Vinod Koul
On 20-11-20, 21:58, Bjorn Andersson wrote: > From: Jonathan Marek > > Add a node for the WCN3990 WiFi module. Reviewed-by: Vinod Koul -- ~Vinod

Re: [PATCH v1] spi: fix client driver breakages when using GPIO descriptors

2020-11-24 Thread Linus Walleij
On Wed, Nov 18, 2020 at 12:41 PM Mark Brown wrote: > What people think they were sold was the idea that they shouldn't have > to write driver code or upstream things, something with more AML like > capabilities (not realising that AML works partly because ACPI hugely > constrains system design).

Re: [PATCH v2 1/4] pwm: pca9685: Switch to atomic API

2020-11-24 Thread Clemens Gruber
On Mon, Nov 23, 2020 at 12:38:26PM -0500, Sven Van Asbroeck wrote: > Hi Clemens, some cool changes, thank you !! Constructive feedback below. > > On Mon, Nov 23, 2020 at 11:36 AM Clemens Gruber > wrote: > > > > Changes since v1: > > - Fixed a logic error > > - Impoved PM runtime handling and

Re: [PATCH] arm64: dts: qcom: sm8150-mtp: Specify remoteproc firmware

2020-11-24 Thread Vinod Koul
On 20-11-20, 21:56, Bjorn Andersson wrote: > Point the various remoteprocs of SM8150 MTP to a place with the platform > specific firmware. Reviewed-by: Vinod Koul -- ~Vinod

Re: [PATCH] net: phy: fix auto-negotiation in case of 'down-shift'

2020-11-24 Thread Antonio Borneo
On Tue, 2020-11-24 at 14:56 +, Russell King - ARM Linux admin wrote: > On Tue, Nov 24, 2020 at 03:38:48PM +0100, Antonio Borneo wrote: > > If the auto-negotiation fails to establish a gigabit link, the phy > > can try to 'down-shift': it resets the bits in MII_CTRL1000 to > > stop advertising

[PATCH net-next v4 0/4] remove compat_alloc_user_space()

2020-11-24 Thread Arnd Bergmann
From: Arnd Bergmann This is the fourth version of my series, now spanning four patches instead of two, with a new approach for handling struct ifreq compatibility after I realized that my earlier approach introduces additional problems. The idea here is to always push down the compat conversion

Re: [PATCH] net: phy: fix auto-negotiation in case of 'down-shift'

2020-11-24 Thread Russell King - ARM Linux admin
On Tue, Nov 24, 2020 at 04:03:40PM +0100, Heiner Kallweit wrote: > Am 24.11.2020 um 15:38 schrieb Antonio Borneo: > > If the auto-negotiation fails to establish a gigabit link, the phy > > can try to 'down-shift': it resets the bits in MII_CTRL1000 to > > stop advertising 1Gbps and retries the

[PATCH bpf-next v3 0/3] Implement bpf_ima_inode_hash

2020-11-24 Thread KP Singh
From: KP Singh # v2 -> v3 - Fixed an issue pointed out by Alexei, the helper should only be exposed to sleepable hooks. - Update the selftests to constrain the IMA policy udpate to a loopback filesystem specifically created for the test. Also, split this out from the LSM test. I dropped

[PATCH bpf-next v3 2/3] bpf: Add a BPF helper for getting the IMA hash of an inode

2020-11-24 Thread KP Singh
From: KP Singh Provide a wrapper function to get the IMA hash of an inode. This helper is useful in fingerprinting files (e.g executables on execution) and using these fingerprints in detections like an executable unlinking itself. Since the ima_inode_hash can sleep, it's only allowed for

[PATCH bpf-next v3 3/3] bpf: Add a selftest for bpf_ima_inode_hash

2020-11-24 Thread KP Singh
From: KP Singh The test does the following: - Mounts a loopback filesystem and appends the IMA policy to measure executions only on this file-system. Restricting the IMA policy to a particular filesystem prevents a system-wide IMA policy change. - Executes an executable copied to this

[PATCH bpf-next v3 1/3] ima: Implement ima_inode_hash

2020-11-24 Thread KP Singh
From: KP Singh This is in preparation to add a helper for BPF LSM programs to use IMA hashes when attached to LSM hooks. There are LSM hooks like inode_unlink which do not have a struct file * argument and cannot use the existing ima_file_hash API. An inode based API is, therefore, useful in

Re: cw1200: fix missing destroy_workqueue() on error in cw1200_init_common

2020-11-24 Thread Kalle Valo
Qinglang Miao wrote: > Add the missing destroy_workqueue() before return from > cw1200_init_common in the error handling case. > > Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN > chipsets") > Reported-by: Hulk Robot > Signed-off-by: Qinglang Miao Patch applied

Re: [PATCH -tip 00/32] Core scheduling (v9)

2020-11-24 Thread Joel Fernandes
On Tue, Nov 24, 2020 at 6:48 AM Vincent Guittot wrote: > > Hi Joel, > > On Wed, 18 Nov 2020 at 00:20, Joel Fernandes (Google) > wrote: > > > > Core-Scheduling > > === > > Enclosed is series v9 of core scheduling. > > v9 is rebased on tip/master (fe4adf6f92c4 ("Merge branch

Re: [PATCH] mwifiex: Remove duplicated REG_PORT definition

2020-11-24 Thread Kalle Valo
Jisheng Zhang wrote: > The REG_PORT is defined twice, so remove one of them. > > Signed-off-by: Jisheng Zhang Patch applied to wireless-drivers-next.git, thanks. 3c72d3843e22 mwifiex: Remove duplicated REG_PORT definition --

Re: [PATCH v2 1/4 resend] rtlwifi: rtl8188ee: avoid accessing the data mapped to streaming DMA

2020-11-24 Thread Kalle Valo
Jia-Ju Bai wrote: > In rtl88ee_tx_fill_cmddesc(), skb->data is mapped to streaming DMA on > line 677: > dma_addr_t mapping = dma_map_single(..., skb->data, ...); > > On line 680, skb->data is assigned to hdr after cast: > struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)(skb->data); > >

Re: [PATCH v2] cpuidle: arm: qcom: fix Kconfig problems

2020-11-24 Thread Bjorn Andersson
On Tue 24 Nov 00:39 CST 2020, Randy Dunlap wrote: > The Kconfig symbol ARM_QCOM_SPM_CPUIDLE wildly selects other > Kconfig symbols when it should not. > This causes kconfig warnings and subsequent build errors, > as listed below, so modify this symbol's Kconfig entry to > constrain and tame it. >

Re: [PATCH][next] mwifiex: Fix fall-through warnings for Clang

2020-11-24 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple > warnings by explicitly adding multiple break statements instead of > letting the code fall through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 > Signed-off-by:

RE: [EXTERNAL] Re: [PATCH] PCI: Mark AMD Raven iGPU ATS as broken

2020-11-24 Thread Deucher, Alexander
[AMD Public Use] > -Original Message- > From: Merger, Edgar [AUTOSOL/MAS/AUGS] > > Sent: Tuesday, November 24, 2020 2:29 AM > To: Huang, Ray ; Kuehling, Felix > > Cc: Will Deacon ; Deucher, Alexander > ; linux-kernel@vger.kernel.org; linux- > p...@vger.kernel.org;

Re: rsi: fix error return code in rsi_reset_card()

2020-11-24 Thread Kalle Valo
Zhang Changzhong wrote: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: 17ff2c794f39 ("rsi: reset device changes for 9116") > Reported-by: Hulk Robot > Signed-off-by: Zhang Changzhong Patch applied to

Re: [PATCH] pinctrl: at91-pio4: add support for fewer lines on last PIO bank

2020-11-24 Thread Linus Walleij
On Tue, Nov 24, 2020 at 10:03 AM Ludovic Desroches wrote: > On Tue, Nov 24, 2020 at 09:31:36AM +0100, Linus Walleij wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > On Fri, Nov 13, 2020 at 2:25 PM Eugen Hristev > > wrote: > > > >

[PATCH v1] media: ov8856: Fix Bayer format dependance on mode

2020-11-24 Thread Robert Foss
The Bayer GRBG10 mode used for earlier modes 3280x2460 and 1640x1232 isn't the mode output by the sensor for the 3264x2448 and 1632x1224 modes. Switch from MEDIA_BUS_FMT_SGRBG10_1X10 to MEDIA_BUS_FMT_SBGGR10_1X10 for 3264x2448 & 1632x1224 modes. Signed-off-by: Robert Foss --- This patch is

Re: [PATCH v2 1/4] sbitmap: optimise sbitmap_deferred_clear()

2020-11-24 Thread Pavel Begunkov
On 24/11/2020 14:11, John Garry wrote: > On 22/11/2020 15:35, Pavel Begunkov wrote: >> Because of spinlocks and atomics sbitmap_deferred_clear() have to reload >> >map[index] on each access even though the map address won't change. >> Pass in sbitmap_word instead of {sb, index}, so it's cached in

Re: [PATCH] brcmsmac: ampdu: Check BA window size before checking block ack

2020-11-24 Thread Kalle Valo
Dmitry Safonov wrote: > bindex can be out of BA window (64): > tid 0 seq 2983, start_seq 2915, bindex 68, index 39 > tid 0 seq 2984, start_seq 2915, bindex 69, index 40 > tid 0 seq 2985, start_seq 2915, bindex 70, index 41 > tid 0 seq 2986, start_seq 2915, bindex 71, index 42 > tid 0

Re: [PATCH] net: phy: fix auto-negotiation in case of 'down-shift'

2020-11-24 Thread Heiner Kallweit
Am 24.11.2020 um 15:38 schrieb Antonio Borneo: > If the auto-negotiation fails to establish a gigabit link, the phy > can try to 'down-shift': it resets the bits in MII_CTRL1000 to > stop advertising 1Gbps and retries the negotiation at 100Mbps. > I see that Russell answered already. My 2cts:

Re: [PATCH 2/2] ARM: dts: qcom: Add SDX55 Modem and MTP board support

2020-11-24 Thread Bjorn Andersson
On Tue 24 Nov 08:00 CST 2020, Manivannan Sadhasivam wrote: > Add basic devicetree support for SDX55 Modem and MTP board from Again, let's call is "SDX55 platform". > Qualcomm. The SDX55 modem features an ARM Cortex A7 CPU which forms the > Application Processor Sub System (APSS) along with

Re: [PATCH] rtlwifi: rtl8192de: remove the useless value assignment

2020-11-24 Thread Kalle Valo
xiakaixu1...@gmail.com wrote: > From: Kaixu Xia > > The variable u4tmp is overwritten by the following call and the assignment > is useless, so remove it. > > Reported-by: Tosk Robot > Signed-off-by: Kaixu Xia Patch applied to wireless-drivers-next.git, thanks. 0409d504aa6c rtlwifi:

Re: [PATCH 05/17] fs/btrfs: Convert to memzero_page()

2020-11-24 Thread David Sterba
On Mon, Nov 23, 2020 at 10:07:43PM -0800, ira.we...@intel.com wrote: > From: Ira Weiny > > Remove the kmap/memset()/kunmap pattern and use the new memzero_page() > call where possible. > > Cc: Chris Mason > Cc: Josef Bacik > Cc: David Sterba > Signed-off-by: Ira Weiny > --- >

Re: [PATCH net] qtnfmac: fix error return code in qtnf_pcie_probe()

2020-11-24 Thread Kalle Valo
Wang Hai wrote: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: b7da53cd6cd1 ("qtnfmac_pcie: use single PCIe driver for all platforms") > Reported-by: Hulk Robot > Signed-off-by: Wang Hai Patch applied to

Re: [PATCH] brcmfmac: fix error return code in brcmf_cfg80211_connect()

2020-11-24 Thread Kalle Valo
Zhang Changzhong wrote: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: 3b1e0a7bdfee ("brcmfmac: add support for SAE authentication offload") > Reported-by: Hulk Robot > Signed-off-by: Zhang Changzhong >

Re: Oops (probably) unmounting /oldroot/firmware/efi/efivars.

2020-11-24 Thread Ard Biesheuvel
On Tue, 24 Nov 2020 at 15:58, David Laight wrote: > > From: Ard Biesheuvel > > Sent: 24 November 2020 14:24 > > > > On Tue, 24 Nov 2020 at 15:22, David Laight wrote: > > > > > > I've just updated to the head of Linus's tree (5.10-rc5) and got the > > > following > > > 'splat' during shutdown. >

Re: linux-next: stall warnings and deadlock on Arm64 (was: [PATCH] kfence: Avoid stalling...)

2020-11-24 Thread Paul E. McKenney
On Tue, Nov 24, 2020 at 03:03:10PM +0100, Marco Elver wrote: > On Mon, Nov 23, 2020 at 07:32PM +, Mark Rutland wrote: > > On Fri, Nov 20, 2020 at 03:03:32PM +0100, Marco Elver wrote: > > > On Fri, Nov 20, 2020 at 10:30AM +, Mark Rutland wrote: > > > > On Thu, Nov 19, 2020 at 10:53:53PM

Re: [PATCH bpf-next 2/3] bpf: Add a BPF helper for getting the IMA hash of an inode

2020-11-24 Thread KP Singh
On Tue, Nov 24, 2020 at 12:04 PM KP Singh wrote: > > On Tue, Nov 24, 2020 at 5:02 AM Alexei Starovoitov > wrote: > > > > On Fri, Nov 20, 2020 at 01:17:07PM +, KP Singh wrote: > > > + > > > +static bool bpf_ima_inode_hash_allowed(const struct bpf_prog *prog) > > > +{ > > > + return

Re: [PATCH 2/5] riscv: Add QUEUED_SPINLOCKS & QUEUED_RWLOCKS supported

2020-11-24 Thread Arnd Bergmann
On Tue, Nov 24, 2020 at 3:39 PM Peter Zijlstra wrote: > On Tue, Nov 24, 2020 at 01:43:54PM +, guo...@kernel.org wrote: > > diff --git a/arch/riscv/include/asm/Kbuild b/arch/riscv/include/asm/Kbuild > > + if (align) {\ > > +

Re: cw1200: replace a set of atomic_add()

2020-11-24 Thread Kalle Valo
Yejune Deng wrote: > a set of atomic_inc() looks more readable > > Signed-off-by: Yejune Deng Patch applied to wireless-drivers-next.git, thanks. 07f995ca1951 cw1200: replace a set of atomic_add() --

Re: [PATCH V3] PM / EM: Micro optimization in em_cpu_energy

2020-11-24 Thread Dietmar Eggemann
On 23/11/2020 11:35, Pavankumar Kondeti wrote: > When the sum of the utilization of CPUs in a performance domain is > zero, return the energy as 0 without doing any computations. > > Signed-off-by: Pavankumar Kondeti > --- > V3: %s/power/performance as corrected by Quentin > V2: Fixed the

RE: Oops (probably) unmounting /oldroot/firmware/efi/efivars.

2020-11-24 Thread David Laight
From: Ard Biesheuvel > Sent: 24 November 2020 14:24 > > On Tue, 24 Nov 2020 at 15:22, David Laight wrote: > > > > I've just updated to the head of Linus's tree (5.10-rc5) and got the > > following > > 'splat' during shutdown. > > > > Userspace is Ubuntu 20.04. > > > > rc4 rebooted fine. > > > >

Re: [PATCH 1/2] dt-bindings: arm: qcom: Document SDX55 Modem and boards

2020-11-24 Thread Bjorn Andersson
On Tue 24 Nov 08:00 CST 2020, Manivannan Sadhasivam wrote: > From: Vinod Koul > > Document the SDX55 Modem binding and also the boards using it. It's not really the "SDX55 Modem", it's the "SDX55 platform". That way things become less confusing when we actually add the modem on SDX55 later. >

Re: [PATCH] ACPI: NFIT: Fix input validation of bus-family

2020-11-24 Thread Jeff Moyer
Dan Williams writes: > Dan reports that smatch thinks userspace can craft an out-of-bound bus > family number. However, nd_cmd_clear_to_send() blocks all non-zero > values of bus-family since only the kernel can initiate these commands. > However, in the speculation path, family is a user

Re: [PATCH] net: phy: fix auto-negotiation in case of 'down-shift'

2020-11-24 Thread Russell King - ARM Linux admin
On Tue, Nov 24, 2020 at 03:38:48PM +0100, Antonio Borneo wrote: > If the auto-negotiation fails to establish a gigabit link, the phy > can try to 'down-shift': it resets the bits in MII_CTRL1000 to > stop advertising 1Gbps and retries the negotiation at 100Mbps. > > From commit 5502b218e001

Re: [PATCH 2/2] hwspinlock: add sunxi hardware spinlock support

2020-11-24 Thread Bjorn Andersson
On Mon 23 Nov 12:17 CST 2020, Wilken Gottwalt wrote: > On Sat, 21 Nov 2020 23:19:00 -0600 > Bjorn Andersson wrote: > > > +static int hwlocks_inuse_show(struct seq_file *seqf, void *unused) > > > +{ > > > + struct sunxi_hwspinlock_data *priv = seqf->private; > > > + int inuse; > > > + > > > + /*

Re: [PATCH v2 09/18] arm: dts: owl-s500: Add MMC support

2020-11-24 Thread Cristian Ciocaltea
On Tue, Nov 24, 2020 at 03:25:15PM +0100, Ulf Hansson wrote: > On Fri, 20 Nov 2020 at 00:56, Cristian Ciocaltea > wrote: > > > > Add MMC controller nodes for Actions Semi S500 SoC, in order to > > facilitate access to SD/EMMC/SDIO cards. > > > > Signed-off-by: Cristian Ciocaltea > >

Re: [linux-safety] [PATCH v2 2/2] staging: vt6655: Use macro in rxtx.c

2020-11-24 Thread Lukas Bulwahn
On Tue, Nov 24, 2020 at 11:49 AM Milan Lakhani wrote: > > Use macro for repeated function to get the data duration and timestamp, > correcting line length and alignment warnings in rxtx.c. Reported by > checkpatch. > > Signed-off-by: Milan Lakhani Patch looks good. You need to CC:

[PATCH] arm64: dts: meson: add rtc aliases to meson-khadas-vim3.dtsi

2020-11-24 Thread Christian Hewitt
Tweak the node name to make it aliasable, then add aliases for the on-board RTC chip and meson-vrtc timer so they probe as rtc0 and rtc1 respectively. before: VIM3:~ # dmesg | grep rtc [3.622530] meson-vrtc ff8000a8.rtc: registered as rtc0 [3.622574] meson-vrtc ff8000a8.rtc: setting

Re: [PATCH] mmc: sdhci: Update firmware interface API

2020-11-24 Thread Adrian Hunter
On 24/11/20 4:25 pm, Ulf Hansson wrote: > On Sat, 21 Nov 2020 at 00:39, Jeremy Linton wrote: >> >> The device_* calls were added a few years ago to abstract >> DT/ACPI/fwnode firmware interfaces. Lets convert the two >> sdhci caps fields to use the generic calls rather than the OF >> specific

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
On Mon, Nov 23, 2020 at 08:38:46PM +, Mark Brown wrote: > On Fri, 20 Nov 2020 12:21:39 -0600, Gustavo A. R. Silva wrote: > > This series aims to fix almost all remaining fall-through warnings in > > order to enable -Wimplicit-fallthrough for Clang. > > > > In preparation to enable

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
On Mon, Nov 23, 2020 at 04:03:45PM -0400, Jason Gunthorpe wrote: > On Fri, Nov 20, 2020 at 12:21:39PM -0600, Gustavo A. R. Silva wrote: > > > IB/hfi1: Fix fall-through warnings for Clang > > IB/mlx4: Fix fall-through warnings for Clang > > IB/qedr: Fix fall-through warnings for Clang > >

Re: [PATCH 6/6] mm: proc: Avoid fullmm flush for young/dirty bit toggling

2020-11-24 Thread Peter Zijlstra
On Fri, Nov 20, 2020 at 01:40:05PM -0700, Yu Zhao wrote: > It seems to me ARM's interpretation of tlb->fullmm is a special case, > not the other way around. I don't think ARM is special here, IIRC there were more architectures that did that.

Re: [PATCH v2 2/4] sbitmap: remove swap_lock

2020-11-24 Thread Pavel Begunkov
On 24/11/2020 14:22, John Garry wrote: > On 22/11/2020 15:35, Pavel Begunkov wrote: >> map->swap_lock protects map->cleared from concurrent modification, >> however sbitmap_deferred_clear() is already atomically drains it, so >> it's guaranteed to not loose bits on concurrent >>

Re: [PATCH] [v7] wireless: Initial driver submission for pureLiFi STA devices

2020-11-24 Thread Kalle Valo
Srinivasan Raju wrote: > This introduces the pureLiFi LiFi driver for LiFi-X, LiFi-XC > and LiFi-XL USB devices. > > This driver implementation has been based on the zd1211rw driver. > > Driver is based on 802.11 softMAC Architecture and uses > native 802.11 for configuration and management. >

Re: [PATCH 141/141] Input: libps2 - Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
On Sun, Nov 22, 2020 at 10:16:05PM -0800, Dmitry Torokhov wrote: > On Fri, Nov 20, 2020 at 12:41:12PM -0600, Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a > > warning by replacing a /* Fall through */ comment with the new > > pseudo-keyword macro

Re: [PATCH 134/141] video: fbdev: lxfb_ops: Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
Hi Sam, On Sun, Nov 22, 2020 at 11:05:40PM +0100, Sam Ravnborg wrote: > Hi Gustavo, > On Fri, Nov 20, 2020 at 12:40:32PM -0600, Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > > by explicitly adding a break statement instead of letting the

RE: Oops (probably) unmounting /oldroot/firmware/efi/efivars.

2020-11-24 Thread David Laight
From: Ard Biesheuvel > Sent: 24 November 2020 14:24 > > On Tue, 24 Nov 2020 at 15:22, David Laight wrote: > > > > I've just updated to the head of Linus's tree (5.10-rc5) and got the > > following > > 'splat' during shutdown. > > > > Userspace is Ubuntu 20.04. Anyone from ubuntu know how to

[tip: irq/core] sh/irq: Add missing closing parentheses in arch_show_interrupts()

2020-11-24 Thread tip-bot2 for Geert Uytterhoeven
The following commit has been merged into the irq/core branch of tip: Commit-ID: 15b8d9372f27c47e17c91f6f16d359314cf11404 Gitweb: https://git.kernel.org/tip/15b8d9372f27c47e17c91f6f16d359314cf11404 Author:Geert Uytterhoeven AuthorDate:Tue, 24 Nov 2020 14:06:56 +01:00

Re: [EXT] Re: [PATCH v1 1/2] mmc: Support kmsg dumper based on pstore/blk

2020-11-24 Thread Ulf Hansson
+ Christoph On Tue, 24 Nov 2020 at 05:09, Bhaskara Budiredla wrote: > > > > >-Original Message- > >From: Ulf Hansson > >Sent: Monday, November 23, 2020 5:49 PM > >To: Bhaskara Budiredla > >Cc: Kees Cook ; Colin Cross > >; Tony Luck ; Sunil Kovvuri > >Goutham ;

[PATCH] net: phy: fix auto-negotiation in case of 'down-shift'

2020-11-24 Thread Antonio Borneo
If the auto-negotiation fails to establish a gigabit link, the phy can try to 'down-shift': it resets the bits in MII_CTRL1000 to stop advertising 1Gbps and retries the negotiation at 100Mbps. >From commit 5502b218e001 ("net: phy: use phy_resolve_aneg_linkmode in genphy_read_status") the content

Re: [PATCH 2/5] riscv: Add QUEUED_SPINLOCKS & QUEUED_RWLOCKS supported

2020-11-24 Thread Peter Zijlstra
On Tue, Nov 24, 2020 at 01:43:54PM +, guo...@kernel.org wrote: > diff --git a/arch/riscv/include/asm/Kbuild b/arch/riscv/include/asm/Kbuild > index 59dd7be..6f5f438 100644 > --- a/arch/riscv/include/asm/Kbuild > +++ b/arch/riscv/include/asm/Kbuild > @@ -6,3 +6,6 @@ generic-y += kvm_para.h >

Re: [PATCH 131/141] tpm: Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
On Tue, Nov 24, 2020 at 12:53:22AM +0200, Jarkko Sakkinen wrote: > On Tue, Nov 24, 2020 at 12:52:31AM +0200, Jarkko Sakkinen wrote: > > On Fri, Nov 20, 2020 at 12:40:14PM -0600, Gustavo A. R. Silva wrote: > > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > > > by

Re: [PATCH v2 2/2] uuid: Make guid_t completely internal type to the kernel

2020-11-24 Thread Christoph Hellwig
On Tue, Nov 24, 2020 at 04:07:45PM +0200, Andy Shevchenko wrote: > > > > IMHO we should kill this header entirely and move the definition to > > under a new name so that no one picks up the > > definition by accident. > > I would like to do that in a separate series. Here I don't change the

Re: [PATCH 126/141] slimbus: messaging: Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
On Tue, Nov 24, 2020 at 10:48:04AM +, Srinivas Kandagatla wrote: > > > On 20/11/2020 18:39, Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > > by explicitly adding a break statement instead of letting the code fall > > through to the

Re: INFO: task can't die in shrink_inactive_list (2)

2020-11-24 Thread Alex Shi
在 2020/11/24 下午8:00, Alex Shi 写道: >>> syzbot found the following issue on: >>> >>> HEAD commit:03430750 Add linux-next specific files for 20201116 >>> git tree: linux-next >>> console output: https://syzkaller.appspot.com/x/log.txt?x=13f80e5e50 >>> kernel config:

Re: [PATCH 108/141] netfilter: ipt_REJECT: Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
On Fri, Nov 20, 2020 at 11:49:05PM +0100, Florian Westphal wrote: > Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > > by explicitly adding a break statement instead of letting the code fall > > through to the next case. > > Acked-by:

Re: [PATCH v2 1/3] Revert "perf session: Fix decompression of PERF_RECORD_COMPRESSED records"

2020-11-24 Thread Jiri Olsa
On Tue, Nov 24, 2020 at 11:29:15AM +0100, Petr Malat wrote: > Both mmapped and compressed events can be split by the buffer boundary, > it doesn't make sense to handle them differently. hi, I'm going to need more than this, if there's a problem with current code please share more details, what's

Re: [PATCH 098/141] mmc: sdhci-of-arasan: Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
On Tue, Nov 24, 2020 at 03:25:32PM +0100, Ulf Hansson wrote: > On Fri, 20 Nov 2020 at 19:37, Gustavo A. R. Silva > wrote: > > > > In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple > > warnings by explicitly adding multiple break statements instead of > > letting the code

Re: [PATCH 2/3] mm: Extract might_alloc() debug check

2020-11-24 Thread Daniel Vetter
On Fri, Nov 20, 2020 at 02:07:19PM -0400, Jason Gunthorpe wrote: > On Fri, Nov 20, 2020 at 10:54:43AM +0100, Daniel Vetter wrote: > > diff --git a/include/linux/sched/mm.h b/include/linux/sched/mm.h > > index d5ece7a9a403..f94405d43fd1 100644 > > --- a/include/linux/sched/mm.h > > +++

Re: [PATCH 086/141] hwmon: (corsair-cpro) Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
On Sat, Nov 21, 2020 at 10:50:10AM -0800, Guenter Roeck wrote: > On Fri, Nov 20, 2020 at 12:36:04PM -0600, Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > > by explicitly adding a break statement instead of letting the code fall > > through

Re: [PATCH 084/141] drm/via: Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
On Sun, Nov 22, 2020 at 11:03:58PM +0100, Sam Ravnborg wrote: > On Fri, Nov 20, 2020 at 12:35:54PM -0600, Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > > by explicitly adding a break statement instead of letting the code fall > > through

Re: [PATCH 6/6] mm: proc: Avoid fullmm flush for young/dirty bit toggling

2020-11-24 Thread Will Deacon
On Mon, Nov 23, 2020 at 06:13:34PM -0700, Yu Zhao wrote: > On Mon, Nov 23, 2020 at 09:17:51PM +, Will Deacon wrote: > > On Mon, Nov 23, 2020 at 01:04:03PM -0700, Yu Zhao wrote: > > > On Mon, Nov 23, 2020 at 06:35:55PM +, Will Deacon wrote: > > > > On Fri, Nov 20, 2020 at 01:40:05PM -0700,

[ANNOUNCE] v5.10-rc5-rt10

2020-11-24 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v5.10-rc5-rt10 patch set. Changes since v5.10-rc5-rt9: - A patch from upstream addressing migrate disable related issue reported by Oleksandr Natalenko. Patch by Peter Zijlstra. - A patch from upstream addressing migrate disable related issue

Re: [PATCH v7 3/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

2020-11-24 Thread Lukasz Stelmach
It was <2020-11-24 wto 13:17>, when Krzysztof Kozlowski wrote: > On Tue, Nov 24, 2020 at 01:03:30PM +0100, Łukasz Stelmach wrote: >> ASIX AX88796[1] is a versatile ethernet adapter chip, that can be >> connected to a CPU with a 8/16-bit bus or with an SPI. This driver >> supports SPI connection.

<    4   5   6   7   8   9   10   11   12   13   >