Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8752997rwp; Wed, 19 Jul 2023 15:01:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlHHkGi+CWTG8OWIN+Xmy6g25iwu6XXR3vQ3LQfIkscJDwohShQZmYYhT4ZvD4MoFSbXCW0K X-Received: by 2002:aa7:d0cc:0:b0:51d:982d:cb77 with SMTP id u12-20020aa7d0cc000000b0051d982dcb77mr3755269edo.33.1689804115497; Wed, 19 Jul 2023 15:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689804115; cv=none; d=google.com; s=arc-20160816; b=ccJHRfjaqL4XScuh2mAFuqws2ocz2N+7d82IYZDmaR0dbHrF5X4v5E50q8yWsW56qz yrSbpkTfbHcG7SNwSfDvf9Riu5LsK7pgXAzFerHevlLDPsXiBCzYxTKISZGf2TZMRMsj nG3oel3FGEpiJxMVFW2iT7i8dIh5YYceW7ap+YyLgxS71vLrEqLbOYeCq2/ncx6LijVq uz298n1ZE2HACtFdI3t+bVlo0ABbOgNBF1cIUUv4aXB+cEmr2pETmiybR8xBEAUw4MYx sUe68maRaGUzWbHocPTDA9wXttijIGRuqsmQwK9+lf3uAa+toxurn9+Ax/FYILC6eg3V Z20A== 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=rLihZVHK3CHWRwQZuJeTGZhqi1m+X+Vl21f6YoEXJhU=; fh=F483iy5YoPgXCxfmrnkiGtju4DZoR5YSowNbpI7UA0A=; b=Bcov7JFY6oNOx/n6FqdoqCifKu+QacMpGpcnFvDchvNQYj6oi3E+tLKmK1jrwaHEx/ WEVzc9A92mElmsjjkLpIsiqrL8vRU006gt1jvyIAI96GM/ANwfQa0DK3MSoE01KgmqlN DYwD5K4OwjCx2b7BCRQu6R02yG2hIWm/BW3C7b/lG+cKWmfFN/ATFkPQOVVAk/Tob15N bilya0QrR42V/r6i1HzLh/Fn9DWasv4w8RHBNkrcoR6m+iHBglhJSu51wUDh2Tg7SghN dF3MNCBGiMjrJKSpVuFcI5B2klAH78RrBuI9lPcEj3wZyvM/MyQe8ScyxDvS3G7p50sC ZxBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=G+UVUHjm; 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 o21-20020aa7d3d5000000b0051dddbd08basi3536394edr.352.2023.07.19.15.01.31; Wed, 19 Jul 2023 15:01:55 -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=G+UVUHjm; 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 S229709AbjGSVoE (ORCPT + 99 others); Wed, 19 Jul 2023 17:44:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjGSVoE (ORCPT ); Wed, 19 Jul 2023 17:44:04 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1D771FD8 for ; Wed, 19 Jul 2023 14:44:02 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-262c42d3fafso124507a91.0 for ; Wed, 19 Jul 2023 14:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1689803042; x=1690407842; 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=rLihZVHK3CHWRwQZuJeTGZhqi1m+X+Vl21f6YoEXJhU=; b=G+UVUHjmkfa1/Iq+zmyB9mjg/dn+9znCrn3YV7v6AEvEH+6Isw/fYyMRfwBN4MUI9Q DMCmhTAWA/tndSpWKNBcbeZMoBrNHbq6I3Y3SFxZ9TYnR/cTXsJarADgWG0v7CRKS7MT 86Aa+F3bx7QHwdi8/mOfbWJ8clXA/zEh7PS70c2+vslzfCv4seQtPy2JfNUKwX/NLT4H jVohrDUeK3eAUzHcA9lJF9MxyrR7fTQ3gwziLV7TVEKi/1JmTNU382je2ILO8L5Q7bSN lL+vgfvPWDhd3TzvnIyZ4op+0rhSr8CvxX5PlJ+lv5r7Zob2M3hINsgcszb97jAz+39Z gVbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689803042; x=1690407842; 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=rLihZVHK3CHWRwQZuJeTGZhqi1m+X+Vl21f6YoEXJhU=; b=Zazthj49MAjlIN3dYyBz0F+qEq7EWghvZdMERk6aytIRqdkbx0927g1iw5k14tVNXc xh8gReraM+HWoxVtLnLPIYgR4nyFKsHLE0mvM74a+Y6VwkojueA2QUA3nZ/s2G+7zvAl 11PhaNirrxfH60vMRPRg0dQSzdeGjLcfdfpFhOxCtemy/47uEBubjxz4BStJvUvCRKtY G6Vkllo4fyx8Ln6ptpJhcp6KngeeJBMrB8khwbleTKZ3+zYO1xPdqHYDuN+6mk3ZrEIi X8+v3BNZMhPpL1bfOeOQiGtidTCkGiQQJ12Tv0kGyn9XNxWFYnUd8ZLqnMmzRJ0tqiYw mSow== X-Gm-Message-State: ABy/qLbIdjAymsXX+sGTY0Z8YGZdwojCxFPkgFu54exGLVemca8cREv+ 1c3Q9VlIVcS9IJiK40c+p6KWcmVJxP1y/P8yucJX5w== X-Received: by 2002:a17:90a:8c4:b0:263:f521:da3e with SMTP id 4-20020a17090a08c400b00263f521da3emr4431779pjn.2.1689803042099; Wed, 19 Jul 2023 14:44:02 -0700 (PDT) MIME-Version: 1.0 References: <20230719-confront-grass-6d0eb304b94f@spud> In-Reply-To: <20230719-confront-grass-6d0eb304b94f@spud> From: Tomasz Jeznach Date: Wed, 19 Jul 2023 14:43:51 -0700 Message-ID: Subject: Re: [PATCH 01/11] RISC-V: drivers/iommu: Add RISC-V IOMMU - Ziommu support. To: Conor Dooley Cc: 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 , Nick Kossifidis , 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,URIBL_BLOCKED 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 Wed, Jul 19, 2023 at 1:50=E2=80=AFPM Conor Dooley wro= te: > > Hey Tomasz, > > On Wed, Jul 19, 2023 at 12:33:45PM -0700, Tomasz Jeznach wrote: > > The patch introduces skeleton IOMMU device driver implementation as def= ined > > This commit message reads like a cover letter IMO. At whatever point > you send a v2, could you re-write this focusing on what is done in the > patch itself? > ack. will amend the commit message. > Also, since I am not going to reply to any of these iommu driver patches > in a meaningful capacity, please run checkpatch.pl on your work. There > are well over 100 style etc complaints that it has highlighted. Sparse > has also gone a bit nuts, with many warnings along the lines of: > drivers/iommu/riscv/iommu.c:1568:29: warning: incorrect type in assignmen= t (different base types) > drivers/iommu/riscv/iommu.c:1568:29: expected unsigned long long [user= type] iohgatp > drivers/iommu/riscv/iommu.c:1568:29: got restricted __le64 [usertype] > > I can provide you the full list when the patchwork automation has run > through the series. > Thank you, a list of used lint checkers definitely would help. > Anyway, what I wanted to ask was whether it was valid to use the IOMMU > in a system if Ziommu is not present in whatever the ISA extension > communication mechanism is? Eg, riscv,isa or the ISA string property in > the ACPI tables. > Yes, this has been pointed out to me already. As far as I can recall, there was a discussion at some point to introduce those as Ziommu extensions, later agreeing not to call IOMMU using ISA string conventions. Will remove remaining occurrences of Ziommu from the series. > Thanks, > Conor. > > > References: > > - [1] https://github.com/riscv-non-isa/riscv-iommu > > - [2] https://github.com/tjeznach/linux/tree/tjeznach/riscv-iommu > > - [3] https://github.com/tjeznach/qemu/tree/tjeznach/riscv-iommu > > FYI, we have the Link: tag/trailer for this. > Thanks, - Tomasz