From owner-svn-src-head@freebsd.org Tue Aug 14 15:34:45 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BF1D107BAFC; Tue, 14 Aug 2018 15:34:45 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2EE7875293; Tue, 14 Aug 2018 15:34:45 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-pf1-f179.google.com with SMTP id i26-v6so9395066pfo.12; Tue, 14 Aug 2018 08:34:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TYwK0lXAWjEcOEpxWT0csZ6dwuBzMdWa0wgswKxZa78=; b=NtuLWBlKTL6RHtFuc/SLw1AlYP9dqWU85edRjFQjZD6sAnlMulPbbXEXTgL/GuIb8p 4NQFVhyKA/lijGIcUZlwlcKhIpR1WQ+ZCL3GjE5+9VuHpfT4TIlP3Wp7MpipG1/3juB/ wuEU8+EydMk56r99EtRddUMAwB5O6nITrShzaS8rYQ9a84fud+GNQmsv9gcQ8hEUNPry qNfPzwaK75o0s1vOd8j+knjBmlwJyyPFhy6OW7a7uhabXtprKmSjzWq5iegOfkUx+CG/ Fm41h10idFznbdPS96d5ZlykgyQ47vjFl+/gqSqNemhtKMc3zaTfv4M/SuCihvdv9V6+ 1stw== X-Gm-Message-State: AOUpUlHkzPi1YlWZnN48R2AP69bMMNyV1Nznjc+pNlwzHnepZ8JJ6aFC 7/qtYhLMdAuuuCn/1S3MlVHXaKcF X-Google-Smtp-Source: AA+uWPxVOR1YbU9QAAKdwlurBCrZt2d5afB+MMQ8QjWiFZaHRTrvtWvT3GgMtPxw5KN2B9sOTI9OaQ== X-Received: by 2002:a63:d401:: with SMTP id a1-v6mr21348295pgh.414.1534260878270; Tue, 14 Aug 2018 08:34:38 -0700 (PDT) Received: from [192.168.1.36] (broadband-82-140-243-117.atc.tvcom.ru. [82.140.243.117]) by smtp.googlemail.com with ESMTPSA id e7-v6sm42623916pgc.55.2018.08.14.08.34.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 08:34:37 -0700 (PDT) Subject: Re: svn commit: r337754 - head/sys/x86/x86 To: Mark Johnston , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201808141402.w7EE2seW007725@repo.freebsd.org> From: Andriy Gapon Openpgp: preference=signencrypt Message-ID: Date: Tue, 14 Aug 2018 18:34:34 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <201808141402.w7EE2seW007725@repo.freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2018 15:34:45 -0000 On 14/08/2018 17:02, Mark Johnston wrote: > At some point memcpy() may be an ifunc, ifunc resolution cannot be done > until CPU identification has been performed, and CPU identification must > be done after loading any microcode updates. Wouldn't it be cool if before an ifunc is resolved (to a proper optimized version) it pointed to a default implementation that is sufficiently naive and robust that it can work on all CPUs? But I don't know much about ifunc implementation, so no idea if it can work like that. -- Andriy Gapon