Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp257630pxk; Thu, 17 Sep 2020 02:07:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX7qeS6TMgWinsFJCHk3LEGOiD9ByaJ0LQmomdiJcgn6+pYGCWSDbV/cHRT7uYRS1mpsGd X-Received: by 2002:a17:906:12c7:: with SMTP id l7mr29282647ejb.306.1600333666077; Thu, 17 Sep 2020 02:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600333666; cv=none; d=google.com; s=arc-20160816; b=l9yzNhE2NPv/pPPXi6eeLX6BftCNFUQ1ckTRsIGU0lDKDa/Uzh5+VHON6Ljebh0y6y tlQKzEvvgCTqq552/QNXNIT9GQ4cVE+/5/4yryauJNR9MciP0gzw+NO1CQ9B9d/weT3j CzKG7lcAPuvK7H/ysBCR71INKb9p3C84iecVMfjbfm0lzbJCUXiwF80g7vARVpj5zcnO 7DTXrVjq7rU+HqLFcskrOp7j+gE99wHa4poLvMq4IEEBhlO/Ip4ORLQ12cWi5oH01wiC XLluphimuDj54/m6vJJcweXVtmEWsMZk1cHqjj+EcDrRAAQ8v7F9Vk2gSBnNhToL2LD3 GXIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=m4UP/i//3GAkZfp1ImTn473rw4qBRCZqFac37IxmfG0=; b=dz3m9i8oA+9P6MlyGHyi9jbIu6XJXbm4uMq1iJ4lubsyu69unUg0fkEXXeYXWSVLbX dHh8uYkXLAHc90cxBJvDKOV1ut36nWvzO/m4jlL00osE4EiuVomU0OeGGEccXhUBwteS 7qk1DnZdOYQ269CQGvWEi1PJjShlu6Sofv4IqWw93Tl3LbmB8HGZXwxd5mezMw11tJSG J8YnX4GTkIvb03EQaf/tjxXiU3/B7lkx9vr+iowjxS8E+riOVPXISO7R31qHgdF/XCmx OQtdDalQXWxmFFIahpEpSpsnh88ytsm80E2vCyjOmv9i5XdYTdqd1jJUu82YbVcINvvn gJtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=TMd9+3me; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si13981804ejr.108.2020.09.17.02.07.22; Thu, 17 Sep 2020 02:07:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=TMd9+3me; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726441AbgIQJC7 (ORCPT + 99 others); Thu, 17 Sep 2020 05:02:59 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39361 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726433AbgIQJC4 (ORCPT ); Thu, 17 Sep 2020 05:02:56 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200917085404euoutp028969d4a347c12477e38871aa31e0e70c~1hj40zLBA2456824568euoutp02W for ; Thu, 17 Sep 2020 08:54:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200917085404euoutp028969d4a347c12477e38871aa31e0e70c~1hj40zLBA2456824568euoutp02W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600332844; bh=m4UP/i//3GAkZfp1ImTn473rw4qBRCZqFac37IxmfG0=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=TMd9+3meh7rjXtu2gdMVqFHXOrTUc+dTAxNeT9K8VBXNxDT6uVhBlMLzbo5MloJiC 1bjmY0XKZSUY1UIhnhCYEzb8cqgZpuJ3wTb3qBNbo8XuTiSJLItWaeSa8KKvyStYDP gagTtH5NB699Gu273VA+4RTar3BXCiHgPR/3bQ5k= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200917085403eucas1p14cb0cd829f1f07e2be0d92e0145b45b8~1hj4NhGQe2857828578eucas1p1P; Thu, 17 Sep 2020 08:54:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 2E.96.06456.B24236F5; Thu, 17 Sep 2020 09:54:03 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200917085403eucas1p137a621fd292f8f6d4ea36c9e1584ab7d~1hj3yIpoO2050620506eucas1p19; Thu, 17 Sep 2020 08:54:03 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200917085403eusmtrp29d6bbb75252248443ffefcbea39253dc~1hj3xNjWx2476724767eusmtrp2q; Thu, 17 Sep 2020 08:54:03 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-e6-5f63242b1c8c Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id E7.B0.06017.B24236F5; Thu, 17 Sep 2020 09:54:03 +0100 (BST) Received: from [106.210.88.143] (unknown [106.210.88.143]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200917085402eusmtip175d8054f62dfef0e3fcf2314307b3365~1hj2uyDVI2770527705eusmtip1_; Thu, 17 Sep 2020 08:54:02 +0000 (GMT) Subject: Re: [PATCH v3 08/16] irqchip/gic: Configure SGIs as standard interrupts To: Jon Hunter , Marc Zyngier Cc: Linus Walleij , Linux ARM , linux-kernel@vger.kernel.org, Sumit Garg , kernel-team@android.com, Florian Fainelli , Russell King , Jason Cooper , Saravana Kannan , Andrew Lunn , Catalin Marinas , Gregory Clement , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Linux Samsung SOC , Thomas Gleixner , Will Deacon , Valentin Schneider , linux-tegra From: Marek Szyprowski Message-ID: <4645f636-e7cc-6983-a3b7-897c20ec5096@samsung.com> Date: Thu, 17 Sep 2020 10:54:01 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA02Se0hTcRTH++3e3V2l1a/p8GBltNIoyTJLfj2wl9AtijKIIipbebFQl2zN Mommk9SpPbShLsmS1CVqNnP5Qmw9xKStVKSHJmkULTTTHhhaOW+W/33O93zP73sO/FhKls94 s8dVJ3m1ShmtYNxp6+MRx1L/hUfDl+sH5xNHt40id3Jvi8nn4gxEfg48lJB8czxJvNlOk2RT IU1q7nkSh6NSQq6MloiIpa9TTNrr8hmS62gUkbSvJoa8bpeS2vwWMTHYxhhS0XiBIVUWI0Xu FYxQJLlr1QY5Z623irmya2WIS9ZnMNy1sgSu1tQt4a5btJylNI3hdE0OmuvqbGC4AbtdwlXd PMfV1gyLuEz9AMNduFuKuGGLz66Z+93XRfDRx+N49bKQw+7HnFUXJbFN+PSTlA8SHbJLDciN BbwSeusfIQNyZ2XYjKCg/g0jFF8RpJh7REIxjMBalMpMjpiznBMswyUI3rTSgukzguHOHtrV 8MC7oTv9MnKxJw6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ONiIwgiIZUK2y/OEH6WUG0AVjn0gXkkHL1SKQxw KFycMPqcYJ/zBUDDRetSEErtgZ7aC8DPUmorrPpwT+iXMMpKwLlPZjxQeHB4Y9gr8FsEJYfG L8alWkxlQmfjIuZnnIqD7T8CHEblwpemT8vOajjaOOVbRJJBPr+27YR/jFFK2Gx/jwU4Blb3 XlvmcPh2qkVwHkgsK2rLisSyIrGsSK4DvANIWR2vLlLzyTJepeZ1ZUWyAo3aBny/4hhZ6OkH Ru9eJ6BIQIeIu8MO5UmEqqO8Xu0EkMRoqXjLq7FcibhQpT/Bcpo8TlfK8k6g8N12AYsIK9D4 Pq9MmydXyNNQujwtJS1Fiehw8Vnq2QEJVaTSsodZtpzl/ncCMiiiEnCzSjo7t/PNzSxYxUXv jlnTzU6/GvxmrghXRu08Mn9qLzerT7qUiCcolQ4zE3LVRCs8RZtS/g7Fxa5rdOx/HbnPfac+ PXLA6m5Nte7v+4xEo5FZOSMFp3aMxUb9MKEn25MO59t/hsyUG3rn6o4V2tviG2bog9vujpOz 8fNPh2mcL1bJEzCOV/0DLOzW60EDAAA= X-CMS-MailID: 20200917085403eucas1p137a621fd292f8f6d4ea36c9e1584ab7d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200914130601eucas1p23ce276d168dee37909b22c75499e68da X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200914130601eucas1p23ce276d168dee37909b22c75499e68da References: <20200901144324.1071694-1-maz@kernel.org> <20200901144324.1071694-9-maz@kernel.org> <933bc43e-3cd7-10ec-b9ec-58afaa619fb7@nvidia.com> <3378cd07b92e87a24f1db75f708424ee@kernel.org> <049d62ac7de32590cb170714b47fb87d@kernel.org> <81cb16323baa1c81e7bc1e8156fa47b8@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jon, On 17.09.2020 10:49, Jon Hunter wrote: > On 17/09/2020 09:45, Marc Zyngier wrote: >> On 2020-09-17 08:54, Jon Hunter wrote: >>> On 17/09/2020 08:50, Marc Zyngier wrote: >>>> On 2020-09-17 08:40, Linus Walleij wrote: >>>>> On Wed, Sep 16, 2020 at 5:11 PM Marc Zyngier wrote: >>>>> >>>>>> Can you try the patch below and let me know? >>>>> I tried this patch and now Ux500 WORKS. So this patch is definitely >>>>> something you should apply. >>>>> >>>>>> -                       if (is_frankengic()) >>>>>> -                               set_sgi_intid(irqstat); >>>>>> +                       this_cpu_write(sgi_intid, intid); >>>>> This needs changing to irqstat to compile as pointed out by Jon. >>>>> >>>>> With that: >>>>> Tested-by: Linus Walleij >>>> Thanks a lot for that. >>>> >>>> Still need to understand why some of Jon's systems are left unbootable, >>>> despite having similar GIC implementations (Tegra194 and Tegra210 use >>>> the same GIC-400, and yet only one of the two boots correctly...). >>> So far, I have only tested this patch on Tegra20. Let me try the other >>> failing boards this morning and see if those still fail. >> Tegra20 (if I remember well) is a dual A9 with the same GIC implementation >> as Ux500, hence requiring the source CPU bits to be written back. So this >> patch should have cured it, but didn't... >> >> /me puzzled. > Me too. Maybe there just happens to be something else also going wrong > in next. I am doing a bit more testing to see if applying the fix > directly on top of this change fixes it to try and eliminate anything > else in -next. > > Linus, what -next are you testing on? I am using next-20200916. next-20200916 completely broken on ARM and ARM64. Please check next-20200915 + the mentioned fix or just check https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/log/?h=irq/ipi-as-irq Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland