Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3516405imu; Wed, 7 Nov 2018 11:31:58 -0800 (PST) X-Google-Smtp-Source: AJdET5d7E7/1PRijhcZoNwVzqQfoMolHPAy+y0h63+v9GAkmtTkit08bmnTwe48yfCeWCNjmJQww X-Received: by 2002:a17:902:b18c:: with SMTP id s12-v6mr1510817plr.16.1541619118607; Wed, 07 Nov 2018 11:31:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541619118; cv=none; d=google.com; s=arc-20160816; b=DSi4eNM9/3yb7bZ+XYovSXBIhcOefg5jguzvmE8A4L7MqkHKZXc3NMAwvYVlKXBXNt KyAJWhDExe681+1bG9LNesiK+NVkSMKzBoKOu+odFZ1XGP56I1HwY66LfIMdMPXnQ7tW OzJhuDYPzkL3WdKWdvUVDa4+k+E5CGUFWjPXNCFztby6i3u9Dq0voPJ0s1pe6Msz6J2B sj7cocbsyGFoP+cZB+7EkyJxrTYx5qe1cL47hfl92xxFLSpFe/ZWh+QDOoXyg8cBXfsg gWH5roZ6un6vDB+rt/0H9Kix6lbg1dQGhj8jfsUmxN3fJNYa2tLz90UaIQ6W69Nox07I UKzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lGxBgxb69DwOQrno2ZT8HT7NN9KkuNtF8Wya0+jrqaQ=; b=X9SfsvhtQBNZxDdhJAfA13hsfX49Fh1PSGLZByFhpOow4NKO1pxTZyg6qWjUVf6pJT 7I9Bfrq/VgoVIZyoYllgaKdVezFVzGgK8Lvl4dDSS7FJcErR9r+rDV8cK850xI4z69YT YBSfp1b1+DKv2nkgnqiws+D30QJ7pGVfnwoSxIR6KIYXPjK/6zpWF+SA2+o15l7dnx97 RaBnOzibnYWfwZJ7oAFIc8TMg9colsvQfbB77ewMdlY7CtxNg8DOhSueXXXFnL1KFKd1 FRHlYd/Ftnh3O4Uo4MzDOq67WwTcdM+CilGfq0YDII289Uhozysg79S2Nr+QpFcnq+aN 8fNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=YINaKpXz; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si1578855plt.225.2018.11.07.11.31.42; Wed, 07 Nov 2018 11:31:58 -0800 (PST) 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; dkim=pass header.i=@cisco.com header.s=iport header.b=YINaKpXz; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726609AbeKHFDC (ORCPT + 99 others); Thu, 8 Nov 2018 00:03:02 -0500 Received: from rcdn-iport-3.cisco.com ([173.37.86.74]:44652 "EHLO rcdn-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725724AbeKHFDB (ORCPT ); Thu, 8 Nov 2018 00:03:01 -0500 X-Greylist: delayed 564 seconds by postgrey-1.27 at vger.kernel.org; Thu, 08 Nov 2018 00:03:01 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1129; q=dns/txt; s=iport; t=1541619077; x=1542828677; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YtTpBgtZRpjibu3ozBjEhrBp7YUvBYaF//UwXAhT5UM=; b=YINaKpXzbossjU4Z/mI52diafcG9VgHU34XtTYAYkd6KyV2bJxRTG+T9 P5VgGggmJZ4goGK/jFIBlh2/glbfiD5Ssi70ERJQugAfy/PlBRj2Q/txv BB63RAPI6Bt1Jb+mpsMbrglHDQzwUFL1G+ktC+Lw+bJ4Ta+tRH+brwOD5 s=; X-IronPort-AV: E=Sophos;i="5.54,476,1534809600"; d="scan'208";a="467851184" Received: from alln-core-6.cisco.com ([173.36.13.139]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Nov 2018 19:21:54 +0000 Received: from zorba ([10.156.154.31]) by alln-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id wA7JLkP2009626 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 7 Nov 2018 19:21:54 GMT Date: Wed, 7 Nov 2018 11:21:45 -0800 From: Daniel Walker To: David Woodhouse Cc: Joakim Tjernlund , "nkela@cisco.com" , "linux-kernel@vger.kernel.org" , "linux-mtd@lists.infradead.org" , "xe-linux-external@cisco.com" Subject: Re: [PATCH] jffs2: implement mount option to configure endianness Message-ID: <20181107192131.tf5ptjiccne3tzmq@zorba> References: <20181106214928.40020-1-nkela@cisco.com> <921b0f78cf67d7307a0555e1fd6f2c2976310adc.camel@infradead.org> <1e4c066d1896e2a0b8b146253d34d05cc4f9ab36.camel@infinera.com> <8b08e8b992093453bb2b9caff8cff08c.squirrel@twosheds.infradead.org> <20181107173303.slnb3i2d6ufaonp7@zorba> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.156.154.31, [10.156.154.31] X-Outbound-Node: alln-core-6.cisco.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 07, 2018 at 05:58:53PM -0000, David Woodhouse wrote: > > > On Wed, Nov 07, 2018 at 04:12:14PM -0000, David Woodhouse wrote: > >> > >> > Yes, this may slow things down. I am not sure I agree with the impl. > >> > either. > >> > Could one not make cpu_to_je_X/jeX_to_cpu a function ptr which is set > >> to > >> > a func. with the correct endian? > >> > >> On x86 retpoline would make that quite slow. > > > > Is x86 the largest consumer of jffs2 ? > > Certainly not. I'm not sure which architectures do have Spectre V2 > mitigations which make indirect branches expensive now... perhaps there is > no intersection with the cases where we really care about JFFS2 being > CPU-bound? How about we add the Kconfig option to enable the mount option. So if you enable to mount option your accepting the performance impact and we'll note that in the Kconfig description. Then we can do the performance testing in time, and maybe make this always on at some later time when the performance impact is better understood ? We could also add likely()/unlikely() cause that's easy enough. Daniel