[PATCH v17 3/5] firmware: xilinx: Add RPU configuration APIs

2020-10-01 Thread Ben Levinsky
This patch adds APIs to access to configure RPU and its processor-specific memory. That is query the run-time mode of RPU as either split or lockstep as well as API to set this mode. In addition add APIs to access configuration of the RPUs' tightly coupled memory (TCM). Signed-off-by: Ben

Re: [PATCH v7 05/13] PCI/ERR: Use "bridge" for clarity in pcie_do_recovery()

2020-10-01 Thread Sean V Kelley
On 1 Oct 2020, at 2:06, Jonathan Cameron wrote: On Wed, 30 Sep 2020 14:58:12 -0700 Sean V Kelley wrote: From: Sean V Kelley The term "dev" is being applied to root ports, switch upstream ports, switch downstream ports, and the upstream ports on endpoints. While endpoint upstream ports

[PATCH] vhost-vdpa: fix page pinning leakage in error path

2020-10-01 Thread Si-Wei Liu
Pinned pages are not properly accounted particularly when mapping error occurs on IOTLB update. Clean up dangling pinned pages for the error path. As the inflight pinned pages, specifically for memory region that strides across multiple chunks, would need more than one free page for book keeping

[PATCH 5/7] Traffic control using high-resolution timer issue

2020-10-01 Thread Erez Geva
- Add new schedule function for Qdisc watchdog. The function avoids reprogram if watchdog already expire before new expire. - Use new schedule function in ETF. - Add ETF range value to kernel configuration. as the value is characteristic to Hardware. Signed-off-by: Erez Geva

[PATCH 1/7] POSIX clock ID check function

2020-10-01 Thread Erez Geva
Add function to check whether a clock ID refer to a file descriptor of a POSIX dynamic clock. Signed-off-by: Erez Geva --- include/linux/posix-timers.h | 5 + kernel/time/posix-timers.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/linux/posix-timers.h

[PATCH 0/7] TC-ETF support PTP clocks series

2020-10-01 Thread Erez Geva
Add support for using PTP clock with Traffic control Earliest TxTime First (ETF) Qdisc. Why do we need ETF to use PTP clock? Current ETF requires to synchronization the system clock to the PTP Hardware clock (PHC) we want to send through. But there are cases that we can not synchronize the

Re: [PATCH v7 00/13] Add RCEC handling to PCI/AER

2020-10-01 Thread Sean V Kelley
On 1 Oct 2020, at 3:16, Jonathan Cameron wrote: On Wed, 30 Sep 2020 14:58:07 -0700 Sean V Kelley wrote: From: Sean V Kelley Changes since v6 [1]: - Remove unused includes in rcec.c. - Add local variable for dev->rcec_ea. - If no valid capability version then just fill in nextbusn = 0xff.

[PATCH 2/7] Function to retrieve main clock state

2020-10-01 Thread Erez Geva
Add kernel function to retrieve main clock oscillator state. As calibration is done from user space daemon, the kernel access function permit read only. Signed-off-by: Erez Geva --- include/linux/timex.h | 1 + kernel/time/timekeeping.c | 9 + 2 files changed, 10 insertions(+) diff

Re: [PATCH v3 10/13] ASoC: tegra: Add audio graph based card driver

2020-10-01 Thread Dmitry Osipenko
01.10.2020 23:57, Dmitry Osipenko пишет: > 01.10.2020 20:33, Sameer Pujar пишет: >> +/* Setup PLL clock as per the given sample rate */ >> +static int tegra_audio_graph_update_pll(struct snd_pcm_substream *substream, >> +struct snd_pcm_hw_params *params) >> +{

[PATCH] vdpa/mlx5: should keep avail_index despite device status

2020-10-01 Thread Si-Wei Liu
A VM with mlx5 vDPA has below warnings while being reset: vhost VQ 0 ring restore failed: -1: Resource temporarily unavailable (11) vhost VQ 1 ring restore failed: -1: Resource temporarily unavailable (11) We should allow userspace emulating the virtio device be able to get to vq's avail_index,

[PATCH 4/7] Fix qdisc_watchdog_schedule_range_ns range check

2020-10-01 Thread Erez Geva
- As all parameters are unsigned. - If 'expires' is bigger than 'last_expires' then the left expression overflows. - It is better to use addition and check both ends of the range. Signed-off-by: Erez Geva --- net/sched/sch_api.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [GIT PULL]: soundwire updates for v5.10-rc1

2020-10-01 Thread Greg KH
On Thu, Oct 01, 2020 at 11:26:32AM +0530, Vinod Koul wrote: > Hi Greg, > > Please pull to receive updates for soundwire subsystem. > > The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: > > Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) > > are available in the Git

[PATCH v2 8/9] x86: Convert mmu context ia32_compat into a proper flags field

2020-10-01 Thread Gabriel Krisman Bertazi
The ia32_compat attribute is a weird thing. It mirrors TIF_IA32 and TIF_X32 and is used only in two very unrelated places: (1) to decide if the vsyscall page is accessible (2) for uprobes to find whether the patched instruction is 32 or 64 bit. In preparation to remove the TI flags, we want new

Re: [PATCH net-next 02/16] devlink: Add reload action option to devlink reload command

2020-10-01 Thread Jakub Kicinski
On Thu, 1 Oct 2020 16:59:05 +0300 Moshe Shemesh wrote: > Add devlink reload action to allow the user to request a specific reload > action. The action parameter is optional, if not specified then devlink > driver re-init action is used (backward compatible). > Note that when required to do

[PATCH v2 6/9] x86: elf: Use e_machine to select setup_additional_pages for x32

2020-10-01 Thread Gabriel Krisman Bertazi
Since TIF_X32 is going away, avoid using it to find the ELF type when choosing which additional pages to set up. According to SysV AMD64 ABI Draft, an AMD64 ELF object using ILP32 must have ELFCLASS32 with (E_MACHINE == EM_X86_64), so use that ELF field to differentiate a x32 object from a IA32

[PATCH v2 9/9] x86: Reclaim TIF_IA32 and TIF_X32

2020-10-01 Thread Gabriel Krisman Bertazi
Now that these flags are no longer used, reclaim those TI bits. Signed-off-by: Gabriel Krisman Bertazi --- arch/x86/include/asm/thread_info.h | 4 arch/x86/kernel/process_64.c | 6 -- 2 files changed, 10 deletions(-) diff --git a/arch/x86/include/asm/thread_info.h

[PATCH v2 7/9] x86: Use current USER_CS to setup correct context on vmx entry

2020-10-01 Thread Gabriel Krisman Bertazi
vmx_prepare_switch_to_guest shouldn't use is_64bit_mm, which has a very specific use in uprobes. Use the user_64bit_mode helper instead. This reduces the usage of is_64bit_mm, which is awkward, since it relies on the personality at load time, which is fine for uprobes, but doesn't seem fine here.

[PATCH v2 5/9] x86: elf: Use e_machine to select start_thread for x32

2020-10-01 Thread Gabriel Krisman Bertazi
Since TIF_X32 is going away, avoid using it to find the ELF type on compat_start_thread According to SysV AMD64 ABI Draft, an AMD64 ELF object using ILP32 must have ELFCLASS32 with (E_MACHINE == EM_X86_64), so use that ELF field to differentiate a x32 object from a IA32 object when executing

[PATCH v2 2/9] x86: Simplify compat syscall userspace allocation

2020-10-01 Thread Gabriel Krisman Bertazi
When allocating user memory space for a compat system call, don't consider whether the originating code is IA32 or X32, just allocate from a safe region for both, beyond the redzone. This should be safe for IA32, and has the benefit of avoiding TIF_IA32, which we want to drop. Suggested-by: Andy

[PATCH v2 1/9] x86: events: Avoid TIF_IA32 when checking 64bit mode

2020-10-01 Thread Gabriel Krisman Bertazi
In preparation to remove TIF_IA32, stop using it in perf events code. Tested by running perf on 32-bit, 64-bit and x32 applications. Suggested-by: Andy Lutomirski Signed-off-by: Gabriel Krisman Bertazi Acked-by: Peter Zijlstra (Intel) --- arch/x86/events/core.c | 2 +-

[PATCH v2 4/9] x86: elf: Use e_machine to choose DLINFO in compat

2020-10-01 Thread Gabriel Krisman Bertazi
Since TIF_X32 is going away, avoid using it to find the ELF type on ARCH_DLINFO. According to SysV AMD64 ABI Draft, an AMD64 ELF object using ILP32 must have ELFCLASS32 with (E_MACHINE == EM_X86_64), so use that ELF field to differentiate a x32 object from a IA32 object when loading ARCH_DLINFO

[PATCH v2 3/9] x86: oprofile: Avoid TIF_IA32 when checking 64bit mode

2020-10-01 Thread Gabriel Krisman Bertazi
In preparation to remove TIF_IA32, stop using it in oprofile code. Signed-off-by: Gabriel Krisman Bertazi --- arch/x86/oprofile/backtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/oprofile/backtrace.c b/arch/x86/oprofile/backtrace.c index

[PATCH v2 0/9] Reclaim TIF_IA32 and TIF_X32

2020-10-01 Thread Gabriel Krisman Bertazi
TI_IA32 and TIF_X32 are not strictly necessary and they are only set at task creation time, which doesn't fit with processes that transition between 64/32 bits. In addition, other reasons to drop these flags are that we are running out of TI flags for x86 and it is generally a good idea to reduce

Re: How should we handle illegal task FPU state?

2020-10-01 Thread Sean Christopherson
On Thu, Oct 01, 2020 at 01:32:04PM -0700, Yu, Yu-cheng wrote: > On 10/1/2020 10:43 AM, Andy Lutomirski wrote: > >The question is: what do we do about it? We have two basic choices, I think. > > > >a) Decide that the saved FPU for a task *must* be valid at all times. > >If there's a failure to

Re: [PATCH V2 1/3] efi: Support for MOK variable config table

2020-10-01 Thread Ard Biesheuvel
On Thu, 1 Oct 2020 at 19:44, Nathan Chancellor wrote: > > On Fri, Sep 04, 2020 at 09:31:05PM -0400, Lenny Szubowicz wrote: > > Because of system-specific EFI firmware limitations, EFI volatile > > variables may not be capable of holding the required contents of > > the Machine Owner Key (MOK)

Re: [PATCH v3 10/13] ASoC: tegra: Add audio graph based card driver

2020-10-01 Thread Dmitry Osipenko
01.10.2020 20:33, Sameer Pujar пишет: > +/* Setup PLL clock as per the given sample rate */ > +static int tegra_audio_graph_update_pll(struct snd_pcm_substream *substream, > + struct snd_pcm_hw_params *params) > +{ > + struct snd_soc_pcm_runtime *rtd =

Re: [PATCH net-next 01/16] devlink: Change devlink_reload_supported() param type

2020-10-01 Thread Jakub Kicinski
On Thu, 1 Oct 2020 16:59:04 +0300 Moshe Shemesh wrote: > Change devlink_reload_supported() function to get devlink_ops pointer > param instead of devlink pointer param. > This change will be used in the next patch to check if devlink reload is > supported before devlink instance is allocated. >

RE: [PATCH v2] PCI: hv: Fix hibernation in case interrupts are not re-created

2020-10-01 Thread Dexuan Cui
> From: Lorenzo Pieralisi > Sent: Thursday, October 1, 2020 3:13 AM > > ... > > I mean this is a Hyper-V specific problem, so IMO we should fix the > > pci-hyperv driver rather than change the PCI device drivers, which > > work perfectly on a physical machine and on other hypervisors. > > Also

Re: [PATCH v4 1/4] mm: memcontrol: use helpers to access page's memcg data

2020-10-01 Thread Roman Gushchin
On Thu, Oct 01, 2020 at 02:59:50PM -0400, Johannes Weiner wrote: > On Thu, Oct 01, 2020 at 11:27:39AM -0700, Roman Gushchin wrote: > > On Thu, Oct 01, 2020 at 09:46:38AM -0400, Johannes Weiner wrote: > > > On Wed, Sep 30, 2020 at 05:27:07PM -0700, Roman Gushchin wrote: > > > > +/* > > > > + *

Re: [PATCH v4 3/9] lib: zstd: Upgrade to latest upstream zstd version 1.4.6

2020-10-01 Thread kernel test robot
Hi Nick, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on kdave/for-next] [also build test WARNING on f2fs/dev-test linus/master v5.9-rc7 next-20201001] [cannot apply to cryptodev/master crypto/master] [If your patch is applied to the wrong git tree, kindly drop

[PATCH] lib: zstd: fix semicolon.cocci warnings

2020-10-01 Thread kernel test robot
From: kernel test robot lib/zstd/compress/zstd_compress.c:3248:24-25: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Nick Terrell Signed-off-by: kernel test robot --- url:

Re: [PATCH V3 1/8] sysfs: Add sysfs_emit and sysfs_emit_at to format sysfs output

2020-10-01 Thread Greg Kroah-Hartman
On Wed, Sep 30, 2020 at 09:17:03PM -0700, Kees Cook wrote: > On Wed, Sep 30, 2020 at 01:57:40PM +0200, Greg Kroah-Hartman wrote: > > Kees, and Rafael, I don't know if you saw this proposal from Joe for > > sysfs files, questions below: > > I'm a fan. I think the use of sprintf() in sysfs might

Re: [PATCH 1/6] powerpc/time: Rename mftbl() to mftb()

2020-10-01 Thread Segher Boessenkool
On Thu, Oct 01, 2020 at 12:42:39PM +, Christophe Leroy wrote: > On PPC64, we have mftb(). > On PPC32, we have mftbl() and an #define mftb() mftbl(). > > mftb() and mftbl() are equivalent, their purpose is to read the > content of SPRN_TRBL, as returned by 'mftb' simplified instruction. > >

Re: [PATCH 1/1] drm/amdgpu: fix NULL pointer dereference for Renoir

2020-10-01 Thread Alex Deucher
On Thu, Oct 1, 2020 at 4:33 PM Dirk Gouders wrote: > > Dirk Gouders writes: > > > Commit c1cf79ca5ced46 (drm/amdgpu: use IP discovery table for renoir) > > introduced a NULL pointer dereference when booting with > > amdgpu.discovery=0, because it removed the call of vega10_reg_base_init() > >

Re: [PATCH v3 05/18] dmaengine: idxd: add IMS support in base driver

2020-10-01 Thread Dave Jiang
On 9/30/2020 11:47 AM, Thomas Gleixner wrote: On Tue, Sep 15 2020 at 16:28, Dave Jiang wrote: struct idxd_device { @@ -170,6 +171,7 @@ struct idxd_device { int num_groups; + u32 ims_offset; u32 msix_perm_offset; u32 wqcfg_offset; u32 grpcfg_offset; @@

[RFC PATCH 18/22] x86/cpufeatures/amx: Enumerate Advanced Matrix Extension (AMX) feature bits

2020-10-01 Thread Chang S. Bae
Intel's Advanced Matrix Extension (AMX) is a new 64-bit extended feature consisting of two-dimensional registers and an accelerator unit. The first implementation of the latter is the tile matrix multiply unit (TMUL). TMUL performs SIMD dot-products on four bytes (INT8) or two bfloat16

[RFC PATCH 03/22] x86/fpu/xstate: Modify address finder prototypes to access all the possible areas

2020-10-01 Thread Chang S. Bae
The xstate infrastructure is not flexible to support dynamic areas in task->fpu. Change the prototype of some address finding functions to access task->fpu directly. Make changes for both outer and inner helpers: get_xsave_addr() and __raw_xsave_addr(). No functional change. Signed-off-by: Chang

[RFC PATCH 00/22] x86: Support Intel Advanced Matrix Extensions

2020-10-01 Thread Chang S. Bae
Intel Advanced Matrix Extensions (AMX)[1][2] will be shipping on servers soon. AMX consists of configurable TMM "TILE" registers plus new accelerator instructions that operate on them. TMUL (Tile matrix MULtiply) is the first accelerator instruction set to use the new registers, and we

[RFC PATCH 14/22] x86/fpu/xstate: Inherit dynamic user state when used in the parent

2020-10-01 Thread Chang S. Bae
When a new task is created, the kernel copies all the states from the parent. If the parent already has any dynamic user state in use, the new task has to expand the XSAVE buffer to save them. Also, disable the associated first-use fault. No functional change until the kernel supports dynamic

[RFC PATCH 22/22] x86/fpu/xstate: Introduce boot-parameters for control some state component support

2020-10-01 Thread Chang S. Bae
"xstate.disable=0x6000" will disable AMX on a system that has AMX compiled into XFEATURE_MASK_USER_SUPPORTED. "xstate.enable=0x6000" will enable AMX on a system that does NOT have AMX compiled into XFEATURE_MASK_USER_SUPPORTED (assuming the kernel is new enough to support this feature). While

[RFC PATCH 01/22] x86/fpu/xstate: Modify area init helper prototypes to access all the possible areas

2020-10-01 Thread Chang S. Bae
The xstate infrastructure is not flexible to support dynamic areas in task->fpu. Change the fpstate_init() prototype to access task->fpu directly. It treats a null pointer as indicating init_fpstate, as this initial data does not belong to any task. For the compacted format, fpstate_init_xstate()

[RFC PATCH 15/22] x86/fpu/xstate: Support ptracer-induced xstate area expansion

2020-10-01 Thread Chang S. Bae
ptrace() may request an update to task->fpu that has not yet been allocated. Detect this case and allocate task->fpu to support the request. Also, disable the (now unnecessary) associated first-use fault. No functional change until the kernel supports dynamic user states. Signed-off-by: Chang S.

[RFC PATCH 17/22] x86/fpu/xstate: Extend the table for mapping xstate components with features

2020-10-01 Thread Chang S. Bae
At compile-time xfeatures_mask_all includes all possible XCR0 features. At run-time fpu__init_system_xstate() clears features in xfeatures_mask_all that are not enabled in CPUID. It does this by looping through all possible XCR0 features. Update the code to handle the possibility that there will

[RFC PATCH 11/22] x86/fpu/xstate: Update xstate area address finder for supporting dynamic user xstate

2020-10-01 Thread Chang S. Bae
__raw_xsave_addr() returns the requested component's pointer in an XSAVE buffer, by simply looking up the offset table. The offset used to be fixed, but, with dynamic user states, it becomes variable. get_xstate_size() has a routine to find an offset at run-time. Refactor to use it for the

[RFC PATCH 10/22] x86/fpu/xstate: Update xstate save function for supporting dynamic user xstate

2020-10-01 Thread Chang S. Bae
copy_xregs_to_kernel() used to save all user states in an invariably sufficient buffer. When the dynamic user state is enabled, it becomes conditional which state to be saved. fpu->state_mask can indicate which state components are reserved to be saved in XSAVE buffer. Use it as XSAVE's

[RFC PATCH 07/22] x86/fpu/xstate: Introduce helpers to manage an xstate area dynamically

2020-10-01 Thread Chang S. Bae
task->fpu has a buffer to keep the extended register states, but it is not expandable at runtime. Introduce runtime methods and new fpu struct fields to support the expansion. fpu->state_mask indicates the saved states per task and fpu->state_ptr points the dynamically allocated area.

[RFC PATCH 21/22] selftest/x86/amx: Include test cases for the AMX state management

2020-10-01 Thread Chang S. Bae
This selftest exercises the kernel's ability to inherit and context switch AMX state, by verifying that they retain unique data when creating a child process and between multiple threads. Also, ptrace() is used to insert AMX state into existing threads -- both before and after the existing thread

[RFC PATCH 13/22] x86/fpu/xstate: Expand dynamic user state area on first use

2020-10-01 Thread Chang S. Bae
Intel's Extended Feature Disable (XFD) feature is an extension of the XSAVE architecture. XFD allows the kernel to enable a feature state in XCR0 and to receive a #NM trap when a task uses instructions accessing that state. In this way, Linux can allocate the large task->fpu buffer only for tasks

Re: [PATCH v1 00/12] Intel FPGA Security Manager Class Driver

2020-10-01 Thread Russ Weight
On 9/5/20 7:13 AM, Wu, Hao wrote: >> Subject: [PATCH v1 00/12] Intel FPGA Security Manager Class Driver >> >> >> These patches depend on the patchset: "add regmap-spi-avmm & Intel >> Max10 BMC chip support" which is currently under review. >> >>

[RFC PATCH 09/22] x86/fpu/xstate: Introduce wrapper functions for organizing xstate area access

2020-10-01 Thread Chang S. Bae
task->fpu now has two possible xstate areas, fpu->state or fpu->state_ptr. Instead of open code for accessing to one of the two areas, rearrange them to use a new wrapper. Some open code (e.g., in KVM) is left unchanged as not going to use fpu->state_ptr at the moment. No functional change until

[RFC PATCH 16/22] x86/fpu/xstate: Support dynamic user state in the signal handling path

2020-10-01 Thread Chang S. Bae
Entering a signal handler, the kernel saves XSAVE area. The dynamic user state is better to be saved only when used. fpu->state_mask can help to exclude unused states. Returning from signal handler, XRSTOR re-initializes the excluded state components. No functional change until the kernel

[RFC PATCH 19/22] x86/fpu/amx: Define AMX state components and have it used for boot-time checks

2020-10-01 Thread Chang S. Bae
Linux uses check_xstate_against_struct() to sanity check the size of XSTATE-enabled features. AMX is the XSAVE-enabled feature, and its size is not hard-coded but discoverable at run-time via CPUID. The AMX state is composed of state components 17 and 18, which are all user state components. The

[RFC PATCH 20/22] x86/fpu/amx: Enable the AMX feature in 64-bit mode

2020-10-01 Thread Chang S. Bae
In 64-bit mode, include the AMX state components in XFEATURE_MASK_USER_SUPPORTED. The XFD feature will be used to dynamically allocate per-task XSAVE buffer on first use. Signed-off-by: Chang S. Bae Reviewed-by: Len Brown Cc: x...@kernel.org Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH 02/22] x86/fpu/xstate: Modify xstate copy helper prototypes to access all the possible areas

2020-10-01 Thread Chang S. Bae
The xstate infrastructure is not flexible to support dynamic areas in task->fpu. Make the xstate copy functions to access task->fpu directly. No functional change. Signed-off-by: Chang S. Bae Reviewed-by: Len Brown Cc: x...@kernel.org Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH 04/22] x86/fpu/xstate: Modify save and restore helper prototypes to access all the possible areas

2020-10-01 Thread Chang S. Bae
The xstate infrastructure is not flexible to support dynamic areas in task->fpu. Make the xstate save and restore helpers to access task->fpu directly. No functional change. Signed-off-by: Chang S. Bae Reviewed-by: Len Brown Cc: x...@kernel.org Cc: linux-kernel@vger.kernel.org Cc:

[RFC PATCH 06/22] x86/fpu/xstate: Outline dynamic xstate area size in the task context

2020-10-01 Thread Chang S. Bae
The xstate area size in task->fpu used to be fixed at runtime. To accommodate dynamic user states, introduce variables for representing the maximum and default (as minimum) area sizes. do_extra_xstate_size_checks() is ready to calculate both sizes, which can be compared with CPUID. CPUID can

[RFC PATCH 12/22] x86/fpu/xstate: Update xstate context copy function for supporting dynamic area

2020-10-01 Thread Chang S. Bae
There are xstate context copy functions that used in ptrace() and signal return paths. They serve callers to read (or write) xstate values in the task->fpu's buffer, or to get initial values. With dynamic user states, a component's position in the buffer may vary and the initial value is not

[RFC PATCH 05/22] x86/fpu/xstate: Introduce a new variable for dynamic user states

2020-10-01 Thread Chang S. Bae
The kernel recently supported the dynamic supervisor states. The approach does not save the register states at every context switch (even used), but only when needed. It is not suitable for user states. Introduce xfeatures_mask_user_dynamic to identify dynamic user states, and rename these as

[RFC PATCH 08/22] x86/fpu/xstate: Define the scope of the initial xstate data

2020-10-01 Thread Chang S. Bae
init_fpstate covers all the component states. But it becomes less efficient to do this as the state size trends larger but with trivial initial data. Limit init_fpstate by clarifying its size and coverage, which are all but dynamic user states. The dynamic states are assumed to be large but

Re: [PATCH v6 0/5] DVFS support for Venus

2020-10-01 Thread Doug Anderson
Hi, On Wed, Sep 16, 2020 at 12:26 AM Stanimir Varbanov wrote: > > Hi, > > On 9/16/20 8:33 AM, Rajendra Nayak wrote: > > > > On 9/1/2020 7:50 PM, Rajendra Nayak wrote: > >> Rob, can you pick PATCH 1 since its already reviewed by you. > >> Stan, Patch 2 and 3 will need to be picked by you and they

Re: Linux 5.9-rc7 / VmallocTotal wrongly reported

2020-10-01 Thread Roman Gushchin
On Thu, Oct 01, 2020 at 12:58:36PM -0700, Linus Torvalds wrote: > On Thu, Oct 1, 2020 at 12:56 PM Roman Gushchin wrote: > > > > Bastian, can you, please, share your config? > > Bastian actually did that in the original email, but that was only > sent to me and Andrew in private. > > Here's that

Re: [PATCH 1/1] drm/amdgpu: fix NULL pointer dereference for Renoir

2020-10-01 Thread Dirk Gouders
Dirk Gouders writes: > Commit c1cf79ca5ced46 (drm/amdgpu: use IP discovery table for renoir) > introduced a NULL pointer dereference when booting with > amdgpu.discovery=0, because it removed the call of vega10_reg_base_init() > for that case. > > Fix this by calling that funcion if

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-10-01 Thread Dmitry Osipenko
01.10.2020 14:04, Nicolin Chen пишет: > On Thu, Oct 01, 2020 at 12:23:16PM +0200, Thierry Reding wrote: > > > >> It looks to me like the only reason why you need this new global > API is >> because PCI devices may not have a device tree node with a phandle to >> the IOMMU.

Re: How should we handle illegal task FPU state?

2020-10-01 Thread Yu, Yu-cheng
On 10/1/2020 10:43 AM, Andy Lutomirski wrote: Our current handling of illegal task FPU state is currently rather simplistic. We basically ignore the issue with this extable code: /* * Handler for when we fail to restore a task's FPU state. We should never get * here because the FPU state

Re: [GIT PULL] arm64 fix for 5.9-rc8/final

2020-10-01 Thread pr-tracker-bot
The pull request you sent on Thu, 1 Oct 2020 18:35:07 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/eed2ef4403de3d8937ccb624e15d3c5004e7dda5 Thank you! -- Deet-doot-dot, I am a

[PATCH] locking/atomics: Check atomic-arch-fallback.h too

2020-10-01 Thread Paul Bolle
The sha1sum of include/linux/atomic-arch-fallback.h isn't checked by check-atomics.sh. It's not clear why it's skipped so let's check it too. Signed-off-by: Paul Bolle --- It seems it never has been checked. So this does cast some doubt about the usefulness of these tests. But I'm clueless about

[PATCH] ARM: multi_v7_defconfig: ti: Enable networking options for nfs boot

2020-10-01 Thread Grygorii Strashko
Enable networking options required for NFS boot on TI platforms, which is widely for automated test systems. - enable new TI CPSW switch driver and related NET_SWITCHDEV config - enable TI DP83867 phy - explicitly enable PTP clock support to ensure dependent networking drivers will stay built-in

Re: [git pull] IOMMU Fixes for Linux v5.9-rc7

2020-10-01 Thread pr-tracker-bot
The pull request you sent on Thu, 1 Oct 2020 20:50:30 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git > tags/iommu-fixes-v5.9-rc7 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/44b6e23be32be4470b1b8bf27380c2e9cca98e2b Thank you! --

Re: [musl] [PATCH 1/1] uapi: Don't include in

2020-10-01 Thread Petr Vorel
Hi Rich, > On Thu, Oct 01, 2020 at 09:52:31PM +0200, Petr Vorel wrote: > > + update code where needed (include in code which > > included only to get struct sysinfo or SI_LOAD_SHIFT). > > The reason is to avoid indirect include when using > > some network headers: or others [1] -> > > -> .

Re: [musl] [PATCH 1/1] uapi: Don't include in

2020-10-01 Thread Rich Felker
On Thu, Oct 01, 2020 at 09:52:31PM +0200, Petr Vorel wrote: > + update code where needed (include in code which > included only to get struct sysinfo or SI_LOAD_SHIFT). > > The reason is to avoid indirect include when using > some network headers: or others [1] -> > -> . > > This indirect

Re: [PATCH v11 2/3] arch: Wire up trusted_for(2)

2020-10-01 Thread Mickaël Salaün
On 01/10/2020 21:33, Tycho Andersen wrote: > On Thu, Oct 01, 2020 at 07:02:31PM +0200, Mickaël Salaün wrote: >> --- a/include/uapi/asm-generic/unistd.h >> +++ b/include/uapi/asm-generic/unistd.h >> @@ -859,9 +859,11 @@ __SYSCALL(__NR_openat2, sys_openat2) >> __SYSCALL(__NR_pidfd_getfd,

[PATCH v15 15/15] mtd: spi-nor: micron-st: allow using MT35XU512ABA in Octal DTR mode

2020-10-01 Thread Pratyush Yadav
Since this flash doesn't have a Profile 1.0 table, the Octal DTR capabilities are enabled in the post SFDP fixup, along with the 8D-8D-8D fast read settings. Enable Octal DTR mode with 20 dummy cycles to allow running at the maximum supported frequency of 200Mhz. The flash supports the soft

[PATCH v15 11/15] mtd: spi-nor: sfdp: detect Soft Reset sequence support from BFPT

2020-10-01 Thread Pratyush Yadav
A Soft Reset sequence will return the flash to Power-on-Reset (POR) state. It consists of two commands: Soft Reset Enable and Soft Reset. Find out if the sequence is supported from BFPT DWORD 16. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.h | 1 +

[PATCH v15 08/15] mtd: spi-nor: Introduce SNOR_F_IO_MODE_EN_VOLATILE

2020-10-01 Thread Pratyush Yadav
From: Tudor Ambarus We don't want to enter a stateful mode, where a X-X-X I/O mode is entered by setting a non-volatile bit, because in case of a reset or a crash, once in the non-volatile mode, we may not be able to recover in bootloaders and we may break the SPI NOR boot. Forbid by default

[PATCH v15 12/15] mtd: spi-nor: core: perform a Soft Reset on shutdown

2020-10-01 Thread Pratyush Yadav
Perform a Soft Reset on shutdown on flashes that support it so that the flash can be reset to its initial state and any configurations made by spi-nor (given that they're only done in volatile registers) will be reset. This will hand back the flash in pristine state for any further operations on

[PATCH v15 05/15] mtd: spi-nor: sfdp: parse xSPI Profile 1.0 table

2020-10-01 Thread Pratyush Yadav
This table is indication that the flash is xSPI compliant and hence supports octal DTR mode. Extract information like the fast read opcode, dummy cycles, the number of dummy cycles needed for a Read Status Register command, and the number of address bytes needed for a Read Status Register command.

[PATCH v15 10/15] mtd: spi-nor: core: enable octal DTR mode when possible

2020-10-01 Thread Pratyush Yadav
Allow flashes to specify a hook to enable octal DTR mode. Use this hook whenever possible to get optimal transfer speeds. Signed-off-by: Pratyush Yadav --- drivers/mtd/spi-nor/core.c | 38 ++ drivers/mtd/spi-nor/core.h | 2 ++ 2 files changed, 40

[PATCH v15 09/15] mtd: spi-nor: Parse SFDP SCCR Map

2020-10-01 Thread Pratyush Yadav
From: Tudor Ambarus Parse just the 22nd dword and look for the 'DTR Octal Mode Enable Volatile bit'. SPI_NOR_IO_MODE_EN_VOLATILE should be set just for the flashes that don't define the optional SFDP SCCR Map. For the others, let the SFDP do its job and fill the SNOR_F_IO_MODE_EN_VOLATILE flag.

[PATCH v15 14/15] mtd: spi-nor: spansion: add support for Cypress Semper flash

2020-10-01 Thread Pratyush Yadav
The Cypress Semper flash is an xSPI compliant octal DTR flash. Add support for using it in octal DTR mode. The flash by default boots in a hybrid sector mode. But the sector map table on the part I had was programmed incorrectly and the SMPT values on the flash don't match the public datasheet.

[PATCH v15 13/15] mtd: spi-nor: core: disable Octal DTR mode on suspend.

2020-10-01 Thread Pratyush Yadav
On resume, the init procedure will be run that will re-enable it. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index

[PATCH v15 03/15] mtd: spi-nor: add support for DTR protocol

2020-10-01 Thread Pratyush Yadav
Double Transfer Rate (DTR) is SPI protocol in which data is transferred on each clock edge as opposed to on each clock cycle. Make framework-level changes to allow supporting flashes in DTR mode. Right now, mixed DTR modes are not supported. So, for example a mode like 4S-4D-4D will not work. All

[PATCH v15 00/15] mtd: spi-nor: add xSPI Octal DTR support

2020-10-01 Thread Pratyush Yadav
Hi, This series adds support for Octal DTR flashes in the SPI NOR framework, and then adds hooks for the Cypress Semper and Micron Xcella flashes to allow running them in Octal DTR mode. This series assumes that the flash is handed to the kernel in Legacy SPI mode. Tested on Micron MT35X and

[PATCH v15 06/15] mtd: spi-nor: core: use dummy cycle and address width info from SFDP

2020-10-01 Thread Pratyush Yadav
The xSPI Profile 1.0 table specifies how many dummy cycles and address bytes are needed for the Read Status Register command in octal DTR mode. Use that information to send the correct Read SR command. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 10

[PATCH v15 01/15] mtd: spi-nor: core: use EOPNOTSUPP instead of ENOTSUPP

2020-10-01 Thread Pratyush Yadav
ENOTSUPP is not a SUSV4 error code. Using EOPNOTSUPP is preferred in its stead. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c

[PATCH v15 07/15] mtd: spi-nor: core: do 2 byte reads for SR and FSR in DTR mode

2020-10-01 Thread Pratyush Yadav
Some controllers, like the cadence qspi controller, have trouble reading only 1 byte in DTR mode. So, do 2 byte reads for SR and FSR commands in DTR mode, and then discard the second byte. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 15

[PATCH v15 04/15] mtd: spi-nor: sfdp: get command opcode extension type from BFPT

2020-10-01 Thread Pratyush Yadav
Some devices in DTR mode expect an extra command byte called the extension. The extension can either be same as the opcode, bitwise inverse of the opcode, or another additional byte forming a 16-byte opcode. Get the extension type from the BFPT. For now, only flashes with "repeat" and "inverse"

[PATCH v15 02/15] mtd: spi-nor: add spi_nor_controller_ops_{read_reg,write_reg,erase}()

2020-10-01 Thread Pratyush Yadav
They are thin wrappers around nor->controller_ops->{read_reg,write_reg,erase}(). In a future commit DTR support will be added. These ops can not be supported by the controller_ops hooks and these helpers will make it easier to reject those calls. Signed-off-by: Pratyush Yadav Reviewed-by: Tudor

[PATCH v3] arm64/mm: add fallback option to allocate virtually contiguous memory

2020-10-01 Thread Sudarshan Rajagopalan
When section mappings are enabled, we allocate vmemmap pages from physically continuous memory of size PMD_SIZE using vmemmap_alloc_block_buf(). Section mappings are good to reduce TLB pressure. But when system is highly fragmented and memory blocks are being hot-added at runtime, its possible

Re: [RFC PATCH next-20200930] treewide: Convert macro and uses of __section(foo) to __section("foo")

2020-10-01 Thread Joe Perches
On Thu, 2020-10-01 at 14:39 -0500, Segher Boessenkool wrch/ote: > Hi! > > On Thu, Oct 01, 2020 at 12:15:39PM +0200, Miguel Ojeda wrote: > > > So it looks like the best option is to exclude these > > > 2 files from conversion. > > > > Agreed. Nevertheless, is there any reason arch/powerpc/*

[PATCH v3] arm64/mm: add fallback option to allocate virtually

2020-10-01 Thread Sudarshan Rajagopalan
V1: The initial patch used the approach to abort at the first instance of PMD_SIZE allocation failure, unmaps all previously mapped sections using vmemmap_free and maps the entire request with vmemmap_populate_basepages to allocate virtually contiguous memory. https://lkml.org/lkml/2020/9/10/66

WARNING in handle_exception_nmi

2020-10-01 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:fb0155a0 Merge tag 'nfs-for-5.9-3' of git://git.linux-nfs... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11a7329d90 kernel config: https://syzkaller.appspot.com/x/.config?x=adebb40048274f92

Re: [PATCH 3/4] mmap locking API: Don't check locking if the mm isn't live yet

2020-10-01 Thread Jann Horn
On Thu, Oct 1, 2020 at 9:15 PM Jason Gunthorpe wrote: > On Thu, Oct 01, 2020 at 01:51:33AM +0200, Jann Horn wrote: > > On Thu, Oct 1, 2020 at 1:26 AM Jason Gunthorpe wrote: > > > On Wed, Sep 30, 2020 at 10:14:57PM +0200, Jann Horn wrote: > > > > On Wed, Sep 30, 2020 at 2:50 PM Jann Horn wrote:

Re: [PATCH v3 04/18] dmaengine: idxd: add interrupt handle request support

2020-10-01 Thread Dave Jiang
On 9/30/2020 11:36 AM, Thomas Gleixner wrote: On Tue, Sep 15 2020 at 16:28, Dave Jiang wrote: +#define INT_HANDLE_IMS_TABLE 0x1 +int idxd_device_request_int_handle(struct idxd_device *idxd, int idx, + int *handle, enum idxd_interrupt_type irq_type)

Kernel 5.9-rc regression.

2020-10-01 Thread Zhou Yanjie
Hi Thomas and list, There is a strange phenomenon in kernel 5.9-rc: when using kernel 5.9-rc with debian 10 and running htop, the memory footprint will be displayed as 3.99T. When the actual memory footprint increases, the displayed value will be reduced to 3.98T, 3.97T etc. These phenomena

Re: linux-next: Tree for Oct 1 (drivers/mfd/simple-mfd-i2c.o)

2020-10-01 Thread Randy Dunlap
On 10/1/20 4:39 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20200930: > on x86_64: ld: drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe': simple-mfd-i2c.c:(.text+0x48): undefined reference to `__devm_regmap_init_i2c' ld: drivers/mfd/simple-mfd-i2c.o: in function

Re: [PATCH v3 devicetree 0/2] Add Seville Ethernet switch to T1040RDB

2020-10-01 Thread David Miller
From: Vladimir Oltean Date: Thu, 1 Oct 2020 16:20:11 +0300 > Seville is a DSA switch that is embedded inside the T1040 SoC, and > supported by the mscc_seville DSA driver inside drivers/net/dsa/ocelot. > > This series adds this switch to the SoC's dtsi files and to the T1040RDB > board file.

Re: [PATCH tip/core/rcu 14/15] rcu/tree: Allocate a page when caller is preemptible

2020-10-01 Thread Uladzislau Rezki
On Thu, Oct 01, 2020 at 11:02:20AM +0200, Michal Hocko wrote: > On Wed 30-09-20 16:21:54, Paul E. McKenney wrote: > > On Wed, Sep 30, 2020 at 10:41:39AM +0200, Michal Hocko wrote: > > > On Tue 29-09-20 18:53:27, Paul E. McKenney wrote: > [...] > > > > No argument on it being confusing, and I hope

[PATCH 1/1] drm/amdgpu: fix NULL pointer dereference for Renoir

2020-10-01 Thread Dirk Gouders
Commit c1cf79ca5ced46 (drm/amdgpu: use IP discovery table for renoir) introduced a NULL pointer dereference when booting with amdgpu.discovery=0, because it removed the call of vega10_reg_base_init() for that case. Fix this by calling that funcion if amdgpu_discovery == 0 in addition to the case

Re: [PATCH 1/4] of/fdt: Update zone_dma_bits when running in bcm2711

2020-10-01 Thread Rob Herring
On Thu, Oct 1, 2020 at 12:31 PM Nicolas Saenz Julienne wrote: > > On Thu, 2020-10-01 at 18:23 +0100, Catalin Marinas wrote: > > On Thu, Oct 01, 2020 at 06:15:01PM +0100, Catalin Marinas wrote: > > > Hi Nicolas, > > > > > > Thanks for putting this together. > > > > > > On Thu, Oct 01, 2020 at

[PATCH 0/1] drm/amdgpu: fix NULL pointer dereference for Renoir

2020-10-01 Thread Dirk Gouders
Alex Deucher writes: > On Wed, Sep 30, 2020 at 4:46 PM Dirk Gouders wrote: >> >> Commit c1cf79ca5ced46 (drm/amdgpu: use IP discovery table for renoir) >> introduced a NULL pointer dereference when booting with >> amdgpu.discovery=0. >> >> For amdgpu.discovery=0 that commit effectively removed

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