From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-181.mta0.migadu.com (out-181.mta0.migadu.com [91.218.175.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7BDA3F39CE for ; Thu, 28 May 2026 13:27:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779974856; cv=none; b=WEQY5TLvxIgLHxWHezlbLygwjmwzlTEPTrPi58EytX8W5jtHk6uPa8cdGeu73/WZoaHXdzjhVpDb5skQKYrJkYB3Nv4wBV9C/t4nLIHXtafsjojzB1mys9Kt/wyoQpljP3V9JnUnbrjzFry3I2FUAcv/qLtfjEY51eTHpT+dUSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779974856; c=relaxed/simple; bh=RIaFU2XJHtIVIU1Q+1dhMPDocgMYReg2MIrRHb6jNU8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Y2OYuPkUMH6mWzz5wi2ytNzwWe8yESEPSuZO2awy2qo5PqzNjm02MtQi3lWC4MtcI8V6lWk/QITw/D0AzZwodb3CEUJS2RFGmPuT7wHNf2R1TnNdglz+Kv4E+hZ7ul1lg5OS43ORibqHVde1SbddgSOhaemycaZy51CCoL4WH38= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=josbuxqj; arc=none smtp.client-ip=91.218.175.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="josbuxqj" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1779974848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RIaFU2XJHtIVIU1Q+1dhMPDocgMYReg2MIrRHb6jNU8=; b=josbuxqjhdehCdKhRzCAofaZT19xUuNwvPu4XI9pv5Rw6SamLbNKucKkEI4Wb1/H3gyJbI l80ijGXpaziRBx6DZ8+SUi2O0JTyy1IlEV17nK3TwuhmoFskCTLjgEw0Bx8H03v67+m9Mw tjAEe8Oa46o35M9DXOW9m13hw7z1f6c= From: George Guo To: pratyush@kernel.org Cc: chenhuacai@kernel.org, dongtai.guo@linux.dev, graf@amazon.com, guodongtai@kylinos.cn, kernel@xen0n.name, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, liukexin@kylinos.cn, loongarch@lists.linux.dev, pasha.tatashin@soleen.com, rppt@kernel.org, shuah@kernel.org Subject: Re: [PATCH 1/7] LoongArch: Add KHO basic support Date: Thu, 28 May 2026 21:26:53 +0800 Message-Id: <20260528132653.190981-1-dongtai.guo@linux.dev> In-Reply-To: <2vxztsrv5r6y.fsf@kernel.org> References: <2vxztsrv5r6y.fsf@kernel.org> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On Mon, May 25 2026, Pratyush Yadav wrote: Hi Pratyush, > Do you have nothing else for a bootloader to pass data to the kernel? > Passing this via the command line seems crazy... All these addresses are > now available directly to unprivileged userspace. Can't you use the > device tree like we do on ARM64? > > Also, this commandline parameter isn't documented anywhere. I have tried the FDT /chosen approach, storing the KHO metadata as linux,kho-fdt and linux,kho-scratch properties (the same properties that drivers/of/kexec.c:kho_add_chosen() writes and drivers/of/fdt.c:early_init_dt_check_kho() reads). This passes the KHO selftest when the system boots with FDT. I am currently debugging the ACPI boot case. Thanks for your advice! -- Regards, George Guo