Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1776573rwd; Fri, 9 Jun 2023 01:51:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ttecoLU2B93Kr2Ra8vukmsuvhKuLOlcu0r0kbOsNUdsQYcgLVEq3DMOittPPsyl6ffaE+ X-Received: by 2002:a05:6a00:24ca:b0:65e:fca6:f2cf with SMTP id d10-20020a056a0024ca00b0065efca6f2cfmr569998pfv.26.1686300706653; Fri, 09 Jun 2023 01:51:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686300706; cv=none; d=google.com; s=arc-20160816; b=XSSG3j/OERLTpbZXYn7N4xI6R0wuU4Zoh9gfLllucDnn4gmOV6oamjNcVe41W/cY/q Q0Gnxgu7BmqGMBIGOQKesq6xrYsTYHe4mm1ct3OPy745XaKUOkGJQ2spo1o5TFIdmc6S FzHtDVmwceQL7LHeM0C3vEn6dY4yT4MgVcoB+44G903Qr0Ry/DY7SQYsj1WOKUmYWmiV eGNwRvbhqGRguoMOB/wxDo+e40Cbkg1uLERIDQrMzcPibMvueWe8swI7NXxZIPYwMazs QfIKBYScdCqeKd+mMP6QhM7eUwD/uG/OT7j0SK7nkXL+fyOmIadp3ndvqoRn4cG2mwyb vpAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=W3R2H9yzkO44lzIFR6kWDdcuhplKNSSCRBQRwNQXXmA=; b=e6XByvS2w0VWX2jEocNbtHKEFmBzkN+dMMKu0zXKaV3xpIUtVr4lbR0B6QxgexOv0c bPo9W4dj/O0ZYVJD0p0n0+ZPwUIYInwwnaHfSLCZ2plhPqpdfRw55crYAFXWj423g39E J9VOYT3RMyjGhdKA7rz9nJbOolNtSG+54jlhTciufuIOOP2RXINnittHY5XVDbIxQ+pL 85W/A3mwykoCoWQ85jxjV3Ft6gYQTOSlPFbIoMEHo7A0uDip6NlCgX8ttxI6afwCDP8N q5fQiUCKqp87XR9HRNZVGgpunYHV+yYe60rVZvw5LX3ZK+N3IWrBgICtaKoMbLfR8mRd yR5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j28-20020a637a5c000000b0053413a82947si2201306pgn.447.2023.06.09.01.51.33; Fri, 09 Jun 2023 01:51:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240857AbjFII1C (ORCPT + 99 others); Fri, 9 Jun 2023 04:27:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241419AbjFIIZx (ORCPT ); Fri, 9 Jun 2023 04:25:53 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 53A213C13; Fri, 9 Jun 2023 01:24:52 -0700 (PDT) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1q7XQE-0004Jv-06; Fri, 09 Jun 2023 10:24:38 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id EE916C02EE; Fri, 9 Jun 2023 10:22:42 +0200 (CEST) Date: Fri, 9 Jun 2023 10:22:42 +0200 From: Thomas Bogendoerfer To: Paul Cercueil Cc: Paul Burton , Siarhei Volkau , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, list@opendingux.net Subject: Re: [PATCH 1/4] MIPS: uaccess: emulate Ingenic LXW/LXH/LXHU uaccess Message-ID: <20230609082242.GG8160@alpha.franken.de> References: <20230604122655.69698-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230604122655.69698-1-paul@crapouillou.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 04, 2023 at 02:26:52PM +0200, Paul Cercueil wrote: > From: Siarhei Volkau > > The LXW, LXH, LXHU opcodes are part of the MXU ASE found in Ingenic > XBurst based SoCs. > > While technically part of the MXU ASE, they do not touch any of the SIMD > registers, and can be used even when the MXU ASE is disabled. > > This patch makes it possible to emulate unaligned access for those > instructions. > > Signed-off-by: Siarhei Volkau > --- > arch/mips/include/uapi/asm/inst.h | 33 +++++++++++++++++++++++++ > arch/mips/kernel/unaligned.c | 41 +++++++++++++++++++++++++++++++ > 2 files changed, 74 insertions(+) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]