[RFC v1 19/26] x86/tdx: Forcefully disable legacy PIC for TDX guests

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: Sean Christopherson Disable the legacy PIC (8259) for TDX guests as the PIC cannot be supported by the VMM. TDX Module does not allow direct IRQ injection, and using posted interrupt style delivery requires the guest to EOI the IRQ, which diverges from the legacy PIC behavior.

[PATCH v4 7/8] PM: domains: Mark fwnodes when their powerdomain is added/removed

2021-02-05 Thread Saravana Kannan
This allows fw_devlink to recognize power domain drivers that don't use the device-driver model to initialize the device. fw_devlink will use this information to make sure consumers of such power domain aren't indefinitely blocked from probing, waiting for the power domain device to appear and

Re: [PATCH v3 1/7] seqnum_ops: Introduce Sequence Number Ops

2021-02-05 Thread Luck, Tony
On Fri, Feb 05, 2021 at 01:03:18PM -0700, Shuah Khan wrote: > On 2/5/21 2:58 AM, Greg KH wrote: > > On Wed, Feb 03, 2021 at 11:11:57AM -0700, Shuah Khan wrote: > > > +static inline u32 seqnum32_inc(struct seqnum32 *seq) > > > +{ > > > + atomic_t val = ATOMIC_INIT(seq->seqnum); > > > + > > > +

[PATCH v5 30/34] misc:intel_tsens: Intel Keem Bay tsens driver.

2021-02-05 Thread mgross
From: "C, Udhayakumar" Add keembey_thermal driver to expose on chip temperature sensors, and register call back functions for periodic sampling. This driver does following: * Reads temperature data from on chip sensors present in Keem Bay platform. * Registers callback function to intel tsens

[PATCH 5/5] loop: increment sequence number

2021-02-05 Thread Matteo Croce
From: Matteo Croce On a very loaded system, if there are many events queued up from multiple attach/detach cycles, it's impossible to match them up with the LOOP_CONFIGURE or LOOP_SET_FD call, since we don't know where the position of our own association in the queue is[1]. Not even an empty

[PATCH net-next v2 5/7] net: ipa: use a Boolean rather than count when replenishing

2021-02-05 Thread Alex Elder
The count argument to ipa_endpoint_replenish() is only ever 0 or 1, and always will be (because we always handle each receive buffer in a single transaction). Rename the argument to be add_one and change it to be Boolean. Update the function description to reflect the current code.

[PATCH net-next v2 6/7] net: ipa: get rid of status size constraint

2021-02-05 Thread Alex Elder
There is a build-time check that the packet status structure is a multiple of 4 bytes in size. It's not clear where that constraint comes from, but the structure defines what hardware provides so its definition won't change. Get rid of the check; it adds no value. Signed-off-by: Alex Elder ---

[PATCH 2/4] fs/btrfs: Use memcpy_[to|from]_page()

2021-02-05 Thread ira . weiny
From: Ira Weiny Development of this patch was aided by the coccinelle script: // // SPDX-License-Identifier: GPL-2.0-only // Find kmap/memcpy/kunmap pattern and replace with memcpy*page calls // // NOTE: Offsets and other expressions may be more complex than what the script // will

[PATCH 3/4] fs/btrfs: Use copy_highpage() instead of 2 kmaps()

2021-02-05 Thread ira . weiny
From: Ira Weiny Development of this patch was aided by the following coccinelle script: // // SPDX-License-Identifier: GPL-2.0-only // Find kmap/copypage/kunmap pattern and replace with copy_highpage calls // // NOTE: The expressions in the copy page version of this kmap pattern are // overly

[PATCH 0/3] drivers/net/ethernet/amd: Follow style guide

2021-02-05 Thread Amy Parker
This patchset updates atarilance.c and sun3lance.c to follow the kernel style guide. Each patch tackles a different issue in the style guide. -Amy IP Amy Parker (3): drivers/net/ethernet/amd: Correct spacing around C keywords drivers/net/ethernet/amd: Fix bracket matching and line levels

[PATCH v2 2/5] dax-device: Properly handle drivers without remove callback

2021-02-05 Thread Uwe Kleine-König
If all resources are allocated in .probe() using devm_ functions it might make sense to not provide a .remove() callback. Then the right thing is to just return success. Signed-off-by: Uwe Kleine-König --- drivers/dax/bus.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[RFC v1 16/26] x86/boot: Avoid #VE during compressed boot for TDX platforms

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: Sean Christopherson Avoid operations which will inject #VE during compressed boot, which is obviously fatal for TDX platforms. Details are, 1. TDX module injects #VE if a TDX guest attempts to write EFER. So skip the WRMSR to set EFER.LME=1 if it's already set. TDX also forces

[PATCH 1/4] mm/highmem: Lift memcpy_[to|from]_page to core

2021-02-05 Thread ira . weiny
From: Ira Weiny Working through a conversion to a call kmap_local_page() instead of kmap() revealed many places where the pattern kmap/memcpy/kunmap occurred. Eric Biggers, Matthew Wilcox, Christoph Hellwig, Dan Williams, and Al Viro all suggested putting this code into helper functions. Al

Re: [PATCH] drm/msm/dp: reset dp controller only at boot up and pm_resume

2021-02-05 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-02-05 12:44:38) > DP_SW_RESET is the global SW reset that is used to initialize DP > controller. If DP_SW_RESET executed during connection setup, > two HPD related side effects may occurred, > 1) pending HPD interrupts cleared unexpected > 2) re start debounce logic

[PATCH v4 1/8] driver core: fw_devlink: Detect supplier devices that will never be added

2021-02-05 Thread Saravana Kannan
During the initial parsing of firmware by fw_devlink, fw_devlink might infer that some supplier firmware nodes would get populated as devices. But the inference is not always correct. This patch tries to logically detect and fix such mistakes as boot progresses or more devices probe. fw_devlink

Re: [PATCH] printk: Userspace format enumeration support

2021-02-05 Thread Chris Down
Hi Steven, Steven Rostedt writes: Interesting, because when I was looking at the original patch (looked at the lore link before reading your reply), I thought to myself "this looks exactly like what I did for trace_printk formats", which the above file is where it is shown. I'm curious if this

[PATCH] KVM: SVM: Delay restoration of host MSR_TSC_AUX until return to userspace

2021-02-05 Thread Sean Christopherson
Use KVM's "user return MSRs" framework to defer restoring the host's MSR_TSC_AUX until the CPU returns to userspace. Add/improve comments to clarify why MSR_TSC_AUX is intercepted on both RDMSR and WRMSR, and why it's safe for KVM to keep the guest's value loaded even if KVM is scheduled out.

Re: [PATCH RESEND V12 2/8] fuse: 32-bit user space ioctl compat for fuse device

2021-02-05 Thread Peng Tao
On Thu, Jan 28, 2021 at 10:15 PM Alessio Balsini wrote: > > Hi all, > > I'm more than happy to change the interface into something that is > objectively better and accepted by everyone. > I would really love to reach the point at which we have a "stable-ish" > UAPI as soon as possible. > > I've

[PATCH] ARM: configs: at91: enable drivers for sam9x60

2021-02-05 Thread Claudiu Beznea
Enable drivers for sam9x60/sam9x60-ek: - shutdown controller - CAN - AT24 EEPROM (present on SAM9X60-EK) - MCP23S08 (present on SAM9X60-EK) - AES, TDES, SHA And use "make savedefconfig". Signed-off-by: Claudiu Beznea --- arch/arm/configs/at91_dt_defconfig | 12 +++- 1 file changed, 7

Re: [External] Re: [PATCH] mm: memcontrol: fix missing wakeup oom task

2021-02-05 Thread Muchun Song
On Fri, Feb 5, 2021 at 4:24 PM Michal Hocko wrote: > > On Fri 05-02-21 14:23:10, Muchun Song wrote: > > We call memcg_oom_recover() in the uncharge_batch() to wakeup OOM task > > when page uncharged, but for the slab pages, we do not do this when page > > uncharged. > > How does the patch deal

Re: [PATCH] sound: x86: Trivial spell fixes throughout the file intel_hdmi_audio.c

2021-02-05 Thread Bhaskar Chowdhury
On 10:39 Fri 05 Feb 2021, Takashi Iwai wrote: On Fri, 05 Feb 2021 10:32:14 +0100, Bhaskar Chowdhury wrote: s/confgiuration/configuration/ s/Calculte/Calculate/ s/unreference/unreferenced/ The last one isn't correct. It was meant as a positive form, so if any, it's "unrefer", but

Re: [PATCH V7 4/6] kbuild: Add support to build overlays (%.dtbo)

2021-02-05 Thread Viresh Kumar
On 05-02-21, 10:41, Geert Uytterhoeven wrote: > Hi Viresh, > > On Fri, Feb 5, 2021 at 10:25 AM Viresh Kumar wrote: > > On 05-02-21, 10:02, Geert Uytterhoeven wrote: > > > Thanks for your patch > > > (which I only noticed because it appeared in dt-rh/for-next ;-) > > > > > > On Fri, Jan 29, 2021

Re: [PATCH] perf metricgroup: Fix system PMU metrics

2021-02-05 Thread John Garry
that's fixing the issue for me, this was crashing: # perf stat -a -I 1000 -M L1D_Cache_Fill_BW,L2_Cache_Fill_BW To cover this scenario (multiple metrics listed), how about a simple addition like: >8 From bd2ded1b0ef4962a9443cd180eed4e5c5b75ae5f Mon Sep 17 00:00:00 2001

AW: [PATCH v2 1/4] leds: lp50xx: add setting of default intensity from DT

2021-02-05 Thread Sven Schuchmann
Hello Pavel, hello Dan, > > diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml > > b/Documentation/devicetree/bindings/leds/leds- > lp50xx.yaml > > index c192b5feadc7..2bc25b2fc94d 100644 > > --- a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml > > +++

Re: [PATCH v3 1/7] seqnum_ops: Introduce Sequence Number Ops

2021-02-05 Thread Greg KH
On Wed, Feb 03, 2021 at 11:11:57AM -0700, Shuah Khan wrote: > +static inline u32 seqnum32_inc(struct seqnum32 *seq) > +{ > + atomic_t val = ATOMIC_INIT(seq->seqnum); > + > + seq->seqnum = (u32) atomic_inc_return(); > + if (seq->seqnum >= UINT_MAX) > + pr_info("Sequence

Re: [PATCH 1/2] PCI: also set up legacy files only after sysfs init

2021-02-05 Thread Daniel Vetter
On Thu, Feb 4, 2021 at 11:24 PM Pali Rohár wrote: > > On Thursday 04 February 2021 15:50:19 Bjorn Helgaas wrote: > > [+cc Oliver, Pali, Krzysztof] > > Just to note that extending or using sysfs_initialized introduces > another race condition into kernel code which results in PCI fatal > errors.

Re: [RFC][PATCH 2/2] x86: add extra serialization for non-serializing MSRs

2021-02-05 Thread Peter Zijlstra
On Thu, Feb 04, 2021 at 04:11:12PM -0800, Andy Lutomirski wrote: > I'm wondering if a more mild violation is possible: > > Initialize *addr = 0. > > mov $1, (addr) > wrmsr > > remote cpu's IDT vector: > > mov (addr), %rax > %rax == 0! > > There's no

Re: [PATCH v1] gpiolib: Don't probe gpio_device if it's not the primary device

2021-02-05 Thread Bartosz Golaszewski
On Fri, Feb 5, 2021 at 3:08 AM Saravana Kannan wrote: > > Dmitry reported[1] boot error messages caused by > commit 4731210c09f5 ("gpiolib: Bind gpio_device to a driver to enable > fw_devlink=on by default"). > > gpio-1022 (cpu-pwr-req-hog): hogged as input > max77620-pinctrl max77620-pinctrl:

[RESEND RFC: timer passthrough 0/9] Support timer passthrough for VM

2021-02-05 Thread Zhimin Feng
The main motivation for this patch is to improve the performance of VM. This patch series introduces how to enable the timer passthrough in non-root mode. The main idea is to offload the host timer to the preemtion timer in non-root mode. Through doing this, guest can write tscdeadline msr

[RFC: timer passthrough 2/9] KVM: vmx: enable host lapic timer offload preemtion timer

2021-02-05 Thread Zhimin Feng
Use preemption timer to handle host timer Signed-off-by: Zhimin Feng --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/vmx/vmx.c | 54 + arch/x86/kvm/x86.c | 1 + 3 files changed, 56 insertions(+) diff --git

[RFC: timer passthrough 3/9] KVM: vmx: enable passthrough timer to guest

2021-02-05 Thread Zhimin Feng
Allow Guest to write tscdeadline msr directly. Signed-off-by: Zhimin Feng --- arch/x86/include/asm/kvm_host.h | 3 +++ arch/x86/kvm/lapic.c| 9 +++ arch/x86/kvm/vmx/vmx.c | 56 + 3 files changed, 68 insertions(+) diff --git

[RFC: timer passthrough 1/9] KVM: vmx: hook set_next_event for getting the host tscd

2021-02-05 Thread Zhimin Feng
In order to get the host tscd value, we need to hook set_next_event function Signed-off-by: Zhimin Feng --- arch/x86/include/asm/kvm_host.h | 21 + arch/x86/kvm/vmx/vmx.c | 51 + arch/x86/kvm/x86.c | 1 +

[RFC: timer passthrough 4/9] KVM: vmx: enable passth timer switch to sw timer

2021-02-05 Thread Zhimin Feng
Switch the guest timer to software timer when the VCPU is scheduled. Signed-off-by: Zhimin Feng --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/vmx/vmx.c | 65 + arch/x86/kvm/x86.c | 12 ++-- 3 files changed, 76

[RFC: timer passthrough 5/9] KVM: vmx: use tsc_adjust to enable tsc_offset timer passthrough

2021-02-05 Thread Zhimin Feng
when in vm: rdtsc = host_tsc * (TSC multiplier) + tsc_offset(<0) so when vm write tsc_deadline_msr the value always less than tsc stampcounter msr value, the irq never be triggered. the tsc_adjust msr use as below, host execute rdtsc = host_tsc + tsc_adjust when vmentry, we set the tsc_adjust

[RFC: timer passthrough 9/9] KVM: vmx: query the state of timer-passth for vm

2021-02-05 Thread Zhimin Feng
query the state of timer passthrough of specific vm Signed-off-by: Zhimin Feng --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/vmx/vmx.c | 11 +++ arch/x86/kvm/x86.c | 6 ++ include/uapi/linux/kvm.h| 1 + tools/include/uapi/linux/kvm.h | 1

[RFC: timer passthrough 6/9] KVM: vmx: check enable_timer_passth strictly

2021-02-05 Thread Zhimin Feng
preemption timer is default disabled timer passthrough is default enabled Signed-off-by: Zhimin Feng --- arch/x86/kvm/vmx/vmx.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 44b2fd59587e..a12da3cef86d 100644

Re: [PATCH 1/2] PCI: also set up legacy files only after sysfs init

2021-02-05 Thread Pali Rohár
On Friday 05 February 2021 10:59:50 Daniel Vetter wrote: > On Thu, Feb 4, 2021 at 11:24 PM Pali Rohár wrote: > > > > On Thursday 04 February 2021 15:50:19 Bjorn Helgaas wrote: > > > [+cc Oliver, Pali, Krzysztof] > > > > Just to note that extending or using sysfs_initialized introduces > > another

Re: [PATCH v2 1/2] ima: Free IMA measurement buffer on error

2021-02-05 Thread Greg KH
On Thu, Feb 04, 2021 at 09:49:50AM -0800, Lakshmi Ramasubramanian wrote: > IMA allocates kernel virtual memory to carry forward the measurement > list, from the current kernel to the next kernel on kexec system call, > in ima_add_kexec_buffer() function. In error code paths this memory > is not

Re: linux-next: build failure after merge of the kvm tree

2021-02-05 Thread Paolo Bonzini
On 05/02/21 06:02, Stephen Rothwell wrote: Hi all, After merging the kvm tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: ERROR: modpost: ".follow_pte" [arch/powerpc/kvm/kvm.ko] undefined! Caused by commit bd2fae8da794 ("KVM: do not assume PTE is writable after

Re: [PATCH v2 2/2] of: property: Add fw_devlink support for interrupts

2021-02-05 Thread Saravana Kannan
On Fri, Feb 5, 2021 at 12:06 AM Geert Uytterhoeven wrote: > > Hi Marek, > > On Fri, Feb 5, 2021 at 8:38 AM Marek Szyprowski > wrote: > > On 04.02.2021 22:31, Saravana Kannan wrote: > > > On Thu, Feb 4, 2021 at 3:52 AM Marek Szyprowski > > > wrote: > > >> On 21.01.2021 23:57, Saravana Kannan

Re: [PATCH v2 2/2] ima: Free IMA measurement buffer after kexec syscall

2021-02-05 Thread Greg KH
On Thu, Feb 04, 2021 at 09:49:51AM -0800, Lakshmi Ramasubramanian wrote: > IMA allocates kernel virtual memory to carry forward the measurement > list, from the current kernel to the next kernel on kexec system call, > in ima_add_kexec_buffer() function. This buffer is not freed before >

Re: {standard input}:577: Error: unsupported relocation against base

2021-02-05 Thread Feng Tang
Hi Christophe and Michael, On Mon, Jan 18, 2021 at 10:24:08PM +0800, Christophe Leroy wrote: > > > Le 05/01/2021 ? 11:58, kernel test robot a 閏rit : > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > master > > head: e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 >

Re: [GIT PULL] interconnect changes for 5.12

2021-02-05 Thread Greg KH
On Fri, Feb 05, 2021 at 11:52:46AM +0200, Georgi Djakov wrote: > Hello Greg, > > This is the pull request with the interconnect changes for the 5.12-rc1 > merge window. These include two new drivers some driver consolidation. > > Patches have been in linux-next without any reported issues.

Re: [PATCH] ARM: configs: at91: enable drivers for sam9x60

2021-02-05 Thread Tudor.Ambarus
On 2/5/21 11:54 AM, Claudiu Beznea wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Enable drivers for sam9x60/sam9x60-ek: > - shutdown controller > - CAN > - AT24 EEPROM (present on SAM9X60-EK) > - MCP23S08 (present on SAM9X60-EK) > -

[PATCH 3/3] crypto: hisilicon/sec - fixes shash test error

2021-02-05 Thread Longfang Liu
If this configuration item is not turned on, the allocation of crypto_tfm will fail when the shash algorithm calculates the hash through the software. Signed-off-by: Longfang Liu --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/3] crypto:hisilicon/sec - fixes some coding style

2021-02-05 Thread Longfang Liu
1. Fix two problems. 2. Fix some coding style. Longfang Liu (3): crypto: hisilicon/sec - fixes some log printing style crypto: hisilicon/sec - fixes some driver coding style crypto: hisilicon/sec - fixes shash test error arch/arm64/configs/defconfig | 2 +-

[PATCH v4 03/22] media: camss: Replace trace_printk() with dev_dbg()

2021-02-05 Thread Robert Foss
trace_printk() should not be used in production code, since extra memory is used for special buffers whenever trace_puts() is used. Replace it with dev_dbg() which provides all of the desired debugging functionality. Signed-off-by: Robert Foss Suggested-by: Nicolas Boichat --- Changes since

[PATCH 1/3] crypto: hisilicon/sec - fixes some log printing style

2021-02-05 Thread Longfang Liu
1. Fix a problem of error log printing 2. Modify error log printing style Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 5 +- drivers/crypto/hisilicon/sec2/sec_crypto.c | 82 +++--- drivers/crypto/hisilicon/sec2/sec_crypto.h | 2 - 3

[PATCH v4 01/22] media: camss: Fix vfe_isr_comp_done() documentation

2021-02-05 Thread Robert Foss
Function name is comment is wrong, and was changed to be the same as the actual function name. The comment was changed to kerneldoc format. Signed-off-by: Robert Foss --- Changes since v1 - Bjorn: Fix function doc name & use kerneldoc format drivers/media/platform/qcom/camss/camss-vfe.c |

[PATCH v4 05/22] media: camss: Make ISPIF subdevice optional

2021-02-05 Thread Robert Foss
This driver supports multiple architecture versions of the Qualcomm ISP. The CAMSS architecure which this driver is name after, and with the introduction of this series, the Titan architecture. The ISPIF is an IP-block that is only present in the CAMSS generation of the architecture. In order to

[PATCH v4 00/22] Add support for the SDM845 Camera Subsystem

2021-02-05 Thread Robert Foss
This series implements support for the camera subsystem found in the SDM845 SOCs and the Titan 170 ISP. The support is partial in that it implements CSIPHY, CSID, and partial VFE support. The Titan generation of the ISP diverges a fair amount from the design of the previous architecture

[PATCH v4 10/22] media: camss: Add support for CSID hardware version Titan 170

2021-02-05 Thread Robert Foss
Add register definitions for version 170 of the Titan architecture and implement support for the CSID subdevice. Signed-off-by: Robert Foss --- Changes since v3 - Sakari: Make variable const drivers/media/platform/qcom/camss/Makefile| 1 + .../platform/qcom/camss/camss-csid-170.c

[PATCH v4 11/22] media: camss: Add support for CSIPHY hardware version Titan 170

2021-02-05 Thread Robert Foss
Add register definitions for version 170 of the Titan architecture and implement support for the CSIPHY subdevice. Signed-off-by: Robert Foss --- .../qcom/camss/camss-csiphy-3ph-1-0.c | 182 -- .../media/platform/qcom/camss/camss-csiphy.c | 66 +--

[PATCH v4 16/22] dt-bindings: media: camss: Add qcom,sdm660-camss binding

2021-02-05 Thread Robert Foss
Add bindings for qcom,sdm660-camss in order to support the camera subsystem on SDM630/660 and SDA variants. Signed-off-by: Robert Foss Reviewed-by: Rob Herring --- Changes since v2 - Rob: Add new line at end of file - Rob: Remove redundant descriptions - Rob: Add power domain description -

Re: [PATCH v2] dma-mapping: benchmark: pretend DMA is transmitting

2021-02-05 Thread Christoph Hellwig
On Fri, Feb 05, 2021 at 10:52:37AM +, Song Bao Hua (Barry Song) wrote: > I assume there is no need to keep the same size with 5.11-rc, so > could change the struct to: > > struct map_benchmark { > __u64 avg_map_100ns; /* average map latency in 100ns */ > __u64 map_stddev; /*

Re: Possible deny of service with memfd_create()

2021-02-05 Thread Christian König
Am 05.02.21 um 11:50 schrieb Michal Hocko: On Fri 05-02-21 08:54:31, Christian König wrote: Am 05.02.21 um 01:32 schrieb Hugh Dickins: On Thu, 4 Feb 2021, Michal Hocko wrote: On Thu 04-02-21 17:32:20, Christian Koenig wrote: Hi Michal, as requested in the other mail thread the following

[PATCH v4 02/22] media: camss: Fix vfe_isr comment typo

2021-02-05 Thread Robert Foss
Comment refers to ISPIF, but this is incorrect. Only the VFE interrupts are handled by this function. Signed-off-by: Robert Foss Reviewed-by: Bjorn Andersson --- Changes since v1 - Bjorn: Add r-b drivers/media/platform/qcom/camss/camss-vfe-4-1.c | 2 +-

Re: [PATCH] perf record: Fix continue profiling after draining the buffer

2021-02-05 Thread Jiri Olsa
On Fri, Feb 05, 2021 at 07:35:22PM +0900, Namhyung Kim wrote: > Hello, > > On Fri, Feb 5, 2021 at 3:50 PM Yang Jihong wrote: > > > > commit da231338ec9c098707c8a1e4d8a50e2400e2fe17 uses eventfd to solve rare > > race > > where the setting and checking of 'done' which add done_fd to pollfd. > >

[RESEND PATCH 2/2] ASoC: stm32: i2s: add master clock provider

2021-02-05 Thread Olivier Moysan
From: Olivier Moysan Add master clock generation support in STM32 I2S driver. The master clock provided by I2S can be used to feed a codec. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 310 -- 1 file changed, 266 insertions(+), 44

[PATCH v4 07/22] media: camss: Add support for VFE hardware version Titan 170

2021-02-05 Thread Robert Foss
Add register definitions for version 170 of the Titan architecture and implement support for the RDI output mode. The RDI mode as opposed to the PIX output mode for the VFE unit does not support any ISP functionality. This means essentially only supporting dumping the output of the whatever the

Re: [GIT PULL] immutable branch for amba changes targeting v5.12-rc1

2021-02-05 Thread Uwe Kleine-König
On Fri, Feb 05, 2021 at 11:18:17AM +0100, Greg Kroah-Hartman wrote: > On Fri, Feb 05, 2021 at 10:37:44AM +0100, Uwe Kleine-König wrote: > > Hello Russell, hello Greg, > > > > On Thu, Feb 04, 2021 at 07:15:51PM +0100, Uwe Kleine-König wrote: > > > On Thu, Feb 04, 2021 at 04:59:51PM +, Russell

[PATCH 3/5] clk: rockchip: add clock id for SCLK_VIP_OUT on rk3368

2021-02-05 Thread Heiko Stuebner
From: Heiko Stuebner Needed to provide clocks for cameras. Signed-off-by: Heiko Stuebner --- include/dt-bindings/clock/rk3368-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/rk3368-cru.h b/include/dt-bindings/clock/rk3368-cru.h index

[PATCH 4/5] clk: rockchip: use clock id for SCLK_VIP_OUT on rk3368

2021-02-05 Thread Heiko Stuebner
From: Heiko Stuebner Export the vip-out clock via the newly added clock-id. Signed-off-by: Heiko Stuebner --- drivers/clk/rockchip/clk-rk3368.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3368.c b/drivers/clk/rockchip/clk-rk3368.c index

[PATCH 1/5] clk: rockchip: add clock ids for PCLK_DPHYRX and PCLK_DPHYTX0 on rk3368

2021-02-05 Thread Heiko Stuebner
From: Heiko Stuebner Needed by the mipi dphys. The naming follows the clock names in the manual. Signed-off-by: Heiko Stuebner --- include/dt-bindings/clock/rk3368-cru.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/rk3368-cru.h

[PATCH v3 2/2] dma-mapping: benchmark: pretend DMA is transmitting

2021-02-05 Thread Barry Song
In a real dma mapping user case, after dma_map is done, data will be transmit. Thus, in multi-threaded user scenario, IOMMU contention should not be that severe. For example, if users enable multiple threads to send network packets through 1G/10G/100Gbps NIC, usually the steps will be: map ->

Re: [PATCH 05/24] perf daemon: Add client socket support

2021-02-05 Thread Namhyung Kim
On Sun, Jan 31, 2021 at 8:49 AM Jiri Olsa wrote: > > Adding support for client socket side that will be used > to send commands to daemon server socket. > > This patch adds only the core support, all commands using > this functionality are coming in following patches. > > Signed-off-by: Jiri Olsa

[PATCH v3 1/8] dt-bindings: usb: convert rockchip,dwc3.txt to yaml

2021-02-05 Thread Johan Jonker
In the past Rockchip dwc3 usb nodes were manually checked. With the conversion of snps,dwc3.yaml as common document we now can convert rockchip,dwc3.txt to yaml as well. Remove node wrapper. Added properties for rk3399 are: power-domains resets reset-names Signed-off-by: Johan Jonker ---

[PATCH v3 2/8] arm64: dts: rockchip: optimize clks for rk3399 dwc3

2021-02-05 Thread Johan Jonker
From: Wu Liang feng Remove unnecessary clocks, refer to rk3399 TRM, aclk_usb3 is the parent of aclk_usb3otg0/1 and aclk_usb3_grf, and we will enable aclk_usb3otg0/1 and aclk_usb3_grf, so don't need to enable aclk_usb3 again. In addition, the aclk_usb3_rksoc_axi_perf clk is used for usb3

[PATCH v3 3/8] arm64: dts: rockchip: restyle rk3399 usbdrd3_0 node

2021-02-05 Thread Johan Jonker
For rk3399 dwc3 usb the wrapper node for only clocks makes no sense, so restyle the rk3399 usbdrd3_0 node before more new SoC types are added with the same IP. Signed-off-by: Johan Jonker --- Changed V3: remove aclk_usb3_rksoc_axi_perf remove aclk_usb3 ---

[PATCH v3 4/8] arm64: dts: rockchip: restyle rk3399 usbdrd3_1 node

2021-02-05 Thread Johan Jonker
For rk3399 dwc3 usb the wrapper node for only clocks makes no sense, so restyle the rk3399 usbdrd3_1 node before more new SoC types are added with the same IP. Signed-off-by: Johan Jonker --- Changed V3: remove aclk_usb3_rksoc_axi_perf remove aclk_usb3 ---

Re: [PATCH v6 0/7] common SVDM version and VDO from dt

2021-02-05 Thread Guenter Roeck
On 2/5/21 3:42 AM, Heikki Krogerus wrote: [ ... ] >> Kyle Tso (7): >> usb: typec: Manage SVDM version >> usb: pd: Make SVDM Version configurable in VDM header >> usb: typec: tcpm: Determine common SVDM Version >> usb: typec: ucsi: Determine common SVDM Version >> usb: typec: displayport:

Re: [External] Re: [PATCH] mm: memcontrol: fix missing wakeup oom task

2021-02-05 Thread Michal Hocko
On Fri 05-02-21 19:04:19, Muchun Song wrote: > On Fri, Feb 5, 2021 at 6:21 PM Michal Hocko wrote: > > > > On Fri 05-02-21 17:55:10, Muchun Song wrote: > > > On Fri, Feb 5, 2021 at 4:24 PM Michal Hocko wrote: > > > > > > > > On Fri 05-02-21 14:23:10, Muchun Song wrote: > > > > > We call

Re: [PATCH v2 2/2] s390/kvm: VSIE: correctly handle MVPG when in VSIE

2021-02-05 Thread Claudio Imbrenda
On Thu, 4 Feb 2021 18:10:01 +0100 Janosch Frank wrote: > On 2/2/21 7:00 PM, Claudio Imbrenda wrote: > > Correctly handle the MVPG instruction when issued by a VSIE guest. > > > > Fixes: a3508fbe9dc6d ("KVM: s390: vsie: initial support for nested > > virtualization") Cc: sta...@vger.kernel.org >

Re: [RFC][PATCH 2/2] x86: add extra serialization for non-serializing MSRs

2021-02-05 Thread Peter Zijlstra
On Fri, Feb 05, 2021 at 11:02:10AM +0100, Peter Zijlstra wrote: > And presumably it is still allowed to do that when we write it like: > > mov $1, ([x]) > mfence > wrmsr > > because, mfence only has dependencies to memops and (fast) wrmsr is not > a memop. > > Which then

[PATCH] fs: notify: inotify: Replace a common bad word with better common word

2021-02-05 Thread Bhaskar Chowdhury
s/fucked/messed/ Signed-off-by: Bhaskar Chowdhury --- fs/notify/inotify/inotify_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index 59c177011a0f..0a9d1a81edf0 100644 ---

Re: [PATCH net-next 7/7] net: marvell: prestera: fix port event handling on init

2021-02-05 Thread Vadym Kochan
Hi Jakub, On Thu, Feb 04, 2021 at 09:19:34PM -0800, Jakub Kicinski wrote: > On Wed, 3 Feb 2021 18:54:58 +0200 Vadym Kochan wrote: > > For some reason there might be a crash during ports creation if port > > events are handling at the same time because fw may send initial > > port event with

Re: [PATCH v4 3/3] drm/bridge: anx7625: add MIPI DPI input feature support

2021-02-05 Thread Robert Foss
Hey Xin, On Thu, 28 Jan 2021 at 04:12, Xin Ji wrote: > > Add MIPI rx DPI input support > > Reported-by: kernel test robot > Signed-off-by: Xin Ji > --- > drivers/gpu/drm/bridge/analogix/anx7625.c | 326 > -- > drivers/gpu/drm/bridge/analogix/anx7625.h | 20 +- >

Re: [PATCH v3 08/11] iio: buffer: wrap all buffer attributes into iio_dev_attr

2021-02-05 Thread Jonathan Cameron
On Fri, 5 Feb 2021 11:17:04 +0200 Alexandru Ardelean wrote: > On Thu, Feb 4, 2021 at 8:26 PM Jonathan Cameron > wrote: > > > > On Mon, 1 Feb 2021 16:51:02 +0200 > > Alexandru Ardelean wrote: > > > > > This change wraps all buffer attributes into iio_dev_attr objects, and > > > assigns a

Re: [PATCH] ntp: Use freezable workqueue for RTC synchronization

2021-02-05 Thread Rafael J. Wysocki
On Tue, Jan 26, 2021 at 6:48 AM Geert Uytterhoeven wrote: > > The bug fixed by commit e3fab2f3de081e98 ("ntp: Fix RTC synchronization > on 32-bit platforms") revealed an underlying issue: RTC synchronization > may happen anytime, even while the system is partially suspended. > > On systems where

Re: [PATCH v3 11/11] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-05 Thread Jonathan Cameron
On Fri, 5 Feb 2021 11:51:13 +0200 Alexandru Ardelean wrote: > On Thu, Feb 4, 2021 at 9:06 PM Jonathan Cameron > wrote: > > > > On Mon, 1 Feb 2021 16:51:05 +0200 > > Alexandru Ardelean wrote: > > > > > With this change, an ioctl() call is added to open a character device for > > > a > > >

Re: [PATCH 1/2] powercap/intel_rapl: Use topology interface in rapl_add_package()

2021-02-05 Thread Rafael J. Wysocki
On Sat, Jan 23, 2021 at 11:07 AM Yunfeng Ye wrote: > > It's not a good way to access phys_proc_id and cpu_die_id directly. > So using topology_physical_package_id(cpu) and topology_die_id(cpu) > instead. > > Signed-off-by: Yunfeng Ye Srinivas, Rui, any concerns? > --- >

[PATCH] iommu/mediatek: Fix error code in probe()

2021-02-05 Thread Dan Carpenter
This error path is supposed to return -EINVAL. It used to return directly but we added some clean up and accidentally removed the error code. Also I fixed a typo in the error message. Fixes: c0b57581b73b ("iommu/mediatek: Add power-domain operation") Signed-off-by: Dan Carpenter ---

Re: [PATCH] fs: notify: inotify: Replace a common bad word with better common word

2021-02-05 Thread Amir Goldstein
On Fri, Feb 5, 2021 at 2:20 PM Bhaskar Chowdhury wrote: > > > > s/fucked/messed/ > > Signed-off-by: Bhaskar Chowdhury > --- > fs/notify/inotify/inotify_user.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/notify/inotify/inotify_user.c >

Re: [PATCH 1/2] x86/hw_breakpoint: Prevent data breakpoints on __per_cpu_offset

2021-02-05 Thread Peter Zijlstra
On Fri, Feb 05, 2021 at 12:45:54PM +0100, Thomas Gleixner wrote: > On Thu, Feb 04 2021 at 16:11, Andy Lutomirski wrote: > > On Thu, Feb 4, 2021 at 6:26 AM Lai Jiangshan wrote: > >> When FSGSBASE is enabled, paranoid_entry() fetches the per-CPU > >> GSBASE value via __per_cpu_offset or

[PATCH] drivers: net: ethernet: sun: Fix couple of spells in the file sunhme.c

2021-02-05 Thread Bhaskar Chowdhury
s/fuck/mess/ s/fucking/s/ Signed-off-by: Bhaskar Chowdhury --- drivers/net/ethernet/sun/sunhme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c index 54b53dbdb33c..98ff9300b5ee 100644 ---

Re: [PATCH net-next 3/8] net: dsa: microchip: add DSA support for microchip lan937x

2021-02-05 Thread Prasanna Vengateshan Varadharajan
On Fri, 2021-01-29 at 02:07 +0100, Andrew Lunn wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe Thanks for your time on reviewing the patches. > > > +bool lan937x_is_internal_phy_port(struct ksz_device *dev, int > > port) > > +{ > > + /*

Re: [PATCH] include: acpi: Correct spelling in the file acoutput.h is optimzation to optimization

2021-02-05 Thread Rafael J. Wysocki
On Wed, Feb 3, 2021 at 4:45 PM Bhaskar Chowdhury wrote: > > > s/optimzation/optimization/ > > Signed-off-by: Bhaskar Chowdhury > --- > include/acpi/acoutput.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h > index

Re: [PATCH] apei: erst: remove unneeded semicolon

2021-02-05 Thread Rafael J. Wysocki
On Tue, Feb 2, 2021 at 7:52 AM Yang Li wrote: > > Eliminate the following coccicheck warning: > ./drivers/acpi/apei/erst.c:691:2-3: Unneeded semicolon > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > drivers/acpi/apei/erst.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v2 1/2] EDAC/ghes: Add EDAC device for reporting the CPU cache errors

2021-02-05 Thread Rafael J. Wysocki
On Fri, Jan 29, 2021 at 1:03 PM Shiju Jose wrote: > > CPU L2 cache corrected errors are detected occasionally on > few of our ARM64 hardware boards. Though it is rare, the > probability of the CPU cache errors frequently occurring > can't be avoided. The earlier failure detection by monitoring >

[PATCH] drivers: scsi: Describe and replace a word with better one in the file qlogicpti.h

2021-02-05 Thread Bhaskar Chowdhury
s/fucking/awful/ Signed-off-by: Bhaskar Chowdhury --- drivers/scsi/qlogicpti.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qlogicpti.h b/drivers/scsi/qlogicpti.h index 2b6374e08a7d..4a47631b22ea 100644 --- a/drivers/scsi/qlogicpti.h +++

Re: [External] Re: [PATCH] mm: memcontrol: remove rcu_read_lock from get_mem_cgroup_from_page

2021-02-05 Thread Muchun Song
On Fri, Feb 5, 2021 at 6:32 PM Michal Hocko wrote: > > On Fri 05-02-21 17:14:30, Muchun Song wrote: > > On Fri, Feb 5, 2021 at 4:36 PM Michal Hocko wrote: > > > > > > On Fri 05-02-21 14:27:19, Muchun Song wrote: > > > > The get_mem_cgroup_from_page() is called under page lock, so the page > > >

Re: [PATCH 06/24] perf daemon: Add config file support

2021-02-05 Thread Jiri Olsa
On Fri, Feb 05, 2021 at 09:14:54PM +0900, Namhyung Kim wrote: > On Sun, Jan 31, 2021 at 8:49 AM Jiri Olsa wrote: > [SNIP] > > @@ -263,9 +605,16 @@ static int __cmd_start(struct daemon *daemon, struct > > option parent_options[], > > signal(SIGTERM, sig_handler); > > > > while

Re: [PATCH v3 08/11] iio: buffer: wrap all buffer attributes into iio_dev_attr

2021-02-05 Thread Alexandru Ardelean
On Fri, Feb 5, 2021 at 2:40 PM Jonathan Cameron wrote: > > On Fri, 5 Feb 2021 11:17:04 +0200 > Alexandru Ardelean wrote: > > > On Thu, Feb 4, 2021 at 8:26 PM Jonathan Cameron > > wrote: > > > > > > On Mon, 1 Feb 2021 16:51:02 +0200 > > > Alexandru Ardelean wrote: > > > > > > > This change

Re: [PATCH v2 1/2] s390/kvm: extend kvm_s390_shadow_fault to return entry pointer

2021-02-05 Thread Janosch Frank
On 2/5/21 1:15 PM, Claudio Imbrenda wrote: > On Thu, 4 Feb 2021 17:34:00 +0100 > Janosch Frank wrote: > >> On 2/2/21 7:00 PM, Claudio Imbrenda wrote: >>> Extend kvm_s390_shadow_fault to return the pointer to the valid leaf >>> DAT table entry, or to the invalid entry. >>> >>> Also return some

Re: [PATCH 6/9] perf report: Support instruction latency

2021-02-05 Thread Athira Rajeev
> On 04-Feb-2021, at 8:49 PM, Liang, Kan wrote: > > > > On 2/4/2021 8:11 AM, Athira Rajeev wrote: >>> On 03-Feb-2021, at 1:39 AM, kan.li...@linux.intel.com wrote: >>> >>> From: Kan Liang >>> >>> The instruction latency information can be recorded on some platforms, >>> e.g., the Intel

[PATCH] drivers: drm: nouveau: nvkm: Replace a word with a better phonetic word in the file macros.fuc

2021-02-05 Thread Bhaskar Chowdhury
s/fuck/heck/ Signed-off-by: Bhaskar Chowdhury --- drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc b/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc index

[GIT PULL] MHI changes for v5.12

2021-02-05 Thread Manivannan Sadhasivam
Hi Greg, Here is the MHI Pull request for the v5.12 cycle. As like last time, I needed to do PR this time due to the immutable branches with net-next and ath11k-next. Patch details are in the signed tag, please consider merging! Thanks, Mani --- The following changes since commit

Re: [PATCH] media: pwc: Fix the URB buffer allocation

2021-02-05 Thread Takashi Iwai
On Fri, 05 Feb 2021 13:53:21 +0100, Andrew Lunn wrote: > > On Fri, Feb 05, 2021 at 01:36:43PM +0100, Hans Verkuil wrote: > > Hi Takashi, > > > > Thank you for this patch, but it clashes with another patch trying to do > > the same thing > > that has already been merged in our tree: > > > >

Re: [PATCH v3 1/2] tpm: fix reference counting for struct tpm_chip

2021-02-05 Thread Jason Gunthorpe
On Fri, Feb 05, 2021 at 12:50:42AM +0100, Lino Sanfilippo wrote: > From: Lino Sanfilippo > > The following sequence of operations results in a refcount warning: > > 1. Open device /dev/tpmrm > 2. Remove module tpm_tis_spi > 3. Write a TPM command to the file descriptor opened at step 1. > >

Re: linux-next: manual merge of the drivers-x86 tree with the drm-misc tree

2021-02-05 Thread Daniel Vetter
On Fri, Feb 5, 2021 at 12:14 PM Patrik Jakobsson wrote: > > On Fri, Feb 5, 2021 at 12:07 PM Andy Shevchenko > wrote: > > > > On Thu, Feb 4, 2021 at 11:04 AM Andy Shevchenko > > wrote: > > >> Today's linux-next merge of the drivers-x86 tree got a conflict in: > > > > > > Thanks. I already asked

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