Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4170037ima; Mon, 4 Feb 2019 11:24:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IbuE6pQTI5e3Vwd2uxMERFdHDAYj6PM2b8Hg0SlQwga6ftCO2mHAsXTv6w5Ymse9lLaNOjY X-Received: by 2002:a17:902:8346:: with SMTP id z6mr1001363pln.340.1549308276612; Mon, 04 Feb 2019 11:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549308276; cv=none; d=google.com; s=arc-20160816; b=itkXjsix0bJUPQzn0tGQ6k/hprLFEaHxL+c+29cT1e1vM7dFJ4Izx4lCbPWOzkk2OR dZXstIuz2RlvErIMTjsC7CTxE07M7MjIMM3qqqRtah5KzsX3sB1chw8h95DAw/q2BL51 9lYDpEr45hp6ejD/yi+XG7O2vJXoYryyyIjkEI3XCmgge3i4wrPe4y65j+mARJhTZVPh G/9vcdD1FXppUyb8z2cbsgqWZFfCmkFMTexZbewyETA2WaJjxhVAwPZAuLlyQtqQg4T9 u9jljUBeIlr1zCYnFoXGujLL0LV3LwNlCSQvMzOpu4JJVVvk1cVmriqbGTj0+tagfDRX mOCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=IzF9/4Xl2N8Sb5ydsn20DtyqNkvjP2B1jIT0CPs5H8U=; b=wzOQKoc5XOq3xRX1I6wrKUCuXq+5VnMIhTLrsppbmsHF+pO7DUZmYYa8xps7Q8B5PT ToX9cTJ6yVwtnyzQce3Qn0nbkc8zWGqGwNqTGcKt1G5tUWXszR/cxcR6Uj2mdeFJ6smH hGu3dMwTo+btn0UM8MVs3pGpk4laTeSw75Jee6WuUkO1cSRx30+pq01h8coAWujBdkn8 3ycZ2eNuvjjMBZr6LH9HoM98rIw0aIqjqW6afeUMw9d5zrsSxUwUXSEt36bybsGmSrlO CnoXikPRQdNZwYNCcHlqx+cKgQgrzYzLoBmc9wLrxXw8Ag3coj96h0a9xXeoPdcwixEF yksA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=JzQUQC41; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si773032pgc.85.2019.02.04.11.24.21; Mon, 04 Feb 2019 11:24:36 -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=@broadcom.com header.s=google header.b=JzQUQC41; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729901AbfBDTXX (ORCPT + 99 others); Mon, 4 Feb 2019 14:23:23 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:46911 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727917AbfBDTXX (ORCPT ); Mon, 4 Feb 2019 14:23:23 -0500 Received: by mail-ed1-f65.google.com with SMTP id o10so855023edt.13 for ; Mon, 04 Feb 2019 11:23:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=IzF9/4Xl2N8Sb5ydsn20DtyqNkvjP2B1jIT0CPs5H8U=; b=JzQUQC410YHieMVM/+idr1XcPFl0zQNa3eqi/VI3ni9x2hqMOcR6vgQg3SUwI8YaX0 ORXufpYCGTqHXpb5NPdFhVQZp3C268AJaWoWSwjYEN5VWCvuqVElkdOv9Bilcp/HvEoh Vlc8cLRuxho9gqwSmHV2CPmZDA9fP7NQ2PuuM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=IzF9/4Xl2N8Sb5ydsn20DtyqNkvjP2B1jIT0CPs5H8U=; b=ca750ArCvY2rAu39I5fIJl9HNx6eoybASH6D1SDunn25x/7cq6JsGdu6HlrmO7WJKc 3Npqio/aUda/RF0grPKg/A4++IP2zSt1cgpZUnDFPyEZzGpu3CNrZF9RuS0AOI1VScow ADCaQCJLtsGnMIFsEB80shxolTwuYmedAVL8pSupwB+ZQEafn6EkQIvfg+JaKWSy+bCZ mPuvdGdRtsXIwBPct0r0WejOqNWFXOOfnNco1d0+iEVthSu588J2KzxFEoOwwp8Sfl4E FPqOnpE72yeaCR5zK3N+nxLCwAkhbyQXxjF/kKUoOdKnrIgYfijhDhwUQrCDy6dpaTi6 rhXA== X-Gm-Message-State: AHQUAubp6LbNB8gNrn2m4k7vTWHjOMbTQxiPu8zCXeRhKHv/hztU3H5/ RctMSCSN3eeOYCS3YuiFCJSWB0r2sv8YXw== X-Received: by 2002:a17:906:f146:: with SMTP id gw6mr719005ejb.176.1549308201467; Mon, 04 Feb 2019 11:23:21 -0800 (PST) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id w10-v6sm2692886ejn.67.2019.02.04.11.23.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 11:23:20 -0800 (PST) Subject: Re: [PATCH] mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue To: Ray Jui , Jassi Brar Cc: linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Rayagonda Kokatanur References: <20190204192129.93533-1-ray.jui@broadcom.com> From: Scott Branden Message-ID: Date: Mon, 4 Feb 2019 11:22:57 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190204192129.93533-1-ray.jui@broadcom.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix looks good. On 2019-02-04 11:21 a.m., Ray Jui wrote: > From: Rayagonda Kokatanur > > RING_CONTROL reg was not written due to wrong address, hence all > the subsequent ring flush was timing out. > > Fixes: a371c10ea4b3 ("mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush sequence") > > Signed-off-by: Rayagonda Kokatanur > Signed-off-by: Ray Jui Reviewed-by: Scott Branden > --- > drivers/mailbox/bcm-flexrm-mailbox.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c > index d713271ebf7c..a64116586b4c 100644 > --- a/drivers/mailbox/bcm-flexrm-mailbox.c > +++ b/drivers/mailbox/bcm-flexrm-mailbox.c > @@ -1396,9 +1396,9 @@ static void flexrm_shutdown(struct mbox_chan *chan) > > /* Clear ring flush state */ > timeout = 1000; /* timeout of 1s */ > - writel_relaxed(0x0, ring + RING_CONTROL); > + writel_relaxed(0x0, ring->regs + RING_CONTROL); > do { > - if (!(readl_relaxed(ring + RING_FLUSH_DONE) & > + if (!(readl_relaxed(ring->regs + RING_FLUSH_DONE) & > FLUSH_DONE_MASK)) > break; > mdelay(1);