Received: by 10.223.164.202 with SMTP id h10csp348331wrb; Wed, 22 Nov 2017 08:07:48 -0800 (PST) X-Google-Smtp-Source: AGs4zMah+0gOvGEGFXZyBoh/w32BVsme/W9NaY8Bw3WEYKwUtRxKtUJPV5e7ImypKO5UA4NezFn+ X-Received: by 10.99.100.67 with SMTP id y64mr21096538pgb.19.1511366868658; Wed, 22 Nov 2017 08:07:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511366868; cv=none; d=google.com; s=arc-20160816; b=nWghw+JjGPGao+CoIf92xFqYqfR9SHqsstLMUMZttrR0gSetoDOQAzry5mcgnsMJRs AEpJwanM60aM4mL9mt7rTk0iwQFa0/tc9XRT2LLutt4aZGZb7SayQHKLtWtUmHqOPkMG 8t5/GYNc9tYsYo4cIsXiaHx0MPdVqR/tDF14TmhNiofCw3y3ory90LqB49omdswewV22 1b+KD8G2uHW0eBITOMqaqtZmDcGOQv8ubonwAUC3YQ9fRvlQ4BAGhHbZ1xNo5CZArie3 Ig4JhyXC11a7qV8pWKBX9G+EolLYbbS4CkcEw/B7UyGk8jBjeaLzzvRaIqWILRHzK0/P 60BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=mSOwPU+Xe0GRQnRLmFxWcuS8z7D2N2EmydnGwP4NpXk=; b=YcAbyFu4rc/gVtlu+aCxzm78cNm9+sbgf+bNF7IMdTa4sZtXwN2exm913yCT2FzCz7 6ssayaN/AqofUZUnqTmiwY+/FBl5k9UpOuAMaNwghJ4+mPT7iuWJNjBh9CQwOXKgQJf6 FlI7pSWDBZmrXuW0xVzhWCVC4HV2tkFx0ZHUp3tGIEpZzheR6BdfKE6t+t3xxLcPpBPi 9v48a4X1NLjo5kHfj4dFCjqf+qL7xK3Ymd0SGdT+pH0QkUpE2PMCElQVKtLW6lUbTwtQ sOS8+Jm+QeR5tGOitrnFhaa+xEIrDW/N+Td3lehoxlbGdJf8JRAxWMf/9gPOJtAzI3gT dpOg== 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=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f84si15450241pfh.71.2017.11.22.08.07.36; Wed, 22 Nov 2017 08:07:48 -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=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751712AbdKVQGv (ORCPT + 77 others); Wed, 22 Nov 2017 11:06:51 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]:53821 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751259AbdKVQGt (ORCPT ); Wed, 22 Nov 2017 11:06:49 -0500 Received: from [167.98.27.226] (helo=xylophone) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1eHXXw-0003ea-If; Wed, 22 Nov 2017 16:06:44 +0000 Message-ID: <1511366802.18523.119.camel@codethink.co.uk> Subject: Re: [PATCH 4.14 00/31] 4.14.1-stable review From: Ben Hutchings To: Guenter Roeck Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, shuahkh@osg.samsung.com, patches@kernelci.org, stable@vger.kernel.org Date: Wed, 22 Nov 2017 16:06:42 +0000 In-Reply-To: <20171121193845.GA9680@roeck-us.net> References: <20171119145951.136379453@linuxfoundation.org> <7bc1795a-a2f0-6837-19f0-93b21fca35ad@roeck-us.net> <1511277970.18523.113.camel@codethink.co.uk> <20171121163534.GA20401@kroah.com> <1511282778.18523.114.camel@codethink.co.uk> <20171121170914.GA21561@kroah.com> <1511291234.18523.116.camel@codethink.co.uk> <20171121193845.GA9680@roeck-us.net> Organization: Codethink Ltd. Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2017-11-21 at 11:38 -0800, Guenter Roeck wrote: > On Tue, Nov 21, 2017 at 07:07:14PM +0000, Ben Hutchings wrote: > > On Tue, 2017-11-21 at 18:09 +0100, Greg Kroah-Hartman wrote: > > > On Tue, Nov 21, 2017 at 04:46:18PM +0000, Ben Hutchings wrote: > > > > On Tue, 2017-11-21 at 17:35 +0100, Greg Kroah-Hartman wrote: > > > > > On Tue, Nov 21, 2017 at 03:26:10PM +0000, Ben Hutchings wrote: > > > > > > > > [...] > > > > > > Not all 32-bit configurations can provide cmpxchg64().  i40e's use of > > > > > > cmpxchg64() appears to be fixed by: > > > > > > > > > > > > b74f571f59a8 i40e/i40evf: organize and re-number feature flags > > > > > > b48be9978e4b i40e: fix flags declaration > > > > > > > > > > So without those patches, are any specific arches/configs broken for > > > > > 4.14? > > > > > > > > 32-bit parisc is. > > > > > > Ok, but that's a horrid hack on the i40e driver, it just happens to move > > > the bitfield to a 32bit variable.  Can't we just provide a "real" > > > cmpxchg64() for 32-bit parisc? > > > > No.  There is a generic implementation of cmpxchg64() but it is only > > suitable for non-SMP configurations. > > > > Dave implemented the following for sparc32 (in arch/sparc/lib/atomic32.c). > > u64 __cmpxchg_u64(u64 *ptr, u64 old, u64 new) > { > unsigned long flags; > u64 prev; > > spin_lock_irqsave(ATOMIC_HASH(ptr), flags); > if ((prev = *ptr) == old) > *ptr = new; > spin_unlock_irqrestore(ATOMIC_HASH(ptr), flags); > return prev; > } > EXPORT_SYMBOL(__cmpxchg_u64); > > Maybe something like this would work for other 32 bit architectures as well ? Yes, you're right, and we even have generic code for this in lib/atomic64.c - but only for atomic64_t, not u64. Ben. -- Ben Hutchings Software Developer, Codethink Ltd. From 1584705758072192792@xxx Tue Nov 21 19:39:40 +0000 2017 X-GM-THRID: 1584507016796973128 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread