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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no 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 0871FC07E99 for ; Mon, 5 Jul 2021 11:51:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DFD1B61261 for ; Mon, 5 Jul 2021 11:51:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230367AbhGELxx (ORCPT ); Mon, 5 Jul 2021 07:53:53 -0400 Received: from verein.lst.de ([213.95.11.211]:56715 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbhGELxx (ORCPT ); Mon, 5 Jul 2021 07:53:53 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 2409E68AFE; Mon, 5 Jul 2021 13:51:14 +0200 (CEST) Date: Mon, 5 Jul 2021 13:51:13 +0200 From: Christoph Hellwig To: Geert Uytterhoeven Cc: Christoph Hellwig , Greg Ungerer , linux-m68k , uClinux development list , Linus Torvalds Subject: Re: [PATCH] m68knommu: remove set_fs() Message-ID: <20210705115113.GA20126@lst.de> References: <20210705055719.949875-1-hch@lst.de> <20210705055719.949875-2-hch@lst.de> <20210705085607.GA6827@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-m68k@vger.kernel.org On Mon, Jul 05, 2021 at 01:33:39PM +0200, Geert Uytterhoeven wrote: > > No, at least not yet. Coldfire and co still rely on set_fs for various > > things in the m68k arch code, and also don't provide > > __{get,put}_kernel_nofault yet. So wile m68k with CPU_HAS_ADDRESS_SPACES > > will probably one of the hardest ports to get rid of set_fs() for, > > m68k/mmu without CPU_HAS_ADDRESS_SPACES would be a logical next step. > > I could try to whiteboard code some of it, but I'd need help from dedicated > > M68k/mmu with CPU_HAS_ADDRESS_SPACES needs to use the address spaces > to access user space from kernel space using the "moves" instruction. > Coldfire doesn't. > > See arch/m68k/include/asm/uaccess.h. I know. That doesn't change that: a) even getting rid for MMMU && !CPU_HAS_ADDRESS_SPACES requires further work b) getting rid of set_fs is possible even for CPU_HAS_ADDRESS_SPACES, although it requires a lot of work.