Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp916161ybf; Fri, 28 Feb 2020 10:05:19 -0800 (PST) X-Google-Smtp-Source: APXvYqxHQM01LRVUp37h9dp8eY7GENpFFg7136m3y4q1HGwP2lo/M5UKUhLlb1F73NCclXCKHOU2 X-Received: by 2002:aca:44f:: with SMTP id 76mr3241911oie.23.1582913118887; Fri, 28 Feb 2020 10:05:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582913118; cv=none; d=google.com; s=arc-20160816; b=ljBWPhTM0M8s0uOyHhGXc8pzfmuhr+opJT4/+VCYjBfXNJCPAyOORDeysHk/6O4CPd tb8iMubxcbhHrx0ou9BHbe+7DQz+tPuczLd6inn7EYHwgCbSL4eNYmbYLEy4Zs1WAoNa HJXd5pDVfj7oTEn5b1+TYyB7uKJihkTfxmpqGrmaW7BpKoM+YNtB2drHIQ5QyohgKE4X s0xgFwAx9/19iZWOn96mMyjlgfl/u7ZqhVKZBhOnWANNkYOK45StKINAW272HB3ycr1H PjBke7AwsefYm9ZhwOpiJGZLtMnbca+dj3/1meoJbaxDoZzW9KVC1gzwRPUZjw1Ar2xF HPxA== 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=CmBWpIKnnVWtlhcroBgVPn++r+PthFu+2xU5l1vUPNA=; b=J6c4xivMmHgSXfLbQL6h4aLOzGwhTOpZGDLBgYUXSMV3EQsh74HQbrgbiwGuI8W1oP OyqAALvDXPDUCjjO9jczCDcyI3z+f6Sr4KK4+Fa3JLKiXdWkYJAFiZuFJcLz65BkRu+Y PmDtWaRJ26eD7PYlhILRqqc30hMuUEA0ww5VpWYWD1mYRhdfylCmZ6Hj2Fnk/BLlba2d KL2FBRBl/aaVoghzDoXQWdcCsKuNMJFxNcQQ3K9uxDe7ZTEztt97tSShBV8WyHUcKFS4 rWCEwjG9DCGmqJZ3k+qIv+D8nr7tisIxX80PDHEEOi04Qlpy7yHiTdtYHvM43VKQEvfB 6FfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Wa3ZaFht; 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 j20si2187473oii.80.2020.02.28.10.05.05; Fri, 28 Feb 2020 10:05:18 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Wa3ZaFht; 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 S1726561AbgB1SEs (ORCPT + 99 others); Fri, 28 Feb 2020 13:04:48 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:57250 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbgB1SEs (ORCPT ); Fri, 28 Feb 2020 13:04:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=CmBWpIKnnVWtlhcroBgVPn++r+PthFu+2xU5l1vUPNA=; b=Wa3ZaFhtWJ4Hy9wtAsjYEfN2o4 V0PZ+M9bh68HsduPFTOqG8No+xXjnGXslx1yHoBU+ikNAFzs6lLd6T6nYgR4khNxBJsLWySctRIi4 /ggGthuLa2kTOn2v7eqBXJQ6ntSg7Hh7FC874lLxj5htTN2H+hfB/HBxFaiw7ER/zIYGRDEu4SjoB NwLVY7/kRcm34FMiRHvzAvORSt42Ol1iaTbeFuKK48t6P0K36fo+0dnVzHD1A62iVCWzDu59ohPKp wkOva5VlewEX9Eob2QG+yRVZqOCWfp9e9SbCWjoUDkNuMfgLJghiy2egmjYD9RteV09lT+btsA67j QlDIFWYA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j7k0B-0004dA-Ox; Fri, 28 Feb 2020 18:04:43 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id CCFB030067C; Fri, 28 Feb 2020 19:02:44 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 386F3209E76B5; Fri, 28 Feb 2020 19:04:41 +0100 (CET) Date: Fri, 28 Feb 2020 19:04:41 +0100 From: Peter Zijlstra To: Josh Poimboeuf Cc: Al Viro , Chris Wilson , linux-kernel@vger.kernel.org, Randy Dunlap , intel-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/i915: Minimize uaccess exposure in i915_gem_execbuffer2_ioctl() Message-ID: <20200228180441.GL18400@hirez.programming.kicks-ass.net> References: <20200227223542.GE23230@ZenIV.linux.org.uk> <20200228010342.3j3awgvvgvitif7z@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200228010342.3j3awgvvgvitif7z@treble> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 27, 2020 at 07:03:42PM -0600, Josh Poimboeuf wrote: > > And why not mark gen8_canonical_addr() __always_inline? > > Right, marking those two functions as __always_inline is the other > option. The problem is, if you keep doing it, eventually you end up > with __always_inline-itis spreading all over the place. And it affects > all the other callers, at least in the CONFIG_CC_OPTIMIZE_FOR_SIZE case. > At least this fix is localized. I'm all for __always_inline in this case, the compiler not inlining sign extention is just retarded,