[PATCH 1/2] thermal: ti-soc-thermal: Enable addition power management

2020-08-18 Thread Adam Ford
The bandgap sensor can be idled when the processor is too, but it isn't currently being done, so the power consumption of OMAP3 boards can elevated if the bangap sensor is enabled. This patch attempts to use some additional power management to idle the clock to the bandgap when not needed.

[PATCH v6 00/10] net: eth: altera: tse: Add PTP and mSGDMA prefetcher

2020-08-18 Thread Ooi, Joyce
From: Joyce Ooi This patch series cleans up the Altera TSE driver and adds support for the newer msgdma prefetcher as well as ptp support when using the msgdma prefetcher. v2: Rename altera_ptp to intel_fpga_tod, modify msgdma and sgdma tx_buffer functions to be of type netdev_tx_t, and

Re: [PATCH RFC 1/2] mm: Extract SLAB_QUARANTINE from KASAN

2020-08-18 Thread Andrey Konovalov
On Mon, Aug 17, 2020 at 7:32 PM Alexander Popov wrote: > > On 15.08.2020 19:52, Kees Cook wrote: > > On Thu, Aug 13, 2020 at 06:19:21PM +0300, Alexander Popov wrote: > >> Heap spraying is an exploitation technique that aims to put controlled > >> bytes at a predetermined memory location on the

[RFC PATCH 19/30] ima: Configure the new ima namespace from securityfs

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski Add ima securityfs entries to configure per ima namespace: - path to the policy file - path to the x509 certificate - ima kernel boot parameters Policy file and x509 certificate will be parsed and loaded when the first process is born into the new ima namespace,

Re: [PATCH RESEND] docs: update trusted-encrypted.rst

2020-08-18 Thread Jarkko Sakkinen
On Sun, Aug 16, 2020 at 10:12:13AM -0700, James Bottomley wrote: > On Mon, 2020-08-17 at 00:57 +0800, Coly Li wrote: > > On 2020/8/17 00:36, James Bottomley wrote: > > > On Sun, 2020-08-16 at 12:06 -0400, Stefan Berger wrote: > > > [...] > > > > A note in this file states this: > > > > > > > >

[RFC PATCH 14/30] ima: Add per namespace view of the measurement list

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski Modify ima securityfs interface, so that only measurement list entries that belong to the given ima namespace are visible/counted. The initial ima namespace is an exception, its processes have access to all measurement list entries. Signed-off-by: Krzysztof

[RFC PATCH 16/30] ima: Extend permissions to the ima securityfs entries

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski Add "others" permissions to the namespaced ima securityfs entries. It is necessary so that the root in the user namespace that is the parent of the given ima namespace has access to the ima related data. Loosened DAC restrictrions are compensated by an extra check

[RFC PATCH 11/30] ima: Keep track of the measurment list per ima namespace

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski Add a pointer to the tail of the measurement list to the ima namespace when the namespace is created. This will allow to skip the irrelevant measurement list entries while iterating the measurement list in that ima namespace. Only entries with the matching ima

[RFC PATCH 10/30] ima: Add ima namespace ID to the ima ML related structures

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski Add ima namespace ID to the ima_event_data and ima_template_entry. This is done so that the ima namespace ID can be tracked per entry and included in the hash. The following patch will add a new template that will utilize it. IMA namespace ID is simply an inode

Re: [PATCH 1/2] lockdep: improve current->(hard|soft)irqs_enabled synchronisation with actual irq state

2020-08-18 Thread peterz
On Tue, Aug 18, 2020 at 05:22:33PM +1000, Nicholas Piggin wrote: > Excerpts from pet...@infradead.org's message of August 12, 2020 8:35 pm: > > On Wed, Aug 12, 2020 at 06:18:28PM +1000, Nicholas Piggin wrote: > >> Excerpts from pet...@infradead.org's message of August 7, 2020 9:11 pm: > >> > > >>

[PATCH v8 12/17] drm/i915: Factor out HDCP shim functions from dp for use by dp_mst

2020-08-18 Thread Sean Paul
From: Sean Paul These functions are all the same for dp and dp_mst, so move them into a dedicated file for both sst and mst to use. Reviewed-by: Ramalingam C Signed-off-by: Sean Paul Link: https://patchwork.freedesktop.org/patch/msgid/20191203173638.94919-11-s...@poorly.run #v1 Link:

Re: [PATCHv2] soc: qcom: llcc: Support chipsets that can write to llcc registers

2020-08-18 Thread Sai Prakash Ranjan
Hi Doug, On 2020-08-18 20:42, Doug Anderson wrote: Hi, ... I guess to start, it wasn't obvious (to me) that there were two choices and we were picking one. Mentioning that the other alternative was way-based allocation would help a lot. Even if you can't fully explain the differences

Re: [PATCH net-next RFC v2 01/13] devlink: Add reload action option to devlink reload command

2020-08-18 Thread Jakub Kicinski
On Tue, 18 Aug 2020 12:06:13 +0300 Moshe Shemesh wrote: > Or maybe better than "live" say explicitly "no reset": > >     devlink dev reload DEV [ netns { PID | NAME | ID } ] [ action { > driver_reinit | fw_activate [--no_reset] } ] SGTM

[PATCH] iio: pulse: Support PWM capture with TI AM3358 eCAP module

2020-08-18 Thread Darren Schachter
This IIO driver adds support for PWM capture with the TI eCAP module. This driver is based on Matt Porter's eCAP driver from January 2014, which was never merged into the mainline [1]. Like Matt's code, this driver implements interrupt driven triggered buffer capture. However, the driver has been

Re: [PATCH bpf-next v8 5/7] bpf: Implement bpf_local_storage for inodes

2020-08-18 Thread KP Singh
On 8/18/20 5:23 PM, Martin KaFai Lau wrote: > On Tue, Aug 18, 2020 at 05:10:34PM +0200, KP Singh wrote: >> >> >> On 8/18/20 3:27 AM, Martin KaFai Lau wrote:>>> On Mon, Aug 03, 2020 at >> 06:46:53PM +0200, KP Singh wrote: [...] a get_file >> rather fcheck followed by get_file_rcu: >> >>

Re: [PATCH 00/16] IOMMU driver for Kirin 960/970

2020-08-18 Thread Mauro Carvalho Chehab
Hi Robin, Em Tue, 18 Aug 2020 15:47:55 +0100 Robin Murphy escreveu: > On 2020-08-17 08:49, Mauro Carvalho Chehab wrote: > > Add a driver for the Kirin 960/970 iommu. > > > > As on the past series, this starts from the original 4.9 driver from > > the 96boards tree: > > > >

[RFC PATCH 02/30] ima: Add a list of the installed ima namespaces

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski Add a list of the installed ima namespaces. IMA namespace is considered installed, if there is at least one process born in that namespace. This list will be used to check the read-write violations and to detect any object related changes relevant across namespaces.

[RFC PATCH 05/30] ima: Add methods for parsing ima policy configuration string

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski IMA subsystem is configured at boot time using kernel command-line parameters, e.g.: ima_policy=tcb|appraise_tcb|secure_boot. The same configuration options should be available for the new ima namespace. Add new functions to parse configuration string and store parsed

[RFC PATCH 09/30] ima: Enable per ima namespace policy settings

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski Set ima policy per namespace and remove the global settings. Operations on the objects may now have impact in more than one ima namespace and therefore iterate all active ima namespaces when necessary. Read-write violations can now happen across namespaces and should

[RFC PATCH 03/30] ima: Bind ima namespace to the file descriptor

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski IMA namespace reference will be required in ima_file_free() to check the policy and find inode integrity data for the correct ima namespace. ima_file_free() is called on __fput(), and __fput() may be called after releasing namespaces in exit_task_namespaces() in

[RFC PATCH 06/30] ima: Add ima namespace to the ima subsystem APIs

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski Add ima namespace pointer to the input parameters of the relevant functions. This is a preparation for the policy namespacing, more functions may be modified later, when other aspects of the ima are namespaced. Signed-off-by: Krzysztof Struczynski ---

[RFC PATCH 04/30] ima: Add ima policy related data to the ima namespace

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski Collate global variables describing the ima policy in one structure and add it to the ima namespace. Collate setup data (parsed kernel boot parameters) in a separate structure. Per namespace policy is not yet properly set and it is not used. This will be done in the

[RFC PATCH 07/30] ima: Extend the APIs in the integrity subsystem

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski Inode integrity cache will be maintained per ima namespace. Add new functions that allow to specify the iint tree to use. Signed-off-by: Krzysztof Struczynski --- include/linux/integrity.h | 31 security/integrity/iint.c | 126

[RFC PATCH 08/30] ima: Add integrity inode related data to the ima namespace

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski Add an iint tree to the ima namespace. Each namespace should track operations on its objects separately. Per namespace iint tree is not yet used, it will be done in the following patches. Signed-off-by: Krzysztof Struczynski --- include/linux/ima.h |

[RFC PATCH 01/30] ima: Introduce ima namespace

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski IMA namespace wraps global ima resources in an abstraction, to enable ima to work with the containers. Currently, ima namespace contains no useful data but a dummy interface. IMA resources related to different aspects of IMA, namely IMA-audit, IMA-measurement,

[RFC PATCH 00/30] ima: Introduce IMA namespace

2020-08-18 Thread krzysztof.struczynski
From: Krzysztof Struczynski IMA has not been designed to work with containers. It handles every process in the same way, and it cannot distinguish if a process belongs to a container or not. Containers use namespaces to make it appear to the processes in the containers that they have their own

Re: [RFC PATCH v2 0/3] mikroBUS driver for add-on boards

2020-08-18 Thread Greg KH
On Tue, Aug 18, 2020 at 06:18:12PM +0530, Vaishnav M A wrote: > Hi, > > This Patch series is an update to the mikroBUS driver > RFC v1 Patch : https://lkml.org/lkml/2020/7/24/518 . Please use lore.kernel.org for links, we have no idea if lkml.org will be working tomorrow or not :) > The

Re: [PATCH net-next v2 5/7] net: dsa: mt7530: Add the support of MT7531 switch

2020-08-18 Thread Jakub Kicinski
On Tue, 18 Aug 2020 15:14:10 +0800 Landen Chao wrote: > Add new support for MT7531: > > MT7531 is the next generation of MT7530. It is also a 7-ports switch with > 5 giga embedded phys, 2 cpu ports, and the same MAC logic of MT7530. Cpu > port 6 only supports SGMII interface. Cpu port 5 supports

Re: [PATCH bpf-next v8 5/7] bpf: Implement bpf_local_storage for inodes

2020-08-18 Thread Martin KaFai Lau
On Tue, Aug 18, 2020 at 05:10:34PM +0200, KP Singh wrote: > > > On 8/18/20 3:27 AM, Martin KaFai Lau wrote: > > On Mon, Aug 03, 2020 at 06:46:53PM +0200, KP Singh wrote: > >> From: KP Singh > >> > >> Similar to bpf_local_storage for sockets, add local storage for inodes. > >> The life-cycle of

RE: [PATCH v3] ASoC: hdac_hdmi: support 'ELD' mixer

2020-08-18 Thread Lu, Brent
> > Please don't send new patches in the middle of existing threads, it makes it > hard to keep track fo what is going on. Sorry for the problem. Does it mean I should avoid using " --in-reply-to=" when sending new patch set? Regards, Brent

[PATCH v3 02/17] dma-contiguous: simplify cma_early_percent_memory()

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport The memory size calculation in cma_early_percent_memory() traverses memblock.memory rather than simply call memblock_phys_mem_size(). The comment in that function suggests that at some point there should have been call to memblock_analyze() before memblock_phys_mem_size()

[PATCH v3 15/17] memblock: remove unused memblock_mem_size()

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport The only user of memblock_mem_size() was x86 setup code, it is gone now and memblock_mem_size() funciton can be removed. Signed-off-by: Mike Rapoport Reviewed-by: Baoquan He --- include/linux/memblock.h | 1 - mm/memblock.c| 15 --- 2 files

[PATCH v3 14/17] x86/setup: simplify reserve_crashkernel()

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport * Replace magic numbers with defines * Replace memblock_find_in_range() + memblock_reserve() with memblock_phys_alloc_range() * Stop checking for low memory size in reserve_crashkernel_low(). The allocation from limited range will anyway fail if there is no enough

[PATCH v3 00/17] memblock: seasonal cleaning^w cleanup

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport Hi, These patches simplify several uses of memblock iterators and hide some of the memblock implementation details from the rest of the system. The patches are on top of v5.9-rc1 v3 changes: * rebase on v5.9-rc1, as the result this required some non-trivial changes in

[PATCH v3 13/17] x86/setup: simplify initrd relocation and reservation

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport Currently, initrd image is reserved very early during setup and then it might be relocated and re-reserved after the initial physical memory mapping is created. The "late" reservation of memblock verifies that mapped memory size exceeds the size of initrd, then checks whether

[PATCH v3 16/17] memblock: implement for_each_reserved_mem_region() using __next_mem_region()

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport Iteration over memblock.reserved with for_each_reserved_mem_region() used __next_reserved_mem_region() that implemented a subset of __next_mem_region(). Use __for_each_mem_range() and, essentially, __next_mem_region() with appropriate parameters to reduce code duplication.

[PATCH v3 17/17] memblock: use separate iterators for memory and reserved regions

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport for_each_memblock() is used to iterate over memblock.memory in a few places that use data from memblock_region rather than the memory ranges. Introduce separate for_each_mem_region() and for_each_reserved_mem_region() to improve encapsulation of memblock internals from its

Re: [v2] drm/msm: add shutdown support for display platform_driver

2020-08-18 Thread Sai Prakash Ranjan
On 2020-08-18 20:42, Rob Clark wrote: On Tue, Aug 18, 2020 at 3:03 AM Sai Prakash Ranjan wrote: Hi, On 2020-06-01 16:33, Krishna Manikandan wrote: > Define shutdown callback for display drm driver, > so as to disable all the CRTCS when shutdown > notification is received by the driver. > >

[PATCH v3 12/17] arch, drivers: replace for_each_membock() with for_each_mem_range()

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport There are several occurrences of the following pattern: for_each_memblock(memory, reg) { start = __pfn_to_phys(memblock_region_memory_base_pfn(reg); end = __pfn_to_phys(memblock_region_memory_end_pfn(reg)); /* do

[PATCH v3 10/17] memblock: reduce number of parameters in for_each_mem_range()

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport Currently for_each_mem_range() and for_each_mem_range_rev() iterators are the most generic way to traverse memblock regions. As such, they have 8 parameters and they are hardly convenient to users. Most users choose to utilize one of their wrappers and the only user that

[PATCH v3 11/17] arch, mm: replace for_each_memblock() with for_each_mem_pfn_range()

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport There are several occurrences of the following pattern: for_each_memblock(memory, reg) { start_pfn = memblock_region_memory_base_pfn(reg); end_pfn = memblock_region_memory_end_pfn(reg); /* do something with start_pfn

[PATCH v3 09/17] memblock: make memblock_debug and related functionality private

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport The only user of memblock_dbg() outside memblock was s390 setup code and it is converted to use pr_debug() instead. This allows to stop exposing memblock_debug and memblock_dbg() to the rest of the kernel. Signed-off-by: Mike Rapoport Reviewed-by: Baoquan He ---

[PATCH v3 08/17] memblock: make for_each_memblock_type() iterator private

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport for_each_memblock_type() is not used outside mm/memblock.c, move it there from include/linux/memblock.h Signed-off-by: Mike Rapoport Reviewed-by: Baoquan He --- include/linux/memblock.h | 5 - mm/memblock.c| 5 + 2 files changed, 5 insertions(+), 5

[PATCH v3 06/17] riscv: drop unneeded node initialization

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport RISC-V does not (yet) support NUMA and for UMA architectures node 0 is used implicitly during early memory initialization. There is no need to call memblock_set_node(), remove this call and the surrounding code. Signed-off-by: Mike Rapoport --- arch/riscv/mm/init.c | 9

[PATCH v3 05/17] h8300, nds32, openrisc: simplify detection of memory extents

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport Instead of traversing memblock.memory regions to find memory_start and memory_end, simply query memblock_{start,end}_of_DRAM(). Signed-off-by: Mike Rapoport Acked-by: Stafford Horne --- arch/h8300/kernel/setup.c| 8 +++- arch/nds32/kernel/setup.c| 8 ++--

[PATCH v3 04/17] arm64: numa: simplify dummy_numa_init()

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport dummy_numa_init() loops over memblock.memory and passes nid=0 to numa_add_memblk() which essentially wraps memblock_set_node(). However, memblock_set_node() can cope with entire memory span itself, so the loop over memblock.memory regions is redundant. Using a single call to

[PATCH v3 07/17] mircoblaze: drop unneeded NUMA and sparsemem initializations

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport microblaze does not support neither NUMA not SPARSMEM, so there is no point to call memblock_set_node() and sparse_memory_present_with_active_regions() functions during microblaze memory initialization. Remove these calls and the surrounding code. Signed-off-by: Mike

[PATCH v3 03/17] arm, xtensa: simplify initialization of high memory pages

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport The function free_highpages() in both arm and xtensa essentially open-code for_each_free_mem_range() loop to detect high memory pages that were not reserved and that should be initialized and passed to the buddy allocator. Replace open-coded implementation of

Re: [PATCH v3 2/5] coredump: Let dump_emit() bail out on short writes

2020-08-18 Thread Al Viro
On Tue, Aug 18, 2020 at 03:40:28PM +0200, Oleg Nesterov wrote: > On 08/18, Jann Horn wrote: > > > > + if (dump_interrupted()) > > + return 0; > > + n = __kernel_write(file, addr, nr, ); > > + if (n != nr) > > + return 0; > > + file->f_pos = pos; > > Just curious, can't

[PATCH v3 01/17] KVM: PPC: Book3S HV: simplify kvm_cma_reserve()

2020-08-18 Thread Mike Rapoport
From: Mike Rapoport The memory size calculation in kvm_cma_reserve() traverses memblock.memory rather than simply call memblock_phys_mem_size(). The comment in that function suggests that at some point there should have been call to memblock_analyze() before memblock_phys_mem_size() could be

Re: [PATCH V2 1/2] Add new flush_iotlb_range and handle freelists when using iommu_unmap_fast

2020-08-18 Thread Robin Murphy
On 2020-08-18 07:04, Tom Murphy wrote: Add a flush_iotlb_range to allow flushing of an iova range instead of a full flush in the dma-iommu path. Allow the iommu_unmap_fast to return newly freed page table pages and pass the freelist to queue_iova in the dma-iommu ops path. This patch is useful

Re: [PATCH] net: stmmac: Fix signedness bug in stmmac_probe_config_dt()

2020-08-18 Thread Yuehaibing
On 2020/8/18 22:51, Andreas Schwab wrote: > On Aug 18 2020, YueHaibing wrote: > >> The "plat->phy_interface" variable is an enum and in this context GCC >> will treat it as an unsigned int so the error handling is never >> triggered. >> >> Fixes: b9f0b2f634c0 ("net: stmmac: platform: fix probe

Re: [PATCH v36 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-08-18 Thread Nathaniel McCallum
That seems like overkill to me. I'm just asking for one additional mov instruction. :) On Tue, Aug 18, 2020 at 11:06 AM Jarkko Sakkinen wrote: > > On Tue, Aug 18, 2020 at 05:52:41PM +0300, Jarkko Sakkinen wrote: > > On Mon, Aug 10, 2020 at 03:23:17PM -0700, Sean Christopherson wrote: > > > >

[PATCH v2] net: stmmac: Fix signedness bug in stmmac_probe_config_dt()

2020-08-18 Thread YueHaibing
The "plat->phy_interface" variable is an enum and in this context GCC will treat it as an unsigned int so the error handling is never triggered. Fixes: b9f0b2f634c0 ("net: stmmac: platform: fix probe for ACPI devices") Signed-off-by: YueHaibing --- v2: use rc to do err handling ---

Re: [PATCH v36 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-08-18 Thread Jarkko Sakkinen
On Mon, Aug 10, 2020 at 04:08:46PM -0700, Andy Lutomirski wrote: > On Thu, Aug 6, 2020 at 7:55 AM Nathaniel McCallum > wrote: > > > > In a past revision of this patch, I had requested a void *misc > > parameter that could be passed through vdso_sgx_enter_enclave_t into > >

[GIT PULL] irqchip fixes for 5.9, take #1

2020-08-18 Thread Marc Zyngier
Hi Thomas, As -rc1 is out, here's the first batches of fixes for 5.9. The most important one is a fix for a typo that broke modular irqchips using the brand new set of macros. Oh hum... The rest of it is what I was hinting at when I sent the original 5.9 pull request, with a bunch of TI updates

Re: [PATCHv2] soc: qcom: llcc: Support chipsets that can write to llcc registers

2020-08-18 Thread Doug Anderson
Hi, On Tue, Aug 18, 2020 at 2:40 AM Sai Prakash Ranjan wrote: > > Hi, > > On 2020-08-18 02:35, Doug Anderson wrote: > > Hi, > > > > On Mon, Aug 17, 2020 at 7:47 AM Sai Prakash Ranjan > > wrote: > >> > >> From: "Isaac J. Manjarres" > >> > >> Older chipsets may not be allowed to configure

Re: [PATCH v3 0/2] add regmap-spi-avmm & Intel Max10 BMC chip support

2020-08-18 Thread Xu Yilun
I think that's a good optimization. I'll include this change and send a v4. Thanks. On Tue, Aug 18, 2020 at 07:40:45AM -0700, Tom Rix wrote: > Yilun, > > I was looking at the tx side a bit and think the padding function could be > moved into the pkt/phy function.  The pky/phy function already

Re: [v2] drm/msm: add shutdown support for display platform_driver

2020-08-18 Thread Rob Clark
On Tue, Aug 18, 2020 at 3:03 AM Sai Prakash Ranjan wrote: > > Hi, > > On 2020-06-01 16:33, Krishna Manikandan wrote: > > Define shutdown callback for display drm driver, > > so as to disable all the CRTCS when shutdown > > notification is received by the driver. > > > > This change will turn off

[PATCH] staging: emxx_udc: Allow for building on !ARM

2020-08-18 Thread Alex Dewar
Currently the module can only be test built on ARM, although it seems to build fine on x86. Change this to allow for broader test coverage. Signed-off-by: Alex Dewar --- drivers/staging/emxx_udc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH bpf-next v8 5/7] bpf: Implement bpf_local_storage for inodes

2020-08-18 Thread KP Singh
On 8/18/20 3:27 AM, Martin KaFai Lau wrote: > On Mon, Aug 03, 2020 at 06:46:53PM +0200, KP Singh wrote: >> From: KP Singh >> >> Similar to bpf_local_storage for sockets, add local storage for inodes. >> The life-cycle of storage is managed with the life-cycle of the inode. >> i.e. the storage

Re: [PATCH v3 2/5] coredump: Let dump_emit() bail out on short writes

2020-08-18 Thread Jann Horn
On Tue, Aug 18, 2020 at 3:40 PM Oleg Nesterov wrote: > On 08/18, Jann Horn wrote: > > > > + if (dump_interrupted()) > > + return 0; > > + n = __kernel_write(file, addr, nr, ); > > + if (n != nr) > > + return 0; > > + file->f_pos = pos; > > Just curious,

Re: [PATCH v5 00/75] x86: SEV-ES Guest Support

2020-08-18 Thread Joerg Roedel
Hi Mike, On Thu, Jul 30, 2020 at 11:23:50PM +, Mike Stunes wrote: > Yes, FSGSBASE was enabled. If I disable it*, this kernel boots fine, with > both CPUs online. > > *That is, by forcing guest-CPUID[7].EBX bit 0 to 0. Can you please test whether

Re: [PATCH v36 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-08-18 Thread Jarkko Sakkinen
On Tue, Aug 18, 2020 at 05:52:41PM +0300, Jarkko Sakkinen wrote: > On Mon, Aug 10, 2020 at 03:23:17PM -0700, Sean Christopherson wrote: > > > This can be done implicitly by wrapping the struct > > > sgx_enclave_exception in another structure and then using techniques > > > like container_of() to

Re: [PATCH 1/6] staging: hikey9xx: fix Kconfig dependency chain

2020-08-18 Thread Greg Kroah-Hartman
On Tue, Aug 18, 2020 at 04:58:53PM +0200, Mauro Carvalho Chehab wrote: > Both the SPMI controller and the SPMI PMIC driver > depends on the SPMI bus support. > > The dependency for the regulator is also wrong: > it should depends on the SPMI version of the HiSilicon 6421, > and not on the normal

Re: [PATCH] staging: emxx_udc: Use standard BIT() macro

2020-08-18 Thread Alex Dewar
On Tue, Aug 18, 2020 at 07:29:02AM -0700, Randy Dunlap wrote: > On 8/18/20 6:49 AM, Alex Dewar wrote: > > Currently emxx_udc.h defines bit values using local macros. Use the > > standard one instead. > > > > Also, combine bit values with bitwise-or rather than addition, as > > suggested by

Re: [PATCH v3] ASoC: hdac_hdmi: support 'ELD' mixer

2020-08-18 Thread Mark Brown
On Tue, Aug 18, 2020 at 10:36:32PM +0800, Brent Lu wrote: > Add a binary mixer 'ELD' to each HDMI PCM device so user-space can > read the ELD data of external HDMI display. Please don't send new patches in the middle of existing threads, it makes it hard to keep track fo what is going on.

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-18 Thread Michal Hocko
On Tue 18-08-20 06:53:27, Paul E. McKenney wrote: > On Tue, Aug 18, 2020 at 09:43:44AM +0200, Michal Hocko wrote: > > On Mon 17-08-20 15:28:03, Paul E. McKenney wrote: > > > On Mon, Aug 17, 2020 at 10:28:49AM +0200, Michal Hocko wrote: > > > > On Mon 17-08-20 00:56:55, Uladzislau Rezki wrote: > >

[PATCH v8 1/2] virtio: let arch validate VIRTIO features

2020-08-18 Thread Pierre Morel
An architecture may need to validate the VIRTIO devices features based on architecture specifics. Provide a new Kconfig entry, CONFIG_ARCH_HAS_RESTRICTED_MEMORY_ACCESS, the architecture can select when it provides a callback named arch_has_restricted_memory_access to validate the virtio device

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-18 Thread Jeffrey E Altman
On 8/14/2020 1:05 PM, Linus Torvalds (torva...@linux-foundation.org) wrote: > Honestly, I really think you may want an extended [f]statfs(), not > some mount tracking. > > Linus Linus, Thank you for the reply. Perhaps some of the communication disconnect is due to which thread

Re: [PATCH] efi: discover ESRT table on Xen PV too

2020-08-18 Thread Marek Marczykowski-Górecki
On Tue, Aug 18, 2020 at 02:47:10PM +0200, Roger Pau Monné wrote: > On Tue, Aug 18, 2020 at 02:01:35PM +0200, Marek Marczykowski-Górecki wrote: > > Do you mean PV dom0 should receive full EFI memory map? Jan already > > objected this as it would be a layering violation. > > dom0 is already capable

[PATCH v8 0/2] s390: virtio: let arch validate VIRTIO features

2020-08-18 Thread Pierre Morel
Hi all, The goal of the series is to give a chance to the architecture to validate VIRTIO device features. in this respin: I use the original idea from Connie for an optional arch_has_restricted_memory_access. I renamed the callback accordingly, added the definition of

[PATCH 4/6] staging: mfd: hi6421-spmi-pmic: Simplify the compatible string

2020-08-18 Thread Mauro Carvalho Chehab
It is clear that this driver is for PMIC. So, get rid of it at the compatible. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c

[PATCH 5/6] dt: document HiSilicon SPMI controller and mfd/regulator properties

2020-08-18 Thread Mauro Carvalho Chehab
Add documentation for the properties needed by the HiSilicon 6421v600 driver, and by the SPMI controller used to access the chipset. Signed-off-by: Mauro Carvalho Chehab --- .../hikey9xx/hisilicon,hi6421-spmi-pmic.yaml | 159 ++ .../hisilicon,hisi-spmi-controller.yaml |

[PATCH 2/6] staging: mfd: hi6421-spmi-pmic: get rid of interrupt properties

2020-08-18 Thread Mauro Carvalho Chehab
Both irqnum and irqarray properties reflect the same thing: the number of bits and bytes for interrupts at this chipset. E. g.: irqnum = 8 x irqarray This can be seen by the way pending interrupts are handled: /* During probe time */ pmic->irqs = devm_kzalloc(dev,

[PATCH 0/6] Do some cleanups at the HiSilicon 6421 regulator

2020-08-18 Thread Mauro Carvalho Chehab
Hi Greg, Patch 1 contains a Kconfig fixup, addressing the problem you noticed when building those drivers; Patches 2 to 4 addresses some issues at the device tree, pointed by Rob's review. Patch 5 adds the DT documentation. As requested, I moved those also to the staging dir. Patch 6 adds an

[PATCH 1/6] staging: hikey9xx: fix Kconfig dependency chain

2020-08-18 Thread Mauro Carvalho Chehab
Both the SPMI controller and the SPMI PMIC driver depends on the SPMI bus support. The dependency for the regulator is also wrong: it should depends on the SPMI version of the HiSilicon 6421, and not on the normal one. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/Kconfig |

[PATCH 6/6] MAINTAINERS: add an entry for HiSilicon 6421v600 drivers

2020-08-18 Thread Mauro Carvalho Chehab
Add an entry for the SPMI, MFD and PMIC parts of the HiSilicon 6421v600 support. Signed-off-by: Mauro Carvalho Chehab --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 956ecd5ba426..2f497c7d659c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v8 2/2] s390: virtio: PV needs VIRTIO I/O device protection

2020-08-18 Thread Pierre Morel
If protected virtualization is active on s390, the virtio queues are not accessible to the host, unless VIRTIO_F_IOMMU_PLATFORM has been negotiated. Define CONFIG_ARCH_HAS_RESTRICTED_MEMORY_ACCESS and export arch_has_restricted_memory_access to fail probe if that's not the case, preventing a host

[PATCH 3/6] staging: spmi: hisi-spmi-controller: change compatible string

2020-08-18 Thread Mauro Carvalho Chehab
Add the chipset name at the compatible string, as other HiSilicon chipsets with SPMI bus might require something different. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hisi-spmi-controller.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] mm/page_reporting: the "page" must not be the list head

2020-08-18 Thread Alexander Duyck
On Mon, Aug 17, 2020 at 8:22 PM Wei Yang wrote: > > On Mon, Aug 17, 2020 at 09:05:32AM -0700, Alexander Duyck wrote: > > > > > >On 8/17/2020 2:35 AM, David Hildenbrand wrote: > >> On 17.08.20 10:48, Wei Yang wrote: > >> > If "page" is the list head, list_for_each_entry_safe() would stop > >> >

Re: [PATCHv2] arm64: dts: qcom: sc7180: Fix the LLCC base register size

2020-08-18 Thread Doug Anderson
Hi, On Tue, Aug 18, 2020 at 7:55 AM Sai Prakash Ranjan wrote: > > There is one LLCC logical bank(LLCC0) on SC7180 SoC and the > size of the LLCC0 base is 0x5(320KB) not 2MB, so correct > the size and fix copy paste mistake carried over from SDM845. > > Fixes: 7cee5c742899 ("arm64: dts:

Re: [PATCH] drm/amd/display: should check error using DC_OK

2020-08-18 Thread Alex Deucher
On Mon, Aug 17, 2020 at 3:08 AM Tong Zhang wrote: > > core_link_read_dpcd returns only DC_OK(1) and DC_ERROR_UNEXPECTED(-1), > the caller should check error using DC_OK instead of checking against 0 > > Signed-off-by: Tong Zhang Applied. Thanks! Alex > --- >

RE: [PATCH v8 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-08-18 Thread Ben Levinsky
Hi Stefano Please see my comments inline > -Original Message- > From: Stefano Stabellini > Sent: Thursday, August 13, 2020 1:36 PM > To: Ben Levinsky > Cc: Stefano Stabellini ; Michal Simek > ; devicet...@vger.kernel.org; > mathieu.poir...@linaro.org; Ed T. Mooring ; linux- >

Re: [Patch v2] mm/page_reporting: drop stale list head check in page_reporting_cycle

2020-08-18 Thread Alexander Duyck
On Tue, Aug 18, 2020 at 1:45 AM Wei Yang wrote: > > list_for_each_entry_safe() guarantees that we will never stumble over > the list head; ">lru != list" will always evaluate to true. Let's > simplify. > > Signed-off-by: Wei Yang > Reviewed-by: David Hildenbrand > --- > mm/page_reporting.c | 2

[PATCHv2] arm64: dts: qcom: sc7180: Fix the LLCC base register size

2020-08-18 Thread Sai Prakash Ranjan
There is one LLCC logical bank(LLCC0) on SC7180 SoC and the size of the LLCC0 base is 0x5(320KB) not 2MB, so correct the size and fix copy paste mistake carried over from SDM845. Fixes: 7cee5c742899 ("arm64: dts: qcom: sc7180: Fix node order") Fixes: c831fa26 ("arm64: dts: qcom: sc7180:

Re: [PATCH v2 2/4] usb: dwc3: of-simple: Add compatible for rk3328

2020-08-18 Thread Robin Murphy
On 2020-08-17 04:11, travel...@airmail.cc wrote: From: Cameron Nemo Add a compatible to be hooked into by the Rockchip rk3328 device tree. The rk3399 compatible cannot be reused because the rk3328 SoCs may require a specialized driver in the future, and old device trees must remain compatible

Re: [PATCH v36 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-08-18 Thread Jarkko Sakkinen
On Mon, Aug 10, 2020 at 03:23:17PM -0700, Sean Christopherson wrote: > > This can be done implicitly by wrapping the struct > > sgx_enclave_exception in another structure and then using techniques > > like container_of() to find another field. However, this is made more > > difficult by the fact

Re: [PATCH] net: stmmac: Fix signedness bug in stmmac_probe_config_dt()

2020-08-18 Thread Andreas Schwab
On Aug 18 2020, YueHaibing wrote: > The "plat->phy_interface" variable is an enum and in this context GCC > will treat it as an unsigned int so the error handling is never > triggered. > > Fixes: b9f0b2f634c0 ("net: stmmac: platform: fix probe for ACPI devices") > Signed-off-by: YueHaibing > ---

KASAN: use-after-free Write in page_counter_uncharge

2020-08-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a1d21081 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17ceb0ce90 kernel config: https://syzkaller.appspot.com/x/.config?x=21f0d1d2df6d5fc

Re: [PATCH] kprobes: Use module_name() macro

2020-08-18 Thread Masami Hiramatsu
On Tue, 18 Aug 2020 08:08:57 +0300 Jarkko Sakkinen wrote: > It is advised to use module_name() macro instead of dereferencing mod->name > directly. This makes sense for consistencys sake and also it prevents a > hard dependency to CONFIG_MODULES. > > Cc: linux...@kvack.org > Cc: Andi Kleen >

RE: [PATCH v2] ASoC: hdac_hdmi: support 'ELD' mixer

2020-08-18 Thread Lu, Brent
> > This is a bit iffy part. If same PCM is connected to multiple receivers, you > return ELD data for the first one and ignore the rest. OTOH, this is inline > with > comment in hdac_hdmi_get_port_from_cvt() in that this pcm-to-many > routing is not really supported by the driver now. But jack

KASAN: use-after-free Write in page_counter_cancel

2020-08-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:4993e4fe Add linux-next specific files for 20200814 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=10d0d11690 kernel config: https://syzkaller.appspot.com/x/.config?x=2055bd0d83d5ee16 dashboard

[PATCH v3] ASoC: hdac_hdmi: support 'ELD' mixer

2020-08-18 Thread Brent Lu
Add a binary mixer 'ELD' to each HDMI PCM device so user-space can read the ELD data of external HDMI display. If same PCM is connected to multiple receivers, the mixer returns the ELD data for the first one found in the port list and ignore the rest. Thie behavior seems iffy but is aligned with

Re: [PATCH] block/rnbd: Ensure err is always initialized in process_rdma

2020-08-18 Thread Jens Axboe
On 8/17/20 11:49 PM, Nathan Chancellor wrote: > Clang warns: > > drivers/block/rnbd/rnbd-srv.c:150:6: warning: variable 'err' is used > uninitialized whenever 'if' condition is true > [-Wsometimes-uninitialized] > if (IS_ERR(bio)) { > ^~~ >

Re: PROBLEM: Long Workqueue delays.

2020-08-18 Thread Alan Stern
On Tue, Aug 18, 2020 at 11:54:51AM +0100, Jim Baxter wrote: > On 17/08/2020 19:47, Alan Stern wrote: > > > > Unplugging a R/W USB drive without unmounting it first is a great way to > > corrupt the data. > > > Thank you, post development we will only mount the USB stick as R/O. > > >> Using

Re: [PATCH] bfq: fix blkio cgroup leakage v4

2020-08-18 Thread Jens Axboe
Applied with stable and Fixes tag, and noted Oleksandr's testing. -- Jens Axboe

Re: [PATCH 00/16] IOMMU driver for Kirin 960/970

2020-08-18 Thread Robin Murphy
On 2020-08-17 08:49, Mauro Carvalho Chehab wrote: Add a driver for the Kirin 960/970 iommu. As on the past series, this starts from the original 4.9 driver from the 96boards tree: https://github.com/96boards-hikey/linux/tree/hikey970-v4.9 The remaining patches add SPDX headers and

Re: [PATCH v2] drm/mediatek: dsi: fix scrolling of panel with small hfp or hbp

2020-08-18 Thread Chun-Kuang Hu
Hi, Jitao: Jitao Shi 於 2020年8月18日 週二 上午10:41寫道: > > On Tue, 2020-08-18 at 07:42 +0800, Chun-Kuang Hu wrote: > > Hi, Jitao: > > > > Jitao Shi 於 2020年8月17日 週一 下午9:07寫道: > > > > > > horizontal_backporch_byte should be hbp * bpp - hbp extra bytes. > > > So remove the wrong subtraction 10. > > > > >

Re: [PATCH][next] drm/amd/display: fix potential integer overflow when shifting 32 bit variable bl_pwm

2020-08-18 Thread Alex Deucher
On Tue, Aug 18, 2020 at 8:09 AM Colin King wrote: > > From: Colin Ian King > > The 32 bit unsigned integer bl_pwm is being shifted using 32 bit arithmetic > and then being assigned to a 64 bit unsigned integer. There is a potential > for a 32 bit overflow so cast bl_pwm to enforce a 64 bit

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