[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] > { {

[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

[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 ---

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

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

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

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

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;

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

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 >

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

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

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

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

[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, ); + 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 +++

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

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

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

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 > >

[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

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 > >

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

[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 ---

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

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

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 > > >

[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

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

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

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

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

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: > >>> > >>>

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

[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 ++

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

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 > > >

[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):

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

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 > >

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 > > > >

[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

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

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

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 > > >

[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

[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

[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

[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

[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

[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

[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

[PATCH v12 08/12] soc: mediatek: cmdq: change the type of input parameter

2019-08-18 Thread Bibby Hsieh
According to the cmdq hardware design, the subsys is u8, the offset is u16 and the event id is u16. This patch changes the type of subsys, offset and event id to the correct type. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 10 +-

[PATCH v12 05/12] mailbox: mediatek: cmdq: support mt8183 gce function

2019-08-18 Thread Bibby Hsieh
add mt8183 compatible name for supporting gce function Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index

Re: [PATCH v2 0/3] HID: intel-ish-hid: support s2idle and s3 in ish_suspend()

2019-08-18 Thread Srinivas Pandruvada
On Thu, 2019-08-08 at 18:21 +0800, Zhang Lixu wrote: > Currently, the NO_D3 flag is set in ish_probe(), the intel-ish-ipc > driver > puts the ISH into D0i3 when system enter both suspend-to-idle(S0ix) > and > suspend-to-mem(S3). These patches are to put the ISH into D3 when > system > enter S3 and

[GIT] Networking

2019-08-18 Thread David Miller
1) Fix jmp to 1st instruction in x64 JIT, from Alexei Starovoitov. 2) Severl kTLS fixes in mlx5 driver, from Tariq Toukan. 3) Fix severe performance regression due to lack of SKB coalescing of fragments during local delivery, from Guillaume Nault. 4) Error path memory leak in sch_taprio,

[PATCH v2] mtd: rawnand: Fix a memory leak bug

2019-08-18 Thread Wenwen Wang
In nand_scan_bbt(), a temporary buffer 'buf' is allocated through vmalloc(). However, if check_create() fails, 'buf' is not deallocated, leading to a memory leak bug. To fix this issue, free 'buf' before returning the error. Signed-off-by: Wenwen Wang --- drivers/mtd/nand/raw/nand_bbt.c | 10

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

2019-08-18 Thread Zhao, Yakui
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/acrn, which adds the required APIs for the driver and reports the X2APIC caps.

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Paul E. McKenney
On Sun, Aug 18, 2019 at 09:46:23PM -0400, Joel Fernandes wrote: > On Sun, Aug 18, 2019 at 09:41:43PM -0400, Joel Fernandes wrote: > > On Sun, Aug 18, 2019 at 06:21:53PM -0700, Paul E. McKenney wrote: > [snip] > > > > > Also, your commit log's point #2 is "in_irq() implies in_interrupt() > > > > >

Re: [PATCH v2 2/2] PCI: pciehp: Prevent deadlock on disconnect

2019-08-18 Thread Sinan Kaya
On 8/12/2019 10:31 AM, Mika Westerberg wrote: > +int pciehp_card_present_or_link_active(struct controller *ctrl) > { > - return pciehp_card_present(ctrl) || pciehp_check_link_active(ctrl); > + int ret; > + > + ret = pciehp_card_present(ctrl); > + if (ret) > + return

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

2019-08-18 Thread Viresh Kumar
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 > > > requests and the CPUFREQ_ADJUST notifier shall get removed later on. >

Re: How to turn scheduler tick on for current nohz_full CPU?

2019-08-18 Thread Paul E. McKenney
On Tue, Jul 30, 2019 at 10:36:37AM -0700, Paul E. McKenney wrote: > On Tue, Jul 30, 2019 at 06:43:10PM +0200, Frederic Weisbecker wrote: > > On Mon, Jul 29, 2019 at 03:32:38PM -0700, Paul E. McKenney wrote: > > > On Wed, Jul 24, 2019 at 06:12:43PM -0700, Paul E. McKenney wrote: > > > > > > The

RE: [EXT] Re: [v2 1/3] dt/bindings: clk: Add YAML schemas for LS1028A Display Clock bindings

2019-08-18 Thread Wen He
> -Original Message- > From: Stephen Boyd > Sent: 2019年8月17日 1:47 > To: Mark Rutland ; Michael Turquette > ; Rob Herring ; Shawn Guo > ; Wen He ; > devicet...@vger.kernel.org; linux-...@vger.kernel.org; > linux-de...@linux.nxdi.nxp.com; linux-kernel@vger.kernel.org > Cc: Leo Li ;

Re: [PATCH RESEND v4 5/9] KVM: VMX: Add init/set/get functions for SPP

2019-08-18 Thread Yang Weijiang
On Fri, Aug 16, 2019 at 11:19:46AM -0700, Jim Mattson wrote: > On Fri, Aug 16, 2019 at 6:29 AM Yang Weijiang wrote: > > > Thanks Jim and Sean! Could we add a new flag in kvm to identify if nested > > VM is on > > or off? That would make things easier. When VMLAUNCH is trapped, > > set the flag,

Re: [PATCH 2/2] clk: Add support for AST2600 SoC

2019-08-18 Thread Joel Stanley
On Fri, 16 Aug 2019 at 17:14, Stephen Boyd wrote: > > Quoting Joel Stanley (2019-08-16 08:58:06) > > diff --git a/drivers/clk/clk-ast2600.c b/drivers/clk/clk-ast2600.c > > new file mode 100644 > > index ..083d5299238c > > --- /dev/null > > +++ b/drivers/clk/clk-ast2600.c > > @@ -0,0

Re: [RFC V2 10/11] interconnect: mediatek: Add mt8183 interconnect provider driver

2019-08-18 Thread Henry Chen
Hi Georgi, Sorry for late reply. On Tue, 2019-05-14 at 09:43 +0300, Georgi Djakov wrote: > Hi Henry, > > On 4/30/19 11:51, Henry Chen wrote: > > Introduce Mediatek MT8183 specific provider driver using the > > interconnect framework. > > > > Signed-off-by: Henry Chen > > --- > >

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

2019-08-18 Thread Zhao, Yakui
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 reports the X2APIC caps. The remaining patches add the ACRN driver module, which

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Joel Fernandes
On Sun, Aug 18, 2019 at 09:41:43PM -0400, Joel Fernandes wrote: > On Sun, Aug 18, 2019 at 06:21:53PM -0700, Paul E. McKenney wrote: [snip] > > > > Also, your commit log's point #2 is "in_irq() implies in_interrupt() > > > > which implies raising softirq will not do any wake ups." This mention > >

[PATCH v2] 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. Signed-off-by: Zhaoyang Huang --- v2: use __pfn_to_phys/__phys_to_pfn instead of max_pfn as the criteria --- arch/arm/mm/init.c | 5 + 1

Re: [RFC V2 09/11] dt-bindings: interconnect: Add header for interconnect node

2019-08-18 Thread Henry Chen
On Wed, 2019-05-01 at 15:28 -0500, Rob Herring wrote: > On Tue, Apr 30, 2019 at 04:51:03PM +0800, Henry Chen wrote: > > Add header file for mt8183 interconnect node that could be shared between > > the interconeect provider driver and Device Tree source files. > > > > Signed-off-by: Henry Chen >

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Joel Fernandes
On Sun, Aug 18, 2019 at 06:21:53PM -0700, Paul E. McKenney wrote: > On Sun, Aug 18, 2019 at 07:38:39PM -0400, Joel Fernandes wrote: > > On Sun, Aug 18, 2019 at 04:31:35PM -0700, Paul E. McKenney wrote: > > > On Sun, Aug 18, 2019 at 06:35:11PM -0400, Joel Fernandes wrote: > > > > On Sun, Aug 18,

Re: [RFC V2 08/11] dt-bindings: interconnect: add MT8183 interconnect dt-bindings

2019-08-18 Thread Henry Chen
Hi Rob, Sorry for late reply. On Wed, 2019-05-01 at 15:27 -0500, Rob Herring wrote: > On Tue, Apr 30, 2019 at 04:51:02PM +0800, Henry Chen wrote: > > Add interconnect provider dt-bindings for MT8183. > > > > Signed-off-by: Henry Chen > > --- > > .../bindings/interconnect/mtk,mt8183.txt

KMSAN: uninit-value in gp8psk_power_ctrl

2019-08-18 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f75e4cfe kmsan: use kmsan_handle_urb() in urb.c git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=158867eea0 kernel config:

[PATCH] sock: fix potential memory leak in proto_register()

2019-08-18 Thread zhanglin
If protocols registered exceeded PROTO_INUSE_NR, prot will be added to proto_list, but no available bit left for prot in proto_inuse_idx. Signed-off-by: zhanglin --- net/core/sock.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/net/core/sock.c

Re: [RFC V2 06/11] soc: mediatek: add MT8183 dvfsrc support

2019-08-18 Thread Henry Chen
On Mon, 2019-06-10 at 14:00 -0700, Ryan Case wrote: Hi Ryan, Sorry for late reply. > Hi Henry, > > On Tue, Apr 30, 2019 at 2:45 AM Henry Chen wrote: > > > > Add dvfsrc driver for MT8183 > > > > Signed-off-by: Henry Chen > > --- > > drivers/soc/mediatek/Kconfig | 15 ++ > >

[PATCH v2] 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. Signed-off-by: Zhaoyang Huang --- arch/arm/mm/init.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mm/init.c

Re: [PATCH linux-next] qcom: qcs404: remove COMPILE_TEST from CONFIG_INTERCONNECT_QCOM_QCS404

2019-08-18 Thread maowenan
On 2019/8/18 9:09, Stephen Boyd wrote: > Quoting Mao Wenan (2019-08-15 00:48:48) >> 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: >> >>

Re: [RFC v2] rcu/tree: Try to invoke_rcu_core() if in_irq() during unlock

2019-08-18 Thread Paul E. McKenney
On Sun, Aug 18, 2019 at 07:38:39PM -0400, Joel Fernandes wrote: > On Sun, Aug 18, 2019 at 04:31:35PM -0700, Paul E. McKenney wrote: > > On Sun, Aug 18, 2019 at 06:35:11PM -0400, Joel Fernandes wrote: > > > On Sun, Aug 18, 2019 at 06:32:30PM -0400, Joel Fernandes wrote: > > > > On Sun, Aug 18, 2019

Re: [PATCH] iio: adc: sc27xx: Change to polling mode to read data

2019-08-18 Thread Baolin Wang
On Mon, 19 Aug 2019 at 03:27, Jonathan Cameron wrote: > > On Mon, 12 Aug 2019 10:37:44 +0800 > Baolin Wang wrote: > > > On Sun, 11 Aug 2019 at 16:03, Jonathan Cameron wrote: > > > > > > On Tue, 6 Aug 2019 15:39:45 +0800 > > > Baolin Wang wrote: > > > > > > > Hi Jonathan, > > > > > > > > On

RE: [PATCH] clk: imx8mn: fix int pll clk gate

2019-08-18 Thread Peng Fan
Hi Stephen, > Subject: Re: [PATCH] clk: imx8mn: fix int pll clk gate > > Quoting peng@nxp.com (2019-08-13 18:53:12) > > From: Peng Fan > > > > To Frac pll, the gate shift is 13, however to Int PLL the gate shift > > is 11. > > > > Cc: > > Fixes: 96d6392b54db ("clk: imx: Add support for

Re: Why the edge-triggered mode doesn't work for epoll file descriptor?

2019-08-18 Thread Heiher
On Sun, Aug 18, 2019 at 12:36 AM Heiher wrote: > > Hello, > > I've added a pipe file descriptor (fd1) to an epoll (fd3) with > EPOLLOUT in edge-triggered mode, and then added the fd3 to another > epoll (fd4) with EPOLLIN in edge-triggered too. > > Next, waiting for fd4 without timeout. When fd1

Re: [PATCH V1 1/1] serial: 8250_pci: Add F81504A series Support

2019-08-18 Thread Ji-Ze Hong (Peter Hong)
Hi, Andy Shevchenko 於 2019/8/16 下午 07:26 寫道: On Fri, Aug 16, 2019 at 01:27:29PM +0800, Ji-Ze Hong (Peter Hong) wrote: Fintek F81504A/508A/512A is PCIE to 4/8/12 UARTs device. It's support IO/MMIO/PCIE conf to access all functions. The old F81504/508/512 is only support IO. We have

[GIT PULL] FPGA Manager (late) change for 5.3-rc6

2019-08-18 Thread Moritz Fischer
The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga.git/ tags/fpga-fixes-for-5.3 for you to fetch changes up to

linux-next: manual merge of the fsverity tree with the f2fs tree

2019-08-18 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the fsverity tree got a conflict in: fs/f2fs/file.c between commits: d9a94abb3380 ("f2fs: support FS_IOC_{GET,SET}FSLABEL") 546155f73637 ("f2fs: Support case-insensitive file name lookups") from the f2fs tree and commit: 95ae251fe828 ("f2fs: add

Re: [PATCH v2] arm: dts: rockchip: fix vcc_host_5v regulator for usb3 host

2019-08-18 Thread Kever Yang
Hi Heiko, On 2019/8/16 下午8:24, Heiko Stuebner wrote: Hi Kever, TL, [added TL Lim for clarification] Am Donnerstag, 15. August 2019, 10:12:52 CEST schrieb Kever Yang: According to rock64 schemetic V2 and V3, the VCC_HOST_5V output is controlled by USB_20_HOST_DRV, which is the same as

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-18 Thread Andrew Lunn
> Yes, I believe the integration is neccessary. Using same binding is > neccessary for that, but not sufficient. For example, we need > compatible trigger names, too. Hi Pavel Please could you explain what you mean by compatible trigger names? > So... I'd really like to see proper integration

Re: [PATCH v6 1/4] dt-bindings: net: phy: Add subnode for LED configuration

2019-08-18 Thread Andrew Lunn
On Fri, Aug 16, 2019 at 03:04:11PM -0700, Matthias Kaehlcke wrote: > On Fri, Aug 16, 2019 at 10:13:38PM +0200, Pavel Machek wrote: > > Hi! > > > > Please Cc led mailing lists on led issues. > > sorry for missing this > > > On Tue 2019-08-13 12:11:44, Matthias Kaehlcke wrote: > > > The LED

  1   2   3   4   >