Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3295097pxb; Thu, 10 Feb 2022 17:45:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJz05MthKQInpm0Gn5t8idvusSFkaV3ySZQJUEYy2b/DLzMqvyYOAk83dUh5T68Y7U4dv6S/ X-Received: by 2002:a17:907:97d0:: with SMTP id js16mr8692837ejc.67.1644543900099; Thu, 10 Feb 2022 17:45:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644543900; cv=none; d=google.com; s=arc-20160816; b=ON/6jTVI1GQbtLnrJKjV7qNFah7AV+WcEjjH3HmEBvVZrb7UFIvGHvubXMA98axk60 qTQdW2DJqWGiPLUUAgKA1a7tktZo9+FW0CNHtVxydXX6ZkOe4CB2cjqQeArPDWD/kiwX uTHSzmoIA2BAe9KCeJl8LfWUINYAj4Jg/TeRMU6UFXfxHfQRhK6qe+HlZCZO1e+MAl8o ETmXrdm7FtSkZ47DDhVAnaj50WU0Aowmxvmpq/57SY9Xv2Vut+hsqAOwIlrlGs4LlbBp Uk1g/ypSS6KJqthacbkyWDFD9dQh/mI9Nrgadjl67GVTy5X4dpRigglJ4814vH/04bW1 QmwQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DvG8fCf7KVzHEzIUqrYQD1tXuriXBJ0qnl0qbGDLAIc=; b=srvVy5lasi/Hz/1vMehaM23AGZy71ub5zzDevvurx7ypu7zJXhbUgiHw7ruwYrH239 //EoNpWZKWajZRhcYDTEjYybNduhO1zq3MCduO839F0RJasnDaw89UZm+KS9gUXquQX9 5Y264xxrxVCSEC0h9jMM5BMZGBU55RdZewS7pqwU/N/0lalcvbL19lzR4WR4UC/XPOyG 0L6N07kHBOVEiB5oSmLPaV/An94zlCvZiOQH/QkB7fjkJgk/O9vkz7w9JU9J96oDTDdb BUULpTpaZauoaJ2zKGzaitBqFWOGnGgEe8D6rtmCNwcAnepYql0Q4TL4DGaVqK4OUR9s gyKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nEy5oLkL; 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 s20si9239642ejv.328.2022.02.10.17.44.35; Thu, 10 Feb 2022 17:45:00 -0800 (PST) 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=20210112 header.b=nEy5oLkL; 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 S1346235AbiBKARd (ORCPT + 99 others); Thu, 10 Feb 2022 19:17:33 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346204AbiBKAR3 (ORCPT ); Thu, 10 Feb 2022 19:17:29 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AADBF5582; Thu, 10 Feb 2022 16:17:29 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id v5-20020a17090a4ec500b001b8b702df57so10304727pjl.2; Thu, 10 Feb 2022 16:17:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=DvG8fCf7KVzHEzIUqrYQD1tXuriXBJ0qnl0qbGDLAIc=; b=nEy5oLkL4L5drym9TpX+/BFiMcd0nHRGbmXVu0J02kfiQluOo3aPZtsLV5zqcNZt+e T4wxx7FuGQq822ji6IhHS4oHk1xyVMMyQDcMsBQZfw+yoqA2jbJ6S3FjwQyJR1K9ZebV Z2PuAgQDrKzKu5/d8koMiw3RuBBN5Ya1uspfz0C/2Dut94an5J5L/9+afRkC4eE7mkOR 62HY9QX8qf0ueM5JgMMJoaoN2LJddwbrBGoydF8zEGFcEEclzYZwwduJ8GLtL5zRUv4n aPvVDR2aj0KUpsQ+SZu1l4Se0yy/agkIGadIwTMaSm3ActvjLdnYgv+ztZPQavGUKlTh Z5Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=DvG8fCf7KVzHEzIUqrYQD1tXuriXBJ0qnl0qbGDLAIc=; b=ovDubdjFTGeFf71u9Fmwu91ANO5FZuktsPDPmPx7my1LS/kKu2ncqXzVffQn7YlJ4S QXskISUnWykOySg1D9Kd0B21PmflL8zzUooA6Ebupu6GfMkKGsONrkuGqBYgGyZL9FNf N7ew9hpqvdQ0kLQdr2Yn8CPnpS/S2cyy27C5dooFLllwgniFVC5wZzXwITpaGd47K3gD qpIMcNwwGXZPOJt/aaIX23hN8/snRpZy+8Nesg+v44UFvD0iufEAxx6nPnzAk28f9mKv QRJgcFFuJqPxUGU5YMyeUmma5EL6B9uAiuIVcr7YpPjhep99UgtgFVnyLcmNJegZ1p67 dxdA== X-Gm-Message-State: AOAM532xHL6IeErj+zFnUHd7tt+OiGS6GMR4KZsByejsqU61OkN1U24C UMAaz4zG5gsp6YXVxdYryq4= X-Received: by 2002:a17:90a:c687:: with SMTP id n7mr5465372pjt.83.1644538649108; Thu, 10 Feb 2022 16:17:29 -0800 (PST) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id o21sm25569745pfu.100.2022.02.10.16.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 16:17:27 -0800 (PST) Date: Fri, 11 Feb 2022 09:17:26 +0900 From: Stafford Horne To: Arnd Bergmann Cc: Michal Simek , Linux-Arch , LKML , Christoph Hellwig , "Eric W . Biederman" , Al Viro , Linus Torvalds , Arnd Bergmann , Geert Uytterhoeven , "Peter Zijlstra (Intel)" , Catalin Marinas , Mark Rutland Subject: Re: [PATCH] microblaze: remove CONFIG_SET_FS Message-ID: References: <20220117132757.1881981-1-arnd@kernel.org> <126ae5ee-342c-334c-9c07-c00213dd7b7e@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, Feb 10, 2022 at 08:31:05AM +0900, Stafford Horne wrote: > On Wed, Feb 09, 2022 at 03:54:54PM +0100, Arnd Bergmann wrote: > > On Wed, Feb 9, 2022 at 3:44 PM Michal Simek wrote: > > > On 2/9/22 15:40, Arnd Bergmann wrote: > > > > On Wed, Feb 9, 2022 at 2:50 PM Michal Simek wrote: > > > >> > > > >> Hi Arnd, > > > >> > > > >> po 17. 1. 2022 v 14:28 odes?latel Arnd Bergmann napsal: > > > >>> > > > >>> From: Arnd Bergmann > > > >>> > > > >>> I picked microblaze as one of the architectures that still > > > >>> use set_fs() and converted it not to. > > > >> > > > >> Can you please update the commit message because what is above is not > > > >> the right one? > > > > > > > > Ah, sorry about that. I think you can copy from the openrisc patch, > > > > see https://lore.kernel.org/lkml/20220208064905.199632-1-shorne@gmail.com/ > > > > > > Please do it. You are the author of this patch and we should follow the process. > > > > Done. > > > > Looking at it again, I wonder if it would help to use the __get_kernel_nofault() > > and __get_kernel_nofault() helpers as the default in > > include/asm-generic/uaccess.h. > > That would make sense. Perhaps also the __range_ok() function from OpenRISC > could move there as I think other architectures would also want to use that. > > > I see it's identical to the openrisc version and would probably be the same > > for some of the other architectures that have no other use for > > set_fs(). That may > > help to do a bulk remove of set_fs for alpha, arc, csky, h8300, hexagon, nds32, > > nios2, um and extensa, leaving only ia64, sparc and sh. > > If you could add it into include/asm-generic/uaccess.h I can test changing my > patch to use it. Note, I would be happy to do the work to move these into include/asm-generic/uaccess.h. But as I see it the existing include/asm-generic/uaccess.h is for NOMMU. How should we go about having an MMU and NOMMU version? Should we move uaccess.h to uaccess-nommu.h? Or add more ifdefs to uaccess.h? -Stafford