From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 79841C07545 for ; Tue, 24 Oct 2023 13:14:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=c7qkhwmwR9UarEza08V3uO444H9yK/wX3CaIQAa1z/U=; b=Kk9Hf2lJy5urLN Q212f6a/JMBudbBJLO6+JhY6Oy0hUldxZMTmJpfduYLcBsG2UlmhAkrY1Fb0w/37WxmSF7dV/RZrg qN55KukgfGyWu3j7BQl3jjdyPh0+jnAsbiOIkgrNFq0TIPDoKpca0Qg0kO4B4W+92nx1/2I4N4YXl qNQzBcSIExjX5sWypEdz0TkIWKfbGSsAkVnIRXAoije7XG00jTkuhcf4JoRLpwP2umpEwckkoOQ5R bBlFQQSx9MDkXQRRiHqjHVxcG1CPsgILmAfBrWb20LA/qbRPrRZyMXVl5cLwA4dkwpuhBoE0EHw+4 6y7wIJC6XfN/xpPHddww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvHEI-009uBb-1w; Tue, 24 Oct 2023 13:13:54 +0000 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.220]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvHEF-009uA0-2u for linux-arm-kernel@lists.infradead.org; Tue, 24 Oct 2023 13:13:53 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1698153214; cv=none; d=strato.com; s=strato-dkim-0002; b=DLlVqmLPeG/3nPBWX3dS8znGiXydZyxE9lOOVefpmR5Gumb5do8MMbqnIYXctRU+aq YjuLCEGhQc0gZ6nxvpeoEhBwfxmjtLy/W7elq/ar6azHSbGiPrNSwiKCFq96DSLSZLL/ deQnUqldW0HSFW6I/cywzSsqz1UX1UvAdIUO3Ct8a0jrvGA5YLOE7kGIrKiHCMyV1yYj Fn9ZxfYo2U47yun9Pkincp5NfHtTezM5hX4Z+W3gGDdMWM+T0R6nfiTA/wTPsgcyj6n2 llucVTjDao6OQI4slwXr1Uuq9AaN/WZY9vZ3kjdZRxFXJgjdgFvWxqY4XHnlla+Kn5M5 00FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1698153214; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=W5wusIBKLee2orgc/xj8vY/2Cx7/lX+VsKgFuYpXUPU=; b=bsLOJs7L78GpxSismDxmiap08i/b75uNXE5L9GWE0OrkYuYmjOkvHcmjUzjAc/mNRX x0DS6D74WmZFxQAK+AYlAV9EC1JKyCfCZAvc18re+jXASnRupQzYaun0BKg22b/XJ1w4 vx+YiPxWrT7fXbTtuz1BBVJxjhwQNaQWryn4nCRIwR3okG5jMPYOFgnm60aDcqU8igmI SnGzh6Tg1DTuYwlea0inOQS7Dxznx3AXtUqR5Q9IKeVICOxO/7/MUKzU8VqJNuAV6ann nnnIn4x3T5exhHiaSRnN5NjRnY4mCrp+2e3i1F4aM/T6nLLbAVFClP3Czu1b/tH1xCM9 Tdyw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1698153214; s=strato-dkim-0002; d=ibv-augsburg.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=W5wusIBKLee2orgc/xj8vY/2Cx7/lX+VsKgFuYpXUPU=; b=dw+QTsEPwCQuQRFhKjXZg8z2u1XY538tMPeXPcLWzqmY9mVRcbIQhTnGr8TuW7AlMi tNvMCwodJ0lJNHsdQLI64x6Tg7d3y+o9zYl+I6cM2/gm4rSZdeQ4soKc5MUVBblI/pEF Zjf2MKfKgotq19BFtRYDbYuaZW2R2Mzqg47WfI1BJEZqgaqZ07P1ptlLVDCkQvM6eeoh Sov+UGRMXA0g3hQ0SVNf8CTRp2pw4Iy9pa+F1eFhkUNWianMDTsZozpYgbR93ESBvHGU BG4p38TpLy7GDecuIpdnxp/XVpL/SzELjFrflVnQ1KJxkAstzbPXB47RXR3Z4cSZMwq+ Nmug== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1698153214; s=strato-dkim-0003; d=ibv-augsburg.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=W5wusIBKLee2orgc/xj8vY/2Cx7/lX+VsKgFuYpXUPU=; b=QJpQxi5ZkP/pG2FyuFrzMlNiHf7AqGNntOyiqgKAZcxoprwv0lZXAAN/3dVnvIPnM1 LunHIpHS4Ed2KAHfhDAA== X-RZG-AUTH: ":KGMJfE6heLGk8b3w7Oa1fDtXwBjeDczIOHPRx8yNRKhFG/cxcP9dNdI9SxioDT8RvZMqtMfbyXFLOT+0odACkA==" Received: from JADEVM-DRA by smtp.strato.de (RZmta 49.9.0 DYNA|AUTH) with ESMTPSA id U33eaez9ODDXbSf (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 24 Oct 2023 15:13:33 +0200 (CEST) Date: Tue, 24 Oct 2023 15:13:31 +0200 From: Dominic Rath To: Marc Zyngier Cc: Lorenzo Pieralisi , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-acpi@vger.kernel.org, Mark Rutland , Robin Murphy , "Rafael J. Wysocki" , Rob Herring , Fang Xiang , bahle@ibv-augsburg.de, rath@ibv-augsburg.de Subject: Re: [PATCH v3 3/5] irqchip/gic-v3-its: Split allocation from initialisation of its_node Message-ID: <20231024131331.GA4554@JADEVM-DRA> References: <20230905104721.52199-1-lpieralisi@kernel.org> <20231006125929.48591-1-lpieralisi@kernel.org> <20231006125929.48591-4-lpieralisi@kernel.org> <20231024084831.GA3788@JADEVM-DRA> <86lebs493m.wl-maz@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <86lebs493m.wl-maz@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231024_061352_356691_F3513CA2 X-CRM114-Status: GOOD ( 32.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Oct 24, 2023 at 11:18:21AM +0100, Marc Zyngier wrote: > Yeah, that's clearly a regression, and I've confirmed it on my > Synquacer (which means the TI folks have accurately copied a dumb > idea). Can you please give the patch below a go on your system and > confirm asap whether it works for you? > Thanks a lot, with that patch applied on top of 6.6-rc6 MSI-X interrupts work again for the AM64x. Best Regards, Dominic > > I have no idea whether TI's use of this quirk was "correct", but it did > > work, and since 6.6-rc6 MSI-X has been broken for us. > > Just as for bad SW, the worse HW ideas get replicated. Then I write > bad SW for it. > > Thanks, > > M. > > From b5571a69f09733ecfa0c944cc48baced6590d024 Mon Sep 17 00:00:00 2001 > From: Marc Zyngier > Date: Tue, 24 Oct 2023 11:07:34 +0100 > Subject: [PATCH] irqchip/gic-v3-its: Don't override quirk settings with > default values > > When splitting the allocation of the ITS node from its configuration, > some of the default settings were kept in the latter instead of > being moved to the former. > > This has the side effect of negating some of the quirk detection that > have happened in between, amongst which the dreaded Synquacer hack > (that also affect Dominic's TI platform). > > Move the initialisation of these fields early, so that they can > again be overriden by the Synquacer quirk. > > Fixes: 9585a495ac93 ("irqchip/gic-v3-its: Split allocation from initialisation of its_node") > Reported by: Dominic Rath > Signed-off-by: Marc Zyngier Tested-by: Dominic Rath > Link: https://lore.kernel.org/r/20231024084831.GA3788@JADEVM-DRA > --- > drivers/irqchip/irq-gic-v3-its.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c > index 75a2dd550625..a8c89df1a997 100644 > --- a/drivers/irqchip/irq-gic-v3-its.c > +++ b/drivers/irqchip/irq-gic-v3-its.c > @@ -5112,8 +5112,6 @@ static int __init its_probe_one(struct its_node *its) > } > its->cmd_base = (void *)page_address(page); > its->cmd_write = its->cmd_base; > - its->get_msi_base = its_irq_get_msi_base; > - its->msi_domain_flags = IRQ_DOMAIN_FLAG_ISOLATED_MSI; > > err = its_alloc_tables(its); > if (err) > @@ -5362,6 +5360,8 @@ static struct its_node __init *its_node_init(struct resource *res, > its->typer = gic_read_typer(its_base + GITS_TYPER); > its->base = its_base; > its->phys_base = res->start; > + its->get_msi_base = its_irq_get_msi_base; > + its->msi_domain_flags = IRQ_DOMAIN_FLAG_ISOLATED_MSI; > > its->numa_node = numa_node; > its->fwnode_handle = handle; > -- > 2.39.2 > > > -- > Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel