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

[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

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

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

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

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

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

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 >

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 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 = >lapic_timer; > > + > > + kvm_apic_local_deliver(apic, APIC_LVTT); > > + if

[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

[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

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

[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

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 >

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

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

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

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 >

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

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

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

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

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

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

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

[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

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

[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

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

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

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

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

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

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

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

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

[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

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 [

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

[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

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

[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

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

[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

[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

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

[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

[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

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

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: [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] 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;

[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

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

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

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

[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

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

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

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

[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

[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

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

[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

[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

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

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

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

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

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

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

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,

[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

[PATCH v2 2/3] clk: qcom: Add MSM8998 GPU Clock Controller (GPUCC) driver

2019-06-05 Thread Jeffrey Hugo
The GPUCC manages the clocks for the Adreno GPU found on MSM8998. Signed-off-by: Jeffrey Hugo --- drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/gpucc-msm8998.c | 356 +++ 3 files changed, 365 insertions(+)

[PATCH v2 1/3] dt-bindings: clock: Document gpucc for msm8998

2019-06-05 Thread Jeffrey Hugo
The GPU for msm8998 has its own clock controller. Document it. Signed-off-by: Jeffrey Hugo --- .../devicetree/bindings/clock/qcom,gpucc.txt | 4 ++- .../dt-bindings/clock/qcom,gpucc-msm8998.h| 29 +++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644

Re: [PATCH v2] ARM: config: Remove left-over BACKLIGHT_LCD_SUPPORT

2019-06-05 Thread Shawn Guo
On Tue, Jun 04, 2019 at 09:24:21AM +0200, Krzysztof Kozlowski wrote: > The CONFIG_BACKLIGHT_LCD_SUPPORT was removed in commit 8c5dc8d9f19c > ("video: backlight: Remove useless BACKLIGHT_LCD_SUPPORT kernel > symbol"). Options protected by CONFIG_BACKLIGHT_LCD_SUPPORT are now > available directly. >

[PATCH v2 0/3] MSM8998 GPUCC Support

2019-06-05 Thread Jeffrey Hugo
The Adreno GPU on MSM8998 has its own clock controller, which is a dependency for bringing up the GPU. This series gets the gpucc all in place as another step on the road to getting the GPU enabled. v2: -drop desd code Jeffrey Hugo (3): dt-bindings: clock: Document gpucc for msm8998 clk:

[PATCH] staging: rtl8723bs: CleanUp to remove the error reported by checkpatch

2019-06-05 Thread Shobhit Kukreti
Cleaned up the code to remove the error "(foo*)" should be "(foo *)" reported by checkpatch from the file rtl8723bs/os_dep/ioctl_linux.c Signed-off-by: Shobhit Kukreti --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 32 +- 1 file changed, 16 insertions(+), 16

Re: [PATCH v2 4/7] perf diff: Use hists to manage basic blocks per symbol

2019-06-05 Thread Jin, Yao
On 6/5/2019 7:44 PM, Jiri Olsa wrote: On Mon, Jun 03, 2019 at 10:36:14PM +0800, Jin Yao wrote: SNIP data__for_each_file_new(i, d) { pair = get_pair_data(he, d); if (!pair) @@ -510,6 +683,9 @@ static void

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

2019-06-05 Thread ira . weiny
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 decided to take a slightly different tack on this problem.

[PATCH RFC 06/10] fs/ext4: Teach dax_layout_busy_page() to operate on a sub-range

2019-06-05 Thread ira . weiny
From: Ira Weiny Callers of dax_layout_busy_page() are only rarely operating on the entire file of concern. Teach dax_layout_busy_page() to operate on a sub-range of the address_space provided. Specifying 0 - ULONG_MAX however, will continue to operate on the "entire file" and XFS is split out

[PATCH RFC 02/10] fs/locks: Export F_LAYOUT lease to user space

2019-06-05 Thread ira . weiny
From: Ira Weiny GUP longterm pins of non-pagecache file system pages (eg FS DAX) are currently disallowed because they are unsafe. The danger for pinning these pages comes from the fact that hole punch and/or truncate of those files results in the pages being mapped and pinned by a user space

[PATCH RFC 05/10] fs/ext4: Teach ext4 to break layout leases

2019-06-05 Thread ira . weiny
From: Ira Weiny ext4 needs to break a layout lease if it is held to inform a user holding a layout lease that a truncate is about to happen. This allows the user knowledge of, and choice in how to handle, some other thread attempting to modify a file they are actively using. Split out the

[PATCH RFC 07/10] fs/ext4: Fail truncate if pages are GUP pinned

2019-06-05 Thread ira . weiny
From: Ira Weiny If pages are actively gup pinned fail the truncate operation. Signed-off-by: Ira Weiny --- fs/ext4/inode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 75f543f384e4..1ded83ec08c0 100644 --- a/fs/ext4/inode.c +++

[PATCH RFC 09/10] fs/xfs: Fail truncate if pages are GUP pinned

2019-06-05 Thread ira . weiny
From: Ira Weiny If pages are actively gup pinned fail the truncate operation. To support an application who wishes to removing a pin upon SIGIO reception we must change the order of breaking layout leases with respect to DAX layout leases. Check for a GUP pin on the page being truncated and

[PATCH RFC 10/10] mm/gup: Remove FOLL_LONGTERM DAX exclusion

2019-06-05 Thread ira . weiny
From: Ira Weiny Now that there is a mechanism for users to safely take LONGTERM pins on FS DAX pages, remove the FS DAX exclusion from GUP with FOLL_LONGTERM. Special processing remains in effect for CONFIG_CMA Signed-off-by: Ira Weiny --- mm/gup.c | 78

[PATCH RFC 08/10] fs/xfs: Teach xfs to use new dax_layout_busy_page()

2019-06-05 Thread ira . weiny
From: Ira Weiny dax_layout_busy_page() can now operate on a sub-range of the address_space provided. Have xfs specify the sub range to dax_layout_busy_page() Signed-off-by: Ira Weiny --- fs/xfs/xfs_file.c | 19 +-- fs/xfs/xfs_inode.h | 5 +++-- fs/xfs/xfs_ioctl.c | 15

[PATCH RFC 04/10] mm/gup: Ensure F_LAYOUT lease is held prior to GUP'ing pages

2019-06-05 Thread ira . weiny
From: Ira Weiny On FS DAX files users must inform the file system they intend to take long term GUP pins on the file pages. Failure to do so should result in an error. Ensure that a F_LAYOUT lease exists at the time the GUP call is made. If not return EPERM. Signed-off-by: Ira Weiny ---

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

2019-06-05 Thread ira . weiny
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. Signed-off-by: Ira Weiny --- mm/gup.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-)

[PATCH RFC 01/10] fs/locks: Add trace_leases_conflict

2019-06-05 Thread ira . weiny
From: Ira Weiny Signed-off-by: Ira Weiny --- fs/locks.c | 20 ++- include/trace/events/filelock.h | 35 + 2 files changed, 50 insertions(+), 5 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index

  1   2   3   4   5   6   7   8   9   10   >