Re: [RFC PATCH v3 03/16] cxl/acpi: add OSC support

2021-01-12 Thread Rafael J. Wysocki
Something has gone wrong with CCing this to linux-acpi, but no worries. On Tue, Jan 12, 2021 at 1:29 AM Ben Widawsky wrote: > > From: Vishal Verma > > Add support to advertise OS capabilities, and request OS control for CXL > features using the ACPI _OSC mechanism. Advertise support for all > po

Re: [PATCH] x86: PM: Register syscore_ops for scale invariance

2021-01-12 Thread Rafael J. Wysocki
On Tue, Jan 12, 2021 at 4:02 PM Peter Zijlstra wrote: > > On Fri, Jan 08, 2021 at 07:05:59PM +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > On x86 scale invariace tends to be disabled during resume from > > suspend-to-RAM, because the MPERF or APERF MSR values are not as > >

[PATCH ghak90 v11 01/11] audit: collect audit task parameters

2021-01-12 Thread Richard Guy Briggs
The audit-related parameters in struct task_struct should ideally be collected together and accessed through a standard audit API and the audit structures made opaque to other kernel subsystems. Collect the existing loginuid, sessionid and audit_context together in a new opaque struct audit_task_i

[PATCH ghak90 v11 00/11] audit: implement container identifier

2021-01-12 Thread Richard Guy Briggs
Implement kernel audit container identifier. This patchset is an eighth based on the proposal document (V4) posted: https://www.redhat.com/archives/linux-audit/2019-September/msg00052.html The first patch was the last patch from ghak81 that was absorbed into this patchset since its primar

[PATCH ghak90 v11 02/11] audit: add container id

2021-01-12 Thread Richard Guy Briggs
Implement the proc fs write to set the audit container identifier of a process, emitting an AUDIT_CONTAINER_OP record to document the event. This is a write from the container orchestrator task to a proc entry of the form /proc/PID/audit_containerid where PID is the process ID of the newly created

[PATCH ghak90 v11 03/11] audit: log container info of syscalls

2021-01-12 Thread Richard Guy Briggs
Create a new audit record AUDIT_CONTAINER_ID to document the audit container identifier of a process if it is present. Called from audit_log_exit(), syscalls are covered. Include target_cid references from ptrace and signal. A sample raw event: time->Thu Nov 26 10:24:40 2020 type=PROCTITLE m

[PATCH ghak90 v11 06/11] audit: add containerid support for user records

2021-01-12 Thread Richard Guy Briggs
Add audit container identifier auxiliary record to user event standalone records. Signed-off-by: Richard Guy Briggs Acked-by: Neil Horman Reviewed-by: Ondrej Mosnacek --- kernel/audit.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/kernel/audit.c b/kernel/aud

[PATCH ghak90 v11 08/11] audit: add support for containerid to network namespaces

2021-01-12 Thread Richard Guy Briggs
This also adds support to qualify NETFILTER_PKT records. Audit events could happen in a network namespace outside of a task context due to packets received from the net that trigger an auditing rule prior to being associated with a running task. The network namespace could be in use by multiple c

[PATCH ghak90 v11 09/11] audit: contid check descendancy and nesting

2021-01-12 Thread Richard Guy Briggs
Require the target task to be a descendant of the container orchestrator/engine. You would only change the audit container ID from one set or inherited value to another if you were nesting containers. If changing the contid, the container orchestrator/engine must be a descendant and not same orch

[PATCH ghak90 v11 10/11] audit: track container nesting

2021-01-12 Thread Richard Guy Briggs
Track the parent container of a container to be able to filter and report nesting. Now that we have a way to track and check the parent container of a container, modify the contid field format to be able to report that nesting using a carrat ("^") modifier to indicate nesting. The original field

[PATCH ghak90 v11 07/11] audit: add containerid filtering

2021-01-12 Thread Richard Guy Briggs
Implement audit container identifier filtering using the AUDIT_CONTID field name to send an 8-character string representing a u64 since the value field is only u32. Sending it as two u32 was considered, but gathering and comparing two fields was more complex. The feature indicator is AUDIT_FEATUR

[PATCH ghak90 v11 11/11] audit: add capcontid to set contid outside init_user_ns

2021-01-12 Thread Richard Guy Briggs
Provide a mechanism similar to CAP_AUDIT_CONTROL to explicitly give a process in a non-init user namespace the capability to set audit container identifiers of individual children. Provide the /proc/$PID/audit_capcontid interface to capcontid. Valid values are: 1==enabled, 0==disabled Writing a "

[PATCH ghak90 v11 05/11] audit: add support for non-syscall auxiliary records

2021-01-12 Thread Richard Guy Briggs
Standalone audit records have the timestamp and serial number generated on the fly and as such are unique, making them standalone. This new function audit_alloc_local() generates a local audit context that will be used only for a standalone record and its auxiliary record(s). The context is disca

[PATCH ghak90 v11 04/11] audit: add contid support for signalling the audit daemon

2021-01-12 Thread Richard Guy Briggs
Add audit container identifier support to the action of signalling the audit daemon. Since this would need to add an element to the audit_sig_info struct, a new record type AUDIT_SIGNAL_INFO2 was created with a new audit_sig_info2 struct. Corresponding support is required in the userspace code to

Re: [PATCH v5 3/4] drivers/soc/litex: support 32-bit subregisters, 64-bit CPUs

2021-01-12 Thread Gabriel L. Somlo
Hi Mateusz, On Tue, Jan 12, 2021 at 03:31:59PM +0100, Mateusz Holenko wrote: > > Upstream LiteX now defaults to using 32-bit CSR subregisters > > (see https://github.com/enjoy-digital/litex/commit/a2b71fde). > > > > This patch expands on commit 22447a99c97e ("drivers/soc/litex: add > > LiteX SoC C

Re: [PATCH 1/2] KVM: x86: Add emulation support for #GP triggered by VM instructions

2021-01-12 Thread Andy Lutomirski
> On Jan 12, 2021, at 4:15 AM, Vitaly Kuznetsov wrote: > > Wei Huang writes: > >> From: Bandan Das >> >> While running VM related instructions (VMRUN/VMSAVE/VMLOAD), some AMD >> CPUs check EAX against reserved memory regions (e.g. SMM memory on host) >> before checking VMCB's instruction i

Re: [PATCH v8 1/4] dt-bindings: display: Document the Xylon LogiCVC display controller

2021-01-12 Thread Rob Herring
On Wed, Dec 23, 2020 at 10:29:44PM +0100, Paul Kocialkowski wrote: > The Xylon LogiCVC is a display controller implemented as programmable > logic in Xilinx FPGAs. > > Signed-off-by: Paul Kocialkowski > Acked-by: Rob Herring > --- > .../display/xylon,logicvc-display.yaml| 313 ++

Re: [RFC PATCH v3 00/16] CXL 2.0 Support

2021-01-12 Thread Ben Widawsky
On 21-01-12 22:55:50, 刘乐乐(乐了) wrote: > Ben, > > Thanks for your hard work. I have compiled this patch(aff2b059786d , > cxl-2.0v3) together qemu emulator v3, this is the first time I see a CXL > device in linux. > > Still I have problems, I can saw the CXL device with `lspci -vvv`  and a > device

Re: [PATCH 1/2] KVM: x86: Add emulation support for #GP triggered by VM instructions

2021-01-12 Thread Maxim Levitsky
On Tue, 2021-01-12 at 07:11 -0800, Andy Lutomirski wrote: > > On Jan 12, 2021, at 4:15 AM, Vitaly Kuznetsov wrote: > > > > Wei Huang writes: > > > > > From: Bandan Das > > > > > > While running VM related instructions (VMRUN/VMSAVE/VMLOAD), some AMD > > > CPUs check EAX against reserved memo

Re: [PATCH 1/2] KVM: x86: Add emulation support for #GP triggered by VM instructions

2021-01-12 Thread Andy Lutomirski
> On Jan 12, 2021, at 7:17 AM, Maxim Levitsky wrote: > > On Tue, 2021-01-12 at 07:11 -0800, Andy Lutomirski wrote: On Jan 12, 2021, at 4:15 AM, Vitaly Kuznetsov wrote: >>> >>> Wei Huang writes: >>> From: Bandan Das While running VM related instructions (VMRUN/VMSAVE

Re: [PATCH v2 00/15] drm/vc4: hdmi: Add CEC support for the BCM2711

2021-01-12 Thread Hans Verkuil
Hi Maxime, On 11/01/2021 15:22, Maxime Ripard wrote: > Hi, > > Here's a series introducing the CEC support for the BCM2711 found on the > RaspberryPi4. > > The BCM2711 HDMI controller uses a similar layout for the CEC registers, the > main difference being that the interrupt handling part is now

[PATCH net] rxrpc: Fix handling of an unsupported token type in rxrpc_read()

2021-01-12 Thread David Howells
Clang static analysis reports the following: net/rxrpc/key.c:657:11: warning: Assigned value is garbage or undefined toksize = toksizes[tok++]; ^ ~~~ rxrpc_read() contains two consecutive loops. The first loop calculates the token sizes and sto

[PATCH] iio: adc: stm32-adc: fix erroneous handling of spurious IRQs

2021-01-12 Thread Ahmad Fatoum
1c6c69525b40 ("genirq: Reject bogus threaded irq requests") makes sure that threaded IRQs either - have IRQF_ONESHOT set - don't have the default just return IRQ_WAKE_THREAD primary handler This is necessary because level-triggered interrupts need to be masked, either at device or irqchip, to

[PATCH] blk: avoid divide-by-zero with zero granularity

2021-01-12 Thread Li Feng
If the physical_block_size and io_min is less than a sector, the 'granularity >> SECTOR_SHIFT' will be zero. Signed-off-by: Li Feng --- include/linux/blkdev.h | 4 1 file changed, 4 insertions(+) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index f94ee3089e01..4d029e95adb4

Re: [PATCH v1 2/2] sfp: add support for 100 base-x SFPs

2021-01-12 Thread Bjarni Jonasson
On Mon, 2021-01-11 at 14:22 +, Russell King - ARM Linux admin wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On Mon, Jan 11, 2021 at 02:06:57PM +0100, Bjarni Jonasson wrote: > > Add support for 100Base-FX, 100Base-LX, 100Base-PX and 10

Re: [PATCH v1 1/2] net: phy: Add 100 base-x mode

2021-01-12 Thread Bjarni Jonasson
On Mon, 2021-01-11 at 16:47 +, Russell King - ARM Linux admin wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On Mon, Jan 11, 2021 at 02:06:56PM +0100, Bjarni Jonasson wrote: > > Sparx-5 supports this mode and it is missing in the PHY c

Re: [PATCH] blk: avoid divide-by-zero with zero granularity

2021-01-12 Thread Feng Li
I'm sorry, ignore this one. Li Feng 于2021年1月12日周二 下午11:30写道: > > If the physical_block_size and io_min is less than a sector, the > 'granularity >> SECTOR_SHIFT' will be zero. > > Signed-off-by: Li Feng > --- > include/linux/blkdev.h | 4 > 1 file changed, 4 insertions(+) > > diff --git a/

Re: [PATCH v2] spi: spi-qcom-qspi: Use irq trigger flags from firmware

2021-01-12 Thread Doug Anderson
Hi, On Mon, Jan 11, 2021 at 4:13 PM Stephen Boyd wrote: > > We don't need to force this to be trigger high here, as the firmware > properly configures the irq flags already. Drop it to save a line. > > Cc: Douglas Anderson > Cc: Rajendra Nayak > Cc: Mukesh Kumar Savaliya > Cc: Akash Asthana >

Re: [RFC] perf/x86: Only expose userspace rdpmc for events on current CPU

2021-01-12 Thread Peter Zijlstra
On Thu, Jan 07, 2021 at 05:01:36PM -0700, Rob Herring wrote: > Userspace access using rdpmc only makes sense if the event is valid for > the current CPU. However, cap_user_rdpmc is currently set no matter which > CPU the event is associated with. The result is userspace reading another > CPU's even

Re: [PATCH v1 1/2] net: phy: Add 100 base-x mode

2021-01-12 Thread Bjarni Jonasson
On Mon, 2021-01-11 at 20:37 +0100, Michał Mirosław wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > pon., 11 sty 2021 o 14:54 Bjarni Jonasson > napisał(a): > > Sparx-5 supports this mode and it is missing in the PHY core. > > > > Signed-of

Re: [PATCH AUTOSEL 5.7 03/30] ima: extend boot_aggregate with kernel measurements

2021-01-12 Thread Tyler Hicks
On 2020-12-14 10:42:24, Tyler Hicks wrote: > On 2020-12-11 06:01:54, Mimi Zohar wrote: > > On Thu, 2020-12-10 at 21:10 -0600, Tyler Hicks wrote: > > > On 2020-11-29 08:17:38, Mimi Zohar wrote: > > > > Hi Sasha, > > > > > > > > On Wed, 2020-07-08 at 21:27 -0400, Sasha Levin wrote: > > > > > On Wed,

Re: [PATCH 2/2] selftests/bpf: add verifier test for PTR_TO_MEM spill

2021-01-12 Thread Gilad Reti
On Tue, Jan 12, 2021 at 4:56 PM KP Singh wrote: > > On Tue, Jan 12, 2021 at 10:16 AM Gilad Reti wrote: > > > > Add test to check that the verifier is able to recognize spilling of > > PTR_TO_MEM registers. > > > > It would be nice to have some explanation of what the test does to > recognize the

[PATCH] PCI: quirk for preventing bus reset on TI C667X

2021-01-12 Thread Antti Järvinen
TI C667X does not support bus/hot reset. See https://e2e.ti.com/support/processors/f/791/t/954382 Signed-off-by: Antti Järvinen --- drivers/pci/quirks.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 653660e3ba9e..c8fcf24c5bd0 100644 -

[PATCH v1 1/1] time64.h: Consolidated PSEC_PER_SEC definition

2021-01-12 Thread Andy Shevchenko
We have currently three users of the PSEC_PER_SEC each of them defining it individually. Instead, move it to time64.h to be available for everyone. There is a new user coming with the same constant in use. It will also make its life easier. Signed-off-by: Andy Shevchenko --- drivers/net/etherne

Re: [PATCH -tip V3 0/8] workqueue: break affinity initiatively

2021-01-12 Thread Lai Jiangshan
On Tue, Jan 12, 2021 at 10:53 PM Peter Zijlstra wrote: > > On Tue, Jan 12, 2021 at 12:33:03PM +0800, Lai Jiangshan wrote: > > > Well yes, but afaict the workqueue stuff hasn't been settled yet, and > > > the rcutorture patch Paul did was just plain racy and who knows what > > > other daft kthread

Re: [PATCH v1 2/2] sfp: add support for 100 base-x SFPs

2021-01-12 Thread Andrew Lunn
> Not sure what you mean, the patch is above the comment (line 265 vs > 345). The patch is on top of 5.10, is that the issue? All networking patches for the next merge window should be against net-next. Please see: https://www.kernel.org/doc/html/latest/networking/netdev-FAQ.html which talks ab

Re: [PATCH 6/9] docs: kvm: devices/arm-vgic-v3: enhance KVM_DEV_ARM_VGIC_CTRL_INIT doc

2021-01-12 Thread Alexandru Elisei
Hi Eric, On 12/12/20 6:50 PM, Eric Auger wrote: > kvm_arch_vcpu_precreate() returns -EBUSY if the vgic is > already initialized. So let's document that KVM_DEV_ARM_VGIC_CTRL_INIT > must be called after all vcpu creations. Checked and this is indeed the case, kvm_vm_ioctl_create_vcpu()->kvm_arch_v

Re: [PATCH v1 1/1] time64.h: Consolidated PSEC_PER_SEC definition

2021-01-12 Thread Heiko Stübner
Am Dienstag, 12. Januar 2021, 16:37:09 CET schrieb Andy Shevchenko: > We have currently three users of the PSEC_PER_SEC each of them defining it > individually. Instead, move it to time64.h to be available for everyone. > > There is a new user coming with the same constant in use. It will also > m

[PATCH bpf-next v6 00/11] Atomics for eBPF

2021-01-12 Thread Brendan Jackman
Happy new year everyone, and thanks once again for the reviews. There's still one unresolved review comment from John[3] but I don't think it needs to block the patchset as it stands, it can be a separate patch. Hope that's OK. Differences from v5->v6 [1]: * Carried Björn Töpel's ack for RISC-V

[PATCH bpf-next v6 01/11] bpf: x86: Factor out emission of ModR/M for *(reg + off)

2021-01-12 Thread Brendan Jackman
The case for JITing atomics is about to get more complicated. Let's factor out some common code to make the review and result more readable. NB the atomics code doesn't yet use the new helper - a subsequent patch will add its use as a side-effect of other changes. Acked-by: John Fastabend Signed

[PATCH bpf-next v6 02/11] bpf: x86: Factor out emission of REX byte

2021-01-12 Thread Brendan Jackman
The JIT case for encoding atomic ops is about to get more complicated. In order to make the review & resulting code easier, let's factor out some shared helpers. Signed-off-by: Brendan Jackman Acked-by: John Fastabend --- arch/x86/net/bpf_jit_comp.c | 39 ++--- 1

[PATCH bpf-next v6 03/11] bpf: x86: Factor out a lookup table for some ALU opcodes

2021-01-12 Thread Brendan Jackman
A later commit will need to lookup a subset of these opcodes. To avoid duplicating code, pull out a table. The shift opcodes won't be needed by that later commit, but they're already duplicated, so fold them into the table anyway. Signed-off-by: Brendan Jackman Acked-by: John Fastabend --- arc

Re: [PATCH 2/2] selftests/bpf: add verifier test for PTR_TO_MEM spill

2021-01-12 Thread Daniel Borkmann
On 1/12/21 4:35 PM, Gilad Reti wrote: On Tue, Jan 12, 2021 at 4:56 PM KP Singh wrote: On Tue, Jan 12, 2021 at 10:16 AM Gilad Reti wrote: Add test to check that the verifier is able to recognize spilling of PTR_TO_MEM registers. It would be nice to have some explanation of what the test doe

[PATCH bpf-next v6 07/11] bpf: Add instructions for atomic_[cmp]xchg

2021-01-12 Thread Brendan Jackman
This adds two atomic opcodes, both of which include the BPF_FETCH flag. XCHG without the BPF_FETCH flag would naturally encode atomic_set. This is not supported because it would be of limited value to userspace (it doesn't imply any barriers). CMPXCHG without BPF_FETCH woulud be an atomic compare-a

[PATCH bpf-next v6 06/11] bpf: Add BPF_FETCH field / create atomic_fetch_add instruction

2021-01-12 Thread Brendan Jackman
The BPF_FETCH field can be set in bpf_insn.imm, for BPF_ATOMIC instructions, in order to have the previous value of the atomically-modified memory location loaded into the src register after an atomic op is carried out. Suggested-by: Yonghong Song Signed-off-by: Brendan Jackman Acked-by: John Fa

[PATCH bpf-next v6 11/11] bpf: Document new atomic instructions

2021-01-12 Thread Brendan Jackman
Document new atomic instructions. Acked-by: Yonghong Song Signed-off-by: Brendan Jackman --- Documentation/networking/filter.rst | 31 + 1 file changed, 31 insertions(+) diff --git a/Documentation/networking/filter.rst b/Documentation/networking/filter.rst index 15

[PATCH bpf-next v6 10/11] bpf: Add tests for new BPF atomic operations

2021-01-12 Thread Brendan Jackman
The prog_test that's added depends on Clang/LLVM features added by Yonghong in commit 286daafd6512 (was https://reviews.llvm.org/D72184). Note the use of a define called ENABLE_ATOMICS_TESTS: this is used to: - Avoid breaking the build for people on old versions of Clang - Avoid needing separat

[PATCH bpf-next v6 08/11] bpf: Pull out a macro for interpreting atomic ALU operations

2021-01-12 Thread Brendan Jackman
Since the atomic operations that are added in subsequent commits are all isomorphic with BPF_ADD, pull out a macro to avoid the interpreter becoming dominated by lines of atomic-related code. Note that this sacrificies interpreter performance (combining STX_ATOMIC_W and STX_ATOMIC_DW into single s

[PATCH bpf-next v6 05/11] bpf: Move BPF_STX reserved field check into BPF_STX verifier code

2021-01-12 Thread Brendan Jackman
I can't find a reason why this code is in resolve_pseudo_ldimm64; since I'll be modifying it in a subsequent commit, tidy it up. Signed-off-by: Brendan Jackman Acked-by: Yonghong Song Acked-by: John Fastabend --- kernel/bpf/verifier.c | 13 ++--- 1 file changed, 6 insertions(+), 7 dele

[PATCH bpf-next v6 04/11] bpf: Rename BPF_XADD and prepare to encode other atomics in .imm

2021-01-12 Thread Brendan Jackman
A subsequent patch will add additional atomic operations. These new operations will use the same opcode field as the existing XADD, with the immediate discriminating different operations. In preparation, rename the instruction mode BPF_ATOMIC and start calling the zero immediate BPF_ADD. This is

[PATCH bpf-next v6 09/11] bpf: Add bitwise atomic instructions

2021-01-12 Thread Brendan Jackman
This adds instructions for atomic[64]_[fetch_]and atomic[64]_[fetch_]or atomic[64]_[fetch_]xor All these operations are isomorphic enough to implement with the same verifier, interpreter, and x86 JIT code, hence being a single commit. The main interesting thing here is that x86 doesn't directly

Re: [PATCH v3 02/19] scsi: libsas and users: Remove notifier indirection

2021-01-12 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v8 1/2] Serial: silabs si4455 serial driver

2021-01-12 Thread József Horváth
On Tue, Jan 12, 2021 at 11:28:08AM +0100, 'Greg Kroah-Hartman' wrote: > On Tue, Jan 12, 2021 at 10:18:33AM +, Jozsef Horvath wrote: > > --- a/include/uapi/linux/serial_core.h > > +++ b/include/uapi/linux/serial_core.h > > @@ -279,4 +279,7 @@ > > /* Freescale LINFlexD UART */ > > #define PORT_

Re: [PATCH v2 03/19] scsi: libsas: Introduce a _gfp() variant of event notifiers

2021-01-12 Thread Christoph Hellwig
On Tue, Jan 12, 2021 at 12:06:31PM +0100, Ahmed S. Darwish wrote: > sas_alloc_event() uses in_interrupt() to decide which allocation should > be used. > > The usage of in_interrupt() in drivers is phased out and Linus clearly > requested that code which changes behaviour depending on context shoul

Re: [PATCH] rtlwifi: rtl8821ae: style: Simplify bool comparison

2021-01-12 Thread Kalle Valo
Pkshih writes: > On Tue, 2021-01-12 at 16:33 +0800, YANG LI wrote: >> Fix the following coccicheck warning: >> ./drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:3853:7-17: >> WARNING: Comparison of 0/1 to bool variable >> >> Reported-by: Abaci Robot >> Signed-off-by: YANG LI >> > > I thi

Re: [PATCH 1/2] KVM: x86: Add emulation support for #GP triggered by VM instructions

2021-01-12 Thread Bandan Das
Andy Lutomirski writes: ... > #endif diff --git a/arch/x86/kvm/mmu/mmu.c > b/arch/x86/kvm/mmu/mmu.c index 6d16481aa29d..c5c4aaf01a1a 100644 > --- a/arch/x86/kvm/mmu/mmu.c +++ b/arch/x86/kvm/mmu/mmu.c @@ > -50,6 +50,7 @@ #include #include #include > +#include #include >

Re: [btrfs] e076ab2a2c: fio.write_iops -18.3% regression

2021-01-12 Thread David Sterba
On Tue, Jan 12, 2021 at 11:36:14PM +0800, kernel test robot wrote: > > Greeting, > > FYI, we noticed a -18.3% regression of fio.write_iops due to commit: > > > commit: e076ab2a2ca70a0270232067cd49f76cd92efe64 ("btrfs: shrink delalloc > pages instead of full inodes") > https://git.kernel.org/cg

Re: regression in iwlwifi: page fault in iwl_dbg_tlv_alloc_region() (commit ba8f6f4ae254)

2021-01-12 Thread Kalle Valo
Takashi Iwai writes: > On Tue, 12 Jan 2021 13:45:33 +0100, > Kalle Valo wrote: >> >> Takashi Iwai writes: >> >> > On Tue, 12 Jan 2021 12:33:14 +0100, >> > Kalle Valo wrote: >> >> >> >> (adding luca) >> >> >> >> Michal Kubecek writes: >> >> >> >> > FYI, there is a regression in iwlwifi driv

[PATCH] ARM: fix link warning with XIP + frame-pointer

2021-01-12 Thread Arnd Bergmann
From: Arnd Bergmann When frame pointers are used instead of the ARM unwinder, and the kernel is built using clang with an external assembler and CONFIG_XIP_KERNEL, every file produces two warnings like: arm-linux-gnueabi-ld: warning: orphan section `.ARM.extab' from `net/mac802154/util.o' being

Re: [PATCH v2 04/19] scsi: mvsas: Pass gfp_t flags to libsas event notifiers

2021-01-12 Thread Christoph Hellwig
> } else if (mwq->handler & EXP_BRCT_CHG) { > phy->phy_event &= ~EXP_BRCT_CHG; > - sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD); > + sas_notify_port_event_gfp(sas_phy, PORTE_BROADCAST_RCVD, > GFP_ATOMIC); Please don't add pointless lines > 80 ch

Re: [net-next PATCH v3 09/15] device property: Introduce fwnode_get_id()

2021-01-12 Thread Andy Shevchenko
On Tue, Jan 12, 2021 at 3:42 PM Calvin Johnson wrote: > > Using fwnode_get_id(), get the reg property value for DT node > or get the _ADR object value for ACPI node. > > Signed-off-by: Calvin Johnson > --- > > Changes in v3: > - Modified to retrieve reg property value for ACPI as well > - Resolve

[PATCH] dt-bindings: Remove plain text OF graph binding

2021-01-12 Thread Rob Herring
From: Sameer Pujar A schema for the OF graph binding has been added to the dt-schema repo based on graph.txt contents. Let's replace graph.txt now duplicated contents with a reference to the schema. For users of the graph binding, they should reference to the graph schema from either 'ports' or

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2021-01-12 Thread Laurent Dufour
Le 12/01/2021 à 12:43, Vinayak Menon a écrit : On 1/5/2021 9:07 PM, Peter Zijlstra wrote: On Mon, Dec 21, 2020 at 08:16:11PM -0800, Linus Torvalds wrote: So I think the basic rule is that "if you hold mmap_sem for writing, you're always safe". And that really should be considered the "default"

Re: [net-next PATCH v3 11/15] net: mdiobus: Introduce fwnode_mdiobus_register()

2021-01-12 Thread Andy Shevchenko
On Tue, Jan 12, 2021 at 3:42 PM Calvin Johnson wrote: > > Introduce fwnode_mdiobus_register() to register PHYs on the mdiobus. > If the fwnode is DT node, then call of_mdiobus_register(). > If it is an ACPI node, then call acpi_mdiobus_register(). ... > +/** > + * fwnode_mdiobus_register - Regi

Re: [PATCH 1/2] KVM: x86: Add emulation support for #GP triggered by VM instructions

2021-01-12 Thread Andy Lutomirski
> On Jan 12, 2021, at 7:46 AM, Bandan Das wrote: > > Andy Lutomirski writes: > ... >> #endif diff --git a/arch/x86/kvm/mmu/mmu.c >> b/arch/x86/kvm/mmu/mmu.c index 6d16481aa29d..c5c4aaf01a1a 100644 >> --- a/arch/x86/kvm/mmu/mmu.c +++ b/arch/x86/kvm/mmu/mmu.c @@ >> -50,6 +50,7 @

Re: [PATCH -tip V3 0/8] workqueue: break affinity initiatively

2021-01-12 Thread Peter Zijlstra
On Tue, Jan 12, 2021 at 07:57:26AM -0700, Jens Axboe wrote: > On 1/11/21 12:21 PM, Valentin Schneider wrote: > > On 11/01/21 18:16, Peter Zijlstra wrote: > >> Sadly it appears like io_uring() uses kthread_create_on_cpu() without > >> then having any hotplug crud on, so that needs additinoal frobbin

Re: [net-next PATCH v3 12/15] net/fsl: Use fwnode_mdiobus_register()

2021-01-12 Thread Andy Shevchenko
On Tue, Jan 12, 2021 at 3:43 PM Calvin Johnson wrote: > > fwnode_mdiobus_register() internally takes care of both DT > and ACPI cases to register mdiobus. Replace existing > of_mdiobus_register() with fwnode_mdiobus_register(). > > Note: For both ACPI and DT cases, endianness of MDIO controller >

Re: [RFC PATCH v2 15/26] of/fdt: Introduce early_init_dt_add_memory_hyp()

2021-01-12 Thread Rob Herring
On Tue, Jan 12, 2021 at 8:26 AM Quentin Perret wrote: > > On Tuesday 12 Jan 2021 at 08:10:47 (-0600), Rob Herring wrote: > > On Tue, Jan 12, 2021 at 3:51 AM Quentin Perret wrote: > > > > > > On Monday 11 Jan 2021 at 08:45:10 (-0600), Rob Herring wrote: > > > > On Fri, Jan 8, 2021 at 6:16 AM Quent

Re: [PATCH 4/4] dmaengine: rcar-dmac: Add support for R-Car V3U

2021-01-12 Thread Geert Uytterhoeven
Hi Vinod, On Tue, Jan 12, 2021 at 11:36 AM Vinod Koul wrote: > On 07-01-21, 19:15, Geert Uytterhoeven wrote: > > The DMACs (both SYS-DMAC and RT-DMAC) on R-Car V3U differ slightly from > > the DMACs on R-Car Gen2 and other R-Car Gen3 SoCs: > > 1. The per-channel registers are located in a secon

[PATCH 0/6] sched/deadline: cpuset task acceptance review

2021-01-12 Thread Daniel Bristot de Oliveira
While surveying the properties of the SCHED_DEADLINE, Marco Perronet found some inconsistencies in the acceptance of DL threads on cpuset. More precisely, regarding the acceptance of treads with arbitrary affinity. He contacted me, and while doing the investigation, we found yet other potential iss

[PATCH 1/6] sched/deadline: Consolidate the SCHED_DL task_can_attach() check on its own function

2021-01-12 Thread Daniel Bristot de Oliveira
It is easier to track the restrictions imposed on SCHED_DEADLINE tasks if we keep them all together in a single function. No function changes. Signed-off-by: Daniel Bristot de Oliveira Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Juri Lelli Cc: Vincent Guittot Cc: Dietmar Eggemann Cc: Steven Rost

Re: [PATCH v5] modules: introduce the MODULE_SCMVERSION config

2021-01-12 Thread Jessica Yu
+++ Will McVicker [08/01/21 00:30 +]: Config MODULE_SCMVERSION introduces a new module attribute -- `scmversion` -- which can be used to identify a given module's SCM version. This is very useful for developers that update their kernel independently from their kernel modules or vice-versa si

Re: [net-next PATCH v3 13/15] phylink: introduce phylink_fwnode_phy_connect()

2021-01-12 Thread Andy Shevchenko
On Tue, Jan 12, 2021 at 3:43 PM Calvin Johnson wrote: > > Define phylink_fwnode_phy_connect() to connect phy specified by > a fwnode to a phylink instance. ... > + phy_dev = fwnode_phy_find_device(phy_fwnode); > + /* We're done with the phy_node handle */ > + fwnode_handle_put(

[PATCH 2/6] sched/deadline: Inform dl_task_can_attach() if the cpuset is exclusive

2021-01-12 Thread Daniel Bristot de Oliveira
In preparation for blocking SCHED_DEADLINE tasks on non-exclusive cpuset if bandwidth control is enabled. No functional changes. Signed-off-by: Daniel Bristot de Oliveira Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Juri Lelli Cc: Vincent Guittot Cc: Dietmar Eggemann Cc: Steven Rostedt Cc: Ben S

[PATCH 6/6] sched/deadline: Fixes cpu/rd/dl_bw references for suspended tasks

2021-01-12 Thread Daniel Bristot de Oliveira
__set_cpus_allowed_ptr() migrates running or runnable, setting the task's cpu accordingly. The CPU is not set when the task is not runnable because of complications on the hotplug code. The task cpu will be updated in the next wakeup anyway. However, this creates a problem for the usage of task_cp

Re: [PATCH 0/4] dmaengine: rcar-dmac: Add support for R-Car V3U

2021-01-12 Thread Geert Uytterhoeven
CC linux-renesas-soc On Thu, Jan 7, 2021 at 7:15 PM Geert Uytterhoeven wrote: > This patch series adds support for the Direct Memory Access Controller > variant in the Renesas R-Car V3U (R8A779A0) SoC, to both DT bindings and > driver. > > This has been tested on the Renesas Falcon board, using e

[PATCH 5/6] sched/deadline: Add helpers to get the correct root domain/span/dl_bw

2021-01-12 Thread Daniel Bristot de Oliveira
task_cpu() is often used on SCHED_DEADLINE to access the root_domain and associated information. However, the task_cpu() does not always reflect the correct CPU. The reason being is shown in the code: >From kernel/sched/core: - %< - * p->on_rq <- { 0, 1 = TASK_ON_RQ_QUEUED, 2 = TASK_ON_RQ

[PATCH 4/6] sched/deadline: Block DL tasks on non-exclusive cpuset if bandwitdh control is enable

2021-01-12 Thread Daniel Bristot de Oliveira
The current SCHED_DEADLINE design supports only global scheduler, or variants of it, i.e., clustered and partitioned, via cpuset config. To enable the partitioning of a system with clusters of CPUs, the documentation advises the usage of exclusive cpusets, creating an exclusive root_domain for the

[PATCH v2] blk: avoid divide-by-zero with zero granularity

2021-01-12 Thread Li Feng
If the physical_block_size and io_min is less than a sector, the 'granularity >> SECTOR_SHIFT' will be zero. Signed-off-by: Li Feng --- include/linux/blkdev.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index f94ee3089e

Re: [net-next PATCH v3 14/15] net: phylink: Refactor phylink_of_phy_connect()

2021-01-12 Thread Andy Shevchenko
On Tue, Jan 12, 2021 at 3:43 PM Calvin Johnson wrote: > > Refactor phylink_of_phy_connect() to use phylink_fwnode_phy_connect(). Same Q as per previous patch. If it's indeed a bug in the existing code, should be fixed in a separate patch -- With Best Regards, Andy Shevchenko

Re: fbcon: remove soft scrollback code (missing Doc. patch)

2021-01-12 Thread Daniel Vetter
On Sat, Jan 9, 2021 at 12:11 AM Linus Torvalds wrote: > > On Fri, Jan 8, 2021 at 11:13 AM Phillip Susi wrote: > > > > > Could we pause this madness? Scrollback is still useful. I needed it > > > today... it was too small, so command results I was looking for > > > already scrolled away, but... li

[PATCH 3/6] sched/deadline: Allow DL tasks on empty (cgroup v2) cpusets

2021-01-12 Thread Daniel Bristot de Oliveira
cgroups v2 allows the cpuset controller to be enabled/disabled on demand. On Fedora 32, cpuset is disabled by default. To enable it, a user needs to: # cd /sys/fs/cgroup/ # echo +cpuset > cgroup.subtree_control Existing cgroups will expose the cpuset interface (e.g., cpuset.cpus file). By def

Re: regression in iwlwifi: page fault in iwl_dbg_tlv_alloc_region() (commit ba8f6f4ae254)

2021-01-12 Thread Takashi Iwai
On Tue, 12 Jan 2021 16:46:21 +0100, Kalle Valo wrote: > > Takashi Iwai writes: > > > On Tue, 12 Jan 2021 13:45:33 +0100, > > Kalle Valo wrote: > >> > >> Takashi Iwai writes: > >> > >> > On Tue, 12 Jan 2021 12:33:14 +0100, > >> > Kalle Valo wrote: > >> >> > >> >> (adding luca) > >> >> > >> >

[PATCH net] rxrpc: Call state should be read with READ_ONCE() under some circumstances

2021-01-12 Thread David Howells
From: Baptiste Lepers The call state may be changed at any time by the data-ready routine in response to received packets, so if the call state is to be read and acted upon several times in a function, READ_ONCE() must be used unless the call state lock is held. As it happens, we used READ_ONCE(

Re: [PATCH v2 0/5] Optimize iommu_map_sg() performance

2021-01-12 Thread Robin Murphy
On 2021-01-11 14:54, Isaac J. Manjarres wrote: The iommu_map_sg() code currently iterates through the given scatter-gather list, and in the worst case, invokes iommu_map() for each element in the scatter-gather list, which calls into the IOMMU driver through an indirect call. For an IOMMU driver

Re: [PATCH v2 00/19] scsi: libsas: Remove in_interrupt() check

2021-01-12 Thread John Garry
- intel-linux-...@intel.com On 12/01/2021 13:19, Ahmed S. Darwish wrote: On Tue, Jan 12, 2021 at 11:53:50AM +, John Garry wrote: On 12/01/2021 11:06, Ahmed S. Darwish wrote: Hi, Changelog v2 ... I'll give this a spin today and help review also then. I boot-tested on my

Re: [PATCH 7/9] KVM: arm64: Simplify argument passing to vgic_uaccess_[read|write]

2021-01-12 Thread Alexandru Elisei
Hi Eric, On 12/12/20 6:50 PM, Eric Auger wrote: > Instead of converting the vgic_io_device handle to a kvm_io_device > handled and then do the oppositive, pass a vgic_io_device pointer all > along the call chain. To me, it looks like the commit message describes what the patch does instead of why

Re: [PATCH v1 0/2] Add 100 base-x mode

2021-01-12 Thread Russell King - ARM Linux admin
On Tue, Jan 12, 2021 at 03:33:34PM +0100, Bjarni Jonasson wrote: > On Mon, 2021-01-11 at 14:18 +, Russell King - ARM Linux admin > wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you > > know the content is safe > > > > On Mon, Jan 11, 2021 at 02:06:55PM +0100, Bjarni

Re: [PATCH] iov_iter: optimise iter type checking

2021-01-12 Thread Pavel Begunkov
On 11/01/2021 09:35, David Laight wrote: > From: Pavel Begunkov >> Sent: 09 January 2021 22:11 > >>> Does any code actually look at the fields as a pair? >>> Would it even be better to use separate bytes? >>> Even growing the on-stack structure by a word won't really matter. >> >> u8 type, rw;

Re: fbcon: remove soft scrollback code (missing Doc. patch)

2021-01-12 Thread Greg Kroah-Hartman
On Tue, Jan 12, 2021 at 10:00:09AM -0500, Phillip Susi wrote: > > Linus Torvalds writes: > > > It really was buggy, with security implications. And we have no maintainers. > > Could you be more specific? I can't try to fix it if I don't understand > what is wrong with it. Are there any bug rep

Re: [PATCH v8 1/2] Serial: silabs si4455 serial driver

2021-01-12 Thread 'Greg Kroah-Hartman'
On Tue, Jan 12, 2021 at 03:43:22PM +, József Horváth wrote: > On Tue, Jan 12, 2021 at 11:28:08AM +0100, 'Greg Kroah-Hartman' wrote: > > On Tue, Jan 12, 2021 at 10:18:33AM +, Jozsef Horvath wrote: > > > --- a/include/uapi/linux/serial_core.h > > > +++ b/include/uapi/linux/serial_core.h > > >

Re: [PATCH] dt-bindings: Remove plain text OF graph binding

2021-01-12 Thread Sameer Pujar
On 1/12/2021 9:16 PM, Rob Herring wrote: External email: Use caution opening links or attachments From: Sameer Pujar A schema for the OF graph binding has been added to the dt-schema repo based on graph.txt contents. Let's replace graph.txt now duplicated contents with a reference to the s

[PATCH v2 11/70] kernel/fork: Convert dup_mmap to use maple tree

2021-01-12 Thread Liam R. Howlett
Use the maple tree iterator to duplicate the mm_struct trees. Signed-off-by: Liam R. Howlett --- include/linux/sched/mm.h | 3 +++ kernel/fork.c| 22 +- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/include/linux/sched/mm.h b/include/linux/sched

[PATCH v2 00/70] RFC mm: Introducing the Maple Tree

2021-01-12 Thread Liam R. Howlett
***NOTE: the majority of this patch is the tests (35855 lines).*** Thanks to Vlastimil Babka for helping with perf on the full kernel build and looking at the cache numbers. Changes since last RFC: - rebased against 5.10 and updated benchmarks - Transitioned more internal mm operations to using

Re: [PATCH] soc: qcom: socinfo: Open read access to all for debugfs

2021-01-12 Thread Doug Anderson
Hi, On Mon, Jan 11, 2021 at 6:04 PM Stephen Boyd wrote: > > Quoting Doug Anderson (2021-01-05 15:06:35) > > Hi, > > > > On Tue, Dec 15, 2020 at 11:19 PM Stephen Boyd wrote: > > > > > > There doesn't seem to be any reason to limit this to only root user > > > readable. Let's make it readable by a

[PATCH v2 06/70] mm: Start tracking VMAs with maple tree

2021-01-12 Thread Liam R. Howlett
Start tracking the VMAs with the new maple tree structure in parallel with the rb_tree. Add debug and trace events for maple tree operations and duplicate the rb_tree that is created on forks into the maple tree. Signed-off-by: Liam R. Howlett --- arch/x86/kernel/tboot.c | 1 + drivers/fi

[PATCH v2 13/70] mm/gup: Add mm_populate_vma() for use when the vma is known

2021-01-12 Thread Liam R. Howlett
When a vma is known, avoid calling mm_populate to search for the vma to populate. Signed-off-by: Liam R. Howlett --- include/linux/mm.h | 4 mm/gup.c | 20 2 files changed, 24 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index dbb83118e

[PATCH v2 27/70] mm: Introduce vma_next() and vma_prev()

2021-01-12 Thread Liam R. Howlett
Signed-off-by: Liam R. Howlett --- include/linux/mm.h | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 680dcfe07dbb6..99b1dec97495a 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -164

[PATCH v2 14/70] mm/mmap: Change do_brk_flags() to expand existing VMA and add do_brk_munmap()

2021-01-12 Thread Liam R. Howlett
Avoid allocating a new VMA when it is not necessary. Expand or contract the existing VMA instead. This avoids unnecessary tree manipulations and allocations. Once the VMA is known, use it directly when populating to avoid unnecessary lookup work. Signed-off-by: Liam R. Howlett --- mm/mmap.c |

[PATCH v2 17/70] mm/mmap: Change mmap_region to use maple tree state

2021-01-12 Thread Liam R. Howlett
Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 1 + mm/mmap.c| 227 --- 2 files changed, 195 insertions(+), 33 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index c24c6f154c857..522f5fdfe5078 100644 --- a/lib/maple_tree

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