* [PATCH AUTOSEL 5.19 03/38] drm/msm/rd: Fix FIFO-full deadlock [not found] <20220910211623.69825-1-sashal@kernel.org> @ 2022-09-10 21:15 ` Sasha Levin 2022-09-10 21:16 ` [PATCH AUTOSEL 5.19 33/38] misc: fastrpc: increase maximum session count Sasha Levin 1 sibling, 0 replies; 4+ messages in thread From: Sasha Levin @ 2022-09-10 21:15 UTC (permalink / raw) To: linux-kernel, stable Cc: Rob Clark, Sasha Levin, robdclark, quic_abhinavk, dmitry.baryshkov, airlied, daniel, linux-arm-msm, dri-devel, freedreno From: Rob Clark <robdclark@chromium.org> [ Upstream commit 174974d8463b77c2b4065e98513adb204e64de7d ] If the previous thing cat'ing $debugfs/rd left the FIFO full, then subsequent open could deadlock in rd_write() (because open is blocked, not giving a chance for read() to consume any data in the FIFO). Also it is generally a good idea to clear out old data from the FIFO. Signed-off-by: Rob Clark <robdclark@chromium.org> Patchwork: https://patchwork.freedesktop.org/patch/496706/ Link: https://lore.kernel.org/r/20220807160901.2353471-2-robdclark@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org> --- drivers/gpu/drm/msm/msm_rd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_rd.c b/drivers/gpu/drm/msm/msm_rd.c index a92ffde53f0b3..db2f847c8535f 100644 --- a/drivers/gpu/drm/msm/msm_rd.c +++ b/drivers/gpu/drm/msm/msm_rd.c @@ -196,6 +196,9 @@ static int rd_open(struct inode *inode, struct file *file) file->private_data = rd; rd->open = true; + /* Reset fifo to clear any previously unread data: */ + rd->fifo.head = rd->fifo.tail = 0; + /* the parsing tools need to know gpu-id to know which * register database to load. * -- 2.35.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH AUTOSEL 5.19 33/38] misc: fastrpc: increase maximum session count [not found] <20220910211623.69825-1-sashal@kernel.org> 2022-09-10 21:15 ` [PATCH AUTOSEL 5.19 03/38] drm/msm/rd: Fix FIFO-full deadlock Sasha Levin @ 2022-09-10 21:16 ` Sasha Levin 2022-09-11 9:31 ` Johan Hovold 1 sibling, 1 reply; 4+ messages in thread From: Sasha Levin @ 2022-09-10 21:16 UTC (permalink / raw) To: linux-kernel, stable Cc: Johan Hovold, Greg Kroah-Hartman, Sasha Levin, srinivas.kandagatla, amahesh, linux-arm-msm From: Johan Hovold <johan+linaro@kernel.org> [ Upstream commit 689a2d9f9332a27b1379ef230396e944f949a72b ] The SC8280XP platform uses 14 sessions for the compute DSP so increment the maximum session count. Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20220829080531.29681-4-johan+linaro@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org> --- drivers/misc/fastrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 93ebd174d8487..08032a207c1c0 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -25,7 +25,7 @@ #define SDSP_DOMAIN_ID (2) #define CDSP_DOMAIN_ID (3) #define FASTRPC_DEV_MAX 4 /* adsp, mdsp, slpi, cdsp*/ -#define FASTRPC_MAX_SESSIONS 13 /*12 compute, 1 cpz*/ +#define FASTRPC_MAX_SESSIONS 14 #define FASTRPC_MAX_VMIDS 16 #define FASTRPC_ALIGN 128 #define FASTRPC_MAX_FDLIST 16 -- 2.35.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH AUTOSEL 5.19 33/38] misc: fastrpc: increase maximum session count 2022-09-10 21:16 ` [PATCH AUTOSEL 5.19 33/38] misc: fastrpc: increase maximum session count Sasha Levin @ 2022-09-11 9:31 ` Johan Hovold 2022-09-12 8:57 ` Sasha Levin 0 siblings, 1 reply; 4+ messages in thread From: Johan Hovold @ 2022-09-11 9:31 UTC (permalink / raw) To: Sasha Levin Cc: linux-kernel, stable, Johan Hovold, Greg Kroah-Hartman, srinivas.kandagatla, amahesh, linux-arm-msm On Sat, Sep 10, 2022 at 05:16:18PM -0400, Sasha Levin wrote: > From: Johan Hovold <johan+linaro@kernel.org> > > [ Upstream commit 689a2d9f9332a27b1379ef230396e944f949a72b ] > > The SC8280XP platform uses 14 sessions for the compute DSP so increment > the maximum session count. > > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > Link: https://lore.kernel.org/r/20220829080531.29681-4-johan+linaro@kernel.org > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > Signed-off-by: Sasha Levin <sashal@kernel.org> SC8280XP was not added until 6.0 so the stable tag was left out on purpose (as usual). Please drop. > --- > drivers/misc/fastrpc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c > index 93ebd174d8487..08032a207c1c0 100644 > --- a/drivers/misc/fastrpc.c > +++ b/drivers/misc/fastrpc.c > @@ -25,7 +25,7 @@ > #define SDSP_DOMAIN_ID (2) > #define CDSP_DOMAIN_ID (3) > #define FASTRPC_DEV_MAX 4 /* adsp, mdsp, slpi, cdsp*/ > -#define FASTRPC_MAX_SESSIONS 13 /*12 compute, 1 cpz*/ > +#define FASTRPC_MAX_SESSIONS 14 > #define FASTRPC_MAX_VMIDS 16 > #define FASTRPC_ALIGN 128 > #define FASTRPC_MAX_FDLIST 16 Johan ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH AUTOSEL 5.19 33/38] misc: fastrpc: increase maximum session count 2022-09-11 9:31 ` Johan Hovold @ 2022-09-12 8:57 ` Sasha Levin 0 siblings, 0 replies; 4+ messages in thread From: Sasha Levin @ 2022-09-12 8:57 UTC (permalink / raw) To: Johan Hovold Cc: linux-kernel, stable, Johan Hovold, Greg Kroah-Hartman, srinivas.kandagatla, amahesh, linux-arm-msm On Sun, Sep 11, 2022 at 11:31:23AM +0200, Johan Hovold wrote: >On Sat, Sep 10, 2022 at 05:16:18PM -0400, Sasha Levin wrote: >> From: Johan Hovold <johan+linaro@kernel.org> >> >> [ Upstream commit 689a2d9f9332a27b1379ef230396e944f949a72b ] >> >> The SC8280XP platform uses 14 sessions for the compute DSP so increment >> the maximum session count. >> >> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> >> Link: https://lore.kernel.org/r/20220829080531.29681-4-johan+linaro@kernel.org >> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> >> Signed-off-by: Sasha Levin <sashal@kernel.org> > >SC8280XP was not added until 6.0 so the stable tag was left out on >purpose (as usual). > >Please drop. Will do, thanks! -- Thanks, Sasha ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-09-12 8:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20220910211623.69825-1-sashal@kernel.org>
2022-09-10 21:15 ` [PATCH AUTOSEL 5.19 03/38] drm/msm/rd: Fix FIFO-full deadlock Sasha Levin
2022-09-10 21:16 ` [PATCH AUTOSEL 5.19 33/38] misc: fastrpc: increase maximum session count Sasha Levin
2022-09-11 9:31 ` Johan Hovold
2022-09-12 8:57 ` Sasha Levin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox