[PATCH] tty: serial: qcom-geni-serial: Drop the icc bw votes in suspend for console

2020-07-09 Thread Rajendra Nayak
When using the geni-serial as console, its important to be able to hit the lowest possible power state in suspend, even with no_console_suspend. The only thing that prevents it today on platforms like the sc7180 is the interconnect BW votes, which we certainly don't need when the system is in suspe

Re: [PATCH] Replace HTTP links with HTTPS ones: DMI/SMBIOS SUPPORT

2020-07-09 Thread Jean Delvare
On Wed, 08 Jul 2020 16:37:56 +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't con

Re: [PATCH v3 0/8] Refactor handling flow of KVM_SET_CPUID*

2020-07-09 Thread Paolo Bonzini
On 09/07/20 06:27, Xiaoyao Li wrote: > On 7/8/2020 8:10 PM, Paolo Bonzini wrote: >> On 08/07/20 08:50, Xiaoyao Li wrote: >>> This serial is the extended version of >>> https://lkml.kernel.org/r/20200528151927.14346-1-xiaoyao...@intel.com >>> >>> First two patches are bug fixing, and the others aim

Re: [PATCH] fpga: dfl: pci: add device id for Intel FPGA PAC N3000

2020-07-09 Thread Xu Yilun
On Thu, Jul 09, 2020 at 05:10:49PM +0800, Wu, Hao wrote: > > Subject: [PATCH] fpga: dfl: pci: add device id for Intel FPGA PAC N3000 > > > > Add PCIe Device ID for Intel FPGA PAC N3000. > > > > Signed-off-by: Wu Hao > > Signed-off-by: Xu Yilun > > Signed-off-by: Matthew Gerlach > > Signed-off-by

[PATCH V4] mm/vmstat: Add events for THP migration without split

2020-07-09 Thread Anshuman Khandual
Add following new vmstat events which will help in validating THP migration without split. Statistics reported through these new VM events will help in performance debugging. 1. THP_MIGRATION_SUCCESS 2. THP_MIGRATION_FAIL 3. THP_MIGRATION_SPLIT In addition, these new events also update normal pag

Re: [PATCH v4 11/18] nitro_enclaves: Add logic for enclave memory region set

2020-07-09 Thread Paraschiv, Andra-Irina
On 09/07/2020 11:40, Alexander Graf wrote: On 09.07.20 09:36, Paraschiv, Andra-Irina wrote: On 06/07/2020 13:46, Alexander Graf wrote: On 22.06.20 22:03, Andra Paraschiv wrote: Another resource that is being set for an enclave is memory. User space memory regions, that need to be bac

Re: [PATCH] timer: Prevent base->clk from moving backward

2020-07-09 Thread Anna-Maria Behnsen
Hi, On Fri, 3 Jul 2020, Frederic Weisbecker wrote: > When a timer is enqueued with a negative delta (ie: expiry is below > base->clk), it gets added to the wheel as expiring now (base->clk). > > Yet the value that gets stored in base->next_expiry, while calling > trigger_dyntick_cpu(), is the in

Re: [PATCH bpf-next v3 1/4] bpf: Generalize bpf_sk_storage

2020-07-09 Thread KP Singh
On 09-Jul 10:49, kernel test robot wrote: > Hi KP, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on bpf-next/master] > > url: > https://github.com/0day-ci/linux/commits/KP-Singh/Generalizing-bpf_local_storage/2020070

Re: [PATCH bpf-next v3 2/4] bpf: Implement bpf_local_storage for inodes

2020-07-09 Thread KP Singh
On 09-Jul 12:37, kernel test robot wrote: > Hi KP, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on bpf-next/master] > > url: > https://github.com/0day-ci/linux/commits/KP-Singh/Generalizing-bpf_local_storage/2020070

Re: [Ksummit-discuss] [PATCH v3] CodingStyle: Inclusive Terminology

2020-07-09 Thread Matthias Brugger
On 08/07/2020 20:14, Dan Williams wrote: Linux maintains a coding-style and its own idiomatic set of terminology. Update the style guidelines to recommend replacements for the terms master/slave and blacklist/whitelist. Link: http://lore.kernel.org/r/159389297140.2210796.13590142254668787525

BUG: stack guard page was hit in mark_held_locks

2020-07-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:9e50b94b Add linux-next specific files for 20200703 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1051ee8f10 kernel config: https://syzkaller.appspot.com/x/.config?x=f99cc0faa1476ed6 dashboard

Re: [PATCH 1/2] firmware: arm_scmi: Keep the discrete clock rates sorted

2020-07-09 Thread Sudeep Holla
On Thu, Jul 09, 2020 at 08:53:44AM +, Dien Pham wrote: > Dear Sudeep-san, > > > > >+} > > > >+ > > > > static int > > > > scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 > > > > clk_id, > > > > struct scmi_clock_info *clk) @@ -184,8 > > > > +

Re: [PATCH v3] clk: tegra: pll: Improve PLLM enable-state detection

2020-07-09 Thread Jon Hunter
On 08/07/2020 08:54, Dmitry Osipenko wrote: > Power Management Controller (PMC) can override the PLLM clock settings, > including the enable-state. Although PMC could only act as a second level > gate, meaning that PLLM needs to be enabled by the Clock and Reset > Controller (CaR) anyways if we w

Re: [PATCH] arm64: kernel: Add module symbols _text, _etext.

2020-07-09 Thread Will Deacon
On Thu, Jul 09, 2020 at 05:23:45PM +0900, sanggil2@samsung.com wrote: > From: Sanggil Kim > > We have a solution to protect kernel code section(autually from _text to > _etext) by not MMU. In order to do this, we have to know the addresses > of _text and _etext at runtime. Interesting! Can y

[PATCH] irqdomain/treewide: Keep firmware node unconditionally allocated

2020-07-09 Thread Thomas Gleixner
Quite some non OF/ACPI users of irqdomains allocate firmware nodes of type IRQCHIP_FWNODE_NAMED or IRQCHIP_FWNODE_NAMED_ID and free them right after creating the irqdomain. The only purpose of these FW nodes is to convey name information. When this was introduced the core code did not store the poi

Re: [PATCH v2 0/8] arm64: dts: qcom: smmu/USB nodes and HDK855/HDK865 dts

2020-07-09 Thread Will Deacon
On Tue, 9 Jun 2020 15:40:18 -0400, Jonathan Marek wrote: > Add dts nodes for apps_smmu and USB for both sm8150 and sm8250. > > Also add initial dts files for HDK855 and HDK865, based on mtp dts, with a > few changes. Notably, the HDK865 dts has regulator config changed a bit based > on downstream

Re: [PATCH] arm64: Add missing sentinel to erratum_1463225

2020-07-09 Thread Will Deacon
On Wed, 8 Jul 2020 22:13:40 -0700, Florian Fainelli wrote: > When the erratum_1463225 array was introduced a sentinel at the end was > missing thus causing a KASAN: global-out-of-bounds in > is_affected_midr_range_list on arm64 error. Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: Add mi

[PATCH] KVM: nSVM: vmentry ignores EFER.LMA and possibly RFLAGS.VM

2020-07-09 Thread Paolo Bonzini
AMD doesn't specify (unlike Intel) that EFER.LME, CR0.PG and EFER.LMA must be consistent, and for SMM state restore they say that "The EFER.LMA register bit is set to the value obtained by logically ANDing the SMRAM values of EFER.LME, CR0.PG, and CR4.PAE". It turns out that this is also true for

Re: [PATCH v5 2/2] s390: virtio: PV needs VIRTIO I/O device protection

2020-07-09 Thread Halil Pasic
On Thu, 9 Jul 2020 10:57:33 +0200 Cornelia Huck wrote: > On Thu, 9 Jul 2020 10:39:19 +0200 > Pierre Morel wrote: > > > If protected virtualization is active on s390, the virtio queues are > > not accessible to the host, unless VIRTIO_F_IOMMU_PLATFORM has been > > negotiated. Use the new arch_v

Re: [PATCH v3 3/8] ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers

2020-07-09 Thread Rohit Kumar
Thanks Srini for reviewing. On 7/9/2020 2:56 PM, Srinivas Kandagatla wrote: On 08/07/2020 06:08, Rohit kumar wrote: I2SCTL and DMACTL registers has different bits alignment for newer LPASS variants of SC7180 soc. Use REG_FIELD_ID() to define the reg_fields in platform specific file and remove

Re: [PATCH 2/2] doc, mm: clarify /proc//oom_score value range

2020-07-09 Thread Michal Hocko
On Thu 09-07-20 17:01:06, Yafang Shao wrote: > On Thu, Jul 9, 2020 at 4:18 PM Michal Hocko wrote: > > > > On Thu 09-07-20 15:41:11, Yafang Shao wrote: > > > On Thu, Jul 9, 2020 at 2:26 PM Michal Hocko wrote: > > > > > > > > From: Michal Hocko > > > > > > > > The exported value includes oom_score

Re: [PATCH v5 1/2] virtio: let arch validate VIRTIO features

2020-07-09 Thread Halil Pasic
On Thu, 9 Jul 2020 10:39:18 +0200 Pierre Morel wrote: > An architecture may need to validate the VIRTIO devices features > based on architecture specifics. > > Signed-off-by: Pierre Morel > Reviewed-by: Cornelia Huck > Acked-by: Christian Borntraeger Acked-by: Halil Pasic > --- > drivers

[PATCH net-next v2 00/12] bridge: mrp: Add support for interconnect ring

2020-07-09 Thread Horatiu Vultur
This patch series extends existing MRP to add support for interconnect ring. An interconnect ring is a ring that connects 2 rings. In this way is possible to connect multiple rings. Each interconnect ring is form of 4 nodes, in which 3 have the role MIC(Media Redundancy Interconnect Client) and on

[PATCH net-next v2 02/12] bridge: uapi: mrp: Extend MRP attributes for MRP interconnect

2020-07-09 Thread Horatiu Vultur
Extend the existing MRP netlink attributes to allow to configure MRP Interconnect: IFLA_BRIDGE_MRP_IN_ROLE - the parameter type is br_mrp_in_role which contains the interconnect id, the ring id, the interconnect role(MIM or MIC) and the port ifindex that represents the interconnect port. IFLA

[PATCH net-next v2 06/12] bridge: mrp: Add br_mrp_in_port_open function

2020-07-09 Thread Horatiu Vultur
This function notifies the userspace when the node lost the continuity of MRP_InTest frames. Signed-off-by: Horatiu Vultur --- net/bridge/br_mrp_netlink.c | 22 ++ net/bridge/br_private_mrp.h | 1 + 2 files changed, 23 insertions(+) diff --git a/net/bridge/br_mrp_netlink.c

[PATCH net-next v2 05/12] bridge: mrp: Rename br_mrp_port_open to br_mrp_ring_port_open

2020-07-09 Thread Horatiu Vultur
This patch renames the function br_mrp_port_open to br_mrp_ring_port_open. In this way is more clear that a ring port lost the continuity because there will be also a br_mrp_in_port_open. Signed-off-by: Horatiu Vultur --- net/bridge/br_mrp.c | 6 +++--- net/bridge/br_mrp_netlink.c | 2 +-

[PATCH net-next v2 01/12] switchdev: mrp: Extend switchdev API for MRP Interconnect

2020-07-09 Thread Horatiu Vultur
Extend switchdev API to add support for MRP interconnect. The HW is notified in the following cases: SWITCHDEV_OBJ_ID_IN_ROLE_MRP: This is used when the interconnect role of the node changes. The supported roles are MIM and MIC. SWITCHDEV_OBJ_ID_IN_STATE_MRP: This is used when the interconnect

[PATCH net-next v2 08/12] bridge: mrp: Implement the MRP Interconnect API

2020-07-09 Thread Horatiu Vultur
Thie patch adds support for MRP Interconnect. Similar with the MRP ring, if the HW can't generate MRP_InTest frames, then the SW will try to generate them. And if also the SW fails to generate the frames then an error is return to userspace. The forwarding/termination of MRP_In frames is happening

[PATCH net-next v2 11/12] bridge: mrp: Extend br_mrp_fill_info

2020-07-09 Thread Horatiu Vultur
This patch extends the function br_mrp_fill_info to return also the status for the interconnect ring. Signed-off-by: Horatiu Vultur --- net/bridge/br_mrp_netlink.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/net/bridge/br_mrp_netlink.c b/net/bridge/br_mrp_netlink.c in

[PATCH net-next v2 03/12] bridge: mrp: Extend bridge interface

2020-07-09 Thread Horatiu Vultur
This patch adds a new flag(BR_MRP_LOST_IN_CONT) to the net bridge ports. This bit will be set when the port lost the continuity of MRP_InTest frames. Signed-off-by: Horatiu Vultur --- include/linux/if_bridge.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/if_bridge.h b/includ

[PATCH net-next v2 07/12] bridge: switchdev: mrp: Extend MRP API for switchdev for MRP Interconnect

2020-07-09 Thread Horatiu Vultur
Implement the MRP API for interconnect switchdev. Similar with the other br_mrp_switchdev function, these function will just eventually call the switchdev functions: switchdev_port_obj_add/del. Signed-off-by: Horatiu Vultur --- net/bridge/br_mrp_switchdev.c | 62 +

Re: [PATCH v3 6/8] dt-bindings: sound: lpass-cpu: Add sc7180 lpass cpu node

2020-07-09 Thread Rohit Kumar
On 7/9/2020 2:57 PM, Srinivas Kandagatla wrote: On 08/07/2020 06:08, Rohit kumar wrote: Add dt-bindings to support "qcom,lpass-cpu-sc7180" node. Signed-off-by: Rohit kumar ---   Documentation/devicetree/bindings/sound/qcom,lpass-cpu.txt | 3 ++-   1 file changed, 2 insertions(+), 1 deletion

[PATCH net-next v2 10/12] bridge: uapi: mrp: Extend MRP_INFO attributes for interconnect status

2020-07-09 Thread Horatiu Vultur
Extend the existing MRP_INFO to return status of MRP interconnect. In case there is no MRP interconnect on the node then the role will be disabled so the other attributes can be ignored. Signed-off-by: Horatiu Vultur --- include/uapi/linux/if_bridge.h | 5 + 1 file changed, 5 insertions(+)

[PATCH net-next v2 04/12] bridge: mrp: Extend br_mrp for MRP interconnect

2020-07-09 Thread Horatiu Vultur
This patch extends the 'struct br_mrp' to contain information regarding the MRP interconnect. It contains the following: - the interconnect port 'i_port', which is NULL if the node doesn't have a interconnect role - the interconnect id, which is similar with the ring id, but this field is also

[PATCH net-next v2 12/12] net: bridge: Add port attribute IFLA_BRPORT_MRP_IN_OPEN

2020-07-09 Thread Horatiu Vultur
This patch adds a new port attribute, IFLA_BRPORT_MRP_IN_OPEN, which allows to notify the userspace when the node lost the contiuity of MRP_InTest frames. Signed-off-by: Horatiu Vultur --- include/uapi/linux/if_link.h | 1 + net/bridge/br_netlink.c| 3 +++ tools/include/uapi/li

[PATCH net-next v2 09/12] bridge: mrp: Extend MRP netlink interface for configuring MRP interconnect

2020-07-09 Thread Horatiu Vultur
This patch extends the existing MRP netlink interface with the following attributes: IFLA_BRIDGE_MRP_IN_ROLE, IFLA_BRIDGE_MRP_IN_STATE and IFLA_BRIDGE_MRP_START_IN_TEST. These attributes are similar with their ring attributes but they apply to the interconnect port. Signed-off-by: Horatiu Vultur

Re: [PATCH v3 1/6] powerpc/powernv: must include hvcall.h to get PAPR defines

2020-07-09 Thread Michael Ellerman
Nicholas Piggin writes: > An include goes away in future patches which breaks compilation > without this. > > Signed-off-by: Nicholas Piggin > --- > arch/powerpc/platforms/powernv/pci-ioda-tce.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/powerpc/platforms/powernv/pci-ioda-tce.

[tip: timers/urgent] timer: Prevent base->clk from moving backward

2020-07-09 Thread tip-bot2 for Frederic Weisbecker
The following commit has been merged into the timers/urgent branch of tip: Commit-ID: 30c66fc30ee7a98c4f3adf5fb7e213b61884474f Gitweb: https://git.kernel.org/tip/30c66fc30ee7a98c4f3adf5fb7e213b61884474f Author:Frederic Weisbecker AuthorDate:Fri, 03 Jul 2020 03:06:57 +02:00

Re: [PATCH 08/17] gpiolib: cdev: use blocking notifier call chain instead of atomic

2020-07-09 Thread Bartosz Golaszewski
On Wed, Jul 8, 2020 at 6:19 AM Kent Gibson wrote: > > Replace usage of atomic_notifier_call_chain with > blocking_notifier_call_chain as the notifier function, > lineinfo_changed_notify, calls gpio_desc_to_lineinfo, > which calls pinctrl_gpio_can_use_line, which can sleep. > > The chain isn't bein

Re: [PATCH v3 4/8] include: dt-bindings: sound: Add sc7180-lpass bindings header

2020-07-09 Thread Rohit Kumar
On 7/8/2020 8:15 PM, Mark Brown wrote: On Wed, Jul 08, 2020 at 10:38:12AM +0530, Rohit kumar wrote: From: Ajit Pandey Add header defining dai-id and mclk id for SC7180 lpass soc. Signed-off-by: Ajit Pandey --- This one is missing a signoff as well, and I can't seem to see any reference to

Re: [PATCH v3 3/8] ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers

2020-07-09 Thread Srinivas Kandagatla
On 09/07/2020 10:57, Rohit Kumar wrote: Thanks Srini for reviewing. On 7/9/2020 2:56 PM, Srinivas Kandagatla wrote: On 08/07/2020 06:08, Rohit kumar wrote: I2SCTL and DMACTL registers has different bits alignment for newer LPASS variants of SC7180 soc. Use REG_FIELD_ID() to define the reg

Re: [PATCH v4] HID: i2c-hid: Enable wakeup capability from Suspend-to-Idle

2020-07-09 Thread Hans de Goede
Hi, On 7/9/20 9:57 AM, Kai-Heng Feng wrote: Many laptops can be woken up from Suspend-to-Idle by touchpad. This is also the default behavior on other OSes. However, if touchpad and touchscreen contact to each other when lid is closed, wakeup events can be triggered inadventertly. So let's disa

Re: [PATCH v3 6/8] dt-bindings: sound: lpass-cpu: Add sc7180 lpass cpu node

2020-07-09 Thread Srinivas Kandagatla
On 09/07/2020 11:01, Rohit Kumar wrote: On 7/9/2020 2:57 PM, Srinivas Kandagatla wrote: On 08/07/2020 06:08, Rohit kumar wrote: Add dt-bindings to support "qcom,lpass-cpu-sc7180" node. Signed-off-by: Rohit kumar ---   Documentation/devicetree/bindings/sound/qcom,lpass-cpu.txt | 3 ++-  

Re: [REGRESSION] mlx5: Driver remove during hot unplug is broken

2020-07-09 Thread Niklas Schnelle
On 7/8/20 5:44 PM, Parav Pandit wrote: ... snip .. >> > > It is likely because events_cleanup() freed the memory using kvfree() that > health recovery context is trying to access in notifier chain. > > While reviewing I see few more errors as below. > (a) mlx5_pci_err_detected() invokes mlx5_d

[PATCH v5 1/4] arm64: dts: rockchip: Trivial cleanups for RockPI N10

2020-07-09 Thread Jagan Teki
Radxa dalang carrier boards are used to mount vmarc SoM's of rk3399pro and rk3288 to make complete SBC. So, this patch adds trivial changes to properties. - move common properties into radxa dalang carrier dtsi. - maintain ascending order for nodes, properties. - change the order of dtsi include s

[PATCH v5 0/4] ARM: dts: rockchip: Radxa Rock Pi N8 initial support

2020-07-09 Thread Jagan Teki
Rock Pi N8 is a Rockchip RK3288 based SBC, which has - VMARC RK3288 SOM (as per SMARC standard) from Vamrs. - Compatible carrier board from Radxa. VMARC RK3288 SOM need to mount on top of dalang carrier board for making Rock PI N8 SBC. This series moved i2c2 into rk3399pro dtsi and rest are simil

Re: [PATCH v3 2/6] powerpc/pseries: move some PAPR paravirt functions to their own file

2020-07-09 Thread Michael Ellerman
Nicholas Piggin writes: > Little bit of changelog would be nice :D > Signed-off-by: Nicholas Piggin > --- > arch/powerpc/include/asm/paravirt.h | 61 + > arch/powerpc/include/asm/spinlock.h | 24 +--- > arch/powerpc/lib/locks.c| 12 +++--- > 3 fi

[PATCH v5 3/4] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support

2020-07-09 Thread Jagan Teki
VMARC RK3288 SOM is a standard SMARC SOM design with Rockchip RK3288 SoC, which is designed by Vamrs. Specification: - Rockchip RK3288 - PMIC: RK808 - eMMC: 16GB/32GB/64GB - SD slot - 2xUSB-2.0, 1xUSB3.0 - USB-C for power supply - Ethernet - HDMI, MIPI-DSI/CSI, eDP Add initial support for VMARC R

[PATCH v5 2/4] dt-bindings: arm: rockchip: Add Rock Pi N8 binding

2020-07-09 Thread Jagan Teki
Rock Pi N8 is a Rockchip RK3288 based SBC, which has - VMARC RK3288 SOM (as per SMARC standard) from Vamrs. - Compatible carrier board from Radxa. VMARC RK3288 SOM need to mount on top of dalang carrier board for making Rock PI N8 SBC. Add dt-bindings for it. Signed-off-by: Jagan Teki --- Chang

Re: [PATCH 3/4] i3c: master: svc: Add Silvaco I3C master driver

2020-07-09 Thread kernel test robot
Hi Miquel, I love your patch! Perhaps something to improve: [auto build test WARNING on robh/for-next] [also build test WARNING on linus/master v5.8-rc4 next-20200709] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as

[PATCH v5 4/4] ARM: dts: rockchip: Add Radxa Rock Pi N8 initial support

2020-07-09 Thread Jagan Teki
Rock Pi N8 is a Rockchip RK3288 based SBC, which has - VMARC RK3288 SOM (as per SMARC standard) from Vamrs. - Compatible carrier board from Radxa. VAMRC RK3288 SOM need to mount on top of radxa dalang carrier board for making Rock Pi N8 SBC. So, add initial support for Rock Pi N8 by including rk3

Re: linux-next: Tree for Jul 9

2020-07-09 Thread Anders Roxell
On Thu, 9 Jul 2020 at 11:18, Stephen Rothwell wrote: > > Hi all, > > Changes since 20200708: > > My fixes tree contains: > > dbf24e30ce2e ("device_cgroup: Fix RCU list debugging warning") > b236d81d9e4f ("powerpc/boot/dts: Fix dtc "pciex" warnings") > > The kbuild tree still had its build fail

[PATCH][next] spi: atmel: remove redundant label out_free

2020-07-09 Thread Colin King
From: Colin Ian King The error exit label out_free is no longer being used, it is redundant and can be removed. Cleans up warning: drivers/spi/spi-atmel.c:1680:1: warning: label ‘out_free’ defined but not used [-Wunused-label] Fixes: 2d9a744685bc ("spi: atmel: No need to call spi_master_put()

[PATCH net] ethtool: fix genlmsg_put() failure handling in ethnl_default_dumpit()

2020-07-09 Thread Michal Kubecek
If the genlmsg_put() call in ethnl_default_dumpit() fails, we bail out without checking if we already have some messages in current skb like we do with ethnl_default_dump_one() failure later. Therefore if existing messages almost fill up the buffer so that there is not enough space even for netlink

[PATCH bpf-next v4 1/4] bpf: Generalize bpf_sk_storage

2020-07-09 Thread KP Singh
From: KP Singh Refactor the functionality in bpf_sk_storage.c so that concept of storage linked to kernel objects can be extended to other objects like inode, task_struct etc. bpf_sk_storage is updated to be bpf_local_storage with a union that contains a pointer to the owner object. The type of

[PATCH bpf-next v4 4/4] bpf: Add selftests for local_storage

2020-07-09 Thread KP Singh
From: KP Singh inode_local_storage: * Hook to the file_open and inode_unlink LSM hooks. * Create and unlink a temporary file. * Store some information in the inode's bpf_local_storage during file_open. * Verify that this information exists when the file is unlinked. sk_local_storage: * Hook

drivers/watchdog/wdt_pci.c:103:9: sparse: sparse: cast removes address space '__iomem' of expression

2020-07-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0bddd227f3dc55975e2b8dfa7fc6f959b062a2c7 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 3 weeks ago config: riscv-randconfig-s031-20200709

[PATCH bpf-next v4 2/4] bpf: Implement bpf_local_storage for inodes

2020-07-09 Thread KP Singh
From: KP Singh Similar to bpf_local_storage for sockets, add local storage for inodes. The life-cycle of storage is managed with the life-cycle of the inode. i.e. the storage is destroyed along with the owning inode. The BPF LSM allocates an __rcu pointer to the bpf_local_storage in the security

[PATCH bpf-next v4 3/4] bpf: Allow local storage to be used from LSM programs

2020-07-09 Thread KP Singh
From: KP Singh Adds support for both bpf_{sk, inode}_storage_{get, delete} to be used in LSM programs. These helpers are not used for tracing programs (currently) as their usage is tied to the life-cycle of the object and should only be used where the owning object won't be freed (when the owning

Re: [PATCH v3 6/8] dt-bindings: sound: lpass-cpu: Add sc7180 lpass cpu node

2020-07-09 Thread Rohit Kumar
On 7/9/2020 3:38 PM, Srinivas Kandagatla wrote: On 09/07/2020 11:01, Rohit Kumar wrote: On 7/9/2020 2:57 PM, Srinivas Kandagatla wrote: On 08/07/2020 06:08, Rohit kumar wrote: Add dt-bindings to support "qcom,lpass-cpu-sc7180" node. Signed-off-by: Rohit kumar ---   Documentation/devic

[PATCH bpf-next v4 0/4] Generalizing bpf_local_storage

2020-07-09 Thread KP Singh
From: KP Singh # v3 -> v4 - Fixed a missing include to bpf_sk_storage.h in bpf_sk_storage.c - Fixed some functions that were not marked as static which led to W=1 compilation warnings. # v2 -> v3 * Restructured the code as per Martin's suggestions: - Common functionality in bpf_local_stora

Re: KASAN: stack-out-of-bounds Read in csd_lock_record

2020-07-09 Thread Dmitry Vyukov
On Tue, Jul 7, 2020 at 6:26 PM Paul E. McKenney wrote: > > On Tue, Jul 07, 2020 at 05:51:48PM +0200, Dmitry Vyukov wrote: > > On Sat, Jul 4, 2020 at 8:34 PM Dmitry Vyukov wrote: > > > > > > On Sat, Jul 4, 2020 at 6:45 PM Paul E. McKenney > > > wrote: > > > > > > > > On Fri, Jul 03, 2020 at 04:3

Re: [PATCH v3 3/6] powerpc: move spinlock implementation to simple_spinlock

2020-07-09 Thread Michael Ellerman
Nicholas Piggin writes: > To prepare for queued spinlocks. This is a simple rename except to update > preprocessor guard name and a file reference. > > Signed-off-by: Nicholas Piggin > --- > arch/powerpc/include/asm/simple_spinlock.h| 292 ++ > .../include/asm/simple_spinlock

[RFC 0/3] cpufreq: cppc: Add support for frequency invariance

2020-07-09 Thread Viresh Kumar
Hello, CPPC cpufreq driver is used for ARM servers and this patch series tries to provide frequency invariance support for them. The same is also provided using a specific hardware extension, known as AMU (Activity Monitors Unit), but that is optional for platforms and at least few of them don't h

Re: [PATCH v3 6/8] dt-bindings: sound: lpass-cpu: Add sc7180 lpass cpu node

2020-07-09 Thread Srinivas Kandagatla
On 09/07/2020 11:12, Rohit Kumar wrote: On 7/9/2020 3:38 PM, Srinivas Kandagatla wrote: On 09/07/2020 11:01, Rohit Kumar wrote: On 7/9/2020 2:57 PM, Srinivas Kandagatla wrote: On 08/07/2020 06:08, Rohit kumar wrote: Add dt-bindings to support "qcom,lpass-cpu-sc7180" node. Signed-off

[RFC 1/3] arm64: topology: Add amu_counters_supported() helper

2020-07-09 Thread Viresh Kumar
We would need to know earlier during the boot cycle if AMUs are supported or not for all the CPUs, export a routine for that and move code around to make it more readable. Signed-off-by: Viresh Kumar --- arch/arm64/kernel/topology.c | 108 ++- 1 file changed, 56 i

[RFC 3/3] cpufreq: cppc: Add support for frequency invariance

2020-07-09 Thread Viresh Kumar
The Frequency Invariance Engine (FIE) is providing a frequency scaling correction factor that helps achieve more accurate load-tracking. Normally, this scaling factor can be obtained directly with the help of the cpufreq drivers as they know the exact frequency the hardware is running at. But that

[RFC 2/3] topology: Provide generic implementation of arch_freq_counters_available()

2020-07-09 Thread Viresh Kumar
arch_freq_counters_available() is implemented only for ARM AMU hardware right now and this patch attempts to make it generic enough so other parts of the kernel can also register their own implementation of topology_scale_freq_tick() routine. Signed-off-by: Viresh Kumar --- arch/arm64/include/as

Re: [PATCH v3] clk: tegra: pll: Improve PLLM enable-state detection

2020-07-09 Thread Dmitry Osipenko
09.07.2020 12:49, Jon Hunter пишет: > > On 08/07/2020 08:54, Dmitry Osipenko wrote: >> Power Management Controller (PMC) can override the PLLM clock settings, >> including the enable-state. Although PMC could only act as a second level >> gate, meaning that PLLM needs to be enabled by the Clock an

RE: [PATCH] fpga: dfl: pci: add device id for Intel FPGA PAC N3000

2020-07-09 Thread Wu, Hao
> On Thu, Jul 09, 2020 at 05:10:49PM +0800, Wu, Hao wrote: > > > Subject: [PATCH] fpga: dfl: pci: add device id for Intel FPGA PAC N3000 > > > > > > Add PCIe Device ID for Intel FPGA PAC N3000. > > > > > > Signed-off-by: Wu Hao > > > Signed-off-by: Xu Yilun > > > Signed-off-by: Matthew Gerlach >

Re: [printk] 18a2dc6982: ltp.kmsg01.fail

2020-07-09 Thread John Ogness
On 2020-07-09, Sergey Senozhatsky wrote: > On (20/07/09 15:14), kernel test robot wrote: > [..] > > Took me a while to find the FAIL-ed test: > >> kmsg01.c:393: INFO: TEST: read returns EPIPE when messages get overwritten >> kmsg01.c:398: INFO: first seqno: 0 >> kmsg01.c:411: INFO: first seqno now

Re: [PATCH v3 3/8] ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers

2020-07-09 Thread Rohit Kumar
On 7/9/2020 3:36 PM, Srinivas Kandagatla wrote: On 09/07/2020 10:57, Rohit Kumar wrote: Thanks Srini for reviewing. On 7/9/2020 2:56 PM, Srinivas Kandagatla wrote: On 08/07/2020 06:08, Rohit kumar wrote: I2SCTL and DMACTL registers has different bits alignment for newer LPASS variants o

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Christoph Hellwig
On Sun, Jul 05, 2020 at 03:00:47PM -0600, Jens Axboe wrote: > > diff --git a/fs/io_uring.c b/fs/io_uring.c > > index 155f3d8..cbde4df 100644 > > --- a/fs/io_uring.c > > +++ b/fs/io_uring.c > > @@ -402,6 +402,8 @@ struct io_rw { > > struct kiocbkiocb; > > u64

Re: [PATCH v3 4/6] powerpc/64s: implement queued spinlocks and rwlocks

2020-07-09 Thread Michael Ellerman
Nicholas Piggin writes: > These have shown significantly improved performance and fairness when > spinlock contention is moderate to high on very large systems. > > [ Numbers hopefully forthcoming after more testing, but initial >results look good ] Would be good to have something here, even

Re: [PATCH] arm64: topology: Don't support AMU without cpufreq

2020-07-09 Thread Ionela Voinescu
Hi Viresh, On Thursday 09 Jul 2020 at 12:22:45 (+0530), Viresh Kumar wrote: > The commit cd0ed03a8903 ("arm64: use activity monitors for frequency > invariance"), mentions that: > > "if CONFIG_CPU_FREQ is not enabled, the use of counters is >enabled on all CPUs only if all possible CPUs cor

Re: [PATCH 0/2] Remove kiocb ki_complete

2020-07-09 Thread Christoph Hellwig
I really don't like this series at all. If saves a single pointer but introduces a complicated machinery that just doesn't follow any natural flow. And there doesn't seem to be any good reason for it to start with.

Re: [PATCH] [v3] PCI: rcar: Fix runtime PM imbalance on error

2020-07-09 Thread Lorenzo Pieralisi
On Thu, Jul 09, 2020 at 02:43:56PM +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a corresponding decrement is > needed on the error handling path to keep the counter balanced. > > Fixes: 0df6150e7ceb ("PCI: rca

Re: [PATCH v2 09/10] x86/percpu: Clean up percpu_stable_op()

2020-07-09 Thread Peter Zijlstra
On Tue, Jun 02, 2020 at 10:19:51AM -0400, Brian Gerst wrote: > On Mon, Jun 1, 2020 at 4:43 PM Nick Desaulniers > wrote: > > > > On Sat, May 30, 2020 at 3:11 PM Brian Gerst wrote: > > > > > > Use __pcpu_size_call_return() to simplify this_cpu_read_stable(). > > > > Clever! As in this_cpu_read() i

[PATCH v4 0/7] Enable Greybus Audio codec driver

2020-07-09 Thread Vaibhav Agarwal
The existing GB Audio codec driver is dependent on MSM8994 Audio driver. During the development stage, this dependency was configured due to various changes involved in MSM Audio driver to enable addtional codec card and some of the changes proposed in mainline ASoC framework. However, these are no

[PATCH v4 3/7] staging: greybus: audio: Resolve compilation errors for GB codec module

2020-07-09 Thread Vaibhav Agarwal
Due to dependencies on ASoC framework changes, GB dummy codec module compilation is currently disabled. This patch updates codec driver as per the latest ASoC APIs. Signed-off-by: Vaibhav Agarwal Reviewed-by: Dan Carpenter --- drivers/staging/greybus/audio_codec.c | 88 +

BE MY PARTNER IN THIS BUSINESS

2020-07-09 Thread Mr Suleman Bello
Hello Dear Friend, I am Suleman Bello from Burkina faso in West Africa, I have an important business discussion I wish to share with you which I believe will interest you, and you are going to benefit from it. We shall go over the details once I receive your urgent response. let me know you rec

[PATCH v4 1/7] staging: greybus: audio: Update snd_jack FW usage as per new APIs

2020-07-09 Thread Vaibhav Agarwal
snd_soc_jack APIs are modified in recent kernel versions. This patch updates the codec driver to resolve the compilation errors related to jack framework. Signed-off-by: Vaibhav Agarwal Reviewed-by: Dan Carpenter --- drivers/staging/greybus/audio_codec.c | 54 +-- 1 file

[PATCH v4 2/7] staging: greybus: audio: Maintain jack list within GB Audio module

2020-07-09 Thread Vaibhav Agarwal
As per the current implementation for GB codec driver, a jack list is maintained for each module. And it expects the list to be populated by the snd_soc_jack structure which would require modifications in mainstream code. However, this is not a necessary requirement and the list can be easily main

Re: [PATCH v4 06/11] mm/migrate: make a standard migration target allocation function

2020-07-09 Thread Michal Hocko
On Thu 09-07-20 16:15:07, Joonsoo Kim wrote: > 2020년 7월 8일 (수) 오전 4:00, Michal Hocko 님이 작성: > > > > On Tue 07-07-20 16:49:51, Vlastimil Babka wrote: > > > On 7/7/20 9:44 AM, js1...@gmail.com wrote: > > > > From: Joonsoo Kim > > > > > > > > There are some similar functions for migration target allo

[PATCH v4 4/7] staging: greybus: audio: Resolve compilation error in topology parser

2020-07-09 Thread Vaibhav Agarwal
Fix compilation errors for GB Audio topology parser code with recent kernel versions. Signed-off-by: Vaibhav Agarwal Reviewed-by: Dan Carpenter --- drivers/staging/greybus/audio_topology.c | 123 +++ 1 file changed, 57 insertions(+), 66 deletions(-) diff --git a/drivers/sta

[PATCH v4 5/7] staging: greybus: audio: Add helper APIs for dynamic audio modules

2020-07-09 Thread Vaibhav Agarwal
Greybus Codec driver allows modules to be dynamically added and removed, which further requires updating the DAPM configurations as well. With current snd_soc architecture, dynamic audio modules is not yet supported. This patch provides helper APIs to update DAPM configurations in response to modu

[PATCH v4 6/7] staging: greybus: audio: Enable GB codec, audio module compilation.

2020-07-09 Thread Vaibhav Agarwal
Currently you can't enable the Gey Bus Audio Codec because there is no entry for it in the Kconfig file. Originally the config name was going to be AUDIO_MSM8994 but that's not correct because other types of hardware are supported now. I have chosen the name AUDIO_APB_CODEC instead. Also I had to

[PATCH v4 7/7] drivers: staging: audio: Fix the missing header file for helper file

2020-07-09 Thread Vaibhav Agarwal
This patch fixes the warning reported for missing prototypes due to missing header file. Also, it includes changes to remove unused_but_set_variables. Reported-by: kernel test robot Signed-off-by: Vaibhav Agarwal --- drivers/staging/greybus/audio_helper.c | 1 + drivers/staging/greybus/audio_

Re: [PATCH v2 00/10] x86: Clean up percpu operations

2020-07-09 Thread Peter Zijlstra
On Sat, May 30, 2020 at 06:11:17PM -0400, Brian Gerst wrote: > The core percpu operations already have a switch on the width of the > data type, which resulted in an extra amount of dead code being > generated with the x86 operations having another switch. This patch set > rewrites the x86 ops to

Re: [PATCH v2 02/10] x86/percpu: Clean up percpu_to_op()

2020-07-09 Thread Peter Zijlstra
On Sat, May 30, 2020 at 06:11:19PM -0400, Brian Gerst wrote: > + if (0) {\ > + typeof(_var) pto_tmp__; \ > + pto_tmp__ = (_val); \ > +

fs/orangefs/file.c:424:21: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-07-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0bddd227f3dc55975e2b8dfa7fc6f959b062a2c7 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 3 weeks ago config: sh-randconfig-s032-20200709 (attached

Re: [PATCH v3 4/6] powerpc/64s: implement queued spinlocks and rwlocks

2020-07-09 Thread Peter Zijlstra
On Thu, Jul 09, 2020 at 08:20:25PM +1000, Michael Ellerman wrote: > Nicholas Piggin writes: > > These have shown significantly improved performance and fairness when > > spinlock contention is moderate to high on very large systems. > > > > [ Numbers hopefully forthcoming after more testing, but

[PATCH] x86/idt: Make sure idt_table takes a whole page

2020-07-09 Thread Joerg Roedel
From: Joerg Roedel On x86-32 the idt_table with 256 entries needs only 2048 bytes. It is page-aligned, but the end of the .bss..page_aligned section is not guaranteed to be page-aligned. As a result, symbols from other .bss sections may end up on the same 4k page as the idt_table, and will accid

Re: [GIT PULL] EFI fixes

2020-07-09 Thread Kirill A. Shutemov
On Thu, Jul 09, 2020 at 11:30:27AM +0200, Arnd Bergmann wrote: > The most interesting version to require in the future would be > gcc-7, which IIRC is the point at which we can just use -std=gnu99 > or -std=gnu11 instead of -std=gnu89 without running into the > problem with compound literals[1]. I

Re: [PATCH v3 6/8] dt-bindings: sound: lpass-cpu: Add sc7180 lpass cpu node

2020-07-09 Thread Mark Brown
On Thu, Jul 09, 2020 at 03:42:38PM +0530, Rohit Kumar wrote: > On 7/9/2020 3:38 PM, Srinivas Kandagatla wrote: > > May be reverse the order, Convert to Yaml first and then add sc7180! > Actually Mark suggested to keep yaml change at the end of patch series as > there Right, there's a huge backlo

Re: [PATCH v2] PCI: controller: convert to devm_platform_ioremap_resource()

2020-07-09 Thread Lorenzo Pieralisi
On Wed, Jul 08, 2020 at 11:56:14PM +0800, Dejin Zheng wrote: > use devm_platform_ioremap_resource() to simplify code, it > contains platform_get_resource() and devm_ioremap_resource(). > > Signed-off-by: Dejin Zheng > Reviewed-by: Rob Herring > --- > v1 -> v2: > - rebase to pci/misc branch

[PATCH] phy: renesas: rcar-gen3-usb2: fix SError happen if DEBUG_SHIRQ is enabled

2020-07-09 Thread Yoshihiro Shimoda
If CONFIG_DEBUG_SHIRQ was enabled, r8a77951-salvator-xs could boot correctly. If we appended "earlycon keep_bootcon" to the kernel command like, we could get kernel log like below. SError Interrupt on CPU0, code 0xbf02 -- SError CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.8.0-rc3-salv

Re: [PATCH v3 3/6] gpio: max77620: Don't set of_node

2020-07-09 Thread Dmitry Osipenko
09.07.2020 12:07, Andy Shevchenko пишет: > On Thu, Jul 9, 2020 at 12:44 AM Dmitry Osipenko wrote: >> 08.07.2020 23:57, Andy Shevchenko пишет: >>> On Wednesday, July 8, 2020, Dmitry Osipenko >> > wrote: > > ... > >>> I gave a second look and I think my suggestion is wrong

Re: Re: linux-next: build warning after merge of the spi tree

2020-07-09 Thread Mark Brown
On Thu, Jul 09, 2020 at 03:50:47PM +0800, Peng Fan wrote: > Hi, Browm, Stephen > Firstly, feel sorry for the problem introduced by me. I think I must > modify my bad,but should I send another patch to delete the label "out_free" > or > re-send patch of v2(which maybe need to go back)? >

Re: [PATCH] arm64: topology: Don't support AMU without cpufreq

2020-07-09 Thread Viresh Kumar
On 09-07-20, 11:17, Ionela Voinescu wrote: > On Thursday 09 Jul 2020 at 12:22:45 (+0530), Viresh Kumar wrote: > > cpumask_set_cpu(cpu, valid_cpus); > > - have_policy |= enable_policy_freq_counters(cpu, valid_cpus); > > + update_amu_fie_cpus(cpu, valid_cpus); > > I s

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