Re: [PATCH] cpufreq: remove redundant assignment to ret

2019-08-18 Thread Viresh Kumar
On 13-08-19, 13:21, Colin King wrote: > From: Colin Ian King > > Variable ret is initialized to a value that is never read and it is > re-assigned later. The initialization is redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King > --- > drivers

Re: [PATCH 1/2] cpufreq: drivers: Enable frequency invariance in qcom-cpufreq-hw

2019-08-18 Thread Viresh Kumar
On 09-08-19, 11:37, Quentin Perret wrote: > Actually, one nit, the $subject should probably be formatted as: > > cpufreq: qcom-hw: invoke frequency-invariance setter function > > for consistency with other patches in this area. Applied with these changes. Thanks. -- viresh

Re: [PATCH v2] iommu/amd: Override wrong IVRS IOAPIC on Raven Ridge systems

2019-08-18 Thread kbuild test robot
Hi Kai-Heng, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.3-rc5 next-20190816] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/K

[PATCH v7 0/2] Add Macronix raw NAND controller driver

2019-08-18 Thread Mason Yang
Hello, v7 patch including: 1. compatible rename to "mxic,multi-itfc-v009-nand-controller" 2. using interrupts instead of polling RY/#BS pin 3. removed sdr timing setup in mxic_nfc_hw_init(). 4. And other patches based on Boris comments. v6 patch including: 1. compatible rename to "mxicy,multi-itf

[PATCH v7 2/2] dt-bindings: mtd: Document Macronix raw NAND controller bindings

2019-08-18 Thread Mason Yang
Document the bindings used by the Macronix raw NAND controller. Signed-off-by: Mason Yang --- .../devicetree/bindings/mtd/mxic-nand.txt | 36 ++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/mxic-nand.txt diff --git a/Doc

[PATCH v7 1/2] mtd: rawnand: Add Macronix raw NAND controller driver

2019-08-18 Thread Mason Yang
Add a driver for Macronix raw NAND controller. Signed-off-by: Mason Yang --- drivers/mtd/nand/raw/Kconfig | 6 + drivers/mtd/nand/raw/Makefile| 1 + drivers/mtd/nand/raw/mxic_nand.c | 584 +++ 3 files changed, 591 insertions(+) create mode 100644

[PATCH] fuse: BUG_ON correction in fuse_dev_splice_write()

2019-08-18 Thread Vasily Averin
commit 963545357202 ("fuse: reduce allocation size for splice_write") changed size of bufs array, so BUG_ON which checks the index of the array shold also be fixed. Fixes: 963545357202 ("fuse: reduce allocation size for splice_write") Signed-off-by: Vasily Averin --- fs/fuse/dev.c | 7 --- 1

Re: [PATCH] cpufreq: qcom-hw: Update logic to detect turbo frequency

2019-08-18 Thread Viresh Kumar
On 07-08-19, 17:15, Sibi Sankar wrote: > The core count read back from the each domain's look up table serves > as an indicator for the onset of the turbo frequency and not accurate > representation of number of cores in a paticular domain. Update turbo > detection logic accordingly to add support

Re: [PATCH] fuse: BUG_ON's correction in fuse_dev_splice_write()

2019-08-18 Thread Vasily Averin
On 8/1/19 2:01 PM, Miklos Szeredi wrote: > On Tue, Jul 23, 2019 at 8:33 AM Vasily Averin wrote: >> >> commit 963545357202 ("fuse: reduce allocation size for splice_write") >> changed size of bufs array, so first BUG_ON should be corrected too. >> Second BUG_ON become useless, first one also includ

[BUG 5.3-rc5] rwsem: use after free on task_struct if task exits with rwsem held

2019-08-18 Thread Dave Chinner
Hi folks, In trying to track down an XFS regression, I stumbled across KASAN warnings about use-after-free behave in rwsems. Essentially, the XFS regression is triggering an ASSERT, which is BUG()ing a kernel thread that is holding the superblock s_umount rwsem in write mode (it is a mount proble

Re: [PATCH V2 04/10] cpufreq: powerpc_cbe: Switch to QoS requests instead of cpufreq notifier

2019-08-18 Thread Viresh Kumar
On 19-08-19, 08:42, Rafael J. Wysocki wrote: > OK, thanks! > > The series is on hold, though, because the acpi-cpufreq patch turned > out to be problematic and I didn't have the time to have a deeper look > at the problem last week. And so was I wondering why it is present in bleeding-edge only :

Re: [PATCH V2 04/10] cpufreq: powerpc_cbe: Switch to QoS requests instead of cpufreq notifier

2019-08-18 Thread Rafael J. Wysocki
On Mon, Aug 19, 2019 at 4:26 AM Viresh Kumar wrote: > > On 09-08-19, 11:01, Rafael J. Wysocki wrote: > > On Fri, Aug 9, 2019 at 4:34 AM Viresh Kumar wrote: > > > > > > On 23-07-19, 11:44, Viresh Kumar wrote: > > > > The cpufreq core now takes the min/max frequency constraints via QoS > > > > requ

[PATCH net-next v2] r8152: divide the tx and rx bottom functions

2019-08-18 Thread Hayes Wang
Move the tx bottom function from NAPI to a new tasklet. Then, for multi-cores, the bottom functions of tx and rx may be run at same time with different cores. This is used to improve performance. On x86, Tx/Rx 943/943 Mbits/sec -> 945/944. For arm platform, Tx/Rx: 917/917 Mbits/sec -> 933/933. Si

Re: [PATCH v2] jffs2: remove C++ style comments from uapi header

2019-08-18 Thread Richard Weinberger
- Ursprüngliche Mail - > This patch missed the fixes pull requests. > Which version is this targeting for? v5.4-rc1 ? Damn, I forgot about this one. I'll do another fixes PR this week for UBI/UBIFS, so it will be in tree before the next merge window opens. Sorry for the delay! Thanks,

Re: Re: [PATCH net-next 1/1] Added BASE-T1 PHY support to PHY Subsystem

2019-08-18 Thread Christian Herber
On 16.08.2019 23:13, Heiner Kallweit wrote: > > On 15.08.2019 17:32, Christian Herber wrote: >> BASE-T1 is a category of Ethernet PHYs. >> They use a single copper pair for transmission. >> This patch add basic support for this category of PHYs. >> It coveres the discovery of abilities and basic c

[PATCH] powerpc/603: fix handling of the DIRTY flag

2019-08-18 Thread Christophe Leroy
If a page is already mapped RW without the DIRTY flag, the DIRTY flag is never set and a TLB store miss exception is taken forever. This is easily reproduced with the following app: void main(void) { volatile char *ptr = mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ; -)

2019-08-18 Thread Jan Kara
On Fri 16-08-19 16:20:07, Ira Weiny wrote: > On Fri, Aug 16, 2019 at 12:05:28PM -0700, 'Ira Weiny' wrote: > > On Thu, Aug 15, 2019 at 03:05:58PM +0200, Jan Kara wrote: > > > On Wed 14-08-19 11:08:49, Ira Weiny wrote: > > > > On Wed, Aug 14, 2019 at 12:17:14PM +0200, Jan Kara wrote: > > > > > Hello!

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-18 Thread Jan Kara
On Sat 17-08-19 12:26:03, Dave Chinner wrote: > On Fri, Aug 16, 2019 at 12:05:28PM -0700, Ira Weiny wrote: > > On Thu, Aug 15, 2019 at 03:05:58PM +0200, Jan Kara wrote: > > > On Wed 14-08-19 11:08:49, Ira Weiny wrote: > > > > On Wed, Aug 14, 2019 at 12:17:14PM +0200, Jan Kara wrote: > > 2) Second r

Re: Re: [PATCH net-next 0/1] Add BASE-T1 PHY support

2019-08-18 Thread Christian Herber
On 16.08.2019 22:59, Heiner Kallweit wrote: > On 15.08.2019 17:32, Christian Herber wrote: >> This patch adds basic support for BASE-T1 PHYs in the framework. >> BASE-T1 PHYs main area of application are automotive and industrial. >> BASE-T1 is standardized in IEEE 802.3, namely >> - IEEE 802.3bw:

Re: [PATCH][V2] drivers: thermal: processor_thermal_device: fix missing bitwise-or operators

2019-08-18 Thread Zhang Rui
On Mon, 2019-07-29 at 14:09 -0700, Srinivas Pandruvada wrote: > On Mon, 2019-07-29 at 13:03 +0100, Colin King wrote: > > From: Colin Ian King > > > > The variable val is having the top 8 bits cleared and then the > > variable is being > > re-assinged and setting just the top 8 bits. I believe th

linux-next: manual merge of the gpio-brgl tree with the gpio tree

2019-08-18 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the gpio-brgl tree got a conflict in: include/linux/gpio/driver.h between commit: 379ce1ff51aa ("gpio: stubs in headers should be inline") from the gpio tree and commit: 9091373ab7ea ("gpio: remove less important #ifdef around declarations") from the

Re: add a not device managed memremap_pages v3

2019-08-18 Thread Christoph Hellwig
On Mon, Aug 19, 2019 at 10:57:52AM +0530, Bharata B Rao wrote: > On Sun, Aug 18, 2019 at 11:05:53AM +0200, Christoph Hellwig wrote: > > Hi Dan and Jason, > > > > Bharata has been working on secure page management for kvmppc guests, > > and one I thing I noticed is that he had to fake up a struct d

Re: [PATCH 1/2] riscv: Add memmove string operation.

2019-08-18 Thread Nick Hu
Hi Paul, On Thu, Aug 15, 2019 at 11:27:51AM -0700, Paul Walmsley wrote: > On Thu, 15 Aug 2019, Nick Hu wrote: > > > On Wed, Aug 14, 2019 at 10:03:39AM -0700, Paul Walmsley wrote: > > > > > Thanks for the explanation. What do you think about Palmer's idea to > > > define a generic C set of KASAN

Re: [PATCH 2/2] clk: qcom: clk-rpmh: Add support for SM8150

2019-08-18 Thread Vinod Koul
On 16-08-19, 09:58, Stephen Boyd wrote: > Quoting Vinod Koul (2019-08-15 21:24:40) > > On 14-08-19, 10:19, Stephen Boyd wrote: > > > Quoting Vinod Koul (2019-08-14 05:29:58) > > > > Add support for rpmh clocks found in SM8150 > > > > > > > > Signed-off-by: Vinod Koul > > > > --- > > > > > > Patc

Re: [PATCH v6 00/12] implement KASLR for powerpc/fsl_booke/32

2019-08-18 Thread Jason Yan
Hi Michael, Is there anything more I should do to get this feature meeting the requirements of the mainline? Thanks, Jason On 2019/8/9 18:07, Jason Yan wrote: This series implements KASLR for powerpc/fsl_booke/32, as a security feature that deters exploit attempts relying on knowledge of the

Re: Suspend/Resume Broken on AM43/AM33 Platforms

2019-08-18 Thread Stephen Boyd
Quoting Keerthy (2019-08-18 21:24:58) > Hi Stephen, > > commit 03a3bb7ae63150230c5de645dc95e673ebf17e1a > Author: Stephen Boyd > Date: Mon Aug 5 16:32:41 2019 -0700 > > hwrng: core - Freeze khwrng thread during suspend > > Commit seems to be breaking suspend/resume on TI AM43/AM33 platfo

Re: [PATCH] riscv: move sifive_l2_cache.c to drivers/soc

2019-08-18 Thread Christoph Hellwig
On Mon, Aug 19, 2019 at 08:09:04AM +0200, Borislav Petkov wrote: > On Sun, Aug 18, 2019 at 10:29:35AM +0200, Christoph Hellwig wrote: > > The sifive_l2_cache.c is in no way related to RISC-V architecture > > memory management. It is a little stub driver working around the fact > > that the EDAC ma

Re: [PATCH 2/4] x86/vmware: Add a header file for hypercall definitions

2019-08-18 Thread Borislav Petkov
On Mon, Aug 19, 2019 at 12:28:05AM +0200, Thomas Hellström (VMware) wrote: > Unfortunately we can't use it, because it's unconditionally set on AMD even > if the VMware hypervisor > doesn't support it (by version or by configuration). AMD sets it because they don't support VMCALL. Nothing stops us

Re: [PATCH] ARM: dts: socfpga: update to new Denali NAND binding

2019-08-18 Thread Masahiro Yamada
On Tue, Jun 25, 2019 at 12:39 AM Dinh Nguyen wrote: > > > > On 6/21/19 6:23 AM, Masahiro Yamada wrote: > > With commit d8e8fd0ebf8b ("mtd: rawnand: denali: decouple controller > > and NAND chips"), the Denali NAND controller driver migrated to the > > new controller/chip representation. > > > > Up

Re: [RFC PATCH 00/15] acrn: add the ACRN driver module

2019-08-18 Thread Borislav Petkov
On Mon, Aug 19, 2019 at 09:44:25AM +0800, Zhao, Yakui wrote: > Not sure whether it can be sent in two patch sets? > The first is to add the required APIs for ACRN driver. > The second is to add the ACRN driver One patchset adding the APIs and its user(s). And make sure to refresh on https://www.

Re: [PATCH] FS: timerfd: Fix unexpected return value of timerfd_read function.

2019-08-18 Thread Arul Jeniston
Hi tgls, > BIOS is the more likely candidate. We would check BIOS and update. > We expect TSC not to go backwards. If it does it's broken and not usable as > a clocksource for the kernel. The problem is that this is not necessarily > easy to detect. We used relative timer with CLOCK_REALTIME

Re: [PATCH] riscv: move sifive_l2_cache.c to drivers/soc

2019-08-18 Thread Borislav Petkov
On Sun, Aug 18, 2019 at 10:29:35AM +0200, Christoph Hellwig wrote: > The sifive_l2_cache.c is in no way related to RISC-V architecture > memory management. It is a little stub driver working around the fact > that the EDAC maintainers prefer their drivers to be structured in a > certain way That

[PATCH] x86/PCI: Add missing SPDX license header.

2019-08-18 Thread Krzysztof Wilczynski
Add the missing "SPDX-License-Identifier" license header to the arch/x86/pci/numachip.c. Use GPL-2.0 identifier derived using the comment mentioning license from the top of the file. Signed-off-by: Krzysztof Wilczynski --- arch/x86/pci/numachip.c | 1 + 1 file changed, 1 insertion(+) diff --gi

[PATCH] x86/PCI: Replace deprecated EXTRA_CFLAGS with ccflags-y.

2019-08-18 Thread Krzysztof Wilczynski
Update arch/x86/pci/Makefile replacing the deprecated EXTRA_CFLAGS with the ccflags-y matching recommendation as per the section 3.7 "Compilation flags" of the "Linux Kernel Makefiles" (see: Documentation/kbuild/makefiles.txt). Signed-off-by: Krzysztof Wilczynski --- arch/x86/pci/Makefile | 4 +-

Re: [PATCH] mtd: spi-nor: fix a memory leak bug

2019-08-18 Thread Tudor.Ambarus
On 08/18/2019 08:39 PM, Wenwen Wang wrote: > In spi_nor_parse_4bait(), 'dwords' is allocated through kmalloc(). However, > it is not deallocated in the following execution if spi_nor_read_sfdp() > fails, leading to a memory leak. To fix this issue, free 'dwords' before > returning the error. Loo

[PATCH] kbuild: add CONFIG_ASM_MODVERSIONS

2019-08-18 Thread Masahiro Yamada
Add CONFIG_ASM_MODVERSIONS to remove one if-conditional nesting from Makefile.build This also avoid $(wildcard ...) evaluation for every descending, but I did not see measurable performance improvement. Signed-off-by: Masahiro Yamada --- arch/Kconfig | 7 +++ arch/alpha/Kconfig

Re: [PATCH] test_bpf: Fix a new clang warning about xor-ing two numbers

2019-08-18 Thread Yonghong Song
On 8/18/19 9:34 PM, Nathan Chancellor wrote: > r369217 in clang added a new warning about potential misuse of the xor > operator as an exponentiation operator: > > ../lib/test_bpf.c:870:13: warning: result of '10 ^ 300' is 294; did you > mean '1e300'? [-Wxor-used-as-pow] > { { 4

[PATCH v3] arch : arm : add a criteria for pfn_valid

2019-08-18 Thread Zhaoyang Huang
From: Zhaoyang Huang pfn_valid can be wrong when parsing a invalid pfn whose phys address exceeds BITS_PER_LONG as the MSB will be trimed when shifted. The issue originally arise from bellowing call stack, which corresponding to an access of the /proc/kpageflags from userspace with a invalid pfn

[PATCH] fuse: redundant get_fuse_inode() calls in fuse_writepages_fill()

2019-08-18 Thread Vasily Averin
Currently fuse_writepages_fill() calls get_fuse_inode() few times with the same argument. Signed-off-by: Vasily Averin --- fs/fuse/file.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/fuse/file.c b/fs/fuse/file.c index e076c2cf65b0..bc9b64ef7b5d 100644 --- a/fs/fuse/f

Re: [RFC PATCH 00/15] acrn: add the ACRN driver module

2019-08-18 Thread Zhao, Yakui
On 2019年08月19日 13:25, Greg KH wrote: On Mon, Aug 19, 2019 at 09:44:25AM +0800, Zhao, Yakui wrote: On 2019年08月16日 14:39, Borislav Petkov wrote: On Fri, Aug 16, 2019 at 10:25:41AM +0800, Zhao Yakui wrote: The first three patches are the changes under x86/acrn, which adds the required APIs f

Re: [PATCH] powerpc: optimise WARN_ON()

2019-08-18 Thread Christophe Leroy
Le 18/08/2019 à 14:01, Segher Boessenkool a écrit : On Sat, Aug 17, 2019 at 09:04:42AM +, Christophe Leroy wrote: Unlike BUG_ON(x), WARN_ON(x) uses !!(x) as the trigger of the t(d/w)nei instruction instead of using directly the value of x. This leads to GCC adding unnecessary pair of add

Re: [PATCH 3/3] firmware: add mutex fw_lock_fallback for race condition

2019-08-18 Thread Luis Chamberlain
On Thu, Aug 15, 2019 at 05:09:45PM -0700, Scott Branden wrote: > A race condition exists between _request_firmware_prepare checking > if firmware is assigned and firmware_fallback_sysfs creating a sysfs > entry (kernel trace below). To avoid such condition add a mutex > fw_lock_fallback to protect

Re: [RFC PATCH 08/15] drivers/acrn: add VM memory management for ACRN char device

2019-08-18 Thread Zhao, Yakui
On 2019年08月16日 20:58, Dan Carpenter wrote: On Fri, Aug 16, 2019 at 10:25:49AM +0800, Zhao Yakui wrote: +int hugepage_map_guest(struct acrn_vm *vm, struct vm_memmap *memmap) +{ + struct page *page = NULL, *regions_buf_pg = NULL; + unsigned long len, guest_gpa, vma; + struct v

Re: [PATCH v3 2/3] genirq: introduce update_irq_devid()

2019-08-18 Thread luoben
在 2019/8/15 下午10:58, Thomas Gleixner 写道: Ben, On Thu, 15 Aug 2019, Ben Luo wrote: Sometimes, only the dev_id field of irqaction need to be changed. E.g. KVM VM with device passthru via VFIO may switch irq injection path between KVM irqfd and userspace eventfd. These two paths share the same

Re: [PATCH -next] clk: st: clkgen-pll: remove unused variable 'st_pll3200c32_407_a0'

2019-08-18 Thread Gabriel FERNANDEZ
Acked-by: Gabriel Fernandez From: Stephen Boyd Sent: Friday, August 16, 2019 7:36 PM To: YueHaibing; alli...@lohutok.net; gre...@linuxfoundation.org; mturque...@baylibre.com; Gabriel FERNANDEZ Cc: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; Y

Re: [PATCH -next] clk: st: clkgen-fsyn: remove unused variable 'st_quadfs_fs660c32_ops'

2019-08-18 Thread Gabriel FERNANDEZ
Acked-by: Gabriel Fernandez From: Stephen Boyd Sent: Friday, August 16, 2019 7:36 PM To: YueHaibing; i...@metux.net; mturque...@baylibre.com; r...@kernel.org; Gabriel FERNANDEZ Cc: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; YueHaibing Subjec

Re: add a not device managed memremap_pages v3

2019-08-18 Thread Bharata B Rao
On Sun, Aug 18, 2019 at 11:05:53AM +0200, Christoph Hellwig wrote: > Hi Dan and Jason, > > Bharata has been working on secure page management for kvmppc guests, > and one I thing I noticed is that he had to fake up a struct device > just so that it could be passed to the devm_memremap_pages > inst

Re: [RFC PATCH 04/15] drivers/acrn: add the basic framework of acrn char device driver

2019-08-18 Thread Greg KH
On Mon, Aug 19, 2019 at 12:02:33PM +0800, Zhao, Yakui wrote: > > > On 2019年08月16日 15:05, Greg KH wrote: > > On Fri, Aug 16, 2019 at 10:25:45AM +0800, Zhao Yakui wrote: > > > ACRN hypervisor service module is the important middle layer that allows > > > the Linux kernel to communicate with the ACR

Re: [RFC PATCH 00/15] acrn: add the ACRN driver module

2019-08-18 Thread Greg KH
On Mon, Aug 19, 2019 at 10:39:32AM +0800, Zhao, Yakui wrote: > > > On 2019年08月16日 15:03, Greg KH wrote: > > On Fri, Aug 16, 2019 at 08:39:25AM +0200, Borislav Petkov wrote: > > > On Fri, Aug 16, 2019 at 10:25:41AM +0800, Zhao Yakui wrote: > > > > The first three patches are the changes under x86/

Re: [PATCH 2/3] selftest: firmware: Add request_firmware_into_buf tests

2019-08-18 Thread Luis Chamberlain
On Thu, Aug 15, 2019 at 05:09:44PM -0700, Scott Branden wrote: > Add tests cases for checking request_firmware_into_buf api. > API was introduced into kernel with no testing present previously. > > Signed-off-by: Scott Branden Acked-by: Luis Chamberlain Luis

Re: [RFC PATCH 00/15] acrn: add the ACRN driver module

2019-08-18 Thread Greg KH
On Mon, Aug 19, 2019 at 09:44:25AM +0800, Zhao, Yakui wrote: > > > On 2019年08月16日 14:39, Borislav Petkov wrote: > > On Fri, Aug 16, 2019 at 10:25:41AM +0800, Zhao Yakui wrote: > > > The first three patches are the changes under x86/acrn, which adds the > > > required APIs for the driver and repor

Re: [PATCH 1/3] test_firmware: add support for request_firmware_into_buf

2019-08-18 Thread Luis Chamberlain
On Thu, Aug 15, 2019 at 05:09:43PM -0700, Scott Branden wrote: > Add test config into_buf to allow request_firmware_into_buf to be > called instead of request_firmware/request_firmware_direct. The number > of parameters differ calling request_firmware_into_buf and support > has not been added to t

[PATCH v2] RISC-V: Fix FIXMAP area corruption on RV32 systems

2019-08-18 Thread Anup Patel
Currently, various virtual memory areas of Linux RISC-V are organized in increasing order of their virtual addresses is as follows: 1. User space area (This is lowest area and starts at 0x0) 2. FIXMAP area 3. VMALLOC area 4. Kernel area (This is highest area and starts at PAGE_OFFSET) The maximum

Re: [RFC PATCH 10/15] drivers/acrn: add interrupt injection support

2019-08-18 Thread Zhao, Yakui
On 2019年08月16日 21:12, Dan Carpenter wrote: On Fri, Aug 16, 2019 at 10:25:51AM +0800, Zhao Yakui wrote: + case IC_VM_INTR_MONITOR: { + struct page *page; + + ret = get_user_pages_fast(ioctl_param, 1, 1, &page); + if (unlikely(ret != 1) || !page)

[PATCH] Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105

2019-08-18 Thread Christophe JAILLET
This should be IDT77105, not IDT77015. Signed-off-by: Christophe JAILLET --- drivers/atm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/atm/Kconfig b/drivers/atm/Kconfig index 2e2efa577437..8c37294f1d1e 100644 --- a/drivers/atm/Kconfig +++ b/drivers/atm/Kconf

Re: [RFC PATCH 11/15] drivers/acrn: add the support of handling emulated ioreq

2019-08-18 Thread Zhao, Yakui
On 2019年08月16日 21:39, Dan Carpenter wrote: On Fri, Aug 16, 2019 at 10:25:52AM +0800, Zhao Yakui wrote: +int acrn_ioreq_create_client(unsigned short vmid, +ioreq_handler_t handler, +void *client_priv, +char *na

Re: [PATCH v2] arch : arm : add a criteria for pfn_valid

2019-08-18 Thread Mike Rapoport
On Mon, Aug 19, 2019 at 09:36:09AM +0800, Zhaoyang Huang wrote: > From: Zhaoyang Huang > > pfn_valid can be wrong when parsing a invalid pfn whose phys address > exceeds BITS_PER_LONG as the MSB will be trimed when shifted. I'd appreciate to see in the changelog that this could be triggered from

linux-next: manual merge of the tip tree with the ia64 tree

2019-08-18 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/ia64/include/asm/sn/sn_sal.h between commit: cf07cb1ff4ea ("ia64: remove support for the SGI SN2 platform") from the ia64 tree and commit: 5828efb95bc4 ("efi: ia64: move SAL systab handling out of generic EFI code"

Re: [PATCH] RISC-V: Fix FIXMAP area corruption on RV32 systems

2019-08-18 Thread Anup Patel
On Sun, Aug 18, 2019 at 11:49 PM Christoph Hellwig wrote: > > > +#define FIXADDR_TOP (VMALLOC_START) > > Nit: no need for the braces, the definitions below don't use it > either. Sure, I will update and send v2 soon. > > > +#ifdef CONFIG_64BIT > > +#define FIXADDR_SIZE PMD_SIZE > > +#el

[PATCH] Kconfig: Fix the reference to the RFD77402 ToF sensor in the 'help' section

2019-08-18 Thread Christophe JAILLET
This should be RFD77402, not RFD77420. Signed-off-by: Christophe JAILLET --- Not sure that the Kconfig prefix is correct. I have choosen it because of commit 21cf20a84a ("Kconfig: change configuration of srf04 ultrasonic iio sensor") --- drivers/iio/proximity/Kconfig | 2 +- 1 file changed, 1 i

Re: [PATCH] riscv: move sifive_l2_cache.c to drivers/soc

2019-08-18 Thread Anup Patel
On Sun, Aug 18, 2019 at 2:01 PM Christoph Hellwig wrote: > > The sifive_l2_cache.c is in no way related to RISC-V architecture > memory management. It is a little stub driver working around the fact > that the EDAC maintainers prefer their drivers to be structured in a > certain way that doesn't

[PATCH] test_bpf: Fix a new clang warning about xor-ing two numbers

2019-08-18 Thread Nathan Chancellor
r369217 in clang added a new warning about potential misuse of the xor operator as an exponentiation operator: ../lib/test_bpf.c:870:13: warning: result of '10 ^ 300' is 294; did you mean '1e300'? [-Wxor-used-as-pow] { { 4, 10 ^ 300 }, { 20, 10 ^ 300 } }, ~~~

Re: [PATCH] libfdt: reduce the number of headers included from libfdt_env.h

2019-08-18 Thread Masahiro Yamada
On Thu, Aug 1, 2019 at 11:30 AM Masahiro Yamada wrote: > > On Tue, Jun 18, 2019 at 1:21 AM Masahiro Yamada > wrote: > > > > Currently, libfdt_env.h includes just for INT_MAX. > > > > pulls in a lots of broat. > > > > Thanks to commit 54d50897d544 ("linux/kernel.h: split *_MAX and *_MIN > > macr

Re: next/master boot: 254 boots: 16 failed, 231 passed with 4 offline, 1 untried/unknown, 2 conflicts (next-20190726)

2019-08-18 Thread Bjorn Andersson
On Fri 26 Jul 06:48 PDT 2019, Mark Brown wrote: > On Fri, Jul 26, 2019 at 05:18:01AM -0700, kernelci.org bot wrote: > > The past few versions of -next failed to boot on apq8096-db820c: > > > defconfig: > > gcc-8: > > apq8096-db820c: 1 failed lab > > with an RCU stall tow

[PATCH] net/ncsi: add control packet payload to NC-SI commands from netlink

2019-08-18 Thread Ben Wei
This patch adds support for NCSI_CMD_SEND_CMD netlink command to load packet data payload (up to 16 bytes) to standard NC-SI commands. Packet data will be loaded from NCSI_ATTR_DATA attribute similar to NC-SI OEM commands Signed-off-by: Ben Wei --- net/ncsi/internal.h | 7 --- net/ncs

Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition

2019-08-18 Thread Masahiro Yamada
Hi, On Fri, Jul 19, 2019 at 12:43 PM Michael Ellerman wrote: > > Segher Boessenkool writes: > > On Thu, Jul 18, 2019 at 11:19:58AM +0900, Masahiro Yamada wrote: > >> On Thu, Jul 18, 2019 at 1:46 AM Segher Boessenkool > >> wrote: > >> Kbuild always uses thin archives as far as vmlinux is concern

Suspend/Resume Broken on AM43/AM33 Platforms

2019-08-18 Thread Keerthy
Hi Stephen, commit 03a3bb7ae63150230c5de645dc95e673ebf17e1a Author: Stephen Boyd Date: Mon Aug 5 16:32:41 2019 -0700 hwrng: core - Freeze khwrng thread during suspend Commit seems to be breaking suspend/resume on TI AM43/AM33 platforms. rtcwake: wakeup from "mem" using /dev/rtc0 at Sun

Re: [PATCH] staging: media: hantro: Remove call to memset after dma_alloc_coherent

2019-08-18 Thread Tomasz Figa
On Mon, Aug 19, 2019 at 1:17 PM Tomasz Figa wrote: > > Hi Hans, > > On Thu, Jul 25, 2019 at 8:50 PM Boris Brezillon > wrote: > > > > On Thu, 25 Jul 2019 08:36:02 +0530 > > Hariprasad Kelam wrote: > > > > > fix below issue reported by coccicheck > > > /drivers/staging/media/hantro/hantro_vp8.c:14

[PATCH] .gitignore: ignore modules.order explicitly

2019-08-18 Thread Masahiro Yamada
The pattern '*.order' was added by commit c6025f4c8bbe ("kbuild: ignore *.order files") to ignore modules.order files. I do not see any other user of the '.order' extension. Ignore 'modules.order' explicitly instead of '*.order'. Signed-off-by: Masahiro Yamada --- .gitignore | 2 +- 1 file ch

Re: [PATCH] staging: media: hantro: Remove call to memset after dma_alloc_coherent

2019-08-18 Thread Tomasz Figa
Hi Hans, On Thu, Jul 25, 2019 at 8:50 PM Boris Brezillon wrote: > > On Thu, 25 Jul 2019 08:36:02 +0530 > Hariprasad Kelam wrote: > > > fix below issue reported by coccicheck > > /drivers/staging/media/hantro/hantro_vp8.c:149:16-34: WARNING: > > dma_alloc_coherent use in aux_buf -> cpu already ze

Re: [PATCH v2] jffs2: remove C++ style comments from uapi header

2019-08-18 Thread Masahiro Yamada
On Mon, Jul 29, 2019 at 4:14 PM Richard Weinberger wrote: > > On Sun, Jul 14, 2019 at 10:08 AM Richard Weinberger wrote: > > > > - Ursprüngliche Mail - > > > Looks like this trivial patch missed the pull request. > > > > > > > > > My motivation is to make sure UAPI headers > > > are reall

Re: [PATCH v2] jffs2: remove C++ style comments from uapi header

2019-08-18 Thread Masahiro Yamada
On Sun, Jul 14, 2019 at 5:08 PM Richard Weinberger wrote: > > - Ursprüngliche Mail - > > Looks like this trivial patch missed the pull request. > > > > > > My motivation is to make sure UAPI headers > > are really compilable in user-space, > > and now checked by the following commit: > > >

Re: [RFC PATCH 04/15] drivers/acrn: add the basic framework of acrn char device driver

2019-08-18 Thread Zhao, Yakui
On 2019年08月16日 15:05, Greg KH wrote: On Fri, Aug 16, 2019 at 10:25:45AM +0800, Zhao Yakui wrote: ACRN hypervisor service module is the important middle layer that allows the Linux kernel to communicate with the ACRN hypervisor. It includes the management of virtualized CPU/memory/device/inter

Re: [PATCH v4 1/3] kasan: support backing vmalloc space with real shadow memory

2019-08-18 Thread Daniel Axtens
>> > Instead, share backing space across multiple mappings. Allocate >> > a backing page the first time a mapping in vmalloc space uses a >> > particular page of the shadow region. Keep this page around >> > regardless of whether the mapping is later freed - in the mean time >> > the page could h

Re: [PATCH v4 06/10] modpost: Add modinfo flag to livepatch modules

2019-08-18 Thread Masahiro Yamada
Hi Joe, On Sat, Aug 17, 2019 at 4:01 AM Joe Lawrence wrote: > > On 8/16/19 8:43 AM, Joe Lawrence wrote: > > On 8/16/19 4:19 AM, Miroslav Benes wrote: > >> Hi, > >> > >>> I cleaned up the build system, and pushed it based on my > >>> kbuild tree. > >>> > >>> Please see: > >>> > >>> git://git.kerne

Re: [PATCH v4 06/10] modpost: Add modinfo flag to livepatch modules

2019-08-18 Thread Masahiro Yamada
On Fri, Aug 16, 2019 at 9:43 PM Joe Lawrence wrote: > > On 8/16/19 4:19 AM, Miroslav Benes wrote: > > Hi, > > > >> I cleaned up the build system, and pushed it based on my > >> kbuild tree. > >> > >> Please see: > >> > >> git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > >

[PATCH v1 1/2] dt-bindings: phy: intel-emmc-phy: Add new compatible for LGM eMMC PHY

2019-08-18 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add a new compatible to use the host controller driver with the eMMC PHY on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan --- .../bindings/phy/intel-lgm-emmc-phy.yaml | 70 ++ 1 file changed, 70 inserti

[PATCH v1 2/2] phy: intel-lgm-emmc: Add support for eMMC PHY

2019-08-18 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Adds support for eMMC PHY on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan --- drivers/phy/Kconfig| 1 + drivers/phy/Makefile | 1 + drivers/phy/intel/Kconfig | 8 ++ drivers/phy/intel/Ma

Re: [PATCH v7 1/7] driver core: Add support for linking devices during device addition

2019-08-18 Thread Frank Rowand
On 8/15/19 6:50 PM, Saravana Kannan wrote: > On Wed, Aug 7, 2019 at 7:04 PM Frank Rowand wrote: >> >>> Date: Tue, 23 Jul 2019 17:10:54 -0700 >>> Subject: [PATCH v7 1/7] driver core: Add support for linking devices during >>> device addition >>> From: Saravana Kannan >>> >>> When devices are adde

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

2019-08-18 Thread Stephen Rothwell
Hi James, On Mon, 19 Aug 2019 13:21:19 +1000 Stephen Rothwell wrote: > > On Mon, 12 Aug 2019 10:34:17 -0700 Kees Cook wrote: > > > > On Mon, Aug 12, 2019 at 02:58:23PM +1000, Stephen Rothwell wrote: > > > > > > After merging the security tree, today's linux-next build (arm > > > multi_v7_def

[PATCH v2 linux-next] qcom: qcs404: move COMPILE_TEST to INTERCONNECT_QCOM

2019-08-18 Thread Mao Wenan
There is one compilation error when CONFIG_INTERCONNECT_QCOM_QCS404=y and CONFIG_INTERCONNECT_QCOM_SMD_RPM=y, as well as CONFIG_COMPILE_TEST=y, but CONFIG_QCOM_SMD_RPM is not set, logs as below: drivers/interconnect/qcom/smd-rpm.o: In function `qcom_icc_rpm_smd_send': smd-rpm.c:(.text+0xe4): undef

Re: [PATCH 1/1] dt-bindings: power/supply/sbs_sbs-battery: Addition of force_load binding Add device tree binding documentation for addition of force_load boolean value to allow loading a battery duri

2019-08-18 Thread Richard Tresidder
There is a force load option when loading the driver as a module. This adds the equivalent methodology for the binding path. Though I suppose you could in fact just force load if the gpio detect isn't present. Thats a good idea, just wasn't the existing driver flow. I can't think of any reason w

Re: [PATCH v2] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-18 Thread Jian-Hong Pan
Tony Chuang 於 2019年8月16日 週五 下午6:44寫道: > > > From: Jian-Hong Pan > > > > There is a mass of jobs between spin lock and unlock in the hardware > > IRQ which will occupy much time originally. To make system work more > > efficiently, this patch moves the jobs to the soft IRQ (bottom half) to > > redu

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

2019-08-18 Thread Stephen Rothwell
Hi all, On Mon, 12 Aug 2019 10:34:17 -0700 Kees Cook wrote: > > On Mon, Aug 12, 2019 at 02:58:23PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > After merging the security tree, today's linux-next build (arm > > multi_v7_defconfig) failed like below. > > > > Caused by commit > > > > 45d

[PATCH net-next] r8152: fix accessing skb after napi_gro_receive

2019-08-18 Thread Hayes Wang
Fix accessing skb after napi_gro_receive which is caused by commit 47922fcde536 ("r8152: support skb_add_rx_frag"). Fixes: 47922fcde536 ("r8152: support skb_add_rx_frag") Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

Re: [PATCH v12 11/12] soc: mediatek: cmdq: add cmdq_dev_get_client_reg function

2019-08-18 Thread CK Hu
Hi, Bibby: On Mon, 2019-08-19 at 10:53 +0800, Bibby Hsieh wrote: > GCE cannot know the register base address, this function > can help cmdq client to get the cmdq_client_reg structure. Reviewed-by: CK Hu > > Signed-off-by: Bibby Hsieh > --- > drivers/soc/mediatek/mtk-cmdq-helper.c | 29 +

linux-5.3.0-rc5: new build warning

2019-08-18 Thread Chris Clayton
Hi, I've just built 5.3.0-rc5 and a warning that I do not recall having seen before was emitted: ... HOSTCC scripts/extract-cert HOSTCC /mnt/kernel/linux/tools/objtool/fixdep.o HOSTLD arch/x86/tools/relocs HOSTLD /mnt/kernel/linux/tools/objtool/fixdep-in.o LINK /mnt/kernel/li

oops on cdrom eject

2019-08-18 Thread Dave Airlie
I mentioned this on irc and I'll probably dig into a bit further. Fedora 30, 5.1.18 was fine, 5.2.9 oops on CD eject with the below. Dave. [10384.391028] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [10385.221284] ISO 9660 Extensions: Microsoft Jo

Re: [PATCH v2] kbuild: Require W=1 for -Wimplicit-fallthrough with clang

2019-08-18 Thread Masahiro Yamada
On Mon, Aug 19, 2019 at 3:43 AM Nathan Chancellor wrote: > > On Mon, Aug 19, 2019 at 01:43:08AM +0900, Masahiro Yamada wrote: > > Hi. > > > > On Fri, Aug 16, 2019 at 7:59 AM Nathan Huckleberry wrote: > > > > > > Clang is updating to support -Wimplicit-fallthrough on C > > > https://reviews.llvm.o

[PATCH v12 02/12] dt-binding: gce: add gce header file for mt8183

2019-08-18 Thread Bibby Hsieh
Add documentation for the mt8183 gce. Add gce header file defined the gce hardware event, subsys number and constant for mt8183. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt | 6 +- include/dt-bindings/gce/mt8183-gce.h | 177 +

[PATCH v12 10/12] soc: mediatek: cmdq: add polling function

2019-08-18 Thread Bibby Hsieh
add polling function in cmdq helper functions Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 28 include/linux/mailbox/mtk-cmdq-mailbox.h | 1 + include/linux/soc/mediatek/mtk-cmdq.h| 15 + 3 files changed,

[PATCH v12 11/12] soc: mediatek: cmdq: add cmdq_dev_get_client_reg function

2019-08-18 Thread Bibby Hsieh
GCE cannot know the register base address, this function can help cmdq client to get the cmdq_client_reg structure. Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 29 ++ include/linux/soc/mediatek/mtk-cmdq.h | 21 +++ 2 files chan

[PATCH v12 07/12] soc: mediatek: cmdq: reorder the parameter

2019-08-18 Thread Bibby Hsieh
The order of gce instructions is [subsys offset value] so reorder the parameter of cmdq_pkt_write_mask and cmdq_pkt_write function. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 6 +++--- include/linux/soc/mediatek/mtk-cmdq.h | 10 +- 2 fil

[PATCH v12 12/12] arm64: dts: add gce node for mt8183

2019-08-18 Thread Bibby Hsieh
add gce device node for mt8183 Signed-off-by: Bibby Hsieh --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 08274bfcebd8..a81c995bbea9 100644 ---

[PATCH v12 09/12] soc: mediatek: cmdq: define the instruction struct

2019-08-18 Thread Bibby Hsieh
Define an instruction structure for gce driver to append command. This structure can make the client's code more readability. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 105 +++ include/linux/mailbox/mtk-cmdq-mailbox.h | 2

[PATCH v12 01/12] dt-binding: gce: remove thread-num property

2019-08-18 Thread Bibby Hsieh
"thread-num" is an unused property so we remove it from example. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mailbox/mtk-gce.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt b/Documentatio

[PATCH v12 00/12] support gce on mt8183 platform

2019-08-18 Thread Bibby Hsieh
Changes since v11: - correct some data type to avoid type conversion. Changes since v10: - remove subsys-cell from gce device node - use of_parse_phandle_with_fixed_args instead of of_parse_phandle_with_args Changes since v8 and v9: - change the error return code in cmdq_dev_get_client_reg

[PATCH v12 06/12] soc: mediatek: cmdq: clear the event in cmdq initial flow

2019-08-18 Thread Bibby Hsieh
GCE hardware stored event information in own internal sysram, if the initial value in those sysram is not zero value it will cause a situation that gce can wait the event immediately after client ask gce to wait event but not really trigger the corresponding hardware. In order to make sure that th

[PATCH v12 04/12] mailbox: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data

2019-08-18 Thread Bibby Hsieh
The interrupt mask and thread number has positive correlation, so we move the CMDQ_IRQ_MASK into cmdq driver data and calculate it by thread number. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletio

[PATCH v12 03/12] dt-binding: gce: add binding for gce client reg property

2019-08-18 Thread Bibby Hsieh
cmdq driver provide a function that get the relationship of sub system number from device node for client. add specification for #subsys-cells, mediatek,gce-client-reg. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt | 16

  1   2   3   4   >