From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8FA9C43381 for ; Fri, 22 Feb 2019 15:56:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B6FC82070B for ; Fri, 22 Feb 2019 15:56:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OT25HmG8"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amazonses.com header.i=@amazonses.com header.b="TCZxF0+Z" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B6FC82070B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:Message-ID: In-Reply-To:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0sMBChmNHeO1/9+7WbaGDTpkiTQASPQu0ltJ4C1vLkg=; b=OT25HmG8cl8HvK UFJQ/EHsYq2nyonG5FSCCxmy9FfLERI/pvJkE1wfRlf6q5elsvcHhnxHAA4dbD3TlrtHhrF/ns4TR bfLp4By0SMqDN0IUlfY+5x9dG3O2118um2y2QXuS2+5LNVBhT7AFGTqPA8NSBIuOxX+w4RVYChARO wX6uXjA+cLewsaJrFJX6KGUEbOFK2KOKlr4EqX2uBpcPllIsqtVqSJoqJ7Zt1YXjBV4R7tcccUGO6 LMysjfGlNAoEuWp7Vpn5CQEXf2+7NehbNefGQsTvNZcSUUUIHR/UagC7Khm65a3a+11W8fkfNGEsu VsOytxDeX2OCiAZUQR6w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gxDBw-0005Dg-Qi; Fri, 22 Feb 2019 15:56:48 +0000 Received: from a9-34.smtp-out.amazonses.com ([54.240.9.34]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gxDBt-0005Cw-UK for linux-riscv@lists.infradead.org; Fri, 22 Feb 2019 15:56:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1550851002; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=ayWXsZdO0r1YE62M3O4piDBd//k+uSc4tk1sxRNuYW4=; b=TCZxF0+ZuIpm/WpWNrAs8bf1CgLJInZeHoFTsFhmicrsD3XOzfNqoGE7MdSKsns9 Q1yvSJmqoJsChU/QiN6qm+1uQcJ4b3eTUtKrSabHGsfViev5Wi4GYWC/NXggLdnnYhK 3cLqxrrSMbzWAWtGgg6GT7W9YMhhmnm7sYVejqLM= Date: Fri, 22 Feb 2019 15:56:42 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Nick Kossifidis Subject: Re: per-cpu thoughts In-Reply-To: <2acd8a4393d4e9c526bcfa4aca63e4cf@mailhost.ics.forth.gr> Message-ID: <0100016915ec5184-5c0a50db-1b61-428f-ae2c-d23ce8d465d5-000000@email.amazonses.com> References: <0100016915bc54e5-22f89b41-21e8-4133-9550-e85f4223ea32-000000@email.amazonses.com> <2acd8a4393d4e9c526bcfa4aca63e4cf@mailhost.ics.forth.gr> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-SES-Outgoing: 2019.02.22-54.240.9.34 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190222_075646_039754_59422226 X-CRM114-Status: UNSURE ( 4.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bjorn.topel@gmail.com, paul@pwsan.com, Palmer Dabbelt , linux-riscv@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org On Fri, 22 Feb 2019, Nick Kossifidis wrote: > How about the scratch registers defined on priv spec ? We already use sscratch > on Linux for keeping per-hart kernel data structures (check out entry.S) and > mscratch on OpenSBI for keeping per-hart state etc. The problem is that the register needs to be referenced by the amo instruction. Can amoadd increment an address relative to a scratch register? _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv