[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

[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

[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

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

[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 ---

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

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,

[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

[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.

[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 flow control with ethtool. Current FIFO thresholds is: 9KB for port with maximum speed 10Gb/s

[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 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

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

[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

[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

[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.

[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 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

[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

[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

[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

[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,

[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

[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

[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

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

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

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

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

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

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

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

[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.

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 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

[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 ---

[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

[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 +++

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

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.

<    1   2   3   4   5   6