Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58882C433EF for ; Thu, 11 Nov 2021 13:55:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3350961104 for ; Thu, 11 Nov 2021 13:55:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233568AbhKKN56 (ORCPT ); Thu, 11 Nov 2021 08:57:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232033AbhKKN54 (ORCPT ); Thu, 11 Nov 2021 08:57:56 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B877BC061766; Thu, 11 Nov 2021 05:55:07 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id g14so24558992edz.2; Thu, 11 Nov 2021 05:55:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tkAHHRELUR3r+2lukxo30sI9DzwFgcJtRiHk6YyjBfE=; b=nLlKfMMvzCLKY9hkrrxdIg+ATY/2fzIXErWKdMKOmbvypXaeA4UeZNQ19OCo2Zwwr1 zd8/YcAfB2ZIAPPykQd6Nv21RYMfVgglKgiPsd1GbafCoesPtfF8Wjwtfp+3Ma+9FT80 H+62xiUTd3T4Me6xC0QoMA8LR4t6rL8F5l425JvnhOlKpK68C8gupyHyTmdc5JRQ5vgX ism8uomf8kvHjZlbTB1VYYlPsQszDiMT3gnsVOmOGVT7gUIeo19kUExaTrG5rej26j3v 4NtbxF3lBZy4/0TqBQ2Ct3155lSDhFhy+sExk6JYUevqGSP0kq9DwOzubBybKvKZO/0S Brfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tkAHHRELUR3r+2lukxo30sI9DzwFgcJtRiHk6YyjBfE=; b=gFWw6qDqiypgGQnIzbf4WjTiPcMZ6n/layeD9rCzgguxjS7b4QxPVg6N5tyKLGVlJQ RnrhMb327wh+eOQririOsyLkYZTON0+KAy/Zp+TS+In/3g5vGo3+rdMq3Cl59PyhuKFW FdCHIlu1mrQix7IzOKO5cLJnn3Uprl7Q3soNICsQW2oyRmUoAmQBWIMR8rqjdZA0X42C 9rxkY89nOJbQWF/+qSchv7rvtUrJmmSoS+9hwBiL2tPix+kcW/yRSYxh+iT7nblb2tpc WDT7zoJz51rvaSoLBuuGGTi3iSBX56QXxo6uUKZRJ/fEVIH8qHvPeY+Ig4tVjADcxejJ AY6g== X-Gm-Message-State: AOAM532ald+/6YTHSUW412+3HBnrVEIvo3Txs+WWS7mBmCccMdgVIdbP FUFTLEzkNGv/kmdBERhiHburPqiAQCWSCh8emcE= X-Google-Smtp-Source: ABdhPJzIGR0yr2K/uYmW72GvEIHnQ6+Ni56Znw65lXQD9xptQmRMY6gNhUaJPd9WkD0ddddvNs+w9QPIr9ySKoRFgyk= X-Received: by 2002:a05:6402:c89:: with SMTP id cm9mr1443651edb.283.1636638906260; Thu, 11 Nov 2021 05:55:06 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andy Shevchenko Date: Thu, 11 Nov 2021 15:54:22 +0200 Message-ID: Subject: Re: [PATCH] firmware: export x86_64 platform flash bios region via sysfs To: Hans-Gert Dahmen Cc: Richard Hughes , Ard Biesheuvel , Mika Westerberg , Mauro Lima , Greg KH , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , Philipp Deppenwiese , "platform-driver-x86@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 11, 2021 at 2:56 PM Hans-Gert Dahmen wrote: > > Am Do., 11. Nov. 2021 um 13:46 Uhr schrieb Andy Shevchenko > : > > > > On Thu, Nov 11, 2021 at 1:46 PM Richard Hughes wrote: > > > On Thu, 11 Nov 2021 at 10:33, Mika Westerberg > > > wrote: > > > > > it's always going to work on x64 -- if the system firmware isn't available at that offset then the platform just isn't going to boot. > > > > Well, it's _usual_ case, but in general the assumption is simply > > incorrect. Btw, have you checked it on Coreboot enabled platforms? > > What about bare metal configurations where the bootloader provides > > services to the OS? > > No it is always the case. I suggest you go read your own Intel specs > and datasheets Point me out, please, chapters in SDM (I never really read it in full, it's kinda 10x Bible size). What x86 expects is 16 bytes at the end of 1Mb physical address space that the CPU runs at first. > before spreading further FUD. I have experienced u-root > and coreboot developers sitting right next to me in my office and they > were among the ones suggesting my patch. This is just laughable, > please stop it Andy. Yeah, zillion people can't ever make a mistake... I see. -- With Best Regards, Andy Shevchenko