Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2009231lqo; Mon, 13 May 2024 05:33:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJs3ZGFd5TE7Qlq0cRCHT1/TY0LfZP+TT6V3GbqHwC2E9YlFrL2l2zq/dvTrUG5nHQ26hGUZc+JiTBnV2fL0qYCe2DMyVGP0HfoTEruA== X-Google-Smtp-Source: AGHT+IFMH99fts+4vGoT1foxJMOSWUb/0hFWLycRalq46iEZJ5qBXTi5abJ9eZ29KMpE/hyQwOIk X-Received: by 2002:a17:90b:1252:b0:2b1:a150:f75f with SMTP id 98e67ed59e1d1-2b6cc7801fbmr7911335a91.23.1715603604903; Mon, 13 May 2024 05:33:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715603604; cv=pass; d=google.com; s=arc-20160816; b=VKefuZ6ZXt3Eq9FzFFIXrIyb0QPJ5yArgBOR0PV4x6+8YyZjjpxVKp6Lsa+jHdniKS VdbS56N1DNmnxS94HfkFxH1MIZY3faCS3HAyvw4w4X1llz2d/VO42lnJz6ujjcl6Ki9L xCmbaF2V7ackVJt3Bmwjugp8yl5vGPsFNrj4W94AQa9FSKIUQAhYr2877KPw3s47HUh0 1ZW4+AxcyRSFA+6eCX2x0MUhnNor5upbUJuW3Q0JHXTToEmLW9W8TdgrbFy1orAhZgda loOfiK9ALHG/XKu+vBbrdA5KfD3ZHxKhWvN3V0xhhTJtdtdGG7sKNt7Y3Bros1apbLsD UslQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language:subject :references:cc:to:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=H/24anTbd23uTqFCzj46U+i/dC2oWYez6CRKoL/UqoM=; fh=pnTjZSkTeJT+i3D51uI0fQQiq+GAihbLNsBPT5pbYKA=; b=VWYeULOTkq8caChV2lKjAQ2Ywjo4UdXH5VtHuHN6gbecBHrzUY0K1DfBVc8ka9IbWg 89h/h2ZlxjksCC44iMGz98jXixQn+fCwLpPqt4kBmatsIZFc2zFEcxv9QyEVWYfcY8aM sD55ceD1A8/KFTVeKQYhjEVi3GeuqLMAM9N9FoGzJLt6jPTpBU5GrVZURBSYD6KYX8DI BO5D5IWOKWuwxe3wYBPm9UR7abVxuoyJQdfg+nPKCsA+sMZiQLB5TQMg48UEk8HsgDFL ZhXbXepoNmItkwvVVEM3eWkbJH4Z4tZIWObW8+DpAf0bQvjXzqogshiLCMT5hGMlI6ir f5VA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=elOZGoG6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-177561-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b67116273dsi9327509a91.85.2024.05.13.05.33.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 05:33:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177561-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=elOZGoG6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-177561-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8ABCA28222B for ; Mon, 13 May 2024 12:33:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D932073502; Mon, 13 May 2024 12:33:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="elOZGoG6" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9086179CD for ; Mon, 13 May 2024 12:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715603599; cv=none; b=pJdlSiCfCicle2K+gVnzMVhfly8ha/orodNozno/zwTshfWDbzCKVQLO1daRSbQAALlzU+GMzEl6m6//1PtjO9+QI4haoRUJVoRxPDcUa5cATFqArtHabXmQnqQ7ar0KC3D3dzIoPhvYgxPpMIimctOrXDfcYF6KECwvlRQn6L8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715603599; c=relaxed/simple; bh=88nrqaJsYhfhJyUpQvjQX8//vf3CXxgAHJIupb2DEY8=; h=Message-ID:Date:MIME-Version:To:Cc:References:Subject:From: In-Reply-To:Content-Type; b=WEej859FhF+/HvAhWGp3IdyGkdog3IMq15dMwD9T5n0XSXb0loIxtRe4s0SGRmQNEFMMNIcl1A3jLJGl1cpKjQKAMbZq/tGSPgV+36qj/stYrf2MD1g2V3khwgJvGrWmWSNpa6imaOhUH1tlu+gexWMNtgmBqpLJWep6AG4x0ew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=elOZGoG6; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a59b49162aeso1072305866b.3 for ; Mon, 13 May 2024 05:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715603596; x=1716208396; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language:subject :references:cc:to:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=H/24anTbd23uTqFCzj46U+i/dC2oWYez6CRKoL/UqoM=; b=elOZGoG6JS58cn+XkenHQK9h8zcTEkykQYO308cxjYG53SYU8TDznq13QTSKV0k3yB nGHLe6yxx6n5uB9tmozrR215yBD3Dg+FlTI1DZDDCIjgAOWxE8NApIBdSnH7h7B0eTk6 xnyWhrjKBBLya9NJQR+C8yOYHcEIZY3nHMKRYwz+Ph9oPF7LjgzvsAZAGqTreE7LgAHn lr6SpdVal3ncqB10opbHXVpyGF9jBPisLiaNdzvRdnPrQ/kUzlyDXk1yodLbTuAjyQ5s G6TmWsbLbx9G4Edhi4Xs9FP+X8lR/u43b8x2V/FTg23ClBG34h75Z9rcn0G1XUdHQaJW GNag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715603596; x=1716208396; h=content-transfer-encoding:in-reply-to:from:content-language:subject :references:cc:to:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=H/24anTbd23uTqFCzj46U+i/dC2oWYez6CRKoL/UqoM=; b=po04yQBmzPcp9JxqEAsONybab9PVhQLD+aA8JjnRfaGUV18tuXQ1jp6ThQnO3SLYfD LoE/IhKL77q1Rbv3FjIwlovUAhFLM+J+Ds7J44fo7VUicIvTSnzegvY7h7tQQ02TRHNn rf86HCw4TYHtPb7WK9jXlnVzcGv0XeADV6TUHdXeD0xbzuOas1+IqXc8pIkYiDovC1Fk SPpwev5I5yfwc2uiFDWGhfp/K4br/69qGjdUUOWIc7S67jzciQ3BvKM2umM5QXhYfDAa FyOVZQaY18jc4DS6Htm/WEXeFz9mB547cHBwSRILQmKAoV5GpkSPPMh/ntt5d9qt3Vk7 mx9A== X-Forwarded-Encrypted: i=1; AJvYcCX9D0OxM830kaKGZN7kAYCr0rFz25OubeChH3j26NbFNc27/SXawQiRJETxUr4cagTQEVufhpcETmS/axwRYSzYjmCaitSphFcmxs/n X-Gm-Message-State: AOJu0YwiIwzpXpQcU2nKAdsT3G8jBb+RifeslVxaDSuqaPIofmwjbuj+ LGneG2NxjBKca7145+28KRG0qF5UVnNFCAIi2YoEn5oXTNcRueR+ X-Received: by 2002:a50:d745:0:b0:56e:3774:749b with SMTP id 4fb4d7f45d1cf-5734d6dfeedmr5504633a12.42.1715603595711; Mon, 13 May 2024 05:33:15 -0700 (PDT) Received: from ?IPV6:2a01:aec0:a3fd:7260:9636:62ff:a8fd:5751? ([2a01:aec0:a3fd:7260:9636:62ff:a8fd:5751]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733becfcc1sm6010876a12.45.2024.05.13.05.33.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 May 2024 05:33:15 -0700 (PDT) Message-ID: Date: Mon, 13 May 2024 14:33:14 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ming.lei@redhat.com Cc: benjamin.meier70@gmail.com, hch@lst.de, kbusch@kernel.org, kbusch@meta.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, tglx@linutronix.de References: Subject: Re: [PATCH 2/2] nvme-pci: allow unmanaged interrupts Content-Language: en-US From: Benjamin Meier In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > 'isolcpus=managed_irq' enablement patches are small, and shouldn't be very > hard to backport. I have big respect of kernel code and probably for non-kernel devs it's not so easy:) But yeah, we'll look into this. > > > > be tricky to assign all interrupts to those without a > > performance-penalty. > > > > > > > > Given these requirements, manually specifying interrupt/core assignments > > > > would offer greater flexibility and control over system performance. > > > > Moreover, the proposed code changes appear minimal and have no > > > > impact on existing functionalities. > > > > > > Looks your main concern is performance, but as Keith mentioned, the > > proposed > > > change may degrade nvme perf too: > > > > > > https://lore.kernel.org/linux-nvme/Zj6745UDnwX1BteO@kbusch-mbp.dhcp.thefacebook.com/ > > > > Yes, but for NVMe it's not that critical. The most important point for us is > > to keep them away from our "high-priority" cores. We still wanted to have > > control > > where we run those interrupts, but also because we just did not know the > > "managed_irq" > > option. > > OK, thanks for share the input! > > Now from upstream viewpoint, 'isolcpus=managed_irq' should work for your case, > and seems not necessary to support nvme unmanaged irq for this requirement > at least. Yes, probably that will do it. Personally, I still think it's a nice thing if it's possible to assign interrupts to specific cores, but practically the advantages are likely not that big compared to 'isolcpus=managed_irq'. Thanks for all the explanations