[PATCH v5 21/25] unicore32: add asm/syscall.h

2018-12-09 Thread Dmitry V. Levin
syscall_get_* functions are required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. This introduces asm/syscall.h on unicore32 implementing all 5 syscall_get_* functions as documented in asm-generic/syscall.h: syscall_get_nr,

[PATCH v5 25/25] selftests/ptrace: add a test case for PTRACE_GET_SYSCALL_INFO

2018-12-09 Thread Dmitry V. Levin
Check whether PTRACE_GET_SYSCALL_INFO semantics implemented in the kernel matches userspace expectations. Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Shuah Khan Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-kselft...@vger.kernel.org Signed-off-by: Dmitry V. Levin ---

Re: [RFC PATCH v1 0/7] Block/XFS: Support alternative mirror device retry

2018-12-09 Thread Darrick J. Wong
On Sat, Dec 08, 2018 at 10:49:44PM +0800, Bob Liu wrote: > On 11/28/18 3:45 PM, Christoph Hellwig wrote: > > On Wed, Nov 28, 2018 at 04:33:03PM +1100, Dave Chinner wrote: > >>- how does propagation through stacked layers work? > > > > The only way it works is by each layering driving it.

[PATCH v5 17/25] riscv: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request.

[PATCH v5 18/25] Move EM_XTENSA to uapi/linux/elf-em.h

2018-12-09 Thread Dmitry V. Levin
This should never have been defined in the arch tree to begin with, and now uapi/linux/audit.h header is going to use EM_XTENSA in order to define AUDIT_ARCH_XTENSA which is needed to implement syscall_get_arch() which in turn is required to extend the generic ptrace API with

[PATCH v5 16/25] powerpc: define syscall_get_error()

2018-12-09 Thread Dmitry V. Levin
syscall_get_error() is required to be implemented on this architecture in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_return_value(), and syscall_get_arch() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Cc:

[PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-09 Thread Dmitry V. Levin
syscall_get_* functions are required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. This introduces asm/syscall.h on m68k implementing all 5 syscall_get_* functions as documented in asm-generic/syscall.h: syscall_get_nr,

[PATCH v5 11/25] nds32: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Cc:

[PATCH v5 10/25] Move EM_NDS32 to uapi/linux/elf-em.h

2018-12-09 Thread Dmitry V. Levin
This should never have been defined in the arch tree to begin with, and now uapi/linux/audit.h header is going to use EM_NDS32 in order to define AUDIT_ARCH_NDS32 which is needed to implement syscall_get_arch() which in turn is required to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO

[PATCH v5 14/25] mips: define syscall_get_error()

2018-12-09 Thread Dmitry V. Levin
syscall_get_error() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_return_value(), and syscall_get_arch() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Cc:

[PATCH v5 15/25] parisc: define syscall_get_error()

2018-12-09 Thread Dmitry V. Levin
syscall_get_error() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_return_value(), and syscall_get_arch() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Cc:

[PATCH v5 12/25] nios2: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Cc: Ley

[PATCH v5 08/25] Move EM_HEXAGON to uapi/linux/elf-em.h

2018-12-09 Thread Dmitry V. Levin
This should never have been defined in the arch tree to begin with, and now uapi/linux/audit.h header is going to use EM_HEXAGON in order to define AUDIT_ARCH_HEXAGON which is needed to implement syscall_get_arch() which in turn is required to extend the generic ptrace API with

[PATCH v5 09/25] hexagon: define remaining syscall_get_* functions

2018-12-09 Thread Dmitry V. Levin
syscall_get_* functions are required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. This adds remaining 3 syscall_get_* functions as documented in asm-generic/syscall.h: syscall_get_error, syscall_get_return_value, and

[PATCH v5 07/25] h8300: define remaining syscall_get_* functions

2018-12-09 Thread Dmitry V. Levin
syscall_get_* functions are required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. This adds remaining 3 syscall_get_* functions as documented in asm-generic/syscall.h: syscall_get_error, syscall_get_return_value, and

[PATCH v5 05/25] elf-em.h: add EM_CSKY

2018-12-09 Thread Dmitry V. Levin
The uapi/linux/audit.h header is going to use EM_CSKY in order to define AUDIT_ARCH_CSKY which is needed to implement syscall_get_arch() which in turn is required to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. The value for EM_CSKY has been taken from

[PATCH v5 02/25] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h

2018-12-09 Thread Dmitry V. Levin
These should never have been defined in the arch tree to begin with, and now uapi/linux/audit.h header is going to use EM_ARCOMPACT and EM_ARCV2 in order to define AUDIT_ARCH_ARCOMPACT and AUDIT_ARCH_ARCV2 which are needed to implement syscall_get_arch() which in turn is required to extend the

[PATCH v5 06/25] csky: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Cc: Guo Ren Cc: Paul Moore Cc: Eric Paris Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc:

[PATCH v5 04/25] c6x: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Cc:

[PATCH v5 03/25] arc: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in addition to already implemented syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and syscall_get_return_value() functions in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request.

[PATCH v5 01/25] alpha: define remaining syscall_get_* functions

2018-12-09 Thread Dmitry V. Levin
syscall_get_* functions are required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. This adds remaining 4 syscall_get_* functions as documented in asm-generic/syscall.h: syscall_get_nr, syscall_get_arguments,

[PATCH] iio: chemical: fix semicolon.cocci warnings

2018-12-09 Thread kbuild test robot
build test robot --- url: https://github.com/0day-ci/linux/commits/Tomasz-Duszynski/add-support-for-Sensirion-SPS30-PM-sensor/20181209-204432 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg sps30.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/d

Re: [PATCH v2 2/3] iio: chemical: add support for Sensirion SPS30 sensor

2018-12-09 Thread kbuild test robot
/linux/commits/Tomasz-Duszynski/add-support-for-Sensirion-SPS30-PM-sensor/20181209-204432 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg coccinelle warnings: (new ones prefixed by >>) >> drivers/iio/chemical/sps30.c:115:2-3: Unneeded semicolon P

Re: [PATCH 1/2 v8] resource: add the new I/O resource descriptor 'IORES_DESC_RESERVED'

2018-12-09 Thread lijiang
在 2018年12月07日 04:11, Borislav Petkov 写道: > On Fri, Nov 30, 2018 at 03:04:44PM +0800, lijiang wrote: >> I have noticed the changes on x86, but for IA64, i'm not sure whether it >> should do the same >> thing, so keep it as before. >> >> If IA64 people would like to give any comment, that will be

RE: [PATCH v5 0/7] spi: add support for octal mode

2018-12-09 Thread Yogesh Narayan Gaur
Hi Mark, Patch has been resend [1], this patch is depends on the series of patch[2] and this series has been applied by Boris already. [1] https://patchwork.ozlabs.org/patch/1010253/ [2] https://patchwork.ozlabs.org/project/linux-mtd/list/?series=70384=* -- Regards Yogesh Gaur > -Original

[RESEND PATCH v5 5/7] mtd: m25p80: add support of octal mode I/O transfer

2018-12-09 Thread Yogesh Narayan Gaur
Add support for octal mode I/O data transfer based on the controller (spi) mode. Assign hw-capability mask bits for octal transfer. Signed-off-by: Yogesh Gaur --- Changes for v5: - Modified string 'octo' with 'octal'. Changes for v4: - None Changes for v3: - Modified string 'octal' with 'octo'.

Re: [PATCH v3 09/12] powerpc: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2018-12-09 Thread Madhavan Srinivasan
On 06/12/18 10:17 PM, Andrew Murray wrote: For PowerPC PMUs that do not support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check

Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline

2018-12-09 Thread Pingfan Liu
On Fri, Dec 7, 2018 at 11:56 PM Michal Hocko wrote: > > On Fri 07-12-18 22:27:13, Pingfan Liu wrote: > [...] > > diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c > > index 1308f54..4dc497d 100644 > > --- a/arch/x86/mm/numa.c > > +++ b/arch/x86/mm/numa.c > > @@ -754,18 +754,23 @@ void __init

Re: linux-next: manual merge of the device-mapper tree with the block tree

2018-12-09 Thread Jens Axboe
On 12/9/18 8:43 PM, Stephen Rothwell wrote: > Hi all, > > It appears that there are a series of shared patches between the block > and device-mapper trees that are not the same commits. I assume that the > block tree has been rebased, while the device mapper tree that was based > (or includes)

Re: [PATCH v2 0/7] add UniPhier DVB Frontend system support

2018-12-09 Thread Katsuhiro Suzuki
Hello Mauro, Thank you for reviewing. Actually, I leaved Socionext at October this year. I tried to find next person that maintain these patches before leaving Socionext but I could not find. And unfortunately, I cannot test and refine these DVB patches because Socionext evaluation boards that

Re: [PATCH v3 09/12] powerpc: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2018-12-09 Thread Michael Ellerman
Andrew Murray writes: > For PowerPC PMUs that do not support context exclusion let's > advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that > perf will prevent us from handling events where any exclusion flags > are set. Let's also remove the now unnecessary check for exclusion >

linux-next: manual merge of the device-mapper tree with the block tree

2018-12-09 Thread Stephen Rothwell
Hi all, It appears that there are a series of shared patches between the block and device-mapper trees that are not the same commits. I assume that the block tree has been rebased, while the device mapper tree that was based (or includes) part of the block tree has not bee rebased (yet). --

答复: [PATCH] Fix mm->owner point to a task that does not exists(Internet mail)

2018-12-09 Thread 陈国民
>> From: guominchen >> >> Under normal circumstances,When do_exit exits, mm->owner will >> be updated, but when the kernel process calls unuse_mm and exits, >> mm->owner cannot be updated. And will point to a task that has >> been released. >> >> Below is my issue on vhost_net: >>

Re: [PATCH] HID: intel-ish-hid: fixes incorrect error handling

2018-12-09 Thread Srinivas Pandruvada
On Sun, 2018-12-09 at 21:45 +0100, Jiri Kosina wrote: > On Fri, 7 Dec 2018, Benjamin Tissoires wrote: > > > > The memory chunk allocated by hid_allocate_device() should be > > > released > > > by hid_destroy_device(), not kfree(). > > > > > > Fixes: 0b28cb4bcb1("HID: intel-ish-hid: ISH HID

Re: [PATCH 2/2 v2] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2018-12-09 Thread lijiang
在 2018年12月05日 18:24, Dave Young 写道: > On 12/02/18 at 11:08am, Lianbo Jiang wrote: >> For AMD machine with SME feature, makedumpfile tools need to know >> whether the crash kernel was encrypted or not. If SME is enabled >> in the first kernel, the crash kernel's page table(pgd/pud/pmd/pte) >>

[PATCH 1/1] net-next/hinic:optmize rx refill buffer mechanism

2018-12-09 Thread Xue Chaojing
There is no need to schedule a different tasklet for refill, This patch remove it. Suggested-by: Neil Horman Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_rx.c | 23 +--- drivers/net/ethernet/huawei/hinic/hinic_rx.h | 2 -- 2 files changed, 5

linux-next: manual merge of the drm-msm tree with the drm tree

2018-12-09 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-msm tree got a conflict in: drivers/gpu/drm/msm/adreno/a5xx_gpu.c between commit: c97ea6a61b5e ("drm: msm: adreno: Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) +PTR_ERR") from the drm tree and commits: dadb36b7ec42 ("drm/msm: Add a common

[PATCH V13 0/3] blk-mq: refactor code of issue directly

2018-12-09 Thread Jianchao Wang
Hi Jens Please consider this patchset for 4.21. It refactors the code of issue request directly to unify the interface and make the code clearer and more readable. The 1st patch refactors the code of issue request directly to unify the helper interface which could handle all the cases. The 2nd

[PATCH V13 2/3] blk-mq: issue directly with bypass 'false' in blk_mq_sched_insert_requests

2018-12-09 Thread Jianchao Wang
It is not necessary to issue request directly with bypass 'true' in blk_mq_sched_insert_requests and handle the non-issued requests itself. Just set bypass to 'false' and let blk_mq_try_issue_directly handle them totally. Remove the blk_rq_can_direct_dispatch check, because

[PATCH V13 1/3] blk-mq: refactor the code of issue request directly

2018-12-09 Thread Jianchao Wang
Merge blk_mq_try_issue_directly and __blk_mq_try_issue_directly into one interface to unify the interfaces to issue requests directly. The merged interface takes over the requests totally, it could insert, end or do nothing based on the return value of .queue_rq and 'bypass' parameter. Then caller

[PATCH V13 3/3] blk-mq: replace and kill blk_mq_request_issue_directly

2018-12-09 Thread Jianchao Wang
Replace blk_mq_request_issue_directly with blk_mq_try_issue_directly in blk_insert_cloned_request and kill it as nobody uses it any more. Signed-off-by: Jianchao Wang --- block/blk-core.c | 4 +++- block/blk-mq.c | 9 + block/blk-mq.h | 6 -- 3 files changed, 8 insertions(+), 11

[PATCH v4 2/2] arm: dts: mt2701: add uart APDMA to device tree

2018-12-09 Thread Long Cheng
1. add uart APDMA controller device node 2. add uart 0/1/2/3/4/5 DMA function Signed-off-by: Long Cheng --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 50 + 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi

[PATCH v4 1/2] dmaengine: 8250_mtk_dma: add Mediatek uart DMA support

2018-12-09 Thread Long Cheng
In DMA engine framework, add 8250 mtk dma to support it. Signed-off-by: Long Cheng --- drivers/dma/mediatek/8250_mtk_dma.c | 830 +++ drivers/dma/mediatek/Kconfig| 11 + drivers/dma/mediatek/Makefile |1 + 3 files changed, 842 insertions(+)

[PATCH v4 0/2] add uart DMA function

2018-12-09 Thread Long Cheng
In Mediatek SOCs, the uart can support DMA function. Base on DMA engine formwork, we add the DMA code to support uart. And put the code under drivers/dma. This series contains document bindings, Kconfig to control the function enable or not, device tree including interrupt and dma device node,

RE: [PATCH -next] drm/amdgpu: remove set but not used variable 'grbm_soft_reset'

2018-12-09 Thread Zhou, David(ChunMing)
> -Original Message- > From: YueHaibing > Sent: Saturday, December 08, 2018 11:01 PM > To: Deucher, Alexander ; Koenig, Christian > ; Zhou, David(ChunMing) > ; airl...@linux.ie; Liu, Leo ; > Gao, Likun ; Panariti, David > ; S, Shirish ; Zhu, Rex > ; Grodzovsky, Andrey > Cc: YueHaibing

[PATCH 1/5] switchtec: Remove immediate status check after submit a MRPC command

2018-12-09 Thread Wesley Sheng
From: Kelvin Cao After submitting a Firmware Download MRPC command, Switchtec firmware will delay Management EP BAR MemRd TLP responses by more than 10ms. This is a firmware limitation. Delayed MemRd completions are problem for systems with a low Completion Timeout (CTO). The current driver

[PATCH V12 2/3] blk-mq: issue directly with bypass 'false' in blk_mq_sched_insert_requests

2018-12-09 Thread Jianchao Wang
It is not necessary to issue request directly with bypass 'true' in blk_mq_sched_insert_requests and handle the non-issued requests itself. Just set bypass to 'false' and let blk_mq_try_issue_directly handle them totally. Remove the blk_rq_can_direct_dispatch check, because

[PATCH V12 3/3] blk-mq: replace and kill blk_mq_request_issue_directly

2018-12-09 Thread Jianchao Wang
Replace blk_mq_request_issue_directly with blk_mq_try_issue_directly in blk_insert_cloned_request and kill it as nobody uses it any more. Signed-off-by: Jianchao Wang --- block/blk-core.c | 4 +++- block/blk-mq.c | 9 + block/blk-mq.h | 6 -- 3 files changed, 8 insertions(+), 11

[PATCH V12 0/3] blk-mq: refactor code of issue directly

2018-12-09 Thread Jianchao Wang
Hi Jens Please consider this patchset for 4.21. It refactors the code of issue request directly to unify the interface and make the code clearer and more readable. The 1st patch refactors the code of issue request directly to unify the helper interface which could handle all the cases. The 2nd

[PATCH V12 1/3] blk-mq: refactor the code of issue request directly

2018-12-09 Thread Jianchao Wang
Merge blk_mq_try_issue_directly and __blk_mq_try_issue_directly into one interface to unify the interfaces to issue requests directly. The merged interface takes over the requests totally, it could insert, end or do nothing based on the return value of .queue_rq and 'bypass' parameter. Then caller

[PATCH 2/5] switchtec: Set DMA coherent mask in Switchtec driver

2018-12-09 Thread Wesley Sheng
From: Boris Glimcher Switchtec hardware supports 64-bit DMA, set the correct DMA mask. This allows the CMA to allocate larger buffers for memory windows. Signed-off-by: Boris Glimcher Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/pci/switch/switchtec.c | 4 1

[PATCH 4/5] switchtec: Improve MRPC efficiency by leveraging write combining

2018-12-09 Thread Wesley Sheng
From: Kelvin Cao MRPC Input buffer is mostly memory without any side effects, thus we can improve the access time by enabling write combining on only this region of the BAR. In a few places, we still need to flush the WC buffer. To do this, we simply read from the Outbound Doorbell register

[PATCH 0/5] Switchtec MRPC DMA mode support

2018-12-09 Thread Wesley Sheng
Hi, Everyone, This patch series adds support for the Switchtec MRPC DMA mode. Switchtec switches supports 2 MRPC interaction modes: MRPC normal mode and MRPC DMA mode, a new feature in the latest firmware versions. MRPC normal mode requires the host to read the MRPC command status and output

[PATCH 5/5] switchtec: MRPC DMA mode implementation

2018-12-09 Thread Wesley Sheng
MRPC normal mode requires the host to read the MRPC command status and output data from BAR. This results in high latency responses from the Memory Read TLP and potential Completion Timeout (CTO). MRPC DMA mode implementation includes: Macro definitions for registers and data structures

[PATCH 3/5] switchtec: A temporary variable should be used for the flags of switchtec_ioctl_event_ctl

2018-12-09 Thread Wesley Sheng
From: Joey Zhang For nr_idxs is larger than 1 switchtec_ioctl_event_ctl event flags will be used by each event indexes. In current implementation the event flags are overwritten by first call of the function event_ctl(). Preserve the event flag value with a temporary variable. Fixes:

[PATCH] debug: Allow forcing entering debug mode on panic/exception

2018-12-09 Thread Douglas Anderson
Ever since commit 5516fd7b92a7 ("debug: prevent entering debug mode on panic/exception.") (yes, years ago) my kgdb workflow has been broken. On Chrome OS we have 'kernel.panic = -1' in '/etc/sysctl.d/00-sysctl.conf'. That means that when userspace starts up it will tell the kernel "please reboot

Re: [RFC PATCH v2 08/15] usb:cdns3: Implements device operations part of the API

2018-12-09 Thread Peter Chen
> > +static struct cdns3_endpoint *cdns3_find_available_ss_ep(struct > > cdns3_device *priv_dev, > > + struct > > usb_endpoint_descriptor *desc) > > why is this function called ss_ep? This doesn't seem like only for superspeed > endpoints. >

Re: linux-next: Signed-off-by missing for commits in the net-next tree

2018-12-09 Thread Stephen Rothwell
Hi Dave, On Sun, 09 Dec 2018 16:54:43 -0800 (PST) David Miller wrote: > > From: Stephen Rothwell > Date: Mon, 10 Dec 2018 11:48:48 +1100 > > > That is fine as a last resort, but it is probably less disruptive to > > find these things before you try to push i.e. as part of the "apply the > >

[PATCH v6 08/12] iommu/vt-d: Pass pasid table to context mapping

2018-12-09 Thread Lu Baolu
So that the pasid related info, such as the pasid table and the maximum of pasid could be used during setting up scalable mode context. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Cc: Liu Yi L Cc: Sanjay Kumar Signed-off-by: Lu Baolu Reviewed-by: Ashok Raj Reviewed-by: Kevin Tian ---

[PATCH v6 03/12] iommu/vt-d: Move page table helpers into header

2018-12-09 Thread Lu Baolu
So that they could also be used in other source files. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Cc: Liu Yi L Cc: Sanjay Kumar Signed-off-by: Lu Baolu Reviewed-by: Ashok Raj Reviewed-by: Kevin Tian --- drivers/iommu/intel-iommu.c | 43 -

[PATCH v6 05/12] iommu/vt-d: Reserve a domain id for FL and PT modes

2018-12-09 Thread Lu Baolu
Vt-d spec rev3.0 (section 6.2.3.1) requires that each pasid entry for first-level or pass-through translation should be programmed with a domain id different from those used for second-level or nested translation. It is recommended that software could use a same domain id for all first-only and

[PATCH v6 10/12] iommu/vt-d: Add first level page table interface

2018-12-09 Thread Lu Baolu
This adds an interface to setup the PASID entries for first level page table translation. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Signed-off-by: Sanjay Kumar Signed-off-by: Liu Yi L Signed-off-by: Lu Baolu Reviewed-by: Ashok Raj --- drivers/iommu/intel-pasid.c | 80

[PATCH v6 11/12] iommu/vt-d: Shared virtual address in scalable mode

2018-12-09 Thread Lu Baolu
This patch enables the current SVA (Shared Virtual Address) implementation to work in the scalable mode. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Signed-off-by: Sanjay Kumar Signed-off-by: Liu Yi L Signed-off-by: Lu Baolu Reviewed-by: Ashok Raj --- drivers/iommu/intel-iommu.c | 38

[PATCH v6 12/12] iommu/vt-d: Remove deferred invalidation

2018-12-09 Thread Lu Baolu
Deferred invalidation is an ECS specific feature. It will not be supported when IOMMU works in scalable mode. As we deprecated the ECS support, remove deferred invalidation and cleanup the code. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Cc: Liu Yi L Cc: Sanjay Kumar Signed-off-by: Lu Baolu

[PATCH v6 06/12] iommu/vt-d: Add second level page table interface

2018-12-09 Thread Lu Baolu
This adds the interfaces to setup or tear down the structures for second level page table translations. This includes types of second level only translation and pass through. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Signed-off-by: Sanjay Kumar Signed-off-by: Liu Yi L Signed-off-by: Lu

[PATCH v6 09/12] iommu/vt-d: Setup context and enable RID2PASID support

2018-12-09 Thread Lu Baolu
This patch enables the translation for requests without PASID in the scalable mode by setting up the root and context entries. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Signed-off-by: Sanjay Kumar Signed-off-by: Liu Yi L Signed-off-by: Lu Baolu Reviewed-by: Ashok Raj ---

[PATCH v6 07/12] iommu/vt-d: Setup pasid entry for RID2PASID support

2018-12-09 Thread Lu Baolu
when the scalable mode is enabled, there is no second level page translation pointer in the context entry any more (for DMA request without PASID). Instead, a new RID2PASID field is introduced in the context entry. Software can choose any PASID value to set RID2PASID and then setup the translation

[PATCH v6 01/12] iommu/vt-d: Enumerate the scalable mode capability

2018-12-09 Thread Lu Baolu
The Intel vt-d spec rev3.0 introduces a new translation mode called scalable mode, which enables PASID-granular translations for first level, second level, nested and pass-through modes. At the same time, the previous Extended Context (ECS) mode is deprecated (no production ever implements ECS).

[PATCH v6 00/12] iommu/vt-d: Add scalable mode support

2018-12-09 Thread Lu Baolu
Hi, Intel vt-d rev3.0 [1] introduces a new translation mode called 'scalable mode', which enables PASID-granular translations for first level, second level, nested and pass-through modes. The vt-d scalable mode is the key ingredient to enable Scalable I/O Virtualization (Scalable IOV) [2] [3],

[PATCH v6 02/12] iommu/vt-d: Manage scalalble mode PASID tables

2018-12-09 Thread Lu Baolu
In scalable mode, pasid structure is a two level table with a pasid directory table and a pasid table. Any pasid entry can be identified by a pasid value in below way. 1 9 6 5 0 .---.---. | PASID| |

[PATCH v6 04/12] iommu/vt-d: Add 256-bit invalidation descriptor support

2018-12-09 Thread Lu Baolu
Intel vt-d spec rev3.0 requires software to use 256-bit descriptors in invalidation queue. As the spec reads in section 6.5.2: Remapping hardware supporting Scalable Mode Translations (ECAP_REG.SMTS=1) allow software to additionally program the width of the descriptors (128-bits or 256-bits) that

linux-next: manual merge of the net-next tree with the net tree

2018-12-09 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/sched/cls_flower.c between commit: 35cc3cefc4de ("net/sched: cls_flower: Reject duplicated rules also under skip_sw") from the net tree and commit: 5c72299fba9d ("net: sched: cls_flower: Classify packets

Re: [PATCH] Fix mm->owner point to a task that does not exists

2018-12-09 Thread Michael S. Tsirkin
On Sun, Dec 09, 2018 at 03:21:17PM +0800, gchen.guo...@gmail.com wrote: > From: guominchen > > Under normal circumstances,When do_exit exits, mm->owner will > be updated, but when the kernel process calls unuse_mm and exits, > mm->owner cannot be updated. And will point to a task that has

linux-next: manual merge of the net-next tree with the net tree

2018-12-09 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/dsa/master.c between commit: a3d7e01da060 ("net: dsa: Fix tagging attribute location") from the net tree and commits: a60956ed72f7 ("net: dsa: Make dsa_master_set_mtu() static") from the net-next tree. I

Re: [PATCH V11 0/4] blk-mq: refactor code of issue directly

2018-12-09 Thread Jens Axboe
On 12/9/18 6:18 PM, jianchao.wang wrote: > > > On 12/7/18 11:47 AM, Jens Axboe wrote: >> On 12/6/18 8:46 PM, jianchao.wang wrote: >>> >>> >>> On 12/7/18 11:42 AM, Jens Axboe wrote: On 12/6/18 8:41 PM, jianchao.wang wrote: > > > On 12/7/18 11:34 AM, Jens Axboe wrote: >> On

[GIT PULL] ARM: SoC fixes

2018-12-09 Thread Olof Johansson
Hi Linus, The following changes since commit 2595646791c319cadfdbf271563aac97d0843dc7: Linux 4.20-rc5 (2018-12-02 15:07:55 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git tags/armsoc-fixes for you to fetch changes up to

Re: [PATCH V11 0/4] blk-mq: refactor code of issue directly

2018-12-09 Thread jianchao.wang
On 12/7/18 11:47 AM, Jens Axboe wrote: > On 12/6/18 8:46 PM, jianchao.wang wrote: >> >> >> On 12/7/18 11:42 AM, Jens Axboe wrote: >>> On 12/6/18 8:41 PM, jianchao.wang wrote: On 12/7/18 11:34 AM, Jens Axboe wrote: > On 12/6/18 8:32 PM, Jens Axboe wrote: >> On 12/6/18 8:26

[PATCH v6 2/3] iommu/io-pgtable-arm-v7s: Request DMA32 memory, and improve debugging

2018-12-09 Thread Nicolas Boichat
IOMMUs using ARMv7 short-descriptor format require page tables (level 1 and 2) to be allocated within the first 4GB of RAM, even on 64-bit systems. For level 1/2 pages, ensure GFP_DMA32 is used if CONFIG_ZONE_DMA32 is defined (e.g. on arm64 platforms). For level 2 pages, allocate a slab cache in

[PATCH v6 1/3] mm: Add support for kmem caches in DMA32 zone

2018-12-09 Thread Nicolas Boichat
IOMMUs using ARMv7 short-descriptor format require page tables to be allocated within the first 4GB of RAM, even on 64-bit systems. On arm64, this is done by passing GFP_DMA32 flag to memory allocation functions. For IOMMU L2 tables that only take 1KB, it would be a waste to allocate a full page

[PATCH v6 0/3] iommu/io-pgtable-arm-v7s: Use DMA32 zone for page tables

2018-12-09 Thread Nicolas Boichat
This is a follow-up to the discussion in [1], [2]. IOMMUs using ARMv7 short-descriptor format require page tables (level 1 and 2) to be allocated within the first 4GB of RAM, even on 64-bit systems. For L1 tables that are bigger than a page, we can just use __get_free_pages with GFP_DMA32 (on

[PATCH v6 3/3] mm: Add /sys/kernel/slab/cache/cache_dma32

2018-12-09 Thread Nicolas Boichat
A previous patch in this series adds support for SLAB_CACHE_DMA32 kmem caches. This adds the corresponding /sys/kernel/slab/cache/cache_dma32 entries, and fixes slabinfo tool. Cc: sta...@vger.kernel.org Signed-off-by: Nicolas Boichat --- There were different opinions on whether this sysfs entry

Re: [PATCH v7 00/14] x86/alternative: text_poke() enhancements

2018-12-09 Thread Nadav Amit
> On Dec 6, 2018, at 2:03 AM, Peter Zijlstra wrote: > > On Tue, Dec 04, 2018 at 05:33:54PM -0800, Nadav Amit wrote: >> Which leads me to (b) - the patch-set is big "enough" IMHO. Indeed, >> there are open security issues in the kernel when it comes to W^X. But >> some people would want to use

Re: Should this_cpu_read() be volatile?

2018-12-09 Thread Nadav Amit
> On Dec 8, 2018, at 2:52 AM, Peter Zijlstra wrote: > > On Fri, Dec 07, 2018 at 04:40:52PM -0800, Nadav Amit wrote: > >>> I'm actually having difficulty finding the this_cpu_read() in any of the >>> functions you mention, so I cannot make any concrete suggestions other >>> than pointing at the

Re: [PATCH v2 2/2] clk: tegra20: Enable lock-status polling for PLLs

2018-12-09 Thread Dmitry Osipenko
В Wed, 17 Oct 2018 14:41:35 +0300 Dmitry Osipenko пишет: > On 10/17/18 1:59 PM, Marcel Ziswiler wrote: > > On Fri, 2018-08-31 at 12:29 +0300, Peter De Schrijver wrote: > >> On Thu, Aug 30, 2018 at 09:42:10PM +0300, Dmitry Osipenko wrote: > >>> Currently all PLL's on Tegra20 use a hardcoded

Re: linux-next: Signed-off-by missing for commits in the net-next tree

2018-12-09 Thread David Miller
From: Stephen Rothwell Date: Mon, 10 Dec 2018 11:48:48 +1100 > That is fine as a last resort, but it is probably less disruptive to > find these things before you try to push i.e. as part of the "apply the > patch" otherwise you could end up having to rebase a whole lot of later > commits. I

[PATCH v2 1/1] virtio: remove deprecated VIRTIO_PCI_CONFIG()

2018-12-09 Thread Dongli Zhang
VIRTIO_PCI_CONFIG() is deprecated. Use VIRTIO_PCI_CONFIG_OFF() instead. Signed-off-by: Dongli Zhang --- Changed since v1: * leave the definition of VIRTIO_PCI_CONFIG() in header file to make userspace build happy drivers/virtio/virtio_pci_legacy.c | 6 -- 1 file changed, 4

Re: linux-next: Signed-off-by missing for commits in the net-next tree

2018-12-09 Thread Stephen Rothwell
Hi Dave, On Sun, 09 Dec 2018 16:31:52 -0800 (PST) David Miller wrote: > > From: Sabrina Dubroca > Date: Mon, 10 Dec 2018 00:27:22 +0100 > > > Maybe Stephen's script to detect those missing sign-offs could be run > > as a commit/apply hook by David? This happens regularly, sometimes > >

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

2018-12-09 Thread Changbin Du
On Thu, Dec 06, 2018 at 09:58:15AM +1100, Stephen Rothwell wrote: > Hi Guy, > > On Wed, 5 Dec 2018 12:25:57 + "Guy Levi(SW)" wrote: > > > > > > > > Huh. So apparently every compiler that tested this patch (0-day, mine, > > > the submitters) optimized this call away because

Re: [PATCH] staging: erofs: Add braces to do-while statements

2018-12-09 Thread Luc Van Oostenryck
On Sun, Dec 09, 2018 at 08:40:29PM +0100, Greg KH wrote: > On Sun, Dec 09, 2018 at 09:27:01AM -0800, Joe Perches wrote: > > On Sun, 2018-12-09 at 17:20 +0100, Greg KH wrote: > > > On Sun, Dec 09, 2018 at 04:59:00PM +0100, Thomas Jespersen wrote: > > > > This fixes warning reported by sparse (with

[PATCH v2 2/2] swiotlb: checking whether swiotlb buffer is full with io_tlb_used

2018-12-09 Thread Dongli Zhang
This patch uses io_tlb_used to help check whether swiotlb buffer is full. io_tlb_used is no longer used for only debugfs. It is also used to help optimize swiotlb_tbl_map_single(). Suggested-by: Joe Jin Signed-off-by: Dongli Zhang --- kernel/dma/swiotlb.c | 10 -- 1 file changed, 4

[PATCH 2/3] phy: make phy-mvebu-sata explicitly non-modular

2018-12-09 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/phy/Kconfig:config PHY_MVEBU_SATA drivers/phy/Kconfig:def_bool y ...meaning that it currently is not being built as a module by anyone. Lets remove the couple of traces of modular infrastructure, so that when reading the

[PATCH v2 1/2] swiotlb: add debugfs to track swiotlb buffer usage

2018-12-09 Thread Dongli Zhang
The device driver will not be able to do dma operations once swiotlb buffer is full, either because the driver is using so many IO TLB blocks inflight, or because there is memory leak issue in device driver. To export the swiotlb buffer usage via debugfs would help the user estimate the size of

[PATCH 3/3] phy: make phy-armada375-usb2 explicitly non-modular

2018-12-09 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/phy/marvell/Kconfig:config ARMADA375_USBCLUSTER_PHY drivers/phy/marvell/Kconfig:def_bool y ...meaning that it currently is not being built as a module by anyone. Lets remove the couple of traces of modular

[PATCH 0/3] phy: remove needless usage of module header

2018-12-09 Thread Paul Gortmaker
The most important thing to note here, is these clean-ups make no changes to the final generated run-time. The 1st commit removes an unused function, otherwise the generated objects are also unchanged. The work here represents a scan over the phy dir, looking for files that have nothing to do

[PATCH 1/3] phy: make phy-core explicitly non-modular

2018-12-09 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/phy/Kconfig:config GENERIC_PHY drivers/phy/Kconfig:bool "PHY Core" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading

Re: linux-next: Signed-off-by missing for commits in the net-next tree

2018-12-09 Thread David Miller
From: Sabrina Dubroca Date: Mon, 10 Dec 2018 00:27:22 +0100 > Maybe Stephen's script to detect those missing sign-offs could be run > as a commit/apply hook by David? This happens regularly, sometimes > dropping more than just a sign-off. Yeah, that would probably be a good idea, maybe

Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression

2018-12-09 Thread David Rientjes
On Thu, 6 Dec 2018, Linus Torvalds wrote: > > On Broadwell, the access latency to local small pages was +5.6%, remote > > hugepages +16.4%, and remote small pages +19.9%. > > > > On Naples, the access latency to local small pages was +4.9%, intrasocket > > hugepages +10.5%, intrasocket small

Re: linux-next: Signed-off-by missing for commits in the net-next tree

2018-12-09 Thread David Miller
From: Andrew Lunn Date: Sun, 9 Dec 2018 22:11:39 +0100 > On Mon, Dec 10, 2018 at 08:00:45AM +1100, Stephen Rothwell wrote: >> Hi all, >> >> Commits >> >> dc9d38cec71c ("net: phy: mdio-gpio: Add phy_ignore_ta_mask to platform >> data") >> 04fa26bab06d ("net: phy: mdio-gpio: Add

Re: linux-next: Signed-off-by missing for commits in the net-next tree

2018-12-09 Thread David Miller
From: Heiner Kallweit Date: Sun, 9 Dec 2018 22:33:10 +0100 > On 09.12.2018 22:11, Andrew Lunn wrote: >> On Mon, Dec 10, 2018 at 08:00:45AM +1100, Stephen Rothwell wrote: >>> Hi all, >>> >>> Commits >>> >>> dc9d38cec71c ("net: phy: mdio-gpio: Add phy_ignore_ta_mask to platform >>> data") >>>

Re: [GIT PULL] EFI fixes

2018-12-09 Thread pr-tracker-bot
The pull request you sent on Sun, 9 Dec 2018 22:59:21 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git efi-urgent-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4b04e73a78c5c89dc1a75fb35dea6c947c1d2ac7 Thank you! -- Deet-doot-dot, I am a

<    1   2   3   4   5   6   7   8   >