Re: [RFC 19/19] s390/facilities: enable AP facilities needed by guest

2017-12-04 Thread Harald Freudenberger
On 12/02/2017 02:30 AM, Tony Krowiak wrote: > On 11/03/2017 04:47 AM, Christian Borntraeger wrote: >> >> On 11/02/2017 07:49 PM, Tony Krowiak wrote: >>> On 11/02/2017 11:53 AM, Christian Borntraeger wrote: On 11/02/2017 04:36 PM, Tony Krowiak wrote: > On 11/02/2017 08:08 AM, Christian

[f2fs-dev] [PATCH] f2fs: release reserved blocks for quota

2017-12-04 Thread LiFan
Quota has been modified during inc_valid_block_count(), but not in truncate process. This patch adds it. Signed-off-by: Fan li --- fs/f2fs/f2fs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 82f1dc3..71fbba96 100644 ---

[PATCH] SCSI: run queue if SCSI device queue isn't ready and queue is idle

2017-12-04 Thread Ming Lei
Before commit 0df21c86bdbf ("scsi: implement .get_budget and .put_budget for blk-mq"), we run queue after 3ms if queue is idle and SCSI device queue isn't ready, which is done in handling BLK_STS_RESOURCE. After commit 0df21c86bdbf is introduced, queue won't be run any more under this situation.

Re: [PATCH 4.14 00/95] 4.14.4-stable review

2017-12-04 Thread Greg Kroah-Hartman
On Tue, Dec 05, 2017 at 12:31:40PM +0530, Naresh Kamboju wrote: > On 4 December 2017 at 21:29, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.14.4 release. > > There are 95 patches in this series, all will be posted as a response

Re: Writing "+pids" to cgroup.subtree_control flie yields EINVAL

2017-12-04 Thread Michael Kerrisk (man-pages)
[dropping Lennart into CC] Hello Tejun, On 12/04/2017 10:47 PM, Tejun Heo wrote: > Hello, Michael. > > On Mon, Dec 04, 2017 at 10:35:13PM +0100, Michael Kerrisk (man-pages) wrote: >> I was trying to do some simple testing ot the CPU controller >> that is merged into 4.15, and ran immediately

Re: [PATCH v2 0/4] lockdep/crossrelease: Apply crossrelease to page locks

2017-12-04 Thread Matthew Wilcox
On Tue, Dec 05, 2017 at 03:19:46PM +0900, Byungchul Park wrote: > On 12/5/2017 2:46 PM, Byungchul Park wrote: > > On 12/5/2017 2:30 PM, Matthew Wilcox wrote: > > > On Mon, Dec 04, 2017 at 02:16:19PM +0900, Byungchul Park wrote: > > > > For now, wait_for_completion() / complete() works with

Re: [PATCH v3 1/1] at24: support eeproms that do not auto-rollover reads.

2017-12-04 Thread Sakari Ailus
On Mon, Dec 04, 2017 at 05:24:33PM -0500, Sven Van Asbroeck wrote: > > If this is truly specific to at24, then vendor prefix would be appropriate, > > plus it'd go to an at24 specific binding file. However if it isn't I'd just > > remove the above sentence. I guess the latter? > > Yes,

Re: [PATCH v2] mmap.2: MAP_FIXED updated documentation

2017-12-04 Thread John Hubbard
On 12/04/2017 11:08 PM, Michal Hocko wrote: > On Mon 04-12-17 18:52:27, John Hubbard wrote: >> On 12/04/2017 03:31 AM, Mike Rapoport wrote: >>> On Sun, Dec 03, 2017 at 06:14:11PM -0800, john.hubb...@gmail.com wrote: From: John Hubbard >> [...] +.IP +Given

Re: [PATCH v2] mmap.2: MAP_FIXED updated documentation

2017-12-04 Thread John Hubbard
On 12/04/2017 11:05 PM, Michal Hocko wrote: > On Mon 04-12-17 18:14:18, John Hubbard wrote: >> On 12/04/2017 02:55 AM, Cyril Hrubis wrote: >>> Hi! >>> I know that we are not touching the rest of the existing description for >>> MAP_FIXED however the second sentence in the manual page says that

Re: [PATCH v3 13/16] iommu/intel-svm: notify page request to guest

2017-12-04 Thread Lu Baolu
Hi, On 11/18/2017 02:55 AM, Jacob Pan wrote: > If the source device of a page request has its PASID table pointer > bond to a guest, the first level page tables are owned by the guest. > In this case, we shall let guest OS to manage page fault. > > This patch uses the IOMMU fault notification API

Re: [patch V4 02/11] LICENSES: Add the GPL 2.0 license

2017-12-04 Thread Greg Kroah-Hartman
On Mon, Dec 04, 2017 at 10:19:29PM +0100, Thomas Gleixner wrote: > Add the full text of the GPL 2.0 license to the LICENSES directory. It was > copied directly from the COPYING file in the kernel source tree as it > differs from the public available version of the license in various places >

RE: [PATCH] refcount_t: documentation for memory ordering differences

2017-12-04 Thread Reshetova, Elena
On 11/29/2017 04:36 AM, Elena Reshetova wrote: > > Some functions from refcount_t API provide different > > memory ordering guarantees that their atomic counterparts. > > This adds a document outlining these differences. > > > > Signed-off-by: Elena Reshetova > > --- >

Re: [PATCH 21/45] usb: typec: remove duplicate includes

2017-12-04 Thread Heikki Krogerus
On Tue, Dec 05, 2017 at 07:34:55AM +0530, Pravin Shedge wrote: > These duplicate includes have been found with scripts/checkincludes.pl but > they have been removed manually to avoid removing false positives. > > Signed-off-by: Pravin Shedge Acked-by: Heikki

Re: [PATCH net-next V3] tun: add eBPF based queue selection method

2017-12-04 Thread Jason Wang
On 2017年12月05日 08:16, Willem de Bruijn wrote: On Mon, Dec 4, 2017 at 4:31 AM, Jason Wang wrote: This patch introduces an eBPF based queue selection method. With this, the policy could be offloaded to userspace completely through a new ioctl TUNSETSTEERINGEBPF.

Re: [PATCH v2] sunxi-rsb: Include OF based modalias in device uevent

2017-12-04 Thread Chen-Yu Tsai
Hi, On Tue, Nov 28, 2017 at 11:47 PM, Maxime Ripard wrote: > On Mon, Nov 27, 2017 at 08:05:34PM +0100, Stefan Brüns wrote: >> Include the OF-based modalias in the uevent sent when registering devices >> on the sunxi RSB bus, so that user space has a chance to

Re: [PATCH] checkpatch: warn for use of %px

2017-12-04 Thread Joe Perches
On Tue, 2017-12-05 at 08:17 +1100, Tobin C. Harding wrote: > Usage of the new %px specifier potentially leaks sensitive > inforamtion. Printing kernel addresses exposes the kernel layout in information > memory, this is potentially exploitable. We have tools in the kernel to > help us do the

Re: [PATCH v9 3/5] perf utils: use pmu->is_uncore to detect PMU UNCORE devices

2017-12-04 Thread Jin, Yao
Hi, I applied the diff but it's failed. jinyao@skl:~/skl-ws/perf-dev/lck-4594/src$ patch -p1 < 1.pat patching file tools/perf/util/pmu.c patch: malformed patch at line 41: *head, struct perf_pmu *pmu) Could you send the patch as attachment to me in another mail thread? to

Re: [PATCH 4.4 00/27] 4.4.104-stable review

2017-12-04 Thread Naresh Kamboju
- kernel: 4.4.104-rc1 git repo: https://git.linaro.org/lkft/arm64-stable-rc.git git tag: 4.4.104-rc1-hikey-20171204-67 git commit: fc49d1746dc96bedfe5bf072eecbe84410972db0 git describe: 4.4.104-rc1-hikey-20171204-67 Test details: https://qa-reports.linaro.org/lkft/li

Re: [PATCH v2 net-next] net/tcp: trace all TCP/IP state transition with tcp_set_state tracepoint

2017-12-04 Thread Yafang Shao
2017-12-05 3:28 GMT+08:00 Marcelo Ricardo Leitner : > On Sat, Dec 02, 2017 at 09:36:41AM +, Yafang Shao wrote: >> The TCP/IP transition from TCP_LISTEN to TCP_SYN_RECV and some other >> transitions are not traced with tcp_set_state tracepoint. >> >> In order to trace

Re: [PATCH v9 3/5] perf utils: use pmu->is_uncore to detect PMU UNCORE devices

2017-12-04 Thread Ganapatrao Kulkarni
thanks Jin Yao for point this out. looks like logic of leveraging uncore device type(which i have changed in v9) does not go well with some json events of x86. can you please try below diff(logic used till v8), which keeps the original logic of identifying core/cpu PMUs. diff --git

[PATCH RESEND] arm64: fault: avoid send SIGBUS two times

2017-12-04 Thread Dongjiu Geng
If APEI handling the memory error is failed, the do_mem_abort() and do_sea() will all deliver SIGBUS. In fact, sending one time can be enough, so correct it. Signed-off-by: Dongjiu Geng --- arch/arm64/mm/fault.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

Re: [PATCH 4.9 00/38] 4.9.67-stable review

2017-12-04 Thread Naresh Kamboju
On 4 December 2017 at 21:29, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.67 release. > There are 38 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied,

Re: [PATCH v2] mmap.2: MAP_FIXED updated documentation

2017-12-04 Thread Michal Hocko
On Mon 04-12-17 18:52:27, John Hubbard wrote: > On 12/04/2017 03:31 AM, Mike Rapoport wrote: > > On Sun, Dec 03, 2017 at 06:14:11PM -0800, john.hubb...@gmail.com wrote: > >> From: John Hubbard > >> > [...] > >> +.IP > >> +Given the above limitations, one of the very few ways

Re: [PATCH] skb_array: fix NULL-pointer exception

2017-12-04 Thread Jason Wang
On 2017年12月05日 12:40, Michael S. Tsirkin wrote: On Tue, Dec 05, 2017 at 11:11:14AM +0800, Jason Wang wrote: On 2017年12月04日 22:24, George Cherian wrote: While running a multiple VM testscase with each VM running iperf traffic between others the following kernel NULL pointer exception was

Re: [PATCH v2] mmap.2: MAP_FIXED updated documentation

2017-12-04 Thread Michal Hocko
On Mon 04-12-17 18:14:18, John Hubbard wrote: > On 12/04/2017 02:55 AM, Cyril Hrubis wrote: > > Hi! > > I know that we are not touching the rest of the existing description for > > MAP_FIXED however the second sentence in the manual page says that "addr > > must be a multiple of the page size."

Re: [PATCH 4.14 00/95] 4.14.4-stable review

2017-12-04 Thread Naresh Kamboju
On 4 December 2017 at 21:29, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.4 release. > There are 95 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied,

[PATCH] arm64: avoid send SIGBUS two times

2017-12-04 Thread Dongjiu Geng
If APEI handling the memory error is failed, the SIGBUS will be sent twice. In fact, send one time can be enough, so correct it. Signed-off-by: Dongjiu Geng --- arch/arm64/mm/fault.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

Re: [PATCH] thermal/drivers/hisi: disable multi alarm support for hi3660 SoC

2017-12-04 Thread Daniel Lezcano
On 05/12/2017 03:02, Eduardo Valentin wrote: > Hello, > > On Thu, Oct 19, 2017 at 09:31:24AM +0800, Wangtao (Kevin, Kirin) wrote: >> >> >> 在 2017/10/18 23:54, Daniel Lezcano 写道: >>> On 18/10/2017 11:15, Tao Wang wrote: From: Kevin Wangtao multi alarm

Re: [PATCH] SCSI: delay run queue if device is blocked in scsi_dev_queue_ready()

2017-12-04 Thread Ming Lei
On Tue, Dec 05, 2017 at 01:16:24PM +0800, Ming Lei wrote: > On Mon, Dec 04, 2017 at 11:48:07PM +, Holger Hoffstätte wrote: > > On Tue, 05 Dec 2017 06:45:08 +0800, Ming Lei wrote: > > > > > On Mon, Dec 04, 2017 at 03:09:20PM +, Bart Van Assche wrote: > > >> On Sun, 2017-12-03 at 00:31

Re: [patch V4 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2017-12-04 Thread Heiko Carstens
On Mon, Dec 04, 2017 at 10:19:28PM +0100, Thomas Gleixner wrote: > +3. Syntax: > + > + A is either an SPDX short form license > + identifier found on the SPDX License List, or when multiple licenses > + apply, an expression consisting of keywords "AND", "OR", and "WITH" > + separating

Re: [PATCH V2] thermal/drivers/hisi: Switch to interrupt mode

2017-12-04 Thread Daniel Lezcano
On 05/12/2017 03:00, Eduardo Valentin wrote: > Hello, > > On Thu, Sep 28, 2017 at 09:32:20AM +0200, Daniel Lezcano wrote: >> On Thu, Sep 28, 2017 at 02:57:52PM +0800, Leo Yan wrote: >>> Hi Daniel, >>> >>> On Thu, Sep 28, 2017 at 07:13:44AM +0200, Daniel Lezcano wrote: At this moment, we have

[PATCH 1/2] ARM: dts: keystone-k2g: Add UART 1 and 2 instances

2017-12-04 Thread Vignesh R
From: Franklin S Cooper Jr Add DT nodes for two other UART instances of 66AK2G SoC. Also add power domain and clock domain nodes to UART 0 Signed-off-by: Franklin S Cooper Jr Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g.dtsi |

Re: [PATCH] thermal/drivers/hisi: Remove confusing error message

2017-12-04 Thread Daniel Lezcano
On 05/12/2017 02:52, Eduardo Valentin wrote: > Hello, > > Catching up on old patches. > On Fri, Jul 07, 2017 at 05:03:52PM +0200, Daniel Lezcano wrote: >> The sensor id is unknown at init time and we use all id in the authorized >> MAX_SENSORS interval to register the sensor. On this SoC there is

[PATCH 0/2] 66AK2G: Add DT entry for UART1 and UART2

2017-12-04 Thread Vignesh R
This series adds DT entry for the remaining two UART instances on 66AK2G SoC. Based on linux-next. Franklin S Cooper Jr (2): ARM: dts: keystone-k2g: Add UART 1 and 2 instances ARM: dts: keystone-k2g-evm: Enable UART 2 arch/arm/boot/dts/keystone-k2g-evm.dts | 13 +

[PATCH 2/2] ARM: dts: keystone-k2g-evm: Enable UART 2

2017-12-04 Thread Vignesh R
From: Franklin S Cooper Jr 66AK2G GP EVM has a Baseboard Management Controller (BMC) on board. This controller handles things like setting the SoCs boot mode along with controlling the on board character LCD display module. Enable UART2 which communicates with the BMC. This

Re: [PATCH v4 3/5] remoteproc: Pass type of shutdown to subdev remove

2017-12-04 Thread Bjorn Andersson
On Fri 01 Dec 06:50 PST 2017, Arnaud Pouliquen wrote: > hello Bjorn, > > Sorry for these late remarks/questions > No worries, I'm happy to see you reading the patch! > > On 11/30/2017 02:16 AM, Bjorn Andersson wrote: [..] > > diff --git a/drivers/remoteproc/qcom_common.c > >

[PATCH v2 2/2] regulator: sc2731: Add regulator driver to support Spreadtrum SC2731 PMIC

2017-12-04 Thread Erick Chen
Add regulator driver for Spreadtrum SC2731 device. It has 17 general purpose LDOs, BUCKs generator and digital output to control regulators. Signed-off-by: Erick Chen Reviewed-by: Baolin Wang --- Changes since v1: - Remove of_device_id

[PATCH v2 1/2] dt-bindings: regulator: Add Spreadtrum SC2731 regulator documentation

2017-12-04 Thread Erick Chen
This patch adds support for the Spreadtrum SC2731 voltage regulator device. Signed-off-by: Erick Chen --- Changes since v1: - Remove reg property. - Remove regulators sub-node. --- .../bindings/regulator/sprd,sc2731-regulator.txt | 43 1 file

RE: [Bug fix] octeon-i2c driver updates

2017-12-04 Thread Zhang, Sean C. (NSB - CN/Hangzhou)
Hi Jan, Thanks for your comments, I get your point for the second point (retry of START after recovery). Hi David, For the issue as the first one, would you give your further comments? Thanks in advance. I have an environment with CN6780 (TWSI core has property: compatible =

[PATCH] writeback: fix comment in __mark_inode_dirty

2017-12-04 Thread Wang Long
Signed-off-by: Wang Long --- fs/fs-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index cea4836..8d477cf 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -2209,7 +2209,7 @@ void

Re: [PATCH v3 12/16] iommu/vt-d: report unrecoverable device faults

2017-12-04 Thread Lu Baolu
Hi, On 11/18/2017 02:55 AM, Jacob Pan wrote: > Currently, when device DMA faults are detected by IOMMU the fault > reasons are printed but the driver of the offending device is "... but the driver of the offending device is not involved in ..." Best regards, Lu Baolu > involved in fault

Re: [alsa-devel] [PATCH v4 06/15] soundwire: Add IO transfer

2017-12-04 Thread Vinod Koul
On Sun, Dec 03, 2017 at 09:01:41PM -0600, Pierre-Louis Bossart wrote: > On 12/3/17 11:04 AM, Vinod Koul wrote: > >On Fri, Dec 01, 2017 at 05:27:31PM -0600, Pierre-Louis Bossart wrote: Sorry looks like I missed replying to this one earlier. > >>>+static inline int find_response_code(enum

[PATCH v3] scripts: leaking_addresses: add support for 32-bit kernel addresses

2017-12-04 Thread kaiwan . billimoria
Currently, leaking_addresses.pl only supports scanning 64 bit architectures. This is due to how the regular expressions are formed. We can do better than this. 32 architectures can be supported if we take into consideration the kernel virtual address split (via the PAGE_OFFSET kernel

Re: [PATCH 4.14 00/95] 4.14.4-stable review

2017-12-04 Thread Greg Kroah-Hartman
On Mon, Dec 04, 2017 at 01:29:42PM -0700, Shuah Khan wrote: > On 12/04/2017 08:59 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.4 release. > > There are 95 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH 4.14 00/95] 4.14.4-stable review

2017-12-04 Thread Greg Kroah-Hartman
On Mon, Dec 04, 2017 at 03:46:31PM -0800, Guenter Roeck wrote: > On Mon, Dec 04, 2017 at 04:59:24PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.4 release. > > There are 95 patches in this series, all will be posted as a response > > to this one.

[PATCH v3 08/14] nubus: Clean up whitespace

2017-12-04 Thread Finn Thain
Tested-by: Stan Johnson Signed-off-by: Finn Thain --- include/linux/nubus.h | 54 +-- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/include/linux/nubus.h b/include/linux/nubus.h

Re: [PATCH 4.14 00/95] 4.14.4-stable review

2017-12-04 Thread Greg Kroah-Hartman
On Mon, Dec 04, 2017 at 03:12:45PM -0600, Tom Gall wrote: > > > > On Dec 4, 2017, at 9:59 AM, Greg Kroah-Hartman > > wrote: > > > > This is the start of the stable review cycle for the 4.14.4 release. > > There are 95 patches in this series, all will be posted as a

[PATCH v3 04/14] nubus: Fix log spam

2017-12-04 Thread Finn Thain
Testing shows that a single Radius PrecisionColor 24X display board, which has 95 functional resources, produces over a thousand lines of log messages. Suppress these messages with pr_debug(). Remove some redundant messages relating to nubus_get_subdir() calls. Fix the format block debug messages

[PATCH v3 09/14] nubus: Generalize block resource handling

2017-12-04 Thread Finn Thain
Scrap the specialized code to unpack video mode name resources and driver resources. It isn't useful. Instead, add a re-usable function to handle lists of block resources of any kind, and descend into the video mode table resource directory. Rename callers as nubus_get_foo(), consistent with their

[PATCH v3 10/14] nubus: Rework /proc/bus/nubus/s/ implementation

2017-12-04 Thread Finn Thain
The /proc/bus/nubus/s/ directory tree for any slot s is missing a lot of information. The struct file_operations methods have long been left unimplemented (hence the familiar compile-time warning, "Need to set some I/O handlers here"). Slot resources have a complex structure which varies

[PATCH v3 11/14] nubus: Rename struct nubus_dev

2017-12-04 Thread Finn Thain
It is misleading to call a functional resource a "device". In adopting the Linux Driver Model, the struct device will be embedded in struct nubus_board. That will compound the terminlogy problem because drivers will bind with boards, not with functional resources. Avoid this by renaming struct

Re: [PATCH v3 10/16] iommu: introduce device fault report API

2017-12-04 Thread Lu Baolu
Hi, On 11/18/2017 02:55 AM, Jacob Pan wrote: > Traditionally, device specific faults are detected and handled within > their own device drivers. When IOMMU is enabled, faults such as DMA > related transactions are detected by IOMMU. There is no generic > reporting mechanism to report faults back

[PATCH v3 06/14] nubus: Call proc_mkdir() not more than once per slot directory

2017-12-04 Thread Finn Thain
This patch fixes the following WARNING. proc_dir_entry 'nubus/a' already registered Modules linked in: CPU: 0 PID: 1 Comm: swapper Tainted: GW 4.13.0-00036-gd57552077387 #1 Stack from 01c1bd9c: 01c1bd9c 003c2c8b 01c1bdc0 0001b0fe 00322f4a 01c43a20 01c43b0c

[PATCH v3 07/14] nubus: Remove redundant code

2017-12-04 Thread Finn Thain
Eliminate unused values from struct nubus_dev to save wasted memory (a Radius PrecisionColor 24X card has about 95 functional resources and up to six such cards may be fitted). Also remove redundant static variable initialization, an unreachable !MACH_IS_MAC conditional, the unused

[PATCH v3 12/14] nubus: Adopt standard linked list implementation

2017-12-04 Thread Finn Thain
This increases code re-use and improves readability. Cc: Bartlomiej Zolnierkiewicz Signed-off-by: Finn Thain Tested-by: Stan Johnson --- drivers/net/ethernet/8390/mac8390.c | 7 +++--

[PATCH v3 05/14] nubus: Validate slot resource IDs

2017-12-04 Thread Finn Thain
While we are here, include the slot number in the related error messages. Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/nubus/nubus.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git

[PATCH 1/2] KVM: MMU: Fix infinite loop when there is no available mmu page

2017-12-04 Thread Wanpeng Li
From: Wanpeng Li The below test case can cause infinite loop in kvm when ept=0. #include #include #include #include #include #include #include long r[5]; int main() { r[2] = open("/dev/kvm", O_RDONLY);

[PATCH 2/2] KVM: X86: Fix load RFLAGS w/o the fixed bit

2017-12-04 Thread Wanpeng Li
From: Wanpeng Li *** Guest State *** CR0: actual=0x0030, shadow=0x6010, gh_mask=fff7 CR4: actual=0x2050, shadow=0x, gh_mask=e871 CR3 = 0xfffbc000 RSP = 0x RIP =

[PATCH v3 13/14] nubus: Add expansion_type values for various Mac models

2017-12-04 Thread Finn Thain
Add an expansion slot attribute to allow drivers to properly handle cards like Comm Slot cards and PDS cards without declaration ROMs. Tested-by: Stan Johnson Signed-off-by: Finn Thain --- arch/m68k/include/asm/macintosh.h | 9 ++-

[PATCH v3 14/14] nubus: Add support for the driver model

2017-12-04 Thread Finn Thain
This patch brings basic support for the Linux Driver Model to the NuBus subsystem. For flexibility, the matching of boards with drivers is left up to the drivers. This is also the approach taken by NetBSD. A board may have many functions, and drivers may have to consider many functional resources

[PATCH v3 03/14] nubus: Use static functions where possible

2017-12-04 Thread Finn Thain
This fixes a couple of warnings from 'make W=1': drivers/nubus/nubus.c:790: warning: no previous prototype for 'nubus_probe_slot' drivers/nubus/nubus.c:824: warning: no previous prototype for 'nubus_scan_bus' Tested-by: Stan Johnson Signed-off-by: Finn Thain

[PATCH v3 01/14] nubus: Avoid array underflow and overflow

2017-12-04 Thread Finn Thain
Check array indices. Avoid sprintf. Use buffers of sufficient size. Use appropriate types for array length parameters. Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/nubus/nubus.c | 29 +

[PATCH v3 00/14] Modernization and fixes for NuBus subsystem

2017-12-04 Thread Finn Thain
This series begins with cleanups and fixes for the NuBus subsystem and finishes with a patch to add support for the Linux Driver Model. The next series, which requires this one, modernizes the NuBus drivers. Changes since v1: - Added the missing NULL check in nubus_device_remove(). - Squashed the

[PATCH v3 02/14] nubus: Fix up header split

2017-12-04 Thread Finn Thain
Due to the '#ifdef __KERNEL__' being located in the wrong place, some definitions from the kernel API were placed in the UAPI header during the scripted header split. Fix this. Also, remove the duplicate comment which is only relevant to the UAPI header. Fixes: 607ca46e97a1 ("UAPI: (Scripted)

Re: [PATCH v2 0/4] lockdep/crossrelease: Apply crossrelease to page locks

2017-12-04 Thread Byungchul Park
On 12/5/2017 2:46 PM, Byungchul Park wrote: On 12/5/2017 2:30 PM, Matthew Wilcox wrote: On Mon, Dec 04, 2017 at 02:16:19PM +0900, Byungchul Park wrote: For now, wait_for_completion() / complete() works with lockdep, add lock_page() / unlock_page() and its family to lockdep support. Changes

Re: Regression in e1000e since Kernel 4.14.3

2017-12-04 Thread Greg KH
On Tue, Dec 05, 2017 at 07:18:34AM +0100, Greg KH wrote: > On Tue, Dec 05, 2017 at 12:47:10AM +0100, Gabriel C wrote: > > On 04.12.2017 23:10, rwar...@gmx.de wrote: > > > > > Hallo > > > > > > someone and I got an regression with e1000e since kernel 4.14.3 and it > > > seems there is 4.14.4 on

Re: PROBLEM: Asus C201 video mode problems on HDMI hotplug (regression)

2017-12-04 Thread Nick Bowler
On 2017-12-04 13:33 -0500, Nick Bowler wrote: > On 2017-12-04 10:04 +, Jose Abreu wrote: > > Hmmm, my first thought was that audio is being configured first > > because of the phy lock wait time, I've seen this happening before. > > > > Lets try this: > > - Disable all alsa clients (e.g.

Re: Regression in e1000e since Kernel 4.14.3

2017-12-04 Thread Greg KH
On Tue, Dec 05, 2017 at 12:47:10AM +0100, Gabriel C wrote: > On 04.12.2017 23:10, rwar...@gmx.de wrote: > > > Hallo > > > > someone and I got an regression with e1000e since kernel 4.14.3 and it > > seems there is 4.14.4 on the way without a fix. > > > > > > bug report is here: > > > >

Re: [PATCH] thermal: tegra: delete unneeded of_node_put

2017-12-04 Thread Julia Lawall
On Mon, 4 Dec 2017, Eduardo Valentin wrote: > On Mon, Jul 17, 2017 at 04:42:38PM +0200, Julia Lawall wrote: > > > > > > On Mon, 17 Jul 2017, Jon Hunter wrote: > > > > > > > > On 15/07/17 09:42, Julia Lawall wrote: > > > > Device node iterators perform an of_node_put on each iteration, so > > >

[PATCH v6 01/11] perf util: Define a structure for per-thread shadow stats

2017-12-04 Thread Jin Yao
Perf has a set of static variables to record the runtime shadow metrics stats. While if we want to record the runtime shadow stats for per-thread, it will be the limitation. This patch creates a structure and the next patches will use this structure to update the runtime shadow stats for

[PATCH v6 04/11] perf util: Update per-thread shadow stats

2017-12-04 Thread Jin Yao
The functions perf_stat__update_shadow_stats() is called to update the shadow stats on a set of static variables. But the static variables are the limitations to be extended to support per-thread shadow stats. This patch lets the perf_stat__update_shadow_stats() support to update the shadow

[PATCH v6 02/11] perf stat: Extend rbtree to support per-thread shadow stats

2017-12-04 Thread Jin Yao
Previously the rbtree was used to link generic metrics. This patches adds new ctx/type/stat into rbtree keys because we will use this rbtree to maintain shadow metrics to replace original a couple of static arrays for supporting per-thread shadow stats. Signed-off-by: Jin Yao

[PATCH v6 05/11] perf util: Print per-thread shadow stats

2017-12-04 Thread Jin Yao
The function perf_stat__print_shadow_statss() is called to print the shadow stats on a set of static variables. But the static variables are the limitations to support per-thread shadow stats. This patch lets the perf_stat__print_shadow_stats() support to print the shadow stats from a input

[PATCH v6 06/11] perf util: Remove a set of shadow stats static variables

2017-12-04 Thread Jin Yao
In previous patches, we have reconstructed the code and let it not access the static variables directly. This patch removes these static variables. Signed-off-by: Jin Yao --- tools/perf/util/stat-shadow.c | 68 ++-

[PATCH v6 09/11] perf util: Enumerate all threads from /proc

2017-12-04 Thread Jin Yao
This patch calls thread_map__new_all_cpus() to enumerate all threads from /proc if per-thread flag is enabled. Signed-off-by: Jin Yao --- tools/perf/tests/thread-map.c | 2 +- tools/perf/util/evlist.c | 3 ++- tools/perf/util/thread_map.c | 5 -

[PATCH v6 03/11] perf util: Create the runtime_stat init/exit function

2017-12-04 Thread Jin Yao
It mainly initializes and releases the rblist which is defined in struct runtime_stat. For the original rblist 'runtime_saved_values', it's still kept there for keeping the patch bisectable. The rblist 'runtime_saved_values' will be removed in later patch at switching time. Signed-off-by: Jin

[PATCH v6 00/11] perf stat: Enable '--per-thread' on all thread

2017-12-04 Thread Jin Yao
v6: --- Update according to Arnaldo's comments. 1. In 'perf util: Define a structure for runtime shadow stats' Remove '#include "evsel.h"' 2. In 'perf stat: Extend rbtree to support per-thread shadow stats' Change patch subject to 'perf stat: Extend rbtree to support per-thread shadow stats'.

[PATCH v6 11/11] perf stat: Resort '--per-thread' result

2017-12-04 Thread Jin Yao
There are many threads reported if we enable '--per-thread' globally. 1. Most of the threads are not counted or counting value 0. This patch removes these threads. 2. We also resort the threads in display according to the counting value. It's useful for user to see the hottest threads easily.

[PATCH v6 08/11] perf stat: Update or print per-thread stats

2017-12-04 Thread Jin Yao
If the stats pointer in stat_config structure is not null, it will update the per-thread stats or print the per-thread stats on this buffer. Signed-off-by: Jin Yao --- tools/perf/builtin-stat.c | 9 +++-- tools/perf/util/stat.c| 11 --- 2 files changed,

[PATCH v6 10/11] perf stat: Remove --per-thread pid/tid limitation

2017-12-04 Thread Jin Yao
Currently, if we execute 'perf stat --per-thread' without specifying pid/tid, perf will return error. root@skl:/tmp# perf stat --per-thread The --per-thread option is only available when monitoring via -p -t options. -p, --pidstat events on existing process id -t, --tid

[PATCH v6 07/11] perf stat: Allocate shadow stats buffer for threads

2017-12-04 Thread Jin Yao
After perf_evlist__create_maps() being executed, we can get all threads from /proc. And via thread_map__nr(), we can also get the number of threads. With the number of threads, the patch allocates a buffer which will record the shadow stats for these threads. The buffer pointer is saved in

Re: [PATCH 1/1] mm/page_owner: ignore everything below the IRQ entry point

2017-12-04 Thread kbuild test robot
Hi Maninder, Thank you for the patch! Yet something to improve: [auto build test ERROR on mmotm/master] [also build test ERROR on v4.15-rc2 next-20171204] [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

Re: [PATCH v10 3/6] clk: qcom: Add A53 PLL support

2017-12-04 Thread Bjorn Andersson
On Fri 01 Dec 09:02 PST 2017, Georgi Djakov wrote: > The CPUs on Qualcomm MSM8916-based platforms are clocked by two PLLs, > a primary (A53) CPU PLL and a secondary fixed-rate GPLL0. These sources > are connected to a mux and half-integer divider, which is feeding the > CPU cores. > > This patch

Re: [PATCH v10 2/6] mailbox: qcom: Create APCS child device for clock controller

2017-12-04 Thread Bjorn Andersson
On Fri 01 Dec 09:02 PST 2017, Georgi Djakov wrote: > There is a clock controller functionality provided by the APCS hardware > block of msm8916 devices. The device-tree would represent an APCS node > with both mailbox and clock provider properties. > Create a platform child device for the clock

Re: [PATCH v10 6/6] clk: qcom: Add APCS clock controller support

2017-12-04 Thread Bjorn Andersson
On Fri 01 Dec 09:02 PST 2017, Georgi Djakov wrote: [..] > diff --git a/drivers/clk/qcom/apcs-msm8916.c b/drivers/clk/qcom/apcs-msm8916.c > new file mode 100644 > index ..f71039ff2347 > --- /dev/null > +++ b/drivers/clk/qcom/apcs-msm8916.c > @@ -0,0 +1,149 @@ > +/* > + * Qualcomm APCS

Re: [LKP] [lkp-robot] [fs/locks] 52306e882f: stress-ng.lockofd.ops_per_sec -11% regression

2017-12-04 Thread Aaron Lu
On Wed, Nov 08, 2017 at 03:22:33PM +0800, Aaron Lu wrote: > On Thu, Sep 28, 2017 at 04:02:23PM +0800, kernel test robot wrote: > > > > Greeting, > > > > FYI, we noticed a -11% regression of stress-ng.lockofd.ops_per_sec due to > > commit: > > > > > > commit:

[PATCHv2 2/2] mtd: m25p80: restore the status of SPI flash when stop using it

2017-12-04 Thread Zhiqiang Hou
From: Hou Zhiqiang Implement .shutdown function to restore the status in reboot process, and add the same operation to the .remove function. Signed-off-by: Hou Zhiqiang --- V2: - Changed code format slightly. drivers/mtd/devices/m25p80.c | 9

[PATCHv2 1/2] mtd: spi-nor: add an API to restore the status of SPI flash chip

2017-12-04 Thread Zhiqiang Hou
From: Hou Zhiqiang Add this API to restore the status of SPI flash chip to the default such as addressing mode, whenever detach the driver from device or reboot the system. Signed-off-by: Hou Zhiqiang --- V2: - Changed the API name and added the

[PATCHv2 0/2] mtd: m25p80: restore the addressing mode when stop using the flash

2017-12-04 Thread Zhiqiang Hou
From: Hou Zhiqiang To be compatible with legacy device, reset the addressing mode to the default mode. Such as Freescale eSPI boot, it copies the images from SPI flash without firing a reset signal previously, so the reboot command will fail without reseting the addressing

Re: [PATCH v10 5/6] dt-bindings: mailbox: qcom: Document the APCS clock binding

2017-12-04 Thread Bjorn Andersson
On Fri 01 Dec 09:02 PST 2017, Georgi Djakov wrote: > Update the binding documentation for APCS to mention that the APCS > hardware block also expose a clock controller functionality. > > The APCS clock controller is a mux and half-integer divider. It has the > main CPU PLL as an input and

Re: [PATCH v2 0/4] lockdep/crossrelease: Apply crossrelease to page locks

2017-12-04 Thread Byungchul Park
On 12/5/2017 2:30 PM, Matthew Wilcox wrote: On Mon, Dec 04, 2017 at 02:16:19PM +0900, Byungchul Park wrote: For now, wait_for_completion() / complete() works with lockdep, add lock_page() / unlock_page() and its family to lockdep support. Changes from v1 - Move lockdep_map_cross outside of

Re: [PATCH v3 07/16] iommu/vt-d: assign PFSID in device TLB invalidation

2017-12-04 Thread Lu Baolu
Hi, On 11/18/2017 02:55 AM, Jacob Pan wrote: > When SRIOV VF device IOTLB is invalidated, we need to provide > the PF source SID such that IOMMU hardware can gauge the depth > of invalidation queue which is shared among VFs. This is needed > when device invalidation throttle (DIT) capability is

Re: [PATCH v3 06/16] iommu/vt-d: add svm/sva invalidate function

2017-12-04 Thread Lu Baolu
Hi, On 11/18/2017 02:55 AM, Jacob Pan wrote: > This patch adds Intel VT-d specific function to implement > iommu passdown invalidate API for shared virtual address. > > The use case is for supporting caching structure invalidation > of assigned SVM capable devices. Emulated IOMMU exposes queue >

Re: [PATCH] cpufreq: powernv: Define methods to parse positive & negative pstates

2017-12-04 Thread Viresh Kumar
On 30-11-17, 10:13, Shilpasri G Bhat wrote: > From: "Gautham R. Shenoy" > > Pstates are 8bit values but on POWER8 they are negative and on POWER9 > they are positive. This patch adds helper routines to differentiate > the sign to read the correct pstate value. > >

Re: [PATCH 1/1] mm/page_owner: ignore everything below the IRQ entry point

2017-12-04 Thread kbuild test robot
Hi Maninder, Thank you for the patch! Yet something to improve: [auto build test ERROR on mmotm/master] [also build test ERROR on v4.15-rc2 next-20171204] [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

Re: [PATCH V1 4/4] qcom: spmi-wled: Add auto-calibration logic support

2017-12-04 Thread Bjorn Andersson
On Thu 16 Nov 04:18 PST 2017, Kiran Gunda wrote: > The auto-calibration algorithm checks if the current WLED sink > configuration is valid. It tries enabling every sink and checks > if the OVP fault is observed. Based on this information it > detects and enables the valid sink configuration. Auto

[PATCH V2 3/4] cpu_cooling: Keep only one of_cpufreq*cooling_register() helper

2017-12-04 Thread Viresh Kumar
of_cpufreq_cooling_register() isn't used by anyone and so can be removed, but then we would be left with two routines: cpufreq_cooling_register() and of_cpufreq_power_cooling_register() that would look odd. Remove current implementation of of_cpufreq_cooling_register() and rename

[PATCH V2 1/4] cpu_cooling: Make of_cpufreq_power_cooling_register() parse DT

2017-12-04 Thread Viresh Kumar
All the callers of of_cpufreq_power_cooling_register() have almost identical code and it makes more sense to move that code into the helper as its all about reading DT properties. This got rid of lot of redundant code. Acked-by: Eduardo Valentin Signed-off-by: Viresh Kumar

[PATCH V2 4/4] cpu_cooling: Drop static-power related stuff

2017-12-04 Thread Viresh Kumar
No one has used it for the last two and half years (since it was introduced by commit c36cf0717631 ("thermal: cpu_cooling: implement the power cooling device API")), get rid of it. Cc: Javi Merino Cc: Punit Agrawal Acked-by: Eduardo Valentin

[PATCH V2 0/4] cpu_cooling: cooling dev registration cleanups

2017-12-04 Thread Viresh Kumar
Hi, This cleans up the helpers exposed by cpu_cooling driver and its users and removes a lot of code (around 280 lines effectively). Lots of unused code is removed. Tested on Hikey6220 and based over pm/linux-next. V1->V2: - Fixed a compilation warning when CONFIG_CPU_THERMAL isn't selected.

  1   2   3   4   5   6   7   8   9   10   >