Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1082779ybl; Fri, 31 Jan 2020 13:45:31 -0800 (PST) X-Google-Smtp-Source: APXvYqzaPinYuwYjE5DXISn6W0FoNC8D7WeyxeY4pB+QS4TTefovGcYGawvRkLDQu+PMtX21rAc+ X-Received: by 2002:a9d:6a4f:: with SMTP id h15mr9314174otn.86.1580507130885; Fri, 31 Jan 2020 13:45:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580507130; cv=none; d=google.com; s=arc-20160816; b=zfViZayXR+ydJainkKC435QvGjYavaLW/2LZTmliYrsnCAKPOhXkzwdpgoR46tdsbR AQYs/V6RFkqPBCYnqq5Ss5mrr5gumFBV7gAw2V9e8udSLPtBGt1aR8yf1xAm2NfJQneu OXvbcUmSa7eD9ACPFxO+K4aYoHqjGhXymQeUtW7hPAS9YzYHuzMlWLBQariO1Cx+szre CL6h5mj1CpzCAiPng3gdaqmx/2TjkvAx3/LEnbZdv6505P3BoLtdGwxRpGMHHZWX9r0j KL3bRuaQ6Ir2htCXu7WwKOOeNsPmb0Y0djcEeuJKTiEbkHynVYl0SqhshdTwS4xDuSDG j45g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=nkvHExzPXg/ZKR5hH3YUugqadwX+6Sb2+7hpGaWpcNA=; b=ZmzEmBDFy6E2MBXhfM5WwKz/ERZBlzwqwnsnlTmp5PLjfOgTupJYIh9p50VFO9HhY9 MUnjDF5erbMMYAV9mmKi1f+XVgMp9MwKxCvpV47PY5Rsxg6CFcYeD+6fMl9BzaKyJpAi jjQ9JWSLWn/RqekpB3CecrrqdQK1deffVu1fJCLeGl99G7c6ATJs2A3nz2YEaIqAs4PA BfzWGxF3V+2YD5IN0H7JG3Uhu1fLBQoZ1On/yGiuDAlfXVtKDSgwOeYEKljVHVCRC3x+ 82lCWM1Qot4bJGiwWfDmnL+iw7QSrKEtBIPh9oQnKHHH4Aaiz09/mcRMGxgJfNBYQs3P yAXQ== 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 i23si5228531oto.206.2020.01.31.13.45.19; Fri, 31 Jan 2020 13:45:30 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726385AbgAaVoV (ORCPT + 99 others); Fri, 31 Jan 2020 16:44:21 -0500 Received: from mga12.intel.com ([192.55.52.136]:60613 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726105AbgAaVoV (ORCPT ); Fri, 31 Jan 2020 16:44:21 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2020 13:44:21 -0800 X-IronPort-AV: E=Sophos;i="5.70,387,1574150400"; d="scan'208";a="377464364" Received: from agluck-desk2.sc.intel.com (HELO agluck-desk2.amr.corp.intel.com) ([10.3.52.68]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2020 13:44:20 -0800 Date: Fri, 31 Jan 2020 13:44:19 -0800 From: "Luck, Tony" To: Pavel Machek Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Peter Zijlstra , Fenghua Yu , "David S. Miller" , Sasha Levin Subject: Re: [PATCH 4.19 36/55] drivers/net/b44: Change to non-atomic bit operations on pwol_mask Message-ID: <20200131214419.GA19569@agluck-desk2.amr.corp.intel.com> References: <20200130183608.563083888@linuxfoundation.org> <20200130183615.120752961@linuxfoundation.org> <20200131125730.GA20888@duo.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200131125730.GA20888@duo.ucw.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 31, 2020 at 01:57:31PM +0100, Pavel Machek wrote: > And I wonder if this is even good idea for mainline. x86 architecture > is here for long time, and I doubt Intel is going to break it like > this. Do you have documentation pointer? Intel isn't breaking this legacy behaviour. But it is building h/w that allows s/w to opt-in to a mode that will generate an #AC trap for a split lock. One such processor ("Icelake") is already shipping. Some Linux use cases (real-time) really, really want to avoid the cost of a split-lock. There's a patch in TIP that will enable this #AC on split-lock mode on processors that support it. Thus it's a good idea to clean up any places in the kernel that will cause #AC when that mode is enabled. I think mainline should be taking any patches for split lock cleanup. Stable is a different question. The patch to enable the #AC should not be backported to stable. So the only way an old kernel would hit this would be if the BIOS enabled the #AC. Really that should only happen on a system where the developers have validated that the entire software stack has been checked for split locks. Is net/b44 a device that is still being included on current systems? Or is it a legacy device that has been superceeded by something else? If there isn't going to be a b44 on an Icelake or newer system, then perhaps we should not worry so much about fixing the driver. -Tony