Re: [PATCHv3] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-10-11 Thread Po-Hsu Lin
Hello, Is there any update on this patch? Thanks! PHLin On Fri, Sep 18, 2020 at 6:39 PM Po-Hsu Lin wrote: > > Hello folks, > > any thoughts on this patch? > It can make the test pass and reduce the failure numbers in > kselftests, it will be great to have this applied. > > Thanks > PHLin > > >

Re: KASAN: slab-out-of-bounds Read in strset_parse_request

2020-10-11 Thread Dmitry Vyukov
On Thu, Oct 8, 2020 at 5:00 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:9faebeb2 Merge branch 'ethtool-allow-dumping-policies-to-u.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=15f7dc0050 > kernel config:

Re: [PATCH RFC PKS/PMEM 57/58] nvdimm/pmem: Stray access protection for pmem->virt_addr

2020-10-11 Thread Ira Weiny
On Fri, Oct 09, 2020 at 07:53:07PM -0700, John Hubbard wrote: > On 10/9/20 12:50 PM, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > The pmem driver uses a cached virtual address to access its memory > > directly. Because the nvdimm driver is well aware of the special > > protections it

[RFC PATCH] checkpatch: add shebang check to EXECUTE_PERMISSIONS

2020-10-11 Thread Ujjwal Kumar
checkpatch.pl checks for invalid EXECUTE_PERMISSIONS on source files. The script leverages filename extensions and its path in the repository to decide whether to allow execute permissions on the file or not. Based on current check conditions, a perl script file having execute permissions,

Re: PHY reset question

2020-10-11 Thread Oleksij Rempel
Hi all, thank you for the feedback! On Fri, Oct 09, 2020 at 04:25:49PM +0200, Bruno Thomsen wrote: > Hi Fabio and Oleksij > > Den ons. 7. okt. 2020 kl. 11.50 skrev Fabio Estevam : > > > > Hi Oleksij, > > > > On Tue, Oct 6, 2020 at 5:05 AM Oleksij Rempel > > wrote: > > > > > > Hello PHY

Re: [PATCH v4] i2c: virtio: add a virtio i2c frontend driver

2020-10-11 Thread kernel test robot
Hi Jie, Thank you for the patch! Yet something to improve: [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on vhost/linux-next linus/master linux/master v5.9 next-20201009] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

[PATCH] sched/features: Fix !CONFIG_JUMP_LABEL case

2020-10-11 Thread Juri Lelli
Commit 765cc3a4b224e ("sched/core: Optimize sched_feat() for !CONFIG_SCHED_DEBUG builds") made sched features static for !CONFIG_SCHED_DEBUG configurations, but overlooked the CONFIG_ SCHED_DEBUG enabled and !HAVE_JUMP_LABEL cases. For the latter, echoing changes to

[PATCH v3 1/2] media: mtk-vcodec: move firmware implementations into their own files

2020-10-11 Thread Alexandre Courbot
mtk-vcodec supports two kinds of firmware, VPU and SCP. Both were supported from the same source files, but this is clearly unclean and makes it more difficult to disable support for one or the other. Move these implementations into their own file, after adding the necessary private interfaces.

Re: [PATCH v2 add prerequisite-patch-id] btrfs: fix devid 0 without a replace item by failing the mount

2020-10-11 Thread Anand Jain
Accidentally this patch went to the stable. Pls, ignore. Sorry for the noise. Thanks. On 12/10/20 1:26 pm, Anand Jain wrote: If there is a BTRFS_DEV_REPLACE_DEVID without a replace item, then it means some device is trying to attack or may be corrupted. Fail the mount so that the user can

[PATCH v3 0/2] media: mtk-vcodec: fix builds when remoteproc is disabled

2020-10-11 Thread Alexandre Courbot
Thanks everyone for the feedback on v2. This version has grown a little bit, but most of the added lines is just code moving around to new files. All in all this certainly makes the driver a little bit cleaner. Tested on both MT8173 and MT8183 and confirmed that the decoder was working on both.

[PATCH v3 2/2] media: mtk-vcodec: fix build breakage when one of VPU or SCP is enabled

2020-10-11 Thread Alexandre Courbot
The addition of MT8183 support added a dependency on the SCP remoteproc module. However the initial patch used the "select" Kconfig directive, which may result in the SCP module to not be compiled if remoteproc was disabled. In such a case, mtk-vcodec would try to link against non-existent SCP

Re: [kbuild-all] Re: drivers/power/supply/mp2629_charger.c:522:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.

2020-10-11 Thread Rong Chen
On 10/9/20 10:27 PM, Andy Shevchenko wrote: On Fri, Oct 9, 2020 at 4:23 PM kernel test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 549738f15da0e5a00275977623be199fbbf7df50 commit: 3bc6d790c39dfc4539c36525e6bcb617abbae467 power:

Re: [LKP] Re: [hugetlbfs] c0d0381ade: vm-scalability.throughput -33.4% regression

2020-10-11 Thread Xing Zhengjun
Hi Mike, I re-test it in v5.9-rc8, the regression still existed. It is almost the same as 34ae204f1851. Do you have time to look at it? Thanks. =

Re: [PATCH RFC PKS/PMEM 48/58] drivers/md: Utilize new kmap_thread()

2020-10-11 Thread Ira Weiny
On Sat, Oct 10, 2020 at 10:20:34AM +0800, Coly Li wrote: > On 2020/10/10 03:50, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > These kmap() calls are localized to a single thread. To avoid the over > > head of global PKRS updates use the new kmap_thread() call. > > > > Hi Ira, > >

[PATCH v2 add prerequisite-patch-id] btrfs: fix devid 0 without a replace item by failing the mount

2020-10-11 Thread Anand Jain
If there is a BTRFS_DEV_REPLACE_DEVID without a replace item, then it means some device is trying to attack or may be corrupted. Fail the mount so that the user can remove the attacking or fix the corrupted device. As of now if BTRFS_DEV_REPLACE_DEVID is present without the replace item, in

Re: [PATCH 2/2] Arm: dts: aspeed-g6: Add sgpio node and pinctrl setting

2020-10-11 Thread Billy Tsai
Hi Joel, On 2020/10/8, 11:49 AM, Joel Stanley wrote: On Thu, 8 Oct 2020 at 01:51, Billy Tsai wrote: > > > > This patch is used to add sgpiom and sgpios nodes and add pinctrl setting > > for sgpiom1 > > The code looks good Billy. > > Please split the change in

Re: [PATCH v2 1/2] cpufreq: tegra194: get consistent cpuinfo_cur_freq

2020-10-11 Thread Viresh Kumar
On 08-10-20, 18:31, Sumit Gupta wrote: > Frequency returned by 'cpuinfo_cur_freq' using counters is not fixed > and keeps changing slightly. This change returns a consistent value > from freq_table. If the reconstructed frequency has acceptable delta > from the last written value, then return the

linux-next: manual merge of the irqchip tree with the mfd tree

2020-10-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the irqchip tree got a conflict in: drivers/irqchip/Makefile between commit: 03ac990e0ac0 ("irqchip: Add sl28cpld interrupt controller support") from the mfd tree and commit: ad4c938c92af ("irqchip/irq-mst: Add MStar interrupt controller support")

Re: [PATCH RESEND 1/1] perf build: Allow nested externs to enable BUILD_BUG() usage

2020-10-11 Thread Stephen Rothwell
Hi all, On Mon, 12 Oct 2020 08:59:36 +1100 Stephen Rothwell wrote: > > On Fri, 9 Oct 2020 14:41:11 +0200 Jiri Olsa wrote: > > > > On Fri, Oct 09, 2020 at 02:25:23PM +0200, Vasily Gorbik wrote: > > > Currently BUILD_BUG() macro is expanded to smth like the following: > > >do { > > >

Re: [PATCH v3 1/1] PCI/ERR: Fix reset logic in pcie_do_recovery() call

2020-10-11 Thread Kuppuswamy, Sathyanarayanan
Hi Sinan, On 9/28/20 11:32 AM, Kuppuswamy, Sathyanarayanan wrote: On 9/28/20 11:25 AM, Sinan Kaya wrote: On 9/28/2020 2:02 PM, Sinan Kaya wrote: Since there is no state restoration for FATAL errors, I am wondering whether calls to ->error_detected(), ->mmio_enabled() and ->slot_reset() are

[PATCH v4 1/2] PCI/ERR: Call pci_bus_reset() before calling ->slot_reset() callback

2020-10-11 Thread sathyanarayanan . nkuppuswamy
From: Kuppuswamy Sathyanarayanan Currently if report_error_detected() or report_mmio_enabled() functions requests PCI_ERS_RESULT_NEED_RESET, current pcie_do_recovery() implementation does not do the requested explicit device reset, but instead just calls the report_slot_reset() on all affected

[PATCH v4 2/2] PCI/ERR: Split the fatal and non-fatal error recovery handling

2020-10-11 Thread sathyanarayanan . nkuppuswamy
From: Kuppuswamy Sathyanarayanan Commit bdb5ac85777d ("PCI/ERR: Handle fatal error recovery") merged fatal and non-fatal error recovery paths, and also made recovery code depend on hotplug handler for "remove affected device + rescan" support. But this change also complicated the error recovery

Re: [PATCH] perf inject: Flush ordered events on FINISHED_ROUND

2020-10-11 Thread Namhyung Kim
Hi Jiri, On Thu, Oct 8, 2020 at 6:07 PM Jiri Olsa wrote: > > On Tue, Oct 06, 2020 at 02:40:32PM +0900, namhy...@kernel.org wrote: > > This is the perf stat result: > > > > * Before > > > > 7,167,414,019 L1-dcache-loads > >337,471,761 L1-dcache-read-misses #4.71% of

[PATCH] perf vendor events: Fix typos in power8 PMU events

2020-10-11 Thread Sandipan Das
This replaces the incorrectly spelled word "localtion" with "location" in some power8 PMU event descriptions. Fixes: 2a81fa3bb5ed ("perf vendor events: Add power8 PMU events") Signed-off-by: Sandipan Das --- .../pmu-events/arch/powerpc/power8/cache.json| 10 +-

Re: LPC 2020 Hackroom Session: summary and next steps for isolated user namespaces

2020-10-11 Thread Eric W. Biederman
Andy Lutomirski writes: > On Sun, Oct 11, 2020 at 1:53 PM Josh Triplett wrote: >> >> On Fri, Oct 09, 2020 at 11:26:06PM -0500, Serge E. Hallyn wrote: >> > > 3. Find a way to allow setgroups() in a user namespace while keeping >> > >in mind the case of groups used for negative access

[PATCH] f2fs: fix writecount false positive in releasing compress blocks

2020-10-11 Thread Daeho Jeong
From: Daeho Jeong In current condition check, if it detects writecount, it return -EBUSY regardless of f_mode of the file. Fixed it. Signed-off-by: Daeho Jeong --- fs/f2fs/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index

Re: [PATCH v2] media: mtk-vcodec: fix builds when remoteproc is disabled

2020-10-11 Thread Alexandre Courbot
Hi Mauro, On Fri, Oct 9, 2020 at 3:34 PM Mauro Carvalho Chehab wrote: > > Em Fri, 9 Oct 2020 13:30:06 +0900 > Alexandre Courbot escreveu: > > > On Fri, Oct 9, 2020 at 1:13 AM Hans Verkuil > > wrote: > > > > >>> If VIDEO_MEDIATEK_VPU=y and MTK_SCP=m, then VIDEO_MEDIATEK_VCODEC can > > > >>>

[PATCH rdma-rc 0/3] Fixes to coming PR

2020-10-11 Thread Leon Romanovsky
From: Leon Romanovsky Leon Romanovsky (2): RDMA/core: Postpone uobject cleanup on failure till FD close RDMA/core: Make FD destroy callback void Maor Gottlieb (1): RDMA/ucma: Fix use after free in destroy id flow drivers/infiniband/core/rdma_core.c | 45 ---

Re: [PATCH 2/3] Arm: dts: aspeed-g6: Add sgpio node

2020-10-11 Thread Billy Tsai
Hi Joel, Thanks for the review. On 2020/10/12, 12:35 PM, Joel Stanley wrote: > On Mon, 12 Oct 2020 at 03:32, Billy Tsai wrote: > > > > This patch is used to add sgpiom and sgpios nodes and add compatible > > string for sgpiom. > > You also need to add sgpios

[PATCH] cpufreq: stats: Fix string format specifier mismatch

2020-10-11 Thread Viresh Kumar
Fix following warning: drivers/cpufreq/cpufreq_stats.c:63:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int' Fixes: 40c3bd4cfa6f ("cpufreq: stats: Defer stats update to cpufreq_stats_record_transition()") Reported-by: kernel test robot

Re: [PATCH RFC PKS/PMEM 10/58] drivers/rdma: Utilize new kmap_thread()

2020-10-11 Thread Ira Weiny
On Sat, Oct 10, 2020 at 11:36:49AM +, Bernard Metzler wrote: > -ira.we...@intel.com wrote: - > [snip] > >@@ -505,7 +505,7 @@ static int siw_tx_hdt(struct siw_iwarp_tx *c_tx, > >struct socket *s) > > page_array[seg] = p; > > > >

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-11 Thread Z.q. Hou
Hi Kishon, > -Original Message- > From: Kishon Vijay Abraham I > Sent: 2020年10月1日 21:32 > To: Rob Herring > Cc: Gustavo Pimentel ; Z.q. Hou > ; Lorenzo Pieralisi ; > linux-kernel@vger.kernel.org; PCI ; Bjorn > Helgaas ; Michael Walle ; Ard > Biesheuvel > Subject: Re: [PATCH] PCI: dwc:

[PATCH 09/15] dmaengine: dw-axi-dmac: Support burst residue granularity

2020-10-11 Thread Sia Jee Heng
Add support for DMA_RESIDUE_GRANULARITY_BURST so that AxiDMA can report DMA residue. Existing AxiDMA driver only support data transfer between memory to memory operation, therefore reporting DMA residue to the DMA clients is not supported. Reporting DMA residue to the DMA clients is important as

[PATCH 14/15] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA BYTE and HALFWORD registers

2020-10-11 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA BYTE and HALFWORD registers programming. Intel KeemBay AxiDMA supports data transfer between device to memory and memory to device operations. This code is needed by I2C, I3C, I2S, SPI and UART which uses FIFO size of 8bits and 16bits to perform memory to

[PATCH 15/15] dmaengine: dw-axi-dmac: Set constraint to the Max segment size

2020-10-11 Thread Sia Jee Heng
Add support for DMA Scatter-Gather (SG) constraint so that DMA clients can handle the AxiDMA limitation. Without supporting DMA constraint the default Max segment size reported by dmaengine is 64KB, which is not supported by Intel KeemBay AxiDMA. Reviewed-by: Andy Shevchenko Signed-off-by: Sia

[PATCH 06/15] dmaengine: dw-axi-dmac: Support device_prep_slave_sg

2020-10-11 Thread Sia Jee Heng
Add device_prep_slave_sg() callback function so that DMA_MEM_TO_DEV and DMA_DEV_TO_MEM operations in single mode can be supported. Existing AxiDMA driver only support data transfer between memory to memory. Data transfer between device to memory and memory to device in single mode would failed if

Re: [PATCH RESEND] drm/aspeed: fix Kconfig warning & subsequent build errors

2020-10-11 Thread Joel Stanley
On Sun, 11 Oct 2020 at 23:01, Randy Dunlap wrote: > > kernel test robot reported build errors (undefined references) > that didn't make much sense. After reproducing them, there is also > a Kconfig warning that is the root cause of the build errors, so > fix that Kconfig problem. > > Fixes this

[PATCH 08/15] dmaengine: dw-axi-dmac: Support of_dma_controller_register()

2020-10-11 Thread Sia Jee Heng
Add support for of_dma_controller_register() so that DMA clients can pass in device handshake number to the AxiDMA driver. DMA clients shall code the device handshake number in the Device tree. When DMA activities are needed, DMA clients shall invoke OF helper function to pass in the device

[PATCH 03/15] dmaengine: dw-axi-dmac: move dma_pool_create() to alloc_chan_resources()

2020-10-11 Thread Sia Jee Heng
The DMA memory block is created at driver load time and exist for device lifetime. Move the dma_pool_create() to the ->chan_resource() callback function allowing the DMA memory blocks to be created as needed and destroyed when the channel is freed. Reviewed-by: Andy Shevchenko Signed-off-by: Sia

[PATCH 02/15] dmaengine: dw-axi-dmac: simplify descriptor management

2020-10-11 Thread Sia Jee Heng
Simplify and refactor the descriptor management by removing the redundant Linked List Item (LLI) queue control logic from the AxiDMA driver. The descriptor is split into virtual descriptor and hardware LLI so that only hardware LLI memories are allocated from the DMA memory pool. Up to 64

[PATCH 12/15] dmaengine: dw-axi-dmac: Add Intel KeemBay DMA register fields

2020-10-11 Thread Sia Jee Heng
Add support for Intel KeemBay DMA registers. These registers are required to run data transfer between device to memory and memory to device on Intel KeemBay SoC. Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 4

[PATCH 07/15] dmaegine: dw-axi-dmac: Support device_prep_dma_cyclic()

2020-10-11 Thread Sia Jee Heng
Add support for device_prep_dma_cyclic() callback function to benefit DMA cyclic client, for example ALSA. Existing AxiDMA driver only support data transfer between memory to memory. Data transfer between device to memory and memory to device in cyclic mode would failed if this interface is not

[PATCH 04/15] dmaengine: dw-axi-dmac: Add device_synchronize() callback

2020-10-11 Thread Sia Jee Heng
Add support for device_synchronize() callback function to sync with dmaengine_terminate_sync(). Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 10/15] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA support

2020-10-11 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA to the .compatible field. Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

[PATCH 05/15] dmaengine: dw-axi-dmac: Add device_config operation

2020-10-11 Thread Sia Jee Heng
Add device_config() callback function so that the device address can be passed to the dma driver. DMA clients use this interface to pass in the device address to the AxiDMA. Without this interface, data transfer between device to memory and memory to device would failed. Reviewed-by: Andy

[PATCH 13/15] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA handshake

2020-10-11 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA device handshake programming. Device handshake number passed in to the AxiDMA shall be written to the Intel KeemBay AxiDMA hardware handshake registers before DMA operations are started. Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng ---

[PATCH 11/15] dt-binding: dma: dw-axi-dmac: Add support for Intel KeemBay AxiDMA

2020-10-11 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA to the dw-axi-dmac Schemas DT binding. Signed-off-by: Sia Jee Heng --- .../bindings/dma/snps,dw-axi-dmac.yaml| 25 +++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml

[PATCH 01/15] dt-bindings: dma: Add YAML schemas for dw-axi-dmac

2020-10-11 Thread Sia Jee Heng
YAML schemas Device Tree (DT) binding is the new format for DT to replace the old format. Introduce YAML schemas DT binding for dw-axi-dmac and remove the old version. Signed-off-by: Sia Jee Heng --- .../bindings/dma/snps,dw-axi-dmac.txt | 39 --

[PATCH 00/15] dmaengine: dw-axi-dmac: support Intel KeemBay AxiDMA

2020-10-11 Thread Sia Jee Heng
The below patch series are to support AxiDMA running on Intel KeemBay SoC. The base driver is dw-axi-dmac but code refactoring is needed, for example: - Support YAML Schemas DT binding. - Replacing Linked List with virtual descriptor management. - Remove unrelated hw desc stuff from dma memory

Re: [PATCH 3/3] pinctrl: aspeed-g6: Add sgpiom2 pinctrl setting

2020-10-11 Thread Joel Stanley
On Mon, 12 Oct 2020 at 03:32, Billy Tsai wrote: > > At ast2600a1 we change feature of master sgpio to 2 sets. > So this patch is used to add the pinctrl setting of the new sgpio. > > Signed-off-by: Billy Tsai Reviewed-by: Joel Stanley Linus, can you take this through the pinctrl tree? The

Re: [PATCH 2/3] Arm: dts: aspeed-g6: Add sgpio node

2020-10-11 Thread Joel Stanley
On Mon, 12 Oct 2020 at 03:32, Billy Tsai wrote: > > This patch is used to add sgpiom and sgpios nodes and add compatiable > string for sgpiom. You also need to add sgpios documentation to the bindings docs. Whenever you add new device tree bindings to the kernel tree you should add

RE: [PATCH] PCI: layerscape: Change back to the default error response behavior

2020-10-11 Thread Z.q. Hou
Hi Rob and Kishon, > -Original Message- > From: Rob Herring > Sent: 2020年9月30日 23:08 > To: Kishon Vijay Abraham I > Cc: Z.q. Hou ; PCI ; > linux-kernel@vger.kernel.org; linux-arm-kernel > ; Lorenzo Pieralisi > ; Bjorn Helgaas ; M.h. > Lian ; Roy Zang ; Mingkai > Hu ; Leo Li > Subject:

Re: [PATCH 1/3] Arm: dts: aspeed-g6: Fix the register range of gpio

2020-10-11 Thread Joel Stanley
On Mon, 12 Oct 2020 at 03:32, Billy Tsai wrote: > > This patch is used to fix the memory range of gpio0 > > Signed-off-by: Billy Tsai Reviewed-by: Joel Stanley > --- > arch/arm/boot/dts/aspeed-g6.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

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

2020-10-11 Thread Stephen Rothwell
Hi all, [Just adding Dave to cc's] On Mon, 12 Oct 2020 15:24:52 +1100 Stephen Rothwell wrote: > > Hi all, > > On Thu, 8 Oct 2020 15:42:02 +1100 Stephen Rothwell > wrote: > > > > On Thu, 8 Oct 2020 14:09:03 +1100 Stephen Rothwell > > wrote: > > > > > > After merging the drm-misc tree,

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

2020-10-11 Thread Stephen Rothwell
Hi all, On Thu, 8 Oct 2020 15:42:02 +1100 Stephen Rothwell wrote: > > On Thu, 8 Oct 2020 14:09:03 +1100 Stephen Rothwell > wrote: > > > > After merging the drm-misc tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > In file included from include/linux/clk.h:13,

[PATCH net] net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid

2020-10-11 Thread Anant Thazhemadam
In p9_fd_create_unix, checking is performed to see if the addr (passed as an argument) is NULL or not. However, no check is performed to see if addr is a valid address, i.e., it doesn't entirely consist of only 0's. The initialization of sun_server.sun_path to be equal to this faulty addr value

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-11 Thread Z.q. Hou
> -Original Message- > From: Rob Herring > Sent: 2020年9月30日 1:11 > To: Gustavo Pimentel > Cc: Z.q. Hou ; Lorenzo Pieralisi > ; linux-kernel@vger.kernel.org; PCI > ; Bjorn Helgaas ; > Michael Walle ; Ard Biesheuvel > Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of >

Re: [External] Re: [PATCH] mm: proc: add Sock to /proc/meminfo

2020-10-11 Thread Muchun Song
On Mon, Oct 12, 2020 at 2:39 AM Cong Wang wrote: > > On Sat, Oct 10, 2020 at 3:39 AM Muchun Song wrote: > > > > The amount of memory allocated to sockets buffer can become significant. > > However, we do not display the amount of memory consumed by sockets > > buffer. In this case, knowing where

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

2020-10-11 Thread Stephen Rothwell
Hi all, On Tue, 6 Oct 2020 13:41:20 -0300 Jason Gunthorpe wrote: > > On Tue, Oct 06, 2020 at 08:35:08PM +1100, Stephen Rothwell wrote: > > Hi all, > > > > After merging the hmm tree, today's linux-next build (arm > > multi_v7_defconfig) failed like this: > > > > > > Caused by commit > > > >

Re: [PATCH v2 2/2] [RFC] CPUFreq: Add support for cpu-perf-dependencies

2020-10-11 Thread Viresh Kumar
On 09-10-20, 16:28, Nicola Mazzucato wrote: > @Viresh > I am sorry I misread your reply earlier thus I did not pay attention on that > property. > And yes, it is exactly as how you have described :) > In the case 1 (different opps, different clk) and case 2 (same opps, different > clk) we provide

Re: linux-next: manual merge of the tip tree with the amdgpu tree

2020-10-11 Thread Stephen Rothwell
Hi all, On Wed, 23 Sep 2020 15:13:36 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the tip tree got a conflict in: > > drivers/gpu/drm/amd/amdkfd/kfd_priv.h > > between commit: > > 59d7115dae02 ("drm/amdkfd: Move process doorbell allocation into kfd > device") > > from

Re: [PATCH V4 3/3] arm64/mm/hotplug: Ensure early memory sections are all online

2020-10-11 Thread Gavin Shan
Hi Anshuman, On 10/6/20 2:11 PM, Anshuman Khandual wrote: On 10/01/2020 06:23 AM, Gavin Shan wrote: On 9/29/20 11:54 PM, Anshuman Khandual wrote: This adds a validation function that scans the entire boot memory and makes sure that all early memory sections are online. This check is essential

Re: [PATCH] x86/x86_64_defconfig: Enable the serial console

2020-10-11 Thread Willy Tarreau
Hi Enric, On Sun, Oct 11, 2020 at 07:05:55PM +0200, Enric Balletbo i Serra wrote: > For arm64 (i.e : arm64_defconfig): > 1. Someone renames CONFIG_A to CONFIG_AB, sends a patch, and as he did a > grep, the patch modifies all the defconfigs. > 2. The patch is accepted and merged in

[PATCH] sh: Remove unused HAVE_COPY_THREAD_TLS macro

2020-10-11 Thread Jinyang He
Fixes: e1cc9d8d596e ("sh: switch to copy_thread_tls()") Signed-off-by: Jinyang He --- arch/sh/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index d209271..165f291 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -30,7 +30,6 @@ config SUPERH

Re: [PATCH v3] i2c: virtio: add a virtio i2c frontend driver

2020-10-11 Thread Jason Wang
On 2020/10/12 上午10:45, Jie Deng wrote: On 2020/10/10 11:14, Jason Wang wrote: + +    virtqueue_kick(vq); + +    time_left = wait_for_completion_timeout(>completion, adap->timeout); +    if (!time_left) { +    dev_err(>dev, "msg[%d]: addr=0x%x timeout.\n", i,

Re: [PATCH v5 4/4] mmc: mediatek: Add subsys clock control for MT8192 msdc

2020-10-11 Thread Nicolas Boichat
Thanks for the quick turnaround. And sorry, I should have noticed these issues in my previous pass. On Mon, Oct 12, 2020 at 10:44 AM Wenbin Mei wrote: > > MT8192 msdc is an independent sub system, we need control more bus > clocks for it. > Add support for the additional subsys clocks to allow

Re: [PATCH FIX v0] mm: memcg/slab: Uncharge during kmem_cache_free_bulk()

2020-10-11 Thread Bharata B Rao
On Fri, Oct 09, 2020 at 11:45:51AM -0700, Roman Gushchin wrote: > On Fri, Oct 09, 2020 at 11:34:23AM +0530, Bharata B Rao wrote: > > Hi Bharata, > > > Object cgroup charging is done for all the objects during > > allocation, but during freeing, uncharging ends up happening > > for only one

[RESEND v4 2/2] KVM: VMX: Enable bus lock VM exit

2020-10-11 Thread Chenyi Qiang
Virtual Machine can exploit bus locks to degrade the performance of system. Bus lock can be caused by split locked access to writeback(WB) memory or by using locks on uncacheable(UC) memory. The bus lock is typically >1000 cycles slower than an atomic operation within a cache line. It also

[V2 PATCH 0/3] Fix the memory layout and add sgpio node for aspeed g6

2020-10-11 Thread Billy Tsai
This patch series is used to add sgpiom and sgpios nodes and add pinctrl setting for sgpiom1 v2: - Split the change of dts and pinctrl to two commit. - Add the compatible string for aspeed,ast2600-sgpiom. aspeed,ast2600-sgpios will implement in the future. Billy Tsai (3): Arm: dts:

[RESEND v4 1/2] KVM: VMX: Convert vcpu_vmx.exit_reason to a union

2020-10-11 Thread Chenyi Qiang
From: Sean Christopherson Convert vcpu_vmx.exit_reason from a u32 to a union (of size u32). The full VM_EXIT_REASON field is comprised of a 16-bit basic exit reason in bits 15:0, and single-bit modifiers in bits 31:16. Historically, KVM has only had to worry about handling the "failed

[RESEND v4 0/2] Add bus lock VM exit support

2020-10-11 Thread Chenyi Qiang
This patch series add the support for bus lock VM exit in KVM. It is a sub-feature of bus lock detection. When it is enabled by the VMM, the processor generates a "Bus Lock" VM exit following execution of an instruction if the processor detects that one or more bus locks were caused the

[PATCH 2/3] Arm: dts: aspeed-g6: Add sgpio node

2020-10-11 Thread Billy Tsai
This patch is used to add sgpiom and sgpios nodes and add compatiable string for sgpiom. Signed-off-by: Billy Tsai --- .../devicetree/bindings/gpio/sgpio-aspeed.txt | 8 +-- arch/arm/boot/dts/aspeed-g6.dtsi | 52 +++ 2 files changed, 57 insertions(+), 3

[PATCH 1/3] Arm: dts: aspeed-g6: Fix the register range of gpio

2020-10-11 Thread Billy Tsai
This patch is used to fix the memory range of gpio0 Signed-off-by: Billy Tsai --- arch/arm/boot/dts/aspeed-g6.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi index 97ca743363d7..ad19dce038ea 100644 ---

[PATCH 3/3] pinctrl: aspeed-g6: Add sgpiom2 pinctrl setting

2020-10-11 Thread Billy Tsai
At ast2600a1 we change feature of master sgpio to 2 sets. So this patch is used to add the pinctrl setting of the new sgpio. Signed-off-by: Billy Tsai --- arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi | 5 drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c | 30 +++--- 2 files

[GIT PULL] Crypto Update for 5.10

2020-10-11 Thread Herbert Xu
Hi Linus: API: - Allow DRBG testing through user-space af_alg. - Add tcrypt speed testing support for keyed hashes. - Add type-safe init/exit hooks for ahash. Algorithms: - Mark arc4 as obsolete and pending for future removal. - Mark anubis, khazad, sead and tea as obsolete. - Improve

Re: [PATCH] x86: Fix x32 System V message queue syscalls

2020-10-11 Thread Jessica Clarke
On 12 Oct 2020, at 04:02, Andy Lutomirski wrote: > On Sun, Oct 11, 2020 at 6:48 PM Jessica Clarke wrote: >> >> POSIX specifies that the first field of the supplied msgp, namely mtype, >> is a long, not a __kernel_long_t, and it's a user-defined struct due to >> the variable-length mtext field

Re: [PATCH V4 2/3] arm64/mm/hotplug: Enable MEM_OFFLINE event handling

2020-10-11 Thread Gavin Shan
Hi Anshuman, On 10/6/20 1:59 PM, Anshuman Khandual wrote: On 10/01/2020 05:27 AM, Gavin Shan wrote: On 9/29/20 11:54 PM, Anshuman Khandual wrote: This enables MEM_OFFLINE memory event handling. It will help intercept any possible error condition such as if boot memory some how still got

[git pull] vfs.git mount compat series

2020-10-11 Thread Al Viro
The last remnants of mount(2) compat buried. Buried into NFS, that is; generally I'm less enthusiastic about "let's use in_compat_syscall() deep in call chain" kind of approach than Christoph seems to be, but in this case it's warranted - that crap had been an NFS-specific wart, hopefully

Re: [PATCH v2] kbuild: enforce -Werror=return-type

2020-10-11 Thread Masahiro Yamada
On Mon, Oct 12, 2020 at 3:54 AM Olaf Hering wrote: > > Catch errors which at least gcc tolerates by default: > warning: 'return' with no value, in function returning non-void > [-Wreturn-type] Applied to linux-kbuild. Thanks. > Signed-off-by: Olaf Hering > --- > Makefile | 2 +- > 1 file

Re: [PATCH v7 2/2] soc: mediatek: add mt6779 devapc driver

2020-10-11 Thread Neal Liu
On Fri, 2020-10-09 at 14:34 +0200, Matthias Brugger wrote: > > On 08/10/2020 11:39, Neal Liu wrote: > > On Thu, 2020-10-08 at 10:45 +0200, Matthias Brugger wrote: > >> > >> On 08/10/2020 04:35, Neal Liu wrote: > >>> On Wed, 2020-10-07 at 12:44 +0200, Matthias Brugger wrote: > > On

Re: kernel BUG at fs/reiserfs/prints.c:LINE!

2020-10-11 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:3dd0130f Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1107d07850 kernel config: https://syzkaller.appspot.com/x/.config?x=c06bcf3cc963d91c

[git pull] vfs.git quota compat series

2020-10-11 Thread Al Viro
More Christoph's compat cleanups: quotactl(2). The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.quota-compat

Re: [PATCH v3] i2c: virtio: add a virtio i2c frontend driver

2020-10-11 Thread Jie Deng
On 2020/10/8 22:01, Wolfram Sang wrote: Hi, some super high level questions: different controllers according to their needs. A backend example can be found in the device model of the open source project ACRN. For more information, please refer to https://projectacrn.org. Could you provide

[git pull] vfs.git iov_iter series

2020-10-11 Thread Al Viro
Christoph's series around import_iovec() and compat variant thereof. The following changes since commit d012a7190fc1fd72ed48911e77ca97ba4521bccd: Linux 5.9-rc2 (2020-08-23 14:08:43 -0700) are available in the git repository at:

[git pull] vfs.git csum_and_copy stuff

2020-10-11 Thread Al Viro
Saner calling conventions for csum_and_copy_..._user() and friends. Sat in -next for two cycles now... The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the git repository at:

Re: [tip: locking/core] lockdep: Fix lockdep recursion

2020-10-11 Thread Boqun Feng
Hi, On Fri, Oct 09, 2020 at 09:41:24AM -0400, Qian Cai wrote: > On Fri, 2020-10-09 at 07:58 +, tip-bot2 for Peter Zijlstra wrote: > > The following commit has been merged into the locking/core branch of tip: > > > > Commit-ID: 4d004099a668c41522242aa146a38cc4eb59cb1e > > Gitweb:

Re: [PATCH] x86: Fix x32 System V message queue syscalls

2020-10-11 Thread Andy Lutomirski
On Sun, Oct 11, 2020 at 6:48 PM Jessica Clarke wrote: > > POSIX specifies that the first field of the supplied msgp, namely mtype, > is a long, not a __kernel_long_t, and it's a user-defined struct due to > the variable-length mtext field so we can't even bend the spec and make > it a

[PATCH V6] kthread: Add debugobject support

2020-10-11 Thread Qianli Zhao
From: Qianli Zhao kthread_work is not covered by debug objects, but the same problems as with regular work objects apply. Some of the issues like reinitialization of an active kthread_work are hard to debug because the problem manifests itself later in a completely different context. Add

Re: [PATCH v3] arm64/mm: add fallback option to allocate virtually contiguous memory

2020-10-11 Thread Gavin Shan
On 10/6/20 2:36 PM, Anshuman Khandual wrote: On 10/02/2020 01:46 AM, Sudarshan Rajagopalan wrote: When section mappings are enabled, we allocate vmemmap pages from physically continuous memory of size PMD_SIZE using vmemmap_alloc_block_buf(). Section mappings are good to reduce TLB pressure.

[PATCH] x86/syscalls: Document the fact that syscalls 512-547 are a legacy mistake

2020-10-11 Thread Andy Lutomirski
Since commit 6365b842aae4 ("x86/syscalls: Split the x32 syscalls into their own table"), there is no need for special x32-specific syscall numbers. I forgot to update the comments in syscall_64.tbl. Add comments to make it clear to future contributors that this range is a legacy wart.

[PATCH] HSI: omap_ssi: Don't jump to free ID in ssi_add_controller()

2020-10-11 Thread Jing Xiangfeng
In current code, it jumps to ida_simple_remove() when ida_simple_get() failes to allocate an ID. Just return to fix it. Fixes: 0fae198988b8 ("HSI: omap_ssi: built omap_ssi and omap_ssi_port into one module") Signed-off-by: Jing Xiangfeng --- drivers/hsi/controllers/omap_ssi_core.c | 2 +- 1

Re: [PATCH v9 1/6] fpga: dfl: fix the definitions of type & feature_id for dfl devices

2020-10-11 Thread Xu Yilun
On Sat, Oct 10, 2020 at 08:07:07AM -0700, Tom Rix wrote: > > On 10/10/20 12:09 AM, Xu Yilun wrote: > > The value of the field dfl_device.type comes from the 12 bits register > > field DFH_ID according to DFL spec. So this patch changes the definition > > of the type field to u16. > > > > Also it

linux-next: manual merge of the net-next tree with the net tree

2020-10-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/mptcp/protocol.h between commit: d582484726c4 ("mptcp: fix fallback for MP_JOIN subflows") from the net tree and commit: d0876b2284cf ("mptcp: add the incoming RM_ADDR support") from the net-next tree. I

[PATCH v5 1/4] dt-bindings: mmc: Convert mtk-sd to json-schema

2020-10-11 Thread Wenbin Mei
Convert the mtk-sd binding to DT schema format using json-schema. Signed-off-by: Wenbin Mei --- .../devicetree/bindings/mmc/mtk-sd.txt| 75 .../devicetree/bindings/mmc/mtk-sd.yaml | 163 ++ 2 files changed, 163 insertions(+), 75 deletions(-) delete mode

[PATCH v5 3/4] arm64: dts: mt8192: add mmc device node

2020-10-11 Thread Wenbin Mei
This commit adds mmc device node for mt8192 Signed-off-by: Wenbin Mei --- arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 89 + arch/arm64/boot/dts/mediatek/mt8192.dtsi| 34 2 files changed, 123 insertions(+) diff --git

[PATCH v5 4/4] mmc: mediatek: Add subsys clock control for MT8192 msdc

2020-10-11 Thread Wenbin Mei
MT8192 msdc is an independent sub system, we need control more bus clocks for it. Add support for the additional subsys clocks to allow it to be configured appropriately. Signed-off-by: Wenbin Mei --- drivers/mmc/host/mtk-sd.c | 74 +-- 1 file changed, 56

[PATCH v5 2/4] mmc: dt-bindings: add support for MT8192 SoC

2020-10-11 Thread Wenbin Mei
MT8192 mmc host ip is compatible with MT8183. Add support for this. Signed-off-by: Wenbin Mei --- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml

[PATCH v5 0/4] Add mmc support for MT8192 SoC

2020-10-11 Thread Wenbin Mei
Change in v5: 1)remove Reviewed-by tag 2)use devm_clk_bulk_get_optional instead of devm_clk_get_optional for bulk clks Change in v4: 1)drop "vmmc" and "vqmmc" desciption in mtk-sd.yaml 2)add vmmq/vqmmc supplies and the pinctrls to required properties 3)change dbg level and exit this function

Re: [PATCH v3 0/2] Add support for ACPI device in RMRR

2020-10-11 Thread Lu Baolu
Hi Felix, On 10/10/20 4:02 PM, FelixCuioc wrote: BIOS allocate reserved memory ranges that may be DMA targets. BIOS may report each such reserved memory region through the RMRR structures,along with the devices that requires access to the specified reserved memory region. The purpose of this

Re: [PATCH v9 4/6] fpga: dfl: move dfl bus related APIs to include/linux/fpga/dfl.h

2020-10-11 Thread Xu Yilun
On Sun, Oct 11, 2020 at 04:45:22PM +0200, Greg KH wrote: > On Sat, Oct 10, 2020 at 03:09:51PM +0800, Xu Yilun wrote: > > Now the dfl drivers could be made as independent modules and put in > > different folders according to their functionalities. In order for > > scattered dfl device drivers to

  1   2   3   4   5   >