Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp698736pxm; Fri, 25 Feb 2022 17:36:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKCW6Z90NMh7wHK5ZguwNHuSx1L9sVGLnOzcQ1c6o3gsbgLUFgDQ90zJsWSLFzL3YLwXsf X-Received: by 2002:a63:1620:0:b0:375:948e:65bf with SMTP id w32-20020a631620000000b00375948e65bfmr7255209pgl.49.1645839404497; Fri, 25 Feb 2022 17:36:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645839404; cv=none; d=google.com; s=arc-20160816; b=03nBTYkTJQuoV46A4ltObir6Ve2nGCace/Oh+2pOSnJRbKNXzk2dfvY4/CN29Jlmlp 8FDg2gbBLNQ0hhlEIhjktI4zEMqtlmFUxXe15Re0MnJbEvvcpdTmDkeU1JaxysCeWdQC zRWU47Me3Wf5KWZND+hg0YNOr8okDFmXAde+8kb9LP4RnXrOkuKKkJAoPtrzPmANO+58 zFstbxf/RSa+p2lW3HXISHNFHnbVo/CJXp0L05wy6tFuIZU+wv5x26x/v9zkDVqDPB21 CHQ6mI6wEHI2rmEu1cKv5Rcv0JsgFICxYukdaqoGItWAuhOq40+FXli5H4dwv/eXVzHD T6zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=hdPUmsQimdtzaOzL1tjqFQRVBBY1KmDNm2aOYc2edK4=; b=OTl1hhqWMJq7r1eMQxDPE4aQs0qXTCB2mh0iSAKhJdhQNqv0yCWtzFgMBrOl6sf8bd XFTJFHDk5YE2racOYEYyqgVd4zF+IdwNl5xW95XaiSCldFcum7qA9YQ2snBcV8cs2Vx5 5ewxGguClYNdXt84Ws7nX6H6xu0RrPurHWSUtmskA476YZNNLsE9HpgvlgYxojxuP8QV /CBWPKoAztMHAAzCacWjPYt+SR1OLX7beH9Ph5U/o9vi/4o0XEJR4311Q+6BY9W0qPOb f988LR2e5C01TxFEoXWo77u6+RCWpqoEeKvEtTA0fF2vrGl3hKdOZA0vYZAl5camFIEX x7WQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j193-20020a636eca000000b0036888538162si3252517pgc.629.2022.02.25.17.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:36:44 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2E82221406E; Fri, 25 Feb 2022 17:31:10 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232354AbiBYWGG (ORCPT + 99 others); Fri, 25 Feb 2022 17:06:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbiBYWGF (ORCPT ); Fri, 25 Feb 2022 17:06:05 -0500 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CC391F083F; Fri, 25 Feb 2022 14:05:32 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id 5FEBE42037; Fri, 25 Feb 2022 22:05:28 +0000 (UTC) Subject: Re: [PATCH v2 7/7] irqchip/apple-aic: Add support for AICv2 To: Marc Zyngier Cc: Thomas Gleixner , Rob Herring , Sven Peter , Alyssa Rosenzweig , Mark Kettenis , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20220224130741.63924-1-marcan@marcan.st> <20220224130741.63924-8-marcan@marcan.st> <87lexz2cgv.wl-maz@kernel.org> From: Hector Martin Message-ID: <4fbeeae8-0b56-e665-744f-6a1ca2b24f9e@marcan.st> Date: Sat, 26 Feb 2022 07:05:26 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <87lexz2cgv.wl-maz@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: es-ES Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/02/2022 00.27, Marc Zyngier wrote: > On Thu, 24 Feb 2022 13:07:41 +0000, > Hector Martin wrote: >> - /* >> - * Make sure the kernel's idea of logical CPU order is the same as AIC's >> - * If we ever end up with a mismatch here, we will have to introduce >> - * a mapping table similar to what other irqchip drivers do. >> - */ >> - WARN_ON(aic_ic_read(aic_irqc, AIC_WHOAMI) != smp_processor_id()); >> + if (aic_irqc->info.version == 1) { >> + /* >> + * Make sure the kernel's idea of logical CPU order is the same as AIC's >> + * If we ever end up with a mismatch here, we will have to introduce >> + * a mapping table similar to what other irqchip drivers do. >> + */ >> + WARN_ON(aic_ic_read(aic_irqc, AIC_WHOAMI) != smp_processor_id()); > > Don't you have a similar issue with AICv2? Or is it that AICv2 > doesn't have this register? No concept of individual CPUs in AICv2 at all, so no WHOAMI register either :) -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub