Received: by 10.223.176.5 with SMTP id f5csp1527446wra; Wed, 31 Jan 2018 07:44:38 -0800 (PST) X-Google-Smtp-Source: AH8x226JvxmHchZIxngtIpKkpfmCRGAI+nGOcesAAvzAFlyEcpendD9YKtxz5i6DE271jGJg38lb X-Received: by 10.98.11.17 with SMTP id t17mr34118520pfi.201.1517413478100; Wed, 31 Jan 2018 07:44:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517413478; cv=none; d=google.com; s=arc-20160816; b=JQpTJvMBHzV/LfQvqaTAadjrVBR4+xDqBqtT4gTDtHOCTz/s4mog1yEAZVyZRioOWR Lm3M8ceVqQB5aSnYiNQD/jva9aI6El1JMuca8pG38V2LwCLlxMAFoDwU25mngIHIYfTv lXg7AQRBnqQbBGdi07ZoVgCAd1KFTBLvzSxSOXurxvMtCHnTZk5sFfwG3J1XuieyJnaD a2lSxlA0nNS4g7scquABVWhTrfMCFQZigXX0TurKu72Icz/KJSG87ozOOviyVzBmOcOf mA/4VXUheBVLCQe/HNVk3fnzMZ+f7PZA28697y1BwAQ+x1nshj2C8XuowGXxX7GInc8k xPDw== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=c1Glr3TT2I0H51gMfTbyEs3jVFwh+nyH81TgSTI1GSY=; b=RjVSTzwY5PfDQftJ4Z2pfNebIOyuDbArBMQIUx1Xkz0NTefzhiFzd+fc/Ql4fGRFZI BNlwwQNvPsLNng/AnXlr+ew2WAOCCpwbhndRcVyYAljKjHzj1vd3qzbm2qN65eD3zhBd 7ubROhLH+1/fY00Fqpp/OB5M6L1UHj3IHiGmU+1OOlY4+GeCD0NY46EMsMuhvhZsLyNz sYcwtBxWPzyk9dbPmQd2UmJXD5lBT7aKMyH7LWtcI6qrr7svXV3CCAO4OgVnStczVdlP OZ1jgOpqN8QKdxYYvhszOHPOSbhN6rNGpBCK9F5CM5XtpmwMZyRV8BsHi5ngHUSLE0yO LFxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QIXHuWd4; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si58225plz.410.2018.01.31.07.44.23; Wed, 31 Jan 2018 07:44:38 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=QIXHuWd4; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932230AbeAaPno (ORCPT + 99 others); Wed, 31 Jan 2018 10:43:44 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:35051 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932087AbeAaPnl (ORCPT ); Wed, 31 Jan 2018 10:43:41 -0500 Received: by mail-qt0-f196.google.com with SMTP id g14so22384366qti.2; Wed, 31 Jan 2018 07:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=c1Glr3TT2I0H51gMfTbyEs3jVFwh+nyH81TgSTI1GSY=; b=QIXHuWd4YQ2Xyr6Go2XKOb3zooMJvLuKA2no29/md6VG0qyp9BG+numTP7N0TaFLq3 u1iah2bQ2LhqS95oG30teCRMlLu724rg7gtlvoY5GtmUfyb9rXDZJg6DetQ+ZAGWNm3q v7w7zX9ItOc3QI8KUB/tq9uiMiVifvDlJrHs6czMek2wGoOZ0nCJIjE25iIM8XtKHQWU 44TM1a9eGrvoqUTVR0cP8CN8mpAOxmsZhlmg/jFLDWxEn3+LkXZQcEPoNXt+YHTw3wbc 4OdwiGX4pHgMi/WUufqeJ11++bP48/KtdBe0p5XMHDUNgLY8ct5b0ztdQ0Y/OTzzJwyg P5hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=c1Glr3TT2I0H51gMfTbyEs3jVFwh+nyH81TgSTI1GSY=; b=n3S4PGw2AHm3mFRvFbn3KLo98+i1LaiN/dFS0NOedB6H4nO4vx1gG0/YBTdwMj8Aii zQIw7BAeWdtS6p1iuIrUqPkzaweLoQsjnEopocDQXaYvJ1+4zw4YLkaGgym2haKuPCem wjubsYHDuadeirFEEUgHjOp8pxoMYq4x7BL29rFnWUmIDkpmAp+Iu+S99F2MHDis1e8w LagbZm0f7I9m1Larmn6DIrm1jgjicZIkxSPinhNnX1Sls4Gz8NFicmXLAAbwXgHJjX4o YYG5pTgMkW3723FZlD0ibugdsv1dxA+YBNXKELRzhJCgJr/qIl0q58PPld/SXLAX09Ey RF7A== X-Gm-Message-State: AKwxytcXoXOTI2Sr+qFim4gt5ybJBeAzOphtfE/+hvBuPkI0L2XKNV1l /+pTGTiWlImqXOhxueI5cMfK7XooDV6CFmjxrZc= X-Received: by 10.237.58.226 with SMTP id o89mr53058359qte.207.1517413420709; Wed, 31 Jan 2018 07:43:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.175.35 with HTTP; Wed, 31 Jan 2018 07:43:40 -0800 (PST) In-Reply-To: References: <20180125143639.9969-1-jgross@suse.com> <20180125143639.9969-2-jgross@suse.com> From: Andy Shevchenko Date: Wed, 31 Jan 2018 17:43:40 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] x86/acpi: add retrieval function for rsdp address To: "Rafael J. Wysocki" Cc: Juergen Gross , Linux Kernel Mailing List , ACPI Devel Maling List , xen-devel@lists.xenproject.org, Len Brown , "Rafael J. Wysocki" , Ingo Molnar , Boris Ostrovsky , Stable 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 Mon, Jan 29, 2018 at 5:02 AM, Rafael J. Wysocki wrote: > On Sun, Jan 28, 2018 at 4:04 PM, Andy Shevchenko > wrote: >> On Fri, Jan 26, 2018 at 8:21 PM, Juergen Gross wrote: >>> On 26/01/18 19:08, Andy Shevchenko wrote: >>>> On Thu, Jan 25, 2018 at 4:36 PM, Juergen Gross wrote: >>>> The problem with weak functions that we can't have more than one >>>> implementation per kernel while we would like to built several code >>>> paths. >>>> >>>> I have stumbled on the similar stuff and realize that. >>>> >>>> Perhaps, one of the solution is to have an additional struct under >>>> x86_init to alternate ACPI related stuff. >>> >>> I think we can go that route when another user of that interface is >>> appearing. >> >> Why not to establish the struct? At least this route I would like to >> go with [1]. >> >> [1]: https://lkml.org/lkml/2018/1/17/834 > > Maybe I'm a bit slow today, but care to explain what exactly you mean? Instead of declaring function as __weak, establish a new struct for ACPI related stubs and incorporate it into x86_init. That is my proposal. I think I would go this way in my case where I need to treat differently ACPI HW reduced initialization of legacy devices. -- With Best Regards, Andy Shevchenko