Re: [PATCH] drm/exynos: fix ref count leak in mic_pre_enable

2020-06-14 Thread Navid Emamdoost
On Sun, Jun 14, 2020 at 7:47 PM Inki Dae wrote: > > Hi, > > 20. 6. 14. 오후 3:23에 Navid Emamdoost 이(가) 쓴 글: > > in mic_pre_enable, pm_runtime_get_sync is called which > > increments the counter even in case of failure, leading to incorrect > > ref count. In case of failure, decrement the ref count

[PATCH v2] drm/exynos: fix ref count leak in mic_pre_enable

2020-06-14 Thread Navid Emamdoost
in mic_pre_enable, pm_runtime_get_sync is called which increments the counter even in case of failure, leading to incorrect ref count. In case of failure, decrement the ref count before returning. Signed-off-by: Navid Emamdoost --- Changes in v2: - reuse the unlock label and call

[PATCH 1/2] media: atomisp: fix identation at I2C Kconfig menu

2020-06-14 Thread Mauro Carvalho Chehab
There are several bad whitespacing usage there. Remove them. While here, place all Kconfig options for sensors at the same place. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/atomisp/i2c/Kconfig | 74 +++ .../staging/media/atomisp/i2c/ov5693/Kconfig | 12

[PATCH 2/2] media: atomisp: fix help message for ISP2401 selection

2020-06-14 Thread Mauro Carvalho Chehab
I'm pretty sure I named this right, but it sounds that I ended doing something weird maybe while solving some conflict. So, fix the title of this config var. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/atomisp/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

RE: [PATCH 0/3] Convert nsproxy, groups, and creds to refcount_t

2020-06-14 Thread Reshetova, Elena
> On Mon, Jun 15, 2020 at 10:10:08AM +0800, Xiaoming Ni wrote: > > On 2020/6/13 2:34, Kees Cook wrote: > > > This series was never applied[1], and was recently pointed out as > > > missing[2]. If someone has a tree for this, please take it. Otherwise, > > > please Ack and I'll send it to Linus. >

Re: [PATCH 2/2] media: atomisp: replace old ---help--- tags by just help

2020-06-14 Thread Joe Perches
On Mon, 2020-06-15 at 07:22 +0200, Mauro Carvalho Chehab wrote: > Em Mon, 15 Jun 2020 07:18:34 +0200 > Mauro Carvalho Chehab escreveu: > > > There are several places on this file using the deprecated > > ---help--- tag. > > > > Replaces them. > > Just ignore it. A treewide patch already

Re: [PATCH 0/2] PUD/PGDIR entries for linear mapping

2020-06-14 Thread Alex Ghiti
Hi Atish, Le 6/12/20 à 1:43 PM, Atish Patra a écrit : On Fri, Jun 12, 2020 at 6:17 AM Alex Ghiti wrote: Le 6/12/20 à 8:59 AM, Alex Ghiti a écrit : Hi Atish, Le 6/11/20 à 1:29 PM, Atish Patra a écrit : On Wed, Jun 10, 2020 at 11:51 PM Alex Ghiti wrote: Hi Atish, Le 6/10/20 à 2:32 PM,

Re: [PATCH v2 1/9] irqchip/sun6i-r: Use a stacked irqchip driver

2020-06-14 Thread Samuel Holland
On 6/8/20 3:48 AM, Maxime Ripard wrote: > On Sun, May 24, 2020 at 11:12:54PM -0500, Samuel Holland wrote: >> The R_INTC in the A31 and newer sun8i/sun50i SoCs is more similar to the >> original sun4i interrupt controller than the sun7i/sun9i NMI controller. >> It is used for two distinct purposes:

Re: [PATCH 2/2] media: atomisp: replace old ---help--- tags by just help

2020-06-14 Thread Mauro Carvalho Chehab
Em Mon, 15 Jun 2020 07:18:34 +0200 Mauro Carvalho Chehab escreveu: > There are several places on this file using the deprecated > ---help--- tag. > > Replaces them. Just ignore it. A treewide patch already changed it: a7f7f6248d97 ("treewide: replace '---help---' in Kconfig files

Re: [GIT PULL] SafeSetID LSM changes for v5.8

2020-06-14 Thread James Morris
On Sun, 14 Jun 2020, Micah Morton wrote: > This patch was sent to the security mailing list and there were no objections. Standard practice for new or modified LSM hooks is that they are reviewed and acked by maintainers of major LSMs (SELinux, AppArmor, and Smack, at least). "No objections"

Re: [PATCH 1/2] media: cec: don't use the deprecated help tag

2020-06-14 Thread Mauro Carvalho Chehab
Em Mon, 15 Jun 2020 07:18:33 +0200 Mauro Carvalho Chehab escreveu: > According with changeset 3e1ad4054b8d ("doc: don't use deprecated > "---help---" markers in target docs"), > We want to get rid of the old ---help--- tag. > > There's just the cec/Kconfig file under drivers/media using it. >

Re: [PATCH v7 01/13] tools/libperf: introduce notion of static polled file descriptors

2020-06-14 Thread Alexey Budankov
On 08.06.2020 19:07, Jiri Olsa wrote: > On Mon, Jun 08, 2020 at 12:54:31PM +0300, Alexey Budankov wrote: >> >> On 08.06.2020 11:43, Jiri Olsa wrote: >>> On Mon, Jun 08, 2020 at 11:08:56AM +0300, Alexey Budankov wrote: On 05.06.2020 19:15, Alexey Budankov wrote: > > On

[PATCH 1/2] media: cec: don't use the deprecated help tag

2020-06-14 Thread Mauro Carvalho Chehab
According with changeset 3e1ad4054b8d ("doc: don't use deprecated "---help---" markers in target docs"), We want to get rid of the old ---help--- tag. There's just the cec/Kconfig file under drivers/media using it. Replace it. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH 2/2] media: atomisp: replace old ---help--- tags by just help

2020-06-14 Thread Mauro Carvalho Chehab
There are several places on this file using the deprecated ---help--- tag. Replaces them. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/atomisp/i2c/Kconfig| 14 +++--- drivers/staging/media/atomisp/i2c/ov5693/Kconfig | 14 +++--- 2 files changed, 14

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

2020-06-14 Thread Jiri Slaby
On 13. 06. 20, 14:51, Xiyu Yang wrote: > uart_shutdown() invokes uart_port_lock(), which returns a reference of > the uart_port object if increases the refcount of the uart_state object > successfully or returns NULL if fails. > > However, uart_shutdown() don't take the return value of

[PATCH] drm/i915: remove unnecessary conversion to bool

2020-06-14 Thread Bernard Zhao
In function perform_bb_shadow, bb->ppgtt is bool, so maybe there is no need to convert the bool condition to bool. This change is to make the code a bit readable. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/i915/gvt/cmd_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v4 0/2] Recommend denylist/allowlist instead of blacklist/whitelist

2020-06-14 Thread Jiri Slaby
On 14. 06. 20, 23:29, Pavel Machek wrote: >> I agree you have to draw the line somewhere, there will always be >> someone somewhere that's offended by something. But this seems like a >> pretty easy case. Yes, hence I left up to the minority and/or the touched culture. >> It's not like blacklist

fastpath_t? __no_kcsan? Both?

2020-06-14 Thread Paul E. McKenney
Hello! I get the following conflict when rebasing 39a8c47635b0 ("kvm/svm: Disable KCSAN for svm_vcpu_run()") onto v5.8-rc1: <<< 6c410247efb2d3907b508a2448ab9ab1c86d938c static fastpath_t svm_vcpu_run(struct kvm_vcpu *vcpu) === static __no_kcsan void svm_vcpu_run(struct kvm_vcpu *vcpu)

Re: [PATCH] Documentation: fix filesystems/locking.rst malformed table warnings

2020-06-14 Thread Michel Lespinasse
On Sun, Jun 14, 2020 at 8:22 PM Randy Dunlap wrote: > From: Randy Dunlap > > Fix Sphinx malformed table warnings in filesystems/locking.rst: > > lnx-58-rc1/Documentation/filesystems/locking.rst:443: WARNING: Malformed > table. > Text in column margin in table line 8. > >

[PATCH] Documentation: fix sysctl/kernel.rst heading format warnings

2020-06-14 Thread Randy Dunlap
From: Randy Dunlap Fix heading format warnings in admin-guide/sysctl/kernel.rst: Documentation/admin-guide/sysctl/kernel.rst:339: WARNING: Title underline too short. hung_task_all_cpu_backtrace: Documentation/admin-guide/sysctl/kernel.rst:650: WARNING: Title underline too

[PATCH 1/5] spi: bcm-qspi: Add support for setting BSPI clock

2020-06-14 Thread Mark Tomlinson
On iProc devices (unlike previous BCM SoCs) the clock rate of the SPI can be set. This patch adds the appropriate code for setting that. Reviewed-by: Callum Sinclair Reviewed-by: Chris Packham Signed-off-by: Mark Tomlinson --- drivers/spi/spi-bcm-qspi.c | 34 ++

[PATCH 4/5] spi: bcm-qspi: Make multiple data blocks interrupt-driven

2020-06-14 Thread Mark Tomlinson
When needing to send/receive data in small chunks, make this interrupt driven rather than waiting for a completion event for each small section of data. Reviewed-by: Callum Sinclair Reviewed-by: Chris Packham Signed-off-by: Mark Tomlinson --- drivers/spi/spi-bcm-qspi.c | 44

[PATCH 2/5] spi: bcm-qspi: Improve debug reading SPI data

2020-06-14 Thread Mark Tomlinson
This patch prevents device debug when data is not read from hardware (i.e. when there is no receive buffer). Reviewed-by: Callum Sinclair Reviewed-by: Chris Packham Signed-off-by: Mark Tomlinson --- drivers/spi/spi-bcm-qspi.c | 31 --- 1 file changed, 16

[PATCH 0/5] Improvements to spi-bcm-qspi

2020-06-14 Thread Mark Tomlinson
This series of patches came from a single large Broadcom patch that implements drivers for a number of their integrated switch chips. Mostly this is just splitting the qspi driver into smaller parts and doesn't include much original from me. Mark Tomlinson (5): spi: bcm-qspi: Add support for

[PATCH 3/5] spi: bcm-qspi: Do not split transfers into small chunks

2020-06-14 Thread Mark Tomlinson
Instead of splitting transfers into smaller parts, just perform the operation that the higher level asked for. Reviewed-by: Callum Sinclair Reviewed-by: Chris Packham Signed-off-by: Mark Tomlinson --- drivers/spi/spi-bcm-qspi.c | 69 +++--- 1 file changed, 27

[PATCH 5/5] spi: bcm-qspi: Improve interrupt handling

2020-06-14 Thread Mark Tomlinson
Acknowledge interrupts correctly and add support for fifo-full interrupt, distinguishing it from the done interrupt. Reviewed-by: Callum Sinclair Reviewed-by: Chris Packham Signed-off-by: Mark Tomlinson --- drivers/spi/spi-bcm-qspi.c | 11 ++- drivers/spi/spi-bcm-qspi.h | 5 - 2

[PATCH] ata: Eliminate usage of uninitialized_var() macro

2020-06-14 Thread Jason Yan
This is an effort to eliminate the uninitialized_var() macro[1]. The use of this macro is the wrong solution because it forces off ANY analysis by the compiler for a given variable. It even masks "unused variable" warnings. Quoted from Linus[2]: "It's a horrible thing to use, in that it adds

[PATCH] f2fs: Eliminate usage of uninitialized_var() macro

2020-06-14 Thread Jason Yan
This is an effort to eliminate the uninitialized_var() macro[1]. The use of this macro is the wrong solution because it forces off ANY analysis by the compiler for a given variable. It even masks "unused variable" warnings. Quoted from Linus[2]: "It's a horrible thing to use, in that it adds

[PATCH] erofs: Eliminate usage of uninitialized_var() macro

2020-06-14 Thread Jason Yan
This is an effort to eliminate the uninitialized_var() macro[1]. The use of this macro is the wrong solution because it forces off ANY analysis by the compiler for a given variable. It even masks "unused variable" warnings. Quoted from Linus[2]: "It's a horrible thing to use, in that it adds

[PATCH] ACPI: Eliminate usage of uninitialized_var() macro

2020-06-14 Thread Jason Yan
This is an effort to eliminate the uninitialized_var() macro[1]. The use of this macro is the wrong solution because it forces off ANY analysis by the compiler for a given variable. It even masks "unused variable" warnings. Quoted from Linus[2]: "It's a horrible thing to use, in that it adds

[PATCH] block: Eliminate usage of uninitialized_var() macro

2020-06-14 Thread Jason Yan
This is an effort to eliminate the uninitialized_var() macro[1]. The use of this macro is the wrong solution because it forces off ANY analysis by the compiler for a given variable. It even masks "unused variable" warnings. Quoted from Linus[2]: "It's a horrible thing to use, in that it adds

Re: [PATCH 0/3] Convert nsproxy, groups, and creds to refcount_t

2020-06-14 Thread Kees Cook
On Mon, Jun 15, 2020 at 10:10:08AM +0800, Xiaoming Ni wrote: > On 2020/6/13 2:34, Kees Cook wrote: > > This series was never applied[1], and was recently pointed out as > > missing[2]. If someone has a tree for this, please take it. Otherwise, > > please Ack and I'll send it to Linus. > > > >

Re: [PATCH 04/21] mm: free_area_init: use maximal zone PFNs rather than zone sizes

2020-06-14 Thread Greg Ungerer
Hi Mike, From: Mike Rapoport Currently, architectures that use free_area_init() to initialize memory map and node and zone structures need to calculate zone and hole sizes. We can use free_area_init_nodes() instead and let it detect the zone boundaries while the architectures will only have to

[PATCH] certs/blacklist_hashes.c: Use __initconst for const init definition

2020-06-14 Thread Xingxing Su
Fix the following checkpatch error: ERROR: Use of const init definition must use __initconst #4: FILE: certs/blacklist_hashes.c:4: +const char __initdata *const blacklist_hashes[] = { Signed-off-by: Xingxing Su --- certs/blacklist_hashes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] mfd: sprd: get subdevices from DT instead for SC27XX SPI

2020-06-14 Thread Chunyan Zhang
From: Chunyan Zhang SC27XX-SPI added subdevices according to a pre-defined mfd_cell array, no matter these devices were really included on board. So with this patch we switch to a new way of detecting subdevices which are defined in the devicetree. Signed-off-by: Chunyan Zhang ---

[Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES

2020-06-14 Thread Koba Ko
hi All, I have a machine and there's only intel gpu. the secureboot and vt-d is enabled in BIOS. On the Ubuntu desktop, I do s2idle first and restart the machine. The machine can't restart successfully, so I need to press the power button to shutdown. I tried each of the following and the issue

[PATCH] : fix kernel-doc notation & warning

2020-06-14 Thread Randy Dunlap
From: Randy Dunlap Fix a kernel-doc warning due to missing a beginning '*' on the comment line. ../include/linux/rculist.h:515: warning: bad line: [@right ][node2 ... ] Fixes: 35fc0e3b0bd5 ("rculist: Add hlists_swap_heads_rcu") Signed-off-by: Randy Dunlap Cc: Eric

[PATCH V3 4/4] Documentation/mm: Add descriptions for arch page table helpers

2020-06-14 Thread Anshuman Khandual
This adds a specific description file for all arch page table helpers which is in sync with the semantics being tested via CONFIG_DEBUG_VM_PGTABLE. All future changes either to these descriptions here or the debug test should always remain in sync. Cc: Jonathan Corbet Cc: Andrew Morton Cc: Mike

[PATCH V3 0/4] mm/debug_vm_pgtable: Add some more tests

2020-06-14 Thread Anshuman Khandual
This series adds some more arch page table helper validation tests which are related to core and advanced memory functions. This also creates a documentation, enlisting expected semantics for all page table helpers as suggested by Mike Rapoport previously (https://lkml.org/lkml/2020/1/30/40).

[PATCH v2] crypto: hisilicon - fix strncpy warning with strscpy

2020-06-14 Thread Zhangfei Gao
Use strscpy to fix the warning warning: 'strncpy' specified bound 64 equals destination size Reported-by: kernel test robot Signed-off-by: Zhangfei Gao --- v2: Use strscpy instead of strlcpy since better truncation handling suggested by Herbert Rebase to 5.8-rc1

[PATCH V3 2/4] mm/debug_vm_pgtable: Add tests validating advanced arch page table helpers

2020-06-14 Thread Anshuman Khandual
This adds new tests validating for these following arch advanced page table helpers. These tests create and test specific mapping types at various page table levels. 1. pxxp_set_wrprotect() 2. pxxp_get_and_clear() 3. pxxp_set_access_flags() 4. pxxp_get_and_clear_full() 5.

[PATCH V3 3/4] mm/debug_vm_pgtable: Add debug prints for individual tests

2020-06-14 Thread Anshuman Khandual
This adds debug print information that enlists all tests getting executed on a given platform. With dynamic debug enabled, the following information will be splashed during boot. For compactness purpose, dropped both time stamp and prefix (i.e debug_vm_pgtable) from this sample output.

[PATCH V3 1/4] mm/debug_vm_pgtable: Add tests validating arch helpers for core MM features

2020-06-14 Thread Anshuman Khandual
This adds new tests validating arch page table helpers for these following core memory features. These tests create and test specific mapping types at various page table levels. 1. SPECIAL mapping 2. PROTNONE mapping 3. DEVMAP mapping 4. SOFTDIRTY mapping 5. SWAP mapping 6. MIGRATION mapping 7.

[PATCH] Documentation: fix malformed table in filesystems/proc.rst

2020-06-14 Thread Randy Dunlap
From: Randy Dunlap Fix malformed table in "proc.rst" by dropping a needless hyphen ('-'). Documentation/filesystems/proc.rst:548: WARNING: Malformed table. Text in column margin in table line 29. Fixes: 424037b77519 ("mm: smaps: Report arm64 guarded pages in smaps") Signed-off-by: Randy Dunlap

Re: [LKP] [btrfs] c75e839414: aim7.jobs-per-min -9.1% regression

2020-06-14 Thread Xing Zhengjun
Hi Josef, Do you have time to take a look at this? Thanks. On 6/12/2020 2:11 PM, kernel test robot wrote: Greeting, FYI, we noticed a -9.1% regression of aim7.jobs-per-min due to commit: commit: c75e839414d3610e6487ae3145199c500d55f7f7 ("btrfs: kill the subvol_srcu")

[PATCH] dlm: Fix kobject memleak

2020-06-14 Thread Wang Hai
Currently the error return path from kobject_init_and_add() is not followed by a call to kobject_put() - which means we are leaking the kobject. Set do_unreg = 1 before kobject_init_and_add() to ensure that kobject_put() can be called in its error patch. Fixes: 901195ed7f4b ("Kobject: change

[PATCH] nvmem: sc27xx: add sc2730 efuse support

2020-06-14 Thread Chunyan Zhang
From: Freeman Liu Add support to the new efuse IP which is integrated in the SC2730 which includes multiple blocks in a single chip. Signed-off-by: Freeman Liu Signed-off-by: Chunyan Zhang --- drivers/nvmem/sc27xx-efuse.c | 34 +++--- 1 file changed, 31

[PATCH] Documentation: fix filesystems/locking.rst malformed table warnings

2020-06-14 Thread Randy Dunlap
From: Randy Dunlap Fix Sphinx malformed table warnings in filesystems/locking.rst: lnx-58-rc1/Documentation/filesystems/locking.rst:443: WARNING: Malformed table. Text in column margin in table line 8. lnx-58-rc1/Documentation/filesystems/locking.rst:620: WARNING: Malformed table. Text in

Re: [PATCH] s390: protvirt: virtio: Refuse device without IOMMU

2020-06-14 Thread Jason Wang
On 2020/6/12 下午7:38, Pierre Morel wrote: On 2020-06-12 11:21, Pierre Morel wrote: On 2020-06-11 05:10, Jason Wang wrote: On 2020/6/10 下午9:11, Pierre Morel wrote: Protected Virtualisation protects the memory of the guest and do not allow a the host to access all of its memory. Let's

RE: [PATCH] exfat: remove EXFAT_SB_DIRTY flag

2020-06-14 Thread Sungjong Seo
> On 2020/06/12 17:34, Sungjong Seo wrote: > >> remove EXFAT_SB_DIRTY flag and related codes. > >> > >> This flag is set/reset in exfat_put_super()/exfat_sync_fs() to avoid > >> sync_blockdev(). > >> However ... > >> - exfat_put_super(): > >> Before calling this, the VFS has already called

[PATCH] Documentation: remove SH-5 index entries

2020-06-14 Thread Randy Dunlap
From: Randy Dunlap Remove SH-5 documentation index entries following the removal of SH-5 source code. Error: Cannot open file ../arch/sh/mm/tlb-sh5.c Error: Cannot open file ../arch/sh/mm/tlb-sh5.c Error: Cannot open file ../arch/sh/include/asm/tlb_64.h Error: Cannot open file

RE: [PATCH 1/2] exfat: call sync_filesystem for read-only remount

2020-06-14 Thread Namjae Jeon
> Hi Namjae, > > 2020년 6월 15일 (월) 오전 9:14, Namjae Jeon 님이 작성: > > > > Hi Hyunchul, > > > We need to commit dirty metadata and pages to disk before remounting > > > exfat as read-only. > > > > > > This fixes a failure in xfstests generic/452 > > Could you please elaborate more the reason why

RE: [EXT] [PATCH] i2c: busses: Fix a reference count leak.

2020-06-14 Thread Andy Duan
From: wu000...@umn.edu Sent: Sunday, June 14, 2020 6:12 AM > From: Qiushi Wu > > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus call pm_runtime_put_noidle() if > pm_runtime_get_sync() fails. > > Fixes: 13d6eb20fc79 ("i2c: imx-lpi2c: add

Re: [PATCH 2/2] soc: mediatek: devapc: add devapc-mt6873 driver

2020-06-14 Thread Neal Liu
Hi Chun-Kuang, On Sun, 2020-06-14 at 11:26 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年6月9日 週二 下午6:25寫道: > > > > MT6873 bus frabric provides TrustZone security support and data > > protection to prevent slaves from being accessed by unexpected > > masters. > > The security

Re: [PATCH RFC v6 02/11] vhost: use batched get_vq_desc version

2020-06-14 Thread Jason Wang
On 2020/6/11 下午5:06, Michael S. Tsirkin wrote: On Thu, Jun 11, 2020 at 11:02:57AM +0800, Jason Wang wrote: On 2020/6/10 下午7:05, Michael S. Tsirkin wrote: +EXPORT_SYMBOL_GPL(vhost_get_vq_desc); /* Reverse the effect of vhost_get_vq_desc. Useful for error handling. */ void

RE: [PATCH v9 0/5] Add MMC software queue support

2020-06-14 Thread BOUGH CHEN
> -Original Message- > From: Baolin Wang [mailto:baolin.wa...@gmail.com] > Sent: 2020年6月15日 7:26 > To: BOUGH CHEN > Cc: Ulf Hansson ; Adrian Hunter > ; Asutosh Das ; Orson > Zhai ; Chunyan Zhang ; Arnd > Bergmann ; Linus Walleij ; Baolin > Wang ; linux-...@vger.kernel.org; Linux Kernel >

Re: [PATCH v2] tools build: Check libasan and libubsan in Makefile.feature

2020-06-14 Thread Tiezhu Yang
On 06/03/2020 07:32 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Jun 03, 2020 at 02:10:04PM +0800, Tiezhu Yang escreveu: When build perf with ASan or UBSan, if libasan or libubsan can not find, the feature-glibc is 0 and there exists the following error log which is wrong, because we can find

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

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

Re: [PATCH 2/2] soc: mediatek: devapc: add devapc-mt6873 driver

2020-06-14 Thread Neal Liu
Hi Chun-Kuang, On Fri, 2020-06-12 at 23:27 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年6月12日 週五 上午11:04寫道: > > > > Hi Chun-Kuang, > > > > [snip] > > > > > > +/* > > > > > > + * devapc_violation_irq - the devapc Interrupt Service Routine > > > > > > (ISR) will dump > > > > > >

Re: [PATCH 2/2] exfat: allow to change some mount options for remount

2020-06-14 Thread Hyunchul Lee
2020년 6월 15일 (월) 오전 9:18, Namjae Jeon 님이 작성: > > > Allow to change permission masks, allow_utime, errors. But ignore other > > options. > > > > Signed-off-by: Hyunchul Lee > > --- > > fs/exfat/super.c | 40 +--- > > 1 file changed, 29 insertions(+), 11

Re: [PATCH 1/2] exfat: call sync_filesystem for read-only remount

2020-06-14 Thread Hyunchul Lee
Hi Namjae, 2020년 6월 15일 (월) 오전 9:14, Namjae Jeon 님이 작성: > > Hi Hyunchul, > > We need to commit dirty metadata and pages to disk before remounting exfat > > as read-only. > > > > This fixes a failure in xfstests generic/452 > Could you please elaborate more the reason why generic/452 in xfstests

Re: [PATCH 0/3] Convert nsproxy, groups, and creds to refcount_t

2020-06-14 Thread Xiaoming Ni
On 2020/6/13 2:34, Kees Cook wrote: This series was never applied[1], and was recently pointed out as missing[2]. If someone has a tree for this, please take it. Otherwise, please Ack and I'll send it to Linus. Thanks! -Kees [1]

Re: [RFC PATCH 11/13] sched: migration changes for core scheduling

2020-06-14 Thread Li, Aubrey
On 2020/6/14 2:59, Vineeth Remanan Pillai wrote: > On Fri, Jun 12, 2020 at 10:25 PM Joel Fernandes > wrote: >> >> Ok, so I take it that you will make it so in v6 then, unless of course >> someone else objects. >> > Yes, just wanted to hear from Aubrey, Tim and others as well to see > if we have

Re: [PATCH 3/3] creds: convert cred.usage to refcount_t

2020-06-14 Thread Xiaoming Ni
On 2020/6/13 2:34, Kees Cook wrote: From: Elena Reshetova atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero,

linux-next: stats (Was: Linux 5.8-rc1)

2020-06-14 Thread Stephen Rothwell
Hi all, On Sun, 14 Jun 2020 13:44:07 -0700 Linus Torvalds wrote: > > So I didn't really expect this, but 5.8 looks to be one of our biggest > releases of all time. This was the second largest linux-next (and may have been the largest if June 1 had not been a pubic holiday here). As usual, the

Re: [PATCH] [traceevent] add_new_comm(): Fix memory leak

2020-06-14 Thread Steven Rostedt
On Sun, 14 Jun 2020 14:14:53 -0400 Gaurav Singh wrote: > The pointer cmdlines need to be explicity freed in case the > realloc() fails. Fix it by adding a free() if realloc() > returns a NULL pointer. > > Signed-off-by: Gaurav Singh > --- > tools/lib/traceevent/event-parse.c | 7 --- > 1

linux-next: Tree for Jun 15

2020-06-14 Thread Stephen Rothwell
Hi all, Changes since 20200614: My fixes tree contains: 4cb4bfffe2c1 ("device_cgroup: Fix RCU list debugging warning") Non-merge commits (relative to Linus' tree): 735 684 files changed, 227582 insertions(+), 10053

Re: [PATCH 2/2] usb: dwc3: Host wake up support from system suspend

2020-06-14 Thread Peter Chen
On 20-06-11 19:58:03, Sandeep Maheswaram wrote: > Avoiding phy powerdown in host mode so that it can be wake up by devices. > Set usb controller wakeup capable when wakeup capable devices are > connected to the host. > > Signed-off-by: Sandeep Maheswaram > --- > drivers/usb/dwc3/core.c |

Re: [PATCH v2] Staging: rtl8712: Addressed checkpatch.pl issues related to macro parameter wrapping in parentheses.

2020-06-14 Thread kernel test robot
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git af7b4801030c07637840191c69eb666917e4135d config: arm-randconfig-r025-20200614 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com

Re: [PATCH v2] powerpc/powernv/pci: use ifdef to avoid dead code

2020-06-14 Thread Oliver O'Halloran
On Mon, Jun 15, 2020 at 9:33 AM Greg Thelen wrote: > > Commit dc3d8f85bb57 ("powerpc/powernv/pci: Re-work bus PE > configuration") removed a couple pnv_ioda_setup_bus_dma() calls. The > only remaining calls are behind CONFIG_IOMMU_API. Thus builds without > CONFIG_IOMMU_API see: >

[PATCH next v3 0/2] fix potential memleak in perf events parser

2020-06-14 Thread Chen Wandun
fix some memleaks in parse_events_term__sym_hw and parse_events_term__clone. ls/perf v1 ==> v2 1. split into two patches 2. add jump targets common exception handling 3. add Fixes tag v2 ==> v3 add more commit log. Chen Wandun (1): perf tools: fix potential memleak in perf events parser

[PATCH next v3 2/2] perf tools: fix potential memleak in perf events parser

2020-06-14 Thread Chen Wandun
Fix potential memory leak. Function new_term may return error, so it is need to free memory when the return value is negative. What's more, add jump targets so that a configuration object and a duplicated string are released after a call of the function "strdup" or "new_term" failed. Fixes:

[PATCH next v3 1/2] perf tools: fix potential memleak in perf events parser

2020-06-14 Thread Chen Wandun
From: Cheng Jian Fix memory leak of in function parse_events_term__sym_hw() and parse_events_term__clone() when string duplication failed. Fixes: b6645a723595 ("perf parse: Ensure config and str in terms are unique") Signed-off-by: Cheng Jian Signed-off-by: Chen Wandun ---

RE: [PATCH v2 02/15] iommu: Report domain nesting info

2020-06-14 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Friday, June 12, 2020 5:05 PM > > Hi Alex, > > > From: Alex Williamson > > Sent: Friday, June 12, 2020 3:30 AM > > > > On Thu, 11 Jun 2020 05:15:21 -0700 > > Liu Yi L wrote: > > > > > IOMMUs that support nesting translation needs report the capability > > > info to

Re: [PATCH v2 1/3] mfd: core: Make a best effort attempt to match devices with the correct of_nodes

2020-06-14 Thread Frank Rowand
Hi Lee, I'm looking at 5.8-rc1. The only use of OF_MFD_CELL() where the same compatible is specified for multiple elements of a struct mfd_cell array is for compatible "stericsson,ab8500-pwm" in drivers/mfd/ab8500-core.c: OF_MFD_CELL("ab8500-pwm", NULL, NULL, 0, 1,

Re: [PATCH] powerpc/fsl_booke/32: fix build with CONFIG_RANDOMIZE_BASE

2020-06-14 Thread Jason Yan
在 2020/6/14 0:28, Arseny Solokha 写道: Building the current 5.8 kernel for a e500 machine with CONFIG_RANDOMIZE_BASE set yields the following failure: arch/powerpc/mm/nohash/kaslr_booke.c: In function 'kaslr_early_init': arch/powerpc/mm/nohash/kaslr_booke.c:387:2: error: implicit

[PATCH RESEND] 9p: Fix memory leak in v9fs_mount

2020-06-14 Thread Zheng Bin
v9fs_mount v9fs_session_init v9fs_cache_session_get_cookie v9fs_random_cachetag -->alloc cachetag v9ses->fscache = fscache_acquire_cookie -->maybe NULL sb = sget-->fail, goto clunk clunk_fid: v9fs_session_close if

Re: [PATCH] cgroup: Refactor two assignments in css_task_iter_next_css_set()

2020-06-14 Thread Zefan Li
On 2020/6/15 7:22, zzuedu2...@163.com wrote: > On Sun, 2020-06-14 at 18:10 +0800, James.Bottomley@xxx wrote: > >> it's arguable that having two statements instead of one makes the code >> marginally more readable. > > Above the function there is a similar line of code: > l =

[PATCH] mm/cma: fix NULL pointer dereference when cma could not be activated

2020-06-14 Thread Jianqun Xu
In some case the cma area could not be activated, but the cma_alloc be used under this case, then the kernel will crash caused by NULL pointer dereference. Add bitmap valid check in cma_alloc to avoid this issue. Signed-off-by: Jianqun Xu --- mm/cma.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [RFC 2/4] regulator: lp87565: dt: remove duplicated section

2020-06-14 Thread J, KEERTHY
On 6/15/2020 1:30 AM, Luca Ceresoli wrote: Hi Rob, Keerthy, On 13/06/20 00:19, Rob Herring wrote: On Wed, Jun 03, 2020 at 10:03:17PM +0200, Luca Ceresoli wrote: The "Required properties:" section is copied verbatim for each of the two supported chips. In preparation to add a new chip

Re: [PATCH] drm/exynos: fix ref count leak in mic_pre_enable

2020-06-14 Thread Inki Dae
Hi, 20. 6. 14. 오후 3:23에 Navid Emamdoost 이(가) 쓴 글: > in mic_pre_enable, pm_runtime_get_sync is called which > increments the counter even in case of failure, leading to incorrect > ref count. In case of failure, decrement the ref count before returning. > > Signed-off-by: Navid Emamdoost > --- >

[PATCH 3/4] dt-bindings: arm: actions: Document RoseapplePi

2020-06-14 Thread Cristian Ciocaltea
Define compatible strings for RoseapplePi, a SBC manufactured in Taiwan, based on Actions Semi S500 reference design. Signed-off-by: Cristian Ciocaltea --- Documentation/devicetree/bindings/arm/actions.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 4/4] arm: dts: owl-s500: Add RoseapplePi

2020-06-14 Thread Cristian Ciocaltea
Add a Device Tree for the RoseapplePi SBC. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/owl-s500-roseapplepi.dts | 47 ++ 2 files changed, 48 insertions(+) create mode 100644

[PATCH 2/4] dt-bindings: Add vendor prefix for RoseapplePi.org

2020-06-14 Thread Cristian Ciocaltea
Add devicetree vendor prefix for RoseapplePi.org Foundation. Website: http://roseapplepi.org/ Signed-off-by: Cristian Ciocaltea --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml

[PATCH 1/4] arm: dts: owl-s500: Fix incorrect PPI interrupt specifiers

2020-06-14 Thread Cristian Ciocaltea
The PPI interrupts for cortex-a9 were incorrectly specified, fix them. Fixes: fdfe7f4f9d85 ("ARM: dts: Add Actions Semi S500 and LeMaker Guitar") Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: linux-next: Signed-off-by missing for commit in the hwmon-staging tree

2020-06-14 Thread Guenter Roeck
On 6/14/20 3:08 PM, Stephen Rothwell wrote: > Hi all, > > Commit > > 3c1c958a118e ("hwmon: (adm1275) Enable adm1278 ADM1278_TEMP1_EN") > > is missing a Signed-off-by from its author. > Uuh, yes, I completely missed that. I'll drop the patch until/unless I get a signed version. Thanks for

RE: [PATCH 2/2] exfat: allow to change some mount options for remount

2020-06-14 Thread Namjae Jeon
> Allow to change permission masks, allow_utime, errors. But ignore other > options. > > Signed-off-by: Hyunchul Lee > --- > fs/exfat/super.c | 40 +--- > 1 file changed, 29 insertions(+), 11 deletions(-) > > diff --git a/fs/exfat/super.c b/fs/exfat/super.c

RE: [PATCH 1/2] exfat: call sync_filesystem for read-only remount

2020-06-14 Thread Namjae Jeon
Hi Hyunchul, > We need to commit dirty metadata and pages to disk before remounting exfat as > read-only. > > This fixes a failure in xfstests generic/452 Could you please elaborate more the reason why generic/452 in xfstests failed ? > > Signed-off-by: Hyunchul Lee > --- > fs/exfat/super.c |

RE: [PATCH v3] x86/apic/flat64: Add back the early_param("apic", parse_apic)

2020-06-14 Thread Dexuan Cui
> From: Dexuan Cui > Sent: Sunday, May 31, 2020 9:49 AM > To: t...@linutronix.de; mi...@redhat.com; rdun...@infradead.org; > b...@alien8.de; h...@zytor.com; x...@kernel.org; pet...@infradead.org; > alli...@lohutok.net; alexios.zav...@intel.com; gre...@linuxfoundation.org; > Dexuan Cui ;

[PATCH 0/4] Add initial support for RoseapplePi SBC

2020-06-14 Thread Cristian Ciocaltea
This patchset enables basic support for RoseapplePi, relying exclusively on the existing infrastructure for the Actions Semi Sxx SoCs (thank you Andreas and Manni for making this possible). The SBC is powered by the Actions Semi S500 SoC and comes with 2GB RAM, uSD slot and optional eMMC storage.

Re: Good idea to rename files in include/uapi/ ?

2020-06-14 Thread Alexander A. Klimov
Am 14.06.20 um 23:08 schrieb Jan Engelhardt: On Sunday 2020-06-14 22:19, David Howells wrote: Alexander A. Klimov wrote: *Is it a good idea to rename files in include/uapi/ ?* Very likely not. If programs out there are going to be built on a case-sensitive filesystem (which happens

[PATCH v2] powerpc/powernv/pci: use ifdef to avoid dead code

2020-06-14 Thread Greg Thelen
Commit dc3d8f85bb57 ("powerpc/powernv/pci: Re-work bus PE configuration") removed a couple pnv_ioda_setup_bus_dma() calls. The only remaining calls are behind CONFIG_IOMMU_API. Thus builds without CONFIG_IOMMU_API see: arch/powerpc/platforms/powernv/pci-ioda.c:1888:13: error:

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

2020-06-14 Thread Finn Thain
On Sun, 14 Jun 2020, Chris Boot wrote: > I expect that if someone finds this useful it can stick around (but > that's not my call). Who's call is that? If the patch had said "From: Martin K. Petersen" and "This driver is being removed because it has the following defects..." that would be

Re: [PATCH v9 0/5] Add MMC software queue support

2020-06-14 Thread Baolin Wang
On Sun, Jun 14, 2020 at 11:05 PM Baolin Wang wrote: > > On Wed, Jun 10, 2020 at 10:26 AM BOUGH CHEN wrote: > > > > > -Original Message- > > > From: Baolin Wang [mailto:baolin.wa...@gmail.com] > > > Sent: 2020年6月8日 19:54 > > > To: BOUGH CHEN > > > Cc: Ulf Hansson ; Adrian Hunter > > > ;

Re: [PATCH] cgroup: Refactor two assignments in css_task_iter_next_css_set()

2020-06-14 Thread zzuedu2000
On Sun, 2020-06-14 at 18:10 +0800, James.Bottomley@xxx wrote: > it's arguable that having two statements instead of one makes the code > marginally more readable. Above the function there is a similar line of code: l = it->tcset_pos->next; One line of code makes the code style consistent and

Re: Good idea to rename files in include/uapi/ ?

2020-06-14 Thread Alexander A. Klimov
Am 14.06.20 um 22:34 schrieb Stefano Brivio: On Sun, 14 Jun 2020 21:41:17 +0200 "Alexander A. Klimov" wrote: Hello there! At the moment one can't checkout a clean working directory w/o any changed files on a case-insensitive FS as the following file names have lower-case duplicates:

Re: Good idea to rename files in include/uapi/ ?

2020-06-14 Thread Al Viro
On Sun, Jun 14, 2020 at 09:41:17PM +0200, Alexander A. Klimov wrote: > Hello there! > > At the moment one can't checkout a clean working directory w/o any changed > files on a case-insensitive FS as the following file names have lower-case > duplicates: And if you use a filesystem that is

Re: [RFC v2] hwmon: add Corsair Commander Pro driver

2020-06-14 Thread Guenter Roeck
On 6/12/20 6:29 AM, Marius Zachmann wrote: > This is a driver for the Corsair Commander Pro. > It provides sysfs attributes for: > - Reading fan speed > - Reading temp sensors > - Reading voltage values > - Writing pwm and reading last written pwm > > Changed it to a USB driver for a couple of

linux-next: Signed-off-by missing for commit in the hwmon-staging tree

2020-06-14 Thread Stephen Rothwell
Hi all, Commit 3c1c958a118e ("hwmon: (adm1275) Enable adm1278 ADM1278_TEMP1_EN") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpuJZpIZcY11.pgp Description: OpenPGP digital signature

Re: Good idea to rename files in include/uapi/ ?

2020-06-14 Thread Pablo Neira Ayuso
On Sun, Jun 14, 2020 at 11:08:08PM +0200, Jan Engelhardt wrote: > > On Sunday 2020-06-14 22:19, David Howells wrote: > >Alexander A. Klimov wrote: > > > >> *Is it a good idea to rename files in include/uapi/ ?* > > > >Very likely not. If programs out there are going to be built on a >

  1   2   3   4   >