From patchwork Thu Apr 30 15:24:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 11520685 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 66271139A for ; Thu, 30 Apr 2020 15:25:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 47B9A20731 for ; Thu, 30 Apr 2020 15:25:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UZbd5qht" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbgD3PZE (ORCPT ); Thu, 30 Apr 2020 11:25:04 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:38165 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727105AbgD3PZE (ORCPT ); Thu, 30 Apr 2020 11:25:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588260303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9fI8qQ1cjxjAT4F1ugPxtSOTKx/agoKea/GBNE+nVVw=; b=UZbd5qhtGk5oTksQP3z07ipafzMBBGW3tw92g3KOacJDFwbqS55WFTweOuQLa4C1lkW8dd 879f5KH3xtMzfWd1ZiZHW+iVhD0nuqQRfR6Xf5ympETzprdls2urhNR+IQyYPCN3kLQP53 ppG6tmFtlaHXhrH3y79sx00yW0A57zs= 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-150-bddzle-gPzG2BH8KgUPumw-1; Thu, 30 Apr 2020 11:24:58 -0400 X-MC-Unique: bddzle-gPzG2BH8KgUPumw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 42F5746B; Thu, 30 Apr 2020 15:24:57 +0000 (UTC) Received: from t480s.redhat.com (ovpn-113-172.ams2.redhat.com [10.36.113.172]) by smtp.corp.redhat.com (Postfix) with ESMTP id B74F45EDE3; Thu, 30 Apr 2020 15:24:55 +0000 (UTC) From: David Hildenbrand To: kvm@vger.kernel.org Cc: Paolo Bonzini , Thomas Huth , Janosch Frank , linux-s390@vger.kernel.org, Cornelia Huck , David Hildenbrand Subject: [kvm-unit-tests PULL 10/17] s390x: smp: Dirty fpc before initial reset test Date: Thu, 30 Apr 2020 17:24:23 +0200 Message-Id: <20200430152430.40349-11-david@redhat.com> In-Reply-To: <20200430152430.40349-1-david@redhat.com> References: <20200430152430.40349-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Janosch Frank Let's dirty the fpc, before we test if the initial reset sets it to 0. Signed-off-by: Janosch Frank Reviewed-by: Thomas Huth Reviewed-by: Cornelia Huck Reviewed-by: David Hildenbrand Message-Id: <20200429143518.1360468-3-frankja@linux.ibm.com> Signed-off-by: David Hildenbrand --- s390x/smp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/s390x/smp.c b/s390x/smp.c index 08fa770..bf082d1 100644 --- a/s390x/smp.c +++ b/s390x/smp.c @@ -198,6 +198,7 @@ static void test_sense_running(void) /* Used to dirty registers of cpu #1 before it is reset */ static void test_func_initial(void) { + asm volatile("sfpc %0" :: "d" (0x11)); lctlg(1, 0x42000UL); lctlg(7, 0x43000UL); lctlg(13, 0x44000UL);