Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp178187yba; Fri, 5 Apr 2019 04:37:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqx97Uzy0bkQ98GoungbdM1k8hmOUGiyLvvvxNcFSdJXSwvAvUb7k/GXd/bjryDj8dpRbjVP X-Received: by 2002:a17:902:b715:: with SMTP id d21mr12619219pls.103.1554464247570; Fri, 05 Apr 2019 04:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554464247; cv=none; d=google.com; s=arc-20160816; b=wP37ro7yrhFs4m8HWkem/SF6Gz/xJ3h0LY5bvEJVFQLUGWrO0mhYTI9HkDJRwBpQy9 22FhNvF1AabNSiTmciZdMkayaPptYV6iE0CkhwI8vEzscR8N9ArpvcIhMSEDXJydMR2F dGDY+eiUImYm9o3y+UW1lA7nu5aSRl5coMXRMq2mXmW0gKfjyj2szZ7YXovg9E+M5eRl W+diUxjOiXiMrzuVcksMGTxsEHcSR4rd2rn6aYRC68aEi4p1BwHETt/uvpFX85AOY7aB ui50GoFDEGF5c5DrnvJj4h+Ph5IaPWW9GDNtkqE9PJSz58/2nOTXJZLOf5b8fKW8NYdm UwhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=s0ZYQewcTOsUD9xuP82pza7OKU2jqPh+vosRsOl7w7s=; b=WXqMcxS1wdhrYqMmcHQ2tqAWKa/t6XIs0Xk7MD48i3Tlf4oHzXf7QYj47Iy5+vnfi6 fDPGkiJ2G+kbayqrS3jDyPXW3cC1/OFdlh6lX7d+A9II7ysZgHKChldYAukkvlquEVF/ ta3VQtVzBk+61O4jfRj01vPMvY3z/Ng0DLPGoVkfTan1/6X9w6rV0fQEoKnUHnBmzfWw hANLveJY0f7e91Wfu0C35c6Z710ngWFXA6kYbieZqz+MOBr75ATdx7Pzse01R+g5cIhU /0xkRL9B1ybEi8Q7I2plH4Oe6Phwp5sOMdsXOBZQ0wcbv25CSCjRZ+R+dJIuiSD1uHYk 8tzg== 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 l7si19990549plg.320.2019.04.05.04.37.12; Fri, 05 Apr 2019 04:37:27 -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 S1731141AbfDELem (ORCPT + 99 others); Fri, 5 Apr 2019 07:34:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:43924 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731068AbfDELel (ORCPT ); Fri, 5 Apr 2019 07:34:41 -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 74DB9AB76; Fri, 5 Apr 2019 11:34:40 +0000 (UTC) From: Nicolas Saenz Julienne Cc: phil@raspberrypi.org, eric@anholt.net, stefan.wahren@i2se.com, Nicolas Saenz Julienne , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] staging: vchiq: use interruptible waits Date: Fri, 5 Apr 2019 13:34:19 +0200 Message-Id: <20190405113423.14495-1-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) 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]. After pulling from upstream some changes that moved wait calls from a custom implementation to the more standard killable family some 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 --- Nicolas Saenz Julienne (3): Revert "staging: vchiq_2835_arm: quit using custom down_interruptible()" Revert "staging: vchiq: 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 | 23 ++++++++++--------- .../interface/vchiq_arm/vchiq_util.c | 6 ++--- 4 files changed, 27 insertions(+), 25 deletions(-) -- 2.21.0