Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2612625imu; Thu, 17 Jan 2019 18:14:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN4IRb6b2If1reoGChiOJ5A0WGjsmMQvGkxMXnaiKqkurIKyO/yowNyUa9LCNv3+bAWK2FiR X-Received: by 2002:a63:c64f:: with SMTP id x15mr15499620pgg.16.1547777666925; Thu, 17 Jan 2019 18:14:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547777666; cv=none; d=google.com; s=arc-20160816; b=eZxdBlab9qDRwaHnV6VdPj9Fubff32iunoxqjS+rQmPRBUsjodmnYyjs/tYgnzuVaf n/QlPkmQ/etcHluGTLqO/KYHCfE+rAxGESsq9BJ0lsK+dj/+dhpmQ77wKatIOl52VqAT SCdQ6smNLMfDk9w1weckLSrjcC/gO06//+Iyb22RWkbQC/e4ykYckKFNwVbYNlUaAB1T 59hhDtOyYBES1v6YLvZH8+oaMLHTE4JCfaVPeqdjY6btB6o8/Jl+/D0M8nbTTzHs/gIE r59ilAvRVKzGj/wgPic8n0Eb/7GjGQqfyo2qaaFEtpjn+pcY2qZgmVRVK0b19J4NX1h4 7b6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=W0hnO6w9iXy9O/lOI/p+pV8+6mK7sKNTJO4kXnwgva0=; b=hydwbQfnJoJXW35UwAOo0dXvjQIOJ+PEIFqNxA+LFyrvsZjpAv2j8nPfzA128D6AkO HcOa1dW+OsXx95h8OvBtbZcOCdqGPf79WIU2mJJ41uzBXv4Req8DZjZvd136nS4gBWVz j0Ofqlj8j11rrCA0nA66dEnQd3Sn9jXSmFe0pMaLWqU540TMEhaVLogZMn8ktAemQhq4 T1ZyqLhVYZxoD+GO2xaE/MaO5b9vHBFEBDbk8XjawOqkFbTFjJdPV3ptso1cSFR0yVB4 zvfJD0G06pHm3tXywhe9q/KDPmUgaBYRo7ylzWaXbYd9x9MNh8tn+Krr80jh1zzllJUT T4Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=DnbrIuWy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si3330888pgl.108.2019.01.17.18.14.10; Thu, 17 Jan 2019 18:14:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=DnbrIuWy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727054AbfARCNG (ORCPT + 99 others); Thu, 17 Jan 2019 21:13:06 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:43885 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726821AbfARCNG (ORCPT ); Thu, 17 Jan 2019 21:13:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1547777585; x=1579313585; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=rFlBZNV3NI+o5bHSlNipI8QY+dI7Tht/TtUsVJmoWlI=; b=DnbrIuWyfMJzbZWcgD1ZYW3tsA6q04i8JzHvd603FkmL4vFRfNcgX8f2 Cxrm7MSmcziTAjPu+sPKXObG3kTN18Vrx4hPn6GKz+e4Kmp4D6NmVZaqW 7QfsJPuTEBd7UXqfpfmGCj1kC4xbXKCTaaz5gF3uJtV2NY4dR5OWHFtWW UcwA+hF6guQMNTU4X27pmC75UJ+wSrCo1ny/vDg29bIAc2MEPqo1ARgb5 UD35+BX/K8m7BayLHRRLspLGDz4SbA8gpbISix2UcP3oFuPaAo65NVKTM dPDX0FEbVl1Bv7SgvFlSbds/eHYJz5Z/zd57XA7egZNueXSOxyW2gMMVh A==; X-IronPort-AV: E=Sophos;i="5.56,489,1539619200"; d="scan'208";a="204082826" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 18 Jan 2019 10:13:05 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 17 Jan 2019 17:52:45 -0800 Received: from c02v91rdhtd5.sdcorp.global.sandisk.com (HELO [10.111.68.123]) ([10.111.68.123]) by uls-op-cesaip02.wdc.com with ESMTP; 17 Jan 2019 18:13:06 -0800 Subject: Re: [PATCH v2 8/8] RISC-V: Assign hwcap only according to current cpu. To: Christoph Hellwig Cc: "linux-riscv@lists.infradead.org" , =?UTF-8?Q?Patrick_St=c3=a4hlin?= , Albert Ou , Jason Cooper , Alan Kao , Dmitriy Cherkasov , Anup Patel , Daniel Lezcano , "linux-kernel@vger.kernel.org" , Michael Clark , Palmer Dabbelt , Andreas Schwab , Marc Zyngier , Thomas Gleixner , Zong Li References: <1546940318-9752-1-git-send-email-atish.patra@wdc.com> <1546940318-9752-9-git-send-email-atish.patra@wdc.com> <20190115135639.GH28946@infradead.org> From: Atish Patra Message-ID: <356b919c-c025-8993-e5ef-2b010bed0b56@wdc.com> Date: Thu, 17 Jan 2019 18:13:04 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190115135639.GH28946@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/15/19 5:56 AM, Christoph Hellwig wrote: > On Tue, Jan 08, 2019 at 01:38:38AM -0800, Atish Patra wrote: >> Currently, we set hwcap based on first valid cpu from >> DT. This may not be correct always as that CPU might not >> be current booting cpu. >> >> Set hwcap based on the current cpu instead of first >> valid CPU from DT. > > This is generally the right thing to do. But can the kernel even cope > with different hwcaps per hart? I don't think so. I know arm land and I think x86 as well > don't, so we might want to add a sanity check that they match or reduce > them to the common subset. > I will add a sanity check that they match and throw a warning if they don't. Regards, Atish