Re: [PATCH] x86/irq: Lower unhandled irq error severity

2020-11-27 Thread Laurențiu Nicola
Hello, On Fri, Nov 27, 2020, at 02:12, Thomas Gleixner wrote: > On Thu, Nov 26 2020 at 09:47, Laurențiu Nicola wrote: > > These messages are described as warnings in the MSI code. > > Where and what has MSI to do with these messages? There's a comment referring to it as a warning, but an error

Re: [PATCH] mm: fix some spelling mistakes in comments

2020-11-27 Thread Mike Rapoport
On Fri, Nov 27, 2020 at 09:17:47AM +0800, Haitao Shi wrote: > Fix some spelling mistakes in comments: > udpate ==> update > succesful ==> successful > exmaple ==> example > unneccessary ==> unnecessary > stoping ==> stopping > uknown ==> unknown > >

Re: [PATCH 01/16] mfd: bcm590xx: drop of_match_ptr from of_device_id table

2020-11-27 Thread Lee Jones
On Fri, 20 Nov 2020, Krzysztof Kozlowski wrote: > The driver can match only via the DT table so the table should be always > used and the of_match_ptr does not have any sense (this also allows ACPI > matching via PRP0001, even though it is not relevant here). This fixes > compile warning

Re: [PATCH bpf-next 1/2] bpf: Expose bpf_get_socket_cookie to tracing programs

2020-11-27 Thread Yonghong Song
On 11/26/20 9:02 AM, Florent Revest wrote: This creates a new helper proto because the existing bpf_get_socket_cookie_sock_proto has a ARG_PTR_TO_CTX argument and only works for BPF programs where the context is a sock. This helper could also be useful to other BPF program types such as LSM.

Re: [PATCH 1/3] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-11-27 Thread Michal Hocko
On Tue 24-11-20 14:49:23, Rik van Riel wrote: > The allocation flags of anonymous transparent huge pages can be controlled > through the files in /sys/kernel/mm/transparent_hugepage/defrag, which can > help the system from getting bogged down in the page reclaim and compaction > code when many

Re: [PATCH 0/6] Add SBI v0.2 support for KVM

2020-11-27 Thread Anup Patel
On Mon, Aug 3, 2020 at 11:29 PM Atish Patra wrote: > > The Supervisor Binary Interface(SBI) specification[1] now defines a > base extension that provides extendability to add future extensions > while maintaining backward compatibility with previous versions. > The new version is defined as 0.2

Re: [PATCH] mm: Don't fault around userfaultfd-registered regions on reads

2020-11-27 Thread Mike Rapoport
On Thu, Nov 26, 2020 at 05:23:59PM -0500, Peter Xu wrote: > Faulting around for reads are in most cases helpful for the performance so > that > continuous memory accesses may avoid another trip of page fault. However it > may not always work as expected. > > For example, userfaultfd registered

Re: [PATCH 01/16] mfd: bcm590xx: drop of_match_ptr from of_device_id table

2020-11-27 Thread Krzysztof Kozlowski
On Fri, 27 Nov 2020 at 09:06, Lee Jones wrote: > > On Fri, 20 Nov 2020, Krzysztof Kozlowski wrote: > > > The driver can match only via the DT table so the table should be always > > used and the of_match_ptr does not have any sense (this also allows ACPI > > matching via PRP0001, even though it

Re: [PATCH 1/2] mm/debug_vm_pgtable/basic: Add validation for dirtiness after write protect

2020-11-27 Thread Christophe Leroy
Le 27/11/2020 à 06:06, Anshuman Khandual a écrit : This adds validation tests for dirtiness after write protect conversion for each page table level. This is important for platforms such as arm64 that removes the hardware dirty bit while making it an write protected one. This also fixes

Re: [PATCH bpf v2 2/2] xsk: change the tx writeable condition

2020-11-27 Thread Magnus Karlsson
On Wed, Nov 25, 2020 at 7:49 AM Xuan Zhuo wrote: > > Modify the tx writeable condition from the queue is not full to the > number of present tx queues is less than the half of the total number > of queues. Because the tx queue not full is a very short time, this will > cause a large number of

Re: [PATCH bpf v2 1/2] xsk: replace datagram_poll by sock_poll_wait

2020-11-27 Thread Magnus Karlsson
On Wed, Nov 25, 2020 at 7:49 AM Xuan Zhuo wrote: > > datagram_poll will judge the current socket status (EPOLLIN, EPOLLOUT) > based on the traditional socket information (eg: sk_wmem_alloc), but > this does not apply to xsk. So this patch uses sock_poll_wait instead of > datagram_poll, and the

How to Unblock IP Address of Email Client in Linux iptables Firewall in Linux Mail Server

2020-11-27 Thread Turritopsis Dohrnii Teo En Ming
Subject: How to Unblock IP Address of Email Client in Linux iptables Firewall in Linux Mail Server Good day from Singapore, I am an IT consultant in Singapore. Today, Black Friday 27 November 2020, my client Donald Trump (fictitious name used) informed me that he cannot send and receive

Re: [PATCH v2 tip/core/rcu 6/6] srcu: Document polling interfaces for Tree SRCU grace periods

2020-11-27 Thread Neeraj Upadhyay
On 11/21/2020 6:29 AM, paul...@kernel.org wrote: From: "Paul E. McKenney" This commit adds requirements documentation for the get_state_synchronize_srcu(), start_poll_synchronize_srcu(), and poll_state_synchronize_srcu() functions. Link:

Re: [PATCH 17/17] realtek: rtw88: pci: Add prototypes for .probe, .remove and .shutdown

2020-11-27 Thread Pkshih
On Fri, 2020-11-27 at 07:38 +, Lee Jones wrote: > On Fri, 27 Nov 2020, Pkshih wrote: > > >  > > The subject prefix doesn't need 'realtek:'; use 'rtw88:'. > >  > > On Thu, 2020-11-26 at 13:31 +, Lee Jones wrote: > > > Also strip out other duplicates from driver specific headers. > > >  > >

Re: [PATCH RESEND v6 2/4] mfd: Support ROHM BD9576MUF and BD9573MUF

2020-11-27 Thread Lee Jones
On Mon, 23 Nov 2020, Matti Vaittinen wrote: > Add core support for ROHM BD9576MUF and BD9573MUF PMICs which are > mainly used to power the R-Car series processors. > > Signed-off-by: Matti Vaittinen > --- > drivers/mfd/Kconfig | 11 > drivers/mfd/Makefile | 1 +

Re: [PATCH v2 2/2] media: dt-bindings: media: i2c: Add IMX300 CMOS sensor binding

2020-11-27 Thread Andrey Konovalov
Hi AngeloGioacchino, On 29.10.2020 20:29, khol...@gmail.com wrote: From: AngeloGioacchino Del Regno Add YAML device tree binding for IMX300 CMOS image sensor, and the relevant MAINTAINERS entries. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/media/i2c/sony,imx300.yaml

Re: [PATCH 2/2] arm64: dts: mediatek: mt8516: add efuse node

2020-11-27 Thread Matthias Brugger
On 16/10/2020 19:18, Fabien Parent wrote: Add node to support e-fuses on MT8516 Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 7 +++ 1 file changed, 7 insertions(+) Applied to v5.10-next/dts64 Thanks! diff --git

[RFC 1/2] dt-bindings: thermal: sprd: Add virtual thermal documentation

2020-11-27 Thread gao . yunxiao6
From: "jeson.gao" virtual thermal node definition description in dts file Signed-off-by: jeson.gao --- .../thermal/sprd-virtual-thermal.yaml | 38 +++ 1 file changed, 38 insertions(+) create mode 100644

[RFC 2/2] thermal: sprd: Add virtual thermal driver

2020-11-27 Thread gao . yunxiao6
From: "jeson.gao" IPA need a temperature of the whole CPU zone for thermal-cpufreq-0 and thermal-cpufreq-1 cooling device but the real sensor is placed near per-core on sprd platform,so adding this driver to register a virtual sensor,it will polling the temperature of per-core and find the

[git pull] drm fixes for 5.10-rc6

2020-11-27 Thread Dave Airlie
Hi Linus, Bit of a delay as fd.o anongit was acting up a bit today, hopefully it stays up this time. Unfortunately this has a bit of thanksgiving stuffing in it, as it a bit larger (at least the vc4 patches) than I like at this point in time. The main thing is it has a bunch of regressions fixes

[PATCH] mips: lib: uncached: fix uninitialized variable 'sp'

2020-11-27 Thread Anders Roxell
When building mips tinyconfig with clang the following warning show up: /tmp/arch/mips/lib/uncached.c:40:18: note: initialize the variable 'sp' to silence this warning register long sp __asm__("$sp"); ^ = 0 Rework to make an explicit

[PATCH] mips: fix Section mismatch in reference

2020-11-27 Thread Anders Roxell
When building mips tinyconfig with clang the following error show up: WARNING: modpost: vmlinux.o(.text+0x1940c): Section mismatch in reference from the function r4k_cache_init() to the function .init.text:loongson3_sc_init() The function r4k_cache_init() references the function __init

Re: [PATCH v3] lan743x: fix for potential NULL pointer dereference with bare card

2020-11-27 Thread Sergej Bauer
Hi Sven. > Hi Jakub, Sergej, > > On Tue, Nov 3, 2020 at 8:41 PM Jakub Kicinski wrote: > > On Mon, 2 Nov 2020 01:35:55 +0300 Sergej Bauer wrote: > > > This is the 3rd revision of the patch fix for potential null pointer > > > dereference with lan743x card. > > > > Applied, thanks! > > I

Re: [PATCH 1/3] dt-bindings: arm64: dts: mediatek: Add mt8167-pumpkin board

2020-11-27 Thread Matthias Brugger
On 27/10/2020 20:48, Fabien Parent wrote: Add binding documentation for the MT8167 Pumpkin board. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) All three patches applied to v5.10-next/dts64 Thanks!

Re: [PATCH 1/1] perf diff: fix error return value in __cmd_diff()

2020-11-27 Thread Leizhen (ThunderTown)
Hi everybody: Can any one review it? On 2020/11/24 18:36, Zhen Lei wrote: > An appropriate return value should be set on the failed path. > > Reported-by: Hulk Robot > Signed-off-by: Zhen Lei > --- > tools/perf/builtin-diff.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >

[PATCH] riscv/stacktrace: fix stackframe without ra on the top

2020-11-27 Thread Chen Huang
When a function doesn't have a callee, then it will not push ra into the stack, such as lkdtm_BUG() function: addisp,sp,-16 sd s0,8(sp) addis0,sp,16 ebreak Then we use pt_regs as a parameter to walk_stackframe(), for the struct stackframe use {fp,ra} to get information from stack,

Re: [REGRESSION] omapdrm/N900 display broken

2020-11-27 Thread Tomi Valkeinen
On 25/11/2020 11:07, Daniel Vetter wrote: >> Laurent, does this ring any bells? The WARN comes in >> drm_atomic_bridge_chain_enable() when >> drm_atomic_get_old_bridge_state() returns null for (presumably) sdi bridge. >> >> I'm not sure why the bridge state would not be there. > > Lack of state

Re: [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC

2020-11-27 Thread Matthias Brugger
Hi Vinod, On 19/10/2020 23:16, Rob Herring wrote: On Thu, 15 Oct 2020 14:33:14 +0200, Fabien Parent wrote: Add bindings to APDMA for MT8516 SoC. MT8516 is compatible with MT6577. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt | 1 + 1 file

Re: [PATCH 1/2] phy: rockchip: set pulldown for strobe line in dts

2020-11-27 Thread Johan Jonker
Hi Chris, Before a new property "enable-strobe-pulldown" is introduced in the code a change to the documents must be made in a separate patch. (rockchip-emmc-phy.txt) ./scripts/checkpatch.pl --strict On 11/27/20 4:33 AM, Chris Ruehl wrote: > This patch add support to set the internal pulldown

[PATCH net-next 1/7] net: hns3: add support for RX completion checksum

2020-11-27 Thread Huazhong Tan
In some cases (for example ip fragment), hardware will calculate the checksum of whole packet in RX, and setup the HNS3_RXD_L2_CSUM_B flag in the descriptor, so add support to utilize this checksum. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 21

[PATCH net-next 0/7] net: hns3: updates for -next

2020-11-27 Thread Huazhong Tan
This series includes some updates for the HNS3 ethernet driver. #1~#6: add some updates related to the checksum offload. #7: add support for multiple TCs' MAC pauce mode. Huazhong Tan (6): net: hns3: add support for RX completion checksum net: hns3: add support for TX hardware checksum

[PATCH net-next 6/7] net: hns3: add a check for devcie's verion in hns3_tunnel_csum_bug()

2020-11-27 Thread Huazhong Tan
For the device whose version is above V3(include V3), the hardware can do checksum offload for the non-tunnel udp packet, who has a dest port as the IANA assigned. So add a check for devcie's verion in hns3_tunnel_csum_bug(). Signed-off-by: Huazhong Tan ---

[PATCH net-next 2/7] net: hns3: add support for TX hardware checksum offload

2020-11-27 Thread Huazhong Tan
For the device that supports TX hardware checksum, the hardware can calculate the checksum from the start and fill the checksum to the offset position, which reduces the operations of calculating the type and header length of L3/L4. So add this feature for the HNS3 ethernet driver. The previous

[PATCH net-next 7/7] net: hns3: keep MAC pause mode when multiple TCs are enabled

2020-11-27 Thread Huazhong Tan
From: Yonglong Liu Bellow HNAE3_DEVICE_VERSION_V3, MAC pause mode just support one TC, when enabled multiple TCs, force enable PFC mode. HNAE3_DEVICE_VERSION_V3 can support MAC pause mode on multiple TCs, so when enable multiple TCs, just keep MAC pause mode, and enable PFC mode just according

[PATCH net-next 4/7] net: hns3: add udp tunnel checksum segmentation support

2020-11-27 Thread Huazhong Tan
For the device who has the capability to handle udp tunnel checksum segmentation, add support for it. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 1 + drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 6 +-

[PATCH net-next 5/7] net: hns3: add more info to hns3_dbg_bd_info()

2020-11-27 Thread Huazhong Tan
Since TX hardware checksum and RX completion checksum have been supported now, so add related information in hns3_dbg_bd_info(). Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 50 +- 1 file changed, 40 insertions(+), 10 deletions(-)

[PATCH net-next 3/7] net: hns3: remove unsupported NETIF_F_GSO_UDP_TUNNEL_CSUM

2020-11-27 Thread Huazhong Tan
Currently, device V1 and V2 do not support segmentation offload for UDP based tunnel packet who needs outer UDP checksum offload, so there is a workaround in the driver to set the checksum of the outer UDP checksum as zero. This is not what the user wants, so remove this feature for device V1 and

[PATCH v2] gpio: dwapb: fix NULL pointer dereference at dwapb_gpio_suspend()

2020-11-27 Thread Luo Jiaxing
Following Calltrace is found when running echo freeze > /sys/power/state. [ 272.755506] Unable to handle kernel NULL pointer dereference at virtual address 0010 [ 272.755585] Call trace: [ 272.755587] dwapb_gpio_suspend+0x18/0x318 [ 272.755588] pm_generic_suspend+0x2c/0x48 [

[PATCH] habanalabs/gaudi: handle reset when f/w is in preboot

2020-11-27 Thread Oded Gabbay
Currently, if the f/w is in preboot/u-boot they don't perform the new reset mechanism. Therefore, the driver needs to reset the device. To prevent reset of PCI_IF, the driver needs to first configure the reset units. If the security is enabled, the driver can't configure the reset units. In that

Re: [PATCH v4 01/16] dt-bindings: power: Add bindings for the Mediatek SCPSYS power domains controller

2020-11-27 Thread Enric Balletbo i Serra
Hi Weiyi, On 27/11/20 3:24, Weiyi Lu wrote: > On Fri, 2020-10-30 at 12:36 +0100, Enric Balletbo i Serra wrote: >> The System Control Processor System (SCPSYS) has several power management >> related tasks in the system. Add the bindings to define the power >> domains for the SCPSYS power

Re: [PATCH 17/17] realtek: rtw88: pci: Add prototypes for .probe, .remove and .shutdown

2020-11-27 Thread Lee Jones
On Fri, 27 Nov 2020, Pkshih wrote: > On Fri, 2020-11-27 at 07:38 +, Lee Jones wrote: > > On Fri, 27 Nov 2020, Pkshih wrote: > > > > >  > > > The subject prefix doesn't need 'realtek:'; use 'rtw88:'. > > >  > > > On Thu, 2020-11-26 at 13:31 +, Lee Jones wrote: > > > > Also strip out other

Re: [PATCH v3] s390/pci: fix CPU address in MSI for directed IRQ

2020-11-27 Thread Halil Pasic
On Thu, 26 Nov 2020 18:00:37 +0100 Alexander Gordeev wrote: > The directed MSIs are delivered to CPUs whose address is > written to the MSI message data. The current code assumes > that a CPU logical number (as it is seen by the kernel) > is also that CPU address. > > The above assumption is

Re: [PATCH v3] lockdep: Allow tuning tracing capacity constants.

2020-11-27 Thread Dmitry Vyukov
On Sun, Nov 22, 2020 at 2:56 AM Tetsuo Handa wrote: > > On 2020/11/20 18:27, Dmitry Vyukov wrote: > > Peter, so far it looks like just a very large, but normal graph to me. > > The cheapest from an engineering point of view solution would be just > > to increase the constants. I assume a 2x

[PATCH v2] Asoc: qcom: Fix plaback recover problem in suspend resume

2020-11-27 Thread Srinivasa Rao Mandadapu
To support playback continuation after hard suspend(bypass powerd) and resume: Prepare device in platform trigger callback. Make I2s and DMA control registers as non volatile. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- Changes Since v1: -- Subject lines

Re: [RFC 1/3] mm/hotplug: Pre-validate the address range with platform

2020-11-27 Thread David Hildenbrand
>> >> "arch_get_mappable_range(void)" (or similar) ? > > The current name seems bit better (I guess). Because we are asking for > max addressable range with or without the linear mapping. > >> >> AFAIKs, both implementations (arm64/s390x) simply do the exact same >> thing as

[PATCH] f2fs: introduce a new per-sb directory in sysfs

2020-11-27 Thread Chao Yu
Add a new directory 'stat' in path of /sys/fs/f2fs//, later we can add new readonly stat sysfs file into this directory, it will make directory less mess. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 5 +++- fs/f2fs/sysfs.c | 69 + 2 files

linux-next: Tree for Nov 27

2020-11-27 Thread Stephen Rothwell
Hi all, Changes since 20201126: The dma-mapping tree gained a build failure for which I applied a patch. The tip tree gained a build failure for which I applied a patch. The regmap tree gained a build failure for which I reverted a commit. The akpm-current tree gained conflicts against the

[PATCH] clk: rockchip: Remove redundant null check before clk_prepare_enable

2020-11-27 Thread Xu Wang
Because clk_prepare_enable() already checked NULL clock parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang --- drivers/clk/rockchip/clk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk.c

Re: [RFC PATCH 2/2] power: supply: add sw-gauge for SOC estimation and CC correction

2020-11-27 Thread Vaittinen, Matti
On Thu, 2020-11-26 at 12:13 +0200, Matti Vaittinen wrote: > Add generic 'sw gauge' helper for performing iterative SOC estimation > and coulomb counter correction for devices with a (drifting) coulomb > counter. This should allow few charger/fuel-gauge drivers to use > generic > loop instead of

Re: [PATCH v6 3/5] mtd: spi-nor: intel: remove global protection flag

2020-11-27 Thread Tudor.Ambarus
On 11/26/20 10:26 PM, Michael Walle wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > For the Atmel and SST parts this flag was already moved to individual > flash parts because it is considered bad esp. because newer flash chips > will

Re: [RESEND PATCH v2] dt-bindings: net: correct interrupt flags in examples

2020-11-27 Thread Marc Kleine-Budde
On 10/26/20 4:36 PM, Krzysztof Kozlowski wrote: > GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. > These are simple defines so they could be used in DTS but they will not > have the same meaning: > 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE > 2. GPIO_ACTIVE_LOW = 1 =

[PATCH] drm/armada: Remove redundant null check before clk_disable_unprepare

2020-11-27 Thread Xu Wang
Because clk_disable_unprepare() already checked NULL clock parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang --- drivers/gpu/drm/armada/armada_510.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 2/2] mm/debug_vm_pgtable/basic: Iterate over entire protection_map[]

2020-11-27 Thread Steven Price
On 27/11/2020 05:06, Anshuman Khandual wrote: Currently the basic tests just validate various page table transformations after starting with vm_get_page_prot(VM_READ|VM_WRITE|VM_EXEC) protection. Instead scan over the entire protection_map[] for better coverage. It also makes sure that all these

Re: [PATCH v2] fbdev: aty: SPARC64 requires FB_ATY_CT

2020-11-27 Thread Geert Uytterhoeven
On Fri, Nov 27, 2020 at 4:18 AM Randy Dunlap wrote: > It looks like SPARC64 requires FB_ATY_CT to build without errors, > so have FB_ATY select FB_ATY_CT if both SPARC64 and PCI are enabled > instead of using "default y if SPARC64 && PCI", which is not strong > enough to prevent build errors. > >

Re: [RFC 0/4] net: l2switch: Provide support for L2 switch on i.MX28 SoC

2020-11-27 Thread Lukasz Majewski
Hi Andrew, > > (A side question - DSA uses switchdev, so when one shall use > > switchdev standalone?) > > DSA gives you a framework for an Ethernet switch connected to a host > via Ethernet for the data plane. Generally, that Ethernet link to the > switch is a MAC to MAC connection. It can be

Re: boot interrupt quirk (also in 4.19.y) breaks serial ports (was: [PATCH v2 0/2] pci: Add boot interrupt quirk mechanism for Xeon chipsets)

2020-11-27 Thread Stefan Bühler
Hi tglx, On 11/27/20 12:45 AM, Thomas Gleixner wrote: > Stefan, > > On Wed, Nov 25 2020 at 14:41, Stefan Bühler wrote: >> On 11/25/20 12:54 PM, Thomas Gleixner wrote: >>> On Wed, Sep 16 2020 at 12:12, Stefan Bühler wrote: >>> Can you please provide the output of: >>> >>> for ID in 05:00.0

Re: [PATCH bpf-next 2/2] bpf: Add a selftest for the tracing bpf_get_socket_cookie

2020-11-27 Thread Florent Revest
On Thu, 2020-11-26 at 23:56 -0800, Yonghong Song wrote: > > On 11/26/20 9:02 AM, Florent Revest wrote: > > This builds up on the existing socket cookie test which checks > > whether > > the bpf_get_socket_cookie helpers provide the same value in > > cgroup/connect6 and sockops programs for a

Re: [PATCH 01/16] mfd: bcm590xx: drop of_match_ptr from of_device_id table

2020-11-27 Thread Lee Jones
On Fri, 27 Nov 2020, Krzysztof Kozlowski wrote: > On Fri, 27 Nov 2020 at 09:06, Lee Jones wrote: > > > > On Fri, 20 Nov 2020, Krzysztof Kozlowski wrote: > > > > > The driver can match only via the DT table so the table should be always > > > used and the of_match_ptr does not have any sense

Re: [PATCH v3 7/8] regulator: mt6359: Add support for MT6359P regulator

2020-11-27 Thread Lee Jones
On Mon, 23 Nov 2020, Hsin-Hsiung Wang wrote: > The MT6359P is a eco version for MT6359 regulator. > We add support based on MT6359 regulator driver. > > Signed-off-by: Hsin-Hsiung Wang > --- > drivers/regulator/mt6359-regulator.c | 413 - >

[PATCH] drm: bridge: adv7511: Remove redundant null check before clk_disable_unprepare

2020-11-27 Thread Xu Wang
Because clk_disable_unprepare() already checked NULL clock parameter, so the additional check is unnecessary, just remove them. Signed-off-by: Xu Wang --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [PATCH bpf-next 1/2] bpf: Add a bpf_kallsyms_lookup helper

2020-11-27 Thread Florent Revest
On Thu, 2020-11-26 at 23:35 -0800, Yonghong Song wrote: > On 11/26/20 8:57 AM, Florent Revest wrote: > > +BPF_CALL_5(bpf_kallsyms_lookup, u64, address, char *, symbol, u32, > > symbol_size, > > + char *, module, u32, module_size) > > +{ > > + char buffer[KSYM_SYMBOL_LEN]; > > + unsigned

Re: [PATCH] scsi: zfcp: fix use-after-free in zfcp_unit_remove

2020-11-27 Thread Steffen Maier
On 11/26/20 4:12 PM, Benjamin Block wrote: On Thu, Nov 26, 2020 at 08:07:32PM +0800, Qinglang Miao wrote: 在 2020/11/26 17:42, Benjamin Block 写道: On Thu, Nov 26, 2020 at 09:13:53AM +0100, Cornelia Huck wrote: On Thu, 26 Nov 2020 09:27:41 +0800 Qinglang Miao wrote: 在 2020/11/26 1:06, Benjamin

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

2020-11-27 Thread Christoph Hellwig
On Fri, Nov 27, 2020 at 05:58:01PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the dma-mapping tree, today's linux-next build (powerpc64 > allnoconfig) failed like this: I'm looking into fixing this now, but how do you generate a powerpc64 allnoconfig? My attempts so far either

Re: [PATCH bpf-next v3 5/6] bpf: Add an iterator selftest for bpf_sk_storage_get

2020-11-27 Thread Florent Revest
On Thu, 2020-11-26 at 23:00 -0800, Yonghong Song wrote: > On 11/26/20 8:44 AM, Florent Revest wrote: > > +SEC("iter/task_file") > > +int fill_socket_owner(struct bpf_iter__task_file *ctx) > > +{ > > + struct task_struct *task = ctx->task; > > + struct file *file = ctx->file; > > + struct

Re: [PATCH 7/8] rtc: rework rtc_register_device() resource management

2020-11-27 Thread Bartosz Golaszewski
On Fri, Nov 27, 2020 at 10:16 AM Lee Jones wrote: > > > > On Mon, 9 Nov 2020 at 16:34, Bartosz Golaszewski wrote: >> >> From: Bartosz Golaszewski >> >> rtc_register_device() is a managed interface but it doesn't use devres >> by itself - instead it marks an rtc_device as "registered" and the

[PATCH] drm: bridge: dw-hdmi: Remove redundant null check before clk_disable_unprepare

2020-11-27 Thread Xu Wang
Because clk_disable_unprepare() already checked NULL clock parameter, so the additional check is unnecessary, just remove them. Signed-off-by: Xu Wang --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v6 1/1] arm64: dts: Add Mediatek SoC MT8192 and evaluation board dts and Makefile

2020-11-27 Thread Matthias Brugger
On 30/10/2020 10:22, Seiya Wang wrote: Add basic chip support for Mediatek MT8192 Signed-off-by: Seiya Wang --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 29 ++ arch/arm64/boot/dts/mediatek/mt8192.dtsi| 512

Re: [RFC 0/4] net: l2switch: Provide support for L2 switch on i.MX28 SoC

2020-11-27 Thread Lukasz Majewski
Hi Andrew, > > > I would push back and say that the switch offers bridge > > > acceleration for the FEC. > > > > Am I correct, that the "bridge acceleration" means in-hardware > > support for L2 packet bridging? > > You should think of the hardware as an accelerator, not a switch. The >

Re: [PATCH bpf-next 1/2] bpf: Add a bpf_kallsyms_lookup helper

2020-11-27 Thread Florent Revest
On Fri, 2020-11-27 at 03:32 +0100, KP Singh wrote: > > + ret = strlen(name) + 1; > > + if (symbol_size) { > > + strncpy(symbol, name, symbol_size); > > + symbol[symbol_size - 1] = '\0'; > > + } > > + > > + if (modname && module_size) { > > +

Re: [PATCH bpf-next 1/2] bpf: Add a bpf_kallsyms_lookup helper

2020-11-27 Thread Florent Revest
On Fri, 2020-11-27 at 10:25 +0100, Florent Revest wrote: > I prefer Yongonhong's suggestion of having two helpers. Argh! I hit enter too fast! Yonghong*, sorry :|

Re: [RFC 1/2] dt-bindings: thermal: sprd: Add virtual thermal documentation

2020-11-27 Thread Lukasz Luba
On 11/27/20 8:35 AM, gao.yunxi...@gmail.com wrote: From: "jeson.gao" virtual thermal node definition description in dts file Signed-off-by: jeson.gao --- .../thermal/sprd-virtual-thermal.yaml | 38 +++ 1 file changed, 38 insertions(+) create mode 100644

Re: [PATCH v15 00/26] Control-flow Enforcement: Shadow Stack

2020-11-27 Thread Balbir Singh
On Tue, Nov 10, 2020 at 08:21:45AM -0800, Yu-cheng Yu wrote: > Control-flow Enforcement (CET) is a new Intel processor feature that blocks > return/jump-oriented programming attacks. Details are in "Intel 64 and > IA-32 Architectures Software Developer's Manual" [1]. > > CET can protect

Re: [PATCH v3 1/8] mfd: mt6358: refine interrupt code

2020-11-27 Thread Lee Jones
On Mon, 23 Nov 2020, Hsin-Hsiung Wang wrote: > This patch refines the interrupt related code to support new chips. > > Signed-off-by: Hsin-Hsiung Wang > --- > drivers/mfd/mt6358-irq.c| 65 +++-- > include/linux/mfd/mt6358/core.h | 8 ++-- > 2 files changed,

Re: [PATCH] usb: cdns3: Fix hardware based role switch

2020-11-27 Thread Roger Quadros
Hi Peter, On 25/11/2020 14:49, Roger Quadros wrote: Hardware based role switch is broken as the driver always skips it. Fix this by registering for SW role switch only if 'usb-role-switch' property is present in the device tree. Fixes: 50642709f659 ("usb: cdns3: core: quit if it uses role

Re: [PATCH 2/2] mfd: fix spelling mistakes

2020-11-27 Thread Lee Jones
On Tue, 24 Nov 2020, Michael Klein wrote: The subject line needs to be more forthcoming. What spelling mistakes are you fixing? Which files are being changed? > Signed-off-by: Michael Klein > --- > drivers/regulator/da9055-regulator.c | 4 ++-- > include/linux/mfd/da9055/reg.h | 4 ++--

Re: [PATCH v2 2/4] x86/elf: Support a new ELF aux vector AT_MINSIGSTKSZ

2020-11-27 Thread Michael Kerrisk (man-pages)
Hey Dave Marin, On 11/26/20 6:44 PM, Borislav Petkov wrote: > On Thu, Nov 19, 2020 at 11:02:35AM -0800, Chang S. Bae wrote: >> Historically, signal.h defines MINSIGSTKSZ (2KB) and SIGSTKSZ (8KB), for >> use by all architectures with sigaltstack(2). Over time, the hardware state >> size grew, but

Re: [RESEND PATCH v4 2/6] mfd: ahc1ec0: Add Advantech EC include file used by dt-bindings

2020-11-27 Thread Lee Jones
On Wed, 25 Nov 2020, Shihlun Lin wrote: > This files defines the sud-device types and hwmon profiles support by > Advantech embedded controller. > > Signed-off-by: Shihlun Lin > --- > include/dt-bindings/mfd/ahc1ec0.h | 25 + > 1 file changed, 25 insertions(+) > create

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

2020-11-27 Thread Christoph Hellwig
I fixed this as shown: diff --git a/arch/powerpc/kernel/dma-iommu.c b/arch/powerpc/kernel/dma-iommu.c index c724548ca295c0..111249fd619de8 100644 --- a/arch/powerpc/kernel/dma-iommu.c +++ b/arch/powerpc/kernel/dma-iommu.c @@ -10,6 +10,7 @@ #include #include +#ifdef

Re: [PATCH v2 3/5] memory: renesas-rpc-if: Fix a reference leak in rpcif_probe()

2020-11-27 Thread Geert Uytterhoeven
On Thu, Nov 26, 2020 at 8:12 PM Lad Prabhakar wrote: > Release the node reference by calling of_node_put(flash) in the probe. > > Fixes: ca7d8b980b67f ("memory: add Renesas RPC-IF driver") > Reported-by: Pavel Machek > Signed-off-by: Lad Prabhakar > Cc: sta...@vger.kernel.org > Reviewed-by:

Re: [PATCH v2 1/5] memory: renesas-rpc-if: Return correct value to the caller of rpcif_manual_xfer()

2020-11-27 Thread Geert Uytterhoeven
On Thu, Nov 26, 2020 at 8:12 PM Lad Prabhakar wrote: > In the error path of rpcif_manual_xfer() the value of ret is overwritten > by value returned by reset_control_reset() function and thus returning > incorrect value to the caller. > > This patch makes sure the correct value is returned to the

[PATCH] net/ipv6: propagate user pointer annotation

2020-11-27 Thread Lukas Bulwahn
For IPV6_2292PKTOPTIONS, do_ipv6_getsockopt() stores the user pointer optval in the msg_control field of the msghdr. Hence, sparse rightfully warns at ./net/ipv6/ipv6_sockglue.c:1151:33: warning: incorrect type in assignment (different address spaces) expected void *msg_control got

[PATCH] drm/dev: Fix NULL pointer dereference in drm_minor_alloc

2020-11-27 Thread Qinglang Miao
KASAN: null-ptr-deref in range [0x0030-0x0037] CPU: 0 PID: 18491 Comm: syz-executor.0 Tainted: G C 5.10.0-rc4+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1 04/01/2014 RIP: 0010:kobject_put+0x2f/0x140 Call Trace: put_device+0x20/0x40

[PATCH] crypto: sa2ul - fix reference leak in sa_ul_probe()

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH] dmaengine: usb-mac: fix reference leak in usb_dmac_probe

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH] dmaengine: zynqmp_dma: fix reference leak in zynqmp_dma_alloc_chan_resources

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH] drm: bridge: cdns-mhdp8546: fix reference leak in cdns_mhdp_probe

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH] hwrng: exynos - fix reference leak in exynos_trng_probe

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH] drm: rcar-du: fix reference leak in amdgpu_debugfs_gfxoff_read

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH] dmaengine: rcar-dmac: fix reference leak in rcar_dmac_probe

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH] drm/bridge: cdns: fix reference leak in cdns_dsi_transfer

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH] gpio: zynq: fix reference leak in zynq_gpio functions

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH 2/2] iio: adc: ad7298: check regulator for null in ad7298_get_ref_voltage()

2020-11-27 Thread Alexandru Ardelean
'st->ext_ref' & 'st->reg' are both non-zero/non-null at the same time, so logically the code isn't broken. But it is more correct to check that 'st->reg' is non-null, since we make sure that the regulator is NULL (in probe) in case one isn't defined. Cc: Colin Ian King Signed-off-by: Alexandru

[PATCH] drm/lima: fix reference leak in lima_pm_busy

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH 1/2] iio: adc: ad7298: convert probe to device-managed functions

2020-11-27 Thread Alexandru Ardelean
This change converts the probe of this driver to use device-managed register functions, and a devm_add_action_or_reset() for the regulator disable. With this, the exit & error paths can be removed. Another side-effect is that this should avoid some static-analyzer's check with respect to a

[PATCH] drm: rcar-du: fix reference leak in rcar_cmm_enable

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH] dmaengine: sprd: fix reference leak in sprd_dma_probe and sprd_dma_remove

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH] drm/panfrost: fix reference leak in panfrost_job_hw_submit

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH 0/3] dmaengine: stm32: fix reference leak

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. Use pm_runtime_resume_and_get to fix it. Qinglang Miao (3): dmaengine: stm32-dma: fix reference leak in stm32_dma dmaengine: stm32-dmamux: fix reference

[PATCH 1/3] dmaengine: stm32-dma: fix reference leak in stm32_dma

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

[PATCH 2/3] dmaengine: stm32-dmamux: fix reference leak in stm32_dmamux

2020-11-27 Thread Qinglang Miao
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in a reference leak here. A new function pm_runtime_resume_and_get is introduced in [0] to keep usage counter balanced. So We fix the reference leak by replacing it with new funtion.

  1   2   3   4   5   6   7   8   >