Re: [PATCH 8/9] fs/ext4: Introduce DAX inode flag

2020-05-13 Thread Ira Weiny
On Thu, May 14, 2020 at 08:43:35AM +0200, Jan Kara wrote: > On Wed 13-05-20 14:41:55, Ira Weiny wrote: > > On Wed, May 13, 2020 at 04:47:06PM +0200, Jan Kara wrote: > > > > > > So I think you'll have to check > > > whether DAX flag is being changed, > > > > ext4_dax_dontcache() does check if the f

[PATCH V1 6/9] fs/ext4: Only change S_DAX on inode load

2020-05-13 Thread ira . weiny
From: Ira Weiny To prevent complications with in memory inodes we only set S_DAX on inode load. FS_XFLAG_DAX can be changed at any time and S_DAX will change after inode eviction and reload. Add init bool to ext4_set_inode_flags() to indicate if the inode is being newly initialized. Assert tha

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Heikki Krogerus
On Wed, May 13, 2020 at 04:14:51PM -0700, Randy Dunlap wrote: > On 5/13/20 2:30 PM, Brendan Higgins wrote: > > On Wed, May 13, 2020 at 8:18 AM Heikki Krogerus > > wrote: > >> > >> In the function kobject_cleanup(), kobject_del(kobj) is > >> called before the kobj->release(). That makes it possible

[PATCH V1 2/9] fs/ext4: Disallow verity if inode is DAX

2020-05-13 Thread ira . weiny
From: Ira Weiny Verity and DAX are incompatible. Changing the DAX mode due to a verity flag change is wrong without a corresponding address_space_operations update. Make the 2 options mutually exclusive by returning an error if DAX was set first. (Setting DAX is already disabled if Verity is s

[PATCH V1 1/9] fs/ext4: Narrow scope of DAX check in setflags

2020-05-13 Thread ira . weiny
From: Ira Weiny When preventing DAX and journaling on an inode. Use the effective DAX check rather than the mount option. This will be required to support per inode DAX flags. Reviewed-by: Jan Kara Signed-off-by: Ira Weiny --- fs/ext4/ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[PATCH V1 3/9] fs/ext4: Disallow encryption if inode is DAX

2020-05-13 Thread ira . weiny
From: Ira Weiny Encryption and DAX are incompatible. Changing the DAX mode due to a change in Encryption mode is wrong without a corresponding address_space_operations update. Make the 2 options mutually exclusive by returning an error if DAX was set first. Furthermore, clarify the documentati

[PATCH V1 7/9] fs/ext4: Make DAX mount option a tri-state

2020-05-13 Thread ira . weiny
From: Ira Weiny We add 'always', 'never', and 'inode' (default). '-o dax' continue to operate the same. Specifically we introduce a 2nd DAX mount flag EXT4_MOUNT2_DAX_NEVER and set it and EXT4_MOUNT_DAX_ALWAYS appropriately. We also force EXT4_MOUNT2_DAX_NEVER if !CONFIG_FS_DAX. https://lore.

[PATCH V1 0/9] Enable ext4 support for per-file/directory DAX operations

2020-05-13 Thread ira . weiny
From: Ira Weiny Enable the same per file DAX support in ext4 as was done for xfs. This series builds and depends on the V11 series for xfs.[1] This passes the same xfstests test as XFS. The only issue is that this modifies the old mount option parsing code rather than waiting for the new parsi

[PATCH V1 4/9] fs/ext4: Change EXT4_MOUNT_DAX to EXT4_MOUNT_DAX_ALWAYS

2020-05-13 Thread ira . weiny
From: Ira Weiny In prep for the new tri-state mount option which then introduces EXT4_MOUNT_DAX_NEVER. Reviewed-by: Jan Kara Signed-off-by: Ira Weiny --- Changes: New patch --- fs/ext4/ext4.h | 4 ++-- fs/ext4/inode.c | 2 +- fs/ext4/super.c | 12 ++-- 3 files changed, 9 i

[PATCH V1 8/9] fs/ext4: Introduce DAX inode flag

2020-05-13 Thread ira . weiny
From: Ira Weiny Add a flag to preserve FS_XFLAG_DAX in the ext4 inode. Set the flag to be user visible and changeable. Set the flag to be inherited. Allow applications to change the flag at any time. Finally, on regular files, flag the inode to not be cached to facilitate changing S_DAX on th

[PATCH V1 5/9] fs/ext4: Update ext4_should_use_dax()

2020-05-13 Thread ira . weiny
From: Ira Weiny S_DAX should only be enabled when the underlying block device supports dax. Change ext4_should_use_dax() to check for device support prior to the over riding mount option. While we are at it change the function to ext4_should_enable_dax() as this better reflects the ask as well

Re: [PATCH] net: stmmac: fix num_por initialization

2020-05-13 Thread Amit Kucheria
On Thu, May 14, 2020 at 11:59 AM Vinod Koul wrote: > > Driver missed initializing num_por which is por values that driver Nit: s/is/is one of the/ ? > configures to hardware. In order to get this values, add a new structure Nit: s/this/these > ethqos_emac_driver_data which holds por and num_po

[PATCH V1 9/9] Documentation/dax: Update DAX enablement for ext4

2020-05-13 Thread ira . weiny
From: Ira Weiny Update the document to reflect ext4 and xfs now behave the same. Signed-off-by: Ira Weiny --- Changes from RFC: Update with ext2 text... --- Documentation/filesystems/dax.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/filesy

mm/memory.c: Add update local tlb for smp race

2020-05-13 Thread Bibo Mao
If there are two threads hitting page fault at the address, one thread updates pte entry and local tlb, the other thread can update local tlb also, rather than give up and let page fault happening again. modified: mm/memory.c Signed-off-by: Bibo Mao --- mm/memory.c | 30 ++

Re: [virtio-dev] [PATCH v3 00/15] virtio-mem: paravirtualized memory

2020-05-13 Thread teawater
Hi David, I got a kernel warning with v2 and v3. // start a QEMU that is get from https://github.com/davidhildenbrand/qemu/tree/virtio-mem-v2 and setup a file as a ide disk. /home/teawater/qemu/qemu/x86_64-softmmu/qemu-system-x86_64 -machine pc-i440fx-2.1,accel=kvm,usb=off -cpu host -no-reboot

Re: [PATCH 8/9] fs/ext4: Introduce DAX inode flag

2020-05-13 Thread Jan Kara
On Wed 13-05-20 14:41:55, Ira Weiny wrote: > On Wed, May 13, 2020 at 04:47:06PM +0200, Jan Kara wrote: > > > > So I think you'll have to check > > whether DAX flag is being changed, > > ext4_dax_dontcache() does check if the flag is being changed. Yes, but if you call it after inode flags change,

[PATCH] firmware: qcom_scm: Prefer initialisation during the descriptor declaration

2020-05-13 Thread Amit Kucheria
qcom_scm_iommu_secure_ptbl_init() initialises the args twice, once while declaring the struct, and then again by assignment. Remove the duplicate assignment. Similarly, move arginfo initialisation to the declaration in __qcom_scm_is_call_available for consistency with other .arginfo initialisation

Re: stable-rc 5.4: libhugetlbfs fallocate_stress.sh: Unable to handle kernel paging request at virtual address ffff00006772f000

2020-05-13 Thread Michal Hocko
On Wed 13-05-20 23:11:40, Naresh Kamboju wrote: > While running libhugetlbfs fallocate_stress.sh on stable-rc 5.4 branch kernel > on arm64 hikey device. The following kernel Internal error: Oops: > crash dump noticed. Is the same problem reproducible on vanilla 5.4 without any stable patches? >

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

2020-05-13 Thread Viresh Kumar
On 14-05-20, 11:58, Stephen Rothwell wrote: > Hi all, > > After merging the opp tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > x86_64-linux-gnu-ld: drivers/opp/core.o: in function > `dev_pm_opp_put_opp_table': > (.text+0x76e): undefined reference to `icc_put' > x86_

[PATCH net-next] hinic: update huawei ethernet driver maintainer

2020-05-13 Thread Luo bin
update huawei ethernet driver maintainer from aviad to Bin luo Signed-off-by: Luo bin --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index e581ae499057..8e51860e0204 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7811,7 +7811,7 @@ F:

Re: [PATCH v29 00/20] Intel SGX foundations

2020-05-13 Thread Jethro Beekman
On 2020-05-14 00:14, Jarkko Sakkinen wrote: > General question: maybe it would be easiest that I issue a pull request > once everyone feels that the series is ready to be pulled and stop sending > new versions of the series? Sounds good -- Jethro Beekman | Fortanix smime.p7s Description: S/MIM

Re: Validating dma_mmap_coherent() parameters before calling (was Re: WARNING in memtype_reserve)

2020-05-13 Thread Christoph Hellwig
On Thu, May 14, 2020 at 08:27:50AM +0200, Greg KH wrote: > On Thu, May 14, 2020 at 08:14:17AM +0200, Christoph Hellwig wrote: > > Guys, can you please start formal thread on this? I have no > > idea where this came from and what the rationale is. Btw, if the > > pfn is crap in dma_direct_mmap the

Re: [PATCH] i2c: mediatek: Add i2c ac-timing adjust support

2020-05-13 Thread Wolfram Sang
> > Last question: You seem to be the one doing major updates to this > > driver. Thanks for that! Are you maybe interested in becoming the > > maintainer for this driver? I think there won't be much patches to > > review and reports to handle but it will speed up processing for me. > > Yes, It i

[PATCH] net: stmmac: fix num_por initialization

2020-05-13 Thread Vinod Koul
Driver missed initializing num_por which is por values that driver configures to hardware. In order to get this values, add a new structure ethqos_emac_driver_data which holds por and num_por values and populate that in driver probe. Fixes: a7c30e62d4b8 ("net: stmmac: Add driver for Qualcomm ethqo

Re: [PATCH 27/33] sctp: export sctp_setsockopt_bindx

2020-05-13 Thread Christoph Hellwig
On Wed, May 13, 2020 at 03:00:58PM -0300, Marcelo Ricardo Leitner wrote: > On Wed, May 13, 2020 at 08:26:42AM +0200, Christoph Hellwig wrote: > > And call it directly from dlm instead of going through kernel_setsockopt. > > The advantage on using kernel_setsockopt here is that sctp module will > o

Validating dma_mmap_coherent() parameters before calling (was Re: WARNING in memtype_reserve)

2020-05-13 Thread Greg KH
On Thu, May 14, 2020 at 08:14:17AM +0200, Christoph Hellwig wrote: > Guys, can you please start formal thread on this? I have no > idea where this came from and what the rationale is. Btw, if the > pfn is crap in dma_direct_mmap then the dma_addr_t passed in is > crap, as it is derived from that.

Re: remove kernel_setsockopt and kernel_getsockopt

2020-05-13 Thread Christoph Hellwig
On Wed, May 13, 2020 at 10:38:59AM -0700, Joe Perches wrote: > It might be useful to show overall object size change. > > More EXPORT_SYMBOL uses increase object size a little. > > And not sure it matters much except it reduces overall object > size, but these patches remove (unnecessary) logging

Re: [PATCH 21/33] ipv4: add ip_sock_set_mtu_discover

2020-05-13 Thread Christoph Hellwig
On Wed, May 13, 2020 at 02:17:41PM +0100, David Howells wrote: > Christoph Hellwig wrote: > > > + ip_sock_set_mtu_discover(conn->params.local->socket->sk, > > + IP_PMTUDISC_DONT); > > Um... The socket in question could be an AF_INET6 socket, not an AF_INET4 >

Re: [PATCH] net: phy: realtek: clear interrupt during init for rtl8211f

2020-05-13 Thread Jisheng Zhang
On Wed, 13 May 2020 20:45:13 +0200 Heiner Kallweit wrote: > > On 13.05.2020 08:51, Jisheng Zhang wrote: > > Hi, > > > > On Tue, 12 May 2020 20:43:40 +0200 Heiner Kallweit wrote: > > > >> > >> > >> On 12.05.2020 12:46, Jisheng Zhang wrote: > >>> The PHY Register Accessible Interrupt is enabled

Re: [dm-devel] [PATCH] dm zoned: Avoid 64-bit division error in dmz_fixup_devices

2020-05-13 Thread Damien Le Moal
On 2020/05/14 14:07, Nathan Chancellor wrote: > When building arm32 allyesconfig: > > ld.lld: error: undefined symbol: __aeabi_uldivmod referenced by dm-zoned-target.c md/dm-zoned-target.o:(dmz_ctr) in archive drivers/built-in.a > > dmz_fixup_devices uses DIV_ROUND_UP with

[PATCH 2/2] dt-bindings: rtc: Convert MXC RTC V2 to json-schema

2020-05-13 Thread Anson Huang
Convert the MXC RTC V2 binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/rtc/rtc-mxc_v2.txt | 17 .../devicetree/bindings/rtc/rtc-mxc_v2.yaml| 46 ++ 2 files changed, 46 insertions(+), 17 deletions(-

[PATCH V3 8/8] phy: tegra: xusb: Enable charger detect for Tegra210

2020-05-13 Thread Nagarjuna Kristam
Tegra210 SoC supports charger detect, set corresponding soc flag. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V3: - Used supports_charger_detect name instead of charger_detect. - Added Acked-by updates to commit message. --- V2: - Patch re-based. --- drivers/phy/tegra/xusb-

[PATCH V3 2/8] usb: gadget: tegra-xudc: Add vbus_draw support

2020-05-13 Thread Nagarjuna Kristam
Register vbus_draw to gadget ops and update corresponding vbus draw current to usb_phy. Signed-off-by: Nagarjuna Kristam --- V3: - Propogated usb_phy->set_power error to vbus_draw caller. --- V2: - Patch re-based. --- drivers/usb/gadget/udc/tegra-xudc.c | 17 + 1 file changed,

[PATCH V3 7/8] phy: tegra: xusb: Enable charger detect for Tegra186

2020-05-13 Thread Nagarjuna Kristam
Tegra186 SoC supports charger detect, set corresponding soc flag. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V3: - Used supports_charger_detect name instead of charger_detect. - Added Acked-by updates to commit message. --- V2: - Patch re-based. --- drivers/phy/tegra/xusb-

[PATCH V3 0/8] Tegra XUSB charger detect support

2020-05-13 Thread Nagarjuna Kristam
This patch series adds charger detect support on XUSB hardware used in Tegra210 and Tegra186 SoCs. This patchset is composed with : - dt bindings of XUSB Pad Controller - Tegra XUSB device mode driver to add vbus_draw support - Tegra PHY driver for charger detect support Tests done: - Connec

[PATCH V3 1/8] dt-bindings: phy: tegra-xusb: Add charger-detect property

2020-05-13 Thread Nagarjuna Kristam
Add nvidia,charger-detect boolean property for Tegra210 and Tegra186 platforms. This property is used to inform driver to perform charger detection on corresponding USB 2 port. Signed-off-by: Nagarjuna Kristam Acked-by: Rob Herring Acked-by: Thierry Reding --- V3: - Added Acked-by updates to c

[PATCH V3 6/8] phy: tegra: xusb: Add support for charger detect

2020-05-13 Thread Nagarjuna Kristam
Perform charger-detect operation if corresponding dt property is enabled. Update usb-phy with the detected charger state and max current values. Register charger-detect API's of usb-phy to provide needed functionalities. Signed-off-by: Nagarjuna Kristam --- V3: - Allighed functions and its argum

[PATCH 1/2] dt-bindings: rtc: Convert MXC RTC to json-schema

2020-05-13 Thread Anson Huang
Convert the MXC RTC binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/rtc/rtc-mxc.txt | 26 -- Documentation/devicetree/bindings/rtc/rtc-mxc.yaml | 59 ++ 2 files changed, 59 insertions(+), 26 deletions(-)

[PATCH V3 5/8] phy: tegra: xusb: Add soc ops API to enable UTMI PAD protection

2020-05-13 Thread Nagarjuna Kristam
When USB charger is enabled, UTMI PAD needs to be protected according to the direction and current level. Add support for the same on Tegra210 and Tegra186. Signed-off-by: Nagarjuna Kristam --- V3: - Alligned function and its arguments. - Fixed other comments from Thierry. --- V2: - Commit mes

[PATCH V3 3/8] phy: tegra: xusb: Add support for UTMI pad power control

2020-05-13 Thread Nagarjuna Kristam
Add support for UTMI pad power on and off API's via soc ops. These API can be used by operations like charger detect to power on and off UTMI pad if needed. Update powered_on flag in the pad power control API's. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V3: - Added Acked-by

[PATCH V3 4/8] phy: tegra: xusb: Add USB2 pad power control support for Tegra210

2020-05-13 Thread Nagarjuna Kristam
Add USB2 pad power on and off API's for TEgra210 and provide its control via soc ops. It can be used by operations like charger detect to power on and off USB2 pad if needed. Signed-off-by: Nagarjuna Kristam Acked-by: Thierry Reding --- V3: - Added Acked-by updates to commit message. --- V2: -

[PATCH v7] Add matrix keypad driver support for Mediatek SoCs

2020-05-13 Thread Fengping Yu
Change since v6: - update keypad device tree document schema fengping.yu (3): dt-bindings: Add keypad devicetree documentation drivers: input: keyboard: Add mtk keypad driver configs: defconfig: Add CONFIG_KEYBOARD_MTK_KPD=y .../devicetree/bindings/input/mtk-kpd.yaml| 102 ar

Re: WARNING in memtype_reserve

2020-05-13 Thread Dmitry Vyukov
On Thu, May 14, 2020 at 8:14 AM Christoph Hellwig wrote: > > Guys, can you please start formal thread on this? I have no > idea where this came from and what the rationale is. Btw, if the > pfn is crap in dma_direct_mmap then the dma_addr_t passed in is > crap, as it is derived from that. What

Re: [PATCH v1] driver core: Add state_synced sysfs file for devices that support it

2020-05-13 Thread Greg Kroah-Hartman
On Wed, May 13, 2020 at 11:49:57AM -0700, Saravana Kannan wrote: > On Wed, May 13, 2020 at 1:34 AM Saravana Kannan wrote: > > > > On Wed, May 13, 2020 at 1:22 AM Greg Kroah-Hartman > > wrote: > > > > > > On Tue, May 12, 2020 at 06:34:15PM -0700, Saravana Kannan wrote: > > > > This can be used to

Re: WARNING in memtype_reserve

2020-05-13 Thread Christoph Hellwig
Guys, can you please start formal thread on this? I have no idea where this came from and what the rationale is. Btw, if the pfn is crap in dma_direct_mmap then the dma_addr_t passed in is crap, as it is derived from that. What is the caller, and how is this triggered?

[PATCH net-next] hinic: add set_ringparam ethtool_ops support

2020-05-13 Thread Luo bin
support to change TX/RX queue depth with ethtool -G Signed-off-by: Luo bin --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 2 + .../net/ethernet/huawei/hinic/hinic_ethtool.c | 78 ++- .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 11 ++- .../net/ethernet/huawei/hinic/hinic

Re: [PATCHv1 01/19] kobject: increase allowed number of uevent variables

2020-05-13 Thread Greg Kroah-Hartman
On Wed, May 13, 2020 at 08:55:57PM +0200, Sebastian Reichel wrote: > SBS battery driver exposes 32 power supply properties now, > which will result in uevent failure on (un)plugging the > battery. Other drivers (e.g. bq27xxx) are also coming close > to this limit, so increase it. > > Signed-off-by

Re: [tracing] 06e0a548ba: WARNING:at_kernel/trace/ring_buffer.c:#ring_buffer_iter_peek

2020-05-13 Thread Sven Schnelle
Hi Steve, On Wed, May 13, 2020 at 03:30:33PM -0400, Steven Rostedt wrote: > On Wed, 13 May 2020 18:15:57 +0200 > Sven Schnelle wrote: > > > Thanks for looking into this. I've attached my /proc/config.gz to this Mail. > > The x86 system is my Laptop which is a Thinkpad X280 with 4 HT CPUs (so 8

RE: [PATCH] fpga: dfl: afu: Corrected error handling levels

2020-05-13 Thread Wu, Hao
> -Original Message- > From: Xu, Yilun > Sent: Thursday, May 14, 2020 10:30 AM > To: Souptick Joarder > Cc: Wu, Hao ; m...@kernel.org; linux- > f...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] fpga: dfl: afu: Corrected error handling levels > > The patch looks go

Re: linux-next: manual merge of the vfs tree with the parisc-hd tree

2020-05-13 Thread Xiaoming Ni
On 2020/5/13 20:50, Luis Chamberlain wrote: On Wed, May 13, 2020 at 12:04:02PM +0800, Xiaoming Ni wrote: On 2020/5/13 6:03, Luis Chamberlain wrote: On Tue, May 12, 2020 at 12:40:55PM -0500, Eric W. Biederman wrote: Luis Chamberlain writes: On Tue, May 12, 2020 at 06:52:35AM -0500, Eric W. B

Re: [PATCH 1/2] dt-bindings: pinctrl: qcom: Add sm8250 pinctrl bindings

2020-05-13 Thread Bjorn Andersson
On Wed 29 Apr 14:34 PDT 2020, Rob Herring wrote: > On Thu, Apr 16, 2020 at 11:19:06PM -0700, Bjorn Andersson wrote: > > diff --git > > a/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml > > b/Documentation/devicetree/bindings/pinctrl/qcom,sm8250-pinctrl.yaml [..] > > +#PIN CONFI

[PATCH] kernel/sched/wait.c: set timeout to 0 when kthread should stop

2020-05-13 Thread Qingjie Xing
Using kthread_stop() to terminate a thread causes tcp_recvmsg() to enter a dead loop when the kernel thread uses tcp_recvmsg() to receive a message. tcp_recvmsg()-->sk_wait_data()-->sk_wait_event()-->wait_woken(). wait_woken() will directly return unchanged timeout value rather than be executed a

[PATCH] riscv: perf: fix build error for dependency issue

2020-05-13 Thread Zong Li
CONFIG_RISCV_BASE_PMU can be selected or unselected, but in fact, CONFIG_RISCV_BASE_PMU must be always selected when selecting CONFIG_PERF_EVENTS on current perf implementation, otherwise, it would cause the build error when only selecting CONFIG_PERF_EVENTS. The build case is applied randconfig wh

Re: [PATCH v13 4/8] iommu/vt-d: Add bind guest PASID support

2020-05-13 Thread Christoph Hellwig
> + if (dev_is_pci(dev)) { > + /* VT-d supports devices with full 20 bit PASIDs only */ > + if (pci_max_pasids(to_pci_dev(dev)) != PASID_MAX) > + return -EINVAL; > + } else { > + return -ENOTSUPP; > + } This looks strange. Why no

Re: linux-next: manual merge of the mlx5-next tree with the rdma tree

2020-05-13 Thread Leon Romanovsky
On Thu, May 14, 2020 at 12:59:20PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the mlx5-next tree got a conflict in: > > drivers/infiniband/hw/mlx5/main.c > > between commit: > > 2be08c308f10 ("RDMA/mlx5: Delete create QP flags obfuscation") > > from the rdma tree a

Re: [PATCH v13 3/8] iommu/vt-d: Add nested translation helper function

2020-05-13 Thread Christoph Hellwig
> + * 1. CPU vs. IOMMU > + * 2. Guest vs. Host. > + */ > + switch (addr_width) { > +#ifdef CONFIG_X86 > + case ADDR_WIDTH_5LEVEL: > + if (cpu_feature_enabled(X86_FEATURE_LA57) && > + cap_5lp_support(iommu->cap)) { > + pasid_set_

Re: [PATCH v13 2/8] iommu/vt-d: Use a helper function to skip agaw for SL

2020-05-13 Thread Christoph Hellwig
On Wed, May 13, 2020 at 04:01:43PM -0700, Jacob Pan wrote: > An Intel iommu domain uses 5-level page table by default. If the > iommu that the domain tries to attach supports less page levels, > the top level page tables should be skipped. Add a helper to do > this so that it could be used in other

Re: [PATCH] Revert "mmc: sdhci-xenon: add runtime pm support and reimplement standby"

2020-05-13 Thread Jisheng Zhang
On Wed, 13 May 2020 14:15:21 +0200 Ulf Hansson wrote: > > > On Wed, 13 May 2020 at 11:47, Jisheng Zhang > wrote: > > > > This reverts commit a027b2c5fed78851e69fab395b02d127a7759fc7. > > > > The HW supports auto clock gating, so it's useless to do runtime pm > > in software. > > Runtime PM

Re: [PATCH v4 3/4] perf stat: Copy counts from prev_raw_counts to evsel->counts

2020-05-13 Thread Jin, Yao
Hi Jiri, On 5/13/2020 11:31 PM, Jiri Olsa wrote: On Fri, May 08, 2020 at 03:58:16PM +0800, Jin Yao wrote: It would be useful to support the overall statistics for perf-stat interval mode. For example, report the summary at the end of "perf-stat -I" output. But since perf-stat can support many

Re: [PATCH v5 2/6] spi: spi-geni-qcom: Use OPP API to set clk/perf state

2020-05-13 Thread Bjorn Andersson
On Wed 13 May 22:03 PDT 2020, Rajendra Nayak wrote: > > [].. > > > > spi->bus_num = -1; > > > spi->dev.of_node = dev->of_node; > > > @@ -596,6 +607,9 @@ static int spi_geni_probe(struct platform_device > > > *pdev) > > > spi_geni_probe_runtime_disable: > > > pm_r

[PATCH v5 2/5] perf counts: Reset prev_raw_counts counts

2020-05-13 Thread Jin Yao
When we want to reset the evsel->prev_raw_counts, zeroing the aggr is not enough, we need to reset the perf_counts too. The perf_counts__reset zeros the perf_counts, and it should zero the aggr too. This patch changes perf_counts__reset to non-static, and calls it in evsel__reset_prev_raw_counts t

[PATCH v5 1/5] perf stat: Fix wrong per-thread runtime stat for interval mode

2020-05-13 Thread Jin Yao
root@kbl-ppc:~# perf stat --per-thread -e cycles,instructions -I1000 --interval-count 2 1.004171683 perf-3696 8,747,311 cycles ... 1.004171683 perf-3696691,730 instructions #0.08 insn per cycle

[PATCH v5 3/5] perf stat: Copy counts from prev_raw_counts to evsel->counts

2020-05-13 Thread Jin Yao
It would be useful to support the overall statistics for perf-stat interval mode. For example, report the summary at the end of "perf-stat -I" output. But since perf-stat can support many aggregation modes, such as --per-thread, --per-socket, -M and etc, we need a solution which doesn't bring much

[PATCH v5 4/5] perf stat: Save aggr value to first member of prev_raw_counts

2020-05-13 Thread Jin Yao
To collect the overall statistics for interval mode, we copy the counts from evsel->prev_raw_counts to evsel->counts. For AGGR_GLOBAL mode, because the perf_stat_process_counter creates aggr values from per cpu values, but the per cpu values are 0, so the calculated aggr values will be always 0.

[PATCH v5 0/5] perf stat: Support overall statistics for interval mode

2020-05-13 Thread Jin Yao
Currently perf-stat supports to print counts at regular interval (-I), but it's not very easy for user to get the overall statistics. With this patchset, it supports to report the summary at the end of interval output. For example, root@kbl-ppc:~# perf stat -e cycles -I1000 --interval-count 2

Re: [PATCH] optee: don't fail on unsuccessful device enumeration

2020-05-13 Thread Sumit Garg
Hi Volodymyr, On Thu, 14 May 2020 at 06:48, Volodymyr Babchuk wrote: > > Hi Sumit, > > On Wed, 13 May 2020 at 11:24, Sumit Garg wrote: > > > > Hi Volodymyr, > > > > On Wed, 13 May 2020 at 13:30, Jens Wiklander > > wrote: > > > > > > Hi Volodymyr, > > > > > > On Wed, May 13, 2020 at 2:36 AM Vol

[PATCH v5 5/5] perf stat: Report summary for interval mode

2020-05-13 Thread Jin Yao
Currently perf-stat supports to print counts at regular interval (-I), but it's not very easy for user to get the overall statistics. The patch uses 'evsel->prev_raw_counts' to get counts for summary. Copy the counts to 'evsel->counts' after printing the interval results. Next, we just follow the

Re: [PATCH v4] bus: mhi: core: Handle syserr during power_up

2020-05-13 Thread Manivannan Sadhasivam
On Thu, May 07, 2020 at 10:19:31AM -0600, Jeffrey Hugo wrote: > The MHI device may be in the syserr state when we attempt to init it in > power_up(). Since we have no local state, the handling is simple - > reset the device and wait for it to transition out of the reset state. > > Signed-off-by:

Re: gcc-10: kernel stack is corrupted and fails to boot

2020-05-13 Thread Arvind Sankar
On Wed, May 13, 2020 at 09:52:07PM -0700, Linus Torvalds wrote: > On Wed, May 13, 2020, 20:50 Andy Lutomirski wrote: > > > > > LTO isn’t a linker taking regular .o files full of regular machine > > code and optimizing it. That’s nuts. > > > > Yeah, you're right. I wear originally thinking just a

Re: [PATCH v2 11/12] remoteproc: stm32: Introduce new loaded rsc ops for synchronisation

2020-05-13 Thread Bjorn Andersson
On Fri 24 Apr 13:25 PDT 2020, Mathieu Poirier wrote: > Introduce new elf find loaded resource table rproc_ops functions to be > used when synchonising with an MCU. > > Mainly based on the work published by Arnaud Pouliquen [1]. > > [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/

Re: [PATCH v2 10/12] remoteproc: stm32: Introduce new parse fw ops for synchronisation

2020-05-13 Thread Bjorn Andersson
On Fri 24 Apr 13:25 PDT 2020, Mathieu Poirier wrote: > Introduce new parse firmware rproc_ops functions to be used when > synchonising with an MCU. > > Mainly based on the work published by Arnaud Pouliquen [1]. > > [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=239877 >

Re: [Jfs-discussion] [fs] 05c5a0273b: netperf.Throughput_total_tps -71.8% regression

2020-05-13 Thread Rong Chen
On 5/14/20 12:27 PM, Christian Kujau wrote: On Tue, 12 May 2020, kernel test robot wrote: FYI, we noticed a -71.8% regression of netperf.Throughput_total_tps due to commit: As noted in this report, netperf is used to "measure various aspect of networking performance". Are we sure the bisect

Re: [PATCH v1] ASoC: rsnd: add interrupt support for SSI BUSIF buffer

2020-05-13 Thread kbuild test robot
Hi Yongbo, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on asoc/for-next] [also build test WARNING on v5.7-rc5 next-20200511] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base'

Re: [PATCH v2 05/12] remoteproc: stm32: Parse syscon that will manage M4 synchronisation

2020-05-13 Thread Bjorn Andersson
On Fri 24 Apr 13:24 PDT 2020, Mathieu Poirier wrote: > Get from the DT the syncon to probe the state of the remote processor > and the location of the resource table. > > Mainly based on the work published by Arnaud Pouliquen [1]. > > [1]. https://patchwork.kernel.org/project/linux-remoteproc/li

Re: [PATCH v2 04/12] remoteproc: stm32: Remove memory translation from DT parsing

2020-05-13 Thread Bjorn Andersson
On Fri 24 Apr 13:24 PDT 2020, Mathieu Poirier wrote: > Other than one has to be done after the other, there is no correlation > between memory translation and DT parsing. As move function > stm32_rproc_of_memory_translations() to stm32_rproc_probe() so that > stm32_rproc_parse_dt() can be extende

[PATCH 10/16] ARM: dts: at91: sama5d2: Add DMA bindings for the flx1 I2C function

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus Spare boards of duplicating the DMA bindings. Describe the flx1 DMA bindings in the SoC dtsi. Users that don't want to use DMA for their flexcom functions have to overwrite the flexcom DMA bindings in their board device tree. Signed-off-by: Tudor Ambarus --- arch/arm/boot/d

[PATCH 06/16] ARM: dts: at91: sama5d2: Move flx0 definitions in the SoC dtsi

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus The Flexcom IP is part of the sama5d2 SoC. Move the flx0 node together with its function definitions in sama5d2.dtsi. Boards will just fill the pins and enable the desired functions. There is a single functional change in this patch. With the move of the flx0 uart5 definition

Re: [PATCH v5 2/6] spi: spi-geni-qcom: Use OPP API to set clk/perf state

2020-05-13 Thread Rajendra Nayak
[].. spi->bus_num = -1; spi->dev.of_node = dev->of_node; @@ -596,6 +607,9 @@ static int spi_geni_probe(struct platform_device *pdev) spi_geni_probe_runtime_disable: pm_runtime_disable(dev); spi_master_put(spi); + if (mas->se.has_opp_table) Why do you nee

[PATCH 00/16] ARM: dts: at91: sama5d2: Rework Flexcom definitions

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus Rework the sama5d2 SoC flexcom definitions. The Flexcom IPs are in the SoC. Move all the flexcom nodes together with their function definitions in the SoC dtsi. Boards will just fill the pins and enable the desired functions. With this we remove the duplication of the flexcom

[PATCH 05/16] ARM: dts: at91: sama5d2: Move flx1 definitions in the SoC dtsi

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus The Flexcom IP is part of the sama5d2 SoC. Move the flx0 node together with its function definitions in sama5d2.dtsi. Boards will just fill the pins and enable the desired functions. Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 7 - ar

[PATCH 08/16] ARM: dts: at91: sama5d2: Add DMA bindings for the SPI and UART flx4 functions

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus Spare boards of duplicating the DMA bindings. Describe the flx4 DMA bindings in the SoC dtsi. Users that don't want to use DMA for their flexcom functions have to overwrite the flexcom DMA bindings in their board device tree. Signed-off-by: Tudor Ambarus --- arch/arm/boot/d

[PATCH 13/16] ARM: dts: at91: sama5d2: Remove i2s and tcb aliases from SoC dtsi

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus Device aliases are board-specific, if needed one should define them in board dts rather than in the SoC dtsi. If an alias from the SoC dtsi is addressed by a driver that does not use any of the of_alias*() methods, we can drop it. This is the case for the i2s aliases, drop the

[PATCH 16/16] ARM: dts: at91: sama5d2_ptc_ek: Add comments to describe the aliases

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus Indicate which i2c alias is for which connector on the board. Specify that serial0 is for DBGU. This eases tester's life. Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arc

[PATCH 07/16] ARM: dts: at91: sama5d2: Specify the FIFO size for the Flexcom UART

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus The UART submodule in Flexcom has 32-byte Transmit and Receive FIFOs. Tested uart7 on sama5d2-icp, which has both DMA and FIFO enabled. Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/sama5d2.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sa

[PATCH 04/16] ARM: dts: at91: sama5d2: Move flx2 definitions in the SoC dtsi

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus The Flexcom IP is part of the sama5d2 SoC. Move the flx2 node together with its function definitions in sama5d2.dtsi. Boards will just fill the pins and enable the desired functions. Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/at91-sama5d2_icp.dts | 12

[PATCH 09/16] ARM: dts: at91: sama5d2: Add DMA bindings for the flx3 SPI function

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus Spare boards of duplicating the DMA bindings. Describe the flx3 DMA bindings in the SoC dtsi. Users that don't want to use DMA for their flexcom functions have to overwrite the flexcom DMA bindings in their board device tree. Signed-off-by: Tudor Ambarus --- arch/arm/boot/d

[PATCH 14/16] ARM: dts: at91: sama5d2_xplained: Add alias for DBGU

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus The aliases should be defined in the board dts rather than in the SoC dtsi. Don't rely on the aliases defined in the SoC dtsi and define the alias for the Serial DBGU in the board dts file. sama5d2 boards use the "serial0" alias for the Serial DBGU, do the same for sama5d2_xpl

[PATCH 12/16] ARM: dts: at91: sama5d2: Add missing flexcom definitions

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus Describe all the flexcom functions for all the flexcom nodes. Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/sama5d2.dtsi | 79 ++ 1 file changed, 79 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.d

[PATCH 15/16] ARM: dts: at91: sama5d2_xplained: Describe the flx0 I2C function

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus Users can choose which flexcom function to use. Describe the I2C Flexcom0 function. Add alias for the i2c2 node in order to not rely on probe order for the i2c device numbering. The sama5d2 SoC has two dedicated i2c buses and five flexcoms that can function as i2c. The i2c0 an

[PATCH 11/16] ARM: dts: at91: sama5d2: Add DMA bindings for the SPI and I2C flx0 functions

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus Spare boards of duplicating the DMA bindings. Describe the flx0 DMA bindings in the SoC dtsi. Users that don't want to use DMA for their flexcom functions have to overwrite the flexcom DMA bindings in their board device tree. Signed-off-by: Tudor Ambarus --- arch/arm/boot/d

Re: [patch V4 part 4 07/24] x86/traps: Split int3 handler up

2020-05-13 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > For code simplicity split up the int3 handler into a kernel and user part > which makes the code flow simpler to understand. > > Signed-off-by: Peter Zijlstra (Intel) > Signed-off-by: Thomas Gleixner > --- > arch/x86/kernel/traps.c | 6

[PATCH 01/16] ARM: dts: at91: sama5d2: Fix the label numbering for flexcom functions

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus The sama5d2 SoC has the following IPs: [uart0, uart4], {spi0, spi1}, {i2c0, i2c1}. Label the flexcom functions in order: flx0: uart5, spi2, i2c2 flx1: uart6, spi3, i2c3 flx2: uart7, spi4, i2c4 flx3: uart8, spi5, i2c5 flx4: uart9, spi6, i2c6 Some boards respected this scheme,

[PATCH 03/16] ARM: dts: at91: sama5d2: Move flx3 definitions in the SoC dtsi

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus The Flexcom IP is part of the sama5d2 SoC. Move the flx3 node together with its function definitions in sama5d2.dtsi. Boards will just fill the pins and enable the desired functions. Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/at91-kizbox3_common.dtsi | 13 -

[PATCH 02/16] ARM: dts: at91: sama5d2: Move flx4 definitions in the SoC dtsi

2020-05-13 Thread Tudor.Ambarus
From: Tudor Ambarus The Flexcom IP is part of the sama5d2 SoC. Move the flx0 node together with its function definitions in sama5d2.dtsi. Boards will just fill the pins and enable the desired functions. Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/at91-kizbox3_common.dtsi | 14

Re: [PATCH v2 03/12] remoteproc: stm32: Decouple rproc from DT parsing

2020-05-13 Thread Bjorn Andersson
On Fri 24 Apr 13:24 PDT 2020, Mathieu Poirier wrote: > Remove the remote processor from the process of parsing the device tree > since (1) there is no correlation between them and (2) to use the > information that was gathered to make a decision on whether to > synchronise with the M4 or not. > >

Re: [patch V4 part 4 06/24] x86/entry: Convert INT3 exception to IDTENTRY_RAW

2020-05-13 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:15 AM Thomas Gleixner wrote: > > Convert #BP to IDTENTRY_RAW: > - Implement the C entry point with DEFINE_IDTENTRY_RAW > - Invoke idtentry_enter/exit() from the function body > - Emit the ASM stub with DECLARE_IDTENTRY_RAW > - Remove the ASM idtentry in 64bit > -

Re: [patch V4 part 4 05/24] x86/entry: Provide IDTENTRY_RAW

2020-05-13 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:15 AM Thomas Gleixner wrote: > > Some exception handlers need to do extra work before any of the entry > helpers are invoked. Provide IDTENTRY_RAW for this. Acked-by: Andy Lutomirski

Re: [patch V4 part 4 04/24] x86/int3: Inline bsearch()

2020-05-13 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:15 AM Thomas Gleixner wrote: > > From: Peter Zijlstra > > Avoid calling out to bsearch() by inlining it, for normal kernel configs > this was the last external call and poke_int3_handler() is now fully self > sufficient -- no calls to external code. > Acked-by: Andy Lut

Re: [PATCH v2 02/12] remoteproc: stm32: Request IRQ with platform device

2020-05-13 Thread Bjorn Andersson
On Fri 24 Apr 13:24 PDT 2020, Mathieu Poirier wrote: > Request IRQ with platform device rather than remote proc in order to > call stm32_rproc_parse_dt() before rproc_alloc(). That way we can > know whether we need to synchronise with the MCU or not. > > Signed-off-by: Mathieu Poirier > Reviewe

Re: [PATCH v2 01/12] remoteproc: stm32: Decouple rproc from memory translation

2020-05-13 Thread Bjorn Andersson
On Fri 24 Apr 13:24 PDT 2020, Mathieu Poirier wrote: > Remove the remote processor from the process of parsing the memory > ranges since there is no correlation between them. > > Signed-off-by: Mathieu Poirier > Reviewed-by: Loic Pallardy Reviewed-by: Bjorn Andersson > --- > drivers/remotep

  1   2   3   4   5   6   7   8   9   10   >