Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2708916pxy; Sun, 25 Apr 2021 01:46:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpHl7aTmWeHULWfbkgA5gj3ERR8iXKUDe2kK8zCpm6ICFn5bIwcOnI/XoSjYktktK5yKCQ X-Received: by 2002:a63:3c5e:: with SMTP id i30mr11568270pgn.331.1619340385231; Sun, 25 Apr 2021 01:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619340385; cv=none; d=google.com; s=arc-20160816; b=HqkR2zekEbE4DFHaltphrO/RnMRJRJEgj4cuBKrWjlAyAwZLM9Wj3ShQwMT0lECJ2A EnqzbEOHUXvsy/UA5QYnAhAD6gJZbwMnBtv2oykjpqpDC2QSfsBfJhffmYdb/fao/3Hi E5jkpWIMl4tMmhaNJAjKJw00xMGHaX6FtXOi3jv5Hf9IBuAOdeWJ3NBwm1ypXdqHwcNW HwOlR6nthB0IKS7Ef/JvBWdDdcwRkoEQG+BUoeFsl0FlCT+Kq8YRsJNNgxRYWCz4yM40 KicEmEQ+cUJbBsdUSagqhOvZRpslv+faN+yKFsuDA5NlhMx3+Mdm7FuUOD0t0IvCRbYW AOEQ== 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; bh=31vdil8td01hkvlGl+21+jMqDUYmSn86sls5WfMRhSg=; b=YdBfdGR4H0hN/qtTNrGfsadudDRjjUz3+fIFJHdJ9l9VMcmj7ejYWpjm0vww/FyEoR T9WhF9rKCM+KVqz/Afpmo2yo6kigv2wlnbA3AI8KY/2+SQStaBpt1cpldQiGx9CiY7YZ GjJ1JkqU+xwy7wsDJHlAzkRQ+IY/UVUTcen3rcbs/oXb+BWksOrjNq3tjUFTGA8VDW3s YUYmY8ty7V6Rbg0CY37+2dY9mWg79rBL+nzJGBQGr3kCqVdBrD7YvBgwcRCW/PfottEI y+Muc/9mt85XVzhJBmpGyUl9X+5exlZA9Kbp8EL+XEyhEzWqCofNfZsv6Ydj4TvtBT6E gYBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="lgPkMKm/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k12si13593535pls.259.2021.04.25.01.46.13; Sun, 25 Apr 2021 01:46:25 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b="lgPkMKm/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbhDYIpP (ORCPT + 99 others); Sun, 25 Apr 2021 04:45:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbhDYIpP (ORCPT ); Sun, 25 Apr 2021 04:45:15 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A7DFC061574; Sun, 25 Apr 2021 01:44:34 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id c4so13769046wrt.8; Sun, 25 Apr 2021 01:44:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=31vdil8td01hkvlGl+21+jMqDUYmSn86sls5WfMRhSg=; b=lgPkMKm/tYu+zzdehfIt3WP/UYMJP5J1wLwGb97bDBn5e7XUzz6oOK8mx0XvA89J4a reLzRoDLV7JApHd/GyLEadfUGzmULqJ4NMVzqqCJYnos687TYhufLOzSZu/i4hHNHQAk /FBnMU2IiUARmDbsveWkv9q9udiPK49ybFNZLK5uZlSlymT9iW2YRGTr6K6mdsbefY4s NXZOENTSn4dIDbqLveDy8wZOU8R0gQ65az+yMo/F04RrRvRmoUNkiDS6/4hSIiDKZD8P VMCqTpoe7M+IoxPnjKUOtACUJAzro5uVQdUqP832lYV6KRx5glrfFX4YadG3LkVioE3t qFdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=31vdil8td01hkvlGl+21+jMqDUYmSn86sls5WfMRhSg=; b=TD8RowfO6MXAAFc1TzrxxXkdIWJtHT4E5EeeLc8j/CMpPETMSjxci+miLq1efp8Li4 fV2tLvYpN37Z9qxz5ObopOzuqMm41hNwoioTOwtJIKmB9a1b2Xyvct6fitwnETU00vy3 NF0rZw7FIA6VVMMLdSZX5xJvGHCP2faDwG8QnGpgXzGTW8PwwxxnqA4/E+3wZK87031R NR/gNS8XVvjtaDcoC23lPuMRooE09Zp4v3wjhbJKdqU3uIaC1CWUq3Mo9vRWW2d2U0jB oINLKegfGt5zvV9T/H1ekpQVLXyR3S8F3BRVT836zTVNJLCwTgF1iU+lWfwR5jUD16AS EHow== X-Gm-Message-State: AOAM531NiDghJcBZrS/nFAFm5a5kERunCBmeyagtMiAqF2moz43hPsvJ ENU5Lbdb3OMkFjdxTugVpK+1klGOL1Q= X-Received: by 2002:adf:ec42:: with SMTP id w2mr15660229wrn.373.1619340272873; Sun, 25 Apr 2021 01:44:32 -0700 (PDT) Received: from ?IPv6:2a01:cb05:8f8a:1800:2216:4e4e:b697:b4ce? (2a01cb058f8a180022164e4eb697b4ce.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:2216:4e4e:b697:b4ce]) by smtp.gmail.com with ESMTPSA id f7sm15432133wrp.48.2021.04.25.01.44.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 25 Apr 2021 01:44:32 -0700 (PDT) Subject: Re: [PATCH v4] mips: Do not include hi and lo in clobber list for R6 To: Sudip Mukherjee , Thomas Bogendoerfer Cc: linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org References: <20210420211210.702980-1-sudipm.mukherjee@gmail.com> From: Romain Naour Message-ID: <79aa7a3c-92ee-48d4-4945-48061e77541d@gmail.com> Date: Sun, 25 Apr 2021 10:44:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210420211210.702980-1-sudipm.mukherjee@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sudip, All, Le 20/04/2021 à 23:12, Sudip Mukherjee a écrit : > From: Romain Naour > > From [1] > "GCC 10 (PR 91233) won't silently allow registers that are not > architecturally available to be present in the clobber list anymore, > resulting in build failure for mips*r6 targets in form of: > ... > .../sysdep.h:146:2: error: the register ‘lo’ cannot be clobbered in ‘asm’ for the current target > 146 | __asm__ volatile ( \ > | ^~~~~~~ > > This is because base R6 ISA doesn't define hi and lo registers w/o DSP > extension. This patch provides the alternative clobber list for r6 targets > that won't include those registers." > > Since kernel 5.4 and mips support for generic vDSO [2], the kernel fail to > build for mips r6 cpus with gcc 10 for the same reason as glibc. > > [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=020b2a97bb15f807c0482f0faee2184ed05bcad8 > [2] '24640f233b46 ("mips: Add support for generic vDSO")' > > Signed-off-by: Romain Naour > Signed-off-by: Sudip Mukherjee > --- > > v4: [sudip] added macro VDSO_SYSCALL_CLOBBERS and fix checkpatch errors with commit message. > v3 Avoid duplicate code (Maciej W. Rozycki) > v2 use MIPS_ISA_REV instead of __mips_isa_rev (Alexander Lobakin) > > I have reused the original patch by Romain and have retained his s-o-b > and author name as he is the original author of this patch. I have just > added the macro. Build tested with gcc-10.3.1 and gcc-9.3.0. > Thanks for the rework! Best regards, Romain