Re: [PATCH v2] PCI: altera: Retrain link in rootport mode only

2016-08-30 Thread Bjorn Helgaas
On Tue, Aug 30, 2016 at 09:36:52AM -0700, Ray Jui wrote: > > > On 8/30/2016 6:37 AM, Bjorn Helgaas wrote: > >On Mon, Aug 29, 2016 at 05:37:09PM -0700, Ray Jui wrote: > >>Hi Bjorn, > >> > >>On 8/24/2016 10:54 AM, Bjorn Helgaas wrote: > >>>[+cc Ray, Scott, Jon, bcm-kernel-feedback-list] > >>> > >>>

[PATCH v4 2/2] soc: qcom: add l2 cache perf events driver

2016-08-30 Thread Neil Leeder
Adds perf events support for L2 cache PMU. The L2 cache PMU driver is named 'l2cache_0' and can be used with perf events to profile L2 events such as cache hits and misses. Signed-off-by: Neil Leeder --- drivers/soc/qcom/Kconfig | 10 + drivers/soc/qcom/Makefile |

[PATCH v4 1/2] soc: qcom: provide mechanism for drivers to access L2 registers

2016-08-30 Thread Neil Leeder
L2 registers are accessed using a select register and data register pair. To prevent multiple concurrent writes to the select register by independent drivers, the write to the select register and the associated access of the data register are protected with a lock. All drivers accessing the L2 regi

[PATCH v4 0/2] qcom: add l2 cache perf events driver

2016-08-30 Thread Neil Leeder
This adds a new dynamic PMU to the perf events framework to program and control the L2 cache PMUs in Qualcomm Centriq SOCs. The driver exports formatting and event information to sysfs so it can be used by the perf user space tools with the syntax: perf stat -a -e l2cache_0/event=0x42/ Qualcomm T

Re: [PATCH v3] mm/usercopy: get rid of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2016-08-30 Thread Linus Torvalds
On Tue, Aug 30, 2016 at 6:04 AM, Josh Poimboeuf wrote: > There are three usercopy warnings which are currently being silenced for > gcc 4.6 and newer: [.. snip snip ..] Ok, I'm not entirely happy with the timing, but I think the problem counts as a regression since it effectively made all the ch

Re: [PATCH 2/2] hwmon: (max6650) Add initial rpm target devicetree documentation

2016-08-30 Thread Mike Looijmans
On 30-08-16 18:38, Rob Herring wrote: On Wed, Aug 24, 2016 at 10:13:27AM +0200, Mike Looijmans wrote: Add devicetree property for early initialization of the fan controller to prevent overheating, for example when resetting the board while the fan was completely turned off. Signed-off-by: Mike

Re: [PATCH v2] PCI: altera: Retrain link in rootport mode only

2016-08-30 Thread Ray Jui
On 8/30/2016 10:00 AM, Bjorn Helgaas wrote: On Tue, Aug 30, 2016 at 09:36:52AM -0700, Ray Jui wrote: On 8/30/2016 6:37 AM, Bjorn Helgaas wrote: On Mon, Aug 29, 2016 at 05:37:09PM -0700, Ray Jui wrote: Hi Bjorn, On 8/24/2016 10:54 AM, Bjorn Helgaas wrote: [+cc Ray, Scott, Jon, bcm-kernel-

Re: [PATCH] arm64: dts: rockchip: Explicitly set pclk_pmu_src on rk3399

2016-08-30 Thread Brian Norris
On Tue, Aug 30, 2016 at 09:05:06AM +0200, Heiko Stuebner wrote: > Am Dienstag, 30. August 2016, 08:59:31 schrieb Elaine Zhang: > > On 08/30/2016 02:18 AM, Brian Norris wrote: > > > On Mon, Aug 29, 2016 at 11:11:24AM -0700, Doug Anderson wrote: > > >> --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi >

Re: [PATCH v2 3/6] dt/bindings: Add bindings for Tegra GMI controller

2016-08-30 Thread Rob Herring
On Wed, Aug 24, 2016 at 09:54:47PM +0200, Mirza Krak wrote: > 2016-08-24 17:56 GMT+02:00 Jon Hunter : > + > >> +Example with two SJA1000 CAN controllers connected to the GMI bus. We > >> wrap the > >> +controllers with a simple-bus node since they are all connected to the > >> same > >> +chip-sel

Re: git am and duplicate signatures

2016-08-30 Thread Joe Perches
(adding lkml) On Tue, 2016-08-30 at 09:54 -0700, Junio C Hamano wrote: > Joe Perches writes: > > git-am -s will avoid duplicating the last signature > > in a patch. > > > > But given a developer creates a patch, send it around for > > acks/other signoffs, collects signatures and then does > > a

Re: [PATCH 1/4] Bluetooth: hci_ldisc: fix a race in the hdev closing path

2016-08-30 Thread Boris Brezillon
On Tue, 30 Aug 2016 09:53:59 -0700 Marcel Holtmann wrote: > Hi Boris, > > > hci_uart_tty_close() is cancelling any pending write work, but some > > hci_uart_proto implementations might re-schedule this work after its > > cancellation (by calling hci_uart_tx_wakeup()). > > > > Make sure the writ

Re: [PATCH v5] Force cppc_cpufreq to report values in KHz to fix user space reporting

2016-08-30 Thread Al Stone
On 08/25/2016 04:00 PM, Pandruvada, Srinivas wrote: > On Tue, 2016-08-23 at 10:14 -0600, Al Stone wrote: > > [...] > >>> In x86 when CPPC is used, the unit is really unit-less in CPPC >>> tables. >>> This means that cpu->perf_caps.highest_perf can be just 0xff, >>> instead >>> of some scaled

Re: DAX can not work on virtual nvdimm device

2016-08-30 Thread Dan Williams
On Mon, Aug 29, 2016 at 11:53 PM, Xiao Guangrong wrote: > > > On 08/30/2016 03:30 AM, Ross Zwisler wrote: > >> >> Can you please verify that you are using "usable" memory for your memmap? >> All >> the details are here: >> >> >> https://nvdimm.wiki.kernel.org/how_to_choose_the_correct_memmap_kerne

Re: [PATCH v14 04/14] task_isolation: add initial support

2016-08-30 Thread Frederic Weisbecker
On Tue, Aug 30, 2016 at 11:41:36AM -0400, Chris Metcalf wrote: > On 8/29/2016 8:55 PM, Frederic Weisbecker wrote: > >On Mon, Aug 15, 2016 at 10:59:55AM -0400, Chris Metcalf wrote: > >>On 8/11/2016 2:50 PM, Christoph Lameter wrote: > >>>On Thu, 11 Aug 2016, Frederic Weisbecker wrote: > >>> > Do

Re: [PATCH 4/4] Bluetooth: hci_ldisc: make sure we don't loose HCI_UART_TX_WAKEUP events

2016-08-30 Thread Boris Brezillon
On Tue, 30 Aug 2016 09:53:53 -0700 Marcel Holtmann wrote: > Hi Boris, > > > The HCI_UART_TX_WAKEUP flag checking is racy and some HCI_UART_TX_WAKEUP > > events can be lost. > > > > Signed-off-by: Boris Brezillon > > --- > > drivers/bluetooth/hci_ldisc.c | 11 +++ > > 1 file changed, 11

Re: [PATCH v2 6/7] arm64: dts: exynos: Add dts file for Exynos5433-based TM2 board

2016-08-30 Thread Rob Herring
On Wed, Aug 24, 2016 at 10:49:10PM +0900, Chanwoo Choi wrote: > This patch adds the Device Tree source for Exynos5433-based Samsung TM2 board. > This board fully support the all things for mobile target. > > This patch supports the following devices: > 1. basic SoC > - Initial booting for Samsung

[PATCH] Bluetooth: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "workqueue" queues multiple work items viz &qca->ws_awake_rx &qca->ws_rx_vote_off, &qca->ws_awake_device, &qca->ws_tx_vote_off which require strict execution ordering. Hence, an ordered dedicated workqueue has been used to replace the deprecated create_singlethread_workqueue instance.

Re: [PATCH v14 04/14] task_isolation: add initial support

2016-08-30 Thread Chris Metcalf
On 8/29/2016 8:55 PM, Frederic Weisbecker wrote: On Mon, Aug 15, 2016 at 10:59:55AM -0400, Chris Metcalf wrote: On 8/11/2016 2:50 PM, Christoph Lameter wrote: On Thu, 11 Aug 2016, Frederic Weisbecker wrote: Do we need to quiesce vmstat everytime before entering userspace? I thought that vmsta

[PATCH] ps3: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "ps3av->wq" queues a single work item &ps3av->work and hence doesn't require ordering. It is involved in waking up ps3avd to do the video mode setting and hence it's not being used on a memory reclaim path. Hence, it has been converted to use system_wq. System workqueues have been ab

[PATCH] device core: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "deferred_wq" queues a single work item &deferred_probe_work and hence doesn't require ordering. It is involved in probing devices and is not being used on a memory reclaim path. Hence, it has been converted to use system_wq. System workqueues have been able to handle high level of c

Re: [PATCH 3/4] dt-binding: remoteproc: venus rproc dt binding document

2016-08-30 Thread Bjorn Andersson
On Mon 29 Aug 04:48 PDT 2016, Stanimir Varbanov wrote: [..] > > Trying to wrap my head around how the iommu part works here. The > > downstream code seems to indicate that this is a "generic" secure iommu > > interface - used by venus, camera and kgsl; likely for dealing with DRM > > protected buf

[PATCH] clocksource: Freescale: handle of_iomap failures in legacy timer driver

2016-08-30 Thread Arvind Yadav
Check return value of of_iomap and handle errors correctly. Signed-off-by: Arvind Yadav --- drivers/clocksource/fsl_ftm_timer.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/clocksource/fsl_ftm_timer.c b/drivers/clocksource/fsl_ftm_timer.c index 7

Re: chipidea: udc: kernel panic in isr_setup_status_phase

2016-08-30 Thread Clemens Gruber
On Mon, Aug 29, 2016 at 06:24:03PM +0800, Peter Chen wrote: > Would you please measure the voltage of vbus within 1s at below two > conditions: > > - Just connect cable > - Just disconnect cable We found out that there was a problem with our hardware design! But first, here is the VBUS measureme

Re: [RESEND PATCH, v5 4/5] usb: Add MediaTek USB3 DRD Driver

2016-08-30 Thread Greg Kroah-Hartman
On Fri, Aug 26, 2016 at 05:38:27PM +0800, chunfeng yun wrote: > Hi, > > On Thu, 2016-08-25 at 10:32 +0200, Oliver Neukum wrote: > > On Thu, 2016-08-25 at 11:05 +0800, Chunfeng Yun wrote: > > > This patch adds support for the MediaTek USB3 controller > > > integrated into MT8173. It can be configur

Re: [PATCH 0/4] Bluetooth: hci_uart: various fixes

2016-08-30 Thread Boris Brezillon
Hi Marcel, On Tue, 30 Aug 2016 09:48:13 -0700 Marcel Holtmann wrote: > Hi Boris, > > > We recently faced some problems when using an BT uart chip interfaced > > through the H5 proto (rtk_h5). Here are the logs of the 2 different > > issues we had when closing the line discipline (actually, rest

[PATCH -v2] mm: Don't use radix tree writeback tags for pages in swap cache

2016-08-30 Thread Huang, Ying
From: Huang Ying File pages use a set of radix tree tags (DIRTY, TOWRITE, WRITEBACK, etc.) to accelerate finding the pages with a specific tag in the radix tree during inode writeback. But for anonymous pages in the swap cache, there is no inode writeback. So there is no need to find the pages

[PATCH v2 00/26] MIPS generic kernels, SEAD-3 & Boston support

2016-08-30 Thread Paul Burton
This series introduces some infrastructure for building generic kernels which will run on multiple boards depending upon the device tree provided to them by the bootloader. It converts SEAD-3 to make use of this, and adds support for the MIPS Boston development platform. The Boston support can be

[PATCH v2 01/26] MIPS: PCI: Support for CONFIG_PCI_DOMAINS_GENERIC

2016-08-30 Thread Paul Burton
Introduce support for CONFIG_PCI_DOMAINS_GENERIC, allowing for platforms to make use of generic PCI domains instead of the MIPS-specific implementation. The set_pci_need_domain_info function is introduced to abstract away the removed need_domain_info field in struct pci_controller, and pcibios_scan

[PATCH v2 02/26] MIPS: PCI: Make pcibios_set_cache_line_size an initcall

2016-08-30 Thread Paul Burton
In preparation for allowing configurations in which pcibios_init is not included, make pcibios_set_cache_line_size an initcall. arch_initcall is used such that it runs before the pcibios_init subsys_initcall for platforms that continue to use it. Signed-off-by: Paul Burton --- Changes in v2: Non

[PATCH v2 06/26] MIPS: PCI: Support generic drivers

2016-08-30 Thread Paul Burton
Introduce support for PCI drivers using only functionality provided generically by the PCI subsystem, by adding the minimum arch-provided functions required. The driver this has been developed for & tested with the xilinx-pcie on a MIPS Boston development board. Signed-off-by: Paul Burton --- C

[PATCH v2 03/26] MIPS: PCI: Inline pcibios_assign_all_busses

2016-08-30 Thread Paul Burton
The MIPS implementation of pcibios_assign_all_busses trivially returns 1. Implement it as a static function in asm/pci.h such that the compiler can inline it & optimise out never-taken paths. Signed-off-by: Paul Burton --- Changes in v2: None arch/mips/include/asm/pci.h | 6 -- arch/mips/p

[PATCH v2 05/26] MIPS: PCI: Introduce CONFIG_PCI_DRIVERS_LEGACY

2016-08-30 Thread Paul Burton
Introduce 2 Kconfig symbols, CONFIG_PCI_DRIVERS_GENERIC & CONFIG_PCI_DRIVERS_LEGACY, which indicate whether the system should be built to for PCI drivers using the MIPS-specific struct pci_controller API (hereafter "legacy" drivers) or more generic drivers using only functionality provided by the P

[PATCH v2 10/26] MIPS: Print CM error reports upon bus errors

2016-08-30 Thread Paul Burton
If a bus error occurs on a system with a MIPS Coherence Manager (CM) then the CM may hold useful diagnostic information. Printing this out has so far been left up to boards, with the requirement that they register a board_be_handler function & call mips_cm_error_decode() from there. In order to av

[PATCH v2 08/26] MIPS: dma-default: Don't check hw_coherentio if device is non-coherent

2016-08-30 Thread Paul Burton
There are no cases where plat_device_is_coherent() will return zero whilst hw_coherentio is non-zero, and acting any differently in such a case doesn't make much sense - if a device is non-coherent with the CPU caches then access to memory "coherent" with DMA must be uncached. Clean up the nonsensi

[PATCH v2 09/26] MIPS: Support per-device DMA coherence

2016-08-30 Thread Paul Burton
On some MIPS systems, a subset of devices may have DMA coherent with CPU caches. For example in systems including a MIPS I/O Coherence Unit (IOCU), some devices may be connected to that IOCU whilst others are not. Prior to this patch, we have a plat_device_is_coherent() function but no implementat

[PATCH v2 13/26] dt-bindings: Document mti,mips-cdmm binding

2016-08-30 Thread Paul Burton
Document a binding for the MIPS Common Device Memory Map (CDMM) which simply allows the device tree to specify where the CDMM registers should be mapped. Signed-off-by: Paul Burton --- Changes in v2: None Documentation/devicetree/bindings/misc/mti,mips-cdmm.txt | 8 1 file changed, 8

[PATCH v2 11/26] dt-bindings: Document mti,mips-cpc binding

2016-08-30 Thread Paul Burton
Document a binding for the MIPS Cluster Power Controller (CPC) which simply allows the device tree to specify where the CPC registers should be mapped. Signed-off-by: Paul Burton --- Changes in v2: None Documentation/devicetree/bindings/misc/mti,mips-cpc.txt | 8 1 file changed, 8 ins

Re: [PATCH] arm/perf: Fix pmu percpu irq handling at hotplug.

2016-08-30 Thread Mark Rutland
Hi, On Fri, Aug 26, 2016 at 10:48:00AM +0100, Will Deacon wrote: > On Fri, Aug 19, 2016 at 03:25:14PM +0100, Mark Rutland wrote: > > On Thu, Aug 18, 2016 at 01:24:38PM -0700, Yabin Cui wrote: > > >If the cpu pmu is using a percpu irq:                                   > > >   > > >      

[PATCH v2 12/26] MIPS: CPC: Provide a default mips_cpc_default_phys_base

2016-08-30 Thread Paul Burton
Provide a weak default implementation of mips_cpc_default_phys_base which reads the base address of the CPC from the device tree if possible, and failing that returns the existing physical address of the CPC as read from CPC base address GCR. This allows for platforms to make use of the CPC without

[PATCH v2 07/26] MIPS: Sanitise coherentio semantics

2016-08-30 Thread Paul Burton
The coherentio variable has previously been used as a boolean value, indicating whether the user specified that coherent I/O should be enabled or disabled. It failed to take into account the case where the user does not specify any preference, in which case it makes sense that we should default to

[PATCH v2 19/26] MIPS: Stengthen IPI IRQ domain sanity check

2016-08-30 Thread Paul Burton
Commit fbde2d7d8290 ("MIPS: Add generic SMP IPI support") introduced a sanity check that an IPI IRQ domain can be found during boot, in order to ensure that IPIs are able to be set up in systems using such domains. However it was added at a point where systems may have used an IPI IRQ domain in som

[PATCH v2 22/26] MIPS: generic: Introduce generic DT-based board support

2016-08-30 Thread Paul Burton
Introduce a "generic" platform, which aims to be board-agnostic by making use of device trees passed by the boot protocol defined in the MIPS UHI (Universal Hosting Interface) specification. Provision is made for supporting boards which use a legacy boot protocol that can't be changed, but adding s

[PATCH v2 17/26] irqchip: mips-cpu: Introduce IPI IRQ domain support

2016-08-30 Thread Paul Burton
Introduce support for registering an IPI IRQ domain suitable for use by systems using the MIPS MT (multithreading) ASE within a single core. This will allow for such systems to be supported generically, without the current kludge of IPI code split between the MIPS arch & the malta board support cod

[PATCH v2 21/26] MIPS: Support generating Flattened Image Trees (.itb)

2016-08-30 Thread Paul Burton
Add support for generating kernel images in the Flattened Image Tree (.itb) format as supported by U-Boot. This format is essentially a Flattened Device Tree binary containing images (kernels, DTBs, ramdisks) and configurations which link those images together. The big advantages of FIT images over

[PATCH v2 15/26] irqchip: mips-cpu: Replace magic 0x100 with IE_SW0

2016-08-30 Thread Paul Burton
Replace use of the magic number 0x100 (ie. bit 8) with the more explanatory IE_SW0 (ie. interrupt enable for software interrupt 0) or C_SW0 (ie. cause bit for software interrupt 0) as appropriate. Signed-off-by: Paul Burton --- Changes in v2: None drivers/irqchip/irq-mips-cpu.c | 8 1

[PATCH v2 14/26] MIPS: CDMM: Allow CDMM base address to be specified via DT

2016-08-30 Thread Paul Burton
Allow systems to specify the base address for the CDMM using device tree. This removes the need for it to be specified by platform specific code, preparing for generic kernels which can run without any. Signed-off-by: Paul Burton --- Changes in v2: None drivers/bus/mips_cdmm.c | 13 +++

[PATCH v2 20/26] MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0

2016-08-30 Thread Paul Burton
On MIPS64 we define the default CAC_BASE as one of the xkphys regions of the virtual address space. Since the CCA is encoded in bits 61:59 of xkphys addresses, fixing CAC_BASE to any particular one prevents us from dynamically changing the CCA as we do for MIPS32 where CAC_BASE is placed within kse

Re: [PATCH v15 04/13] task_isolation: add initial support

2016-08-30 Thread Chris Metcalf
On 8/30/2016 12:30 PM, Andy Lutomirski wrote: On Tue, Aug 30, 2016 at 8:32 AM, Chris Metcalf wrote: On 8/30/2016 3:58 AM, Peter Zijlstra wrote: On Mon, Aug 29, 2016 at 12:40:32PM -0400, Chris Metcalf wrote: On 8/29/2016 12:33 PM, Peter Zijlstra wrote: On Tue, Aug 16, 2016 at 05:19:27PM -0400

[PATCH v2 18/26] MIPS: smp-mt: Use CPU interrupt controller IPI IRQ domain support

2016-08-30 Thread Paul Burton
Remove the smp-mt IPI code that supported single-core multithreaded systems and instead make use of the IPI IRQ domain support provided by the MIPS CPU interrupt controller driver. This removes some less than nice code, the horrible split between arch & board code and the duplication that led to wi

[PATCH v2 16/26] irqchip: mips-cpu: Prepare for non-legacy IRQ domains

2016-08-30 Thread Paul Burton
The various struct irq_chip callbacks in the MIPS CPU interrupt controller driver have been calculating the hardware interrupt number by subtracting MIPS_CPU_IRQ_BASE from the virq number. This presumes a linear mapping beginning from MIPS_CPU_IRQ_BASE, and this will not hold once an IPI IRQ domain

Re: [PATCH V3 3/3] dmaengine: qcom_hidma: add error reporting for tx_status

2016-08-30 Thread Sinan Kaya
On 8/30/2016 1:04 PM, Vinod Koul wrote: > On Tue, Aug 23, 2016 at 12:48:11AM -0400, Sinan Kaya wrote: > >> spin_lock_init(&lldev->lock); >> -tasklet_init(&lldev->rst_task, hidma_ll_abort, (unsigned long)lldev); > > ?? > > This is not described in changlog? If you are not using in anywhe

[PATCH v2 25/26] clk: boston: Add a driver for MIPS Boston board clocks

2016-08-30 Thread Paul Burton
Add a driver for the clocks provided by the MIPS Boston board from Imagination Technologies. 2 clocks are provided - the system clock & the CPU clock - and each is a simple fixed rate clock whose frequency can be determined by reading a register provided by the board. Signed-off-by: Paul Burton

[PATCH v2 24/26] dt-bindings: Document img,boston-clock binding

2016-08-30 Thread Paul Burton
Add device tree binding documentation for the clocks provided by the MIPS Boston development board from Imagination Technologies, and a header file describing the available clocks for use by device trees & driver. Signed-off-by: Paul Burton --- Changes in v2: - Add BOSTON_CLK_INPUT to expose th

[PATCH v2 23/26] MIPS: generic: Convert SEAD-3 to a generic board

2016-08-30 Thread Paul Burton
Convert the MIPS SEAD-3 board support to be a generic board, supported by generic kernels. Because the SEAD-3 boot protocol was defined long ago and we don't want to force a switch to the UHI protocol, SEAD-3 is added as a legacy board which is detected by reading the REVISION register. This may t

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Roland Singer
I am running 4.7.2, but I also just tried the 4.8.0-rc4 mainline kernel. The result is the same. There is no difference if bbswitch of acpi_call is used. However I noticed following: 1. The nouveau driver is broken in both kernel version and is responsible for the freezes while gathering power

Re: git am and duplicate signatures

2016-08-30 Thread Junio C Hamano
Joe Perches writes: > (adding lkml) > > On Tue, 2016-08-30 at 09:54 -0700, Junio C Hamano wrote: >> Joe Perches writes: >> > git-am -s will avoid duplicating the last signature >> > in a patch. >> > >> > But given a developer creates a patch, send it around for >> > acks/other signoffs, collect

[PATCH v2 26/26] MIPS: generic: Support MIPS Boston development boards

2016-08-30 Thread Paul Burton
Add support for the MIPS Boston development board to generic kernels, which essentially amounts to: - Adding the device tree source for the MIPS Boston board. - Adding a Kconfig fragment which enables the appropriate drivers for the MIPS Boston board. With these changes in place generic

[PATCH 1/9] fs/afs/vlocation: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "afs_vlocation_update_worker" queues a single work item &afs_vlocation_update and hence it doesn't require execution ordering. Hence, alloc_workqueue has been used to replace the deprecated create_singlethread_workqueue instance. Since the workqueue is being used on a memory reclaim

[PATCH v7 00/13] kexec_file_load implementation for PowerPC

2016-08-30 Thread Thiago Jung Bauermann
The purpose of this new version of the series is to allow building with CONFIG_KEXEC=n and CONFIG_KEXEC_FILE=y. This is done by patch 4, which is new in v7. The other patches have very little changes, just to fix checkpatch warnings, as noted in the changelog. Note that at this moment the powerpc

[PATCH 0/9] Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
This patch set removes deprecated create_singlethread_workqueue usages in fs/. Bhaktipriya Shridhar (9): fs/afs/vlocation: Remove deprecated create_singlethread_workqueue fs/afs/rxrpc: Remove deprecated create_singlethread_workqueue fs/afs/callback: Remove deprecated create_singlethread_work

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Ilia Mirkin
On Tue, Aug 30, 2016 at 1:37 PM, Roland Singer wrote: > My conclusion: > > 1. Nouveau has couple of problems with GTX 9** M Nvidia GPUs. >I would love to help here. nouveau + bbswitch will always end in tears. You're going behind the driver's back and messing around with state it believes it

[PATCH v7 07/13] powerpc: Adapt elf64_apply_relocate_add for kexec_file_load.

2016-08-30 Thread Thiago Jung Bauermann
Extend elf64_apply_relocate_add to support relative symbols. This is necessary because there is a difference between how the module loading mechanism and the kexec purgatory loading code use Elf64_Sym.st_value at relocation time: the former changes st_value to point to the absolute memory address b

[PATCH 4/9] fs/afs/flock: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "afs_lock_manager" queues a single work item &vnode->lock_work, and hence it doesn't require execution ordering. Hence, alloc_workqueue has been used to replace the deprecated create_singlethread_workqueue instance. The WQ_MEM_RECLAIM flag has been set to ensure forward progress unde

[PATCH 6/9] fs/ocfs2/cluster: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "o2net_wq" queues multiple work items viz &old_sc->sc_shutdown_work, &sc->sc_rx_work, &sc->sc_connect_work which require strict execution ordering. Hence, an ordered dedicated workqueue has been used. WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure. Sign

[PATCH v4 0/5] kexec_file: Add buffer hand-over for the next kernel

2016-08-30 Thread Thiago Jung Bauermann
Hello, The purpose of this new version of the series is to fix a small issue that I found, which is that the kernel doesn't remove the memory reservation for the hand-over buffer it received from the previous kernel in the device tree it sets up for the next kernel. The result is that for each suc

[PATCH 7/9] fs/ocfs2/super: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "ocfs2_wq" queues multiple work items viz &osb->la_enable_wq, &journal->j_recovery_work, &os->os_orphan_scan_work, &osb->osb_truncate_log_wq which require strict execution ordering. Hence, an ordered dedicated workqueue has been used. WQ_MEM_RECLAIM has been set to ensure forward pro

[PATCH v7 05/13] powerpc: Factor out relocation code from module_64.c to elf_util_64.c.

2016-08-30 Thread Thiago Jung Bauermann
The kexec_file_load system call needs to relocate the purgatory, so factor out the module relocation code so that it can be shared. This patch's purpose is to move the ELF relocation logic from apply_relocate_add to elf_util_64.c with as few changes as possible. The following changes were needed:

[PATCH 5/9] fs/ocfs2/dlmfs: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "user_dlm_worker" queues a single work item &lockres->l_work per user_lock_res instance and hence it doesn't require execution ordering. Hence, alloc_workqueue has been used to replace the deprecated create_singlethread_workqueue instance. The WQ_MEM_RECLAIM flag has been set to ensu

[PATCH 3/9] fs/afs/callback: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "afs_callback_update_worker" queues multiple work items viz &vnode->cb_broken_work, &server->cb_break_work which require strict execution ordering. Hence, an ordered dedicated workqueue has been used. Since the workqueue is being used on a memory reclaim path, WQ_MEM_RECLAIM has bee

[PATCH 2/9] fs/afs/rxrpc: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "afs_async_calls" queues a single work item viz &call->async_work and hence it doesn't require execution ordering. Hence, alloc_workqueue has been used to replace the deprecated create_singlethread_workqueue instance. The WQ_MEM_RECLAIM flag has been set to ensure forward progress un

[PATCH v7 06/13] powerpc: Generalize elf64_apply_relocate_add.

2016-08-30 Thread Thiago Jung Bauermann
When apply_relocate_add is called, modules are already loaded at their final location in memory so Elf64_Shdr.sh_addr can be used for accessing the section contents as well as the base address for relocations. This is not the case for kexec's purgatory, because it will only be copied to its final

[PATCH v7 11/13] powerpc: Add support for loading ELF kernels with kexec_file_load.

2016-08-30 Thread Thiago Jung Bauermann
This uses all the infrastructure built up by the previous patches in the series to load an ELF vmlinux file and an initrd. It uses the flattened device tree at initial_boot_params as a base and adjusts memory reservations and its /chosen node for the next kernel. Signed-off-by: Thiago Jung Bauerma

[PATCH v7 03/13] kexec_file: Factor out kexec_locate_mem_hole from kexec_add_buffer.

2016-08-30 Thread Thiago Jung Bauermann
kexec_locate_mem_hole will be used by the PowerPC kexec_file_load implementation to find free memory for the purgatory stack. Signed-off-by: Thiago Jung Bauermann Acked-by: Dave Young --- include/linux/kexec.h | 1 + kernel/kexec_file.c | 25 - 2 files changed, 21 ins

[PATCH v4 4/5] kexec_file: Add mechanism to update kexec segments.

2016-08-30 Thread Thiago Jung Bauermann
kexec_update_segment allows a given segment in kexec_image to have its contents updated. This is useful if the current kernel wants to send information to the next kernel that is up-to-date at the time of reboot. Signed-off-by: Thiago Jung Bauermann --- include/linux/kexec.h | 2 ++ kernel/kexe

Re: [linux-sunxi] Re: [PATCH v9 0/2] sun4i-codec: Add Line-In, FM-In, Mic 2, Capture Source, Differential Line-In

2016-08-30 Thread Danny Milosavljevic
On Tue, 30 Aug 2016 09:12:48 -0400 Stefan Monnier wrote: > > - rename "Line-In" to "Line". > > Curious: why? Documentation/sound/alsa/ControlNames.txt line 49

[PATCH v2 04/26] MIPS: PCI: Split pci.c into pci.c & pci-legacy.c

2016-08-30 Thread Paul Burton
Split out the parts of pci.c that are used by existing systems with MIPS-style PCI drivers but that will not be used by systems with more generic PCI drivers such as pcie-xilinx. This is done in preparation for allowing configurations where the code moved to pci-legacy.c is not built. Signed-off-b

[PATCH v7 10/13] powerpc: Add code to work with device trees in kexec_file_load.

2016-08-30 Thread Thiago Jung Bauermann
kexec_file_load needs to set up the device tree that will be used by the next kernel and check whether it provides a console that can be used by the purgatory. [a...@linux-foundation.org: coding-style fixes] Signed-off-by: Thiago Jung Bauermann Signed-off-by: Andrew Morton --- arch/powerpc/incl

[PATCH 8/9] fs/ocfs2/dlm: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "dlm_worker" queues a single work item &dlm->dispatched_work and thus it doesn't require execution ordering. Hence, alloc_workqueue has been used to replace the deprecated create_singlethread_workqueue instance. The WQ_MEM_RECLAIM flag has been set to ensure forward progress under me

[PATCH v7 13/13] powerpc: Enable CONFIG_KEXEC_FILE in powerpc server defconfigs.

2016-08-30 Thread Thiago Jung Bauermann
Enable CONFIG_KEXEC_FILE in powernv_defconfig, ppc64_defconfig and pseries_defconfig. It depends on CONFIG_CRYPTO_SHA256=y, so add that as well. Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/configs/powernv_defconfig | 2 ++ arch/powerpc/configs/ppc64_defconfig | 2 ++ arch/powerpc/co

[PATCH v7 09/13] powerpc: Implement kexec_file_load.

2016-08-30 Thread Thiago Jung Bauermann
arch_kexec_walk_mem and arch_kexec_apply_relocations_add are used by generic kexec code, while setup_purgatory is powerpc-specific and sets runtime variables needed by the powerpc purgatory implementation. Signed-off-by: Josh Sklar Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/Kconfig

[PATCH v7 08/13] powerpc: Add functions to read ELF files of any endianness.

2016-08-30 Thread Thiago Jung Bauermann
A little endian kernel might need to kexec a big endian kernel (the opposite is less likely but could happen as well), so we can't just cast the buffer with the binary to ELF structs and use them as is done elsewhere. This patch adds functions which do byte-swapping as necessary when populating th

[PATCH v4 2/5] powerpc: kexec_file: Add buffer hand-over support for the next kernel

2016-08-30 Thread Thiago Jung Bauermann
The buffer hand-over mechanism allows the currently running kernel to pass data to kernel that will be kexec'd via a kexec segment. The second kernel can check whether the previous kernel sent data and retrieve it. This is the architecture-specific part. Signed-off-by: Thiago Jung Bauermann ---

[PATCH v4 3/5] kexec_file: Allow skipping checksum calculation for some segments.

2016-08-30 Thread Thiago Jung Bauermann
Add skip_checksum member to struct kexec_buf to specify whether the corresponding segment should be part of the checksum calculation. The next patch will add a way to update segments after a kimage is loaded. Segments that will be updated in this way should not be checksummed, otherwise they will

[PATCH v7 02/13] kexec_file: Change kexec_add_buffer to take kexec_buf as argument.

2016-08-30 Thread Thiago Jung Bauermann
This is done to simplify the kexec_add_buffer argument list. Adapt all callers to set up a kexec_buf to pass to kexec_add_buffer. In addition, change the type of kexec_buf.buffer from char * to void *. There is no particular reason for it to be a char *, and the change allows us to get rid of 3 ex

[GIT PULL] MD update for 4.8-rc4

2016-08-30 Thread Shaohua Li
Hi, please pull MD update for 4.8-rc4. This update includes several bug fixes: - Alexey Obitotskiy fixes hang for faulty raid5 array with external management - Song Liu fixes two raid5 journal realted bugs - Tomasz Majchrzak fixes a bad block recording issue and an accounting issue for raid10 - Zh

[PATCH v4 1/5] kexec_file: Add buffer hand-over support for the next kernel

2016-08-30 Thread Thiago Jung Bauermann
The buffer hand-over mechanism allows the currently running kernel to pass data to kernel that will be kexec'd via a kexec segment. The second kernel can check whether the previous kernel sent data and retrieve it. This is the architecture-independent part of the feature. Signed-off-by: Thiago Ju

[PATCH v7 04/13] powerpc: Change places using CONFIG_KEXEC to use CONFIG_KEXEC_CORE instead.

2016-08-30 Thread Thiago Jung Bauermann
Commit 2965faa5e03d ("kexec: split kexec_load syscall from kexec core code") introduced CONFIG_KEXEC_CORE so that CONFIG_KEXEC means whether the kexec_load system call should be compiled-in and CONFIG_KEXEC_FILE means whether the kexec_file_load system call should be compiled-in. These options can

[PATCH v4 5/5] IMA: Demonstration code for kexec buffer passing.

2016-08-30 Thread Thiago Jung Bauermann
This shows how kernel code can use the kexec buffer passing mechanism to pass information to the next kernel. This patch is not intended to be committed. [a...@linux-foundation.org: coding-style fixes] Signed-off-by: Thiago Jung Bauermann Signed-off-by: Andrew Morton --- include/linux/ima.h

[PATCH 9/9] fs/nfsd/nfs4callback: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "callback_wq" queues a single work item &cb->cb_work per nfsd4_callback instance and thus, it doesn't require execution ordering. Hence, alloc_workqueue has been used to replace the deprecated create_singlethread_workqueue instance. The WQ_MEM_RECLAIM flag has not been set since this

[PATCH v7 12/13] powerpc: Add purgatory for kexec_file_load implementation.

2016-08-30 Thread Thiago Jung Bauermann
This purgatory implementation comes from kexec-tools, almost unchanged. The only changes were that the sha256_regions global variable was renamed to sha_regions to match what kexec_file_load expects, and to use the sha256.c file from x86's purgatory to avoid adding yet another SHA-256 implementati

Re: [PATCH V3 3/3] dmaengine: qcom_hidma: add error reporting for tx_status

2016-08-30 Thread Sinan Kaya
On 8/30/2016 1:37 PM, Sinan Kaya wrote: > On 8/30/2016 1:04 PM, Vinod Koul wrote: >> On Tue, Aug 23, 2016 at 12:48:11AM -0400, Sinan Kaya wrote: >> >>> spin_lock_init(&lldev->lock); >>> - tasklet_init(&lldev->rst_task, hidma_ll_abort, (unsigned long)lldev); >> >> ?? >> >> This is not describe

Re: [PATCH v7 05/14] arm64/numa: avoid inconsistent information to be printed

2016-08-30 Thread Will Deacon
On Sat, Aug 27, 2016 at 04:54:56PM +0800, Leizhen (ThunderTown) wrote: > > > On 2016/8/26 20:47, Will Deacon wrote: > > On Wed, Aug 24, 2016 at 03:44:44PM +0800, Zhen Lei wrote: > >> numa_init(of_numa_init) may returned error because of numa configuration > >> error. So "No NUMA configuration fou

[PATCH v7 01/13] kexec_file: Allow arch-specific memory walking for kexec_add_buffer

2016-08-30 Thread Thiago Jung Bauermann
Allow architectures to specify a different memory walking function for kexec_add_buffer. x86 uses iomem to track reserved memory ranges, but PowerPC uses the memblock subsystem. Signed-off-by: Thiago Jung Bauermann Acked-by: Dave Young Acked-by: Balbir Singh --- include/linux/kexec.h | 29 ++

Re: [PATCH v7 14/14] Documentation: remove the constraint on the distances of node pairs

2016-08-30 Thread Will Deacon
On Sat, Aug 27, 2016 at 06:44:39PM +0800, Leizhen (ThunderTown) wrote: > > > On 2016/8/26 23:35, Will Deacon wrote: > > On Wed, Aug 24, 2016 at 03:44:53PM +0800, Zhen Lei wrote: > >> Update documentation. This limit is unneccessary. > >> > >> Signed-off-by: Zhen Lei > >> Acked-by: Rob Herring >

[PATCH] KVM: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "irqfd_cleanup_wq" queues a single work item &irqfd->shutdown and hence doesn't require ordering. It is a host-wide workqueue for issuing deferred shutdown requests aggregated from all vm* instances. It is not being used on a memory reclaim path. Hence, it has been converted to use sy

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Roland Singer
I configured bbswitch to not set any states automatically... So it's possible to obtain and verify the GPU power state. However I removed the bbswitch module and booted with nouveau. Kernel 4.7.2: nouveau switches the discrete GPU off. I can't trigger the freeze, because bbswitch is

Re: [PATCH v6] tpm: fix a race condition in tpm2_unseal_trusted()

2016-08-30 Thread Jason Gunthorpe
On Tue, Aug 30, 2016 at 01:51:06AM +0300, Jarkko Sakkinen wrote: > Unseal and load operations should be done as an atomic operation. This > commit introduces unlocked tpm_transmit() so that tpm2_unseal_trusted() > can do the locking by itself. > > v2: Introduced an unlocked unseal operation instea

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Emil Velikov
On 30 August 2016 at 18:37, Roland Singer wrote: > I am running 4.7.2, but I also just tried the 4.8.0-rc4 mainline kernel. > The result is the same. There is no difference if bbswitch of acpi_call > is used. However I noticed following: > > 1. The nouveau driver is broken in both kernel version a

Re: [linux-sunxi] [PATCH v9 2/2] Add mixer controls: Line-In, FM-In, Mic 2, Capture Source, Differential Line-In.

2016-08-30 Thread Danny Milosavljevic
Hi CK, On Tue, 30 Aug 2016 08:49:40 +0200 Code Kipper wrote: > On 29 August 2016 at 20:03, Danny Milosavljevic > wrote: > I think this should be delivered in a series of patches like what I've > attempted to do here > https://github.com/codekipper/linux-sunxi/commits/sunxi-wip?page=2 Feel fre

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Emil Velikov
On 30 August 2016 at 19:09, Emil Velikov wrote: > On 30 August 2016 at 18:37, Roland Singer wrote: >> I am running 4.7.2, but I also just tried the 4.8.0-rc4 mainline kernel. >> The result is the same. There is no difference if bbswitch of acpi_call >> is used. However I noticed following: >> >>

<    1   2   3   4   5   6   7   8   9   >