Re: [PATCH v2] rtl8xxxu: remove unused assignment value

2021-02-08 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > at first, ret was assigned to zero, but later assigned to > a funciton,so the assignment to zero is no use, which can > simple be removed instead. > > Signed-off-by: wengjianfeng Patch applied to wireless-drivers-next.git, thanks. 199276b9bcef

Re: [PATCH] mwifiex: Report connected BSS with cfg80211_connect_bss()

2021-02-08 Thread Kalle Valo
Yen-lin Lai wrote: > When a network is moved or reconfigured on the different channel, there > can be multiple BSSes with the same BSSID and SSID in scan result > before the old one expires. Then, it can cause cfg80211_connect_result > to map current_bss to a bss with the wrong channel. > > Let

[PATCH V2 2/4] Squashfs: add more sanity checks in id lookup

2021-02-08 Thread Phillip Lougher
Sysbot has reported a number of "slab-out-of-bounds reads" and "use-after-free read" errors which has been identified as being caused by a corrupted index value read from the inode. This could be because the metadata block is uncompressed, or because the "compression" bit has been corrupted

Re: [PATCH 11/12] platform-msi: Add platform check for subdevice irq domain

2021-02-08 Thread Leon Romanovsky
On Wed, Feb 03, 2021 at 12:56:44PM -0800, Megha Dey wrote: > From: Lu Baolu > > The pci_subdevice_msi_create_irq_domain() should fail if the underlying > platform is not able to support IMS (Interrupt Message Storage). Otherwise, > the isolation of interrupt is not guaranteed. > > For x86, IMS is

Re: [PATCH v2 1/2] mei: bus: simplify mei_cl_device_remove()

2021-02-08 Thread Greg Kroah-Hartman
On Mon, Feb 08, 2021 at 08:37:04AM +0100, Uwe Kleine-König wrote: > The driver core only calls a bus' remove function when there is actually > a driver and a device. So drop the needless check and assign cldrv earlier. > > (Side note: The check for cldev being non-NULL is broken anyhow, because >

Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin

2021-02-08 Thread David Hildenbrand
On 08.02.21 03:27, Song Bao Hua (Barry Song) wrote: -Original Message- From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On Behalf Of Matthew Wilcox Sent: Monday, February 8, 2021 2:31 PM To: Song Bao Hua (Barry Song) Cc: Wangzhou (B) ; linux-kernel@vger.kernel.org;

[PATCH v10 net-next 04/15] net: mvpp2: always compare hw-version vs MVPP21

2021-02-08 Thread stefanc
From: Stefan Chulski Currently we have PP2v1 and PP2v2 hw-versions, with some different handlers depending upon condition hw_version = MVPP21/MVPP22. In a future there will be also PP2v3. Let's use now the generic "if equal/notEqual MVPP21" for all cases instead of "if MVPP22". This patch does

[PATCH v10 net-next 06/15] net: mvpp2: increase BM pool and RXQ size

2021-02-08 Thread stefanc
From: Stefan Chulski BM pool and RXQ size increased to support Firmware Flow Control. Minimum depletion thresholds to support FC are 1024 buffers. BM pool size increased to 2048 to have some 1024 buffers space between depletion thresholds and BM pool size. Jumbo frames require a 9888B buffer,

Re: [PATCH v10 net-next 05/15] net: mvpp2: add PPv23 version definition

2021-02-08 Thread Marcin Wojtas
Hi, pon., 8 lut 2021 o 09:33 napisał(a): > > From: Stefan Chulski > > This patch add PPv23 version definition. > PPv23 is new packet processor in CP115. > Everything that supported by PPv22, also supported by PPv23. > No functional changes in this stage. > > Signed-off-by: Stefan Chulski > ---

Re: linux-next: build warning after merge of the v4l-dvb tree

2021-02-08 Thread Mauro Carvalho Chehab
Em Mon, 8 Feb 2021 09:33:14 +0100 Geert Uytterhoeven escreveu: > On Mon, Feb 8, 2021 at 7:35 AM Mauro Carvalho Chehab > wrote: > > Em Mon, 8 Feb 2021 11:32:08 +1100 > > Stephen Rothwell escreveu: > > > > > After merging the v4l-dvb tree, today's linux-next build (x86_64 > > > allmodconfig)

Re: [External] Re: [PATCH v2] printk: fix deadlock when kernel panic

2021-02-08 Thread Muchun Song
On Mon, Feb 8, 2021 at 2:38 PM Sergey Senozhatsky wrote: > > On (21/02/06 13:41), Muchun Song wrote: > > We found a deadlock bug on our server when the kernel panic. It can be > > described in the following diagram. > > > > CPU0: CPU1: > > panic

[PATCH v17 04/10] set_memory: allow set_direct_map_*_noflush() for multiple pages

2021-02-08 Thread Mike Rapoport
From: Mike Rapoport The underlying implementations of set_direct_map_invalid_noflush() and set_direct_map_default_noflush() allow updating multiple contiguous pages at once. Add numpages parameter to set_direct_map_*_noflush() to expose this ability with these APIs. Signed-off-by: Mike

[PATCH v17 02/10] mmap: make mlock_future_check() global

2021-02-08 Thread Mike Rapoport
From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport Cc: Alexander Viro Cc: Andy Lutomirski Cc: Arnd Bergmann Cc: Borislav Petkov Cc: Catalin Marinas Cc: Christopher Lameter Cc: Dan Williams Cc: Dave Hansen Cc: David Hildenbrand

[PATCH v17 06/10] arm64: kfence: fix header inclusion

2021-02-08 Thread Mike Rapoport
From: Arnd Bergmann Randconfig builds started warning about a missing function declaration after set_memory_valid() is moved to a new file: In file included from mm/kfence/core.c:26: arch/arm64/include/asm/kfence.h:17:2: error: implicit declaration of function 'set_memory_valid'

[PATCH v15 5/8] mm: hugetlb: add a kernel parameter hugetlb_free_vmemmap

2021-02-08 Thread Muchun Song
Add a kernel parameter hugetlb_free_vmemmap to enable the feature of freeing unused vmemmap pages associated with each hugetlb page on boot. We disables PMD mapping of vmemmap pages for x86-64 arch when this feature is enabled. Because vmemmap_remap_free() depends on vmemmap being base page

Re: [PATCH] Input: elantech - add LEN2146 to SMBus blacklist for ThinkPad L13 Gen2

2021-02-08 Thread Nikolai Kostrigin
Hi, Benjamin! 08.02.2021 11:06, Benjamin Tissoires пишет: > Hi Nikolai, > > On Mon, Feb 8, 2021 at 9:01 AM Nikolai Kostrigin wrote: >> ThinkPad L13 Gen2 has both touchpad and trackpoint. >> PNP: LEN2146 PNP0f13 >> With the default protocol (elantech-smbus) trackpoint is not operating, >> while

Re: [PATCH v5 0/4] perf vendor events: Support PMU events for A64FX

2021-02-08 Thread John Garry
On 08/02/2021 01:53, nakamur'd a.s...@fujitsu.com wrote: Hi, John Apart from that, I think that we're a bit uncertain about patch 3/4 What are your concerns? I think it's okay for perf to read a new event code with a number at the beginning. The impact of this fix is on {name} and later

[PATCH v5 3/7] gpio: ep93xx: Fix wrong irq numbers in port F

2021-02-08 Thread Nikita Shubin
Port F IRQ's should be statically mapped to EP93XX_GPIO_F_IRQ_BASE. So we need to specify girq->first otherwise: "If device tree is used, then first_irq will be 0 and IRQ's get mapped dynamically on the fly" And that's not the thing we want. Reviewed-by: Linus Walleij Acked-by: Alexander

[PATCH v5 2/7] gpio: ep93xx: Fix single irqchip with multi gpiochips

2021-02-08 Thread Nikita Shubin
Fixes the following warnings which results in interrupts disabled on port B/F: gpio gpiochip1: (B): detected irqchip that is shared with multiple gpiochips: please fix the driver. gpio gpiochip5: (F): detected irqchip that is shared with multiple gpiochips: please fix the driver. - added

[PATCH v5 6/7] gpio: ep93xx: refactor ep93xx_gpio_add_bank

2021-02-08 Thread Nikita Shubin
- replace plain numbers with girq->num_parents in devm_kcalloc - replace plain numbers with girq->num_parents for port F - refactor i - 1 to i + 1 to make loop more readable - combine getting IRQ's loop and setting handler's into single loop Reviewed-by: Linus Walleij Acked-by: Alexander

[PATCH v8 1/9] crypto: hisilicon/hpre - add version adapt to new algorithms

2021-02-08 Thread Meng Yu
A new generation of accelerator Kunpeng930 has appeared, and the corresponding driver needs to be updated to support some new algorithms of Kunpeng930. To be compatible with Kunpeng920, we add parameter 'struct hisi_qm *qm' to sec_algs_(un)register to identify the chip's version. Signed-off-by:

Re: [PATCH 0/7] xen/events: bug fixes and some diagnostic aids

2021-02-08 Thread Jürgen Groß
On 08.02.21 10:11, Julien Grall wrote: Hi Juergen, On 07/02/2021 12:58, Jürgen Groß wrote: On 06.02.21 19:46, Julien Grall wrote: Hi Juergen, On 06/02/2021 10:49, Juergen Gross wrote: The first three patches are fixes for XSA-332. The avoid WARN splats and a performance issue with

RE: Linux 4.4.256

2021-02-08 Thread David Laight
From: David Laight > Sent: 08 February 2021 09:10 > > From: Willy Tarreau > > Sent: 06 February 2021 13:23 > > > > On Sat, Feb 06, 2021 at 02:11:13PM +0100, Willy Tarreau wrote: > > > Something like this looks more robust to me, it will use SUBLEVEL for > > > values 0 to 255 and 255 for any

Re: [PATCH 6/7] xen/evtch: use smp barriers for user event ring

2021-02-08 Thread Jan Beulich
On 06.02.2021 11:49, Juergen Gross wrote: > The ring buffer for user events is used in the local system only, so > smp barriers are fine for ensuring consistency. > > Reported-by: Andrew Cooper > Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich Albeit I think "local system" is at least

Re: [PATCH 6/7] xen/evtch: use smp barriers for user event ring

2021-02-08 Thread Andrew Cooper
On 06/02/2021 10:49, Juergen Gross wrote: > The ring buffer for user events is used in the local system only, so > smp barriers are fine for ensuring consistency. > > Reported-by: Andrew Cooper > Signed-off-by: Juergen Gross These need to be virt_* to not break in UP builds (on non-x86).

[PATCH v8 6/9] crypto: add new ecc curve and expose them

2021-02-08 Thread Meng Yu
1. Add ecc curves(P224, P384, P521) for ECDH; 2. Reorder ECC 'Curves ID' in 'include/crypto/ecdh.h'; 3. Move 'ecc_get_curve' to 'include/crypto/ecc_curve.h', so everyone in kernel tree can easily get ecc curve params; Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- crypto/ecc.c

Re: [RFC][PATCH 2/2] dma-buf: heaps: Fix the name used when exporting dmabufs to be the actual heap name

2021-02-08 Thread Daniel Vetter
On Sat, Feb 06, 2021 at 05:47:48AM +, John Stultz wrote: > By default dma_buf_export() sets the exporter name to be > KBUILD_MODNAME. Unfortunately this may not be identical to the > string used as the heap name (ie: "system" vs "system_heap"). > > This can cause some minor confusion with

J X (Fair Pay OS Concluded)

2021-02-08 Thread Ywe Cærlyn
I recently found that the arabic right to left 'Allah' https://saturn-medias.com/ardeity.png - can be symbolized with a J. Updated project name to J X, a very elegant solution to name. Hail La J, as the latin term then becomes (and probably is what the biblical hallelujah is about aswell).

Re: [RFC PATCH 2/2] KVM: selftests: Add a test for kvm page table code

2021-02-08 Thread Vitaly Kuznetsov
Yanan Wang writes: > This test serves as a performance tester and a bug reproducer for > kvm page table code (GPA->HPA mappings), so it gives guidance for > people trying to make some improvement for kvm. > > The function guest_code() is designed to cover conditions where a single vcpu > or

Re: [PATCH 6/7] xen/evtch: use smp barriers for user event ring

2021-02-08 Thread Andrew Cooper
On 08/02/2021 09:50, Jan Beulich wrote: > On 08.02.2021 10:44, Andrew Cooper wrote: >> On 06/02/2021 10:49, Juergen Gross wrote: >>> The ring buffer for user events is used in the local system only, so >>> smp barriers are fine for ensuring consistency. >>> >>> Reported-by: Andrew Cooper >>>

Re: [PATCH 0/7] xen/events: bug fixes and some diagnostic aids

2021-02-08 Thread Jürgen Groß
On 08.02.21 10:54, Julien Grall wrote: On 08/02/2021 09:41, Jürgen Groß wrote: On 08.02.21 10:11, Julien Grall wrote: Hi Juergen, On 07/02/2021 12:58, Jürgen Groß wrote: On 06.02.21 19:46, Julien Grall wrote: Hi Juergen, On 06/02/2021 10:49, Juergen Gross wrote: The first three patches

[PATCH] selftests/ipc: remove unneeded semicolon

2021-02-08 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/testing/selftests/ipc/msgque.c:72:3-4: Unneeded semicolon ./tools/testing/selftests/ipc/msgque.c:183:2-3: Unneeded semicolon ./tools/testing/selftests/ipc/msgque.c:191:2-3: Unneeded semicolon Signed-off-by: Yang Li ---

Re: [PATCH 05/18] tty: serial: samsung_tty: add support for Apple UARTs

2021-02-08 Thread Krzysztof Kozlowski
On Fri, Feb 05, 2021 at 05:39:38AM +0900, Hector Martin wrote: > Apple SoCs are a distant descendant of Samsung designs and use yet > another variant of their UART style, with different interrupt handling. > > In particular, this variant has the following differences with existing > ones: > > *

Re: [PATCH v17 08/10] PM: hibernate: disable when there are active secretmem users

2021-02-08 Thread David Hildenbrand
On 08.02.21 11:51, Michal Hocko wrote: On Mon 08-02-21 11:32:11, David Hildenbrand wrote: On 08.02.21 11:18, Michal Hocko wrote: On Mon 08-02-21 10:49:18, Mike Rapoport wrote: From: Mike Rapoport It is unsafe to allow saving of secretmem areas to the hibernation snapshot as they would be

Re: [PATCH v2] brcmfmac: add support for CQM RSSI notifications

2021-02-08 Thread Kalle Valo
Alvin Šipraga wrote: > Add support for CQM RSSI measurement reporting and advertise the > NL80211_EXT_FEATURE_CQM_RSSI_LIST feature. This enables a userspace > supplicant such as iwd to be notified of changes in the RSSI for roaming > and signal monitoring purposes. > > Signed-off-by: Alvin

Re: [PATCH v17 08/10] PM: hibernate: disable when there are active secretmem users

2021-02-08 Thread Michal Hocko
On Mon 08-02-21 11:53:58, David Hildenbrand wrote: > On 08.02.21 11:51, Michal Hocko wrote: > > On Mon 08-02-21 11:32:11, David Hildenbrand wrote: > > > On 08.02.21 11:18, Michal Hocko wrote: > > > > On Mon 08-02-21 10:49:18, Mike Rapoport wrote: > > > > > From: Mike Rapoport > > > > > > > > > >

[PATCH v1 2/2] genirq/msi: add an error print when __irq_domain_alloc_irqs() failed

2021-02-08 Thread Luo Jiaxing
During debug, we found that the return value of __irq_domain_alloc_irqs() will be overwritten by the return value of subsequent function. As a result, the locating clue will be lost. To improve debug efficiency, an error message is added to print the return value of __irq_domain_alloc_irqs().

[PATCH v1 1/2] irqchip/gic-v3-its: don't set bitmap for LPI which user didn't allocate

2021-02-08 Thread Luo Jiaxing
The driver sets the LPI bitmap of device based on get_count_order(nvecs). This means that when the number of LPI interrupts does not meet the power of two, redundant bits are set in the LPI bitmap. However, when free interrupt, these redundant bits is not cleared. As a result, device will fails to

[PATCH v1 0/2] irqchip/gic-v3-its: don't set bitmap for LPI which user didn't allocate

2021-02-08 Thread Luo Jiaxing
When the number of online CPUs is less than 16, we found that it will fail to allocate 32 MSI interrupts (including 16 affinity interrupts) after the hisi_sas module is unloaded and then reloaded. After analysis, it is found that a bug exists when the ITS releases interrupt resources, and this

[PATCH v3 01/11] pagemap: Introduce ->memory_failure()

2021-02-08 Thread Shiyang Ruan
When memory-failure occurs, we call this function which is implemented by each kind of devices. For the fsdax case, pmem device driver implements it. Pmem device driver will find out the block device where the error page locates in, and try to get the filesystem on this block device. And

Re: brcmsmac: fix alignment constraints

2021-02-08 Thread Kalle Valo
Arnd Bergmann wrote: > From: Arnd Bergmann > > sturct d11txh contains a ieee80211_rts structure, which is required to > have at least two byte alignment, and this conflicts with the __packed > attribute: > > drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h:786:1: warning: > alignment 1

Re: [PATCH] wl3501: fix alignment constraints

2021-02-08 Thread Kalle Valo
Arnd Bergmann wrote: > From: Arnd Bergmann > > struct wl3501_80211_tx_hdr contains a ieee80211_hdr structure, which is > required to have at least two byte alignment, and this conflicts with > the __packed attribute: > > wireless/wl3501.h:553:1: warning: alignment 1 of 'struct

[RFC PATCH 2/4] KVM: arm64: Add an independent API for coalescing tables

2021-02-08 Thread Yanan Wang
Process of coalescing page mappings back to a block mapping is different from normal map path, such as TLB invalidation and CMOs, so here add an independent API for this case. Signed-off-by: Yanan Wang --- arch/arm64/kvm/hyp/pgtable.c | 18 ++ 1 file changed, 18 insertions(+)

[RFC PATCH 0/4] KVM: arm64: Improve efficiency of stage2 page table

2021-02-08 Thread Yanan Wang
Hi, This series makes some efficiency improvement of stage2 page table code, and there are some test results to present the performance changes, which were tested by a kvm selftest [1] that I have post: [1] https://lore.kernel.org/lkml/20210208090841.333724-1-wangyana...@huawei.com/ About

Re: [PATCH v2 2/2] of: property: Add fw_devlink support for interrupts

2021-02-08 Thread Marek Szyprowski
Hi Saravana, On 06.02.2021 05:32, Saravana Kannan wrote: > On Fri, Feb 5, 2021 at 9:55 AM Saravana Kannan wrote: >> On Fri, Feb 5, 2021 at 9:52 AM Geert Uytterhoeven >> wrote: >>> On Fri, Feb 5, 2021 at 6:20 PM Saravana Kannan wrote: On Fri, Feb 5, 2021 at 2:20 AM Geert Uytterhoeven

Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin

2021-02-08 Thread David Hildenbrand
On 07.02.21 09:18, Zhou Wang wrote: SVA(share virtual address) offers a way for device to share process virtual address space safely, which makes more convenient for user space device driver coding. However, IO page faults may happen when doing DMA operations. As the latency of IO page fault is

Re:reply

2021-02-08 Thread Ms. Reem
Hello, My name is Ms. Reem Ebrahim Al-Hashimi, I am the "Minister of state and Petroleum" also "Minister of State for International Cooperation" in UAE. I write to you on behalf of my other "three (3) colleagues" who has approved me to solicit for your "partnership in claiming of {us$47=Million}"

drivers/scsi/ufs/ufs-mediatek.c:530:17: sparse: sparse: dubious: x & !y

2021-02-08 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 61556703b610a104de324e4f061dc6cf7b218b46 commit: 488edafb1120f715bebd80b6fe4089f83fb082b2 scsi: ufs-mediatek: Introduce low-power mode for device power supply config: arm64-randconfig-s031-20210207

[PATCH v10 net-next 01/15] doc: marvell: add CM3 address space and PPv2.3 description

2021-02-08 Thread stefanc
From: Stefan Chulski Patch adds CM3 address space and PPv2.3 description. Signed-off-by: Stefan Chulski --- Documentation/devicetree/bindings/net/marvell-pp2.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/marvell-pp2.txt

Re: [PATCH] optee: simplify i2c access

2021-02-08 Thread Jorge Ramirez-Ortiz, Foundries
On 08/02/21, Jorge Ramirez-Ortiz, Foundries wrote: > On 08/02/21, Jens Wiklander wrote: > > Hi Jorge, > > > > On Wed, Jan 27, 2021 at 11:41 AM Jens Wiklander > > wrote: > > > > > > Hi Arnd, > > > > > > On Mon, Jan 25, 2021 at 12:38 PM Arnd Bergmann wrote: > > > > > > > > From: Arnd Bergmann >

Re: linux-next: build warning after merge of the v4l-dvb tree

2021-02-08 Thread Geert Uytterhoeven
On Mon, Feb 8, 2021 at 7:35 AM Mauro Carvalho Chehab wrote: > Em Mon, 8 Feb 2021 11:32:08 +1100 > Stephen Rothwell escreveu: > > > After merging the v4l-dvb tree, today's linux-next build (x86_64 > > allmodconfig) produced this warning: > > > > WARNING: modpost:

Re: [PATCH v4 4/5] ASoC: Intel: Add DMI quirk table to soc_intel_is_byt_cr()

2021-02-08 Thread Lee Jones
On Fri, 05 Feb 2021, Mark Brown wrote: > On Fri, Feb 05, 2021 at 08:34:16AM +, Lee Jones wrote: > > On Thu, 04 Feb 2021, Mark Brown wrote: > > > > > On Thu, Feb 04, 2021 at 03:40:58PM +, Lee Jones wrote: > > > > On Thu, 04 Feb 2021, Mark Brown wrote: > > > > > On Thu, Feb 04, 2021 at

[PATCH v10 net-next 02/15] dts: marvell: add CM3 SRAM memory to cp11x ethernet device tree

2021-02-08 Thread stefanc
From: Konstantin Porotchkin CM3 SRAM address space would be used for Flow Control configuration. Signed-off-by: Stefan Chulski Signed-off-by: Konstantin Porotchkin --- arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v10 net-next 03/15] net: mvpp2: add CM3 SRAM memory map

2021-02-08 Thread stefanc
From: Stefan Chulski This patch adds CM3 memory map and CM3 read/write callbacks. Signed-off-by: Stefan Chulski Reviewed-by: Andrew Lunn --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 1 + drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 26 2 files changed, 27

[PATCH v10 net-next 05/15] net: mvpp2: add PPv23 version definition

2021-02-08 Thread stefanc
From: Stefan Chulski This patch add PPv23 version definition. PPv23 is new packet processor in CP115. Everything that supported by PPv22, also supported by PPv23. No functional changes in this stage. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 24

[PATCH v10 net-next 00/15] net: mvpp2: Add TX Flow Control support

2021-02-08 Thread stefanc
From: Stefan Chulski Armada hardware has a pause generation mechanism in GOP (MAC). The GOP generate flow control frames based on an indication programmed in Ports Control 0 Register. There is a bit per port. However assertion of the PortX Pause bits in the ports control 0 register only sends

Re: [PATCH v10 net-next 03/15] net: mvpp2: add CM3 SRAM memory map

2021-02-08 Thread Marcin Wojtas
Hi, pon., 8 lut 2021 o 09:33 napisał(a): > > From: Stefan Chulski > > This patch adds CM3 memory map and CM3 read/write callbacks. The read/write callbacks are not added in this patch, please correct the commit message. Best regards, Marcin > > Signed-off-by: Stefan Chulski > Reviewed-by:

[PATCH] hugetlbfs: Remove unneeded return value of hugetlb_vmtruncate()

2021-02-08 Thread Miaohe Lin
The function hugetlb_vmtruncate() is guaranteed to always success since commit 7aa91e104028 ("hugetlb: allow extending ftruncate on hugetlbfs"). So we should remove the unneeded return value which is always 0. Signed-off-by: Miaohe Lin --- fs/hugetlbfs/inode.c | 7 ++- 1 file changed, 2

Re: [RFC v3 10/10] drm/dp: Extract i915's eDP backlight code into DRM helpers

2021-02-08 Thread Thomas Zimmermann
Hi Am 06.02.21 um 00:45 schrieb Lyude Paul: Since we're about to implement eDP backlight support in nouveau using the standard protocol from VESA, we might as well just take the code that's already written for this and move it into a set of shared DRM helpers. Note that these helpers are

Re: [GIT PULL 2/3] ARM: dts: samsung: DTS for v5.12

2021-02-08 Thread Tony Lindgren
* Geert Uytterhoeven [210206 19:48]: > On Sat, Feb 6, 2021 at 3:36 PM Arnd Bergmann wrote: > > What do others think about this? Should we generally assume > > that breaking old kernels with new dtbs is acceptable, or should > > we try to avoid it if possible, the same way we try to avoid > >

[PATCH v2] perf script: Simplify bool conversion

2021-02-08 Thread Yang Li
Fix the following coccicheck warning: ./tools/perf/builtin-script.c:2789:36-41: WARNING: conversion to bool not needed here ./tools/perf/builtin-script.c:3237:48-53: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Signed-off-by: Yang Li --- Change in v2: -Change the

Re: [PATCH] mm: cma: support sysfs

2021-02-08 Thread John Hubbard
On 2/6/21 9:08 AM, Pintu Agarwal wrote: ... # cat meminfo | grep -i cma CmaTotal:1048576 kB CmaFree: 1046872 kB This CMA info was added by me way back in 2014. At that time I even thought about adding this cma alloc/fail counter in vmstat. That time I also had an internal patch

[PATCH v17 05/10] set_memory: allow querying whether set_direct_map_*() is actually enabled

2021-02-08 Thread Mike Rapoport
From: Mike Rapoport On arm64, set_direct_map_*() functions may return 0 without actually changing the linear map. This behaviour can be controlled using kernel parameters, so we need a way to determine at runtime whether calls to set_direct_map_invalid_noflush() and

[PATCH v15 0/8] Free some vmemmap pages of HugeTLB page

2021-02-08 Thread Muchun Song
Hi all, This patch series will free some vmemmap pages(struct page structures) associated with each hugetlbpage when preallocated to save memory. In order to reduce the difficulty of the first version of code review. >From this version, we disable PMD/huge page mapping of vmemmap if this feature

Re: linux-next: build warning after merge of the v4l-dvb tree

2021-02-08 Thread Mauro Carvalho Chehab
Em Mon, 8 Feb 2021 09:52:22 +0100 Geert Uytterhoeven escreveu: > Hi Mauro, > > On Mon, Feb 8, 2021 at 9:49 AM Mauro Carvalho Chehab > wrote: > > Em Mon, 8 Feb 2021 09:33:14 +0100 > > Geert Uytterhoeven escreveu: > > > On Mon, Feb 8, 2021 at 7:35 AM Mauro Carvalho Chehab > > > wrote: >

Re: [PATCH] drm/amdgpu: fix potential integer overflow on shift of a int

2021-02-08 Thread Christian König
Am 08.02.21 um 00:07 schrieb Colin King: From: Colin Ian King The left shift of int 32 bit integer constant 1 is evaluated using 32 bit arithmetic and then assigned to an unsigned 64 bit integer. In the case where *frag is 32 or more this can lead to an oveflow. Avoid this by shifting 1ULL.

Re: [bug] 5.11-rc5 brought page allocation failure issue [ttm][amdgpu]

2021-02-08 Thread Christian König
Am 06.02.21 um 19:17 schrieb Mikhail Gavrilov: On Sun, 31 Jan 2021 at 22:22, Christian König wrote: Yeah, known issue. I already pushed Michel's fix to drm-misc-fixes. Should land in the next -rc by the weekend. Regards, Christian. I checked this patch [1] for several days. And I can

Re: [PATCH 1/2] drm/bridge: dw-hdmi: Add DT binding to disable hotplug detect

2021-02-08 Thread Neil Armstrong
On 31/01/2021 10:55, Mykyta Poturai wrote: > Add "disable-hpd" boolean binding for the device tree. When this option > is turned on HPD-related IRQ is disabled and it is assumed that the HDMI > connector is connected all the time. This may be useful in systems where > it is impossible or

Re: WARNING: at arch/x86/kernel/irq.c:390 thermal_set_handler

2021-02-08 Thread Borislav Petkov
On Mon, Feb 08, 2021 at 03:01:39PM +0530, Naresh Kamboju wrote: > The following kernel warning noticed on Linux next tag 20210205 while booting > x86_64 and i386. > > step to reproduce: > - Boot linux next tag 20210205 on x86_64 > - While booting you will notice the below warning > > > [

Re: [PATCH 7/7] xen/evtchn: read producer index only once

2021-02-08 Thread Jan Beulich
On 06.02.2021 11:49, Juergen Gross wrote: > In evtchn_read() use READ_ONCE() for reading the producer index in > order to avoid the compiler generating multiple accesses. > > Signed-off-by: Juergen Gross > --- > drivers/xen/evtchn.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH] clk: at91: Fix the declaration of the clocks

2021-02-08 Thread Tudor.Ambarus
Hi, Michael, Stephen, Do you plan to take this patch for v5.12? If fw_devlink will remain set to ON for v5.12, some of our boards will no longer boot without this patch. Cheers, ta On 2/3/21 5:43 PM, Tudor Ambarus wrote: > These are all "early clocks" that require initialization just at >

Re: [External] Re: [PATCH] mm: memcontrol: remove rcu_read_lock from get_mem_cgroup_from_page

2021-02-08 Thread Michal Hocko
On Fri 05-02-21 13:15:40, Johannes Weiner wrote: > On Fri, Feb 05, 2021 at 11:32:24AM +0100, Michal Hocko wrote: > > On Fri 05-02-21 17:14:30, Muchun Song wrote: > > > On Fri, Feb 5, 2021 at 4:36 PM Michal Hocko wrote: > > > > > > > > On Fri 05-02-21 14:27:19, Muchun Song wrote: > > > > > The

Re: [PATCH 6/7] xen/evtch: use smp barriers for user event ring

2021-02-08 Thread Jan Beulich
On 08.02.2021 10:44, Andrew Cooper wrote: > On 06/02/2021 10:49, Juergen Gross wrote: >> The ring buffer for user events is used in the local system only, so >> smp barriers are fine for ensuring consistency. >> >> Reported-by: Andrew Cooper >> Signed-off-by: Juergen Gross > > These need to be

[PATCH] mmc: omap-hsmmc: Simplify bool comparison

2021-02-08 Thread Jiapeng Chong
Fix the following coccicheck warning: ./drivers/mmc/host/omap_hsmmc.c:297:6-25: WARNING: Comparison of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/mmc/host/omap_hsmmc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 0/7] xen/events: bug fixes and some diagnostic aids

2021-02-08 Thread Julien Grall
On 08/02/2021 09:41, Jürgen Groß wrote: On 08.02.21 10:11, Julien Grall wrote: Hi Juergen, On 07/02/2021 12:58, Jürgen Groß wrote: On 06.02.21 19:46, Julien Grall wrote: Hi Juergen, On 06/02/2021 10:49, Juergen Gross wrote: The first three patches are fixes for XSA-332. The avoid WARN

Re Thanks.

2021-02-08 Thread Mr.Richard Thomas
Dear Friend, I will be pleased if you can allow me to invest $104M Dollars in Estate Management,in your company or any area you best that will be of good profit to both of us Please do well to respond including your information for more details. Thanks. Mr.Richard Thomas

Re: [PATCH 1/2] KVM: selftests: Keep track of memslots more efficiently

2021-02-08 Thread Andrew Jones
On Mon, Feb 01, 2021 at 09:10:56AM +0100, Maciej S. Szmigiero wrote: > From: "Maciej S. Szmigiero" > > The KVM selftest framework was using a simple list for keeping track of > the memslots currently in use. > This resulted in lookups and adding a single memslot being O(n), the > later due to

[PATCH] drm/radeon: Simplify bool comparison

2021-02-08 Thread Jiapeng Chong
Fix the following coccicheck warning: ./drivers/gpu/drm/radeon/rs690.c:190:6-35: WARNING: Comparison to bool. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/radeon/rs690.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/5] sched: make struct task_struct::state 32-bit

2021-02-08 Thread Peter Zijlstra
On Sat, Feb 06, 2021 at 06:18:32PM +0300, Alexey Dobriyan wrote: > Silently delete "extern" from prototypes. NAK, extern is right.

Re: [PATCH v2] rtlwifi: rtl8821ae: style: Simplify bool comparison

2021-02-08 Thread Kalle Valo
Jiapeng Zhong wrote: > Fix the following coccicheck warning: > ./drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:3853:7-17: > WARNING: Comparison of 0/1 to bool variable > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Zhong Please use your own email address and real name. Patch

[PATCH v3 00/11] fsdax: introduce fs query to support reflink

2021-02-08 Thread Shiyang Ruan
This patchset is aimed to support shared pages tracking for fsdax. Change from V2: - Split 8th patch into other related to make it easy to review - Other small fixes Change from V1: - Add the old memory-failure handler back for rolling back - Add callback in MD's ->rmap() to support

[PATCH v3 03/11] fs: Introduce ->corrupted_range() for superblock

2021-02-08 Thread Shiyang Ruan
Memory failure occurs in fsdax mode will finally be handled in filesystem. We introduce this interface to find out files or metadata affected by the corrupted range, and try to recover the corrupted data if possiable. Signed-off-by: Shiyang Ruan --- include/linux/fs.h | 2 ++ 1 file changed, 2

[PATCH v3 11/11] fs/dax: Remove useless functions

2021-02-08 Thread Shiyang Ruan
Since owner tarcking is triggerred by pmem device, these functions are useless. So remove them. Signed-off-by: Shiyang Ruan --- fs/dax.c | 46 -- 1 file changed, 46 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index c64c3a0e76a6..e20a5df03eec

[PATCH v3 07/11] pmem: Implement ->corrupted_range() for pmem driver

2021-02-08 Thread Shiyang Ruan
Obtain the superblock of a pmem disk, and call filesystem's ->corrupted_range() to handle the corrupted data. Signed-off-by: Shiyang Ruan --- block/genhd.c | 6 ++ drivers/nvdimm/pmem.c | 19 +++ include/linux/genhd.h | 1 + 3 files changed, 26 insertions(+) diff

Re: [PATCH v2] powerpc/uprobes: Validation for prefixed instruction

2021-02-08 Thread Ravi Bangoria
On 2/4/21 9:42 PM, Naveen N. Rao wrote: On 2021/02/04 06:38PM, Naveen N. Rao wrote: On 2021/02/04 04:17PM, Ravi Bangoria wrote: Don't allow Uprobe on 2nd word of a prefixed instruction. As per ISA 3.1, prefixed instruction should not cross 64-byte boundary. So don't allow Uprobe on such

Re: [RFC v3 04/10] drm/i915/dpcd_bl: Handle drm_dpcd_read/write() return values correctly

2021-02-08 Thread Rodrigo Vivi
On Fri, Feb 05, 2021 at 06:45:08PM -0500, Lyude Paul wrote: > This is kind of an annoying aspect of DRM's DP helpers: > drm_dp_dpcd_readb/writeb() return the size of bytes read/written on > success, thus we want to check against that instead of checking if the > return value is less than 0. > >

Re: [PATCH net] net: bridge: use switchdev for port flags set through sysfs too

2021-02-08 Thread Nikolay Aleksandrov
On 07/02/2021 21:47, Vladimir Oltean wrote: > From: Vladimir Oltean > > Looking through patchwork I don't see that there was any consensus to > use switchdev notifiers only in case of netlink provided port flags but > not sysfs (as a sort of deprecation, punishment or anything like that), > so

[PATCH] drm/i915/gvt/kvmgt: Fix the build failure in kvmgt.

2021-02-08 Thread Yu Zhang
Previously, commit 531810caa9f4 ("KVM: x86/mmu: Use an rwlock for the x86 MMU") replaced KVM's mmu_lock with type rwlock_t. This will cause a build failure in kvmgt, which uses the same lock when trying to add/ remove some GFNs to/from the page tracker. Fix it with write_lock/unlocks in kvmgt.

Re: [PATCH] wl1251: cmd: remove redundant assignment

2021-02-08 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > -ENOMEM has been used as a return value,it is not necessary to > assign it, and if kzalloc fail,not need free it,so just return > -ENOMEM when kzalloc fail. > > Signed-off-by: wengjianfeng Patch applied to wireless-drivers-next.git, thanks.

Re: Re: [linux-sunxi] [PATCH 4/5] drm/sun4i: Fix H6 HDMI PHY configuration

2021-02-08 Thread Jernej Škrabec
Dne petek, 05. februar 2021 ob 04:22:56 CET je Chen-Yu Tsai napisal(a): > On Fri, Feb 5, 2021 at 2:48 AM Jernej Skrabec wrote: > > > > cpce value for 594 MHz is set differently in BSP driver. Fix that. > > > > Fixes: c71c9b2fee17 ("drm/sun4i: Add support for Synopsys HDMI PHY") > > Tested-by:

Re: linux-next: build failure after merge of the kvm tree

2021-02-08 Thread Yu Zhang
Thanks a lot for reporting this, Stephen. Just sent out a patch to fix it in kvmgt. B.R. Yu On Mon, Feb 08, 2021 at 04:33:08PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the kvm tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > >

Re: [PATCH] rsi: remove redundant assignment

2021-02-08 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > INVALID_QUEUE has been used as a return value,it is not necessary to > assign it to q_num,so just return INVALID_QUEUE. > > Signed-off-by: wengjianfeng Patch applied to wireless-drivers-next.git, thanks. d48aea6054d0 rsi: remove redundant

Re: [PATCH] mwl8k: assign value when defining variables

2021-02-08 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > define refilled and then assign value to it, which should do > that at the same time. > > Signed-off-by: wengjianfeng Patch applied to wireless-drivers-next.git, thanks. bb779d476ff7 mwl8k: assign value when defining variables --

Re: [PATCH] iwlegacy: 4965-mac: Simplify the calculation of variables

2021-02-08 Thread Kalle Valo
Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/net/wireless/intel/iwlegacy/4965-mac.c:2596:54-56: WARNING !A > || A && B is equivalent to !A || B. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > Acked-by: Stanislaw Gruszka Patch applied to

Re: [PATCH] Input: elantech - add LEN2146 to SMBus blacklist for ThinkPad L13 Gen2

2021-02-08 Thread Benjamin Tissoires
Hi Nikolai, On Mon, Feb 8, 2021 at 9:01 AM Nikolai Kostrigin wrote: > > ThinkPad L13 Gen2 has both touchpad and trackpoint. > PNP: LEN2146 PNP0f13 > With the default protocol (elantech-smbus) trackpoint is not operating, > while touchpad does. Changing to elantech renders both operational. > >

Re: [PATCH v19 3/3] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-08 Thread Bean Huo
On Fri, 2021-02-05 at 11:29 +0800, Can Guo wrote: > > + return ppn_table[offset]; > > +} > > + > > +static void > > +ufshpb_get_pos_from_lpn(struct ufshpb_lu *hpb, unsigned long lpn, > > int > > *rgn_idx, > > + int *srgn_idx, int *offset) > > +{ > > + int rgn_offset; >

[PATCH V10 03/10] remoteproc: introduce is_iomem to rproc_mem_entry

2021-02-08 Thread peng . fan
From: Peng Fan Introduce is_iomem to indicate this piece memory is iomem or not. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- include/linux/remoteproc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/remoteproc.h

[RFC PATCH 2/2] KVM: selftests: Add a test for kvm page table code

2021-02-08 Thread Yanan Wang
This test serves as a performance tester and a bug reproducer for kvm page table code (GPA->HPA mappings), so it gives guidance for people trying to make some improvement for kvm. The function guest_code() is designed to cover conditions where a single vcpu or multiple vcpus access guest pages

[RFC PATCH 0/2] Add a test for kvm page table code

2021-02-08 Thread Yanan Wang
Hi, This test is added to serve as a performance tester and a bug reproducer for kvm page table code (GPA->HPA mappings), it gives guidance for the people trying to make some improvement for kvm. The following explains what we can exactly do through this test. And a RFC is sent for comments,

[RFC PATCH 1/2] KVM: selftests: Add a macro to get string of vm_mem_backing_src_type

2021-02-08 Thread Yanan Wang
Add a macro to get string of the backing source memory type, so that application can add choices for source types in the help() function, and users can specify which type to use for testing. Signed-off-by: Yanan Wang --- tools/testing/selftests/kvm/include/kvm_util.h | 3 +++

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