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 23B60C433EF for ; Fri, 12 Nov 2021 10:43:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0647F60ED5 for ; Fri, 12 Nov 2021 10:43:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234655AbhKLKqi (ORCPT ); Fri, 12 Nov 2021 05:46:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:43604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233189AbhKLKqg (ORCPT ); Fri, 12 Nov 2021 05:46:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2269C60ED5; Fri, 12 Nov 2021 10:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1636713825; bh=Qj72yeNhSNc7MUPjPv5VU8s3oafXSlRNI19trRuQtDw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nPjf8YdBfWVCfvk6YCZC1jXvdJa7z5K4hm67qa5KEUAjoo2waiZ+MZxUfHj6u6QF/ ibmy3d++dweh6bqvgoz10MnVllIuTEDgl9zs0oQLT2LrGvX3hbcMD4G2NTEYRzP8p2 H5ec3kCykBSnOwv0h9icaszZ4ulRs+OBOdX4QwQM= Date: Fri, 12 Nov 2021 11:43:43 +0100 From: Greg KH To: Richard Hughes Cc: Andy Shevchenko , Ard Biesheuvel , Hans-Gert Dahmen , Mika Westerberg , Mauro Lima , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , Philipp Deppenwiese , "platform-driver-x86@vger.kernel.org" Subject: Re: [PATCH] firmware: export x86_64 platform flash bios region via sysfs Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 12, 2021 at 10:09:14AM +0000, Richard Hughes wrote: > On Fri, 12 Nov 2021 at 06:52, Greg KH wrote: > > Why don't we just export these areas to userspace and let the decoding > > of them happen there? > > Unless I'm missing something, the patch from Hans-Gert does just that: > exposing the IFD BIOS partition that encloses the various EFI file > volumes. But it is not tied into the EFI subsystem at all, binding only to those resources. It does not do anything with any efi symbol or access control. Again, that's my primary complaint here, the driver HAS to be able to tell the kernel what resource it wants to bind to and control, right now it just "assumes" that it can have access to a chunk of memory without any notification or checks at all, which will cause problems on systems that do not follow that assumption. So while you all are arguing over oddities, the main complaint here of "this driver is not ok as-is" seems to keep being ignored for some odd reason. I'm going to just ignore this thread now and wait for a new patch to review. thanks, greg k-h