Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp855524img; Thu, 28 Feb 2019 08:57:40 -0800 (PST) X-Google-Smtp-Source: APXvYqzDP1Z00g7VWWRLQP4SmCMUKHooCKjQ6iSsMcljK5dhL1rHpsrwQhCxDR+Eg4UrU48hBASo X-Received: by 2002:aa7:918b:: with SMTP id x11mr559850pfa.228.1551373060517; Thu, 28 Feb 2019 08:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551373060; cv=none; d=google.com; s=arc-20160816; b=jvg+JzOyyMWT2bkJuF2iJCb3bks6Mh56YyLy2MFR/4/77A3uAnDf6ZOJr1cuXvHfSa 7wlbgXdGTRsRbmvIIBJhMzcUgofAPez4kloKoIDW1KGokCpfvqll+4dXtqCEsEOEwZMo SME/9xbafuHYkPNbv8oQMDyej50recUWtOHN3sQHllrqq/Eg0FQWQexOxGwrlNBdXuRE 9nmeanLu4lTtjx3enr5iZ8/QjR78B9jMF9NM26SgVqPo6CMib6JeOf9tnOcvRpemAUhX eW6RXA1boY32stf4K151fb3dZwaorNB+JVMSDu15f3/UOY82CWpbiAz7wC5jXOBAWiI/ 54Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version; bh=jzZUE1bKGp98C551idCr8RZZFWsvqzUnG3hffjwFBqs=; b=Zg6IeqNMEu2TSkA+pKXpxxStCfAjsziyOg3304lUtoq9tmuIT74Nl4ROUqJ5TCtLke uSS2R8x5oa0uccAbJeqd8ClgnDGO8I0qLWHPjxRwAoH5g3jVr2efZ6ZJGN1b3Cm+zK9O epcoI++VV3rUy0vkKvSFn1bnU6P/hymUl1K1tMIhxQwwb7mRGeoTjUcD45D/UCGO2svv vDrKe4a81rG4YeqWURD6uU73QpLXAP31WmMYWlCTOMFg//FD47XiX31JhWa42h8raOm/ NX/StTObh99UlUhC5tI6qLtsYa+1vZZZpc2rbcZXSijGHYZRvR1eEQftIaOvfTPx4eMB w4lA== ARC-Authentication-Results: i=1; mx.google.com; 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 c11si12989270pfc.39.2019.02.28.08.57.24; Thu, 28 Feb 2019 08:57:40 -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; 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 S2387873AbfB1PLD convert rfc822-to-8bit (ORCPT + 99 others); Thu, 28 Feb 2019 10:11:03 -0500 Received: from mail.fireflyinternet.com ([109.228.58.192]:54377 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387854AbfB1PLC (ORCPT ); Thu, 28 Feb 2019 10:11:02 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 15732212-1500050 for multiple; Thu, 28 Feb 2019 15:10:45 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Peter Zijlstra , bp@alien8.de, brgerst@gmail.com, catalin.marinas@arm.com, dvlasenk@redhat.com, hpa@zytor.com, james.morse@arm.com, jpoimboe@redhat.com, julien.thierry@arm.com, luto@amacapital.net, luto@kernel.org, mingo@kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org, valentin.schneider@arm.com, will.deacon@arm.com From: Chris Wilson In-Reply-To: <20190228150152.540038736@infradead.org> Cc: linux-kernel@vger.kernel.org, peterz@infradead.org References: <20190228145450.289603901@infradead.org> <20190228150152.540038736@infradead.org> Message-ID: <155136664389.5847.6200085578174808757@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: [PATCH 6/8] i915,uaccess: Fix redundant CLAC Date: Thu, 28 Feb 2019 15:10:44 +0000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Peter Zijlstra (2019-02-28 14:54:56) > drivers/gpu/drm/i915/i915_gem_execbuffer.o: warning: objtool: .altinstr_replacement+0x3c: redundant UACCESS disable > drivers/gpu/drm/i915/i915_gem_execbuffer.o: warning: objtool: .altinstr_replacement+0x66: redundant UACCESS disable > > AKA. you don't need user_access_end() if user_access_begin() fails. Cool, I had no idea if it was required or not. The closest to instructions on how to use user_access_begin() is in arch/x86/include/asm/uaccess.h ... which I guess is earlier in this series! > Cc: Chris Wilson > Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Chris Wilson -Chris