Received: by 10.213.65.68 with SMTP id h4csp238994imn; Tue, 20 Mar 2018 02:09:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELtWFOWwlLnd6qOKnAD6XSk1hRku6IOJDopxOfJL8vVGd9fEHFYN7ignBpW3YflwJtO6BEcW X-Received: by 10.101.93.5 with SMTP id e5mr11234406pgr.82.1521536971532; Tue, 20 Mar 2018 02:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521536971; cv=none; d=google.com; s=arc-20160816; b=QJUgVDWEtJFuKEWSnutp/9kBVVOgEDBgnsur46kWybwBveUB29uGcug5qyTwSHgo1Z oPC/oJGwGhmrT/wgA11DBZmfM784RIr40pPa4YIO/7g46qVgYomgCXg0qhXfkc3er/2b wvCTwPSD2Ae0UxbMcaJSjiQX/Oe+pMlAVrjZPpKtQgAHGBjDADjAnjbSGSXjumT3FMzc 2yS0Ea8EJ73BpFNlM/O9PQ4CSmsKSxgz49jl6chrsJMqfmaeU3ibaI6kQvJafA17uI8y XW1JAR/pg4aN+VdkGEWhYuCJ1Ymp9pFCgE8L5AepP0zFVwrY4yloc1V6fcgMBKOUJoEZ Q8JQ== 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:arc-authentication-results; bh=Y79kUQKQ0CcIeKqgALaZFqFa847Aih4W0mzhXsx++Es=; b=c0jBkPB3cLDPy83mBUwVlM/e1VYmebJpGnPmn7Twptum3jWjA7E3QHLVVMmdTOssHQ iducFjbrYujBSWCtDGPd4o1TZtjW8yyWxm+3tTTh2Mq+Ru0tP+Ao9OMvN/RMlxhyACXe Eo88HuHWtcUq5CGIgV5WLpEdhDaBPXAuQ6gAchSP3n1JMmabPBtWkV0jhwE4GQV4GKtB 8RU8qFO0tCEAJDfHaeVvDgwGZ0bhfAU1tAYa2Xcd3+T+6/wR+ttgbzy8kQ1kmaAFOzm/ GYZtQoyrprOCHRVVmSJ2EZXBBjMYlnK6EZExszQz4vzSuL0AlJ+2wsmiN5VylYCUiZmQ 8Hbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=b6dQtgj+; 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 15-v6si1168071pla.342.2018.03.20.02.09.14; Tue, 20 Mar 2018 02:09:31 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=b6dQtgj+; 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 S1752341AbeCTJIK (ORCPT + 99 others); Tue, 20 Mar 2018 05:08:10 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:51757 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbeCTJIG (ORCPT ); Tue, 20 Mar 2018 05:08:06 -0400 Received: by mail-wm0-f44.google.com with SMTP id h21so1855345wmd.1; Tue, 20 Mar 2018 02:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Y79kUQKQ0CcIeKqgALaZFqFa847Aih4W0mzhXsx++Es=; b=b6dQtgj+72dqcUnThAhDAZOARFX62SWNaepzyrjDxjpo+SsV634/Som++WVK8nn7E+ K/6VE4N5Z84vD2K4tDxP4TH9tDDib09XlfSIEjryIuf97GB/nUeA1FTwu9P0IzCEDwWy 4ZngwYriTpEzlKOK0DIHca2lnW7RvhOolJvdRxoLvSivbB4KbFxZqILnLYayM0EUU1iU o5C7qXpk7z7ztSmP/OGq9QMfkNEEfiUrwR6QyWYOgIU+ZDNRBBpz8yKzTKMixr0I31OV e0iHfAqAlke+co37N0IM2VvX7w8BDKEm+Nl1t0sH3jGMtrzxSC8MaAFy3srfpTxdLJaP zx+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Y79kUQKQ0CcIeKqgALaZFqFa847Aih4W0mzhXsx++Es=; b=tWljEy+7CAtcsl9DwXPD77L5hnPo/UktrJ52SqVEQX5+wc6DVOO9rKgW9PQUxoMwej 6VcPQuq8HjkKGEUkwyjtWJrc0Sm6g7RxzT78kD6icm5P5Y7q/zTQzsWOb1oIuBUtRSP0 4pcvsX5tU/oReEQggHkjPQiI08gZ8wwnq9pnrHd2tmdTRqUh8FfbmmrLYv08J7eglMGe /VPi9Ru0IToi9Fl6MfeshhqKQ/SpxsEwHfYqYmBf4yXM5ZiYUR4zyOeH8yTph40YPcCa EHYJMnvoOE9NYfH/hDbqzypu0oyD7k+5lThcvP7gRl4finOh0W7gvZl8CqU+k+PvCVig DAvg== X-Gm-Message-State: AElRT7FiJeIFCd+25CgM2z8ltByMZOVzSFdKY38TE/zvDU21zA6vlRrU nhcWwETR2DavOWS7TlqskXM= X-Received: by 10.28.8.143 with SMTP id 137mr1368993wmi.54.1521536885376; Tue, 20 Mar 2018 02:08:05 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id l17sm877114wrh.58.2018.03.20.02.08.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Mar 2018 02:08:04 -0700 (PDT) Date: Tue, 20 Mar 2018 10:08:02 +0100 From: Ingo Molnar To: Thomas Gleixner Cc: David Laight , 'Rahul Lakkireddy' , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "mingo@redhat.com" , "hpa@zytor.com" , "davem@davemloft.net" , "akpm@linux-foundation.org" , "torvalds@linux-foundation.org" , "ganeshgr@chelsio.com" , "nirranjan@chelsio.com" , "indranil@chelsio.com" , Andy Lutomirski , Peter Zijlstra , Fenghua Yu , Eric Biggers Subject: Re: [RFC PATCH 0/3] kernel: add support for 256-bit IO access Message-ID: <20180320090802.qw4tqjmhy6yfd6sf@gmail.com> References: <7f0ddb3678814c7bab180714437795e0@AcuMS.aculab.com> <7f8d811e79284a78a763f4852984eb3f@AcuMS.aculab.com> <20180320082651.jmxvvii2xvmpyr2s@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Thomas Gleixner wrote: > > So I do think we could do more in this area to improve driver performance, if the > > code is correct and if there's actual benchmarks that are showing real benefits. > > If it's about hotpath performance I'm all for it, but the use case here is > a debug facility... > > And if we go down that road then we want a AVX based memcpy() > implementation which is runtime conditional on the feature bit(s) and > length dependent. Just slapping a readqq() at it and use it in a loop does > not make any sense. Yeah, so generic memcpy() replacement is only feasible I think if the most optimistic implementation is actually correct: - if no preempt disable()/enable() is required - if direct access to the AVX[2] registers does not disturb legacy FPU state in any fashion - if direct access to the AVX[2] registers cannot raise weird exceptions or have weird behavior if the FPU control word is modified to non-standard values by untrusted user-space If we have to touch the FPU tag or control words then it's probably only good for a specialized API. Thanks, Ingo