Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1661517pxp; Thu, 17 Mar 2022 13:54:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSoyskG+NAAOWBE9aGmqgnKi7Nhhhyznaa6dORLskaeuk6DYCJ6qEGwwXFI4VA67QXGe9N X-Received: by 2002:a63:1d6:0:b0:380:a063:660c with SMTP id 205-20020a6301d6000000b00380a063660cmr5246321pgb.149.1647550461923; Thu, 17 Mar 2022 13:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647550461; cv=none; d=google.com; s=arc-20160816; b=MauX+wg9slYDVGjckF/oyyYJT4dtLEtaCOSh0oX3bsWDnvZTiuvvcOwsCI6HwsADEH Kav0tL27AFd8nHpRQ5ZqndxcEXi4goO5YEQusB+IMllyrG+sC+gCbxza/3x4cod+DyTI xYvOQNOdn0MJVRD50VZQm8i3wg3PrzGu3ERQM8ELkpyjGTUAIboJsjVignH09fDrauOB uTdaqIbLq/BSjJY237wtzOxxOUlhvxq38Esc888tgHcYEalqdPDxEx5JLUPcrUGW2Z1r FN4YqGh3YPqcJJ3alQiUVV4hNJf2pTR3PPWf6a+W6JKLpFTIkV+Z+PC/SIaI8KYywpEf kq4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=nnGUrCMUdxP0tQk+bZRr1C2NA3gd3h8GoSaOPmSPDHA=; b=hquogM7hpQdFQLUZxWgceEsfPgeOb446Lr6Rnxt8T+6tMXGiaqQo4lpuvXSKUsuRZF 7wUsfJZgWLDGokZRG40gnV6cM51ZVzxkWkXpt6+LB920Hp4XJRRVvLO+gJgghVtd5mZA cyd/SGiopZKNUS6SUqVY/4NIqK8vcV2IRgzhB3sBFvXdwu+Ww1mFJg9GLO6Ohd3sRlLW 7Gj5A0gf9ucvfhizakCktBwROwDJUuwf23LhY2pPgThS3nPraZ51JyjQFtC+hYL7EVUQ OLYoDvVxDbdi65QLUfOLl9rGjlqG3k97uIANgYuAa0j2i6Fnrv20flh+BHxzqLCH/ibO uFPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Nz3qWsTJ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j4-20020a628004000000b004f6c5b16f26si5616853pfd.243.2022.03.17.13.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:54:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Nz3qWsTJ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 959BF132EB8; Thu, 17 Mar 2022 13:20:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229532AbiCQUVg (ORCPT + 99 others); Thu, 17 Mar 2022 16:21:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229474AbiCQUVf (ORCPT ); Thu, 17 Mar 2022 16:21:35 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0BF411D7B2 for ; Thu, 17 Mar 2022 13:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647548418; x=1679084418; h=message-id:date:mime-version:to:cc:references:from: subject:in-reply-to:content-transfer-encoding; bh=Mba6ta1EoHObOAj5Feslq0rb37eP/AFas+biwgDwPFw=; b=Nz3qWsTJ7ohSjAk/HK4N/7S8B9ZpWKIGI958yxDSsaQSKhM9dF8X/n5C ohAERJoULVILQj60TSiSZVkOO4Er57bbNU7jPIHfZKZ28EX/lnwJOdfhI pNbtxfAESMkHp4eau7YUAQukq9esxaMloY5TJ4HyGxZ0iYkmXtbjih7FI l2OMsjgypXE20z5MvfLG5OCx5if4HM4w2dX9ujOFcJB7y+czl5sYaL7Q3 tawwpJdBPdQ/vjjm57sP/KD8kO+GuW2hVrzy7YwT2z4JbgWXBryFV/sRt oh6Lqxi5s3zdmuEmRInMu3WK97RjxNZaC93lLlDFaybj97dOilaoV1hfh w==; X-IronPort-AV: E=McAfee;i="6200,9189,10289"; a="343409951" X-IronPort-AV: E=Sophos;i="5.90,190,1643702400"; d="scan'208";a="343409951" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2022 13:20:18 -0700 X-IronPort-AV: E=Sophos;i="5.90,190,1643702400"; d="scan'208";a="516911394" Received: from dstanfie-mobl2.amr.corp.intel.com (HELO [10.212.178.19]) ([10.212.178.19]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2022 13:20:16 -0700 Message-ID: Date: Thu, 17 Mar 2022 13:20:07 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: "Kirill A. Shutemov" , Thomas Gleixner Cc: mingo@redhat.com, bp@alien8.de, luto@kernel.org, peterz@infradead.org, sathyanarayanan.kuppuswamy@linux.intel.com, aarcange@redhat.com, ak@linux.intel.com, dan.j.williams@intel.com, david@redhat.com, hpa@zytor.com, jgross@suse.com, jmattson@google.com, joro@8bytes.org, jpoimboe@redhat.com, knsathya@kernel.org, pbonzini@redhat.com, sdeep@vmware.com, seanjc@google.com, tony.luck@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, thomas.lendacky@amd.com, brijesh.singh@amd.com, x86@kernel.org, linux-kernel@vger.kernel.org References: <20220316020856.24435-1-kirill.shutemov@linux.intel.com> <20220316020856.24435-16-kirill.shutemov@linux.intel.com> <87czik22wk.ffs@tglx> <20220317201054.5wdykfru5hhvukvd@black.fi.intel.com> From: Dave Hansen Subject: Re: [PATCHv6 15/30] x86/boot: Port I/O: allow to hook up alternative helpers In-Reply-To: <20220317201054.5wdykfru5hhvukvd@black.fi.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/17/22 13:10, Kirill A. Shutemov wrote: >> Hmm? > This kind of initializations are problematic. They generate run-time > relacations that kernel cannot handle in the boot stub. Linker complains > about this: > > ld.lld: error: Unexpected run-time relocations (.rela) detected! > > I will leave it as is, unless you have better ideas. Right now you've got: #define inb pio_ops.inb You keep the preprocessor away from things like foo.inb = bar; with: #define inb(x) pio_ops.inb(x)