Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3109304rwb; Mon, 7 Aug 2023 08:22:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRq1sRdcKNvKCWRMlz9JwsX9tGvSHGSksbdI1JLSy4wTtDsabH2t6lA5T6s1P2ltnrWExI X-Received: by 2002:a05:6870:1682:b0:1ba:f2eb:baa3 with SMTP id j2-20020a056870168200b001baf2ebbaa3mr11943671oae.3.1691421737165; Mon, 07 Aug 2023 08:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691421737; cv=none; d=google.com; s=arc-20160816; b=wPZLBEEWcbDFoakrZqxAZ+LGJM0dwfwJGFdkirAUXrPCVDH6gnAIrw0qlU7193DZKI OmdiMIbOq4GdoG9l69FKckDCP560J684YJsZf8m/NImXcJ5e3K8Truh1Ne7uydeaahOI jod39Xt1mfq7wHEahBjW5i3qxwFtCGUKhWrJZG0zlpGJ+/Y99n97Al9Tel48EMWk+iTJ M2l2hl1paLqX9sgBzG1o7lbCMhsxV+3I2IDP9wohZVpbWy8glaZes9+GmgLwJSRslN/n /Eyi9vT/ApIrKY7pFRfmHj1Rdi0xxFSnuZY1hL+EHn9boUwlAlgKVxmueYACYQCID7Bs UflA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zJJrvD/G9JTxhkHQHH1bGUg27rSaJAiqqO5viUJTjQc=; fh=kMP2mvqIfRlmAQk7phFOSUQpNKNjeiiG/ZGVGxxa6iI=; b=HzqDoQxfgTj2XHA6Ndc80rrR6eXzl2AQpryE4D+/HLrn6PaDkDfFDaYIMyjk/kbkhh W3JWbvBC9Dq0uN4DYUN2ADP4UcA8BKIM+AH0p6EnvWhZh3EETCtqywpkLUYOYWyePnjv OhLfeK8X3wF/BGgxp41p84RNxUCCZx3tJaxnwPFlYlsKl7Nb/c3b1IqSDBUvSMbFvcfo QpcXMU1jV5xNOZaJKr4dIOygtNF8MGPoAoYgRDcbAspClNIhRK3lxyc0jFhWsM63NKGI veEhruXSm7KC2FJb2RaaxuqM3ZXlbwURozyD56g1azpZqkrRYqQlEMMwVb6XH8q/QvWF BlCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=OubUae7D; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 85-20020a630058000000b0055b7319a311si5656603pga.356.2023.08.07.08.22.03; Mon, 07 Aug 2023 08:22:17 -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=@gmail.com header.s=20221208 header.b=OubUae7D; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233894AbjHGNT1 (ORCPT + 99 others); Mon, 7 Aug 2023 09:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbjHGNT0 (ORCPT ); Mon, 7 Aug 2023 09:19:26 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 893B4B3 for ; Mon, 7 Aug 2023 06:19:25 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-99bdeae1d0aso624410666b.1 for ; Mon, 07 Aug 2023 06:19:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691414364; x=1692019164; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zJJrvD/G9JTxhkHQHH1bGUg27rSaJAiqqO5viUJTjQc=; b=OubUae7D5dFyrm+J+1BdPm0HxvypQANTVeNS01zzb0cZgE+sfyYY9wgtXLHTnNKebj HiTKnTsCd1LsISGObIZzSxRUXP/SapP955hm9kiP4TtOhXr6yDcryx+o5HwqClrlBK83 ldcp5TqiNMLHoiskun8vvb/8Vx12rKIUTEa9tOLNNRnYZakHYoSvFg9zCyn67jkYk2Ta lacmrzynspZ8ZTkZg47TB2xRgMGuskAla0Q+EJV/pVJGSwb0KiVhlWSfxrXzrviejJxd Xda/I/2KZX53XxRydUQ6wWlmNXwPn+DAB3ULIpR64dry/Zhanqosa1d2Iie9To1oZQ/L QCrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691414364; x=1692019164; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zJJrvD/G9JTxhkHQHH1bGUg27rSaJAiqqO5viUJTjQc=; b=TOz9kBI8AB9PjKkq7Hghx+F8TlMb3NzMlOO8aOCIZwBR8NAZ+4GuR7WEFxYxvwPuhY XCOwcjEbg/s7LMhqtkJI7w3ZZ2MZMdF1hpl3MBZJxKlSZqA2s8rEjTat1+94+3aYdcl7 6bIiSZFlsm2vk6lU9VUGN1PJTMXjgR27g9qFEFbL12MOJ2aXA9tVv+bI6iUgfQ7afOT+ z+77t8M/NVwtY7Vd2FrJVtq9M40LMO7JJlL6AD4o55DXwxLaXYECcMAnGJTgvc7LRUGY h30Rs2EEVMQsPxAkneFn6krPfIQrDKxPfWhcXJZqLXgg8tJykwpmpgWW69riqkTRwThv au5A== X-Gm-Message-State: AOJu0YzefHgkw4eY4T2hWcaTaOMTaLvxI7gIFCgLFKkCZwDhdipUXV7b r0r2htNDWTCgi8OPhf4Vyl4= X-Received: by 2002:a17:906:538b:b0:974:771e:6bf0 with SMTP id g11-20020a170906538b00b00974771e6bf0mr7141044ejo.56.1691414363798; Mon, 07 Aug 2023 06:19:23 -0700 (PDT) Received: from andrea (host-82-57-177-142.retail.telecomitalia.it. [82.57.177.142]) by smtp.gmail.com with ESMTPSA id bt20-20020a170906b15400b009929ab17be0sm5152584ejb.162.2023.08.07.06.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 06:19:23 -0700 (PDT) Date: Mon, 7 Aug 2023 15:19:18 +0200 From: Andrea Parri To: Mathieu Desnoyers Cc: paulmck@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, mmaas@google.com, hboehm@google.com, striker@us.ibm.com Subject: Re: [RFC PATCH] membarrier: riscv: Provide core serializing command Message-ID: References: <20230803040111.5101-1-parri.andrea@gmail.com> <4bf79f06-4593-134a-04dd-b8f89e96a1b8@efficios.com> <65350c17-3fcf-a057-a280-f6a5d36dcb21@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 > One more noteworthy detail: if a system call similar to ARM cacheflush(2) is implemented for > RISC-V, perhaps an iovec ABI (similar to readv(2)/writev(2)) would be relevant to handle > batching of cache flushing when address ranges are not contiguous. Maybe with a new name > like "cacheflushv(2)", so eventually other architectures could implement it as well ? I believe that's a sensible idea. But the RISC-V maintainers can provide a more reliable feedback. Andrea