Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1689399iol; Fri, 10 Jun 2022 12:40:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw6Ei8Xk2HuGF6h330KL1+0ck1FHymSvlZcXDb4vWPX+jWte37lAoQwZUCWP6piC5EyWoX X-Received: by 2002:a05:6402:84c:b0:430:aae2:6dd8 with SMTP id b12-20020a056402084c00b00430aae26dd8mr39793770edz.31.1654890050982; Fri, 10 Jun 2022 12:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654890050; cv=none; d=google.com; s=arc-20160816; b=ZGOiEJYVxbQZTtY6PfAZFjoV8idAcTc50EgDKWGw+/OOviyZ95FPUSeFffYGcA8t56 NYMRz0FMfmXVlV4ORZ1TfD+YSChVmT1KSBx5/Qtlk5cDvMTthU3ewf9ig/Gi8KbXGUWS y/c7tK88UzVcH8+Z7fBu9em4iTjMtKCwNTRT2fF5kZcjhh+WwdWowsAtvhqQP1FOeX04 KCY+xhNUDNwR3eWoxzrmNIxbkdIfhkmO3iu2b7WJqrphbb8KpR6hqPp13qAdLV+HkSWz LSI6T17fKrZognnMJvpXyZLMr2xOtm2BA82SU8GIdyBCt/aiKCfQaE5vp6vtKqR+lDDz h/ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=OEgfxlw7bP1m8m+NqF0CGBsSHqVJi72KovP+YMxw29Y=; b=SjxtpAMFvWea29RPCOxU1hPhvtAqWQc7f6h3qxkF++W1Te7ysLEBfG+ru7qbzQIPoQ oIbRJ/IT9aJow7jj+0AgyfoKdGjnv/cgWVXCQFcAOBJxJSaBvw/k/lpNfaIa43UObVgN h5mhqv427ikJqkox1YwGdliKk0erBsT9c5ryz43F5ub6tIehskRBRUGApUxQm1CB2gxn RU70C/JELWWYkjq0WmQ2P9hZ799B/NOkDCq6jjIVhP0kod05Xfv8kolUCbHqQKnktXiT jfIFG37Ca1OViE3rJM7BRtzYB15U1O6Zz49KPQ3CEdyuKil63LUbtLkoKp9qcJiiE/j/ IIog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=asIYgAEV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s3-20020a17090699c300b0070b6d46c7eesi26289868ejn.105.2022.06.10.12.40.20; Fri, 10 Jun 2022 12:40:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=asIYgAEV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348374AbiFJTXh (ORCPT + 99 others); Fri, 10 Jun 2022 15:23:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233646AbiFJTXf (ORCPT ); Fri, 10 Jun 2022 15:23:35 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBB8E1994BC; Fri, 10 Jun 2022 12:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654889014; x=1686425014; h=from:to:cc:subject:date:message-id:mime-version; bh=OEgfxlw7bP1m8m+NqF0CGBsSHqVJi72KovP+YMxw29Y=; b=asIYgAEVHnas7AmAcqtPOYqcwlvIhXNP9KwmVA/dtc2i+SEpmFjkpv1c FH83Jr0FTqsiSpLadH3KdZIP7xx0HSdPfHWufNtaNKMjytBDfGX0kgTFd OfbPSVeXdkyP+Lv6ucgWTBtcTbIvSSfBFiNVMuy+vz/yW6PMc+911UmZz Q=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 10 Jun 2022 12:23:33 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2022 12:23:33 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 10 Jun 2022 12:23:33 -0700 Received: from hu-clew-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 10 Jun 2022 12:23:32 -0700 From: Chris Lew To: , CC: , , , Subject: [PATCH 0/2] Introduce helpers for carveout management Date: Fri, 10 Jun 2022 12:23:03 -0700 Message-ID: <1654888985-3846-1-git-send-email-quic_clew@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently remoteproc exposes APIs for devices outside of remoteproc to allocate and add carveout resources to a remoteproc. These devices may support the ability to reclaim these resources from a live remoteproc. Add two helpers to help cleanup the references to the carveout resources. Chris Lew (2): remoteproc: core: Introduce rproc_del_carveout remoteproc: core: Introduce rproc_mem_entry_free drivers/remoteproc/remoteproc_core.c | 33 +++++++++++++++++++++++++++++++++ include/linux/remoteproc.h | 2 ++ 2 files changed, 35 insertions(+) -- 2.7.4