From patchwork Fri Oct 11 17:00:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 21592 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 7BF8FC3260 for ; Fri, 11 Oct 2024 17:19:41 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1D3AD6537E; Fri, 11 Oct 2024 19:19:40 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="BJxV4qoc"; dkim-atps=neutral Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 753D365379 for ; Fri, 11 Oct 2024 19:19:37 +0200 (CEST) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-20ca7fc4484so5377715ad.3 for ; Fri, 11 Oct 2024 10:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1728667175; x=1729271975; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ipBE71S9puIFjZsgjRPvQWSlCQA9dxzfZVY07d92a/E=; b=BJxV4qocYwyBZxKCXvXyhWtaouB3fbAvKYKViNRYtFkBr9R4avsZOAZg2rOEnR48bf HoXvw9uEhHn+WGiwbe0k5al79/+VKCUfwIEMvB0llXpMYNYoFlKXEu58XyidmCV3CXm6 TyIsCD9fFCOnvxBOm9iRnzPCvihxosrrrCSVE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728667175; x=1729271975; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ipBE71S9puIFjZsgjRPvQWSlCQA9dxzfZVY07d92a/E=; b=QAzK28yx2F6Uunvdvz4I4ckH8stCH4zPposAzOnepxeWf0i0wWBgR6BXTBBVc2NxUL N6V3xm06Tt1m8sxyKHoDdWzw1ZnS+cdW3nx0MKJRdeezDGxyWDqAu3/Lsk3IEDx2ytiF BzFrTOz2iUCJtL3fp4qlUooR/UN+Ua9JuhxQ76E7K7LgmELwhyRnDkkroCNrGL2qP8PS nnMTTcKDtvM/exlcUsM1VTj7YZeMBtd2IuMzwrIFFmdctIWPg3O1lUDADcIma8SRzLw7 X38Jtj1niDbUCiaFhO0OwcdOshmOGZYY9ZfCXynhFYkGR4WojzywPrKL4cHSw64EQ5iF hTVw== X-Gm-Message-State: AOJu0YxdP3bAYWn2phj3Yped4s4AJF4e6RTRxWaKWikK+Xn8d05Mkq/o pK8GXAxz420OaZZV9+SFggN9QfaP9bjfjkiPc7dwOLnL/fCHA7FdV+UEASvhwgjsNkIfXlRNyl4 = X-Google-Smtp-Source: AGHT+IGAZwGFzJ8rfUmug/BPFfv8fgRdQ/135bJgRgyzwX87PVcXdTuKXV/0wr8tcOJwN3GWb2TpfQ== X-Received: by 2002:a17:902:f68d:b0:20b:b455:eb4f with SMTP id d9443c01a7336-20cbb1a9131mr5155705ad.25.1728667175273; Fri, 11 Oct 2024 10:19:35 -0700 (PDT) Received: from chenghaoyang-low.c.googlers.com.com (27.247.221.35.bc.googleusercontent.com. [35.221.247.27]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8badc3b2sm25571975ad.12.2024.10.11.10.19.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 10:19:34 -0700 (PDT) From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH 0/1] Add thread affinity Date: Fri, 11 Oct 2024 17:00:47 +0000 Message-ID: <20241011171930.3225255-1-chenghaoyang@chromium.org> X-Mailer: git-send-email 2.47.0.rc1.288.g06298d1525-goog MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi folks, This patch adds a method to set thread affinity, which is needed to ensure performance in mtkisp7 pipeline handler and IPA. This passes gitlab pipeline: https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1288207 BR, Harvey Han-Lin Chen (1): libcamera: add method to set thread affinity include/libcamera/base/thread.h | 6 ++++++ src/libcamera/base/thread.cpp | 31 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+)