From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-f68.google.com (mail-ua1-f68.google.com [209.85.222.68]) by mail.openembedded.org (Postfix) with ESMTP id 76F9878EFF for ; Fri, 14 Sep 2018 00:03:20 +0000 (UTC) Received: by mail-ua1-f68.google.com with SMTP id 101-v6so6169012uav.7 for ; Thu, 13 Sep 2018 17:03:21 -0700 (PDT) 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=fSs+uULa1CkkKF08+dUWcSfF26/oLIOdNCAtbfY+lQ0=; b=cZ/O8JJ1CxUwhJJWbUUzw6LjzHymVJehmBUW4I7Q8ksAqMDlWNqCduWatSLM6WBqqi 3XnIkpPajBITYgT0KoQmfx4vwSIV4vhAj+o8jSXyRO4gf2fGVJ64HecVVivghLNZCZtv y2jlRUZxa0g/iX9diDHXgynI9/5AKZc5tSbKEFPacQ3kvsejhDo4aRf9lcdPpcoTGds7 42kGQdg8mp0+TCOEcrbShyY7DvWttg10bjlKPDI1tQLrHdDvQCA8dUu0GTYM9yIBGcnx En5dtNSMqpuDy5cBIDHORtMvowz9+7BfqGReRxzNHKdXFULwAyzbB1KFxJkhAvCbsVJP ruFg== 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=fSs+uULa1CkkKF08+dUWcSfF26/oLIOdNCAtbfY+lQ0=; b=OaKbpIAVJz7nBUnPcFPn2m81XAddImiyF5yyzLe4eYFw/jauH3Wsy8wbODT0bDuZ5Q FKsG/6eCbIFb8IXF4NuuOBbrGcCJ/s+m2LKbnpiJclUkb6QIm4IUJv+TPCr3fw5Yy31V +V7NQv1P6+RfLBqtBv4s7csph4o34AXCc0F2UzoOjojwtiwybSNZBg7HJD+8TUrQPvP5 XQrvL6ZrmeDiTChcydqulCARvkJm4bl7mvYqgO4d1TiuJcVhS7fkJKWUiO/Q8+xUwdKi 8TGTFwEm8b0GzApRvTZ1+lynFNLFbDrirFT4xiT4qYnFTo3evp4DhBrid4Lf7CAwpem8 hCdg== X-Gm-Message-State: APzg51CMAredgX1Y7S5Ws3fPX/52uFYR4EYnu+pskkVlEyG7AlS+Pi9+ whvZ47YqWDY7Z6QB8FbfARjkJwn/2PpPGNY1x08= X-Google-Smtp-Source: ANB0VdbG/zCV1ezgR8z4VMh81ZU1YsJ/+nkF1CvC3HVnetKhaghP3aum6p3vCIj4FhJNpeT+nj+5OP8s/od3Kfm54d8= X-Received: by 2002:a67:dd01:: with SMTP id y1-v6mr3313708vsj.93.1536883401187; Thu, 13 Sep 2018 17:03:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:2904:0:0:0:0:0 with HTTP; Thu, 13 Sep 2018 17:03:20 -0700 (PDT) In-Reply-To: References: <20180913072547.12321-1-anuj.mittal@intel.com> From: Andre McCurdy Date: Thu, 13 Sep 2018 17:03:20 -0700 Message-ID: To: Anuj Mittal Cc: Patches and discussions about the oe-core layer Subject: Re: [PATCH] tune-core2: use n270 instead of core2duo X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2018 00:03:20 -0000 Content-Type: text/plain; charset="UTF-8" On Thu, Sep 13, 2018 at 4:46 PM, Anuj Mittal wrote: > On 09/14/2018 06:50 AM, Andre McCurdy wrote: >> On Thu, Sep 13, 2018 at 3:16 PM, Martin Jansa wrote: >>> Is this different issue than what was discussed in: >>> https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg109516.html >>> >>> The message is slightly different (might be changed in newer qemu used now), >>> but the issue I had before was that features of selected -cpu and host cpu >>> didn't match and qemu failed with: >>> qemu-system-x86_64: warning: host doesn't support requested feature: >>> CPUID.01H:EDX.ss [bit 27] >>> when some features were missing and kvm was used. >>> > > The message is different in this case because that one was for KVM, this > one is when using user space emulation so it's checking what can be > emulated and what is being asked by way of -cpu parameter [1]. > >>> If it's the same root cause, then it's not a bug in qemu. >> >> Thanks. Looks like it could be the same issue - if qemu is running >> with KVM on a host which isn't natively compatible with the full >> core2duo feature set. > > Similar problem, but a different issue in my opinion. So these features > (lm, syscall) that we see warnings about are only seen when building for > 32 bit while running qemu-i386 for executing postinsts. > > Looking at qemu commit logs, it doesn't look like these two features are > supported with qemu-i386. So, I changed the qemu -cpu value that is used > with qemu-i386 to a lower denominator which still supports the > instruction set that we build for for 32 bit. If KVM isn't involved then it does look like a qemu bug, ie the -cpu core2duo option enables features which the emulator doesn't support. Right? > [1] https://wiki.qemu.org/Documentation/TCG > [2] > https://github.com/qemu/qemu/commit/4586f157757acc5c8edcc954289c7aa51661235c > >> >> From the Yocto bug these warnings are coming from the nightly builds: >> >> https://bugzilla.yoctoproject.org/show_bug.cgi?id=12916 >> >> Has something changed recently? Have the nightly builds moved onto an >> AMD machine? >> >> >>> On Thu, Sep 13, 2018 at 11:33 PM Andre McCurdy wrote: >>>> >>>> On Thu, Sep 13, 2018 at 12:25 AM, Anuj Mittal >>>> wrote: >>>>> Fixes warnings in builds using core2-32 tune: >>>>> >>>>> warning: TCG doesn't support requested feature: >>>>> CPUID.80000001H:EDX.syscall [bit 11] >>>>> warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm >>>>> [bit 29] >>>>> >>>>> when executing postinsts using qemu-i386. >>>>> >>>>> i386 target doesn't enable CPUID_EXT2_SYSCALL and CPUID_EXT2_LM [1] >>>>> while cpu choice of core2duo that we use for core2-32 TUNE does [2]. >>>>> Use n270 cpu instead to use with qemu which supports SSSE3 and doesn't >>>>> have these bits enabled [3]. >>>>> >>>>> [1] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L739 >>>>> [2] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1439 >>>>> [3] https://github.com/qemu/qemu/blob/master/target/i386/cpu.c#L1603 >>>>> >>>>> Fixes [YOCTO #12916] >>>> >>>> Is this working around a bug in qemu? >>>> >>>>> Signed-off-by: Anuj Mittal > --- >>>>> meta/conf/machine/include/tune-core2.inc | 2 +- >>>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>>> >>>>> diff --git a/meta/conf/machine/include/tune-core2.inc >>>>> b/meta/conf/machine/include/tune-core2.inc >>>>> index c686bb4682..ddde719bde 100644 >>>>> --- a/meta/conf/machine/include/tune-core2.inc >>>>> +++ b/meta/conf/machine/include/tune-core2.inc >>>>> @@ -21,7 +21,7 @@ TUNE_FEATURES_tune-core2-32 = >>>>> "${TUNE_FEATURES_tune-x86} core2" >>>>> BASE_LIB_tune-core2-32 = "lib" >>>>> TUNE_PKGARCH_tune-core2-32 = "core2-32" >>>>> PACKAGE_EXTRA_ARCHS_tune-core2-32 = "${PACKAGE_EXTRA_ARCHS_tune-i686} >>>>> core2-32" >>>>> -QEMU_EXTRAOPTIONS_core2-32 = " -cpu core2duo" >>>>> +QEMU_EXTRAOPTIONS_core2-32 = " -cpu n270" >>>>> >>>>> AVAILTUNES += "core2-64" >>>>> TUNE_FEATURES_tune-core2-64 = "${TUNE_FEATURES_tune-x86-64} core2" >>>>> -- >>>>> 2.17.1 >>>>> >>>>> -- >>>>> _______________________________________________ >>>>> Openembedded-core mailing list >>>>> Openembedded-core@lists.openembedded.org >>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core >>>> -- >>>> _______________________________________________ >>>> Openembedded-core mailing list >>>> Openembedded-core@lists.openembedded.org >>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core >