Received: from eggs.gnu.org ([2001:4830:134:3::10]:58445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoBYb-0005bw-Md for qemu-devel@nongnu.org; Mon, 19 Oct 2015 10:37:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoBYX-00014F-FU for qemu-devel@nongnu.org; Mon, 19 Oct 2015 10:37:01 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:21742 helo=imgpgp01.kl.imgtec.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoBYX-00012X-6s for qemu-devel@nongnu.org; Mon, 19 Oct 2015 10:36:57 -0400 Date: Mon, 19 Oct 2015 15:36:54 +0100 From: James Hogan Message-ID: <20151019143654.GB28193@jhogan-linux.le.imgtec.org> References: <1444953129-35040-1-git-send-email-yongbok.kim@imgtec.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MfFXiAuoTsnnDAfZ" Content-Disposition: inline In-Reply-To: <1444953129-35040-1-git-send-email-yongbok.kim@imgtec.com> Subject: Re: [Qemu-devel] [PATCH 0/4] mips: add Global Interrupt Controller List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yongbok Kim Cc: qemu-devel@nongnu.org, Markos Chandras , pbonzini@redhat.com, leon.alrae@imgtec.com, afaerber@suse.de, aurelien@aurel32.net --MfFXiAuoTsnnDAfZ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Yongbok, On Fri, Oct 16, 2015 at 12:52:05AM +0100, Yongbok Kim wrote: > Add support of MIPS GIC. > The patchset implements the Global Interrupt Controller. >=20 > With the patchset Linux Kernel detects GIC and utilises it.=20 > # cat /proc/interrupts > CPU0 > 0: 2 XT-PIC 0 timer > 2: 0 XT-PIC 2 cascade > 4: 462 XT-PIC 4 serial > 8: 0 XT-PIC 8 rtc0 > 11: 0 XT-PIC 11 uhci_hcd:usb1 > 14: 1026 XT-PIC 14 ide0 > 15: 0 XT-PIC 15 ide1 > 21: 0 MIPS 5 CoreHi > 23: 44 MIPS 7 timer > 25: 12290 MIPS GIC Local 1 timer > 34: 1490 MIPS GIC 10 XT-PIC cascade > 98: 1490 MIPS GIC 74 > ERR: 0 >=20 > Limitation: > Level triggering only > No User-Mode Visible Section Note that there are Linux kernel patches from Alex Smith / Markos Chandras which will imminently hit linux-next, which implement a proper VDSO, including support for userland time access using the user-mode visible section of the GIC. It sounds likely that this patch will cause breakage when those patches are applied. Cheers James > GIC CounterHi not implemented (Countbits =3D 32bits) > DINT not implemented > Local WatchDog, Fast Debug Channel, Perf Counter not implemented >=20 > It is based on the earlier un-merged GIC implementation. > https://lists.gnu.org/archive/html/qemu-devel/2013-03/msg00194.html >=20 > For more information,=20 > http://imgtec.com/mips/warrior/p-class-p5600-multiprocessor-core/ > http://imgtec.com/mips/warrior/i-class-i6400-multiprocessor-core/ >=20 >=20 > Yongbok Kim (4): > target-mips: add CMGCRBase register > mips: add Global Config Register block (part) > mips: add Global Interrupt Controller > mips: add gic support to malta >=20 > hw/mips/Makefile.objs | 2 +- > hw/mips/mips_gcr.c | 120 ++++++++ > hw/mips/mips_gcr.h | 57 ++++ > hw/mips/mips_gic.c | 653 ++++++++++++++++++++++++++++++++++++= ++++++ > hw/mips/mips_gic.h | 298 +++++++++++++++++++ > hw/mips/mips_malta.c | 71 +++++- > target-mips/cpu.h | 4 +- > target-mips/translate.c | 17 ++ > target-mips/translate_init.c | 3 +- > 9 files changed, 1220 insertions(+), 5 deletions(-) > create mode 100644 hw/mips/mips_gcr.c > create mode 100644 hw/mips/mips_gcr.h > create mode 100644 hw/mips/mips_gic.c > create mode 100644 hw/mips/mips_gic.h >=20 >=20 --MfFXiAuoTsnnDAfZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWJQAGAAoJEGwLaZPeOHZ6WWoQALFERB33EituSbgHWWEjWORv xf65P8y84ANvLltuSOxKIAsXcoIUHtFpgycPv7N7chF4YLjDd3ZtIueySfTk1j8V TLO6XeiGBKkIR1PB+XBCrtGuxwXnkL5s2bMwfYmLzxZ6FhOV6UexXmshD1DODRVD +6ksQx29NgfmOiJMSrtyS6FHwq22OgdovfAf7FGg94kjslKKV0L1HBdKYFZln8uI Es5f8ukzf9uXD7uwjTEQgbXqEqlOBHDdDWH+jemFGJ9vFukBFPvY20aYUMONo8oY Hnuq94/Xufsr+1P/lpoa0PjD28RKxmAo2g1EGlI8eSN1z/srJA4iNeIGQb8k6bEM KvEkybSOHTRuLqvKuT/V5RMTAZz7EBDZCe5jYD7vt0gV5w2fwD/r1dNFCdiuMgPI m7+Zs9f4J4VraGtnmfF7CsGDHzuLxPYbuPu11QwDdxl4n1Eu8K/bjmH0ev7s9fS0 kwWKkzeKPhCNuT41CQcE79PmExKEYsxggetVW4aVfF1gBM5DIN1cbBAcyVcZ7tIo ocmUdI4weoPMINlARsXXgOfHTJKCkG4MsubT5ngfP9gMn1yyEeZA3qNr0Mhop3Zs wNpOQCGmo5oJ1NEw6DKQfk0+qNF86SJIj6PEp0lyAdJotcfE4SBexcxR2e+5S1O+ XzbxlpnvKHIK2X/VOFWO =9V4l -----END PGP SIGNATURE----- --MfFXiAuoTsnnDAfZ--