Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2501079imm; Thu, 9 Aug 2018 14:10:43 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyVHs0YdZjgszlxo9RfCRAY+4Ph+C8GTPSNGO6GRtlsLCZEkNZ+YoJJK08FM8O5mvDhHJsl X-Received: by 2002:a62:6948:: with SMTP id e69-v6mr3983440pfc.166.1533849043518; Thu, 09 Aug 2018 14:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533849043; cv=none; d=google.com; s=arc-20160816; b=ovtM3khcC2DtTcNEGgtqIUTkySjSmTz8XfXOi+o428UX1Y97kANWAtmoYiRwjZcVHv 9e+bXqaZKUX1/xljhNtB7ri5AiLU5uBpm0FWHkTNeLkxMW0/z12rQq7jl14mHsLHLKZm TZOGdAtMISm+/BeViHdBl7D84OZkj5F48U4gTdD6ad963Y7TaH+6ChE1VgASmwjCeHMH lTEpC64keAd1bis7by5eOzrG/VYto53P4wXwoX0IIrnllhjqCxkkBVKuWCmQoEff8QkM HD8j4swn4qRL0c2kSPGxHqVU2RQLYtVVEIBe4ofmuemqtRT34EsKxIpucyH3UnRrIZKU hUXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=FmgkmGYPVQMjcc62pVV/RXIRRnmQP+YI7wT1PZOI4AE=; b=trelMKimgIot0IIF1YIw3l/wJQKcQsdV1oQEs+iWyx0y5QHeQ2sOKZoWSQlbkxW7h3 mFoEPmPq7uJlXQAk1i1COccWI6RIstsfC8PnS9aVDYZWwHVVESsEIRhg1F523geqPZ7i HIUaKKgI47d3pAlfstjxgAS2X0ZqzSew+SzMJAaCcmMP/byxiX7NXj0gEU38ZvgFqv2v YXd7V5tvQ69OTWiEEOzs9nIxjNHTbTO1tozaoxH/umshGAsD+3Z2ZpBCG5MvHIYzwhcX wWfvgOZUDDHOOXZoJwhPt4XGbhRM+keFWKka+VrGdHZdjUlCrB4IfSLHH8CgOZIn7QoW sf7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RmAByoZ3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h34-v6si6270634pld.355.2018.08.09.14.10.28; Thu, 09 Aug 2018 14:10:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RmAByoZ3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727375AbeHIXeW (ORCPT + 99 others); Thu, 9 Aug 2018 19:34:22 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:38642 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727198AbeHIXeW (ORCPT ); Thu, 9 Aug 2018 19:34:22 -0400 Received: by mail-yw1-f67.google.com with SMTP id r3-v6so6626286ywc.5 for ; Thu, 09 Aug 2018 14:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FmgkmGYPVQMjcc62pVV/RXIRRnmQP+YI7wT1PZOI4AE=; b=RmAByoZ3VB2R06qKvmM0wF9e6LWJsK37EL46qHsJOA6XFXzTJJGO3+TwGRFBy3NAfx AsidcPRx6xB7ajkGZ3Em5SGfAn8I85GzW03rKUJZjZHkK3y4xBfr6WnhtmuMwcmDdm0v MvdNdXNI2aHzKACUOSyheqovPxobjn+mQyA9A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FmgkmGYPVQMjcc62pVV/RXIRRnmQP+YI7wT1PZOI4AE=; b=DIgdjUtD//3OTZDQnV3hUSRVQ/9yZJ6tzY4CG/e0o6oGlZ+q1ZKC+cjjtU8vn9YcoJ QWNfkeYjn6QrlkYiKGtNZxvnPiF/cV22xAw5F4hlSIt+h1ewJtp5VgH6XcSTaHXZyiQh zSTZo3Kq2pNFQFuvsayO6EDep+t9QB97r8Zcp2BXa/sP38NiwgcAT2Ya8TjiaeixoRUn 4kqKhp4bsujnP5+AHZ8H5EU+rrwJJFPTlfi+A1CIGeaRE+605Jt4oXfO/aZ0GLK3W3AX aaJqrLFB0bb3V/rPk4GShY4F6UzO4T+gxXk686QY37mT0t5qq6oMM+s2kBtMY0OxhvXz 6iaQ== X-Gm-Message-State: AOUpUlFvlmubJN3PvcgV9IJg9LJIFH9Muh1Lpvd8+FVkw9wEcLQg4QY6 R9+VOjKYUiMm5yw/7TtVrmUMoe3SC/DhGE3P+w0fukx9 X-Received: by 2002:ab0:2089:: with SMTP id r9-v6mr2575138uak.71.1533848865192; Thu, 09 Aug 2018 14:07:45 -0700 (PDT) MIME-Version: 1.0 References: <20180809171722.144325-1-swboyd@chromium.org> <20180809171722.144325-8-swboyd@chromium.org> In-Reply-To: <20180809171722.144325-8-swboyd@chromium.org> From: Julius Werner Date: Thu, 9 Aug 2018 14:07:31 -0700 Message-ID: Subject: Re: [PATCH v3 7/7] firmware: coreboot: Request table region for exclusive access To: swboyd@chromium.org Cc: Greg Kroah-Hartman , LKML , Wei-Ning Huang , Julius Werner , Brian Norris , samuel@sholland.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 9, 2018 at 10:17 AM Stephen Boyd wrote: > > Call request_mem_region() on the entire coreboot table to make sure > other devices don't attempt to map the coreboot table in their drivers. > If drivers need that support, it would be better to provide bus APIs > they can use to do that through the mapping created in this file. > Does this prevent userspace from mapping this region via /dev/mem? If so, let's please not do it to not break compatibility with existing tools. (I guess an alternative would be to rewrite 'cbmem' to use /sys/bus/coreboot/devices if available to get its coreboot table information. But we'd still need to maintain the old path for backwards compatibility anyway, so that would really just make it more complicated.)