From patchwork Tue Dec 12 23:58:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 121683 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4784184qgn; Tue, 12 Dec 2017 15:59:08 -0800 (PST) X-Google-Smtp-Source: ACJfBouigacqAsykb3GUnx1fIRxyumK5oged6R9Zh/mn2f1kJQlU6OybFFrNkf4cvy7wCDAFz98O X-Received: by 10.99.108.70 with SMTP id h67mr3557854pgc.218.1513123148413; Tue, 12 Dec 2017 15:59:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513123148; cv=none; d=google.com; s=arc-20160816; b=haH8cxKXWtEeslBWrqNUZgZ5v9WrTN5DXyQWEaiSfGJP/sTGnkiIRvlC8dSaX+Nbit WntbKrzry8Xn+QBTp6oZTuMSVjaLn69E0uvleEtcO+1X3IqP6DH0T4b8h2neCQXXght7 OcX5ZWkN2kj1Kzy0+ccwK9uD8LpzsgLJxxLPpIieV4HxsnGGLBUzu7oyBx1SY83af++/ gJckusUUmrvrstcbF/dJncmRu5rUFokS/VKf0vODjAB/6HOWt/FbjPaTXSG2hBpwLkEN wr3J57TTKIGx4YE5Ws6h1XEfoVkTRzVvRIaUsCxqSoUqMnqMwCXWDhs5TEv9s8ULR5M6 TjjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=FCKicYe5evj9qfSaPUrOoyip0lL96NVSjJfAR9RTe6w=; b=RiVeFoBPY3lKcr3aOW0CdfcI8lLy+evPChwKqkhYNhGr2OSgL7OrQGT4psjXYktNS+ 0qSc5d8eY9NzuxMDLGy9OHjqcjSfukfGaIsdawPh4l9qCyLx6ifo4tO89yaNKzyJ27Xs rjC3fVXkFbIMEJWd/qzFpuNCdk4V4qZ8mNrirmRiCphuPTSe4FvBDZT2o7a54yby/tlq AnZWPvqUXICLAydFp/Wtrhp248gr7BbWFowGQyZg2XaL+tZrJIRzzNUxrUHulliRB42p ySXmSnGUdBUimx8w77uhSxiWJijZGLyYh8KxBfj231fs+sXqmuiJkqawXYS/3aK7Gf96 1sQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FWRGLqri; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si250703plt.807.2017.12.12.15.59.08; Tue, 12 Dec 2017 15:59:08 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=FWRGLqri; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752868AbdLLX7E (ORCPT + 11 others); Tue, 12 Dec 2017 18:59:04 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36136 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752779AbdLLX7B (ORCPT ); Tue, 12 Dec 2017 18:59:01 -0500 Received: by mail-pg0-f66.google.com with SMTP id k134so463195pga.3 for ; Tue, 12 Dec 2017 15:59:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=FCKicYe5evj9qfSaPUrOoyip0lL96NVSjJfAR9RTe6w=; b=FWRGLqriMoV4V49LQwiJca7H7xU/PxfBWNVw62smFf6DNPx41UaYa6anZQx6FPJJI7 IcV7qhokmMQ2MOjagbaSTFB/3hGrokT+9ZptpLgCGTYHDWMlV5wE+vmMXVqxdW/9u9yN ELl5CJnpAyPBUEOplR5/hMoNzwz0BhA/7RAmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FCKicYe5evj9qfSaPUrOoyip0lL96NVSjJfAR9RTe6w=; b=hP2aUboaPtFrng0NDt70IZx+4b6uQgtCcnZp8rkiE/Vxb2Uo5ygC3hlVXEJQed9Lyp hwtYkSjZ1/141vARAJS102JBQlSPATaN+A1lEb9UKMyzZKhTCRTYDaX+xz9VguunY5jr +pkuobAOsgJoHwupH9o/IoiAWlWA5dG8mehUmchzoUnmBpbTqkf/9sz/v/0xGZLiCg02 zlSPBwpfggybxYqKj5Uu7kkVBDM7HfSLOfSPC4Xa+0CwR7sb3qwtoLuVUOfAW35ykOY7 M2y5viOgosr7k2eJxml4qIiODE7/gVK4oEypK9WgdPzNdlgLjWbLjRaQVvYLGTIWFeq+ rHIQ== X-Gm-Message-State: AKGB3mLzhPUfAR73SYoP1duNlFBwhw68JDS/+KvjDE6JEaPhrmuDUZlV n4NlbxiRMWc7YKLk+jUyILP2XQ== X-Received: by 10.84.174.131 with SMTP id r3mr3984864plb.358.1513123140571; Tue, 12 Dec 2017 15:59:00 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id t202sm270317pgb.75.2017.12.12.15.58.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Dec 2017 15:58:59 -0800 (PST) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson , Jeremy McNicoll , Will Newton Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Chris Lew Subject: [PATCH 0/5] Qualcomm SMD updates Date: Tue, 12 Dec 2017 15:58:52 -0800 Message-Id: <20171212235857.10432-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A series of fixes for a few issues reported or seen with SMD. The first two fixes changes the trigger for creating devices for channels found, which should cause the rpm-smd driver to probe on 8909 and 8994 devices. The third patch fixes an issue when multiple callers end up waiting on events. The forth fix moves the check for a closed channel out of the tx-full loop, to fail non-full send requests on a closed channel as well. The last fix improves the handling of concurrent send-requests, allowing concurrent sends, in particular try_send, to progress even though we're sleeping waiting for room in the tx fifo. Bjorn Andersson (5): rpmsg: smd: Perform handshake during open rpmsg: smd: Create device for all channels rpmsg: smd: Wake up all waiters rpmsg: smd: Fail send on a closed channel rpmsg: smd: Don't hold the tx lock during wait drivers/rpmsg/qcom_smd.c | 60 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 47 insertions(+), 13 deletions(-) -- 2.15.0