From patchwork Mon Jun 19 17:09:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Juszkiewicz X-Patchwork-Id: 694090 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp2474633wru; Mon, 19 Jun 2023 10:10:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JBIkKM0z7YCvYon6qGj+mCK2EKZD6NSV73UX37xc3Om4BIY1MWbz4bhHBq0hIrhGvB0oV X-Received: by 2002:a05:622a:1116:b0:3f6:c253:a738 with SMTP id e22-20020a05622a111600b003f6c253a738mr12698384qty.41.1687194624046; Mon, 19 Jun 2023 10:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687194624; cv=none; d=google.com; s=arc-20160816; b=BSEIbe2ugppVBecpToxKOdiUJfB5a17lox7JMAfE7NINJ3fV2MQku+9RJZ2NvJw8Qz ZBStr8Eqrkal2OAsMv+RJHtjblywEh3UU+noiqJT3cGk/U9qY/uRKuUUaCOvvyzBtkLV BhIpAkBT/JDnhA1nXdSrf0aL5nu/yBHh572e/DOY09GyyfL+OozWGfa8HMAGipyDRT5W kcrHKLMlhsbPeLG1sDiD1f9B1Rh/TaPPcRYxPC/Skjdld1FjvdNm18HvRFTbLkDWiTXd aRW5UMqIFXDlcPuDs7pfWqSNOtWvFeSyFP6X5YNlfxufq1600q7h4aWZ70BBIwGhNCs+ PjBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=qvZDt4sgYb6C7On5VH8+3EKFJn7NoF2S7Uh6Y5GL7TM=; b=a/FbqoLFNhu9rZvSNu4PQ4y3hRkFmVFHPql0acmOCafn0zPeV/e+OxQ2DWiYvQ2XsZ OEHWdgUz91/azBupsKVTED4lrvyuPCSd1+vMDASKuLa8k4aTAZ40LtZhoRFqUtzY7Oqu oB+Q2kdWxXN4YoMAjfMiVx76b+hD96v/vo4pdtps5YX4nCp48WVLi7UrlONGeg9sTxNc xan568bPKD32/g7Jrh4Lls/WTu7b6sU6sh695afg3udnthSdLzd+Gog0FHA2/11Ys2ce S1hDkc2RYdIRTDGa73TatqDPQSlfVYzYTfEjbfkn/dTgTPTh6KvXGBA+AX8/VlAFEIfp zMhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m7-20020ac85b07000000b003f7fc2a94f6si61487qtw.491.2023.06.19.10.10.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Jun 2023 10:10:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBINn-0001Nx-2u; Mon, 19 Jun 2023 13:09:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBINl-0001NE-8d; Mon, 19 Jun 2023 13:09:37 -0400 Received: from muminek.juszkiewicz.com.pl ([213.251.184.221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBINj-0000kp-Dc; Mon, 19 Jun 2023 13:09:37 -0400 Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id DFE4A260ADB; Mon, 19 Jun 2023 19:09:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at juszkiewicz.com.pl Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eafiISAUVR0d; Mon, 19 Jun 2023 19:09:29 +0200 (CEST) Received: from applejack.lan (83.11.39.176.ipv4.supernova.orange.pl [83.11.39.176]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 5483126021A; Mon, 19 Jun 2023 19:09:29 +0200 (CEST) From: Marcin Juszkiewicz To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell , Shashi Mallela , Leif Lindholm , Radoslaw Biernacki , Marcin Juszkiewicz Subject: [PATCH v2 0/1] hw/arm/sbsa-ref: add ITS support in GIC Date: Mon, 19 Jun 2023 19:09:12 +0200 Message-Id: <20230619170913.517373-1-marcin.juszkiewicz@linaro.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Received-SPF: softfail client-ip=213.251.184.221; envelope-from=marcin.juszkiewicz@linaro.org; helo=muminek.juszkiewicz.com.pl X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org In 2021 Shashi Mallela sent v8 of GIC ITS patchset [1]. At that time it was decided to do platform versioning first. 1. https://lore.kernel.org/qemu-devel/20210812165341.40784-8-shashi.mallela@linaro.org/ Now we are going through our list of changes for SBSA Reference Platform and GIC ITS is one of early ones. There was decision that there will be no option to disable it and platform version will get a minor bump. This is refreshed version of v8 one from 2021. GIC ITS is placed behind GIC Redistributor in memory space to allow use of older EDK2 firmware. New address is placed in DeviceTree for firmware to use. Due to it we also bump platform version to 0.2 version. Trusted Firmware will read GIC ITS address and provide to EDK2 via Secure Monitor Call (SMC). Same way as it is done with GIC addresses already. Changes since v1: - everything in one patch - removed bogus check for kvm_irqchip_in_kernel() - documentation about platform version changes added Shashi Mallela (1): hw/arm/sbsa-ref: add ITS support in SBSA GIC docs/system/arm/sbsa.rst | 14 ++++++++++++++ hw/arm/sbsa-ref.c | 33 ++++++++++++++++++++++++++++++--- 2 files changed, 44 insertions(+), 3 deletions(-)