From: 王擎 <wangqing@vivo.com> To: Peter Zijlstra <peterz@infradead.org> Cc: Michael Ellerman <mpe@ellerman.id.au>, Benjamin Herrenschmidt <benh@kernel.crashing.org>, Paul Mackerras <paulus@samba.org>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, "x86@kernel.org" <x86@kernel.org>, "H. Peter Anvin" <hpa@zytor.com>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Steven Rostedt <rostedt@goodmis.org>, Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>, Daniel Bristot de Oliveira <bristot@redhat.com>, "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> Subject: [PATCH] sched: topology: add input parameter for sched_domain_flags_f() Date: Mon, 28 Mar 2022 12:19:11 +0000 [thread overview] Message-ID: <SL2PR06MB3082B464A5D719DE78893DECBD1D9@SL2PR06MB3082.apcprd06.prod.outlook.com> (raw) In-Reply-To: <20220328115844.GC8939@worktop.programming.kicks-ass.net> >> From: Wang Qing <wangqing@vivo.com> >> >> 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. It is not passing the mask back, sched_domain_flags_f() doesn't use cpumask at all, it always return fixed values. sd_topology_level select different sd_flag() to config, it's too primitive. If an architecture can describe its cache topology clearly in every level, the sd only need sched_domain_flags_f(cpumask) to get its ShPR flag. Thanks, Wang > >NAK
WARNING: multiple messages have this Message-ID (diff)
From: 王擎 <wangqing@vivo.com> To: Peter Zijlstra <peterz@infradead.org> Cc: Juri Lelli <juri.lelli@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>, "x86@kernel.org" <x86@kernel.org>, "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>, Steven Rostedt <rostedt@goodmis.org>, Vincent Guittot <vincent.guittot@linaro.org>, Ben Segall <bsegall@google.com>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Mel Gorman <mgorman@suse.de>, Paul Mackerras <paulus@samba.org>, Thomas Gleixner <tglx@linutronix.de>, Daniel Bristot de Oliveira <bristot@redhat.com>, Dietmar Eggemann <dietmar.eggemann@arm.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> Subject: [PATCH] sched: topology: add input parameter for sched_domain_flags_f() Date: Mon, 28 Mar 2022 12:19:11 +0000 [thread overview] Message-ID: <SL2PR06MB3082B464A5D719DE78893DECBD1D9@SL2PR06MB3082.apcprd06.prod.outlook.com> (raw) In-Reply-To: <20220328115844.GC8939@worktop.programming.kicks-ass.net> >> From: Wang Qing <wangqing@vivo.com> >> >> 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. It is not passing the mask back, sched_domain_flags_f() doesn't use cpumask at all, it always return fixed values. sd_topology_level select different sd_flag() to config, it's too primitive. If an architecture can describe its cache topology clearly in every level, the sd only need sched_domain_flags_f(cpumask) to get its ShPR flag. Thanks, Wang > >NAK
next prev parent reply other threads:[~2022-03-28 12:19 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-03-28 9:53 [PATCH] sched: topology: add input parameter for sched_domain_flags_f() Qing Wang 2022-03-28 11:23 ` Srikar Dronamraju 2022-03-28 11:23 ` Srikar Dronamraju 2022-03-28 11:58 ` Peter Zijlstra 2022-03-28 11:58 ` Peter Zijlstra 2022-03-28 12:19 ` 王擎 [this message] 2022-03-28 12:19 ` 王擎
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=SL2PR06MB3082B464A5D719DE78893DECBD1D9@SL2PR06MB3082.apcprd06.prod.outlook.com \ --to=wangqing@vivo.com \ --cc=benh@kernel.crashing.org \ --cc=bp@alien8.de \ --cc=bristot@redhat.com \ --cc=bsegall@google.com \ --cc=dietmar.eggemann@arm.com \ --cc=hpa@zytor.com \ --cc=juri.lelli@redhat.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linuxppc-dev@lists.ozlabs.org \ --cc=mgorman@suse.de \ --cc=mingo@redhat.com \ --cc=mpe@ellerman.id.au \ --cc=paulus@samba.org \ --cc=peterz@infradead.org \ --cc=rostedt@goodmis.org \ --cc=tglx@linutronix.de \ --cc=vincent.guittot@linaro.org \ --cc=x86@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.