Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1426296ybt; Thu, 2 Jul 2020 05:16:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGLVwR+ehX5hk6M/0hwOSs2lNbXEQzL68KkK2pX4Y/ubj/7DG1JcAtI80lmqhAtKqGU1wz X-Received: by 2002:a17:906:1751:: with SMTP id d17mr10930154eje.140.1593692207980; Thu, 02 Jul 2020 05:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593692207; cv=none; d=google.com; s=arc-20160816; b=u0dOLAfgw5NCNEadVHZscPck5Opbs0j/2GmhE1jbgdpVwPwVf9xhMFqauiP7cxzgI/ qmTfLFDlmuwcTSoY5zJQKP1dGvRN6iK03MBkJUc9gZE6tBpkvkoSM/nikk4pJ5MqN4Mm mdZSLMLlv/KTnfykUZZcwA8dJ8HBP1J23sAxSgNhoAXYFORrDHU5oH2I5nyIYMdbSDgI TgAFCvH6rUACVDjGtqOK3/C9eiPp01qOd6SXdwb7JZjaowlxdtxzSS1cnc7wnXnLHpD1 0cHSBYgLgVIZmQmq+X7HVF1cz8BgIsAqFxL7gK+RAW4HuW6BSVy9J2rHin1ibCHfI0NX xcdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=EzM/pb7gYv8JvwioLPo9DRc3FyjfyEr1KmO2usfe+U0=; b=TSU1rvaFlFWZhIilCuxgeQ0KSQbDYt1iggT84+JA+gOhnbnr24XV1Otvtg6ZJvyJSa xXEmiHjY4PKs7MAHDyOt2pIsFK2I/kWbPhmdZtdWlSe0XLOsgUXorQR+huByw+1vSlT6 SPU9oRYTUmTx4VBdD8rz/RQXHNapTHgfeKDNY4k6KGhBWQXNUD4nIJqEPUTSOI0qJoTA qZhhfs/ZbiRTj1/61JZONKiuutw5dFc/Y+VnUyBtLeMO9i807IT9aPBKRD1jB0A36FJa vBobopOX4noip+yM7rhNif4WYNlIeJ5R2UY8d9ImvCXsTPGrBZApdxwTK4F/IGtOkUp1 n5Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FvMMb7oj; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si5360191ejw.53.2020.07.02.05.16.24; Thu, 02 Jul 2020 05:16:47 -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=@google.com header.s=20161025 header.b=FvMMb7oj; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728830AbgGBMPn (ORCPT + 99 others); Thu, 2 Jul 2020 08:15:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728668AbgGBMPn (ORCPT ); Thu, 2 Jul 2020 08:15:43 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9DE5C08C5C1 for ; Thu, 2 Jul 2020 05:15:42 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id 22so26516221wmg.1 for ; Thu, 02 Jul 2020 05:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EzM/pb7gYv8JvwioLPo9DRc3FyjfyEr1KmO2usfe+U0=; b=FvMMb7oj/EGRfkF7U6wpJUgN4/CkcNrdQp+se1jqhbGt2jttt1w494rHwRm4E+iRMb OrpeWfeon3h08SheN7IfgfJu+GcFgeXRJhh3GjL4JF1cIQgb/TH8tc0HEAeq4CmBom3Z JSVL9QrK+jtiza1dOMb9c+jt2jMPNgpUa0/Mm0FDvp28V9mqnvOT2XvY4eIQvmkWpoHi F+SVxxyId9CGIZLnPGS8MiVLoNXs//sV3N2GOQgGoxLpVndbo+SqJOGlREwM2ZVTA5uE 3Gu37Lh4ZlQUENahYn4sDTzijx7vV/z/igLmfTusiLgS0wPPspFlS87ZlSrIVjFDzAJ6 ZsMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EzM/pb7gYv8JvwioLPo9DRc3FyjfyEr1KmO2usfe+U0=; b=dzID5G0eGoB8Bg5iHhBUSmMgZcYYvJyMVTk7MPiN4GQqfovN0/0EUU7IdSeJEE469Y R4EZILM3Uv+2VewSyG+LfhrLjGL8+iTgqSza4ZZPxwwBh0SHPoUt7jgCeTRWMB3llh2J qk8D0g1GiIvI7CzKU3iurYNTB8mvQCeZyP1j3fH2EhHEODkeG096i1XuaOU95YXit9C8 0fueW0KfR9O6m0U66Em6OcxhtTaUWV6QnVOGvKVYATAI7ZhMgmZCcQMMWNp9Gbru18Fz RVuz1uw2fP2+q8FLPub9lsrymMF3oh5ChnTihi1kfwJa43vXcQVvNuFoCZq29fZVBgab ikjA== X-Gm-Message-State: AOAM531/t6Eb25gDTuMWAsemqwYyt/TgC+bjvkKqrbcfe/lz9joi3eYV UyD87EMfh5qqm1KCV1RLLjyInA== X-Received: by 2002:a05:600c:2050:: with SMTP id p16mr30186720wmg.44.1593692141215; Thu, 02 Jul 2020 05:15:41 -0700 (PDT) Received: from google.com ([2a00:79e0:d:110:f693:9fff:fef4:a7ef]) by smtp.gmail.com with ESMTPSA id s203sm1352965wms.32.2020.07.02.05.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 05:15:40 -0700 (PDT) Date: Thu, 2 Jul 2020 13:15:36 +0100 From: Quentin Perret To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, morten.rasmussen@arm.com Subject: Re: [PATCH v3 2/7] sched/topology: Define and assign sched_domain flag metadata Message-ID: <20200702121536.GA765585@google.com> References: <20200701190656.10126-1-valentin.schneider@arm.com> <20200701190656.10126-3-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200701190656.10126-3-valentin.schneider@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Valentin, On Wednesday 01 Jul 2020 at 20:06:50 (+0100), Valentin Schneider wrote: > +/* > + * Domain members have different CPU capacities > + * > + * SHARED_PARENT: Set from the topmost domain down to the first domain where > + * asymmetry is detected. > + */ > +SD_FLAG(SD_ASYM_CPUCAPACITY, 5, SDF_SHARED_PARENT) Probably not a huge deal, but I don't think this is _exactly_ how SD_ASYM_CPUCAPACITY was defined originally, nor how the topology detection code deals with it (IIRC). That is, IIRC Morten defined SD_ASYM_CPUCAPACITY as the _lowest_ domain at which all CPU capacities are visible. On all real systems I can think of, this domain also happens to be the topmost domain, so that might not be a huge deal and we can probably change that definition to the one you suggest. But we should perhaps make the matching changes to asym_cpu_capacity_level()/build_sched_domains() if we're going down that path? Thanks, Quentin