Re: [PATCH next v3 12/15] printk: introduce a kmsg_dump iterator

2021-02-26 Thread John Ogness
210225] > > url: > https://github.com/0day-ci/linux/commits/John-Ogness/printk-remove-logbuf_lock/20210226-043457 > base:7f206cf3ec2bee4621325cfacb2588e5085c07f5 > config: arm-randconfig-r024-20210225 (attached as .config) > compiler: clang version 13.0.0 (htt

[PATCH] perf tools: Preserve identifier id in OCaml demangler

2021-02-26 Thread Fabian Hemmer
Some OCaml developers reported that this bit of information is sometimes useful for disambiguating functions for which the OCaml compiler assigns the same name, e.g. nested or inlined functions. Signed-off-by: Fabian Hemmer --- tools/perf/tests/demangle-ocaml-test.c | 6 +++--- tools/perf/util/

[PATCH] KVM: x86: hyper-v: Fix Hyper-V context null-ptr-deref

2021-02-26 Thread Wanpeng Li
From: Wanpeng Li Reported by syzkaller: KASAN: null-ptr-deref in range [0x0140-0x0147] CPU: 1 PID: 8370 Comm: syz-executor859 Not tainted 5.11.0-syzkaller #0 RIP: 0010:synic_get arch/x86/kvm/hyperv.c:165 [inline] RIP: 0010:kvm_hv_set_sint_gsi arch/x86/kvm/

Re: [PATCH 5.11 00/12] 5.11.2-rc1 review

2021-02-26 Thread Naresh Kamboju
On Thu, 25 Feb 2021 at 15:24, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.11.2 release. > There are 12 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Resp

Re: [PATCH v6 2/3] reset: mchp: sparx5: add switch reset driver

2021-02-26 Thread Steen Hegelund
Hi Alex, On Thu, 2021-02-25 at 21:40 +0100, Alexandre Belloni wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > Hello, > > > ... > > +static int mchp_sparx5_map_io(struct platform_device *pdev, char > > *name, > > +  

Re: 5.10 LTS Kernel: 2 or 6 years?

2021-02-26 Thread Hanjun Guo
Hi Nick, Sorry for taking so long to reply you, we had discussions on how to corporate with KCIDB, please see my comments inline. On 2021/2/19 22:45, Nikolai Kondrashov wrote: Hi Hanjun, On 2/19/21 10:54 AM, Hanjun Guo wrote: > In specific, we will start from the testing work, using HULK robo

Re: [PATCH] KVM: Documentation: rectify rst markup in kvm_run->flags

2021-02-26 Thread Paolo Bonzini
On 26/02/21 08:55, Chenyi Qiang wrote: Commit c32b1b896d2a ("KVM: X86: Add the Document for KVM_CAP_X86_BUS_LOCK_EXIT") added a new flag in kvm_run->flags documentation, and caused warning in make htmldocs: Documentation/virt/kvm/api.rst:5004: WARNING: Unexpected indentation Documentation/

Re: [PATCH v2 1/1] KVM: x86: remove misplaced comment on active_mmu_pages

2021-02-26 Thread Paolo Bonzini
On 26/02/21 07:19, Dongli Zhang wrote: The 'mmu_page_hash' is used as hash table while 'active_mmu_pages' is a list. Remove the misplaced comment as it's mostly stating the obvious anyways. Signed-off-by: Dongli Zhang Reviewed-by: Sean Christopherson --- Changed since v1: - change 'incorrec

Re: [PATCH 3/9] arm64: dts: qcom: sc7280: Add device tree node for LLCC

2021-02-26 Thread Sai Prakash Ranjan
On 2021-02-26 01:07, Stephen Boyd wrote: Quoting Sai Prakash Ranjan (2021-02-25 01:30:19) Add a DT node for Last level cache (aka. system cache) controller which provides control over the last level cache present on SC7280 SoC. Signed-off-by: Sai Prakash Ranjan --- Reviewed-by: Stephen Boyd

Re: [PATCH 2/2] iommu/arm-smmu-qcom: Move the adreno smmu specific impl earlier

2021-02-26 Thread Sai Prakash Ranjan
On 2021-02-25 23:36, Jordan Crouse wrote: On Thu, Feb 25, 2021 at 03:54:10PM +0530, Sai Prakash Ranjan wrote: Adreno(GPU) SMMU and APSS(Application Processor SubSystem) SMMU both implement "arm,mmu-500" in some QTI SoCs and to run through adreno smmu specific implementation such as enabling spli

Re: [PATCH] x86: mark some mpspec inline functions as __init

2021-02-26 Thread Borislav Petkov
On Thu, Feb 25, 2021 at 01:58:48PM -0800, Nick Desaulniers wrote: > The config that reproduces it wasn't shared here; I wouldn't be > surprised if this was found via randconfig that enabled some config > that led to excessive code bloat somewhere somehow. I'm sceptical it is the .config. As I said

Re: [PATCH] [RFC] arm64: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION

2021-02-26 Thread Arnd Bergmann
On Fri, Feb 26, 2021 at 1:36 AM Sedat Dilek wrote: > > On Thu, Feb 25, 2021 at 12:21 PM Arnd Bergmann wrote: > > > > From: Arnd Bergmann > > > > When looking at kernel size optimizations, I found that arm64 > > does not currently support HAVE_LD_DEAD_CODE_DATA_ELIMINATION, > > which enables the

Re: [PATCH] drivers/hid: fix for the big hid report length

2021-02-26 Thread Sabyrzhan Tasbolatov
On Thu, 25 Feb 2021 10:59:14 -0500, Alan Stern wrote: > Won't this cause silent errors? Agree. But there are already such as cases like in: // net/bluetooth/hidp/core.c static void hidp_process_report(..) { .. if (len > HID_MAX_BUFFER_SIZE) len = HID_MAX_BUFFER_SIZ

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-02-26 Thread Pratyush Yadav
Hi, On 25/02/21 01:55PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > Building this file with clang leads to a an unreachable code path > causing a warning from objtool: > > drivers/spi/spi-rockchip.o: warning: objtool: > rockchip_spi_transfer_one()+0x2e0: sibling call from callable instruct

Re: [PATCH] init/init_task.c spaces required around that '='

2021-02-26 Thread Peter Zijlstra
On Fri, Feb 26, 2021 at 03:09:00PM +0800, wangjingyu wrote: > Ensure checkpatch compliance > > Signed-off-by: wangjingyu > --- > init/init_task.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/init/init_task.c b/init/init_task.c > index 15f6eb93a04f..0f995118c6c0 10064

Re: [virtio-dev] Re: [PATCH] vdpa/mlx5: set_features should allow reset to zero

2021-02-26 Thread Jason Wang
On 2021/2/26 2:53 上午, Michael S. Tsirkin wrote: On Thu, Feb 25, 2021 at 12:36:07PM +0800, Jason Wang wrote: On 2021/2/24 7:12 下午, Cornelia Huck wrote: On Wed, 24 Feb 2021 17:29:07 +0800 Jason Wang wrote: On 2021/2/23 6:58 下午, Cornelia Huck wrote: On Tue, 23 Feb 2021 18:31:07 +0800 Jason W

Re: [PATCH v2 07/10] iomap: Introduce iomap_apply2() for operations on two files

2021-02-26 Thread ruansy.f...@fujitsu.com
> On Fri, Feb 26, 2021 at 08:20:27AM +0800, Shiyang Ruan wrote: > > Some operations, such as comparing a range of data in two files under > > fsdax mode, requires nested iomap_open()/iomap_end() on two file. Thus, > > we introduce iomap_apply2() to accept arguments from two files and > > iomap_act

[PATCH] xtensa: move coprocessor_flush to the .text section

2021-02-26 Thread Max Filippov
coprocessor_flush is not a part of fast exception handlers, but it uses parts of fast coprocessor handling code that's why it's in the same source file. It uses call0 opcode to invoke those parts so there are no limitations on their relative location, but the rest of the code calls coprocessor_flus

[RFC PATCH] USB:XHCI:Modify XHCI driver for USB2.0 controller

2021-02-26 Thread Longfang Liu
Our current XHCI hardware controller has been customized to only support USB 2.0 ports. When using the current xhci driver, an xhci controller device and an ehci controller device will be created automatically. We want the driver to create only one ehci controller. After modifying the driver as fol

[PATCH v2 3/4] clk: rockchip: support more core div setting

2021-02-26 Thread Elaine Zhang
Use arrays to support more core independent div settings. A55 supports each core to work at different frequencies, and each core has an independent divider control. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-cpu.c| 53 +-- drivers/clk/rockchip/clk-px

[PATCH v2 0/4] clk: rockchip: add clock controller for rk3568

2021-02-26 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC. Change in V2: [PATCH v2 1/4]: Convert rockchip,rk3568-cru.txt to YAML, And update commit message. [PATCH v2 2/4]: No change. [PATCH v2 3/4]: Use arrays to support more core independent div settings. [PATCH v2 4/4]: Adapter [PATC

[PATCH v2 2/4] clk: rockchip: add dt-binding header for rk3568

2021-02-26 Thread Elaine Zhang
Add the dt-bindings header for the rk3568, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3568. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3568-cru.h | 926 + 1 file changed, 926 insertions(+) cr

[PATCH v2 4/4] clk: rockchip: add clock controller for rk3568

2021-02-26 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Kconfig |7 + drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3568.c | 1726 + drivers/clk/rockchip/clk.h| 30 +- 4 fil

[PATCH v2 1/4] dt-binding: clock: Document rockchip,rk3568-cru bindings

2021-02-26 Thread Elaine Zhang
Document the device tree bindings of the rockchip Rk3568 SoC clock driver in Documentation/devicetree/bindings/clock/rockchip,rk3568-cru.yaml. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,rk3568-cru.yaml | 55 +++ 1 file changed, 55 insertions(+) create mode 10

[PATCH v2 07/10] iomap: Introduce iomap_apply2() for operations on two files

2021-02-26 Thread Shiyang Ruan
Some operations, such as comparing a range of data in two files under fsdax mode, requires nested iomap_open()/iomap_end() on two file. Thus, we introduce iomap_apply2() to accept arguments from two files and iomap_actor2_t for actions on two files. Signed-off-by: Shiyang Ruan --- fs/iomap/appl

[PATCH v2 08/10] fsdax: Dedup file range to use a compare function

2021-02-26 Thread Shiyang Ruan
With dax we cannot deal with readpage() etc. So, we create a dax comparison funciton which is similar with vfs_dedupe_file_range_compare(). And introduce dax_remap_file_range_prep() for filesystem use. Signed-off-by: Goldwyn Rodrigues Signed-off-by: Shiyang Ruan --- fs/dax.c | 56 ++

Re: [PATCH 2/5] MAINTAINERS: remove linux-mips.org references

2021-02-26 Thread Lukas Bulwahn
On Tue, Feb 23, 2021 at 10:48 AM Philippe Mathieu-Daudé wrote: > > On Mon, Feb 22, 2021 at 5:22 PM Lukas Bulwahn wrote: > > > > The domain lookup for linux-mips.org fails for quite some time now. Hence, > > webpages, the patchwork instance and Ralf Baechle's email there is not > > reachable anymo

[PATCH v5] arm64: dts: Add board support for HK10

2021-02-26 Thread Gokul Sriram Palanisamy
Add initial support for IPQ8074 SoC based HK10-C1 and HK10-C2 evaluation boards. Signed-off-by: Gokul Sriram Palanisamy --- arch/arm64/boot/dts/qcom/Makefile| 2 + arch/arm64/boot/dts/qcom/ipq8074-hk10-c1.dts | 11 arch/arm64/boot/dts/qcom/ipq8074-hk10-c2.dts | 14 + arch/a

[PATCH v5] Add board support for HK10 board variants

2021-02-26 Thread Gokul Sriram Palanisamy
Added support for HK10-C1 and HK10-C2 board variants based on IPQ8074 SoC. Both these variants support dual QCN9000 PCIe cards that uses MHI communication protocol over PCIe. In addition, HK10-C1 support on-chip radio. Both these variants slightly differ in clock configuation for ethernet. This se

Re: [PATCH 2/4] mfd: simple-mfd-i2c: Adds Ampere's Altra SMpro support

2021-02-26 Thread Lee Jones
On Thu, 25 Feb 2021, Quan Nguyen wrote: > Adds an MFD driver for SMpro found on the Mt.Jade hardware reference > platform with Ampere's Altra processor family. > > Signed-off-by: Quan Nguyen > --- > drivers/mfd/Kconfig | 10 ++ > drivers/mfd/simple-mfd-i2c.c | 15 +-

Re: [PATCH v2 5/6] can: c_can: prepare to up the message objects number

2021-02-26 Thread Marc Kleine-Budde
On 25.02.2021 22:51:54, Dario Binacchi wrote: > As pointed by commit c0a9f4d396c9 ("can: c_can: Reduce register access") > the "driver casts the 16 message objects in stone, which is completely > braindead as contemporary hardware has up to 128 message objects". > > The patch prepares the module t

[PATCH v4 2/9] scsi: ufshpb: Add host control mode support to rsp_upiu

2021-02-26 Thread Avri Altman
In device control mode, the device may recommend the host to either activate or inactivate a region, and the host should follow. Meaning those are not actually recommendations, but more of instructions. On the contrary, in host control mode, the recommendation protocol is slightly changed: a) The

[PATCH v4 0/9] Add Host control mode to HPB

2021-02-26 Thread Avri Altman
v3 -> v4: - rebase on Daejun's v25 v2 -> v3: - Attend Greg's and Can's comments - rebase on Daejun's v21 v1 -> v2: - attend Greg's and Daejun's comments - add patch 9 making host mode parameters configurable - rebase on Daejun's v19 The HPB spec defines 2 control modes - device control mo

Re: [PATCH 1/7] clk: renesas: r8a77990: Add DAB clock

2021-02-26 Thread Geert Uytterhoeven
Hi Fabrizio, On Thu, Feb 25, 2021 at 11:52 PM Fabrizio Castro wrote: > This patch adds the DAB clock to the R8A77990 SoC. > > Signed-off-by: Fabrizio Castro Thanks for your patch! > --- a/drivers/clk/renesas/r8a77990-cpg-mssr.c > +++ b/drivers/clk/renesas/r8a77990-cpg-mssr.c > @@ -232,6 +232,7

[PATCH v4 4/9] scsi: ufshpb: Make eviction depends on region's reads

2021-02-26 Thread Avri Altman
In host mode, eviction is considered an extreme measure. verify that the entering region has enough reads, and the exiting region has much less reads. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a

[PATCH v4 5/9] scsi: ufshpb: Region inactivation in host mode

2021-02-26 Thread Avri Altman
I host mode, the host is expected to send HPB-WRITE-BUFFER with buffer-id = 0x1 when it inactivates a region. Use the map-requests pool as there is no point in assigning a designated cache for umap-requests. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 14 ++ drivers/s

[PATCH v4 1/9] scsi: ufshpb: Cache HPB Control mode on init

2021-02-26 Thread Avri Altman
We will use it later, when we'll need to differentiate between device and host control modes. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshcd.h | 2 ++ drivers/scsi/ufs/ufshpb.c | 8 +--- drivers/scsi/ufs/ufshpb.h | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/

Re: [PATCH v3 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-26 Thread Michal Hocko
On Mon 22-02-21 14:51:36, Oscar Salvador wrote: > alloc_contig_range will fail if it ever sees a HugeTLB page within the > range we are trying to allocate, even when that page is free and can be > easily reallocated. > This has proved to be problematic for some users of alloc_contic_range, > e.g: C

[PATCH v4 3/9] scsi: ufshpb: Add region's reads counter

2021-02-26 Thread Avri Altman
In host control mode, reads are the major source of activation trials. Keep track of those reads counters, for both active as well inactive regions. We reset the read counter upon write - we are only interested in "clean" reads. less intuitive however, is that we also reset it upon region's deact

[PATCH v4 7/9] scsi: ufshpb: Add "Cold" regions timer

2021-02-26 Thread Avri Altman
In order not to hang on to “cold” regions, we shall inactivate a region that has no READ access for a predefined amount of time - READ_TO_MS. For that purpose we shall monitor the active regions list, polling it on every POLLING_INTERVAL_MS. On timeout expiry we shall add the region to the "to-be-i

[PATCH v4 8/9] scsi: ufshpb: Add support for host control mode

2021-02-26 Thread Avri Altman
Support devices that report they are using host control mode. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c index 5b76341fd558..86f4720f4f0d 100644 --- a/drivers/scsi/ufs/ufs

[PATCH v4 9/9] scsi: ufshpb: Make host mode parameters configurable

2021-02-26 Thread Avri Altman
We can make use of this commit, to elaborate some more of the host control mode logic, explaining what role play each and every variable. While at it, allow those parameters to be configurable. Signed-off-by: Avri Altman --- Documentation/ABI/testing/sysfs-driver-ufs | 67 ++ drivers/scsi/

[PATCH v4 6/9] scsi: ufshpb: Add hpb dev reset response

2021-02-26 Thread Avri Altman
The spec does not define what is the host's recommended response when the device send hpb dev reset response (oper 0x2). We will update all active hpb regions: mark them and do that on the next read. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 53 +

Re: synchronization model: was: Re: [PATCH printk-rework 09/14] printk: introduce a kmsg_dump iterator

2021-02-26 Thread John Ogness
On 2021-02-25, Petr Mladek wrote: > IMHO, a better design would be: > > 1. dumper->dump() callback should have only one parameter @reason. >The callback should define its own iterator, buffer, and >do the dump. Unfortunately this won't work because drivers/mtd/mtdoops.c is using the dumpe

Re: [RFC PATCH] USB:XHCI:Modify XHCI driver for USB2.0 controller

2021-02-26 Thread Greg KH
On Fri, Feb 26, 2021 at 04:21:37PM +0800, Longfang Liu wrote: > Our current XHCI hardware controller has been customized to only > support USB 2.0 ports. That sounds like a spec violation, right? Why do you want to do this? greg k-h

Re: [PATCH v3 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-26 Thread Michal Hocko
On Fri 26-02-21 09:35:10, Michal Hocko wrote: > On Mon 22-02-21 14:51:36, Oscar Salvador wrote: > > alloc_contig_range will fail if it ever sees a HugeTLB page within the > > range we are trying to allocate, even when that page is free and can be > > easily reallocated. > > This has proved to be pr

Re: [PATCH for Dwaipayan] MAINTAINERS: clarify responsibility for checkpatch documentation

2021-02-26 Thread Dwaipayan Ray
on maintainers can keep the content synchronized, add them as > reviewers to the counterpart. > > Link: > https://lore.kernel.org/lkml/bcee822d1934772f47702ee257bc735c8f467088.ca...@perches.com/ > Signed-off-by: Lukas Bulwahn > --- > applies cleanly on next-20210226 >

Re: [PATCH] drivers/mt: restrict num_slots in input_mt_init_slots()

2021-02-26 Thread Sabyrzhan Tasbolatov
On Tue, 2 Feb 2021 18:08:07 +0600, Sabyrzhan Tasbolatov wrote: > syzbot found WARNING in input_mt_init_slots [1] when > struct_size(mt, slots, num_slots)=0x40006 where num_slots=0x10001, > which exceeds KMALLOC_MAX_SIZE (0x4) and causes > order >= MAX_ORDER condition. > > [1] > Call Trace: >

Re: [PATCH v2] sched/pelt: Fix task util_est update filtering

2021-02-26 Thread Peter Zijlstra
On Thu, Feb 25, 2021 at 04:58:20PM +, Vincent Donnefort wrote: > +#define UTIL_EST_MARGIN (SCHED_CAPACITY_SCALE / 100) > + > /* > - * Check if a (signed) value is within a specified (unsigned) margin, > + * Check if a (signed) value is within the (unsigned) util_est margin, > * based on the

[PATCH] mmc: sdhci-pci-o2micro: Add missing checks in sdhci_pci_o2_probe

2021-02-26 Thread Dinghao Liu
It's odd to adopt different error handling on failure of pci_read_config_dword(). Check the return value and terminate execution flow on failure of all pci_read_config_dword() calls in this function. Signed-off-by: Dinghao Liu --- drivers/mmc/host/sdhci-pci-o2micro.c | 8 1 file changed

Re: [PATCH 3/7] dt-bindings: misc: Add binding for R-Car DAB

2021-02-26 Thread Geert Uytterhoeven
Hi Fabrizio, On Thu, Feb 25, 2021 at 11:53 PM Fabrizio Castro wrote: > Document bindings for R-Car DAB hardware accelerator, currently > found on the r8a77990 SoC (a.k.a. R-Car E3) and on the r8a77965 > SoC (a.k.a. R-Car M3-N). > > Signed-off-by: Fabrizio Castro Thanks for your patch! > --- /d

Re: [PATCH v2 6/6] can: c_can: add support to 64 message objects

2021-02-26 Thread Marc Kleine-Budde
On 25.02.2021 22:51:55, Dario Binacchi wrote: > --- a/drivers/net/can/c_can/c_can.h > +++ b/drivers/net/can/c_can/c_can.h > @@ -22,8 +22,6 @@ > #ifndef C_CAN_H > #define C_CAN_H > > -#define C_CAN_NO_OF_OBJECTS 32 > - > enum reg { > C_CAN_CTRL_REG = 0, > C_CAN_CTRL_EX_REG, > @@ -6

Re: [PATCH 2/7] clk: renesas: r8a77965: Add DAB clock

2021-02-26 Thread Geert Uytterhoeven
Hi Fabrizio, On Thu, Feb 25, 2021 at 11:53 PM Fabrizio Castro wrote: > This patch adds the DAB clock to the R8A77965 SoC. > > Signed-off-by: Fabrizio Castro Thanks for your patch! > --- a/drivers/clk/renesas/r8a77965-cpg-mssr.c > +++ b/drivers/clk/renesas/r8a77965-cpg-mssr.c > @@ -250,6 +250,7

Re: [PATCH v2 3/6] can: c_can: fix control interface used by c_can_do_tx

2021-02-26 Thread Marc Kleine-Budde
On 25.02.2021 22:51:52, Dario Binacchi wrote: > According to commit 640916db2bf7 ("can: c_can: Make it SMP safe") let RX use > IF1 (i.e. IF_RX) and TX use IF2 (i.e. IF_TX). Is this a fix? Marc > > Signed-off-by: Dario Binacchi > --- > > (no changes since v1) > > drivers/net/can/c_can/c_can.

Re: [PATCH v3 2/2] mm: Make alloc_contig_range handle in-use hugetlb pages

2021-02-26 Thread Michal Hocko
On Mon 22-02-21 14:51:37, Oscar Salvador wrote: [...] > @@ -2394,9 +2397,19 @@ bool isolate_or_dissolve_huge_page(struct page *page) >*/ > if (hstate_is_gigantic(h)) > return ret; > - > - if (!page_count(head) && alloc_and_dissolve_huge_page(h, head)) > +retry: > +

Re: udldrm does not recover from powersave? Re: udldrmfb: causes WARN in i915 on X60 (x86-32)

2021-02-26 Thread Thomas Zimmermann
Hi Am 25.02.21 um 10:53 schrieb Pavel Machek: Hi! This is in -next, but I get same behaviour on 5.11; and no, udl does Thanks for reporting. We are in the process of fixing the issue. The latest patch is at [1]. Thank you, that fixes the DMA issue, and I can use the udl. ...for a while.

[PATCH] arch: x86/power Missing a blank line after declarations

2021-02-26 Thread wangjingyu
Ensure checkpatch compliance Signed-off-by: wangjingyu --- arch/x86/power/hibernate_32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/power/hibernate_32.c b/arch/x86/power/hibernate_32.c index 223d5bca29b8..90e40055a5ae 100644 --- a/arch/x86/power/hibernate_32.c +++ b/arch/x86/po

Re: [PATCH v2 3/9] devfreq: Use HZ macros

2021-02-26 Thread Daniel Lezcano
On 26/02/2021 07:08, Chanwoo Choi wrote: > > > On 21. 2. 24. 오후 11:42, Daniel Lezcano wrote: >> HZ unit conversion macros are available in units.h, use them and >> remove the duplicate definition. >> >> Signed-off-by: Daniel Lezcano >> Reviewed-by: Christian Eggers >> Acked-by: Chanwoo Choi >>

Re: [PATCH v2 2/3] mm: Force update of mem cgroup soft limit tree on usage excess

2021-02-26 Thread Michal Hocko
On Thu 25-02-21 14:48:58, Tim Chen wrote: > > > On 2/24/21 3:53 AM, Michal Hocko wrote: > > On Mon 22-02-21 11:48:37, Tim Chen wrote: > >> > >> > >> On 2/22/21 11:09 AM, Michal Hocko wrote: > >> > > I actually have tried adjusting the threshold but found that it doesn't > work wel

Re: [PATCH v7 0/2] checkpatch: add verbose mode

2021-02-26 Thread Dwaipayan Ray
On Fri, Feb 26, 2021 at 2:46 AM Jonathan Corbet wrote: > > Dwaipayan Ray writes: > > > On Thu, Feb 25, 2021 at 11:03 PM Joe Perches wrote: > >> I don't have any real objection to this patch set, but as this > >> might be added to the Documentation tree and in .rst format, > >> perhaps Jonathan C

RE: next/master bisection: baseline.login on r8a77960-ulcb

2021-02-26 Thread Yoshihiro Shimoda
Hi all, > From: Heiko Thiery, Sent: Thursday, February 25, 2021 10:01 PM > Am Do., 25. Feb. 2021 um 12:50 Uhr schrieb Thierry Reding: > > On Thu, Feb 25, 2021 at 11:14:57AM +, Robin Murphy wrote: > > > On 2021-02-25 11:09, Thierry Reding wrote: > > > > On Wed, Feb 24, 2021 at 10:39:42PM +0100,

Re: [PATCH] perf bench numa: Fix the condition checks for max number of numa nodes

2021-02-26 Thread Srikar Dronamraju
* Athira Rajeev [2021-02-25 11:50:02]: > In systems having higher node numbers available like node > 255, perf numa bench will fail with SIGABORT. > > <<>> > perf: bench/numa.c:1416: init: Assertion `!(g->p.nr_nodes > 64 || > g->p.nr_nodes < 0)' failed. > Aborted (core dumped) > <<>> > Looks

Re: [PATCH v3 0/4] KVM: arm64: Add VLPI migration support on GICv4.1

2021-02-26 Thread Shenming Lu
Hi Marc, Gentle ping. Does this series need any further modification? Wish you can pick it up. :-) Thanks, Shenming On 2021/1/27 20:13, Shenming Lu wrote: > Hi Marc, sorry for the late commit. > > In GICv4.1, migration has been supported except for (directly-injected) > VLPI. And GICv4.1 Spec

[PATCH] arch: x86/power Missing a blank line after declarations

2021-02-26 Thread wangjingyu
Ensure checkpatch compliance Signed-off-by: wangjingyu --- arch/x86/power/hibernate_64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/power/hibernate_64.c b/arch/x86/power/hibernate_64.c index a595953f1d6d..7dfd3832c74c 100644 --- a/arch/x86/power/hibernate_64.c +++ b/arch/x86/po

Re: [PATCH] [RFC] arm64: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION

2021-02-26 Thread Sedat Dilek
On Fri, Feb 26, 2021 at 9:14 AM Arnd Bergmann wrote: > > On Fri, Feb 26, 2021 at 1:36 AM Sedat Dilek wrote: > > > > On Thu, Feb 25, 2021 at 12:21 PM Arnd Bergmann wrote: > > > > > > From: Arnd Bergmann > > > > > > When looking at kernel size optimizations, I found that arm64 > > > does not curr

Re: [PATCH 3/7] dt-bindings: misc: Add binding for R-Car DAB

2021-02-26 Thread Sergei Shtylyov
Hello! On 26.02.2021 1:51, Fabrizio Castro wrote: Document bindings for R-Car DAB hardware accelerator, currently found on the r8a77990 SoC (a.k.a. R-Car E3) and on the r8a77965 SoC (a.k.a. R-Car M3-N). Signed-off-by: Fabrizio Castro --- .../devicetree/bindings/misc/renesas,dab.yaml | 75 ++

[PATCH v7 0/2] add support for GPIO or IRQ based evemt counter

2021-02-26 Thread Oleksij Rempel
changes v7: - make most of structs dynamically allocatable to assign IRQ based description to the signal - assign dev name instead for driver name to the IRQ changes v6: - rename it to interrupt-counter - driver fixes - device tree fixes changes v5: - rename it to event counter, since it suppor

[PATCH v7 1/2] dt-bindings: counter: add interrupt-counter binding

2021-02-26 Thread Oleksij Rempel
Add binding for the interrupt counter node Signed-off-by: Oleksij Rempel Reviewed-by: Linus Walleij --- .../bindings/counter/interrupt-counter.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/counter/interrupt-counter.yaml

[PATCH v7 2/2] counter: add IRQ or GPIO based counter

2021-02-26 Thread Oleksij Rempel
Add simple IRQ or GPIO base counter. This device is used to measure rotation speed of some agricultural devices, so no high frequency on the counter pin is expected. The maximal measurement frequency depends on the CPU and system load. On the idle iMX6S I was able to measure up to 20kHz without co

[PATCH v2 1/5] dt-bindings: reset: IMX8MQ VPU reset

2021-02-26 Thread Benjamin Gaignard
Document bindings for IMX8MQ VPU reset hardware block Signed-off-by: Benjamin Gaignard --- .../bindings/reset/fsl,imx8mq-vpu-reset.yaml | 54 +++ include/dt-bindings/reset/imx8mq-vpu-reset.h | 16 ++ 2 files changed, 70 insertions(+) create mode 100644 Documentation/devic

[PATCH v2 2/5] dt-bindings: media: IMX8MQ VPU: document reset usage

2021-02-26 Thread Benjamin Gaignard
Document IMX8MQ VPU bindings to add the phandle to the reset driver. Provide an independent reset driver allow to the both VPUs to share their control/reset hardware block. The reset driver replace what was previously done be using the 'ctrl' registers inside the driver. This breaks the compatibi

[PATCH v2 0/5] Reset driver for IMX8MQ VPU hardware block

2021-02-26 Thread Benjamin Gaignard
The two VPUs inside IMX8MQ share the same control block which can be see as a reset hardware block. In order to be able to add the second VPU (for HECV decoding) it will be more handy if the both VPU drivers instance don't have to share the control block registers. This lead to implement it as an i

[PATCH v2 3/5] reset: Add reset driver for IMX8MQ VPU block

2021-02-26 Thread Benjamin Gaignard
IMX8MQ SoC got a dedicated hardware block to reset the video processor units (G1 and G2). Signed-off-by: Benjamin Gaignard --- drivers/reset/Kconfig| 8 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-imx8mq-vpu.c | 169 +++ 3 files chan

[PATCH v2 5/5] arm64: dts: imx8mq: Use reset driver for VPU hardware block

2021-02-26 Thread Benjamin Gaignard
Add a vpu reset hardware block node. Signed-off-by: Benjamin Gaignard --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 31 ++- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi

[PATCH v2 4/5] media: hantro: Use reset driver

2021-02-26 Thread Benjamin Gaignard
Rather use a reset like feature inside the driver use the reset controller API to get the same result. Signed-off-by: Benjamin Gaignard --- drivers/staging/media/hantro/Kconfig| 1 + drivers/staging/media/hantro/imx8m_vpu_hw.c | 61 - 2 files changed, 12 insertions(+

Re: [PATCH] printk: clarify the documentation for plain pointer printing

2021-02-26 Thread Petr Mladek
On Thu 2021-02-25 17:46:39, Vlastimil Babka wrote: > We have several modifiers for plain pointers (%p, %px and %pK) and now also > the no_hash_pointers boot parameter. The documentation should help to choose > which variant to use. Importantly, we should discourage %px in favour of %p > (with the n

Re: [PATCH] kdb: Get rid of custom debug heap allocator

2021-02-26 Thread Sumit Garg
On Fri, 26 Feb 2021 at 12:54, Sumit Garg wrote: > > On Thu, 25 Feb 2021 at 17:49, Daniel Thompson > wrote: > > > > On Thu, Feb 25, 2021 at 04:52:58PM +0530, Sumit Garg wrote: > > > Currently the only user for debug heap is kdbnearsym() which can be > > > modified to rather ask the caller to suppl

Re: [PATCH v2 3/9] devfreq: Use HZ macros

2021-02-26 Thread Chanwoo Choi
On 21. 2. 26. 오후 5:51, Daniel Lezcano wrote: On 26/02/2021 07:08, Chanwoo Choi wrote: On 21. 2. 24. 오후 11:42, Daniel Lezcano wrote: HZ unit conversion macros are available in units.h, use them and remove the duplicate definition. Signed-off-by: Daniel Lezcano Reviewed-by: Christian Egger

drivers/net/ethernet/freescale/ucc_geth.c:1838:50: sparse: sparse: incorrect type in argument 1 (different address spaces)

2021-02-26 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2c87f7a38f930ef6f6a7bdd04aeb82ce3971b54b commit: 9b0dfef4755301d9f7fcef63e2f64d23649bebb4 ethernet: ucc_geth: simplify rx/tx allocations date: 5 weeks ago config: powerpc64-randconfig-s032-20210226

Re: [PATCH] RDMA/siw: Fix missing check in siw_get_hdr

2021-02-26 Thread Bernard Metzler
-"Dinghao Liu" wrote: - >To: dinghao@zju.edu.cn, k...@umn.edu >From: "Dinghao Liu" >Date: 02/26/2021 08:56AM >Cc: "Bernard Metzler" , "Doug Ledford" >, "Jason Gunthorpe" , >linux-r...@vger.kernel.org, linux-kernel@vger.kernel.org >Subject: [EXTERNAL] [PATCH] RDMA/siw: Fix missing che

Re: perf test for daemon

2021-02-26 Thread John Garry
On 25/02/2021 19:35, Jiri Olsa wrote: On Thu, Feb 25, 2021 at 08:13:07PM +0100, Jiri Olsa wrote: On Thu, Feb 25, 2021 at 06:39:22PM +, John Garry wrote: Hi, I notice that "perf test" when run without root priviledges now hangs at the daemon test - is this expected behaviour? Can we skip an

[PATCH] ANDROID: usb: core: Send uevent when USB TOPO layer over 6

2021-02-26 Thread Ricky Niu
When the topology of the nested hubs are over 6 layers Send uevent to user space when USB TOPO layer over 6. Let end user more understand what happened. Signed-off-by: Ricky Niu --- drivers/usb/core/hub.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/usb/cor

[PATCH v2 1/3] mm: bypass compound_head() for PF_NO_TAIL when enforce=1

2021-02-26 Thread Yu Zhao
When testing page flags with PF_NO_TAIL (enforce=0), tail pages are legit and they are converted by compound_head(). When modifying page flags (enforce=1), tail pages are not legit and they either trigger VM_BUG_ON_PGFLAGS() or are "corrected" by compound_head(). There is no evidence such "correct

[PATCH] drm/amd/pm/swsmu: Remove unnecessary conversion to bool

2021-02-26 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c:924:47-52: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 2 +- 1 file changed, 1 i

[PATCH v2 0/3] trim the uses of compound_head()

2021-02-26 Thread Yu Zhao
Patch series "mm: lru related cleanups" starting at commit 42895ea73bcd ("mm/vmscan.c: use add_page_to_lru_list()") bloated vmlinux by 1777 bytes, according to: https://lore.kernel.org/linux-mm/85b3e8f2-5982-3329-c20d-cf062b8da...@suse.cz/ It turned out many places inline Page{Active,Unevictable

[PATCH v2 2/3] mm: use PF_NO_TAIL for PG_lru

2021-02-26 Thread Yu Zhao
Trying to set or clear PG_lru on tail pages has been considered buggy. Enforce this rule by changing the policy for PG_lru from PF_HEAD to PF_NO_TAIL. This means setting or clearing PG_lru on tail pages won't be "corrected" by compound_page(). Such "correction" isn't helpful -- even if a piece of b

[PATCH v2 3/3] mm: use PF_ONLY_HEAD for PG_active and PG_unevictable

2021-02-26 Thread Yu Zhao
All places but one test, set or clear PG_active and PG_unevictable on small or head pages. Use compound_head() explicitly for that singleton so the rest can rid of redundant compound_head(). bloat-o-meter result: add/remove: 0/0 grow/shrink: 3/38 up/down: 388/-4270 (-3882) Signed-off-by: Yu Zha

Re: [PATCH v7 0/2] checkpatch: add verbose mode

2021-02-26 Thread Dwaipayan Ray
On Fri, Feb 26, 2021 at 11:29 AM Lukas Bulwahn wrote: > > On Thu, Feb 25, 2021 at 7:08 PM Dwaipayan Ray wrote: > > > > On Thu, Feb 25, 2021 at 11:03 PM Joe Perches wrote: > > > > > > On Mon, 2021-02-22 at 13:22 +0530, Dwaipayan Ray wrote: > > > > Add a new verbose mode to checkpatch. The verbose

Re: [RFC PATCH] USB:XHCI:Modify XHCI driver for USB2.0 controller

2021-02-26 Thread Mathias Nyman
On 26.2.2021 10.21, Longfang Liu wrote: > Our current XHCI hardware controller has been customized to only > support USB 2.0 ports. When using the current xhci driver, an xhci > controller device and an ehci controller device will be created > automatically. We want the driver to create only one eh

Re: [PATCH v2 5/6] can: c_can: prepare to up the message objects number

2021-02-26 Thread Marc Kleine-Budde
On 25.02.2021 22:51:54, Dario Binacchi wrote: > --- a/drivers/net/can/c_can/c_can.c > +++ b/drivers/net/can/c_can/c_can.c [...] > -struct net_device *alloc_c_can_dev(void) > +struct net_device *alloc_c_can_dev(int msg_obj_num) > { > struct net_device *dev; > struct c_can_priv *priv; >

Re: [PATCH 2/2] mt76: mt7921: remove incorrect error handling

2021-02-26 Thread Kalle Valo
Arnd Bergmann wrote: > From: Arnd Bergmann > > Clang points out a mistake in the error handling in > mt7921_mcu_tx_rate_report(), which tries to dereference a pointer that > cannot be initialized because of the error that is being handled: > > drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:40

Re: [PATCH 1/2] mt76: mt7915: fix unused 'mode' variable

2021-02-26 Thread Kalle Valo
Arnd Bergmann wrote: > From: Arnd Bergmann > > clang points out a possible corner case in the mt7915_tm_set_tx_cont() > function if called with invalid arguments: > > drivers/net/wireless/mediatek/mt76/mt7915/testmode.c:593:2: warning: variable > 'mode' is used uninitialized whenever switch d

[PATCH] sparse: can do constant folding of __builtin_bswap*()

2021-02-26 Thread Luc Van Oostenryck
Sparse can do constant folding of __builtin_bswap*() since 2017. Also, a much recent version of Sparse is needed anyway, see commit 6ec4476ac825 ("Raise gcc version requirement to 4.9"). So, remove the comment about sparse not being yet able to constant fold __builtin_bswap*() and remove the corre

Re: [PATCH] perf annotate: improve --stdio mode

2021-02-26 Thread Martin Liška
On 2/23/21 8:47 PM, Arnaldo Carvalho de Melo wrote: Em Sun, Feb 21, 2021 at 01:46:36PM +0100, Martin Liška escreveu: The patch changes the output format in 2 ways: - line number is displayed for all source lines (matching TUI mode) Are you aware of 'perf annotate --stdio2' ? If the goal is to

Re: [BISECTED] Kernel 5.11.x breaks pulseaudio

2021-02-26 Thread Heinz Diehl
On 25.02.2021, Takashi Iwai wrote: > Check which streams are running when you get the unexpected sample > rate by inspecting /proc/asound/card*/pcm* entries. I see, thanks for explaining! Pulseaudio no longer works properly for me, but after configuring my audio player to use ALSA directly, all

Re: [PATCH] ANDROID: usb: core: Send uevent when USB TOPO layer over 6

2021-02-26 Thread Greg KH
On Fri, Feb 26, 2021 at 05:16:12PM +0800, Ricky Niu wrote: > When the topology of the nested hubs are over 6 layers > Send uevent to user space when USB TOPO layer over 6. > Let end user more understand what happened. > > Signed-off-by: Ricky Niu > --- > drivers/usb/core/hub.c | 22 +

[PATCH net v4 1/1] can: can_skb_set_owner(): fix ref counting if socket was closed before setting skb ownership

2021-02-26 Thread Oleksij Rempel
There are two ref count variables controlling the free()ing of a socket: - struct sock::sk_refcnt - which is changed by sock_hold()/sock_put() - struct sock::sk_wmem_alloc - which accounts the memory allocated by the skbs in the send path. In case there are still TX skbs on the fly and the socke

Re: [PATCH v2] kbuild: fix UNUSED_KSYMS_WHITELIST for Clang LTO

2021-02-26 Thread Sedat Dilek
On Fri, Feb 26, 2021 at 7:26 AM Masahiro Yamada wrote: > > Commit fbe078d397b4 ("kbuild: lto: add a default list of used symbols") > does not work as expected if the .config file has already specified > CONFIG_UNUSED_KSYMS_WHITELIST="my/own/white/list" before enabling > CONFIG_LTO_CLANG. > > So, t

Re: [PATCH 0/5] KVM: x86/mmu: Misc cleanups, mostly TDP MMU

2021-02-26 Thread Paolo Bonzini
On 26/02/21 02:03, Sean Christopherson wrote: Effectively belated code review of a few pieces of the TDP MMU. Sean Christopherson (5): KVM: x86/mmu: Remove spurious TLB flush from TDP MMU's change_pte() hook KVM: x86/mmu: WARN if TDP MMU's set_tdp_spte() sees multiple GFNs KVM: x86

KASAN: use-after-free Read in io_sq_thread

2021-02-26 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:7f206cf3 Add linux-next specific files for 20210225 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16746466d0 kernel config: https://syzkaller.appspot.com/x/.config?x=a1746d2802a82a05 dashboard

  1   2   3   4   5   6   7   8   9   >