From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A4ADECE58F for ; Wed, 16 Oct 2019 03:03:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 58B1620854 for ; Wed, 16 Oct 2019 03:03:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="KMNeJjOw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389187AbfJPDDL (ORCPT ); Tue, 15 Oct 2019 23:03:11 -0400 Received: from forward104p.mail.yandex.net ([77.88.28.107]:35943 "EHLO forward104p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729457AbfJPDDL (ORCPT ); Tue, 15 Oct 2019 23:03:11 -0400 Received: from mxback5j.mail.yandex.net (mxback5j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10e]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 1338D4B01B04; Wed, 16 Oct 2019 06:03:05 +0300 (MSK) Received: from myt5-e8d19f59bd21.qloud-c.yandex.net (myt5-e8d19f59bd21.qloud-c.yandex.net [2a02:6b8:c12:3e24:0:640:e8d1:9f59]) by mxback5j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id eRJqu7dm48-34aqGRtk; Wed, 16 Oct 2019 06:03:05 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1571194985; bh=8HBD9RyaLSJOSxtvT5S+4AeSlj26222duXzFg8wgclU=; h=In-Reply-To:From:To:Subject:Cc:Date:References:Message-ID; b=KMNeJjOw94wZwKvkADVC6dCax/VWr1TnbYwR3eyuW9j1IPhgPo/YEs+u61H1PteUS kZbSrchwBRh/Jc67xG/WK3cvlnNubOp2zezvhDn9DJOV9sRXnmXxCbL175qY1+Ev6n tc6diJvzC9LFQWrAJ7zYd2k56z3ZP+GzWaZoqgss= Authentication-Results: mxback5j.mail.yandex.net; dkim=pass header.i=@flygoat.com Received: by myt5-e8d19f59bd21.qloud-c.yandex.net (nwsmtp/Yandex) with ESMTPSA id SQHfl8AhvD-30Hqfu8X; Wed, 16 Oct 2019 06:03:02 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Subject: Re: [PATCH v1] MIPS: elf_hwcap: Export userspace ASEs To: "Maciej W. Rozycki" , Paul Burton Cc: "linux-mips@vger.kernel.org" , Meng Zhuo , Paul Burton , "stable@vger.kernel.org" References: <20191010150157.17075-1-jiaxun.yang@flygoat.com> From: Jiaxun Yang Message-ID: Date: Wed, 16 Oct 2019 11:02:56 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On 2019/10/16 上午7:27, Maciej W. Rozycki wrote: > On Thu, 10 Oct 2019, Paul Burton wrote: > >>> A Golang developer reported MIPS hwcap isn't reflecting instructions >>> that the processor actually supported so programs can't apply optimized >>> code at runtime. >>> >>> Thus we export the ASEs that can be used in userspace programs. >> >> Applied to mips-fixes. > > This makes a part of the user ABI, so I would advise discussing this with > libc folks. Also you probably want to report microMIPS support too. Hi Maciej, How can hwcap advance libc? I know that Arm world is using it to probe SIMD extensions in high-level programs like ffmpeg. microMIPS binary can't be applied at runtime, so userspace programs shouldn't aware that. Should I Cc this discussion to libc-alpha or other lists? -- Jiaxun > > Maciej >