From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66B8AC76192 for ; Thu, 18 Jul 2019 03:11:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 369BC2173E for ; Thu, 18 Jul 2019 03:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419500; bh=7t7ZjfABV3OfEtJqgHYoJya9u/QF6753dm86NCp6QyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=xqgzWJJOLERUokK+X8Vnk4odvBtA/H0/gpXFkXw4RT4G1mhyOb7DbgdjyS2j1mbp9 xoTOr0ozv1HyKoRq8l4hiYOUetBEgERpyMVSh3n3H4zIJZVA5zrD3vlaZ3t7Z/Z0/S WbP+8hoTJC3f76ckn7O/RJxCViJnbDVZtQjFgA/4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391451AbfGRDLj (ORCPT ); Wed, 17 Jul 2019 23:11:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:45350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391446AbfGRDLi (ORCPT ); Wed, 17 Jul 2019 23:11:38 -0400 Received: from localhost (115.42.148.210.bf.2iij.net [210.148.42.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 77AEF205F4; Thu, 18 Jul 2019 03:11:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419497; bh=7t7ZjfABV3OfEtJqgHYoJya9u/QF6753dm86NCp6QyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dRz5iE3yV3MjWIg4QueGIb8GDr8ZvD7jaR1VcgeFdbVTPq0sIALIFu3X0GPCd4v1r 2FEqeeERlf1qKSSbSUnQWihI+MhVPnscoNYGIp8c6oc3I20oXmIFqEBkdpFUYk7BUG Sx5EJTDqX3a49Z+Huj6BfMuCHsZIkLekdmUJjPe4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Julian Wiedmann , Vasily Gorbik Subject: [PATCH 4.14 77/80] s390/qdio: dont touch the dsci in tiqdio_add_input_queues() Date: Thu, 18 Jul 2019 12:02:08 +0900 Message-Id: <20190718030105.520380968@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030058.615992480@linuxfoundation.org> References: <20190718030058.615992480@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Julian Wiedmann commit ac6639cd3db607d386616487902b4cc1850a7be5 upstream. Current code sets the dsci to 0x00000080. Which doesn't make any sense, as the indicator area is located in the _left-most_ byte. Worse: if the dsci is the _shared_ indicator, this potentially clears the indication of activity for a _different_ device. tiqdio_thinint_handler() will then have no reason to call that device's IRQ handler, and the device ends up stalling. Fixes: d0c9d4a89fff ("[S390] qdio: set correct bit in dsci") Cc: Signed-off-by: Julian Wiedmann Signed-off-by: Vasily Gorbik Signed-off-by: Greg Kroah-Hartman --- drivers/s390/cio/qdio_thinint.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/s390/cio/qdio_thinint.c +++ b/drivers/s390/cio/qdio_thinint.c @@ -83,7 +83,6 @@ void tiqdio_add_input_queues(struct qdio mutex_lock(&tiq_list_lock); list_add_rcu(&irq_ptr->input_qs[0]->entry, &tiq_list); mutex_unlock(&tiq_list_lock); - xchg(irq_ptr->dsci, 1 << 7); } void tiqdio_remove_input_queues(struct qdio_irq *irq_ptr)