Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2929814pxy; Mon, 3 May 2021 11:07:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdX4ziE2Ljf09ccZj18LdUwhfQ1rkdMn6I2qsy4wAs83TgjAXAbec01evfRKpsvUTXW9Am X-Received: by 2002:a05:6402:270b:: with SMTP id y11mr3504384edd.332.1620065230456; Mon, 03 May 2021 11:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620065230; cv=none; d=google.com; s=arc-20160816; b=pzwObIiqgmwxS+ohSKIRgo7bsgMqsljxRX9f/wZvEFphy0RHqrxA4tGUCTCp7CwEfG GJkOYsE0wI4l2XguQg64A7OpZjSeJrk4bacsIRV+s4ONMgByeioqB+RK8hfYyqMykfA3 hCxOytdioc3mHuhpCKiE56TSV/TWxMVO+a63E8L3Ssejoa4gSdYtFdFRaxvnHHYtG0AW 7I+Nxq4Sxo3NDvHJz0cD97keQo06rFea96xYVIQSjn+nEeE6wqKPdggxEVjmSFB2iIOU GRfsuSIs4Npmphcgtz+pZzDqFP4jy8JAipqwjgFJ+DHRb3s8wu/3Y5ODotxRMSGKuq02 kiBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=uY7ncgkzOtZOUzdwMrfI87BDPnF0Y+CDGaGS1rFPivo=; b=NLlIx4JocSvPQYHmVQ7RgIPiRXjPnnHw/b0hhQfOpXpp629V6ZpPcqRkcY7fhisSNt gACxghI65VGh4b6ixWULuUerwdRtWqif3SXySiZAz+29a8LMpIu7rEtav7ETQShuTsfL Ptr0PfihjhP1s662pOz7jJCzRyH7dRWvZG1VSEAhVCh3jC9181dpS9u5vHvwxMlMVvBc CQrpGNli/YtYoYAAFx/zTeLbGbS7IAvxxyrV44YrAR21pazZqZ0vMRShFn3HUHw8+MK3 s5J953VKmty6KiKA9z+4XD+UdJrOoW9v84xpKICwNDSFLFIexJ0pmVLXv+bDYlSSBrkH dDMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="W4q+O/OC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jx5si441494ejb.371.2021.05.03.11.06.38; Mon, 03 May 2021 11:07:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="W4q+O/OC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233488AbhECMx7 (ORCPT + 99 others); Mon, 3 May 2021 08:53:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:29564 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233823AbhECMxg (ORCPT ); Mon, 3 May 2021 08:53:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620046362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uY7ncgkzOtZOUzdwMrfI87BDPnF0Y+CDGaGS1rFPivo=; b=W4q+O/OC31FK53ZxvvZrsy/OVFAClCPFPoNTjGc9VXLuAElurHHAPs3Eva1xFg2+++mA32 FRRlIydUdHf7yIttCJr9C1VfKVfldo/dJ/rGq4q5dP/Jmgx+e7ARvd/C1/mfETedE7HDZb a/OhKlMlh+RsUyNzJxRJ+wKxiJUcr3w= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-29-uY4ZkiPENg6NVjwLfEsTSA-1; Mon, 03 May 2021 08:52:41 -0400 X-MC-Unique: uY4ZkiPENg6NVjwLfEsTSA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3796380DDEF; Mon, 3 May 2021 12:52:39 +0000 (UTC) Received: from gondolin.fritz.box (ovpn-113-109.ams2.redhat.com [10.36.113.109]) by smtp.corp.redhat.com (Postfix) with ESMTP id 283FE19C97; Mon, 3 May 2021 12:52:34 +0000 (UTC) Date: Mon, 3 May 2021 14:52:32 +0200 From: Cornelia Huck To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , Alexander Egorenkov , Niklas Schnelle , Janosch Frank , linux-s390@vger.kernel.org Subject: Re: [PATCH] s390: fix detection of vector enhancements facility 1 vs. vector packed decimal facility Message-ID: <20210503145232.68b5541c.cohuck@redhat.com> In-Reply-To: <20210503121244.25232-1-david@redhat.com> References: <20210503121244.25232-1-david@redhat.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 3 May 2021 14:12:44 +0200 David Hildenbrand wrote: > The PoP documents: > 134: The vector packed decimal facility is installed in the > z/Architecture architectural mode. When bit 134 is > one, bit 129 is also one. > 135: The vector enhancements facility 1 is installed in > the z/Architecture architectural mode. When bit 135 > is one, bit 129 is also one. > > Looks like we confuse the vector enhancements facility 1 ("EXT") with the > Vector packed decimal facility ("BCD"). Let's fix the facility checks. > > Detected while working on QEMU/tcg z14 support and only unlocking > the vector enhancements facility 1, but not the vector packed decimal > facility. > > Fixes: 2583b848cad0 ("s390: report new vector facilities") > Cc: Heiko Carstens > Cc: Vasily Gorbik > Cc: Christian Borntraeger > Cc: Sven Schnelle > Cc: Alexander Egorenkov > Cc: Niklas Schnelle > Cc: Janosch Frank > Cc: linux-s390@vger.kernel.org > Signed-off-by: David Hildenbrand > --- > arch/s390/kernel/setup.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Cornelia Huck