Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1961288ybk; Mon, 11 May 2020 08:29:10 -0700 (PDT) X-Google-Smtp-Source: APiQypIJ2KOCuMZi4yuenA7erZuLBlNCITqtGuqPIU4YezcPEHR4eK9LaHMyqONC7y2R0p4qlNjx X-Received: by 2002:a17:906:27d1:: with SMTP id k17mr13451746ejc.134.1589210950070; Mon, 11 May 2020 08:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589210950; cv=none; d=google.com; s=arc-20160816; b=r8/31QlIf0/yDc6SXqL/ZbXXBEZxw5/edxb+Auet2Gi4d3z95fe6/ahu839dL+zl9L 1Veo3/Dm4FhzWnyNIty3sp/+gmB+QvIyzf20oxG9D7zc+Fcw7+hheOSJVcttcY6RCpvv lswuyLaM5Cdlat0UkLptj/oWqz75V3+L85rbSBE5ZGBNnCKH9+qHKw+a/UVUsgYjFz4Y xgd0cWLT/4WPD+YdpiB9ZAiFiG2koiwvVZC4ev5ImnZ7Y388Ibgf+cFtZ2ZxXrWTkiFz /V1Cz/0ImTtOijYRHshJyIFBR0TSgA4d4kbaSZUuawtQbUWDfsCcONTnXaegR486XnOX fR9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=cFOqYFe+JnxanB4tWXMEfN+/EOvlslN0N0IK+ztKBU4=; b=KX0Kzla21BD8HyXmGt1Gqp2LCOoSprcWLramE5UJaq3B5Dx2J8f317ahBVr+JuHeaC KFPOO+oY38C1xSsk4YvDWM+6RvtRLKE5oY5oPLeUe4knkEPcJOHNgLjHm0ruBJPnc36q tdq/Gd/C7xYJnAONsOILWWai5AdXZx2eXRTidHp4H8Xzx7OILBIgMoQLRpLjfxC2iwZX oXvqU7VlcOp0PQZeIW5m0nWcPRDdWq+iDw8uFuvwKKGVLJ9IbMmDlfXiNid4ar9FQF8h dr2XlTNcbHt1SM9WqpNVMBDeJ8dNGjcSrLj8Mqg4uTIJ9xoI4IRDZNdIKt8owPSDE4qt jWtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si6545228edq.8.2020.05.11.08.28.46; Mon, 11 May 2020 08:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729766AbgEKPYq (ORCPT + 99 others); Mon, 11 May 2020 11:24:46 -0400 Received: from mail-oo1-f68.google.com ([209.85.161.68]:34491 "EHLO mail-oo1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726410AbgEKPYn (ORCPT ); Mon, 11 May 2020 11:24:43 -0400 Received: by mail-oo1-f68.google.com with SMTP id s139so1052447oos.1; Mon, 11 May 2020 08:24:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cFOqYFe+JnxanB4tWXMEfN+/EOvlslN0N0IK+ztKBU4=; b=fP8/k7rDNKTzbltDIp3OM9w3etOibsx0IcU5V/Kzgtv8M0d1Y50KwHpaLub+5fVG1o nhoPw43PkAYU6WXpi6T/G5//l3iS83pR0En9Upu0LlXXYWNxfZyhUPBEwCPUcbwSeQwe DkOGysofB/OJA3hgKt2eeYTydwxJWXYZSM/LEynZwmRvyx7jctBtVEjy/IhvNYhQ9Rcm RZqwNKlO5ammGdJ4lnwc8ovhnzm+P1SgGF7i1vTHg7avslKh84Ywt8Y9l6ci06+YDhIl nFAuJGX6+AHaKRu+CkjNaLZqjqUrYbVkrB1pKYJjNZ0A5sjBzKek3TZrtvNN2qTcUn3D BwxQ== X-Gm-Message-State: AGi0PuY9VicF4PpQ0VV65smujtjZdo3cFI3gbbdsHc24lUyfG4jxOdqK V4OOQa/u+Edc4hPbtjQ+A/LyeQW+KVnpi17UdA0= X-Received: by 2002:a4a:d204:: with SMTP id c4mr2380562oos.1.1589210682093; Mon, 11 May 2020 08:24:42 -0700 (PDT) MIME-Version: 1.0 References: <20200510075510.987823-1-hch@lst.de> <20200510075510.987823-32-hch@lst.de> <20200511151120.GA28634@lst.de> In-Reply-To: <20200511151120.GA28634@lst.de> From: Geert Uytterhoeven Date: Mon, 11 May 2020 17:24:30 +0200 Message-ID: Subject: Re: [PATCH 31/31] module: move the set_fs hack for flush_icache_range to m68k To: Christoph Hellwig Cc: Andrew Morton , Arnd Bergmann , Roman Zippel , Jessica Yu , Michal Simek , "the arch/x86 maintainers" , alpha , Linux Kernel Mailing List , Linux ARM , linux-c6x-dev@linux-c6x.org, "open list:QUALCOMM HEXAGON..." , "linux-ia64@vger.kernel.org" , linux-m68k , "open list:BROADCOM NVRAM DRIVER" , Openrisc , linuxppc-dev , linux-riscv@lists.infradead.org, Linux-sh list , sparclinux , Linux-Arch , Linux MM , linux-um , "open list:TENSILICA XTENSA PORT (xtensa)" , Linux FS Devel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On Mon, May 11, 2020 at 5:11 PM Christoph Hellwig wrote: > On Mon, May 11, 2020 at 09:40:39AM +0200, Geert Uytterhoeven wrote: > > On Sun, May 10, 2020 at 9:57 AM Christoph Hellwig wrote: > > > > > > flush_icache_range generally operates on kernel addresses, but for some > > > reason m68k needed a set_fs override. Move that into the m68k code > > > insted of keeping it in the module loader. > > > > > > Signed-off-by: Christoph Hellwig > > > > Reviewed-by: Geert Uytterhoeven > > Acked-by: Geert Uytterhoeven > > Btw, do you know what part of flush_icache_range relied on set_fs? > Do any of the m68k maintainers have an idea how to handle that in > a nicer way when we can split the implementations? arch/m68k/mm/cache.c:virt_to_phys_slow() All instructions that look up addresses in the page tables look at the source/destination function codes (SFC/DFC) to know if they have to use the supervisor or user page tables. So the actual implementation is the same: set_fs() merely configures SFC/DFC, to select the address space to use. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds