Re: [PATCH v3 05/46] perf/x86/intel/cmt: add per-package locks

2016-11-16 Thread Thomas Gleixner
On Mon, 14 Nov 2016, David Carrillo-Cisneros wrote: > > Also, "monr" is a horribly 'word'. > > What makes it so bad? (honest question) . Some alternatives: > > - res_mon, resm, rmon (Resource Monitor) > - rmnode, rnode, rmon_node (Resource Monitoring node, similar to > Resource Monitor ID, but t

[RFC][PATCH] proc: mm: export PTE sizes directly in smaps

2016-11-16 Thread Dave Hansen
/proc/$pid/smaps has a number of fields that are intended to imply the kinds of PTEs used to map memory. "AnonHugePages" obviously tells you how many PMDs are being used. "MMUPageSize" along with the "Hugetlb" fields tells you how many PTEs you have for a huge page. The current mechanisms work

[PATCH 2/3] net: stmmac: replace hardcoded function name by __func__

2016-11-16 Thread Corentin Labbe
From: LABBE Corentin Some printing have the function name hardcoded. It is better to use __func__ instead. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/stmicro

[PATCH 1/3] net: stmmac: replace all pr_xxx by their netdev_xxx counterpart

2016-11-16 Thread Corentin Labbe
From: LABBE Corentin The stmmac driver use lots of pr_xxx functions to print information. This is bad since we cannot know which device logs the information. (moreover if two stmmac device are present) Furthermore, it seems that it assumes wrongly that all logs will always be subsequent by using

Re: [PATCH] f2fs: fix fdatasync

2016-11-16 Thread Jaegeuk Kim
Hi Chao, On Wed, Nov 16, 2016 at 08:12:11PM +0800, Chao Yu wrote: > For below two cases, we can't guarantee data consistence: > > a) > 1. xfs_io "pwrite 0 4195328" "fsync" > 2. xfs_io "pwrite 4195328 1024" "fdatasync" > 3. godown > 4. umount & mount > --> isize we updated before fdatasync won't b

[PATCH] cpufreq: conservative: Fix comment explaining frequency updates

2016-11-16 Thread Stratos Karafotis
The original comment about the frequency increase to maximum is wrong. Both increase and decrease happen at steps. Signed-off-by: Stratos Karafotis --- drivers/cpufreq/cpufreq_conservative.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq_conserva

[PATCH 3/3] net: stmmac: replace if (netif_msg_type) by their netif_xxx counterpart

2016-11-16 Thread Corentin Labbe
From: LABBE Corentin As sugested by Joe Perches, we could replace all if (netif_msg_type(priv)) dev_xxx(priv->devices, ...) by the simpler macro netif_xxx(priv, hw, priv->dev, ...) Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 49 ++-

[PATCH] [media] VPU: mediatek: fix dereference of pdev before checking it is null

2016-11-16 Thread Colin King
From: Colin Ian King pdev is dereferenced using platform_get_drvdata before a check to see if it is null, hence there could be a potential null pointer dereference issue. Instead, first check if pdev is null and only then deference pdev when initializing vpu. Found with static analysis by Coveri

Re: [PATCH v3] f2fs: don't wait writeback for datas during checkpoint

2016-11-16 Thread Jaegeuk Kim
Hi Chao, On Wed, Nov 16, 2016 at 10:41:20AM +0800, Chao Yu wrote: > Normally, while committing checkpoint, we will wait on all pages to be > writebacked no matter the page is data or metadata, so in scenario where > there are lots of data IO being submitted with metadata, we may suffer > long late

Re: [BUG] X86: Removing inline decl on arch/x86/include/asm/desc.h.

2016-11-16 Thread Thomas Gleixner
On Tue, 15 Nov 2016, Corcodel Marian wrote: > Inline declarations suppress warning message from compiler but > most of these functions was declared static and is not used local on file. Huch? This is a header file and the functions are marked inline on purpose. Can you please explain what you a

Re: [fuse-devel] fuse: max_background and congestion_threshold settings

2016-11-16 Thread Nikolaus Rath
Hi Maxim, On Nov 15 2016, Maxim Patlasov wrote: > On 11/15/2016 08:18 AM, Nikolaus Rath wrote: >> Could someone explain to me the meaning of the max_background and >> congestion_threshold settings of the fuse module? >> >> At first I assumed that max_background specifies the maximum number of >>

[PATCH] clk: berlin: Pass correct type to hw provider registration

2016-11-16 Thread Stephen Boyd
Dan Carpenter reports that we're passing a pointer to a pointer here when we should just be passing a pointer. Pass the right pointer so that the of_clk_hw_onecell_get() sees the appropriate data pointer on its end. Reported-by: Dan Carpenter Cc: Jisheng Zhang Cc: Alexandre Belloni Cc: Sebastia

[PATCH] clk: efm32gg: Pass correct type to hw provider registration

2016-11-16 Thread Stephen Boyd
Dan Carpenter reports that we're passing a pointer to a pointer here when we should just be passing a pointer. Pass the right pointer so that the of_clk_hw_onecell_get() sees the appropriate data pointer on its end. Reported-by: Dan Carpenter Cc: Stephen Boyd Cc: Uwe Kleine-König Fixes: 9337631

Re: [RFC PATCH v3 08/20] x86: Add support for early encryption/decryption of memory

2016-11-16 Thread Tom Lendacky
On 11/16/2016 4:46 AM, Borislav Petkov wrote: > Btw, for your next submission, this patch can be split in two exactly > like the commit message paragraphs are: I think I originally had it that way, I don't know why I combined them. I'll split them out. > > On Wed, Nov 09, 2016 at 06:36:10PM -060

Re: [PATCH v3 0/3] modversions: Fix CRC mangling under CONFIG_RELOCATABLE=y

2016-11-16 Thread Uwe Kleine-König
On Thu, Oct 27, 2016 at 05:27:08PM +0100, Ard Biesheuvel wrote: > This series is a followup to the single patch 'modversions: treat symbol > CRCs as 32 bit quantities on 64 bit archs', of which two versions have > been sent out so far [0][1] > > As pointed out by Michael, GNU ld behaves a bit diff

Re: [PATCH v05 69/72] uapi rose.h: glibc netrose/rose.h header file compatibility fixes

2016-11-16 Thread Mikko Rapeli
Hi, On Mon, Aug 29, 2016 at 12:34:25PM -0700, David Ranch wrote: > Hello Mikko, > > Somewhat related, the ax25.h file from libax25-devel also has conflicts with > the Glibc's ax.25.h. This creates trouble so if we could get a fix for > that, that would be appreciated as well though it might be a

[PATCH v2] cpufreq: conservative: Fix comment explaining frequency updates

2016-11-16 Thread Stratos Karafotis
The original comment about the frequency increase to maximum is wrong. Both increase and decrease happen at steps. Signed-off-by: Stratos Karafotis --- -> v2 Remove a trailing space drivers/cpufreq/cpufreq_conservative.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

[ANNOUNCE] 3.4.113-rt145

2016-11-16 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.4.113-rt145 stable release. This release is just an update to the new stable 3.4.113 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-r

Re: [PATCH] rcu: Avoid unnecessary contention of rcu node lock

2016-11-16 Thread Paul E. McKenney
On Wed, Nov 16, 2016 at 01:49:31PM +0900, Byungchul Park wrote: > On Wed, Nov 09, 2016 at 05:57:13PM +0900, Byungchul Park wrote: > > It's unnecessary to try to print stacks of blocked tasks in the case > > that ndetected == 0. Furthermore, calling rcu_print_detail_task_stall() > > causes to acquir

Re: [PATCH V4 2/2] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers

2016-11-16 Thread Bjorn Helgaas
On Wed, Nov 16, 2016 at 07:59:38PM +0800, Dongdong Liu wrote: > Hi Bjorn > > Many Thanks for your review > > 在 2016/11/15 7:33, Bjorn Helgaas 写道: > >On Wed, Nov 09, 2016 at 05:14:57PM +0800, Dongdong Liu wrote: > >>PCIe controller in Hip05/HIP06/HIP07 SoCs is not ECAM compliant. > >>It is non ECA

[PATCH v3] mm: don't cap request size based on read-ahead setting

2016-11-16 Thread Jens Axboe
We ran into a funky issue, where someone doing 256K buffered reads saw 128K requests at the device level. Turns out it is read-ahead capping the request size, since we use 128K as the default setting. This doesn't make a lot of sense - if someone is issuing 256K reads, they should see 256K reads,

Re: [PATCH V3] pinctrl: rockchip: add support for rk1108

2016-11-16 Thread Linus Walleij
On Tue, Nov 15, 2016 at 11:02 AM, Andy Yan wrote: > This add pinctrl support for Rockchip RK1108 Soc. > > Signed-off-by: Andy Yan > Reviewed-by: Heiko Stuebner > > Series-changes: 2 > - add pull and drive-strength functionality > > Series-changes: 3 > - two minor CodingStyle fixes adviced by He

[PATCH v2] tile: avoid using clocksource_cyc2ns with absolute cycle count

2016-11-16 Thread Chris Metcalf
For large values of "mult" and long uptimes, the intermediate result of "cycles * mult" can overflow 64 bits. For example, the tile platform calls clocksource_cyc2ns with a 1.2 GHz clock; we have mult = 853, and after 208.5 days, we overflow 64 bits. Since clocksource_cyc2ns() is intended to be u

Re: [PATCH] iommu: mtk: add common-clk dependency

2016-11-16 Thread Stephen Boyd
On 11/16, Arnd Bergmann wrote: > After the MT2701 clock driver was added, we get a harmless warning for > the iommu driver that selects it, when compile-testing without > COMMON_CLK. > > warning: (MTK_IOMMU_V1) selects COMMON_CLK_MT2701_IMGSYS which has unmet > direct dependencies (COMMON_CLK) >

Re: [PATCH v4 1/2] console: Move scrollback data into its own struct

2016-11-16 Thread kbuild test robot
Hi Manuel, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc5 next-20161116] [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/Manuel-Sch-lling/console-Move-scrollback-data

Re: [RFC][PATCH] proc: mm: export PTE sizes directly in smaps

2016-11-16 Thread Dan Williams
On Wed, Nov 16, 2016 at 11:05 AM, Dave Hansen wrote: > > /proc/$pid/smaps has a number of fields that are intended to imply the > kinds of PTEs used to map memory. "AnonHugePages" obviously tells you > how many PMDs are being used. "MMUPageSize" along with the "Hugetlb" > fields tells you how ma

Re: [PATCH] clocksource_cyc2ns: avoid overflowing 64 bits

2016-11-16 Thread John Stultz
On Wed, Nov 16, 2016 at 11:30 AM, Chris Metcalf wrote: > On 11/16/2016 1:04 PM, John Stultz wrote: >> >> On Wed, Nov 16, 2016 at 8:57 AM, Chris Metcalf >> wrote: >>> >>> include/linux/clocksource.h | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/include/linux/clo

Re: [PATCH 1/1] gpio: lib: Add gpio_is_enabled() to get pin mode

2016-11-16 Thread Linus Walleij
On Tue, Nov 15, 2016 at 12:36 PM, Laxman Dewangan wrote: > [Me] >> It would be more natural to add a function pinctrl_is_gpio(unsigned gpio) >> to call back to the pin controller, then that can be called from >> the generic or driver-specific debug print callback. > > > We have two type of IPs, GP

Re: [PATCH] clocksource_cyc2ns: avoid overflowing 64 bits

2016-11-16 Thread John Stultz
On Wed, Nov 16, 2016 at 11:30 AM, Chris Metcalf wrote: > diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h > index 08398182f56e..529884b8 100644 > --- a/include/linux/clocksource.h > +++ b/include/linux/clocksource.h > @@ -171,6 +171,10 @@ static inline u32 clocksource_hz2

Re: [PATCH v2] gpio: Remove GPIO_DEVRES option

2016-11-16 Thread Linus Walleij
On Tue, Nov 15, 2016 at 11:39 PM, Keno Fischer wrote: > This option was added in 6a89a314ab107a12af08c71420c19a37a30fc2d3 to allow use > of the devm_gpio_* functions without CONFIG_GPIOLIB. However, only a few > months > later in b69ac52449c658b7ac40034dc3c5f5f4a71a723d, CONFIG_GPIOLIB, was adde

Re: [PATCH] gpio: max77620: add compatible string to device id list

2016-11-16 Thread Linus Walleij
On Wed, Nov 16, 2016 at 10:17 AM, Shardar Shariff Md wrote: > From: Venkat Reddy Talla > > Adding max20024 compatible string to the device id list > to support both max77620 and max20024 devices. > > Signed-off-by: Venkat Reddy Talla Patch applied. Yours, Linus Walleij

[tip:ras/core] x86/amd_nb: Make all exports EXPORT_SYMBOL_GPL

2016-11-16 Thread tip-bot for Yazen Ghannam
Commit-ID: de6bd0835ac148a0882528fe1fe5bcee709fe911 Gitweb: http://git.kernel.org/tip/de6bd0835ac148a0882528fe1fe5bcee709fe911 Author: Yazen Ghannam AuthorDate: Thu, 10 Nov 2016 15:10:54 -0600 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 20:46:38 +0100 x86/amd_nb: Make all e

[tip:ras/core] x86/amd_nb: Make amd_northbridges internal to amd_nb.c

2016-11-16 Thread tip-bot for Yazen Ghannam
Commit-ID: c7993890e772c450764d39ba872444307bbdd460 Gitweb: http://git.kernel.org/tip/c7993890e772c450764d39ba872444307bbdd460 Author: Yazen Ghannam AuthorDate: Thu, 10 Nov 2016 15:10:53 -0600 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 20:46:37 +0100 x86/amd_nb: Make amd_n

[tip:ras/core] x86/amd_nb: Add Fam17h Data Fabric as "Northbridge"

2016-11-16 Thread tip-bot for Yazen Ghannam
Commit-ID: b791c6b6a55c402367cc544f54921074253db061 Gitweb: http://git.kernel.org/tip/b791c6b6a55c402367cc544f54921074253db061 Author: Yazen Ghannam AuthorDate: Thu, 10 Nov 2016 15:10:55 -0600 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 20:46:38 +0100 x86/amd_nb: Add Fam17h

[tip:ras/core] x86/amd_nb: Add SMN and Indirect Data Fabric access for AMD Fam17h

2016-11-16 Thread tip-bot for Yazen Ghannam
Commit-ID: ddfe43cdc0da3189feac4bb9f0f818bef6d6e56e Gitweb: http://git.kernel.org/tip/ddfe43cdc0da3189feac4bb9f0f818bef6d6e56e Author: Yazen Ghannam AuthorDate: Thu, 10 Nov 2016 15:10:56 -0600 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 20:46:38 +0100 x86/amd_nb: Add SMN an

Re: [PATCH] pinctrl: sunxi: fix theoretical uninitialized variable access

2016-11-16 Thread Linus Walleij
On Wed, Nov 16, 2016 at 3:18 PM, Arnd Bergmann wrote: > gcc warns about a way that it could use an uninitialized variable: > > drivers/pinctrl/sunxi/pinctrl-sunxi.c: In function 'sunxi_pinctrl_init': > drivers/pinctrl/sunxi/pinctrl-sunxi.c:1191:8: error: 'best_div' may be used > uninitialized i

[char-misc-next 1/4] mei: introduce host client uninitialized state

2016-11-16 Thread Tomas Winkler
From: Alexander Usyskin Introduce a new host client state, MEI_FILE_UNINITIALIZED, to distinguish client objects that was unlinked, but not destroyed and can be linked again. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/client.c | 6 +++--- drivers/misc/

[char-misc-next 0/4] mei: bus: rx fixes

2016-11-16 Thread Tomas Winkler
The motivation behind this series is better support for fixed address clients on the mei client bus. Fixed address clients do not have flow control and hence it is hard to work with clients especially if they have unsolicitedreceive. The top most patch add non blocking receive function for easier c

[char-misc-next 4/4] mei: bus: enable non-blocking RX

2016-11-16 Thread Tomas Winkler
From: Alexander Usyskin Enable non-blocking receive for drivers on mei bus, this allows checking for data availability by mei client drivers. This is most effective for fixed address clients, that lacks flow control. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/mi

[char-misc-next 3/4] mei: bus: split RX and async notification callbacks

2016-11-16 Thread Tomas Winkler
From: Alexander Usyskin Split callbacks for RX and async notification events on mei bus to eliminate synchronization problems and to open way for RX optimizations. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus.c | 141 ++

[char-misc-next 2/4] mei: bus: make a client pointer always available

2016-11-16 Thread Tomas Winkler
From: Alexander Usyskin Change life time of the client pointer, allocate it upon client device creation and free it upon device destruction, instead of upon connection and disconnection. This helps to eliminate racy NULL checks in the bus code. Signed-off-by: Alexander Usyskin Signed-off-by: To

Re: [PATCH v2] tile: avoid using clocksource_cyc2ns with absolute cycle count

2016-11-16 Thread John Stultz
On Wed, Nov 16, 2016 at 11:35 AM, Chris Metcalf wrote: > For large values of "mult" and long uptimes, the intermediate > result of "cycles * mult" can overflow 64 bits. For example, > the tile platform calls clocksource_cyc2ns with a 1.2 GHz clock; > we have mult = 853, and after 208.5 days, we o

Re: [PATCH 1/1] drivers: dma-contiguous: Ensure cma reserve region never cross the low/high mem boundary

2016-11-16 Thread Laura Abbott
On 11/16/2016 06:19 AM, Jason Liu wrote: > If the cma reserve region goes through the device-tree method, > also need ensure the cma reserved region not cross the low/high > mem boundary. This patch did the similar fix as commit:16195dd > ("mm: cma: Ensure that reservations never cross the low/high

Re: [PATCH] clocksource_cyc2ns: avoid overflowing 64 bits

2016-11-16 Thread John Stultz
On Wed, Nov 16, 2016 at 11:56 AM, Chris Metcalf wrote: > On 11/16/2016 2:45 PM, John Stultz wrote: >> >> On Wed, Nov 16, 2016 at 11:30 AM, Chris Metcalf >> wrote: >>> >>> diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h >>> index 08398182f56e..529884b8 100644 >>> --- a/i

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-16 Thread Alexei Starovoitov
On Wed, Nov 16, 2016 at 10:58 AM, Kees Cook wrote: > On Wed, Nov 16, 2016 at 2:09 AM, Peter Zijlstra wrote: >> On Tue, Nov 15, 2016 at 12:53:35PM -0800, Kees Cook wrote: >>> >>> What should we do about things like this (bpf_prog_put() and callbacks >>> from kernel/bpf/syscall.c): >>> >>> >>> stat

commit 0b5da8d: fuse: add support for SEEK_HOLE and SEEK_DATA in lseek

2016-11-16 Thread Nikolaus Rath
Hi Ravishankar, In commit 0b5da8d you added support for a new FUSE_LSEEK operation. However, as far as I can tell the corresponding userspace code never landed in libfuse. Do you have a corresponding patch for libfuse? Looking at the commit message, I assume this functionality was added specifi

Re: [PATCH v4 1/2] console: Move scrollback data into its own struct

2016-11-16 Thread kbuild test robot
Hi Manuel, [auto build test WARNING on linus/master] [also build test WARNING on v4.9-rc5 next-20161116] [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/Manuel-Sch-lling/console-Move-scrollback

Re: [BUG] X86: Removing inline decl on arch/x86/include/asm/desc.h.

2016-11-16 Thread Eric Dumazet
On Wed, 2016-11-16 at 20:16 +0100, Thomas Gleixner wrote: > On Tue, 15 Nov 2016, Corcodel Marian wrote: > > Inline declarations suppress warning message from compiler but > > most of these functions was declared static and is not used local on file. > > Huch? This is a header file and the functi

commit 5e940c: fuse: handle killpriv in userspace fs

2016-11-16 Thread Nikolaus Rath
Hi Miklos, In commit 5e940c you introduced a new FUSE_HANDLE_KILLPRIV flag, but as far as I know no corresponding userspace support has landed in libfuse yet. Are you planning to provide a patch? Thanks, -Nikolaus -- GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31

[PATCH v2 4/9] bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs

2016-11-16 Thread Stuart Yoder
From: Roy Pledge Add global definitions for DPAA2 frame descriptors and scatter gather entries. Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder Cc: Laurentiu Tudor Cc: Ioana Radulescu --- -v2 -added setter/getter for the FD ctrl field -corrected comment for SG format_offset field

[PATCH v2 2/9] bus: fsl-mc: dpio: add DPIO driver overview document

2016-11-16 Thread Stuart Yoder
add document describing the dpio driver and it's role, components and major interfaces Signed-off-by: Stuart Yoder Cc: Laurentiu Tudor Cc: Roy Pledge Cc: Ioana Radulescu --- -v2 -no changes Documentation/dpaa2/dpio-driver.txt | 135 1 file changed, 135

[PATCH v2 6/9] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2

2016-11-16 Thread Stuart Yoder
From: Roy Pledge Add QBman APIs for frame queue and buffer pool operations. Signed-off-by: Roy Pledge Signed-off-by: Haiying Wang Signed-off-by: Stuart Yoder Cc: Laurentiu Tudor Cc: Ioana Radulescu --- -v2 -fix bug in buffer release command, by setting bpid field -handle error (NULL)

[PATCH v2 7/9] bus: fsl-mc: dpio: add the DPAA2 DPIO service interface

2016-11-16 Thread Stuart Yoder
From: Roy Pledge The DPIO service interface handles initialization of DPIO objects and exports APIs to be used by other DPAA2 object drivers to perform queuing and buffer management related operations. The service allows registration of callbacks when frames or notifications are received. Signe

[PATCH v2 8/9] bus: fsl-mc: dpio: add the DPAA2 DPIO object driver

2016-11-16 Thread Stuart Yoder
From: Roy Pledge The DPIO driver registers with the fsl-mc bus to handle bus-related events for DPIO objects. Key responsibility is mapping I/O regions, setting up interrupt handlers, and calling the DPIO service initialization during probe. Signed-off-by: Roy Pledge Signed-off-by: Haiying Wan

[PATCH v2 0/9] staging: fsl-mc: move bus driver out of staging, add dpio

2016-11-16 Thread Stuart Yoder
This patch series: A) addresses the final item in the staging TODO list for the fsl-mc bus driver-- adding a functional driver on top of the bus driver, and B) requests that the fsl-mc bus driver be moved out of staging. The proposed destination for the bus driver is drivers/bus. Proposed location

[PATCH v2 1/9] staging: fsl-mc: move bus driver out of staging

2016-11-16 Thread Stuart Yoder
Move the source files out of staging into their final locations: -include files in drivers/staging/fsl-mc/include go to include/linux/fsl -irq-gic-v3-its-fsl-mc-msi.c goes to drivers/irqchip -source in drivers/staging/fsl-mc/bus goes to drivers/bus/fsl-mc -README.txt, providing and overview

[PATCH v2 3/9] bus: fsl-mc: dpio: add APIs for DPIO objects

2016-11-16 Thread Stuart Yoder
From: Ioana Radulescu Add the command build/parse APIs for operating on DPIO objects through the DPAA2 Management Complex. Signed-off-by: Ioana Radulescu Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder Cc: Laurentiu Tudor --- -v2 -removed unused structs and defines as suggested by Io

[PATCH v2 5/9] bus: fsl-mc: dpio: add global dpaa2 definitions

2016-11-16 Thread Stuart Yoder
From: Roy Pledge Create header for global dpaa2 definitions. Add definitions for dequeue results. Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder Cc: Laurentiu Tudor Cc: Ioana Radulescu --- -v2 -no changes include/linux/fsl/dpaa2-global.h | 203 +++

[PATCH v2] sched/rt: Disable RT_RUNTIME_SHARE by default

2016-11-16 Thread Daniel Bristot de Oliveira
The RT_RUNTIME_SHARE sched feature enables the sharing of rt_runtime between CPUs, allowing a CPU to run a real-time task up to 100% of the time while leaving more space for non-real-time tasks to run on the CPU that lend rt_runtime. The problem is that a CPU can easily borrow enough rt_runtime to

Re: [fuse-devel] fuse: max_background and congestion_threshold settings

2016-11-16 Thread Nikolaus Rath
On Nov 16 2016, Maxim Patlasov wrote: > On 11/16/2016 11:19 AM, Nikolaus Rath wrote: > >> Hi Maxim, >> >> On Nov 15 2016, Maxim Patlasov wrote: >>> On 11/15/2016 08:18 AM, Nikolaus Rath wrote: Could someone explain to me the meaning of the max_background and congestion_threshold setting

[PATCH v2] x86/cpufeatures: Enable new AVX512 cpu features

2016-11-16 Thread Gayatri Kammela
Add a few new AVX512 instruction groups/features for enumeration in /proc/cpuinfo: AVX512IFMA and AVX512VBMI. Clear the flags in fpu_xstate_clear_all_cpu_caps(). CPUID.(EAX=7,ECX=0):EBX[bit 21] AVX512IFMA CPUID.(EAX=7,ECX=0):ECX[bit 1] AVX512VBMI Detailed information of cpuid bits for the featu

Re: [Ksummit-discuss] Including images on Sphinx documents

2016-11-16 Thread Mauro Carvalho Chehab
Hi Arnd, Em Wed, 16 Nov 2016 17:03:47 +0100 Arnd Bergmann escreveu: > On Tuesday, November 8, 2016 8:50:36 AM CET Mauro Carvalho Chehab wrote: > > It basically calls ImageMagick "convert" tool for all png and > > pdf files currently at the documentation (they're all at media, > > ATM). > > It

Re: [PATCH v3 0/3] modversions: Fix CRC mangling under CONFIG_RELOCATABLE=y

2016-11-16 Thread Ard Biesheuvel
On 16 November 2016 at 19:23, Uwe Kleine-König wrote: > On Thu, Oct 27, 2016 at 05:27:08PM +0100, Ard Biesheuvel wrote: >> This series is a followup to the single patch 'modversions: treat symbol >> CRCs as 32 bit quantities on 64 bit archs', of which two versions have >> been sent out so far [0][

Re: [PATCH v2] tile: avoid using clocksource_cyc2ns with absolute cycle count

2016-11-16 Thread John Stultz
On Wed, Nov 16, 2016 at 12:16 PM, Chris Metcalf wrote: > On 11/16/2016 2:59 PM, John Stultz wrote: >> >> In your earlier patch, you mentioned this was similar to 4cecf6d401a0 >> ("sched, x86: Avoid unnecessary overflow in >> sched_clock"). It might be better to actually try to use similar logic >>

[PATCH v4.1 0/2] console: Add persistent scrollback buffers for all VGA console

2016-11-16 Thread Manuel Schölling
Well, that's embarrassing: I changed the order of some local commits in the last minute, so my patches included a compiler error. Changes in v4.1: - Fix compiler error Changes in v4: - Rename from VGACON_SOFT_SCROLLBACK_FOR_EACH_CONSOLE to VGACON_SOFT_SCROLLBACK_PERSISTENT - Split into t

[PATCH v4.1 2/2] console: Add persistent scrollback buffers for all VGA consoles

2016-11-16 Thread Manuel Schölling
Add a scrollback buffers for each VGA console. The benefit is that the scrollback history is not flushed when switching between consoles but is persistent. The buffers are allocated on demand when a new console is opened. This breaks tools like clear_console that rely on flushing the scrollback hi

[PATCH v4.1 1/2] console: Move scrollback data into its own struct

2016-11-16 Thread Manuel Schölling
This refactoring is in preparation for persistent scrollback support for VGA console. Signed-off-by: Manuel Schölling --- drivers/video/console/vgacon.c | 90 +- 1 file changed, 46 insertions(+), 44 deletions(-) diff --git a/drivers/video/console/vgacon.c

[PATCH v2 9/9] bus: fsl-mc: dpio: add maintainer for DPIO

2016-11-16 Thread Stuart Yoder
From: Roy Pledge add Roy Pledge as maintainer of DPIO Signed-off-by: Roy Pledge Signed-off-by: Stuart Yoder Cc: Laurentiu Tudor Cc: Ioana Radulescu --- -v2 -corrected location of maintainer entry MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAI

Re: [PATCH v2] tile: avoid using clocksource_cyc2ns with absolute cycle count

2016-11-16 Thread John Stultz
On Wed, Nov 16, 2016 at 12:29 PM, John Stultz wrote: > On Wed, Nov 16, 2016 at 12:16 PM, Chris Metcalf wrote: >> Change 4cecf6d401a0 results in essentially identical code for x86 as >> this proposed change does for tile. In fact a follow-on change by >> Salman introduced mult_frac() and switched

Re: [PATCH net 1/7] net: ethernet: ti: cpsw: fix bad register access in probe error path

2016-11-16 Thread Grygorii Strashko
On 11/16/2016 08:35 AM, Johan Hovold wrote: > Make sure to resume the platform device to enable clocks before > accessing the CPSW registers in the probe error path (e.g. for deferred > probe). > > Unhandled fault: external abort on non-linefetch (0x1008) at 0xd0872d08 > ... > [] (cpsw_ale_contr

Re: [PATCH] pinctrl: sunxi: fix theoretical uninitialized variable access

2016-11-16 Thread Maxime Ripard
Hi Arnd, On Wed, Nov 16, 2016 at 03:18:18PM +0100, Arnd Bergmann wrote: > gcc warns about a way that it could use an uninitialized variable: > > drivers/pinctrl/sunxi/pinctrl-sunxi.c: In function 'sunxi_pinctrl_init': > drivers/pinctrl/sunxi/pinctrl-sunxi.c:1191:8: error: 'best_div' may be used

Re: [PATCH v11 7/7] KVM: x86: virtualize cpuid faulting

2016-11-16 Thread Paolo Bonzini
> On Fri, Nov 11, 2016 at 12:54 PM, Nadav Amit wrote: > > > >> On Nov 10, 2016, at 3:40 PM, Kyle Huey wrote: > >> > >> Hardware support for faulting on the cpuid instruction is not required to > >> emulate it, because cpuid triggers a VM exit anyways. KVM handles the > >> relevant > >> MSRs (MSR_

[PATCH v14 00/22] Add Mediated device support

2016-11-16 Thread Kirti Wankhede
This series adds Mediated device support to Linux host kernel. Purpose of this series is to provide a common interface for mediated device management that can be used by different devices. This series introduces Mdev core module that creates and manages mediated devices, VFIO based driver for media

[PATCH v14 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-16 Thread Kirti Wankhede
Added APIs for pining and unpining set of pages. These call back into backend iommu module to actually pin and unpin pages. Added two new callback functions to struct vfio_iommu_driver_ops. Backend IOMMU module that supports pining and unpinning pages for mdev devices should provide these functions

Re: [PATCH v2] x86/cpufeatures: Enable new AVX512 cpu features

2016-11-16 Thread Borislav Petkov
On Wed, Nov 16, 2016 at 12:11:00PM -0800, Gayatri Kammela wrote: > Add a few new AVX512 instruction groups/features for enumeration in > /proc/cpuinfo: AVX512IFMA and AVX512VBMI. > > Clear the flags in fpu_xstate_clear_all_cpu_caps(). > > CPUID.(EAX=7,ECX=0):EBX[bit 21] AVX512IFMA > CPUID.(EAX=7,

[PATCH v14 01/22] vfio: Mediated device Core driver

2016-11-16 Thread Kirti Wankhede
Design for Mediated Device Driver: Main purpose of this driver is to provide a common interface for mediated device management that can be used by different drivers of different devices. This module provides a generic interface to create the device, add it to mediated bus, add device to IOMMU grou

[PATCH v14 13/22] vfio: Introduce common function to add capabilities

2016-11-16 Thread Kirti Wankhede
Vendor driver using mediated device framework should use vfio_info_add_capability() to add capabilities. Introduced this function to reduce code duplication in vendor drivers. vfio_info_cap_shift() manipulated a data buffer to add an offset to each element in a chain. This data buffer is documente

[PATCH v14 17/22] vfio_platform: Updated to use vfio_set_irqs_validate_and_prepare()

2016-11-16 Thread Kirti Wankhede
Updated vfio_platform_common.c file to use vfio_set_irqs_validate_and_prepare() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: Id87cd6b78ae901610b39bf957974baa6f40cd7b0 --- drivers/vfio/platform/vfio_platform_common.c | 31 +++- 1 file changed, 8 inserti

[PATCH v14 09/22] vfio iommu type1: Add task structure to vfio_dma

2016-11-16 Thread Kirti Wankhede
Add task structure to vfio_dma structure. Task structure is used for: - During DMA_UNMAP, same task who mapped it or other task who shares same address space is allowed to unmap, otherwise unmap fails. QEMU maps few iova ranges initially, then fork threads and from the child thread calls DMA_UNMAP

[PATCH v14 20/22] docs: Sysfs ABI for mediated device framework

2016-11-16 Thread Kirti Wankhede
Added details of sysfs ABI for mediated device framework Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: Icb0fd4ed58a2fa793fbcb1c3d5009a4403c1f3ac --- Documentation/ABI/testing/sysfs-bus-vfio-mdev | 111 ++ 1 file changed, 111 insertions(+) create mode 1

[PATCH v14 15/22] vfio: Introduce vfio_set_irqs_validate_and_prepare()

2016-11-16 Thread Kirti Wankhede
Vendor driver using mediated device framework would use same mechnism to validate and prepare IRQs. Introducing this function to reduce code replication in multiple drivers. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: Ie201f269dda0713ca18a07dc4852500bd8b48309 --- drivers/vfi

[PATCH v14 06/22] vfio iommu type1: Update arguments of vfio_lock_acct

2016-11-16 Thread Kirti Wankhede
Added task structure as input argument to vfio_lock_acct() function. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I5d3673cc9d3786bb436b395d5f74537f1a36da80 --- drivers/vfio/vfio_iommu_type1.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(

[PATCH v14 16/22] vfio_pci: Updated to use vfio_set_irqs_validate_and_prepare()

2016-11-16 Thread Kirti Wankhede
Updated vfio_pci.c file to use vfio_set_irqs_validate_and_prepare() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I9f3daba89d8dba5cb5b01a8cff420412f30686c7 --- drivers/vfio/pci/vfio_pci.c | 34 +++--- 1 file changed, 7 insertions(+), 27 deletions(-)

[PATCH v14 22/22] MAINTAINERS: Add entry VFIO based Mediated device drivers

2016-11-16 Thread Kirti Wankhede
Adding myself as a maintainer of mediated device framework, a sub module of VFIO. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I58f6717783e0d4008ca31f4a5c4494696bae8571 --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS inde

[PATCH v14 10/22] vfio iommu type1: Add support for mediated devices

2016-11-16 Thread Kirti Wankhede
VFIO IOMMU drivers are designed for the devices which are IOMMU capable. Mediated device only uses IOMMU APIs, the underlying hardware can be managed by an IOMMU domain. Aim of this change is: - To use most of the code of TYPE1 IOMMU driver for mediated devices - To support direct assigned device

[PATCH v14 19/22] docs: Add Documentation for Mediated devices

2016-11-16 Thread Kirti Wankhede
Add file Documentation/vfio-mediated-device.txt that include details of mediated device framework. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I137dd646442936090d92008b115908b7b2c7bc5d --- Documentation/vfio-mediated-device.txt | 298 + driver

[PATCH v14 11/22] vfio iommu: Add blocking notifier to notify DMA_UNMAP

2016-11-16 Thread Kirti Wankhede
Added blocking notifier to IOMMU TYPE1 driver to notify vendor drivers about DMA_UNMAP. Exported two APIs vfio_register_notifier() and vfio_unregister_notifier(). Notifier should be registered, if external user wants to use vfio_pin_pages()/vfio_unpin_pages() APIs to pin/unpin pages. Vendor driver

[PATCH v14 14/22] vfio_pci: Update vfio_pci to use vfio_info_add_capability()

2016-11-16 Thread Kirti Wankhede
Update msix_sparse_mmap_cap() to use vfio_info_add_capability() Update region type capability to use vfio_info_add_capability() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I52bb28c7875a6da5a79ddad1843e6088aff58a45 --- drivers/vfio/pci/vfio_pci.c | 49 ++--

[PATCH v14 07/22] vfio iommu type1: Update argument of vaddr_get_pfn()

2016-11-16 Thread Kirti Wankhede
Update arguments of vaddr_get_pfn() to take struct mm_struct *mm as input argument. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I885fd4cd4a9f66f4ee2c1caf58267464ec239f52 --- drivers/vfio/vfio_iommu_type1.c | 32 1 file changed, 24 insertions(

[PATCH v14 18/22] vfio: Define device_api strings

2016-11-16 Thread Kirti Wankhede
Defined device API strings. Vendor driver using mediated device framework should use corresponding string for device_api attribute. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I42d29f475f02a7132ce13297fbf2b48f1da10995 --- include/uapi/linux/vfio.h | 10 ++ 1 file cha

[PATCH v14 02/22] vfio: VFIO based driver for Mediated devices

2016-11-16 Thread Kirti Wankhede
vfio_mdev driver registers with mdev core driver. mdev core driver creates mediated device and calls probe routine of vfio_mdev driver for each device. Probe routine of vfio_mdev driver adds mediated device to VFIO core module This driver forms a shim layer that pass through VFIO devices operation

[PATCH v14 08/22] vfio iommu type1: Add find_iommu_group() function

2016-11-16 Thread Kirti Wankhede
Add find_iommu_group() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Reviewed-by: Jike Song Reviewed-by: Dong Jia Shi Change-Id: I9d372f1ebe9eb01a5a21374b8a2b03f7df73601f --- drivers/vfio/vfio_iommu_type1.c | 57 - 1 file changed, 33 insertions(

Re: [PATCH] clocksource_cyc2ns: avoid overflowing 64 bits

2016-11-16 Thread Chris Metcalf
On 11/16/2016 3:00 PM, John Stultz wrote: On Wed, Nov 16, 2016 at 11:56 AM, Chris Metcalf wrote: On 11/16/2016 2:45 PM, John Stultz wrote: On Wed, Nov 16, 2016 at 11:30 AM, Chris Metcalf wrote: diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 08398182f56e..529

[PATCH] media: remove obsolete Media Device Managed resource interfaces

2016-11-16 Thread Shuah Khan
Remove obsolete media_device_get_devres(), media_device_find_devres(), and media_device_release_devres() interfaces. These interfaces are now obsolete. Signed-off-by: Shuah Khan --- drivers/media/media-device.c | 26 -- include/media/media-device.h | 32 --

[PATCH v14 21/22] docs: Sample driver to demonstrate how to use Mediated device framework.

2016-11-16 Thread Kirti Wankhede
The Sample driver creates mdev device that simulates serial port over PCI card. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I857f8f12f8b275f2498dfe8c628a5cdc7193b1b2 --- Documentation/vfio-mediated-device.txt | 103 ++- samples/vfio-mdev/Makefile | 13 + sampl

[PATCH v14 12/22] vfio: Add notifier callback to parent's ops structure of mdev

2016-11-16 Thread Kirti Wankhede
Add a notifier calback to parent's ops structure of mdev device so that per device notifer for vfio module is registered through vfio_mdev module. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: Iafa6f1721aecdd6e50eb93b153b5621e6d29b637 --- drivers/vfio/mdev/vfio_mdev.c | 34 +++

Re: [PATCH devicetree/next] ARM: BCM5301X: Add DT for TP-LINK Archer C9 V1

2016-11-16 Thread Florian Fainelli
On 11/13/2016 02:12 AM, Rafał Miłecki wrote: > From: Rafał Miłecki > > It's BCM4709A0 based device with 16 MiB flash, 128 MiB of RAM and two > PCIe based on-PCB BCM4360 chipsets. > > Signed-off-by: Rafał Miłecki Applied, thanks! -- Florian

Re: [PATCH] Support for perf on AMD family17h processors

2016-11-16 Thread Natarajan, Janakarajan
On 11/16/2016 12:47 PM, Borislav Petkov wrote: On Wed, Nov 16, 2016 at 11:01:53AM -0600, Janakarajan Natarajan wrote: This patch enables perf core PMU support for AMD family17h processors. In family17h, there is no PMC-event constraint. All events, irrespective of the type, can be measured usin

[PATCH v14 04/22] vfio: Common function to increment container_users

2016-11-16 Thread Kirti Wankhede
This change rearrange functions to have common function to increment container_users Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Reviewed-by: Jike Song Change-Id: I8bdeb352bc8439b107ffd519480fd4dc238677f2 --- drivers/vfio/vfio.c | 34 +- 1 file changed

[PATCH v14 03/22] vfio: Rearrange functions to get vfio_group from dev

2016-11-16 Thread Kirti Wankhede
This patch rearranges functions to get vfio_group from device Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Reviewed-by: Jike Song Change-Id: I1f93262bdbab75094bc24b087b29da35ba70c4c6 --- drivers/vfio/vfio.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-)

<    1   2   3   4   5   6   7   8   9   10   >