[PATCH v7 net-next 05/15] 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 v7 net-next 04/15] 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 v7 net-next 03/15] 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 v7 net-next 00/15] 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

[PATCH v7 net-next 01/15] doc: marvell: add cm3-mem and PPv2.3 description

2021-01-31 Thread stefanc
From: Stefan Chulski Patch introduce cm3-mem device tree bindings and add PPv2.3 description. Signed-off-by: Stefan Chulski --- Documentation/devicetree/bindings/net/marvell-pp2.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH] firmware: xilinx: Remove zynqmp_pm_get_eemi_ops() in IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE)

2021-01-31 Thread Nobuhiro Iwamatsu
zynqmp_pm_get_eemi_ops() was removed in commit 4db8180ffe7c: "Firmware: xilinx: Remove eemi ops for fpga related APIs", but not in IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE). This removed zynqmp_pm_get_eemi_ops() in IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE), and also modify the documentation for this

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

2021-01-31 Thread Mimi Zohar
On Sun, 2021-01-31 at 15:14 +0100, Jan Lübbe wrote: > On Sun, 2021-01-31 at 07:09 -0500, Mimi Zohar wrote: > > > > [1] The ima-evm-utils README contains EVM examples of "trusted" and > > "user" based "encrypted" keys. > > I assume you refer to >

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=DwICAg=nKjWec2b6R0mOyPaz7xtfQ=DDQ3dKwkTIx > > >

Re: [PATCH v2 1/5] misc: qca639x: add support for QCA639x powerup sequence

2021-01-31 Thread Kalle Valo
Dmitry Baryshkov writes: > Qualcomm QCA639x is a family of WiFi + Bluetooth SoCs, with BT part > being controlled through the UART and WiFi being present on PCIe > bus. Both blocks share common power sources. Add device driver handling > power sequencing of QCA6390/1. > > Signed-off-by: Dmitry

Re: [PATCH 2/3] usb: xhci-mtk: fix UAS issue by XHCI_BROKEN_STREAMS quirk

2021-01-31 Thread Matthias Brugger
On 24/12/2020 08:18, Chunfeng Yun wrote: > On Wed, 2020-12-16 at 19:43 -0800, Rosen Penev wrote: >> On Wed, Dec 16, 2020 at 6:29 PM Chunfeng Yun >> wrote: >>> >>> On Wed, 2020-12-16 at 20:28 +0800, Nicolas Boichat wrote: On Wed, Dec 16, 2020 at 7:53 PM Chunfeng Yun wrote: [...]

Re: [PATCH v1 1/2] arm64: dts: mt6779: Support devapc

2021-01-31 Thread Matthias Brugger
On 23/12/2020 10:52, Neal Liu wrote: > +add comments & reviewed-by Hanks > > On Wed, 2020-12-23 at 16:44 +0800, Neal Liu wrote: > > Support DEVAPC on MT6779 platforms by adding device node. > > Reviewed-by: Hanks Chen Apllied with the description and Reviewed-by to v5.11-next/dts64 Thanks

Re: [PATCH v1 2/2] arm64: configs: Support DEVAPC on MediaTek platforms

2021-01-31 Thread Matthias Brugger
On 23/12/2020 09:44, Neal Liu wrote: > Support DEVAPC on MediaTek platforms by enabling CONFIG_MTK_DEVAPC. > > Signed-off-by: Neal Liu > --- > arch/arm64/configs/defconfig |1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig

RE: [PATCH V1 0/3] scsi: ufs: Add a vops to configure VCC voltage level

2021-01-31 Thread Avri Altman
> > UFS specification allows different VCC configurations for UFS devices, > for example, > (1)2.70V - 3.60V (For UFS 2.x devices) > (2)2.40V - 2.70V (For UFS 3.x devices) > For platforms supporting both ufs 2.x (2.7v-3.6v) and > ufs 3.x (2.4v-2.7v), the voltage requirements (VCC)

RE: [PATCH] platform/x86: dell-wmi-sysman: fix a NULL pointer dereference

2021-01-31 Thread Limonciello, Mario
> -Original Message- > From: Hans de Goede > Sent: Saturday, January 30, 2021 15:44 > To: Limonciello, Mario; Mark Gross > Cc: LKML; platform-driver-...@vger.kernel.org > Subject: Re: [PATCH] platform/x86: dell-wmi-sysman: fix a NULL pointer > dereference > > > [EXTERNAL EMAIL] > >

Re: [PATCH v3 1/2] dt-bindings: nvmem: mediatek: add support for MediaTek mt8192 SoC

2021-01-31 Thread Matthias Brugger
On 22/01/2021 07:28, mtk23264 wrote: > On Sun, 2021-01-03 at 09:25 -0700, Rob Herring wrote: >> On Mon, Dec 21, 2020 at 02:10:19PM +0800, yz...@mediatek.com wrote: >>> From: Ryan Wu >>> >>> This updates dt-binding documentation for MediaTek mt8192 >>> >>> Signed-off-by: Ryan Wu >>> --- >>>

RE: [PATCH V1 1/3] scsi: ufs: export api for use in vendor file

2021-01-31 Thread Avri Altman
> > Exporting functions ufshcd_set_dev_pwr_mode, ufshcd_disable_vreg > and ufshcd_enable_vreg so that vendor drivers can make use of > them in setting vendor specific regulator setting > in vendor specific file. As for ufshcd_{enable,disable}_vreg - maybe inline ufshcd_toggle_vreg and use it

Re: [PATCH v1 2/2] arm64: dts: mt6779: Support ufshci and ufsphy

2021-01-31 Thread Matthias Brugger
On 23/12/2020 05:13, Stanley Chu wrote: > Support UFS on MT6779 platforms by adding ufshci and ufsphy > nodes in dts file. > > Reviewed-by: Hanks Chen > Signed-off-by: Stanley Chu > --- > arch/arm64/boot/dts/mediatek/mt6779.dtsi | 36 +++- > 1 file changed, 35

[PATCH 2/3] mfd: lm3533: Constify static struct attribute_group

2021-01-31 Thread Rikard Falkeborn
The only usage of lm3533_attribute_group is to pass its address to sysfs_create_group() and sysfs_remove_group(), both which takes pointers to const attribute_group structs. Make it const to allow the compiler to put it in read-only memory. Done with the help of coccinelle. Signed-off-by: Rikard

[PATCH 1/3] mfd: gateworks-gsc: Constify static struct attribute_group

2021-01-31 Thread Rikard Falkeborn
The only usage of attr_group is to pass its address to sysfs_create_group() and sysfs_remove_group(), both which takes pointers to const attribute_group structs. Make it const to allow the compiler to put it in read-only memory. Done with the help of coccinelle. Signed-off-by: Rikard Falkeborn

Re: [PATCH v5 12/20] dt-bindings: rtc: sun6i: Add H616 compatible string

2021-01-31 Thread Jernej Škrabec
Hi! Dne sreda, 27. januar 2021 ob 18:24:52 CET je Andre Przywara napisal(a): > Add the obvious compatible name to the existing RTC binding, and pair > it with the existing H6 fallback compatible string, as the devices are > compatible. After close lookup I would disagree with this observation.

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

2021-01-31 Thread Greg Kroah-Hartman
On Sun, Jan 31, 2021 at 01:18:47PM +, Måns Rullgård wrote: > Greg Kroah-Hartman writes: > > > 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.

[PATCH 3/3] mfd: pcf50633: Constify static struct attribute_group

2021-01-31 Thread Rikard Falkeborn
The only usage of pcf_attr_group is to pass its address to sysfs_create_group() and sysfs_remove_group(), both which takes pointers to const attribute_group structs. Make it const to allow the compiler to put it in read-only memory. Done with the help of coccinelle. Signed-off-by: Rikard

Re: [PATCH v8 07/14] mm: honor PF_MEMALLOC_PIN for all movable pages

2021-01-31 Thread Lecopzer Chen
Hi, [...] > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index c93e801a45e9..3f17c73ad582 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -3807,16 +3807,13 @@ alloc_flags_nofragment(struct zone *zone, gfp_t > gfp_mask) > return alloc_flags; > } > > -static inline

RE: [PATCH 1/4] drivers: phy: add support for Armada CP110 UTMI PHY

2021-01-31 Thread Kostya Porotchkin
Hello, Lubomir, Thank you for your review! > > +static void mvebu_cp110_utmi_port_setup(struct mvebu_cp110_utmi_port > > +*port) { > > + u32 reg; > > + > > + /* > > +* Setup PLL. 40MHz clock used to be the default, being 25MHz now. > > +* See the functional specification for details.

[PATCH 0/3] drivers/mfd: Constify static attribute_group structs

2021-01-31 Thread Rikard Falkeborn
The only usage of the structs is to pass their address to sysfs_create_group() and sysfs_remove_group(), both which takes pointers to const attribute_group structs. Make them const to allow the compiler to put them in read-only memory. Done with the help of coccinelle. With these patches

[Patch v3 net-next 4/7] octeontx2-af: Physical link configuration support

2021-01-31 Thread Hariprasad Kelam
From: Christina Jacob CGX LMAC, the physical interface support link configuration parameters like speed, auto negotiation, duplex etc. Firmware saves these into memory region shared between firmware and this driver. This patch adds mailbox handler set_link_mode, fw_data_get to configure and

Re: [PATCH] arm64: dts: mediatek: Add Mediatek mt8192 cpufreq device nodes

2021-01-31 Thread Matthias Brugger
On 21/12/2020 04:36, Andrew-sh.Cheng wrote: > From: "Andrew-sh.Cheng" > > This patch depends on [1] and [2]. > > [1]http://lists.infradead.org/pipermail/linux-mediatek/2020-November/019378.html >

[Patch v3 net-next 2/7] octeontx2-af: Add new CGX_CMD to get PHY FEC statistics

2021-01-31 Thread Hariprasad Kelam
From: Felix Manlunas This patch adds support to fetch fec stats from PHY. The stats are put in the shared data struct fwdata. A PHY driver indicates that it has FEC stats by setting the flag fwdata.phy.misc.has_fec_stats Besides CGX_CMD_GET_PHY_FEC_STATS, also add CGX_CMD_PRBS and

Re: [PATCH 0/2] Add MediaTek MT8192 clock provider device nodes

2021-01-31 Thread Matthias Brugger
On 22/12/2020 14:40, Weiyi Lu wrote: > This series is based on v5.10-rc1, MT8192 dts v6[1] and > MT8192 clock v6 series[2]. > > [1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=373899 > [2] https://patchwork.kernel.org/project/linux-mediatek/list/?series=405295 > [1] is

Re: [PATCH 2/2] arm64: dts: mediatek: Correct UART0 bus clock of MT8192

2021-01-31 Thread Matthias Brugger
On 22/12/2020 14:40, Weiyi Lu wrote: > infra_uart0 clock is the real one what uart0 uses as bus clock. > > Signed-off-by: Weiyi Lu > --- > arch/arm64/boot/dts/mediatek/mt8192.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

[Patch v3 net-next 7/7] octeontx2-pf: ethtool physical link configuration

2021-01-31 Thread Hariprasad Kelam
From: Christina Jacob Register set_link_ksetting callback with driver such that link configurations parameters like advertised mode,speed, duplex and autoneg can be configured. below command ethtool -s eth0 advertise 0x1 speed 10 duplex full autoneg on Signed-off-by: Christina Jacob

Re: [PATCH v4 2/5] soc: mediatek: pwrap: add arbiter capability

2021-01-31 Thread Matthias Brugger
On 21/12/2020 03:33, Nicolas Boichat wrote: > On Wed, Nov 18, 2020 at 8:08 PM Hsin-Hsiung Wang > wrote: >> >> Add arbiter capability for pwrap driver. >> The arbiter capability uses new design to judge the priority and latency >> for multi-channel. >> This patch is preparing for adding

Re: [PATCH net-next 9/9] net: ipa: don't disable NAPI in suspend

2021-01-31 Thread Alex Elder
On 1/30/21 10:29 PM, Alex Elder wrote: > On 1/30/21 9:25 AM, Willem de Bruijn wrote: >> On Fri, Jan 29, 2021 at 3:29 PM Alex Elder wrote: >>> >>> The channel stop and suspend paths both call __gsi_channel_stop(), >>> which quiesces channel activity, disables NAPI, and (on other than >>> SDM845)

[Patch v3 net-next 6/7] octeontx2-pf: ethtool physical link status

2021-01-31 Thread Hariprasad Kelam
From: Christina Jacob Register get_link_ksettings callback to get link status information from the driver. As virtual function (vf) shares same physical link same API is used for both the drivers and for loop back drivers simply returns the fixed values as its does not have physical link.

[Patch v3 net-next 1/7] octeontx2-af: forward error correction configuration

2021-01-31 Thread Hariprasad Kelam
From: Christina Jacob CGX block supports forward error correction modes baseR and RS. This patch adds support to set encoding mode and to read corrected/uncorrected block counters Adds new mailbox handlers set_fec to configure encoding modes and fec_stats to read counters and also increase mbox

[Patch v3 net-next 3/7] octeontx2-pf: ethtool fec mode support

2021-01-31 Thread Hariprasad Kelam
From: Christina Jacob Add ethtool support to configure fec modes baser/rs and support to fecth FEC stats from CGX as well PHY. Configure fec mode - ethtool --set-fec eth0 encoding rs/baser/off/auto Query fec mode - ethtool --show-fec eth0 Signed-off-by: Christina Jacob

Re: [PATCH] arm64: dts: mt8192: Add cpu-idle-states

2021-01-31 Thread Matthias Brugger
On 22/12/2020 05:58, James Liao wrote: > Add idle states for cpu-off and cluster-off. > > Signed-off-by: James Liao > --- Applied to v5.11-next/dts64 Thanks! > arch/arm64/boot/dts/mediatek/mt8192.dtsi | 44 > 1 file changed, 44 insertions(+) > > This patch bases

[Patch v3 net-next 0/7] ethtool support for fec and link configuration

2021-01-31 Thread Hariprasad Kelam
This series of patches add support for forward error correction(fec) and physical link configuration. Patches 1&2 adds necessary mbox handlers for fec mode configuration request and to fetch stats. Patch 3 registers driver callbacks for fec mode configuration and display. Patch 4&5 adds support of

[PATCH] drm/rockchip: vop_reg: add PX30 version info

2021-01-31 Thread Johan Jonker
To reduce memory various Rockchip VOP versions share common reg structures. However more recent added SoCs not always have to same futures as the old ones. Add PX30 missing version info, so all VOP version checks work correct if needed in the future. Signed-off-by: Johan Jonker ---

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

2021-01-31 Thread Måns Rullgård
Greg Kroah-Hartman writes: > 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

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

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:

[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

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

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

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

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

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

[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

[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

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)

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

[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

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 >

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

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

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(+) >> > >

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

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

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

[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

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

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

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,

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,

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

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

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

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

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

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

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

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

[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

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

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

[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

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

[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

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

[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

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

[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

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=DwICAg=nKjWec2b6R0mOyPaz7xtfQ=DDQ3dKwkTIx >

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

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

[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

[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

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

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

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:

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

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

<    1   2   3   4   5   6   >