Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp78296lqg; Wed, 10 Apr 2024 16:22:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWx9KdLX4eynzabdrvrD3RUpHbKyScHiL4tyX9q00kPryh7JTQZrVaF6r1Sq+tuy480bqLcEUnJm/RHZCZZ9Tx+q7YPaAPFH1o0jbI2yQ== X-Google-Smtp-Source: AGHT+IHKD6V0IeTY0hg52/Lvr/+LGmqlWWre1RzyYhDtlC9N9RG5KS4fhYobmmRP+0Wg2DXF+L98 X-Received: by 2002:a05:6820:1a0b:b0:5a4:75f2:54d0 with SMTP id bq11-20020a0568201a0b00b005a475f254d0mr4642623oob.9.1712791370380; Wed, 10 Apr 2024 16:22:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712791370; cv=pass; d=google.com; s=arc-20160816; b=aTJEn17qHA6ohTLcPG/rFS/rF1rg3a2BcQVw7LkPVEmx2+66MZo8LdtXqrd8aTl81B ADHA9leeOudfCBu4u4woVNZMDK0CDgy8fQd+fdVH4c7AqtvjwLbR8NsIyC/XVaY/tPup QqR1J/9/CxIjPYTURpkSCV0z3vxd3rGYB/Mcmok/HX9m0UQLA2suii6iJ6NlLZaXeUwT 7pdBVtBkgBGGTimxFkWuKzb7ZV2dxilX0BBMkzYT3kyHG8aaqHoHkv0SprgF1aTMKd23 IgUD6OlylsMjl5mo115PqLNOLqATg6JBZjta9wQhBG1N5/qHSS2eOC+AGERakNBCIVVJ puOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=trgevhbBq0+TDj0d1Dc0cXDGsMQZyk7EvY7tkc5hFNs=; fh=3dD3yqEg5aolRE1caoNgzXQn6tQcbNdAl3KHim265O8=; b=GNVA330OEOJjrEBnmwTkp7p2v85PdMvYvBWc/IBjsy0Pwhx0RKxPEJGTm1/IMF/0al xVLkQyCNFFVvbcxcKUXgcIezAMDNYho2a6AGctzHIGT4S6wlqbHfhFuc3kR/OXsW9eTd BW1AbNKdY7e16BRme3s8m4uSqfNtHe6FZnLQDNVz061MN3sKawGUybrB1gRWm+1j846b hFh5YhX+5tvIy9DUrVZkvj7wATD6vcDUdqp2xPFcUdUC1gQE4hSqW6gvfM5kO/khOhAe 63PfZUQztC0CvUXES1/nMmRNgJdRQOmLzohy+GWrryRHfpYKEiAhBtoa5+TbO+4csRhW mfOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="BhdhT/Y4"; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-139522-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139522-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h13-20020ac87d4d000000b0043116ce6629si288336qtb.316.2024.04.10.16.22.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 16:22:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139522-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="BhdhT/Y4"; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-139522-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139522-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1ACF21C21E8E for ; Wed, 10 Apr 2024 23:22:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19FC4335DB; Wed, 10 Apr 2024 23:22:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="BhdhT/Y4" Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5E12286AC for ; Wed, 10 Apr 2024 23:22:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712791335; cv=none; b=fa2g0PVNEvacA9MLPNeuQiCE3+BZNoZES1hONhmYbheM12dWXRqAgsvhYFvrlqXRi0u6na/FEUouHZZwgb8iId7KhS62MVywXCfal+x6dDMZFJaPF48IzOY73Smg8FIxtlsZtfwyBW8ElTsE7ioqM22WQ7uJPEyKxOQ5MRloUqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712791335; c=relaxed/simple; bh=U5eRYierGIrZ3m0cDuM6SWVmTSFoe5fMEmZBX+ufVjg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FVD6zN1VD/uypjsXHMDPtDAO/nxFosV+f6C27ZDn0ykJ2276JO+ClF6Kv/lLHeAXoKTuFWUpCdjzAVw/x4RE9CPsCmwwijVZmcfNeduwL0/3E5zgOoSiGYRtcY37b7uIVsr7pbZ5dnUTAX7Af/HWFtcDUVVlQoAF8WoJhpMUhXs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=BhdhT/Y4; arc=none smtp.client-ip=209.85.215.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-5d81b08d6f2so5774071a12.0 for ; Wed, 10 Apr 2024 16:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1712791333; x=1713396133; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=trgevhbBq0+TDj0d1Dc0cXDGsMQZyk7EvY7tkc5hFNs=; b=BhdhT/Y41zMTFWh9wPvuAukWPL1UOXKq0p7FUL100VOS9T9FPTRO3kpJA+deheMB5h wzpZGch6v91M7/AQlunTNskboPu9T1zoVskw4a8wY/ZHMGGLVX1PLBYuKBQbeEOjJdBq QIoI14Xg/pZvJAL5tFypD5tqztnDBMHhOUve8DQUj7Vj6Ou010TqO9lC67i4IcnO5qGd qJUb3ZlYCVJuxZOke8uSpHIYLtHDLiFm7Tp05pp+ZMTb8qthgw+mP76kkJUAFTERwJrl BSesZCLOKF5w10bpSJBKG4b64UfgQMSgxpvD+eW930qt3vS8P8WKXav9orWSfMvZ2eFF s8xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712791333; x=1713396133; 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=trgevhbBq0+TDj0d1Dc0cXDGsMQZyk7EvY7tkc5hFNs=; b=DtlJ4kTLYVhuYJQcG/UBFHOHDgI9R49T+gnPCuz2bCapOOG3kBs/AyyFmMugs/sLuo eibBCSYQuLYgZkYc/0ayu3fYHZjQ3RK9JC7jEUTeFkk7WLHkfND0folDYapCa582FJKB fSeQBybzSt5ToDq/pD2Hc44kiLHJnnVdntsYwGg+MRO/yCFXF/z7TLUNEDRjgEL9m6vZ aSbUWpi9CecomW5EYVfl8WNKkRaxjFw3M5B+ILkW7A4Ykb6OUyupT0cxN7TBWbZteeQV p3ToLoevjx3KsusSv8N8X63rknwK0m2HrYp9dXYZ75wGv4DqK9kIMVvuHa09CncZyzAX bpRQ== X-Forwarded-Encrypted: i=1; AJvYcCWaiN37ut2V06spi+ri17kNQ3hV/1eGPNfB7U29LmYIvhXQG2oecirtIuUfJZMUyv8OroUdIKq+PKBBccydno5j0VgjLTM2UF/pLLae X-Gm-Message-State: AOJu0Yzfu065duIMfMmrcIIWFHpJYTqUqiO6A7eIhZKEMsmrttA3dLuQ 7oFIU7SyGmd35zxp+cmq1lyCVYoDjXl0OgxgmKGLanzSkYUA00GbAXs5JbC/R2I= X-Received: by 2002:a17:90a:43c3:b0:2a1:f586:d203 with SMTP id r61-20020a17090a43c300b002a1f586d203mr3576465pjg.41.1712791332987; Wed, 10 Apr 2024 16:22:12 -0700 (PDT) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id o19-20020a17090aac1300b002a269828bb8sm161865pjq.40.2024.04.10.16.22.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 16:22:12 -0700 (PDT) From: Samuel Holland To: Conor Dooley , linux-riscv@lists.infradead.org Cc: Samuel Holland , Paul Walmsley , linux-kernel@vger.kernel.org Subject: [PATCH 0/4] cache: sifive_ccache: Auxiliary device support Date: Wed, 10 Apr 2024 16:22:02 -0700 Message-ID: <20240410232211.438277-1-samuel.holland@sifive.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit As of commit c90847bcbfb6 ("cache: sifive_ccache: Partially convert to a platform driver"), the cache subsystem binds a platform driver to the Composable Cache's DT node. This prevents the perf subsystem from doing the same for the new PMU driver[1]. To allow using both drivers at the same time without conflicts or module linkage dependencies, attach the PMU driver to the auxiliary device bus. While at it, prepare to use the auxiliary device bus for the EDAC driver as well, which significantly simplifies that driver. The actual EDAC driver conversion has to wait another development cycle to avoid dependencies between git trees. [1]: https://lore.kernel.org/linux-riscv/20240216000837.1868917-3-samuel.holland@sifive.com/ Samuel Holland (4): cache: sifive_ccache: Silence unused variable warning cache: sifive_ccache: Use of_iomap() helper cache: sifive_ccache: Export base address for child drivers cache: sifive_ccache: Add EDAC and PMU as auxiliary devices drivers/cache/Kconfig | 1 + drivers/cache/sifive_ccache.c | 94 +++++++++++++++++++++--------- include/soc/sifive/sifive_ccache.h | 8 +++ 3 files changed, 74 insertions(+), 29 deletions(-) -- 2.44.0