From nobody Sun Feb 8 20:13:07 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 462072571A1 for ; Mon, 13 Oct 2025 11:16:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760354163; cv=none; b=F+lSlJKL2SJrgkY/u9+sNf5odfIGTKUIW7t9iG5aJCOkpidedLB8LFJJ6Y9xVaeDLn93/PXXWM/WCVKuIfm3fVyQbBRY/TUsdoZmPnHXgQva9+kE4eVutdyA7WUdkrBUSngPWiybF/WtrJZlx6qA4TSrjh8tJ9MEhvLXtIGNMMU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760354163; c=relaxed/simple; bh=+6VII37RHqDNfppTlqwcNFr2ZT+PLo6yM/8orE91hkg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ci2S3tf6y//xRZhD3pHTx98KTbPMAGYEMs2/oNit93p/FxhttL6EP5udZ/7bpjtZFYfivlPJVhco/ktld6XC7TcQ0Vaiin3/iNluDp2OliqaYnaldE0DhlVMmsYfW75HDO/+KtDKMmXkrWsgbwKE3Br5szLVAc7ZEBLCt7UeISk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=K7sNQVMM; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="K7sNQVMM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1760354161; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4womYyfAPXvRIazIdsWxNUOGmmlPDZZgpu1ixU0rOaY=; b=K7sNQVMMLa/WXrPOcRqnCp+tkgxXJoUT7TGNQOCvcclVQoLqCOm79jM8YRSg0McBq1sAYl UCVvl1PVw0l2kC4jxtlZ4jb/Ls/DLRBjZDleYZwq/EZvt0AO/NSrsRlzavT4XdZKCnZ9zD Pn7+0T/POSjCJ8CEDFvKdJZy6Oa9aaw= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-601-bOHPfnZdPtWmcUVsPVGasQ-1; Mon, 13 Oct 2025 07:15:59 -0400 X-MC-Unique: bOHPfnZdPtWmcUVsPVGasQ-1 X-Mimecast-MFC-AGG-ID: bOHPfnZdPtWmcUVsPVGasQ_1760354159 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-b3d21b18e8fso342045366b.2 for ; Mon, 13 Oct 2025 04:15:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760354158; x=1760958958; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4womYyfAPXvRIazIdsWxNUOGmmlPDZZgpu1ixU0rOaY=; b=v7ugqQmACwZpzrFgcqijrU+mAjp+1IEf1YvLHsiRxIvYGX88VFGCSxKmeQMCxofKf3 C0DiN9dIwrXXvYuEj8x0xcI20MFazFaO4OBeT4CRC2yvdmGtphorEES4xCMs0ZWrXMpg xIUIpR4a8UYH6wu+2DEhK91hGzwCCEDI8bpoJ+h7z2dTaY2X7/tkMU1lB8pWm+X8d5Kf HDXbITh14cVkLWE7BsymMbIEtDzyeli5wXXL6cSSI66gH8O20RJQUtWBF5u1jPrXdvNt T2M1Fre5pEYCHdbfdr6PFImBf/2mucV57KYF+Sn7JnhRx2tl3y70Du/ppm13OX7TogqP 4yFA== X-Forwarded-Encrypted: i=1; AJvYcCVEShI7YXZWFOukmhVCR65irU5FtXEKUsr2tmpt/kEga6P9AerBmtL8l+oazrWU3RqJX1yGfxsfByE46fU=@vger.kernel.org X-Gm-Message-State: AOJu0YwvS0oyX4PHeGyBtjevSA9/HHobI/RhTLV6Huz+kVAw6j2gdYDc Z9d/cAhtRSt8VUsyJG2Xl/cGhwnWoztbKvuLTBl77z9BlNKg9HuDUYffcRUoci7S7a7CkAF9vRq 87wliqpbebR7Tpu63xXkvzoUJr0Blaat7Ge6+eSgG9qdFv4Ic82GcccioGvuxh31zvw== X-Gm-Gg: ASbGncuDKeAx45gQH/wvjiB8Y4WY8bSltXq2SysiJgNsOMhRI6oDh9IWjvytrtFYGjS D6mFxpfkX63aADlu0BeVuV8UOBSNgRl3Rv/GS2W0rClYyKqOqOLp9hKJ2DdWg59lwRSDMGqFOvN QQXDv+m4kkjGJ4NPbR0dKvmZFiVFEi+WNF1qBS+nfi6/N2PN+CYc1mt2p0OaqsWuJiOq0qgjqvT pXRrSxxnSYpfMok4IEF3emuq0kvW5b4nXGn8/gMYS/Rw5D19ZV0e0l5x9Au6VQCQbOoNsCPrNhY YmC6w42Udoq9CmZhvg4QmALpmedWHSo+Hnvc85q0B5dD X-Received: by 2002:a17:907:d06:b0:b2d:830a:8c09 with SMTP id a640c23a62f3a-b50ac6d0efamr1942221766b.44.1760354158584; Mon, 13 Oct 2025 04:15:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHg8rg8dsq7zJfh6gCzyRijPZxMfRfezjJZnz19r6DIJjozGij8WAfJBWxcI2QpDp4IppwBoA== X-Received: by 2002:a17:907:d06:b0:b2d:830a:8c09 with SMTP id a640c23a62f3a-b50ac6d0efamr1942219466b.44.1760354158153; Mon, 13 Oct 2025 04:15:58 -0700 (PDT) Received: from holism.Home ([2a06:5900:814a:ab00:c1c7:2e09:633d:e94e]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b55d5cad8adsm917336966b.7.2025.10.13.04.15.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Oct 2025 04:15:57 -0700 (PDT) From: Lucas Zampieri To: devicetree@vger.kernel.org Cc: Lucas Zampieri , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vivian Wang , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: vendor-prefixes: add UltraRISC Date: Mon, 13 Oct 2025 12:15:36 +0100 Message-ID: <20251013111539.2206477-2-lzampier@redhat.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251013111539.2206477-1-lzampier@redhat.com> References: <20251013111539.2206477-1-lzampier@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add vendor prefix for UltraRISC Technology Co., Ltd. Signed-off-by: Lucas Zampieri Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docum= entation/devicetree/bindings/vendor-prefixes.yaml index 123456789abc..234567890def 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1642,6 +1642,8 @@ patternProperties: description: Universal Scientific Industrial Co., Ltd. "^usr,.*": description: U.S. Robotics Corporation + "^ultrarisc,.*": + description: UltraRISC Technology Co., Ltd. "^ultratronik,.*": description: Ultratronik GmbH "^utoo,.*": -- 2.51.0 From nobody Sun Feb 8 20:13:07 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DC4A257AD3 for ; Mon, 13 Oct 2025 11:16:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760354164; cv=none; b=qxXey5vEEy8bxyJZzWhk+JamG5f+BviEf4xGYrEpdYkczRThBR9PqcWtFMbZ6ko6cmVpswdQ42jaqxZmI09cZKHfiY5S9mjvKP1zx0p/7n7ykEn59ctnvyJ61ZVexFGDBoer4Fufh9HOF8aT6va0mI/6dhxVld60YPNocMrSryQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760354164; c=relaxed/simple; bh=mh4KQfHpTRyfwbrzSn7QR9HBsuPqnWl2zeRlyQz9EUI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d6MVJEDXGWPlPyvI+jmTpRwmOxk8vuB5l5tOaOz1gBrJpeayhja/uraIMblE9UFwaMuO4cJ7gmuH3P1Dlp3JzV2vspHcKUhrbLAUlQ1wcGXshYvXZYH3tbXca7vJkPCMRsVqKdn3jlhxCsDrTichjluJ8QDkakRasB9sPpK4nrQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=D3Z01au+; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="D3Z01au+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1760354162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PXbaRxtuztYp/s40WDhl1rowOsrsCdyuZCaCXhLX8Gw=; b=D3Z01au+KMVnsfGdtm0bDAxVGujjbsrPgNxeAFiF3k0DNTAwoE/lr44HoCIKGVZbD4ffaR 39WENXoJVpkUz9lxmu0FGepo6AK19J+4Bgh8MYr2xEbLwzZtEbULcEXkruBEtJz9k/YkrG 5cuMFI6qdc+zLgc6IsyynVXKqeCjsVE= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-367-FPm5TaCiMR-WZJ84pGsyOw-1; Mon, 13 Oct 2025 07:16:01 -0400 X-MC-Unique: FPm5TaCiMR-WZJ84pGsyOw-1 X-Mimecast-MFC-AGG-ID: FPm5TaCiMR-WZJ84pGsyOw_1760354160 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-b2f989de76eso682932866b.1 for ; Mon, 13 Oct 2025 04:16:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760354160; x=1760958960; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PXbaRxtuztYp/s40WDhl1rowOsrsCdyuZCaCXhLX8Gw=; b=NXcqMh5NV/fNypwex6e9Ia67phYS/w4jM9921PEQivxVdz+YqCmHjNqoi/9pb4bd/1 qZSI3mfAglQuMjbEV9fEOxwW9AbyqvOrmN4VmfivcrgdjYLMSp7YyoJTFnRuuqewW7U9 uXgeiihNaVVBizqh7ooE1frouT1py7wePZ7vC36qfCbWrXNhJTTM3lt1e5YB3eeKQYZe JhJUaujbmb9fTRk4rIKWPMVF7vph03taLAOtSgAiE5mV2EDmKfs2XAxeZG0dnhtVPcxo /Pp8QmEeTH79R3sLBZnIOVQV41WcXAkkRPUyHD+ygsBn3RUEHslo4quovYI9jvyPrw7x UIYw== X-Forwarded-Encrypted: i=1; AJvYcCXcQ9sYhzNEW3nkHNTWcihc7C8RQRVRx78Y42denu1+xYltTs0lzHtGkMnBMWsK69pbopgVwcQv1rYIGjw=@vger.kernel.org X-Gm-Message-State: AOJu0YzWtRI02yBAfvIb+USGyiXGi1nMbjv8wz++xEnVFG7PIaVzS/37 ekYqP+chowpZBOwGu/yOtDnDwy039cqOOhagVnFAQYa9RSjprnx0YoLpaKQxVf2Pi1zJa0Oif3Z ArIroxfTySsfa2dikm4sWJzCVQ49jmC1K6FpcvI8lTuYIAaUpCdF3ynQ+CFREQ9lMQQ== X-Gm-Gg: ASbGnctXyUHrMl2YIQqMoAM46DQqli46T7DwaIaCGe0uRKoWHo8oK0tgEpSVLI2hBH2 obhH2H16aQvC6tZAwExTFeSqBfR5GlpGfk2Xgh/r7uoqP3wD/mm0KlPNQNHXSG36OcftPwOcrSu DNZuVABVcj22tkX/TbnGO3hLqzFVFWLxwOLnq8oTWE7oahvHiDpjSJXGAfqomv690i+j6kPd4Fi lsSU0TEGbZV3sN3xApPNpSK3LTN1ukXhnA34d8a/wzzOyy7ZAGGpFma9JCUs7MUtIuh+pjIn4pW MdrhEz5in14XznzoD5DoGx+X37gchb9puCKqBoC68q2J X-Received: by 2002:a17:907:3e14:b0:b0e:83e7:f6e1 with SMTP id a640c23a62f3a-b50bedbf399mr141598666b.15.1760354159918; Mon, 13 Oct 2025 04:15:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuUdQXqYYYnB0IxjzxM4QXupFhWiFIY6GmjbzKu7BcvIGOI8cjNpSplnLC3KbMobuV7VWnOg== X-Received: by 2002:a17:907:3e14:b0:b0e:83e7:f6e1 with SMTP id a640c23a62f3a-b50bedbf399mr141594866b.15.1760354159482; Mon, 13 Oct 2025 04:15:59 -0700 (PDT) Received: from holism.Home ([2a06:5900:814a:ab00:c1c7:2e09:633d:e94e]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b55d5cad8adsm917336966b.7.2025.10.13.04.15.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Oct 2025 04:15:59 -0700 (PDT) From: Lucas Zampieri To: devicetree@vger.kernel.org Cc: Charles Mirabile , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Samuel Holland , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Vivian Wang , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Lucas Zampieri Subject: [PATCH v2 2/3] dt-bindings: interrupt-controller: add UltraRISC DP1000 PLIC Date: Mon, 13 Oct 2025 12:15:37 +0100 Message-ID: <20251013111539.2206477-3-lzampier@redhat.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251013111539.2206477-1-lzampier@redhat.com> References: <20251013111539.2206477-1-lzampier@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Charles Mirabile Add a new compatible string for UltraRISC DP1000 PLIC. Signed-off-by: Charles Mirabile Signed-off-by: Lucas Zampieri --- .../bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/sifive,= plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-controller/si= five,plic-1.0.0.yaml index 5b827bc24301..a419de50f5a8 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.= 0.0.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.= 0.0.yaml @@ -74,6 +74,8 @@ properties: - sophgo,sg2044-plic - thead,th1520-plic - const: thead,c900-plic + - items: + - const: ultrarisc,dp1000-plic + - const: ultrarisc,cp100-plic - items: - const: sifive,plic-1.0.0 - const: riscv,plic0 -- 2.51.0 From nobody Sun Feb 8 20:13:07 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE675258CF2 for ; Mon, 13 Oct 2025 11:16:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760354166; cv=none; b=Ojs2rdAsJju4N4b4mEtcK22jOMX4thN84+BUTUoDx4Z11nXolGF9mE5jJXwtMarsdpG70Tkh2GXUJNrf5whEgBCCCu5oly1JR6wicCzO+z8N7DR9SZngDo6btGKkoO0gbCyIGVTkMlmYa3U3S+xVMG6Sz7ME6EvN7yikEL3mjsI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760354166; c=relaxed/simple; bh=cmbZqIogkq/EcugIc5yZlLZ5u6vQ/5jndCzkg2Kiut8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZeUtokB+GPsEAOgfLsmFD8hy1aETEcCEMu2W5bHk05psRNxCSH1z2SndZnm6QIeahQmg+MvP6a4GvCZHOOaKyTigZj4DM+cfMMQfPu7ARuMXGpHGEI5mX/e5TIsRVqLaRll+RtY0fCz6qg0QJY30LXXJfsDsQ+wYVvDQeVpARHE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WLSGta0Y; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WLSGta0Y" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1760354163; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pJHdo25GZsD//7L/M3VD6J/R1bZjkabZbJap+nii06E=; b=WLSGta0YNInW5uby6naC+VPhvNjRO+YbHiuGBXkiF1Kmdw7EQAJ3P08iHfnXHiJwFVzMkE 2RKMrlGMEWAa07SFpw0WBAwji0DJNXKMp6SO7htWssBBB6RQDe0PQN6bDCgJL1iI1I/wGY /RZ0umenQcKJZTeeR4FUeG9h3BrCU9c= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-479-7hMKnxxUMN2wETenLHQ2IQ-1; Mon, 13 Oct 2025 07:16:02 -0400 X-MC-Unique: 7hMKnxxUMN2wETenLHQ2IQ-1 X-Mimecast-MFC-AGG-ID: 7hMKnxxUMN2wETenLHQ2IQ_1760354162 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-b479e43ad46so354592966b.2 for ; Mon, 13 Oct 2025 04:16:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760354161; x=1760958961; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pJHdo25GZsD//7L/M3VD6J/R1bZjkabZbJap+nii06E=; b=mHa22cOG0OfniH7qgs+6nPSxxcqtKW4iRbOAkdTnXln3BCkoB7s1DnXrTehAbeMzru mFkCFcdTRWYskjj3dOA8eRGPxynlaWfzb2chU92jrdZLuyeXsdv9vBoyypLYeSOWw76W ngH0tx/4zDApc4Bbl5UGogswyPUOw88J1clWZHXdkQbcKKEU7CZU4jkrD4vhixkw0i0I ruB6eEht2F8qwxOJQJnzzB8h5n33TgcxqKoALSD5rDwgcrAkXtTCfyIM5d5hRQ7hbqsD UrSSkJYaUELs1/5D+5CMYAPf+zq5K4ng7HthpPuU3M6qi6GD1ywnvwTW6yCeF1Iziwts YnKg== X-Gm-Message-State: AOJu0YzrO71GrV7QXLyYjs/bNHFkPvH1pmZEhuFRRnN+rW5ArW7VcwKY 8n/jAOmo1iRjJRmVZhyxBQpgS8tq0AgPmyLzMxB63Ow3KF+WQ8xbpId+duJvKZf+jQ37weR6vqf GhdBGrcsvGlKV/IdW85dIjVF5GdPEQ5wzyVTrYhwAGNjqEQjbziW1yIIqb+2YO/dbJDeAAVpo/S KIbCz2QAQRYcY7zTQekwo3/MbbCqaq1vTYXheqLXDJHmDm8wJdESa1 X-Gm-Gg: ASbGnctifs5R14vDTyWcZ+Gz5tllxETSAvPHjbtjQNGfVTGeq9mqOsXudQJewI5QkSU LG3CNV3IiO9pG/mFCrrWfSkSwfyiq3Pj5KYF0R9iV/Qh8qF+qhtPYxCVoakesEI1L5Ui3oXUM1J wJ8/JSZcgJgbSQVDKaikfoKl77Gv174O5/ac6IdQ2fzMLqYbFlydPpqIvNRK39fXSfBkQqwX7j+ gIAEDyUIFK4fZrjyaBT82e6OlGigiCRCY3oXwsiVvRlirCjIkXuqf88aiFbGMHTKFWgKl7s1U7L YD31bl4yGOexoR+nNDnvqP3lCV97p8M8fc0cnBoN+PKe X-Received: by 2002:a17:907:72d4:b0:b3b:110c:d343 with SMTP id a640c23a62f3a-b50aa492035mr2038533266b.8.1760354161384; Mon, 13 Oct 2025 04:16:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFn6EsnRzMIVPRRAZr3OXPszrSJigMPb3zDVKXGXSvsMfCtVFK0OGUSuhUEqOn+xPWfIgDpYw== X-Received: by 2002:a17:907:72d4:b0:b3b:110c:d343 with SMTP id a640c23a62f3a-b50aa492035mr2038529666b.8.1760354160855; Mon, 13 Oct 2025 04:16:00 -0700 (PDT) Received: from holism.Home ([2a06:5900:814a:ab00:c1c7:2e09:633d:e94e]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b55d5cad8adsm917336966b.7.2025.10.13.04.16.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Oct 2025 04:16:00 -0700 (PDT) From: Lucas Zampieri To: linux-kernel@vger.kernel.org Cc: Charles Mirabile , Thomas Gleixner , Paul Walmsley , Samuel Holland , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Vivian Wang , linux-riscv@lists.infradead.org, Zhang Xincheng , Lucas Zampieri Subject: [PATCH v2 3/3] irqchip/plic: add support for UltraRISC DP1000 PLIC Date: Mon, 13 Oct 2025 12:15:38 +0100 Message-ID: <20251013111539.2206477-4-lzampier@redhat.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251013111539.2206477-1-lzampier@redhat.com> References: <20251013111539.2206477-1-lzampier@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Charles Mirabile Add a new compatible for the plic found in UltraRISC DP1000 with a quirk to work around a known hardware bug with IRQ claiming. When claiming an interrupt on the DP1000 PLIC all other interrupts must be disabled before the claim register is accessed to prevent incorrect handling of the interrupt. When the PLIC_QUIRK_CLAIM_REGISTER is present, during plic_handle_irq the enable state of all interrupts is saved and then all interrupts except for the first pending one are disabled before reading the claim register. The interrupts are then restored before further processing of the claimed interrupt continues. The driver matches on "ultrarisc,cp100-plic" to apply the quirk to all SoCs using UR-CP100 cores, regardless of the specific SoC implementation. This has no impact on other platforms. Co-developed-by: Zhang Xincheng Signed-off-by: Zhang Xincheng Signed-off-by: Charles Mirabile Signed-off-by: Lucas Zampieri --- drivers/irqchip/irq-sifive-plic.c | 83 ++++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive= -plic.c index 9c4af7d58846..a7b51a925e96 100644 --- a/drivers/irqchip/irq-sifive-plic.c +++ b/drivers/irqchip/irq-sifive-plic.c @@ -49,6 +49,8 @@ #define CONTEXT_ENABLE_BASE 0x2000 #define CONTEXT_ENABLE_SIZE 0x80 +#define PENDING_BASE 0x1000 + /* * Each hart context has a set of control registers associated with it. R= ight * now there's only two: a source priority threshold over which the hart w= ill @@ -63,6 +65,7 @@ #define PLIC_ENABLE_THRESHOLD 0 #define PLIC_QUIRK_EDGE_INTERRUPT 0 +#define PLIC_QUIRK_CLAIM_REGISTER 1 struct plic_priv { struct fwnode_handle *fwnode; @@ -367,6 +370,82 @@ static const struct irq_domain_ops plic_irqdomain_ops = =3D { .free =3D irq_domain_free_irqs_top, }; +static bool dp1000_isolate_pending_irq(int nr_irq_groups, u32 ie[], + void __iomem *pending, + void __iomem *enable) +{ + u32 pending_irqs =3D 0; + int i, j; + + /* Look for first pending interrupt */ + for (i =3D 0; i < nr_irq_groups; i++) { + pending_irqs =3D ie[i] & readl(pending + i * sizeof(u32)); + if (pending_irqs) + break; + } + + if (!pending_irqs) + return false; + + /* Disable all interrupts but the first pending one */ + for (j =3D 0; j < nr_irq_groups; j++) { + u32 new_mask =3D 0; + + if (j =3D=3D i) + /* Extract mask with lowest set bit */ + new_mask =3D (pending_irqs & -pending_irqs); + + writel(new_mask, enable + j * sizeof(u32)); + } + + return true; +} + +static irq_hw_number_t dp1000_get_hwirq(struct plic_handler *handler, + void __iomem *claim) +{ + void __iomem *enable =3D handler->enable_base; + void __iomem *pending =3D handler->priv->regs + PENDING_BASE; + int nr_irqs =3D handler->priv->nr_irqs; + int nr_irq_groups =3D DIV_ROUND_UP(nr_irqs, 32); + int i; + u32 ie[32] =3D { 0 }; + irq_hw_number_t hwirq =3D 0; + + raw_spin_lock(&handler->enable_lock); + + /* Save current interrupt enable state */ + for (i =3D 0; i < nr_irq_groups; i++) + ie[i] =3D readl(enable + i * sizeof(u32)); + + if (!dp1000_isolate_pending_irq(nr_irq_groups, ie, pending, enable)) + goto out; + + hwirq =3D readl(claim); + + /* Restore previous state */ + for (i =3D 0; i < nr_irq_groups; i++) + writel(ie[i], enable + i * sizeof(u32)); +out: + raw_spin_unlock(&handler->enable_lock); + return hwirq; +} + +static irq_hw_number_t plic_get_hwirq(struct plic_handler *handler, + void __iomem *claim) +{ + /* + * Due to a hardware bug in the implementation of the claim register + * in the UltraRISC DP1000 platform, other interrupts must be disabled + * before reading the claim register and restored afterwards. + */ + + if (test_bit(PLIC_QUIRK_CLAIM_REGISTER, &handler->priv->plic_quirks)) + return dp1000_get_hwirq(handler, claim); + + return readl(claim); +} + /* * Handling an interrupt is a two-step process: first you claim the interr= upt * by reading the claim register, then you complete the interrupt by writi= ng @@ -384,7 +463,7 @@ static void plic_handle_irq(struct irq_desc *desc) chained_irq_enter(chip, desc); - while ((hwirq =3D readl(claim))) { + while ((hwirq =3D plic_get_hwirq(handler, claim))) { int err =3D generic_handle_domain_irq(handler->priv->irqdomain, hwirq); if (unlikely(err)) { @@ -432,6 +511,8 @@ static const struct of_device_id plic_match[] =3D { .data =3D (const void *)BIT(PLIC_QUIRK_EDGE_INTERRUPT) }, { .compatible =3D "thead,c900-plic", .data =3D (const void *)BIT(PLIC_QUIRK_EDGE_INTERRUPT) }, + { .compatible =3D "ultrarisc,cp100-plic", + .data =3D (const void *)BIT(PLIC_QUIRK_CLAIM_REGISTER) }, {} }; -- 2.51.0