Received: by 10.192.165.148 with SMTP id m20csp3931647imm; Mon, 30 Apr 2018 08:47:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZorp9oHjPVnVYyeIH7w3prQgkssPhABRc1ayLrvXlWwW6NYC1vHVI7BbqS/DJJLnsQIBlzj X-Received: by 2002:a17:902:bd41:: with SMTP id b1-v6mr12650348plx.302.1525103271654; Mon, 30 Apr 2018 08:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525103271; cv=none; d=google.com; s=arc-20160816; b=LJQCBXARjXoVltK3bN2xw/RvaQAsG2icnhMIXPFp6TQ+3lXgI8ktV9eXJ+a2a8KUD0 +j0/rA3zlMDPxJgph+j6GX7DnRzn2zILBp9IdHEEh57Sttkbl1MVoUVcxfUIAIBFEl+g rIyKEgzAAaWScvEaYTnn9Iwh3C/+ZiVfKv0X10DfapcKtDm54EBLuEKErsa2FPyhXcde +p0WNOSngVQ2w4jTjx610fANuBs/FRqN7UolZlyPqq4HzILOk7uDFKS5bqwCgFDcBxtv LEr96OJrfJP2Zc1R1hl+b7pluM3OC+I70fPaqt/ysF+qMeKv/RsjP6KVOQ1QQXU9eBpp lMEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=5s/v11IJ3ytgxJndi58RM9DgHlSRtB7IkUCf0NesHM8=; b=YktxOtVZ//XvHsXxLNxFWyGxnpc0m31k+9IsuSJ1L80Jhi46nS78bzGhwrVXaPyXPJ XX+3PS+hGewOdNTaTaURnVFaoavkGB/avke06ZK0MK1YQBkJtn9NwPbG9F5VIR5GqgdO bfkmLzILG2sHyLa13dsOaq6izl+lztxJYx3BcT+klcvvfBJ/qWaYBKxMrrqLkJGpNimf Nd5UIBPWPYlLFNiAl1VzA3OQWO9TKM/W6lm24p2I1h6QfppWlVd9ktTUd2+qIODDHEEl qyf86DxSFAoMSYy4bzjydZvG6dgUVvfM4ph+HXNQAk/o+dOAdWjfrvDkm0WGC5Vr9fnX QYJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9-v6si6320478pgr.477.2018.04.30.08.47.37; Mon, 30 Apr 2018 08:47:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754697AbeD3PrX (ORCPT + 99 others); Mon, 30 Apr 2018 11:47:23 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39554 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753334AbeD3PrW (ORCPT ); Mon, 30 Apr 2018 11:47:22 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AC7DEEB715; Mon, 30 Apr 2018 15:47:21 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id B20222023456; Mon, 30 Apr 2018 15:47:20 +0000 (UTC) Date: Mon, 30 Apr 2018 17:47:18 +0200 From: Cornelia Huck To: Pierre Morel Cc: pasic@linux.vnet.ibm.com, bjsdjshi@linux.vnet.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 09/10] vfio: ccw: Suppressing the BOXED state Message-ID: <20180430174718.7b1e5651.cohuck@redhat.com> In-Reply-To: <32efd6b2-78b0-ae44-3a64-a092f9d412fe@linux.vnet.ibm.com> References: <1524149293-12658-1-git-send-email-pmorel@linux.vnet.ibm.com> <1524149293-12658-10-git-send-email-pmorel@linux.vnet.ibm.com> <20180425104429.582618f8.cohuck@redhat.com> <32efd6b2-78b0-ae44-3a64-a092f9d412fe@linux.vnet.ibm.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.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 30 Apr 2018 15:47:21 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 30 Apr 2018 15:47:21 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'cohuck@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Apr 2018 15:55:51 +0200 Pierre Morel wrote: > On 25/04/2018 10:44, Cornelia Huck wrote: > > On Thu, 19 Apr 2018 16:48:12 +0200 > > Pierre Morel wrote: > > > >> VFIO_CCW_STATE_BOXED and VFIO_CCW_STATE_BUSY are the same > >> states. > >> Let's only keep one: VFIO_CCW_STATE_BUSY > >> > >> Signed-off-by: Pierre Morel > >> --- > >> drivers/s390/cio/vfio_ccw_fsm.c | 9 --------- > >> drivers/s390/cio/vfio_ccw_private.h | 1 - > >> 2 files changed, 10 deletions(-) > > I think they were initially supposed to cover two different things: > > - BUSY: we're currently dealing with an I/O request > > - BOXED: the device currently won't talk to us or we won't talk to it > > > > It seems we never really did anything useful with BOXED; but should we? > > > I do not know what. The BUSY state is something we know that we'll get out of soon-ish (when the I/O request has finished). We could conceivably use a timeout and drop to the BOXED state if we don't get an answer. I think this plays also into the reserve/release and path handling questions. One of the more common reasons for devices to become boxed I've seen is another system doing a reserve on a dasd.