Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp696024rdb; Tue, 19 Sep 2023 07:41:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHH9aR0GZhmIhWNXC5lw8P81mFKKglcLZqCxjEs+pgdtkrZfqS8QKDEEeeaxGFvKNJNum63 X-Received: by 2002:a05:6a00:238c:b0:68e:3f0b:5e6f with SMTP id f12-20020a056a00238c00b0068e3f0b5e6fmr13343744pfc.24.1695134459998; Tue, 19 Sep 2023 07:40:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695134459; cv=none; d=google.com; s=arc-20160816; b=Hs4ilCfPqLbi7TtBN5Y1ENdCv9pbhWtm7TJbJuJADfmeGELo19gXQAP0OsHJ5F0ozk wqL1hHIhrcwSkf+DRQjB0RXWJ5kn+yb2r7hF2wcozXtXmS2B7B6k8KU3dm/MPrSsOdjg OWrjw2yIYS+gk7y0YhoniJ3G1WT+SXwleISdD+CbNovFruB+kG/nW1/gb3OB9eKEGkWn Tn7WeDW6hgmSo8CK+xUG8VcaUyTDkP1D5JD4axf2orFexlTN9NKtjwPWYcuuMSHuM/Yr S24o6G2K1QF6VAWfYXdZw2i7rRgBC2thJH3TAVRvf9122AqZT+4h4vgm99GBOyU4v0zL IZAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=nzI0aefk9QFJshHRkrrOVmorI41NUu4PAGC7U/Xs9FU=; fh=occj1q8wJEOWtSaQz2/Q7eCmXsZQQM36zOBj1hr2l90=; b=CUY1WopwrKD/8NdKiXah4XVr1l21KnTaFRBvRyJ/3k/YWWUW4Q0gX6uu9wfoLsyJpS Nyza33aWlFzHUGDcCwVXaLG1e58jZdpsfPQ006B4/8PBuZdPnLe/Dncu8K5R83aRQw/b spnRpME1h8n0wkqDTxWroZolz5s0RJdLZcDn/n1B+mucmn8O93PrmeVzABF+mwBAm5/C oqU9402SgK+vBLjgaVjIGAQZfJUeratmniVx7pAubL4kRjQhKJ6JnO++8LPQStXKvZMM 4/UPI9aTmVWz2YsnGSy1zsP17MyApcNDqiyoebA7vmBouKR6hiB01CUiYrE9NK9uHOzO yCqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id l24-20020a637018000000b0056336fb99aasi1530693pgc.850.2023.09.19.07.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 07:40:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2D965806C353; Tue, 19 Sep 2023 07:35:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232850AbjISOfz convert rfc822-to-8bit (ORCPT + 99 others); Tue, 19 Sep 2023 10:35:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232842AbjISOfx (ORCPT ); Tue, 19 Sep 2023 10:35:53 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1144C83 for ; Tue, 19 Sep 2023 07:35:47 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-286-os4Jn-dCOAGz3FBPVajm3w-1; Tue, 19 Sep 2023 15:35:30 +0100 X-MC-Unique: os4Jn-dCOAGz3FBPVajm3w-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 19 Sep 2023 15:35:25 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Tue, 19 Sep 2023 15:35:25 +0100 From: David Laight To: 'Matthew Wilcox' CC: Greg Ungerer , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "torvalds@linux-foundation.org" , Nicholas Piggin Subject: RE: [PATCH 09/17] m68k: Implement xor_unlock_is_negative_byte Thread-Topic: [PATCH 09/17] m68k: Implement xor_unlock_is_negative_byte Thread-Index: AQHZ6Kr+hLdybFnA00ugx5L/MFgM8bAiJxPQgAABTgCAABHZMA== Date: Tue, 19 Sep 2023 14:35:25 +0000 Message-ID: References: <20230915183707.2707298-1-willy@infradead.org> <20230915183707.2707298-10-willy@infradead.org> <6e409d5f-a419-07b7-c82c-4e80fe19c6ba@westnet.com.au> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 19 Sep 2023 07:35:57 -0700 (PDT) From: Matthew Wilcox > Sent: 19 September 2023 15:26 > > On Tue, Sep 19, 2023 at 01:23:08PM +0000, David Laight wrote: > > > Well, that sucks. What do you suggest for Coldfire? > > > > Can you just do a 32bit xor ? > > Unless you've got smp m68k I'd presume it is ok? > > (And assuming you aren't falling off a page.) > > Patch welcome. My 68020 book seems to be at work and I'm at home. (The 286, 386 and cy7c600 (sparc 32) books don't help). But if the code is trying to do *ptr ^= 0x80 and check the sign flag then you just need to use eor.l with 0x80000000 on the same address. All the 68k I used would do misaligned accesses. Although they can fault mid-instruction on the microcode stack. Any smp 68020 had to be certain to resume on the same cpu. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)