Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5944033imu; Tue, 13 Nov 2018 14:22:53 -0800 (PST) X-Google-Smtp-Source: AJdET5dI5zkmcSsgXNOOmgi83dDxZuR+jDYLaOxqcPwYQD9vwp18JPVvPzkckjSP5ajVAX8hp7Y5 X-Received: by 2002:a17:902:f097:: with SMTP id go23mr6737948plb.328.1542147773549; Tue, 13 Nov 2018 14:22:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542147773; cv=none; d=google.com; s=arc-20160816; b=QSWClCU4rAWlne/OF0ngB1BAWhOLkZPa/6Q0q1krl5zUlb4lc6jITu+8kcVWOHxykx rddllGk+xWyp9T2kE/YKip0pXi5kIlrpVzFophltJJyCSXKzDW/WGqQgSUm6LDJDLU07 3rbfV3BKP5my4/3ODYip3ahvfCnPOz04vkHpSwOU6Nww2b5ekWpssUfTbyTtJwXwIKZa KiaZ9wL70HDxOXWS2HyFuQtP+hYNTvyJmTzImVMygYFCWlImEPbaeq5O86TVHUjRA5f1 4IEg64nsS5J46POX9b9/ez1fLK3vYQMYSEltWaoMQeodGRzjFfSmPtTw+Op27JgV3PHp KmXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=NsFKv+oarEcNBKyd2e/K0HoZPvoljYZ1fYvA5UEPstA=; b=gueQr4ZuyvLkN//BkKDsRkkirUt4AvMGs+aJ2Jd5XXOJdUcQ1dCdE0yMEEmVGuipR9 V01oYPyasECthMk8Vp2B4CyRU6aeqNJzgH8L+tI7R2MAyFim/uTWaePAGCxKTtQ6Tgal XxPeUhqG67dbwfG7/XGlOcS5/ucA3y+YW6LGbTym+js+eY8JHEIBk8ibaOhzhu8BJl+y DsNhToKhpK7RJHwUibRQOzBAXEX9aCSb2SJ+GSgakOxE9UdfYC9OjizwkAnzU2cIs9Sn N1BR9pfpMsvcnhf7xVqZGwNxOse7WMd7YpDs5RFHqhUhINygOZ+lyl8PxnpmrscV2V0P iaNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=fmKBcTgO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v184si20254553pgd.295.2018.11.13.14.22.37; Tue, 13 Nov 2018 14:22:53 -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=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=fmKBcTgO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731062AbeKNIW2 (ORCPT + 99 others); Wed, 14 Nov 2018 03:22:28 -0500 Received: from mail-eopbgr770109.outbound.protection.outlook.com ([40.107.77.109]:57840 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726022AbeKNIW1 (ORCPT ); Wed, 14 Nov 2018 03:22:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NsFKv+oarEcNBKyd2e/K0HoZPvoljYZ1fYvA5UEPstA=; b=fmKBcTgOwxSq9mhHmuLoDUz3Z/Iafo27B0r769rn9wSBacmBg+EFy860eu3hRN0C85wVC8nDbMwFsLkh2Htj+rb/ndQh97tZ0LwN9rZ5OAHTe7kjGxcorm9eEQUSAYJ+FYSKFhsLB8wUwatRXK4P5qC5dQZFIgKDpZgL02igQ/0= Received: from CY4PR2201MB1272.namprd22.prod.outlook.com (10.171.216.146) by CY4PR2201MB1350.namprd22.prod.outlook.com (10.171.210.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.30; Tue, 13 Nov 2018 22:22:13 +0000 Received: from CY4PR2201MB1272.namprd22.prod.outlook.com ([fe80::ace0:f12e:c2a0:dc23]) by CY4PR2201MB1272.namprd22.prod.outlook.com ([fe80::ace0:f12e:c2a0:dc23%9]) with mapi id 15.20.1294.045; Tue, 13 Nov 2018 22:22:13 +0000 From: Paul Burton To: Paul Burton CC: "linux-mips@linux-mips.org" , "linux-kernel@vger.kernel.org" , Paul Burton , Andrew Morton , Zhaoxiu Zeng , Andrew Morton , Zhaoxiu Zeng , "linux-mips@linux-mips.org" Subject: Re: [PATCH 1/2] MIPS: Use Kconfig to select CPU_NO_EFFICIENT_FFS Thread-Topic: [PATCH 1/2] MIPS: Use Kconfig to select CPU_NO_EFFICIENT_FFS Thread-Index: AQHUd70Nj7bmBkBSmUuHKRskL/vjkaVOTyqA Date: Tue, 13 Nov 2018 22:22:12 +0000 Message-ID: References: <20181108234409.21199-1-paul.burton@mips.com> In-Reply-To: <20181108234409.21199-1-paul.burton@mips.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR01CA0026.prod.exchangelabs.com (2603:10b6:300:101::12) To CY4PR2201MB1272.namprd22.prod.outlook.com (2603:10b6:910:61::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [4.16.204.77] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY4PR2201MB1350;6:DpFdykfYRcJuQE2XMQpGJmA6qijJpBxSsOU6yATPflD22nQApDfASXkiCE7QGdSMTZHm760CqtJg6RbDtV009fBuahBjCRzqAynPvn+UT5SZQAFXsRQFrov1gEb4tBydlezR7axqpuikf3PvxkUuEc8Wu+mnOvElW03Q+FPGK3Ggfeu1OIf/ZHtzm4AHPFzJ5jaSgFDJaEYOIPLrt4au54gZUSW5cXRGjUvIcozxLAi+cC34BMdbhRDv31UZoWLAg1fWynbIVVjPSwRtHvY26fTI3vXMTKLD0fOHTE26IkVEYdQkv9jURi413tkGzgchvF9GiEv/d+EgaaoMErNLrxHwB9mXi37iqDsvv8O3jlmJLwa6A13o3ghPayLsfnvha989W0t5bIGUJSa4LtaJTarU6bPvCxSe8/0MI/ZZ9FwzLAkOaIqlTgjGJVzLlcOZRej2FOWQ4duiaeRMwB0ucQ==;5:1ehw31HhaiF/b0uIM+AcnnvN9eous/77uA9TF8jYxTDyC/fG0TLNyQPiz123hVoCv+we7vkd6VIwm2Ic0VuCShnFD+c0OBa7rvBCbqNG/th5IIQHuMKxkTju9eALl7ZZjxljboRgYvrEtRD4toV7hia16DQYyVBCBOjCoykOw+0=;7:tYDyDAZeUsNe1gbI5cHBMMPPzyOllPr/OpyhPhCUl6Q5lPwoytYkzW45UMePpuhiUiI3KLy5k2yKFGk/i0Fpn1UDjtntEe7B1vX+JpBCvkN+Pa9j0J82qLgPj0IVaJ/qmonVyH9YaGBHMg1Gdbq7oA== x-ms-office365-filtering-correlation-id: 7092aa8a-09ca-4fcb-e398-08d649b675b4 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390060)(7020095)(4652040)(7021145)(8989299)(5600074)(711020)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:CY4PR2201MB1350; x-ms-traffictypediagnostic: CY4PR2201MB1350: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(85827821059158); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(3231382)(944501410)(52105112)(10201501046)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(2016111802025)(20161123558120)(6043046)(201708071742011)(7699051)(76991095);SRVR:CY4PR2201MB1350;BCL:0;PCL:0;RULEID:;SRVR:CY4PR2201MB1350; x-forefront-prvs: 085551F5A8 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(376002)(136003)(39840400004)(366004)(396003)(189003)(199004)(476003)(486006)(446003)(11346002)(42882007)(33656002)(2900100001)(97736004)(25786009)(6246003)(3846002)(6116002)(44832011)(54906003)(316002)(71200400001)(71190400001)(6506007)(102836004)(105586002)(66066001)(106356001)(6862004)(386003)(186003)(39060400002)(9686003)(7696005)(52116002)(76176011)(4326008)(478600001)(26005)(99286004)(14454004)(55016002)(5660300001)(7736002)(305945005)(14444005)(81166006)(6436002)(8676002)(8936002)(74316002)(81156014)(68736007)(256004)(2906002)(229853002)(53936002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR2201MB1350;H:CY4PR2201MB1272.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Q8Q+/HgZKPhUsVKv4QXqtOFHgsifEPEuqblrWZDC9F7Hb6tEwXVJQk+SRziHYzyQVnVg0vumUsUBMTXFs0rNz0K0r+fViGxHkoFRPU9uzxPDw09gsU9fktNGMt/QdQfIz239h6gYfS0msIteW4FZDvMtmX2ibhyBw8RKQG1dWBdWcZug4qSwc5yg77IWTtmyBahQTPndrl5X08BKWQjaXlMCzPiv7+UFxjspLgqPjEQFQfeLa+IpbTPKxs6z2Vn5hwx7/0wGUCt59g/gG2RkHTxxYT8x7ZdvGIyqAqEetYKtlcv1BajDyx3OpNNpJI9rUDvTmdWXT5tiri7/2xmGdBibo7/q7NOzYNtQRwuNNYw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7092aa8a-09ca-4fcb-e398-08d649b675b4 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2018 22:22:12.9670 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR2201MB1350 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Paul Burton wrote: > Select CONFIG_CPU_NO_EFFICIENT_FFS via Kconfig when the kernel is > configured for a pre-MIPS32r1 CPU, rather than defining its equivalent > in asm/cpu-features.h based upon overrides of cpu_has_mips* macros. >=20 > The latter only works if a platform has an cpu-feature-overrides.h > header which defines cpu_has_mips* macros, which are not generally > needed. There are many cases where we know that the target ISA for a > kernel build is MIPS32r1 or later & thus includes the CLZ instruction, > without requiring any overrides from the platform. Using Kconfig allows > us to take those into account, and more naturally make a decision about > instruction support using information about the target ISA. >=20 > Signed-off-by: Paul Burton > Cc: Andrew Morton > Cc: Zhaoxiu Zeng Series applied to mips-next. Thanks, Paul [ This message was auto-generated; if you believe anything is incorrect then please email paul.burton@mips.com to report it. ]