Re: [PATCH v1] memory tier: consolidate the initialization of memory tiers

2024-06-26 Thread Ho-Ren Chuang
June 25, 2024 at 1:46 AM, "Huang, Ying" wrote: Hi Huang, Ying, I'm working on the v2 according to Andrew's and your feedback. Thank you for your confirmation. > > "Ho-Ren Chuang" writes: > > > > > June 24, 2024 at 1:27 AM, "Huang, Ying" wrote: > > > > Hi Huang, Ying, > > > > Thanks fo

Re: [PATCH v1] memory tier: consolidate the initialization of memory tiers

2024-06-25 Thread Huang, Ying
"Ho-Ren Chuang" writes: > June 24, 2024 at 1:27 AM, "Huang, Ying" wrote: > > Hi Huang, Ying, > > Thanks for your feedback. Replies inlined. > >> >> Hi, Jack, >> >> Thanks for patch! >> >> "Ho-Ren (Jack) Chuang" writes: >> >> > >> > If we simply move the set_node_memory_tier() from memory_

Re: [PATCH v1] memory tier: consolidate the initialization of memory tiers

2024-06-25 Thread Ho-Ren Chuang
June 24, 2024 at 1:27 AM, "Huang, Ying" wrote: Hi Huang, Ying, Thanks for your feedback. Replies inlined. > > Hi, Jack, > > Thanks for patch! > > "Ho-Ren (Jack) Chuang" writes: > > > > > If we simply move the set_node_memory_tier() from memory_tier_init() to > > > > late_initcall(), it

Re: [PATCH v1] memory tier: consolidate the initialization of memory tiers

2024-06-24 Thread horen . chuang
June 21, 2024 at 6:34 PM, "Andrew Morton" wrote: Hi Andrew, Thanks for the feedback. I will send a v2 with the patch description written in a cover letter. > > On Fri, 21 Jun 2024 04:48:30 + "Ho-Ren (Jack) Chuang" > wrote: > > > > > If we simply move the set_node_memory_tier() from mem

Re: [PATCH v1] memory tier: consolidate the initialization of memory tiers

2024-06-24 Thread Huang, Ying
Hi, Jack, Thanks for patch! "Ho-Ren (Jack) Chuang" writes: > If we simply move the set_node_memory_tier() from memory_tier_init() to > late_initcall(), it will result in HMAT not registering the > mt_adistance_algorithm callback function, because set_node_memory_tier() > is not performed during

Re: [PATCH v1] memory tier: consolidate the initialization of memory tiers

2024-06-21 Thread Andrew Morton
On Fri, 21 Jun 2024 04:48:30 + "Ho-Ren (Jack) Chuang" wrote: > If we simply move the set_node_memory_tier() from memory_tier_init() to > late_initcall(), it will result in HMAT not registering the > mt_adistance_algorithm callback function, Immediate reaction: then don't do that! > because

[PATCH v1] memory tier: consolidate the initialization of memory tiers

2024-06-20 Thread Ho-Ren (Jack) Chuang
If we simply move the set_node_memory_tier() from memory_tier_init() to late_initcall(), it will result in HMAT not registering the mt_adistance_algorithm callback function, because set_node_memory_tier() is not performed during the memory tiering initialization phase, leading to a lack of correct