Re: [RFC 00/20] TLB batching consolidation and enhancements

2021-01-31 Thread Nadav Amit
> On Jan 30, 2021, at 7:30 PM, Nicholas Piggin wrote: > > Excerpts from Nadav Amit's message of January 31, 2021 10:11 am: >> From: Nadav Amit >> >> There are currently (at least?) 5 different TLB batching schemes in the >> kernel: >> >> 1. Using mmu_gather (e.g., zap_page_range()). >> >> 2.

Re: [PATCH v4 1/2] x86/setup: always add the beginning of RAM as memblock.memory

2021-01-31 Thread Mike Rapoport
On Sat, Jan 30, 2021 at 04:37:54PM -0800, Linus Torvalds wrote: > On Sat, Jan 30, 2021 at 2:10 PM Mike Rapoport wrote: > > > > In either case, e820__memblock_setup() won't add the range 0x - 0x1000 > > to memblock.memory and later during memory map initialization this range is > > left outside

[PATCH] staging:rtl8712: remove unused enum WIFI_STATUS_CODE

2021-01-31 Thread Ivan Safonov
Improve readability. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8712/wifi.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/staging/rtl8712/wifi.h b/drivers/staging/rtl8712/wifi.h index 601d4ff607bc..1b32b3510093 100644 --- a/drivers/staging/rtl8712/wifi.h +++

[PATCH] staging:r8188eu: replace enum WIFI_STATUS_CODE with native kernel definitions

2021-01-31 Thread Ivan Safonov
Driver and kernel definitions are equal. Avoid code duplication, improve readability. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 44 +-- drivers/staging/rtl8188eu/include/wifi.h | 14 -- 2 files changed, 22 insertions(+), 36 deletions

[PATCH 3/3] MIPS: ftrace: Add DYNAMIC_FTRACE_WITH_REGS support

2021-01-31 Thread Jinyang He
In the past, we have always used the address of _mcount as the address of ftrace_caller. It reduces one ftrace_modify_code operation when do ftrace on modules on 64Bit platform in this way. In order to provide DYNAMIC_FTRACE_WITH_REGS, we have to take _mcount out of ftrace_caller and add a new defi

[PATCH 1/3] MIPS: ftrace: Fix N32 save registers

2021-01-31 Thread Jinyang He
CONFIG_64BIT is confusing. N32 also pass parameters by a0~a7. Signed-off-by: Jinyang He --- arch/mips/kernel/mcount.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/kernel/mcount.S b/arch/mips/kernel/mcount.S index cff52b2..808257a 100644 --- a/arch/mips/kernel

Re: [RFC 00/20] TLB batching consolidation and enhancements

2021-01-31 Thread Nadav Amit
> On Jan 30, 2021, at 11:57 PM, Nadav Amit wrote: > >> On Jan 30, 2021, at 7:30 PM, Nicholas Piggin wrote: >> >> Excerpts from Nadav Amit's message of January 31, 2021 10:11 am: >>> From: Nadav Amit >>> >>> There are currently (at least?) 5 different TLB batching schemes in the >>> kernel: >>

[PATCH 2/3] MIPS: ftrace: Combine ftrace_modify_code* into one function

2021-01-31 Thread Jinyang He
Behavior of ftrace_modify_code_2r() is similar to ftrace_modify_code_2(), just the order of modification changed. Add a new struct ftrace_insn to combine ftrace_modify_code with above two functions. The function is same with the original ftrace_modify_code when ftrace_insn.code[1] is DONT_SET. Sig

Re: [PATCH] tee: optee: remove need_resched() before cond_resched()

2021-01-31 Thread Rouven Czerwinski
Hi Jens, On 29.01.21 14:29, Jens Wiklander wrote: Hi Rouven and Sumit, On Mon, Jan 25, 2021 at 10:58 AM Jens Wiklander via OP-TEE wrote: Hi Rouven and Sumit, On Mon, Jan 25, 2021 at 10:55 AM Jens Wiklander wrote: Testing need_resched() before cond_resched() is not needed as an equivalent

Re: [PATCH] openrisc: use device tree to determine present cpus

2021-01-31 Thread Jan Henrik Weinstock
On 31/01/2021 00:03, Stafford Horne wrote: This looks good, one small comment below. Can you send the next patch as a v2? Using 'git format-patch -v2 ...' Sorry, was not aware of that, will do better next time! Should we warn on the else case? I think it is fine for the kernel to have ro

corrupted pvqspinlock in htab_map_update_elem

2021-01-31 Thread Dmitry Vyukov
Hi, I am testing the following the program: https://gist.github.com/dvyukov/e5c0a8ef220ef856363c1080b0936a9e on the latest upstream 6642d600b541b81931fb1ab0c041b0d68f77be7e and getting the following crash. Config is: https://gist.github.com/dvyukov/16d9905e5ef35e44285451f1d330ddbc The program upd

Re: [PATCH 1/2] ALSA: ac97: Constify static struct attribute_group

2021-01-31 Thread Takashi Iwai
On Sun, 31 Jan 2021 01:12:40 +0100, Rikard Falkeborn wrote: > > The only usage of ac97_adapter_attr_group is to put its address in an > array of pointers to const attribute_group structs. Make it const to > allow the compiler to put it in read-only memory. > > Signed-off-by: Rikard Falkeborn Th

Re: [PATCH 2/2] ALSA: hda: Constify static attribute_group

2021-01-31 Thread Takashi Iwai
On Sun, 31 Jan 2021 01:12:41 +0100, Rikard Falkeborn wrote: > > The only usage of hdac_dev_attr_group is to put its address in an array > of pointers to const attribute_group structs. Make it const to allow the > compiler to put it in read-only memory. > > Signed-off-by: Rikard Falkeborn Thanks

Re: [RFC PATCH v2] taskstats: add /proc/taskstats to fetch pid/tgid status

2021-01-31 Thread Weiping Zhang
On Wed, Jan 27, 2021 at 7:13 PM Balbir Singh wrote: > > On Fri, Jan 22, 2021 at 10:07:50PM +0800, Weiping Zhang wrote: > > Hello Balbir Singh, > > > > Could you help review this patch, thanks > > > > On Mon, Dec 28, 2020 at 10:10 PM Weiping Zhang wrote: > > > > > > Hi David, > > > > > > Could you

INFO: task can't die in iget5_locked

2021-01-31 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:b01f250d Add linux-next specific files for 20210129 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1340da08d0 kernel config: https://syzkaller.appspot.com/x/.config?x=725bc96dc234fda7 dashboard

[GIT PULL] LEDs chagnes for v5.11-rc

2021-01-31 Thread Pavel Machek
This pull is due to "leds: trigger: fix potential deadlock with libata" -- people find the warn annoying. It also contains new driver (still should be okay late in -rcs, right?) and two trivial fixes. Best regards, Pavel The followin

[PATCH v6 net-next 01/18] doc: marvell: add cm3-mem device tree bindings description

2021-01-31 Thread stefanc
From: Stefan Chulski Signed-off-by: Stefan Chulski --- Documentation/devicetree/bindings/net/marvell-pp2.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/marvell-pp2.txt b/Documentation/devicetree/bindings/net/marvell-pp2.txt index b783976..f9f8cc6

[PATCH v6 net-next 04/18] doc: marvell: add PPv2.3 description to marvell-pp2.txt

2021-01-31 Thread stefanc
From: Stefan Chulski Signed-off-by: Stefan Chulski --- Documentation/devicetree/bindings/net/marvell-pp2.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/marvell-pp2.txt b/Documentation/devicetree/bindings/net/marvell-pp2.txt index

[PATCH v6 net-next 03/18] net: mvpp2: add CM3 SRAM memory map

2021-01-31 Thread stefanc
From: Stefan Chulski This patch adds CM3 memory map and CM3 read/write callbacks. No functionality changes. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 7 +++ drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 63 +++- 2 files changed, 67

[PATCH v6 net-next 08/18] net: mvpp2: increase RXQ size to 1024 descriptors

2021-01-31 Thread stefanc
From: Stefan Chulski RXQ size increased to support Firmware Flow Control. Minimum depletion thresholds to support FC is 1024 buffers. Default set to 1024 descriptors and maximum size to 2048. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 4 ++-- 1 file changed,

[PATCH v6 net-next 09/18] net: mvpp2: add FCA periodic timer configurations

2021-01-31 Thread stefanc
From: Stefan Chulski Flow Control periodic timer would be used if port in XOFF to transmit periodic XOFF frames. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 13 +- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 45 2 files cha

[PATCH v6 net-next 16/18] net: mvpp2: set 802.3x GoP Flow Control mode

2021-01-31 Thread stefanc
From: Stefan Chulski This patch fix GMAC TX flow control autoneg. Flow control autoneg wrongly were disabled with enabled TX flow control. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH v6 net-next 06/18] net: mvpp2: always compare hw-version vs MVPP21

2021-01-31 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 n

[PATCH v6 net-next 18/18] net: mvpp2: add TX FC firmware check

2021-01-31 Thread stefanc
From: Stefan Chulski Patch check that TX FC firmware is running in CM3. If not, global TX FC would be disabled. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 1 + drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 42 2 files changed,

[PATCH v6 net-next 10/18] net: mvpp2: add FCA RXQ non occupied descriptor threshold

2021-01-31 Thread stefanc
From: Stefan Chulski The firmware needs to monitor the RX Non-occupied descriptor bits for flow control to move to XOFF mode. These bits need to be unmasked to be functional, but they will not raise interrupts as we leave the RX exception summary bit in MVPP2_ISR_RX_TX_MASK_REG clear. Signed-off

[PATCH v6 net-next 11/18] net: mvpp2: enable global flow control

2021-01-31 Thread stefanc
From: Stefan Chulski This patch enables global flow control in FW and in the phylink validate mask. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 13 ++--- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 30 +++- 2 files changed, 38 i

[PATCH v6 net-next 07/18] net: mvpp2: increase BM pool size to 2048 buffers

2021-01-31 Thread stefanc
From: Stefan Chulski BM pool size increased to support Firmware Flow Control. Minimum depletion thresholds to support FC is 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, so memory r

Re: [RFC 13/20] mm/tlb: introduce tlb_start_ptes() and tlb_end_ptes()

2021-01-31 Thread Damian Tometzki
On Sat, 30. Jan 16:11, Nadav Amit wrote: > From: Nadav Amit > > Introduce tlb_start_ptes() and tlb_end_ptes() which would be called > before and after PTEs are updated and TLB flushes are deferred. This > will be later be used for fine granualrity deferred TLB flushing > detection. > > In the me

[PATCH v6 net-next 12/18] net: mvpp2: add RXQ flow control configurations

2021-01-31 Thread stefanc
From: Stefan Chulski This patch add RXQ flow control configurations. Patch do not enable flow control itself, flow control disabled by default. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 35 +- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 114

[PATCH v6 net-next 14/18] net: mvpp2: add BM protection underrun feature support

2021-01-31 Thread stefanc
From: Stefan Chulski Feature double size of BPPI by decreasing number of pools from 16 to 8. Increasing of BPPI size protect BM drop from BPPI underrun. Underrun could occurred due to stress on DDR and as result slow buffer transition from BPPE to BPPI. New BPPI threshold recommended by spec is:

[PATCH v6 net-next 15/18] net: mvpp2: add PPv23 RX FIFO flow control

2021-01-31 Thread stefanc
From: Stefan Chulski New FIFO flow control feature were added in PPv23. PPv2 FIFO polled by HW and trigger pause frame if FIFO fill level is below threshold. FIFO HW flow control enabled with CM3 RXQ&BM flow control with ethtool. Current FIFO thresholds is: 9KB for port with maximum speed 10Gb/s

[PATCH v6 net-next 13/18] net: mvpp2: add ethtool flow control configuration support

2021-01-31 Thread stefanc
From: Stefan Chulski This patch add ethtool flow control configuration support. Tx flow control retrieved correctly by ethtool get function. FW per port ethtool configuration capability added. Patch also takes care about mtu change procedure, if PPv2 switch BM pools during mtu change. Signed-o

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

2021-01-31 Thread Mykyta Poturai
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 undesirable to connect the HPD pin, or the connection is brok

Re: Process-wide watchpoints

2021-01-31 Thread Dmitry Vyukov
On Thu, Nov 12, 2020 at 11:43 AM Dmitry Vyukov wrote: > > > for sampling race detection), > > > number of threads in the process can be up to, say, ~~10K and the > > > watchpoint is intended to be set for a very brief period of time > > > (~~few ms). > > > > Performance is a consideration here, do

Re: [PATCH] riscv: virt_addr_valid must check the address belongs to linear mapping

2021-01-31 Thread Dmitry Vyukov
On Fri, Jan 29, 2021 at 6:31 PM Alexandre Ghiti wrote: > > virt_addr_valid macro checks that a virtual address is valid, ie that > the address belongs to the linear mapping and that the corresponding > physical page exists. > > Add the missing check that ensures the virtual address belongs to the

[PATCH 2/2] dt-bindings: display: Add "disable-hpd" binding

2021-01-31 Thread Mykyta Poturai
Add the "disable-hpd" binding, used to disable hotplug detected functionality in the driver. When it's enabled the driver assumes that the connector is always connected and disables the hotplug detect related IRQ. Signed-off-by: Mykyta Poturai --- .../devicetree/bindings/display/bridge/renesas,d

Re: [RFC 13/20] mm/tlb: introduce tlb_start_ptes() and tlb_end_ptes()

2021-01-31 Thread Damian Tometzki
On Sat, 30. Jan 16:11, Nadav Amit wrote: > From: Nadav Amit > > Introduce tlb_start_ptes() and tlb_end_ptes() which would be called > before and after PTEs are updated and TLB flushes are deferred. This > will be later be used for fine granualrity deferred TLB flushing > detection. > > In the me

[PATCH v6 net-next 05/18] net: mvpp2: add PPv23 version definition

2021-01-31 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] ALSA: intel8x0: Fix missing check in snd_intel8x0m_create

2021-01-31 Thread Dinghao Liu
When device_type == DEVICE_ALI, we should also check the return value of pci_iomap() to avoid potential null pointer dereference. Signed-off-by: Dinghao Liu --- sound/pci/intel8x0m.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m

[PATCH] arm64: dts: mt8183: Fix GCE include path

2021-01-31 Thread matthias . bgg
From: Matthias Brugger The header file of GCE should be for MT8183 SoC instead of MT8173. Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") Reported-by: CK Hu Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 +- 1 file changed, 1 insert

Re: [PATCH v3 1/2] dt-bindings: power: Add MT8167 power domains

2021-01-31 Thread Matthias Brugger
On 09/12/2020 14:32, Fabien Parent wrote: > Add power domains dt-bindings for MT8167. > > Signed-off-by: Fabien Parent > Acked-by: Rob Herring Both patches applied to v5.11-next/soc Thanks! > --- > This patch was made on top of > https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bg

Re: [PATCH v2] tpm_tis: Add missing tpm_request/relinquish_locality calls

2021-01-31 Thread Dirk Gouders
Jarkko Sakkinen writes: > On Thu, 2021-01-28 at 14:07 +0100, Lukasz Majczak wrote: >> There is a missing call to tpm_request_locality before the call to >> the tpm_get_timeouts() and tpm_tis_probe_irq_single(). As the current >> approach might work for tpm2, it fails for tpm1.x - in that case >>

Re: [PATCH v3 2/2] arm64: dts: mediatek: mt8516: add support for APDMA

2021-01-31 Thread Matthias Brugger
On 09/12/2020 12:47, Fabien Parent wrote: > Add support the APDMA IP on MT8516. APDMA is a DMA controller > for UARTs. > > Signed-off-by: Fabien Parent > --- > Applied to v5.11-next/dts64 Thanks a lot! > V3: remove unicode symbol that slips into patch summary > V2: Add missing dma-names pr

Re: Process-wide watchpoints

2021-01-31 Thread Dmitry Vyukov
On Sun, Jan 31, 2021 at 11:04 AM Dmitry Vyukov wrote: > > On Thu, Nov 12, 2020 at 11:43 AM Dmitry Vyukov wrote: > > > > for sampling race detection), > > > > number of threads in the process can be up to, say, ~~10K and the > > > > watchpoint is intended to be set for a very brief period of time

Re: [PATCH v2] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-31 Thread Jonathan Cameron
On Mon, 25 Jan 2021 12:21:35 +0100 Ahmad Fatoum wrote: > Hello Jonathan, > > On 24.01.21 16:22, Jonathan Cameron wrote: > > On Fri, 22 Jan 2021 12:33:55 +0100 > > Ahmad Fatoum wrote: > > > >> For non-DMA usage, we have an easy way to associate a timestamp with a > >> sample: iio_pollfunc_sto

Re: [PATCH v2 resend] iio: imu: bmi160: add mutex_lock for avoiding race

2021-01-31 Thread Jonathan Cameron
On Mon, 25 Jan 2021 09:53:44 +0800 Guoqing Chi wrote: > From: chiguoqing > > Adding mutex_lock, when read and write reg need to use this lock to > avoid race. > > Signed-off-by: Guoqing Chi > Reviewed-by: Tom Rix Hi. Looking at this again, I'm not entirely sure I understand what the race i

Re: [Linux-stm32] [PATCH] iio: adc: stm32-adc: fix erroneous handling of spurious IRQs

2021-01-31 Thread Jonathan Cameron
On Tue, 26 Jan 2021 16:52:37 +0100 Fabrice Gasnier wrote: > On 1/22/21 1:18 PM, Ahmad Fatoum wrote: > > Hello Fabrice, > > > > On 19.01.21 18:56, Fabrice Gasnier wrote: > >> On 1/18/21 12:42 PM, Ahmad Fatoum wrote: > >>> Hello Jonathan, > >>> > >>> On 16.01.21 18:53, Jonathan Cameron wrote:

Re: [PATCH 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver

2021-01-31 Thread Jonathan Cameron
... > > > + > > > +#ifdef CONFIG_OF > > > > As a general rule, we are trying to clear out protections on CONFIG_OF etc > > and use of of_match_ptr() on the basis they don't really gain us anything > > and prevent use of some other firmware types. Here I guess you know what > > your firmware loo

[PATCH v6 net-next 17/18] net: mvpp2: limit minimum ring size to 1024 descriptors

2021-01-31 Thread stefanc
From: Stefan Chulski To support Flow Control ring size should be at least 1024 descriptors. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/eth

[PATCH v6 net-next 02/18] dts: marvell: add CM3 SRAM memory to cp115 ethernet device tree

2021-01-31 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 | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot

Re: [PATCH v1] arm64: dts: mt8192: add nor_flash device node

2021-01-31 Thread Matthias Brugger
On 10/12/2020 09:34, Bayi Cheng wrote: > From: bayi cheng > > add nor_flash device node > > Signed-off-by: bayi cheng > --- > arch/arm64/boot/dts/mediatek/mt8192.dtsi | 13 + > 1 file changed, 13 insertions(+) > Applied to v5.11-next/dts64 Thanks > diff --git a/arch/arm64/bo

Re: [PATCH 1/1] iommu/vt-d: Add qi_submit trace event

2021-01-31 Thread Dirk Gouders
Lu Baolu writes: > This adds a new trace event to track the submissions of requests to the > invalidation queue. This event will provide the information like: > - IOMMU name > - Invalidation type > - Descriptor raw data > > A sample output like: > | qi_submit: iotlb_inv dmar1: 0x100e2 0x0 0x0 0x0

RE: [EXT] Re: [PATCH v5 net-next 00/18] net: mvpp2: Add TX Flow Control support

2021-01-31 Thread Stefan Chulski
> > Hi Stefan, looks like patchwork and lore didn't get all the emails: > > https://urldefense.proofpoint.com/v2/url?u=https- > 3A__lore.kernel.org_r_1611858682-2D9845-2D1-2Dgit-2Dsend-2Demail- > 2Dstefanc- > 40marvell.com&d=DwICAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=DDQ3dKwkTIx > KAl6_Bs7GMx4zhJArrXKN2mD

[PATCH v6 net-next 00/18] net: mvpp2: Add TX Flow Control support

2021-01-31 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 a

[PULL REQUEST] i2c for 5.11

2021-01-31 Thread Wolfram Sang
Linus, one I2C driver update this time. Please pull. Thanks, Wolfram The following changes since commit 6ee1d745b7c9fd573fba142a2efdad76a9f1cb04: Linux 5.11-rc5 (2021-01-24 16:47:14 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linu

[GIT PULL] x86/entry for v5.11-rc6

2021-01-31 Thread Borislav Petkov
Hi Linus, please pull x86/entry for v5.11-rc6. This was originally going to go during the merge window but people can already trigger a build error with binutils-2.36 which doesn't emit section symbols - something which objtool relies on - so let's expedite it. Thx. --- The following changes s

Re: [RFC PATCH v3 1/1] iio/scmi: Adding support for IIO SCMI Based Sensors

2021-01-31 Thread Jonathan Cameron
On Sat, 30 Jan 2021 21:21:41 + Cristian Marussi wrote: > Hi Jyoti, > > On Fri, Jan 29, 2021 at 02:43:13PM -0800, Jyoti Bhayana wrote: > > Hi Christian, > > > > I have addressed your feedback in v4 of the patch. Please find below > > the answers to some of your questions: > > >The init

[PATCH v3 net-next 2/5] skbuff: constify skb_propagate_pfmemalloc() "page" argument

2021-01-31 Thread Alexander Lobakin
The function doesn't write anything to the page struct itself, so this argument can be const. Misc: align second argument to the brace while at it. Signed-off-by: Alexander Lobakin Reviewed-by: Jesse Brandeburg Acked-by: David Rientjes --- include/linux/skbuff.h | 4 ++-- 1 file changed, 2 in

Re: [PATCH 8/8] perf arm-spe: Set thread TID

2021-01-31 Thread Leo Yan
Hi James, On Tue, Jan 19, 2021 at 04:46:58PM +0200, James Clark wrote: > From: Leo Yan > > Set thread TID for SPE samples. Now that the context ID is saved > in each record it can be used to set the TID for a sample. > > The context ID is only present in SPE data if the kernel is > compiled wit

[PATCH v3 net-next 4/5] net: use the new dev_page_is_reusable() instead of private versions

2021-01-31 Thread Alexander Lobakin
Now we can remove a bunch of identical functions from the drivers and make them use common dev_page_is_reusable(). All {,un}likely() checks are omitted since it's already present in this helper. Also update some comments near the call sites. Suggested-by: David Rientjes Suggested-by: Jakub Kicins

Re: Migration to trusted keys: sealing user-provided key?

2021-01-31 Thread Mimi Zohar
On Sat, 2021-01-30 at 19:53 +0200, Jarkko Sakkinen wrote: > On Thu, 2021-01-28 at 18:31 +0100, Ahmad Fatoum wrote: > > Hello, > > > > I've been looking into how a migration to using trusted/encrypted keys > > would look like (particularly with dm-crypt). > > > > Currently, it seems the the only w

Re: [PATCH v3 2/2] counter: add GPIO based pulse counters

2021-01-31 Thread Jonathan Cameron
On Tue, 26 Jan 2021 09:07:57 +0100 Oleksij Rempel wrote: > Hi Jonathan, > > On Sun, Jan 24, 2021 at 02:47:37PM +, Jonathan Cameron wrote: > > On Fri, 22 Jan 2021 12:24:34 +0100 > > Oleksij Rempel wrote: > > > > > Add simple GPIO base pulse counter. This device is used to measure > > > ro

[GIT PULL] Please pull powerpc/linux.git powerpc-5.11-6 tag

2021-01-31 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull another powerpc fix for 5.11: The following changes since commit 08685be7761d69914f08c3d6211c543a385a5b9c: powerpc/64s: fix scv entry fallback flush vs interrupt (2021-01-20 15:58:19 +1100) are available in the git reposi

Re: [RFC PATCH v3 1/1] iio/scmi: Adding support for IIO SCMI Based Sensors

2021-01-31 Thread Jonathan Cameron
On Fri, 29 Jan 2021 14:50:20 -0800 Jyoti Bhayana wrote: > Hi Peter, > > I have modified the comments in v4 of that patch. Regarding your > suggestion of this driver handling a greater value range > by adjusting the scale accordingly, it would also require the driver > to change the sensor readin

Re: [PATCH v2 3/3] arm64: dts: mediatek: mt8183: Add domain supply for mfg

2021-01-31 Thread Matthias Brugger
On 29/01/2021 11:12, Hsin-Yi Wang wrote: > Add domain supply node. > > Signed-off-by: Hsin-Yi Wang > --- Applied to v5.11-next/dts64 Thanks > arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 4 > arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 +- > 2 files changed, 5 insertions(+)

Re: [PATCH v2 1/3] dt-bindings: power: Add domain regulator supply

2021-01-31 Thread Matthias Brugger
On 29/01/2021 11:12, Hsin-Yi Wang wrote: > Some power domains (eg. mfg) needs to turn on power supply before power > on. > > Signed-off-by: Hsin-Yi Wang > Reviewed-by: Rob Herring > Reviewed-by: Enric Balletbo i Serra Applied to v5.11-next/soc Thanks > --- > .../bindings/power/mediatek,p

Re: [PATCH v2 2/3] soc: mediatek: pm-domains: Add domain regulator supply

2021-01-31 Thread Matthias Brugger
On 29/01/2021 11:12, Hsin-Yi Wang wrote: > Some power domains (eg. mfg) needs to turn on power supply before power > on. > > Signed-off-by: Hsin-Yi Wang > Reviewed-by: Nicolas Boichat > Reviewed-by: Enric Balletbo i Serra Applied to v5.11-next/soc Thanks > --- > drivers/soc/mediatek/mt81

Re: [PATCH 1/2] iio:adc:ti-ads124s08: Fix start stop conversion command

2021-01-31 Thread Jonathan Cameron
On Thu, 21 Jan 2021 13:14:30 -0600 Dan Murphy wrote: > Fix start and stop conversion commands. The proper command is not be > sent. > > Fixes: ("e717f8c6dfec iio: adc: Add the TI ads124s08 ADC code") That's not the right format for a fixes, tag. I fixed it whilst applying. > Signed-off-by: Da

Re: [PATCH v13 0/8] drm/mediatek: add support for mediatek SOC MT8183

2021-01-31 Thread Matthias Brugger
On 29/01/2021 10:22, Hsin-Yi Wang wrote: > This series is based on kernel/git/chunkuang.hu/linux.git mediatek-drm-next > The series is tested on a mt8183 krane device. > > Change since v12 > - fix mtk_dither_config > > Change since v10, v11 > - fix review comments in v9 > > Change since v9 >

Re: [PATCH V2] rtc: mc146818: Detect and handle broken RTCs

2021-01-31 Thread Dirk Gouders
Thomas Gleixner writes: > The recent fix for handling the UIP bit unearthed another issue in the RTC > code. If the RTC is advertised but the readout is straight 0xFF because > it's not available, the old code just proceeded with crappy values, but the > new code hangs because it waits for the UI

Re: [PATCH v2] arm64: dts: mt8192: add nor_flash device node

2021-01-31 Thread Matthias Brugger
On 23/12/2020 05:22, Bayi Cheng wrote: > From: bayi cheng > > add nor_flash device node > > Change-Id: I79f0228529bd8a33e5f354b7a861a4ec8d92e9ba Applied to v5.11-next/dts64 I dropped the Change-Id. In the future please make sure to not include this tag in upstream submissions. Thanks! > Si

Re: [PATCH] soc: mediatek: cmdq: Remove cmdq_pkt_flush()

2021-01-31 Thread Matthias Brugger
On 30/01/2021 10:45, Chun-Kuang Hu wrote: > Hi, Matthias: > > Chun-Kuang Hu 於 2021年1月10日 週日 上午6:59寫道: >> >> Hi, Matthias: >> >> Chun-Kuang Hu 於 2020年12月3日 週四 上午7:59寫道: >>> >>> rx_callback is a standard mailbox callback mechanism and could >>> cover the function of proprietary cmdq_task_cb, so

Re: [PATCH] soc: qcom: ocmem: don't return NULL in of_get_ocmem

2021-01-31 Thread Brian Masney
On Sat, Jan 30, 2021 at 03:23:49PM +0100, Luca Weiss wrote: > If ocmem probe fails for whatever reason, of_get_ocmem returned NULL. > Without this, users must check for both NULL and IS_ERR on the returned > pointer - which didn't happen in drivers/gpu/drm/msm/adreno/adreno_gpu.c > leading to a NUL

extended bpf_send_signal_thread with argument

2021-01-31 Thread Dmitry Vyukov
Hi, I would like to send a signal from a bpf program invoked from a perf_event. There is: // kernel/trace/bpf_trace.c BPF_CALL_1(bpf_send_signal_thread, u32, sig) which is nice, but it does not allow me to pass any arguments. I can use a bpf map indexed by pid to "pass" some additional info, but

Re: [PATCH RESEND v5 8/8] arm64: dts: mt6359: add PMIC MT6359 related nodes

2021-01-31 Thread Matthias Brugger
On 29/01/2021 10:49, Hsin-Hsiung Wang wrote: > From: Wen Su > > add PMIC MT6359 related nodes which is for MT6779 platform > > Signed-off-by: Wen Su > Signed-off-by: Hsin-Hsiung Wang > --- > changes since v4: > - add pmic MT6359 support in the MT8192 evb dts. > --- > arch/arm64/boot/dts/me

[PATCH 1/1] vsock: fix the race conditions in multi-transport support

2021-01-31 Thread Alexander Popov
There are multiple similar bugs implicitly introduced by the commit c0cfa2d8a788fcf4 ("vsock: add multi-transports support") and commit 6a2c0962105ae8ce ("vsock: prevent transport modules unloading"). The bug pattern: [1] vsock_sock.transport pointer is copied to a local variable, [2] lock_sock(

Re: [RFC 03/20] mm/mprotect: do not flush on permission promotion

2021-01-31 Thread Andrew Cooper
On 31/01/2021 02:59, Andy Lutomirski wrote: diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h index 8c87a2e0b660..a617dc0a9b06 100644 --- a/arch/x86/include/asm/tlbflush.h +++ b/arch/x86/include/asm/tlbflush.h @@ -255,6 +255,50 @@ static i

[PATCH] ARM: dts: imx6qdl-wandboard: add scl/sda gpios definitions for i2c bus recovery

2021-01-31 Thread Dima Azarkin
The i2c bus on imx6qdl-wandboard has intermittent issues where SDA can freeze on low level at the end of transaction so the bus can no longer work. This impacts reading of EDID data leading to incorrect TV resolution and no audio. This scenario is improved by adding scl/sda gpios definitions to im

Re: [PATCH v13 1/8] arm64: dts: mt8183: rename rdma fifo size

2021-01-31 Thread Matthias Brugger
Hi Hsin-Yi, On 29/01/2021 10:22, Hsin-Yi Wang wrote: > From: Yongqiang Niu > > property name must include only lowercase and '-' > > Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") > Signed-off-by: Yongqiang Niu > Signed-off-by: Hsin-Yi Wang > Reviewed-by: Chun-Kuang

[GIT PULL] efi/urgent for v5.11-rc6

2021-01-31 Thread Borislav Petkov
Hi Linus, please pull a (forwarded) single EFI urgent fix for v5.11-rc6. Thx. --- The following changes since commit 5c8fe583cce542aa0b84adc939ce85293de36e5e: Linux 5.11-rc1 (2020-12-27 15:30:22 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/

Re: [PATCH v1] arm64: dts: mt8192: add nor_flash device node

2021-01-31 Thread Matthias Brugger
On 31/01/2021 11:26, Matthias Brugger wrote: > > > On 10/12/2020 09:34, Bayi Cheng wrote: >> From: bayi cheng >> >> add nor_flash device node >> >> Signed-off-by: bayi cheng >> --- >> arch/arm64/boot/dts/mediatek/mt8192.dtsi | 13 + >> 1 file changed, 13 insertions(+) >> > > Appli

Re: [PATCH v3 net-next 3/5] net: introduce common dev_page_is_reusable()

2021-01-31 Thread Matthew Wilcox
On Sun, Jan 31, 2021 at 12:11:52PM +, Alexander Lobakin wrote: > A bunch of drivers test the page before reusing/recycling for two > common conditions: > - if a page was allocated under memory pressure (pfmemalloc page); > - if a page was allocated at a distant memory node (to exclude >sl

Re: [PATCH 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver

2021-01-31 Thread Jonathan Cameron
... > > > > > > +static const struct of_device_id cros_ec_proximity_of_match[] = { > > > > > > + { .compatible = "google,cros-ec-proximity" }, > > > > > > + {} > > > > > > +}; > > > > > > +MODULE_DEVICE_TABLE(of, cros_ec_proximity_of_match); > > > > > > +#endif > > > > > > + > > > > > > +s

Re: [PATCH 2/3] hid-sensor-common: Add relative sensitivity check

2021-01-31 Thread Jonathan Cameron
On Fri, 29 Jan 2021 00:35:49 +0800 "Ye, Xiang" wrote: > Hi Srinivas andd Jonathan > > Thanks for the review. > > On Sun, Jan 24, 2021 at 08:20:12AM -0800, Srinivas Pandruvada wrote: > > On Sun, 2021-01-24 at 13:14 +, Jonathan Cameron wrote: > > > On Wed, 20 Jan 2021 15:47:05 +0800 > > > Y

[PATCH v3 net-next 5/5] net: page_pool: simplify page recycling condition tests

2021-01-31 Thread Alexander Lobakin
pool_page_reusable() is a leftover from pre-NUMA-aware times. For now, this function is just a redundant wrapper over page_is_pfmemalloc(), so inline it into its sole call site. Signed-off-by: Alexander Lobakin Acked-by: Jesper Dangaard Brouer Reviewed-by: Ilias Apalodimas Reviewed-by: Jesse Br

Re: [PATCH] iio: fix typo

2021-01-31 Thread Jonathan Cameron
On Thu, 28 Jan 2021 10:19:05 +0800 zuoqil...@163.com wrote: > From: zuoqilin > > change 'regster' to 'register' > > Signed-off-by: zuoqilin Applied. thanks, Jonathan > --- > drivers/iio/dac/ad5791.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/dac/a

Re: [PATCH v8 2/2] iio: accel: Add support for the Bosch-Sensortec BMI088

2021-01-31 Thread Jonathan Cameron
On Mon, 25 Jan 2021 16:07:32 +0100 Mike Looijmans wrote: > The BMI088 is a combined module with both accelerometer and gyroscope. > This adds the accelerometer driver support for the SPI interface. > The gyroscope part is already supported by the BMG160 driver. > > Signed-off-by: Mike Looijmans

Re: [PATCH v3 net-next 1/5] mm: constify page_is_pfmemalloc() argument

2021-01-31 Thread Matthew Wilcox
On Sun, Jan 31, 2021 at 12:11:30PM +, Alexander Lobakin wrote: > The function only tests for page->index, so its argument should be > const. > > Signed-off-by: Alexander Lobakin > Reviewed-by: Jesse Brandeburg > Acked-by: David Rientjes Reviewed-by: Matthew Wilcox (Oracle)

[GIT pull] core/urgent for v5.11-rc6

2021-01-31 Thread Thomas Gleixner
Linus, please pull the latest core/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-urgent-2021-01-31 up to: 41c1a06d1d15: entry: Unbreak single step reporting behaviour A single fix for the single step reporting regression caused by getting the condition

[GIT pull] timers/urgent for v5.11-rc6

2021-01-31 Thread Thomas Gleixner
Linus, please pull the latest timers/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-2021-01-31 up to: 211e5db19d15: rtc: mc146818: Detect and handle broken RTCs A fix for handling advertised, but non-existent 146818 RTCs correctly. With the rec

Re: [PATCH 1/3] MIPS: ftrace: Fix N32 save registers

2021-01-31 Thread Jiaxun Yang
On Sun, Jan 31, 2021, at 4:14 PM, Jinyang He wrote: > CONFIG_64BIT is confusing. N32 also pass parameters by a0~a7. Do we have NEW kernel build? CONFIG_64BIT assumed N64 as kernel ABI. -Jiaxun > > Signed-off-by: Jinyang He > --- > arch/mips/kernel/mcount.S | 4 ++-- > 1 file changed, 2 in

Re: [PATCH v10] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2021-01-31 Thread Matthias Brugger
On 29/12/2020 07:17, Hector Yuan wrote: > The CPUfreq HW present in some Mediatek chipsets offloads the steps necessary > for changing the frequency of CPUs. > The driver implements the cpufreq driver interface for this hardware engine. > This patch depends on MT6779 DTS patchset[1] submitted

Re: [PATCH v8 00/14] Move Hisilicon 6421v600 SPMI and USB drivers out of staging

2021-01-31 Thread Greg Kroah-Hartman
On Fri, Jan 29, 2021 at 08:51:46PM +0100, Mauro Carvalho Chehab wrote: > Hi Greg/Mark/Lee/Vinod, > > Another rebase , also the top of staging-testing. > > This series contain the remaining patches for USB to start working, > except for a final DTS patch. > > Patches 1 and 2 convert the SPMI and

Re: [PATCH v3 2/3] dt-bindings: iio: Add cros ec proximity yaml doc

2021-01-31 Thread Jonathan Cameron
On Thu, 28 Jan 2021 09:11:32 -0800 Stephen Boyd wrote: > Quoting Enric Balletbo Serra (2021-01-28 01:44:23) > > Missatge de Stephen Boyd del dia dj., 28 de gen. > > 2021 a les 9:45: > > > + > > > + label: > > > +description: Name for proximity sensor > > > + > > > +required: > > > + - co

Re: [PATCH v3 net-next 5/5] net: page_pool: simplify page recycling condition tests

2021-01-31 Thread Matthew Wilcox
On Sun, Jan 31, 2021 at 12:12:11PM +, Alexander Lobakin wrote: > pool_page_reusable() is a leftover from pre-NUMA-aware times. For now, > this function is just a redundant wrapper over page_is_pfmemalloc(), > so inline it into its sole call site. Why doesn't this want to use {dev_}page_is_reus

drivers/usb/host/fhci-hcd.c:59:16: sparse: sparse: cast to restricted __be16

2021-01-31 Thread kernel test robot
-randconfig-s031-20210131 (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3

Re: [PATCH v3 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver

2021-01-31 Thread Jonathan Cameron
On Thu, 28 Jan 2021 00:40:11 -0800 Stephen Boyd wrote: > Add support for a ChromeOS EC proximity driver that exposes a "front" > proximity sensor via the IIO subsystem. The EC decides when front > proximity is near and sets an MKBP switch 'EC_MKBP_FRONT_PROXIMITY' to > notify the kernel of proxim

[PATCH] ARM: dts: imx6qdl-wandboard: add scl/sda gpios definitions for i2c bus recovery

2021-01-31 Thread Dima Azarkin
The i2c bus on imx6qdl-wandboard has intermittent issues where SDA can freeze on low level at the end of transaction so the bus can no longer work. This impacts reading of EDID data leading to incorrect TV resolution and no audio. This scenario is improved by adding scl/sda gpios definitions to im

Re: [PATCH] serial: 8250: add option to disable registration of legacy ISA ports

2021-01-31 Thread Greg Kroah-Hartman
On Thu, Jan 28, 2021 at 05:22:44PM +, Mans Rullgard wrote: > On systems that do not have the traditional PC ISA serial ports, the > 8250 driver still creates non-functional device nodes. This change > makes only ports that actually exist (PCI, DT, ...) get device nodes. > > Signed-off-by: Man

Re: [PATCH v3 net-next 5/5] net: page_pool: simplify page recycling condition tests

2021-01-31 Thread Alexander Lobakin
From: Matthew Wilcox Date: Sun, 31 Jan 2021 12:23:48 + > On Sun, Jan 31, 2021 at 12:12:11PM +, Alexander Lobakin wrote: > > pool_page_reusable() is a leftover from pre-NUMA-aware times. For now, > > this function is just a redundant wrapper over page_is_pfmemalloc(), > > so inline it into

  1   2   3   4   5   6   >