Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3727597rdh; Tue, 28 Nov 2023 02:05:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxR//d1fYqTx+B+HX6IeKRu6BIO90x57DX8W/AOOnDFlBpvk8vctROVcA9jciWcnd3Q4EL X-Received: by 2002:a05:6808:1249:b0:3a4:6b13:b721 with SMTP id o9-20020a056808124900b003a46b13b721mr16452337oiv.46.1701165900332; Tue, 28 Nov 2023 02:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701165900; cv=none; d=google.com; s=arc-20160816; b=OQowlUeyb11feFjnmYeYuLniEA6dQG+BuzpFVAS/TWln6NjS9OmHJrjxUbpiu/Jx1c iDjDL8A81GBjTP2zV9wkFueThJILGH57gWQEbFc5NIaJEqUcwUDG95ipsPmQDZeRsED2 dj8cwvPSnXv0+Yn+U1P7yceNm+zdjUx5tsT9nJIKAWvJ2IMED0vx+P86ePYgXy6lMNk0 KQmpWOKSymMaVOvxUe7CUhZxtIQPffwmwM31s4k/NKra6Ht0D49qlRvlzNhxzglyMOJs iHQUecig6oGG5x/06nq7AFKympptkePM48x3OsRv5uwMEzT1zDC0lfaKvl1fWeoP6xbY L4DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=6ilEU8eef81umtOstvjzprliMseDd9e3Cn/gtToDIW0=; fh=clpQhwR7ls5RDUnERzHHc+2TTHjPmbQmVHMd2MkHo5A=; b=YPdYQy9mfTUsxVE/DLMTutjYpBiPlFY3jwJoit1FclAVzRPhEW2N1GTK2d3Wmtq5jF thkqENmVcXCkiUt0ZwRxE42cqArth4Mp5xP94iQ1U6Wsc/v8D9NLPyed9SVE0SgcnxJ/ kkTwWymVYNP+F91Rr+HnCqRdndgpVtXZvQUOSHnCgCY+NQbBBZDrf110NLStHER/qdj2 8KSuQ8Q1H3dgbkztBYk3JLO5Poe1UV1OjPP9qvXq0eSDj5jkmMzZX2pKab4OnQ0Tp+WV iQXatJcmpJ9k3c6cwyeyVVXNfkpDEZcYZzSrPKdkR5c9jXhpwaJJw5quoX/RNVqhmhId d7dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id n15-20020a63ee4f000000b005c2421cc394si11505471pgk.532.2023.11.28.02.04.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 02:05:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 65DFB8325D01; Tue, 28 Nov 2023 02:04:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343955AbjK1KEk convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 Nov 2023 05:04:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234660AbjK1KEh (ORCPT ); Tue, 28 Nov 2023 05:04:37 -0500 Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B0E7BF; Tue, 28 Nov 2023 02:04:43 -0800 (PST) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-5cfa65de9ecso24784107b3.2; Tue, 28 Nov 2023 02:04:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701165882; x=1701770682; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sVYbGk8nOx+pxSV84i/1qbnW/GNJF1Gu7ctCWCcQoto=; b=PUNDoxt4Wa3zrwvorqri5wSiNSH7dPvWRtOea1zXbR6peQndf/fDbZ2mSJjbalDd4f viLh5oz9C527J16XMoGtMg4TP3YQR7t/2ypPMNFQb/E4Bmr9zUoOlDbRiQwkihAaG5UD 5maWMXOZjmHYmKgDSSTKJQEIVYyLJeG+lq13F2/8OqPok1g+ObUt4RHJWflwLlRuCDJy hISnQ8zmkNKdU0zKddH/wY1ZOYP9pXaO9v1ngsd8ncKVo5e8w+5KkGNS2bnhZwJ4A2Tq 35gjJNJCji+RPgfQGTBBXM3IiVxu4zjUwZE5xp8vybKvzkK+tbsQSk6aUVoIB4kuf1VA sCMQ== X-Gm-Message-State: AOJu0YxaQhoKjLZeKeBsanqyXFXRTjwbah3l/Te5N+Wp/uGKDq64AKxZ 9XvH17slCL7V00fzuMkey1R4A8vlAjJIxw== X-Received: by 2002:a0d:f281:0:b0:5d1:1bab:5902 with SMTP id b123-20020a0df281000000b005d11bab5902mr3955847ywf.15.1701165882596; Tue, 28 Nov 2023 02:04:42 -0800 (PST) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by smtp.gmail.com with ESMTPSA id w2-20020a816202000000b005cc916956d5sm3856505ywb.145.2023.11.28.02.04.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Nov 2023 02:04:41 -0800 (PST) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-5cfa65de9ecso24783787b3.2; Tue, 28 Nov 2023 02:04:41 -0800 (PST) X-Received: by 2002:a81:9282:0:b0:5a7:afcc:80fe with SMTP id j124-20020a819282000000b005a7afcc80femr9012513ywg.3.1701165881168; Tue, 28 Nov 2023 02:04:41 -0800 (PST) MIME-Version: 1.0 References: <20231122112930.5e7c7bcd@canb.auug.org.au> In-Reply-To: <20231122112930.5e7c7bcd@canb.auug.org.au> From: Geert Uytterhoeven Date: Tue, 28 Nov 2023 11:04:30 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: linux-next: manual merge of the drm tree with the drm-misc-fixes tree To: Stephen Rothwell Cc: Dave Airlie , Daniel Vetter , Intel Graphics , DRI , Andrzej Kacprowski , Jacek Lawrynowicz , Linux Kernel Mailing List , Linux Next Mailing List , Stanislaw Gruszka Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 28 Nov 2023 02:04:57 -0800 (PST) Hi Stephen, On Wed, Nov 22, 2023 at 1:29 AM Stephen Rothwell wrote: > Today's linux-next merge of the drm tree got a conflict in: > > drivers/accel/ivpu/ivpu_hw_37xx.c > > between commit: > > 3f7c0634926d ("accel/ivpu/37xx: Fix hangs related to MMIO reset") > > from the drm-misc-fixes tree and commits: > > 3de6d9597892 ("accel/ivpu: Pass D0i3 residency time to the VPU firmware") > cc19fedab8bd ("accel/ivpu/37xx: Print warning when VPUIP is not idle during power down") > > from the drm tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. Thanks for your resolution! > --- a/drivers/accel/ivpu/ivpu_hw_37xx.c > +++ b/drivers/accel/ivpu/ivpu_hw_37xx.c > @@@ -720,14 -731,19 +733,14 @@@ static int ivpu_hw_37xx_power_down(stru > { > int ret = 0; > > - if (!ivpu_hw_37xx_is_idle(vdev)) > - ivpu_warn(vdev, "VPU not idle during power down\n"); > + ivpu_hw_37xx_save_d0i3_entry_timestamp(vdev); > > - if (ivpu_hw_37xx_reset(vdev)) { > - ivpu_err(vdev, "Failed to reset VPU\n"); > - ret = -EIO; > + if (!ivpu_hw_37xx_is_idle(vdev)) { > + ivpu_warn(vdev, "VPU not idle during power down\n"); > + if (ivpu_hw_37xx_reset(vdev)) > + ivpu_warn(vdev, "Failed to reset the VPU\n"); > } > > - if (ivpu_pll_disable(vdev)) { > - ivpu_err(vdev, "Failed to disable PLL\n"); > - ret = -EIO; > - } > - > if (ivpu_hw_37xx_d0i3_enable(vdev)) { > ivpu_err(vdev, "Failed to enter D0I3\n"); > ret = -EIO; I've just run into the same conflict, and I think you lost the split into two if-statements in the last hunk of commit 3f7c0634926d ("accel/ivpu/37xx: Fix hangs related to MMIO reset")? My resolution is: --- a/drivers/accel/ivpu/ivpu_hw_37xx.c +++ b/drivers/accel/ivpu/ivpu_hw_37xx.c @@@ -720,11 -731,16 +733,13 @@@ static int ivpu_hw_37xx_power_down(stru { int ret = 0; + ivpu_hw_37xx_save_d0i3_entry_timestamp(vdev); + - if (!ivpu_hw_37xx_is_idle(vdev)) { + if (!ivpu_hw_37xx_is_idle(vdev)) ivpu_warn(vdev, "VPU not idle during power down\n"); - if (ivpu_hw_37xx_reset(vdev)) - ivpu_warn(vdev, "Failed to reset the VPU\n"); - } - if (ivpu_pll_disable(vdev)) { - ivpu_err(vdev, "Failed to disable PLL\n"); + if (ivpu_hw_37xx_reset(vdev)) { + ivpu_err(vdev, "Failed to reset VPU\n"); ret = -EIO; } Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds