RE: [PATCH] Adds __init annotation at mmu_init_secondary func

2018-07-29 Thread Michael Ellerman
Alexey Spirkov writes: > Without any additional option > > WARNING: modpost: Found 1 section mismatch(es). > > If detailed debug is switched on than: > > WARNING: vmlinux.o(.text+0x142ac): Section mismatch in reference from the > function mmu_init_secondary() to the function .init.text:ppc44x_p

Re: [PATCH v4 09/11] macintosh/via-pmu: Replace via-pmu68k driver with via-pmu driver

2018-07-29 Thread Michael Ellerman
Finn Thain writes: > Now that the PowerMac via-pmu driver supports m68k PowerBooks, > switch over to that driver and remove the via-pmu68k driver. > > Cc: Geert Uytterhoeven > Tested-by: Stan Johnson > Signed-off-by: Finn Thain > --- > arch/m68k/configs/mac_defconfig | 2 +- > arch/m68k/c

Re: [PATCH] powerpc/mm: Don't report PUDs as memory leaks when using kmemleak

2018-07-29 Thread Michael Ellerman
Paul Menzel writes: > Am 19.07.2018 um 16:33 schrieb Michael Ellerman: ... >> >> The fix is fairly simple. We need to tell kmemleak to ignore PUD >> allocations and never report them as leaks. We can also tell it not to >> scan the PGD, because it will never find pointers in there. However it >>

Re: [PATCH] powerpc/mobility: Fix node detach/rename problem

2018-07-29 Thread Michael Ellerman
Michael Bringmann writes: > During LPAR migration, the content of the device tree/sysfs may > be updated including deletion and replacement of nodes in the > tree. When nodes are added to the internal node structures, they > are appended in FIFO order to a list of nodes maintained by the > OF co

Re: [RFC 2/4] virtio: Override device's DMA OPS with virtio_direct_dma_ops selectively

2018-07-29 Thread Anshuman Khandual
On 07/29/2018 02:46 AM, Michael S. Tsirkin wrote: > On Sat, Jul 28, 2018 at 02:26:24PM +0530, Anshuman Khandual wrote: >> On 07/20/2018 09:29 AM, Anshuman Khandual wrote: >>> Now that virtio core always needs all virtio devices to have DMA OPS, we >>> need to make sure that the structure it points

Re: [PATCH 1/2] KVM: PPC: Book3S HV: Allow creating max number of VCPUs on POWER9

2018-07-29 Thread Sam Bobroff
On Thu, Jul 26, 2018 at 03:43:54PM +1000, Paul Mackerras wrote: > Commit 1e175d2 ("KVM: PPC: Book3S HV: Pack VCORE IDs to access full > VCPU ID space", 2018-07-25) allowed use of VCPU IDs up to > KVM_MAX_VCPU_ID on POWER9 in all guest SMT modes and guest emulated > hardware SMT modes. However, wit

[PATCH v3 1/1] powerpc/pseries: fix EEH recovery of some IOV devices

2018-07-29 Thread Sam Bobroff
EEH recovery currently fails on pSeries for some IOV capable PCI devices, if CONFIG_PCI_IOV is on and the hypervisor doesn't provide certain device tree properties for the device. (Found on an IOV capable device using the ipr driver.) Recovery fails in pci_enable_resources() at the check on r->par

Re: [PATCH v2 1/1] powerpc/pseries: fix EEH recovery of some IOV devices

2018-07-29 Thread Sam Bobroff
On Mon, Jul 02, 2018 at 10:59:24AM +1000, Michael Ellerman wrote: > Sam Bobroff writes: > > > EEH recovery currently fails on pSeries for some IOV capable PCI > > devices, if CONFIG_PCI_IOV is on and the hypervisor doesn't provide > > certain device tree properties for the device. (Found on an IO

Re: [PATCH] powerpc/mobility: Fix node detach/rename problem

2018-07-29 Thread kbuild test robot
/commits/Michael-Bringmann/powerpc-mobility-Fix-node-detach-rename-problem/20180729-213517 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next config: powerpc-defconfig (attached as .config) compiler: powerpc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget

Re: [PATCH] powerpc/mm: Don't report PUDs as memory leaks when using kmemleak

2018-07-29 Thread Paul Menzel
Dear Michael, Am 19.07.2018 um 16:33 schrieb Michael Ellerman: Paul Menzel reported that kmemleak was producing reports such as: unreferenced object 0xc000f8b8 (size 16384): comm "init", pid 1, jiffies 4294937416 (age 312.240s) hex dump (first 32 bytes): 00 00 00 00

[PATCH v08 5/5] hotplug/pmt: Update topology after PMT

2018-07-29 Thread Michael Bringmann
hotplug/pmt: Invoke rebuild_sched_domains before applying any CPU 'readd' modifications. The call leads to arch_update_cpu_topology() which will recognize and report any changes to the CPU topology are now applied, and that the relevant system data structures are updated. It may also initialize n

[PATCH v08 4/5] mobility/numa: Ensure numa update does not overlap

2018-07-29 Thread Michael Bringmann
mobility/numa: Ensure that numa_update_cpu_topology() can not be entered multiple times concurrently. It may be accessed through many different paths through the code. Without some protection against multiple entry, the code may acquire and update associativity information from the PHYP in multip

[PATCH v08 3/5] hotplug/cpu: Provide CPU readd operation

2018-07-29 Thread Michael Bringmann
<9573dc30-01ad-2650-c247-28df08875...@linux.vnet.ibm.com>powerpc/dlpar: Provide hotplug CPU 'readd by index' operation to support LPAR Post Migration state updates. When such changes are invoked by the PowerPC 'mobility' code, they will be queued up so that modifications to CPU properties will ta

[PATCH v08 2/5] hotplug/cpu: Add operation queuing function

2018-07-29 Thread Michael Bringmann
<9573dc30-01ad-2650-c247-28df08875...@linux.vnet.ibm.com>hotplug/cpu: This patch adds function dlpar_queue_action() which will queued up information about a CPU/Memory 'readd' operation according to resource type, action code, and DRC index. Examples of such operations include 'readd' of CPU and

[PATCH v08 1/5] hotplug/cpu: Conditionally acquire/release DRC index

2018-07-29 Thread Michael Bringmann
powerpc/cpu: Modify dlpar_cpu_add and dlpar_cpu_remove to allow the skipping of DRC index acquire or release operations during the CPU add or remove operations. This is intended to support subsequent changes to provide a 'CPU readd' operation. Signed-off-by: Michael Bringmann --- Changes in patc

[PATCH v08 0/5] powerpc/hotplug: Update affinity for migrated CPUs

2018-07-29 Thread Michael Bringmann
The migration of LPARs across Power systems affects many attributes including that of the associativity of CPUs. The patches in this set execute when a system is coming up fresh upon a migration target. They are intended to, * Recognize changes to the associativity of CPUs recorded in internal

[PATCH] powerpc/mobility: Fix node detach/rename problem

2018-07-29 Thread Michael Bringmann
During LPAR migration, the content of the device tree/sysfs may be updated including deletion and replacement of nodes in the tree. When nodes are added to the internal node structures, they are appended in FIFO order to a list of nodes maintained by the OF code APIs. When nodes are removed from

[PATCH v02] powerpc/migration: Handle unitialized timer reset

2018-07-29 Thread Michael Bringmann
After migration of a powerpc LPAR, the kernel executes code to update the system state to reflect new platform characteristics. Such changes include modifications to device tree properties provided to the system by PHYP. Property notifications received by the powerpc 'migration_store' code are pas