From patchwork Wed Feb 26 18:34:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1245276 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SPk16r0Tz9sNg for ; Thu, 27 Feb 2020 05:40:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=WBzyn/pc; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SPk14ctBzDqly for ; Thu, 27 Feb 2020 05:40:09 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::542; helo=mail-pg1-x542.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=WBzyn/pc; dkim-atps=neutral Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SPhj23CSzDqVR for ; Thu, 27 Feb 2020 05:39:01 +1100 (AEDT) Received: by mail-pg1-x542.google.com with SMTP id b1so81124pgm.8 for ; Wed, 26 Feb 2020 10:39:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VqskfQvGMG8vvHRt7G8NbgmbVMw6PuqRx34H1VYc5YA=; b=WBzyn/pcA9EuhTvW1odwW+aByLXrOw4gIT97YV3VbLFERFbBOXt121gh/V8uwIfmJ4 kokuwdkoh7LF2RQZEp91m8DGjmKliQ8MWpyy+HRLgC6/kFc1Sqf62fDpQmoqeR9V1qJ7 MWBTEv9ihx7DWTMXOH8wEi+tk8T4s/yxD/3g/8hwyexPyAFYZoIuNlk3UyOUMWZKyA2c UC9Wy5BR/2+VHvMVepWcz1mvI8DLniuO/MYvuGjgXh7g96ancuwwKIp2c8uHSwY3IxWI a6721k64gbja73Can+mRviykWLsePjaB4NE3XQhGlkCB+153bx66f1gOmWgxzlmQ1zAH gK3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VqskfQvGMG8vvHRt7G8NbgmbVMw6PuqRx34H1VYc5YA=; b=KLHJtZbfaWTK7lid8zNme4VRfRboMong3Xmw2HBRjXa5/y4wQMru/LDvOnF0ba77Uw hpa3Um2EpaqIGhE7osx7SQCT+MXPcYtqoAvokP79HM5AQyP8aQDLwg4e8gTrLOGJ+/1P qnhuXjY7NMyrfDUctYYf+/3e62pacFK5BG2i2ZpiUdxnEvsBq3wqSQknObYOHKxiJdtU jmfslaZgUrTWNppSNrKOlzvOJm+v7XBYFQ1U6+the+DbF0EeZv014EJ2N3PStMNyNxZ0 vREaF+3lqE0qSB1et0SbTipj00xpyMkFTIFCmR9zfqUlzkCLuayLrYFtxWGt5KZnL866 YDLg== X-Gm-Message-State: APjAAAVawQBnULcrB0f5IFw21tGOFyxE9gSTtYPM8pAXEMrH3zZVdBpt g53PT5jdLpUavI9ppx9aNDt0nJFy X-Google-Smtp-Source: APXvYqxtx32yxnI8tr+PmTbLr9CHSFK6kscD/tJrR07VOTKCAfnzIHbP2Jq05U/+outv2jVMFEpkyw== X-Received: by 2002:a63:9214:: with SMTP id o20mr220390pgd.146.1582742335363; Wed, 26 Feb 2020 10:38:55 -0800 (PST) Received: from bobo.ibm.com ([61.68.187.74]) by smtp.gmail.com with ESMTPSA id v8sm3715247pfn.172.2020.02.26.10.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 10:38:54 -0800 (PST) From: Nicholas Piggin To: skiboot@lists.ozlabs.org Date: Thu, 27 Feb 2020 04:34:02 +1000 Message-Id: <20200226183408.1626737-4-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200226183408.1626737-1-npiggin@gmail.com> References: <20200226183408.1626737-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Skiboot] [PATCH 3/9] fast-reboot: add missing clear memory fallback X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Signed-off-by: Nicholas Piggin --- core/mem_region.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/mem_region.c b/core/mem_region.c index eb48a1a11..8eda30598 100644 --- a/core/mem_region.c +++ b/core/mem_region.c @@ -1365,8 +1365,14 @@ void start_mem_region_clear_unused(void) free(path); jobs[i] = cpu_queue_job_on_node(chip_id, job_args[i].job_name, - mem_region_clear_job, - &job_args[i]); + mem_region_clear_job, + &job_args[i]); + if (!jobs[i]) + jobs[i] = cpu_queue_job(NULL, + job_args[i].job_name, + mem_region_clear_job, + &job_args[i]); + assert(jobs[i]); i++; } unlock(&mem_region_lock);