Re: [PATCH 01/12] mmc: dt-bindings: update Mediatek MMC bindings

2017-10-01 Thread Ulf Hansson
[...] >> > >> > Required properties: >> > >> > -- compatible: Should be "mediatek,mt8173-mmc","mediatek,mt8135-mmc" >> > >> > +- compatible: value should be either of the following. >> > >> > + "mediatek,mt8135-mmc": for mmc host ip compatible with mt8135 >> > >> > + "mediatek,mt8173-mmc": fo

[PATCH v4 06/10] arm64: kexec_file: create purgatory

2017-10-01 Thread AKASHI Takahiro
This is a basic purgatory, or a kind of glue code between the two kernels, for arm64. Since purgatory is assumed to be relocatable (not executable) object by kexec generic code, arch_kexec_apply_relocations_add() is required in general. Arm64's purgatory, however, is a simple asm and all the refer

[PATCH v4 08/10] arm64: kexec_file: set up for crash dump adding elf core header

2017-10-01 Thread AKASHI Takahiro
load_crashdump_segments() creates and loads a memory segment of elf core header for crash dump. "linux,usable-memory-range" and "linux,elfcorehdr" will add to the 2nd kernel's device-tree blob. The logic of this cod is also from kexec-tools. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc

[PATCH v4 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-10-01 Thread AKASHI Takahiro
arch_kexec_kernel_*() and arch_kimage_file_post_load_cleanup can now be duplicated among some architectures, so let's factor them out. Signed-off-by: AKASHI Takahiro Cc: Dave Young Cc: Vivek Goyal Cc: Baoquan He Cc: Michael Ellerman Cc: Thiago Jung Bauermann --- arch/powerpc/kernel/kexec_el

Purchase Order Copy

2017-10-01 Thread Aldaz
Dear Sir Please find the attached copy of Purchase order with the item details and confirm with us immediately Thank you Aldaz <>

[PATCH v4 07/10] arm64: kexec_file: load initrd, device-tree and purgatory segments

2017-10-01 Thread AKASHI Takahiro
load_other_segments() sets up and adds all the memory segments necessary other than kernel, including initrd, device-tree blob and purgatory. Most of the code was borrowed from kexec-tools' counterpart. arch_kimage_kernel_post_load_cleanup() is meant to free arm64-specific data allocated for loadi

[PATCH v4 09/10] arm64: enable KEXEC_FILE config

2017-10-01 Thread AKASHI Takahiro
Modify arm64/Kconfig and Makefile to enable kexec_file_load support. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/Kconfig | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0df64a6a56d4.

[PATCH v4 10/10] arm64: kexec_file: add Image format support

2017-10-01 Thread AKASHI Takahiro
The "Image" binary will be loaded at the offset of TEXT_OFFSET from the start of system memory. TEXT_OFFSET is determined from the header of the image. Regarding kernel signature verification, it will be done through verify_pefile_signature() as arm64's "Image" binary can be seen as in PE format.

[PATCH v4 05/10] asm-generic: add kexec_file_load system call to unistd.h

2017-10-01 Thread AKASHI Takahiro
The initial user of this system call number is arm64. Signed-off-by: AKASHI Takahiro Acked-by: Arnd Bergmann --- include/uapi/asm-generic/unistd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index

[PATCH v4 04/10] kexec_file: factor out crashdump elf header function from x86

2017-10-01 Thread AKASHI Takahiro
prepare_elf_headers() can also be useful for other architectures, including arm64. So let it factored out. Signed-off-by: AKASHI Takahiro Cc: Dave Young Cc: Vivek Goyal Cc: Baoquan He --- arch/x86/kernel/crash.c | 324 include/linux/kexec.h |

[PATCH v4 02/10] resource: add walk_system_ram_res_rev()

2017-10-01 Thread AKASHI Takahiro
This function, being a variant of walk_system_ram_res() introduced in commit 8c86e70acead ("resource: provide new functions to walk through resources"), walks through a list of all the resources of System RAM in reversed order, i.e., from higher to lower. It will be used in kexec_file implementati

[PATCH v4 01/10] include: pe.h: remove message[] from mz header definition

2017-10-01 Thread AKASHI Takahiro
message[] field won't be part of the definition of mz header. This change is crucial for enabling kexec_file_load on arm64 because arm64's "Image" binary, as in PE format, doesn't have any data for it and accordingly the following check in pefile_parse_binary() will fail: chkaddr(cursor,

[PATCH v4 00/10] arm64: kexec: add kexec_file_load() support

2017-10-01 Thread AKASHI Takahiro
This is the fourth round of implementing kexec_file_load() support on arm64.[1] Most of the code is based on kexec-tools (along with some kernel code from x86, which also came from kexec-tools). This patch series enables us to * load the kernel, Image, with kexec_file_load system call, and *

Re: [PATCH][next] mlxsw: spectrum: fix uninitialized value in err

2017-10-01 Thread David Miller
From: Colin King Date: Sun, 1 Oct 2017 17:27:35 +0100 > From: Colin Ian King > > In the unlikely event that mfc->mfc_un.res.ttls[i] is 255 for all > values of i from 0 to MAXIVS-1, the err is not set at all and hence > has a garbage value on the error return at the end of the function, > so in

Re: [PATCH] MAINTAINERS: Remove myself as reviewer

2017-10-01 Thread Michal Simek
On 27.9.2017 23:23, Soren Brinkmann wrote: > This address is gonna bounce in the not too far away future. > > Signed-off-by: Soren Brinkmann > --- > MAINTAINERS | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index dc3ff3aaa588..4502f016be12 100644 > --- a/MA

Re: [PATCH] net: hns3: Fix an error handling path in 'hclge_rss_init_hw()'

2017-10-01 Thread David Miller
From: Christophe JAILLET Date: Sat, 30 Sep 2017 07:34:34 +0200 > If this sanity check fails, we must free 'rss_indir'. Otherwise there is a > memory leak. > 'goto err' as done in the other error handling paths to fix it. > > Fixes: 46a3df9f9718 ("net: hns3: Fix for setting rss_size incorrectly")

Re: [PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-10-01 Thread David Miller
From: David Miller Date: Sun, 01 Oct 2017 22:54:19 -0700 (PDT) > From: Avinash Repaka > Date: Fri, 29 Sep 2017 18:13:50 -0700 > >> This patch fixes the scope of has_fr and has_fmr variables as they are >> needed only in rds_ib_add_one(). >> >> Signed-off-by: Avinash Repaka > > Applied. Actu

Re: [PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-10-01 Thread David Miller
From: Avinash Repaka Date: Fri, 29 Sep 2017 18:13:50 -0700 > This patch fixes the scope of has_fr and has_fmr variables as they are > needed only in rds_ib_add_one(). > > Signed-off-by: Avinash Repaka Applied.

Re: [PATCH v2 net] net: mvpp2: Fix clock resource by adding an optional bus clock

2017-10-01 Thread David Miller
From: Gregory CLEMENT Date: Fri, 29 Sep 2017 14:27:39 +0200 > On Armada 7K/8K we need to explicitly enable the bus clock. The bus clock > is optional because not all the SoCs need them but at least for Armada > 7K/8K it is actually mandatory. > > The binding documentation is updating accordingly

Re: [PATCH V4] r8152: add Linksys USB3GIGV1 id

2017-10-01 Thread David Miller
From: Grant Grundler Date: Thu, 28 Sep 2017 11:35:00 -0700 > This linksys dongle by default comes up in cdc_ether mode. > This patch allows r8152 to claim the device: >Bus 002 Device 002: ID 13b1:0041 Linksys > > Signed-off-by: Grant Grundler Applied, thanks.

Re: [PATCH 00/18] use ARRAY_SIZE macro

2017-10-01 Thread Greg KH
On Sun, Oct 01, 2017 at 08:52:20PM -0400, Jérémy Lefaure wrote: > On Mon, 2 Oct 2017 09:01:31 +1100 > "Tobin C. Harding" wrote: > > > > In order to reduce the size of the To: and Cc: lines, each patch of the > > > series is sent only to the maintainers and lists concerned by the patch. > > > This

Re: [PATCH net 3/3] net: skb_queue_purge(): lock/unlock the queue only once

2017-10-01 Thread Michael Witten
On Sun, 1 Oct 2017 17:59:09 -0700, Stephen Hemminger wrote: > On Sun, 01 Oct 2017 22:19:20 - Michael Witten wrote: > >> +spin_lock_irqsave(&q->lock, flags); >> +skb = q->next; >> +__skb_queue_head_init(q); >> +spin_unlock_irqrestore(&q->lock, flags); > > Other code manipulating

Re: [PATCH 04/18] IB/mlx5: Use ARRAY_SIZE

2017-10-01 Thread Leon Romanovsky
On Sun, Oct 01, 2017 at 03:30:42PM -0400, Jérémy Lefaure wrote: > Using the ARRAY_SIZE macro improves the readability of the code. > > Found with Coccinelle with the following semantic patch: > @r depends on (org || report)@ > type T; > T[] E; > position p; > @@ > ( > (sizeof(E)@p /sizeof(*E)) > |

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Dave Chinner
On Sun, Oct 01, 2017 at 07:42:42PM -0400, Mimi Zohar wrote: > On Mon, 2017-10-02 at 09:34 +1100, Dave Chinner wrote: > > On Sun, Oct 01, 2017 at 11:41:48AM -0700, Linus Torvalds wrote: > > > On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar > > > wrote: > > > > > > > > Right, re-introducing the iint->mu

Re: [PATCH v16 3/5] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-10-01 Thread Michael S. Tsirkin
Looks good to me. minor comments below. On Sat, Sep 30, 2017 at 12:05:52PM +0800, Wei Wang wrote: > @@ -141,13 +146,128 @@ static void set_page_pfns(struct virtio_balloon *vb, > page_to_balloon_pfn(page) + i); > } > > + > +static void kick_and_wait(struct

Re: [PATCH 2/6] ath9k: add a quirk to set use_msi automatically

2017-10-01 Thread Daniel Drake
Hi AceLan, On Thu, Sep 28, 2017 at 4:28 PM, AceLan Kao wrote: > Hi Daniel, > > I've tried your patch, but it doesn't work for me. > Wifi can scan AP, but can't get connected. Can you please clarify which patch(es) you have tried? This is the base patch which adds the infrastructure to request s

[PATCH v2] rpmsg: Allow RPMSG_VIRTIO to be enabled via menuconfig or defconfig

2017-10-01 Thread Anup Patel
Currently, RPMSG_VIRTIO can only be enabled if some other kconfig option selects it. This does not allow it to be enabled for virtualized systems where Virtio RPMSG is available over Virtio MMIO or PCI transport. This patch updates RPMSG_VIRTIO kconfig option so that we can enable the VirtIO RPMSG

Re: [PATCH 01/18] sound: use ARRAY_SIZE

2017-10-01 Thread Joe Perches
On Sun, 2017-10-01 at 15:30 -0400, Jérémy Lefaure wrote: > Using the ARRAY_SIZE macro improves the readability of the code. > > Found with Coccinelle with the following semantic patch: > @r depends on (org || report)@ > type T; > T[] E; > position p; > @@ > ( > (sizeof(E)@p /sizeof(*E)) > > > >

[PATCH] platform/x86: peaq-wmi: Blacklist Lenovo ideapad 700-15ISK

2017-10-01 Thread Kai-Heng Feng
peaq-wmi on Lenovo ideapad 700-15ISK keeps sending KEY_SOUND, which makes user's repeated keys gets interrupted. The system does not have Dolby button, let's blacklist it. BugLink: https://bugs.launchpad.net/bugs/1720219 Signed-off-by: Kai-Heng Feng --- drivers/platform/x86/peaq-wmi.c | 19

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Dave Chinner
On Sun, Oct 01, 2017 at 04:15:07PM -0700, Linus Torvalds wrote: > On Sun, Oct 1, 2017 at 3:34 PM, Dave Chinner wrote: > > > > We already have a change counter on the inode, which is modified on > > any data or metadata write (i_version) under filesystem locks. The > > i_version counter has well d

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Eric W. Biederman
Mimi Zohar writes: > On Mon, 2017-10-02 at 09:34 +1100, Dave Chinner wrote: >> On Sun, Oct 01, 2017 at 11:41:48AM -0700, Linus Torvalds wrote: >> > On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar >> > wrote: >> > > >> > > Right, re-introducing the iint->mutex and a new i_generation field in >> > > t

Re: [PATCH] powernv: Add OCC driver to mmap sensor area

2017-10-01 Thread Stewart Smith
Shilpasri G Bhat writes: > This driver provides interface to mmap the OCC sensor area > to userspace to parse and read OCC inband sensors. Why? Is this for debug? If so, the existing exports interface should be used. If there's actual sensors, we already have two ways of exposing sensors to Lin

Re: [RFC][PATCH] KEYS: Replace uid/gid/perm permissions checking with ACL

2017-10-01 Thread Eric Biggers
Hi David, On Wed, Sep 27, 2017 at 12:41:41PM +0100, David Howells wrote: > > Replace the uid/gid/perm permissions checking on a key with an ACL to > allow > the SETATTR permission to be split. The problem is that SETATTR covers a > slew of things, not all of which should be grou

[Patch v4 14/22] CIFS: SMBD: Implement function to send data via RDMA send

2017-10-01 Thread Long Li
From: Long Li The transport doesn't maintain send buffers or send queue for transferring payload via RDMA send. There is no data copy in the transport on send. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 248 fs/cifs/smbdirect.h | 4 +

[Patch v4 02/22] CIFS: SMBD: Establish SMBDirect connection

2017-10-01 Thread Long Li
From: Long Li Add code to implement the core functions to establish a SMBDirect connection. 1. Establish an RDMA connection to SMB server. 2. Negotiate and setup SMBDirect protocol. 3. Implement idle connection timer and credit management. Add to Makefile. Signed-off-by: Long Li --- fs/cifs/

[Patch v4 01/22] CIFS: SMBD: Add SMBDirect protocol initial values and constants

2017-10-01 Thread Long Li
From: Long Li To prepare for protocol implementation, add constants and user-configurable values in the SMBDirect protocol. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 77 + fs/cifs/smbdirect.h | 21 +++ 2 files changed, 98 i

[Patch v4 06/22] CIFS: SMBD: Upper layer connects to SMBDirect session

2017-10-01 Thread Long Li
From: Long Li When "rdma" is specified in the mount option, CIFS attempts to connect to SMBDirect instead of TCP socket. Signed-off-by: Long Li --- fs/cifs/connect.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index b5a575f..94b635

[Patch v4 07/22] CIFS: SMBD: Implement function to reconnect to a SMBDirect transport

2017-10-01 Thread Long Li
From: Long Li Add function to implement a reconnect to SMBDirect. This involves tearing down the current connection and establishing/negotiating a new connection. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 36 fs/cifs/smbdirect.h | 3 +++ 2 files cha

[Patch v4 11/22] CIFS: SMBD: Set SMBDirect maximum read or write size for I/O

2017-10-01 Thread Long Li
From: Long Li When connecting over SMBDirect, the transport negotiates its maximum I/O sizes with the server and determines how to choose to do RDMA send/recv vs read/write. Expose these maximum I/O sizes to upper layer so we will get the correct sized payloads. Signed-off-by: Long Li --- fs/c

[Patch v4 08/22] CIFS: SMBD: Upper layer reconnects to SMBDirect session

2017-10-01 Thread Long Li
From: Long Li Do a reconnect on SMBDirect when it is used as the connection. Reconnect can happen for many reasons and it's mostly the decision of upper layer SMB2. Signed-off-by: Long Li --- fs/cifs/connect.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/cifs/con

[Patch v4 21/22] CIFS: SMBD: Upper layer performs SMB read via RDMA write through memory registration

2017-10-01 Thread Long Li
From: Long Li If I/O size is larger than rdma_readwrite_threshold, use RDMA write for SMB read by specifying channel SMB2_CHANNEL_RDMA_V1 or SMB2_CHANNEL_RDMA_V1_INVALIDATE in the SMB packet, depending on SMB dialect used. Append a smbd_buffer_descriptor_v1 to the end of the SMB packet and fill i

[Patch v4 12/22] CIFS: SMBD: Implement function to receive data via RDMA receive

2017-10-01 Thread Long Li
From: Long Li On the receive path, the transport maintains receive buffers and a reassembly queue for transferring payload via RDMA recv. There is data copy in the transport on recv when it copies the payload to upper layer. The transport recognizes the RFC1002 header length use in the SMB upper

[Patch v4 10/22] CIFS: SMBD: Upper layer destroys SMBDirect session on shutdown or umount

2017-10-01 Thread Long Li
From: Long Li When CIFS wants to umount, call shutdown on transport when SMBDirect is used. Signed-off-by: Long Li --- fs/cifs/connect.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 26ad706..1a9f22f 100644 --- a/fs/cifs/connect.c +++ b/fs

[Patch v4 04/22] CIFS: SMBD: Add rdma mount option

2017-10-01 Thread Long Li
From: Long Li Add "rdma" to CIFS mount options to connect to SMB Direct. Add checks to validate this is used on SMB 3.X dialects. To connect to SMBDirect, use "mount.cifs -o rdma,vers=3.x". At the time of this patch, 3.x can be 3.0, 3.02 or 3.1.1. Signed-off-by: Long Li --- fs/cifs/cifs_debug

[Patch v4 05/22] CIFS: SMBD: Implement function to create a SMBDirect connection

2017-10-01 Thread Long Li
From: Long Li The upper layer calls this function to connect to peer through SMBDirect. Each SMBDirect connection is based on a RC Queue Pair. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 17 + fs/cifs/smbdirect.h | 4 2 files changed, 21 insertions(+) diff --git a/f

[Patch v4 16/22] CIFS: SMBD: Fix the definition for SMB2_CHANNEL_RDMA_V1_INVALIDATE

2017-10-01 Thread Long Li
From: Long Li The channel value for requesting server remote invalidating local memory registration should be 0x0002 Signed-off-by: Long Li --- fs/cifs/smb2pdu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 393ed5f..f783a08

[Patch v4 03/22] CIFS: SMBD: export protocol initial values

2017-10-01 Thread Long Li
From: Long Li Those values can be configured by user. Export them to /proc/fs/cifs. Signed-off-by: Long Li --- fs/cifs/cifs_debug.c | 70 1 file changed, 70 insertions(+) diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 9727e1

[Patch v4 22/22] CIFS: SMBD: Add SMBDirect debug counters

2017-10-01 Thread Long Li
From: Long Li Export SMBDirect debug counters to /proc/fs/cifs/DebugData. Those are used for debugging, troubleshooting and profiling. Signed-off-by: Long Li --- fs/cifs/cifs_debug.c | 87 1 file changed, 87 insertions(+) diff --git a/fs/c

[Patch v4 09/22] CIFS: SMBD: Implement function to destroy a SMBDirect connection

2017-10-01 Thread Long Li
From: Long Li Add function to tear down a SMBDirect connection. This is used by upper layer to free all SMBDirect connection and transport resources. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 16 fs/cifs/smbdirect.h | 3 +++ 2 files changed, 19 insertions(+) diff --gi

[Patch v4 19/22] CIFS: SMBD: Add parameter rdata to smb2_new_read_req

2017-10-01 Thread Long Li
From: Long Li This patch is for preparing upper layer for doing SMB read via RDMA write. When we assemble the SMB read packet header, we need to know the I/O layout if this request is to use a RDMA write. rdata has all the information we need for memory registration. Add rdata to smb2_new_read_r

[Patch v4 00/22] CIFS: Implement SMBDirect

2017-10-01 Thread Long Li
From: Long Li Starting with SMB2 dialect 3.0, Microsoft introduced SMBDirect transport protocol for transferring upper layer (SMB2) payload over RDMA via Infiniband, RoCE or iWARP. The prococol is published in [MS-SMBD] (https://msdn.microsoft.com/en-us/library/hh536346.aspx). Patch v2 added RDM

[Patch v4 13/22] CIFS: SMBD: Upper layer receives data via RDMA receive

2017-10-01 Thread Long Li
From: Long Li With SMBDirect connected, use it for receiving data via RDMA receive. Signed-off-by: Long Li --- fs/cifs/connect.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 1a9f22f..8026682 100644 --- a/fs/cifs/connect.c +

[Patch v4 17/22] CIFS: SMBD: Implement RDMA memory registration

2017-10-01 Thread Long Li
From: Long Li Memory registration is used for transferring payload via RDMA read or write. After I/O is done, memory registrations are recovered and reused. This process can be time consuming and is done in a work queue. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 428

[Patch v4 15/22] CIFS: SMBD: Upper layer sends data via RDMA send

2017-10-01 Thread Long Li
From: Long Li With SMBDirect connected, use it for sending data via RDMA send. Signed-off-by: Long Li --- fs/cifs/transport.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 7efbab0..3a9b5a0 100644 --- a/fs/cifs/transport.c +++ b/fs/ci

[Patch v4 20/22] CIFS: SMBD: Read correct returned data length for RDMA write (SMB read) I/O

2017-10-01 Thread Long Li
From: Long Li This patch is for preparing upper layer for doing SMB read via RDMA write. When RDMA write is used for SMB read, the returned data length is in DataRemaining in the response packet. Reading it properly by adding a parameter to specifiy where the returned data length is. Signed-off

[Patch v4 18/22] CIFS: SMBD: Upper layer performs SMB write via RDMA read through memory registration

2017-10-01 Thread Long Li
From: Long Li When sending I/O, if size is larger than rdma_readwrite_threshold we prepare to send SMB write packet for a RDMA read via memory registration. The actual I/O is done by remote peer through local RDMA hardware. Modify the relevant fields in the packet accordingly, and append a smbd_b

[PATCH v3 07/10] arm: dts: mt7623: add iommu and jpecdec nodes

2017-10-01 Thread Ryder Lee
This patch adds iommu and jpecdec nodes for MT7623. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 74 +++ 1 file changed, 74 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index a877f9a..b257715 100

[PATCH v3 06/10] arm: dts: mt7623: add subsystem clock controller nodes

2017-10-01 Thread Ryder Lee
This patch adds missing susbsystem clock controllers nodes for MT7623. (e.g., mmsys, imgsys, vdecsys and bdpsys) Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/a

[PATCH v3 05/10] arm: dts: mt7623: update pio, usb and crypto nodes

2017-10-01 Thread Ryder Lee
This patch updates pio, usb and crypto nodes to make them be consistent with the binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm

[PATCH v3 02/10] arm: dts: mt2701: enable display pwm backlight

2017-10-01 Thread Ryder Lee
From: Weiqing Kong This patch adds board related config for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701-evb.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/mt

[PATCH v3 04/10] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-10-01 Thread Ryder Lee
This patch adds interrupt-names property in audio node so that binding can be agnostic of the IRQ order. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 4 +++- arch/arm/boot/dts/mt7623.dtsi | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/m

[PATCH v3 03/10] arm: dts: mt2701: add display subsystem related nodes

2017-10-01 Thread Ryder Lee
From: YT Shen This patch adds the device nodes for MT2701 DISP function blocks. Signed-off-by: YT Shen Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 75 +++ 1 file changed, 75 insertions(+) diff --git a/arch/arm/b

[PATCH v3 00/10] update MT7623 and MT2701 dts

2017-10-01 Thread Ryder Lee
Hi Matthias, This patch series adds/corrects some device nodes for both MT7623 and MT2701. changes since v3: - revert PIO register space. changes since v2: - move non-common part and non-display related nodes to different patches. - remove unused wdma node. - add display related nodes for MT2701

[PATCH v3 08/10] arm: dts: mt7623: add display subsystem related nodes

2017-10-01 Thread Ryder Lee
This patch adds the device nodes for the display function blocks. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 94 +++ 1 file changed, 94 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index b25771

[PATCH v3 01/10] arm: dts: mt2701: add pwm backlight device node

2017-10-01 Thread Ryder Lee
From: Weiqing Kong This patch adds the device node for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boo

[PATCH v3 10/10] arm: dts: mt7623: add PCIe related nodes

2017-10-01 Thread Ryder Lee
This patch adds devices nodes and updates pinmux setting for the PICe function block. Just note that PCIe port2 PHY is shared with U3 port. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 108 ++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts |

[PATCH v3 09/10] arm: dts: mt7623: enable bananapi-r2 display function

2017-10-01 Thread Ryder Lee
This patch adds missing MIPI pin macros in mt7623-pinfunc.h and enables pwm backlight support for bananapi-r2. Signed-off-by: Ryder Lee Acked-by: Linus Walleij --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 41 +-- include/dt-bindings/pinctrl/mt7623-pinfunc.h | 12

Re: [PATCH v2 2/2] cpufreq: schedutil: consolidate capacity margin calculation

2017-10-01 Thread Joel Fernandes
Hi Leo, On Sun, Oct 1, 2017 at 5:30 PM, Leo Yan wrote: > Scheduler CFS class has variable 'capacity_margin' to calculate the s/calculate/represent/ ? > capacity margin, and schedutil governor also needs to compensate the > same margin for frequency tipping point. Below are formulas used in > CF

Re: [PATCH net 3/3] net: skb_queue_purge(): lock/unlock the queue only once

2017-10-01 Thread Stephen Hemminger
On Sun, 01 Oct 2017 22:19:20 - Michael Witten wrote: > + spin_lock_irqsave(&q->lock, flags); > + skb = q->next; > + __skb_queue_head_init(q); > + spin_unlock_irqrestore(&q->lock, flags); Other code manipulating lists uses splice operation and a sk_buff_head temporary on the s

Re: [PATCH v3 4/8] platform/x86: wmi: create character devices when requested by drivers

2017-10-01 Thread Darren Hart
On Sat, Sep 30, 2017 at 10:12:05AM +0200, Greg Kroah-Hartman wrote: > On Fri, Sep 29, 2017 at 06:52:28PM -0700, Darren Hart wrote: > > > > On Wed, Sep 27, 2017 at 11:02:16PM -0500, Mario Limonciello wrote: > > > For WMI operations that are only Set or Query read or write sysfs > > > attributes cre

Re: [PATCH 00/18] use ARRAY_SIZE macro

2017-10-01 Thread Jérémy Lefaure
On Mon, 2 Oct 2017 09:01:31 +1100 "Tobin C. Harding" wrote: > > In order to reduce the size of the To: and Cc: lines, each patch of the > > series is sent only to the maintainers and lists concerned by the patch. > > This cover letter is sent to every list concerned by this series. > > Why don

Re: [PATCH] rpmsg: Allow RPMSG_VIRTIO to be enabled via menuconfig or defconfig

2017-10-01 Thread kbuild test robot
Hi Anup, [auto build test ERROR on v4.14-rc2] [cannot apply to rpmsg/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Anup-Patel/rpmsg-Allow-RPMSG_VIRTIO-to-be-enabled-via-menuconfig-or-

[PATCH v2 2/2] cpufreq: schedutil: consolidate capacity margin calculation

2017-10-01 Thread Leo Yan
Scheduler CFS class has variable 'capacity_margin' to calculate the capacity margin, and schedutil governor also needs to compensate the same margin for frequency tipping point. Below are formulas used in CFS class and schedutil governor separately: CFS: U` = U * capacity_margin / 1024 = U *

[PATCH v2 1/2] sched/fair: make capacity_margin __read_mostly

2017-10-01 Thread Leo Yan
Variable 'capacity_margin' is used with read operation for most cases to calculate the capacity margin, put it into __read_mostly section. Cc: Dietmar Eggemann Cc: Morten Rasmussen Cc: Chris Redpath Cc: Joel Fernandes Cc: Vincent Guittot Cc: Patrick Bellasi Signed-off-by: Leo Yan --- kerne

Re: [PATCH v2 01/16] hyper-v: trace vmbus_on_msg_dpc()

2017-10-01 Thread kbuild test robot
Hi Vitaly, [auto build test WARNING on linus/master] [also build test WARNING on v4.14-rc3 next-20170929] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Vitaly-Kuznetsov/hyper-v-trace-vmbus_on_m

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Mimi Zohar
On Sun, 2017-10-01 at 15:20 -0700, Linus Torvalds wrote: > On Sun, Oct 1, 2017 at 3:06 PM, Eric W. Biederman > wrote: > > > > Unless I misread something it was being pointed out there are some vfs > > operations today on which ima writes an ima xattr as a side effect. And > > those operations ho

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Mimi Zohar
On Mon, 2017-10-02 at 09:34 +1100, Dave Chinner wrote: > On Sun, Oct 01, 2017 at 11:41:48AM -0700, Linus Torvalds wrote: > > On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar wrote: > > > > > > Right, re-introducing the iint->mutex and a new i_generation field in > > > the iint struct with a separate set

Re: [v8 0/4] cgroup-aware OOM killer

2017-10-01 Thread Shakeel Butt
> > Going back to Michal's example, say the user configured the following: > >root > /\ > A D > / \ >B C > > A global OOM event happens and we find this: > - A > D > - B, C, D are oomgroups > > What the user is telling us is that B, C, and D are compound memory

4879b7ae05 ("Merge tag 'dmaengine-4.12-rc1' of .."): WARNING: kernel stack regs at bd92bc2e in 01-cpu-hotplug:3811 has bad 'bp' value 000001be

2017-10-01 Thread kernel test robot
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 4879b7ae05431ebcd228a4ff25a81120b3d85891 Merge: ecc721a72c121 be13ec668d043 Author: Linus Torvalds AuthorDate: Tue May 9 15:4

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Linus Torvalds
On Sun, Oct 1, 2017 at 3:34 PM, Dave Chinner wrote: > > We already have a change counter on the inode, which is modified on > any data or metadata write (i_version) under filesystem locks. The > i_version counter has well defined semantics - it's required by > NFSv4 to increment on any metadata o

[PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-01 Thread Alexandru Moise
This attempts to bring more flexibility to how hugepages are allocated by making it possible to decide whether we want the hugepages to be allocated from ZONE_MOVABLE or to the zone allocated by the "kernelcore=" boot parameter for non-movable allocations. A new boot parameter is introduced, "huge

Linux 4.14-rc3

2017-10-01 Thread Linus Torvalds
So 4.14 continues to be a somewhat painful release, and I'm starting to at least partly blame the fact that it's meant to be an LTS release. The last LTS release we had (4.9) resulted in one of the biggest kernel releases we ever had because everybody wanted in; the 4.14 release doesn't seem to be

[PATCH v2] staging: android: TODO: Removing an invalid issue

2017-10-01 Thread Joaquin Garmendia Cabrera
The first line of TODO is invalid because no file has an error or warning when running checkpatch.pl Signed-off-by: Joaquin Garmendia Cabrera --- Changes in v2: - Fixing a Typo. drivers/staging/android/TODO | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/TODO b/driv

[PATCH net 3/3] net: skb_queue_purge(): lock/unlock the queue only once

2017-10-01 Thread Michael Witten
Date: Sat, 9 Sep 2017 05:50:23 + Hitherto, the queue's lock has been locked/unlocked every time an item is dequeued; this seems not only inefficient, but also incorrect, as the whole point of `skb_queue_purge()' is to clear the queue, presumably without giving any other thread a chance to manip

[PATCH net 2/3] net: inet_recvmsg(): Remove unnecessary bitwise operation

2017-10-01 Thread Michael Witten
Date: Fri, 8 Sep 2017 00:47:49 + The flag `MSG_DONTWAIT' is handled by passing an argument through the dedicated parameter `nonblock' of the function `tcp_recvmsg()'. Presumably because `MSG_DONTWAIT' is handled so explicitly, it is unset in the collection of flags that are passed to `tcp_recv

[PATCH net 1/3] net: __sock_cmsg_send(): Remove unused parameter `msg'

2017-10-01 Thread Michael Witten
Date: Thu, 7 Sep 2017 03:21:38 + Signed-off-by: Michael Witten --- include/net/sock.h | 2 +- net/core/sock.c| 4 ++-- net/ipv4/ip_sockglue.c | 2 +- net/ipv6/datagram.c| 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/net/sock.h b/include/net/sock

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Dave Chinner
On Sun, Oct 01, 2017 at 11:41:48AM -0700, Linus Torvalds wrote: > On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar wrote: > > > > Right, re-introducing the iint->mutex and a new i_generation field in > > the iint struct with a separate set of locks should work. It will be > > reset if the file metadata

[PATCH net 0/3] net: TCP/IP: A few minor cleanups

2017-10-01 Thread Michael Witten
The following patch series is an ad hoc "cleanup" that I made while perusing the code (I'm not well versed in this code, so I would not be surprised if there were objections to the changes): [1] net: __sock_cmsg_send(): Remove unused parameter `msg' [2] net: inet_recvmsg(): Remove unnecessary

Re: [PATCH v4 4/5] cramfs: add mmap support

2017-10-01 Thread Nicolas Pitre
On Sun, 1 Oct 2017, Christoph Hellwig wrote: > up_read(&mm->mmap_sem) in the fault path is a still a complete > no-go, > > NAK Care to elaborate? What about mm/filemap.c:__lock_page_or_retry() then? Why the special handling on mm->mmap_sem with VM_FAULT_RETRY? What are the potential problems

Re: [PATCH v4 1/5] cramfs: direct memory access support

2017-10-01 Thread Nicolas Pitre
On Sun, 1 Oct 2017, Christoph Hellwig wrote: > On Wed, Sep 27, 2017 at 07:32:20PM -0400, Nicolas Pitre wrote: > > To distinguish between both access types, the cramfs_physmem filesystem > > type must be specified when using a memory accessible cramfs image, and > > the physaddr argument must provi

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Linus Torvalds
On Sun, Oct 1, 2017 at 3:06 PM, Eric W. Biederman wrote: > > Unless I misread something it was being pointed out there are some vfs > operations today on which ima writes an ima xattr as a side effect. And > those operations hold the i_sem. So perhaps I am misunderstanding > things or writing th

Re: i2c-omap.c vs. qemu: too much work in one irq (and broken boot)

2017-10-01 Thread Pavel Machek
Hi! > I'm trying to get qemu emulation of Nokia N900 to work, but > unfortunately i2c-omap.c breaks boot in the emulator (real hardware > works ok). I started bisection. v4.6 works, v4.7 is broken. (It still may be config difference or something). This looked suspect, so I tried reverting it, bu

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Eric W. Biederman
Linus Torvalds writes: > On Sep 30, 2017 18:33, "Eric W. Biederman" wrote:. > > That would require a task_work or another kind of work callback so that > the writes of the xattr are not synchronous with the vfs callback > correct? > > No, why? > > You should just invalidate the IMA on xattr w

Re: [PATCH] x86/CPU/AMD, mm: Extend with mem_encrypt=sme option

2017-10-01 Thread Borislav Petkov
On Sun, Oct 01, 2017 at 02:45:09PM -0500, Brijesh Singh wrote: > > > > So I want to be able to disable SEV and the whole code that comes with > > it in the *host*. > > We can add a new variable 'sme_only'. By default this variable should be set > to false. When mem_encrypt=sme is passed then set i

Re: [PATCH 00/18] use ARRAY_SIZE macro

2017-10-01 Thread Tobin C. Harding
On Sun, Oct 01, 2017 at 03:30:38PM -0400, Jérémy Lefaure wrote: > Hi everyone, > Using ARRAY_SIZE improves the code readability. I used coccinelle (I > made a change to the array_size.cocci file [1]) to find several places > where ARRAY_SIZE could be used instead of other macros or sizeof > divisio

Re: [RFC] yamldt v0.5, now a DTS compiler too

2017-10-01 Thread Rob Herring
On Thu, Sep 28, 2017 at 2:58 PM, Pantelis Antoniou wrote: > Hello again, > > Significant progress has been made on yamldt and is now capable of > not only generating yaml from DTS source but also compiling DTS sources > and being almost fully compatible with DTC. Can you quantify "almost"? > Com

i2c-omap.c vs. qemu: too much work in one irq (and broken boot)

2017-10-01 Thread Pavel Machek
Hi! I'm trying to get qemu emulation of Nokia N900 to work, but unfortunately i2c-omap.c breaks boot in the emulator (real hardware works ok). [0.837524] omap2-onenand omap2-onenand: initializing on CS0, phys base 0x0100, virtual base d00c, freq 66 MHz [0.838958] Muxed OneNAND 256

[PATCH] exthdr: Add support for reserved header and address

2017-10-01 Thread Harsha Sharma
Add support for IPV6 type 0 routing header reserved field and address unable to test it with nft-test.py Signed-off-by: Harsha Sharma --- include/exthdr.h | 2 ++ src/exthdr.c | 7 +-- tests/py/ip6/rt.t | 2 ++ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/exth

Re: [Part2 PATCH v4 05/29] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-10-01 Thread Brijesh Singh
On 9/30/17 11:11 AM, Borislav Petkov wrote: > I think just from having CRYPTO_DEV_CCP_DD depend on CPU_SUP_AMD || > ARM64, CRYPTO_DEV_SP_PSP gets almost the same dependency transitively. > But sure, let's make the PSP build only on x86. It should depend on > X86_64, to be precise. I think theore

Re: [RFC GIT Pull] core watchdog sanitizing

2017-10-01 Thread Linus Torvalds
I refuse to pull this. Look, I understand what you want to do, but the code is disgusting. Maybe most of it is fine, but I just couldn't stomach looking at it after just a few lines. Look at that abortion called "watchdog_nmi_reconfigure()". It's one single function that does two completely dif

  1   2   3   >