[PATCH v2 3/3] arm64: dts: qcom: msm8998: Add gpucc node

2019-06-05 Thread Jeffrey Hugo
Add MSM8998 GPU Clock Controller DT node. Signed-off-by: Jeffrey Hugo --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 574be78a936e..cf00bfeec6b3 100

Re: [PATCH v2 6/7] perf diff: Print the basic block cycles diff

2019-06-05 Thread Jin, Yao
On 6/5/2019 7:44 PM, Jiri Olsa wrote: On Mon, Jun 03, 2019 at 10:36:16PM +0800, Jin Yao wrote: SNIP - break; return setup_compute_opt(option); } @@ -949,6 +953,14 @@ hist_entry__cmp_wdiff(struct perf_hpp_fmt *fmt, }

Re: [PATCH] lib: objagg: Use struct_size() in kzalloc()

2019-06-05 Thread David Miller
From: "Gustavo A. R. Silva" Date: Wed, 5 Jun 2019 09:45:16 -0500 > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct obj

Re: [RFC V2] mm: Generalize notify_page_fault()

2019-06-05 Thread Anshuman Khandual
On 06/05/2019 03:23 AM, Matthew Wilcox wrote: > On Tue, Jun 04, 2019 at 12:04:06PM +0530, Anshuman Khandual wrote: >> +++ b/arch/x86/mm/fault.c >> @@ -46,23 +46,6 @@ kmmio_fault(struct pt_regs *regs, unsigned long addr) >> return 0; >> } >> >> -static nokprobe_inline int kprobes_fault(st

Re: [RFC PATCH 8/9] LSM: x86/sgx: Introduce ->enclave_load() hook for Intel SGX

2019-06-05 Thread Sean Christopherson
On Tue, Jun 04, 2019 at 02:43:09PM -0700, Xing, Cedric wrote: > > From: Christopherson, Sean J > > Sent: Tuesday, June 04, 2019 1:37 PM > > > > On Tue, Jun 04, 2019 at 01:29:10PM -0700, Andy Lutomirski wrote: > > > On Fri, May 31, 2019 at 4:32 PM Sean Christopherson > > > wrote: > > > > static i

Re: KASAN: use-after-free Read in tomoyo_realpath_from_path

2019-06-05 Thread Tetsuo Handa
Here is a reproducer. The problem is that TOMOYO is accessing already freed socket from security_file_open() which later fails with -ENXIO (because we can't get file descriptor of sockets via /proc/pid/fd/n interface), and the file descriptor is getting released before security_file_open() compl

Re: [PATCH v2] ARM: configs: Remove useless UEVENT_HELPER_PATH

2019-06-05 Thread Shawn Guo
On Tue, Jun 04, 2019 at 10:14:53AM +0200, Krzysztof Kozlowski wrote: > Remove the CONFIG_UEVENT_HELPER_PATH because: > 1. It is disabled since commit 1be01d4a5714 ("driver: base: Disable >CONFIG_UEVENT_HELPER by default") as its dependency (UEVENT_HELPER) was >made default to 'n', > 2. It i

[RFC PATCH v2 1/5] mm: Introduce vm_ops->may_mprotect()

2019-06-05 Thread Sean Christopherson
SGX will use the may_mprotect() hook to prevent userspace from circumventing various security checks, e.g. Linux Security Modules. Naming it may_mprotect() instead of simply mprotect() is intended to reflect the hook's purpose as a way to gate mprotect() as opposed to a wholesale replacement. Encl

[RFC PATCH v2 5/5] security/selinux: Add enclave_load() implementation

2019-06-05 Thread Sean Christopherson
The goal of selinux_enclave_load() is to provide a facsimile of the existing selinux_file_mprotect() and file_map_prot_check() policies, but tailored to the unique properties of SGX. For example, an enclave page is technically backed by a MAP_SHARED file, but the "file" is essentially shared memor

[RFC PATCH v2 3/5] x86/sgx: Enforce noexec filesystem restriction for enclaves

2019-06-05 Thread Sean Christopherson
Do not allow an enclave page to be mapped with PROT_EXEC if the source vma does not have VM_MAYEXEC. This effectively enforces noexec as do_mmap() clears VM_MAYEXEC if the vma is being loaded from a noexec path, i.e. prevents executing a file by loading it into an enclave. Checking noexec indirect

[RFC PATCH v2 4/5] LSM: x86/sgx: Introduce ->enclave_load() hook for Intel SGX

2019-06-05 Thread Sean Christopherson
enclave_load() is roughly analogous to the existing file_mprotect(). Due to the nature of SGX and its Enclave Page Cache (EPC), all enclave VMAs are backed by a single file, i.e. /dev/sgx/enclave, that must be MAP_SHARED. Furthermore, all enclaves need read, write and execute VMAs. As a result,

[RFC PATCH v2 0/5] security: x86/sgx: SGX vs. LSM

2019-06-05 Thread Sean Christopherson
This series is the result of a rather absurd amount of discussion over how to get SGX to play nice with LSM policies, without having to resort to evil shenanigans or put undue burden on userspace. Discussions are still ongoing, e.g. folks are exploring alternatives to changing the proposed SGX UAP

[RFC PATCH v2 2/5] x86/sgx: Require userspace to define enclave pages' protection bits

2019-06-05 Thread Sean Christopherson
Existing Linux Security Module policies restrict userspace's ability to map memory, e.g. may require priveleged permissions to map a page that is simultaneously writable and executable. Said permissions are often tied to the file which backs the mapped memory, i.e. vm_file. For reasons explained

Re: [PATCH] arm64: dts: imx8mm: Move gic node into soc node

2019-06-05 Thread Shawn Guo
On Mon, Jun 03, 2019 at 09:50:20AM +0800, anson.hu...@nxp.com wrote: > From: Anson Huang > > GIC is inside of SoC from architecture perspective, it should > be located inside of soc node in DT. > > Signed-off-by: Anson Huang It doesn't apply to my imx/dt64 branch. Please generate it against t

Re: [PATCHv3 1/2] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast()

2019-06-05 Thread Pingfan Liu
On Thu, Jun 6, 2019 at 5:49 AM Andrew Morton wrote: > > On Wed, 5 Jun 2019 17:10:19 +0800 Pingfan Liu wrote: > > > As for FOLL_LONGTERM, it is checked in the slow path > > __gup_longterm_unlocked(). But it is not checked in the fast path, which > > means a possible leak of CMA page to longterm p

Re: [PATCH 1/2] mm/large system hash: use vmalloc for size > MAX_ORDER when !hashdist

2019-06-05 Thread Nicholas Piggin
Andrew Morton's on June 6, 2019 7:22 am: > On Thu, 6 Jun 2019 00:48:13 +1000 Nicholas Piggin wrote: > >> The kernel currently clamps large system hashes to MAX_ORDER when >> hashdist is not set, which is rather arbitrary. >> >> vmalloc space is limited on 32-bit machines, but this shouldn't >>

[PATCH] alignment:fetch pc-instr before irq_enable

2019-06-05 Thread xiaoqian
When the instruction code under PC address is read through _probe_kernel_read in do_alignment,if the pte page corresponding to the code segment of PC address is reclaimed exactly at this time, the address mapping cannot be reconstructed because page fault_disable() is executed in _probe_kernel_read

Re: [PATCH] Input: alps: Drop unlikely before IS_ERR(_OR_NULL)

2019-06-05 Thread Joe Perches
On Thu, 2019-06-06 at 09:08 +0800, Kefeng Wang wrote: > On 2019/6/5 22:42, Pali Rohár wrote: > > On Wednesday 05 June 2019 22:24:28 Kefeng Wang wrote: > > > IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag, > > > so no need to do that again from its callers. Drop it. > > Hi! I already r

Re: [PATCH v3] USB: move usb debugfs directory creation to the usb common core

2019-06-05 Thread Chunfeng Yun
On Wed, 2019-06-05 at 14:44 +0200, Greg Kroah-Hartman wrote: > The USB gadget subsystem wants to use the USB debugfs root directory, so > move it to the common "core" USB code so that it is properly initialized > and removed as needed. > > In order to properly do this, we need to load the common c

Re: [RFC V2] mm: Generalize notify_page_fault()

2019-06-05 Thread Anshuman Khandual
On 06/05/2019 04:49 PM, Michael Ellerman wrote: > Anshuman Khandual writes: >> Similar notify_page_fault() definitions are being used by architectures >> duplicating much of the same code. This attempts to unify them into a >> single implementation, generalize it and then move it to a common place

[PATCH RESEND] arm64: dts: imx8mm: Move gic node into soc node

2019-06-05 Thread Anson . Huang
From: Anson Huang GIC is inside of SoC from architecture perspective, it should be located inside of soc node in DT. Signed-off-by: Anson Huang --- Resend the patch based on Shawn's imx/dt64 branch. --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 18 +- 1 file changed, 9 insert

RE: [PATCH] arm64: dts: imx8mm: Move gic node into soc node

2019-06-05 Thread Anson Huang
Hi, Shawn > -Original Message- > From: Shawn Guo > Sent: Thursday, June 6, 2019 10:18 AM > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; Leonard Crestez > ; Aisheng Dong ; > viresh.ku...@linaro.org; Ja

Re: [RFC V2] mm: Generalize notify_page_fault()

2019-06-05 Thread Anshuman Khandual
On 06/05/2019 04:53 PM, Matthew Wilcox wrote: > On Wed, Jun 05, 2019 at 09:19:22PM +1000, Michael Ellerman wrote: >> Anshuman Khandual writes: >>> Similar notify_page_fault() definitions are being used by architectures >>> duplicating much of the same code. This attempts to unify them into a >>

Re: [PATCH RESEND] arm64: dts: imx8mm: Move gic node into soc node

2019-06-05 Thread Shawn Guo
On Thu, Jun 06, 2019 at 10:39:36AM +0800, anson.hu...@nxp.com wrote: > From: Anson Huang > > GIC is inside of SoC from architecture perspective, it should > be located inside of soc node in DT. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH] sched/fair: Introduce fits_capacity()

2019-06-05 Thread Viresh Kumar
On 05-06-19, 10:16, Quentin Perret wrote: > Hi Viresh, > > On Tuesday 04 Jun 2019 at 12:31:52 (+0530), Viresh Kumar wrote: > > The same formula to check utilization against capacity (after > > considering capacity_margin) is already used at 5 different locations. > > > > This patch creates a new

Re: [PATCH V2 1/2] DT: mailbox: add binding doc for the ARM SMC mailbox

2019-06-05 Thread Florian Fainelli
On 6/3/2019 10:18 AM, Andre Przywara wrote: > On Mon, 3 Jun 2019 17:56:51 +0100 > Sudeep Holla wrote: > > Hi, > >> On Mon, Jun 03, 2019 at 09:22:16AM -0700, Florian Fainelli wrote: >>> On 6/3/19 1:30 AM, peng@nxp.com wrote: From: Peng Fan The ARM SMC mailbox binding desc

[RESEND][PATCH v3 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-06-05 Thread Ran Wang
When DWC3 is set to host mode by programming register DWC3_GCTL, VBUS (or its control signal) will be turned on immediately on related Root Hub ports. Then, the VBUS is turned off for a little while(15us) when do xhci reset (conducted by xhci driver) and back to normal finally, we can observe a neg

[RESEND][PATCH v3 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-06-05 Thread Ran Wang
When DWC3 is set to host mode by programming register DWC3_GCTL, VBUS (or its control signal) will turn on immediately on related Root Hub ports. Then the VBUS will be de-asserted for a little while during xhci reset (conducted by xhci driver) for a little while and back to normal. This VBUS glitc

Re: [PATCH v6 09/10] usb: roles: add USB Type-B GPIO connector driver

2019-06-05 Thread Chunfeng Yun
On Wed, 2019-06-05 at 11:45 +0300, Andy Shevchenko wrote: > On Wed, May 29, 2019 at 10:44 AM Chunfeng Yun > wrote: > > > > Due to the requirement of usb-connector.txt binding, the old way > > using extcon to support USB Dual-Role switch is now deprecated > > when use Type-B connector. > > This pa

[PATCH V1 0/6] USB: serial: f81232: Add F81534A support

2019-06-05 Thread Ji-Ze Hong (Peter Hong)
This series patches will add Fintek F81532A/534A/535/536 support and refactoring some source code. The Fintek F81532A/534A/535/536 is USB-to-2/4/8/12 serial ports device. It cotains a HUB, a GPIO device and 2/4/8/12 serial ports. The F81534A series will default enable only HUB & GPIO device when p

[PATCH V1 6/6] USB: serial: f81232: Add gpiolib to GPIO device

2019-06-05 Thread Ji-Ze Hong (Peter Hong)
The Fintek F81534A series contains 3 GPIOs per UART and The max GPIOs is 12x3 = 36 GPIOs. Signed-off-by: Ji-Ze Hong (Peter Hong) --- drivers/usb/serial/f81232.c | 210 1 file changed, 210 insertions(+) diff --git a/drivers/usb/serial/f81232.c b/drive

[PATCH V1 1/6] USB: serial: f81232: Add F81534A support

2019-06-05 Thread Ji-Ze Hong (Peter Hong)
The Fintek F81532A/534A/535/536 is USB-to-2/4/8/12 serial ports device. It's most same with F81232, the UART device is difference as follow: 1. TX/RX bulk size is 128/512bytes 2. RX bulk layout change: F81232: [LSR(1Byte)+DATA(1Byte)][LSR(1Byte)+DATA(1Byte)]...

[PATCH V1 3/6] USB: serial: f81232: Add generator for F81534A

2019-06-05 Thread Ji-Ze Hong (Peter Hong)
The Fintek F81534A series is contains 1 HUB / 1 GPIO device / n UARTs, but the UART is default disable and need enabled by GPIO device(2c42/16F8). When F81534A plug to host, we can only see 1 HUB & 1 GPIO device, add GPIO device USB interface to device_list and trigger generate worker, f81534a_gene

[PATCH V1 2/6] USB: serial: f81232: Force F81534A with RS232 mode

2019-06-05 Thread Ji-Ze Hong (Peter Hong)
Force F81534A series UARTs with RS232 mode in port_probe(). Signed-off-by: Ji-Ze Hong (Peter Hong) --- drivers/usb/serial/f81232.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c index 84efcc66aa56..75dfc0b9ef30 10064

[PATCH V1 4/6] USB: serial: f81232: Add tx_empty function

2019-06-05 Thread Ji-Ze Hong (Peter Hong)
Add tx_empty() function for F81232 & F81534A series. Signed-off-by: Ji-Ze Hong (Peter Hong) --- drivers/usb/serial/f81232.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c index e9470fb0d691..7d1ec8f9d168 100644 -

Re: [PATCH] sched/fair: Introduce fits_capacity()

2019-06-05 Thread Viresh Kumar
On 04-06-19, 08:59, Peter Oskolkov wrote: > On Tue, Jun 4, 2019 at 12:02 AM Viresh Kumar wrote: > > > > The same formula to check utilization against capacity (after > > considering capacity_margin) is already used at 5 different locations. > > > > This patch creates a new macro, fits_capacity(),

[PATCH V1 5/6] USB: serial: f81232: Use devm_kzalloc

2019-06-05 Thread Ji-Ze Hong (Peter Hong)
Use devm_kzalloc() to replace kzalloc(). Signed-off-by: Ji-Ze Hong (Peter Hong) --- drivers/usb/serial/f81232.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c index 7d1ec8f9d168..708d85c7d822 100644 ---

RE: [RFC PATCH v2 1/3] vfio: Use capability chains to handle device specific irq

2019-06-05 Thread Tian, Kevin
> From: kra...@redhat.com > Sent: Wednesday, June 5, 2019 6:10 PM > > Hi, > > > > Really need to split for different planes? I'd like a > > > VFIO_IRQ_SUBTYPE_GFX_DISPLAY_EVENT > > > so user space can probe change for all. > > > User space can choose to user different handlers according to the

Re: [BISECTED REGRESSION] b43legacy broken on G4 PowerBook

2019-06-05 Thread Larry Finger
On 6/5/19 5:50 PM, Aaro Koskinen wrote: Hi, When upgrading from v5.0 -> v5.1 on G4 PowerBook, I noticed WLAN does not work anymore: [ 42.004303] b43legacy-phy0: Loading firmware version 0x127, patch level 14 (2005-04-18 02:36:27) [ 42.184837] b43legacy-phy0 debug: Chip initialized [ 42.1

[PATCH] ftrace: fix NULL pointer dereference in free_ftrace_func_mapper()

2019-06-05 Thread Wei Li
The mapper may be NULL when called from register_ftrace_function_probe() with probe->data == NULL. This issue can be reproduced as follow (it may be coverd by compiler optimization sometime): / # cat /sys/kernel/debug/tracing/set_ftrace_filter all functions enabled / # echo foo_bar:dum

Re: [PATCH v3 net-next 00/17] PTP support for the SJA1105 DSA driver

2019-06-05 Thread Richard Cochran
On Wed, Jun 05, 2019 at 09:08:54PM +0300, Vladimir Oltean wrote: > Currently I'm using a cyclecounter, but I *will* need actual PHC > manipulations for the time-based shaping and policing features that > the switch has in hardware. Okay. > On the other hand I get much tighter sync > offset using

Re: [Question] panic when write file cpuset.cpus

2019-06-05 Thread Chen Zhou
+Cc linux-kernel@vger.kernel.org On 2019/6/6 11:04, Chen Zhou wrote: > Hi all, > > I hit the following issue in linux 4.4 which is hard to reproduce. > > [20190527221106][bsp_pci_device_get_bar]--- pBasePhyAddr :3a00800, > len:400 --- > [20190527221106]Unable to handle kernel paging re

Re: [PATCH 1/2] media: v4l2-core: Shifting signed 32-bit value by 31 bits error

2019-06-05 Thread Randy Dunlap
On 6/5/19 2:53 PM, Shuah Khan wrote: > Fix the following cppcheck error: > > Checking drivers/media/v4l2-core/v4l2-ioctl.c ... > [drivers/media/v4l2-core/v4l2-ioctl.c:1370]: (error) Shifting signed 32-bit > value by 31 bits is undefined behaviour > > Signed-off-by: Shuah Khan > --- > drivers/m

RE: [PATCH V2 1/2] DT: mailbox: add binding doc for the ARM SMC mailbox

2019-06-05 Thread Peng Fan
> Subject: Re: [PATCH V2 1/2] DT: mailbox: add binding doc for the ARM SMC > mailbox > > On Mon, 3 Jun 2019 17:56:51 +0100 > Sudeep Holla wrote: > > Hi, > > > On Mon, Jun 03, 2019 at 09:22:16AM -0700, Florian Fainelli wrote: > > > On 6/3/19 1:30 AM, peng@nxp.com wrote: > > > > From: Peng Fa

Re: Loan grant @affordable rate

2019-06-05 Thread Loan Grant
Hello Dear, We are a large Company based in Istanbul Turkey and we offers flexible loans and funding for all projects for as low as 2% interest rate per annum for a period of 5-15 yrs . We invite you to partner with us and benefit in our new Loan and Project funding program. We can approve a

RE: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox

2019-06-05 Thread Peng Fan
> Subject: Re: [PATCH V2 2/2] mailbox: introduce ARM SMC based mailbox > > On 6/3/19 1:30 AM, peng@nxp.com wrote: > > From: Peng Fan > > > > This mailbox driver implements a mailbox which signals transmitted > > data via an ARM smc (secure monitor call) instruction. The mailbox > > receiver i

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-06-05 Thread Sameer Pujar
Sorry for late reply. [Resending the reply since delivery failed for few recipients] On 5/6/2019 9:20 PM, Vinod Koul wrote: On 06-05-19, 18:34, Sameer Pujar wrote: On 5/4/2019 3:53 PM, Vinod Koul wrote: On 02-05-19, 18:59, Sameer Pujar wrote: On 5/2/2019 5:55 PM, Vinod Koul wrote: On 02-05-1

Re: general protection fault in rb_erase (2)

2019-06-05 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:156c0591 Merge tag 'linux-kselftest-5.2-rc4' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15790062a0 kernel config: https://syzkaller.appspot.com/x/.config?x=60564c

Re: [PATCH] firmware: ti_sci: Add support for processor control

2019-06-05 Thread Lokesh Vutla
On 06/06/19 4:03 AM, Suman Anna wrote: > Texas Instrument's System Control Interface (TI-SCI) Message Protocol > is used in Texas Instrument's System on Chip (SoC) such as those > in K3 family AM654 SoC to communicate between various compute > processors with a central system controller entity.

Re: [PATCH v2 6/7] perf diff: Print the basic block cycles diff

2019-06-05 Thread Jin, Yao
On 6/5/2019 7:44 PM, Jiri Olsa wrote: On Mon, Jun 03, 2019 at 10:36:16PM +0800, Jin Yao wrote: perf record -b ./div perf record -b ./div Following is the default perf diff output # perf diff # Event 'cycles' # # Baseline Delta Abs Shared Object Symbol # .

[PATCH v2] kbuild: use more portable 'command -v' for cc-cross-prefix

2019-06-05 Thread Masahiro Yamada
To print the pathname that will be used by shell in the current environment, 'command -v' is a standardized way. [1] 'which' is also often used in scripts, but it is less portable. When I worked on commit bd55f96fa9fc ("kbuild: refactor cc-cross-prefix implementation"), I was eager to use 'comman

[PATCH -next] phy: usb: phy-brcm-usb: Fix platform_no_drv_owner.cocci warnings

2019-06-05 Thread YueHaibing
Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: YueHaibing --- drivers/phy/broadcom/phy-brcm-usb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/phy/broadcom/phy-brcm-usb.c b/drivers/ph

Re: rcu_read_lock lost its compiler barrier

2019-06-05 Thread Herbert Xu
On Tue, Jun 04, 2019 at 08:30:39PM -0700, Paul E. McKenney wrote: > > Understood. Does the patch I sent out a few hours ago cover it? Or is > something else needed? It looks good to me. > Other than updates to the RCU requirements documentation, which is > forthcoming. Thanks Paul. -- Email:

[PATCH v2] arm64: dts: qcom: Add Dragonboard 845c

2019-06-05 Thread Bjorn Andersson
This adds an initial dts for the Dragonboard 845. Supported functionality includes Debug UART, UFS, USB-C (peripheral), USB-A (host), microSD-card and Bluetooth. Initializing the SMMU is clearing the mapping used for the splash screen framebuffer, which causes the board to reboot. This can be work

memory leak in rawv6_sendmsg

2019-06-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:c50bbf61 Merge tag 'platform-drivers-x86-v5.2-2' of git://.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14e86bf8a0 kernel config: https://syzkaller.appspot.com/x/.config?x=61dd9e15a761691d da

RE: [PATCH v3] PCI: xilinx-nwl: Fix Multi MSI data programming

2019-06-05 Thread Bharat Kumar Gogada
> On 31/05/2019 17:09, Lorenzo Pieralisi wrote: > > [+Marc] > > > > On Wed, May 29, 2019 at 06:07:49PM +0530, Bharat Kumar Gogada wrote: > >> The current Multi MSI data programming fails if multiple end points > >> requesting MSI and multi MSI are connected with switch, i.e the > >> current multi M

Re: rcu_read_lock lost its compiler barrier

2019-06-05 Thread Herbert Xu
On Tue, Jun 04, 2019 at 10:44:18AM -0400, Alan Stern wrote: > > Currently the LKMM says the test is allowed and there is a data race, > but this answer clearly is wrong since it would violate the RCU > guarantee. Thank you! This is what I tried to say all along in this thread but you expressed i

[UPDATE][PATCH v4] HID: intel-ish-hid: fix wrong driver_data usage

2019-06-05 Thread Srinivas Pandruvada
From: Hyungwoo Yang Currently, in suspend() and resume(), ishtp client drivers are using driver_data to get "struct ishtp_cl_device" object which is set by bus driver. It's wrong since the driver_data should not be owned bus. driver_data should be owned by the corresponding ishtp client driver. D

Re: [PATCH V2 4/4] arm64/mm: Drop local variable vm_fault_t from __do_page_fault()

2019-06-05 Thread Anshuman Khandual
On 06/04/2019 08:26 PM, Catalin Marinas wrote: > On Mon, Jun 03, 2019 at 12:11:25PM +0530, Anshuman Khandual wrote: >> __do_page_fault() is over complicated with multiple goto statements. This >> cleans up the code flow and while there drops local variable vm_fault_t. > > I'd change the subject

Re: [PATCH] sg: fix a double-fetch bug in sg_write()

2019-06-05 Thread Jiri Slaby
On 05. 06. 19, 17:35, Gen Zhang wrote: > On Wed, Jun 05, 2019 at 08:41:11AM +0200, Jiri Slaby wrote: >> On 31. 05. 19, 3:27, Gen Zhang wrote: >>> In sg_write(), the opcode of the command is fetched the first time from >>> the userspace by __get_user(). Then the whole command, the opcode >>> inclu

[PATCH] ASoC: rt1011: Mark format integer literals as unsigned

2019-06-05 Thread Nathan Chancellor
Clang warns: sound/soc/codecs/rt1011.c:1291:12: warning: integer literal is too large to be represented in type 'long', interpreting as 'unsigned long' per C89; this literal will have type 'long long' in C99 onwards [-Wc99-compat] format = 2147483648; /* 2^24 * 128 */

RE: [PATCH v7 0/6] Introduced new Cadence USBSS DRD Driver.

2019-06-05 Thread Pawel Laszczak
>On 6/5/2019 17:03, Pawel Laszczak wrote: >> This patch introduces new Cadence USBSS DRD driver to Linux kernel. >> >> The Cadence USBSS DRD Driver is a highly configurable IP Core which >> can be instantiated as Dual-Role Device (DRD), Peripheral Only and >> Host Only (XHCI)configurations. >> >The

Quation needed For June Inquiry

2019-06-05 Thread Jpexcc Salesi
Hello dear, We are in the market for your products after meeting at your stand during last expo. Please kindly send us your latest catalog and price list so as to start a new project/order as promised during the exhibition. I would appreciate your response about the above details required

Re: [PATCH v4 1/2] HID: quirks: Refactor ELAN 400 and 401 handling

2019-06-05 Thread Lee Jones
On Tue, 23 Apr 2019, Jeffrey Hugo wrote: > There needs to be coordination between hid-quirks and the elan_i2c driver > about which devices are handled by what drivers. Currently, both use > whitelists, which results in valid devices being unhandled by default, > when they should not be rejected b

Re: KASAN: use-after-free Read in tomoyo_realpath_from_path

2019-06-05 Thread Tetsuo Handa
Tetsuo Handa wrote: > The problem is that TOMOYO is accessing already freed socket from > security_file_open() > which later fails with -ENXIO (because we can't get file descriptor of > sockets via > /proc/pid/fd/n interface), and the file descriptor is getting released before > security_file_ope

[PATCH] scsi: lpfc: Avoid unused function warnings

2019-06-05 Thread Nathan Chancellor
When building powerpc pseries_defconfig or powernv_defconfig: drivers/scsi/lpfc/lpfc_nvmet.c:224:1: error: unused function 'lpfc_nvmet_get_ctx_for_xri' [-Werror,-Wunused-function] drivers/scsi/lpfc/lpfc_nvmet.c:246:1: error: unused function 'lpfc_nvmet_get_ctx_for_oxid' [-Werror,-Wunused-function]

Re: [PATCH 1/2] mfd: core: Support multiple OF child devices of the same type

2019-06-05 Thread Lee Jones
On Wed, 05 Jun 2019, Robert Hancock wrote: > On 2019-06-05 12:45 p.m., Lee Jones wrote: > diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h > index 99c0395..470f6cb 100644 > --- a/include/linux/mfd/core.h > +++ b/include/linux/mfd/core.h > @@ -55,6 +55,9 @@

Re: [PATCH] mm: Remove VM_BUG_ON in __alloc_pages_node

2019-06-05 Thread Michal Hocko
On Wed 05-06-19 21:25:01, Bharath Vedartham wrote: > IMO the reason why a lot of failures must not have occured in the past > might be because the programs which use it use stuff like cpu_to_node or > have checks for nid. > If one day we do get a program which passes an invalid node id without > VM

[PATCH v2 3/3] KVM: LAPIC: Ignore timer migration when lapic timer is injected by posted-interrupt

2019-06-05 Thread Wanpeng Li
From: Wanpeng Li When lapic timer is injected by posted-interrupt, the emulated timer is offload to the housekeeping cpu. The timer interrupt will be delivered properly, no need to migrate timer. Cc: Paolo Bonzini Cc: Radim Krčmář Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 3 ++- 1

[PATCH v2 0/3] KVM: LAPIC: Implement Exitless Timer

2019-06-05 Thread Wanpeng Li
Dedicated instances are currently disturbed by unnecessary jitter due to the emulated lapic timers fire on the same pCPUs which vCPUs resident. There is no hardware virtual timer on Intel for guest like ARM. Both programming timer in guest and the emulated timer fires incur vmexits. This patchset

[PATCH v2 2/3] KVM: LAPIC: lapic timer interrupt is injected by posted interrupt

2019-06-05 Thread Wanpeng Li
From: Wanpeng Li Dedicated instances are currently disturbed by unnecessary jitter due to the emulated lapic timers fire on the same pCPUs which vCPUs resident. There is no hardware virtual timer on Intel for guest like ARM. Both programming timer in guest and the emulated timer fires incur vme

[PATCH v2 1/3] KVM: LAPIC: Make lapic timer unpinned when timer is injected by posted-interrupt

2019-06-05 Thread Wanpeng Li
From: Wanpeng Li Make lapic timer unpinned when timer is injected by posted-interrupt, the emulated timer can be offload to the housekeeping cpus. The host admin should fine tuned, e.g. dedicated instances scenario w/ nohz_full cover the pCPUs which vCPUs resident, several pCPUs surplus for ho

Re: [PATCH 2/3] KVM: LAPIC: lapic timer is injected by posted interrupt

2019-06-05 Thread Wanpeng Li
On Wed, 5 Jun 2019 at 20:30, Paolo Bonzini wrote: > > On 05/06/19 12:09, Wanpeng Li wrote: > > +static void apic_timer_expired_pi(struct kvm_lapic *apic) > > +{ > > + struct kvm_timer *ktimer = &apic->lapic_timer; > > + > > + kvm_apic_local_deliver(apic, APIC_LVTT); > > + if (apic_lvtt

WARNING: refcount bug in css_task_iter_next

2019-06-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b2924447 Add linux-next specific files for 20190605 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=11c492d2a0 kernel config: https://syzkaller.appspot.com/x/.config?x=4248d6bc70076f7d

Re: [PATCH] kbuild: s390, do not remove autogenerated headers on clean

2019-06-05 Thread Jiri Slaby
On 05. 06. 19, 13:29, Masahiro Yamada wrote: > This issue had already been fixed by the side-effect of > another patch, which is in linux-next. Great, thanks. > See this: > > > commit 10077c9f2dae1afabab2808a0326ecf3e8e5a82c > Author: Masahiro Yamada > Date: Fri May 17 16:54:27 2019 +0900 >

linux-next: manual merge of the pidfd tree with Linus' tree

2019-06-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the pidfd tree got a conflict in: tools/testing/selftests/pidfd/pidfd_test.c between commit: 1fcd0eb356ad ("tests: fix pidfd-test compilation") from Linus' tree and commit: 233ad92edbea ("pidfd: add polling selftests") from the pidfd tree. I fixed i

Re: [PATCH V1] i2c: busses: tegra: Add suspend-resume support

2019-06-05 Thread Bitan Biswas
On 5/31/19 5:43 AM, Dmitry Osipenko wrote: 31.05.2019 11:50, Bitan Biswas пишет: On 5/30/19 4:27 AM, Dmitry Osipenko wrote: 30.05.2019 8:55, Bitan Biswas пишет: Post suspend I2C registers have power on reset values. Before any transfer initialize I2C registers to prevent I2C transfer time

Re: [PATCH 1/3] KVM: LAPIC: Make lapic timer unpinned when timer is injected by posted-interrupt

2019-06-05 Thread Wanpeng Li
On Wed, 5 Jun 2019 at 21:04, Paolo Bonzini wrote: > > On 05/06/19 12:09, Wanpeng Li wrote: > > +static inline bool posted_interrupt_inject_timer(struct kvm_vcpu *vcpu) > > +{ > > + return (kvm_x86_ops->pi_inject_timer_enabled(vcpu) && > > + kvm_mwait_in_guest(vcpu->kvm)); > > +} >

Re: [PATCH] mtd: spi-nor: Add prep/unprep for spi_nor_resume

2019-06-05 Thread Tudor.Ambarus
Hi, Han, On 04/25/2019 12:08 AM, Han Xu wrote: > External E-Mail > > > In the new implemented spi_nor_resume function, the spi_nor_init() > should be braced by prep/unprep functions._ > Would you please explain why this is needed? Have you tried a suspend/resume cycle while a write was in prog

Re: [PATCH v4 2/2] arm64: dts: qcom: Add Lenovo Miix 630

2019-06-05 Thread Lee Jones
On Tue, 23 Apr 2019, Jeffrey Hugo wrote: > This adds the initial DT for the Lenovo Miix 630 laptop. Supported > functionality includes USB (host), microSD-card, keyboard, and trackpad. > > Signed-off-by: Jeffrey Hugo > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > .../boot/dts

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-05 Thread John Hubbard
On 6/5/19 6:45 PM, ira.we...@intel.com wrote: > From: Ira Weiny > > ... V1,000,000 ;-) > > Pre-requisites: > John Hubbard's put_user_pages() patch series.[1] > Jan Kara's ext4_break_layouts() fixes[2] > > Based on the feedback from LSFmm and the LWN article which resulted. I've >

[PATCH V2] i2c: busses: tegra: Add suspend-resume support

2019-06-05 Thread Bitan Biswas
Post suspend I2C registers have power on reset values. Before any transfer initialize I2C registers to prevent I2C transfer timeout and implement suspend and resume callbacks needed. Fix below errors post suspend: 1) Tegra I2C transfer timeout during jetson tx2 resume: [ 27.520613] pca953x 1-00

Re: [PATCH 1/2] arm64: tegra: add ACONNECT, ADMA and AGIC nodes

2019-06-05 Thread Sameer Pujar
On 6/4/2019 2:37 PM, Jon Hunter wrote: On 06/05/2019 12:58, Sameer Pujar wrote: Add DT nodes for following devices on Tegra186 and Tegra194 * ACONNECT * ADMA * AGIC Signed-off-by: Sameer Pujar --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 67 arch/a

Re: [PATCH 01/16] firmware: ti_sci: Add resource management APIs for ringacc, psi-l and udma

2019-06-05 Thread Lokesh Vutla
Hi Peter, On 06/05/19 6:04 PM, Peter Ujfalusi wrote: > Signed-off-by: Peter Ujfalusi Patch has the following checkpatch warnings and checks which can be fixed: WARNING: Missing commit description - Add an appropriate one CHECK: Lines should not end with a '(' #262: FILE: drivers/firmware/ti_sc

Re: [PATCH 12/16] mm: consolidate the get_user_pages* implementations

2019-06-05 Thread John Hubbard
On 6/1/19 12:49 AM, Christoph Hellwig wrote: > Always build mm/gup.c, and move the nommu versions and replace the > separate stubs for various functions by the default ones, with the _fast > version always falling back to the slow path because gup_fast_permitted > always returns false now if HAVE_F

Re: rcu_read_lock lost its compiler barrier

2019-06-05 Thread Paul E. McKenney
On Thu, Jun 06, 2019 at 12:51:09PM +0800, Herbert Xu wrote: > On Tue, Jun 04, 2019 at 10:44:18AM -0400, Alan Stern wrote: > > > > Currently the LKMM says the test is allowed and there is a data race, > > but this answer clearly is wrong since it would violate the RCU > > guarantee. > > Thank you

Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-05 Thread 禹舟键
PING ufo19890607 于2019年5月30日周四 下午9:29写道: > > From: yuzhoujian > > One can just record callchains in the kernel or user space with > this new options. We can use it together with "--all-kernel" options. > This two options is used just like print_stack(sys) or print_ustack(usr) > for systemtap. >

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-06-05 Thread Peter Ujfalusi
Hi Sameer, On 06/06/2019 6.49, Sameer Pujar wrote: > Sorry for late reply. > [Resending the reply since delivery failed for few recipients] > I discussed this internally with HW folks and below is the reason why > DMA needs > to know FIFO size. > > - FIFOs reside in peripheral device(ADMAIF), whi

Re: rcu_read_lock lost its compiler barrier

2019-06-05 Thread Herbert Xu
On Wed, Jun 05, 2019 at 11:05:11PM -0700, Paul E. McKenney wrote: > > In case you were wondering, the reason that I was giving you such > a hard time was that from what I could see, you were pushing for no > {READ,WRITE}_ONCE() at all. ;-) Hmm, that's exactly what it should be in net/ipv4/inet_fr

Re: [RFC v2 0/5] cgroup-aware unbound workqueues

2019-06-05 Thread Mike Rapoport
Hi Tejun, On Wed, Jun 05, 2019 at 06:53:19AM -0700, Tejun Heo wrote: > Hello, Daniel. > > On Wed, Jun 05, 2019 at 09:36:45AM -0400, Daniel Jordan wrote: > > My use case for this work is kernel multithreading, the series formerly > > known > > as ktask[2] that I'm now trying to combine with padat

Re: [5.2.0-rcx] Bluetooth: hci0: unexpected event for opcode

2019-06-05 Thread Marcel Holtmann
Hi Joerg, > In 5.2.0-rcx I see a new error message on startup probably after > loading the Bluetooth firmware: > [1.609460] Bluetooth: hci0: unexpected event for opcode 0xfc2f > >> dmesg | grep Bluetooth > [0.130969] Bluetooth: Core ver 2.22 > [0.130973] Bluetooth: HCI device and conn

Re: [PATCH RFC 03/10] mm/gup: Pass flags down to __gup_device_huge* calls

2019-06-05 Thread Christoph Hellwig
On Wed, Jun 05, 2019 at 06:45:36PM -0700, ira.we...@intel.com wrote: > From: Ira Weiny > > In order to support checking for a layout lease on a FS DAX inode these > calls need to know if FOLL_LONGTERM was specified. > > Prepare for this with this patch. The GUP fast argument passing is a mess.

Re: [PATCH 12/16] mm: consolidate the get_user_pages* implementations

2019-06-05 Thread Christoph Hellwig
On Wed, Jun 05, 2019 at 11:01:17PM -0700, John Hubbard wrote: > I started reviewing this one patch, and it's kind of messy figuring out > if the code motion preserves everything because of > all the consolidation from other places, plus having to move things in > and out of the ifdef blocks. So I

Re: [PATCH v2] arm64: dts: qcom: Add Dragonboard 845c

2019-06-05 Thread Vinod Koul
On 05-06-19, 21:38, Bjorn Andersson wrote: > This adds an initial dts for the Dragonboard 845. Supported > functionality includes Debug UART, UFS, USB-C (peripheral), USB-A > (host), microSD-card and Bluetooth. > > Initializing the SMMU is clearing the mapping used for the splash screen > framebuf

Re: [PATCH V2] drivers: i2c: tegra: fix checkpatch defects

2019-06-05 Thread Bitan Biswas
On 5/31/19 5:45 AM, Dmitry Osipenko wrote: 31.05.2019 12:04, Bitan Biswas пишет: On 5/30/19 4:43 AM, Dmitry Osipenko wrote: 30.05.2019 14:36, Dmitry Osipenko пишет: 30.05.2019 9:14, Bitan Biswas пишет: Fix checkpatch.pl warning(s)/error(s)/check(s) in i2c-tegra.c except for BUG/BUG_ON ch

Re: [PATCH 08/13] IB/iser: set virt_boundary_mask in the scsi host

2019-06-05 Thread Christoph Hellwig
On Wed, Jun 05, 2019 at 05:22:35PM -0300, Jason Gunthorpe wrote: > On Wed, Jun 05, 2019 at 09:08:31PM +0200, Christoph Hellwig wrote: > > This ensures all proper DMA layer handling is taken care of by the > > SCSI midlayer. > > Maybe not entirely related to this series, but it looks like the SCSI

[PATCH V3] drivers: i2c: tegra: fix checkpatch defects

2019-06-05 Thread Bitan Biswas
Fix checkpatch.pl warning(s)/error(s)/check(s) in i2c-tegra.c Remove redundant BUG_ON calls or replace with WARN_ON_ONCE as needed. Replace BUG() with error handling code. Signed-off-by: Bitan Biswas --- drivers/i2c/busses/i2c-tegra.c | 66 +++--- 1 file chan

RE: [PATCH 0/3] (Qualcomm) UFS device reset support

2019-06-05 Thread Avri Altman
> > On Wed 05 Jun 02:32 PDT 2019, Avri Altman wrote: > > > > > > > On Tue 04 Jun 22:50 PDT 2019, Avri Altman wrote: > > > > > > > Hi, > > > > > > > > > > > > > > On Tue, Jun 4, 2019 at 12:22 AM Bjorn Andersson > > > > > wrote: > > > > > > > > > > > > This series exposes the ufs_reset line as a g

Re: [PATCH v6 09/10] usb: roles: add USB Type-B GPIO connector driver

2019-06-05 Thread Andy Shevchenko
On Thu, Jun 6, 2019 at 5:53 AM Chunfeng Yun wrote: > > On Wed, 2019-06-05 at 11:45 +0300, Andy Shevchenko wrote: > > On Wed, May 29, 2019 at 10:44 AM Chunfeng Yun > > wrote: > > > > > > Due to the requirement of usb-connector.txt binding, the old way > > > using extcon to support USB Dual-Role s

Re: [PATCH 1/2] media: v4l2-core: Shifting signed 32-bit value by 31 bits error

2019-06-05 Thread Hans Verkuil
On 6/6/19 5:22 AM, Randy Dunlap wrote: > On 6/5/19 2:53 PM, Shuah Khan wrote: >> Fix the following cppcheck error: >> >> Checking drivers/media/v4l2-core/v4l2-ioctl.c ... >> [drivers/media/v4l2-core/v4l2-ioctl.c:1370]: (error) Shifting signed 32-bit >> value by 31 bits is undefined behaviour >> >>

<    4   5   6   7   8   9   10   >