From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753718AbbAOQuF (ORCPT ); Thu, 15 Jan 2015 11:50:05 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:17538 "EHLO imgpgp01.kl.imgtec.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752305AbbAOQuC (ORCPT ); Thu, 15 Jan 2015 11:50:02 -0500 X-PGP-Universal: processed; by imgpgp01.kl.imgtec.org on Thu, 15 Jan 2015 16:50:00 +0000 Message-ID: <54B7EFB8.30904@imgtec.com> Date: Thu, 15 Jan 2015 16:50:00 +0000 From: James Hogan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Qais Yousef CC: Andrew Bresticker , Ralf Baechle , Thomas Gleixner , Jason Cooper , Jeffrey Deans , "Markos Chandras" , Paul Burton , Jonas Gorski , John Crispin , "David Daney" , , Subject: Re: [PATCH V2 18/24] irqchip: mips-gic: Stop using per-platform mapping tables References: <1411076851-28242-1-git-send-email-abrestic@chromium.org> <1411076851-28242-19-git-send-email-abrestic@chromium.org> <54B7AB95.4080501@imgtec.com> <54B7EAE6.8040503@imgtec.com> <54B7EC8D.5050505@imgtec.com> In-Reply-To: <54B7EC8D.5050505@imgtec.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uO8ohk5E26rkcoTWhBAAtouMNE6K5Wxts" X-Originating-IP: [192.168.154.110] X-ESG-ENCRYPT-TAG: b93fcccb Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --uO8ohk5E26rkcoTWhBAAtouMNE6K5Wxts Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 15/01/15 16:36, Qais Yousef wrote: > On 01/15/2015 04:29 PM, James Hogan wrote: >> On 15/01/15 11:59, James Hogan wrote: >>> Hi Andrew, >>> >>> On 18/09/14 22:47, Andrew Bresticker wrote: >>>> Now that the GIC properly uses IRQ domains, kill off the per-platfor= m >>>> routing tables that were used to make the GIC appear transparent. >>>> >>>> This includes: >>>> - removing the mapping tables and the support for applying them, >>>> - moving GIC IPI support to the GIC driver, >>>> - properly routing the i8259 through the GIC on Malta, and >>>> - updating IRQ assignments on SEAD-3 when the GIC is present. >>>> >>>> Platforms no longer will pass an interrupt mapping table to gic_init= =2E >>>> Instead, they will pass the CPU interrupt vector (2 - 7) that they >>>> expect the GIC to route interrupts to. Note that in EIC mode this >>>> value is ignored and all GIC interrupts are routed to EIC vector 1. >>>> >>>> Signed-off-by: Andrew Bresticker >>>> Acked-by: Jason Cooper >>>> Reviewed-by: Qais Yousef >>>> Tested-by: Qais Yousef >>> This commit (18743d2781d01d34d132f952a2e16353ccb4c3de) appears to bre= ak >>> boot of interAptiv, dual core, dual vpe per core, on malta with >>> malta_defconfig. >>> >>> It gets to here: >>> ... >>> CPU1 revision is: 0001a120 (MIPS interAptiv (multi)) >>> FPU revision is: 0173a000 >>> Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. >>> Primary data cache 64kB, 4-way, PIPT, no aliases, linesize 32 bytes >>> MIPS secondary cache 1024kB, 8-way, linesize 32 bytes. >>> Synchronize counters for CPU 1: done. >>> Brought up 2 CPUs >>> >>> and then appears to just hang. Passing nosmp works around it, allowin= g >>> it to get to userland. >>> >>> Is that a problem you've already come across? >>> >>> I'll keep debugging. >> Right, it appears the CPU IRQ line that the GIC is using doesn't get >> unmasked (STATUSF_IP2) when a new VPE is brought up, so only the first= >> CPU will actually get any interrupts after your patch (including the >> rather critical IPIs), i.e. hacking it in vsmp_init_secondary() in >> smp-mt.c allows it to boot. >> >> Hmm, I'll have a think about what the most generic fix is, since >> arbitrary stuff may or may not have registered handlers for the raw CP= U >> interrupts (timer, performance counter, gic etc)... >> >> Cheers >> James >> >=20 > Is this similar to the issue addressed by this (ff1e29ade4c6 MIPS: > smp-cps: Enable all hardware interrupts on secondary CPUs)? Thanks Qais. Yes, enabling CPS also works around the problem thanks to that commit. Cheers James --uO8ohk5E26rkcoTWhBAAtouMNE6K5Wxts Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUt++4AAoJEGwLaZPeOHZ6ZAwP/3R52R3QvRAwk5Ic9Rhi7Db3 oOVKiHk0Gcw4bvxAAbSvnorAs4To3mcDxSXJqD0pwkqWCP43T5P7s9pk7eEE9jB/ f28pKBDiIW8yN8Rq+qePXEMvcKCNlHchgP+HIjZdFUyk/5Dy3vqqcchvFkzkx0hV Hr51CJXCDhi37afV4c6ThIiN51WK8SXTmilHsVjvVl9PsdAkmdN7eSIPh8znHpkP rl9Dyz/kxYBBD1RYEXD+ksKrjsi8mLllzjNfHYUXhUH6FPdNxI+E5P18A5SZem2z ll7SXjoUZOU3jq/F78h7eyXE07xYpjBBVDsYDRd4KEgVs2lJC5pDnObMhrsmOVJ3 eSuhWTcm6SGPX9kAUCpjDNhSJRAauvs4Qqca+vmrWt++aBIZ+08VrqWltF6O10Vv yQcxO69Jv/ttijhSo79rAt7lmHDZcyh3QAHlHsbAhWVazHrSIdSWoBbIEcYjUjNG x7w+gHyHqsB1qWtyrOQwodegci82Rslee5dGq0hf/QC0iYgY6iqKqD2qxkXf/khB 4oy/5rDWP4BndbO1EakTPwgmrIR0pFCattw2r5WOku65jaPwmd/Bol+fa0Fl6oeg Yy5dUweDXrkSJdBuwXAhAZvVMqenfKztRL6UjADUsQTAMef34P6tRYYcWwYikibi REwiESTEnrUOCI51aqef =yVxL -----END PGP SIGNATURE----- --uO8ohk5E26rkcoTWhBAAtouMNE6K5Wxts--