[PATCH] erofs: force inplace I/O under low memory scenario

2020-12-07 Thread Gao Xiang
From: Gao Xiang Try to forcely switch to inplace I/O under low memory scenario in order to avoid direct memory reclaim due to cached page allocation. Signed-off-by: Gao Xiang --- This was commercially used internally for years, but due to customized page->mapping before, it cannot cleanly

drivers/staging/media/rkvdec/rkvdec.c:967:34: warning: unused variable 'of_rkvdec_match'

2020-12-07 Thread kernel test robot
Hi Boris, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: cd796ed3345030aa1bb332fe5c793b3dddaf56e7 commit: cd33c830448baf7b1e94da72eca069e3e1d050c9 media: rkvdec: Add the rkvdec driver date: 8 months ago config:

Re: [RFC V2 3/3] s390/mm: Define arch_get_mappable_range()

2020-12-07 Thread Anshuman Khandual
On 12/7/20 2:33 PM, David Hildenbrand wrote: > On 07.12.20 05:38, Anshuman Khandual wrote: >> >> >> On 12/3/20 5:31 PM, David Hildenbrand wrote: >>> On 03.12.20 12:51, Heiko Carstens wrote: On Thu, Dec 03, 2020 at 06:03:00AM +0530, Anshuman Khandual wrote: >>> diff --git

RE: [PATCH bpf-next v4 06/11] bpf: Add BPF_FETCH field / create atomic_fetch_add instruction

2020-12-07 Thread John Fastabend
Brendan Jackman wrote: > The BPF_FETCH field can be set in bpf_insn.imm, for BPF_ATOMIC > instructions, in order to have the previous value of the > atomically-modified memory location loaded into the src register > after an atomic op is carried out. > > Suggested-by: Yonghong Song >

[PATCH v2] powerpc/powermac: Fix low_sleep_handler with CONFIG_VMAP_STACK

2020-12-07 Thread Christophe Leroy
low_sleep_handler() can't restore the context from standard stack because the stack can hardly be accessed with MMU OFF. Store everything in a global storage area instead of storing a pointer to the stack in that global storage area. To avoid a complete churn of the function, still use r1 as the

Your ATM card is ready for delivery.......................

2020-12-07 Thread Gary Mark
SCAMMED VICTIM USD1 MILLION BENEFICIARY.. We have arrested all the fraud people that has been cheating you and collecting your money here in Lagos Nigeria we are the new ATM CARD office here in Lagos Nigeria now your ATM CARD will reach your hand today or tomorrow it will cost you only $179 that

Re: [PATCH v2 1/9] KVM: x86: Add AMD SEV specific Hypercall3

2020-12-07 Thread Kalra, Ashish
> >> I suspect a list >> would consume far less memory, hopefully without impacting performance. And how much host memory are we talking about for here, say for a 4gb guest, the bitmap will be using just using something like 128k+. Thanks, Ashish > On Dec 7, 2020, at 10:16 PM, Kalra, Ashish

Re: [PATCH] ALSA: hda/realtek - Add support for Memeza EDL03 headset mic

2020-12-07 Thread Chris Chiu
On Mon, Dec 7, 2020 at 4:38 PM Takashi Iwai wrote: > > On Mon, 07 Dec 2020 08:33:46 +0100, > Chris Chiu wrote: > > > > The Memeza laptop EDL03 with codec ALC256 can't detect the headset > > microphone. The headphone jack sensing works after we add a pin > > definition for it by

Re: [RESEND PATCH] MAINTAINERS: Add myself as a reviewer for CADENCE USB3 DRD IP DRIVER

2020-12-07 Thread Sekhar Nori
+ Peter, Pawel and Roger for their acks. On 08/12/20 10:38 AM, Aswath Govindraju wrote: > I would like to help in reviewing CADENCE USB3 DRD IP DRIVER patches > > Signed-off-by: Aswath Govindraju > --- > > Resending the patch to add more viewers. > > MAINTAINERS | 1 + > 1 file changed, 1

RE: [PATCH bpf-next v4 05/11] bpf: Move BPF_STX reserved field check into BPF_STX verifier code

2020-12-07 Thread John Fastabend
Brendan Jackman wrote: > I can't find a reason why this code is in resolve_pseudo_ldimm64; > since I'll be modifying it in a subsequent commit, tidy it up. > > Signed-off-by: Brendan Jackman > --- > kernel/bpf/verifier.c | 13 ++--- > 1 file changed, 6 insertions(+), 7 deletions(-)

Re: [PATCH v3 1/2] dt-bindings: hwlock: add sun8i_hwspinlock documentation

2020-12-07 Thread Wilken Gottwalt
On Mon, 7 Dec 2020 21:22:23 -0600 Samuel Holland wrote: > On 12/7/20 10:12 AM, Maxime Ripard wrote: > > Hi, > > > > On Mon, Dec 07, 2020 at 05:05:03PM +0100, Wilken Gottwalt wrote: > >> Adds documentation on how to use the sun8i_hwspinlock driver for sun8i > >> compatible SoCs. > >> > >>

[RESEND PATCH] MAINTAINERS: Add myself as a reviewer for CADENCE USB3 DRD IP DRIVER

2020-12-07 Thread Aswath Govindraju
I would like to help in reviewing CADENCE USB3 DRD IP DRIVER patches Signed-off-by: Aswath Govindraju --- Resending the patch to add more viewers. MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6aac0f845f34..ff9bd7d18d94 100644 ---

Re: [PATCH v3 0/7] Improve s0ix flows for systems i219LM

2020-12-07 Thread Neftin, Sasha
On 12/7/2020 17:41, Limonciello, Mario wrote: First of all thank you for working on this. I must say though that I don't like the approach taken here very much. This is not so much a criticism of this series as it is a criticism of the earlier decision to simply disable s0ix on all devices

linux-next: manual merge of the ftrace tree with Linus' tree

2020-12-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the ftrace tree got a conflict in: kernel/trace/ring_buffer.c between commit: 68e10d5ff512 ("ring-buffer: Always check to put back before stamp when crossing pages") from Linus' tree and commit: 5b7be9c709e1 ("ring-buffer: Add test to validate the

RE: [PATCH v3] ath10k: add option for chip-id based BDF selection

2020-12-07 Thread Rakesh Pillai
Hi, > -Original Message- > From: Abhishek Kumar > Sent: Tuesday, December 8, 2020 4:50 AM > To: kv...@codeaurora.org > Cc: linux-kernel@vger.kernel.org; kua...@chromium.org; linux- > wirel...@vger.kernel.org; ath...@lists.infradead.org; > pill...@codeaurora.org;

Re: [PATCH] scsi: hisi_sas: Select a suitable queue for internal IOs

2020-12-07 Thread Martin K. Petersen
On Mon, 7 Dec 2020 21:30:55 +0800, John Garry wrote: > For when managed interrupts are used (and shost->nr_hw_queues is set), a > fixed queue - set per-device - is still used for internal IOs. > > If all the CPUs mapped to that queue are offlined, then the completions > for that queue are not

[PATCH v2 9/9] riscv: dts: add initial board data for the SiFive HiFive Unmatched

2020-12-07 Thread Yash Shah
Add initial board data for the SiFive HiFive Unmatched A00. This patch is dependent on Zong's Patchset[0]. [0]: https://lore.kernel.org/linux-riscv/20201130082330.77268-4-zong...@sifive.com/T/#u Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/Makefile| 3 +-

[PATCH v2 7/9] riscv: dts: add initial support for the SiFive FU740-C000 SoC

2020-12-07 Thread Yash Shah
Add initial support for the SiFive FU540-C000 SoC. FU740-C000 is built around the SiFIve U7 Core Complex and a TileLink interconnect. This file is expected to grow as more device drivers are added to the kernel. Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 293

[PATCH v2 8/9] dt-bindings: riscv: Update YAML doc to support SiFive HiFive Unmatched board

2020-12-07 Thread Yash Shah
Add new compatible strings to the YAML DT binding document to support SiFive's HiFive Unmatched board Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/riscv/sifive.yaml | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git

[PATCH v2 3/9] dt-bindings: pwm: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings to the DT binding documents to support SiFive FU740-C000. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/pwm/pwm-sifive.yaml | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCH v2 6/9] dt-bindings: i2c: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings to the DT binding documents to support SiFive FU740-C000. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/i2c/i2c-ocores.txt | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-ocores.txt

[PATCH v2 5/9] dt-bindings: gpio: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings to the DT binding documents to support SiFive FU740-C000. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/gpio/sifive,gpio.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2 4/9] dt-bindings: serial: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings to the DT binding documents to support SiFive FU740-C000. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/serial/sifive-serial.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2 1/9] dt-bindings: riscv: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings in cpus.yaml to support the E71 and U74 CPU cores ("harts") that are present on FU740-C000 SoC. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/riscv/cpus.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v2 2/9] dt-bindings: spi: Update DT binding docs to support SiFive FU740 SoC

2020-12-07 Thread Yash Shah
Add new compatible strings to the DT binding documents to support SiFive FU740-C000. Signed-off-by: Yash Shah --- Documentation/devicetree/bindings/spi/spi-sifive.yaml | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[PATCH v2 0/9] arch: riscv: add board and SoC DT file support

2020-12-07 Thread Yash Shah
Start board support by adding initial support for the SiFive FU740 SoC and the first development board that uses it, the SiFive HiFive Unmatched A00. Boot-tested on Linux 5.10-rc4 on a HiFive Unmatched A00 board using the U-boot and OpenSBI. This patch series is dependent on Zong's Patchset[0].

Re: [PATCH 1/7] soundwire: bus: use sdw_update_no_pm when initializing a device

2020-12-07 Thread Vinod Koul
On 07-12-20, 09:31, Pierre-Louis Bossart wrote: > On 12/6/20 10:43 PM, Vinod Koul wrote: > > On 05-12-20, 08:59, Pierre-Louis Bossart wrote: > > > Thanks for the review Vinod. > > > > > > On 12/5/20 1:45 AM, Vinod Koul wrote: > > > > On 03-12-20, 04:46, Bard Liao wrote: > > > > > From:

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

2020-12-07 Thread Tomasz Figa
Hi Christoph, On Tue, Dec 1, 2020 at 11:49 PM Christoph Hellwig wrote: > > On Tue, Dec 01, 2020 at 12:36:58PM +0900, Sergey Senozhatsky wrote: > > Not that I have any sound experience in this area, but the helper > > probably won't hurt. Do you also plan to add vmap() to that helper > > or

[PATCH v3] Drivers: hv: vmbus: Copy packets sent by Hyper-V out of the ring buffer

2020-12-07 Thread Andrea Parri (Microsoft)
From: Andres Beltran Pointers to ring-buffer packets sent by Hyper-V are used within the guest VM. Hyper-V can send packets with erroneous values or modify packet fields after they are processed by the guest. To defend against these scenarios, return a copy of the incoming VMBus packet after

[PATCH] phy: ingenic: depend on HAS_IOMEM

2020-12-07 Thread Vinod Koul
The driver uses devm_ioremap_resource() which will not be built if CONFIG_HAS_IOMEM is not selected, so add depends on it to fix the build failure on few archs s390-linux-ld: drivers/phy/ingenic/phy-ingenic-usb.o: in function `ingenic_usb_phy_probe': >> phy-ingenic-usb.c:(.text+0xb66): undefined

Re: [PATCH][next] scsi: pm8001: remove space in a debug message

2020-12-07 Thread Martin K. Petersen
On Tue, 24 Nov 2020 09:38:28 +, Colin King wrote: > There are two words that need separating with a space in a > pm8001_dbg message. Fix it. Applied to 5.11/scsi-queue, thanks! [1/1] scsi: pm8001: remove space in a debug message https://git.kernel.org/mkp/scsi/c/c6131854e28a --

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

2020-12-07 Thread Martin K. Petersen
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 -Wimplicit-fallthrough for Clang, explicitly > add multiple

Re: [PATCH 1/1] scsi: ufs: Remove scale down gear hard code

2020-12-07 Thread Martin K. Petersen
On Thu, 26 Nov 2020 17:58:48 -0800, Can Guo wrote: > Instead of making the scale down gear a hard code, make it a member of > ufs_clk_scaling struct. Applied to 5.11/scsi-queue, thanks! [1/1] scsi: ufs: Remove scale down gear hard code https://git.kernel.org/mkp/scsi/c/29b87e92a216 --

Re: [PATCH v2] Drivers: hv: vmbus: Copy packets sent by Hyper-V out of the ring buffer

2020-12-07 Thread Andrea Parri
> > @@ -419,17 +446,52 @@ static u32 hv_pkt_iter_avail(const struct > > hv_ring_buffer_info *rbi) > > struct vmpacket_descriptor *hv_pkt_iter_first(struct vmbus_channel > > *channel) > > { > > struct hv_ring_buffer_info *rbi = >inbound; > > - struct vmpacket_descriptor *desc; > > +

Re: [PATCH v2 0/3] occ: Add support for P10

2020-12-07 Thread Guenter Roeck
Hi Joel, On 12/7/20 6:41 PM, Joel Stanley wrote: > On Sat, 21 Nov 2020 at 18:55, Guenter Roeck wrote: >> >> On Fri, Nov 20, 2020 at 11:33:12AM +1030, Joel Stanley wrote: >>> Hi Guenter, here's v2 of this series on behalf of Eddie. I made the >>> change to the compatible string that we spoke

Re: [PATCH 0/2] SCMI performance protocol power scale interface

2020-12-07 Thread Viresh Kumar
On 07-12-20, 12:43, Viresh Kumar wrote: > On 24-11-20, 10:43, Lukasz Luba wrote: > > Hi all, > > > > The Energy Model (EM) supports power values expressed in an abstract scale > > via new API. The SCMI performance protocol provides the information about > > power scale. This patch set implements

Re: [PATCH v8 16/18] NTB: tool: Enable the NTB/PCIe link on the local or remote side of bridge

2020-12-07 Thread Kishon Vijay Abraham I
Hi Dave, On 07/12/20 9:25 pm, Jiang, Dave wrote: > > >> -Original Message- >> From: Kishon Vijay Abraham I >> Sent: Wednesday, November 11, 2020 8:36 AM >> To: Bjorn Helgaas ; Jonathan Corbet >> ; Kishon Vijay Abraham I ; Lorenzo >> Pieralisi ; Arnd Bergmann ; >> Jon Mason ; Jiang,

Re: [PATCH v5 6/6] ARM: dts: rainier: Add eMMC clock phase compensation

2020-12-07 Thread Joel Stanley
On Tue, 8 Dec 2020 at 01:26, Andrew Jeffery wrote: > > Determined by scope measurements at speed. > > Signed-off-by: Andrew Jeffery Reviewed-by: Joel Stanley ... assuming the bindings get acked. > --- > arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 1 + > 1 file changed, 1 insertion(+) >

[PATCH] arm64: dts: qcom: c630: Add backlight controller

2020-12-07 Thread Bjorn Andersson
The Lenovo Yoga C630 uses the PWM controller in the TI SN65DSI86 bridge chip to provide a signal for the backlight control and has TLMM GPIO 11 attached to some regulator that drives the backlight. Unfortunately the regulator attached to this gpio is also powering the camera, so turning off

[RFC PATCH] drm/panel: Make backlight attachment lazy

2020-12-07 Thread Bjorn Andersson
Some bridge chips, such as the TI SN65DSI86 DSI/eDP bridge, provides means of generating a PWM signal for backlight control of the attached panel. The provided PWM chip is typically controlled by the pwm-backlight driver, which if tied to the panel will provide DPMS. But with the current

Re: [PATCH v8 15/18] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2020-12-07 Thread Kishon Vijay Abraham I
Hi Dave, On 07/12/20 9:27 pm, Jiang, Dave wrote: > > >> -Original Message- >> From: Kishon Vijay Abraham I >> Sent: Wednesday, November 11, 2020 8:36 AM >> To: Bjorn Helgaas ; Jonathan Corbet >> ; Kishon Vijay Abraham I ; Lorenzo >> Pieralisi ; Arnd Bergmann ; >> Jon Mason ; Jiang,

Re: [PATCH 2/2] ARM: dts: aspeed: Add device tree for Ampere's Mt. Jade BMC

2020-12-07 Thread Joel Stanley
On Tue, 8 Dec 2020 at 04:37, Quan Nguyen wrote: > > The Mt. Jade BMC is an ASPEED AST2500-based BMC for the Mt. Jade > hardware reference platform with Ampere's Altra Processor Family. > > Reviewed-by: Andrew Jeffery > Reviewed-by: Joel Stanley > Signed-off-by: Quan Nguyen > Signed-off-by:

Re: [PATCH 1/2] dt-bindings: vendor-prefixes: Add an entry for AmpereComputing.com

2020-12-07 Thread Joel Stanley
Hello Rob, On Tue, 8 Dec 2020 at 04:37, Quan Nguyen wrote: > > Add "ampere" entry for Ampere Computing LLC: amperecomputing.com > > Reviewed-by: Andrew Jeffery > Reviewed-by: Joel Stanley > Signed-off-by: Quan Nguyen > Signed-off-by: Phong Vo > Signed-off-by: Thang Q. Nguyen Do you take

[PATCH] drm/bridge: ti-sn65dsi86: Implement the pwm_chip

2020-12-07 Thread Bjorn Andersson
The SN65DSI86 provides the ability to supply a PWM signal on GPIO 4, with the primary purpose of controlling the backlight of the attached panel. Add an implementation that exposes this using the standard PWM framework, to allow e.g. pwm-backlight to expose this to the user. Special thanks to

[PATCH 2/2] ARM: dts: aspeed: Add device tree for Ampere's Mt. Jade BMC

2020-12-07 Thread Quan Nguyen
The Mt. Jade BMC is an ASPEED AST2500-based BMC for the Mt. Jade hardware reference platform with Ampere's Altra Processor Family. Reviewed-by: Andrew Jeffery Reviewed-by: Joel Stanley Signed-off-by: Quan Nguyen Signed-off-by: Phong Vo Signed-off-by: Thang Q. Nguyen ---

[PATCH 1/2] dt-bindings: vendor-prefixes: Add an entry for AmpereComputing.com

2020-12-07 Thread Quan Nguyen
Add "ampere" entry for Ampere Computing LLC: amperecomputing.com Reviewed-by: Andrew Jeffery Reviewed-by: Joel Stanley Signed-off-by: Quan Nguyen Signed-off-by: Phong Vo Signed-off-by: Thang Q. Nguyen --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2

[PATCH 0/2] ARM: dts: aspeed: Add Ampere Mt. Jade BMC device

2020-12-07 Thread Quan Nguyen
The Mt. Jade BMC is an ASPEED AST2500-based BMC for the Mt. Jade hardware reference platform with Ampere's Altra Processor Family. Quan Nguyen (2): dt-bindings: vendor-prefixes: Add an entry for AmpereComputing.com ARM: dts: aspeed: Add device tree for Ampere's Mt. Jade BMC

[PATCH] KVM: Documentation: Update description of KVM_{GET,CLEAR}_DIRTY_LOG

2020-12-07 Thread Zenghui Yu
Update various words, including the wrong parameter name and the vague description of the usage of "slot" field. Signed-off-by: Zenghui Yu --- Documentation/virt/kvm/api.rst | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Documentation/virt/kvm/api.rst

Re: [PATCH v4 1/4] dt-bindings/opp: Update documentation for opp-shared

2020-12-07 Thread Viresh Kumar
Subject should rather be: dt-bindings: opp: Allow empty OPP tables On 02-12-20, 17:23, Nicola Mazzucato wrote: > Currently the optional property opp-shared is used within an opp table > to tell that a set of devices share their clock/voltage lines (and the > opp points). > It is therefore

[PATCH v3 4/7] mm: memcontrol: convert NR_SHMEM_THPS account to pages

2020-12-07 Thread Muchun Song
The unit of NR_SHMEM_THPS is HPAGE_PMD_NR. Convert NR_SHMEM_THPS account to pages Signed-off-by: Muchun Song --- drivers/base/node.c | 3 +-- fs/proc/meminfo.c | 2 +- mm/filemap.c| 2 +- mm/huge_memory.c| 3 ++- mm/khugepaged.c | 2 +- mm/memcontrol.c | 26

[PATCH v3 5/7] mm: memcontrol: convert NR_SHMEM_PMDMAPPED account to pages

2020-12-07 Thread Muchun Song
The unit of NR_SHMEM_PMDMAPPED is HPAGE_PMD_NR. Convert NR_SHMEM_PMDMAPPED account to pages. Signed-off-by: Muchun Song --- drivers/base/node.c | 3 +-- fs/proc/meminfo.c | 2 +- mm/page_alloc.c | 3 +-- mm/rmap.c | 6 -- 4 files changed, 7 insertions(+), 7 deletions(-)

[PATCH v3 7/7] mm: memcontrol: make the slab calculation consistent

2020-12-07 Thread Muchun Song
Although the ratio of the slab is one, we also should read the ratio from the related memory_stats instead of hard-coding. And the local variable of size is already the value of slab_unreclaimable. So we do not need to read again. We can drop the ratio in struct memory_stat. This can make the

Re: [PATCH v2 5/5] locking/rwsem: Remove reader optimistic spinning

2020-12-07 Thread Davidlohr Bueso
On Fri, 20 Nov 2020, Waiman Long wrote: Reader optimistic spinning is helpful when the reader critical section is short and there aren't that many readers around. It also improves the chance that a reader can get the lock as writer optimistic spinning disproportionally favors writers much more

[PATCH v3 6/7] mm: memcontrol: convert NR_FILE_PMDMAPPED account to pages

2020-12-07 Thread Muchun Song
The unit of NR_FILE_PMDMAPPED is HPAGE_PMD_NR. Convert NR_FILE_PMDMAPPED account to pages. Signed-off-by: Muchun Song --- drivers/base/node.c | 3 +-- fs/proc/meminfo.c | 2 +- mm/rmap.c | 6 -- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/base/node.c

[PATCH v3 1/7] mm: memcontrol: fix NR_ANON_THPS account

2020-12-07 Thread Muchun Song
The unit of NR_ANON_THPS is HPAGE_PMD_NR already. So it should inc/dec by one rather than nr_pages. Fixes: 468c398233da ("mm: memcontrol: switch to native NR_ANON_THPS counter") Signed-off-by: Muchun Song Acked-by: Michal Hocko --- mm/memcontrol.c | 6 ++ 1 file changed, 2 insertions(+), 4

[PATCH v3 3/7] mm: memcontrol: convert NR_FILE_THPS account to pages

2020-12-07 Thread Muchun Song
The unit of NR_FILE_THPS is HPAGE_PMD_NR. Converrt NR_FILE_THPS account to pages. Signed-off-by: Muchun Song --- drivers/base/node.c | 3 +-- fs/proc/meminfo.c | 2 +- mm/filemap.c| 2 +- mm/huge_memory.c| 3 ++- mm/khugepaged.c | 2 +- mm/memcontrol.c | 5 ++--- 6 files

[PATCH v3 2/7] mm: memcontrol: convert NR_ANON_THPS account to pages

2020-12-07 Thread Muchun Song
The unit of NR_ANON_THPS is HPAGE_PMD_NR. Convert the NR_ANON_THPS account to pages. Signed-off-by: Muchun Song --- drivers/base/node.c | 3 +-- fs/proc/meminfo.c | 2 +- mm/huge_memory.c| 3 ++- mm/memcontrol.c | 20 ++-- mm/page_alloc.c | 2 +- mm/rmap.c

[PATCH v3 0/7] Convert all THP vmstat counters to pages

2020-12-07 Thread Muchun Song
Hi, This patch series is aimed to convert all THP vmstat counters to pages. The unit of some vmstat counters are pages, some are bytes, some are HPAGE_PMD_NR, and some are KiB. When we want to expose these vmstat counters to the userspace, we have to know the unit of the vmstat counters is which

Re: [PATCH 3/5] locking/rwsem: Enable reader optimistic lock stealing

2020-12-07 Thread Davidlohr Bueso
On Tue, 17 Nov 2020, Waiman Long wrote: If the optimistic spinning queue is empty and the rwsem does not have the handoff or write-lock bits set, it is actually not necessary to call rwsem_optimistic_spin() to spin on it. Instead, it can steal the lock directly as its reader bias is in the

RE: Re: [PATCH v13 0/3] scsi: ufs: Add Host Performance Booster Support

2020-12-07 Thread Daejun Park
> > On Mon, 2020-12-07 at 19:35 +0100, Greg KH wrote: > > > On Mon, Dec 07, 2020 at 06:26:03PM +, Christoph Hellwig wrote: > > > > On Mon, Dec 07, 2020 at 07:23:12PM +0100, Greg KH wrote: > > > > > What "real workload" test can be run on this to help show if it > > > > > is useful or not?

[PATCH V5 2/3] sched/core: Rename schedutil_cpu_util() and allow rest of the kernel to use it

2020-12-07 Thread Viresh Kumar
There is nothing schedutil specific in schedutil_cpu_util(), rename it to effective_cpu_util(). Also create and expose another wrapper sched_cpu_util() which can be used by other parts of the kernel, like thermal core (that will be done in a later commit). Acked-by: Rafael J. Wysocki

[PATCH V5 3/3] thermal: cpufreq_cooling: Reuse sched_cpu_util() for SMP platforms

2020-12-07 Thread Viresh Kumar
Several parts of the kernel are already using the effective CPU utilization (as seen by the scheduler) to get the current load on the CPU, do the same here instead of depending on the idle time of the CPU, which isn't that accurate comparatively. This is also the right thing to do as it makes the

[PATCH 2/3] arm64/mm: Define arch_get_mappable_range()

2020-12-07 Thread Anshuman Khandual
This overrides arch_get_mappable_range() on arm64 platform which will be used with recently added generic framework. It drops inside_linear_region() and subsequent check in arch_add_memory() which are no longer required. It also adds a VM_BUG_ON() check that would ensure that memhp_range_allowed()

[PATCH 3/3] s390/mm: Define arch_get_mappable_range()

2020-12-07 Thread Anshuman Khandual
This overrides arch_get_mappabble_range() on s390 platform which will be used with recently added generic framework. It drops a redundant similar check in vmem_add_mapping() while compensating __segment_load() with a new address range check to preserve the existing functionality. It also adds a

[PATCH V5 1/3] sched/core: Move schedutil_cpu_util() to core.c

2020-12-07 Thread Viresh Kumar
There is nothing schedutil specific in schedutil_cpu_util(), move it to core.c and define it only for CONFIG_SMP. Acked-by: Rafael J. Wysocki Signed-off-by: Viresh Kumar --- kernel/sched/core.c | 108 +++ kernel/sched/cpufreq_schedutil.c | 106

[PATCH 1/3] mm/hotplug: Prevalidate the address range being added with platform

2020-12-07 Thread Anshuman Khandual
This introduces memhp_range_allowed() which can be called in various memory hotplug paths to prevalidate the address range which is being added, with the platform. Then memhp_range_allowed() calls memhp_get_pluggable_range() which provides applicable address range depending on whether linear

[PATCH 0/3] mm/hotplug: Pre-validate the address range with platform

2020-12-07 Thread Anshuman Khandual
This series adds a mechanism allowing platforms to weigh in and prevalidate incoming address range before proceeding further with the memory hotplug. This helps prevent potential platform errors for the given address range, down the hotplug call chain, which inevitably fails the hotplug itself.

Re: [PATCH v2 1/9] KVM: x86: Add AMD SEV specific Hypercall3

2020-12-07 Thread Kalra, Ashish
I don’t think that the bitmap by itself is really a performance bottleneck here. Thanks, Ashish > On Dec 7, 2020, at 9:10 PM, Steve Rutherford wrote: > > On Mon, Dec 7, 2020 at 12:42 PM Sean Christopherson > wrote: >> >>> On Sun, Dec 06, 2020, Paolo Bonzini wrote: >>> On 03/12/20 01:34,

[PATCH V5 0/3] cpufreq_cooling: Get effective CPU utilization from scheduler

2020-12-07 Thread Viresh Kumar
Hi, This patchset makes the cpufreq_cooling driver reuse the CPU utilization metric provided by the scheduler instead of depending on idle and busy times of a CPU, which aren't that accurate to measure the busyness of a CPU for the next cycle. More details can be seen in the commit logs of the

Re: [PATCH v3 1/6] cpufreq: sun50i: add efuse_xlate to get efuse version.

2020-12-07 Thread Samuel Holland
Hello, On 12/7/20 8:37 PM, Shuosheng Huang wrote: > It's better to use efuse_xlate to extract the differentiated part > regarding different SoC. > > Signed-off-by: Shuosheng Huang > --- > drivers/cpufreq/sun50i-cpufreq-nvmem.c | 72 +- > 1 file changed, 48

[PATCH v2 18/21] staging: rtl8723bs: replace EID_BSSIntolerantChlReport

2020-12-07 Thread Ross Schmidt
Replace unique EID_BSSIntolerantChlReport constant with kernel provided WLAN_EID_BSS_INTOLERANT_CHL_REPORT from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 21/21] staging: rtl8723bs: remove ELEMENT_ID enum

2020-12-07 Thread Ross Schmidt
The ELEMENT_ID enum is no longer used, remove it. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/include/wifi.h | 76 1 file changed, 76 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/wifi.h b/drivers/staging/rtl8723bs/include/wifi.h index

[PATCH v2 20/21] staging: rtl8723bs: remove unused macros

2020-12-07 Thread Ross Schmidt
Remove many macros from wifi.h and ieee80211.h because they are unused. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/include/ieee80211.h | 5 - drivers/staging/rtl8723bs/include/wifi.h | 15 --- 2 files changed, 20 deletions(-) diff --git

[PATCH v2 17/21] staging: rtl8723bs: replace EID_BSSCoexistence

2020-12-07 Thread Ross Schmidt
Replace unique EID_BSSCoexistence constant with kernel provided WLAN_EID_BSS_COEX_2040 from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 08/21] staging: rtl8723bs: replace _DSSET_IE_

2020-12-07 Thread Ross Schmidt
Replace unique _DSSET_IE_ macro with kernel provdied WLAN_EID_DS_PARAMS from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c| 2 +- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 2 +- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 10

[PATCH v2 05/21] staging: rtl8723bs: replace WLAN_EID_VHT_OP_MODE_NOTIFY

2020-12-07 Thread Ross Schmidt
Replace unique WLAN_EID_VHT_OP_MODE_NOFITY macro with kernel provided WLAN_EID_OPMODE_NOTIF from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 2 +- drivers/staging/rtl8723bs/include/ieee80211.h | 1 - 2 files changed, 1 insertion(+), 2

[PATCH v2 19/21] staging: rtl8723bs: replace EID_EXTCapability

2020-12-07 Thread Ross Schmidt
Replace unique EID_EXTCapability constant with kernel provided WLAN_EID_EXT_CAPABILITY from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 +- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 4 ++-- 2 files changed, 3 insertions(+), 3

[PATCH v2 15/21] staging: rtl8723bs: replace _WAPI_IE_

2020-12-07 Thread Ross Schmidt
Replace unique _WAPI_IE_ macro with kernel provided WLAN_EID_BSS_AC_ACCESS_DELAY from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 ++-- drivers/staging/rtl8723bs/include/wifi.h | 1 - 2 files changed, 2 insertions(+), 3

[PATCH v2 16/21] staging: rtl8723bs: replace _MME_IE_

2020-12-07 Thread Ross Schmidt
Replace unique _MME_IE_ macro with kernel provided WLAN_EID_MMIE from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_security.c | 2 +- drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 +- drivers/staging/rtl8723bs/include/wifi.h | 1 - 3 files

[PATCH v2 11/21] staging: rtl8723bs: replace _COUNTRY_IE_

2020-12-07 Thread Ross Schmidt
Replace unique _COUNTRY_IE_ macro with kernel provided WLAN_EID_COUNTRY from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 2 +- drivers/staging/rtl8723bs/include/wifi.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v2 12/21] staging: rtl8723bs: replace _CHLGETXT_IE_

2020-12-07 Thread Ross Schmidt
Replace unique _CHLGETXT_IE_ macro with kernel provided WLAN_EID_CHALLENGE from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 8 drivers/staging/rtl8723bs/include/wifi.h | 1 - 2 files changed, 4 insertions(+), 5 deletions(-)

[PATCH v2 14/21] staging: rtl8723bs: replace _EXT_SUPPORTEDRATES_IE_

2020-12-07 Thread Ross Schmidt
Replace unique _EXT_SUPPORTEDRATES_IE_ macro with kernel provided WLAN_EID_EXT_SUPP_RATES from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c| 2 +- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 ++--

[PATCH v2 13/21] staging: rtl8723bs: replace _ERPINFO_IE_

2020-12-07 Thread Ross Schmidt
Replace unique _ERPINFO_IE_ macro with kernel provided WLAN_EID_ERP_INFO from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c| 12 ++-- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 6 +++---

[PATCH v2 07/21] staging: rtl8723bs: replace _SUPPORTEDRATES_IE_

2020-12-07 Thread Ross Schmidt
Replace unique _SUPPORTEDRATES_IE_ macro with kernel provided WLAN_EID_SUPP_RATES from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c | 4 ++-- .../staging/rtl8723bs/core/rtw_ieee80211.c| 4 ++--

[PATCH v2 10/21] staging: rtl8723bs: replace _IBSS_PARA_IE_

2020-12-07 Thread Ross Schmidt
Replace unique _IBSS_PARA_IE_ macro with kernel provided WLAN_EID_IBSS_PARAMS from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 2 +- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 4 ++-- drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c |

[PATCH v2 09/21] staging: rtl8723bs: replace _TIM_IE_

2020-12-07 Thread Ross Schmidt
Replace unique _TIM_IE_ macro with kernel provided WLAN_EID_DS_PARAMS from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c | 10 +- drivers/staging/rtl8723bs/core/rtw_cmd.c | 2 +- drivers/staging/rtl8723bs/core/rtw_recv.c | 4 ++--

[PATCH v2 06/21] staging: rtl8723bs: replace _SSID_IE_

2020-12-07 Thread Ross Schmidt
Replace unique _SSID_IE_ macro with kernel provided WLAN_EID_SSID from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c | 4 ++-- .../staging/rtl8723bs/core/rtw_ieee80211.c| 2 +- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 20

[PATCH v2 04/21] staging: rtl8723bs: use WLAN_EID_HT_OPERATION

2020-12-07 Thread Ross Schmidt
Replace unique _HT_EXTRA_INFO_IE_ and _HT_ADD_INFO_IE_ macros with kernel provided WLAN_EID_HT_OPERATION from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c| 10 +- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 2 +-

[PATCH v2 01/21] staging: rtl8723bs: use WLAN_EID_HT_CAPABILITY

2020-12-07 Thread Ross Schmidt
Replace unique WLAN_EID_HT_CAP, _HT_CAPABILITY_IE_, and EID_HTCapability with kernel provided WLAN_EID_HT_CAPABILITY from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c| 8 drivers/staging/rtl8723bs/core/rtw_cmd.c | 2 +-

[PATCH v2 03/21] staging: rtl8723bs: use WLAN_EID_RSN

2020-12-07 Thread Ross Schmidt
Replace unique _WPA2_IE_ID_, EID_WPA2, and _RSN_IE_2_ with kernel provided WLAN_EID_RSN from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c | 4 ++-- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 6 +++---

[PATCH v2 02/21] staging: rtl8723bs: use WLAN_EID_VENDOR_SPECIFIC

2020-12-07 Thread Ross Schmidt
Replace unique WLAN_EID_GENERIC, _WPA_IE_ID_, _SSN_IE_1_, and _VENDOR_SPECIFIC_IE_ macros with kernel provided WLAN_EID_VENDOR_SPECIFIC from linux/ieee80211.h. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c | 6 +++--- .../staging/rtl8723bs/core/rtw_ieee80211.c

[PATCH v2 00/21] replace unique macros and ELEMENT_ID

2020-12-07 Thread Ross Schmidt
This patch set replaces many macros and the ELEMENT_ID enum with the ieee80211_eid enum from linux/ieee80211.h. In several cases more than one macro or constant is replaced by one constant. As suggested, each constant replacement is separated into a distinct patch. Changes in v2: - Single patch

Re: [f2fs-dev] [PATCH v2 1/2] f2fs: add compress_mode mount option

2020-12-07 Thread Daeho Jeong
compression enabled regular files have different formats of node metadata on disk. So, using the "compress_mode=user,compress_extension=*" mount option, we want to make the metadata of files ready for compression and make them compressed whenever the user wants using new ioctls. 2020년 12월 8일 (화)

[PATCH 2/2] x86: Expose AVX512_FP16 for supported CPUID

2020-12-07 Thread Kyung Min Park
From: Cathy Zhang AVX512_FP16 is supported by Intel processors, like Sapphire Rapids. It could gain better performance for it's faster compared to FP32 while meets the precision or magnitude requirement. It's availability is indicated by CPUID.(EAX=7,ECX=0):EDX[bit 23]. Expose it in KVM

[PATCH] mhi: use irq_flags if client driver configures it

2020-12-07 Thread Carl Huang
If client driver has specified the irq_flags, mhi uses this specified irq_flags. Otherwise, mhi uses default irq_flags. The purpose of this change is to support one MSI vector for QCA6390. MHI will use one same MSI vector too in this scenario. In case of one MSI vector, IRQ_NO_BALANCING is

[PATCH 0/2] Enumerate and expose AVX512_FP16 feature

2020-12-07 Thread Kyung Min Park
Introduce AVX512_FP16 feature and expose it to KVM CPUID for processors that support it. KVM reports this information and guests can make use of it. Detailed information on the instruction and CPUID feature flag can be found in the latest "extensions" manual [1]. Reference: [1].

[PATCH 1/2] Enumerate AVX512 FP16 CPUID feature flag

2020-12-07 Thread Kyung Min Park
Enumerate AVX512 Half-precision floating point (FP16) CPUID feature flag. Compared with using FP32, using FP16 cut the number of bits required for storage in half, reducing the exponent from 8 bits to 5, and the mantissa from 23 bits to 10. Using FP16 also enables developers to train and run

Re: Re: [PATCH v6 0/6] Tegra210 audio graph card

2020-12-07 Thread Sameer Pujar
[1/3] ASoC: dt-bindings: tegra: Add graph bindings (no commit info) [2/3] ASoC: dt-bindings: tegra: Add json-schema for Tegra audio graph card (no commit info) [3/3] ASoC: tegra: Add audio graph based card driver (no commit info) I don't see above patches in linux-next

Re: [f2fs-dev] [PATCH v2 1/2] f2fs: add compress_mode mount option

2020-12-07 Thread Eric Biggers
On Tue, Dec 01, 2020 at 01:08:02PM +0900, Daeho Jeong wrote: > From: Daeho Jeong > > We will add a new "compress_mode" mount option to control file > compression mode. This supports "fs" and "user". In "fs" mode (default), > f2fs does automatic compression on the compression enabled files. > In

Re: [f2fs-dev] [PATCH v3] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

2020-12-07 Thread Eric Biggers
On Thu, Dec 03, 2020 at 03:56:15PM +0900, Daeho Jeong wrote: > From: Daeho Jeong > > Added two ioctl to decompress/compress explicitly the compression > enabled file in "compress_mode=user" mount option. > > Using these two ioctls, the users can make a control of compression > and decompression

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