Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2565119yba; Mon, 6 May 2019 08:05:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxB2Egq/NkS9/sQlDLva7HQo27Vdrz9WRzrwWaC3mtIazBLHbWX4FgRwdX86S8QkZexTSsQ X-Received: by 2002:a65:5244:: with SMTP id q4mr21461220pgp.79.1557155122068; Mon, 06 May 2019 08:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557155122; cv=none; d=google.com; s=arc-20160816; b=H4a5dEdwTDlqHq+N7zfCB66aKqjMTe6Rsn8T/WUrAtLgyw61ODIT1Cu8XYGOZqh7l4 C+uI6klgHjRQ1aFmEaGtM8dwZ1WDUm2k/e4a318fhLXj1ssE0wInCg1BHBeFHQZI5Trf AnlVR0ie+4VhusVTp0eJFBV34eHLm7DhCd5HThECEVAaXR5Mr+zBFntzgqrmprEfX8Ui MZHJnZ2cKIJ0CGgC46ceGzEfvguievGB4ucp+lbSHgzPxSdfa6d1R4tUzpdtrau+x1V1 PBz1gStEJtszms0rp5JhoMUClYrbsO5ashClre0wXQ0edshnVqTy/KkKH73T6SEs85Aj REaA== 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 :message-id:date:subject:cc:to:from; bh=iPmm9Xl5/x+3LMOcb9brq5g2WRAK9lO/mDf/9h5wWo8=; b=nPZDeVnqzZxYTLfqjJU1XH3UOfSoYhTyvdLoWGSb7XDwMa6+5uuPpXeuZoqqnkE+4E 9jRUfUG1EulP5hDOE50dh8C95pwqidccmhmYpIGFGJpGa+FdPSRplb6hTDvpWfkjvIEx D9uZRK7A2p6gCNMJDSjJsMG5br+yC+jVyjpiB1fviZgK2iRWdDx67ZQ691CrCeHJKj3i JNaQ2Kot07kRVwIgGR3b1NEd77YZ3ND+uXu1SSabGkr+G02FjpaFfDdSvt8kRa6zHMWf AxYPkrtT9NMzO0YE1+zrNDDW/w1yEHKnpXI3KXQVnRiaZ1fpQ+pUJT2eQeJ5GT+gOWLt MuUg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p61si16533139plb.428.2019.05.06.08.05.01; Mon, 06 May 2019 08:05:22 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727649AbfEFOkv (ORCPT + 99 others); Mon, 6 May 2019 10:40:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:42784 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727618AbfEFOkq (ORCPT ); Mon, 6 May 2019 10:40:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6371DAC0C; Mon, 6 May 2019 14:40:45 +0000 (UTC) From: Nicolas Saenz Julienne To: linux-kernel@vger.kernel.org Cc: phil@raspberrypi.org, dan.carpenter@oracle.com, stefan.wahren@i2se.com, Nicolas Saenz Julienne , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Subject: [PATCH v2 0/3] staging: vchiq: use interruptible waits Date: Mon, 6 May 2019 16:40:27 +0200 Message-Id: <20190506144030.29056-1-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this series tries to address an issue that came up in Raspbian's kernel tree [1] and upstream distros [2][3]. We adopted some changes that moved wait calls from a custom implementation to the more standard killable family of functions. Users complained that all the VCHIQ threads showed up in D state (which is the expected behaviour). The custom implementation we deleted tried to mimic the killable family of functions, yet accepted more signals than the later; SIGKILL | SIGINT | SIGQUIT | SIGTRAP | SIGSTOP | SIGCONT for the custom implementation as opposed to plain old SIGKILL. Raspbian maintainers decided roll back some of those changes and leave the wait functions as interruptible. Hence creating some divergence between both trees. One could argue that not liking having the threads stuck in D state is not really a software issue. It's more a cosmetic thing that can scare people when they look at "uptime". On the other hand, if we are ever to unstage this driver, we'd really need a proper justification for using the killable family of functions. Which I think it's not really clear at the moment. As Raspbian's kernel has been working for a while with interruptible waits I propose we follow through. If needed we can always go back to killable. But at least we'll have a proper understanding on the actual needs. In the end the driver is in staging, and the potential for errors small. Regards, Nicolas [1] https://github.com/raspberrypi/linux/issues/2881 [2] https://archlinuxarm.org/forum/viewtopic.php?f=65&t=13485 [3] https://lists.fedoraproject.org/archives/list/arm@lists.fedoraproject.org/message/GBXGJ7DOV5CQQXFPOZCXTRD6W4BEPT4Q/ -- Changes since v1: - Proplery format revert commits - Add code comment to remind of this issue - Add Fixes tags Nicolas Saenz Julienne (3): staging: vchiq_2835_arm: revert "quit using custom down_interruptible()" staging: vchiq: revert "switch to wait_for_completion_killable" staging: vchiq: make wait events interruptible .../interface/vchiq_arm/vchiq_2835_arm.c | 2 +- .../interface/vchiq_arm/vchiq_arm.c | 21 +++++++------ .../interface/vchiq_arm/vchiq_core.c | 31 ++++++++++++------- .../interface/vchiq_arm/vchiq_util.c | 6 ++-- 4 files changed, 35 insertions(+), 25 deletions(-) -- 2.21.0