[PATCH 1/1] kobject: Don't emit change events if not in sysfs

2020-10-19 Thread Abhishek Pandit-Subedi
Add a check to make sure the kobj is created and in sysfs before sending a change event notification. Otherwise, udev rules that depend on the change notification may find that the path that changed doesn't actually exist. Fixes: a45aca510b73b7 (PM: sleep: core: Emit changed uevent on wakeup_sysf

[PATCH 0/2] hwmon: (adt7470) driver updates

2020-10-19 Thread Chris Packham
This series updates the adt7470 driver to add error handling by using regmap. Chris Packham (2): hwmon: (adt7470) Create functions for updating readings and limits hwmon: (adt7470) Convert to regmap drivers/hwmon/adt7470.c | 538 +++- 1 file changed, 366 i

[PATCH 1/2] hwmon: (adt7470) Create functions for updating readings and limits

2020-10-19 Thread Chris Packham
Split the body of adt7470_update_device() into two helper functions adt7470_update_sensors() and adt7470_update_limits(). Although neither of the new helpers returns an error yet lay the groundwork for propagating failures through to the sysfs readers. Signed-off-by: Chris Packham --- drivers/hw

[PATCH 2/2] hwmon: (adt7470) Convert to regmap

2020-10-19 Thread Chris Packham
Convert the adt7470 to using regmap and add error handling. Signed-off-by: Chris Packham --- drivers/hwmon/adt7470.c | 388 ++-- 1 file changed, 250 insertions(+), 138 deletions(-) diff --git a/drivers/hwmon/adt7470.c b/drivers/hwmon/adt7470.c index 2e8feaccc

Re: [PATCH net] drivers/net/wan/hdlc: In hdlc_rcv, check to make sure dev is an HDLC device

2020-10-19 Thread Xie He
On Mon, Oct 19, 2020 at 2:22 PM Jakub Kicinski wrote: > > Looks correct to me. I spotted there is also IFF_WAN_HDLC added by > 7cdc15f5f9db ("WAN: Generic HDLC now uses IFF_WAN_HDLC private flag.") > would using that flag also be correct and cleaner potentially? > > Up to you, just wanted to make

Re: [PATCH] wireguard: convert selftest/{counter,ratelimiter}.c to KUnit

2020-10-19 Thread Jason A. Donenfeld
Hi Daniel, Thanks for this patch. KUnit looks interesting. But I'm not totally sure what this would gain here, except more complicated infrastructure to handle. We're already running these tests in our CI on every single commit made to a variety of trees on a variety of architectures -- see https:

Re: [PATCH v4 3/3] clk: qcom: lpasscc-sc7180: Re-configure the PLL in case lost

2020-10-19 Thread Stephen Boyd
Quoting Doug Anderson (2020-10-16 20:17:56) > > I'm happy to repost a v5 of just patches #1 and #2 with the newlines > fixed next week, or I'm happy if you want to fix them when applying as > you alluded to on the Chrome OS gerrit. Please resend. Thanks!

[PATCH v19 1/5] firmware: xilinx: Add ZynqMP firmware ioctl enums for RPU configuration.

2020-10-19 Thread Ben Levinsky
Add ZynqMP firmware ioctl enums for RPU configuration. Signed-off-by: Ben Levinsky --- v3: - add xilinx-related platform mgmt fn's instead of wrapping around function pointer in xilinx eemi ops struct v4: - add default values for enums --- include/linux/firmware/xlnx-zynqmp.h | 19

[PATCH v19 4/5] dt-bindings: remoteproc: Add documentation for ZynqMP R5 rproc bindings

2020-10-19 Thread Ben Levinsky
Add binding for ZynqMP R5 OpenAMP. Represent the RPU domain resources in one device node. Each RPU processor is a subnode of the top RPU domain node. Signed-off-by: Jason Wu Signed-off-by: Wendy Liang Signed-off-by: Michal Simek Signed-off-by: Ben Levinsky --- v3: - update zynqmp_r5 yaml pars

[PATCH v19 2/5] firmware: xilinx: Add shutdown/wakeup APIs

2020-10-19 Thread Ben Levinsky
Add shutdown/wakeup a resource eemi operations to shutdown or bringup a resource. Note alignment of args matches convention of other fn's in this file. The reason being that the long fn name results in aligned args that otherwise go over 80 chars so shift right to avoid this Signed-off-by: Ben Le

[PATCH v19 0/5] Provide basic driver to control Arm R5 co-processor found on Xilinx ZynqMP

2020-10-19 Thread Ben Levinsky
The driver was tested on Xilinx ZynqMP QEMU For sake of ease of review, only support ZynqMP. Once accepted, then add support for Versal platform and R5 loading onto OCM. v2: - remove domain struct v3: - add xilinx-related platform mgmt fn's instead of wrapping around function pointer in xilinx

[PATCH v19 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-10-19 Thread Ben Levinsky
R5 is included in Xilinx Zynq UltraScale MPSoC so by adding this remotproc driver, we can boot the R5 sub-system in different 2 configurations - * split * lock-step The Xilinx R5 Remoteproc Driver boots the R5's via calls to the Xilinx Platform Management Unit that handles the R5 c

[PATCH v19 3/5] firmware: xilinx: Add RPU configuration APIs

2020-10-19 Thread Ben Levinsky
This patch adds APIs to access to configure RPU and its processor-specific memory. That is query the run-time mode of RPU as either split or lockstep as well as API to set this mode. In addition add APIs to access configuration of the RPUs' tightly coupled memory (TCM). Signed-off-by: Ben Levinsk

Re: [PATCH v3 1/2] PM / devfreq: Add governor feature flag

2020-10-19 Thread Dmitry Osipenko
19.10.2020 06:53, Chanwoo Choi пишет: ... >>> + const u64 flag; >> A plural form of flag(s) is more common, IMO. > > When need to add more feature flag, I prefer to add > the definition instead of changing the structure. > I think it is better. I meant to rename the new member "flag" to "flags"

Re: [PATCH v3 0/4] clk: qcom : add sm8250 LPASS GFM drivers

2020-10-19 Thread Stephen Boyd
Quoting Srinivas Kandagatla (2020-10-16 07:12:37) > This patchset adds support for GFM Muxes found in LPASS > (Low Power Audio SubSystem) IP in Audio Clock Controller > and Always ON clock controller. > > Clocks derived from these muxes are consumed by LPASS Digital Codec. > Currently the driver f

[PATCH] lib: add basic KUnit test for lib/math

2020-10-19 Thread Daniel Latypov
Add basic test coverage for files that don't require any config options: * gcd.c * lcm.c * int_sqrt.c * reciprocal_div.c (Ignored int_pow.c since it's a simple textbook algorithm.) These tests aren't particularly interesting, but * they're chosen as easy to understand examples of how to write test

Re: [PATCH net] drivers/net/wan/hdlc: In hdlc_rcv, check to make sure dev is an HDLC device

2020-10-19 Thread Jakub Kicinski
On Mon, 19 Oct 2020 15:36:14 -0700 Xie He wrote: > On Mon, Oct 19, 2020 at 2:22 PM Jakub Kicinski wrote: > > > > Looks correct to me. I spotted there is also IFF_WAN_HDLC added by > > 7cdc15f5f9db ("WAN: Generic HDLC now uses IFF_WAN_HDLC private flag.") > > would using that flag also be correct a

[PATCH v5 1/2] clk: qcom: lpasscc-sc7810: Use devm in probe

2020-10-19 Thread Douglas Anderson
Let's convert the lpass clock control driver to use devm. This is a few more lines of code, but it will be useful in a later patch which disentangles the two devices handled by this driver. Signed-off-by: Douglas Anderson --- (no changes since v4) Changes in v4: - Fixed typo lapss => lpass - M

[PATCH v5 2/2] clk: qcom: lpass-sc7180: Disentangle the two clock devices

2020-10-19 Thread Douglas Anderson
The sc7180 lpass clock driver manages two different devices. These two devices were tangled together, using one probe and a lookup to figure out the real probe. I think it's cleaner to really separate the probe for these two devices since they're really different things, just both managed by the

Re: [PATCH RFC 0/8] kasan: hardware tag-based mode for production use on arm64

2020-10-19 Thread Kostya Serebryany
Hi, I would like to hear opinions from others in CC on these choices: * Production use of In-kernel MTE should be based on stripped-down KASAN, or implemented independently? * Should we aim at a single boot-time flag (with several values) or for several independent flags (OFF/SYNC/ASYNC, Stack trac

[RFC PATCH v3 6/9] ipu3-cio2: Rename ipu3-cio2.c to allow module to be built from multiple sources files retaining ipu3-cio2 name

2020-10-19 Thread Daniel Scally
ipu3-cio2 driver needs extending with multiple files; rename the main source file and specify the renamed file in Makefile to accommodate that. Signed-off-by: Daniel Scally --- Changes in v3: - patch introduced drivers/media/pci/intel/ipu3/Makefile | 2 ++ drive

[RFC PATCH v3 8/9] media: v4l2-core: v4l2-async: Check possible match in match_fwnode based on sd->fwnode->secondary

2020-10-19 Thread Daniel Scally
Where the fwnode graph is comprised of software_nodes, these will be assigned as the secondary to dev->fwnode. Check the v4l2_subdev's fwnode for a secondary and attempt to match against it during match_fwnode() to accommodate that possibility. Signed-off-by: Daniel Scally --- Changes in v3:

[RFC PATCH v3 0/9] Add functionality to ipu3-cio2 driver allowing software_node connections to sensors on platforms designed for Windows

2020-10-19 Thread Daniel Scally
Hello all This series adds support to the ipu3-cio2 driver for fwnode connections between cio2 and sensors to be defined via software_nodes. The final patch in the series deals wholly with those changes - the preceding patches are either supporting changes to accommodate that or incidental fixes a

[RFC PATCH v3 1/9] software_node: Add helper function to unregister arrays of software_nodes ordered parent to child

2020-10-19 Thread Daniel Scally
Software nodes that are children of another software node should be unregistered before their parent. To allow easy unregistering of an array of software_nodes ordered parent to child, add a helper function to loop over and unregister nodes in such an array in reverse order. Suggested-by: Andriy S

[RFC PATCH v3 3/9] software_node: Fix failure to hold refcount in software_node_get_next_child

2020-10-19 Thread Daniel Scally
The software_node_get_next_child() function currently does not hold a kref to the child software_node; fix that. Fixes: 59abd83672f7 ("drivers: base: Introducing software nodes to the firmware node framework") Signed-off-by: Daniel Scally --- Changes in v3: - split out from the full soft

[RFC PATCH v3 7/9] ipu3-cio2: Check if pci_dev->dev's fwnode is a software_node in cio2_parse_firmware() and set FWNODE_GRAPH_DEVICE_DISABLED if so

2020-10-19 Thread Daniel Scally
fwnode_graph_get_endpoint_by_id() will optionally parse enabled devices only; that status being determined through the .device_is_available() op of the device's fwnode. As software_nodes don't have that operation and adding it is meaningless, we instead need to check if the device's fwnode is a sof

[RFC PATCH v3 4/9] software_node: Add support for fwnode_graph*() family of functions

2020-10-19 Thread Daniel Scally
From: Heikki Krogerus This implements the remaining .graph_* callbacks in the fwnode operations vector for the software nodes. That makes the fwnode_graph*() functions available in the drivers also when software nodes are used. The implementation tries to mimic the "OF graph" as much as possible

[RFC PATCH v3 9/9] ipu3-cio2: Add functionality allowing software_node connections to sensors on platforms designed for Windows

2020-10-19 Thread Daniel Scally
Currently on platforms designed for Windows, connections between CIO2 and sensors are not properly defined in DSDT. This patch extends the ipu3-cio2 driver to compensate by building software_node connections, parsing the connection properties from the sensor's SSDB buffer. Suggested-by: Jordan Han

[RFC PATCH v3 2/9] lib/test_printf.c: Use helper function to unwind array of software_nodes

2020-10-19 Thread Daniel Scally
Use the new software_node_unregister_nodes_reverse() function to unwind this array in a cleaner way. Suggested-by: Andriy Shevchenko Signed-off-by: Daniel Scally --- Changes in v3: - patch introduced. lib/test_printf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --gi

[RFC PATCH v3 5/9] ipu3-cio2: Add T: entry to MAINTAINERS

2020-10-19 Thread Daniel Scally
Development for the ipu3-cio2 driver is taking place in media_tree, but there's no T: entry in MAINTAINERS to denote that - rectify that oversight Signed-off-by: Daniel Scally --- Changes in v3: - patch introduced. MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/

Re: [PATCH] rtl8180: avoid accessing the data mapped to streaming DMA

2020-10-19 Thread Maciej S. Szmigiero
On 19.10.2020 04:54, Jia-Ju Bai wrote: > In rtl8180_tx(), skb->data is mapped to streaming DMA on line 476: > mapping = dma_map_single(..., skb->data, ...); > > On line 459, skb->data is assigned to hdr after cast: > struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; > > Then hdr-

Re: [RFC] treewide: cleanup unreachable breaks

2020-10-19 Thread Jason Gunthorpe
On Mon, Oct 19, 2020 at 12:42:15PM -0700, Nick Desaulniers wrote: > On Sat, Oct 17, 2020 at 10:43 PM Greg KH wrote: > > > > On Sat, Oct 17, 2020 at 09:09:28AM -0700, t...@redhat.com wrote: > > > From: Tom Rix > > > > > > This is a upcoming change to clean up a new warning treewide. > > > I am won

[RFC PATCH RESEND v1 1/3] regmap-irq: Add support for peripheral offsets

2020-10-19 Thread Guru Das Srinagesh
Some MFD chips do not have the register space for their peripherals mapped out with a fixed stride. Add peripheral address offsets to the framework to support such address spaces. In this new scheme, the regmap-irq client registering with the framework shall have to define the *_base registers (e.

[RFC PATCH RESEND v1 3/3] mfd: Add PM8008 driver

2020-10-19 Thread Guru Das Srinagesh
PM8008 is a PMIC that contains 7 LDOs, 2 GPIOs, temperature monitoring, and can be interfaced over I2C. This driver uses the regmap-irq framework to handle interrupts, creates a regmap and uses it to instantiate all the child nodes under it in the device tree. Only four peripherals have been added

[RFC PATCH RESEND v1 2/3] dt-bindings: mfd: Add QCOM PM8008 MFD bindings

2020-10-19 Thread Guru Das Srinagesh
Add device tree bindings for the driver for Qualcomm Technology Inc.'s PM8008 MFD PMIC. Signed-off-by: Guru Das Srinagesh --- .../bindings/mfd/qcom,pm8008-irqchip.yaml | 103 + 1 file changed, 103 insertions(+) create mode 100644 Documentation/devicetree/bindings/m

[RFC PATCH RESEND v1 0/3] Add support for Qualcomm MFD PMIC register layout

2020-10-19 Thread Guru Das Srinagesh
This is a follow-up as promised [1] to the earlier attempts [2] [3] to upstream the driver that has been hitherto used to handle IRQs for Qualcomm's PMICs that have multiple on-board peripherals when they are interfaced over the I2C interface. This series is a rewrite of that driver while making u

Re: [PATCH 3/4] ftgmac100: Add a dummy read to ensure running sequence

2020-10-19 Thread Benjamin Herrenschmidt
On Mon, 2020-10-19 at 16:57 +0800, Dylan Hung wrote: > On the AST2600 care must be taken to ensure writes appear correctly when > modifying the interrupt reglated registers. > > Add a function to perform a read after all writes to the IER and ISR > registers. You need to elaborate here. MMIO wri

[PATCH] perf version: Add a feature for libpfm4.

2020-10-19 Thread Ian Rogers
If perf is built with libpfm4 (LIBPFM4=1) then advertise it in perf -vv. Signed-off-by: Ian Rogers --- tools/perf/builtin-version.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-version.c b/tools/perf/builtin-version.c index d09ec2f03071..9cd074a3d825 100644 --- a/tools/

Re: [PATCH 4/4] ftgmac100: Restart MAC HW once

2020-10-19 Thread Benjamin Herrenschmidt
On Mon, 2020-10-19 at 16:57 +0800, Dylan Hung wrote: > The interrupt handler may set the flag to reset the mac in the > future, > but that flag is not cleared once the reset has occured. > > Fixes: 10cbd6407609 ("ftgmac100: Rework NAPI & interrupts handling") > Signed-off-by: Dylan Hung > Signed-

Re: [PATCH AUTOSEL 5.9 026/111] seccomp: kill process instead of thread for unknown actions

2020-10-19 Thread Kees Cook
Hi Sasha, I'd prefer this was not backported -- it's not a bug fix, and if the behavioral change is actually disruptive, I'd like to keep the fall-out contained. :) Thanks! -Kees On Sun, Oct 18, 2020 at 03:16:42PM -0400, Sasha Levin wrote: > From: Rich Felker > > [ Upstream commit 4d671d922d5

Re: [PATCH] net: ftgmac100: Fix missing TX-poll issue

2020-10-19 Thread Benjamin Herrenschmidt
On Mon, 2020-10-19 at 12:00 -0700, Jakub Kicinski wrote: > On Mon, 19 Oct 2020 08:57:03 + Joel Stanley wrote: > > > diff --git a/drivers/net/ethernet/faraday/ftgmac100.c > > > b/drivers/net/ethernet/faraday/ftgmac100.c > > > index 00024dd41147..9a99a87f29f3 100644 > > > --- a/drivers/net/ethern

Re: [PATCH 1/4] ftgmac100: Fix race issue on TX descriptor[0]

2020-10-19 Thread Benjamin Herrenschmidt
On Mon, 2020-10-19 at 16:57 +0800, Dylan Hung wrote: > These rules must be followed when accessing the TX descriptor: > > 1. A TX descriptor is "cleanable" only when its value is non-zero > and the owner bit is set to "software" Can you elaborate ? What is the point of that change ? The owner bit

Re: [PATCH] wireguard: convert selftest/{counter,ratelimiter}.c to KUnit

2020-10-19 Thread Daniel Latypov
On Mon, Oct 19, 2020 at 3:36 PM Jason A. Donenfeld wrote: > > Hi Daniel, > > Thanks for this patch. KUnit looks interesting. But I'm not totally > sure what this would gain here, except more complicated infrastructure > to handle. We're already running these tests in our CI on every single > commi

Re: [PATCH v1 1/2] net: ftgmac100: move phy connect out from ftgmac100_setup_mdio

2020-10-19 Thread Benjamin Herrenschmidt
On Thu, 2020-10-15 at 15:49 +0300, Ivan Mikhaylov wrote: > Split MDIO registration and PHY connect into ftgmac100_setup_mdio and > ftgmac100_mii_probe. Please keep me CCod on ftgmac100 patches. > Signed-off-by: Ivan Mikhaylov Acked-by: Benjamin Herrenschmidt > --- > drivers/net/ethernet/fara

Re: [PATCH AUTOSEL 5.9 026/111] seccomp: kill process instead of thread for unknown actions

2020-10-19 Thread Sasha Levin
On Mon, Oct 19, 2020 at 04:28:19PM -0700, Kees Cook wrote: Hi Sasha, I'd prefer this was not backported -- it's not a bug fix, and if the behavioral change is actually disruptive, I'd like to keep the fall-out contained. :) Now dropped, thanks! -- Thanks, Sasha

Re: [RFC PATCH 0/3] arm64: Implement reliable stack trace

2020-10-19 Thread Josh Poimboeuf
On Fri, Oct 16, 2020 at 01:15:34PM +0100, Mark Brown wrote: > > Yes, exactly - just copying the existing implementations and hoping that > it's sensible/relevant and covers everything that's needed. It's not > entirely clear what a reliable stacktrace is expected to do that a > normal stacktrace

Re: [PATCH] net: korina: cast KSEG0 address to pointer in kfree

2020-10-19 Thread Jakub Kicinski
On Sun, 18 Oct 2020 20:42:55 +0200 Valentin Vidic wrote: > Fixes gcc warning: > > passing argument 1 of 'kfree' makes pointer from integer without a cast > > Fixes: 3af5f0f5c74e ("net: korina: fix kfree of rx/tx descriptor array") > Reported-by: kernel test robot > Signed-off-by: Valentin Vidic

Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-10-19 Thread Vladimir Oltean
On Mon, Oct 19, 2020 at 07:24:33PM +0200, Christian Eggers wrote: > Add routines required for TX hardware time stamping. > > The KSZ9563 only supports one step time stamping > (HWTSTAMP_TX_ONESTEP_P2P), which requires linuxptp-2.0 or later. PTP > mode is permanently enabled (changes tail tag; depe

Re: [PATCH v3] net: mii: Report advertised link capabilities when autonegotiation is off

2020-10-19 Thread Andrew Lunn
On Mon, Oct 19, 2020 at 02:04:15PM +0200, Łukasz Stelmach wrote: > Unify the set of information returned by mii_ethtool_get_link_ksettings(), > mii_ethtool_gset() and phy_ethtool_ksettings_get(). Make the mii_*() > functions report advertised settings when autonegotiation if disabled. > > Suggeste

Re: [PATCH v3 0/4] Clarify abstract scale usage for power values in Energy Model, EAS and IPA

2020-10-19 Thread Doug Anderson
Hi, On Mon, Oct 19, 2020 at 7:06 AM Lukasz Luba wrote: > > Hi all, > > The Energy Model supports power values expressed in an abstract scale. > This has an impact on Intelligent Power Allocation (IPA) and should be > documented properly. Kernel sub-systems like EAS, IPA and DTPM > (new comming Po

Re: [PATCH v3 1/4] PM / EM: Add a flag indicating units of power values in Energy Model

2020-10-19 Thread Doug Anderson
Hi, On Mon, Oct 19, 2020 at 7:06 AM Lukasz Luba wrote: > > There are different platforms and devices which might use different scale > for the power values. Kernel sub-systems might need to check if all > Energy Model (EM) devices are using the same scale. Address that issue and > store the infor

Re: [PATCH v2 2/3] net: dsa: mv88e6xxx: Support serdes ports on MV88E6097/6095/6185

2020-10-19 Thread Andrew Lunn
On Mon, Oct 19, 2020 at 03:43:54PM +1300, Chris Packham wrote: > Implement serdes_power, serdes_get_lane and serdes_pcs_get_state ops for > the MV88E6097/6095/6185 so that ports 8 & 9 can be supported as serdes > ports and directly connected to other network interfaces or to SFPs > without a PHY. >

Re: [PATCH v1 29/29] virtio-mem: Big Block Mode (BBM) - safe memory hotunplug

2020-10-19 Thread Wei Yang
On Mon, Oct 19, 2020 at 10:50:39AM +0200, David Hildenbrand wrote: >On 19.10.20 09:54, Wei Yang wrote: >> On Mon, Oct 12, 2020 at 02:53:23PM +0200, David Hildenbrand wrote: >>> Let's add a safe mechanism to unplug memory, avoiding long/endless loops >>> when trying to offline memory - similar to in

Re: [PATCH v1 29/29] virtio-mem: Big Block Mode (BBM) - safe memory hotunplug

2020-10-19 Thread Wei Yang
On Mon, Oct 12, 2020 at 02:53:23PM +0200, David Hildenbrand wrote: >Let's add a safe mechanism to unplug memory, avoiding long/endless loops >when trying to offline memory - similar to in SBM. > >Fake-offline all memory (via alloc_contig_range()) before trying to >offline+remove it. Use this mode a

Re: [PATCH net] net: dsa: tag_ksz: KSZ8795 and KSZ9477 also use tail tags

2020-10-19 Thread Jakub Kicinski
On Fri, 16 Oct 2020 20:24:49 +0300 Vladimir Oltean wrote: > On Fri, Oct 16, 2020 at 07:16:03PM +0200, Christian Eggers wrote: > > I added it manually because the commit ID is not from Linus' tree. Is there > > any > > value using Fixes tags with id's from other trees? > > Yes, that's what "git

Re: [PATCH v1 09/29] virtio-mem: don't always trigger the workqueue when offlining memory

2020-10-19 Thread Wei Yang
On Mon, Oct 19, 2020 at 11:04:40AM +0200, David Hildenbrand wrote: >On 18.10.20 05:57, Wei Yang wrote: >> On Fri, Oct 16, 2020 at 11:18:39AM +0200, David Hildenbrand wrote: >>> On 16.10.20 06:03, Wei Yang wrote: On Mon, Oct 12, 2020 at 02:53:03PM +0200, David Hildenbrand wrote: > Let's tri

[PATCH v2 1/2] bindings: pm8941-misc: Convert to YAML and add support for VBUS detection

2020-10-19 Thread Guru Das Srinagesh
From: Anirudh Ghayal Convert bindings to YAML. Also add compatible string that adds support for reporting the VBUS status that can be detected via a dedicated PMIC pin. Signed-off-by: Anirudh Ghayal Signed-off-by: Guru Das Srinagesh --- .../bindings/extcon/qcom,pm8941-misc.txt | 41

[PATCH v2 2/2] extcon: qcom-spmi: Add support for VBUS detection

2020-10-19 Thread Guru Das Srinagesh
From: Anirudh Ghayal VBUS can be detected via a dedicated PMIC pin. Add support for reporting the VBUS status. Signed-off-by: Anirudh Ghayal Signed-off-by: Kavya Nunna Signed-off-by: Guru Das Srinagesh --- drivers/extcon/extcon-qcom-spmi-misc.c | 100 ++--- 1 file

[PATCH v2 0/2] Add support for VBUS detection

2020-10-19 Thread Guru Das Srinagesh
Add support to enable VBUS detection in the pm8941 extcon driver. Changes from v1: - Change bindings from txt to YAML. Anirudh Ghayal (2): bindings: pm8941-misc: Convert to YAML and add support for VBUS detection extcon: qcom-spmi: Add support for VBUS detection .../bindings/extcon/qcom

Re: [PATCH] lib: add basic KUnit test for lib/math

2020-10-19 Thread kernel test robot
Hi Daniel, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on 7cf726a59435301046250c42131554d9ccc566b8] url: https://github.com/0day-ci/linux/commits/Daniel-Latypov/lib-add-basic-KUnit-test-for-lib-math/20201020-064737 base:7cf726a59435301046250c42131554d9

Re: [PATCH 1/2] fpga: dfl: add driver_override support

2020-10-19 Thread Xu Yilun
On Mon, Oct 19, 2020 at 11:03:16AM +0200, Greg KH wrote: > On Mon, Oct 19, 2020 at 04:52:33PM +0800, Xu Yilun wrote: > > On Mon, Oct 19, 2020 at 12:06:13PM +0800, Xu Yilun wrote: > > > On Fri, Oct 16, 2020 at 09:21:50AM -0700, Tom Rix wrote: > > > > > > > > On 10/15/20 11:02 PM, Xu Yilun wrote: >

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

2020-10-19 Thread Abhishek Kumar
In some devices difference in chip-id should be enough to pick the right BDF. Add another support for chip-id based BDF selection. With this new option, ath10k supports 2 fallback options. The board name with chip-id as option looks as follows board name 'bus=snoc,qmi-board-id=ff,qmi-chip-id=320'

Re: [PATCH 1/5] x86/boot/compressed/64: Introduce sev_status

2020-10-19 Thread Sean Christopherson
On Mon, Oct 19, 2020 at 05:11:17PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > Introduce sev_status and initialize it together with sme_me_mask to have > an indicator which SEV features are enabled. > > Signed-off-by: Joerg Roedel > --- > arch/x86/boot/compressed/mem_encrypt.S | 14 +++

Re: [PATCH net] drivers/net/wan/hdlc: In hdlc_rcv, check to make sure dev is an HDLC device

2020-10-19 Thread Xie He
On Mon, Oct 19, 2020 at 3:49 PM Jakub Kicinski wrote: > > Cool! FWIW when you resend you can also trim the subject to just say: > > net: hdlc: In hdlc_rcv, check to make sure dev is an HDLC device > > There's no need for the full file path. OK. I'll do that. Thanks!

Re: [PATCHv5] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-10-19 Thread Jakub Kicinski
On Mon, 19 Oct 2020 11:09:28 +0800 Po-Hsu Lin wrote: > The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh > needs the fou module to work. Otherwise it will fail with: > > $ ip netns exec "$testns" ip fou add port ipproto 47 > RTNETLINK answers: No such file or directory >

Re: [PATCH] arm64: vdso32: Allow ld.lld to properly link the VDSO

2020-10-19 Thread Nathan Chancellor
On Mon, Oct 19, 2020 at 10:59:47AM +0100, Vincenzo Frascino wrote: > > Hi Nathan, > > On 10/13/20 4:39 AM, Nathan Chancellor wrote: > > As it stands now, the vdso32 Makefile hardcodes the linker to ld.bfd > > using -fuse-ld=bfd with $(CC). This was taken from the arm vDSO > > Makefile, as the com

Re: [PATCH 1/5] x86/boot/compressed/64: Introduce sev_status

2020-10-19 Thread Sean Christopherson
On Mon, Oct 19, 2020 at 05:59:25PM -0700, Sean Christopherson wrote: > On Mon, Oct 19, 2020 at 05:11:17PM +0200, Joerg Roedel wrote: > > From: Joerg Roedel > > > > Introduce sev_status and initialize it together with sme_me_mask to have > > an indicator which SEV features are enabled. > > > > Si

Re: [PATCH 1/2] staging: wfx: fix use of uninitialized pointer

2020-10-19 Thread Nathan Chancellor
On Mon, Oct 19, 2020 at 06:06:03PM +0200, Jerome Pouiller wrote: > From: Jérôme Pouiller > > With -Wuninitialized, the compiler complains: > > drivers/staging/wfx/data_tx.c:34:19: warning: variable 'band' is > uninitialized when used here [-Wuninitialized] > if (rate->idx >= band->n_bitrate

arch/arm/common/sa1111.c:1436:14: error: implicit declaration of function 'dmabounce_register_dev'

2020-10-19 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7cf726a59435301046250c42131554d9ccc566b8 commit: 0a0f0d8be76dcd4390ff538e7060fda34db79717 dma-mapping: split date: 2 weeks ago config: arm-badge4_defconfig (attached as .config) compiler: arm-linux-gnueab

[PATCH v2] arm64: vdso32: Allow ld.lld to properly link the VDSO

2020-10-19 Thread Nathan Chancellor
As it stands now, the vdso32 Makefile hardcodes the linker to ld.bfd using -fuse-ld=bfd with $(CC). This was taken from the arm vDSO Makefile, as the comment notes, done in commit d2b30cd4b722 ("ARM: 8384/1: VDSO: force use of BFD linker"). Commit fe00e50b2db8 ("ARM: 8858/1: vdso: use $(LD) instea

Re: [PATCH] fs: ocfs2 remove unneeded break

2020-10-19 Thread Joseph Qi
On 2020/10/20 01:52, t...@redhat.com wrote: > From: Tom Rix > > A break is not needed if it is preceded by a goto > > Signed-off-by: Tom Rix Acked-by: Joseph Qi > --- > fs/ocfs2/cluster/tcp.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluste

Re: [GIT PULL] RISC-V Patches for the 5.10 Merge Window, Part 1

2020-10-19 Thread Linus Torvalds
On Mon, Oct 19, 2020 at 12:08 PM Palmer Dabbelt wrote: > > There is one merge conflict, which is between my fixes and for-next branches: > > diff --cc arch/riscv/kernel/vmlinux.lds.S > index 67db80e12d1f,9795359cb9da..ffaa3da375c2 > --- a/arch/riscv/kernel/vmlinux.lds.S > +++ b/arc

Re: [git pull] m68knommu changes for v5.10

2020-10-19 Thread pr-tracker-bot
The pull request you sent on Mon, 19 Oct 2020 11:22:40 +1000: > git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu.git > tags/m68knommu-for-v5.10 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d3876ff74437c5f3a1a2f8d2a45b6fb91d51ea25 Thank you! -- Deet-do

Re: [PATCH v2 1/2] drm/bridge: sii902x: Enable I/O and core VCC supplies if present

2020-10-19 Thread Alex G.
On 9/28/20 12:30 PM, Alexandru Gagniuc wrote: On the SII9022, the IOVCC and CVCC12 supplies must reach the correct voltage before the reset sequence is initiated. On most boards, this assumption is true at boot-up, so initialization succeeds. However, when we try to initialize the chip with inco

Re: [GIT PULL] RISC-V Patches for the 5.10 Merge Window, Part 1

2020-10-19 Thread pr-tracker-bot
The pull request you sent on Mon, 19 Oct 2020 12:08:11 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > tags/riscv-for-linus-5.10-mw0 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/270315b8235e3d10c2e360cff56c2f9e0915a252 Thank you! --

[PATCH net v2] net: hdlc: In hdlc_rcv, check to make sure dev is an HDLC device

2020-10-19 Thread Xie He
The hdlc_rcv function is used as hdlc_packet_type.func to process any skb received in the kernel with skb->protocol == htons(ETH_P_HDLC). The purpose of this function is to provide second-stage processing for skbs not assigned a "real" L3 skb->protocol value in the first stage. This function assum

RE: [PATCH V2 4/4] misc: vop: mapping kernel memory to user space as noncached

2020-10-19 Thread Sherry Sun
Hi Christoph, Gentle ping Can you give some suggestions on the limitations of dma_mmap_coherent api? Best regards Sherry > Subject: RE: [PATCH V2 4/4] misc: vop: mapping kernel memory to user space > as noncached > > Hi David, thanks for your information. > Hi Christoph, please see my comm

Re: [PATCH v5 04/17] x86/acrn: Introduce hypercall interfaces

2020-10-19 Thread Shuo A Liu
On Mon 19.Oct'20 at 18:15:15 -0400, Arvind Sankar wrote: On Mon, Oct 19, 2020 at 02:17:50PM +0800, shuo.a@intel.com wrote: From: Shuo Liu The Service VM communicates with the hypervisor via conventional hypercalls. VMCALL instruction is used to make the hypercalls. ACRN hypercall ABI: *

Re: [PATCH v3 1/2] PM / devfreq: Add governor feature flag

2020-10-19 Thread Chanwoo Choi
On 10/20/20 7:39 AM, Dmitry Osipenko wrote: > 19.10.2020 06:53, Chanwoo Choi пишет: > ... + const u64 flag; >>> A plural form of flag(s) is more common, IMO. >> >> When need to add more feature flag, I prefer to add >> the definition instead of changing the structure. >> I think it is better.

[PATCH v8 -tip 01/26] sched: Wrap rq::lock access

2020-10-19 Thread Joel Fernandes (Google)
From: Peter Zijlstra In preparation of playing games with rq->lock, abstract the thing using an accessor. Tested-by: Julien Desfossez Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Vineeth Remanan Pillai Signed-off-by: Julien Desfossez --- kernel/sched/core.c | 46 +--

[PATCH v8 -tip 00/26] Core scheduling

2020-10-19 Thread Joel Fernandes (Google)
Eighth iteration of the Core-Scheduling feature. Core scheduling is a feature that allows only trusted tasks to run concurrently on cpus sharing compute resources (eg: hyperthreads on a core). The goal is to mitigate the core-level side-channel attacks without requiring to disable SMT (which has a

[PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-19 Thread Joel Fernandes (Google)
From: Peter Zijlstra Because sched_class::pick_next_task() also implies sched_class::set_next_task() (and possibly put_prev_task() and newidle_balance) it is not state invariant. This makes it unsuitable for remote task selection. Tested-by: Julien Desfossez Signed-off-by: Peter Zijlstra (Intel

Re: [PATCH] security: remove unneeded break

2020-10-19 Thread James Morris
On Mon, 19 Oct 2020, t...@redhat.com wrote: > From: Tom Rix > > A break is not needed if it is preceded by a return > > Signed-off-by: Tom Rix Acked-by: James Morris -- James Morris

[PATCH v8 -tip 08/26] sched/fair: Snapshot the min_vruntime of CPUs on force idle

2020-10-19 Thread Joel Fernandes (Google)
During force-idle, we end up doing cross-cpu comparison of vruntimes during pick_next_task. If we simply compare (vruntime-min_vruntime) across CPUs, and if the CPUs only have 1 task each, we will always end up comparing 0 with 0 and pick just one of the tasks all the time. This starves the task th

[PATCH v8 -tip 14/26] entry/idle: Enter and exit kernel protection during idle entry and exit

2020-10-19 Thread Joel Fernandes (Google)
Add a generic_idle_{enter,exit} helper function to enter and exit kernel protection when entering and exiting idle, respectively. Tested-by: Julien Desfossez Signed-off-by: Joel Fernandes (Google) --- include/linux/entry-common.h | 18 ++ kernel/sched/idle.c | 11 ++

[PATCH v8 -tip 12/26] arch/x86: Add a new TIF flag for untrusted tasks

2020-10-19 Thread Joel Fernandes (Google)
Add a new TIF flag to indicate whether the kernel needs to be careful and take additional steps to mitigate micro-architectural issues during entry into user or guest mode. This new flag will be used by the series to determine if waiting is needed or not, during exit to user or guest mode. Tested

[PATCH v8 -tip 06/26] sched: Add core wide task selection and scheduling.

2020-10-19 Thread Joel Fernandes (Google)
From: Peter Zijlstra Instead of only selecting a local task, select a task for all SMT siblings for every reschedule on the core (irrespective which logical CPU does the reschedule). During a CPU hotplug event, schedule would be called with the hotplugged CPU not in the cpumask. So use for_each_

[PATCH v8 -tip 03/26] sched: Core-wide rq->lock

2020-10-19 Thread Joel Fernandes (Google)
From: Peter Zijlstra Introduce the basic infrastructure to have a core wide rq->lock. Tested-by: Julien Desfossez Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Julien Desfossez Signed-off-by: Vineeth Remanan Pillai --- kernel/Kconfig.preempt | 6 +++ kernel/sched/core.c| 109 ++

[PATCH v8 -tip 07/26] sched/fair: Fix forced idle sibling starvation corner case

2020-10-19 Thread Joel Fernandes (Google)
From: Vineeth Pillai If there is only one long running local task and the sibling is forced idle, it might not get a chance to run until a schedule event happens on any cpu in the core. So we check for this condition during a tick to see if a sibling is starved and then give it a chance to sche

[PATCH v8 -tip 10/26] sched: migration changes for core scheduling

2020-10-19 Thread Joel Fernandes (Google)
From: Aubrey Li - Don't migrate if there is a cookie mismatch Load balance tries to move task from busiest CPU to the destination CPU. When core scheduling is enabled, if the task's cookie does not match with the destination CPU's core cookie, this task will be skipped by thi

[PATCH v8 -tip 04/26] sched/fair: Add a few assertions

2020-10-19 Thread Joel Fernandes (Google)
From: Peter Zijlstra Tested-by: Julien Desfossez Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/fair.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index bd6aed63f5e3..b4bc82f46fe7 100644 --- a/kernel/sched/

[PATCH v8 -tip 13/26] kernel/entry: Add support for core-wide protection of kernel-mode

2020-10-19 Thread Joel Fernandes (Google)
Core-scheduling prevents hyperthreads in usermode from attacking each other, but it does not do anything about one of the hyperthreads entering the kernel for any reason. This leaves the door open for MDS and L1TF attacks with concurrent execution sequences between hyperthreads. This patch therefo

[PATCH v8 -tip 05/26] sched: Basic tracking of matching tasks

2020-10-19 Thread Joel Fernandes (Google)
From: Peter Zijlstra Introduce task_struct::core_cookie as an opaque identifier for core scheduling. When enabled; core scheduling will only allow matching task to be on the core; where idle matches everything. When task_struct::core_cookie is set (and core scheduling is enabled) these tasks are

[PATCH v8 -tip 11/26] irq_work: Cleanup

2020-10-19 Thread Joel Fernandes (Google)
From: Peter Zijlstra Get rid of the __call_single_node union and clean up the API a little to avoid external code relying on the structure layout as much. (Needed for irq_work_is_busy() API in core-scheduling series). Tested-by: Julien Desfossez Signed-off-by: Peter Zijlstra (Intel) Signed-of

[PATCH v8 -tip 22/26] sched/debug: Add CGroup node for printing group cookie if SCHED_DEBUG

2020-10-19 Thread Joel Fernandes (Google)
This will be used by kselftest to verify the CGroup cookie value that is set by the CGroup interface. Tested-by: Julien Desfossez Signed-off-by: Joel Fernandes (Google) --- kernel/sched/core.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/kernel/sched/core.c b/ker

[PATCH v8 -tip 18/26] sched: Add a per-thread core scheduling interface

2020-10-19 Thread Joel Fernandes (Google)
Add a per-thread core scheduling interface which allows a thread to share a core with another thread, or have a core exclusively for itself. ChromeOS uses core-scheduling to securely enable hyperthreading. This cuts down the keypress latency in Google docs from 150ms to 50ms while improving the c

[PATCH v8 -tip 21/26] sched: Handle task addition to CGroup

2020-10-19 Thread Joel Fernandes (Google)
Due to earlier patches, the old way of computing a task's cookie when it is added to a CGroup,is outdated. Update it by fetching the group's cookie using the new helpers. Tested-by: Julien Desfossez Signed-off-by: Joel Fernandes (Google) --- kernel/sched/core.c | 15 ++- 1 file chan

[PATCH v8 -tip 09/26] sched: Trivial forced-newidle balancer

2020-10-19 Thread Joel Fernandes (Google)
From: Peter Zijlstra When a sibling is forced-idle to match the core-cookie; search for matching tasks to fill the core. rcu_read_unlock() can incur an infrequent deadlock in sched_core_balance(). Fix this by using the RCU-sched flavor instead. Tested-by: Julien Desfossez Signed-off-by: Peter

[PATCH v8 -tip 25/26] Documentation: Add core scheduling documentation

2020-10-19 Thread Joel Fernandes (Google)
Document the usecases, design and interfaces for core scheduling. Co-developed-by: Vineeth Pillai Tested-by: Julien Desfossez Signed-off-by: Joel Fernandes (Google) --- .../admin-guide/hw-vuln/core-scheduling.rst | 312 ++ Documentation/admin-guide/hw-vuln/index.rst | 1 +

[PATCH v8 -tip 19/26] sched: Add a second-level tag for nested CGroup usecase

2020-10-19 Thread Joel Fernandes (Google)
Google has a usecase where the first level tag to tag a CGroup is not sufficient. So, a patch is carried for years where a second tag is added which is writeable by unprivileged users. Google uses DAC controls to make the 'tag' possible to set only by root while the second-level 'color' can be cha

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