[PATCH RFCv2 8/9] kernel/sched: Add cpu_rq_is_locked()

2020-05-07 Thread Gavin Shan
This adds API cpu_rq_is_locked() to check if the CPU's runqueue has been locked or not. It's used in the subsequent patch to determine the task wakeup should be executed immediately or delayed. Signed-off-by: Gavin Shan --- include/linux/sched.h | 1 + kernel/sched/core.c | 8 2

[PATCH RFCv2 7/9] kvm/arm64: Support async page fault

2020-05-07 Thread Gavin Shan
There are two stages of fault pages and the stage one page fault is handled by guest itself. The guest is trapped to host when the page fault is caused by stage 2 page table, for example missing. The guest is suspended until the requested page is populated. To populate the requested page can be

[PATCH RFCv2 3/9] kvm/arm64: Rename kvm_vcpu_get_hsr() to kvm_vcpu_get_esr()

2020-05-07 Thread Gavin Shan
Since kvm/arm32 was removed, this renames kvm_vcpu_get_hsr() to kvm_vcpu_get_esr() to it a bit more self-explaining because the functions returns ESR instead of HSR on aarch64. This shouldn't cause any functional changes. Signed-off-by: Gavin Shan --- arch/arm64/include/asm/kvm_emulate.h | 36

[PATCH RFCv2 0/9] kvm/arm64: Support Async Page Fault

2020-05-07 Thread Gavin Shan
There are two stages of page faults and the stage one page fault is handled by guest itself. The guest is trapped to host when the page fault is caused by stage 2 page table, for example missing. The guest is suspended until the requested page is populated. There might be IO activities involved

[PATCH RFCv2 1/9] arm64: Probe for the presence of KVM hypervisor services during boot

2020-05-07 Thread Gavin Shan
From: Will Deacon Although the SMCCC specification provides some limited functionality for describing the presence of hypervisor and firmware services, this is generally applicable only to functions designated as "Arm Architecture Service Functions" and no portable discovery mechanism is

[PATCH RFCv2 5/9] kvm/arm64: Replace hsr with esr

2020-05-07 Thread Gavin Shan
This replace the variable names to make them self-explaining. The tracepoint isn't changed accordingly because they're part of ABI: * @hsr to @esr * @hsr_ec to @ec * Use kvm_vcpu_trap_get_class() helper if possible Signed-off-by: Gavin Shan --- arch/arm64/kvm/handle_exit.c | 28

[PATCH RFCv2 2/9] arm/arm64: KVM: Advertise KVM UID to guests via SMCCC

2020-05-07 Thread Gavin Shan
From: Will Deacon We can advertise ourselves to guests as KVM and provide a basic features bitmap for discoverability of future hypervisor services. Cc: Marc Zyngier Signed-off-by: Will Deacon Signed-off-by: Gavin Shan --- virt/kvm/arm/hypercalls.c | 29 +++-- 1 file

[PATCH RFCv2 6/9] kvm/arm64: Export kvm_handle_user_mem_abort() with prefault mode

2020-05-07 Thread Gavin Shan
This renames user_mem_abort() to kvm_handle_user_mem_abort(), and then export it. The function will be used in asynchronous page fault to populate a page table entry once the corresponding page is populated from the backup device (e.g. swap partition): * Parameter @fault_status is replace by

[PATCH RFCv2 4/9] kvm/arm64: Detach ESR operator from vCPU struct

2020-05-07 Thread Gavin Shan
There are a set of inline functions defined in kvm_emulate.h. Those functions reads ESR from vCPU fault information struct and then operate on it. So it's tied with vCPU fault information and vCPU struct. It limits their usage scope. This detaches these functions from the vCPU struct. With this,

Re: [RESENT PATCH RFC v3 5/5] scsi: ufs: UFS Host Performance Booster(HPB) driver

2020-05-07 Thread Bart Van Assche
On 2020-05-04 07:20, huob...@gmail.com wrote: > +config SCSI_UFSHPB > + bool "UFS Host Performance Booster (EXPERIMENTAL)" > + depends on SCSI_UFSHCD > + [ ... ] > + > +config UFSHPB_MAX_MEM_SIZE > + int "UFS HPB maximum memory size per controller (in MiB)" > + depends on

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

2020-05-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/bonding/bond_main.c between commits: ed7d4f023b1a ("bonding: Rename slave_arr to usable_slaves") c071d91d2a89 ("bonding: Add helper function to get the xmit slave based on hash") 29d5bbccb3a1

Re: [PATCH] slub: limit count of partial slabs scanned to gather statistics

2020-05-07 Thread Christopher Lameter
On Mon, 4 May 2020, Andrew Morton wrote: > But I guess it's better than nothing at all, unless there are > alternative ideas? I its highly unsusual to have such large partial lists. In a typical case allocations whould reduce the size of the lists. 1000s? That is scary. Are there inodes or

[PATCH v2] arm64: stacktrace: Factor out some common code into on_stack()

2020-05-07 Thread Yunfeng Ye
There are some common codes for stack checking, so factors it out into the function on_stack(). No functional change. Signed-off-by: Yunfeng Ye --- v1 -> v2: - check 'low' in on_stack() and everybody call on_stack() only arch/arm64/include/asm/stacktrace.h | 40

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

2020-05-07 Thread Stephen Rothwell
Hi Andrew, On Thu, 7 May 2020 19:08:08 -0700 Andrew Morton wrote: > > This? It's based on Ira's v3 series but should work. > > > From: Andrew Morton > Subject: arch-kunmap-remove-duplicate-kunmap-implementations-fix > > fix CONFIG_HIGHMEM=n build on various architectures > > Reported-by:

[PATCH V3 2/3] mm/hugetlb: Define a generic fallback for is_hugepage_only_range()

2020-05-07 Thread Anshuman Khandual
There are multiple similar definitions for is_hugepage_only_range() on various platforms. Lets just add it's generic fallback definition for platforms that do not override. This help reduce code duplication. Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Tony Luck Cc: Fenghua Yu

[PATCH V3 1/3] arm64/mm: Drop __HAVE_ARCH_HUGE_PTEP_GET

2020-05-07 Thread Anshuman Khandual
Platform specific huge_ptep_get() is required only when fetching the huge PTE involves more than just dereferencing the page table pointer. This is not the case on arm64 platform. Hence huge_ptep_pte() can be dropped along with it's __HAVE_ARCH_HUGE_PTEP_GET subscription. Before that, it updates

[PATCH V3 3/3] mm/hugetlb: Define a generic fallback for arch_clear_hugepage_flags()

2020-05-07 Thread Anshuman Khandual
There are multiple similar definitions for arch_clear_hugepage_flags() on various platforms. Lets just add it's generic fallback definition for platforms that do not override. This help reduce code duplication. Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Tony Luck Cc: Fenghua Yu

[PATCH V3 0/3] mm/hugetlb: Add some new generic fallbacks

2020-05-07 Thread Anshuman Khandual
This series adds the following new generic fallbacks. Before that it drops __HAVE_ARCH_HUGE_PTEP_GET from arm64 platform. 1. is_hugepage_only_range() 2. arch_clear_hugepage_flags() This has been boot tested on arm64 and x86 platforms but built tested on some more platforms including the changed

Re: [PATCH] mm: slub: add panic_on_error to the debug facilities

2020-05-07 Thread Christopher Lameter
On Sun, 3 May 2020, Rafael Aquini wrote: > On Sat, May 02, 2020 at 11:16:30PM +, Christopher Lameter wrote: > > On Fri, 1 May 2020, Rafael Aquini wrote: > > > > > Sometimes it is desirable to override SLUB's debug facilities > > > default behavior upon stumbling on a cache or object error > >

RE: [PATCH RFC v3 00/12] perf pmu-events: Support event aliasing for system PMUs

2020-05-07 Thread Joakim Zhang
I did the test on MX8MM and MX8QM, both can work well. So for the patch serials: Tested-by: Joakim Zhang Best Regards, Joakim Zhang > -Original Message- > From: John Garry > Sent: 2020年5月7日 19:58 > To: pet...@infradead.org; mi...@redhat.com; a...@kernel.org; >

Re: [PATCH] scsi: vmw_pvscsi: use true,false for adapter->use_msg

2020-05-07 Thread Martin K. Petersen
On Thu, 30 Apr 2020 20:17:29 +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > drivers/scsi/vmw_pvscsi.c:911:2-18: WARNING: Assignment of 0/1 to bool > variable Applied to 5.8/scsi-queue, thanks! [1/1] scsi: vmw_pvscsi: Use true, false for adapter->use_msg

Re: [PATCH] scsi: qla2xxx: use true,false for ha->fw_dumped

2020-05-07 Thread Martin K. Petersen
On Thu, 30 Apr 2020 20:18:00 +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > drivers/scsi/qla2xxx/qla_tmpl.c:1120:2-20: WARNING: Assignment of 0/1 to > bool variable Applied to 5.8/scsi-queue, thanks! [1/1] scsi: qla2xxx: Use true, false for ha->fw_dumped

Re: [PATCH] scsi: qla2xxx: make qlafx00_process_aen() return void

2020-05-07 Thread Martin K. Petersen
On Wed, 6 May 2020 14:17:57 +0800, Jason Yan wrote: > No other functions use the return value of qlafx00_process_aen() and the > return value is always 0 now. Make it return void. This fixes the > following coccicheck warning: > > drivers/scsi/qla2xxx/qla_mr.c:1716:5-9: Unneeded variable:

Re: [PATCH] scsi: qla2xxx: use true,false for need_mpi_reset

2020-05-07 Thread Martin K. Petersen
On Thu, 30 Apr 2020 20:17:51 +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > drivers/scsi/qla2xxx/qla_tmpl.c:1031:6-20: WARNING: Assignment of 0/1 to > bool variable > drivers/scsi/qla2xxx/qla_tmpl.c:1062:3-17: WARNING: Assignment of 0/1 to > bool variable Applied to

Re: [PATCH] scsi: qedi: remove Comparison of 0/1 to bool variable

2020-05-07 Thread Martin K. Petersen
On Thu, 30 Apr 2020 20:17:06 +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > drivers/scsi/qedi/qedi_main.c:1309:5-25: WARNING: Comparison of 0/1 to > bool variable > drivers/scsi/qedi/qedi_main.c:1315:5-25: WARNING: Comparison of 0/1 to > bool variable Applied to

Re: [PATCH -next] scsi: aacraid: Make some symbols static

2020-05-07 Thread Martin K. Petersen
On Thu, 30 Apr 2020 18:02:12 +0800, Zou Wei wrote: > Fix the following sparse warnings: > > drivers/scsi/aacraid/linit.c:867:6: warning: > symbol 'aac_tmf_callback' was not declared. Should it be static? > drivers/scsi/aacraid/linit.c:1081:5: warning: > symbol 'aac_eh_host_reset' was not

Re: [PATCH] scsi: qla2xxx: Make qla_set_ini_mode() return void

2020-05-07 Thread Martin K. Petersen
On Wed, 29 Apr 2020 22:09:52 +0800, Jason Yan wrote: > The return value is not used by the caller and the local variable 'rc' > is not needed. So make qla_set_ini_mode() return void and remove 'rc'. > This also fixes the following coccicheck warning: > > drivers/scsi/qla2xxx/qla_attr.c:1906:5-7:

Re: [PATCH] scsi: mpt3sas: use true,false for ioc->use_32bit_dma

2020-05-07 Thread Martin K. Petersen
On Thu, 30 Apr 2020 20:17:38 +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > drivers/scsi/mpt3sas/mpt3sas_base.c:7202:1-19: WARNING: Assignment of > 0/1 to bool variable Applied to 5.8/scsi-queue, thanks! [1/1] scsi: mpt3sas: Use true, false for ioc->use_32bit_dma

Re: [PATCH] scsi: fnic: use true,false for fnic->internal_reset_inprogress

2020-05-07 Thread Martin K. Petersen
On Thu, 30 Apr 2020 20:17:18 +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > drivers/scsi/fnic/fnic_scsi.c:2627:5-36: WARNING: Comparison of 0/1 to > bool variable Applied to 5.8/scsi-queue, thanks! [1/1] scsi: fnic: Use true, false for fnic->internal_reset_inprogress

Re: [PATCH] fs/io_uring: fix O_PATH fds in openat, openat2, statx

2020-05-07 Thread Jens Axboe
On 5/7/20 8:28 PM, Jens Axboe wrote: > On 5/7/20 5:31 PM, Al Viro wrote: >> On Thu, May 07, 2020 at 05:03:17PM -0600, Jens Axboe wrote: >>> On 5/7/20 4:44 PM, Al Viro wrote: On Thu, May 07, 2020 at 04:25:24PM -0600, Jens Axboe wrote: > static int io_close(struct io_kiocb *req, bool

[PATCH V2] arm64/cpufeature: Validate hypervisor capabilities during CPU hotplug

2020-05-07 Thread Anshuman Khandual
This validates hypervisor capabilities like VMID width, IPA range for any hot plug CPU against system finalized values. While here, it factors out get_vmid_bits() for general use and also defines ID_AA64MMFR0_PARANGE_MASK. Cc: Catalin Marinas Cc: Will Deacon Cc: Marc Zyngier Cc: Mark Rutland

Re: [PATCH] audit: Replace zero-length array with flexible-array

2020-05-07 Thread Paul Moore
On Thu, May 7, 2020 at 2:46 PM Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: >

Re: [PATCH v4 3/5] iommu/vt-d: Disable non-recoverable fault processing before unbind

2020-05-07 Thread Lu Baolu
On 5/8/20 10:12 AM, Tian, Kevin wrote: From: Lu Baolu Sent: Thursday, May 7, 2020 9:23 PM Hi Kevin, On 2020/5/7 13:45, Tian, Kevin wrote: From: Lu Baolu Sent: Thursday, May 7, 2020 8:56 AM When a PASID is used for SVA by the device, it's possible that the PASID entry is cleared before the

Adding a linux-integrity "fixes" branch

2020-05-07 Thread Mimi Zohar
Hi Stephen, In addition to the existing "next-integrity" branch, could you add the "fixes" branch? thanks! Mimi

Re: [PATCH] audit: Replace zero-length array with flexible-array

2020-05-07 Thread Paul Moore
On Thu, May 7, 2020 at 6:45 PM Gustavo A. R. Silva wrote: > I wouldn't advise to make any of these conversions in include/uapi/ ... Yes, let's not make changes like this to anything under include/uapi; the potential reward doesn't outweigh the risks. -- paul moore www.paul-moore.com

Re: [f2fs-dev] [PATCH] f2fs: compress: fix zstd data corruption

2020-05-07 Thread Chao Yu
Hi Daeho, On 2020/5/8 9:28, Daeho Jeong wrote: > Hi Chao, > > IIUC, you are trying not to use ZSTD_compressBound() to save the memory > space. Am I right? > > Then, how about LZ4_compressBound() for LZ4 and lzo1x_worst_compress() for > LZO? Oops, it looks those limits were wrongly used...

Re: [PATCH ghak25 v4 3/3] audit: add subj creds to NETFILTER_CFG record to cover async unregister

2020-05-07 Thread Paul Moore
On Wed, May 6, 2020 at 6:43 PM Richard Guy Briggs wrote: > On 2020-05-06 17:26, Steve Grubb wrote: > > On Wednesday, April 29, 2020 5:32:47 PM EDT Richard Guy Briggs wrote: > > > On 2020-04-29 14:47, Steve Grubb wrote: > > > > On Wednesday, April 29, 2020 10:31:46 AM EDT Richard Guy Briggs wrote:

Re: [PATCH v3 2/4] perf counts: Reset prev_raw_counts counts

2020-05-07 Thread Jin, Yao
Hi Jiri, On 5/7/2020 11:19 PM, Jiri Olsa wrote: On Thu, May 07, 2020 at 02:58:20PM +0800, Jin Yao wrote: The evsel->prev_raw_counts is updated in perf_evsel__compute_deltas: perf_evsel__compute_deltas() { tmp = *perf_counts(evsel->prev_raw_counts, cpu, thread);

Re: [GIT PULL] security: Fix the default value of fs_context_parse_param hook

2020-05-07 Thread pr-tracker-bot
The pull request you sent on Fri, 8 May 2020 09:45:11 +1000 (AEST): > git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git > for-v5.7 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/79dede78c0573618e3137d3d8cbf78c84e25fabd Thank you! --

Re: [PATCH 3/3] platform/x86: Intel PMT Telemetry capability driver

2020-05-07 Thread David E. Box
On Tue, 2020-05-05 at 16:49 +0300, Andy Shevchenko wrote: > ... > > > + /* TODO: replace with device properties??? */ > > So, please, fulfill. swnode I guess is what you are looking for. I kept the platform data in v2 because swnode properties doesn't look like a good fit. We are only

Re: [PATCH v2 0/3] vfio-pci: Block user access to disabled device MMIO

2020-05-07 Thread Peter Xu
On Thu, May 07, 2020 at 04:34:37PM -0600, Alex Williamson wrote: > On Thu, 7 May 2020 17:59:08 -0400 > Peter Xu wrote: > > > On Tue, May 05, 2020 at 03:54:36PM -0600, Alex Williamson wrote: > > > v2: > > > > > > Locking in 3/ is substantially changed to avoid the retry scenario > > > within the

Re: [PATCH v5 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC

2020-05-07 Thread Ramuthevar, Vadivel MuruganX
Hi Boris, Thank you very much for the review comments and your time... On 7/5/2020 2:48 pm, Boris Brezillon wrote: > On Thu, 7 May 2020 14:38:52 +0800 > "Ramuthevar, Vadivel MuruganX" > wrote: > >> Hi Boris, >> >>Thank you very much for the review comments and your time... >> >> On

Re: [PATCH v4 4/5] iommu/vt-d: Add page request draining support

2020-05-07 Thread Lu Baolu
Hi Kevin, On 5/7/20 2:35 PM, Tian, Kevin wrote: From: Lu Baolu Sent: Thursday, May 7, 2020 8:56 AM When a PASID is stopped or terminated, there can be pending PRQs (requests that haven't received responses) in remapping hardware. This adds the interface to drain page requests and call it when

Re: [PATCH] fs/io_uring: fix O_PATH fds in openat, openat2, statx

2020-05-07 Thread Jens Axboe
On 5/7/20 5:31 PM, Al Viro wrote: > On Thu, May 07, 2020 at 05:03:17PM -0600, Jens Axboe wrote: >> On 5/7/20 4:44 PM, Al Viro wrote: >>> On Thu, May 07, 2020 at 04:25:24PM -0600, Jens Axboe wrote: >>> static int io_close(struct io_kiocb *req, bool force_nonblock) { + struct

Re: [PATCH] ALSA: fireworks: Replace zero-length array with flexible-array

2020-05-07 Thread Takashi Sakamoto
On Thu, May 07, 2020 at 01:52:45PM -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced

RE: [PATCH] ARM: imx_v6_v7_defconfig: extend RN5T618 PMIC family support

2020-05-07 Thread Aisheng Dong
> From: Andreas Kemnade > Sent: Friday, May 8, 2020 4:44 AM > > There are new drivers for functionality of that family (RTC and ADC), so > enable > them, since they are used by various i.MX6 boards. > > Signed-off-by: Andreas Kemnade Reviewed-by: Dong Aisheng Regards Aisheng

[PATCH v7 2/8] scsi: ufs: introduce fixup_dev_quirks vops

2020-05-07 Thread Stanley Chu
Some UFS deivces may have required device quirks or have non-standard features which are enabled only on specified UFS hosts or for special customers. To not "pollute" common device quirk list, i.e., ufs_fixups table for those devices mentioned above, introduce "fixup_dev_quirks" vops to allow

[PATCH v7 3/8] scsi: ufs: export ufs_fixup_device_setup() function

2020-05-07 Thread Stanley Chu
Export ufs_fixup_device_setup() to allow vendors to re-use it for fixing device quriks on specified UFS hosts. Signed-off-by: Stanley Chu Reviewed-by: Avri Altman --- drivers/scsi/ufs/ufshcd.c | 7 --- drivers/scsi/ufs/ufshcd.h | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff

[PATCH v7 7/8] scsi: ufs-mediatek: enable WriteBooster capability

2020-05-07 Thread Stanley Chu
Enable WriteBooster capability on MediaTek UFS platforms. Signed-off-by: Stanley Chu Reviewed-by: Bean Huo --- drivers/scsi/ufs/ufs-mediatek.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c index

[PATCH v7 5/8] scsi: ufs: add "index" in parameter list of ufshcd_query_flag()

2020-05-07 Thread Stanley Chu
For preparation of LU Dedicated buffer mode support on WriteBooster feature, "index" parameter shall be added and allowed to be specified by callers. Signed-off-by: Stanley Chu Reviewed-by: Bean Huo Reviewed-by: Avri Altman Reviewed-by: Can Guo --- drivers/scsi/ufs/ufs-sysfs.c | 2 +-

[PATCH v7 1/8] scsi: ufs: enable WriteBooster on some pre-3.1 UFS devices

2020-05-07 Thread Stanley Chu
WriteBooster feature can be supported by some pre-3.1 UFS devices by upgrading firmware. To enable WriteBooster feature in such devices, introduce a device quirk to relax the entrance condition of ufshcd_wb_probe() to allow host driver to check those devices' WriteBooster capability.

[PATCH v7 6/8] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-05-07 Thread Stanley Chu
According to UFS specification, there are two WriteBooster mode of operations: "LU dedicated buffer" mode and "shared buffer" mode. In the "LU dedicated buffer" mode, the WriteBooster Buffer is dedicated to a logical unit. If the device supports the "LU dedicated buffer" mode, this mode is

[PATCH v7 8/8] scsi: ufs: cleanup WriteBooster feature

2020-05-07 Thread Stanley Chu
Small cleanup as below items, 1. Use ufshcd_is_wb_allowed() directly instead of ufshcd_wb_sup() since ufshcd_wb_sup() just returns the result of ufshcd_is_wb_allowed(). 2. In ufshcd_suspend(), "else if (!ufshcd_is_runtime_pm(pm_op)) can be simplified to "else" since both have the same

[PATCH v7 4/8] scsi: ufs-mediatek: add fixup_dev_quirks vops

2020-05-07 Thread Stanley Chu
Add fixup_dev_quirk vops in MediaTek UFS platforms and provide an initial vendor-specific device quirk table. Signed-off-by: Stanley Chu Reviewed-by: Avri Altman --- drivers/scsi/ufs/ufs-mediatek.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git

Re: [PATCH 1/2] fs: avoid fdput() after failed fdget() in ksys_sync_file_range()

2020-05-07 Thread Luis Chamberlain
On Fri, May 08, 2020 at 01:24:22AM +0100, Al Viro wrote: > On Fri, May 08, 2020 at 01:05:09AM +0100, Al Viro wrote: > > On Thu, May 07, 2020 at 05:57:09PM -0600, Shuah Khan wrote: > > > Fix ksys_sync_file_range() to avoid fdput() after a failed fdget(). > > > fdput() doesn't do fput() on this file

[PATCH v7 0/8] scsi: ufs: support LU Dedicated buffer mode for WriteBooster

2020-05-07 Thread Stanley Chu
Hi, This patchset adds LU dedicated buffer mode support for WriteBooster. In the meanwhile, enable WriteBooster capability on MediaTek UFS platforms. v6 -> v7: - Add device descriptor length check in ufshcd_wb_probe() back to prevent out-of-boundary access in ufshcd_wb_probe() - Fix the

Re: [PATCH v2 1/3] vfio/type1: Support faulting PFNMAP vmas

2020-05-07 Thread Peter Xu
On Thu, May 07, 2020 at 08:54:21PM -0300, Jason Gunthorpe wrote: > On Thu, May 07, 2020 at 05:24:43PM -0400, Peter Xu wrote: > > On Tue, May 05, 2020 at 03:54:44PM -0600, Alex Williamson wrote: > > > With conversion to follow_pfn(), DMA mapping a PFNMAP range depends on > > > the range being

[PATCH v2 3/3] platform/x86: Intel PMT Telemetry capability driver

2020-05-07 Thread David E. Box
PMT Telemetry is a capability of the Intel Platform Monitoring Technology. The Telemetry capability provides access to device telemetry metrics that provide hardware performance data to users from continuous, memory mapped, read-only register spaces. Register mappings are not provided by the

[PATCH v2 2/3] mfd: Intel Platform Monitoring Technology support

2020-05-07 Thread David E. Box
Intel Platform Monitoring Technology (PMT) is an architecture for enumerating and accessing hardware monitoring facilities. PMT supports multiple types of monitoring capabilities. This driver creates platform devices for each type so that they may be managed by capability specific drivers (to be

[PATCH v2 1/3] PCI: Add defines for Designated Vendor-Specific Capability

2020-05-07 Thread David E. Box
Add PCIe DVSEC extended capability ID and defines for the header offsets. Defined in PCIe r5.0, sec 7.9.6. Signed-off-by: David E. Box Acked-by: Bjorn Helgaas --- include/uapi/linux/pci_regs.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/pci_regs.h

[PATCH v2 0/3] Intel Platform Monitoring Technology

2020-05-07 Thread David E. Box
Intel Platform Monitoring Technology (PMT) is an architecture for enumerating and accessing hardware monitoring capabilities on a device. With customers increasingly asking for hardware telemetry, engineers not only have to figure out how to measure and collect data, but also how to deliver it and

Re: [RFC] taint: add module firmware crash taint support

2020-05-07 Thread Luis Chamberlain
On Fri, May 08, 2020 at 02:14:38AM +, Luis Chamberlain wrote: > Device driver firmware can crash, and sometimes, this can leave your > system in a state which makes the device or subsystem completely > useless. Detecting this by inspecting /proc/sys/kernel/tainted instead > of scraping some

Re: [PATCH] kernel/watchdog.c: convert {soft/hard}lockup boot parameters to sysctl aliases

2020-05-07 Thread Guilherme G. Piccoli
On Thu, May 7, 2020 at 8:06 PM Andrew Morton wrote: > We have a lot of sysctls. What is the motivation for converting these > particular ones? No stronger motivation than a regular clean-up - I just liked the infrastructure provided by Vlastmil and thought in using it. I know we have plenty of

Re: [PATCH v2 2/3] vfio-pci: Fault mmaps to enable vma tracking

2020-05-07 Thread Peter Xu
On Thu, May 07, 2020 at 08:56:33PM -0300, Jason Gunthorpe wrote: > On Thu, May 07, 2020 at 06:22:23PM -0400, Peter Xu wrote: > > On Thu, May 07, 2020 at 04:03:34PM -0600, Alex Williamson wrote: > > > On Thu, 7 May 2020 17:47:44 -0400 > > > Peter Xu wrote: > > > > > > > Hi, Alex, > > > > > > > >

Re: [PATCH] mm, compaction: Indicate when compaction is manually triggered by sysctl

2020-05-07 Thread Guilherme G. Piccoli
On Thu, May 7, 2020 at 8:04 PM Andrew Morton wrote: > > Could add it to vmstat? Hi Andrew, thanks for your suggestion! I thought the same, as a second potential solution for this..was planning to add as a comment below the "---" but forgot heheh I agree that would be great in vmstat, do you have

[RFC] taint: add module firmware crash taint support

2020-05-07 Thread Luis Chamberlain
Device driver firmware can crash, and sometimes, this can leave your system in a state which makes the device or subsystem completely useless. Detecting this by inspecting /proc/sys/kernel/tainted instead of scraping some magical words from the kernel log, which is driver specific, is much easier.

RE: [PATCH v4 3/5] iommu/vt-d: Disable non-recoverable fault processing before unbind

2020-05-07 Thread Tian, Kevin
> From: Lu Baolu > Sent: Thursday, May 7, 2020 9:23 PM > > Hi Kevin, > > On 2020/5/7 13:45, Tian, Kevin wrote: > >> From: Lu Baolu > >> Sent: Thursday, May 7, 2020 8:56 AM > >> > >> When a PASID is used for SVA by the device, it's possible that the PASID > >> entry is cleared before the device

[PATCH] timers: use set_current_state macro

2020-05-07 Thread Xianting Tian
Use set_current_state macro instead of current->state = TASK_RUNNING. Signed-off-by: Xianting Tian --- kernel/time/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/timer.c b/kernel/time/timer.c index a5221abb4..7c6d42755 100644 --- a/kernel/time/timer.c

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

2020-05-07 Thread Andrew Morton
On Fri, 8 May 2020 11:43:38 +1000 Stephen Rothwell wrote: > Hi all, > > On Thu, 7 May 2020 22:17:21 +1000 Stephen Rothwell > wrote: > > > > After merging the akpm-current tree, today's linux-next build (arm > > collie_defconfig and many others) failed like this: > > > >

[PATCH net v1] hinic: fix a bug of ndo_stop

2020-05-07 Thread Luo bin
if some function in ndo_stop interface returns failure because of hardware fault, must go on excuting rest steps rather than return failure directly, otherwise will cause memory leak Signed-off-by: Luo bin --- .../net/ethernet/huawei/hinic/hinic_hw_mgmt.c | 28 ++-

Re: [PATCH v3 1/4] perf stat: Fix wrong per-thread runtime stat for interval mode

2020-05-07 Thread Jin, Yao
Hi Jiri, On 5/7/2020 11:19 PM, Jiri Olsa wrote: On Thu, May 07, 2020 at 02:58:19PM +0800, Jin Yao wrote: SNIP diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index e0c1ad23c768..97ee941649e6 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -351,6

[PATCH net-next v1] hinic: add three net_device_ops of vf

2020-05-07 Thread Luo bin
adds ndo_set_vf_rate/ndo_set_vf_spoofchk/ndo_set_vf_link_state to configure netdev of virtual function Signed-off-by: Luo bin --- .../net/ethernet/huawei/hinic/hinic_hw_cmdq.c | 31 ++ .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 35 ++- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 21

Re: [PATCH net-next 1/2] virtio-net: don't reserve space for vnet header for XDP

2020-05-07 Thread Jason Wang
On 2020/5/6 下午5:46, Michael S. Tsirkin wrote: There are a lot of unanswered questions on how this will be implemented. Thus, I cannot layout how we are going to leverage this info yet, but your patch are killing this info, which IHMO is going in the wrong direction. I can copy vnet header

[PATCH -next] iommu: remove set but not used variable 'data'

2020-05-07 Thread Chen Zhou
Fixes gcc '-Wunused-but-set-variable' warning: drivers/iommu/mtk_iommu_v1.c:467:25: warning: variable ‘data’ set but not used [-Wunused-but-set-variable] struct mtk_iommu_data *data; Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- drivers/iommu/mtk_iommu_v1.c | 3 +-- 1 file changed, 1

答复: [PATCH] [v4] KVM: X86: support APERF/MPERF registers

2020-05-07 Thread Li,Rongqing
tree, please drop us a > note to > help improve the system. BTW, we also suggest to use '--base' option to > specify > the base tree in git format-patch, please see > https://stackoverflow.com/a/37406982] > > url: > https://github.com/0day-ci/linux/commits/Li-RongQing/KVM-

Re: [PATCH] net: atarilance: Replace zero-length array with flexible-array

2020-05-07 Thread David Miller
From: "Gustavo A. R. Silva" Date: Thu, 7 May 2020 14:01:33 -0500 > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in

Re: [PATCH] x86: bitops: fix build regression

2020-05-07 Thread Brian Gerst
On Thu, May 7, 2020 at 6:29 PM Nick Desaulniers wrote: > > On Thu, May 7, 2020 at 12:19 PM Nick Desaulniers > wrote: > > > > On Thu, May 7, 2020 at 7:00 AM Brian Gerst wrote: > > > > > > This change will make sparse happy and allow these cleanups: > > > #define CONST_MASK(nr)

Re: [PATCH] ipv6: Replace zero-length array with flexible-array

2020-05-07 Thread David Miller
From: "Gustavo A. R. Silva" Date: Thu, 7 May 2020 14:02:16 -0500 > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in

Re: [PATCH net-next 1/2] virtio-net: don't reserve space for vnet header for XDP

2020-05-07 Thread Jason Wang
On 2020/5/6 下午5:54, Michael S. Tsirkin wrote: On Wed, May 06, 2020 at 04:19:40PM +0800, Jason Wang wrote: On 2020/5/6 下午3:53, Michael S. Tsirkin wrote: On Wed, May 06, 2020 at 02:16:32PM +0800, Jason Wang wrote: We tried to reserve space for vnet header before xdp.data_hard_start. But this

Good day and God bless you as you read this massage,

2020-05-07 Thread Mr. Solomon Omar
-- Hello dear, I'm working with Bank International in Ouagadougou the capital city of Burkina Faso. I'm one of the senior director of the bank, I’m writing you this memo because I have this urgent deal/business proposal that will benefit me and you. Please write me on my personal email for

Re: [PATCH] team: Replace zero-length array with flexible-array

2020-05-07 Thread David Miller
From: "Gustavo A. R. Silva" Date: Thu, 7 May 2020 14:25:07 -0500 > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in

Re: [PATCH net-next 2/2] virtio-net: fix the XDP truesize calculation for mergeable buffers

2020-05-07 Thread Jason Wang
On 2020/5/6 下午8:08, Michael S. Tsirkin wrote: On Wed, May 06, 2020 at 04:21:15PM +0800, Jason Wang wrote: On 2020/5/6 下午3:37, Michael S. Tsirkin wrote: On Wed, May 06, 2020 at 02:16:33PM +0800, Jason Wang wrote: We should not exclude headroom and tailroom when XDP is set. So this patch

Re:[PATCH] drivers/video: cleanup coding style in video a bit

2020-05-07 Thread Bernard
From: Bernard Zhao Date: 2020-04-27 16:05:23 To: Bartlomiej Zolnierkiewicz ,Uma Shankar ,"Ville Syrjälä" ,Shashank Sharma ,Laurent Pinchart ,Daniel Vetter ,Bernard Zhao ,dri-de...@lists.freedesktop.org,linux-fb...@vger.kernel.org,linux-kernel@vger.kernel.org Cc:

Re: [PATCH] sparc64: Replace zero-length array with flexible-array

2020-05-07 Thread David Miller
From: "Gustavo A. R. Silva" Date: Thu, 7 May 2020 14:23:02 -0500 > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in

Re: [PATCH -next] dm mpath: Remove unused variable ret

2020-05-07 Thread kbuild test robot
Hi Samuel, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20200507] [also build test ERROR on dm/for-next] [cannot apply to v5.7-rc4] [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

[PATCH] perf: perf can not parser the backtrace of app with dwarf mode in the 32bit system and 64bit kernel.

2020-05-07 Thread Jiping Ma
Record PC value from regs[15], it should be regs[32] in REGS_ABI_32 mode, which cause perf parser the backtrace failed. Signed-off-by: Jiping Ma --- arch/arm64/kernel/perf_regs.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/kernel/perf_regs.c

[PATCH v3 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min Enable the stmpe811 touch screen on stm32429-disco board. Signed-off-by: dillon min --- Hi, Philippe Schenker, Alexandre Torgue compare to [patch v1 3/4], this patch remove id, blocks, irq-trigger from stmpe811 dts, as they not used by driver anymore. thanks. dillon,

[PATCH v3 1/4] ARM: dts: stm32: add I2C3 support on STM32F429 SoC

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds I2C3 instances of the STM32F429 SoC Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index d777069..257b843

[PATCH v3 4/4] i2c: stm32f4: Fix stmpe811 get xyz data timeout issue

2020-05-07 Thread dillon . minfei
From: dillon min as stm32f429's internal flash is 2Mbytes and compiled kernel image bigger than 2Mbytes, so we have to load kernel image to sdram on stm32f429-disco board which has 8Mbytes sdram space. based on above context, as you knows kernel running on external sdram is more slower than

[PATCH v3 0/4] Enable stmpe811 touch screen on stm32f429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min This patchset is intend to enable stmpe811 touch screen on stm32f429-disco board with three dts and one i2c driver changes. has been validated by ts_print tool Changes log: V3: just add change log in [PATCH V3 3/4] below --- V2: remove id, blocks, irq-trigger from stmpe811

[PATCH v3 2/4] ARM: dts: stm32: Add pin map for I2C3 controller on stm32f4

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for I2C3 controller on stm32f4. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi

[PATCH -next] iommu/arm-smmu-v3: remove set but not used variable 'smmu'

2020-05-07 Thread Chen Zhou
Fixes gcc '-Wunused-but-set-variable' warning: drivers/iommu/arm-smmu-v3.c:2989:26: warning: variable ‘smmu’ set but not used [-Wunused-but-set-variable] struct arm_smmu_device *smmu; Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- drivers/iommu/arm-smmu-v3.c | 2 -- 1 file changed, 2

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

2020-05-07 Thread Stephen Rothwell
Hi all, On Thu, 7 May 2020 22:17:21 +1000 Stephen Rothwell wrote: > > After merging the akpm-current tree, today's linux-next build (arm > collie_defconfig and many others) failed like this: > > arch/arm/mm/dma-mapping.c: In function 'dma_cache_maint_page': > arch/arm/mm/dma-mapping.c:892:6:

Re: [PATCH v4 3/5] iommu/vt-d: Disable non-recoverable fault processing before unbind

2020-05-07 Thread Lu Baolu
On 5/8/20 12:55 AM, Jacob Pan wrote: On Thu, 7 May 2020 08:55:32 +0800 Lu Baolu wrote: When a PASID is used for SVA by the device, it's possible that the PASID entry is cleared before the device flushes all ongoing DMA requests. The IOMMU should ignore the non-recoverable faults caused by

Re: [PATCH net 0/2] net: ipa: fix cleanup after modem crash

2020-05-07 Thread David Miller
From: Alex Elder Date: Thu, 7 May 2020 14:14:02 -0500 > The first patch in this series fixes a bug where the size of a data > transfer request was never set, meaning it was 0. The consequence > of this was that such a transfer request would never complete if > attempted, and led to a hung task

Re: [PATCH v4 2/5] iommu/vt-d: debugfs: Add support to show inv queue internals

2020-05-07 Thread Lu Baolu
Hi Jacob, On 5/8/20 12:47 AM, Jacob Pan wrote: Hi Baolu, Very helpful feature, thanks for doing this. Just a small suggestion. Thanks a lot for reviewing my patch. On Thu, 7 May 2020 08:55:31 +0800 Lu Baolu wrote: Export invalidation queue internals of each iommu device through the

[PATCH 1/2] sunrpc: add missing newline when printing parameter 'pool_mode' by sysfs

2020-05-07 Thread Xiongfeng Wang
When I cat parameter '/sys/module/sunrpc/parameters/pool_mode', it displays as follows. It is better to add a newline for easy reading. [root@hulk-202 ~]# cat /sys/module/sunrpc/parameters/pool_mode global[root@hulk-202 ~]# Signed-off-by: Xiongfeng Wang --- net/sunrpc/svc.c | 10 +- 1

[PATCH 2/2] sunrpc: add missing newline when printing parameter 'auth_hashtable_size' by sysfs

2020-05-07 Thread Xiongfeng Wang
When I cat parameter '/sys/module/sunrpc/parameters/auth_hashtable_size', it displays as follows. It is better to add a newline for easy reading. [root@hulk-202 ~]# cat /sys/module/sunrpc/parameters/auth_hashtable_size 16[root@hulk-202 ~]# Signed-off-by: Xiongfeng Wang --- net/sunrpc/auth.c |

[PATCH 0/2] sunrpc: add missing newline when printing module parameters by sysfs

2020-05-07 Thread Xiongfeng Wang
When I cat parameters below ''/sys/module/sunrpc/parameters/', I found the following two parameter need a new line. [root@hulk-202 ~]# cat /sys/module/sunrpc/parameters/pool_mode global[root@hulk-202 ~]# cat /sys/module/sunrpc/parameters/auth_hashtable_size 16[root@hulk-202 ~]# Xiongfeng Wang

Re: [RESENT PATCH RFC v3 5/5] scsi: ufs: UFS Host Performance Booster(HPB) driver

2020-05-07 Thread Randy Dunlap
Hi, On 5/4/20 7:20 AM, huob...@gmail.com wrote: > diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig > index e2005aeddc2d..0224f224a641 100644 > --- a/drivers/scsi/ufs/Kconfig > +++ b/drivers/scsi/ufs/Kconfig > @@ -160,3 +160,65 @@ config SCSI_UFS_BSG > > Select this if

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