Re: [PATCH net] net: marvell: prestera: fix error return code in prestera_pci_probe()

2020-11-13 Thread Vadym Kochan
Hi Wang, Wang Hai writes: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: 4c2703dfd7fa ("net: marvell: prestera: Add PCI interface support") > Reported-by: Hulk Robot > Signed-off-by: Wang Hai > --- > drivers/

Re: [PATCH v4] kcov, usb: only collect coverage from __usb_hcd_giveback_urb in softirq

2020-11-13 Thread Andrey Konovalov
On Fri, Nov 13, 2020 at 1:30 PM Sebastian Andrzej Siewior wrote: > > On 2020-10-16 15:57:45 [+0200], Andrey Konovalov wrote: > > --- a/drivers/usb/core/hcd.c > > +++ b/drivers/usb/core/hcd.c > > @@ -1646,9 +1646,16 @@ static void __usb_hcd_giveback_urb(struct urb *urb) > > > > /* pass owners

Re: Regression: QCA6390 fails with "mm/page_alloc: place pages to tail in __free_pages_core()"

2020-11-13 Thread Pavel Procopiuc
Op 13.11.2020 om 12:08 schreef Carl Huang: Checked some logs. Looks when the error happens, the physical address are very small. Its' between 20M - 30M. So could you have a try to reserve the memory starting from 20M? Add "memmap=10M\$20M" to your grub.cfg or edit in kernel parameters. so ath11k

#PF from NMI

2020-11-13 Thread Peter Zijlstra
Hi Eugenio reported (https://bugzilla.kernel.org/attachment.cgi?id=293659&action=edit): [ 139.226723] [ cut here ] [ 139.226724] WARNING: CPU: 9 PID: 2290 at kernel/rcu/tree.c:932 __rcu_irq_enter_check_tick+0x84/0xd0 [ 139.226725] Modules linked in: xt_CHECKSUM xt_MASQ

Re: [PATCH v4 3/3] arm64: implement CPPC FFH support using AMUs

2020-11-13 Thread Catalin Marinas
On Fri, Nov 13, 2020 at 12:28:46PM +, Ionela Voinescu wrote: > On Thursday 12 Nov 2020 at 18:00:46 (+), Catalin Marinas wrote: > > On Fri, Nov 06, 2020 at 12:53:34PM +, Ionela Voinescu wrote: > > > +static inline > > > +int counters_read_on_cpu(int cpu, smp_call_func_t func, u64 *val) >

Re: [PATCH] MIPS: reserve the memblock right after the kernel

2020-11-13 Thread Alexander Sverdlin
Hi Jiaxun, On 13/11/2020 03:30, Jiaxun Yang wrote: >> 2) The check_kernel_sections_mem() method can be removed. But it >> should be done carefully. We at least need to try to find all the >> platforms, which rely on its functionality. > It have been more than 10 years since introducing this this c

Re: [PATCH v4 06/17] PCI: add SIOV and IMS capability detection

2020-11-13 Thread Jason Gunthorpe
On Fri, Nov 13, 2020 at 02:42:02AM +, Tian, Kevin wrote: > CPUID#1_ECX is a x86 thing. Do we need to figure out probably_on_ > bare_metal for every architecture altogether, or is it OK to just > handle it for x86 arch at this stage? Based on previous discussions > ims is just one piece of mul

csky-linux-ld: vdpa_sim.c:undefined reference to `mac_pton'

2020-11-13 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba commit: 0c86d774883fa17e7c81b0c8838b88d06c2c911e vdpasim: allow to assign a MAC address date: 2 weeks ago config: csky-randconfig-p002-20201113 (attached as

Re: [RESEND][PATCH 1/2] arm-smmu-qcom: Ensure the qcom_scm driver has finished probing

2020-11-13 Thread Robin Murphy
On 2020-11-12 22:05, John Stultz wrote: Robin Murphy pointed out that if the arm-smmu driver probes before the qcom_scm driver, we may call qcom_scm_qsmmu500_wait_safe_toggle() before the __scm is initialized. Now, getting this to happen is a bit contrived, as in my efforts it required enabling

dfl.c:undefined reference to `devm_ioremap'

2020-11-13 Thread kernel test robot
-20201113 (attached as .config) compiler: s390-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel

Re: [RESEND PATCH] arm64: dts: ti: k3-j7200-mcu-wakeup: Enable ADC support

2020-11-13 Thread Nishanth Menon
On Thu, 29 Oct 2020 10:39:50 +0530, Vignesh Raghavendra wrote: > J7200 has a single instance of 8 channel ADC in MCU domain. Add DT node > for the same. Hi Vignesh Raghavendra, I have applied the following to branch ti-k3-dts-next on [1]. Thank you! [1/1] arm64: dts: ti: k3-j7200-mcu-wakeup: Ena

Re: [PATCH V3 0/5] arm64: dts: ti: Cleanup mix of "okay" and "disabled"

2020-11-13 Thread Nishanth Menon
On Thu, 12 Nov 2020 12:35:33 -0600, Nishanth Menon wrote: > Changes since v2[3]: > - Rebase on top of ti-k3-dts-next (no functional changes) > - picked up reviewed-by and acks from folks. > > Since we have all the required acks and reviews, I will apply this > series tomorrow morning since this ca

Re: [PATCH] MIPS: reserve the memblock right after the kernel

2020-11-13 Thread Alexander Sverdlin
Hello Serge, Thomas, On 13/11/2020 10:17, Alexander Sverdlin wrote: >> So IMHO what could be the best conclusion in the framework of this patch: >> 1) As Thomas said any platform-specific reservation should be done in the >> platform-specific code. That means if octeon needs some memory behind >>

Re: [PATCH 3/3 v6] livepatch: Use the default ftrace_ops instead of REGS when ARGS is available

2020-11-13 Thread Steven Rostedt
On Fri, 13 Nov 2020 12:31:11 +0100 (CET) Miroslav Benes wrote: > > +++ b/arch/x86/include/asm/livepatch.h > > @@ -12,9 +12,9 @@ > > #include > > #include > > > > -static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip) > > +static inline void klp_arch_set_pc(struct ftrace

[PATCH] checkpatch: fix typo and remove duplicate word

2020-11-13 Thread Dwaipayan Ray
Delete repeated word in scripts/checkpatch.pl. "are are" -> "are" Fix typo "commments" -> "comments" Signed-off-by: Dwaipayan Ray --- scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 2749f32dffe9..e

[GIT PULL] GPIO fixes for the v5.10 series

2020-11-13 Thread Linus Walleij
Hi Linus, here are some GPIO fixes I've collected with the help of Bartosz. Nothing special about them: all are driver and kbuild fixes + some documentation fixes. Please pull it in! Yours, Linus Walleij The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10

Re: ERROR: modpost: "mac_pton" undefined!

2020-11-13 Thread Andy Shevchenko
On Fri, Nov 13, 2020 at 2:42 PM Laurent Vivier wrote: ... > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All errors (new ones prefixed by >>, old ones prefixed by <<): > > > >>> ERROR: modpost: "mac_pton" [drivers/vdpa/vdpa_sim/vdpa_

Re: [PATCH 0/2] nvme-pic: improve max I/O queue handling

2020-11-13 Thread Niklas Schnelle
On 11/12/20 6:36 PM, Keith Busch wrote: > On Thu, Nov 12, 2020 at 04:45:35PM +0100, Niklas Schnelle wrote: >> You got to get something wrong, I hope in this case it's just the subject >> of the cover letter :D > > I suppose the change logs could be worded a little better :) Do you think I shou

Re: [PATCH RESEND 2/4] regulator: debug early supply resolving

2020-11-13 Thread Mark Brown
On Fri, Nov 13, 2020 at 01:20:27AM +0100, Michał Mirosław wrote: > Help debugging the case when set_machine_constraints() needs to be > repeated. > > Signed-off-by: Michał Mirosław Please when sending patches containing a mix of different kinds of patches put any fixes at the start of the series

phy-qcom-usb-ss.c:undefined reference to `devm_platform_ioremap_resource'

2020-11-13 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba commit: 6076967a500c4c6dad19d10d71863db1590a35ed phy: qualcomm: usb: Add SuperSpeed PHY driver date: 8 months ago config: s390-randconfig-r021-20201113 (attached

Re: [PATCH] usb-serial: support NAL Research Corporation Iridium modems

2020-11-13 Thread Johan Hovold
On Tue, Oct 20, 2020 at 05:54:26PM +0200, Bertold Van den Bergh wrote: > This driver is for NAL Reserach Corporation Iridium modems with USB. "Research" > There are different variants of the bus protocol, but the driver should > detect this automatically. Do you mean that this is something to be

Re: [PATCH] usb: core: Null deref in kernel with USB webcams.

2020-11-13 Thread John Boero
Thanks for the tips. I've spent some more time on this this morning. It looks like it's not the dev after all. Every interface in the dev is set NULL after init. Just like in the original Ubuntu bug 1827452 filed by someone else the device seems to disconnect itself after uvcvideo initialization.

Re: ERROR: modpost: "mac_pton" undefined!

2020-11-13 Thread Laurent Vivier
On 13/11/2020 14:12, Andy Shevchenko wrote: > On Fri, Nov 13, 2020 at 2:42 PM Laurent Vivier wrote: > > ... > >>> If you fix the issue, kindly add following tag as appropriate >>> Reported-by: kernel test robot >>> >>> All errors (new ones prefixed by >>, old ones prefixed by <<): >>> > ERR

[PATCH] fs/kernfs: remove the double check of dentry->inode

2020-11-13 Thread Hui Su
In both kernfs_node_from_dentry() and in kernfs_dentry_node(), we will check the dentry->inode is NULL or not, which is superfluous. So remove the check in kernfs_node_from_dentry(). Signed-off-by: Hui Su --- fs/kernfs/dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/

[GIT PULL] pin control fixes for the v5.10 series

2020-11-13 Thread Linus Walleij
Hi Linus, here is a bunch of pin control fixes for the v5.10 kernel series. Nothing in particular to say about it, because they are all driver fixes. I'm happy that some AMD driver fixes are appearing, it's been an undermaintained driver, and laptops have suffered. Please pull it in! Yours, Li

[PATCH] pinctrl: at91-pio4: add support for fewer lines on last PIO bank

2020-11-13 Thread Eugen Hristev
Some products, like sama7g5, do not have a full last bank of PIO lines. In this case for example, sama7g5 only has 8 lines for the PE bank. PA0-31, PB0-31, PC0-31, PD0-31, PE0-7, in total 136 lines. To cope with this situation, added a data attribute that is product dependent, to specify the number

Re: [PATCH v3] power: suspend: Move dpm_watchdog to suspend.c and enhance it

2020-11-13 Thread Greg Kroah-Hartman
On Fri, Oct 23, 2020 at 02:04:17PM +0800, Joseph Jang wrote: > Since dpm_watchdog just cover device power management, we proposed to > move it to core power suspend.c to cover not only device power management > hang issues, but also core power management hand issues. > > Since dpm_watchdog stands

Re: [PATCH 0/3 v6] ftrace: Add access to function arguments for all callbacks

2020-11-13 Thread Steven Rostedt
On Fri, 13 Nov 2020 09:07:33 +0100 Peter Zijlstra wrote: > On Thu, Nov 12, 2020 at 09:01:42PM -0500, Steven Rostedt wrote: > > Steven Rostedt (VMware) (3): > > ftrace: Have the callbacks receive a struct ftrace_regs instead of > > pt_regs > > ftrace/x86: Allow for arguments to be pas

Re: [PATCH v4] kcov, usb: only collect coverage from __usb_hcd_giveback_urb in softirq

2020-11-13 Thread Sebastian Andrzej Siewior
On 2020-11-13 13:51:19 [+0100], Andrey Konovalov wrote: > Hi Sebastian, Hi Andrey, > Replaced with what and why? Linus requested in https://lkml.kernel.org/r/CAHk-=wht7kaeyr5xew2orj7m0hibvxz3t+2ie8vnhlqfdbn...@mail.gmail.com/ that drivers should not change their behaviour on context ma

[GIT PULL] bootconfig: Extend the magic check range to the preceding 3 bytes

2020-11-13 Thread Steven Rostedt
Linus, Fix alignment of bootconfig GRUB may align the init ramdisk size to 4 bytes, the magic number at the end of the init ramdisk that denotes bootconfig is attached may not be at the exact end of the ramdisk. The kernel needs to check back at least 4 bytes. Please pull the latest trace-v5.

Re: [PATCH] Revert "usb: musb: convert to devm_platform_ioremap_resource_byname"

2020-11-13 Thread Greg Kroah-Hartman
On Thu, Nov 12, 2020 at 02:59:00PM +0100, Geert Uytterhoeven wrote: > This reverts commit 2d30e408a2a6b3443d3232593e3d472584a3e9f8. > > On Beaglebone Black, where each interface has 2 children: > > musb-dsps 47401c00.usb: can't request region for resource [mem > 0x47401800-0x474019ff] >

RE: [PATCH v4 06/17] PCI: add SIOV and IMS capability detection

2020-11-13 Thread Thomas Gleixner
On Fri, Nov 13 2020 at 02:42, Kevin Tian wrote: >> From: Thomas Gleixner > CPUID#1_ECX is a x86 thing. Do we need to figure out probably_on_ > bare_metal for every architecture altogether, or is it OK to just > handle it for x86 arch at this stage? Based on previous discussions > ims is just one

Re: [PATCH] checkpatch: fix typo and remove duplicate word

2020-11-13 Thread Lukas Bulwahn
On Fri, Nov 13, 2020 at 2:11 PM Dwaipayan Ray wrote: > > Delete repeated word in scripts/checkpatch.pl. > "are are" -> "are" > > Fix typo "commments" -> "comments" > > Signed-off-by: Dwaipayan Ray Does this make checkpatch.pl pass checkpatch without any further warnings? Nice idea to check if c

Re: Regression: QCA6390 fails with "mm/page_alloc: place pages to tail in __free_pages_core()"

2020-11-13 Thread wi nk
On Fri, Nov 13, 2020 at 1:52 PM Pavel Procopiuc wrote: > > Op 13.11.2020 om 12:08 schreef Carl Huang: > > Checked some logs. Looks when the error happens, the physical address are > > very small. Its' between 20M - 30M. > > > > So could you have a try to reserve the memory starting from 20M? > > A

[PATCH v2] doc:it_IT: align Italian documentation

2020-11-13 Thread Federico Vaga
Translation for the following patches commit 905705a8fd43 ("docs: programming-languages: refresh blurb on clang support") commit 5ff4aa70bf34 ("docs: submitting-patches: use :doc: for references") commit 030f066f677f ("docs: submitting-patches: describe preserving review/test tags") commit 68e4c

Re: [PATCH v2 1/1] mfd: stmfx: fix dev_err_probe call in stmfx_chip_init

2020-11-13 Thread Lee Jones
On Fri, 13 Nov 2020, Amelie Delaunay wrote: > ret may be 0 so, dev_err_probe should be called only when ret is an error > code. > > Fixes: 41c9c06c491a ("mfd: stmfx: Simplify with dev_err_probe()") > Signed-off-by: Amelie Delaunay > --- > v2: address Lee's comment about error handling area > ---

Re: [PATCH RFC] checkpatch: add new cases to commit handling

2020-11-13 Thread Lukas Bulwahn
On Fri, Nov 13, 2020 at 1:31 PM Dwaipayan Ray wrote: > > Commit extraction in checkpatch fails in some cases. > One of the most common false positives is a split line > between "commit" and the git SHA of the commit. > > Improve commit handling to reduce false positives. > > Improvements: > - hand

Re: [PATCH] highmem: fix highmem for xtensa

2020-11-13 Thread Thomas Gleixner
Max, On Fri, Nov 13 2020 at 04:23, Max Filippov wrote: > Fixmap on xtensa grows upwards, i.e. bigger fixmap entry index > corresponds to a higher virtual address. This was lost in highmem > generalization resulting in the following runtime warnings: Sorry for not noticing. > Fix it by adding __A

Re: [PATCH v4] kcov, usb: only collect coverage from __usb_hcd_giveback_urb in softirq

2020-11-13 Thread Andrey Konovalov
On Fri, Nov 13, 2020 at 2:28 PM Sebastian Andrzej Siewior wrote: > > On 2020-11-13 13:51:19 [+0100], Andrey Konovalov wrote: > > Hi Sebastian, > > Hi Andrey, > > > Replaced with what and why? > > Linus requested in > > https://lkml.kernel.org/r/CAHk-=wht7kaeyr5xew2orj7m0hibvxz3t+2ie8vnhlq

[PATCH] x86/dumpstack: make show_trace_log_lvl() static

2020-11-13 Thread Hui Su
show_trace_log_lvl() won't be used by other files, so make it static and remove the declaration from the header file. Signed-off-by: Hui Su --- arch/x86/include/asm/stacktrace.h | 3 --- arch/x86/kernel/dumpstack.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/

Re: [PATCH 0/5] perf/mm: Fix PERF_SAMPLE_*_PAGE_SIZE

2020-11-13 Thread Christophe Leroy
Hi Le 13/11/2020 à 12:19, Peter Zijlstra a écrit : Hi, These patches provide generic infrastructure to determine TLB page size from page table entries alone. Perf will use this (for either data or code address) to aid in profiling TLB issues. While most architectures only have page table align

[PATCH RFC 02/12] vdpa: split vdpasim to core and net modules

2020-11-13 Thread Stefano Garzarella
From: Max Gurtovoy Introduce new vdpa_sim_net and vdpa_sim (core) drivers. This is a preparation for adding a vdpa simulator module for block devices. Signed-off-by: Max Gurtovoy [sgarzare: various cleanups/fixes] Signed-off-by: Stefano Garzarella --- v1: - Removed unused headers - Removed emp

[PATCH RFC 03/12] vdpa_sim: remove hard-coded virtq count

2020-11-13 Thread Stefano Garzarella
From: Max Gurtovoy Add a new attribute that will define the number of virt queues to be created for the vdpasim device. Signed-off-by: Max Gurtovoy [sgarzare: replace kmalloc_array() with kcalloc()] Signed-off-by: Stefano Garzarella --- v1: - use kcalloc() instead of kmalloc_array() since some

Re: [PATCH 1/8] arm64: dts: socfpga: Use generic "ngpios" rather than "snps,nr-gpios"

2020-11-13 Thread Dinh Nguyen
On 11/9/20 3:03 AM, Jisheng Zhang wrote: > This is to remove similar errors as below: > > OF: /.../gpio-port@0: could not find phandle > > Commit 7569486d79ae ("gpio: dwapb: Add ngpios DT-property support") > explained the reason of above errors well and added the generic > "ngpios" property,

[PATCH RFC 01/12] vhost-vdpa: add support for vDPA blk devices

2020-11-13 Thread Stefano Garzarella
From: Max Gurtovoy Currently only net devices can act as vDPA backends. Add an infrastructure for block devices will basic feature list that will be increased in the future. Signed-off-by: Max Gurtovoy Reviewed-by: Jason Wang Signed-off-by: Stefano Garzarella --- drivers/vhost/vdpa.c | 11 ++

[PATCH RFC 00/12] vdpa: generalize vdpa simulator and add block device

2020-11-13 Thread Stefano Garzarella
Thanks to Max that started this work! I took his patches, and extended the block simulator a bit. This series moves the network device simulator in a new module (vdpa_sim_net) and leaves the generic functions in the vdpa_sim core module, allowing the possibility to add new vDPA device simulators.

[PATCH RFC 08/12] vdpa_sim: use kvmalloc to allocate vdpasim->buffer

2020-11-13 Thread Stefano Garzarella
The next patch will make the buffer size configurable from each device. Since the buffer could be larger than a page, we use kvmalloc() instead of kmalloc(). Signed-off-by: Stefano Garzarella --- drivers/vdpa/vdpa_sim/vdpa_sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --g

[PATCH RFC 07/12] vdpa_sim: move config management outside of the core

2020-11-13 Thread Stefano Garzarella
In order to simplify the code of the vdpa_sim core, we move the config management in each device simulator. The device must provide the size of config structure and a callback to update this structure called during the vdpasim_set_features(). Signed-off-by: Stefano Garzarella --- drivers/vdpa/v

[PATCH RFC 05/12] vdpa_sim: remove the limit of IOTLB entries

2020-11-13 Thread Stefano Garzarella
The simulated devices can support multiple queues, so this limit should be defined according to the number of queues supported by the device. Since we are in a simulator, let's simply remove that limit. Suggested-by: Jason Wang Signed-off-by: Stefano Garzarella --- drivers/vdpa/vdpa_sim/vdpa_s

[PATCH RFC 06/12] vdpa_sim: add struct vdpasim_device to store device properties

2020-11-13 Thread Stefano Garzarella
Move device properties used during the entire life cycle in a new structure to simplify the copy of these fields during the vdpasim initialization. Signed-off-by: Stefano Garzarella --- drivers/vdpa/vdpa_sim/vdpa_sim.h | 17 -- drivers/vdpa/vdpa_sim/vdpa_sim.c | 33 ++

[PATCH RFC 11/12] vringh: allow vringh_iov_xfer() to skip bytes when ptr is NULL

2020-11-13 Thread Stefano Garzarella
In some cases, it may be useful to provide a way to skip a number of bytes in a vringh_iov. In order to keep vringh_iov consistent, let's reuse vringh_iov_xfer() logic and skip bytes when the ptr is NULL. Signed-off-by: Stefano Garzarella --- I'm not sure if this is the best option, maybe we ca

[PATCH RFC 10/12] vdpa_sim: split vdpasim_virtqueue's iov field in riov and wiov

2020-11-13 Thread Stefano Garzarella
vringh_getdesc_iotlb() manages 2 iovs for writable and readable descriptors. This is very useful for the block device, where for each request we have both types of descriptor. Let's split the vdpasim_virtqueue's iov field in riov and wiov to use them with vringh_getdesc_iotlb(). Signed-off-by: St

Re: [PATCH 5/8] arm64: dts: agilex: Use generic "ngpios" rather than "snps,nr-gpios"

2020-11-13 Thread Dinh Nguyen
On 11/9/20 3:05 AM, Jisheng Zhang wrote: > This is to remove similar errors as below: > > OF: /.../gpio-port@0: could not find phandle > > Commit 7569486d79ae ("gpio: dwapb: Add ngpios DT-property support") > explained the reason of above errors well and added the generic > "ngpios" property,

Re: [PATCH 5/8] arm64: dts: agilex: Use generic "ngpios" rather than "snps,nr-gpios"

2020-11-13 Thread Dinh Nguyen
On 11/9/20 3:05 AM, Jisheng Zhang wrote: > This is to remove similar errors as below: > > OF: /.../gpio-port@0: could not find phandle > > Commit 7569486d79ae ("gpio: dwapb: Add ngpios DT-property support") > explained the reason of above errors well and added the generic > "ngpios" property,

[PATCH RFC 04/12] vdpa: add vdpa simulator for block device

2020-11-13 Thread Stefano Garzarella
From: Max Gurtovoy This will allow running vDPA for virtio block protocol. Signed-off-by: Max Gurtovoy [sgarzare: various cleanups/fixes] Signed-off-by: Stefano Garzarella --- v1: - Removed unused headers - Used cpu_to_vdpasim*() to store config fields - Replaced 'select VDPA_SIM' with 'depend

[PATCH RFC 09/12] vdpa_sim: make vdpasim->buffer size configurable

2020-11-13 Thread Stefano Garzarella
Allow each device to specify the size of the buffer allocated in vdpa_sim. Signed-off-by: Stefano Garzarella --- drivers/vdpa/vdpa_sim/vdpa_sim.h | 1 + drivers/vdpa/vdpa_sim/vdpa_sim.c | 2 +- drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 1 + drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 1 + 4 file

Re: [PATCH 8/8] ARM: dts: socfgpa: Use generic "ngpios" rather than "snps,nr-gpios"

2020-11-13 Thread Dinh Nguyen
On 11/9/20 3:07 AM, Jisheng Zhang wrote: > This is to remove similar errors as below: > > OF: /.../gpio-port@0: could not find phandle > > Commit 7569486d79ae ("gpio: dwapb: Add ngpios DT-property support") > explained the reason of above errors well and added the generic > "ngpios" property,

[PATCH RFC 12/12] vdpa_sim_blk: implement ramdisk behaviour

2020-11-13 Thread Stefano Garzarella
The previous implementation wrote only the status of each request. This patch implements a more accurate block device simulator, providing a ramdisk-like behavior. Also handle VIRTIO_BLK_T_GET_ID request, always answering the "vdpa_blk_sim" string. Signed-off-by: Stefano Garzarella --- drivers/

Re: [PATCH] checkpatch: fix typo and remove duplicate word

2020-11-13 Thread Dwaipayan Ray
On Fri, Nov 13, 2020 at 7:04 PM Lukas Bulwahn wrote: > > On Fri, Nov 13, 2020 at 2:11 PM Dwaipayan Ray wrote: > > > > Delete repeated word in scripts/checkpatch.pl. > > "are are" -> "are" > > > > Fix typo "commments" -> "comments" > > > > Signed-off-by: Dwaipayan Ray > > Does this make checkpatc

[PATCH 05/40] drm/amd/amdgpu/amdgpu_ring: Fix misnaming of param 'max_dw'

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:168: warning: Function parameter or member 'max_dw' not described in 'amdgpu_ring_init' drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:168: warning: Excess function parameter 'max_ndw' description in 'amdgpu_ri

[PATCH 00/40] [Set 7] Rid W=1 warnings from GPU

2020-11-13 Thread Lee Jones
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings. This brings the running total from 5000 (in v5.9) down to 1400! Hopefully not too much more to go now. Lee Jones (40): drm/amd/include/vega10_ip

[PATCH 08/40] drm/amd/amdgpu/amdgpu_ib: Fix some incorrect/incomplete function documentation

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c:66: warning: Function parameter or member 'adev' not described in 'amdgpu_ib_get' drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c:66: warning: Function parameter or member 'vm' not described in 'amdgpu_ib_get' driv

[PATCH 11/40] drm/amd/amdgpu/amdgpu_pll: Fix kernel-doc formatting, missing and extra params

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c:121: warning: Function parameter or member 'freq' not described in 'amdgpu_pll_compute' drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c:121: warning: Function parameter or member 'fb_div_p' not described in 'amdgp

[PATCH 01/40] drm/amd/include/vega10_ip_offset: Mark _BASE structs as __maybe_unused

2020-11-13 Thread Lee Jones
This patch fixes nearly 400 warnings! These structures are too widely used in too many varying configurations to be split-up into different headers or moved into source files. Instead, we'll mark them as __maybe_unused which tells the compiler that we're aware they're being included into source f

[PATCH 12/40] drm/pl111/pl111_display: Make local function static

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/pl111/pl111_display.c:356:6: warning: no previous prototype for ‘pl111_display_disable’ [-Wmissing-prototypes] Cc: Eric Anholt Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org Signed-off-by: Lee Jones ---

[PATCH 15/40] drm/lima/lima_drv: Demote kernel-doc formatting abuse

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/lima/lima_drv.c:264: warning: cannot understand function prototype: 'const struct drm_driver lima_drm_driver = ' Cc: Qiang Yu Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org Cc: l...@lists.freedesktop.org

[PATCH 40/40] drm/amd/amdgpu/gfx_v7_0: Remove unused struct definition

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c:5211:45: warning: ‘gfx_v7_0_ip_block’ defined but not used [-Wunused-const-variable=] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-...@lists.freedesk

[PATCH 18/40] drm/mediatek/mtk_dpi: Remove unused struct definition 'mtk_dpi_encoder_funcs'

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/mediatek/mtk_dpi.c:530:39: warning: ‘mtk_dpi_encoder_funcs’ defined but not used [-Wunused-const-variable=] Cc: Chun-Kuang Hu Cc: Philipp Zabel Cc: David Airlie Cc: Daniel Vetter Cc: Matthias Brugger Cc: Jie Qiu Cc: dri-de..

[PATCH 22/40] drm/amd/amdgpu/amdgpu_sched: Consume our own header containing prototypes

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c:35:5: warning: no previous prototype for ‘amdgpu_to_sched_priority’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c:122:5: warning: no previous prototype for ‘amdgpu_sched_ioctl’ [-Wmiss

[PATCH 25/40] drm/amd/amdgpu/amdgpu_debugfs: Demote obvious abuse of kernel-doc formatting

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:308: warning: Function parameter or member 'f' not described in 'amdgpu_debugfs_regs_read' drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:308: warning: Function parameter or member 'buf' not described in

[PATCH 39/40] drm/msm/disp/dpu1/dpu_encoder: Remove a bunch of unused variables

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: In function ‘dpu_encoder_virt_mode_set’: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:981:31: warning: variable ‘num_dspp’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/msm/disp/dpu1/dp

[PATCH 30/40] drm/amd/amdgpu/amdgpu_vm_cpu: Fix 'amdgpu_vm_cpu_prepare()'s doc-rot

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c:50: warning: Function parameter or member 'resv' not described in 'amdgpu_vm_cpu_prepare' drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c:50: warning: Function parameter or member 'sync_mode' not described i

[PATCH 29/40] drm/amd/amdgpu/amdgpu_csa: Remove set but unused variable 'r'

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c: In function ‘amdgpu_allocate_static_csa’: drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c:40:6: warning: variable ‘r’ set but not used [-Wunused-but-set-variable] Cc: Alex Deucher Cc: "Christian König" Cc: Dav

[PATCH 37/40] drm/amd/amdgpu/smu_v11_0_i2c: Provide descriptions for 'control' and 'data' params

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c:225: warning: Function parameter or member 'control' not described in 'smu_v11_0_i2c_transmit' drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c:325: warning: Function parameter or member 'control' not describ

[PATCH 38/40] drm/msm/disp/dpu1/dpu_core_perf: Remove set but unused variable 'dpu_cstate'

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c: In function ‘_dpu_core_perf_calc_crtc’: drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:113:25: warning: variable ‘dpu_cstate’ set but not used [-Wunused-but-set-variable] Cc: Rob Clark Cc: Sean Pau

[PATCH 27/40] drm/amd/amdgpu/amdgpu_ras: Remove unused function 'amdgpu_ras_error_cure'

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:908:5: warning: no previous prototype for ‘amdgpu_ras_error_cure’ [-Wmissing-prototypes] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-...@lists.freedesktop.org Cc: d

[PATCH 24/40] drm/amd/amdgpu/amdgpu_ids: Supply missing docs for 'id' and 'vmhub'

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c:271: warning: Function parameter or member 'id' not described in 'amdgpu_vmid_grab_reserved' drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c:523: warning: Function parameter or member 'vmhub' not described in 'amd

[PATCH 35/40] drm/msm/disp/mdp5/mdp5_kms: Make local functions 'mdp5_{en,dis}able()' static

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c:299:5: warning: no previous prototype for ‘mdp5_disable’ [-Wmissing-prototypes] drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c:319:5: warning: no previous prototype for ‘mdp5_enable’ [-Wmissing-prototypes] Cc:

[PATCH 33/40] drm/drm_dp_mst_topology: Remove set but never used variable 'len'

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/drm_dp_mst_topology.c: In function ‘drm_dp_send_query_stream_enc_status’: drivers/gpu/drm/drm_dp_mst_topology.c:3263:6: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] Cc: Maarten Lankhorst Cc: Maxime Ripar

[PATCH 32/40] drm/msm/disp/mdp5/mdp5_crtc: Make local function 'mdp5_crtc_setup_pipeline()' static

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c:581:5: warning: no previous prototype for ‘mdp5_crtc_setup_pipeline’ [-Wmissing-prototypes] Cc: Rob Clark Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: Thomas Zimmermann Cc: linux-arm-...@vger

[PATCH 26/40] drm/amd/amdgpu/amdgpu_gmc: Demote one and fix another function header

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c:69: warning: Function parameter or member 'bo' not described in 'amdgpu_gmc_pd_addr' drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c:121: warning: Function parameter or member 'bo' not described in 'amdgpu_gmc_agp

Re: [PATCH] highmem: fix highmem for xtensa

2020-11-13 Thread Max Filippov
Hi Thomas, On Fri, Nov 13, 2020 at 5:40 AM Thomas Gleixner wrote: > On Fri, Nov 13 2020 at 04:23, Max Filippov wrote: > > Fixmap on xtensa grows upwards, i.e. bigger fixmap entry index > > corresponds to a higher virtual address. This was lost in highmem > > generalization resulting in the follow

[PATCH] ipv6: remove unused function ipv6_skb_idev()

2020-11-13 Thread Lukas Bulwahn
Commit bdb7cc643fc9 ("ipv6: Count interface receive statistics on the ingress netdev") removed all callees for ipv6_skb_idev(). Hence, since then, ipv6_skb_idev() is unused and make CC=clang W=1 warns: net/ipv6/exthdrs.c:909:33: warning: unused function 'ipv6_skb_idev' [-Wunused-function] S

[PATCH 34/40] drm/msm/disp/mdp5/mdp5_ctl: Demote non-conformant kernel-doc headers

2020-11-13 Thread Lee Jones
Very little attempt has been made to document these functions. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c:227: warning: Function parameter or member 'ctl' not described in 'mdp5_ctl_set_encoder_state' drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c:227:

[PATCH 21/40] drm/amd/amdgpu/amdgpu_virt: Make local function 'amdgpu_virt_update_vf2pf_work_item()' static

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:560:6: warning: no previous prototype for ‘amdgpu_virt_update_vf2pf_work_item’ [-Wmissing-prototypes] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-...@lists.freedes

[PATCH 36/40] drm/amd/amdgpu/amdgpu_fw_attestation: Consume our own header containing prototypes

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c:130:6: warning: no previous prototype for ‘amdgpu_fw_attestation_debugfs_init’ [-Wmissing-prototypes] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Hawking Zha

[PATCH 31/40] drm/amd/amdgpu/amdgpu_vm_sdma: Fix 'amdgpu_vm_sdma_prepare()'s doc-rot

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c:63: warning: Function parameter or member 'resv' not described in 'amdgpu_vm_sdma_prepare' drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c:63: warning: Function parameter or member 'sync_mode' not describe

[PATCH 28/40] drm/amd/amdgpu/amdgpu_ras: Make local function 'amdgpu_ras_error_status_query' static

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1482:6: warning: no previous prototype for ‘amdgpu_ras_error_status_query’ [-Wmissing-prototypes] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-...@lists.freedesktop.

[PATCH 16/40] drm/amd/amdgpu/amdgpu_sync: Fix misnamed, missing and extra param descriptions

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c:86: warning: Function parameter or member 'f' not described in 'amdgpu_sync_get_owner' drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c:86: warning: Excess function parameter 'fence' description in 'amdgpu_sync_g

Re: iommu/vt-d: Cure VF irqdomain hickup

2020-11-13 Thread Thomas Gleixner
On Fri, Nov 13 2020 at 09:19, Marc Zyngier wrote: > On 2020-11-12 21:34, Thomas Gleixner wrote: >> That would allow to add a irq_find_matching_fwspec() based lookup to >> pci_msi_get_device_domain(). > > Just so that I understand the issue: is the core of the problem that > there is no 1:1 mapping

[PATCH 17/40] drm/meson/meson_vclk: Make two local functions static

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/meson/meson_vclk.c:134:6: warning: no previous prototype for ‘meson_vid_pll_set’ [-Wmissing-prototypes] drivers/gpu/drm/meson/meson_vclk.c:490:6: warning: no previous prototype for ‘meson_hdmi_pll_set_params’ [-Wmissing-prototype

[PATCH 19/40] drm/amd/amdgpu/amdgpu_vram_mgr: Add missing descriptions for 'dev' and 'dir'

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:648: warning: Function parameter or member 'dev' not described in 'amdgpu_vram_mgr_free_sgt' drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:648: warning: Function parameter or member 'dir' not described

[PATCH 20/40] drm/pl111/pl111_debugfs: Make local function 'pl111_debugfs_regs()' static

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/pl111/pl111_debugfs.c:33:5: warning: no previous prototype for ‘pl111_debugfs_regs’ [-Wmissing-prototypes] Cc: Eric Anholt Cc: David Airlie Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org Signed-off-by: Lee Jones --- dr

[PATCH 09/40] drm/mediatek/mtk_drm_crtc: Demote seriously out-of-date struct header

2020-11-13 Thread Lee Jones
This needs someone with in-depth knowledge of the driver to complete. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/mediatek/mtk_drm_crtc.c:62: warning: Function parameter or member 'pending_needs_vblank' not described in 'mtk_drm_crtc' drivers/gpu/drm/mediatek/mtk_drm_crtc.

[PATCH 23/40] drm/lima/lima_sched: Remove unused and unnecessary variable 'ret'

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/lima/lima_sched.c: In function ‘lima_sched_run_job’: drivers/gpu/drm/lima/lima_sched.c:227:20: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Qiang Yu Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semw

[PATCH 14/40] drm/meson/meson_venc: Make local function 'meson_venc_hdmi_get_dmt_vmode' static

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/meson/meson_venc.c:893:6: warning: no previous prototype for ‘meson_venc_hdmi_get_dmt_vmode’ [-Wmissing-prototypes] Cc: Neil Armstrong Cc: David Airlie Cc: Daniel Vetter Cc: Kevin Hilman Cc: Jerome Brunet Cc: Martin Blumensti

[PATCH 10/40] drm/mediatek/mtk_drm_drv: Staticise local function invoked by reference

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/mediatek/mtk_drm_drv.c:316:24: warning: no previous prototype for ‘mtk_drm_gem_prime_import’ [-Wmissing-prototypes] Cc: Chun-Kuang Hu Cc: Philipp Zabel Cc: David Airlie Cc: Daniel Vetter Cc: Matthias Brugger Cc: Sumit Semwal

[PATCH 13/40] drm/panel/panel-tpo-tpg110: Correct misnaming and supply missing param description

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/panel/panel-tpo-tpg110.c:94: warning: Function parameter or member 'panel_mode' not described in 'tpg110' drivers/gpu/drm/panel/panel-tpo-tpg110.c:372: warning: Function parameter or member 'connector' not described in 'tpg110_ge

[PATCH 02/40] drm/amd/display/dc/core/dc_link_dp: Move DP_VGA_LVDS_CONVERTER_ID_{2,3} to where they're used

2020-11-13 Thread Lee Jones
This patch fixes >200 warnings. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:123:22: warning: ‘DP_VGA_LVDS_CONVERTER_ID_3’ defined but not used [-Wunused-const-variable=] 123 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_

[PATCH 04/40] drm/amd/amdgpu/amdgpu_drv: Move 'amdgpu_info_ioctl()'s prototype to shared header

2020-11-13 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c:486:5: warning: no previous prototype for ‘amdgpu_info_ioctl’ [-Wmissing-prototypes] 486 | int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp) | ^ Cc: Alex De

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