Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5223063pxu; Tue, 22 Dec 2020 11:17:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjy/GphogbN+uZSJSlkAkWASleSkY9CaSdjSRqkC0OeI/kNq9qfq5pTtSbai3inl5rwdMy X-Received: by 2002:a17:906:386:: with SMTP id b6mr7519528eja.554.1608664638417; Tue, 22 Dec 2020 11:17:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608664638; cv=none; d=google.com; s=arc-20160816; b=NE/0omiCJ/pMjhHUOc5NODBTmatDrLEUNAzqJY0OD+Mx06AKi6JIfPXAH/xlzNZwRb HAzKD+fPQ2Enh+rzqgu0EsvQ5QikuVkysYUXd3sJoY3DlPkVb2AKpbnEJXZq/dpf0ehc Djt7eFaYfRiZJS0QSNINJxANUhdu3D2YyxHPRws1XSchb/8rk4KfI39t/vwmH33zKOpn xNQ/e18v0nR3NnOFXFbfMxRPZJ3WJgoxQwk1EyVcd2qegzoCVnxmm59fT9PDXlT2VLF3 VPeE36zMp7LU9sMHQjnryBs+bMEM9CRxA2/tvsX6BKK6f3DOdZOGDVdkz+4iuu9h1k2i zWZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-filter; bh=M5Opg5R/38DkRwnOgdlxD0B9jj1MfxC+605df+mJ9y0=; b=s0bzIBlNdUnStDXAEAv4H68jufBLmB2HwvGOEr5RzVGi5Zye30AxD7qvQOFERz/0xa IneYP87HYK3kMDbeuVl4mvATv4vi23jLxZlH5JmZBaQUS0iCXp1yWYbei8uKuw+e0Bw+ Xgfduybef9QvNBrCbaRTOXK7GadQD4/RmdAlxs9N2m6BTsrc0AkKjhqjuDoIpv7nth2j 1/Z+K2kgZIu2z3wuDuzcDzrSQgj4Hnp63mBx5rVSJURZHPQ58I9nmUkiioIYgovlLubL Z35K/F1qFVOowhoS8Tii1t98JF5MR1B5WuuLKHunnb/RZRLllxBiwxPnBK8AtHc1b3U6 1TXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=ew1Ghxxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si12545634edm.143.2020.12.22.11.16.54; Tue, 22 Dec 2020 11:17:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=ew1Ghxxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727201AbgLVTPV (ORCPT + 99 others); Tue, 22 Dec 2020 14:15:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727041AbgLVTPU (ORCPT ); Tue, 22 Dec 2020 14:15:20 -0500 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF784C0613D6; Tue, 22 Dec 2020 11:14:40 -0800 (PST) Received: from hatter.bewilderbeest.net (unknown [IPv6:2600:6c44:7f:ba20:1c66:ab2d:5a3:5a9e]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id AF267806F7; Tue, 22 Dec 2020 11:14:39 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 thorn.bewilderbeest.net AF267806F7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1608664480; bh=M5Opg5R/38DkRwnOgdlxD0B9jj1MfxC+605df+mJ9y0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ew1GhxxcyeI5UqiQoh9P4V+yGGrE9TOA+ZB/fGc/VpWZ8Fglsm6z44PYyx49FCHI2 WXoowMLbDeHdvfw51KVjVk7K9SHI9NtoycPMYFqI+ccZWF1DIFAHQQ4PKeiuTDPmIG ukjUraBzf9y7PL1ny35Vb/vYoZPCa6BbJJ+JFG9I= Date: Tue, 22 Dec 2020 13:14:33 -0600 From: Zev Weiss To: Joel Stanley Cc: Eddie James , Mauro Carvalho Chehab , Andrew Jeffery , linux-media@vger.kernel.org, OpenBMC Maillist , Linux ARM , linux-aspeed , Linux Kernel Mailing List , Jae Hyun Yoo Subject: Re: [PATCH 2/3] aspeed-video: clear spurious interrupt bits unconditionally Message-ID: <20201222191433.3dgnfwyrod4tnvaf@hatter.bewilderbeest.net> References: <20201215024542.18888-1-zev@bewilderbeest.net> <20201215024542.18888-3-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 21, 2020 at 10:47:37PM CST, Joel Stanley wrote: >On Tue, 15 Dec 2020 at 02:46, Zev Weiss wrote: >> >> Instead of testing and conditionally clearing them one by one, we can >> instead just unconditionally clear them all at once. >> >> Signed-off-by: Zev Weiss > >I had a poke at the assembly and it looks like GCC is clearing the >bits unconditionally anyway, so removing the tests provides no change. > >Combining them is a good further optimization. > >Reviewed-by: Joel Stanley > >A question unrelated to this patch: Do you know why the driver doesn't >clear the status bits in the interrupt handler? I would expect it to >write the value of sts back to the register to ack the pending >interrupt. > No, I don't, and I was sort of wondering the same thing actually -- I'm not deeply familiar with this hardware or driver though, so I was a bit hesitant to start messing with things. (Though maybe doing so would address the "stickiness" aspect when it does manifest.) Perhaps Eddie or Jae can shed some light here? Zev