From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796058950; b=4ME8HUjMtFOGU9BsEdLhBLLLtswz+9VPSrdm84pIEo32aHn7d9E3Dcty1A9xV14NU49u yCBkwERxdhQmslcKp1Ek2KCNrYKJYHXBhLIY8MsvpzoMv86XRack5h+sMAYCKlcUyhwkK iZ8CTBItmJhgqQzoRiSsQ45ZQPauWu/w6CfX7NYch/v2U7iS5KnMQQuF/Rw+HbJoa5mpP MxxYhy/gXHyTgYEUtj/8SEaxMlXcI84iLnvfJqTzDY8qzJun43a0oqNIL9e+DN2KXNHVT I7xOxzmfXr/CPy2OK6moXq7z4j+b81/PDCjg5R2P6uuL8HWOuwgwpjmnYaBb7DsrFKA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796058950; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=CwY0tUux9J8uUgguELbMNT19WodwIIkGgSofnn0j9d8=; b=TNMD2tDNW6U9FkRvPkY4FENarX1wsyVpa0sLla5QnMwXxhfZxCMD0EQv/X7DwD+Y+uHt 5vM61zEA9EiFRLSWZ18PKV5Mczb3cFSWPs0VCrivjY5j7gP4sIKGST9LCkJUCYSIdN+32 gNw5pmdt+GGy5aVbDJ7JcR//DpI+ujNz8FuHQ/k9lDkpHaqS+kVAhWrtCo6GI0JJoYyap 977PVpvBDC7G3mXmIR9y/uoqyRmAmFUNxacwEe13Cl4jQOYrtcRT5f650ZazNMBuEm8iS YEOpgjbA/Gc87CTjlXhDdRmI6gAvJje8IWzHtKLn/JXTcppkNUQ4tYUnngIWvdRMX7Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b="Vi1/oaZx"; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=Bj23HJel; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73CE3606A329 for ; Mon, 30 Nov 2026 17:15:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 73CE3606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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.a=rsa-sha256 header.s=mimecast20190719 header.b=Vi1/oaZx; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=Bj23HJel DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796058949; 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=CwY0tUux9J8uUgguELbMNT19WodwIIkGgSofnn0j9d8=; b=Vi1/oaZxcyI+31mqh38OxJfTn8ASoBigE1MFHPj/ury9UyPdeEynQLMLNCaghJyTyjAJ63 AUGnfGQs0+jqCFP5iuDdTXjB/HuEEGIAjXPhdRRrKJQMHMNyu1/vOnq8k4ecj/+XNOTOIs zwLdVd3JShTFJ1c4utNsHzk3jOCG5zw= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-357-XIFhpmHCOSumJDcOnwQR7w-1; Mon, 30 Nov 2026 17:15:46 +0000 X-MC-Unique: XIFhpmHCOSumJDcOnwQR7w-1 X-Mimecast-MFC-AGG-ID: XIFhpmHCOSumJDcOnwQR7w_1796058946 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4bb8ae35aeaso86926225e9.3 for ; Mon, 30 Nov 2026 09:15:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796058946; x=1796663746; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=CwY0tUux9J8uUgguELbMNT19WodwIIkGgSofnn0j9d8=; b=Bj23HJelmjkQ4wx+kkkuujXQSPxoEHjU8Q3eQNF5ZotBhXaL2rHi4Dp+bZ4bQ7tnLd NLfiR/MwROM3ZJISc4XRBw0805srtFnKGMET3juRl6GnwJTeIdOMCaXxkcwyqobkvbA/ WLihgap/J6BfEls47WP6BJap1mqIhYKGi+zvl/ADfnzTNTdPwva547R1W6B9cyrQO60f 0bxESNboKrgl7EvCZAaEqSoUrZLookRRtaPGp9spqvNmoUoC2PKBAwXPhjamWPzHxY/G s7J+c6Dyf+P4YzxbYy/zuguNJBwhxv0RkXvbVpzZRLuuiWMogsw+CWKzBy4oyL/5psgx 1gRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796058946; x=1796663746; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=CwY0tUux9J8uUgguELbMNT19WodwIIkGgSofnn0j9d8=; b=h+WgajQ7nnBH43SVWRixE4aXidJOAVTkiap/20BFL0TbH8cRp6ucr0XkegoFOmpnVB bemnWqZAEJ49z76he8OXQxDA7E3IaQFeQKp81N9UTcyy6TGM2dJdAjRMjLcyh/hHlysH OzLHe4R0dBqBFfZjtNkio4+Qg2WIYss0Pn2UlY5kjXjKOf6ncImI8qNk4qWUHylkVoi8 47MxQ2dqrV33cu7l7H+HS67hHTVHMe8otz+GajKaajMetjCgDu0ETwTAu9zuvoaLHa1P guIz1tjdubJLrohzaHfznzWpvz8hqODyh8lr/oU5UR4Ncoz9A4/9/h0K0I8MzI/yO5hc 3Oew== X-Forwarded-Encrypted: i=1; AL+hErEAuWjDXqg4NQWIOcggCb7cbTlp7xCj0Wn9sYWWuPVQX0yXzITFcTUF/SCwIMe3WJeR17n4U5OLTTEYDfQ=@vger.kernel.org X-Gm-Message-State: APuU4Z8zoO074BUCufG/muFwxMdYTRlm5BS1BP2wyZW36+E65NaScQk5 g4yofVDOSuadhc5bjSJBk0dP9IgUXCzfpCqYKjzPJhW7IJNKECYUtMvuL72myaUfR8tqU+4/5kb VnLHVS5bIQimItjIz/oSDCGCH5iwfcTqRlYmF7o6Hj77HodeauouthtMSf9/3y8tgPg== X-Gm-Gg: AZFdTZfoL8qspxyI4q6LZxa+Rlpf941S1i0iCBCLj908g+A2hvc4qZrOPqe3m6JDzgg 9xeRShPCMTeBWD8OufxSlSplk53YZDr9zvH1PQrjMzYmRnMz4t95yMRVyI9mHyjPCcWlge4duHd yKmmsmkiWLrhjw92nc715eZ7tgUQjczZ6EZVBd/OkA6AGjqK9nNBsvQqZDorKh8OFIqWiGDye2L BrWb7UFw+EaPZnXuA4T5XnfdkZYTDoUMQ25iyJnbqCLqUrGUEFoIRD/yr1FGz/mCISL5sNjOqy5 eD6Ua/HetU59xlPc/U3y8DAjtLrOu8BeebrYNCFp8aD8VKVC/hi6xJZ+QgPy2njA+6J+rZyG1K8 tIetr8t8kdFtenugeCFgGc1chFD1vjGJfBjyDBymnuW0WmdvNsJjzmyzIutn690/urm450hnMxY Sgb+1G X-Received: by 2002:a05:600c:34c9:b0:4a3:5d64:df91 with SMTP id 5b1f17b1804b1-4bb88810d28mr755570965e9.18.1796058945670; Mon, 30 Nov 2026 09:15:45 -0800 (PST) X-Received: by 2002:a05:600c:34c9:b0:4a3:5d64:df91 with SMTP id 5b1f17b1804b1-4bb88810d28mr755570185e9.18.1796058945225; Mon, 30 Nov 2026 09:15:45 -0800 (PST) Received: from jlelli-thinkpadt14gen4.remote.csb ([151.29.146.153]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853b216esm1009835245e9.12.2026.11.30.09.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 09:15:44 -0800 (PST) Date: Mon, 30 Nov 2026 18:15:42 +0100 From: Juri Lelli To: Mathieu Desnoyers Cc: peterz@infradead.org, mingo@redhat.com, vincent.guittot@linaro.org, tglx@kernel.org, will@kernel.org, boqun@kernel.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, kprateek.nayak@amd.com, luca.abeni@santannapisa.it, tommaso.cucinotta@gmail.com, mathieu.poirier@linaro.org, longman@redhat.com, ridong.chen@linux.dev, tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com, shuah@kernel.org, bigeasy@linutronix.de, clrkwllms@kernel.org, parri.andrea@gmail.com, m.szyprowski@samsung.com, kayracizmeci@gmail.com, weihengqiuu@gmail.com, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-rt-devel@lists.linux.dev Subject: Re: [PATCH v12 00/43] sched/deadline: bandwidth accounting fixes and selftests Message-ID: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hello, On 27/11/26 09:35, Mathieu Desnoyers wrote: > Hi Ingo, Juri, > > This series fixes bugs of SCHED_DEADLINE in 35 patches. It applies on > top of the first series [1], with its updated patch 10 [2]. This is > v12. The changes since v11 are at the end. Thanks for the respin, and for the quick turnaround on 23 and 27! To set expectations: I have roughly a week's worth of work left before the holiday break :)), and I'll probably spend it on what looks highest priority, the crash and hang fixes (23, 27, and 20 with them) plus 25 and 26 for the first series. I'm not sure I'll get to the rest before January, so feel free to keep iterating, but expect slower (or no :P) feedback from me until then. Having the pressing fixes at the top of the next version, as you plan for 23 and 27, already helps a lot! Some high level impressions on the rest, FWIW. The rtmutex/PI part makes me a bit nervous. Beyond the memory safety and hang fixes, it grows DEADLINE PI quite a bit (held boosts, donor periods, an irq_work calling rt_mutex_setprio() from hard irq context), while proxy execution is meant to replace this code. I'd rather keep changes there to what is needed for correctness and weigh the rest against that, and it will need Peter's and Thomas' eyes anyway. 22 also looks like an old RT priority bug that might be worth sending out separately? On the accounting side, I've been playing with a different approach: keep the bandwidth of each task in a per-CPU sum (on the CPU recorded with it), so that a rebuild only sums the CPUs of each root domain. It visits no tasks, keeps departed tasks for free, and seems to remove a good part of the departed list, dl_bw_gen and attach bookkeeping. It's still WIP; I'll try to post it as an RFC, most likely in January, so that we can compare, if you are up for it? ... > Ingo, Juri, a question on patches 25 and 26. Would you rather have > them in the first series, after its patch 10? Either way works for me, as long as they come right after it: as I said on 25, at the top of the next version (with 23 and 27) is fine too. I think 26 first needs a fix for the race Sashiko reported (its first two findings on 26 look right to me). > Peter, Juri, a question on patch 37. Would you take a follow-up for > tasks with an implicit deadline? I think so, it's what the XXX in sched_dl_overflow() asks for. > Peter, Juri, a question on patch 37. It is large: it adds about 600 > lines. It is one rule, applied in several places that depend on each > other, so I kept it whole. Would you like it split? I'd find it easier to review split, yes. The period_start / dl_next_period() part, for instance, looks like it could stand alone. Thanks a lot! Juri