Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1483233ybb; Thu, 26 Mar 2020 01:24:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtwrL+sfLdDI7wfsC41AM5TAbSkpHSV6lvXyT7dXQLYnKfYu7qQOhtxd7jh+1NECSJMM5Iv X-Received: by 2002:aca:b8c5:: with SMTP id i188mr977720oif.2.1585211085499; Thu, 26 Mar 2020 01:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585211085; cv=none; d=google.com; s=arc-20160816; b=oXmNV1nx4zvFNCAawgNMj5xP5BZrOChgtr0OfJ/oGuOxS/Y/xsoIHglClUkxX/frp0 ZaONqzPXayD28DJ8z6buEj5VaMcDRprLl50BZix6Agni56Ry2T++G/L7Kq0D8oINuIR0 qbGmKR5SkT8WQrEWRKNKz15VlV9awNIzpReH3Nf7fsbtn3s+UqwZQD+1TR6+luKsQTd/ ItpT+qEhtaVv8mlxaHPoBZhsaS+lvgRic1L44t7qc3WXSER57prxU8pxi5gfFtc3/6DP xIiHzr0Z1sBZkdBzi1b69VX90sH8eQ0zsF4JWjURci/8nYIzom8HbuTp+EkqPhrJM/bb 9yZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=0psL/Uyx0c8pK8RMp92e2//MyVVHzdjXbgVEB9DBXdE=; b=lZZQIaM/MEceLgUfAO4gR3KE1udqrHv8k9HnuBSys1lbTIZ+k6B5ltVAOL4j0DMcbf sl2pPjIGI+vKrkJBqnuDvQnWG0n0uMJgNebCnGf02ERiHfEOUOSrh1ZFZHdSm81W5KD3 v7uvLyewjXqfeHmxCnHxzWAp6aSmST15+MSCz+BSmMYcqqj1uZQyIgNlp6+qFSmtYCb4 zuuCEvHz46Npi4JlXfr10M2f0J3kxmmxd2bOXchIroSdrR1GhynkOc4A7KNONjgYE1cK jF8l5bxedSUxrA6Y29CU6mbHzcSxOdktUpInHDQ6q45Du1BP4cpnTldIiNkfqZ3iLR3q TwiQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 186si665163ooo.33.2020.03.26.01.24.33; Thu, 26 Mar 2020 01:24:45 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727772AbgCZIYP (ORCPT + 99 others); Thu, 26 Mar 2020 04:24:15 -0400 Received: from mga11.intel.com ([192.55.52.93]:57886 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727682AbgCZIYO (ORCPT ); Thu, 26 Mar 2020 04:24:14 -0400 IronPort-SDR: S10lxP/O15Up24keMPS3juuvsFWH+ZQjuOsTnwKwpKIg/ZeiUoR0MZXdF9aimJlXJnLIJ5IzGc EFL0Wc77VUYg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2020 01:24:14 -0700 IronPort-SDR: 5SWx7LobP7Xk7vAZTAJX2qluD5fcl2KfCQrXaLbWi5S2WCQNBYGo4s5/hFX18gOYhnHfbYeuqC pMs/3FbeTOdQ== X-IronPort-AV: E=Sophos;i="5.72,307,1580803200"; d="scan'208";a="393901243" Received: from mschuste-mobl3.ger.corp.intel.com (HELO localhost) ([10.252.32.130]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2020 01:24:07 -0700 From: Jani Nikula To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: Thomas Gleixner , Nick Desaulniers , Borislav Petkov , Peter Zijlstra , "H . Peter Anvin" , x86@kernel.org, "Jason A . Donenfeld" , clang-built-linux@googlegroups.com, Masahiro Yamada , Daniel Vetter , David Airlie , Joonas Lahtinen , Rodrigo Vivi , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 09/16] drm/i915: remove always-defined CONFIG_AS_MOVNTDQA In-Reply-To: <20200326080104.27286-10-masahiroy@kernel.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20200326080104.27286-1-masahiroy@kernel.org> <20200326080104.27286-10-masahiroy@kernel.org> Date: Thu, 26 Mar 2020 10:24:04 +0200 Message-ID: <87ftdvikwr.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Mar 2020, Masahiro Yamada wrote: > CONFIG_AS_MOVNTDQA was introduced by commit 0b1de5d58e19 ("drm/i915: > Use SSE4.1 movntdqa to accelerate reads from WC memory"). > > We raise the minimal supported binutils version from time to time. > The last bump was commit 1fb12b35e5ff ("kbuild: Raise the minimum > required binutils version to 2.21"). > > I confirmed the code in $(call as-instr,...) can be assembled by the > binutils 2.21 assembler and also by LLVM integrated assembler. > > Remove CONFIG_AS_MOVNTDQA, which is always defined. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Nick Desaulniers Ack for merging this via whichever tree you see fit; please let me know if you want me to pick this up via drm-intel. BR, Jani. > --- > > Changes in v2: None > > drivers/gpu/drm/i915/Makefile | 3 --- > drivers/gpu/drm/i915/i915_memcpy.c | 5 ----- > 2 files changed, 8 deletions(-) > > diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile > index a1f2411aa21b..e559e53fc634 100644 > --- a/drivers/gpu/drm/i915/Makefile > +++ b/drivers/gpu/drm/i915/Makefile > @@ -28,9 +28,6 @@ subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror > CFLAGS_i915_pci.o = $(call cc-disable-warning, override-init) > CFLAGS_display/intel_fbdev.o = $(call cc-disable-warning, override-init) > > -subdir-ccflags-y += \ > - $(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA) > - > subdir-ccflags-y += -I$(srctree)/$(src) > > # Please keep these build lists sorted! > diff --git a/drivers/gpu/drm/i915/i915_memcpy.c b/drivers/gpu/drm/i915/i915_memcpy.c > index fdd550405fd3..7b3b83bd5ab8 100644 > --- a/drivers/gpu/drm/i915/i915_memcpy.c > +++ b/drivers/gpu/drm/i915/i915_memcpy.c > @@ -35,7 +35,6 @@ > > static DEFINE_STATIC_KEY_FALSE(has_movntdqa); > > -#ifdef CONFIG_AS_MOVNTDQA > static void __memcpy_ntdqa(void *dst, const void *src, unsigned long len) > { > kernel_fpu_begin(); > @@ -93,10 +92,6 @@ static void __memcpy_ntdqu(void *dst, const void *src, unsigned long len) > > kernel_fpu_end(); > } > -#else > -static void __memcpy_ntdqa(void *dst, const void *src, unsigned long len) {} > -static void __memcpy_ntdqu(void *dst, const void *src, unsigned long len) {} > -#endif > > /** > * i915_memcpy_from_wc: perform an accelerated *aligned* read from WC -- Jani Nikula, Intel Open Source Graphics Center