Re: [PATCH v2 1/3] dt-bindings: pwm-stm32: document pinctrl sleep state

2019-10-16 Thread Thierry Reding
On Fri, Oct 04, 2019 at 02:53:51PM +0200, Fabrice Gasnier wrote: > Add documentation for pinctrl sleep state that can be used by > STM32 timers PWM. > > Signed-off-by: Fabrice Gasnier > --- > Documentation/devicetree/bindings/pwm/pwm-stm32.txt | 8 +--- > 1 file changed, 5 insertions(+), 3 d

Re: [PATCH] tpm: Salt tpm_get_random() result with get_random_bytes()

2019-10-16 Thread Janne Karhunen
On Tue, Oct 15, 2019 at 3:50 PM Jarkko Sakkinen wrote: > > Salt the result that comes from the TPM RNG with random bytes from the > kernel RNG. This will allow to use tpm_get_random() as a substitute for > get_random_bytes(). TPM could have a bug (making results predicatable), > backdoor or even

Re: [PATCH v2 2/3] pwm: stm32: split breakinput apply routine to ease PM support

2019-10-16 Thread Thierry Reding
On Fri, Oct 04, 2019 at 02:53:52PM +0200, Fabrice Gasnier wrote: > Split breakinput routine that configures STM32 timers 'break' safety > feature upon probe, into two routines: > - stm32_pwm_apply_breakinputs() sets all the break inputs into registers. > - stm32_pwm_probe_breakinputs() probes the d

Re: [PATCH v2 3/3] pwm: stm32: add power management support

2019-10-16 Thread Thierry Reding
On Fri, Oct 04, 2019 at 02:53:53PM +0200, Fabrice Gasnier wrote: > Add suspend/resume PM sleep ops. When going to low power, enforce the PWM > channel isn't active. Let the PWM consumers disable it during their own > suspend sequence, see [1]. So, perform a check here, and handle the > pinctrl stat

[PATCH v6 7/7] ASoC: sun4i-i2s: Add support for H6 I2S

2019-10-16 Thread codekipper
From: Jernej Skrabec H6 I2S is very similar to that in H3, except it supports up to 16 channels. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 143 1 file changed, 143 insertions(+) diff --git a/sound/soc/sun

[PATCH v6 1/7] ASoC: sun4i-i2s: Move channel select offset

2019-10-16 Thread codekipper
From: Marcus Cooper On the newer SoCs the offset is used to set the mode of the connection. As it is to be used elsewhere then it makes sense to move it to the main structure. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 22 +++--- 1 file changed, 11 insertion

[PATCH v6 2/7] ASoC: sun4i-i2s: Add functions for RX and TX channel offsets

2019-10-16 Thread codekipper
From: Marcus Cooper Newer SoCs like the H6 have the channel offset bits in a different position to what is on the H3. As we will eventually add multi- channel support then create function calls as opposed to regmap fields to add support for different devices. Signed-off-by: Marcus Cooper --- s

[PATCH v6 6/7] dt-bindings: ASoC: sun4i-i2s: Add H6 compatible

2019-10-16 Thread codekipper
From: Jernej Skrabec H6 I2S is very similar to H3, except that it supports up to 16 channels and thus few registers have fields on different position. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper --- .../devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml | 2 ++ 1 file

Re: [PATCH 12/14] KVM: retpolines: x86: eliminate retpoline from vmx.c exit handlers

2019-10-16 Thread Paolo Bonzini
On 16/10/19 01:42, Andrea Arcangeli wrote: > On Wed, Oct 16, 2019 at 12:22:31AM +0200, Paolo Bonzini wrote: >> Oh come on. 0.9 is not 12-years old. virtio 1.0 is 3.5 years old >> (March 2016). Anything older than 2017 is going to use 0.9. > > Sorry if I got the date wrong, but still I don't see

[PATCH v6 5/7] ASoC: sun4i-i2s: Add functions for RX and TX channel mapping

2019-10-16 Thread codekipper
From: Marcus Cooper As we will eventually add multi-channel audio support to the i2s then create function calls as opposed to regmap fields to add support for different devices. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 45 + 1 file chan

[PATCH v6 0/7] ASoC: sun4i-i2s: Updates to the driver

2019-10-16 Thread codekipper
From: Marcus Cooper Hi All, To be able to add support for the Allwinner H6 I've changed some of the original reg fields into function calls as this made it easier to setup for multi-channel audio especially across different SoCs. I've also stripped out all the other patches unrelated to this whic

Re: [PATCH] xtensa: implement arch_dma_coherent_to_pfn

2019-10-16 Thread Christoph Hellwig
On Tue, Oct 15, 2019 at 02:25:26PM -0700, Max Filippov wrote: > Add trivial implementation for arch_dma_coherent_to_pfn. > This change enables communication with PCI ALSA devices through mmapped > buffers. This looks fine, although I'd much rather convert xtensa to the generic DMA remap / uncached

[PATCH v6 3/7] ASoC: sun4i-i2s: Add functions for RX and TX channel enables

2019-10-16 Thread codekipper
From: Marcus Cooper Newer SoCs like the H6 have the channel enable bits in a different position to what is on the H3. As we will eventually add multi- channel support then create function calls as opposed to regmap fields to add support for different devices. Signed-off-by: Marcus Cooper --- s

[PATCH v6 4/7] ASoC: sun4i-i2s: Add functions for RX and TX channel selects

2019-10-16 Thread codekipper
From: Marcus Cooper Newer SoCs like the H6 have the channel select bits in a different positions than what is on the H3. As we will eventually add multi- channel support then create function calls as opposed to regmap fields to add support for different devices. Signed-off-by: Marcus Cooper ---

[PATCH] mm, soft-offline: convert parameter to pfn

2019-10-16 Thread Naoya Horiguchi
Hi, I wrote a simple cleanup for parameter of soft_offline_page(), based on thread https://lkml.org/lkml/2019/10/11/57. I know that we need more cleanup on hwpoison-inject, but I think that will be mentioned in re-write patchset Oscar is preparing now. So let me shared only this part as a separat

[PATCH net-next 00/12] net: hns3: add some bugfixes and optimizations

2019-10-16 Thread Huazhong Tan
This patch-set includes some bugfixes and code optimizations for the HNS3 ethernet controller driver. [patch 01/12] removes unused and unnecessary structures. [patch 02/12] fixes a TX queue not restarted problem. [patch 03/12] fixes a use-after-free issue. [patch 04/12] fixes a mis-counting IRQ

[PATCH net-next 10/12] net: hns3: fix VF id issue for setting VF VLAN

2019-10-16 Thread Huazhong Tan
From: Jian Shen Previously, when set VF VLAN with command "ip link set vf vlan ", the vf id 0 is handled as PF incorrectly, which should be the first VF. This patch fixes it. This patch also adds VF VLAN information for command "ip link show". Fixes: 21e043cd8124 ("net: hns3: fix set port bas

[PATCH net-next 01/12] net: hns3: remove struct hns3_nic_ring_data in hns3_enet module

2019-10-16 Thread Huazhong Tan
From: Yunsheng Lin Only the queue_index field in struct hns3_nic_ring_data is used, other field is unused and unnecessary for hns3 driver, so this patch removes it and move the queue_index field to hns3_enet_ring. This patch also removes an unused struct hns_queue declaration. Signed-off-by: Yu

[PATCH net-next 12/12] net: hns3: log and clear hardware error after reset complete

2019-10-16 Thread Huazhong Tan
From: Jian Shen When device is resetting, the CMDQ service may be stopped until reset completed. If a new RAS error occurs at this moment, it will no be able to clear the RAS source. This patch fixes it by clear the RAS source after reset complete. Signed-off-by: Jian Shen Signed-off-by: Huazho

[PATCH net-next 04/12] net: hns3: fix mis-counting IRQ vector numbers issue

2019-10-16 Thread Huazhong Tan
From: Yonglong Liu Currently, the num_msi_left means the vector numbers of NIC, but if the PF supported RoCE, it contains the vector numbers of NIC and RoCE(Not expected). This may cause interrupts lost in some case, because of the NIC module used the vector resources which belongs to RoCE. Thi

[PATCH net-next 09/12] net: hns3: minor cleanup for hns3_handle_rx_bd()

2019-10-16 Thread Huazhong Tan
From: Yunsheng Lin Since commit e55970950556 ("net: hns3: Add handling of GRO Pkts not fully RX'ed in NAPI poll"), ring->skb is used to record the current SKB when processing the RX BD in hns3_handle_rx_bd(), so the parameter out_skb is unnecessary. This patch also adjusts the err checking to re

[PATCH net-next 11/12] net: hns3: do not allocate linear data for fraglist skb

2019-10-16 Thread Huazhong Tan
From: Yunsheng Lin Currently, napi_alloc_skb() is used to allocate skb for fraglist when the head skb is not enough to hold the remaining data, and the remaining data is added to the frags part of the fraglist skb, leaving the linear part unused. So this patch passes length of 0 to allocate frag

[PATCH net-next 06/12] net: hns3: optimized MAC address in management table.

2019-10-16 Thread Huazhong Tan
From: Guojia Liao mac_addr_hi32 and mac_addr_lo16 are used to store the MAC address for management table. But using array of mac_addr[ETH_ALEN] would be more general and not need to care about the big-endian mode of the CPU. Signed-off-by: Guojia Liao Signed-off-by: Huazhong Tan --- drivers/n

[PATCH net-next 02/12] net: hns3: fix TX queue not restarted problem

2019-10-16 Thread Huazhong Tan
From: Yunsheng Lin There is timing window between ring_space checking and netif_stop_subqueue when transmiting a SKB, and the TX BD cleaning may be executed during the time window, which may caused TX queue not restarted problem. This patch fixes it by rechecking the ring_space after netif_stop_

[PATCH net-next 08/12] net: hns3: introduce ring_to_netdev() in enet module

2019-10-16 Thread Huazhong Tan
From: Yunsheng Lin There are a few places that need to access the netdev of a ring through ring->tqp->handle->kinfo.netdev, and ring->tqp is a struct which both in enet and hclge modules, it is better to use the struct that is only used in enet module. This patch adds the ring_to_netdev() to acc

Re: [PATCH] PNP: fix unintended sign extension on left shifts

2019-10-16 Thread walter harms
Am 15.10.2019 18:29, schrieb Rafael J. Wysocki: > On 10/14/2019 3:16 PM, Colin King wrote: >> From: Colin Ian King >> >> Shifting a u8 left will cause the value to be promoted to an integer. If >> the top bit of the u8 is set then the following conversion to a 64 bit >> resource_size_t will sig

[PATCH net-next 07/12] net: hns3: minor optimization for barrier in IO path

2019-10-16 Thread Huazhong Tan
From: Yunsheng Lin Currently, the TX and RX ring in a queue is bounded to the same IRQ, there may be unnecessary barrier op when only one of the ring need to be processed. This patch adjusts the location of rmb() in hns3_clean_tx_ring() and adds a checking in hns3_clean_rx_ring() to avoid unnece

Re: [PATCH v3 0/8] sched/fair: rework the CFS load balance

2019-10-16 Thread Parth Shah
On 9/19/19 1:03 PM, Vincent Guittot wrote: > Several wrong task placement have been raised with the current load > balance algorithm but their fixes are not always straight forward and > end up with using biased values to force migrations. A cleanup and rework > of the load balance will help to

[PATCH net-next 03/12] net: hns3: fix a use after freed problem in hns3_nic_maybe_stop_tx()

2019-10-16 Thread Huazhong Tan
From: Yunsheng Lin Currently, hns3_nic_maybe_stop_tx() use skb_copy() to linearize a SKB if the BD num required by the SKB does not meet the hardware limitation, and it linearizes the SKB by allocating a new SKB and freeing the old SKB, if hns3_nic_maybe_stop_tx() returns -EBUSY, the sch_direct_x

[PATCH net-next 05/12] net: hns3: fix VF VLAN table entries inconsistent issue

2019-10-16 Thread Huazhong Tan
From: Jian Shen Currently, if VF is loaded on the host side, the host doesn't clear the VF's VLAN table entries when VF removing. In this case, when doing reset and disabling sriov at the same time the VLAN device over VF will be removed, but the VLAN table entries in hardware are remained. This

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-16 Thread Parth Shah
On 9/19/19 1:03 PM, Vincent Guittot wrote: [...] > Signed-off-by: Vincent Guittot > --- > kernel/sched/fair.c | 585 > ++-- > 1 file changed, 380 insertions(+), 205 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > ind

Re: [RFC][PATCH 2/3] usb: roles: Add usb role switch notifier.

2019-10-16 Thread Hans de Goede
Hi, On 10/15/19 7:39 AM, John Stultz wrote: On Thu, Oct 3, 2019 at 1:51 PM Hans de Goede wrote: On 03-10-2019 22:37, John Stultz wrote: Fair point. I'm sort of taking a larger patchset and trying to break it up into more easily reviewable chunks, but I guess here I mis-cut. The user is the h

Re: [PATCH] perf list: Hide deprecated events by default

2019-10-16 Thread Jiri Olsa
On Wed, Oct 16, 2019 at 08:59:13AM +0800, Jin, Yao wrote: > > > On 10/15/2019 5:14 PM, Jiri Olsa wrote: > > On Tue, Oct 15, 2019 at 10:53:57AM +0800, Jin Yao wrote: > > > There are some deprecated events listed by perf list. But we can't remove > > > them from perf list with ease because some old

Re: [PATCH v3 2/3] bpf: use copy_struct_from_user() in bpf_prog_get_info_by_fd()y

2019-10-16 Thread Christian Brauner
On Tue, Oct 15, 2019 at 10:25:49PM -0700, Alexei Starovoitov wrote: > On Wed, Oct 16, 2019 at 05:44:31AM +0200, Christian Brauner wrote: > > In v5.4-rc2 we added a new helper (cf. [1]) copy_struct_from_user(). > > This helper is intended for all codepaths that copy structs from > > userspace that a

Re: [PATCH] PCI: sysfs: remove pci_bridge_groups and pcie_dev_groups

2019-10-16 Thread Ben Dooks
On 16/10/2019 07:28, Christoph Hellwig wrote: On Tue, Oct 15, 2019 at 03:00:59PM +0100, Ben Dooks wrote: The pci_bridge_groups and pcie_dev_groups objects are not exported and not used at-all, so remove them to fix the following warnings from sparse: drivers/pci/pci-sysfs.c:1546:30: warning: sy

Re: [PATCH v2 net-next] net: core: use listified Rx for GRO_NORMAL in napi_gro_receive()

2019-10-16 Thread Alexander Lobakin
David Miller wrote 16.10.2019 04:16: From: Alexander Lobakin Date: Mon, 14 Oct 2019 11:00:33 +0300 Commit 323ebb61e32b4 ("net: use listified RX for handling GRO_NORMAL skbs") made use of listified skb processing for the users of napi_gro_frags(). The same technique can be used in a way more co

[PATCH 04/15] drivers: thermal: tsens: Add debugfs support

2019-10-16 Thread Amit Kucheria
Dump some basic version info and sensor details into debugfs. Example from qcs404 below: --(/sys/kernel/debug) $ ls tsens/ 4a9000.thermal-sensor version --(/sys/kernel/debug) $ cat tsens/version 1.4.0 --(/sys/kernel/debug) $ cat tsens/4a9000.thermal-sensor/sensors max: 11 num: 10 idslo

Re: [PATCH] bus: moxtet: declare moxtet_bus_type

2019-10-16 Thread Ben Dooks
On 15/10/2019 17:32, Christoph Hellwig wrote: On Tue, Oct 15, 2019 at 01:25:35PM +0100, Ben Dooks wrote: The moxtet_bus_type object is exported from the bus driver, but not declared. Add a declaration for use and to silence the following warning: The symbol can be marked static instead. Then

[PATCH 06/15] arm64: dts: msm8916: thermal: Fixup HW ids for cpu sensors

2019-10-16 Thread Amit Kucheria
msm8916 uses sensors 0, 1, 2, 4 and 5. Sensor 3 is NOT used. Fixup the device tree so that the correct sensor ID is used and as a result we can actually check the temperature for the cpu2_3 sensor. Signed-off-by: Amit Kucheria Reviewed-by: Daniel Lezcano Reviewed-by: Stephen Boyd --- arch/arm6

[PATCH] mm/page_alloc: Make alloc_gigantic_page() available for general use

2019-10-16 Thread Anshuman Khandual
HugeTLB helper alloc_gigantic_page() implements fairly generic allocation method where it scans over various zones looking for a large contiguous pfn range before trying to allocate it with alloc_contig_range(). Other than deriving the requested order from 'struct hstate', there is nothing HugeTLB

[PATCH 07/15] dt-bindings: thermal: tsens: Convert over to a yaml schema

2019-10-16 Thread Amit Kucheria
Older IP only supports the 'uplow' interrupt, but newer IP supports 'uplow' and 'critical' interrupts. Document interrupt support in the tsens driver by converting over to a YAML schema. Suggested-by: Stephen Boyd Signed-off-by: Amit Kucheria Reviewed-by: Rob Herring --- .../bindings/thermal/q

[PATCH] RISC-V: fix virtual address overlapped in FIXADDR_START and VMEMMAP_START

2019-10-16 Thread greentime . hu
From: Greentime Hu This patch fixes the virtual address layout in pgtable.h. The virtual address of FIXADDR_START and VMEMMAP_START should not be overlapped. These addresses will be existed at the same time in Linux kernel that they can't be overlapped. Fixes: d95f1a542c3d ("RISC-V: Implement sp

[PATCH 02/15] drivers: thermal: tsens: Simplify code flow in tsens_probe

2019-10-16 Thread Amit Kucheria
Move platform_set_drvdata up to avoid an extra 'if (ret)' check after the call to tsens_register. Signed-off-by: Amit Kucheria Reviewed-by: Stephen Boyd Reviewed-by: Daniel Lezcano --- drivers/thermal/qcom/tsens.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/driv

[PATCH 03/15] drivers: thermal: tsens: Add __func__ identifier to debug statements

2019-10-16 Thread Amit Kucheria
Printing the function name when enabling debugging makes logs easier to read. Signed-off-by: Amit Kucheria Reviewed-by: Stephen Boyd Reviewed-by: Daniel Lezcano --- drivers/thermal/qcom/tsens-common.c | 8 drivers/thermal/qcom/tsens.c| 6 +++--- 2 files changed, 7 insertions(+

[PATCH 12/15] arm: dts: msm8974: thermal: Add interrupt support

2019-10-16 Thread Amit Kucheria
Register upper-lower interrupt for the tsens controller. Signed-off-by: Amit Kucheria Tested-by: Brian Masney --- arch/arm/boot/dts/qcom-msm8974.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 33c534370f

[PATCH 00/15] thermal: qcom: tsens: Add interrupt support

2019-10-16 Thread Amit Kucheria
Hi Thermal and MSM maintainers, I believe this series is now ready to be merged. The DT bindings and driver changes should go through the thermal tree and the changes to the DT files themselves should go through the MSM tree. There is no hard ordering dependency because we're adding a new property

[PATCH 11/15] arm64: dts: qcs404: thermal: Add interrupt support

2019-10-16 Thread Amit Kucheria
Register upper-lower interrupt for the tsens controller. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index a97eeb4569c0..b6a4e6073936 10064

[PATCH 01/15] drivers: thermal: tsens: Get rid of id field in tsens_sensor

2019-10-16 Thread Amit Kucheria
There are two fields - id and hw_id - to track what sensor an action was to performed on. This was because the sensors connected to a TSENS IP might not be contiguous i.e. 1, 2, 4, 5 with 3 being skipped. This causes confusion in the code which uses hw_id sometimes and id other times (tsens_get_te

[PATCH 13/15] arm64: dts: msm8916: thermal: Add interrupt support

2019-10-16 Thread Amit Kucheria
Register upper-lower interrupt for the tsens controller. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 8686e101905c..807f86a4535e 10

[PATCH 08/15] arm64: dts: sdm845: thermal: Add interrupt support

2019-10-16 Thread Amit Kucheria
Register upper-lower interrupts for each of the two tsens controllers. Signed-off-by: Amit Kucheria Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.

[PATCH 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor

2019-10-16 Thread Amit Kucheria
msm8974 has 11 sensors connected to a single TSENS IP. Define a thermal zone for each of those sensors to expose the temperature of each zone. Signed-off-by: Amit Kucheria Tested-by: Brian Masney Reviewed-by: Stephen Boyd --- arch/arm/boot/dts/qcom-msm8974.dtsi | 90 +++

[PATCH 09/15] arm64: dts: msm8996: thermal: Add interrupt support

2019-10-16 Thread Amit Kucheria
Register upper-lower interrupts for each of the two tsens controllers. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 87f4d9c1b0d4.

[PATCH 15/15] drivers: thermal: tsens: Add interrupt support

2019-10-16 Thread Amit Kucheria
Depending on the IP version, TSENS supports upper, lower and critical threshold interrupts. We only add support for upper and lower threshold interrupts for now. TSENSv2 has an irq [status|clear|mask] bit tuple for each sensor while earlier versions only have a single bit per sensor to denote stat

[PATCH 14/15] drivers: thermal: tsens: Create function to return sign-extended temperature

2019-10-16 Thread Amit Kucheria
Hide the details of how to convert values read from TSENS HW to mCelsius behind a function. All versions of the IP can be supported as a result. Signed-off-by: Amit Kucheria Reviewed-by: Stephen Boyd --- drivers/thermal/qcom/tsens-common.c | 49 - 1 file changed, 35

Re: [PATCH] KVM: X86: Make fpu allocation a common function

2019-10-16 Thread Paolo Bonzini
On 16/10/19 03:52, Xiaoyao Li wrote: >> >> user_fpu could be made percpu too...  That would save a bit of memory >> for each vCPU.  I'm holding on Xiaoyao's patch because a lot of the code >> he's touching would go away then. > > Sorry, I don't get clear your attitude. > Do you mean the generic co

[PATCH 10/15] arm64: dts: msm8998: thermal: Add interrupt support

2019-10-16 Thread Amit Kucheria
Register upper-lower interrupts for each of the two tsens controllers. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi i

Re: [PATCH] arm64: defconfig: Enable Qualcomm CPUfreq HW driver

2019-10-16 Thread Amit Kucheria
On Sat, Oct 12, 2019 at 5:14 AM Bjorn Andersson wrote: > > The Qualcomm CPUfreq HW provides CPU voltage and frequency scaling on > many modern Qualcomm SoCs. Enable the driver for this hardware block to > enable this functionality on the SDM845 platform. > > Signed-off-by: Bjorn Andersson You be

[PATCH 3/4] mm/thp: allow drop THP from page cache

2019-10-16 Thread Song Liu
From: "Kirill A. Shutemov" Once a THP is added to the page cache, it cannot be dropped via /proc/sys/vm/drop_caches. Fix this issue with proper handling in invalidate_mapping_pages() and __remove_mapping(). Fixes: 99cb0dbd47a1 ("mm,thp: add read-only THP support for (non-shmem) FS") Signed-off-b

[PATCH 2/4] mm/thp: fix node page state in split_huge_page_to_list()

2019-10-16 Thread Song Liu
From: "Kirill A. Shutemov" Make sure split_huge_page_to_list() handle the state of shmem THP and file THP properly. Fixes: 60fbf0ab5da1 ("mm,thp: stats for file backed THP") Signed-off-by: Kirill A. Shutemov Tested-by: Song Liu Signed-off-by: Song Liu --- mm/huge_memory.c | 9 +++-- 1 fi

[PATCH 4/4] uprobe: only do FOLL_SPLIT_PMD for uprobe register

2019-10-16 Thread Song Liu
Attaching uprobe to text section in THP splits the PMD mapped page table into PTE mapped entries. On uprobe detach, we would like to regroup PMD mapped page table entry to regain performance benefit of THP. However, the regroup is broken For perf_event based trace_uprobe. This is because perf_even

[PATCH 1/4] proc/meminfo: fix output alignment

2019-10-16 Thread Song Liu
From: "Kirill A. Shutemov" Add extra space for FileHugePages and FilePmdMapped, so the output is aligned with other rows. Fixes: 60fbf0ab5da1 ("mm,thp: stats for file backed THP") Signed-off-by: Kirill A. Shutemov Tested-by: Song Liu Signed-off-by: Song Liu --- fs/proc/meminfo.c | 4 ++-- 1

[PATCH 0/4] Fixes for THP in page cache

2019-10-16 Thread Song Liu
This set includes a few fixes for THP in page cache. They are based on Linus's master branch. Thanks, Song Kirill A. Shutemov (3): proc/meminfo: fix output alignment mm/thp: fix node page state in split_huge_page_to_list() mm/thp: allow drop THP from page cache Song Liu (1): uprobe: only

Re: [PATCH 06/34] csky: Use CONFIG_PREEMPTION

2019-10-16 Thread Sebastian Andrzej Siewior
On 2019-10-16 07:29:34 [+0800], Guo Ren wrote: > Could CONFIG_PREEMPT_RT be supported in csky ? Any arch backend porting ? It could. HIGH_RES_TIMERS is useful and IRQ_FORCED_THREADING is required. You already have PREEMPT(ION) which is good. Then you would have to try and my guess would be that so

Re: [PATCH] xtensa: implement arch_dma_coherent_to_pfn

2019-10-16 Thread Max Filippov
Hi Christoph, On Wed, Oct 16, 2019 at 12:08 AM Christoph Hellwig wrote: > On Tue, Oct 15, 2019 at 02:25:26PM -0700, Max Filippov wrote: > > Add trivial implementation for arch_dma_coherent_to_pfn. > > This change enables communication with PCI ALSA devices through mmapped > > buffers. > > This lo

Re: [PATCH] bus: moxtet: declare moxtet_bus_type

2019-10-16 Thread Christoph Hellwig
On Wed, Oct 16, 2019 at 08:34:06AM +0100, Ben Dooks wrote: > On 15/10/2019 17:32, Christoph Hellwig wrote: > > On Tue, Oct 15, 2019 at 01:25:35PM +0100, Ben Dooks wrote: > > > The moxtet_bus_type object is exported from the bus > > > driver, but not declared. Add a declaration for use > > > and to

Re: [PATCH] pwm: sun4i: Fix incorrect calculation of duty_cycle/period

2019-10-16 Thread Thierry Reding
On Mon, Oct 14, 2019 at 03:53:03PM +0200, meg...@megous.com wrote: > From: Ondrej Jirman > > Since 5.4-rc1, pwm_apply_state calls ->get_state after ->apply > if available, and this revealed an issue with integer precision > when calculating duty_cycle and period for the currently set > state in -

Re: [PATCH 1/1] pwm: Convert period and duty cycle to u64

2019-10-16 Thread Thierry Reding
On Tue, Oct 15, 2019 at 07:11:39PM -0700, Guru Das Srinagesh wrote: > Because period and duty cycle are defined as ints with units of > nanoseconds, the maximum time duration that can be set is limited to > ~2.147 seconds. Change their definitions to u64 so that higher durations > may be set. > >

Re: [PATCH v3 5/6] x86/ftrace: Use text_poke()

2019-10-16 Thread Peter Zijlstra
> which are not compatible with livepatching. GCC upstream now has > -flive-patching option, which disables all those interfering optimizations. Which, IIRC, has a significant performance impact and should thus really not be used... If distros ship that crap, I'm going to laugh at them the next t

[PATCH] staging: rtl8723bs: remove an redundant null check before kfree()

2019-10-16 Thread zhong jiang
kfree() has taken null pointer into account. hence it is safe to remove the unnecessary check. Signed-off-by: zhong jiang --- drivers/staging/rtl8723bs/core/rtw_xmit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/stagi

Re: [PATCH 1/5] KPC2000: kpc2000_spi.c: Fix style issues (line length)

2019-10-16 Thread
On Fri, Oct 11, 2019 at 08:32:19AM +0200, Greg KH wrote: > On Thu, Oct 10, 2019 at 10:51:51PM -0700, Chandra Annamaneni wrote: > > Resoved: "WARNING: line over 80 characters" from checkpatch.pl > > Please put "staging:" in your subject line, makes it easier to sort and > handle. It should look so

Re: [PATCH v3 2/3] bpf: use copy_struct_from_user() in bpf_prog_get_info_by_fd()

2019-10-16 Thread Christian Brauner
On Tue, Oct 15, 2019 at 10:25:49PM -0700, Alexei Starovoitov wrote: > On Wed, Oct 16, 2019 at 05:44:31AM +0200, Christian Brauner wrote: > > In v5.4-rc2 we added a new helper (cf. [1]) copy_struct_from_user(). > > This helper is intended for all codepaths that copy structs from > > userspace that a

Re: [PATCH 09/12] iomap: lift the xfs writeback code to iomap

2019-10-16 Thread Christoph Hellwig
On Tue, Oct 15, 2019 at 11:40:40AM -0700, Darrick J. Wong wrote: > > + if (unlikely(error && !quiet)) { > > + printk_ratelimited(KERN_ERR > > + "%s: writeback error on sector %llu", > > + inode->i_sb->s_id, start); > > Ugh, /this/ message. It's pret

Re: [PATCH 3/6] drivers: firmware: psci: Register with kernel restart handler

2019-10-16 Thread Stefan Agner
On 2019-10-15 16:51, Thierry Reding wrote: > From: Guenter Roeck > > Register with kernel restart handler instead of setting arm_pm_restart > directly. This enables support for replacing the PSCI restart handler > with a different handler if necessary for a specific board. > > Select a priority

Re: [RFC PATCH 03/21] pipe: Use head and tail pointers for the ring, not cursor and length

2019-10-16 Thread Rasmus Villemoes
On 15/10/2019 23.48, David Howells wrote: > Convert pipes to use head and tail pointers for the buffer ring rather than > pointer and length as the latter requires two atomic ops to update (or a > combined op) whereas the former only requires one. > > (1) The head pointer is the point at which pr

Re: [PATCH] KVM: X86: Make fpu allocation a common function

2019-10-16 Thread Xiaoyao Li
On 10/16/2019 3:35 PM, Paolo Bonzini wrote: On 16/10/19 03:52, Xiaoyao Li wrote: user_fpu could be made percpu too...  That would save a bit of memory for each vCPU.  I'm holding on Xiaoyao's patch because a lot of the code he's touching would go away then. Sorry, I don't get clear your attit

Re: [PATCH 03/34] powerpc: Use CONFIG_PREEMPTION

2019-10-16 Thread Sebastian Andrzej Siewior
On 2019-10-16 06:57:48 [+0200], Christophe Leroy wrote: > > > Le 15/10/2019 à 21:17, Sebastian Andrzej Siewior a écrit : > > From: Thomas Gleixner > > > > CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT. > > Both PREEMPT and PREEMPT_RT require the same functionality whi

Re: [PATCH 09/12] iomap: lift the xfs writeback code to iomap

2019-10-16 Thread Christoph Hellwig
On Wed, Oct 16, 2019 at 09:07:21AM +1100, Dave Chinner wrote: > > + trace_iomap_releasepage(page->mapping->host, page, 0, 0); > > + > > /* > > * mm accommodates an old ext3 case where clean pages might not have had > > * the dirty bit cleared. Thus, it can send actual dirty pages to

Re: [PATCH v5 11/14] software node: move small properties inline when copying

2019-10-16 Thread Andy Shevchenko
On Tue, Oct 15, 2019 at 11:25:53AM -0700, Dmitry Torokhov wrote: > On Tue, Oct 15, 2019 at 03:20:28PM +0300, Andy Shevchenko wrote: > > On Fri, Oct 11, 2019 at 04:07:18PM -0700, Dmitry Torokhov wrote: > > > When copying/duplicating set of properties, move smaller properties that > > > were stored s

[PATCH] perf jevents: Fix resource leak in process_mapfile()

2019-10-16 Thread Yunfeng Ye
There are memory leaks and file descriptor resource leaks in process_mapfile(). Fix this by adding free() and fclose() on the error paths. Fixes: 80eeb67fe577 ("perf jevents: Program to convert JSON file") Signed-off-by: Yunfeng Ye --- tools/perf/pmu-events/jevents.c | 9 +++-- 1 file chang

[PATCH 3/4] staging: KPC2000: kpc2000_spi.c: Fix style issues (alignment)

2019-10-16 Thread Chandra Annamaneni
Resolved: "CHECK: Alignment should match open parenthesis" from checkpatch Signed-off-by: Chandra Annamaneni --- Previous versions of these patches were not split into different patches, did not have different patch numbers and did not have the keyword staging. drivers/staging/kpc2000/kpc2000_s

[PATCH 2/4] staging: KPC2000: kpc2000_spi.c: Fix style issues (alignment)

2019-10-16 Thread Chandra Annamaneni
Resolved: "CHECK: Alignment should match open parenthesis" from checkpatch Signed-off-by: Chandra Annamaneni --- Previous versions of these patches were not split into different patches, did not have different patch numbers and did not have the keyword staging. drivers/staging/kpc2000/kpc2000_s

[PATCH 4/4] staging: KPC2000: kpc2000_spi.c: Fix style issues (Unnecessary parenthesis)

2019-10-16 Thread Chandra Annamaneni
Resolved: CHECK: Unnecessary parentheses around table[i] Signed-off-by: Chandra Annamaneni --- Previous versions of these patches were not split into different patches, did not have different patch numbers and did not have the keyword staging. drivers/staging/kpc2000/kpc2000_spi.c | 2 +- 1 fil

Re: [PATCH v3 5/6] x86/ftrace: Use text_poke()

2019-10-16 Thread Peter Zijlstra
On Tue, Oct 15, 2019 at 06:27:05PM -0400, Steven Rostedt wrote: > (7) Seventh session, titled "klp-convert and livepatch relocations", was led > by Joe Lawrence. > > Joe started the session with problem statement: accessing non exported / > static > symbols from inside the patch module. One poss

[PATCH 1/4] staging: KPC2000: kpc2000_spi.c: Fix style issues (missing blank line)

2019-10-16 Thread Chandra Annamaneni
Resolved: "CHECK: Please use a blank line after.." from checkpatch.pl Signed-off-by: Chandra Annamaneni --- Previous versions of these patches were not split into different patches, did not have different patch numbers and did not have the keyword staging. drivers/staging/kpc2000/kpc2000_spi.c

Re: [PATCH] RISC-V: fix virtual address overlapped in FIXADDR_START and VMEMMAP_START

2019-10-16 Thread Anup Patel
On Wed, Oct 16, 2019 at 1:04 PM wrote: > > From: Greentime Hu > > This patch fixes the virtual address layout in pgtable.h. > The virtual address of FIXADDR_START and VMEMMAP_START should not be > overlapped. > These addresses will be existed at the same time in Linux kernel that they > can't >

Re: [PATCH 2/2] arm64: dts: sc7180: Add minimal dts/dtsi files for SC7180 soc

2019-10-16 Thread Taniya Das
Hi Vinod, On 10/16/2019 10:55 AM, Vinod Koul wrote: On 15-10-19, 16:03, Rajendra Nayak wrote: + timer { + compatible = "arm,armv8-timer"; + interrupts = , +, +, +; + }; +

Re: [PATCH v5 05/14] software node: clean up property_copy_string_array()

2019-10-16 Thread Andy Shevchenko
On Tue, Oct 15, 2019 at 11:12:11AM -0700, Dmitry Torokhov wrote: > On Tue, Oct 15, 2019 at 03:07:26PM +0300, Andy Shevchenko wrote: > > On Fri, Oct 11, 2019 at 04:07:12PM -0700, Dmitry Torokhov wrote: > > > Because property_copy_string_array() stores the newly allocated pointer > > > in the > > >

[ANNOUNCE] Call for Sessions - linux.conf.au 2020 Kernel Miniconf

2019-10-16 Thread Andrew Donnellan
LCA2020 Kernel Miniconf - Gold Coast, Queensland, Australia - 2020-01-14 ** LCA Kernel Miniconf submissions open! Submissions close: 2019-12-08 (early submissions until 2019-11-17) Submissions: https://linux.conf.au/p

Re: [PATCH 10/34] m68k/coldfire: Use CONFIG_PREEMPTION

2019-10-16 Thread Sebastian Andrzej Siewior
On 2019-10-16 10:50:41 [+1000], Greg Ungerer wrote: > Hi Sebastian, Hi Greg, > On 16/10/19 5:17 am, Sebastian Andrzej Siewior wrote: > > From: Thomas Gleixner > > > > CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT. > > Both PREEMPT and PREEMPT_RT require the same functi

Re: [PATCH] mm, soft-offline: convert parameter to pfn

2019-10-16 Thread David Hildenbrand
On 16.10.19 09:09, Naoya Horiguchi wrote: Hi, I wrote a simple cleanup for parameter of soft_offline_page(), based on thread https://lkml.org/lkml/2019/10/11/57. I know that we need more cleanup on hwpoison-inject, but I think that will be mentioned in re-write patchset Oscar is preparing now.

RE: [PATCH 2/2] virtio_ring: Use DMA API if memory is encrypted

2019-10-16 Thread Ram Pai
On Tue, Oct 15, 2019 at 09:35:01AM +0200, Christoph Hellwig wrote: > On Fri, Oct 11, 2019 at 06:25:19PM -0700, Ram Pai wrote: > > From: Thiago Jung Bauermann > > > > Normally, virtio enables DMA API with VIRTIO_F_IOMMU_PLATFORM, which must > > be set by both device and guest driver. However, as a

Re: [PATCH] RISC-V: fix virtual address overlapped in FIXADDR_START and VMEMMAP_START

2019-10-16 Thread Andreas Schwab
On Okt 16 2019, greentime...@sifive.com wrote: > From: Greentime Hu > > This patch fixes the virtual address layout in pgtable.h. > The virtual address of FIXADDR_START and VMEMMAP_START should not be > overlapped. > These addresses will be existed at the same time in Linux kernel that they > c

Re: [PATCH v5 10/14] software node: rename is_array to is_inline

2019-10-16 Thread Andy Shevchenko
On Tue, Oct 15, 2019 at 11:22:06AM -0700, Dmitry Torokhov wrote: > On Mon, Oct 14, 2019 at 10:37:20AM +0300, Andy Shevchenko wrote: > > On Fri, Oct 11, 2019 at 04:07:17PM -0700, Dmitry Torokhov wrote: > > > We do not need a special flag to know if we are dealing with an array, > > > as we can get t

Re: [PATCH 00/15] thermal: qcom: tsens: Add interrupt support

2019-10-16 Thread Daniel Lezcano
On 16/10/2019 09:33, Amit Kucheria wrote: > Hi Thermal and MSM maintainers, > > I believe this series is now ready to be merged. The DT bindings and driver > changes should go through the thermal tree and the changes to the DT files > themselves should go through the MSM tree. There is no hard ord

Re: [PATCH v5 13/14] platform/x86: intel_cht_int33fe: use inline reference properties

2019-10-16 Thread Andy Shevchenko
On Fri, Oct 11, 2019 at 04:07:20PM -0700, Dmitry Torokhov wrote: > Now that static device properties allow defining reference properties > together with all other types of properties, instead of managing them > separately, let's adjust the driver. > Acked-by: Andy Shevchenko as an idea, whateve

Re: [PATCH v5 00/14] software node: add support for reference properties

2019-10-16 Thread Andy Shevchenko
On Mon, Oct 14, 2019 at 04:57:47PM -0700, Dmitry Torokhov wrote: > On Mon, Oct 14, 2019 at 10:38:37AM +0300, Andy Shevchenko wrote: > > On Fri, Oct 11, 2019 at 04:07:07PM -0700, Dmitry Torokhov wrote: > > > These series implement "references" properties for software nodes as true > > > properties,

[PATCH] [V2] PCI: sysfs: remove pci_bridge_groups and pcie_dev_groups

2019-10-16 Thread Ben Dooks (Codethink)
From: Ben Dooks The pci_bridge_groups and pcie_dev_groups objects are not exported and not used at-all, so remove them to fix the following warnings from sparse: drivers/pci/pci-sysfs.c:1546:30: warning: symbol 'pci_bridge_groups' was not declared. Should it be static? drivers/pci/pci-sysfs.c:1

Re: [PATCH v6 1/7] ASoC: sun4i-i2s: Move channel select offset

2019-10-16 Thread Maxime Ripard
On Wed, Oct 16, 2019 at 09:07:34AM +0200, codekip...@gmail.com wrote: > From: Marcus Cooper > > On the newer SoCs the offset is used to set the mode of the > connection. As it is to be used elsewhere then it makes sense > to move it to the main structure. Elsewhere where, and to do what? Maxime

Re: [PATCH] PCI: sysfs: remove pci_bridge_groups and pcie_dev_groups

2019-10-16 Thread Ben Dooks
On 16/10/2019 07:28, Christoph Hellwig wrote: On Tue, Oct 15, 2019 at 03:00:59PM +0100, Ben Dooks wrote: The pci_bridge_groups and pcie_dev_groups objects are not exported and not used at-all, so remove them to fix the following warnings from sparse: drivers/pci/pci-sysfs.c:1546:30: warning: sy

Re: [PATCH] arm64: defconfig: Enable Qualcomm pseudo rng

2019-10-16 Thread Vinod Koul
On 11-10-19, 16:50, Bjorn Andersson wrote: > Most Qualcomm platforms contain a pseudo random number generator > hardware block. Enable the driver for this block. This enabled and loads the driver, but doesn't enable the usage. We also need CONFIG_CRYPTO_RNG2 but that gets selected so that part is

  1   2   3   4   5   6   7   8   9   10   >