From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C058288C2F for ; Fri, 28 Nov 2025 23:58:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764374285; cv=none; b=jLG1vgtUnQQrkm7XXiX4Cl5vHWX/XuKgqfRuy0EDg5AnwfJkvEbqgRHzF2kha1o6xETLmBG37bVszLONHNOYwkTcqed1DF4zdMT9EqkRyQPfeCHSnjQDv6ym8kontVwwRsTSI10MnHr8enHV2expdih8z95DRllM4f9Z6rcMOSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764374285; c=relaxed/simple; bh=SY/EHg6W48d8O2pSGhutlYyPPTSWcuItc5/a11Sy1kg=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=E50Cfc7/bdi8uV60GIOwhwkGvHmxb4AfSVzLsJ7SGmlhlsxXH4JkLJAI9wuC21ZGKk4Q5JAugoxVNkaB2mbYevMBvgIKTK/+VisW0SMDtmDBwurKf4xgYOsSBYsrTnUKQ1iMX0EdMMINwzbRRlXDGBG4XyU0Ccf796QTJxQ3rWg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca; spf=pass smtp.mailfrom=marek.ca; dkim=pass (2048-bit key) header.d=marek.ca header.i=@marek.ca header.b=HV7ffaOM; arc=none smtp.client-ip=209.85.160.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marek.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marek.ca header.i=@marek.ca header.b="HV7ffaOM" Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-4ee13dc0c52so19122261cf.2 for ; Fri, 28 Nov 2025 15:58:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek.ca; s=google; t=1764374282; x=1764979082; darn=vger.kernel.org; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=UrziiLoWQt42KZ+NdT4M3OxTtrrYi+ppUtKZx0c0ePs=; b=HV7ffaOMXzMhTKUtoC6mPOPoh3q8jYdwmKsdD/IVJoK6afSS/ah7aQXeuXTuiB+Xpx qU20ma+88KMPJwFQfJ/Y19GPlj85FpUYDgeT/i7uysZoEyrCJYsr4IWMP30JJIeHYytj FJNVtRyhssZilNVjUSGDOrJLR3rynDAZkHNE8Chjs6lEdlixraogUEDe87ZhrzZeSt7w mdTBXbVJaZEHrS830dxS4aPrQiEc3t84QGnJnSZ6awGk/ahzZSmNsS53rR6cU5txBHLL ZABtQ4OOioZXgfJ/yzpZdSrMR3F4bBOBDAgg9KQHW7Vp8wMnWTGTcWov84/JmjUpGHS2 /Zaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764374282; x=1764979082; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UrziiLoWQt42KZ+NdT4M3OxTtrrYi+ppUtKZx0c0ePs=; b=igsmsYpr5p138S0z/dcVBNW/azV5uyyO9/KeqkXU0LIR9kT/U9ArlP0AciGxHg4rQK JJ8HzI2/3ocNiuktKnhK0Oo6ZfXmpggkm+CC2K+69lTPtQmiO2d58POH2upXMYbM7uBf 20oZaAsb8T7znbNRNlZFBjVz0sen08CY91zVibsPfzmGDIb/ZSFcm+wpYW7MGBb56sHq Gj0PVcon746PA9xlbCMsefxKwkQ65/OOLeagX9hf3tsu7U9EGvR0E72FhT8di1Z5Lwwg uPjlXs40qV44CZBBCawnOjTa/I16MmqgJNYHv8i8tL5ELJMbv3KqLZ+MccmVLxZiGVDM 02pQ== X-Forwarded-Encrypted: i=1; AJvYcCWF4OUJpdIJz/pxmvpA+n46JhuXAkpA37ni5VUnTo7651yGPCp854LTeULcXaXG8Wd2RV0Vezq9EkZ97Ss=@vger.kernel.org X-Gm-Message-State: AOJu0YwHKBraQ0Rz+b74uffF4BO84ITNJyDWq3+/lEC0VZMlKYBf80U8 czTBuse7j6O/FuJxuOSZrwhFIWuAZTF3ieZIpmdJOHLoIyHqx1Va8z2M7r/qNN5EYLd8dS6qPDE 0wBWn X-Gm-Gg: ASbGnctTkRUm/Kq/W6Mhi4f6RHM5qnYwxVH6Lbch1tCvejyxMgtPj48QQ7e7N31mZ6B tShohqLNoWtyYwMFQomrqJcLs0GNhivlKzYlZVKvgzHXvbUx//avzBFpgdB45pVT+jmK9/PQD9Y cBJywLxECJcrA2emmpceZWsp+PuD2nlCxZaGjCeda+c9QjKMS76jFTeUsLoKlKXAe+8odWTu7BU A0+W/Xr95fAY2qFIHL8A6FqEesHqJnrsGfEHzUc2OB1Jed1cW32yGNggaGr1kDEJJRP+eAyc8vf JYhLfzGSaF9inY3tOHw6+kk6Yfxw+NSf8MPaINXjoHnfZv6yfa4Jtc9J/QaR4WZfEJhuOtPpjuD pTzaRx4wdVdraEuzYIyWa28nRGiRBYpZqj9i5HkNSdbSN+TX/HAye+rlOT3ubSTkiflaKnLd3PF 8e9VbA1rkk6ErbwPkcGFOFqHxI4HMD/37jRcG4jPUHICEWYUu0+NeAiznbxw== X-Google-Smtp-Source: AGHT+IEnf888i0RTZmv/jkc/n6VWyQPoARdQlGkxMDj48nvQ/lYIodw6c8ly2PHjP4UdRQ56cz3d2Q== X-Received: by 2002:ac8:5f0a:0:b0:4ee:1b53:ca70 with SMTP id d75a77b69052e-4ee58aa0a0dmr404048241cf.23.1764374282540; Fri, 28 Nov 2025 15:58:02 -0800 (PST) Received: from [192.168.0.189] (modemcable125.110-19-135.mc.videotron.ca. [135.19.110.125]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-88652b8efa9sm37078486d6.50.2025.11.28.15.58.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Nov 2025 15:58:02 -0800 (PST) Subject: Re: [PATCH] arm64: dts: qcom: x1e: bus is 40-bits (fix 64GB models) To: Christopher Obbard Cc: Stephan Gerhold , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sibi Sankar , Abel Vesa , Rajendra Nayak , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list References: <20251127212943.24480-1-jonathan@marek.ca> <1aa75dd2-6fb4-e9ca-ca27-c0bd910246fe@marek.ca> From: Jonathan Marek Message-ID: <35615ad4-5b86-577f-4695-c6cd85206334@marek.ca> Date: Fri, 28 Nov 2025 18:56:55 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit FYI, for a less hacky solution you can use CONFIG_ARM64_VA_BITS_39, arm64 linux as-is refuses to use any memory it can't identity map (and the extra 32GB of memory is outside the 39-bit range). On 11/28/25 5:10 PM, Christopher Obbard wrote: > Hi, > > Sorry to hijack this thread, but I've been carrying this patch to > workaround the buggy firmware from Stephan for my Lenovo T14s with > 64gb RAM which seems to make Linux boot & work just fine with > systemd-boot. > Of course, it's a hack and not ready for upstream. > > On another topic, perhaps we need to add this to > https://gitlab.com/Linaro/arm64-laptops/linux , what do you think > Stephan ? > > Chris > > > commit 16e21600c6a65ace0c75b5a722e27ced8e1bfc48 > Author: Stephan Gerhold > Date: Thu Mar 6 17:41:15 2025 +0000 > > HACK: efi-stub: Exclude 40-bit memory > > diff --git a/drivers/firmware/efi/libstub/efi-stub.c > b/drivers/firmware/efi/libstub/efi-stub.c > index 874f63b4a383..355a9b2c0818 100644 > --- a/drivers/firmware/efi/libstub/efi-stub.c > +++ b/drivers/firmware/efi/libstub/efi-stub.c > @@ -106,6 +106,17 @@ efi_status_t > efi_handle_cmdline(efi_loaded_image_t *image, char **cmdline_ptr) > { > char *cmdline __free(efi_pool) = NULL; > efi_status_t status; > + efi_physical_addr_t addr; > + unsigned long pages; > + > + addr = 0x0000008800000000; > + pages = 0x800000000 / EFI_PAGE_SIZE; > + status = efi_bs_call(allocate_pages, EFI_ALLOCATE_ADDRESS, > + EFI_RESERVED_TYPE, > pages, &addr); > + if (status != EFI_SUCCESS) { > + efi_err("failed to reserve upper 32 GiB (40-bit memory)\n"); > + return EFI_OUT_OF_RESOURCES; > + } > > /* > * Get the command line from EFI, using the LOADED_IMAGE > > > > > Cheers! > > Chris > >