Re: [PATCH] NFC: Fix error handling in rawsock_connect()

2020-06-12 Thread Markus Elfring
> … The patch fixes this issue. I suggest to replace this information by the tag “Fixes”. Please choose another imperative wording for your change description.

[tip:master] BUILD SUCCESS 2bef5106d9ae4b0b2612db2f477c4ab990dd44cb

2020-06-12 Thread kernel test robot
allnoconfig powerpc defconfig i386 randconfig-a015-20200612 i386 randconfig-a011-20200612 i386 randconfig-a014-20200612 i386 randconfig-a016-20200612 i386 randconfig-a013-20200612 i386

[GIT PULL] iomap: bug fix for 5.8-rc1

2020-06-12 Thread Darrick J. Wong
Hi Linus, Please pull this single iomap bug fix for 5.8-rc1 that fixes a variable type mistake on 32-bit architectures. The branch merged cleanly with upstream head as of a few minutes ago. --D The following changes since commit 0e698dfa282211e414076f9dc7e83c1c288314fd: Linux 5.7-rc4

[GIT PULL] xfs: bug fixes for 5.8-rc1

2020-06-12 Thread Darrick J. Wong
Hi Linus, Please pull this last merge request before -rc1. We've settled down into the bugfix phase; this one fixes an error bailout path. This branch merges cleanly with master as of a few minutes ago, so please let me know if anything strange happens. --D The following changes since commit

Re: [RFC PATCH] x86/msr: Filter MSR writes

2020-06-12 Thread Tony Luck
On Fri, Jun 12, 2020 at 1:41 PM Peter Zijlstra wrote: > > On Fri, Jun 12, 2020 at 07:48:01PM +0200, Borislav Petkov wrote: > > On Fri, Jun 12, 2020 at 10:20:03AM -0700, Linus Torvalds wrote: > > > Since you already added the filtering, this looks fairly sane. > > > > > > IOW, what MSR's do we

Re: [GIT PULL] xfs: new code for 5.8 (now with fixed To line)

2020-06-12 Thread Darrick J. Wong
On Tue, Jun 02, 2020 at 07:40:35PM -0700, Linus Torvalds wrote: > On Tue, Jun 2, 2020 at 9:26 AM Darrick J. Wong wrote: > > > > fs/xfs/xfs_log_recover.c | 2561 > > ++-- > > 102 files changed, 4244 insertions(+), 4817 deletions(-) > > Interestingly, the

Re: [GIT PULL] vfs: improve DAX behavior for 5.8, part 3

2020-06-12 Thread Darrick J. Wong
On Thu, Jun 11, 2020 at 11:00:43AM -0700, Linus Torvalds wrote: > On Wed, Jun 10, 2020 at 7:43 PM Darrick J. Wong wrote: > > > > I did a test merge of this branch against upstream this evening and > > there weren't any conflicts. The first five patches in the series were > > already in the xfs

Re: RFC - kernel selftest result documentation (KTAP)

2020-06-12 Thread David Gow
On Thu, Jun 11, 2020 at 2:11 AM Bird, Tim wrote: > > Some months ago I started work on a document to formalize how > kselftest implements the TAP specification. However, I didn't finish > that work. Maybe it's time to do so now. > > kselftest has developed a few differences from the original >

Re: [PATCH v6 10/12] mmap locking API: rename mmap_sem to mmap_lock

2020-06-12 Thread youling 257
today test linux kernel master branch, I have kernel/sys.c build error. can you make a fix patch and push to linus? 2020-06-04 16:38 GMT+08:00, Michel Lespinasse : > On Thu, Jun 4, 2020 at 1:16 AM youling 257 wrote: >> 2020-06-04 13:57 GMT+08:00, Michel Lespinasse : >> > However I would like

[PATCH] drm/msm: Fix 0xfffflub in "Refactor address space initialization"

2020-06-12 Thread John Stultz
This week I started seeing GPU crashes on my DragonBoard 845c which I narrowed down to being caused by commit ccac7ce373c1 ("drm/msm: Refactor address space initialization"). Looking through the patch, Jordan and I couldn't find anything obviously wrong, so I ended up breaking that change up into

[tip:x86/entry] BUILD SUCCESS 0bf3924bfabd13ba21aa702344fc00b3b3263e5a

2020-06-12 Thread kernel test robot
randconfig-a015-20200612 i386 randconfig-a011-20200612 i386 randconfig-a014-20200612 i386 randconfig-a016-20200612 i386 randconfig-a013-20200612 i386 randconfig-a012-20200612 riscvallyesconfig

linux-next: Tree for Jun 13

2020-06-12 Thread Stephen Rothwell
Hi all, News: The merge window has opened, so please do *not* add v5.9 material to your linux-next included branches until after v5.8-rc1 has been released. Changes since 20200612: My fixes tree contains: 4cb4bfffe2c1 ("device_cgroup: Fix RCU list debugging warning") The crypto-cu

Re: [PATCH v2 4/6] regulator: Add support for QCOM PMIC VBUS booster

2020-06-12 Thread Randy Dunlap
On 6/12/20 4:19 PM, Wesley Cheng wrote: > diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig > index 074a2ef55943..f9165f9f9051 100644 > --- a/drivers/regulator/Kconfig > +++ b/drivers/regulator/Kconfig > @@ -797,6 +797,16 @@ config REGULATOR_QCOM_SPMI > Qualcomm SPMI PMICs

[RESEND PATCH v10 04/10] scsi: ufs: introduce UFSHCD_QUIRK_PRDT_BYTE_GRAN quirk

2020-06-12 Thread Alim Akhtar
Some UFS host controllers like Exynos uses granularities of PRDT length and offset as bytes, whereas others uses actual segment count. Reviewed-by: Avri Altman Signed-off-by: Kiwoong Kim Signed-off-by: Alim Akhtar --- drivers/scsi/ufs/ufshcd.c | 30 +++---

[RESEND PATCH v10 02/10] scsi: ufs: add quirk to disallow reset of interrupt aggregation

2020-06-12 Thread Alim Akhtar
Some host controllers support interrupt aggregation but don't allow resetting counter and timer in software. Reviewed-by: Avri Altman Signed-off-by: Seungwon Jeon Signed-off-by: Alim Akhtar --- drivers/scsi/ufs/ufshcd.c | 3 ++- drivers/scsi/ufs/ufshcd.h | 6 ++ 2 files changed, 8

[RESEND PATCH v10 00/10] exynos-ufs: Add support for UFS HCI

2020-06-12 Thread Alim Akhtar
This patch-set introduces UFS (Universal Flash Storage) host controller support for Samsung family SoC. Mostly, it consists of UFS PHY and host specific driver. - Changes since v9 * fixed the review comments by Rob on ufs dt bindings * Addeded Rob's reviwed-by tag on 08/10 patch - Changes since

[RESEND PATCH v10 07/10] phy: samsung-ufs: add UFS PHY driver for samsung SoC

2020-06-12 Thread Alim Akhtar
This patch introduces Samsung UFS PHY driver. This driver supports to deal with phy calibration and power control according to UFS host driver's behavior. Reviewed-by: Kiwoong Kim Signed-off-by: Seungwon Jeon Signed-off-by: Alim Akhtar Cc: Kishon Vijay Abraham I Tested-by: Paweł Chmiel ---

[RESEND PATCH v10 03/10] scsi: ufs: add quirk to enable host controller without hce

2020-06-12 Thread Alim Akhtar
Some host controllers don't support host controller enable via HCE. Reviewed-by: Can Guo Reviewed-by: Avri Altman Signed-off-by: Seungwon Jeon Signed-off-by: Alim Akhtar --- drivers/scsi/ufs/ufshcd.c | 76 +-- drivers/scsi/ufs/ufshcd.h | 6 2 files

[RESEND PATCH v10 09/10] scsi: ufs-exynos: add UFS host support for Exynos SoCs

2020-06-12 Thread Alim Akhtar
This patch introduces Exynos UFS host controller driver, which mainly handles vendor-specific operations including link startup, power mode change and hibernation/unhibernation. Reported-by: kbuild test robot Reported-by: Julia Lawall [robot: drivers/scsi/ufs/ufs-exynos.c:931:8-10: WARNING:

[RESEND PATCH v10 05/10] scsi: ufs: add quirk to fix abnormal ocs fatal error

2020-06-12 Thread Alim Akhtar
From: Kiwoong Kim Some controller like Exynos determines if FATAL ERROR (0x7) in OCS field in UTRD occurs for values other than GOOD (0x0) in STATUS field in response upiu as well as errors that a host controller can't cover. This patch is to prevent from reporting command results in those

[RESEND PATCH v10 10/10] arm64: dts: Add node for ufs exynos7

2020-06-12 Thread Alim Akhtar
Adding dt node foe UFS and UFS-PHY for exynos7 SoC. Signed-off-by: Alim Akhtar Tested-by: Paweł Chmiel --- .../boot/dts/exynos/exynos7-espresso.dts | 4 ++ arch/arm64/boot/dts/exynos/exynos7.dtsi | 43 ++- 2 files changed, 45 insertions(+), 2 deletions(-) diff

[RESEND PATCH v10 08/10] dt-bindings: ufs: Add bindings for Samsung ufs host

2020-06-12 Thread Alim Akhtar
This patch adds DT bindings for Samsung ufs hci Reviewed-by: Rob Herring Signed-off-by: Alim Akhtar --- .../bindings/ufs/samsung,exynos-ufs.yaml | 89 +++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml

[RESEND PATCH v10 06/10] dt-bindings: phy: Document Samsung UFS PHY bindings

2020-06-12 Thread Alim Akhtar
This patch documents Samsung UFS PHY device tree bindings Reviewed-by: Rob Herring Signed-off-by: Alim Akhtar Tested-by: Paweł Chmiel --- .../bindings/phy/samsung,ufs-phy.yaml | 75 +++ 1 file changed, 75 insertions(+) create mode 100644

[RESEND PATCH v10 01/10] scsi: ufs: add quirk to fix mishandling utrlclr/utmrlclr

2020-06-12 Thread Alim Akhtar
In the right behavior, setting the bit to '0' indicates clear and '1' indicates no change. If host controller handles this the other way, UFSHCI_QUIRK_BROKEN_REQ_LIST_CLR can be used. Reviewed-by: Can Guo Reviewed-by: Avri Altman Signed-off-by: Seungwon Jeon Signed-off-by: Alim Akhtar ---

net boot error: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks

2020-06-12 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:6954a9e4 ibmvnic: Flush existing work items before device .. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=1367d93910 kernel config: https://syzkaller.appspot.com/x/.config?x=b366fd92adf6f8b4

Re: BUG: kernel NULL pointer dereference from check_preempt_wakeup()

2020-06-12 Thread Paul E. McKenney
On Tue, Jun 09, 2020 at 08:40:16AM -0700, Paul E. McKenney wrote: > On Sun, Jun 07, 2020 at 11:57:32AM -0700, Paul E. McKenney wrote: > > On Sat, Jun 06, 2020 at 10:29:42AM -0700, Paul E. McKenney wrote: > > > On Fri, Jun 05, 2020 at 05:51:26PM -0700, Paul E. McKenney wrote: > > > > On Fri, Jun

[PATCH 0/5] LSM: Measure security module state

2020-06-12 Thread Lakshmi Ramasubramanian
Critical data structures of security modules are currently not measured. Therefore an attestation service, for instance, would not be able to attest whether security modules are always operating with the policies and configuration that the system administrator had setup. The policies and

[PATCH 4/5] LSM: Define SELinux function to measure security state

2020-06-12 Thread Lakshmi Ramasubramanian
SELinux needs to implement the interface function, security_state(), for the LSM to gather SELinux data for measuring. Define the security_state() function in SELinux. The security modules should be able to notify the LSM when there is a change in the module's data. Define a function namely

[PATCH 1/5] IMA: Add LSM_STATE func to measure LSM data

2020-06-12 Thread Lakshmi Ramasubramanian
Data provided by security modules need to be measured. A new IMA policy is required for handling this measurement. Define a new IMA policy func namely LSM_STATE to measure data provided by security modules. Update ima_match_rules() to check for LSM_STATE and ima_parse_rule() to handle LSM_STATE.

[PATCH 3/5] LSM: Add security_state function pointer in lsm_info struct

2020-06-12 Thread Lakshmi Ramasubramanian
The security modules that require their data to be measured need to define a function that the LSM can call to gather the data. Add a function pointer field namely security_state in lsm_info structure. Update LSM to call this security module function, if defined, to gather data and measure it by

[PATCH 5/5] LSM: Define workqueue for measuring security module state

2020-06-12 Thread Lakshmi Ramasubramanian
The data maintained by the security modules could be tampered with by malware. The LSM needs to periodically query the state of the security modules and measure the data when the state is changed. Define a workqueue for handling this periodic query and measurement. Signed-off-by: Lakshmi

[PATCH 2/5] IMA: Define an IMA hook to measure LSM data

2020-06-12 Thread Lakshmi Ramasubramanian
LSM requires an IMA hook to be defined by the IMA subsystem to measure the data gathered from the security modules. Define a new IMA hook, namely ima_lsm_state(), that the LSM will call to measure the data gathered from the security modules. Sample IMA log entry for LSM measurement: 10

Re: [PATCH v6 6/6] blktrace: fix debugfs use after free

2020-06-12 Thread Bart Van Assche
On 2020-06-08 10:01, Luis Chamberlain wrote: > + /* > + * Blktrace needs a debugfs name even for queues that don't register > + * a gendisk, so it lazily registers the debugfs directory. But that > + * can get us into a situation where a SCSI device is found, with no > + *

[PATCH v2 2/2] IMA: Add audit log for failure conditions

2020-06-12 Thread Lakshmi Ramasubramanian
process_buffer_measurement() and ima_alloc_key_entry() functions need to log an audit message for auditing integrity measurement failures. Add audit message in these two functions. Remove "pr_devel" log message in process_buffer_measurement(). Sample audit messages: [6.415374] audit:

[PATCH v2 1/2] integrity: Add result field in audit message

2020-06-12 Thread Lakshmi Ramasubramanian
Result code is not included in the audit messages logged by the integrity subsystem. Add "result" field in the audit messages logged by the integrity subsystem and set the value to the result code passed to integrity_audit_msg() in the "result" parameter. Sample audit message: [6.284329]

Re: [RFC PATCH 11/13] sched: migration changes for core scheduling

2020-06-12 Thread Joel Fernandes
On Fri, Jun 12, 2020 at 05:32:01PM -0400, Vineeth Remanan Pillai wrote: > > AFAIR, that's what v4 did: > > > > if (available_idle_cpu(cpu)) > > #ifdef CONFIG_SCHED_CORE > > if (sched_core_enabled(cpu_rq(cpu)) && > >

Re: [PATCH 00/16] dynamic_debug: cleanups, 2 features

2020-06-12 Thread jim . cromie
On Fri, Jun 12, 2020 at 3:31 PM Jason Baron wrote: > > > > On 6/5/20 12:26 PM, Jim Cromie wrote: > > Patchset starts with 7 "cleanups"; > > - it changes section name from vague "__verbose" to "__dyndbg" > > - cleaner docs, drop obsolete comment & useless debug prints, refine > > verbosity, fix

Re: drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast removes address space '' of expression

2020-06-12 Thread Greg Ungerer
On 13/6/20 2:35 am, Luc Van Oostenryck wrote: On Sat, Jun 13, 2020 at 01:33:16AM +1000, Greg Ungerer wrote: On 12/6/20 5:48 pm, Marc Kleine-Budde wrote: I think this one is due to not forcing the volatile cast in __raw_write(). So this change will fix that: diff --git

Re: [GIT PULL] OpenRISC updates for v5.8

2020-06-12 Thread Stafford Horne
CCing list. On Sat, Jun 13, 2020 at 11:17:57AM +0900, Stafford Horne wrote: > Hi Linus, > > Please consider for pull: > > The following changes since commit ae83d0b416db002fe95601e7f97f64b59514d936: > > Linux 5.7-rc2 (2020-04-19 14:35:30 -0700) > > are available in the Git repository at: >

Re: [PATCH v6 4/6] blktrace: annotate required lock on do_blk_trace_setup()

2020-06-12 Thread Bart Van Assche
On 2020-06-08 10:01, Luis Chamberlain wrote: > Ensure it is clear which lock is required on do_blk_trace_setup(). Reviewed-by: Bart Van Assche

Re: [PATCH v6 3/6] block: revert back to synchronous request_queue removal

2020-06-12 Thread Bart Van Assche
On 2020-06-08 10:01, Luis Chamberlain wrote: > + * Drivers exist which depend on the release of the request_queue to be > + * synchronous, it should not be deferred. This sounds mysterious. Which drivers? Why do these depend on this function being synchronous? Anyway: Reviewed-by: Bart Van

Re: [PATCH 1/2] iommu/vt-d: Move Kconfig and Makefile bits down into intel directory

2020-06-12 Thread Lu Baolu
Hi Jerry, On 2020/6/13 7:10, Jerry Snitselaar wrote: Move Intel Kconfig and Makefile bits down into intel directory with the rest of the Intel specific files. Cc: Joerg Roedel Cc: Lu Baolu Thanks! Reviewed-by: Lu Baolu Best regards, baolu Signed-off-by: Jerry Snitselaar ---

Re: [PATCH v8 5/7] iommu/arm-smmu: Add implementation for the adreno GPU SMMU

2020-06-12 Thread kernel test robot
Hi Jordan, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on next-20200612] [cannot apply to iommu/next robh/for-next arm/for-next keystone/next rockchip/for-next arm64/for-next/core shawnguo/for-next soc/for-next v5.7] [if your

RE: linux-next: build warning after merge of the net-next tree

2020-06-12 Thread Kirsher, Jeffrey T
> -Original Message- > From: Stephen Rothwell > Sent: Friday, June 12, 2020 18:16 > To: Kirsher, Jeffrey T > Cc: David Miller ; Networking > ; Linux Next Mailing List n...@vger.kernel.org>; Linux Kernel Mailing List ker...@vger.kernel.org>; Lifshits, Vitaly > Subject: Re: linux-next:

Re: linux-next: build warning after merge of the net-next tree

2020-06-12 Thread Stephen Rothwell
Hi all, On Wed, 27 May 2020 01:15:09 + "Kirsher, Jeffrey T" wrote: > > > -Original Message- > > From: Stephen Rothwell > > Sent: Monday, May 25, 2020 05:40 > > To: David Miller ; Networking > > > > Cc: Linux Next Mailing List ; Linux Kernel > > Mailing > > List ; Lifshits, Vitaly

[PATCH v2] Fix code style same in one function

2020-06-12 Thread zzuedu2000
From: weifenghai Combine two assignments for the variable “l” into one statement. Signed-off-by: weifenghai --- kernel/cgroup/cgroup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 1ea181a58465..c3e6db6e44d8 100644

Re: [PATCH v4 1/2] powerpc/uaccess: Implement unsafe_put_user() using 'asm goto'

2020-06-12 Thread Segher Boessenkool
Hi! On Fri, Jun 12, 2020 at 02:33:09PM -0700, Nick Desaulniers wrote: > On Thu, Jun 11, 2020 at 4:53 PM Segher Boessenkool > wrote: > > The PowerPC part of > > https://gcc.gnu.org/onlinedocs/gcc/Machine-Constraints.html#Machine-Constraints > > (sorry, no anchor) documents %U. > > I thought

[PULL] alpha.git

2020-06-12 Thread Matt Turner
Hi Linus, Please pull a few changes for alpha. They're mostly small janitorial fixes but there's also a build fix and most notably a patch from Mikulas that fixes a hang on boot on the Avanti platform, which required quite a bit of work and review. Thanks, Matt The following changes since

[PATCH v2 01/12] iommu: Change type of pasid to unsigned int

2020-06-12 Thread Fenghua Yu
PASID is defined as a few different types in iommu including "int", "u32", and "unsigned int". To be consistent and to match with ioasid's type, define PASID and its variations (e.g. max PASID) as "unsigned int". No PASID type change in uapi. Suggested-by: Thomas Gleixner Signed-off-by: Fenghua

[PATCH v2 09/12] fork: Clear PASID for new mm

2020-06-12 Thread Fenghua Yu
When a new mm is created, its PASID should be cleared, i.e. the PASID is initialized to its init state 0 on both ARM and X86. Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- v2: - Add this patch to initialize PASID value for a new mm. include/linux/mm_types.h | 2 ++ kernel/fork.c

[PATCH v2 07/12] x86/msr-index: Define IA32_PASID MSR

2020-06-12 Thread Fenghua Yu
The IA32_PASID MSR (0xd93) contains the Process Address Space Identifier (PASID), a 20-bit value. Bit 31 must be set to indicate the value programmed in the MSR is valid. Hardware uses PASID to identify process address space and direct responses to the right address space. Signed-off-by: Fenghua

[PATCH v2 04/12] docs: x86: Add documentation for SVA (Shared Virtual Addressing)

2020-06-12 Thread Fenghua Yu
From: Ashok Raj ENQCMD and Data Streaming Accelerator (DSA) and all of their associated features are a complicated stack with lots of interconnected pieces. This documentation provides a big picture overview for all of the features. Signed-off-by: Ashok Raj Co-developed-by: Fenghua Yu

[PATCH v2 10/12] x86/process: Clear PASID state for a newly forked/cloned thread

2020-06-12 Thread Fenghua Yu
The PASID state has to be cleared on forks, since the child has a different address space. The PASID is also cleared for thread clone. While it would be correct to inherit the PASID in this case, it is unknown whether the new task will use ENQCMD. Giving it the PASID "just in case" would have the

[PATCH v2 11/12] x86/mmu: Allocate/free PASID

2020-06-12 Thread Fenghua Yu
A PASID is allocated for an "mm" the first time any thread attaches to an SVM capable device. Later device attachments (whether to the same device or another SVM device) will re-use the same PASID. The PASID is freed when the process exits (so no need to keep reference counts on how many SVM

[PATCH v2 06/12] x86/fpu/xstate: Add supervisor PASID state for ENQCMD feature

2020-06-12 Thread Fenghua Yu
From: Yu-cheng Yu ENQCMD instruction reads PASID from IA32_PASID MSR. The MSR is stored in the task's supervisor FPU PASID state and is context switched by XSAVES/XRSTORS. Signed-off-by: Yu-cheng Yu Co-developed-by: Fenghua Yu Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- v2: -

[PATCH v2 08/12] mm: Define pasid in mm

2020-06-12 Thread Fenghua Yu
PASID is shared by all threads in a process. So the logical place to keep track of it is in the "mm". Both ARM and X86 need to use the PASID in the "mm". Suggested-by: Christoph Hellwig Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- v2: - This new patch moves "pasid" from x86 specific

[PATCH v2 02/12] ocxl: Change type of pasid to unsigned int

2020-06-12 Thread Fenghua Yu
PASID is defined as "int" although it's a 20-bit value and shouldn't be negative int. To be consistent with type defined in iommu, define PASID as "unsigned int". Suggested-by: Thomas Gleixner Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- v2: - Create this new patch to define PASID as

[PATCH v2 05/12] x86/cpufeatures: Enumerate ENQCMD and ENQCMDS instructions

2020-06-12 Thread Fenghua Yu
Work submission instruction comes in two flavors. ENQCMD can be called both in ring 3 and ring 0 and always uses the contents of PASID MSR when shipping the command to the device. ENQCMDS allows a kernel driver to submit commands on behalf of a user process. The driver supplies the PASID value in

[PATCH v2 12/12] x86/traps: Fix up invalid PASID

2020-06-12 Thread Fenghua Yu
A #GP fault is generated when ENQCMD instruction is executed without a valid PASID value programmed in the current thread's PASID MSR. The #GP fault handler will initialize the MSR if a PASID has been allocated for this process. Decoding the user instruction is ugly and sets a bad architecture

[PATCH v2 03/12] iommu/vt-d: Change flags type to unsigned int in binding mm

2020-06-12 Thread Fenghua Yu
"flags" passed to intel_svm_bind_mm() is a bit mask and should be defined as "unsigned int" instead of "int". Change its type to "unsigned int". Suggested-by: Thomas Gleixner Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- v2: - Add this new patch per Thomas' comment.

[PATCH v2 00/12] x86: tag application address space for devices

2020-06-12 Thread Fenghua Yu
Typical hardware devices require a driver stack to translate application buffers to hardware addresses, and a kernel-user transition to notify the hardware of new work. What if both the translation and transition overhead could be eliminated? This is what Shared Virtual Address (SVA) and ENQCMD

Re: [PATCH] alpha: Fix build around srm_sysrq_reboot_op

2020-06-12 Thread Matt Turner
On Thu, Jun 11, 2020 at 2:14 AM Joerg Roedel wrote: > > From: Joerg Roedel > > The patch introducing the struct was probably never compile tested, > because it sets a handler with a wrong function signature. Wrap the > handler into a functions with the correct signature to fix the build. > >

Re: [PATCH 3/3] KVM:SVM: Enable INVPCID feature on AMD

2020-06-12 Thread Jim Mattson
On Fri, Jun 12, 2020 at 2:47 PM Babu Moger wrote: > > > > On 6/12/20 3:10 PM, Jim Mattson wrote: > > On Fri, Jun 12, 2020 at 12:35 PM Babu Moger wrote: > >> > >> > >> > >>> -Original Message- > >>> From: Jim Mattson > >>> Sent: Thursday, June 11, 2020 6:51 PM > >>> To: Moger, Babu >

Re: [GIT PULL] sound fixes for 5.8-rc1

2020-06-12 Thread John Stultz
On Fri, Jun 12, 2020 at 4:42 AM Srinivas Kandagatla wrote: > > Thanks John for reporting this, > > On 12/06/2020 01:49, John Stultz wrote: > > On Thu, Jun 11, 2020 at 5:13 PM John Stultz wrote: > >> > >> On Thu, Jun 11, 2020 at 6:39 AM Takashi Iwai wrote: > >>> sound fixes for 5.8-rc1 > >>> >

Re: [PATCH 2/2] ASoC: qcom: common: set correct directions for dailinks

2020-06-12 Thread John Stultz
On Fri, Jun 12, 2020 at 5:38 AM Srinivas Kandagatla wrote: > > Currently both FE and BE dai-links are configured bi-directional, > However the DSP BE dais are only single directional, > so set the directions as supported by the BE dais. > > Fixes: c25e295cd77b (ASoC: qcom: Add support to parse

Re: [PATCH v3 4/7] Bluetooth: Add handler of MGMT_OP_REMOVE_ADV_MONITOR

2020-06-12 Thread Miao-chen Chou
Hi Jakub, I uploaded v4 to address these. Thanks for the reminder. Regards, Miao On Fri, Jun 12, 2020 at 10:49 AM Jakub Kicinski wrote: > > On Thu, 11 Jun 2020 23:15:26 -0700 Miao-chen Chou wrote: > > This adds the request handler of MGMT_OP_REMOVE_ADV_MONITOR command. > > Note that the

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

2020-06-12 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the crypto-current tree got a conflict in: drivers/crypto/ccp/sev-dev.c between commit: 835ae3bb530a ("drivers/crypto/ccp/sev-dev.c: get rid of pointless access_ok()") from Linus' tree and commit: 832910f2e6b5 ("crypto: ccp - Fix sparse warnings in

[PATCH v4 1/7] Bluetooth: Add definitions for advertisement monitor features

2020-06-12 Thread Miao-chen Chou
This adds support for Advertisement Monitor API. Here are the commands and events added. - Read Advertisement Monitor Feature command - Add Advertisement Pattern Monitor command - Remove Advertisement Monitor command - Advertisement Monitor Added event - Advertisement Monitor Removed event

[PATCH v4 4/7] Bluetooth: Add handler of MGMT_OP_REMOVE_ADV_MONITOR

2020-06-12 Thread Miao-chen Chou
This adds the request handler of MGMT_OP_REMOVE_ADV_MONITOR command. Note that the controller-based monitoring is not yet in place. This removes the internal monitor(s) without sending HCI traffic, so the request returns immediately. The following test was performed. - Issue btmgmt advmon-remove

[PATCH v4 5/7] Bluetooth: Notify adv monitor added event

2020-06-12 Thread Miao-chen Chou
This notifies management sockets on MGMT_EV_ADV_MONITOR_ADDED event. The following test was performed. - Start two btmgmt consoles, issue a btmgmt advmon-add command on one console and observe a MGMT_EV_ADV_MONITOR_ADDED event on the other Signed-off-by: Miao-chen Chou --- Changes in v4: None

[PATCH v4 6/7] Bluetooth: Notify adv monitor removed event

2020-06-12 Thread Miao-chen Chou
This notifies management sockets on MGMT_EV_ADV_MONITOR_REMOVED event. The following test was performed. - Start two btmgmt consoles, issue a btmgmt advmon-remove command on one console and observe a MGMT_EV_ADV_MONITOR_REMOVED event on the other. Signed-off-by: Miao-chen Chou --- Changes in

[PATCH v4 2/7] Bluetooth: Add handler of MGMT_OP_READ_ADV_MONITOR_FEATURES

2020-06-12 Thread Miao-chen Chou
This adds the request handler of MGMT_OP_READ_ADV_MONITOR_FEATURES command. Since the controller-based monitoring is not yet in place, this report only the supported features but not the enabled features. The following test was performed. - Issuing btmgmt advmon-features. Signed-off-by:

[PATCH v4 7/7] Bluetooth: Update background scan and report device based on advertisement monitors

2020-06-12 Thread Miao-chen Chou
This calls hci_update_background_scan() when there is any update on the advertisement monitors. If there is at least one advertisement monitor, the filtering policy of scan parameters should be 0x00. This also reports device found mgmt events if there is at least one monitor. The following cases

[PATCH v4 3/7] Bluetooth: Add handler of MGMT_OP_ADD_ADV_PATTERNS_MONITOR

2020-06-12 Thread Miao-chen Chou
This adds the request handler of MGMT_OP_ADD_ADV_PATTERNS_MONITOR command. Note that the controller-based monitoring is not yet in place. This tracks the content of the monitor without sending HCI traffic, so the request returns immediately. The following manual test was performed. - Issue btmgmt

[GIT PULL for v5.8-rc1] media updates

2020-06-12 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v5.8-2 For: - some fixes for Kernel 5.8; - a set of atomisp patches. They remove several abstraction layers, and fixes clang and gcc warnings (that were hidden via some macros

Re: [PATCH v6 0/5] Add support for DisplayPort driver on

2020-06-12 Thread Stephen Boyd
Quoting Tanmay Shah (2020-06-11 18:50:25) > These patches add support for Display-Port driver on SnapDragon > hardware. It adds > DP driver and DP PLL driver files along with the needed device-tree > bindings. > > The block diagram of DP driver is shown below: > > >

Re: [RESEND PATCH] dt-bindings: property-units: Add picoseconds type

2020-06-12 Thread Dan Murphy
Rob On 6/12/20 5:17 PM, Rob Herring wrote: On Thu, Jun 11, 2020 at 02:46:28PM -0500, Dan Murphy wrote: Bump Merge window. Will apply when over. No worries.  Just wanted to make sure it was seen and not lost. Dan

Re: [PATCH 2/2] soc: mediatek: devapc: add devapc-mt6873 driver

2020-06-12 Thread Chun-Kuang Hu
Hi, Neal: Neal Liu 於 2020年6月9日 週二 下午6:25寫道: > > MT6873 bus frabric provides TrustZone security support and data > protection to prevent slaves from being accessed by unexpected > masters. > The security violations are logged and sent to the processor for > further analysis or countermeasures. >

[PATCH v2 1/6] usb: typec: Add QCOM PMIC typec detection driver

2020-06-12 Thread Wesley Cheng
The QCOM SPMI typec driver handles the role and orientation detection, and notifies client drivers using the USB role switch framework. It registers as a typec port, so orientation can be communicated using the typec switch APIs. The driver also attains a handle to the VBUS output regulator, so

[PATCH v2 4/6] regulator: Add support for QCOM PMIC VBUS booster

2020-06-12 Thread Wesley Cheng
Some Qualcomm PMICs have the capability to source the VBUS output to connected peripherals. This driver will register a regulator to the regulator list to enable or disable this source by an external driver. Signed-off-by: Wesley Cheng --- drivers/regulator/Kconfig | 10 ++

[PATCH v2 6/6] arm64: boot: dts: qcom: pm8150b: Add DTS node for PMIC VBUS booster

2020-06-12 Thread Wesley Cheng
Add the required DTS node for the USB VBUS output regulator, which is available on PM8150B. This will provide the VBUS source to connected peripherals. Signed-off-by: Wesley Cheng --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 6 ++ arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 7 +++ 2

[PATCH v2 2/6] dt-bindings: usb: Add Qualcomm PMIC type C controller dt-binding

2020-06-12 Thread Wesley Cheng
Introduce the dt-binding for enabling USB type C orientation and role detection using the PM8150B. The driver will be responsible for receiving the interrupt at a state change on the CC lines, reading the orientation/role, and communicating this information to the remote clients, which can

[PATCH v2 5/6] dt-bindings: regulator: Add dt-binding for QCOM PMIC VBUS output regulator

2020-06-12 Thread Wesley Cheng
This describes how to enable the Qualcomm PMIC VBUS booster used for providing power to connected USB peripherals when the USB role is host mode. The driver itself will register the vbus_usb regulator, so that external drivers can utilize the enable/disable regulator APIs. Signed-off-by: Wesley

[PATCH v2 0/6] Introduce PMIC based USB type C detection

2020-06-12 Thread Wesley Cheng
Changes in v2: - Use devm_kzalloc() in qcom_pmic_typec_probe() - Add checks to make sure return value of typec_find_port_power_role() is valid - Added a VBUS output regulator driver, which will be used by the PMIC USB type c driver to enable/disable the source - Added logic to control

[PATCH v2 3/6] arm64: boot: dts: qcom: pm8150b: Add node for USB type C block

2020-06-12 Thread Wesley Cheng
The PM8150B has a dedicated USB type C block, which can be used for type C orientation and role detection. Create the reference node to this type C block for further use. Signed-off-by: Wesley Cheng --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 8 1 file changed, 8 insertions(+) diff

Re: [PATCH 4/4] rcu: use gp_seq instead of rcu_gp_seq for consistency

2020-06-12 Thread Paul E. McKenney
On Fri, Jun 12, 2020 at 10:10:25PM +, Wei Yang wrote: > On Fri, Jun 12, 2020 at 07:12:48AM -0700, Paul E. McKenney wrote: > >On Fri, Jun 12, 2020 at 10:07:55AM +0800, Wei Yang wrote: > >> Commit de30ad512a66 ("rcu: Introduce grace-period sequence numbers") > >> introduce gp_seq in

[PATCH 0/2] iommu: Move AMD and Intel Kconfig + Makefile bits into their directories

2020-06-12 Thread Jerry Snitselaar
This patchset imeplements the suggestion from Linus to move the Kconfig and Makefile bits for AMD and Intel into their respective directories. It also cleans up a couple Kconfig entries to use the newer help attribute instead of ---help--- (complaint from checkpatch). Jerry Snitselaar (2):

[PATCH 2/2] iommu/amd: Move Kconfig and Makefile bits down into amd directory

2020-06-12 Thread Jerry Snitselaar
Move AMD Kconfig and Makefile bits down into the amd directory with the rest of the AMD specific files. Cc: Joerg Roedel Cc: Suravee Suthikulpanit Signed-off-by: Jerry Snitselaar --- drivers/iommu/Kconfig | 45 +- drivers/iommu/Makefile | 5 +

Re: [RFC v2 1/3] dt-bindings: nvmem: Add devicetree bindings for qfprom-efuse

2020-06-12 Thread Doug Anderson
Hi, On Fri, Jun 12, 2020 at 2:59 PM Doug Anderson wrote: > > Hi, > > On Thu, Jun 11, 2020 at 2:49 AM Ravi Kumar Bokka > wrote: > > > > This patch adds dt-bindings document for qfprom-efuse controller. > > > > Signed-off-by: Ravi Kumar Bokka > > --- > >

[PATCH 1/2] iommu/vt-d: Move Kconfig and Makefile bits down into intel directory

2020-06-12 Thread Jerry Snitselaar
Move Intel Kconfig and Makefile bits down into intel directory with the rest of the Intel specific files. Cc: Joerg Roedel Cc: Lu Baolu Signed-off-by: Jerry Snitselaar --- drivers/iommu/Kconfig| 86 +--- drivers/iommu/Makefile | 8 +---

Re: 5.7-rc0: kswapd eats cpu during a disk test?!

2020-06-12 Thread Pavel Machek
Hi! > > +CC linux-mm > > > > On 5/31/20 12:34 PM, Pavel Machek wrote: > > > Hi! > > > > > > This is simple cat /dev/sda > /dev/zero... on thinkpad x60 (x86-32), > > > with spinning rust. > > > > > > PID USER PR NIVIRTRESSHR S %CPU %MEM TIME+ > > > COMMAND > > >

Re: [PATCH] xdp_rxq_info_user: Fix null pointer dereference. Replace malloc/memset with calloc.

2020-06-12 Thread John Fastabend
Jesper Dangaard Brouer wrote: > On Fri, 12 Jun 2020 14:53:27 -0400 > Gaurav Singh wrote: > > > Memset on the pointer right after malloc can cause a > > null pointer deference if it failed to allocate memory. > > A simple fix is to replace malloc/memset with a calloc() > > > > Fixes:

Re: [PATCH bpf] bpf: sockmap: don't attach programs to UDP sockets

2020-06-12 Thread John Fastabend
Jakub Sitnicki wrote: > On Thu, 11 Jun 2020 18:25:20 +0100 > Lorenz Bauer wrote: > > > The stream parser infrastructure isn't set up to deal with UDP > > sockets, so we mustn't try to attach programs to them. > > > > I remember making this change at some point, but I must have lost > > it while

[PATCH v3 0/2] Update K3 DSP remoteproc driver for C71x DSPs

2020-06-12 Thread Suman Anna
Hi All, This series is the updated v3 version of the 64-bit TI C71x DSP support that goes along with the updated v3 TI K3 C66x DSP patch series [1]. Please see the previous cover-letters [2][3] for a summary of supported features. The only change is to Patch 1 that had to be rebased and

[PATCH v3 2/2] remoteproc: k3-dsp: Add support for C71x DSPs

2020-06-12 Thread Suman Anna
The Texas Instrument's K3 J721E SoCs have a newer next-generation C71x DSP Subsystem in the MAIN voltage domain in addition to the previous generation C66x DSP subsystems. The C71x DSP subsystem is based on the TMS320C71x DSP CorePac module. The C71x CPU is a true 64-bit machine including 64-bit

[PATCH v3 1/2] dt-bindings: remoteproc: k3-dsp: Update bindings for C71x DSPs

2020-06-12 Thread Suman Anna
Some Texas Instruments K3 family of SoCs have one of more newer generation TMS320C71x CorePac processor subsystem in addition to the existing TMS320C66x CorePac processor subsystems. Update the device tree bindings document for the C71x DSP devices. The example is also updated to show the single

[PATCH] clk: iproc: round clock rate to the closest

2020-06-12 Thread Ray Jui
From: Lori Hikichi Change from 'DIV_ROUND_UP' to 'DIV_ROUND_CLOSEST' when calculating the clock divisor in the iProc ASIU clock driver to allow to get to the closest clock rate. Fixes: 5fe225c105fd ("clk: iproc: add initial common clock support") Signed-off-by: Lori Hikichi Signed-off-by: Ray

Re: [GIT PULL] proc fixes v2 for v5.8-rc1

2020-06-12 Thread Eric W. Biederman
Linus Torvalds writes: > On Fri, Jun 12, 2020 at 1:06 PM Eric W. Biederman > wrote: >> >> I have a sense that a use after free that anyone can trigger could be a >> bit dangerous, and despite not being the only virtual filesystem in the >> kernel proc is the only virtual filesystem that called

[PATCH v3 2/6] remoteproc: k3: Add TI-SCI processor control helper functions

2020-06-12 Thread Suman Anna
Texas Instruments' K3 generation SoCs have specific modules/register spaces used for configuring the various aspects of a remote processor. These include power, reset, boot vector and other configuration features specific to each compute processor present on the SoC. These registers are managed by

[PATCH v3 5/6] remoteproc: k3-dsp: Add a remoteproc driver of K3 C66x DSPs

2020-06-12 Thread Suman Anna
The Texas Instrument's K3 J721E SoCs have two C66x DSP Subsystems in MAIN voltage domain that are based on the TI's standard TMS320C66x DSP CorePac module. Each subsystem has a Fixed/Floating-Point DSP CPU, with 32 KB each of L1P & L1D SRAMs that can be configured and partitioned as either RAM

  1   2   3   4   5   6   7   8   9   >