RE: STRICTLY CONFIDENTIAL (Respond Immediately)

2020-10-06 Thread From: Steve Odonkon
Esteem Complement,Tuesday October 6th 2020 Hello, my name is Steve Odonkon, Audit Accounting Officer of Standard Chartered Bank, Basinghall Ave, London, United Kingdom. I got your information when I was searching for an oversea partner among other names, I ask for your pardon if my approach

[PATCH 06/14] mm: add struct address_space to set_page_dirty() callback

2020-10-06 Thread jglisse
From: Jérôme Glisse This is part of patchset to remove dependency on struct page.mapping field so that we can temporarily update it to point to a special structure tracking temporary page state (note that original mapping pointer is preserved and can still be accessed but at a cost). Add struct

[PATCH 00/14] Small step toward KSM for file back page.

2020-10-06 Thread jglisse
From: Jérôme Glisse This patchset is a step toward a larger objective: generalize existing KSM into a mechanism allowing exclusive write control for a page; either anonymous memory (like KSM today) or file back page (modulo GUP which would block that like it does today for KSM). Exclusive write

[PATCH 04/14] mm: add struct address_space to readpage() callback

2020-10-06 Thread jglisse
From: Jérôme Glisse This is part of patchset to remove dependency on struct page.mapping field so that we can temporarily update it to point to a special structure tracking temporary page state (note that original mapping pointer is preserved and can still be accessed but at a cost). Add struct

[PATCH 03/14] fs: directly use a_ops->freepage() instead of a local copy of it.

2020-10-06 Thread jglisse
From: Jérôme Glisse Coccinelle is confuse with function pointer, convert to directly use a_ops->freepage() to be nice to coccinelle. Signed-off-by: Jérôme Glisse Cc: linux-fsde...@vger.kernel.org Cc: linux...@kvack.org Cc: Alexander Viro Cc: Tejun Heo Cc: Jan Kara Cc: Josef Bacik Cc: Andrew

[PATCH 01/14] mm/pxa: page exclusive access add header file for all helpers.

2020-10-06 Thread jglisse
From: Jérôme Glisse Add include/linux/page-xa.h where all helpers related to Page eXclusive Acces (PXA) will be added (in following patches). Also introduce MAPPING_NULL as a temporary define use to simplify the mass modifications to stop relying on struct page.mapping and instead pass down mapp

[PATCH 05/14] mm: add struct address_space to writepage() callback

2020-10-06 Thread jglisse
From: Jérôme Glisse This is part of patchset to remove dependency on struct page.mapping field so that we can temporarily update it to point to a special structure tracking temporary page state (note that original mapping pointer is preserved and can still be accessed but at a cost). Add struct

[PATCH 07/14] mm: add struct address_space to invalidatepage() callback

2020-10-06 Thread jglisse
From: Jérôme Glisse This is part of patchset to remove dependency on struct page.mapping field so that we can temporarily update it to point to a special structure tracking temporary page state (note that original mapping pointer is preserved and can still be accessed but at a cost). Add struct

[PATCH 02/14] fs: define filler_t as a function pointer type

2020-10-06 Thread jglisse
From: Jérôme Glisse Coccinelle is confuse by filler_t not being a regular function pointer type. As they are no reason to define filler_t as a non pointer type redefine it as a function pointer type and update function prototype accordingly. Signed-off-by: Jérôme Glisse Cc: linux...@kvack.org C

[PATCH 10/14] mm: add struct address_space to putback_page() callback

2020-10-06 Thread jglisse
From: Jérôme Glisse This is part of patchset to remove dependency on struct page.mapping field so that we can temporarily update it to point to a special structure tracking temporary page state (note that original mapping pointer is preserved and can still be accessed but at a cost). Add struct

[PATCH 09/14] mm: add struct address_space to freepage() callback

2020-10-06 Thread jglisse
From: Jérôme Glisse This is part of patchset to remove dependency on struct page.mapping field so that we can temporarily update it to point to a special structure tracking temporary page state (note that original mapping pointer is preserved and can still be accessed but at a cost). Add struct

[PATCH 13/14] mm: add struct address_space to isolate_page() callback

2020-10-06 Thread jglisse
From: Jérôme Glisse This is part of patchset to remove dependency on struct page.mapping field so that we can temporarily update it to point to a special structure tracking temporary page state (note that original mapping pointer is preserved and can still be accessed but at a cost). Add struct

[PATCH 12/14] mm: add struct address_space to is_partially_uptodate() callback

2020-10-06 Thread jglisse
From: Jérôme Glisse This is part of patchset to remove dependency on struct page.mapping field so that we can temporarily update it to point to a special structure tracking temporary page state (note that original mapping pointer is preserved and can still be accessed but at a cost). Add struct

[PATCH 11/14] mm: add struct address_space to launder_page() callback

2020-10-06 Thread jglisse
From: Jérôme Glisse This is part of patchset to remove dependency on struct page.mapping field so that we can temporarily update it to point to a special structure tracking temporary page state (note that original mapping pointer is preserved and can still be accessed but at a cost). Add struct

[PATCH 08/14] mm: add struct address_space to releasepage() callback

2020-10-06 Thread jglisse
From: Jérôme Glisse This is part of patchset to remove dependency on struct page.mapping field so that we can temporarily update it to point to a special structure tracking temporary page state (note that original mapping pointer is preserved and can still be accessed but at a cost). Add struct

[PATCH 14/14] mm: add struct address_space to is_dirty_writeback() callback

2020-10-06 Thread jglisse
From: Jérôme Glisse This is part of patchset to remove dependency on struct page.mapping field so that we can temporarily update it to point to a special structure tracking temporary page state (note that original mapping pointer is preserved and can still be accessed but at a cost). Add struct

Re: [PATCH v3 4/7] drivers: leds: Add the iEi WT61P803 PUZZLE LED driver

2020-10-06 Thread Luka Kovacic
On Tue, Oct 6, 2020 at 8:41 AM Luka Kovacic wrote: > > On Wed, Sep 30, 2020 at 9:48 PM Pavel Machek wrote: > > > > Hi! > > > > > +static int iei_wt61p803_puzzle_led_brightness_set_blocking(struct > > > led_classdev *cdev, > > > + enum led_brightness brightness) > > > +{ > > > + s

Re: [PATCH v4 7/7] Input: Add "inhibited" property

2020-10-06 Thread Dmitry Torokhov
On Tue, Oct 06, 2020 at 03:04:28PM +0200, Andrzej Pietrasiewicz wrote: > Hi Dmitry, > > W dniu 05.10.2020 o 20:10, Dmitry Torokhov pisze: > > Hi Andrzej, > > > > On Mon, Jun 08, 2020 at 01:22:11PM +0200, Andrzej Pietrasiewicz wrote: > > > @@ -284,8 +284,11 @@ static int input_get_disposition(stru

Re: [PATCH v4 02/13] x86/platform/uv: Remove SCIR MMR references for UVY systems.

2020-10-06 Thread Mike Travis
On 10/6/2020 6:16 AM, Borislav Petkov wrote: Subject: Re: [PATCH v4 02/13] x86/platform/uv: Remove SCIR MMR references for UVY systems. You mean "UV" systems, right? Or are there "UVY" systems too? git grep says no. I thought there was more references to the UVY class which currently has on

Re: [PATCH v4 7/7] Input: Add "inhibited" property

2020-10-06 Thread Dmitry Torokhov
On Tue, Oct 06, 2020 at 06:11:02PM -0700, Dmitry Torokhov wrote: > On Tue, Oct 06, 2020 at 03:04:28PM +0200, Andrzej Pietrasiewicz wrote: > > Hi Dmitry, > > > > W dniu 05.10.2020 o 20:10, Dmitry Torokhov pisze: > > > Hi Andrzej, > > > > > > On Mon, Jun 08, 2020 at 01:22:11PM +0200, Andrzej Pietra

Re: [PATCH 1/2] x86/stackprotector/32: Make the canary into a regular percpu variable

2020-10-06 Thread Andy Lutomirski
On Tue, Oct 6, 2020 at 10:14 AM Brian Gerst wrote: > > On Mon, Oct 5, 2020 at 3:31 PM Andy Lutomirski wrote: > > > > On 32-bit kernels, the stackprotector canary is quite nasty -- it is > > stored at %gs:(20), which is nasty because 32-bit kernels use %fs for > > percpu storage. It's even nastie

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

2020-10-06 Thread Sean Christopherson
On Wed, Oct 07, 2020 at 03:22:36AM +0300, Jarkko Sakkinen wrote: > On Tue, Oct 06, 2020 at 04:21:29PM -0700, Sean Christopherson wrote: > > On Tue, Oct 06, 2020 at 08:28:19PM +0300, Jarkko Sakkinen wrote: > > > On Tue, Oct 06, 2020 at 08:15:32AM -0700, Sean Christopherson wrote: > > > > On Tue, Oct

[PATCH v3 1/6] iio: sx9310: Support hardware gain factor

2020-10-06 Thread Stephen Boyd
Add support to set the hardware gain of the channels as a multiplier of 2x, 4x, or 8x. Cc: Daniel Campello Cc: Lars-Peter Clausen Cc: Peter Meerwald-Stadler Cc: Douglas Anderson Cc: Gwendal Grignou Cc: Evan Green Signed-off-by: Stephen Boyd --- drivers/iio/proximity/sx9310.c | 109

[PATCH v3 0/6] iio: sx9310: Support setting various settings

2020-10-06 Thread Stephen Boyd
I need to configure various settings such as thresholds, gain factors, etc. on this device. Some settings matter at boot, while others can wait for userspace to configure things. This patch series adds support to set these various bits in the registers of this device. Changes from v2 (https://lor

[PATCH v3 4/6] iio: sx9310: Support setting debounce values

2020-10-06 Thread Stephen Boyd
The rising and falling directions can be debounced in the hardware as "close" and "far" debounce settings. Add support for these as rising and falling debounce settings. Cc: Daniel Campello Cc: Lars-Peter Clausen Cc: Peter Meerwald-Stadler Cc: Douglas Anderson Cc: Gwendal Grignou Cc: Evan Gre

[PATCH v3 2/6] iio: sx9310: Support setting proximity thresholds

2020-10-06 Thread Stephen Boyd
Add support to set the proximity thresholds for each channel. Cc: Daniel Campello Cc: Lars-Peter Clausen Cc: Peter Meerwald-Stadler Cc: Douglas Anderson Cc: Gwendal Grignou Cc: Evan Green Signed-off-by: Stephen Boyd --- drivers/iio/proximity/sx9310.c | 114 +

[PATCH v3 3/6] iio: sx9310: Support setting hysteresis values

2020-10-06 Thread Stephen Boyd
Add support for setting the hysteresis as a shifted value of a channel's proximity threshold. Each channel can have a different threshold, but the hysteresis applies to all channels as a right shift factor. Therefore, duplicate the hysteresis value across all channels and make it depend on the chan

[PATCH v3 5/6] dt-bindings: iio: sx9310: Add various settings as DT properties

2020-10-06 Thread Stephen Boyd
We need to set various bits in the hardware registers for this device to operate properly depending on how it is installed. Add a handful of DT properties to configure these things. Cc: Daniel Campello Cc: Lars-Peter Clausen Cc: Peter Meerwald-Stadler Reviewed-by: Rob Herring Cc: Cc: Douglas

[PATCH v3 6/6] iio: sx9310: Set various settings from DT

2020-10-06 Thread Stephen Boyd
These properties need to be set during driver probe. Parse any DT properties and replace the default register settings with the ones parsed from DT. Cc: Daniel Campello Cc: Lars-Peter Clausen Cc: Peter Meerwald-Stadler Cc: Rob Herring Cc: Cc: Douglas Anderson Cc: Gwendal Grignou Cc: Evan Gr

Re: [PATCH v2 3/3] dt-bindings: thermal: update sustainable-power with abstract scale

2020-10-06 Thread Doug Anderson
Hi, On Tue, Oct 6, 2020 at 3:24 PM Rob Herring wrote: > > On Fri, Oct 2, 2020 at 12:39 PM Doug Anderson wrote: > > > > Hi, > > > > On Fri, Oct 2, 2020 at 9:40 AM Lukasz Luba wrote: > > > > > > On 10/2/20 4:47 PM, Doug Anderson wrote: > > > > Hi, > > > > > > > > On Fri, Oct 2, 2020 at 8:13 AM Lu

Re: [PATCH v4 06/13] x86/platform/uv: Add and Decode Arch Type in UVsystab

2020-10-06 Thread Mike Travis
On 10/6/2020 8:19 AM, Borislav Petkov wrote: On Mon, Oct 05, 2020 at 02:35:58PM -0700, Mike Travis wrote: On 10/5/2020 2:21 PM, Borislav Petkov wrote: On Mon, Oct 05, 2020 at 03:39:22PM -0500, Mike Travis wrote: A patch to add and process the UV Arch Type field in the UVsystab passed from

[PATCH v2] selftests/bpf: Fix test_verifier after introducing resolve_pseudo_ldimm64

2020-10-06 Thread Hao Luo
Commit 4976b718c355 ("bpf: Introduce pseudo_btf_id") switched the order of check_subprogs() and resolve_pseudo_ldimm() in the verifier. Now an empty prog expects to see the error "last insn is not an the prog of a single invalid ldimm exit or jmp" instead, because the check for subprogs comes first

Re: [PATCH] Input: evdev - per-client waitgroups

2020-10-06 Thread dmitry . torokhov
On Tue, Oct 06, 2020 at 09:15:32AM +, k...@kl.wtf wrote: > October 6, 2020 1:35 AM, dmitry.torok...@gmail.com wrote: > > > On Wed, Apr 29, 2020 at 08:41:26PM +0200, Kenny Levinsen wrote: > > > >> All evdev clients share a common waitgroup. On new input events, this > >> waitgroup is woken onc

[PATCH v5 2/2] leds: mt6360: Add LED driver for MT6360

2020-10-06 Thread Gene Chen
From: Gene Chen Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, 3-channel RGB LED support Register/Flash/Breath Mode, and 1-channel for moonlight LED. Signed-off-by: Gene Chen --- drivers/leds/Kconfig | 12 + drivers/leds/Makefile | 1 + drivers/leds/led

[PATCH v5 1/2] dt-bindings: leds: Add bindings for MT6360 LED

2020-10-06 Thread Gene Chen
From: Gene Chen Add bindings document for LED support on MT6360 PMIC Signed-off-by: Gene Chen --- .../devicetree/bindings/leds/leds-mt6360.yaml | 95 ++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-mt6360.yaml diff -

[PATCH v5 0/2] leds: mt6360: Add LED driver for MT6360

2020-10-06 Thread Gene Chen
This patch series add MT6360 LED support contains driver and binding document Gene Chen (2) dt-bindings: leds: Add bindings for MT6360 LED leds: mt6360: Add LED driver for MT6360 Documentation/devicetree/bindings/leds/leds-mt6360.yaml | 95 + drivers/leds/Kconfig

[PATCH 6/6] KVM: selftests: Verify supported CR4 bits can be set before KVM_SET_CPUID2

2020-10-06 Thread Sean Christopherson
Extend the KVM_SET_SREGS test to verify that all supported CR4 bits, as enumerated by KVM, can be set before KVM_SET_CPUID2, i.e. without first defining the vCPU model. KVM is supposed to skip guest CPUID checks when host userspace is stuffing guest state. Check the inverse as well, i.e. that KVM

[PATCH 5/6] KVM: x86: Return bool instead of int for CR4 and SREGS validity checks

2020-10-06 Thread Sean Christopherson
Rework the common CR4 and SREGS checks to return a bool instead of an int, i.e. true/false instead of 0/-EINVAL, and add "is" to the name to clarify the polarity of the return value (which is effectively inverted by this change). No functional changed intended. Signed-off-by: Sean Christopherson

[PATCH 3/6] KVM: SVM: Drop VMXE check from svm_set_cr4()

2020-10-06 Thread Sean Christopherson
Drop svm_set_cr4()'s explicit check CR4.VMXE now that common x86 handles the check by incorporating VMXE into the CR4 reserved bits, via kvm_cpu_caps. SVM obviously does not set X86_FEATURE_VMX. No functional change intended. Signed-off-by: Sean Christopherson --- arch/x86/kvm/svm/svm.c | 3 --

[PATCH 0/6] KVM: x86: KVM_SET_SREGS.CR4 bug fixes and cleanup

2020-10-06 Thread Sean Christopherson
Two bug fixes to handle KVM_SET_SREGS without a preceding KVM_SET_CPUID2. The overarching issue is that kvm_x86_ops.set_cr4() can fail, but its invocation from __set_sregs(), a.k.a. KVM_SET_SREGS, ignores the result. Fix the issue by moving all validity checks out of .set_cr4() in one way or anoth

[PATCH 1/6] KVM: VMX: Drop guest CPUID check for VMXE in vmx_set_cr4()

2020-10-06 Thread Sean Christopherson
Drop vmx_set_cr4()'s somewhat hidden guest_cpuid_has() check on VMXE now that common x86 handles the check by incorporating VMXE into the CR4 reserved bits, i.e. in cr4_guest_rsvd_bits. This fixes a bug where KVM incorrectly rejects KVM_SET_SREGS with CR4.VMXE=1 if it's executed before KVM_SET_CPU

[PATCH 2/6] KVM: VMX: Drop explicit 'nested' check from vmx_set_cr4()

2020-10-06 Thread Sean Christopherson
Drop vmx_set_cr4()'s explicit check on the 'nested' module param now that common x86 handles the check by incorporating VMXE into the CR4 reserved bits, via kvm_cpu_caps. X86_FEATURE_VMX is set in kvm_cpu_caps (by vmx_set_cpu_caps()), if and only if 'nested' is true. No functional change intended

[PATCH 4/6] KVM: x86: Move vendor CR4 validity check to dedicated kvm_x86_ops hook

2020-10-06 Thread Sean Christopherson
Split out VMX's checks on CR4.VMXE to a dedicated hook, .is_valid_cr4(), and invoke the new hook from kvm_valid_cr4(). This fixes an issue where KVM_SET_SREGS would return success while failing to actually set CR4. Fixing the issue by explicitly checking kvm_x86_ops.set_cr4()'s return in __set_sr

Re: [PATCH V8 1/5] PCI: Add defines for Designated Vendor-Specific Extended Capability

2020-10-06 Thread David E. Box
On Tue, 2020-10-06 at 19:51 -0500, Bjorn Helgaas wrote: > On Tue, Oct 06, 2020 at 03:45:54PM -0700, David E. Box wrote: > > Hi Bjorn, > > > > This patch has been acked and unchanged for weeks. Is it possible > > to > > get this pulled into next? We have SIOV and CXL related work that > > is > > us

Re: PCI: Race condition in pci_create_sysfs_dev_files

2020-10-06 Thread Oliver O'Halloran
On Wed, Oct 7, 2020 at 10:26 AM Bjorn Helgaas wrote: > > I'm not really a fan of this because pci_sysfs_init() is a bit of a > hack to begin with, and this makes it even more complicated. > > It's not obvious from the code why we need pci_sysfs_init(), but > Yinghai hinted [1] that we need to crea

[tip:auto-latest] BUILD SUCCESS 6f7122ae48059b458385c6a750575faa6f4ef64d

2020-10-06 Thread kernel test robot
lyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20201006 x86_64 randconfig-a002-20201

Re: [External] Re: [PATCH v2 0/5] io_uring: Fix async workqueue is not canceled on some corner case

2020-10-06 Thread Muchun Song
On Wed, Oct 7, 2020 at 4:26 AM Jens Axboe wrote: > > On 9/28/20 6:50 AM, Muchun Song wrote: > > Ping guys. This is worth fixing. > > Agree - can you respin with the suggested change? OK, will do. > > -- > Jens Axboe > -- Yours, Muchun

Re: [PATCH v2] mtd: spi-nor: Fix address width on flash chips > 16MB

2020-10-06 Thread Joel Stanley
On Sun, 4 Oct 2020 at 21:33, Bert Vermeulen wrote: > > If a flash chip has more than 16MB capacity but its BFPT reports > BFPT_DWORD1_ADDRESS_BYTES_3_OR_4, the spi-nor framework defaults to 3. > > The check in spi_nor_set_addr_width() doesn't catch it because addr_width > did get set. This fixes t

Re: [PATCH v2] selftests/bpf: Fix test_verifier after introducing resolve_pseudo_ldimm64

2020-10-06 Thread Alexei Starovoitov
On Tue, Oct 06, 2020 at 06:23:13PM -0700, Hao Luo wrote: > Commit 4976b718c355 ("bpf: Introduce pseudo_btf_id") switched > the order of check_subprogs() and resolve_pseudo_ldimm() in > the verifier. Now an empty prog expects to see the error "last > insn is not an the prog of a single invalid ldimm

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

2020-10-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/rxrpc/conn_event.c between commit: fa1d113a0f96 ("rxrpc: Fix some missing _bh annotations on locking conn->state_lock") from the net tree and commit: 245500d853e9 ("rxrpc: Rewrite the client connection manager

Re: [PATCH] MIPS: pgtable: Remove used PAGE_USERIO define

2020-10-06 Thread Huacai Chen
s/used/unused/g, but it is too late, I'm sorry. Huacai On Tue, Oct 6, 2020 at 7:31 PM Thomas Bogendoerfer wrote: > > On Mon, Oct 05, 2020 at 01:28:46PM +0200, Thomas Bogendoerfer wrote: > > There are no users of PAGE_USERIO. > > > > Signed-off-by: Thomas Bogendoerfer > > --- > > arch/mips/incl

[PATCH bpf-next] kernel/bpf/verifier: fix build when NET is not enabled

2020-10-06 Thread Randy Dunlap
Fix build errors in kernel/bpf/verifier.c when CONFIG_NET is not enabled. ../kernel/bpf/verifier.c:3995:13: error: ‘btf_sock_ids’ undeclared here (not in a function); did you mean ‘bpf_sock_ops’? .btf_id = &btf_sock_ids[BTF_SOCK_TYPE_SOCK_COMMON], ../kernel/bpf/verifier.c:3995:26: error: ‘BTF_

[PATCH v3] selftests/bpf: Fix test_verifier after introducing resolve_pseudo_ldimm64

2020-10-06 Thread Hao Luo
Commit 4976b718c355 ("bpf: Introduce pseudo_btf_id") switched the order of check_subprogs() and resolve_pseudo_ldimm() in the verifier. Now an empty prog expects to see the error "last insn is not an the prog of a single invalid ldimm exit or jmp" instead, because the check for subprogs comes first

Re: [PATCH v2] selftests/bpf: Fix test_verifier after introducing resolve_pseudo_ldimm64

2020-10-06 Thread Hao Luo
Ack. Sent one with just deletion. Hao On Tue, Oct 6, 2020 at 7:04 PM Alexei Starovoitov wrote: > > On Tue, Oct 06, 2020 at 06:23:13PM -0700, Hao Luo wrote: > > Commit 4976b718c355 ("bpf: Introduce pseudo_btf_id") switched > > the order of check_subprogs() and resolve_pseudo_ldimm() in > > the

Re: [PATCH] ext4/xfs: add page refcount helper

2020-10-06 Thread Dan Williams
On Tue, Oct 6, 2020 at 4:09 PM Ralph Campbell wrote: > > There are several places where ZONE_DEVICE struct pages assume a reference > count == 1 means the page is idle and free. Instead of open coding this, > add a helper function to hide this detail. > > Signed-off-by: Ralph Campbell > Reviewed-

Re: linux-next: Fixes tag needs some work in the powerpc tree

2020-10-06 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > In commit > > 3b6c3adbb2fa ("powerpc/perf: Exclude pmc5/6 from the irrelevant PMU group > constraints") > > Fixes tag > > Fixes: 7ffd948 ("powerpc/perf: factor out power8 pmu functions") > > has these problem(s): > > - SHA1 should be at least 12 digits

[PATCH] [v2] thermal: core: add upper and lower limits to power_actor_set_power

2020-10-06 Thread Michael Kao
The upper and lower limits of thermal throttle state in the DT do not apply to the Intelligent Power Allocation (IPA) governor. Add the clamping for cooling device upper and lower limits in the power_actor_set_power() used by IPA. Signed-off-by: Michael Kao --- drivers/thermal/thermal_core.c | 2

Re: [PATCH 0/4] drivers core: Introduce CPU type sysfs interface

2020-10-06 Thread Ricardo Neri
On Tue, Oct 06, 2020 at 09:51:53AM +0100, Qais Yousef wrote: > Hi Ricardo Hi Qais, Thanks for chiming in. > > Adding some people who might be interested. > > On 10/02/20 18:17, Ricardo Neri wrote: > > Hybrid CPU topologies combine processors with more than one type of > > micro-architecture. H

Re: [PATCH] mm: swap: Use memset to fill the swap_map with SWAP_HAS_CACHE

2020-10-06 Thread linmiaohe
Friendly ping. > We could use helper memset to fill the swap_map with SWAP_HAS_CACHE instead > of a direct loop here to simplify the code. Also we can remove the local > variable i and map this way. > > Signed-off-by: Miaohe Lin > --- > mm/swapfile.c | 7 ++- > 1 file changed, 2 insertions

Re: [PATCH] mm: mmap: Fix general protection fault in unlink_file_vma()

2020-10-06 Thread linmiaohe
Friendly ping. > The syzbot reported the below general protection fault: > > general protection fault, probably for non-canonical address > 0xe00eeaee003b: [#1] PREEMPT SMP KASAN > KASAN: maybe wild-memory-access in range > [0x007001d8-0x007001df] > CPU: 1 PID: 10488 Comm:

Re: [PATCH] arm64/mm: Validate hotplug range before creating linear mapping

2020-10-06 Thread Anshuman Khandual
On 10/06/2020 09:04 PM, David Hildenbrand wrote: > On 17.09.20 10:46, Anshuman Khandual wrote: >> During memory hotplug process, the linear mapping should not be created for >> a given memory range if that would fall outside the maximum allowed linear >> range. Else it might cause memory corrupt

[PATCH] fs: dax: fix build error on ARC

2020-10-06 Thread Randy Dunlap
From: Randy Dunlap fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in (beside copy_page()) and add to fs/dax.c to fix the build error. ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

Re: [PATCH] scsi: pmcraid: Fix memory allocation in 'pmcraid_alloc_sglist()'

2020-10-06 Thread Martin K. Petersen
> When the scatter list is allocated in 'pmcraid_alloc_sglist()', the > corresponding pointer should be stored in 'scatterlist' within the > 'pmcraid_sglist' structure. Otherwise, 'scatterlist' is NULL. > > This leads to a potential memory leak and NULL pointer dereference. > Fixes: ed4414cef2ad

Re: [PATCH] fs: dax: fix build error on ARC

2020-10-06 Thread Vineet Gupta
On 10/6/20 7:54 PM, Randy Dunlap wrote: > From: Randy Dunlap > > fs/dax.c uses copy_user_page() but ARC does not provide that interface, > resulting in a build error. > > Provide copy_user_page() in (beside copy_page()) and > add to fs/dax.c to fix the build error. > > ../fs/dax.c: In functio

Re: [PATCH -next] scsi: initio: use module_pci_driver to simplify the code

2020-10-06 Thread Martin K. Petersen
Liu, > Use the module_pci_driver() macro to make the code simpler by > eliminating module_init and module_exit calls. Applied to 5.10/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH -next] scsi: dc395x: use module_pci_driver to simplify the code

2020-10-06 Thread Martin K. Petersen
Liu, > Use the module_pci_driver() macro to make the code simpler by > eliminating module_init and module_exit calls. Applied to 5.10/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

RE: irq_build_affinity_masks() allocates improper affinity if num_possible_cpus() > num_present_cpus()?

2020-10-06 Thread Dexuan Cui
> From: Thomas Gleixner > Sent: Tuesday, October 6, 2020 11:58 AM > > ... > > I pass through an MSI-X-capable PCI device to the Linux VM (which has > > only 1 virtual CPU), and the below code does *not* report any error > > (i.e. pci_alloc_irq_vectors_affinity() returns 2, and request_irq() > > re

Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface

2020-10-06 Thread Ricardo Neri
On Tue, Oct 06, 2020 at 09:37:44AM +0200, Greg Kroah-Hartman wrote: > On Mon, Oct 05, 2020 at 05:57:36PM -0700, Ricardo Neri wrote: > > On Sat, Oct 03, 2020 at 10:53:45AM +0200, Greg Kroah-Hartman wrote: > > > On Fri, Oct 02, 2020 at 06:17:42PM -0700, Ricardo Neri wrote: > > > > Hybrid CPU topologi

RE: [PATCH] usb: cdns3: platform_get_irq_byname_optional instead platform_get_irq_byname

2020-10-06 Thread Pawel Laszczak
Felipe, Please ignore this patch. I will create the new one. It's no sense to send the v2 because I have to change the patch name, Description and contents. Regards, Pawel, >Roger, > >>Pawel, >> >>On 05/10/2020 08:54, Pawel Laszczak wrote: >>> Roger, Pawel, On 02/10/2020 1

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

2020-10-06 Thread Jarkko Sakkinen
On Tue, Oct 06, 2020 at 06:17:38PM -0700, Sean Christopherson wrote: > On Wed, Oct 07, 2020 at 03:22:36AM +0300, Jarkko Sakkinen wrote: > > On Tue, Oct 06, 2020 at 04:21:29PM -0700, Sean Christopherson wrote: > > > On Tue, Oct 06, 2020 at 08:28:19PM +0300, Jarkko Sakkinen wrote: > > > > On Tue, Oct

[PATCH v3 2/4] io_uring: Fix missing smp_mb() in io_cancel_async_work()

2020-10-06 Thread Muchun Song
The store to req->flags and load req->work_task should not be reordering in io_cancel_async_work(). We should make sure that either we store REQ_F_CANCE flag to req->flags or we see the req->work_task setted in io_sq_wq_submit_work(). Fixes: 1c4404efcf2c ("io_uring: make sure async workqueue is ca

[PATCH v3 0/4] io_uring: Fix async workqueue is not canceled on some corner case

2020-10-06 Thread Muchun Song
We should make sure that async workqueue is canceled on exit, but on some corner case, we found that the async workqueue is not canceled on exit in the linux-5.4. So we started an in-depth investigation. Fortunately, we finally found the problem. The commit: 1c4404efcf2c ("io_uring: make sure as

[PATCH v3 1/4] io_uring: Fix resource leaking when kill the process

2020-10-06 Thread Muchun Song
From: Yinyin Zhu The commit 1c4404efcf2c0> ("") doesn't solve the resource leak problem totally! When kworker is doing a io task for the io_uring, The process which submitted the io task has received a SIGKILL signal from the user. Then the io_cancel_async_work function could have sent a SIGI

[PATCH v3 4/4] io_uring: Fix double list add in io_queue_async_work()

2020-10-06 Thread Muchun Song
If we queue work in io_poll_wake(), it will leads to list double add. So we should add the list when the callback func is the io_sq_wq_submit_work. The following oops was seen: list_add double add: new=9ca6a8f1b0e0, prev=9ca62001cee8, next=9ca6a8f1b0e0. [ cut h

[PATCH v3 3/4] io_uring: Fix remove irrelevant req from the task_list

2020-10-06 Thread Muchun Song
If the process 0 has been initialized io_uring is complete, and then fork process 1. If process 1 exits and it leads to delete all reqs from the task_list. If we kill process 0. We will not send SIGINT signal to the kworker. So we can not remove the req from the task_list. The io_sq_wq_submit_work(

Re: [PATCH v3] selftests/bpf: Fix test_verifier after introducing resolve_pseudo_ldimm64

2020-10-06 Thread patchwork-bot+bpf
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Tue, 6 Oct 2020 19:28:57 -0700 you wrote: > Commit 4976b718c355 ("bpf: Introduce pseudo_btf_id") switched > the order of check_subprogs() and resolve_pseudo_ldimm() in > the verifier. Now an empty prog expects to see the e

Re: [PATCH 00/14] Small step toward KSM for file back page.

2020-10-06 Thread Matthew Wilcox
On Tue, Oct 06, 2020 at 09:05:49PM -0400, jgli...@redhat.com wrote: > The present patchset just add mapping argument to the various vfs call- > backs. It does not make use of that new parameter to avoid regression. > I am posting this whole things as small contain patchset as it is rather > big and

Re: [PATCH v2 00/11] Optimization to improve CPU online/offline on Powerpc

2020-10-06 Thread Michael Ellerman
On Mon, 21 Sep 2020 15:26:42 +0530, Srikar Dronamraju wrote: > Here are some optimizations and fixes to make CPU online/offline > faster and hence result in faster bootup. > > Its based on top of my v5 coregroup support patchset. > https://lore.kernel.org/linuxppc-dev/20200810071834.92514-1-sri...

Re: [PATCH -next] powerpc/papr_scm: Fix warnings about undeclared variable

2020-10-06 Thread Michael Ellerman
On Fri, 18 Sep 2020 08:59:51 +, Wang Wensheng wrote: > Build the kernel with 'make C=2': > arch/powerpc/platforms/pseries/papr_scm.c:825:1: warning: symbol > 'dev_attr_perf_stats' was not declared. Should it be static? Applied to powerpc/next. [1/1] powerpc/papr_scm: Fix warnings about undecl

Re: [PATCH 1/5] interconnect: qcom: Consolidate interconnect RPM support

2020-10-06 Thread Jun Nie
> > obj-$(CONFIG_INTERCONNECT_QCOM_SMD_RPM) += icc-smd-rpm.o > > +obj-$(CONFIG_INTERCONNECT_QCOM_SMD_RPM) += icc-smd-rpm.o > > Duplicate ? > > Thanks for msm8939 work, please Cc: me on any related patch :-) > > OK, will CC you on next version. This issue should be a typo in vim. Thanks for reminde

[PATCH 1/2] usb: cdns3: Rids of duplicate error message

2020-10-06 Thread Pawel Laszczak
On failure, the platform_get_irq_byname prints an error message so, patch removes error message related to this function from core.c file. A change was suggested during reviewing CDNSP driver by Chunfeng Yun. Signed-off-by: Pawel Laszczak --- drivers/usb/cdns3/core.c | 7 +-- 1 file changed

RE: [PATCH v2 1/3] dt-bindings: fu540: prci: convert PRCI bindings to json-schema

2020-10-06 Thread Sagar Kadam
> -Original Message- > From: Rob Herring > Sent: Wednesday, October 7, 2020 12:13 AM > To: Sagar Kadam > Cc: a...@eecs.berkeley.edu; linux-ri...@lists.infradead.org; > t...@linutronix.de; linux-...@vger.kernel.org; pal...@dabbelt.com; > ja...@lakedaemon.net; Yash Shah ; > thierry.red...

[PATCH 2/2] usb: cdns3: Variable ‘length’ set but not used

2020-10-06 Thread Pawel Laszczak
Patch removes not used variable 'length' from cdns3_wa2_descmiss_copy_data function. Signed-off-by: Pawel Laszczak --- drivers/usb/cdns3/gadget.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c index 6e7b70a2e352..692acf7b9b14 100644 -

RE: [PATCH v3 2/2] firmware: Keem Bay: Add support for Arm Trusted Firmware Service call

2020-10-06 Thread Zulkifli, Muhammad Husaini
Hi Sudeep and Michal, I would like to receive some feedback on this patch before send out another version to fix the autobot compiler warning. Really appreciated it. Thanks >-Original Message- >From: Zulkifli, Muhammad Husaini >Sent: Tuesday, October 6, 2020 11:56 PM >To: Hunter, Adria

Re: [PATCH -next] scsi: use module_platform_driver to simplify the code

2020-10-06 Thread Martin K. Petersen
On Mon, 14 Sep 2020 14:54:03 +0800, Liu Shixin wrote: > module_platform_driver() makes the code simpler by eliminating > boilerplate code. Applied to 5.10/scsi-queue, thanks! [1/1] scsi: sun_esp: Use module_platform_driver to simplify the code https://git.kernel.org/mkp/scsi/c/ea0dc2002ef5

Re: [PATCH] scsi: mvumi: Fix error return in mvumi_io_attach()

2020-10-06 Thread Martin K. Petersen
On Thu, 10 Sep 2020 20:38:48 +0800, Jing Xiangfeng wrote: > Fix to return error code PTR_ERR() from the error handling case instead > of 0. Applied to 5.10/scsi-queue, thanks! [1/1] scsi: mvumi: Fix error return in mvumi_io_attach() https://git.kernel.org/mkp/scsi/c/055f15ab2cb4 -- Marti

[PATCH v4] bluetooth: hci_h5: fix memory leak in h5_close

2020-10-06 Thread Anant Thazhemadam
If h5_close is called when !hu->serdev, h5 is directly freed. However, h5->rx_skb is not freed, which causes a memory leak. Freeing h5->rx_skb fixes this memory leak. In case hu->serdev exists, h5->rx_skb is then set to NULL, since we do not want to risk a potential NULL pointer dereference. Fi

Re: [PATCH v2] scsi: ufs: fix missing brace warning for old compilers

2020-10-06 Thread Martin K. Petersen
On Fri, 2 Oct 2020 14:35:38 +0800, Pujin Shi wrote: > For older versions of gcc, the array = {0}; will cause warnings: > > drivers/scsi/ufs/ufshcd-crypto.c: In function 'ufshcd_crypto_keyslot_program': > drivers/scsi/ufs/ufshcd-crypto.c:62:8: warning: missing braces around > initializer [-Wmissi

Re: [PATCH ] scsi: page warning: 'page' may be used uninitialized

2020-10-06 Thread Martin K. Petersen
On Wed, 23 Sep 2020 17:19:20 -0700, john.p.donne...@oracle.com wrote: > corrects: drivers/target/target_core_user.c:688:6: warning: 'page' may be used > uninitialized > > Fixes: 3c58f737231e ("scsi: target: tcmu: Optimize use of > flush_dcache_page") Applied to 5.10/scsi-queue, thanks! [1/1] sc

Re: [PATCH] scsi: snic: Remove unnecessary condition to simplify the code

2020-10-06 Thread Martin K. Petersen
On Fri, 25 Sep 2020 14:07:54 +0800, Jing Xiangfeng wrote: > ret is always zero or an error in this code path. So the assignment to > ret is redundant, and the code jumping to a label is unneed. > Let's remove them to simplify the code. No functional changes. Applied to 5.10/scsi-queue, thanks! [

Re: [PATCH] scsi: be2iscsi: Fix a theoretical leak in beiscsi_create_eqs()

2020-10-06 Thread Martin K. Petersen
On Mon, 28 Sep 2020 12:13:00 +0300, Dan Carpenter wrote: > The be_fill_queue() function can only fail when "eq_vaddress" is NULL > and since it's non-NULL here that means the function call can't fail. > But imagine if it could, then in that situation we would want to store > the "paddr" so that dm

Re: [PATCH 0/7] hisi_sas: Add runtime PM support for v3 hw

2020-10-06 Thread Martin K. Petersen
On Fri, 2 Oct 2020 22:30:31 +0800, John Garry wrote: > This series adds runtime PM support for v3 hw. Consists of: > - Switch to new PM suspend and resume framework > - Add links to devices to ensure host cannot be suspended while devices > are not > - Filter out phy events during suspend to avo

Re: [PATCH -next] scsi: snic: convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-10-06 Thread Martin K. Petersen
On Wed, 16 Sep 2020 10:50:30 +0800, Liu Shixin wrote: > Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Applied to 5.10/scsi-queue, thanks! [1/1] scsi: snic: Convert to use DEFINE_SEQ_ATTRIBUTE macro https://git.kernel.org/mkp/scsi/c/936dc95d09d8 -- Martin K. Petersen Oracle Li

Re: [PATCH] scsi: qedf: remove redundant assignment to variable 'rc'

2020-10-06 Thread Martin K. Petersen
On Thu, 17 Sep 2020 10:19:06 +0800, Jing Xiangfeng wrote: > This assignment is meaningless, so remove it. Applied to 5.10/scsi-queue, thanks! [1/1] scsi: qedf: Remove redundant assignment to variable 'rc' https://git.kernel.org/mkp/scsi/c/da7d5d72ae83 -- Martin K. Petersen Oracle L

[PATCH 4/4] MAINTAINERS: Update maintainers for pmc_core driver

2020-10-06 Thread David E. Box
From: Gayatri Kammela Update MAINTAINERS file for pmc_core driver to reflect the current maintainers. Cc: Vishwanath Somayaji Cc: Andy Shevchenko Cc: Srinivas Pandruvada Cc: David E. Box Acked-by: David E. Box Acked-by: Vishwanath Somayaji Signed-off-by: Gayatri Kammela Signed-off-by: Dav

Re: [PATCH] random: remove dead code left over from blocking pool

2020-10-06 Thread Eric Biggers
On Tue, Sep 15, 2020 at 09:36:52PM -0700, Eric Biggers wrote: > From: Eric Biggers > > Remove some dead code that was left over following commit 90ea1c6436d2 > ("random: remove the blocking pool"). > > Signed-off-by: Eric Biggers Ping?

[PATCH 2/4] platform/x86: intel_pmc_core: Add Intel RocketLake (RKL) support

2020-10-06 Thread David E. Box
From: Gayatri Kammela Add RocketLake to the list of the platforms that intel_pmc_core driver supports for pmc_core device. RocketLake reuses all the TigerLake PCH IPs. Cc: Srinivas Pandruvada Cc: Andy Shevchenko Cc: David E. Box Cc: Tony Luck Cc: Rui Zhang Signed-off-by: Gayatri Kammela Si

[PATCH 1/4] platform/x86: intel_pmc_core: Clean up: Remove the duplicate comments and reorganize

2020-10-06 Thread David E. Box
From: Gayatri Kammela Some of the Cannon Lake PCH IPs are reused by most of the platforms such as Ice Lake, Tiger Lake, Elkhart Lake, Jasper Lake and can be reused by future platforms as well. The same was mentioned via comments not once but twice in an array of bit map structs for Cannon Lake (c

Re: [PATCH] random: fix the RNDRESEEDCRNG ioctl

2020-10-06 Thread Eric Biggers
On Tue, Sep 15, 2020 at 09:19:08PM -0700, Eric Biggers wrote: > From: Eric Biggers > > The RNDRESEEDCRNG ioctl reseeds the primary_crng from itself, which > doesn't make sense. Reseed it from the input_pool instead. > > Fixes: d848e5f8e1eb ("random: add new ioctl RNDRESEEDCRNG") > Cc: sta...@vg

[PATCH 0/4] pmc_core: Add RocketLake and other changes

2020-10-06 Thread David E. Box
Add RocketLake platform support and other driver maintainance. Gayatri Kammela (4): platform/x86: intel_pmc_core: Clean up: Remove the duplicate comments and reorganize platform/x86: intel_pmc_core: Add Intel RocketLake (RKL) support platform/x86: intel_pmc_core: fix: Replace dev_dbg mac

<    5   6   7   8   9   10   11   >