Received: by 10.223.176.5 with SMTP id f5csp2425443wra; Wed, 31 Jan 2018 23:58:42 -0800 (PST) X-Google-Smtp-Source: AH8x224H8/2mRpzOQE4ok4b3rmYl6czF7J+S5S7eXEXlYcvhPhCt8RSoQBqUDt8YgpqF1FXTs2RB X-Received: by 2002:a17:902:678e:: with SMTP id g14-v6mr30321236plk.309.1517471922821; Wed, 31 Jan 2018 23:58:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517471922; cv=none; d=google.com; s=arc-20160816; b=f5Jr03HtgVmR9ep8DF35Kms8jmfL6hlSzc0LXQVK0MViuTdlaPbMUqREvK7dba7Eid 35bHbfPxbESpV3rc8x79bj7qvs2iMPKM2DzJRUTqvt0lpEP/LKvnkGdmVS0UINl8U88G sX8bbV54wmK7WsFlfpPHLp6qTwUjnCN0EUL9W/ZrNTtYysuev0uXVCmuhke/XZSUVZsd dHIlg3TGq5WoEOQOYWeGNdB+yY5VduuekuCJkkYblEo+jGzRF3SVHAS2cvX1APpxDuey axN5dqCG8Vcr0hfbxSyCCE2XgZLfS2Ok4Z/kj/VfbTmBwGNCQWVhpfXoqpsVM6w5JyJV Mbsw== 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=kYsa6sNRPBXCPQdlowZYimTw7t10xLWGoAnzXxB+xUY=; b=pvcuvLCLEJg/Qngpr1+BMJKd1916xAIPm0BTVHx9zKTjHZpU4MAU+IGd0rxAo1V9F1 HpSMqlObuEPp7qzfmtVt2i9IaMyUGnjAeh7BO5QtuV4i7/8wbyJbOAn7XUbAitvFkm7v n0QCHM7zOTKHRNWyGe5xbawXA9bH+Kvpl/Et3J0gBCIzq27AJXQMaTih4YnvkSrbNBCE xePmcQLRA7dOVph3fevZPbGFEjgoZU++G/OMhU+uNTkCKpXjvx3DnyXxL7K6E686fwCp VezwVYV2oPqn6o+cwMtVaJzbtG/vCQeyAYR5diK7DCccMFzwtBZRtpKfmKCQoa565+Fh ao5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=kAIvPE1z; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5-v6si1531968plz.426.2018.01.31.23.58.28; Wed, 31 Jan 2018 23:58:42 -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=fail header.i=@gmail.com header.s=20161025 header.b=kAIvPE1z; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751801AbeBAH5y (ORCPT + 99 others); Thu, 1 Feb 2018 02:57:54 -0500 Received: from mail-ot0-f193.google.com ([74.125.82.193]:40964 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751272AbeBAH5u (ORCPT ); Thu, 1 Feb 2018 02:57:50 -0500 Received: by mail-ot0-f193.google.com with SMTP id r23so14558445ote.8; Wed, 31 Jan 2018 23:57:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=kYsa6sNRPBXCPQdlowZYimTw7t10xLWGoAnzXxB+xUY=; b=kAIvPE1zIT/X7mjuaruufusYUkqTKwxaqOOBStLHEUumqpH5zUXbuwxb/raTR2B0LS ktvF9gbby2+/Ai7e69dYgOwooevBv6pMLiGKP2voru5nEDTAl5DAibyxqFB/sApV2Da2 rbQj6IXidv3Wh3yemthYa2aStGgjAGaKz9MEteS+FEKab2u33Pd1ZV8u4lS7CUYSaXnc bTHf3G1s8G12s0owVESvTD3B7buRu+1jZ1xlbDt/HqXnkQl3gkeKCbJyisoOkjQJajQr 7Wg4bEofwhPCVtTlQddELenjYupmRzuWNncGaPH3/P5mUK00E3uhmtBfnVtzJFMaUY2f d81A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=kYsa6sNRPBXCPQdlowZYimTw7t10xLWGoAnzXxB+xUY=; b=SrKO6bGz1sj1CmcvS/cqEtpvkBLznMEe/1VDBR3qdniy94aNgPnY71O28rYImmq6J2 K08na1QG9xeMzrmU3rHkNrPbNKvVZq4SmFoscFqxjnhoIv49VCaBcAVS85J+hxj6kF78 BwIHHYNi5CXVXeUyJdc6j+FHmeFUbhMl4x5+pc3/O3qFn/KXsjpTyK8crxFoh2gEppjN Q3iAMhC+aefdcgksYXBNUV6qDIu3y1sLnl72AoCso/AKjxM3mdkZkB685LkXBbGWhCly LNnTzesn6snbRQX6CMCSaKc7fEekmFUoRZzWgc9RmAYUk3s0jq8od2hBGd2QvL/BvWIz lfqQ== X-Gm-Message-State: AKwxytdS08u85p+458BPrtadh8auYeC9bJSSP4yLbU5tCrWJ5wLiYcTg DyeXmjtKz1x85Pq9ceXOuHiiiafRKO2boh8VSG8= X-Received: by 10.157.0.184 with SMTP id w53mr8308247oti.367.1517471869748; Wed, 31 Jan 2018 23:57:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.46.234 with HTTP; Wed, 31 Jan 2018 23:57:49 -0800 (PST) In-Reply-To: References: <20180125143639.9969-1-jgross@suse.com> <20180125143639.9969-2-jgross@suse.com> From: "Rafael J. Wysocki" Date: Thu, 1 Feb 2018 08:57:49 +0100 X-Google-Sender-Auth: QX4fo36z2OEyLy_v3IG8Thr3dp4 Message-ID: Subject: Re: [PATCH v2 1/2] x86/acpi: add retrieval function for rsdp address To: Andy Shevchenko Cc: "Rafael J. Wysocki" , 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 Wed, Jan 31, 2018 at 4:43 PM, Andy Shevchenko wrote: > 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. IOW you'd like to have a set of ACPI init callbacks that could be defined by an arch, right?