Re: [PATCH] cxl: use pcibios_free_controller_deferred() when removing vPHBs

2016-08-29 Thread Benjamin Herrenschmidt
On Tue, 2016-08-30 at 11:58 +1000, Andrew Donnellan wrote: > Hi stable team, > > The following patch, which ended up upstream asĀ  > 6f38a8b9a45833495dc878c335c5431cd98a16ed: > > On 18/08/16 17:35, Andrew Donnellan wrote: > > > > When cxl removes a vPHB, it's possible that the pci_controller may

Re: [PATCH] cxl: use pcibios_free_controller_deferred() when removing vPHBs

2016-08-29 Thread Andrew Donnellan
Hi stable team, The following patch, which ended up upstream as 6f38a8b9a45833495dc878c335c5431cd98a16ed: On 18/08/16 17:35, Andrew Donnellan wrote: When cxl removes a vPHB, it's possible that the pci_controller may be freed before all references to the devices on the vPHB have been

Re: Setting some clocks back to DUMMY fixes spdif output on imx6q wandboard rev B1

2016-08-29 Thread Xavi Drudis Ferran
El Mon, Aug 29, 2016 at 12:28:21PM -0700, Nicolin Chen deia: > > Yes, it seems that it also tried to correct the clock sources > as those were not available when adding the S/PDIF support at > the first place. > I wonder if maybe they need to be defined, assigned or somehow listed elsewhere and

Re: [PATCH v3 0/3] Account reserved memory when allocating system hash

2016-08-29 Thread Andrew Morton
On Mon, 29 Aug 2016 18:36:47 +0530 Srikar Dronamraju wrote: > Fadump kernel reserves large chunks of memory even before the pages are > initialised. This could mean memory that corresponds to several nodes might > fall in memblock reserved regions. > > Kernels

Re: [PATCH v3 0/3] Account reserved memory when allocating system hash

2016-08-29 Thread Andrew Morton
On Mon, 29 Aug 2016 18:36:47 +0530 Srikar Dronamraju wrote: > Fadump kernel reserves large chunks of memory even before the pages are > initialised. This could mean memory that corresponds to several nodes might > fall in memblock reserved regions. > > Kernels

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-4.8-4 tag

2016-08-29 Thread Benjamin Herrenschmidt
On Mon, 2016-08-29 at 12:15 -0700, Linus Torvalds wrote: > On Sun, Aug 28, 2016 at 9:44 PM, Benjamin Herrenschmidt > > wrote: > > > > > > This is my first signed-tag and use of 2fa so I hope I got it all right... > > I tried to use the same format Michael uses for the

Re: Setting some clocks back to DUMMY fixes spdif output on imx6q wandboard rev B1

2016-08-29 Thread Nicolin Chen
Added Fabio as I can't test S/PDIF on my board. On Sun, Aug 28, 2016 at 06:00:55PM +0200, Xavi Drudis Ferran wrote: > I was using linux-libre-3.19 (implies no working sdma) with a > wandboard quad (Freescale imx6q). Spidf output worked fine. > > When I upgraded to linux-libre-4.7 spdif output

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-4.8-4 tag

2016-08-29 Thread Linus Torvalds
On Sun, Aug 28, 2016 at 9:44 PM, Benjamin Herrenschmidt wrote: > > This is my first signed-tag and use of 2fa so I hope I got it all right... > I tried to use the same format Michael uses for the tag etc... The signature all looks fine, but when the contents of the tag

Re: hwrng: pasemi_rng.c: Migrate to managed API

2016-08-29 Thread Darren Stevens
Hello PrasannaKumar On 25/08/2016, PrasannaKumar Muralidharan wrote: >> I will propose to use devm_ioremap_resource() instead for removing this >> hardcoded 0x100, but i cannot find any user of this driver in any dts. >> (And so cannot check that this 0x100 is given in any DT resource node) > >>

Re: [PATCH 0/2] Support non-ssi cpu-dai for sgtl5000

2016-08-29 Thread Fabio Estevam
On Mon, Aug 29, 2016 at 7:51 AM, Winter Wang wrote: > These patches support sgtl5000 to be attached to other non-ssi cpu-dais like > SAI. Do we really need this? We can use SAI with sgtl5000 just fine via simple card. Take a look at:

Re: [PATCH kernel 14/15] vfio/spapr_tce: Export container API for external users

2016-08-29 Thread David Gibson
On Mon, Aug 29, 2016 at 04:35:15PM +1000, Alexey Kardashevskiy wrote: > On 18/08/16 10:22, Alexey Kardashevskiy wrote: > > On 17/08/16 13:17, David Gibson wrote: > >> On Fri, Aug 12, 2016 at 09:22:01AM -0600, Alex Williamson wrote: > >>> On Fri, 12 Aug 2016 15:46:01 +1000 > >>> David Gibson

Re: [PATCH V2 2/2] fadump: Register the memory reserved by fadump

2016-08-29 Thread Srikar Dronamraju
* Andrew Morton [2016-08-04 14:01:33]: > > Register the memory reserved by fadump, so that the cache sizes are > > calculated based on the free memory (i.e Total memory - reserved > > memory). > > Looks harmless enough to me. I'll schedule the patches for 4.8. But >

[PATCH v3 3/3] powerpc: Implement arch_reserved_kernel_pages

2016-08-29 Thread Srikar Dronamraju
Currently significant amount of memory is reserved only in kernel booted to capture kernel dump using the fa_dump method. Kernels compiled with CONFIG_DEFERRED_STRUCT_PAGE_INIT will initialize only certain size memory per node. The certain size takes into account the dentry and inode cache sizes.

[PATCH v3 2/3] mm/memblock: Expose total reserved memory

2016-08-29 Thread Srikar Dronamraju
The total reserved memory in a system is accounted but not available for use use outside mm/memblock.c. By exposing the total reserved memory, systems can better calculate the size of large hashes. Cc: linux...@kvack.org Cc: Mel Gorman Cc: Vlastimil Babka

[PATCH v3 1/3] mm: Introduce arch_reserved_kernel_pages()

2016-08-29 Thread Srikar Dronamraju
Currently arch specific code can reserve memory blocks but alloc_large_system_hash() may not take it into consideration when sizing the hashes. This can lead to bigger hash than required and lead to no available memory for other purposes. This is specifically true for systems with

[PATCH v3 0/3] Account reserved memory when allocating system hash

2016-08-29 Thread Srikar Dronamraju
Fadump kernel reserves large chunks of memory even before the pages are initialised. This could mean memory that corresponds to several nodes might fall in memblock reserved regions. Kernels compiled with CONFIG_DEFERRED_STRUCT_PAGE_INIT will initialise only certain size memory per node. The

[PATCH 5/5] powerpc-MSI-HSTA: Move three assignments in hsta_msi_probe()

2016-08-29 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 29 Aug 2016 11:30:48 +0200 Move the assignments for three data structure members to the end so that they will only be performed if the desired resource allocations succeeded by this function. Signed-off-by: Markus Elfring

[PATCH 4/5] powerpc-MSI-HSTA: Rename jump labels in hsta_msi_probe()

2016-08-29 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 29 Aug 2016 11:22:19 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- arch/powerpc/sysdev/ppc4xx_hsta_msi.c | 15 ++- 1

[PATCH 3/5] powerpc-MSI-HSTA: Use kmalloc_array() in hsta_msi_probe()

2016-08-29 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 29 Aug 2016 11:20:39 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was

[PATCH 2/5] powerpc-MSI: Use kmalloc_array() in ppc4xx_setup_msi_irqs()

2016-08-29 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 29 Aug 2016 11:11:24 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was

[PATCH 1/5] powerpc-mpic: Use kmalloc_array() in mpic_init()

2016-08-29 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 29 Aug 2016 11:00:11 +0200 A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected

[PATCH 0/5] PowerPC: Fine-tuning for three function implementations

2016-08-29 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 29 Aug 2016 11:44:22 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (5): Use kmalloc_array() in mpic_init() Use kmalloc_array() in ppc4xx_setup_msi_irqs() Use

[PATCH 0/5] PowerPC: Fine-tuning for three function implementations

2016-08-29 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 29 Aug 2016 11:44:22 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (5): Use kmalloc_array() in mpic_init() Use kmalloc_array() in ppc4xx_setup_msi_irqs() Use

Re: [PATCH 07/34] mm, vmscan: make kswapd reclaim in terms of nodes

2016-08-29 Thread Srikar Dronamraju
> Patch "mm: vmscan: Begin reclaiming pages on a per-node basis" started > thinking of reclaim in terms of nodes but kswapd is still zone-centric. This > patch gets rid of many of the node-based versus zone-based decisions. > > o A node is considered balanced when any eligible lower zone is

Re: [PATCH kernel 14/15] vfio/spapr_tce: Export container API for external users

2016-08-29 Thread Alexey Kardashevskiy
On 18/08/16 10:22, Alexey Kardashevskiy wrote: > On 17/08/16 13:17, David Gibson wrote: >> On Fri, Aug 12, 2016 at 09:22:01AM -0600, Alex Williamson wrote: >>> On Fri, 12 Aug 2016 15:46:01 +1000 >>> David Gibson wrote: >>> On Wed, Aug 10, 2016 at 10:46:30AM

[PATCH] powerpc: Use kmalloc_array() in grow()

2016-08-29 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 29 Aug 2016 07:50:33 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was