Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp694645lqo; Wed, 8 May 2024 11:47:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXP9axbUoeB6ff+o5TToPZmkpY9shgXBBIwutVZl10JhKBpKK65RiRKX5snrdaeqJoNgXrBjWiSGX7GIKULqDx4uXMYeMZjXbpz2Mpo0A== X-Google-Smtp-Source: AGHT+IGcWTzc/dL9TODvUVL78yPZA80erlHDM8SJgIXnepCyutBUk6ti7mm5SG0MJ5pqC13uzPC7 X-Received: by 2002:a05:6214:1c4e:b0:699:49d9:140f with SMTP id 6a1803df08f44-6a1514f084amr37589686d6.64.1715194031143; Wed, 08 May 2024 11:47:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715194031; cv=pass; d=google.com; s=arc-20160816; b=bMHSp+I0DunRDm2hFBgtA3wxwZucFiMlW+mxcS3g91LgQkcDDjwAHs1DlISendAc3A 7XtnmUrshjZeJefBRmiudu/c3uWohdb2JWReiudqcFcgtvtORqz4rsLj7Awi929+9AEv i195HUsOQOmTSNXx/+WTMNZ5K0HP76Spd9BQwLVteyxRs1kxSo7qTq77JlcuFeBGONJM ruEG4qVOGaBWOJh0418Nqv5OiMkQPOVGRTlKF+Z2SEtleFHKi8CGFJq8nANRrbI38nnS Nk4FJmjEGJRFaYriPj29o/jjdlh//2MdDT4QBJinLWl+WL3Bg0bqVLnKxjkADAsbxh2c F0ag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=q6o7L7QXNQvx0xNXZVcYSLNmrfCQqLomfxFWX4xHH3k=; fh=RAJ0zn9sAWY2aZNnuhZDtPfL8RIDIkR1cO9oNt2Un84=; b=XbuhKOcVoQmDoJYj94l2AttqVznFTmeNBIpfMG8DA/bsbe5Qbt2p3+fJCAoGiGoAui /9esfy/IJk+W/wclbW75v9Rs9Onks3HrXlwcWM8ik37gNXHJFzrMOITohUkIhB+NgDHR o07Bw+/yE4GiKV/sR/wzZ58fj18ArOPFquzV5OAzV7Ip5WNNLJVhR/OzTuk+ah9TQBBF syxRGOOeWj6IF/eV8X+l43EFjAZ/jAjEEJ+CLIHGWah07A9gqsdceTqqzTg62loVffSE scJa5W5SLF5EaKVdo0la3+j5MV+BDozkLAiVSuO62PJQl3+DdRkTRgs0eOTfYqIoe38H VC4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QDlqL98l; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-173722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f14-20020a0562141d2e00b006a0d404e937si14796267qvd.471.2024.05.08.11.47.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 11:47:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QDlqL98l; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-173722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 94D7C1C21779 for ; Wed, 8 May 2024 18:47:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24CB97FBD0; Wed, 8 May 2024 18:47:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QDlqL98l"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0MhzSA9x" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 E63987B3E1 for ; Wed, 8 May 2024 18:46:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715194021; cv=none; b=drOpBCCQP6kvKpIgAVXZ1PCp+5tapClhrGAsX4Hvuh58Se0bY2j/vXbMXkPRgIzpmPmxgkvdBIo2fu6TW5Le1gbgqN/LcGwkCwNr11nQ2g7bDzZY42lZVL5HmEEMrgW4cBL+2cDkT0mGYvR/prqc0PQcmLPtBA4ry/iSwni1VoM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715194021; c=relaxed/simple; bh=O4+iWlVjdsDfKqKroZj2t8jy1NGR/zwFpOp/8NsjFlM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YzzfK+MH5yZ5/P2jU94khGF3WzImjdBF0Os4kjQAjCRx51ezwQds8ytes8fdPtHfbcYgKTPrJl/j/O6VaWvr9vuwq2oxcxJrfjbHMYDAoi2DPBWQneKGGFlgQ2DlTkBtnHwOgF0SUvE06mPcIwY8GLyQ4n5403cyfFPYARCb8+w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=QDlqL98l; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0MhzSA9x; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 8 May 2024 20:46:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1715194017; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=q6o7L7QXNQvx0xNXZVcYSLNmrfCQqLomfxFWX4xHH3k=; b=QDlqL98lFh60txNqqltm1jSCSe1xNNpupP3cvpljw2mRkb6R7qLm2HNoeT+B6uoiujRA6m ulcw4/SrYRftc0zqWJqThQHT1CYdJKymPSpPawo9QWxVSFLoCyUJX/TIP4/9rNPYKSw+yj G7vlhK5heF5/RFsVvDsTo1mA1Sbkd4ZiZbs5fWwPuF1uap0gQbB1ZDHu0RZXzYxQ2mtUen gkc/M8RlXLGtQkUFT+5HoZYmiQiHnXcsfv18/FMNdLQC1g6BSKYeRLI7VOapYHfYye4zzY JAHVRuvSvvflLm7ZSGprEy90tef2bV/8d4pG7Y8+31vu/0qMYyTxTniM7JHuWA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1715194017; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=q6o7L7QXNQvx0xNXZVcYSLNmrfCQqLomfxFWX4xHH3k=; b=0MhzSA9x0EOPrnFl/KOGroBOQUAMqQV0jrCVc0bIBA+Vx8Jul/sryS53O7hGT8AbFSWnh5 gDEIhEFQt+G9IMCw== From: Nam Cao To: Alexandre Ghiti Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: Don't use hugepage mappings for vmemmap if it's not supported Message-ID: <20240508184641.WP8ok_Hg@linutronix.de> References: <20240508173116.2866192-1-namcao@linutronix.de> <43829e94-98ae-46a4-a3e6-dbabbe94d7c1@ghiti.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43829e94-98ae-46a4-a3e6-dbabbe94d7c1@ghiti.fr> On Wed, May 08, 2024 at 08:22:43PM +0200, Alexandre Ghiti wrote: > Hi Nam, Hi Alex, > > Commit ff172d4818ad ("riscv: Use hugepage mappings for vmemmap") broke XIP > > kernel, because huge pages are not supported on XIP kernel. > > I don't understand why XIP kernels can't support huge vmalloc mappings, Me neither. > so I > think the right fix would be to enable such mappings on XIP. WDYT? I agree that is the ideal solution. But I don't want to send any new feature to the stable trees (stable folks may even reject such patch). So I intend that to be in another patch. Best regards, Nam