From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9178522CBFE for ; Thu, 16 Jan 2025 15:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737042940; cv=none; b=mnPJPJX+w6wNK02lMOAQ5YiBHhWO+989d8pPCOkF0nyG2JJGLDXtcCKN71X4P9Jk2kCAvukIEh6AP6h+7R7xHwEZ9L2wVPG5nIuQDcqHV491CfUcAKgYeQZE6+xUNMT2ML6qj8nezrTiwvfLhsUZlayz3TOPdlWLpcsltqtbSlc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737042940; c=relaxed/simple; bh=M6rLbXwoKLY87vdD//6QBLSukPIfifTbilph5z1bzaU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CUXI5nRmk26QzuQxFVnt6mRFqBlhrb5/2JgPJGuHJwZ6AWhnv4KCuWe1eYICeQPr6CfobiJc96z4F1tLMnrMEiNEKaydtJU9h+tSt1icE6rUY9YcjFaFrfmd74m7CP+yqlZ/+0sJM41VDwnUZ1GAbwe2R2rVoKImPvvLN3LBREM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=O9iybVBD; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="O9iybVBD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1737042937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VXCxqR2hB1HdDwCoB2P/zuXO8pseRXLobkWHItFNoHE=; b=O9iybVBDQDm8Jl/ouomw58t9mqAn2umQDIDnan29RrpbiS1s/FoHQZ8XJAK5ZV2u+fjufj hWEe8EuJDYAqdfc6+5PKO9mC1UPJB+YB813BDqyYuzH9xCRHXPR/FKhzZ4VTNWFeEalCOC 4cbCb0KFoDPDc1Tx7I0WTSJ35twDgMI= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-601-S0_XTESYM26CdPZCTWtvsg-1; Thu, 16 Jan 2025 10:55:36 -0500 X-MC-Unique: S0_XTESYM26CdPZCTWtvsg-1 X-Mimecast-MFC-AGG-ID: S0_XTESYM26CdPZCTWtvsg Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-467a0a6c846so25766131cf.1 for ; Thu, 16 Jan 2025 07:55:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737042936; x=1737647736; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VXCxqR2hB1HdDwCoB2P/zuXO8pseRXLobkWHItFNoHE=; b=vsF1ZXZSLbTToiNwUvBwwr4B03ZbFJw16j47V/UfEIgUE/abEhfWGEX0ou6QucTNC4 4SOhPUvs4XBEt347Exy02ovL2V/ljcwQida0FhIKzcNGV/R5I9leMKnAHVm+aIrO0NEA Xjv5+RqzzofUVEOrlDPz04krAZgWoy8fC7v2bCsWyRGlRUlZcdp9PSMgMEViAtAuMRY2 tHkMHM5q0RhIzby63qcrxYUYEWRFhumf2QeFuDN+lffPuwZqTtIAl6MoKczKqQ4eiQEy 55NsfNJy+5w7kvx0Ox0dfxgvIb+Wo0v4ccM3ixpmbcDTWgWH8nZobd7aK34rcorOEkyF 76UA== X-Forwarded-Encrypted: i=1; AJvYcCUqDHSL63tXcjRYdyhHjMbH9oNm572idBwmsvfU8y/1uyIwldS5ylJwxDEszN7tS44huR0k3A8tNZdnxw==@vger.kernel.org X-Gm-Message-State: AOJu0YxLyF91MND2Oj4dFkkrFNACI5+4Ygs8itByc23g5XddlSGMt+wx P4Cqob+lPPusREZQ2xeo78ZGXnE3gi43R+NoSfGr8DyAPzQj2pZW6yeWlLp1CF3HIPGA8dsBXiv OS6TPny2lfhlzITq1a4IpzuWl3nFpLEY1sV7NchmPWFHZ6fEyy1kGAg+782Ju X-Gm-Gg: ASbGncsTZQF3EnWEWQ0Ovc2zALQooKK84NfYpJVlzrvEQy33D8gmkYiHWLpBv8sy4mr WA4t9XP54HFZGuulaUCy4cc/IhZrtKiv4HMhn1FfsTxaqfkdCwepKnBIDjxKFeoqaHO6bHAEhHf GLSXv4lgFOlXOZZdIQUKX90+pUSLnDM9ApM/ICPDs1SJ7C9fjMHiz4S9O3JewpD4FSIAp8Geg47 deCetAN8VhKa7w/BKphPBkYdjcX2bmY5dH7JFuhUNaDSgsrynN4l5oiP4c01fgr60/D3EtxgVp8 dRcnX2quCg== X-Received: by 2002:a05:622a:101:b0:46d:faa2:b6d1 with SMTP id d75a77b69052e-46dfaa2b78fmr106852481cf.16.1737042935845; Thu, 16 Jan 2025 07:55:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6rEQNPX3QX1cl1+CEt2jh6XECB7XmNLIK/9PkAlURmQsCMsq9QryFVTViYqSI+bAw4+QYfg== X-Received: by 2002:a05:622a:101:b0:46d:faa2:b6d1 with SMTP id d75a77b69052e-46dfaa2b78fmr106851951cf.16.1737042935507; Thu, 16 Jan 2025 07:55:35 -0800 (PST) Received: from jlelli-thinkpadt14gen4.remote.csb ([151.29.92.51]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46e10436a37sm697891cf.79.2025.01.16.07.55.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 07:55:33 -0800 (PST) Date: Thu, 16 Jan 2025 16:55:27 +0100 From: Juri Lelli To: Jon Hunter Cc: Thierry Reding , Waiman Long , Tejun Heo , Johannes Weiner , Michal Koutny , Ingo Molnar , Peter Zijlstra , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , Phil Auld , Qais Yousef , Sebastian Andrzej Siewior , "Joel Fernandes (Google)" , Suleiman Souhlal , Aashish Sharma , Shin Kawamura , Vineeth Remanan Pillai , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, "linux-tegra@vger.kernel.org" Subject: Re: [PATCH v2 3/2] sched/deadline: Check bandwidth overflow earlier for hotplug Message-ID: References: <5d7e5c02-00ee-4891-a8cf-09abe3e089e1@nvidia.com> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On 16/01/25 13:14, Jon Hunter wrote: > > On 15/01/2025 16:10, Juri Lelli wrote: > > On 14/01/25 15:02, Juri Lelli wrote: > > > On 14/01/25 13:52, Jon Hunter wrote: > > > > > > > > On 13/01/2025 09:32, Juri Lelli wrote: > > > > > On 10/01/25 18:40, Jon Hunter wrote: > > > > > > > > > > ... > > > > > > > > > > > With the above I see the following ... > > > > > > > > > > > > [ 53.919672] dl_bw_manage: cpu=5 cap=3072 fair_server_bw=52428 total_bw=209712 dl_bw_cpus=4 > > > > > > [ 53.930608] dl_bw_manage: cpu=4 cap=2048 fair_server_bw=52428 total_bw=157284 dl_bw_cpus=3 > > > > > > [ 53.941601] dl_bw_manage: cpu=3 cap=1024 fair_server_bw=52428 total_bw=104856 dl_bw_cpus=2 > > > > > > > > > > So far so good. > > > > > > > > > > > [ 53.952186] dl_bw_manage: cpu=2 cap=1024 fair_server_bw=52428 total_bw=576708 dl_bw_cpus=2 > > > > > > > > > > But, this above doesn't sound right. > > > > > > > > > > > [ 53.962938] dl_bw_manage: cpu=1 cap=0 fair_server_bw=52428 total_bw=576708 dl_bw_cpus=1 > > > > > > [ 53.971068] Error taking CPU1 down: -16 > > > > > > [ 53.974912] Non-boot CPUs are not disabled > > > > > > > > > > What is the topology of your board? > > > > > > > > > > Are you using any cpuset configuration for partitioning CPUs? > > > > > > > > > > > > I just noticed that by default we do boot this board with 'isolcpus=1-2'. I > > > > see that this is a deprecated cmdline argument now and I must admit I don't > > > > know the history of this for this specific board. It is quite old now. > > > > > > > > Thierry, I am curious if you have this set for Tegra186 or not? Looks like > > > > our BSP (r35 based) sets this by default. > > > > > > > > I did try removing this and that does appear to fix it. > > > > > > OK, good. > > > > > > > Juri, let me know your thoughts. > > > > > > Thanks for the additional info. I guess I could now try to repro using > > > isolcpus at boot on systems I have access to (to possibly understand > > > what the underlying problem is). > > > > I think the problem lies in the def_root_domain accounting of dl_servers > > (which isolated cpus remains attached to). > > > > Came up with the following, of which I'm not yet fully convinced, but > > could you please try it out on top of the debug patch and see how it > > does with the original failing setup using isolcpus? > > > Thanks I added the change, but suspend is still failing with this ... Thanks! > [ 210.595431] dl_bw_manage: cpu=5 cap=3072 fair_server_bw=52428 total_bw=209712 dl_bw_cpus=4 > [ 210.606269] dl_bw_manage: cpu=4 cap=2048 fair_server_bw=52428 total_bw=157284 dl_bw_cpus=3 > [ 210.617281] dl_bw_manage: cpu=3 cap=1024 fair_server_bw=52428 total_bw=104856 dl_bw_cpus=2 > [ 210.627205] dl_bw_manage: cpu=2 cap=1024 fair_server_bw=52428 total_bw=262140 dl_bw_cpus=2 > [ 210.637752] dl_bw_manage: cpu=1 cap=0 fair_server_bw=52428 total_bw=262140 dl_bw_cpus=1 ^ Different than before but still not what I expected. Looks like there are conditions/path I currently cannot replicate on my setup, so more thinking. Unfortunately I will be out traveling next week, so this might required a bit of time. Best, Juri