From patchwork Thu Nov 17 10:49:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Masney X-Patchwork-Id: 13046564 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB498C433FE for ; Thu, 17 Nov 2022 10:51:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234508AbiKQKvX (ORCPT ); Thu, 17 Nov 2022 05:51:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233502AbiKQKvV (ORCPT ); Thu, 17 Nov 2022 05:51:21 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE65118369 for ; Thu, 17 Nov 2022 02:50:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668682227; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GBLjqaxD9YXzB2a0G4EC2tB+BR3145svbgGOvljSx80=; b=NVocBVwJMBCdj6ZEl6AzbeQUJIChGglCHAl2lod3/8JfSuuDeGwU7XSVaYND1wf+CcWHrJ XmVYOjYVRoSTru3bB7lUfJpMoD4iiTRQm4XNnWqKBOdD5xnkizpz4ngkTR4TdhLGmIpNhS TZK8WsxpHCw0kTdob9VgS/SZMlhwnK8= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-18-aX3qVgrNPEGX9gvdMkdHmA-1; Thu, 17 Nov 2022 05:50:26 -0500 X-MC-Unique: aX3qVgrNPEGX9gvdMkdHmA-1 Received: by mail-qv1-f71.google.com with SMTP id nn2-20020a056214358200b004bb7bc3dfdcso1226346qvb.23 for ; Thu, 17 Nov 2022 02:50:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GBLjqaxD9YXzB2a0G4EC2tB+BR3145svbgGOvljSx80=; b=drjiG38B4hjnKeigZholi7AsPtbAjAqhhm1yctHHmJ4Rj+Iiw5lHegr+3F85gSGJvm d+SWA/1HD2S77rOuBzSxCSSqLbvg8ON8C95PLyehRvzMhx7C1fPcqzUFmJDB3NiRrFzK JOhtnj8zJzvHX9/dRFkU5H3XuhTaDmMtAVcubZLMOpYI+WliqatY7jRiu9AwkHDxpnYn b9VpKwK8VkBFnTHj4gLnYjNHLfXEfyxdJLtNx4RY7ye/zEt6QW1n2s79gS1Sg7C/HYn6 rwFL9d05H9vxQGmRnWarTBRbdzyOKnbug9hKW0dC9i/5KRElpovamO3bfOCNXCB+k4jX lJYw== X-Gm-Message-State: ANoB5pkvkvQSZdv2NZSEkrmwErkoD5MFRozoFMAHxElcPS5qOEMq/Ki0 q62pqAQekWPWFqaM4T1rEVveJ6QyX/UaloHUGMkNkQFnYRO7KHSrRPJGgCyPq3i8hRUvroJgR4D 1EWOi9b7YUwLDI5DcmowycAjsuA== X-Received: by 2002:ac8:4e47:0:b0:3a5:c306:324 with SMTP id e7-20020ac84e47000000b003a5c3060324mr1650356qtw.116.1668682226064; Thu, 17 Nov 2022 02:50:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Hp8ueJ2odeFAiwGWASh3iAkry+xnk/8bkoOGXMK9ipdlHU+fDlbp30euEWUKaHFyqpmn8jQ== X-Received: by 2002:ac8:4e47:0:b0:3a5:c306:324 with SMTP id e7-20020ac84e47000000b003a5c3060324mr1650342qtw.116.1668682225822; Thu, 17 Nov 2022 02:50:25 -0800 (PST) Received: from x1.redhat.com (c-73-214-169-22.hsd1.pa.comcast.net. [73.214.169.22]) by smtp.gmail.com with ESMTPSA id i15-20020a05620a248f00b006fa9d101775sm236022qkn.33.2022.11.17.02.50.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 02:50:25 -0800 (PST) From: Brian Masney To: andersson@kernel.org Cc: agross@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH 0/2] qcom: add basic interconnect support to UFS Date: Thu, 17 Nov 2022 05:49:55 -0500 Message-Id: <20221117104957.254648-1-bmasney@redhat.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch set adds very basic support for the interconnect framework to the Qualcomm portion of the UFS framework since the firmware on these platforms expects the interconnect votes to be present. The maximum throughput is requested to match what's already done in a few other drivers. Here's the relevant entries from the interconnect_summary file in debugfs that shows the two ICC paths are setup for the first UFS host controller on the SA8540p automotive board (sc8280xp). node tag avg peak -------------------------------------------------------------------- xm_ufs_mem 0 4294967295 1d84000.ufs 0 0 4294967295 qns_a1noc_snoc 0 4294967295 1d84000.ufs 0 0 4294967295 qnm_gemnoc_cnoc 115 4294967295 1d84000.ufs 0 0 4294967295 a6f8800.usb 0 0 40000 884000.serial 0 115 115 qhs_ufs_mem_cfg 0 4294967295 1d84000.ufs 0 0 4294967295 chm_apps 115 4294967295 1d84000.ufs 0 0 4294967295 a6f8800.usb 0 0 40000 884000.serial 0 115 115 qnm_snoc_sf 1000000 4294967295 1d84000.ufs 0 0 4294967295 a6f8800.usb 0 1000000 2500000 qns_gem_noc_cnoc 115 4294967295 1d84000.ufs 0 0 4294967295 a6f8800.usb 0 0 40000 884000.serial 0 115 115 qns_llcc 1000000 4294967295 1d84000.ufs 0 0 4294967295 a6f8800.usb 0 1000000 2500000 llcc_mc 1000000 4294967295 1d84000.ufs 0 0 4294967295 a6f8800.usb 0 1000000 2500000 ebi 1000000 4294967295 1d84000.ufs 0 0 4294967295 a6f8800.usb 0 1000000 2500000 qnm_aggre1_noc 0 4294967295 1d84000.ufs 0 0 4294967295 qns_gemnoc_sf 1000000 4294967295 1d84000.ufs 0 0 4294967295 a6f8800.usb 0 1000000 2500000 Brian Masney (2): scsi: ufs: ufs-qcom: add basic interconnect support arm64: dts: qcom: sc8280xp: add interconnect properties to ufs nodes arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 8 ++++++++ drivers/ufs/host/ufs-qcom.c | 25 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+)