Re: [PATCH 7/8] mpt3sas: set an unlimited max_segment_size for SAS 3.0 HBAs

2019-06-19 Thread Suganath Prabu Subramani
Please consider this as Acked-by: Suganath Prabu On Tue, Jun 18, 2019 at 6:16 AM Ming Lei wrote: > > On Mon, Jun 17, 2019 at 8:21 PM Christoph Hellwig wrote: > > > > When using a virt_boundary_mask, as done for NVMe devices attached to > > mpt3sas controllers we require an unlimited max_segmen

Re: [GIT PULL rcu/next] RCU commits for 5.3

2019-06-19 Thread Ingo Molnar
* Paul E. McKenney wrote: > On Tue, Jun 18, 2019 at 11:07:42AM -0700, Paul E. McKenney wrote: > > Hello, Ingo, > > > > This pull request contains the following changes: > > Gah!!! This one has some duplicated commits, so please ignore. > I will send an updated pull request early next week. >

Re: [PATCH RFC 1/2] PM / devfreq: Generic CPU frequency to device frequency mapping governor

2019-06-19 Thread Chanwoo Choi
+ Sibi Sankar Hi, Hsin-Yi Wang, Saravana Kannan and Sibi Sankar I summarized the history of the related patch about this title. Firstly, As I knew, Saravana sent the patch[1] which contains 'governor_cpufreq_map.c' last year. According to the Myungoo's comment, Secondly, Sibi Sankar modified th

Re: [PATCH 12/21] EDAC, ghes: Add support for legacy API counters

2019-06-19 Thread Robert Richter
On 19.06.19 18:22:32, James Morse wrote: > > In any case, this patch cleans up code as old API's counter code is > > isolated and moved to common code. Making the counter's work for ghes > > is actually a side-effect here. The cleanup is a prerequisit for > > follow on patches. > > I'm all for rem

[PATCH v2] arm64: rename dump_instr as dump_kernel_instr

2019-06-19 Thread jinho lim
[v2] dump_kernel_instr does not work for user mode. rename dump_instr function and remove __dump_instr. Signed-off-by: jinho lim --- Thanks for review, I rename dump_instr function and merge __dump_instr in it. arch/arm64/kernel/traps.c | 29 ++--- 1 file changed, 14 in

RE: [PATCH v2 1/3] ACPI: Resolve objects on host-directed table loads

2019-06-19 Thread Nikolaus Voss
On Wed, 19 Jun 2019, Moore, Robert wrote: -Original Message- From: Nikolaus Voss [mailto:n...@vosn.de] Sent: Wednesday, June 19, 2019 2:31 AM To: Moore, Robert Cc: Rafael J. Wysocki ; Rafael J. Wysocki ; Len Brown ; Schmauss, Erik ; Jacek Anaszewski ; Pavel Machek ; Dan Murphy ; Thier

Re: [PATCH 3/4] powerpc/powernv: remove dead NPU DMA code

2019-06-19 Thread Alexey Kardashevskiy
On 20/06/2019 16:21, Christoph Hellwig wrote: > On Thu, Jun 20, 2019 at 04:20:08PM +1000, Alexey Kardashevskiy wrote: >> >> >> On 20/06/2019 16:03, Christoph Hellwig wrote: >>> Hi Linus, >>> >>> this goes back to the discussion at last years kernel summit, where >>> we had the discussion on remo

[PATCH v4 6/7] perf diff: Print the basic block cycles diff

2019-06-19 Thread Jin Yao
$ perf record -b ./div $ perf record -b ./div Following is the default perf diff output $ perf diff # Event 'cycles' # # Baseline Delta Abs Shared Object Symbol # . .. # 48.75% +0.33% div [

[PATCH v4 3/7] perf diff: Check if all data files with branch stacks

2019-06-19 Thread Jin Yao
We will expand perf diff to support diff cycles of individual programs blocks, so it requires all data files having branch stacks. This patch checks HEADER_BRANCH_STACK in header, and only set the flag has_br_stack when HEADER_BRANCH_STACK are set in all data files. v2: --- Move check_file_brs

[PATCH v4 0/7] perf diff: diff cycles at basic block level

2019-06-19 Thread Jin Yao
In some cases small changes in hot loops can show big differences. But it's difficult to identify these differences. perf diff currently can only diff symbols (functions). We can also expand it to diff cycles of individual programs blocks as reported by timed LBR. This would allow to identify chan

[PATCH v4 5/7] perf diff: Link same basic blocks among different data

2019-06-19 Thread Jin Yao
The target is to compare the performance difference (cycles diff) for the same basic blocks in different data files. The same basic block means same function, same start address and same end address. This patch finds the same basic blocks from different data files and link them together and resort

[PATCH v4 7/7] perf diff: Documentation -c cycles option

2019-06-19 Thread Jin Yao
Documentation the new computation selection 'cycles'. v4: --- Change the column 'Block cycles diff [start:end]' to '[Program Block Range] Cycles Diff' Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-diff.txt | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-)

[PATCH v4 4/7] perf diff: Use hists to manage basic blocks per symbol

2019-06-19 Thread Jin Yao
The hist__account_cycles() can account cycles per basic block. The basic block information is saved in cycles_hist structure. This patch processes each symbol, get basic blocks from cycles_hist and add the basic block entries to a new hists (in 'struct block_hist'). Using a hists is because we nee

[PATCH v4 2/7] perf util: Add block_info in hist_entry

2019-06-19 Thread Jin Yao
The block_info contains the program basic block information, i.e, contains the start address and the end address of this basic block and how much cycles it takes. We need to compare, sort and even print out the basic block by some orders, i.e. sort by cycles. For this purpose, we add block_info fi

[PATCH v4 1/7] perf util: Create block_info structure

2019-06-19 Thread Jin Yao
perf diff currently can only diff symbols(functions). We should expand it to diff cycles of individual programs blocks as reported by timed LBR. This would allow to identify changes in specific code accurately. We need a new structure to maintain the basic block information, such as, symbol(functi

Re: [PATCH] KVM: vmx: Fix the broken usage of vmx_xsaves_supported

2019-06-19 Thread Xiaoyao Li
On 6/20/2019 2:40 PM, Wanpeng Li wrote: Hi, On Thu, 20 Jun 2019 at 13:06, Tao Xu wrote: The helper vmx_xsaves_supported() returns the bit value of SECONDARY_EXEC_XSAVES in vmcs_config.cpu_based_2nd_exec_ctrl, which remains unchanged true if vmcs supports 1-setting of this bit after setup_vmcs_

linux-next: manual merge of the nvdimm tree with the vhost tree

2019-06-19 Thread Stephen Rothwell
Hi Dan, Today's linux-next merge of the nvdimm tree got a conflict in: include/uapi/linux/virtio_ids.h between commit: edcd69ab9a32 ("iommu: Add virtio-iommu driver") from the vhost tree and commit: 5990fce9c50e ("virtio-pmem: Add virtio pmem driver") from the nvdimm tree. I fixed it

Re: [PATCH] KVM: vmx: Fix the broken usage of vmx_xsaves_supported

2019-06-19 Thread Wanpeng Li
Hi, On Thu, 20 Jun 2019 at 13:06, Tao Xu wrote: > > The helper vmx_xsaves_supported() returns the bit value of > SECONDARY_EXEC_XSAVES in vmcs_config.cpu_based_2nd_exec_ctrl, which > remains unchanged true if vmcs supports 1-setting of this bit after > setup_vmcs_config(). It should check the gues

Re: [PATCH 6/6] driver-core, libnvdimm: Let device subsystems add local lockdep coverage

2019-06-19 Thread Greg Kroah-Hartman
On Wed, Jun 19, 2019 at 03:21:58PM -0700, Dan Williams wrote: > On Tue, Jun 11, 2019 at 4:40 PM Dan Williams wrote: > > > > For good reason, the standard device_lock() is marked > > lockdep_set_novalidate_class() because there is simply no sane way to > > describe the myriad ways the device_lock()

Re: [PATCH RFC 0/3] Automatically choose a bigger font for high resolution screens

2019-06-19 Thread Greg Kroah-Hartman
On Tue, Jun 18, 2019 at 10:34:22PM +0200, Takashi Iwai wrote: > Hi, > > this is an RFC patch for automatically selecting a bigger font for > high resolution monitors if available. Although we recently got a > 16x32 sized font support in the kernel, using it still requires some > extra kernel opti

Re: [PATCH v1] phy: qcom-qmp: Raise qcom_qmp_phy_enable() polling delay

2019-06-19 Thread Kishon Vijay Abraham I
Hi, On 14/06/19 6:08 PM, Marc Gonzalez wrote: > + Doug (who is familiar with usleep_range quirks) > > On 14/06/2019 11:50, Vivek Gautam wrote: > >> On 6/13/2019 5:02 PM, Marc Gonzalez wrote: >> >>> readl_poll_timeout() calls usleep_range() to sleep between reads. >>> usleep_range() doesn't work

[PATCH 2/2 v9] tty/serial/8250: use mctrl_gpio helpers

2019-06-19 Thread Stefan Roese
From: Yegor Yefremov This patch permits the usage for GPIOs to control the CTS/RTS/DTR/DSR/DCD/RI signals. Changed by Stefan: Only call mctrl_gpio_init(), if the device has no ACPI companion device to not break existing ACPI based systems. Also only use the mctrl_gpio_ functions when "gpios" is

[PATCH 1/2 v9] serial: mctrl_gpio: Check if GPIO property exisits before requesting it

2019-06-19 Thread Stefan Roese
This patch adds a check for the GPIOs property existence, before the GPIO is requested. This fixes an issue seen when the 8250 mctrl_gpio support is added (2nd patch in this patch series) on x86 platforms using ACPI. Here Mika's comments from 2016-08-09: " I noticed that with v4.8-rc1 serial cons

[PATCH] replace timeconst bc script with an sh script

2019-06-19 Thread Ethan Sommer
removes the bc build dependency introduced when timeconst.pl was replaced by timeconst.bc Signed-off-by: Ethan Sommer --- Kbuild | 4 +- kernel/time/timeconst.bc | 117 -- kernel/time/timeconst.sh | 118 +

Re: [PATCH 3/4] powerpc/powernv: remove dead NPU DMA code

2019-06-19 Thread Christoph Hellwig
On Thu, Jun 20, 2019 at 04:20:08PM +1000, Alexey Kardashevskiy wrote: > > > On 20/06/2019 16:03, Christoph Hellwig wrote: > > Hi Linus, > > > > this goes back to the discussion at last years kernel summit, where > > we had the discussion on removing code never used by any in-kernel > > user an n

Re: linux-next: manual merge of the char-misc tree with the driver-core tree

2019-06-19 Thread Greg KH
On Thu, Jun 20, 2019 at 03:35:52PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the char-misc tree got a conflict in: > > drivers/misc/mei/debugfs.c > > between commit: > > 5666d896e838 ("mei: no need to check return value of debugfs_create > functions") > > fr

Re: [PATCH 3/4] powerpc/powernv: remove dead NPU DMA code

2019-06-19 Thread Alexey Kardashevskiy
On 20/06/2019 16:03, Christoph Hellwig wrote: > Hi Linus, > > this goes back to the discussion at last years kernel summit, where > we had the discussion on removing code never used by any in-kernel > user an no prospects of one. The IBM folks are unfortunately still > dragging their feet on t

Re: [PATCH v6 00/19] Unify vDSOs across more architectures

2019-06-19 Thread Shijith Thotton
Hi Vincenzo, On 5/30/19 7:15 AM, Vincenzo Frascino wrote: > vDSO (virtual dynamic shared object) is a mechanism that the Linux > kernel provides as an alternative to system calls to reduce where > possible the costs in terms of cycles. > This is possible because certain syscalls like gettimeofday(

Re: [alsa-devel] [PATCH v2 09/11] ASoC: Intel: hdac_hdmi: Set ops to NULL on remove

2019-06-19 Thread Pierre-Louis Bossart
Could you please give a bit more context on what error you see when this happens? Hi, I get Oops. This is what happens with all other patches in this series and only this one reverted: root@APL:~# rmmod snd_soc_sst_bxt_rt298 root@APL:~# rmmod snd_soc_hdac_hdmi root@APL:~# rmmod snd_soc_skl

RE: [PATCH 1/8] scsi: add a host / host template field for the virt boundary

2019-06-19 Thread Kashyap Desai
> -Original Message- > From: megaraidlinux@broadcom.com > [mailto:megaraidlinux@broadcom.com] On Behalf Of Ming Lei > Sent: Tuesday, June 18, 2019 6:05 AM > To: Christoph Hellwig > Cc: Martin K . Petersen ; Sagi Grimberg > ; Max Gurtovoy ; Bart Van > Assche ; linux-rdma ; > Linux S

skb_to_sgvec() casuses sg_pcopy_to_buffer() wrong

2019-06-19 Thread Hayes Wang
Use skb_to_sgvec() to set scatter list, and sometime we would get a sg->offset which is more than PAGE_SIZE. Call sg_pcopy_to_buffer() with this scatter list would get wrong data. In sg_miter_get_next_page(), you would get wrong miter->__remaining, when the sg->offset is more than PAGE_SIZE. stat

Re: [PATCH v2 2/5] nvme: rename "pci" operations to "mmio"

2019-06-19 Thread Christoph Hellwig
Please give up on this route. We will not accept messing the NVMe driver for Intels fucked up chipsets that are so bad that even they are not allowed to talk about it anymore. The Linux NVMe driver will deal with NVMe as specified plus whatever minor tweaks we'll need for small bugs. Hiding it b

linux-next: build warning after merge of the scsi tree

2019-06-19 Thread Stephen Rothwell
Hi all, After merging the scsi tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from include/linux/pci-dma-compat.h:8, from include/linux/pci.h:2408, from drivers/scsi/mvumi.c:13: drivers/scsi/mvumi.c: In function 'mvum

Re: [PATCH 3/4] powerpc/powernv: remove dead NPU DMA code

2019-06-19 Thread Christoph Hellwig
Hi Linus, this goes back to the discussion at last years kernel summit, where we had the discussion on removing code never used by any in-kernel user an no prospects of one. The IBM folks are unfortunately still dragging their feet on the powerpc side. Can we revise this discussion? The use cas

[PATCH RESEND 4/8] x86, hugetlbpage: Start fallback of top-down mmap at mm->mmap_base

2019-06-19 Thread Alexandre Ghiti
In case of mmap failure in top-down mode, there is no need to go through the whole address space again for the bottom-up fallback: the goal of this fallback is to find, as a last resort, space between the top-down mmap base and the stack, which is the only place not covered by the top-down mmap. S

[PATCH RESEND 0/8] Fix mmap base in bottom-up mmap

2019-06-19 Thread Alexandre Ghiti
This series fixes the fallback of the top-down mmap: in case of failure, a bottom-up scheme can be tried as a last resort between the top-down mmap base and the stack, hoping for a large unused stack limit. Lots of architectures and even mm code start this fallback at TASK_UNMAPPED_BASE, which is

[PATCH] USB: core: correct a spelling mistake in the comment

2019-06-19 Thread Harry Pan
Fix a spelling typo in the function comment. Signed-off-by: Harry Pan --- drivers/usb/core/hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 8d4631c81b9f..1988f8f88f75 100644 --- a/drivers/usb/core/hub.c +++ b/driver

Re: linux-next: manual merge of the jc_docs tree with the char-misc.current tree

2019-06-19 Thread Greg KH
On Thu, Jun 20, 2019 at 11:11:28AM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the jc_docs tree got a conflict in: > > Documentation/fb/fbcon.rst > > between commit: > > fce677d7e8f0 ("docs: fb: Add TER16x32 to the available font names") > > from the char-misc.

RE: [PATCH v2 2/5] net: macb: add support for sgmii MAC-PHY interface

2019-06-19 Thread Parshuram Raju Thombare
>From: Russell King - ARM Linux admin > >On Wed, Jun 19, 2019 at 11:23:01AM +, Parshuram Raju Thombare wrote: > >> >From: Russell King - ARM Linux admin > >> > > >> >On Wed, Jun 19, 2019 at 09:40:46AM +0100, Parshuram Thombare wrote: > >> > > >> >> This patch add support for SGMII interface)

[PATCH] hung_task: recover hung task warnings in next check interval

2019-06-19 Thread Yafang Shao
When sys_hung_task_warnings reaches 0, the hang task messages will not be reported any more. If the user want to get more hung task messages, he must reset kernel.hung_task_warnings to a postive integer or -1 with sysctl. This is not a good way for the user. We'd better reset hung task warnings in

Re: [RFC 0/2] Support for buttons on newer MS Surface devices

2019-06-19 Thread Andy Shevchenko
On Wed, Jun 12, 2019 at 2:06 AM Maximilian Luz wrote: > > Since there are no comments on this, should I simply submit this as patch? No top post, please. And yes, submit it as a series. Also Cc to Benjamin Tissoires. > On 6/1/19 9:07 PM, Maximilian Luz wrote: > > Hi, > > > > any comments on thi

Re: [PATCH] slub: Don't panic for memcg kmem cache creation failure

2019-06-19 Thread Michal Hocko
On Wed 19-06-19 16:25:14, Shakeel Butt wrote: > Currently for CONFIG_SLUB, if a memcg kmem cache creation is failed and > the corresponding root kmem cache has SLAB_PANIC flag, the kernel will > be crashed. This is unnecessary as the kernel can handle the creation > failures of memcg kmem caches.

linux-next: manual merge of the char-misc tree with the driver-core tree

2019-06-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the char-misc tree got a conflict in: drivers/misc/mei/debugfs.c between commit: 5666d896e838 ("mei: no need to check return value of debugfs_create functions") from the driver-core tree and commit: b728ddde769c ("mei: Convert to use DEFINE_SHOW_ATTR

[PATCH 1/1] staging: media: fix style problem

2019-06-19 Thread Aliasgar Surti
From: Aliasgar Surti checkpatch reported "WARNING: line over 80 characters". This patch fixes the warning for file davinci_vpfe/dm365_isif.c Signed-off-by: Aliasgar Surti --- drivers/staging/media/davinci_vpfe/dm365_isif.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

selftests: bpf: test_align Test 4 unknown shift Failed to find match 7 R0=pkt(id=0,off=8,r=8,imm=0)

2019-06-19 Thread Naresh Kamboju
selftests: bpf: test_align failed running Linux -next kernel 5.2.0-rc5-next-20190619. Here is the log from x86_64, # selftests bpf test_align bpf: test_align_ # # Test 0 mov ... PASS 0: mov_... # # Test 1 shift ... PASS 1: shift_... # # Test 2 addsub ... PASS 2: addsub_... # # Test 3 mul

Re: [PATCH v2] ocxl: Allow contexts to be attached with a NULL mm

2019-06-19 Thread Nicholas Piggin
Alastair D'Silva's on June 20, 2019 2:12 pm: > From: Alastair D'Silva > > If an OpenCAPI context is to be used directly by a kernel driver, there > may not be a suitable mm to use. > > The patch makes the mm parameter to ocxl_context_attach optional. > > Signed-off-by: Alastair D'Silva Yeah I

[PATCH v2 4/5] nvme: move common definitions to pci.h

2019-06-19 Thread Daniel Drake
From: Dan Williams A platform-driver for nvme resources needs access to struct nvme_dev and other definitions that are currently local to pci.c. Signed-off-by: Dan Williams Signed-off-by: Daniel Drake --- drivers/nvme/host/pci.c | 125 +--- drivers/nvme/host/pc

[PATCH v2 5/5] nvme: Intel AHCI remap support

2019-06-19 Thread Daniel Drake
Provide a platform driver for the nvme resources that may be remapped behind an ahci bar on common Intel platforms. The implementation relies on the standard nvme driver, but reimplements the nvme_dev_ops accordingly. As the original NVMe PCI device is inaccessible, this driver is somewhat limited

[PATCH v2 2/5] nvme: rename "pci" operations to "mmio"

2019-06-19 Thread Daniel Drake
From: Dan Williams In preparation for adding a platform_device nvme host, rename to a more generic "mmio" prefix. Signed-off-by: Dan Williams Signed-off-by: Daniel Drake --- drivers/nvme/host/pci.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --gi

[PATCH v2 1/5] ahci: Discover Intel remapped NVMe devices

2019-06-19 Thread Daniel Drake
Intel SATA AHCI controllers support a strange mode where NVMe devices disappear from the PCI bus, and instead are remapped into AHCI PCI memory space. Many current and upcoming consumer products ship with the AHCI controller in this "RAID" or "Intel RST Premium with Intel Optane System Acceleratio

[PATCH v2 3/5] nvme: introduce nvme_dev_ops

2019-06-19 Thread Daniel Drake
In preparation for a platform device nvme driver, move the bus specific portions of nvme to nvme_dev_ops, or otherwise rewrite routines to use a generic 'struct device' instead of 'struct pci_dev'. Based on earlier work by Dan Williams. Signed-off-by: Daniel Drake --- drivers/nvme/host/pci.c |

[PATCH v2 0/5] Support Intel AHCI remapped NVMe devices

2019-06-19 Thread Daniel Drake
Intel SATA AHCI controllers support a strange mode where NVMe devices disappear from the PCI bus, and instead are remapped into AHCI PCI memory space. Many current and upcoming consumer products ship with the AHCI controller in this "RAID" or "Intel RST Premium with Intel Optane System Acceleratio

RE: [PATCH net-next v6 2/5] net: stmmac: introducing support for DWC xPCS logics

2019-06-19 Thread Ong, Boon Leong
>>From: Jose Abreu [mailto:jose.ab...@synopsys.com] >>From: Florian Fainelli >> >>> +Russell, >>> >>> On 6/4/2019 11:58 AM, Voon Weifeng wrote: >>> > From: Ong Boon Leong >>> > >>> > xPCS is DWC Ethernet Physical Coding Sublayer that may be integrated >>> > into a GbE controller that uses DWC EQo

[PATCH RESEND 8/8] mm: Remove mmap_legacy_base and mmap_compat_legacy_code fields from mm_struct

2019-06-19 Thread Alexandre Ghiti
Now that x86 and parisc do not use those fields anymore, remove them from mm code. Signed-off-by: Alexandre Ghiti --- include/linux/mm_types.h | 2 -- mm/debug.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/mm_types.h b/include/linux/mm_typ

[PATCH RESEND 7/8] x86: Use mmap_*base, not mmap_*legacy_base, as low_limit for bottom-up mmap

2019-06-19 Thread Alexandre Ghiti
Bottom-up mmap scheme is used twice: - for legacy mode, in which mmap_legacy_base and mmap_compat_legacy_base are respectively equal to mmap_base and mmap_compat_base. - in case of mmap failure in top-down mode, where there is no need to go through the whole address space again for the bottom-up

[PATCH RESEND 6/8] parisc: Use mmap_base, not mmap_legacy_base, as low_limit for bottom-up mmap

2019-06-19 Thread Alexandre Ghiti
Bottom-up mmap scheme is used twice: - for legacy mode, in which mmap_legacy_base and mmap_base are equal. - in case of mmap failure in top-down mode, where there is no need to go through the whole address space again for the bottom-up fallback: the goal of this fallback is to find, as a last res

[PATCH RESEND 5/8] mm: Start fallback top-down mmap at mm->mmap_base

2019-06-19 Thread Alexandre Ghiti
In case of mmap failure in top-down mode, there is no need to go through the whole address space again for the bottom-up fallback: the goal of this fallback is to find, as a last resort, space between the top-down mmap base and the stack, which is the only place not covered by the top-down mmap. S

Re: [PATCH 1/1] staging: media: fix style problem

2019-06-19 Thread Nathan Chancellor
On Thu, Jun 20, 2019 at 10:32:48AM +0530, Aliasgar Surti wrote: > From: Aliasgar Surti > > checkpatch reported "WARNING: line over 80 characters". > This patch fixes the warning for file davinci_vpfe/dm365_isif.c > > Signed-off-by: Aliasgar Surti > --- > drivers/staging/media/davinci_vpfe/dm36

[PATCH RESEND 3/8] sparc: Start fallback of top-down mmap at mm->mmap_base

2019-06-19 Thread Alexandre Ghiti
In case of mmap failure in top-down mode, there is no need to go through the whole address space again for the bottom-up fallback: the goal of this fallback is to find, as a last resort, space between the top-down mmap base and the stack, which is the only place not covered by the top-down mmap. S

[PATCH] KVM: vmx: Fix the broken usage of vmx_xsaves_supported

2019-06-19 Thread Tao Xu
The helper vmx_xsaves_supported() returns the bit value of SECONDARY_EXEC_XSAVES in vmcs_config.cpu_based_2nd_exec_ctrl, which remains unchanged true if vmcs supports 1-setting of this bit after setup_vmcs_config(). It should check the guest's cpuid not this unchanged value when get/set msr. Besid

[PATCH RESEND 2/8] sh: Start fallback of top-down mmap at mm->mmap_base

2019-06-19 Thread Alexandre Ghiti
In case of mmap failure in top-down mode, there is no need to go through the whole address space again for the bottom-up fallback: the goal of this fallback is to find, as a last resort, space between the top-down mmap base and the stack, which is the only place not covered by the top-down mmap. S

[PATCH RESEND 1/8] s390: Start fallback of top-down mmap at mm->mmap_base

2019-06-19 Thread Alexandre Ghiti
In case of mmap failure in top-down mode, there is no need to go through the whole address space again for the bottom-up fallback: the goal of this fallback is to find, as a last resort, space between the top-down mmap base and the stack, which is the only place not covered by the top-down mmap. S

[PATCH 1/1] staging: media: fix style problem

2019-06-19 Thread Aliasgar Surti
From: Aliasgar Surti checkpatch reported "WARNING: line over 80 characters". This patch fixes the warning for file davinci_vpfe/dm365_isif.c Signed-off-by: Aliasgar Surti --- drivers/staging/media/davinci_vpfe/dm365_isif.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v1 1/4] mm: introduce MADV_COLD

2019-06-19 Thread Minchan Kim
On Wed, Jun 19, 2019 at 01:13:40PM -0400, Joel Fernandes wrote: < snip > Ccing Vladimir > > > > > > +static int madvise_cold_pte_range(pmd_t *pmd, unsigned long addr, > > > > > > + unsigned long end, struct mm_walk *walk) > > > > > > +{ > > > > > > + pte_t *orig_pte, *

Re: [PATCH V9] i2c: tegra: remove BUG() macro

2019-06-19 Thread Bitan Biswas
On 6/18/19 4:09 AM, Bitan Biswas wrote: The usage of BUG() macro is generally discouraged in kernel, unless it's a problem that results in a physical damage or loss of data. This patch removes unnecessary BUG() macros and replaces the rest with warning. Signed-off-by: Bitan Biswas --- driv

Re: [PATCH] media: Clarify the meaning of file descriptors in VIDIOC_DQBUF

2019-06-19 Thread Alexandre Courbot
On Wed, Jun 12, 2019 at 6:36 PM Tomasz Figa wrote: > > When the application calls VIDIOC_DQBUF with the DMABUF memory type, the > v4l2_buffer structure (or v4l2_plane structures) are filled with DMA-buf > file descriptors. However, the current documentation does not explain > whether those are new

Re: [PATCH 05/13] vfs: don't parse "silent" option

2019-06-19 Thread Ian Kent
On Wed, 2019-06-19 at 14:30 +0200, Miklos Szeredi wrote: > While this is a standard option as documented in mount(8), it is ignored by > most filesystems. So reject, unless filesystem explicitly wants to handle > it. > > The exception is unconverted filesystems, where it is unknown if the > files

Re: [PATCH][bpf] bpf: verifier: add break statement in switch

2019-06-19 Thread Alexei Starovoitov
On Wed, Jun 19, 2019 at 9:02 AM Gustavo A. R. Silva wrote: > > Notice that in this case, it's much clearer to explicitly add a break > rather than letting the code to fall through. It also avoid potential > future fall-through warnings[1]. > > This patch is part of the ongoing efforts to enable >

linux-next: Signed-off-by missing for commit in the afs tree

2019-06-19 Thread Stephen Rothwell
Hi David, Commit 0b8f4f05f41a ("afs: Add some callback tracepoints") is missing a Signed-off-by from its author and committer. -- Cheers, Stephen Rothwell pgppOKf05bf8B.pgp Description: OpenPGP digital signature

Re: adding some trees to linux-next

2019-06-19 Thread Stephen Rothwell
Hi David, On Wed, 19 Jun 2019 16:09:01 +0100 David Howells wrote: > > Could you add my keys-next and afs-next branches to linux-next? They can be > found here: > > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git#keys-next > git://git.kernel.org/pub/scm/linux/kernel/git/dhowe

Re: [PATCH v1 9/9] smaples: add vfio-mdev-pci driver

2019-06-19 Thread Alex Williamson
On Sat, 8 Jun 2019 21:21:11 +0800 Liu Yi L wrote: > This patch adds sample driver named vfio-mdev-pci. It is to wrap > a PCI device as a mediated device. For a pci device, once bound > to vfio-mdev-pci driver, user space access of this device will > go through vfio mdev framework. The usage of t

Re: [PATCH] net: fddi: skfp: remove generic PCI defines from skfbi.h

2019-06-19 Thread Puranjay Mohan
On Wed, Jun 19, 2019 at 02:10:22PM -0500, Bjorn Helgaas wrote: > On Wed, Jun 19, 2019 at 12:48 PM Puranjay Mohan wrote: > > > > skfbi.h defines its own copies of PCI_COMMAND, PCI_STATUS, etc. > > remove them in favor of the generic definitions in > > include/uapi/linux/pci_regs.h > > 1) Since you

Re: [PATCH v2 4/5] mm: introduce MADV_PAGEOUT

2019-06-19 Thread Minchan Kim
On Wed, Jun 19, 2019 at 03:24:50PM +0200, Michal Hocko wrote: > On Mon 10-06-19 20:12:51, Minchan Kim wrote: > [...] > > +static int madvise_pageout_pte_range(pmd_t *pmd, unsigned long addr, > > + unsigned long end, struct mm_walk *walk) > > Again the same question about

[PATCH v2] ocxl: Allow contexts to be attached with a NULL mm

2019-06-19 Thread Alastair D'Silva
From: Alastair D'Silva If an OpenCAPI context is to be used directly by a kernel driver, there may not be a suitable mm to use. The patch makes the mm parameter to ocxl_context_attach optional. Signed-off-by: Alastair D'Silva --- arch/powerpc/mm/book3s64/radix_tlb.c | 5 + drivers/misc/o

Re: [PATCH] ext4: remove redundant assignment to node

2019-06-19 Thread Theodore Ts'o
On Wed, Jun 19, 2019 at 10:00:06AM +0100, Colin King wrote: > From: Colin Ian King > > Pointer 'node' is assigned a value that is never read, node is > later overwritten when it re-assigned a different value inside > the while-loop. The assignment is redundant and can be removed. > > Addresses-

Re: [PATCH] ext4: make __ext4_get_inode_loc plug

2019-06-19 Thread Zhangjs Jinshui
> 在 2019年6月19日,19:08,Jan Kara 写道: > > On Mon 17-06-19 23:57:12, jinshui zhang wrote: >> From: zhangjs >> >> If the task is unplugged when called, the inode_readahead_blks may not be >> merged, >> these will cause small pieces of io, It should be plugged. >> >> Signed-off-by: zhangjs > >

June inquiry

2019-06-19 Thread Marketing Dept
Hello dear, We are in the market for your products after meeting at your stand during last expo. Please kindly send us your latest catalog and price list so as to start a new project/order as promised during the exhibition. I would appreciate your response about the above details required

Re: [PATCH v2] perf cs-etm: Improve completeness for kernel address space

2019-06-19 Thread Leo Yan
Hi all, On Thu, Jun 20, 2019 at 08:54:28AM +0800, Leo Yan wrote: [...] > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index 51dd00f65709..cf5906d667aa 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -418,6 +418,26 @@ ifdef CORESIGHT >

[PATCH v3] perf cs-etm: Improve completeness for kernel address space

2019-06-19 Thread Leo Yan
Arm and arm64 architecture reserve some memory regions prior to the symbol '_stext' and these memory regions later will be used by device module and BPF jit. The current code misses to consider these memory regions thus any address in the regions will be taken as user space mode, but perf cannot f

Re: [PATCH] ext4: make __ext4_get_inode_loc plug

2019-06-19 Thread Theodore Ts'o
On Mon, Jun 17, 2019 at 11:57:12PM +0800, jinshui zhang wrote: > From: zhangjs > > If the task is unplugged when called, the inode_readahead_blks may not be > merged, > these will cause small pieces of io, It should be plugged. > > Signed-off-by: zhangjs Thanks, applied. I cleaned up the co

linux-next: manual merge of the apparmor tree with Linus' tree

2019-06-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the apparmor tree got a conflict in: security/apparmor/include/policy.h between commit: 23375b13f98c ("apparmor: fix PROFILE_MEDIATES for untrusted input") from Linus' tree and commit: 06c13f554a71 ("apparmor: re-introduce a variant of PROFILE_MEDIATE

Re: [PATCH v2 0/2] arm64: dts: g12a/g12b: add the Ethernet PHY GPIO IRQs

2019-06-19 Thread Kevin Hilman
Martin Blumenstingl writes: > Avoid polling of the PHY status by passing the Ethernet PHY's GPIO > interrupt line to the PHY node. > > I tested this successfully on my X96 Max, but I don't have an Odroid-N2 > to test it there. The reset and interrupt GPIO part of the schematics > seems to be iden

RE: [RFC net-next 1/5] net: stmmac: introduce IEEE 802.1Qbv configuration functionalities

2019-06-19 Thread Ong, Boon Leong
>-Original Message- >From: Gomes, Vinicius >> +++ b/drivers/net/ethernet/stmicro/stmmac/dw_tsn_lib.c >> @@ -0,0 +1,790 @@ >> + >> +static struct tsn_hw_cap dw_tsn_hwcap; >> +static bool dw_tsn_feat_en[TSN_FEAT_ID_MAX]; >> +static unsigned int dw_tsn_hwtunable[TSN_HWTUNA_MAX]; >> +static str

RE: [EXT] Re: [v1 1/4] dt-bindings: display: Add DT bindings for LS1028A HDP-TX PHY.

2019-06-19 Thread Wen He
> -Original Message- > From: Rob Herring > Sent: 2019年6月19日 22:07 > To: Wen He > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; shawn...@kernel.org; Leo Li > > Subject: Re: [EXT] Re: [v1 1/4] dt-bindings: display: Add DT bindings f

Re: [PATCH v3 0/4] Ethernet PHY reset GPIO updates for Amlogic SoCs

2019-06-19 Thread Kevin Hilman
Martin Blumenstingl writes: > While trying to add the Ethernet PHY interrupt on the X96 Max I found > that the current reset line definition is incorrect. Patch #1 fixes > this. > > Since the fix requires moving from the deprecated "snps,reset-gpio" > property to the generic Ethernet PHY reset bi

mmotm 2019-06-19-20-32 uploaded

2019-06-19 Thread akpm
The mm-of-the-moment snapshot 2019-06-19-20-32 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

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

2019-06-19 Thread Doug Ledford
On Thu, 2019-06-20 at 12:10 +1000, Stephen Rothwell wrote: > 2d3c72ed5041 ("rdma: Remove nes") Yeah, not much you can do about tree wide patchsets conflicting with a removal ;-) -- Doug Ledford GPG KeyID: B826A3330E572FDD Fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FD

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

2019-06-19 Thread Doug Ledford
On Thu, 2019-06-20 at 12:06 +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the rdma tree got a conflict in: > > include/rdma/ib_verbs.h > > between commit: > > dc1435c00fcd ("RDMA/srp: Rename SRP sysfs name after IB device > rename trigger") > > from Linus' tree a

RE: [RFC net-next 1/5] net: stmmac: introduce IEEE 802.1Qbv configuration functionalities

2019-06-19 Thread Ong, Boon Leong
>> > It looks like most o the TSN_WARN should actually be netdev_dbg(). >> > >> >Andrew >> >> Hi Andrew, >> This file is targeted for dual licensing which is GPL-2.0 OR BSD-3-Clause. >> This is the reason why we are using wrappers around the functions so that >> all the function call is generic

[PATCH] samples: make pidfd-metadata fail gracefully on older kernels

2019-06-19 Thread Dmitry V. Levin
Initialize pidfd to an invalid descriptor, to fail gracefully on those kernels that do not implement CLONE_PIDFD and leave pidfd unchanged. Signed-off-by: Dmitry V. Levin --- samples/pidfd/pidfd-metadata.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/samples/pidfd/

[PATCH V2 4/5] cpufreq: Reuse cpufreq_update_current_freq() in __cpufreq_get()

2019-06-19 Thread Viresh Kumar
Their implementations are quite similar, lets modify cpufreq_update_current_freq() a little and use it from __cpufreq_get(). Also rename cpufreq_update_current_freq() to cpufreq_verify_current_freq(), as that's what it is doing. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 70 +++

[PATCH V2 5/5] cpufreq: Avoid calling cpufreq_verify_current_freq() from handle_update()

2019-06-19 Thread Viresh Kumar
On some occasions cpufreq_verify_current_freq() schedules a work whose callback is handle_update(), which further calls cpufreq_update_policy() which may end up calling cpufreq_verify_current_freq() again. On the other hand, when cpufreq_update_policy() is called from handle_update(), the pointer

[PATCH V2 3/5] cpufreq: Use has_target() instead of !setpolicy

2019-06-19 Thread Viresh Kumar
For code consistency, use has_target() instead of !setpolicy everywhere, as it is already done at several places. Maybe we should also use "!has_target()" instead of "cpufreq_driver->setpolicy" where we need to check if the driver supports setpolicy, so to use only one expression for this kind of d

[PATCH V2 2/5] cpufreq: Replace few CPUFREQ_CONST_LOOPS checks with has_target()

2019-06-19 Thread Viresh Kumar
CPUFREQ_CONST_LOOPS was introduced in a very old commit from pre-2.6 kernel release commit 6a4a93f9c0d5 ("[CPUFREQ] Fix 'out of sync' issue"). Probably the initial idea was to just avoid these checks for set_policy type drivers and then things got changed over the years. And it is very unclear why

[PATCH V2 0/5] cpufreq: cleanups

2019-06-19 Thread Viresh Kumar
Hi Rafael, I accumulated these while reworking the freq-constraint series and it would be nice if these can get in before I send the next version of freq-constraint stuff. These are mostly cleanups and code consolidation for better management of code. Compile and boot tested only. Thanks. V1->V

[PATCH V2 1/5] cpufreq: Remove the redundant !setpolicy check

2019-06-19 Thread Viresh Kumar
cpufreq_start_governor() is only called for !setpolicy case, checking it again is not required. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 85ff958e01f1..

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

2019-06-19 Thread Stephen Rothwell
Hi all, On Mon, 17 Jun 2019 12:19:59 +1000 Stephen Rothwell wrote: > > Hi Leon, > > Today's linux-next merge of the mlx5-next tree got a conflict in: > > include/linux/mlx5/eswitch.h > > between commit: > > 02f3afd97556 ("net/mlx5: E-Switch, Correct type to u16 for vport_num and > int f

Re: [PATCH v2] MAINTAINERS: add CLANG/LLVM BUILD SUPPORT info

2019-06-19 Thread Nathan Chancellor
On Wed, Jun 19, 2019 at 05:19:07PM -0700, 'Nick Desaulniers' via Clang Built Linux wrote: > Add keyword support so that our mailing list gets cc'ed for clang/llvm > patches. We're pretty active on our mailing list so far as code review. > There are numerous Googlers like myself that are paid to su

[PATCH v6 10/14] soc: mediatek: Add multiple step bus protection control

2019-06-19 Thread Weiyi Lu
Both MT8183 & MT6765 have more control steps of bus protection than previous project. And there add more bus protection registers reside at infracfg & smi-common. Also add new APIs for multiple step bus protection control with more customized arguments. Signed-off-by: Weiyi Lu --- drivers/soc/me

[PATCH v6 08/14] soc: mediatek: Refactor bus protection control

2019-06-19 Thread Weiyi Lu
Put bus protection enable and disable control in separate functions. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 44 ++- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediat

  1   2   3   4   5   6   7   8   9   >