Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2957825ybz; Sun, 3 May 2020 13:32:16 -0700 (PDT) X-Google-Smtp-Source: APiQypKUXAJK8haGFnLKAlywjLCRMu+Ux0PgHpxG5cXg+pugxRC7YojpGmLRDYJiyQc3P2VYkxCj X-Received: by 2002:aa7:cdcb:: with SMTP id h11mr11589900edw.264.1588537936257; Sun, 03 May 2020 13:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588537936; cv=none; d=google.com; s=arc-20160816; b=M1egJx9Y00IEBFC/jCaeprbruNHAbRTBOil13kU39RhGIXCKcq1o38uhQ2/BApgqv2 0tt2c+Tk721SHbi/YFVxicRGdFJKkHtiXAoIJ7O11XND9bqbiP7x6WL66AFS21L7pCBx 0Phz+g/j3Dhl9srEL0wqhzcnt0GkPBCPjhoVg3UAjKqvGzvcXBC+GEvD8ckx0UiwOK9M wHKDdxQ8L/2px09QwpP+icv1s1JqHBopgFoteKsV+zJs6KH4Ca4qDVHwQnY8ebl/Yaic 1WEvPD9TOxG67sXLiPwv7wWtSQjMnSkUbu7okvmi7wN5DL4MQJ3QRx57miHctlVXfYrt crFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:cc:from :subject:to:references:in-reply-to:content-transfer-encoding :mime-version; bh=JqnuyhTBb1mgGTV2KdWJotrAJyPlrQU+5+E7pp1efPc=; b=ivJaLJh2Zah//gh9VROUJPvYgiT1un26rDVW1d8pFasTJ1Pj4wBllFm3J6D07h0gaN p0RcwbP6Vow2sO3/n/N8b1Cw7U1ehkA8rfNyBU2rMQpfyOfas/o7qAYD38QzV7WeYVIJ G9WUeawhaBlnI1aYEHG9N6v/B9YtR00+QQkfetuafQGmTrSyYGRi66SJ/3IVKC8tiyz7 b9XDO6qZJgJ8+PzCMURiWw3esrlcxzEof+7iEFlsPkxZgtdwMo9n4D9z47C6/9Qhrj59 /GK/OND7cTsnQ+682eY6qmkrNuvVdAdiw8SP/Y6QQKuVueltdN8gAM9l5JDoW5NCV6wv UmMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s22si5350738edr.441.2020.05.03.13.31.52; Sun, 03 May 2020 13:32:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729102AbgECUa1 convert rfc822-to-8bit (ORCPT + 99 others); Sun, 3 May 2020 16:30:27 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:52895 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729034AbgECUa1 (ORCPT ); Sun, 3 May 2020 16:30:27 -0400 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 21101115-1500050 for multiple; Sun, 03 May 2020 21:30:23 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT In-Reply-To: <20200430221016.3866-1-Jason@zx2c4.com> References: <20200430221016.3866-1-Jason@zx2c4.com> To: "Jason A. Donenfeld" , bigeasy@linutronix.de, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, tglx@linutronix.de Subject: Re: [PATCH] drm/i915: check to see if SIMD registers are available before using SIMD From: Chris Wilson Cc: "Jason A. Donenfeld" , stable@vger.kernel.org Message-ID: <158853782127.10831.11598587258154009671@build.alporthouse.com> User-Agent: alot/0.8.1 Date: Sun, 03 May 2020 21:30:21 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jason A. Donenfeld (2020-04-30 23:10:16) > Sometimes it's not okay to use SIMD registers, the conditions for which > have changed subtly from kernel release to kernel release. Usually the > pattern is to check for may_use_simd() and then fallback to using > something slower in the unlikely case SIMD registers aren't available. > So, this patch fixes up i915's accelerated memcpy routines to fallback > to boring memcpy if may_use_simd() is false. > > Cc: stable@vger.kernel.org The same argument as on the previous submission is that we return to the caller if we can't use movntqda as their fallback path should be faster than uncached memcpy. -Chris