Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1675805pxb; Thu, 4 Mar 2021 18:23:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiL9ETYUBYc175IzhB/pE//57GtSCnvNFVAWYra9JFSEMcAFJvqgiOVVwCf2ly9fvobT8O X-Received: by 2002:a05:6e02:b4d:: with SMTP id f13mr6354306ilu.138.1614911010969; Thu, 04 Mar 2021 18:23:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614911010; cv=none; d=google.com; s=arc-20160816; b=rjuH1tqr4yzXR/v0casrrP7DEKGfmFfHfJ1lW5aFLrcxigUpugplMrUdQS5uxI008j zB2UoeEX9/Z+RXJAxOF8OOvRVjoCVTnZdLW6klOUKdaNSsWFNF7wF50GqMvndAJ/xtyt xmjL+RTS6wOHBSY/XU5U3uaJP/vu2vit33rLHWG+sR3ez6O9C7nglpSaVfpytBs7xthM RKplIFNbOuGUA3sy+ugVI17thXbxe09tq2VOTKsGxjGQg81b4+6p3h/7eVSnJidVCCS9 SwtF6rhUhQP2BbDgAPBGmUPQB3YNLpJ2jpXUMBMeYOeQOxan76I4F9CzqxMLTSC4bcwM DN5A== 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 :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=yGZQWgk++k5ZUwyk5li/KQ2k0+Ulpks2gEIK7gYVqIU=; b=agDc+KWT16zbLrBgTcxWUZbYPZE0fWwmcS2KypyZphgTbkM9lEF9t1L9cxyVmhmsYU lZKmuAAMYnU7tJ5wYSxM7qwy/0xi6UcFHumf7aPr0FAjPt3oHcLV7ePZ97TaIfNDiAtm 7iHfTNUPY+PT3iL6LyjnMVOAGeXWudrA/vOPuP+UsVXRA8xtqvL3eltbDtZHPlP73nIh ksVmYouYkOZu0dyIXXRuwW/RicsPkEwbIOR2SRhgLlziN3o0uHtLEdxuJAE70nZ1R1Hs znwsKepp8U71tRs5dsvq62CXu6TJSxsoB4iW/mJWtnnQKyQ+t7BvUuuYDApRf5TUEqSR 9sSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=V1IPfGZ8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=lzMzkV5C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si1027602iog.4.2021.03.04.18.23.16; Thu, 04 Mar 2021 18:23:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=V1IPfGZ8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=lzMzkV5C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229516AbhCECWz (ORCPT + 99 others); Thu, 4 Mar 2021 21:22:55 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:43009 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbhCECWy (ORCPT ); Thu, 4 Mar 2021 21:22:54 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3A4515C00E2; Thu, 4 Mar 2021 21:22:54 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 04 Mar 2021 21:22:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=y GZQWgk++k5ZUwyk5li/KQ2k0+Ulpks2gEIK7gYVqIU=; b=V1IPfGZ8WIKliZwKR wZbJshwv7oaYfCmTwINOiDHlwMJMerf3jZAKQvzN2VkNUDQjuR8sUoYdeXHroUnv VFcBcnSYUPEps1eWEOAZiJPDRCbEyqxHHITtPt0aW2x4weAPv4CqAB8xgSL5qTwi tmvr6IRvmCUp8rvmvoo60dBDZeuR/LBGyCjdTGOzn2kKrscjAKze5kFRjRh9Pi5f rcuUroxdQVtjo25U4RTWyvpYbBPNFW/TrF7cSRi9MeV6USoWkwinotJT9gC+OiAQ zce4J/I1p/IDiG3KHrk171MfUdgRjPJQCyKpJUAB49fdSPOl9leYYQY3fglB0dLO 4/J+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=yGZQWgk++k5ZUwyk5li/KQ2k0+Ulpks2gEIK7gYVq IU=; b=lzMzkV5CHrXJhqhHZTUsDKt+W2rQ983DO5YiMZMIB8I2WyTg+yBiludDY dgCMLijkwjSk3rkXk/tgalLgXH0VoLNZGqZOSBFNt+sXgZZZHULwgof3FIiKL4sG gwLwoesOY9J+URSoX3gGoJDiiOczAZwGXOoeW14EAgOVofFNOW7HxUf1UEzsAJsW dXCSQxsfr+VW0K7HPkBG4r0C1oShLt/ApizVCT3mf4NZFyQqb1xRCaC6UHQx3XYR G4q3Z31cYs1JTGQ+Q/pro5peshuhfzo6BJI4XZfG5cytR09EG/kj9dZhqPhLbRbG i+1puWle/hyDkxCvumApiXU+Zj/dQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddthedggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdeftfenucfhrhhomheplfhirgig uhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenuc ggtffrrghtthgvrhhnpeefleduiedtvdekffeggfeukeejgeeffeetlefghfekffeuteei jeeghefhueffvdenucfkphepgeehrdeffedrhedtrddvheegnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhl hihgohgrthdrtghomh X-ME-Proxy: Received: from [127.0.0.1] (li1000-254.members.linode.com [45.33.50.254]) by mail.messagingengine.com (Postfix) with ESMTPA id CB92B24005E; Thu, 4 Mar 2021 21:22:49 -0500 (EST) Subject: Re: [PATCH] MIPS: Add comment about CONFIG_MIPS32_O32 in loongson3_defconfig when build with Clang To: "Maciej W. Rozycki" , Tiezhu Yang Cc: Thomas Bogendoerfer , Nathan Chancellor , Nick Desaulniers , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Xuefeng Li References: <1614820544-10686-1-git-send-email-yangtiezhu@loongson.cn> From: Jiaxun Yang Message-ID: Date: Fri, 5 Mar 2021 10:22:47 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=gbk; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2021/3/5 ????7:08, Maciej W. Rozycki ะด??: > On Thu, 4 Mar 2021, Tiezhu Yang wrote: > >> This is a known bug [2] with Clang, as Simon Atanasyan said, >> "There is no plan on support O32 for MIPS64 due to lack of >> resources". > > Huh? Is that a joke? From the o32 psABI's point of view a MIPS64 CPU is > exactly the same as a MIPS32 one (for whatever ISA revision), so there's > nothing to support there really other than the CPU/ISA name. Clang treat MIPS32 as a different backend so we may need some extra effort.... TBH it is a toolchain issue and kernel workaround seems bogus. From my point view we can "s/mips64r2/mips32r2" when doing syscall checks to workaround clang issue instead of disable it for kernel. Thanks. - Jiaxun > > As much as I dislike all the hacks the Clang community seems to come up > with for the shortcomings of their tool there has to be a saner workaround > available rather than forcibly disabling support for the o32 ABI with > CONFIG_64BIT kernels, but the report is missing the compiler invocation > line triggering the issue (V=1 perhaps?), which should be included with > any commit description anyway, so I can't suggest anything based on the > limited information provided. > > Maciej >