Re: [PATCH v10 2/4] media: i2c: Add MAX9286 driver

2020-06-13 Thread Manivannan Sadhasivam
On Fri, Jun 12, 2020 at 03:47:11PM +0100, Kieran Bingham wrote: > The MAX9286 is a 4-channel GMSL deserializer with coax or STP input and > CSI-2 output. The device supports multicamera streaming applications, > and features the ability to synchronise the attached cameras. > > CSI-2 output can be

Re: [PATCH] RDMA/rvt: Improve exception handling in rvt_create_qp()

2020-06-13 Thread Markus Elfring
> … The patch fixes this issue by > calling rvt_free_rq(). I suggest to choose another imperative wording for your change description. Will the tag “Fixes” become helpful for the commit message? … > +++ b/drivers/infiniband/sw/rdmavt/qp.c > @@ -1203,6 +1203,7 @@ struct ib_qp *rvt_create_qp(struc

[PATCH] leds: trigger: gpio: Avoid warning on update of inverted

2020-06-13 Thread Jan Kiszka
From: Jan Kiszka If the GPIO has not been configured yet, writing to inverted will raise a kernel warning. Signed-off-by: Jan Kiszka --- drivers/leds/trigger/ledtrig-gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/leds/trigger/ledtrig-gpio.c b/drivers/leds

[RFC PATCH] seccomp: Add extensibility mechanism to read notifications

2020-06-13 Thread Sargun Dhillon
This introduces an extensibility mechanism to receive seccomp notifications. It uses read(2), as opposed to using an ioctl. The listener must be first configured to write the notification via the SECCOMP_IOCTL_NOTIF_CONFIG ioctl with the fields that the user is interested in. This is different tha

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

2020-06-13 Thread Thomas Gleixner
"Paul E. McKenney" writes: > And an update based on your patch (https://paste.debian.net/1151802/) > against 44ebe016df3a ("Merge branch 'proc-linus' of > git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace"). I'm running this patch since midnight on top of x86/entry. Still no N

[PATCH v4 4/4] dt-bindings: soc: qcom: Document MSM8936 SMD RPM

2020-06-13 Thread Vincent Knecht
Acked-by: Rob Herring Signed-off-by: Vincent Knecht --- Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt index

[PATCH v4 1/4] clk: qcom: smd: Add support for MSM8936 rpm clocks

2020-06-13 Thread Vincent Knecht
Add missing definition of rpm clk for msm8936 soc (also used by msm8939) Signed-off-by: Vincent Knecht --- drivers/clk/qcom/clk-smd-rpm.c | 50 ++ include/dt-bindings/clock/qcom,rpmcc.h | 2 ++ 2 files changed, 52 insertions(+) diff --git a/drivers/clk/qcom/clk-

[PATCH v4 3/4] drivers: soc: Add MSM8936 SMD RPM compatible

2020-06-13 Thread Vincent Knecht
From: Konrad Dybcio Signed-off-by: Konrad Dybcio Signed-off-by: Vincent Knecht --- drivers/soc/qcom/smd-rpm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/smd-rpm.c b/drivers/soc/qcom/smd-rpm.c index 005dd30c58fa..8f290c67cb47 100644 --- a/drivers/soc/qcom/smd-rpm.c +++

[PATCH v4 2/4] dt-bindings: clock: rpmcc: Document MSM8936 compatible

2020-06-13 Thread Vincent Knecht
Acked-by: Rob Herring Signed-off-by: Vincent Knecht --- Documentation/devicetree/bindings/clock/qcom,rpmcc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt index 90a1349bc713..

[PATCH v4 0/4] Add SMD RPM support for MSM8936

2020-06-13 Thread Vincent Knecht
changes since v3: - added my missing Signed-off-by to patch 3 changes since v2: - fixed build error by adding forgotten qcom,rpmcc.h changes in patch 1 changes since v1: - added a forgotten patch that adds the compat string to the driver Konrad Dybcio (1): drivers: soc: Add MSM8936 SMD RPM com

[PATCH] spi: uapi: spidev: Use TABs for alignment

2020-06-13 Thread Geert Uytterhoeven
The UAPI uses TABs for alignment. Convert the recently introduced spaces to TABs to restore consistency. Fixes: f30e8cbdf8ee1a43 ("spi: tools: Add macro definitions to fix build errors") Signed-off-by: Geert Uytterhoeven --- include/uapi/linux/spi/spidev.h | 8 1 file changed, 4 inser

[PATCH] drivers/hwmon/nct6683: Use kobj_to_dev() instead

2020-06-13 Thread Wang Qing
Use kobj_to_dev() instead of container_of() Signed-off-by: Wang Qing --- drivers/hwmon/nct6683.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 drivers/hwmon/nct6683.c diff --git a/drivers/hwmon/nct6683.c b/drivers/hwmon/nct6683.c index c022915..2d29

[PATCH v12 00/11] Guest Last Branch Recording Enabling

2020-06-13 Thread Like Xu
Hi all, Please help review this new version for the Kenrel 5.9 release. Now, you may apply the last two qemu-devel patches to the upstream qemu and try the guest LBR feature with '-cpu host' command line. v11->v12 Changelog: - apply "Signed-off-by" form PeterZ and his codes for the perf subsyste

[PATCH v12 02/11] perf/x86/core: Refactor hw->idx checks and cleanup

2020-06-13 Thread Like Xu
For intel_pmu_en/disable_event(), reorder the branches checks for hw->idx and make them sorted by probability: gp,fixed,bts,others. Clean up the x86_assign_hw_event() by converting multiple if-else statements to a switch statement. To skip x86_perf_event_update() and x86_perf_event_set_period(),

[Qemu-devel] [PATCH 2/2] target/i386: add -cpu,lbr=true support to enable guest LBR

2020-06-13 Thread Like Xu
The LBR feature would be enabled on the guest if: - the KVM is enabled and the PMU is enabled and, - the msr-based-feature IA32_PERF_CAPABILITIES is supporterd and, - the supported returned value for lbr_fmt from this msr is not zero. The LBR feature would be disabled on the guest if: - the msr-ba

[PATCH v12 10/11] KVM: vmx/pmu: Reduce the overhead of LBR pass-through or cancellation

2020-06-13 Thread Like Xu
When the LBR record msrs has already been pass-through, there is no need to call vmx_update_intercept_for_lbr_msrs() again and again, and vice versa. Signed-off-by: Like Xu --- arch/x86/kvm/vmx/pmu_intel.c | 1 + arch/x86/kvm/vmx/vmx.c | 12 arch/x86/kvm/vmx/vmx.h | 3

[PATCH v12 01/11] perf/x86: Fix variable types for LBR registers

2020-06-13 Thread Like Xu
From: Wei Wang The MSR variable type can be 'unsigned int', which uses less memory than the longer 'unsigned long'. Fix 'struct x86_pmu' for that. The lbr_nr won't be a negative number, so make it 'unsigned int' as well. Suggested-by: Peter Zijlstra (Intel) Signed-off-by: Wei Wang --- arch/x8

[PATCH v12 03/11] perf/x86/lbr: Add interface to get LBR information

2020-06-13 Thread Like Xu
The LBR records msrs are model specific. The perf subsystem has already obtained the base addresses of LBR records based on the cpu model. Therefore, an interface is added to allow callers outside the perf subsystem to obtain these LBR information. It's useful for hypervisors to emulate the LBR fe

[Qemu-devel] [PATCH 1/2] target/i386: define a new MSR based feature word - FEAT_PERF_CAPABILITIES

2020-06-13 Thread Like Xu
The Perfmon and Debug Capability MSR named IA32_PERF_CAPABILITIES is a feature-enumerating MSR, which only enumerates the feature full-width write (via bit 13) by now which indicates the processor supports IA32_A_PMCx interface for updating bits 32 and above of IA32_PMCx. The existence of MSR IA32

[PATCH v12 09/11] KVM: vmx/pmu: Emulate legacy freezing LBRs on virtual PMI

2020-06-13 Thread Like Xu
The current vPMU only supports Architecture Version 2. According to Intel SDM "17.4.7 Freezing LBR and Performance Counters on PMI", if IA32_DEBUGCTL.Freeze_LBR_On_PMI = 1, the LBR is frozen on the virtual PMI and the KVM would emulate to clear the LBR bit (bit 0) in IA32_DEBUGCTL. Also guest needs

[PATCH v12 06/11] KVM: vmx/pmu: Expose LBR to guest via MSR_IA32_PERF_CAPABILITIES

2020-06-13 Thread Like Xu
The bits [0, 5] of the read-only MSR_IA32_PERF_CAPABILITIES tells about the record format stored in the LBR records. Userspace could expose guest LBR when host supports LBR and the exactly supported LBR format value is initialized to the MSR_IA32_PERF_CAPABILITIES and vcpu model is compatible. Sig

[PATCH v12 04/11] perf/x86: Add constraint to create guest LBR event without hw counter

2020-06-13 Thread Like Xu
The hypervisor may request the perf subsystem to schedule a time window to directly access the LBR records msrs for its own use. Normally, it would create a guest LBR event with callstack mode enabled, which is scheduled along with other ordinary LBR events on the host but in an exclusive way. To

[PATCH v12 08/11] KVM: vmx/pmu: Pass-through LBR msrs when guest LBR event is scheduled

2020-06-13 Thread Like Xu
The guest first access on the LBR related msrs (including DEBUGCTLMSR and records msrs) is always interceptible. The KVM handler would create a guest LBR event which enables the callstack mode and none of hardware counter is assigned. The host perf would schedule and enable this event as usual but

[PATCH v12 11/11] KVM: vmx/pmu: Release guest LBR event via lazy release mechanism

2020-06-13 Thread Like Xu
The vPMU uses GUEST_LBR_IN_USE_IDX (bit 58) in 'pmu->pmc_in_use' to indicate whether a guest LBR event is still needed by the vcpu. If the vcpu no longer accesses LBR related registers within a scheduling time slice, and the enable bit of LBR has been unset, vPMU will treat the guest LBR event as a

[PATCH v12 05/11] perf/x86: Keep LBR records unchanged in host context for guest usage

2020-06-13 Thread Like Xu
When a guest wants to use the LBR registers, its hypervisor creates a guest LBR event and let host perf schedules it. The LBR records msrs are accessible to the guest when its guest LBR event is scheduled on by the perf subsystem. Before scheduling this event out, we should avoid host changes on I

[PATCH v12 07/11] KVM: vmx/pmu: Unmask LBR fields in the MSR_IA32_DEBUGCTLMSR emualtion

2020-06-13 Thread Like Xu
When the LBR feature is reported by the vmx_get_perf_capabilities(), the LBR fields in the [vmx|vcpu]_supported debugctl should be unmasked. The debugctl msr is handled separately in vmx/svm and they're not completely identical, hence remove the common msr handling code. Signed-off-by: Like Xu -

[PATCH] iio: accel: Replace symbolic permissions with octal permissions

2020-06-13 Thread Mugilraj D
Resolve following checkpatch issue: WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. Signed-off-by: Mugilraj D --- drivers/iio/accel/bma180.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/iio/accel/bma180.c b

[PATCH v4 0/9] bmips: add BCM63xx power domain controller

2020-06-13 Thread Álvaro Fernández Rojas
BCM6318, BCM6328, BCM6362 and BCM63268 SoCs have a power domain controller to enable/disable certain components in order to save power. v4: Fix device tree bindings documentation. v3: Introduce changes suggested by Florian: - Use dt-bindings definitions in power domain driver. - Separate dt-bi

[PATCH v4 5/9] mips: bmips: add BCM6318 power domain definitions

2020-06-13 Thread Álvaro Fernández Rojas
BCM6318 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas --- v4: no changes. v3: no changes (patch reordered). v2: Add BCM6318 dt-bindings header file. include/dt-bindings/soc/bcm6318-pm.h | 17

[PATCH v4 3/9] mips: bmips: add BCM6362 power domain definitions

2020-06-13 Thread Álvaro Fernández Rojas
BCM6362 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas --- v4: Remove "dts: " from commit title. v3: Separate dt-bindings definitions from power domain .dtsi support. include/dt-bindings/soc/bcm6362-pm.h |

[PATCH v4 9/9] mips: bmips: dts: add BCM63268 power domain support

2020-06-13 Thread Álvaro Fernández Rojas
BCM63268 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas --- v4: no changes. v3: Separate dt-bindings definitions from power domain .dtsi support. v2: Add dt-bindings header files. arch/mips/boot/dts/brcm/

[PATCH v4 7/9] mips: bmips: dts: add BCM6328 power domain support

2020-06-13 Thread Álvaro Fernández Rojas
BCM6328 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v4: no changes. v3: Separate dt-bindings definitions from power domain .dtsi support. v2: Add dt-bindings header files.

[PATCH v4 8/9] mips: bmips: dts: add BCM6362 power domain support

2020-06-13 Thread Álvaro Fernández Rojas
BCM6362 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v4: no changes. v3: Separate dt-bindings definitions from power domain .dtsi support. v2: Add dt-bindings header files.

[PATCH v4 6/9] soc: bcm: add BCM63xx power domain driver

2020-06-13 Thread Álvaro Fernández Rojas
BCM6318, BCM6328, BCM6362 and BCM63268 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas --- v4: no changes. v3: Use dt-bindings definitions in power domain driver. v2: Introduce bcm63xx folder in drivers/soc/

[PATCH v4 2/9] mips: bmips: add BCM6328 power domain definitions

2020-06-13 Thread Álvaro Fernández Rojas
BCM6328 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas --- v4: Remove "dts: " from commit title. v3: Separate dt-bindings definitions from power domain .dtsi support. include/dt-bindings/soc/bcm6328-pm.h |

[PATCH v4 1/9] dt-bindings: soc: brcm: add BCM63xx power domain binding

2020-06-13 Thread Álvaro Fernández Rojas
BCM6318, BCM6328, BCM6362 and BCM63268 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Florian Fainelli --- v4: change license and move to bindings/power. v3: fix reg maxItems and quote #power-d

[PATCH v4 4/9] mips: bmips: add BCM63268 power domain definitions

2020-06-13 Thread Álvaro Fernández Rojas
BCM63268 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas --- v4: Remove "dts: " from commit title. v3: Separate dt-bindings definitions from power domain .dtsi support. include/dt-bindings/soc/bcm63268-pm.h

linux-next test error: KASAN: use-after-free Write in afs_wake_up_async_call

2020-06-13 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:64302eab Add linux-next specific files for 20200613 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=17bc9eda10 kernel config: https://syzkaller.appspot.com/x/.config?x=a4b041729071d963 dashboard

[PATCH] scsi: target/sbp: remove SBP target driver

2020-06-13 Thread Chris Boot
I no longer have the time to maintain this subsystem nor the hardware to test patches with. It also doesn't appear to have any active users so I doubt anyone will miss it. Signed-off-by: Chris Boot --- MAINTAINERS |9 - drivers/target/Kconfig |1 - drivers/ta

[PATCH v4 8/9] mips: bmips: dts: add BCM63268 reset controller support

2020-06-13 Thread Álvaro Fernández Rojas
BCM63268 SoCs have a reset controller for certain components. Signed-off-by: Álvaro Fernández Rojas --- v4: no changes. v3: add new path with BCM63268 reset controller support. arch/mips/boot/dts/brcm/bcm63268.dtsi | 6 + include/dt-bindings/reset/bcm63268-reset.h | 26 +

[PATCH v4 4/9] mips: bmips: dts: add BCM6328 reset controller support

2020-06-13 Thread Álvaro Fernández Rojas
BCM6328 SoCs have a reset controller for certain components. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v4: no changes. v3: add reset controller definitions header file. v2: no changes. arch/mips/boot/dts/brcm/bcm6328.dtsi | 6 ++ include/dt-bindings/rese

[PATCH v4 0/9] bmips: add bcm6345 reset controller support

2020-06-13 Thread Álvaro Fernández Rojas
BCM63xx SoCs have a reset controller for certain components. v4: Fix device tree bindings documentation. v3: using reset-simple isn't possible since sleeping after performing the reset is also needed. Add BCM63268 and BCM6318 support. v2: add compatibility to reset-simple instead of adding

[PATCH v4 9/9] mips: bmips: add BCM6318 reset controller definitions

2020-06-13 Thread Álvaro Fernández Rojas
BCM6318 SoCs have a reset controller for certain components. Signed-off-by: Álvaro Fernández Rojas --- v4: no changes. v3: add new path with BCM6318 reset controller definitions. include/dt-bindings/reset/bcm6318-reset.h | 20 1 file changed, 20 insertions(+) create mode

[PATCH v4 5/9] mips: bmips: dts: add BCM6358 reset controller support

2020-06-13 Thread Álvaro Fernández Rojas
BCM6358 SoCs have a reset controller for certain components. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v4: no changes. v3: add reset controller definitions header file. v2: no changes. arch/mips/boot/dts/brcm/bcm6358.dtsi | 6 ++ include/dt-bindings/rese

[PATCH v4 2/9] dt-bindings: reset: add BCM6345 reset controller bindings

2020-06-13 Thread Álvaro Fernández Rojas
Add device tree binding documentation for BCM6345 reset controller. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Florian Fainelli --- v4: change license and fix maxItems. v3: no changes v2: no changes .../bindings/reset/brcm,bcm6345-reset.yaml| 37 +++ 1 file chang

[PATCH v4 7/9] mips: bmips: dts: add BCM6368 reset controller support

2020-06-13 Thread Álvaro Fernández Rojas
BCM6368 SoCs have a reset controller for certain components. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v4: no changes. v3: add reset controller definitions header file. v2: no changes. arch/mips/boot/dts/brcm/bcm6368.dtsi | 6 ++ include/dt-bindings/rese

[PATCH v4 1/9] mips: bmips: select ARCH_HAS_RESET_CONTROLLER

2020-06-13 Thread Álvaro Fernández Rojas
This allows to add reset controllers support. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v4: no changes v3: no changes v2: no changes arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 26c63e8161f0..472

[PATCH v4 6/9] mips: bmips: dts: add BCM6362 reset controller support

2020-06-13 Thread Álvaro Fernández Rojas
BCM6362 SoCs have a reset controller for certain components. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v4: no changes. v3: add reset controller definitions header file. v2: no changes. arch/mips/boot/dts/brcm/bcm6362.dtsi | 6 ++ include/dt-bindings/rese

[PATCH v4 3/9] reset: add BCM6345 reset controller driver

2020-06-13 Thread Álvaro Fernández Rojas
Add support for resetting blocks through the Linux reset controller subsystem for BCM63xx SoCs. Signed-off-by: Álvaro Fernández Rojas --- v4: no changes. v3: using reset-simple isn't possible since sleeping after performing the reset is also needed. v2: add compatibility to reset-simple i

Re: [PATCH] csky: remove unusued thread_saved_pc and *_segments functions/macros

2020-06-13 Thread Guo Ren
Acked-by: Guo Ren On Wed, Jun 10, 2020 at 11:45 PM Tobias Klauser wrote: > > These are used nowhere in the tree (except for some architectures which > define them for their own use) and were already removed for other > architectures in: > > commit 6474924e2b5d ("arch: remove unused macro/functio

Re: [PATCH] doc: devicetree: bindings: fix spelling mistake

2020-06-13 Thread Guo Ren
Acked-by: Guo Ren On Thu, Jun 11, 2020 at 5:58 PM Flavio Suligoi wrote: > > Fix typo: "triger" --> "trigger" > > Signed-off-by: Flavio Suligoi > --- > Documentation/devicetree/bindings/gpio/mediatek,mt7621-gpio.txt | 2 +- > .../devicetree/bindings/interrupt-controller/csky,mpintc.txt| 2 +

Re: [PATCH] mtd: rawnand: brcmnand: force raw OOB writes

2020-06-13 Thread Álvaro Fernández Rojas
Hi Kamal, > El 12 jun 2020, a las 20:47, Kamal Dasu escribió: > > On Fri, Jun 5, 2020 at 1:07 PM Álvaro Fernández Rojas > wrote: >> >> MTD_OPS_AUTO_OOB is writting OOB with ECC enabled, which changes all ECC >> bytes >> from an erased page to 0x00 when JFFS2 cleanmarkers are added with mtd-u

Re: [PATCH v12 07/11] KVM: vmx/pmu: Unmask LBR fields in the MSR_IA32_DEBUGCTLMSR emualtion

2020-06-13 Thread Xiaoyao Li
On 6/13/2020 4:09 PM, Like Xu wrote: When the LBR feature is reported by the vmx_get_perf_capabilities(), the LBR fields in the [vmx|vcpu]_supported debugctl should be unmasked. The debugctl msr is handled separately in vmx/svm and they're not completely identical, hence remove the common msr ha

Re: upstream test error: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks

2020-06-13 Thread Greg KH
On Fri, Jun 12, 2020 at 10:20:35PM +0530, Ritesh Harjani wrote: > > I am seeing this all over the place on Linus's tree right now: > > > > [ +0.008563] BUG: using smp_processor_id() in preemptible [] code: > > systemd/1 > > [ +0.11] caller is ext4_mb_new_blocks+0x2ac/0xc10 > > [ +0

[RFC PATCH] hwtracing: Add HiSilicon PCIe Tune and Trace device driver

2020-06-13 Thread Yicong Yang
HiSilicon PCIe tune and trace device(PTT) is a PCIe Root Complex integrated Endpoint(RCiEP) device, providing the capability to dynamically monitor and tune the PCIe traffic parameters(tune), and trace the TLP headers to the memory(trace). Add the driver for the device to enable its functions. The

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

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

Re: [PATCH v12 07/11] KVM: vmx/pmu: Unmask LBR fields in the MSR_IA32_DEBUGCTLMSR emualtion

2020-06-13 Thread Xu, Like
On 2020/6/13 17:14, Xiaoyao Li wrote: On 6/13/2020 4:09 PM, Like Xu wrote: When the LBR feature is reported by the vmx_get_perf_capabilities(), the LBR fields in the [vmx|vcpu]_supported debugctl should be unmasked. The debugctl msr is handled separately in vmx/svm and they're not completely id

Re: [PATCH v2] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-13 Thread Baoquan He
On 06/13/20 at 11:51am, Jaewon Kim wrote: > zone_watermark_fast was introduced by commit 48ee5f3696f6 ("mm, > page_alloc: shortcut watermark checks for order-0 pages"). The commit > simply checks if free pages is bigger than watermark without additional > calculation such like reducing watermark. >

MY DEAR,

2020-06-13 Thread Dimiline Bararmna
Hello, I hope you are doing great today I sent you mail earlier but not sure if you received it. Please confirm receipt of this message as I have useful information for you​ Best regards, Dimiline Bararmna

LAs OS - The Ultimate Fair Pay System

2020-06-13 Thread Ywe Cærlyn
The Project name is now LAs OS. "Linux Audios OS" which we think is the best perspective on this. Fair Pay is wanted in Audio sector. And the ultimate iteration would ofcourse be a cpu accelerated libraries Exo core system. Serene Greetings, Ywe Cærlyn http://www.youtube.com/channel/UCR3gmLVj

[PATCH] PM / devfreq: rk3399_dmc: Fix kernel oops when rockchip,pmu is absent

2020-06-13 Thread Marc Zyngier
Booting a recent kernel on a rk3399-based system (nanopc-t4), equipped with a recent u-boot and ATF results in the following: [5.607431] Unable to handle kernel NULL pointer dereference at virtual address 01e4 [5.608219] Mem abort info: [5.608469] ESR = 0x9604 [5

[PATCH] venus: core: add shutdown callback for venus

2020-06-13 Thread Mansur Alisha Shaik
After the SMMU translation is disabled in the arm-smmu shutdown callback during reboot, if any subsystem are still alive then IOVAs they are using will become PAs on bus, which may lead to crash. Below are the consumers of smmu from venus arm-smmu: consumer: aa0.video-codec supplier=1500.i

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

2020-06-13 Thread Michael Ellerman
Nick Desaulniers writes: > On Thu, Jun 11, 2020 at 4:53 PM Segher Boessenkool > wrote: >> >> On Thu, Jun 11, 2020 at 03:43:55PM -0700, Nick Desaulniers wrote: >> > Segher, Cristophe, I suspect Clang is missing support for the %L and %U >> > output templates [1]. ... > > IIUC the bug report corre

[PATCH] i2c: core: check returned size of emulated smbus block read

2020-06-13 Thread Mans Rullgard
If the i2c bus driver ignores the I2C_M_RECV_LEN flag (as some of them do), it is possible for an I2C_SMBUS_BLOCK_DATA read issued on some random device to return an arbitrary value in the first byte (and nothing else). When this happens, i2c_smbus_xfer_emulated() will happily write past the end o

[GIT pull resend] x86/entry for v5.8

2020-06-13 Thread Thomas Gleixner
Linus, please pull the latest x86/entry branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-entry-2020-06-12 up to: 0bf3924bfabd: x86/entry: Force rcu_irq_enter() when in idle task It has been rebased and distangled as requested and is now based on git://git.kern

[GIT pull resend] ras/core for v5.8

2020-06-13 Thread Thomas Gleixner
Linus, please pull the latest ras/core branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras-core-2020-06-12 up to: 7ccddc4613db: x86/mce/dev-mcelog: Fix -Wstringop-truncation warning about strncpy() The merge of the entry code has been redone and the last two patches

[GIT pull resend] x86/entry and ras/core

2020-06-13 Thread Thomas Gleixner
[ Resending because it did not make LKML due to header wreckage which my sleep deprived and RCU demolished brain did not notice yesterday night and my script safety net failed to correct. ] Linus, the following two pull requests contain the distangled and rebased variants of the x86/entry and

RE: [PATCH v1 2/2] scsi: ufs: Add trace event for UIC commands

2020-06-13 Thread Avri Altman
> +static void ufshcd_add_uic_command_trace(struct ufs_hba *hba, > +struct uic_command *ucmd, > +const char *str) > +{ > + u32 cmd; > + > + if (!trace_ufshcd_uic_command_enabled()) > + return;

Re: [RFC 1/3] lib: copy_{from,to}_user using gup & kmap_atomic()

2020-06-13 Thread Andy Shevchenko
On Fri, Jun 12, 2020 at 1:20 PM afzal mohammed wrote: > > copy_{from,to}_user() uaccess helpers are implemented by user page > pinning, followed by temporary kernel mapping & then memcpy(). This > helps to achieve user page copy when current virtual address mapping > of the CPU excludes user pages

Re: [PATCH] ARM: dts: omap3: Migrate AES from hwmods to sysc-omap2

2020-06-13 Thread Adam Ford
On Tue, May 5, 2020 at 6:34 PM Tony Lindgren wrote: > > * Adam Ford [200505 21:18]: > > On Tue, May 5, 2020 at 1:42 PM Tony Lindgren wrote: > > > > > > * Adam Ford [200504 16:02]: > > > > Various OMAP3 boards have two AES blocks, but only one is currently > > > > available, because the hwmods a

Re: [PATCH] lib: update DEBUG_SHIRQ docs to match reality

2020-06-13 Thread Andy Shevchenko
On Fri, Jun 12, 2020 at 3:54 PM Wolfram Sang wrote: > > There is no extra interrupt when registering a shared interrupt handler > since 2011. Update the Kconfig text to make it clear and to avoid wrong > assumptions when debugging issues found by it. > I'm not sure. I have recently fixed a bug in

Re: [PATCH] i2c: icy: Fix build with CONFIG_AMIGA_PCMCIA=n

2020-06-13 Thread Andy Shevchenko
On Sun, Jun 7, 2020 at 9:48 PM Wolfram Sang wrote: > On Sun, Jun 07, 2020 at 08:28:12PM +0200, Max Staudt wrote: > Applied to for-next (i.e. for-5.8), thanks! A bit of offtopic, merge window is at its end, do you have plans to send PR to Linus soon? -- With Best Regards, Andy Shevchenko

[RFC PATCH v4 0/2] net: dsa: qca8k: Improve SGMII interface handling

2020-06-13 Thread Jonathan McDowell
Hopefully getting there, thanks for all the review comments. This 2 patch series migrates the qca8k switch driver over to PHYLINK, and then adds the SGMII clean-ups (i.e. the missing initialisation) on top of that as a second patch. As before, tested with a device where the CPU connection is RGMI

[RFC PATCH v4 1/2] net: dsa: qca8k: Switch to PHYLINK instead of PHYLIB

2020-06-13 Thread Jonathan McDowell
Update the driver to use the new PHYLINK callbacks, removing the legacy adjust_link callback. Signed-off-by: Jonathan McDowell --- drivers/net/dsa/qca8k.c | 308 +++- 1 file changed, 211 insertions(+), 97 deletions(-) diff --git a/drivers/net/dsa/qca8k.c b/dr

[RFC PATCH v4 2/2] net: dsa: qca8k: Improve SGMII interface handling

2020-06-13 Thread Jonathan McDowell
This patch improves the handling of the SGMII interface on the QCA8K devices. Previously the driver did no configuration of the port, even if it was selected. We now configure it up in the appropriate PHY/MAC/Base-X mode depending on what phylink tells us we are connected to and ensure it is enable

[PULL REQUEST] i2c for 5.8

2020-06-13 Thread Wolfram Sang
Linus, I2C has quite some patches for you this time. I hope it is the move to per-driver-maintainers which is now showing results. We will see. Big news is two new drivers (Nuvoton NPCM and Qualcomm CCI), larger refactoring of the Designware, Tegra, and PXA drivers, the Cadence driver supports be

Re: [PATCH] lib: update DEBUG_SHIRQ docs to match reality

2020-06-13 Thread Wolfram Sang
> > There is no extra interrupt when registering a shared interrupt handler > > since 2011. Update the Kconfig text to make it clear and to avoid wrong > > assumptions when debugging issues found by it. > > > > I'm not sure. > I have recently fixed a bug in the IIO sensor during ->probe() due to

Re: [PATCH] lib: update DEBUG_SHIRQ docs to match reality

2020-06-13 Thread Andy Shevchenko
On Sat, Jun 13, 2020 at 2:39 PM Wolfram Sang wrote: > > > > > There is no extra interrupt when registering a shared interrupt handler > > > since 2011. Update the Kconfig text to make it clear and to avoid wrong > > > assumptions when debugging issues found by it. > > > > > > > I'm not sure. > > I

Re: [RFC 1/3] lib: copy_{from,to}_user using gup & kmap_atomic()

2020-06-13 Thread afzal mohammed
Hi, On Fri, Jun 12, 2020 at 10:07:28PM +0200, Arnd Bergmann wrote: > I think a lot > of usercopy calls are only for a few bytes, though this is of course > highly workload dependent and you might only care about the large > ones. Observation is that max. pages reaching copy_{from,to}_user() is 2

Re: [PATCH] venus: core: add shutdown callback for venus

2020-06-13 Thread Stanimir Varbanov
Hi Mansur, Thanks for the patch! How you test this? Is it enough to start playback and issue reboot (did you test with reboot -f) ? On 6/13/20 1:33 PM, Mansur Alisha Shaik wrote: > After the SMMU translation is disabled in the > arm-smmu shutdown callback during reboot, if > any subsystem are st

Re: [PATCH] printk: Make linux/printk.h self-contained

2020-06-13 Thread kernel test robot
Hi Herbert, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.7 next-20200611] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to

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

2020-06-13 Thread Lu Baolu
Hi Fenghua, On 2020/6/13 8:41, Fenghua Yu wrote: From: Ashok Raj ENQCMD and Data Streaming Accelerator (DSA) and all of their associated features are a complicated stack with lots of interconnected pieces. This documentation provides a big picture overview for all of the features. Signed-off-

[PATCH] cifs: Fix cached_fid refcnt leak in open_shroot

2020-06-13 Thread Xiyu Yang
open_shroot() invokes kref_get(), which increases the refcount of the "tcon->crfid" object. When open_shroot() returns not zero, it means the open operation failed and close_shroot() will not be called to decrement the refcount of the "tcon->crfid". The reference counting issue happens in one norm

Re: [PATCH v10 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286

2020-06-13 Thread Jacopo Mondi
Hi Rob, On Fri, Jun 12, 2020 at 04:10:03PM -0600, Rob Herring wrote: > On Fri, 12 Jun 2020 15:47:10 +0100, Kieran Bingham wrote: > > From: Laurent Pinchart > > > > The MAX9286 deserializes video data received on up to 4 Gigabit > > Multimedia Serial Links (GMSL) and outputs them on a CSI-2 port u

[PATCH] drm/ttm: Fix dma_fence refcnt leak in ttm_bo_vm_fault_reserved

2020-06-13 Thread Xiyu Yang
ttm_bo_vm_fault_reserved() invokes dma_fence_get(), which returns a reference of the specified dma_fence object to "moving" with increased refcnt. When ttm_bo_vm_fault_reserved() returns, local variable "moving" becomes invalid, so the refcount should be decreased to keep refcount balanced. The r

[PATCH] drm/ttm: Fix dma_fence refcnt leak when adding move fence

2020-06-13 Thread Xiyu Yang
ttm_bo_add_move_fence() invokes dma_fence_get(), which returns a reference of the specified dma_fence object to "fence" with increased refcnt. When ttm_bo_add_move_fence() returns, local variable "fence" becomes invalid, so the refcount should be decreased to keep refcount balanced. The reference

[PATCH] sctp: Fix sk_buff leak when receiving a datagram

2020-06-13 Thread Xiyu Yang
In sctp_skb_recv_datagram(), the function fetch a sk_buff object from the receiving queue to "skb" by calling skb_peek() or __skb_dequeue() and return its reference to the caller. However, when calling __skb_dequeue() successfully, the function forgets to hold a reference count of the "skb" object

Re: [PATCH] dm writecache: correct uncommitted_block when discarding uncommitted entry

2020-06-13 Thread Mikulas Patocka
On Fri, 12 Jun 2020, Huaisheng Ye wrote: > From: Huaisheng Ye > > When uncommitted entry has been discarded, correct wc->uncommitted_block > for getting the exact number. > > Signed-off-by: Huaisheng Ye Acked-by: Mikulas Patocka Also, add: Cc: sta...@vger.kernel.org > --- > drivers/md/

Re: [PATCH] dm writecache: skip writecache_wait when using pmem mode

2020-06-13 Thread Mikulas Patocka
On Fri, 12 Jun 2020, Huaisheng Ye wrote: > From: Huaisheng Ye > > The array bio_in_progress is only used with ssd mode. So skip > writecache_wait_for_ios in writecache_discard when pmem mode. > > Signed-off-by: Huaisheng Ye Acked-by: Mikulas Patocka > --- > drivers/md/dm-writecache.c |

Re: [RFC 1/3] lib: copy_{from,to}_user using gup & kmap_atomic()

2020-06-13 Thread Al Viro
On Sat, Jun 13, 2020 at 05:34:32PM +0530, afzal mohammed wrote: > Observation is that max. pages reaching copy_{from,to}_user() is 2, > observed maximum of n (number of bytes) being 1 page size. i think C > library cuts any size read, write to page size (if it exceeds) & > invokes the system call.

[PATCH] tty: serial_core: Fix uart_state leak when port shutdown

2020-06-13 Thread Xiyu Yang
uart_shutdown() invokes uart_port_lock(), which returns a reference of the uart_port object if increases the refcount of the uart_state object successfully or returns NULL if fails. However, uart_shutdown() don't take the return value of uart_port_lock() as the new uart_port object to "uport" and

[PATCH] tty: serial_core: Fix uart_state refcnt leak when the port startup

2020-06-13 Thread Xiyu Yang
uart_port_startup() invokes uart_port_lock(), which returns a reference of the uart_port object if increases the refcount of the uart_state object successfully or returns NULL if fails. However, uart_port_startup() don't take the return value of uart_port_lock() as the new uart_port object to "upo

Re: [RFC 1/3] lib: copy_{from,to}_user using gup & kmap_atomic()

2020-06-13 Thread Al Viro
On Sat, Jun 13, 2020 at 01:51:26PM +0100, Al Viro wrote: > On Sat, Jun 13, 2020 at 05:34:32PM +0530, afzal mohammed wrote: > > > Observation is that max. pages reaching copy_{from,to}_user() is 2, > > observed maximum of n (number of bytes) being 1 page size. i think C > > library cuts any size re

Re: [GIT PULL] General notification queue and key notifications

2020-06-13 Thread David Howells
Linus Torvalds wrote: > I'm not even convinced O_NOTIFICATION_PIPE is necessary, but at worst > it will be a useful marker. I think the only real reason for it was to > avoid any clashes with splice(), which has more complex use of the > pipe buffers. The main reason is to prevent splice because

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

2020-06-13 Thread Lu Baolu
Hi Fenghua, On 2020/6/13 8:41, Fenghua Yu wrote: A PASID is allocated for an "mm" the first time any thread attaches to an SVM capable device. Later device attachments (whether to the same device or another SVM device) will re-use the same PASID. The PASID is freed when the process exits (so no

Re: [PATCH v2] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-13 Thread Jaewon Kim
2020년 6월 13일 (토) 오후 6:42, Baoquan He 님이 작성: > > On 06/13/20 at 11:51am, Jaewon Kim wrote: > > zone_watermark_fast was introduced by commit 48ee5f3696f6 ("mm, > > page_alloc: shortcut watermark checks for order-0 pages"). The commit > > simply checks if free pages is bigger than watermark without ad

Re: [PATCH] printk: Make linux/printk.h self-contained

2020-06-13 Thread Herbert Xu
On Sat, Jun 13, 2020 at 08:28:34PM +0800, kernel test robot wrote: > > Hi Herbert, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on v5.7 next-20200611] > [if your patch is applied to the wrong git tree, please drop u

Re: [RFC 1/3] lib: copy_{from,to}_user using gup & kmap_atomic()

2020-06-13 Thread Russell King - ARM Linux admin
On Sat, Jun 13, 2020 at 05:34:32PM +0530, afzal mohammed wrote: > Hi, > > On Fri, Jun 12, 2020 at 10:07:28PM +0200, Arnd Bergmann wrote: > > > I think a lot > > of usercopy calls are only for a few bytes, though this is of course > > highly workload dependent and you might only care about the lar

Re: [GIT pull V2] locking/kcsan for v5.8

2020-06-13 Thread Dmitry Vyukov
On Fri, Jun 12, 2020 at 4:10 AM wrote: > > The pull request you sent on Fri, 12 Jun 2020 00:24:49 -: > > > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > > locking-kcsan-2020-06-11 > > has been merged into torvalds/linux.git: > https://git.kernel.org/torvalds/c/b791d1bdf9212d944d

CT Brain Scan (12 Jun 2020) and MRI Brain Scan (13 Jun 2020) at Changi General Hospital (Singapore): All Normal

2020-06-13 Thread Turritopsis Dohrnii Teo En Ming
Subject: CT Brain Scan (12 Jun 2020) and MRI Brain Scan (13 Jun 2020) at Changi General Hospital (Singapore): All Normal Name of Patient: Mr. Turritopsis Dohrnii Teo En Ming (Zhang Enming) @ Time Traveller Age (as of 13 Jun 2020): 42 years old Hospital: Changi General Hospital Country: Singapo

  1   2   3   4   >