Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1841302pxb; Thu, 16 Sep 2021 17:33:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyV3ZImqjxcPCoHMhpXKVSQr50L6CM9b9cbf4urn9goarkOtGeOdrsAtjKiJCPPiJ5yYTOr X-Received: by 2002:a17:906:3f95:: with SMTP id b21mr8932353ejj.368.1631838795981; Thu, 16 Sep 2021 17:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631838795; cv=none; d=google.com; s=arc-20160816; b=f5gBb5OF2O6Rgp8ikwMbsvl9KKx4vF7UASsJf3HlejyqGGxXrQXtKbETYmbvNL54X6 1tOUobUON7a70dRg2GSgiK1tr81DtekLF2q3lnJOZV+ZTOUaa3OsoJ3d7Aluw4IjCHXM 440V+XlN1sbEpikxIEzJ5AUqdZv79SycJGz7flfIgQ2cf59s3uHJIYwkiO2TE5qjUMJa 8/40jH99Gzw59w3F3SFJv8Ltc3xVjc9rYTWpYYkixw0o+gJOBk0WgThCrquLuvZv744b fwAc5TMkv4MJb1YkYTmR0dzmIF1umfxZmCzIBI/IWV/opIYrJC9l0S9g8iLzCcxs0SHt GFhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Yh9GiJTL96YzEGggAd4MW2P4bYFr16XP7mFUuGQI04E=; b=rJqGoP0wP7ZBs5HmHb8T8mguwvU3wh3WUl50OjnruwG+AJVjb0MnvQtr/W5OEvRYVG M/gXey3tLpIC9Ylhp1tTXD3zZ7thBxmjy9WRlEsrbpsz2itcE1ESDxPOLvnNurWoqmeS 9X5mK6lY9ldksFlKDBoLZdXBlMnw45GWbQ81/U2TsdCGrcTctkQF88i3aHPZso8/E4wJ vsaH1aOE2DmS7Iyu0+KvJpjpPbMPow/ZO3TVnjL9CoyIWyWf9a/S7lEPpbR0fu00+ctB wHUkOCN3IN+Yf1YkGkgFXyzu0FOCyVv5LA5Q8k2HUpx6LP4AqH4+Dt4r00JckKce7msT sumQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=InxjydOv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl2si5900367ejc.742.2021.09.16.17.32.52; Thu, 16 Sep 2021 17:33:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=InxjydOv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348998AbhIPRDZ (ORCPT + 99 others); Thu, 16 Sep 2021 13:03:25 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:47194 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346884AbhIPQ4U (ORCPT ); Thu, 16 Sep 2021 12:56:20 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 18GGsfZL041074; Thu, 16 Sep 2021 11:54:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1631811281; bh=Yh9GiJTL96YzEGggAd4MW2P4bYFr16XP7mFUuGQI04E=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=InxjydOvMNmS02IZKwjoYjEAVM6oUEXyXVfPbC5wSS1FYu2Dp/o8Y6jV4tvy1GYz4 8HJP+wTCDJsZOmFovAkeW8U7u6tp/GgIil87fdkvBZhr9qtx/kUdPhqxL2WAbL/bKi M7+pLEjAhxr2GmO4aH2JekAOvKgNwiRFnEBba51c= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 18GGsfYK002084 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 16 Sep 2021 11:54:41 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 16 Sep 2021 11:54:41 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 16 Sep 2021 11:54:41 -0500 Received: from [10.250.69.57] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 18GGsekI023402; Thu, 16 Sep 2021 11:54:40 -0500 Subject: Re: [PATCH] bus: ti-sysc: Fix external abort for am335x pruss probe To: Tony Lindgren , CC: Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Grygorii Strashko , Keerthy , Nishanth Menon , , , Kishon Vijay Abraham References: <20210915065032.45013-1-tony@atomide.com> From: Suman Anna Message-ID: <3fd1968e-491e-6d98-ec9c-d29baed3158f@ti.com> Date: Thu, 16 Sep 2021 11:54:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210915065032.45013-1-tony@atomide.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tony, On 9/15/21 1:50 AM, Tony Lindgren wrote: > Starting with v5.15-rc1, I'm now seeing am335x beaglebone black produce > the following error on pruss probe: > > Unhandled fault: external abort on non-linefetch (0x1008) at 0xe0326000 > > This seems to have started with the enabling of pruss for am335x in the > dts files. Adding a read-back after write to the sysconfig register fixes > the issue for me. Let me take a look at this during the weekend. I did verify the AM335x PRUSS when I posted the dts patches on 5.14-rc. You should be able to check as well from your staging branch with PRUSS patches. regards Suman > > Cc: Suman Anna > Signed-off-by: Tony Lindgren > --- > drivers/bus/ti-sysc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c > --- a/drivers/bus/ti-sysc.c > +++ b/drivers/bus/ti-sysc.c > @@ -2037,6 +2037,9 @@ static int sysc_reset(struct sysc *ddata) > sysc_val = sysc_read_sysconfig(ddata); > sysc_val |= sysc_mask; > sysc_write(ddata, sysc_offset, sysc_val); > + > + /* Flush posted write */ > + sysc_read_sysconfig(ddata); > } > > if (ddata->cfg.srst_udelay) >