Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1256785ybl; Fri, 23 Aug 2019 16:19:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqx38QyrNd+/7uhPK6PKsCnJyQXdURZoC4c2rm1CzIVGhakg0CUu/ywMrsKj7XNGan0lbmzQ X-Received: by 2002:a17:90a:ac0a:: with SMTP id o10mr7787313pjq.143.1566602378103; Fri, 23 Aug 2019 16:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566602378; cv=none; d=google.com; s=arc-20160816; b=ZKIa2oigHEF1SngvI/OFePxzVTRUbVU0v3vKUCFkIFBVRk6Fxn8pYdhGns7pn8bRNl JIGTA6hipGQj6kGg0gZOU0QTas9OTLqsFBPexuZDHZ3+S+L9cZBJXEYLwV8RfrIxtxYl FstpERRTApkLKbd8hDno1j+OiWte25sODX5FO1f0F8IiIiR7jr+MM8gTwnpd+4kivLKT Ouhr+/5QnbAdLmC1tdENhs1YZwOggCxCyRMI+Em0mTqM7CfRb2T6AjIrfLrQ5IG/AvJ4 t+pUs1sj3RpxVNF0lCHVDy33Ic8CtWcZ9tRxa5uYltneGF7z+5NjYRmEwSVAI6m6Gb9Z JAjw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GXDyiG/PPmHFuQlZYe5lHx0rEDkmlewlyaVELKgzcow=; b=PU59Na07H1iQadELWEWn58icSYFA1mdrAurN5xXT/dvIGgWqJMdTyiqCoPNdj7d9Vz cUbk5GTOUSAtzPzv6+TJD3A2TDAcNopPDGMptcPMiw70iDiW0AmZnQxnSDJQFRzH2Wij /S2LLhP4sqgNFhLPoKt8WEJrHxwTSbJi97eY2NkxMN2SlojWiDEx80BHHrSCLHji5e7J YU9/qBGDNNatsdsT3Xzh1CIT0cfZS6rwUyJZzzscn5d6lwOqFSEsGgh7P0PZ+zkwbDrc pDKFO3h+7TYI0IQgJqE3MJM19LnKDj1uYLLfQU/UCUdutN1MgTscz1ByziE7XGzKsyIM 2bUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pIDS9PRE; 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=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h64si2999326pge.208.2019.08.23.16.19.23; Fri, 23 Aug 2019 16:19:38 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pIDS9PRE; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394971AbfHWM4K (ORCPT + 99 others); Fri, 23 Aug 2019 08:56:10 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:58864 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbfHWM4K (ORCPT ); Fri, 23 Aug 2019 08:56:10 -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 x7NCu3Aq103808; Fri, 23 Aug 2019 07:56:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566564964; bh=GXDyiG/PPmHFuQlZYe5lHx0rEDkmlewlyaVELKgzcow=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=pIDS9PREJWRUQO5xoR+AfT1NASJB+hkayTXAdV1jBQCPqU3tkY0dDBGbUzRMXZ0T5 tF7tRVsnk4OYRTuqBr/fbPZ2LyyUgAHGq/RcWAgy+LsTfCag5yYuSqZfahuBKpmULq K5oZvidNkaKv92JyAnBiyvKtG9pmOD57EQkAJnt0= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7NCu3UV015095 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 23 Aug 2019 07:56:03 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 23 Aug 2019 07:56:03 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 23 Aug 2019 07:56:03 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7NCtwkf092319; Fri, 23 Aug 2019 07:56:01 -0500 From: Peter Ujfalusi To: , CC: , , , , , Subject: [PATCH 1/5] dmaengine: ti: edma: Do not reset reserved paRAM slots Date: Fri, 23 Aug 2019 15:56:14 +0300 Message-ID: <20190823125618.8133-2-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190823125618.8133-1-peter.ujfalusi@ti.com> References: <20190823125618.8133-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Skip resetting paRAM slots marked as reserved as they might be used by other cores. Signed-off-by: Peter Ujfalusi --- drivers/dma/ti/edma.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/dma/ti/edma.c b/drivers/dma/ti/edma.c index 54895112ba59..1aae95cc0d4b 100644 --- a/drivers/dma/ti/edma.c +++ b/drivers/dma/ti/edma.c @@ -2338,9 +2338,6 @@ static int edma_probe(struct platform_device *pdev) ecc->default_queue = info->default_queue; - for (i = 0; i < ecc->num_slots; i++) - edma_write_slot(ecc, i, &dummy_paramset); - if (info->rsv) { /* Set the reserved slots in inuse list */ rsv_slots = info->rsv->rsv_slots; @@ -2353,6 +2350,12 @@ static int edma_probe(struct platform_device *pdev) } } + for (i = 0; i < ecc->num_slots; i++) { + /* Reset only unused - not reserved - paRAM slots */ + if (!test_bit(i, ecc->slot_inuse)) + edma_write_slot(ecc, i, &dummy_paramset); + } + /* Clear the xbar mapped channels in unused list */ xbar_chans = info->xbar_chans; if (xbar_chans) { -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki