Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1496002rwo; Wed, 2 Aug 2023 15:21:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlHxGGEpSUxWE6046ydeWHpbiNX7tHOL9hjAi6cJMgUA84unBpfWe8rLhBJ449Omsmotmihl X-Received: by 2002:a05:6a20:1586:b0:13a:8082:531b with SMTP id h6-20020a056a20158600b0013a8082531bmr19211785pzj.4.1691014901443; Wed, 02 Aug 2023 15:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691014901; cv=none; d=google.com; s=arc-20160816; b=xFli8ti7wVihaU3Kd1DfIWU7Q6RCF8iJydsbkTUCjCU5LoYapX3O2Bsb6oW8PCySRC jSUPVuZHMvY52ZAbca30w1FI/tPNVRHSi8gHR/PGbsyWxYmxUJC6fuLpgOcxuCVPwnkB KFMjVv3+1eevlNjvI5fmK77rsNmGQ/Nw+jYmPvgF2VSvkSemuQivw/4LpB9295bPG0GM zgIMjS1PpeyBoAKl1hbzkrS6E/qwuJZIc3Nqwv78CY7yOkA1nyiPzCAIyl8Qj1q4ZYvx MhmVBzQ7GbCEWQB3RCo6iccmkGsujTfayVsZCHcVLPFdjIJeuRGYAWrnnsoWr02WsNG7 HZJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9hqvoTOiyuv4V1kgAdgMNiSxKc6mmFloyOiPHrBE85c=; fh=3Tfq6LW/7qH/4i0MQcWtsbwVOQZ2l+m1TZAO8NCdpwc=; b=QA7ASQt+YaFs+7MPNAUVdd5MHXI3wmon3k2VYIUtLnPsYcIxSd1YOdH07ZOnjq23xB FgMGEpnFDniTRlLATff4AbmooskZ53bVMOzEtNstoYf4PB8RMXlfX4p4R3arY3YLOMi/ e0io6OjnWXcFoRk42phsqwQLfrARn8DL5VnPcqpsselzSOUWy0ZcHnOCyzLsLCjlIvLr cb3NVQvJBPonOXRcCDRQ6RLWqypkKh21lUKuUmSemDF+fxEN3IhOvkSxe/GG1e8AQIkG Zt3E5qhxk1znJwgz4Sf2Faw8KT6o3vhqxStdD7pdFpYuEiQgj4C8rAunnr79UkACbICf EkyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=OUshjBs3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b26-20020a6567da000000b0055b79986063si10390083pgs.300.2023.08.02.15.21.29; Wed, 02 Aug 2023 15:21:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=OUshjBs3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230367AbjHBU3F (ORCPT + 99 others); Wed, 2 Aug 2023 16:29:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjHBU3D (ORCPT ); Wed, 2 Aug 2023 16:29:03 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6517626A0 for ; Wed, 2 Aug 2023 13:29:02 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-686be3cbea0so947487b3a.0 for ; Wed, 02 Aug 2023 13:29:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1691008142; x=1691612942; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9hqvoTOiyuv4V1kgAdgMNiSxKc6mmFloyOiPHrBE85c=; b=OUshjBs3oLkzrOHgBh0MTMLHTYl9xc2uTs/DfoPYFfyAo4mxNCWm8J4c9QM9hSexum 9HBylmRqvzav1PjL/yeLumKinHJ29RDq5JH0bhVnvEVvlFOG6cE89Nz+C+VZEiXN6GyC XE873DFIWrg4Psq8+zzR6SAdu+1WvbZwP9yxUmXFBqXEw525K/0miYFDpnK9xUuLahCN MPZl5xGpGevXKZ9VlsrzRHn1HwBtfMSKWM/Rli1NyeCdOiFLEFgDVNLhpZ5wrJtbz85O jzJ3956aUY4nykeCy9V7egZ5d1VrdSBrAOieqj/eiWcz0CobtVTQPYEpQAAl1MANoq0M homA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691008142; x=1691612942; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9hqvoTOiyuv4V1kgAdgMNiSxKc6mmFloyOiPHrBE85c=; b=GXwurQNb4lZ83iVOZX5ujxM8kJXhHoNRcnRFQd1tRffTiQRaQEnQtjyt/LiM+N1WqE 7p2o+/vh0HGWcZPuH/sXEVwhISq5jErwu2p5rDJzyJz5Bc4UOBKrRynpziLd7UzLT8XQ M1ivGVVKuwZaZXmwcYui+pJxeH1gyYY/hXRY/1ZPXVywDvHYMBtXlkny2x2+AZbGcXG+ z1qk31h/QuxvbR5LgkL3Imm4RRwqkFvqSCOP97IpHcEODUEdQC0V5e4MbTDJcoibZfvM THYMBLzYfeuU92aipXfQKNzLcTPpFYZ46b6z3m6IbUzhDgUe/+3yNHrZDQ9p7ZjTTnlk qAPg== X-Gm-Message-State: ABy/qLY18zsw4bbZtYhfC0sJSLhLAIG9OPu4wHYW7+Ivd2x0c1vwNNv6 5XPdjw2wIPR4IscaFf+MVgNUeiIDtfai1ASAeo1u6g== X-Received: by 2002:a17:90b:101:b0:268:ad94:3cf5 with SMTP id p1-20020a17090b010100b00268ad943cf5mr14387097pjz.8.1691008141832; Wed, 02 Aug 2023 13:29:01 -0700 (PDT) MIME-Version: 1.0 References: <1fd79e5c53d9d6ed2264f60dd4261f293cc00472.1689792825.git.tjeznach@rivosinc.com> <3d4d9b22-8451-f4d5-bbd8-117988f3a545@ics.forth.gr> In-Reply-To: From: Tomasz Jeznach Date: Wed, 2 Aug 2023 13:28:51 -0700 Message-ID: Subject: Re: [PATCH 06/11] RISC-V: drivers/iommu/riscv: Add command, fault, page-req queues To: Zong Li Cc: Nick Kossifidis , Joerg Roedel , Will Deacon , Robin Murphy , Paul Walmsley , Anup Patel , Albert Ou , linux@rivosinc.com, linux-kernel@vger.kernel.org, Sebastien Boeuf , iommu@lists.linux.dev, Palmer Dabbelt , linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, Jul 31, 2023 at 5:38=E2=80=AFPM Zong Li wrote: > > On Tue, Aug 1, 2023 at 7:35=E2=80=AFAM Nick Kossifidis wrote: > > > > On 7/31/23 16:15, Zong Li wrote: > > > On Mon, Jul 31, 2023 at 5:32=E2=80=AFPM Nick Kossifidis wrote: > > >> > > >> On 7/29/23 15:58, Zong Li wrote: > > >>> On Thu, Jul 20, 2023 at 3:34=E2=80=AFAM Tomasz Jeznach wrote: > > >>>> + iommu->cap =3D riscv_iommu_readq(iommu, RISCV_IOMMU_REG_CA= P); > > >>>> + > > >>>> + /* For now we only support WSIs until we have AIA support = */ > > >>> > > >>> I'm not completely understand AIA support here, because I saw the p= ci > > >>> case uses the MSI, and kernel seems to have the AIA implementation. > > >>> Could you please elaborate it? > > >>> > > >> > > >> When I wrote this we didn't have AIA in the kernel, and without IMSI= C we > > >> can't have MSIs in the hart (we can still have MSIs in the PCIe cont= roller). > > > > > > Thanks for your clarification, do we support the MSI in next version? > > > > > > > I don't think there is an IOMMU implementation out there (emulated or i= n > > hw) that can do MSIs and is not a pcie device (the QEMU implementation > > is a pcie device). If we have something to test this against, and we > > also have an IMSIC etc, we can work on that. > > I guess I can assist with that. We have an IOMMU hardware (non-pcie > device) that has already implemented the MSI functionality, and I have > conducted testing on it. Perhaps let me add the related implementation > here after this series is merged. Thanks, getting MSI support for non-PCIe IOMMU hardware would be great! best, - Tomasz