From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxcS5-000486-DH for qemu-devel@nongnu.org; Mon, 10 Apr 2017 12:46:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxcS0-0005DC-Q2 for qemu-devel@nongnu.org; Mon, 10 Apr 2017 12:46:05 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:47226) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cxcS0-0005Cc-Ge for qemu-devel@nongnu.org; Mon, 10 Apr 2017 12:46:00 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v3AGiRD5021487 for ; Mon, 10 Apr 2017 12:45:59 -0400 Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) by mx0a-001b2d01.pphosted.com with ESMTP id 29rbcwgbsa-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 10 Apr 2017 12:45:58 -0400 Received: from localhost by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 11 Apr 2017 02:45:56 +1000 From: Nikunj A Dadhania In-Reply-To: <25dcb89b-35be-ea27-8719-7b446f464694@kaod.org> References: <20170406102249.20383-1-nikunj@linux.vnet.ibm.com> <6029cef4-0a41-cde0-b3c9-6b6ad9bde572@kaod.org> <87vaqgrds2.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> <25dcb89b-35be-ea27-8719-7b446f464694@kaod.org> Date: Mon, 10 Apr 2017 22:14:58 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <87d1ck2ovp.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH RFC v1 0/3] Enable MTTCG on PPC64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?C=C3=A9dric?= Le Goater , qemu-ppc@nongnu.org, david@gibson.dropbear.id.au, rth@twiddle.net Cc: programmingkidx@gmail.com, alex.bennee@linaro.org, qemu-devel@nongnu.org, bharata@linux.vnet.ibm.com C=C3=A9dric Le Goater writes: > On 04/07/2017 08:07 AM, C=C3=A9dric Le Goater wrote: >> On 04/07/2017 07:24 AM, Nikunj A Dadhania wrote: >>> C=C3=A9dric Le Goater writes: >>> >>>> Hello Nikunj, >>>> >>>> On 04/06/2017 12:22 PM, Nikunj A Dadhania wrote: >>>>> The series enables Multi-Threaded TCG on PPC64 >>>>> >>>>> Patch 01: Use atomic_cmpxchg in store conditional >>>>> 02: Handle first write to page during atomic operation >>>>> 03: Generate memory barriers for sync/isync and load/store cond= itional >>>>> >>>>> Patches are based on ppc-for-2.10 >>>>> >>>>> Tested using following: >>>>> ./ppc64-softmmu/qemu-system-ppc64 -cpu POWER8 -vga none -nographic -m= achine pseries,usb=3Doff -m 2G -smp 8,cores=3D8,threads=3D1 -accel tcg,thr= ead=3Dmulti f23.img >>>> >>>> I tried it with a Ubuntu 16.04.2 guest using stress --cpu 8. It looked= =20 >>>> good : the CPU usage of QEMU reached 760% on the host. >>> >>> Cool. >>> >>>>> Todo: >>>>> * Enable other machine types and PPC32. >>>> >>>> I am quite ignorant on the topic. >>>> Have you looked at what it would take to emulate support of the HW >>>> threads ? >>> >>> We would need to implement msgsndp (doorbell support for IPI between >>> threads of same core) >>=20 >> ok. I get it. Thanks, >>=20 >>>> and the PowerNV machine ? >>> >>> Haven't tried it, should work. Just give a shot, let me know if you see= problems. >>=20 >> sure. pnv is still on 2.9, so I will rebase on 2.10, merge your=20 >> patches and tell you. > > The system seems to be spinning in skiboot in cpu_idle/relax when=20 > starting the linux kernel. It finally boots, but it is rather long. > David has merged enough to test if you want to give it a try. I have got your powernv-ipmi-2.9 + ppc64 mttcg patches, and testing them. I too saw delay during boot, but wasn't aware that its caused by mttcg. I will have a look. Regards Nikunj