Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4249050ybi; Tue, 11 Jun 2019 03:33:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxLQtbxiReJbiMbNlHLHpUGTZBmwd8xbXn9VQJIPJ9S1C9jsNk0RY9q45VrRULPghP5myr X-Received: by 2002:a63:d4c:: with SMTP id 12mr20323572pgn.30.1560249208109; Tue, 11 Jun 2019 03:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560249208; cv=none; d=google.com; s=arc-20160816; b=OhKTA1vm1+0Ft5vxFSqe5QniU7biekE2LrzqW+dTrJJxrxROQuFcvN2hqwKkOkV7Xc m7hHAsRx5rmV5DHBfWZE/pSG2mZg1dhzK6A4Ayu+k30YmHsjTu0akW5dyTyUUCC76bWt gfN+O4siEZ8Hb+eJ2aXbodIBXn3hmjsjTMvG6BlPmJ6rRvA84Mm5+8qBziHnJHRZheYi iiZHe6PrwLmOaNDgsgorqA3jCSo4vU5F/wY0jKN0cl19YRJlzkWmk+wyPLKlirvJtckb Pa7hGr/NQHF13gwl4BJWtpzl+1vfMfSmwts1mBF8pxIWmieBKuzysUQX6hqLprYT7Ctr QfbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=yi4Viu+xpAMuUI9z3dU0VFv3EA1DXGPoCHP1fK6d9DE=; b=PPAg2tvP9mjZFZ7E5ijjX+F/i+ICnEcVS9MK6gOq1N79SqMWUzRePLTdlBY31UfEmY uHLjFXFBDW3AO0KP9owg2xSVviSr739awqrPKV9OpKrU0trYym28pbxXqi9ItxN4nt0M GF4h+emEpMSPQnMT5J88DW+zO0Ex2GaWq6B6UzGrsDrYteRjm4pmYt6R+j2XKv++nXCl qstVkiUT2Pc69qykBX0PC02TSFmy4IospSdf6UF6MtUJzKZWfnk9wp0Q3ubTG3ADIMT9 emaIUwkBhHq+dx+YXQ67VdkuaYglGGH/c6hIIPFikqbx0JbPT6OEtZT2EmeD9wJCWK/r a3gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si2092520pjn.106.2019.06.11.03.33.12; Tue, 11 Jun 2019 03:33:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387678AbfFKKcm (ORCPT + 99 others); Tue, 11 Jun 2019 06:32:42 -0400 Received: from foss.arm.com ([217.140.110.172]:58278 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387423AbfFKKcm (ORCPT ); Tue, 11 Jun 2019 06:32:42 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6D599337; Tue, 11 Jun 2019 03:32:41 -0700 (PDT) Received: from [10.1.29.141] (e121487-lin.cambridge.arm.com [10.1.29.141]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 21DD73F557; Tue, 11 Jun 2019 03:34:21 -0700 (PDT) Subject: Re: [PATCH 17/17] riscv: add nommu support To: Christoph Hellwig , Palmer Dabbelt Cc: Damien Le Moal , linux-riscv@lists.infradead.org, uclinux-dev@uclinux.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20190610221621.10938-1-hch@lst.de> <20190610221621.10938-18-hch@lst.de> From: Vladimir Murzin Message-ID: Date: Tue, 11 Jun 2019 11:32:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190610221621.10938-18-hch@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/10/19 11:16 PM, Christoph Hellwig wrote: > Most of the patch is just stubbing out code not needed without page > tables, but there is an interesting detail in the signals implementation: > > - The normal RISC-V syscall ABI only implements rt_sigreturn as VDSO > entry point, but the ELF VDSO is not supported for nommu Linux. > We instead copy the code to call the syscall onto the stack. On ARM we perform I/D cache synchronization after stack manipulation. OTOH, ARM port of uClibc provides SA_RESTORER with intention to avoid manipulation with stack and cache maintenance operations (yet kernel still performs such manipulation, IIUC, for backward compatibility) Cheers Vladimir