Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5657175pxb; Mon, 28 Mar 2022 15:36:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8RhDEyC5oXpZG38WzBqwMvonyZjyVcpnpMTshhdLva8gHyK4nkVrLQz30496nOMUJNJDo X-Received: by 2002:a05:6870:a928:b0:da:b3f:320a with SMTP id eq40-20020a056870a92800b000da0b3f320amr662945oab.186.1648506970194; Mon, 28 Mar 2022 15:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648506970; cv=none; d=google.com; s=arc-20160816; b=mwCkZWGjVYz2hv+hadgHLlnTdofDtHGTU9kltLbOOpb8yiF0YsKCXKj6hWotz0N1/H RwxyM7CAOUF6AZ8+m5HxDDMfiO0NQ73vabYQy2LMzkZWy8kkZOULZQs65U4I4TxjZB3k V1Cp0vIMb3kt+Sxbp3Lns6FMyNwKFlb9d2mADytClTKfoM3uIuKr/kpQFBPFxPlh25oo o9Mf+3v1njngAdSbJYCM4jBx30OEqgm+elyY7EPgDqnrbX+8dylOo/++K4vPPOhdPHTe 4K3Hz3HLk/LK2Mdm6fk2wlzGys7esf8Sr0Av3AjSfi3mKb3m6u35a0oGziTO4UVK4sxR criQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RyQhY95RNsCK4Pvvmfcn6PT7x9nJFEOteS09X0MJ5gc=; b=yzbxqJjVyVaAN5s8y+S9zj31ghPPDDnkKWIXlge7Fp0HRuPUgNAJpgsLPcFd1Pm06O pA5JXdXQQ9ERvuswjaY/OJXLbwmtSsWM+NbcU8plI3tYHKPsje1VzmAjHpCXGetVxY0B PO8/lyb0JaeRmFwKpTOHPpNO0cur/T3C3D3TQ8Qglww8TcPZoQoLJwLX1184mmMqkEtK IzW3OMjuj89ban2X+IhmVN84WJ/8mvto/zOXkLaIRx+yG+q6pNTLK6vgjfVrxd8bUZlp p6UQ+AR2UgDwu8qGRqxeGFlcdmQyxllA27MTACdqHKii8xHDC/2yQ9zDqOqLnSBne41q UXOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=InedvJYk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id fq14-20020a0568710b0e00b000da716e622dsi11701527oab.182.2022.03.28.15.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:36:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=InedvJYk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 967CB1EA5CB; Mon, 28 Mar 2022 14:46:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241260AbiC1MBL (ORCPT + 99 others); Mon, 28 Mar 2022 08:01:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238584AbiC1MBF (ORCPT ); Mon, 28 Mar 2022 08:01:05 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C54C31FD for ; Mon, 28 Mar 2022 04:59:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=RyQhY95RNsCK4Pvvmfcn6PT7x9nJFEOteS09X0MJ5gc=; b=InedvJYkxngIeEPtMsu0qc2tRm V4VMLB5/wuDOLAUFEvYfK9ZL3hrr6Iw3AFTHeBZZyWZfUx6YSRRIkUfBIYWvUPSuN+6d9+g6WB2D2 16wOx2KwxVH+F1/NS91y4XziCmgGqsL3eaHou4ZO99Da/UN91P8qfChyu/CfzsaudJoDGF4w2Rp2j 1dVBWWzIePh394HgRA1XA+fi5rTXrdTiYlVXJ62YW0K4GBQNK9QPHxVmJnghZzgsCQb2LhkxdRIFb ryVvHt/QEZGtowPPi+xTKq6c5q68waGzcFZkQ2bnY6KcAVauT2O8njz/z8/inqE6AQFnagRLAGrfj BKw/6N0Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nYo1F-005QtX-1J; Mon, 28 Mar 2022 11:58:45 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id A36C39861E7; Mon, 28 Mar 2022 13:58:44 +0200 (CEST) Date: Mon, 28 Mar 2022 13:58:44 +0200 From: Peter Zijlstra To: Qing Wang Cc: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched: topology: add input parameter for sched_domain_flags_f() Message-ID: <20220328115844.GC8939@worktop.programming.kicks-ass.net> References: <1648461219-4333-1-git-send-email-wangqing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1648461219-4333-1-git-send-email-wangqing@vivo.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 28, 2022 at 02:53:37AM -0700, Qing Wang wrote: > From: Wang Qing > > sched_domain_flags_f() are statically set now, but actually, we can get a > lot of necessary information based on the cpu_map. e.g. we can know whether > its cache is shared. > > Allows custom extension without affecting current. This all still makes absolutely no sense. The architecture builds these masks, the architecture is in charge of which flags function is called on which mask. Passing the mask back in means it lost the plot somewhere and doens't know wth it's doing anymore. NAK